(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[34582,(t,e,n)=>{n.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return(n+i)*3/4-i},n.toByteArray=function(t){var e,n,i=l(t),s=i[0],a=i[1],h=new o((s+a)*3/4-a),u=0,c=a>0?s-4:s;for(n=0;n<c;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],h[u++]=e>>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,h[u++]=255&e),1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h},n.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(function(t,e,n){for(var r,o=[],s=e;s<n;s+=3)r=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(i[r>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===r?o.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&o.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),o.join("")};for(var i=[],r=[],o="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,h=s.length;a<h;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}r[45]=62,r[95]=63},43943,(t,e,n)=>{var i=t.r(34582),r=t.r(38492),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return h(t,e,n)}function h(t,e,n){if("string"==typeof t){var i=t,r=e;if(("string"!=typeof r||""===r)&&(r="utf8"),!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);var o=0|d(i,r),h=s(o),l=h.write(i,r);return l!==o&&(h=h.slice(0,l)),h}if(ArrayBuffer.isView(t)){var u=t;if(T(u,Uint8Array)){var v=new Uint8Array(u);return f(v.buffer,v.byteOffset,v.byteLength)}return c(u)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var g=t.valueOf&&t.valueOf();if(null!=g&&g!==t)return a.from(g,e,n);var y=function(t){if(a.isBuffer(t)){var e,n=0|p(t.length),i=s(n);return 0===i.length||t.copy(i,0,0,n),i}if(void 0!==t.length){return"number"!=typeof t.length||(e=t.length)!=e?s(0):c(t)}if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return l(t),s(t<0?0:0|p(t))}function c(t){for(var e=t.length<0?0:0|p(t.length),n=s(e),i=0;i<e;i+=1)n[i]=255&t[i];return n}function f(t,e,n){var i;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),a.prototype),i}function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return E(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(t).length;default:if(r)return i?-1:E(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r,o,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=A[t[o]];return r}(this,e,n);case"utf8":case"utf-8":return w(this,e,n);case"ascii":return function(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}(this,e,n);case"latin1":case"binary":return function(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}(this,e,n);case"base64":return r=this,o=e,s=n,0===o&&s===r.length?i.fromByteArray(r):i.fromByteArray(r.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length-1;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}(this,e,n);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function y(t,e,n,i,r){var o;if(0===t.length)return -1;if("string"==typeof n?(i=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length)if(r)return -1;else n=t.length-1;else if(n<0)if(!r)return -1;else n=0;if("string"==typeof e&&(e=a.from(e,i)),a.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,r);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(r)return Uint8Array.prototype.indexOf.call(t,e,n);else return Uint8Array.prototype.lastIndexOf.call(t,e,n);return m(t,[e],n,i,r)}throw TypeError("val must be string, number or Buffer")}function m(t,e,n,i,r){var o,s=1,a=t.length,h=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return -1;s=2,a/=2,h/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===h)return u*s}else -1!==u&&(o-=o-u),u=-1}else for(n+h>a&&(n=a-h),o=n;o>=0;o--){for(var c=!0,f=0;f<h;f++)if(l(t,o+f)!==l(e,f)){c=!1;break}if(c)return o}return -1}function w(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,s,a,h,l=t[r],u=null,c=l>239?4:l>223?3:l>191?2:1;if(r+c<=n)switch(c){case 1:l<128&&(u=l);break;case 2:(192&(o=t[r+1]))==128&&(h=(31&l)<<6|63&o)>127&&(u=h);break;case 3:o=t[r+1],s=t[r+2],(192&o)==128&&(192&s)==128&&(h=(15&l)<<12|(63&o)<<6|63&s)>2047&&(h<55296||h>57343)&&(u=h);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(h=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&h<1114112&&(u=h)}null===u?(u=65533,c=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=c}var f=i,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var d="",v=0;v<p;)d+=String.fromCharCode.apply(String,f.slice(v,v+=4096));return d}function b(t,e,n){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>n)throw RangeError("Trying to access beyond buffer length")}function _(t,e,n,i,r,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw RangeError('"value" argument is out of bounds');if(n+i>t.length)throw RangeError("Index out of range")}function x(t,e,n,i,r,o){if(n+i>t.length||n<0)throw RangeError("Index out of range")}function k(t,e,n,i,o){return e*=1,n>>>=0,o||x(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function M(t,e,n,i,o){return e*=1,n>>>=0,o||x(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}n.Buffer=a,n.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,n){return h(t,e,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,n){return(l(t),t<=0)?s(t):void 0!==e?"string"==typeof n?s(t).fill(e,n):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return u(t)},a.allocUnsafeSlow=function(t){return u(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(T(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),T(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:+(i<n)},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(n=0,e=0;n<t.length;++n)e+=t[n].length;var n,i=a.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(T(o,Uint8Array))r+o.length>i.length?a.from(o).copy(i,r):Uint8Array.prototype.set.call(i,o,r);else if(a.isBuffer(o))o.copy(i,r);else throw TypeError('"list" argument must be an Array of Buffers');r+=o.length}return i},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?w(this,0,t):v.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,n,i,r){if(T(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var o=r-i,s=n-e,h=Math.min(o,s),l=this.slice(i,r),u=t.slice(e,n),c=0;c<h;++c)if(l[c]!==u[c]){o=l[c],s=u[c];break}return o<s?-1:+(s<o)},a.prototype.includes=function(t,e,n){return -1!==this.indexOf(t,e,n)},a.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},a.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},a.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r,o,s,a,h,l,u,c,f=this.length-e;if((void 0===n||n>f)&&(n=f),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return function(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a,h=parseInt(e.substr(2*s,2),16);if((a=h)!=a)break;t[n+s]=h}return s}(this,t,e,n);case"utf8":case"utf-8":return r=e,o=n,j(E(t,this.length-r),this,r,o);case"ascii":case"latin1":case"binary":return s=e,a=n,j(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(t),this,s,a);case"base64":return h=e,l=n,j(C(t),this,h,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=e,c=n,j(function(t,e){for(var n,i,r=[],o=0;o<t.length&&!((e-=2)<0);++o)i=(n=t.charCodeAt(o))>>8,r.push(n%256),r.push(i);return r}(t,this.length-u),this,u,c);default:if(p)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i=this.subarray(t,e);return Object.setPrototypeOf(i,a.prototype),i},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||b(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||b(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||b(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},a.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||b(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),r.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),r.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),r.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),r.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,n,i){if(t*=1,e>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;_(this,t,e,n,r,0)}var o=1,s=0;for(this[e]=255&t;++s<n&&(o*=256);)this[e+s]=t/o&255;return e+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,n,i){if(t*=1,e>>>=0,n>>>=0,!i){var r=Math.pow(2,8*n)-1;_(this,t,e,n,r,0)}var o=n-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,n,i){if(t*=1,e>>>=0,!i){var r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+n},a.prototype.writeIntBE=function(t,e,n,i){if(t*=1,e>>>=0,!i){var r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,n){return t*=1,e>>>=0,n||_(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,i){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r=i-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),e),r},a.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===t.length){var r,o=t.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{var s=a.isBuffer(t)?t:a.from(t,i),h=s.length;if(0===h)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<n-e;++r)this[r+e]=s[r%h]}return this};var S=/[^+/0-9A-Za-z-_]/g;function E(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],s=0;s<i;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319||s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length)&&!(r>=t.length);++r)e[r+n]=t[r];return r}function T(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var A=function(){for(var t="0123456789abcdef",e=Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)e[i+r]=t[n]+t[r];return e}()},45953,(t,e,n)=>{var i={single_source_shortest_paths:function(t,e,n){var r,o,s,a,h,l,u,c={},f={};f[e]=0;var p=i.PriorityQueue.make();for(p.push(e,0);!p.empty();)for(s in o=(r=p.pop()).value,a=r.cost,h=t[o]||{})h.hasOwnProperty(s)&&(l=a+h[s],u=f[s],(void 0===f[s]||u>l)&&(f[s]=l,p.push(s,l),c[s]=o));if(void 0!==n&&void 0===f[n])throw Error(["Could not find a path from ",e," to ",n,"."].join(""));return c},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],i=e;i;)n.push(i),t[i],i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=i},98428,(t,e,n)=>{t.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageProps",{enumerable:!0,get:function(){return h}});let i=t.r(90809),r=t.r(87690),o=t.r(8927),s=Reflect.get(i._(t.r(1948)),"default"),a=(0,r.prepareImageConfig)({deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75,90],path:"/invest/moneybox/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1});function h(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:s,imgConf:a});for(let[t,n]of Object.entries(e))void 0===n&&delete e[t];return{props:e}}},93770,(t,e,n)=>{var i=t.r(49947);o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}();var r=o.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff;function o(t,e,n){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof t?h(this,t):function(t,e,n,i){if("number"==typeof e)throw TypeError('"value" argument must not be a number');if("u">typeof ArrayBuffer&&e instanceof ArrayBuffer){var r,h,u,f,p;if(n<0||e.byteLength<n)throw RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw RangeError("'length' is out of bounds");return p=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),o.TYPED_ARRAY_SUPPORT?p.__proto__=o.prototype:p=l(t,p),p}if("string"==typeof e)return(u=(h=a(t,r=0|c(e))).write(e))!==r&&(h=h.slice(0,u)),h;if(o.isBuffer(e)){var d=0|s(e.length),v=a(t,d);return 0===v.length||e.copy(v,0,0,d),v}if(e){if("u">typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(f=e.length)!=f?a(t,0):l(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return l(t,e.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(this,t,e,n):new o(t,e,n)}function s(t){if(t>=r)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function a(t,e){var n;return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=o.prototype:(null===(n=t)&&(n=new o(e)),n.length=e),n}function h(t,e){var n=a(t,e<0?0:0|s(e));if(!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)n[i]=0;return n}function l(t,e){for(var n=e.length<0?0:0|s(e.length),i=a(t,n),r=0;r<n;r+=1)i[r]=255&e[r];return i}function u(t,e){e=e||1/0;for(var n,i=t.length,r=null,o=[],s=0;s<i;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319||s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function c(t){return o.isBuffer(t)?t.length:"u">typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length)?0:u(t).length}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"u">typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(t,e,n){void 0===e||void 0===n&&"string"==typeof e?(n=this.length,e=0):isFinite(e)&&(e|=0,isFinite(n)?n|=0:n=void 0);var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");for(var r=this,o=t,s=e,a=n,h=u(o,r.length-s),l=0;l<a&&!(l+s>=r.length)&&!(l>=h.length);++l)r[l+s]=h[l];return l},o.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=o.prototype;else{var r=e-t;n=new o(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+t]}return n},o.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,s=i-n;if(this===t&&n<e&&e<i)for(r=s-1;r>=0;--r)t[r+e]=this[r+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function(t,e,n){if("string"==typeof t){if("string"==typeof e?(e=0,n=this.length):"string"==typeof n&&(n=this.length),1===t.length){var i,r=t.charCodeAt(0);r<256&&(t=r)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var s=o.isBuffer(t)?t:new o(t),a=s.length;for(i=0;i<n-e;++i)this[i+e]=s[i%a]}return this},o.concat=function(t,e){if(!i(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a(null,0);if(void 0===e)for(n=0,e=0;n<t.length;++n)e+=t[n].length;var n,r=h(null,e),s=0;for(n=0;n<t.length;++n){var l=t[n];if(!o.isBuffer(l))throw TypeError('"list" argument must be an Array of Buffers');l.copy(r,s),s+=l.length}return r},o.byteLength=c,o.prototype._isBuffer=!0,o.isBuffer=function(t){return!!(null!=t&&t._isBuffer)},e.exports.alloc=function(t){var e=new o(t);return e.fill(0),e},e.exports.from=function(t){return new o(t)}},83827,t=>{let e;var n,i=t.i(43476),r=t.i(71645),o=t.i(48148),s=t.i(51966),a=t.i(65499),h=t.i(85900),l=t.i(19233),u=t.i(76334),c=t.i(83410);t.i(29059);var f=t.i(40797),p=t.i(35314),d=t.i(12716),v=t.i(97423);let g={slidesPerView:"auto",spaceBetween:12};function y(){let t=(0,o.f)(),e=[{number:"1",label:t("sc-moneybox.landing.about.item-1.label"),caption:t("sc-moneybox.landing.about.item-1.caption")},{number:"2",label:t("sc-moneybox.landing.about.item-2.label"),caption:t("sc-moneybox.landing.about.item-2.caption")},{number:"3",label:t("sc-moneybox.landing.about.item-3.label"),caption:t("sc-moneybox.landing.about.item-3.caption")},{number:"4",label:t("sc-moneybox.landing.about.item-4.label"),caption:t("sc-moneybox.landing.about.item-4.caption")}];return(0,i.jsxs)("div",{className:v.default.wrapper,children:[(0,i.jsx)(p.f,{className:v.default.title,as:"h2",size:"20",weight:"medium",children:t("sc-moneybox.landing.about.title")}),(0,i.jsx)(s.N,{className:v.default.listCard,children:(0,i.jsx)("ul",{className:v.default.list,children:e.map(t=>(0,i.jsxs)("li",{className:v.default.listItem,children:[(0,i.jsx)("span",{className:v.default.badge,"aria-hidden":"true",children:t.number}),(0,i.jsxs)("div",{className:v.default.content,children:[(0,i.jsx)(p.f,{className:v.default.label,as:"h3",weight:"medium",children:t.label}),(0,i.jsx)(p.f,{className:v.default.caption,as:"p",children:t.caption})]})]},t.number))})}),(0,i.jsx)("div",{className:v.default.slider,children:(0,i.jsx)(d.k,{pagination:!0,wrapperClass:v.default.sliderWrapper,options:g,children:e.map(t=>(0,i.jsx)(d.o,{className:v.default.slide,children:(0,i.jsxs)(s.N,{className:v.default.card,as:"article",children:[(0,i.jsx)("span",{className:v.default.badge,"aria-hidden":"true",children:t.number}),(0,i.jsxs)("div",{className:v.default.content,children:[(0,i.jsx)(p.f,{className:v.default.label,as:"h3",weight:"medium",children:t.label}),(0,i.jsx)(p.f,{className:v.default.caption,as:"p",children:t.caption})]})]})},t.number))})})]})}function m(){return(m=Object.assign.bind()).apply(null,arguments)}let w=function(t){return r.createElement("svg",m({width:30,height:30,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),tI||(tI=r.createElement("g",{clipPath:"url(#appgallery_svg__clip0_8664_10207)",fillRule:"evenodd",clipRule:"evenodd"},r.createElement("path",{d:"M8.418 0C2.254 0 0 2.254 0 8.416v13.168C0 27.746 2.254 30 8.418 30h13.16C27.742 30 30 27.746 30 21.584V8.416C30 2.254 27.746 0 21.582 0H8.418z",fill:"url(#appgallery_svg__paint0_linear_8664_10207)"}),r.createElement("path",{d:"M13.085 17.4h1.204l-.604-1.406-.6 1.405zm-.297.708l-.357.817h-.814L13.347 15h.703l1.723 3.925h-.835l-.353-.817h-1.797zm13.091.814h.786V15h-.786v3.922zm-3.13-1.685h1.45v-.715h-1.45v-.804h2.105v-.715h-2.89v3.922h2.965v-.716h-2.18v-.972zm-3.124.464L18.734 15h-.65l-.892 2.7-.867-2.698h-.849l1.37 3.925h.659l.893-2.578.893 2.578h.665l1.365-3.925h-.826l-.87 2.699zm-9.208-.453c0 .639-.317.98-.893.98-.579 0-.898-.351-.898-1.007v-2.218H7.83v2.245c0 1.105.614 1.738 1.684 1.738 1.08 0 1.7-.645 1.7-1.77V15h-.796v2.248zM5.928 15h.797v3.928h-.797v-1.595h-1.8v1.595h-.796V15h.797v1.584h1.8V15zM15 10c-2.757 0-5-2.243-5-5h.706A4.299 4.299 0 0015 9.293 4.299 4.299 0 0019.294 5H20c0 2.757-2.243 5-5 5z",fill:"#fff"}))),tz||(tz=r.createElement("defs",null,r.createElement("linearGradient",{id:"appgallery_svg__paint0_linear_8664_10207",x1:1500,y1:0,x2:1500,y2:3e3,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FB6361"}),r.createElement("stop",{offset:1,stopColor:"#ED3E45"})),r.createElement("clipPath",{id:"appgallery_svg__clip0_8664_10207"},r.createElement("path",{fill:"#fff",d:"M0 0h30v30H0z"})))))};function b(){return(b=Object.assign.bind()).apply(null,arguments)}let _=function(t){return r.createElement("svg",b({width:30,height:30,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),t$||(t$=r.createElement("g",{clipPath:"url(#nashstore_svg__clip0_8664_10179)"},r.createElement("path",{d:"M22.98 3.815a.278.278 0 00-.238-.419h-4.488c-.217 0-.347.22-.239.419l2.234 3.94a.281.281 0 00.477 0l2.255-3.94zm-4.75 22.099a.278.278 0 00.239.418h4.488c.217 0 .347-.22.239-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94h.021zM26.319 8.35c.217 0 .347-.22.238-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94a.278.278 0 00.239.418h4.51zm-2.492 5.173a.281.281 0 00.477 0l2.255-3.94a.278.278 0 00-.239-.419h-4.488c-.217 0-.347.22-.238.418l2.255 3.94h-.022zm5.875.792c.216 0 .346-.22.238-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94a.278.278 0 00.239.418h4.51zm-2.472 5.173a.281.281 0 00.476 0l2.255-3.94a.278.278 0 00-.238-.42h-4.488c-.217 0-.347.221-.239.42l2.255 3.94h-.022zm-5.636.397a.278.278 0 00.238.418h4.488c.217 0 .347-.22.239-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94h.022zm2.233 5.567a.281.281 0 00.477 0l2.255-3.94a.278.278 0 00-.239-.418h-4.488c-.217 0-.347.22-.238.418l2.255 3.94h-.022z",fill:"#AE2B30"}),r.createElement("path",{d:"M14.067 3.572a.278.278 0 00-.239-.418H9.34c-.217 0-.347.22-.239.418l2.234 3.94a.281.281 0 00.477 0l2.255-3.94zM8.992 25.893a.278.278 0 00.239.418h4.488c.217 0 .347-.22.238-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94h.022zm8.35-17.566c.217 0 .347-.22.239-.419l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94a.278.278 0 00.238.419h4.51zm-2.495 5.15a.281.281 0 00.476 0l2.255-3.94a.278.278 0 00-.238-.418h-4.488c-.217 0-.347.22-.239.418l2.255 3.94h-.021zm5.878.814c.217 0 .347-.22.238-.418l-2.255-3.94a.281.281 0 00-.476 0l-2.255 3.94a.278.278 0 00.238.418h4.51zm-2.472 5.151a.281.281 0 00.477 0l2.255-3.94a.278.278 0 00-.239-.418h-4.488c-.217 0-.347.22-.239.418l2.255 3.94h-.021zm-5.64.398a.278.278 0 00.239.418h4.488c.217 0 .347-.22.238-.418l-2.255-3.94a.281.281 0 00-.476 0l-2.255 3.94h.021zm2.234 5.57a.281.281 0 00.476 0l2.255-3.941a.278.278 0 00-.238-.418h-4.488c-.217 0-.347.22-.239.418l2.255 3.94h-.021z",fill:"#363789"}),r.createElement("path",{d:"M5.438 3.418A.278.278 0 005.199 3H.711c-.217 0-.347.22-.238.418l2.233 3.94a.281.281 0 00.477 0l2.255-3.94zM.039 25.74a.278.278 0 00.238.419h4.489c.217 0 .347-.22.238-.419L2.75 21.8a.281.281 0 00-.477 0L.017 25.74H.04zM8.842 8.172c.217 0 .347-.22.239-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94a.278.278 0 00.238.418h4.51zm-2.949 5.151a.281.281 0 00.477 0l2.255-3.94a.278.278 0 00-.238-.418H3.899c-.217 0-.347.22-.239.418l2.255 3.94h-.022zm5.879.814c.217 0 .347-.22.238-.418l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94a.278.278 0 00.239.418h4.51zM9.3 19.288a.281.281 0 00.477 0l2.255-3.94a.278.278 0 00-.239-.418H7.305c-.217 0-.347.22-.239.418l2.255 3.94H9.3zm-5.64.397a.278.278 0 00.239.419h4.488c.217 0 .347-.22.238-.419l-2.255-3.94a.281.281 0 00-.477 0l-2.255 3.94h.022zm2.233 5.57a.281.281 0 00.477 0l2.255-3.94a.278.278 0 00-.238-.419H3.899c-.217 0-.347.22-.239.419l2.255 3.94h-.022z",fill:"#fff"}))),tW||(tW=r.createElement("defs",null,r.createElement("clipPath",{id:"nashstore_svg__clip0_8664_10179"},r.createElement("path",{fill:"#fff",d:"M0 0h30v30H0z"})))))};function x(){return(x=Object.assign.bind()).apply(null,arguments)}let k=function(t){return r.createElement("svg",x({width:30,height:30,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),tO||(tO=r.createElement("g",{clipPath:"url(#rustore_svg__clip0_8664_10168)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4 30c-6.788 0-10.182 0-12.291-2.109S0 22.388 0 15.6v-1.2C0 7.612 0 4.218 2.109 2.109S7.612 0 14.4 0h1.2c6.788 0 10.182 0 12.291 2.109S30 7.612 30 14.399v1.2c0 6.79 0 10.183-2.109 12.292S22.388 30 15.6 30h-1.2z",fill:"#07F"}),r.createElement("path",{d:"M17.348 18.487a1.81 1.81 0 01-1.375-1.754v-9.77c0-.942.89-1.632 1.808-1.403l5.814 1.452a1.81 1.81 0 011.375 1.754v9.77c0 .942-.89 1.633-1.808 1.403l-5.814-1.452zM6.406 22.985a1.81 1.81 0 01-1.375-1.754v-9.77c0-.942.89-1.632 1.808-1.403l5.814 1.452a1.81 1.81 0 011.375 1.754v9.77c0 .942-.89 1.633-1.808 1.404l-5.814-1.453z",fill:"#fff"}),r.createElement("path",{d:"M11.879 20.737a1.81 1.81 0 01-1.375-1.754v-9.77c0-.942.89-1.632 1.808-1.403l5.814 1.452a1.81 1.81 0 011.375 1.754v9.77c0 .942-.89 1.633-1.808 1.403l-5.814-1.452z",fill:"#fff"}),r.createElement("path",{d:"M15.68 21.69a.59.59 0 01-.445-.553l-.253-7.46c-.073-.988-.806-1.774-1.572-2.005a.103.103 0 00-.114.042.087.087 0 00.02.117c.19.147.71.625.71 1.449l-.002 7.99 1.656.42zm5.473-2.253a.588.588 0 01-.445-.55l-.253-7.46c-.073-.988-.806-1.773-1.572-2.005a.103.103 0 00-.115.042.087.087 0 00.02.117c.19.147.71.625.71 1.449l-.001 7.993 1.656.414z",fill:"#07F"}))),tU||(tU=r.createElement("defs",null,r.createElement("clipPath",{id:"rustore_svg__clip0_8664_10168"},r.createElement("path",{fill:"#fff",d:"M0 0h30v30H0z"})))))};t.i(60749);var M=t.i(89013),S=t.i(43732),E=t.i(42950);let C="ym_client_id";async function j(){let t=await new Promise(t=>{let e=Date.now();!function n(){"function"==typeof window.ym?window.ym(0x3683b69,"getClientID",e=>{t(e||null)}):Date.now()-e<5e3?setTimeout(n,100):t(null)}()});return t&&function(t){if(!t)return;let e=localStorage.getItem(C);e?e.split(",").includes(t)||localStorage.setItem(C,`${e},${t}`):localStorage.setItem(C,t)}(t),t}function T(){let t=localStorage.getItem(C);return t?{ym_client_id:t}:{}}var A=t.i(70817),L=t.i(7670),N=t.i(73134),P=t.i(12278);let R=Array.from({length:64},(t,e)=>e);function B({className:t,width:e=190,height:n=190,alt:s}){let a=(0,o.f)(),[l,u]=(0,r.useState)(""),[c,f]=(0,r.useState)(!1),p=a("sc-moneybox.landing.app-banner.qr.href");return((0,r.useEffect)(()=>{!async function(){f(!1),await j();let t=(0,A.q)(),n=T(),i=(0,h.s)(p,{...t,...n});N.default.toDataURL(i,{width:e,margin:1.25,errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}}).then(u).catch(()=>f(!0))}()},[p,e]),c)?null:(0,i.jsxs)("div",{className:t,style:{width:e,height:n},children:[!l&&(0,i.jsx)("div",{className:P.default.qrGrid,children:R.map(t=>(0,i.jsx)("div",{className:P.default.qrCell,style:{"--_index":t}},t))}),l&&(0,i.jsx)("img",{className:(0,L.f)(P.default.image,P.default.fadeIn),width:e,height:n,src:l,alt:s||"QR код"})]})}var I=t.i(3984);function z(){let t=(0,o.f)(),e=`${E.f}/landing/app`;async function n(t,e){t.preventDefault();let n=t.currentTarget.getAttribute("href");if(!n)return;await j();let i=(0,A.q)(),r=T(),o=(0,h.s)(n,{...i,...r});(0,S.f)("lk_fu_finpodushka",e),window.open(o,"_blank")}return(0,i.jsx)("article",{children:(0,i.jsx)(s.t,{children:(0,i.jsxs)("div",{className:I.default.wrapper,children:[(0,i.jsxs)("picture",{children:[(0,i.jsx)("source",{media:"(min-width: 1280px)",type:"image/avif",srcSet:`${e}/xl-1x.avif 1x, ${e}/xl-2x.avif 2x`}),(0,i.jsx)("source",{media:"(min-width: 1280px)",type:"image/webp",srcSet:`${e}/xl-1x.webp 1x, ${e}/xl-2x.webp 2x`}),(0,i.jsx)("source",{media:"(min-width: 1280px)",srcSet:`${e}/xl-1x.jpg 1x, ${e}/xl-2x.jpg 2x`}),(0,i.jsx)("source",{media:"(min-width: 768px)",type:"image/avif",srcSet:`${e}/m-1x.avif 1x, ${e}/m-2x.avif 2x`}),(0,i.jsx)("source",{media:"(min-width: 768px)",type:"image/webp",srcSet:`${e}/m-1x.webp 1x, ${e}/m-2x.webp 2x`}),(0,i.jsx)("source",{media:"(min-width: 768px)",srcSet:`${e}/m-1x.jpg 1x, ${e}/m-2x.jpg 2x`}),(0,i.jsx)("source",{media:"(min-width: 600px)",type:"image/avif",srcSet:`${e}/s-1x.avif 1x, ${e}/s-2x.avif 2x`}),(0,i.jsx)("source",{media:"(min-width: 600px)",type:"image/webp",srcSet:`${e}/s-1x.webp 1x, ${e}/s-2x.webp 2x`}),(0,i.jsx)("source",{media:"(min-width: 600px)",srcSet:`${e}/s-1x.jpg 1x, ${e}/s-2x.jpg 2x`}),(0,i.jsx)("source",{media:"(min-width: 376px)",type:"image/avif",srcSet:`${e}/xxs-1x.avif 1x, ${e}/xxs-2x.avif 2x`}),(0,i.jsx)("source",{media:"(min-width: 376px)",type:"image/webp",srcSet:`${e}/xxs-1x.webp 1x, ${e}/xxs-2x.webp 2x`}),(0,i.jsx)("source",{media:"(min-width: 376px)",srcSet:`${e}/xxs-1x.jpg 1x, ${e}/xxs-2x.jpg 2x`}),(0,i.jsx)("source",{type:"image/avif",srcSet:`${e}/xxs-1x.avif 1x, ${e}/xxs-2x.avif 2x`}),(0,i.jsx)("source",{type:"image/webp",srcSet:`${e}/xxs-1x.webp 1x, ${e}/xxs-2x.webp 2x`}),(0,i.jsx)("img",{className:I.default.bgImage,src:`${e}/xxs-1x.jpg`,srcSet:`${e}/xxs-1x.jpg 1x, ${e}/xxs-2x.jpg 2x`,alt:""})]}),(0,i.jsx)("div",{className:I.default.ageAlertWrapper,children:(0,i.jsx)(M.f,{className:I.default.ageAlert,type:"3",children:"+18"})}),(0,i.jsxs)("div",{className:I.default.actions,children:[(0,i.jsx)(a.f,{className:I.default.title,type:"h2",children:t("sc-moneybox.landing.app-banner.title")}),(0,i.jsxs)("div",{className:I.default.buttons,children:[(0,i.jsx)(d.K,{className:I.default.button,as:"a",href:t("sc-moneybox.landing.app-banner.rustore.href"),target:"_blank",iconLeft:(0,i.jsx)(k,{}),size:"xs",onClick:t=>n(t,"click_rustore"),children:t("sc-moneybox.landing.app-banner.rustore.label")}),(0,i.jsx)(d.K,{className:I.default.button,as:"a",href:t("sc-moneybox.landing.app-banner.nashstore.href"),target:"_blank",iconLeft:(0,i.jsx)(_,{}),size:"xs",onClick:t=>n(t,"click_nashstore"),children:t("sc-moneybox.landing.app-banner.nashstore.label")}),(0,i.jsx)(d.K,{className:I.default.button,as:"a",href:t("sc-moneybox.landing.app-banner.appgallery.href"),target:"_blank",iconLeft:(0,i.jsx)(w,{}),size:"xs",onClick:t=>n(t,"click_appgallery"),children:t("sc-moneybox.landing.app-banner.appgallery.label")})]})]}),(0,i.jsx)(B,{className:I.default.qr,alt:"QR код для скачивания приложения"})]})})})}var $=t.i(28569),W=t.i(30755),W=W,O=t.i(51712);function U(t){return 12===t?"1 год":3===t?"3 месяца":`${t} месяцев`}function D({yield:t,onCtaButtonClick:e}){let n=(0,o.f)(),[a,h]=(0,r.useState)(3e5),[l,u]=(0,r.useState)(1e4),[c,v]=(0,r.useState)(12),g="true"===(0,f.f)("NEXT_PUBLIC_FEATURE_TOGGLE_LOGIN_WIDGET_ENABLED")?{}:{as:"a",href:n("sc-moneybox.landing.cta-button.href"),rel:"noreferrer",target:"_blank"},y=n("sc-moneybox.landing.calculator.input.label"),m=n("sc-moneybox.landing.calculator.total.label"),w=a>=100?void 0:"error",b=function({initialAmount:t,monthlyAmount:e,strategyYield:n,termMonths:i}){return Math.round(Math.max(n,0)/100*(t+e*i)*(i/12))}({initialAmount:a,monthlyAmount:l,strategyYield:t,termMonths:c}),_=a+l*c+b,x=(c-3)/9*100,k={"--slider-progress":`${x}%`};function M(){return(0,i.jsxs)("div",{className:O.default.summary,children:[(0,i.jsx)(p.f,{className:O.default.summaryTitle,as:"h3",size:"20",weight:"medium",children:m}),(0,i.jsxs)("div",{className:O.default.totalWrapper,children:[(0,i.jsxs)(p.f,{className:O.default.total,as:"p",size:"32",weight:"medium",children:["+",(0,$.j)(b)]}),(0,i.jsxs)("dl",{className:O.default.metrics,children:[(0,i.jsxs)("div",{className:O.default.metricItem,children:[(0,i.jsx)(p.f,{className:O.default.metricKey,as:"dt",size:"16",children:n("sc-moneybox.landing.calculator.yield-rate.label")}),(0,i.jsx)("span",{className:O.default.metricDots,"aria-hidden":"true"}),(0,i.jsx)(p.f,{className:O.default.metricValue,as:"dd",size:"16",children:n("sc-moneybox.landing.calculator.yield-rate.value")})]}),(0,i.jsxs)("div",{className:O.default.metricItem,children:[(0,i.jsx)(p.f,{className:O.default.metricKey,as:"dt",size:"16",children:n("sc-moneybox.landing.calculator.sum.label")}),(0,i.jsx)("span",{className:O.default.metricDots,"aria-hidden":"true"}),(0,i.jsx)(p.f,{className:O.default.metricValue,as:"dd",size:"16",children:(0,$.j)(_)})]})]})]}),(0,i.jsx)(p.f,{className:O.default.disclaimer,as:"p",size:"12",children:n("sc-moneybox.landing.calculator.disclaimer")})]})}return(0,i.jsxs)(s.N,{className:O.default.calculatorWrapper,as:"article",children:[(0,i.jsxs)("div",{className:O.default.controlsCard,children:[(0,i.jsxs)("div",{className:O.default.controlsBody,children:[(0,i.jsx)(p.f,{className:O.default.controlsTitleDesktop,as:"h3",size:"20",weight:"medium",children:y}),(0,i.jsx)(p.f,{className:O.default.controlsTitleMobile,as:"h3",size:"20",weight:"medium",children:m}),(0,i.jsxs)("div",{className:O.default.fields,children:[(0,i.jsxs)("div",{className:O.default.amountFields,children:[(0,i.jsx)(W.F,{className:O.default.formField,label:n("sc-moneybox.landing.calculator.initial-amount.label"),caption:"error"===w?n("sc-moneybox.landing.calculator.input.caption"):void 0,captionState:w,children:(0,i.jsx)(d.$,{className:O.default.input,value:a,label:n("sc-moneybox.landing.calculator.initial-amount.label"),unit:"₽",decimals:"never",min:100,size:"s",withoutControls:!0,onChange:function(t){h(Math.max(0,t??0))},onBlur:()=>(0,S.f)("lk_fu_finpodushka",`${a}`)})}),(0,i.jsx)(W.F,{className:O.default.formField,label:n("sc-moneybox.landing.calculator.monthly-amount.label"),children:(0,i.jsx)(d.$,{className:O.default.input,value:l,label:n("sc-moneybox.landing.calculator.monthly-amount.label"),unit:"₽",decimals:"never",min:0,size:"s",withoutControls:!0,onChange:function(t){u(Math.max(0,t??0))}})})]}),(0,i.jsxs)("div",{className:O.default.termBlock,children:[(0,i.jsxs)("div",{className:O.default.termHeader,children:[(0,i.jsx)(p.f,{className:O.default.termLabel,as:"span",size:"16",children:n("sc-moneybox.landing.calculator.term.label")}),(0,i.jsx)(p.f,{className:O.default.termValue,as:"span",size:"16",weight:"medium",children:U(c)})]}),(0,i.jsx)("input",{className:O.default.slider,style:k,type:"range",min:3,max:12,step:3,value:c,"aria-label":n("sc-moneybox.landing.calculator.term.label"),"aria-valuetext":U(c),onChange:function(t){v(Number(t.target.value))}})]})]})]}),(0,i.jsx)("div",{className:O.default.desktopButtonWrapper,children:(0,i.jsx)(d.K,{className:O.default.button,label:n("sc-moneybox.landing.cta-button.label"),size:"s",...g,onClick:function(){e(),(0,S.f)("lk_fu_finpodushka","click_otkryt_finpodushku",{eventValue:a})}})}),(0,i.jsx)("div",{className:O.default.mobileSummary,children:M()})]}),(0,i.jsx)("div",{className:O.default.summaryCard,children:M()})]})}var q=t.i(62965),F=t.i(60902);function G({index:t,isOpen:e,item:n,onToggle:r}){let o=`landing-faq-answer-${t}`,a=`landing-faq-question-${t}`;return(0,i.jsxs)(s.N,{className:F.default.item,as:"li",children:[(0,i.jsxs)("button",{id:a,className:F.default.button,type:"button","aria-expanded":e,"aria-controls":o,onClick:()=>r(t),children:[(0,i.jsx)("span",{className:F.default.question,children:n.question}),(0,i.jsx)("span",{className:(0,L.f)(F.default.icon,{[F.default.iconOpen]:e}),"aria-hidden":"true",children:(0,i.jsx)(q.u,{boxSize:28})})]}),(0,i.jsx)("div",{id:o,className:(0,L.f)(F.default.answer,{[F.default.answerOpen]:e}),"aria-labelledby":a,"aria-hidden":!e,children:(0,i.jsx)("div",{className:F.default.answerInner,children:(0,i.jsx)(p.f,{className:F.default.answerText,as:"p",children:n.answer})})})]})}function V({faq:t}){let[e,n]=(0,r.useState)(0),o=t?.value?.blocks?.[0],a=o?.faqs??[],h=o?.readAllText?.link,l=o?.readAllText?.text;if(!o||!a.length)return null;function u(t){n(e=>e===t?null:t)}return(0,i.jsx)("section",{className:F.default.section,children:(0,i.jsx)(s.t,{children:(0,i.jsxs)("div",{className:F.default.wrapper,children:[(0,i.jsx)(p.f,{className:F.default.title,as:"h2",children:o.title}),(0,i.jsx)("ul",{className:F.default.list,children:a.map((t,n)=>(0,i.jsx)(G,{index:n,isOpen:n===e,item:t,onToggle:u},t.uniqueField||t.question))}),h&&l?(0,i.jsx)(d.L,{className:F.default.readAll,href:h,children:l}):null]})})})}var K=t.i(25164);t.i(51922);var W=W,Y={allowDownsampling:!0},X=function(){function t(t,e){var n=this;this._resolutionMediaQueryList=null,this._resolutionListener=function(t){return n._onResolutionChanged()},this._canvasConfiguredListeners=[],this.canvas=t,this._canvasSize={width:this.canvas.clientWidth,height:this.canvas.clientHeight},this._options=e,this._configureCanvas(),this._installResolutionListener()}return t.prototype.destroy=function(){this._canvasConfiguredListeners.length=0,this._uninstallResolutionListener(),this.canvas=null},Object.defineProperty(t.prototype,"canvasSize",{get:function(){return{width:this._canvasSize.width,height:this._canvasSize.height}},enumerable:!0,configurable:!0}),t.prototype.resizeCanvas=function(t){this._canvasSize={width:t.width,height:t.height},this._configureCanvas()},Object.defineProperty(t.prototype,"pixelRatio",{get:function(){var t=this.canvas.ownerDocument.defaultView;if(null==t)throw Error("No window is associated with the canvas");return t.devicePixelRatio>1||this._options.allowDownsampling?t.devicePixelRatio:1},enumerable:!0,configurable:!0}),t.prototype.subscribeCanvasConfigured=function(t){this._canvasConfiguredListeners.push(t)},t.prototype.unsubscribeCanvasConfigured=function(t){this._canvasConfiguredListeners=this._canvasConfiguredListeners.filter(function(e){return e!=t})},t.prototype._configureCanvas=function(){var t=this.pixelRatio;this.canvas.style.width=this._canvasSize.width+"px",this.canvas.style.height=this._canvasSize.height+"px",this.canvas.width=this._canvasSize.width*t,this.canvas.height=this._canvasSize.height*t,this._emitCanvasConfigured()},t.prototype._emitCanvasConfigured=function(){var t=this;this._canvasConfiguredListeners.forEach(function(e){return e.call(t)})},t.prototype._installResolutionListener=function(){if(null!==this._resolutionMediaQueryList)throw Error("Resolution listener is already installed");var t=this.canvas.ownerDocument.defaultView;if(null==t)throw Error("No window is associated with the canvas");var e=t.devicePixelRatio;this._resolutionMediaQueryList=t.matchMedia("all and (resolution: "+e+"dppx)"),this._resolutionMediaQueryList.addListener(this._resolutionListener)},t.prototype._uninstallResolutionListener=function(){null!==this._resolutionMediaQueryList&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},t.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},t.prototype._onResolutionChanged=function(){this._configureCanvas(),this._reinstallResolutionListener()},t}();function H(t,e){var n,i=((n={})[0]=[],n[1]=[t.lineWidth,t.lineWidth],n[2]=[2*t.lineWidth,2*t.lineWidth],n[3]=[6*t.lineWidth,6*t.lineWidth],n[4]=[t.lineWidth,4*t.lineWidth],n)[e];t.setLineDash(i)}function Z(t,e,n,i){t.beginPath();var r=t.lineWidth%2?.5:0;t.moveTo(n,e+r),t.lineTo(i,e+r),t.stroke()}(tR=tD||(tD={}))[tR.Simple=0]="Simple",tR[tR.WithSteps=1]="WithSteps",(tB=tq||(tq={}))[tB.Solid=0]="Solid",tB[tB.Dotted=1]="Dotted",tB[tB.Dashed=2]="Dashed",tB[tB.LargeDashed=3]="LargeDashed",tB[tB.SparseDotted=4]="SparseDotted";var J=function(t,e){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Q(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}J(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var tt=function(){return(tt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function te(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function tn(t,e){if(!t)throw Error("Assertion failed"+(e?": "+e:""))}function ti(t){if(void 0===t)throw Error("Value is undefined");return t}function tr(t){if(null===t)throw Error("Value is null");return t}function to(t){return tr(ti(t))}function ts(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++){var r=e[i];for(var o in r)void 0!==r[o]&&("object"!=typeof r[o]||void 0===t[o]?t[o]=r[o]:ts(t[o],r[o]))}return t}function ta(t){return"number"==typeof t&&isFinite(t)}function th(t){return"number"==typeof t&&t%1==0}function tl(t){return"string"==typeof t}function tu(t){return"boolean"==typeof t}function tc(t){var e,n,i;if(!t||"object"!=typeof t)return t;for(n in e=Array.isArray(t)?[]:{},t)t.hasOwnProperty(n)&&(i=t[n],e[n]=i&&"object"==typeof i?tc(i):i);return e}function tf(t){return null!==t}function tp(t){return null===t?void 0:t}var td=function(){function t(){this.t=[]}return t.prototype.i=function(t){this.t=t},t.prototype.h=function(t,e,n,i){this.t.forEach(function(r){t.save(),r.h(t,e,n,i),t.restore()})},t}(),tv=function(){function t(){}return t.prototype.h=function(t,e,n,i){t.save(),t.scale(e,e),this.u(t,n,i),t.restore()},t.prototype.o=function(t,e,n,i){t.save(),t.scale(e,e),this.l(t,n,i),t.restore()},t.prototype.l=function(t,e,n){},t}(),tg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.v=null,e}return Q(e,t),e.prototype._=function(t){this.v=t},e.prototype.u=function(t){if(null!==this.v&&null!==this.v.M){var e=this.v.M,n=this.v,i=function(i){t.beginPath();for(var r=e.to-1;r>=e.from;--r){var o=n.m[r];t.moveTo(o.p,o.g),t.arc(o.p,o.g,i,0,2*Math.PI)}t.fill()};t.fillStyle=n.k,i(n.C+2),t.fillStyle=n.N,i(n.C)}},e}(tv);function ty(){return{m:[{p:0,g:0,S:0,D:0}],N:"",k:"",C:0,M:null}}var tm={from:0,to:1},tw=function(){function t(t,e){this.A=new td,this.T=[],this.B=[],this.L=!0,this.F=t,this.V=e,this.A.i(this.T)}return t.prototype.O=function(t){var e=this.F.W();e.length!==this.T.length&&(this.B=e.map(ty),this.T=this.B.map(function(t){var e=new tg;return e._(t),e}),this.A.i(this.T)),this.L=!0},t.prototype.P=function(t,e,n){return this.L&&(this.R(t),this.L=!1),this.A},t.prototype.R=function(t){var e=this,n=this.F.W(),i=this.V.I(),r=this.F.j();n.forEach(function(n,o){var s,a=e.B[o],h=n.q(i);if(null!==h&&n.U()){var l=tr(n.H());a.N=h.Y,a.C=h.C,a.m[0].D=h.D,a.m[0].g=n.$().K(h.D,l.X),a.k=null!=(s=h.Z)?s:e.F.J(a.m[0].g/t),a.m[0].S=i,a.m[0].p=r.G(i),a.M=tm}else a.M=null})},t}(),tb=function(){function t(t){this.tt=t}return t.prototype.h=function(t,e,n,i){if(null!==this.tt){var r=this.tt.it.U,o=this.tt.nt.U;if(r||o){t.save();var s,a=Math.round(this.tt.p*e),h=Math.round(this.tt.g*e),l=Math.ceil(this.tt.st*e),u=Math.ceil(this.tt.ht*e);t.lineCap="butt",r&&a>=0&&(t.lineWidth=Math.floor(this.tt.it.rt*e),t.strokeStyle=this.tt.it.et,t.fillStyle=this.tt.it.et,H(t,this.tt.it.ut),t.beginPath(),s=t.lineWidth%2?.5:0,t.moveTo(a+s,0),t.lineTo(a+s,u),t.stroke()),o&&h>=0&&(t.lineWidth=Math.floor(this.tt.nt.rt*e),t.strokeStyle=this.tt.nt.et,t.fillStyle=this.tt.nt.et,H(t,this.tt.nt.ut),Z(t,h,0,l)),t.restore()}}},t}(),t_=function(){function t(t){this.L=!0,this.at={it:{rt:1,ut:0,et:"",U:!1},nt:{rt:1,ut:0,et:"",U:!1},st:0,ht:0,p:0,g:0},this.ot=new tb(this.at),this.lt=t}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,e){return this.L&&(this.R(),this.L=!1),this.ot},t.prototype.R=function(){var t=this.lt.U(),e=tr(this.lt.ft()),n=e.vt().ct().crosshair,i=this.at;i.nt.U=t&&this.lt._t(e),i.it.U=t&&this.lt.dt(),i.nt.rt=n.horzLine.width,i.nt.ut=n.horzLine.style,i.nt.et=n.horzLine.color,i.it.rt=n.vertLine.width,i.it.ut=n.vertLine.style,i.it.et=n.vertLine.color,i.st=e.wt(),i.ht=e.Mt(),i.p=this.lt.bt(),i.g=this.lt.gt()},t}(),tx={khaki:"#f0e68c",azure:"#f0ffff",aliceblue:"#f0f8ff",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",gray:"#808080",green:"#008000",honeydew:"#f0fff0",floralwhite:"#fffaf0",lightblue:"#add8e6",lightcoral:"#f08080",lemonchiffon:"#fffacd",hotpink:"#ff69b4",lightyellow:"#ffffe0",greenyellow:"#adff2f",lightgoldenrodyellow:"#fafad2",limegreen:"#32cd32",linen:"#faf0e6",lightcyan:"#e0ffff",magenta:"#f0f",maroon:"#800000",olive:"#808000",orange:"#ffa500",oldlace:"#fdf5e6",mediumblue:"#0000cd",transparent:"#0000",lime:"#0f0",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",midnightblue:"#191970",orchid:"#da70d6",mediumorchid:"#ba55d3",mediumturquoise:"#48d1cc",orangered:"#ff4500",royalblue:"#4169e1",powderblue:"#b0e0e6",red:"#f00",coral:"#ff7f50",turquoise:"#40e0d0",white:"#fff",whitesmoke:"#f5f5f5",wheat:"#f5deb3",teal:"#008080",steelblue:"#4682b4",bisque:"#ffe4c4",aquamarine:"#7fffd4",aqua:"#0ff",sienna:"#a0522d",silver:"#c0c0c0",springgreen:"#00ff7f",antiquewhite:"#faebd7",burlywood:"#deb887",brown:"#a52a2a",beige:"#f5f5dc",chocolate:"#d2691e",chartreuse:"#7fff00",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cadetblue:"#5f9ea0",tomato:"#ff6347",fuchsia:"#f0f",blue:"#00f",salmon:"#fa8072",blanchedalmond:"#ffebcd",slateblue:"#6a5acd",slategray:"#708090",thistle:"#d8bfd8",tan:"#d2b48c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",blueviolet:"#8a2be2",black:"#000",darkmagenta:"#8b008b",darkslateblue:"#483d8b",darkkhaki:"#bdb76b",darkorchid:"#9932cc",darkorange:"#ff8c00",darkgreen:"#006400",darkred:"#8b0000",dodgerblue:"#1e90ff",darkslategray:"#2f4f4f",dimgray:"#696969",deepskyblue:"#00bfff",firebrick:"#b22222",forestgreen:"#228b22",indigo:"#4b0082",ivory:"#fffff0",lavenderblush:"#fff0f5",feldspar:"#d19275",indianred:"#cd5c5c",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightskyblue:"#87cefa",lightslategray:"#789",lightslateblue:"#8470ff",snow:"#fffafa",lightseagreen:"#20b2aa",lightsalmon:"#ffa07a",darksalmon:"#e9967a",darkviolet:"#9400d3",mediumpurple:"#9370d8",mediumaquamarine:"#66cdaa",skyblue:"#87ceeb",lavender:"#e6e6fa",lightsteelblue:"#b0c4de",mediumvioletred:"#c71585",mintcream:"#f5fffa",navajowhite:"#ffdead",navy:"#000080",olivedrab:"#6b8e23",palevioletred:"#d87093",violetred:"#d02090",yellow:"#ff0",yellowgreen:"#9acd32",lawngreen:"#7cfc00",pink:"#ffc0cb",paleturquoise:"#afeeee",palegoldenrod:"#eee8aa",darkolivegreen:"#556b2f",darkseagreen:"#8fbc8f",darkturquoise:"#00ced1",peachpuff:"#ffdab9",deeppink:"#ff1493",violet:"#ee82ee",palegreen:"#98fb98",mediumseagreen:"#3cb371",peru:"#cd853f",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",purple:"#800080",seagreen:"#2e8b57",seashell:"#fff5ee",papayawhip:"#ffefd5",mediumslateblue:"#7b68ee",plum:"#dda0dd",mediumspringgreen:"#00fa9a"};function tk(t){return t<0?0:t>255?255:Math.round(t)||0}function tM(t){return t<=0||t>0?t<0?0:t>1?1:Math.round(1e4*t)/1e4:0}var tS=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,tE=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,tC=/^rgb\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*\)$/,tj=/^rgba\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?[\d]{0,10}(?:\.\d+)?)\s*\)$/;function tT(t){var e;if((t=t.toLowerCase())in tx&&(t=tx[t]),e=tj.exec(t)||tC.exec(t))return[tk(parseInt(e[1],10)),tk(parseInt(e[2],10)),tk(parseInt(e[3],10)),tM(e.length<5?1:parseFloat(e[4]))];if(e=tE.exec(t))return[tk(parseInt(e[1],16)),tk(parseInt(e[2],16)),tk(parseInt(e[3],16)),1];if(e=tS.exec(t))return[tk(17*parseInt(e[1],16)),tk(17*parseInt(e[2],16)),tk(17*parseInt(e[3],16)),1];throw Error("Cannot parse color: "+t)}function tA(t){var e=tT(t);return{yt:"rgb("+e[0]+", "+e[1]+", "+e[2]+")",kt:.199*e[0]+.687*e[1]+.114*e[2]>160?"black":"white"}}function tL(t,e,n){t.save(),t.scale(e,e),n(),t.restore()}function tN(t,e,n,i,r,o){t.save(),t.globalCompositeOperation="copy",t.fillStyle=o,t.fillRect(e,n,i,r),t.restore()}function tP(t,e,n,i,r,o,s){t.save(),t.globalCompositeOperation="copy";var a=t.createLinearGradient(0,0,0,r);a.addColorStop(0,o),a.addColorStop(1,s),t.fillStyle=a,t.fillRect(e,n,i,r),t.restore()}var tR,tB,tI,tz,t$,tW,tO,tU,tD,tq,tF,tG=function(){function t(t,e){this._(t,e)}return t.prototype._=function(t,e){this.tt=t,this.Ct=e},t.prototype.h=function(t,e,n,i,r,o){if(this.tt.U){t.font=e.Nt;var s=this.tt.xt||!this.tt.St?e.Dt:0,a=e.At,h=e.Tt,l=e.Bt,u=e.Lt,c=e.Ft,f=this.tt.Et,p=Math.ceil(n.Vt(t,f)),d=e.Ot,v=e.Wt+h+l,g=Math.ceil(.5*v),y=a+p+u+c+s,m=this.Ct.zt;this.Ct.Pt&&(m=this.Ct.Pt);var w,b,_=(m=Math.round(m))-g,x=_+v,k="right"===r,M=k?i:0,S=Math.ceil(i*o),E=M;if(t.fillStyle=this.Ct.yt,t.lineWidth=1,t.lineCap="butt",f){k?(w=M-s,b=(E=M-y)+c):(E=M+y,w=M+s,b=M+a+s+u);var C=Math.max(1,Math.floor(o)),j=Math.max(1,Math.floor(a*o)),T=k?S:0,A=Math.round(_*o),L=Math.round(E*o),N=Math.round(m*o)-Math.floor(.5*o),P=N+C+(N-A),R=Math.round(w*o);t.save(),t.beginPath(),t.moveTo(T,A),t.lineTo(L,A),t.lineTo(L,P),t.lineTo(T,P),t.fill(),t.fillStyle=this.tt.Z,t.fillRect(k?S-j:0,A,j,P-A),this.tt.xt&&(t.fillStyle=this.Ct.et,t.fillRect(T,N,R-T,C)),t.textAlign="left",t.fillStyle=this.Ct.et,tL(t,o,function(){t.fillText(f,b,x-l-d)}),t.restore()}}},t.prototype.Mt=function(t,e){return this.tt.U?t.Wt+t.Tt+t.Bt:0},t}(),tV=function(){function t(t){this.Rt={zt:0,et:"#FFF",yt:"#000"},this.It={Et:"",U:!1,xt:!0,St:!1,Z:""},this.jt={Et:"",U:!1,xt:!1,St:!0,Z:""},this.L=!0,this.qt=new(t||tG)(this.It,this.Rt),this.Ut=new(t||tG)(this.jt,this.Rt)}return t.prototype.Et=function(){return this.It.Et},t.prototype.zt=function(){return this.Ht(),this.Rt.zt},t.prototype.O=function(){this.L=!0},t.prototype.Mt=function(t,e){return void 0===e&&(e=!1),Math.max(this.qt.Mt(t,e),this.Ut.Mt(t,e))},t.prototype.Yt=function(){return this.Rt.Pt||0},t.prototype.Kt=function(t){this.Rt.Pt=t},t.prototype.$t=function(){return this.Ht(),this.It.U||this.jt.U},t.prototype.Xt=function(){return this.Ht(),this.It.U},t.prototype.P=function(t){return this.Ht(),this.It.xt=this.It.xt&&t.ct().drawTicks,this.jt.xt=this.jt.xt&&t.ct().drawTicks,this.qt._(this.It,this.Rt),this.Ut._(this.jt,this.Rt),this.qt},t.prototype.Zt=function(){return this.Ht(),this.qt._(this.It,this.Rt),this.Ut._(this.jt,this.Rt),this.Ut},t.prototype.Ht=function(){this.L&&(this.It.xt=!0,this.jt.xt=!1,this.Jt(this.It,this.jt,this.Rt))},t}(),tK=function(t){function e(e,n,i){var r=t.call(this)||this;return r.lt=e,r.Gt=n,r.Qt=i,r}return Q(e,t),e.prototype.Jt=function(t,e,n){t.U=!1;var i=this.lt.ct().horzLine;if(i.labelVisible){var r=this.Gt.H();if(this.lt.U()&&!this.Gt.ti()&&null!==r){var o=tA(i.labelBackgroundColor);n.yt=o.yt,n.et=o.kt;var s=this.Qt(this.Gt);n.zt=s.zt,t.Et=this.Gt.ii(s.D,r),t.U=!0}}},e}(tV),tY=/[1-9]/g,tX=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,e,n){var i=this;if(null!==this.tt&&!1!==this.tt.U&&0!==this.tt.Et.length){t.font=e.Nt;var r=Math.round(e.ni.Vt(t,this.tt.Et,tY));if(!(r<=0)){t.save();var o=e.si,s=r+2*o,a=s/2,h=this.tt.wt,l=this.tt.zt,u=Math.floor(l-a)+.5;u<0?(l+=Math.abs(0-u),u=Math.floor(l-a)+.5):u+s>h&&(l-=Math.abs(h-(u+s)),u=Math.floor(l-a)+.5);var c=u+s,f=0+e.At+e.Tt+e.Wt+e.Bt;t.fillStyle=this.tt.yt;var p=Math.round(u*n),d=Math.round(0*n),v=Math.round(c*n),g=Math.round(f*n);t.fillRect(p,d,v-p,g-d);var y=Math.round(this.tt.zt*n),m=Math.round((d+e.At+e.Dt)*n);t.fillStyle=this.tt.et;var w=Math.max(1,Math.floor(n)),b=Math.floor(.5*n);t.fillRect(y-b,d,w,m-d);var _=f-e.Ot-e.Bt;t.textAlign="left",t.fillStyle=this.tt.et,tL(t,n,function(){t.fillText(tr(i.tt).Et,u+o,_)}),t.restore()}}},t}(),tH=function(){function t(t,e,n){this.L=!0,this.ot=new tX,this.at={U:!1,yt:"#4c525e",et:"white",Et:"",wt:0,zt:0/0},this.V=t,this.hi=e,this.Qt=n}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(){return this.L&&(this.R(),this.L=!1),this.ot._(this.at),this.ot},t.prototype.R=function(){var t=this.at;t.U=!1;var e=this.V.ct().vertLine;if(e.labelVisible){var n=this.hi.j();if(!n.ti()){var i=n.ri(this.V.I());t.wt=n.wt();var r=this.Qt();if(r.S){t.zt=r.zt,t.Et=n.ei(tr(i)),t.U=!0;var o=tA(e.labelBackgroundColor);t.yt=o.yt,t.et=o.kt}}}},t}(),tZ=function(){function t(){this.ui=null,this.ai=0}return t.prototype.oi=function(){return this.ai},t.prototype.li=function(t){this.ai=t},t.prototype.$=function(){return this.ui},t.prototype.fi=function(t){this.ui=t},t.prototype.ci=function(){return[]},t.prototype.U=function(){return!0},t}();(ei=tF||(tF={}))[ei.Normal=0]="Normal",ei[ei.Magnet=1]="Magnet";var tJ=function(t){function e(e,n){var i,r,o=t.call(this)||this;o.vi=null,o._i=0/0,o.di=0,o.wi=!0,o.Mi=new Map,o.bi=!1,o.mi=0/0,o.pi=0/0,o.gi=0/0,o.yi=0/0,o.hi=e,o.ki=n,o.Ci=new tw(e,o),o.Ni=function(t){var e=o.pi,n=o._i;if(t===tr(o.vi).xi())return{D:n,zt:e};var i=tr(t.H());return{D:t.Si(e,i),zt:e}};var s=(i=function(){return o.di},r=function(){return o.bt()},function(){return{S:o.hi.j().ri(i()),zt:r()}});return o.Di=new tH(o,e,s),o.Ai=new t_(o),o}return Q(e,t),e.prototype.ct=function(){return this.ki},e.prototype.Ti=function(t,e){this.gi=t,this.yi=e},e.prototype.Bi=function(){this.gi=0/0,this.yi=0/0},e.prototype.Li=function(){return this.gi},e.prototype.Fi=function(){return this.yi},e.prototype.Ei=function(t,e,n){this.bi||(this.bi=!0),this.wi=!0,this.Vi(t,e,n)},e.prototype.I=function(){return this.di},e.prototype.bt=function(){return this.mi},e.prototype.gt=function(){return this.pi},e.prototype.U=function(){return this.wi},e.prototype.Oi=function(){this.wi=!1,this.Wi(),this._i=0/0,this.mi=0/0,this.pi=0/0,this.vi=null,this.Bi()},e.prototype.zi=function(t){return null!==this.vi?[this.Ai,this.Ci]:[]},e.prototype._t=function(t){return t===this.vi&&this.ki.horzLine.visible},e.prototype.dt=function(){return this.ki.vertLine.visible},e.prototype.Pi=function(t,e){this.wi&&this.vi===t||this.Mi.clear();var n=[];return this.vi===t&&n.push(this.Ri(this.Mi,e,this.Ni)),n},e.prototype.ci=function(){return this.wi?[this.Di]:[]},e.prototype.ft=function(){return this.vi},e.prototype.Ii=function(){this.Ai.O(),this.Mi.forEach(function(t){return t.O()}),this.Di.O(),this.Ci.O()},e.prototype.ji=function(t){return t&&!t.xi().ti()?t.xi():null},e.prototype.Vi=function(t,e,n){this.qi(t,e,n)&&this.Ii()},e.prototype.qi=function(t,e,n){var i=this.mi,r=this.pi,o=this._i,s=this.di,a=this.vi,h=this.ji(n);this.di=t,this.mi=isNaN(t)?0/0:this.hi.j().G(t),this.vi=n;var l=null!==h?h.H():null;return null!==h&&null!==l?(this._i=e,this.pi=h.K(e,l)):(this._i=0/0,this.pi=0/0),i!==this.mi||r!==this.pi||s!==this.di||o!==this._i||a!==this.vi},e.prototype.Wi=function(){var t=this.hi.W().map(function(t){return t.Hi().Ui()}).filter(tf),e=0===t.length?null:Math.max.apply(Math,t);this.di=null!==e?e:0/0},e.prototype.Ri=function(t,e,n){var i=t.get(e);return void 0===i&&(i=new tK(this,e,n),t.set(e,i)),i},e}(tZ);function tQ(t,e){if(!ta(t))return"n/a";if(!th(e)||e<0||e>16)throw TypeError("invalid length");return 0===e?t.toString():("0000000000000000"+t.toString()).slice(-e)}var t0=function(){function t(t,e){if(e||(e=1),ta(t)&&th(t)||(t=100),t<0)throw TypeError("invalid base");this.Gt=t,this.Yi=e,this.Ki()}return t.prototype.format=function(t){var e=t<0?"−":"";return t=Math.abs(t),e+this.$i(t)},t.prototype.Ki=function(){if(this.Xi=0,this.Gt>0&&this.Yi>0)for(var t=this.Gt;t>1;)t/=10,this.Xi++},t.prototype.$i=function(t){var e=this.Gt/this.Yi,n=Math.floor(t),i="",r=void 0!==this.Xi?this.Xi:0/0;if(e>1){var o=+(Math.round(t*e)-n*e).toFixed(this.Xi);o>=e&&(o-=e,n+=1),i="."+tQ(o.toFixed(this.Xi)*this.Yi,r)}else n=Math.round(n*e)/e,r>0&&(i="."+tQ(0,r));return n.toFixed(0)+i},t}(),t1=function(t){function e(e){return void 0===e&&(e=100),t.call(this,e)||this}return Q(e,t),e.prototype.format=function(e){return t.prototype.format.call(this,e)+"%"},e}(t0),t2=function(){function t(){this.Zi=[]}return t.prototype.Ji=function(t,e,n){this.Zi.push({Gi:t,Qi:e,tn:!0===n})},t.prototype.nn=function(t){var e=this.Zi.findIndex(function(e){return t===e.Gi});e>-1&&this.Zi.splice(e,1)},t.prototype.sn=function(t){this.Zi=this.Zi.filter(function(e){return e.Qi===t})},t.prototype.hn=function(t,e){var n=te([],this.Zi,!0);this.Zi=this.Zi.filter(function(t){return!t.tn}),n.forEach(function(n){return n.Gi(t,e)})},t.prototype.rn=function(){return this.Zi.length>0},t.prototype.en=function(){this.Zi=[]},t}(),t3=function(){function t(t,e){this.un=t,this.an=e}return t.prototype.on=function(t){return null!==t&&this.un===t.un&&this.an===t.an},t.prototype.ln=function(){return new t(this.un,this.an)},t.prototype.fn=function(){return this.un},t.prototype.cn=function(){return this.an},t.prototype.vn=function(){return this.an-this.un},t.prototype.ti=function(){return this.an===this.un||Number.isNaN(this.an)||Number.isNaN(this.un)},t.prototype._n=function(e){return null===e?this:new t(Math.min(this.fn(),e.fn()),Math.max(this.cn(),e.cn()))},t.prototype.dn=function(t){if(ta(t)&&0!=this.an-this.un){var e=.5*(this.an+this.un),n=this.an-e,i=this.un-e;n*=t,i*=t,this.an=e+n,this.un=e+i}},t.prototype.wn=function(t){ta(t)&&(this.an+=t,this.un+=t)},t.prototype.Mn=function(){return{minValue:this.un,maxValue:this.an}},t.bn=function(e){return null===e?null:new t(e.minValue,e.maxValue)},t}();function t8(t,e,n){return Math.min(Math.max(t,e),n)}function t4(t){return t<=0?0/0:Math.log(t)/Math.log(10)}function t5(t){var e=Math.ceil(t);return e%2!=0?e-1:e}function t6(t){var e=Math.ceil(t);return e%2==0?e-1:e}function t7(t,e){var n=100*(t-e)/e;return e<0?-n:n}function t9(t,e){var n=100*(t-e)/e+100;return e<0?-n:n}function et(t){var e=Math.abs(t);if(e<1e-8)return 0;var n=t4(e+1e-4)+4;return t<0?-n:n}function ee(t){var e=Math.abs(t);if(e<1e-8)return 0;var n=Math.pow(10,e-4)-1e-4;return t<0?-n:n}function en(t){return null===t?null:new t3(et(t.fn()),et(t.cn()))}var ei,er,eo=function(){function t(t,e){if(this.mn=t,this.pn=e,function(t){if(t<0)return!1;for(var e=t;e>1;e/=10)if(e%10!=0)return!1;return!0}(this.mn))this.gn=[2,2.5,2];else{this.gn=[];for(var n=this.mn;1!==n;){if(n%2==0)this.gn.push(2),n/=2;else{if(n%5!=0)throw Error("unexpected base");this.gn.push(2,2.5),n/=5}if(this.gn.length>100)throw Error("something wrong with base")}}}return t.prototype.yn=function(t,e,n){for(var i=0===this.mn?0:1/this.mn,r=Math.pow(10,Math.max(0,Math.ceil(t4(t-e)))),o=0,s=this.pn[0];;){var a=i-r<=1e-14&&r>i+1e-14,h=n*s-r<=1e-14,l=1-r<=1e-14;if(!(a&&h&&l))break;r/=s,s=this.pn[++o%this.pn.length]}if(r<=i+1e-14&&(r=i),r=Math.max(1,r),this.gn.length>0&&1e-14>Math.abs(r-1))for(o=0,s=this.gn[0];n*s-r<=1e-14&&r>i+1e-14;)r/=s,s=this.gn[++o%this.gn.length];return r},t}(),es=function(){function t(t,e,n,i){this.kn=[],this.Gt=t,this.mn=e,this.Cn=n,this.Nn=i}return t.prototype.yn=function(t,e){if(t<e)throw Error("high < low");var n=this.Gt.Mt(),i=(t-e)*this.xn()/n,r=new eo(this.mn,[2,2.5,2]),o=new eo(this.mn,[2,2,2.5]),s=new eo(this.mn,[2.5,2,2]),a=[];return a.push(r.yn(t,e,i),o.yn(t,e,i),s.yn(t,e,i)),function(t){if(t.length<1)throw Error("array is empty");for(var e=t[0],n=1;n<t.length;++n)t[n]<e&&(e=t[n]);return e}(a)},t.prototype.Sn=function(){var t=this.Gt,e=t.H();if(null!==e){var n=t.Mt(),i=this.Cn(n-1,e),r=this.Cn(0,e),o=this.Gt.ct().entireTextOnly?this.Dn()/2:0,s=n-1-o,a=Math.max(i,r),h=Math.min(i,r);if(a!==h){for(var l=this.yn(a,h),u=a%l,c=a>=h?1:-1,f=null,p=0,d=a-(u+=u<0?l:0);d>h;d-=l){var v=this.Nn(d,e,!0);null!==f&&Math.abs(v-f)<this.xn()||v<o||v>s||(p<this.kn.length?(this.kn[p].An=v,this.kn[p].Tn=t.Bn(d)):this.kn.push({An:v,Tn:t.Bn(d)}),p++,f=v,t.Ln()&&(l=this.yn(d*c,h)))}this.kn.length=p}else this.kn=[]}else this.kn=[]},t.prototype.Fn=function(){return this.kn},t.prototype.Dn=function(){return this.Gt.Wt()},t.prototype.xn=function(){return Math.ceil(2.5*this.Dn())},t}();function ea(t){return t.slice().sort(function(t,e){return tr(t.oi())-tr(e.oi())})}(eh=er||(er={}))[eh.Normal=0]="Normal",eh[eh.Logarithmic=1]="Logarithmic",eh[eh.Percentage=2]="Percentage",eh[eh.IndexedTo100=3]="IndexedTo100";var eh,el,eu,ec=new t1,ef=new t0(100,1),ep=function(){function t(t,e,n,i){this.En=0,this.Vn=null,this.On=null,this.Wn=null,this.zn={Pn:!1,Rn:null},this.In=0,this.jn=0,this.qn=new t2,this.Un=new t2,this.Hn=[],this.Yn=null,this.Kn=null,this.$n=null,this.Xn=null,this.Zn=ef,this.Jn=t,this.ki=e,this.Gn=n,this.Qn=i,this.ts=new es(this,100,this.ns.bind(this),this.ss.bind(this))}return t.prototype.hs=function(){return this.Jn},t.prototype.ct=function(){return this.ki},t.prototype.rs=function(t){if(ts(this.ki,t),this.es(),void 0!==t.mode&&this.us({os:t.mode}),void 0!==t.scaleMargins){var e=ti(t.scaleMargins.top),n=ti(t.scaleMargins.bottom);if(e<0||e>1)throw Error("Invalid top margin - expect value between 0 and 1, given="+e);if(n<0||n>1||e+n>1)throw Error("Invalid bottom margin - expect value between 0 and 1, given="+n);if(e+n>1)throw Error("Invalid margins - sum of margins must be less than 1, given="+(e+n));this.ls(),this.Kn=null}},t.prototype.fs=function(){return this.ki.autoScale},t.prototype.Ln=function(){return 1===this.ki.mode},t.prototype.cs=function(){return 2===this.ki.mode},t.prototype.vs=function(){return 3===this.ki.mode},t.prototype.os=function(){return{_s:this.ki.autoScale,ds:this.ki.invertScale,os:this.ki.mode}},t.prototype.us=function(t){var e,n=this.os(),i=null;void 0!==t._s&&(this.ki.autoScale=t._s),void 0!==t.os&&(this.ki.mode=t.os,2!==t.os&&3!==t.os||(this.ki.autoScale=!0),this.zn.Pn=!1),1===n.os&&t.os!==n.os&&(function(t){if(null===t)return!1;var e=ee(t.fn()),n=ee(t.cn());return isFinite(e)&&isFinite(n)}(this.On)?null!==(i=null===(e=this.On)?null:new t3(ee(e.fn()),ee(e.cn())))&&this.ws(i):this.ki.autoScale=!0),1===t.os&&t.os!==n.os&&null!==(i=en(this.On))&&this.ws(i);var r=n.os!==this.ki.mode;r&&(2===n.os||this.cs())&&this.es(),r&&(3===n.os||this.vs())&&this.es(),void 0!==t.ds&&n.ds!==t.ds&&(this.ki.invertScale=t.ds,this.Ms()),this.Un.hn(n,this.os())},t.prototype.bs=function(){return this.Un},t.prototype.Wt=function(){return this.Gn.fontSize},t.prototype.Mt=function(){return this.En},t.prototype.ps=function(t){this.En!==t&&(this.En=t,this.ls(),this.Kn=null)},t.prototype.gs=function(){if(this.Vn)return this.Vn;var t=this.Mt()-this.ys()-this.ks();return this.Vn=t,t},t.prototype.Cs=function(){return this.Ns(),this.On},t.prototype.ws=function(t,e){var n=this.On;(e||null===n&&null!==t||null!==n&&!n.on(t))&&(this.Kn=null,this.On=t)},t.prototype.ti=function(){return this.Ns(),0===this.En||!this.On||this.On.ti()},t.prototype.xs=function(t){return this.ds()?t:this.Mt()-1-t},t.prototype.K=function(t,e){return this.cs()?t=t7(t,e):this.vs()&&(t=t9(t,e)),this.ss(t,e)},t.prototype.Ss=function(t,e,n){this.Ns();for(var i=this.ks(),r=tr(this.Cs()),o=r.fn(),s=r.cn(),a=this.gs()-1,h=this.ds(),l=a/(s-o),u=void 0===n?0:n.from,c=void 0===n?t.length:n.to,f=this.Ds(),p=u;p<c;p++){var d=t[p],v=d.D;if(!isNaN(v)){var g=v;null!==f&&(g=f(d.D,e));var y=i+l*(g-o);d.g=h?y:this.En-1-y}}},t.prototype.As=function(t,e,n){this.Ns();for(var i=this.ks(),r=tr(this.Cs()),o=r.fn(),s=r.cn(),a=this.gs()-1,h=this.ds(),l=a/(s-o),u=void 0===n?0:n.from,c=void 0===n?t.length:n.to,f=this.Ds(),p=u;p<c;p++){var d=t[p],v=d.open,g=d.high,y=d.low,m=d.close;null!==f&&(v=f(d.open,e),g=f(d.high,e),y=f(d.low,e),m=f(d.close,e));var w=i+l*(v-o),b=h?w:this.En-1-w;d.Ts=b,w=i+l*(g-o),d.Bs=b=h?w:this.En-1-w,w=i+l*(y-o),d.Ls=b=h?w:this.En-1-w,w=i+l*(m-o),d.Fs=b=h?w:this.En-1-w}},t.prototype.Si=function(t,e){var n=this.ns(t,e);return this.Es(n,e)},t.prototype.Es=function(t,e){var n,i,r=t;return this.cs()?(n=r,e<0&&(n=-n),r=n/100*e+e):this.vs()&&(i=r-100,e<0&&(i=-i),r=i/100*e+e),r},t.prototype.Vs=function(){return this.Hn},t.prototype.Os=function(){if(this.Yn)return this.Yn;for(var t=[],e=0;e<this.Hn.length;e++){var n=this.Hn[e];null===n.oi()&&n.li(e+1),t.push(n)}return t=ea(t),this.Yn=t,this.Yn},t.prototype.Ws=function(t){-1===this.Hn.indexOf(t)&&(this.Hn.push(t),this.es(),this.zs())},t.prototype.Ps=function(t){var e=this.Hn.indexOf(t);if(-1===e)throw Error("source is not attached to scale");this.Hn.splice(e,1),0===this.Hn.length&&(this.us({_s:!0}),this.ws(null)),this.es(),this.zs()},t.prototype.H=function(){for(var t=null,e=0,n=this.Hn;e<n.length;e++){var i=n[e].H();null!==i&&(null===t||i.Rs<t.Rs)&&(t=i)}return null===t?null:t.X},t.prototype.ds=function(){return this.ki.invertScale},t.prototype.Fn=function(){return this.Kn||(this.ts.Sn(),this.Kn=this.ts.Fn(),this.qn.hn()),this.Kn},t.prototype.Is=function(){return this.qn},t.prototype.js=function(t){this.cs()||this.vs()||null===this.$n&&null===this.Wn&&(this.ti()||(this.$n=this.En-t,this.Wn=tr(this.Cs()).ln()))},t.prototype.qs=function(t){if(!this.cs()&&!this.vs()&&null!==this.$n){this.us({_s:!1}),(t=this.En-t)<0&&(t=0);var e=(this.$n+.2*(this.En-1))/(t+.2*(this.En-1)),n=tr(this.Wn).ln();e=Math.max(e,.1),n.dn(e),this.ws(n)}},t.prototype.Us=function(){this.cs()||this.vs()||(this.$n=null,this.Wn=null)},t.prototype.Hs=function(t){this.fs()||null===this.Xn&&null===this.Wn&&(this.ti()||(this.Xn=t,this.Wn=tr(this.Cs()).ln()))},t.prototype.Ys=function(t){if(!this.fs()&&null!==this.Xn){var e=tr(this.Cs()).vn()/(this.gs()-1),n=t-this.Xn;this.ds()&&(n*=-1);var i=n*e,r=tr(this.Wn).ln();r.wn(i),this.ws(r,!0),this.Kn=null}},t.prototype.Ks=function(){this.fs()||null!==this.Xn&&(this.Xn=null,this.Wn=null)},t.prototype.$s=function(){return this.Zn||this.es(),this.Zn},t.prototype.ii=function(t,e){switch(this.ki.mode){case 2:return this.$s().format(t7(t,e));case 3:return this.$s().format(t9(t,e));default:return this.Xs(t)}},t.prototype.Bn=function(t){switch(this.ki.mode){case 2:case 3:return this.$s().format(t);default:return this.Xs(t)}},t.prototype.Zs=function(t){return this.Xs(t,tr(this.Js()).$s())},t.prototype.Gs=function(t,e){return t=t7(t,e),ec.format(t)},t.prototype.Qs=function(){return this.Hn},t.prototype.th=function(t){this.zn={Rn:t,Pn:!1}},t.prototype.Ii=function(){this.Hn.forEach(function(t){return t.Ii()})},t.prototype.es=function(){this.Kn=null;var t=this.Js(),e=100;null!==t&&(e=Math.round(1/t.ih())),this.Zn=ef,this.cs()?(this.Zn=ec,e=100):this.vs()?(this.Zn=new t0(100,1),e=100):null!==t&&(this.Zn=t.$s()),this.ts=new es(this,e,this.ns.bind(this),this.ss.bind(this)),this.ts.Sn()},t.prototype.zs=function(){this.Yn=null},t.prototype.Js=function(){return this.Hn[0]||null},t.prototype.ys=function(){return this.ds()?this.ki.scaleMargins.bottom*this.Mt()+this.jn:this.ki.scaleMargins.top*this.Mt()+this.In},t.prototype.ks=function(){return this.ds()?this.ki.scaleMargins.top*this.Mt()+this.In:this.ki.scaleMargins.bottom*this.Mt()+this.jn},t.prototype.Ns=function(){this.zn.Pn||(this.zn.Pn=!0,this.nh())},t.prototype.ls=function(){this.Vn=null},t.prototype.ss=function(t,e){if(this.Ns(),this.ti())return 0;t=this.Ln()&&t?et(t):t;var n=tr(this.Cs()),i=this.ks()+(this.gs()-1)*(t-n.fn())/n.vn();return this.xs(i)},t.prototype.ns=function(t,e){if(this.Ns(),this.ti())return 0;var n=this.xs(t),i=tr(this.Cs()),r=i.fn()+i.vn()*((n-this.ks())/(this.gs()-1));return this.Ln()?ee(r):r},t.prototype.Ms=function(){this.Kn=null,this.ts.Sn()},t.prototype.nh=function(){var t=this.zn.Rn;if(null!==t){for(var e=null,n=0,i=0,r=0,o=this.Qs();r<o.length;r++){var s=o[r];if(s.U()){var a=s.H();if(null!==a){var h=s.sh(t.hh(),t.rh()),l=h&&h.Cs();if(null!==l){switch(this.ki.mode){case 1:l=en(l);break;case 2:u=l,c=a.X,l=new t3(t7(u.fn(),c),t7(u.cn(),c));break;case 3:f=l,p=a.X,l=new t3(t9(f.fn(),p),t9(f.cn(),p))}if(e=null===e?l:e._n(tr(l)),null!==h){var u,c,f,p,d=h.eh();null!==d&&(i=Math.max(n=Math.max(n,d.above),d.below))}}}}}if(n===this.In&&i===this.jn||(this.In=n,this.jn=i,this.Kn=null,this.ls()),null!==e){if(e.fn()===e.cn()){var v=this.Js(),g=5*(null===v||this.cs()||this.vs()?1:v.ih());e=new t3(e.fn()-g,e.cn()+g)}this.ws(e)}else null===this.On&&this.ws(new t3(-.5,.5));this.zn.Pn=!0}},t.prototype.Ds=function(){return this.cs()?t7:this.vs()?t9:this.Ln()?et:null},t.prototype.Xs=function(t,e){return void 0===this.Qn.priceFormatter?(void 0===e&&(e=this.$s()),e.format(t)):this.Qn.priceFormatter(t)},t}();function ed(t){void 0!==t.borderColor&&(t.borderUpColor=t.borderColor,t.borderDownColor=t.borderColor),void 0!==t.wickColor&&(t.wickUpColor=t.wickColor,t.wickDownColor=t.wickColor)}(eS=el||(el={}))[eS.Disabled=0]="Disabled",eS[eS.Continuous=1]="Continuous",eS[eS.OnDataUpdate=2]="OnDataUpdate",(eE=eu||(eu={}))[eE.LastBar=0]="LastBar",eE[eE.LastVisible=1]="LastVisible";var ev=function(t){return t.getUTCFullYear()},eg=function(){function t(t,e){void 0===t&&(t="yyyy-MM-dd"),void 0===e&&(e="default"),this.uh=t,this.ah=e}return t.prototype.oh=function(t){return function(t,e,n){return e.replace(/yyyy/g,tQ(ev(t),4)).replace(/yy/g,tQ(ev(t)%100,2)).replace(/MMMM/g,new Date(t.getUTCFullYear(),t.getUTCMonth(),1).toLocaleString(n,{month:"long"})).replace(/MMM/g,new Date(t.getUTCFullYear(),t.getUTCMonth(),1).toLocaleString(n,{month:"short"})).replace(/MM/g,tQ(t.getUTCMonth()+1,2)).replace(/dd/g,tQ(t.getUTCDate(),2))}(t,this.uh,this.ah)},t}(),ey=function(){function t(t){this.lh=t||"%h:%m:%s"}return t.prototype.oh=function(t){return this.lh.replace("%h",tQ(t.getUTCHours(),2)).replace("%m",tQ(t.getUTCMinutes(),2)).replace("%s",tQ(t.getUTCSeconds(),2))},t}(),em={fh:"yyyy-MM-dd",_h:"%h:%m:%s",dh:" ",wh:"default"},ew=function(){function t(t){void 0===t&&(t={});var e=tt(tt({},em),t);this.Mh=new eg(e.fh,e.wh),this.bh=new ey(e._h),this.mh=e.dh}return t.prototype.oh=function(t){return""+this.Mh.oh(t)+this.mh+this.bh.oh(t)},t}();function eb(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=t.length);for(var o=r-i;0<o;){var s=o>>1,a=i+s;n(t[a],e)?(i=a+1,o-=s+1):o=s}return i}function e_(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=t.length);for(var o=r-i;0<o;){var s=o>>1,a=i+s;n(e,t[a])?o=s:(i=a+1,o-=s+1)}return i}var ex=function(){function t(t,e){void 0===e&&(e=50),this.ph=0,this.gh=1,this.yh=1,this.kh=new Map,this.Ch=new Map,this.Nh=t,this.xh=e}return t.prototype.oh=function(t){var e=void 0===t.Sh?new Date(1e3*t.Dh).getTime():new Date(Date.UTC(t.Sh.year,t.Sh.month-1,t.Sh.day)).getTime(),n=this.kh.get(e);if(void 0!==n)return n.Ah;if(this.ph===this.xh){var i=this.Ch.get(this.yh);this.Ch.delete(this.yh),this.kh.delete(ti(i)),this.yh++,this.ph--}var r=this.Nh(t);return this.kh.set(e,{Ah:r,Th:this.gh}),this.Ch.set(this.gh,e),this.ph++,this.gh++,r},t}(),ek=function(){function t(t,e){tn(t<=e,"right should be >= left"),this.Bh=t,this.Lh=e}return t.prototype.hh=function(){return this.Bh},t.prototype.rh=function(){return this.Lh},t.prototype.Fh=function(){return this.Lh-this.Bh+1},t.prototype.Eh=function(t){return this.Bh<=t&&t<=this.Lh},t.prototype.on=function(t){return this.Bh===t.hh()&&this.Lh===t.rh()},t}();function eM(t,e){return null===t||null===e?t===e:t.on(e)}var eS,eE,eC,ej=function(){function t(){this.Vh=new Map,this.kh=null}return t.prototype.Oh=function(t,e){this.Wh(e),this.kh=null;for(var n=e;n<t.length;++n){var i=t[n],r=this.Vh.get(i.zh);void 0===r&&(r=[],this.Vh.set(i.zh,r)),r.push({Ph:n,S:i.S,Rh:i.zh})}},t.prototype.Ih=function(t,e){var n=Math.ceil(e/t);return null!==this.kh&&this.kh.jh===n||(this.kh={Fn:this.qh(n),jh:n}),this.kh.Fn},t.prototype.Wh=function(t){if(0!==t){var e=[];this.Vh.forEach(function(n,i){t<=n[0].Ph?e.push(i):n.splice(eb(n,t,function(e){return e.Ph<t}),1/0)});for(var n=0;n<e.length;n++){var i=e[n];this.Vh.delete(i)}}else this.Vh.clear()},t.prototype.qh=function(t){for(var e=[],n=0,i=Array.from(this.Vh.keys()).sort(function(t,e){return e-t});n<i.length;n++){var r=i[n];if(this.Vh.get(r)){var o=e;e=[];for(var s=o.length,a=0,h=ti(this.Vh.get(r)),l=h.length,u=1/0,c=-1/0,f=0;f<l;f++){for(var p=h[f],d=p.Ph;a<s;){var v=o[a],g=v.Ph;if(!(g<d)){u=g;break}a++,e.push(v),c=g,u=1/0}u-d>=t&&d-c>=t&&(e.push(p),c=d)}for(;a<s;a++)e.push(o[a])}}return e},t}(),eT=function(){function t(t){this.Uh=t}return t.prototype.Hh=function(){return null===this.Uh?null:new ek(Math.floor(this.Uh.hh()),Math.ceil(this.Uh.rh()))},t.prototype.Yh=function(){return this.Uh},t.Kh=function(){return new t(null)},t}();(eA=eC||(eC={}))[eA.Year=0]="Year",eA[eA.Month=1]="Month",eA[eA.DayOfMonth=2]="DayOfMonth",eA[eA.Time=3]="Time",eA[eA.TimeWithSeconds=4]="TimeWithSeconds";var eA,eL,eN=function(){function t(t,e,n){this.$h=0,this.Xh=null,this.Zh=[],this.Xn=null,this.$n=null,this.Jh=new ej,this.Gh=new Map,this.Qh=eT.Kh(),this.tr=!0,this.ir=new t2,this.nr=new t2,this.sr=new t2,this.hr=null,this.rr=null,this.er=[],this.ki=e,this.Qn=n,this.ur=e.rightOffset,this.ar=e.barSpacing,this.hi=t,this.lr()}return t.prototype.ct=function(){return this.ki},t.prototype.cr=function(t){ts(this.Qn,t),this.vr(),this.lr()},t.prototype.rs=function(t,e){var n;ts(this.ki,t),this.ki.fixLeftEdge&&this._r(),this.ki.fixRightEdge&&this.dr(),void 0!==t.barSpacing&&this.hi.wr(t.barSpacing),void 0!==t.rightOffset&&this.hi.Mr(t.rightOffset),void 0!==t.minBarSpacing&&this.hi.wr(null!=(n=t.barSpacing)?n:this.ar),this.vr(),this.lr(),this.sr.hn()},t.prototype.ri=function(t){var e;return(null==(e=this.Zh[t])?void 0:e.S)||null},t.prototype.br=function(t,e){if(this.Zh.length<1)return null;if(t.Dh>this.Zh[this.Zh.length-1].S.Dh)return e?this.Zh.length-1:null;var n=eb(this.Zh,t.Dh,function(t,e){return t.S.Dh<e});return t.Dh<this.Zh[n].S.Dh?e?n:null:n},t.prototype.ti=function(){return 0===this.$h||0===this.Zh.length},t.prototype.mr=function(){return this.pr(),this.Qh.Hh()},t.prototype.gr=function(){return this.pr(),this.Qh.Yh()},t.prototype.yr=function(){var t=this.mr();if(null===t)return null;var e={from:t.hh(),to:t.rh()};return this.kr(e)},t.prototype.kr=function(t){var e=Math.round(t.from),n=Math.round(t.to),i=tr(this.Cr()),r=tr(this.Nr());return{from:tr(this.ri(Math.max(i,e))),to:tr(this.ri(Math.min(r,n)))}},t.prototype.Sr=function(t){return{from:tr(this.br(t.from,!0)),to:tr(this.br(t.to,!0))}},t.prototype.wt=function(){return this.$h},t.prototype.Dr=function(t){if(isFinite(t)&&!(t<=0)&&this.$h!==t){if(this.ki.lockVisibleTimeRangeOnResize&&this.$h){var e=this.ar*t/this.$h;this.ar=e}if(this.ki.fixLeftEdge){var n=this.mr();if(null!==n&&0>=n.hh()){var i=this.$h-t;this.ur-=Math.round(i/this.ar)+1}}this.$h=t,this.tr=!0,this.Ar(),this.Tr()}},t.prototype.G=function(t){if(this.ti()||!th(t))return 0;var e=this.Br()+this.ur-t;return this.$h-(e+.5)*this.ar-1},t.prototype.Lr=function(t,e){for(var n=this.Br(),i=void 0===e?0:e.from,r=void 0===e?t.length:e.to,o=i;o<r;o++){var s=t[o].S,a=n+this.ur-s,h=this.$h-(a+.5)*this.ar-1;t[o].p=h}},t.prototype.Fr=function(t){return Math.ceil(this.Er(t))},t.prototype.Mr=function(t){this.tr=!0,this.ur=t,this.Tr(),this.hi.Vr(),this.hi.Or()},t.prototype.Wr=function(){return this.ar},t.prototype.wr=function(t){this.zr(t),this.Tr(),this.hi.Vr(),this.hi.Or()},t.prototype.Pr=function(){return this.ur},t.prototype.Fn=function(){if(this.ti())return null;if(null!==this.rr)return this.rr;for(var t=this.ar,e=5*(this.hi.ct().layout.fontSize+4),n=Math.round(e/t),i=tr(this.mr()),r=Math.max(i.hh(),i.hh()-n),o=Math.max(i.rh(),i.rh()-n),s=this.Jh.Ih(t,e),a=this.Cr()+n,h=this.Nr()-n,l=0,u=0;u<s.length;u++){var c=s[u];if(r<=c.Ph&&c.Ph<=o){var f=void 0;l<this.er.length?((f=this.er[l]).An=this.G(c.Ph),f.Tn=this.Rr(c.S,c.Rh),f.Rh=c.Rh):(f={Ir:!1,An:this.G(c.Ph),Tn:this.Rr(c.S,c.Rh),Rh:c.Rh},this.er.push(f)),this.ar>e/2?f.Ir=!1:f.Ir=this.ki.fixLeftEdge&&c.Ph<=a||this.ki.fixRightEdge&&c.Ph>=h,l++}}return this.er.length=l,this.rr=this.er,this.er},t.prototype.jr=function(){this.tr=!0,this.wr(this.ki.barSpacing),this.Mr(this.ki.rightOffset)},t.prototype.qr=function(t){this.tr=!0,this.Xh=t,this.Tr(),this._r()},t.prototype.Ur=function(t,e){var n=this.Er(t),i=this.Wr();this.wr(i+i/10*e),this.ki.rightBarStaysOnScroll||this.Mr(this.Pr()+(n-this.Er(t)))},t.prototype.js=function(t){this.Xn&&this.Ks(),null===this.$n&&null===this.hr&&(this.ti()||(this.$n=t,this.Hr()))},t.prototype.qs=function(t){if(null!==this.hr){var e=t8(this.$h-t,0,this.$h),n=t8(this.$h-tr(this.$n),0,this.$h);0!==e&&0!==n&&this.wr(this.hr.Wr*e/n)}},t.prototype.Us=function(){null!==this.$n&&(this.$n=null,this.Yr())},t.prototype.Hs=function(t){null===this.Xn&&null===this.hr&&(this.ti()||(this.Xn=t,this.Hr()))},t.prototype.Ys=function(t){if(null!==this.Xn){var e=(this.Xn-t)/this.Wr();this.ur=tr(this.hr).Pr+e,this.tr=!0,this.Tr()}},t.prototype.Ks=function(){null!==this.Xn&&(this.Xn=null,this.Yr())},t.prototype.Kr=function(){this.$r(this.ki.rightOffset)},t.prototype.$r=function(t,e){var n=this;if(void 0===e&&(e=400),!isFinite(t))throw RangeError("offset is required and must be finite number");if(!isFinite(e)||e<=0)throw RangeError("animationDuration (optional) must be finite positive number");var i=this.ur,r=performance.now(),o=function(){var s=(performance.now()-r)/e,a=s>=1;n.Mr(a?t:i+(t-i)*s),a||setTimeout(o,20)};o()},t.prototype.O=function(t,e){this.tr=!0,this.Zh=t,this.Jh.Oh(t,e),this.Tr()},t.prototype.Xr=function(){return this.ir},t.prototype.Zr=function(){return this.nr},t.prototype.Jr=function(){return this.sr},t.prototype.Br=function(){return this.Xh||0},t.prototype.Gr=function(t){var e=t.Fh();this.zr(this.$h/e),this.ur=t.rh()-this.Br(),this.Tr(),this.tr=!0,this.hi.Vr(),this.hi.Or()},t.prototype.Qr=function(){var t=this.Cr(),e=this.Nr();null!==t&&null!==e&&this.Gr(new ek(t,e+this.ki.rightOffset))},t.prototype.te=function(t){var e=new ek(t.from,t.to);this.Gr(e)},t.prototype.ei=function(t){return void 0!==this.Qn.timeFormatter?this.Qn.timeFormatter(t.Sh||t.Dh):this.ie.oh(new Date(1e3*t.Dh))},t.prototype.Cr=function(){return 0===this.Zh.length?null:0},t.prototype.Nr=function(){return 0===this.Zh.length?null:this.Zh.length-1},t.prototype.ne=function(t){return(this.$h-1-t)/this.ar},t.prototype.Er=function(t){var e=this.ne(t);return Math.round(1e6*(this.Br()+this.ur-e))/1e6},t.prototype.zr=function(t){var e=this.ar;this.ar=t,this.Ar(),e!==this.ar&&(this.tr=!0,this.se())},t.prototype.pr=function(){if(this.tr)if(this.tr=!1,this.ti())this.he(eT.Kh());else{var t=this.Br(),e=this.$h/this.ar,n=this.ur+t,i=new ek(n-e+1,n);this.he(new eT(i))}},t.prototype.Ar=function(){var t=this.re();if(this.ar<t&&(this.ar=t,this.tr=!0),0!==this.$h){var e=.5*this.$h;this.ar>e&&(this.ar=e,this.tr=!0)}},t.prototype.re=function(){return this.ki.fixLeftEdge&&this.ki.fixRightEdge&&0!==this.Zh.length?this.$h/this.Zh.length:this.ki.minBarSpacing},t.prototype.Tr=function(){var t=this.ee();this.ur>t&&(this.ur=t,this.tr=!0);var e=this.ue();null!==e&&this.ur<e&&(this.ur=e,this.tr=!0)},t.prototype.ue=function(){var t=this.Cr(),e=this.Xh;return null===t||null===e?null:t-e-1+(this.ki.fixLeftEdge?this.$h/this.ar:Math.min(2,this.Zh.length))},t.prototype.ee=function(){return this.ki.fixRightEdge?0:this.$h/this.ar-Math.min(2,this.Zh.length)},t.prototype.Hr=function(){this.hr={Wr:this.Wr(),Pr:this.Pr()}},t.prototype.Yr=function(){this.hr=null},t.prototype.Rr=function(t,e){var n=this,i=this.Gh.get(e);return void 0===i&&(i=new ex(function(t){return n.ae(t,e)}),this.Gh.set(e,i)),i.oh(t)},t.prototype.ae=function(t,e){var n,i=function(t,e,n){switch(t){case 0:case 10:return e?n?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return e?3:2;case 50:return 2;case 60:return 1;case 70:return 0}}(e,this.ki.timeVisible,this.ki.secondsVisible);return void 0!==this.ki.tickMarkFormatter?this.ki.tickMarkFormatter(null!=(n=t.Sh)?n:t.Dh,i,this.Qn.locale):function(t,e,n){var i={};switch(e){case 0:i.year="numeric";break;case 1:i.month="short";break;case 2:i.day="numeric";break;case 3:i.hour12=!1,i.hour="2-digit",i.minute="2-digit";break;case 4:i.hour12=!1,i.hour="2-digit",i.minute="2-digit",i.second="2-digit"}var r=new Date(void 0===t.Sh?1e3*t.Dh:Date.UTC(t.Sh.year,t.Sh.month-1,t.Sh.day));return new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()).toLocaleString(n,i)}(t,i,this.Qn.locale)},t.prototype.he=function(t){var e=this.Qh;this.Qh=t,eM(e.Hh(),this.Qh.Hh())||this.ir.hn(),eM(e.Yh(),this.Qh.Yh())||this.nr.hn(),this.se()},t.prototype.se=function(){this.rr=null},t.prototype.vr=function(){this.se(),this.Gh.clear()},t.prototype.lr=function(){var t=this.Qn.dateFormat;this.ki.timeVisible?this.ie=new ew({fh:t,_h:this.ki.secondsVisible?"%h:%m:%s":"%h:%m",dh:"   ",wh:this.Qn.locale}):this.ie=new eg(t,this.Qn.locale)},t.prototype._r=function(){if(this.ki.fixLeftEdge){var t=this.Cr();if(null!==t){var e=this.mr();if(null!==e){var n=e.hh()-t;if(n<0){var i=this.ur-n-1;this.Mr(i)}this.Ar()}}}},t.prototype.dr=function(){this.Tr(),this.Ar()},t}();function eP(t){return!ta(t)&&!tl(t)}(n=eL||(eL={})).Solid="solid",n.VerticalGradient="gradient";var eR="'Trebuchet MS', Roboto, Ubuntu, sans-serif";function eB(t,e,n){return void 0!==n?n+=" ":n="",void 0===e&&(e=eR),""+n+t+"px "+e}var eI=function(){function t(t){this.oe={At:1,Dt:4,Wt:0/0,Nt:"",le:"",et:"",Bt:0,Lt:0,Ft:0,Tt:0,Ot:0},this.F=t}return t.prototype.ct=function(){var t=this.oe,e=this.fe(),n=this.ce();return t.Wt===e&&t.le===n||(t.Wt=e,t.le=n,t.Nt=eB(e,n),t.Tt=Math.floor(e/3.5),t.Bt=t.Tt,t.Lt=Math.max(Math.ceil(e/2-t.Dt/2),0),t.Ft=Math.ceil(e/2+t.Dt/2),t.Ot=Math.round(e/10)),t.et=this.ve(),this.oe},t.prototype.ve=function(){return this.F.ct().layout.textColor},t.prototype.fe=function(){return this.F.ct().layout.fontSize},t.prototype.ce=function(){return this.F.ct().layout.fontFamily},t}();function ez(t){return"left"===t||"right"===t}var e$=function(){function t(t){this._e=new Map,this.de=!1,this.we=[],this.Me=t}return t.prototype.be=function(t,e){var n,i=(n=this._e.get(t),void 0===n?e:{me:Math.max(n.me,e.me),_s:n._s||e._s});this._e.set(t,i)},t.prototype.pe=function(){return this.Me},t.prototype.ge=function(t){var e=this._e.get(t);return void 0===e?{me:this.Me}:{me:Math.max(this.Me,e.me),_s:e._s}},t.prototype.ye=function(){this.we=[{ke:0}]},t.prototype.Ce=function(t){this.we=[{ke:1,X:t}]},t.prototype.Ne=function(){this.we=[{ke:4}]},t.prototype.wr=function(t){this.we.push({ke:2,X:t})},t.prototype.Mr=function(t){this.we.push({ke:3,X:t})},t.prototype.xe=function(){return this.we},t.prototype._n=function(t){var e=this;this.de=this.de||t.de,this.we=this.we.concat(t.we);for(var n=0,i=t.we;n<i.length;n++){var r=i[n];this.Se(r)}this.Me=Math.max(this.Me,t.Me),t._e.forEach(function(t,n){e.be(n,t)})},t.prototype.Se=function(t){switch(t.ke){case 0:this.ye();break;case 1:this.Ce(t.X);break;case 2:this.wr(t.X);break;case 3:this.Mr(t.X);break;case 4:this.Ne()}},t}(),eW=function(){function t(t){this.De=t}return t.prototype.format=function(t){var e="";return t<0&&(e="-",t=-t),t<995?e+this.Ae(t):t<999995?e+this.Ae(t/1e3)+"K":t<0x3b9ac9fb?(t=1e3*Math.round(t/1e3),e+this.Ae(t/1e6)+"M"):(t=1e6*Math.round(t/1e6),e+this.Ae(t/1e9)+"B")},t.prototype.Ae=function(t){var e=Math.pow(10,this.De);return((t=Math.round(t*e)/e)>=1e-15&&t<1?t.toFixed(this.De).replace(/\.?0+$/,""):String(t)).replace(/(\.[1-9]*)0+$/,function(t,e){return e})},t}();function eO(t,e,n,i){if(0!==e.length){var r=e[i.from].p,o=e[i.from].g;t.moveTo(r,o);for(var s=i.from+1;s<i.to;++s){var a=e[s];if(1===n){var h=e[s-1].g,l=a.p;t.lineTo(l,h)}t.lineTo(a.p,a.g)}}}var eU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.v=null,e}return Q(e,t),e.prototype._=function(t){this.v=t},e.prototype.u=function(t){if(null!==this.v&&0!==this.v.m.length&&null!==this.v.M){if(t.lineCap="butt",t.lineJoin="round",t.lineWidth=this.v.rt,H(t,this.v.ut),t.lineWidth=1,t.beginPath(),1===this.v.m.length){var e=this.v.m[0],n=this.v.Te/2;t.moveTo(e.p-n,this.v.Be),t.lineTo(e.p-n,e.g),t.lineTo(e.p+n,e.g),t.lineTo(e.p+n,this.v.Be)}else t.moveTo(this.v.m[this.v.M.from].p,this.v.Be),t.lineTo(this.v.m[this.v.M.from].p,this.v.m[this.v.M.from].g),eO(t,this.v.m,this.v.Le,this.v.M),this.v.M.to>this.v.M.from&&(t.lineTo(this.v.m[this.v.M.to-1].p,this.v.Be),t.lineTo(this.v.m[this.v.M.from].p,this.v.Be));t.closePath(),t.fillStyle=this.Fe(t),t.fill()}},e}(tv),eD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.Fe=function(t){var e=this.v,n=t.createLinearGradient(0,0,0,e.Ee);return n.addColorStop(0,e.Ve),n.addColorStop(1,e.Oe),n},e}(eU),eq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.v=null,e}return Q(e,t),e.prototype._=function(t){this.v=t},e.prototype.u=function(t){if(null!==this.v&&0!==this.v.m.length&&null!==this.v.M){if(t.lineCap="butt",t.lineWidth=this.v.rt,H(t,this.v.ut),t.strokeStyle=this.We(t),t.lineJoin="round",t.beginPath(),1===this.v.m.length){var e=this.v.m[0];t.moveTo(e.p-this.v.Te/2,e.g),t.lineTo(e.p+this.v.Te/2,e.g)}else eO(t,this.v.m,this.v.Le,this.v.M);t.stroke()}},e}(tv),eF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.We=function(){return this.v.N},e}(eq);function eG(t,e){return t.S<e}function eV(t,e){return t<e.S}function eK(t,e,n){var i=e.hh(),r=e.rh(),o=eb(t,i,eG),s=e_(t,r,eV);if(!n)return{from:o,to:s};var a=o,h=s;return o>0&&o<t.length&&t[o].S>=i&&(a=o-1),s>0&&s<t.length&&t[s-1].S<=r&&(h=s+1),{from:a,to:h}}var eY=function(){function t(t,e,n){this.ze=!0,this.Pe=!0,this.Re=!0,this.Ie=[],this.je=null,this.qe=t,this.Ue=e,this.He=n}return t.prototype.O=function(t){this.ze=!0,"data"===t&&(this.Pe=!0),"options"===t&&(this.Re=!0)},t.prototype.Ye=function(){this.Pe&&(this.Ke(),this.Pe=!1),this.ze&&(this.$e(),this.ze=!1),this.Re&&(this.Xe(),this.Re=!1)},t.prototype.Ze=function(){this.je=null},t.prototype.$e=function(){var t=this.qe.$(),e=this.Ue.j();if(this.Ze(),!e.ti()&&!t.ti()){var n=e.mr();if(null!==n&&0!==this.qe.Hi().Je()){var i=this.qe.H();null!==i&&(this.je=eK(this.Ie,n,this.He),this.Ge(t,e,i.X))}}},t}(),eX=function(t){function e(e,n){return t.call(this,e,n,!0)||this}return Q(e,t),e.prototype.Ge=function(t,e,n){e.Lr(this.Ie,tp(this.je)),t.Ss(this.Ie,n,tp(this.je))},e.prototype.Qe=function(t,e){return{S:t,D:e,p:0/0,g:0/0}},e.prototype.Xe=function(){},e.prototype.Ke=function(){var t=this,e=this.qe.tu();this.Ie=this.qe.Hi().iu().map(function(n){var i=n.X[3];return t.nu(n.Ph,i,e)})},e}(eY),eH=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.ot=new td,i.su=new eD,i.hu=new eF,i.ot.i([i.su,i.hu]),i}return Q(e,t),e.prototype.P=function(t,e){if(!this.qe.U())return null;var n=this.qe.ct();return this.Ye(),this.su._({Le:n.lineType,m:this.Ie,ut:n.lineStyle,rt:n.lineWidth,Ve:n.topColor,Oe:n.bottomColor,Be:t,Ee:t,M:this.je,Te:this.Ue.j().Wr()}),this.hu._({Le:n.lineType,m:this.Ie,N:n.lineColor,ut:n.lineStyle,rt:n.lineWidth,M:this.je,Te:this.Ue.j().Wr()}),this.ot},e.prototype.nu=function(t,e){return this.Qe(t,e)},e}(eX),eZ=function(){function t(){this.tt=null,this.ru=0,this.eu=0}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,e,n,i){if(null!==this.tt&&0!==this.tt.Hi.length&&null!==this.tt.M){this.ru=this.uu(e),this.ru>=2&&Math.max(1,Math.floor(e))%2!=this.ru%2&&this.ru--,this.eu=this.tt.au?Math.min(this.ru,Math.floor(e)):this.ru;for(var r=null,o=this.eu<=this.ru&&this.tt.Wr>=Math.floor(1.5*e),s=this.tt.M.from;s<this.tt.M.to;++s){var a=this.tt.Hi[s];r!==a.et&&(t.fillStyle=a.et,r=a.et);var h=Math.floor(.5*this.eu),l=Math.round(a.p*e),u=l-h,c=this.eu,f=u+c-1,p=Math.min(a.Bs,a.Ls),d=Math.max(a.Bs,a.Ls),v=Math.round(p*e)-h,g=Math.max(Math.round(d*e)+h-v,this.eu);t.fillRect(u,v,c,g);var y=Math.ceil(1.5*this.ru);if(o){if(this.tt.ou){var m=l-y,w=Math.max(v,Math.round(a.Ts*e)-h),b=w+c-1;b>v+g-1&&(w=(b=v+g-1)-c+1),t.fillRect(m,w,u-m,b-w+1)}var _=l+y,x=Math.max(v,Math.round(a.Fs*e)-h),k=x+c-1;k>v+g-1&&(x=(k=v+g-1)-c+1),t.fillRect(f+1,x,_-f,k-x+1)}}}},t.prototype.uu=function(t){return Math.max(Math.floor(t),Math.floor(Math.floor(.3*tr(this.tt).Wr*t)))},t}(),eJ=function(t){function e(e,n){return t.call(this,e,n,!1)||this}return Q(e,t),e.prototype.Ge=function(t,e,n){e.Lr(this.Ie,tp(this.je)),t.As(this.Ie,n,tp(this.je))},e.prototype.lu=function(t,e,n){return{S:t,open:e.X[0],high:e.X[1],low:e.X[2],close:e.X[3],p:0/0,Ts:0/0,Bs:0/0,Ls:0/0,Fs:0/0}},e.prototype.Ke=function(){var t=this,e=this.qe.tu();this.Ie=this.qe.Hi().iu().map(function(n){return t.nu(n.Ph,n,e)})},e}(eY),eQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ot=new eZ,e}return Q(e,t),e.prototype.P=function(t,e){if(!this.qe.U())return null;var n=this.qe.ct();this.Ye();var i={Hi:this.Ie,Wr:this.Ue.j().Wr(),ou:n.openVisible,au:n.thinBars,M:this.je};return this.ot._(i),this.ot},e.prototype.Xe=function(){var t=this;this.Ie.forEach(function(e){e.et=t.qe.tu().cu(e.S).fu})},e.prototype.nu=function(t,e,n){return tt(tt({},this.lu(t,e,n)),{et:n.cu(t).fu})},e}(eJ),e0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.Fe=function(t){var e=this.v,n=t.createLinearGradient(0,0,0,e.Ee),i=t8(e.Be/e.Ee,0,1);return n.addColorStop(0,e.vu),n.addColorStop(i,e._u),n.addColorStop(i,e.du),n.addColorStop(1,e.wu),n},e}(eU),e1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.We=function(t){var e=this.v,n=t.createLinearGradient(0,0,0,e.Ee),i=t8(e.Be/e.Ee,0,1);return n.addColorStop(0,e.Ve),n.addColorStop(i,e.Ve),n.addColorStop(i,e.Oe),n.addColorStop(1,e.Oe),n},e}(eq),e2=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.Mu=new e0,i.bu=new e1,i.A=new td,i.A.i([i.Mu,i.bu]),i}return Q(e,t),e.prototype.P=function(t,e){if(!this.qe.U())return null;var n=this.qe.H();if(null===n)return null;var i=this.qe.ct();this.Ye();var r=this.qe.$().K(i.baseValue.price,n.X),o=this.Ue.j().Wr();return this.Mu._({m:this.Ie,vu:i.topFillColor1,_u:i.topFillColor2,du:i.bottomFillColor1,wu:i.bottomFillColor2,rt:i.lineWidth,ut:i.lineStyle,Le:0,Be:r,Ee:t,M:this.je,Te:o}),this.bu._({m:this.Ie,Ve:i.topLineColor,Oe:i.bottomLineColor,rt:i.lineWidth,ut:i.lineStyle,Le:0,Be:r,Ee:t,M:this.je,Te:o}),this.A},e.prototype.nu=function(t,e){return this.Qe(t,e)},e}(eX),e3=function(){function t(){this.tt=null,this.ru=0}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,e,n,i){if(null!==this.tt&&0!==this.tt.Hi.length&&null!==this.tt.M){this.ru=function(t,e){if(t>=2.5&&t<=4)return Math.floor(3*e);var n=1-.2*Math.atan(Math.max(4,t)-4)/(.5*Math.PI),i=Math.min(Math.floor(t*n*e),Math.floor(t*e));return Math.max(Math.floor(e),i)}(this.tt.Wr,e),this.ru>=2&&Math.floor(e)%2!=this.ru%2&&this.ru--;var r=this.tt.Hi;this.tt.mu&&this.pu(t,r,this.tt.M,e),this.tt.gu&&this.yu(t,r,this.tt.M,this.tt.Wr,e);var o=this.ku(e);(!this.tt.gu||this.ru>2*o)&&this.Cu(t,r,this.tt.M,e)}},t.prototype.pu=function(t,e,n,i){if(null!==this.tt){var r="",o=Math.min(Math.floor(i),Math.floor(this.tt.Wr*i));o=Math.max(Math.floor(i),Math.min(o,this.ru));for(var s=Math.floor(.5*o),a=null,h=n.from;h<n.to;h++){var l=e[h];l.Nu!==r&&(t.fillStyle=l.Nu,r=l.Nu);var u=Math.round(Math.min(l.Ts,l.Fs)*i),c=Math.round(Math.max(l.Ts,l.Fs)*i),f=Math.round(l.Bs*i),p=Math.round(l.Ls*i),d=Math.round(i*l.p)-s,v=d+o-1;null!==a&&(d=Math.min(d=Math.max(a+1,d),v));var g=v-d+1;t.fillRect(d,f,g,u-f),t.fillRect(d,c+1,g,p-c),a=v}}},t.prototype.ku=function(t){var e=Math.floor(+t);this.ru<=2*e&&(e=Math.floor(.5*(this.ru-1)));var n=Math.max(Math.floor(t),e);return this.ru<=2*n?Math.max(Math.floor(t),Math.floor(+t)):n},t.prototype.yu=function(t,e,n,i,r){if(null!==this.tt)for(var o="",s=this.ku(r),a=null,h=n.from;h<n.to;h++){var l,u,c,f=e[h];f.Z!==o&&(t.fillStyle=f.Z,o=f.Z);var p=Math.round(f.p*r)-Math.floor(.5*this.ru),d=p+this.ru-1,v=Math.round(Math.min(f.Ts,f.Fs)*r),g=Math.round(Math.max(f.Ts,f.Fs)*r);if(null!==a&&(p=Math.min(p=Math.max(a+1,p),d)),this.tt.Wr*r>2*s)l=p,u=d-p+1,c=g-v+1,t.fillRect(l+s,v,u-2*s,s),t.fillRect(l+s,v+c-s,u-2*s,s),t.fillRect(l,v,s,c),t.fillRect(l+u-s,v,s,c);else{var y=d-p+1;t.fillRect(p,v,y,g-v+1)}a=d}},t.prototype.Cu=function(t,e,n,i){if(null!==this.tt)for(var r="",o=this.ku(i),s=n.from;s<n.to;s++){var a=e[s],h=Math.round(Math.min(a.Ts,a.Fs)*i),l=Math.round(Math.max(a.Ts,a.Fs)*i),u=Math.round(a.p*i)-Math.floor(.5*this.ru),c=u+this.ru-1;if(a.et!==r){var f=a.et;t.fillStyle=f,r=f}this.tt.gu&&(u+=o,h+=o,c-=o,l-=o),h>l||t.fillRect(u,h,c-u+1,l-h+1)}},t}(),e8=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ot=new e3,e}return Q(e,t),e.prototype.P=function(t,e){if(!this.qe.U())return null;var n=this.qe.ct();this.Ye();var i={Hi:this.Ie,Wr:this.Ue.j().Wr(),mu:n.wickVisible,gu:n.borderVisible,M:this.je};return this.ot._(i),this.ot},e.prototype.Xe=function(){var t=this;this.Ie.forEach(function(e){var n=t.qe.tu().cu(e.S);e.et=n.fu,e.Nu=n.xu,e.Z=n.Su})},e.prototype.nu=function(t,e,n){var i=n.cu(t);return tt(tt({},this.lu(t,e,n)),{et:i.fu,Nu:i.xu,Z:i.Su})},e}(eJ),e4=function(){function t(){this.tt=null,this.Du=[]}return t.prototype._=function(t){this.tt=t,this.Du=[]},t.prototype.h=function(t,e,n,i){if(null!==this.tt&&0!==this.tt.m.length&&null!==this.tt.M){this.Du.length||this.Au(e);for(var r=Math.max(1,Math.floor(e)),o=Math.round(this.tt.Tu*e)-Math.floor(r/2),s=o+r,a=this.tt.M.from;a<this.tt.M.to;a++){var h=this.tt.m[a],l=this.Du[a-this.tt.M.from],u=Math.round(h.g*e);t.fillStyle=h.et;var c=void 0,f=void 0;u<=o?(c=u,f=s):(c=o,f=u-Math.floor(r/2)+r),t.fillRect(l.hh,c,l.rh-l.hh+1,f-c)}}},t.prototype.Au=function(t){if(null!==this.tt&&0!==this.tt.m.length&&null!==this.tt.M){var e=1>=Math.ceil(this.tt.Wr*t)?0:Math.max(1,Math.floor(t)),n=Math.round(this.tt.Wr*t)-e;this.Du=Array(this.tt.M.to-this.tt.M.from);for(var i=this.tt.M.from;i<this.tt.M.to;i++){var r,o=this.tt.m[i],s=Math.round(o.p*t),a=void 0,h=void 0;n%2?(a=s-(r=(n-1)/2),h=s+r):(a=s-(r=n/2),h=s+r-1),this.Du[i-this.tt.M.from]={hh:a,rh:h,Bu:s,Lu:o.p*t,S:o.S}}for(i=this.tt.M.from+1;i<this.tt.M.to;i++){var l=this.Du[i-this.tt.M.from],u=this.Du[i-this.tt.M.from-1];l.S===u.S+1&&l.hh-u.rh!==e+1&&(u.Bu>u.Lu?u.rh=l.hh-e-1:l.hh=u.rh+e+1)}var c=Math.ceil(this.tt.Wr*t);for(i=this.tt.M.from;i<this.tt.M.to;i++){(l=this.Du[i-this.tt.M.from]).rh<l.hh&&(l.rh=l.hh);var f=l.rh-l.hh+1;c=Math.min(f,c)}if(e>0&&c<4)for(i=this.tt.M.from;i<this.tt.M.to;i++)(f=(l=this.Du[i-this.tt.M.from]).rh-l.hh+1)>c&&(l.Bu>l.Lu?l.rh-=1:l.hh+=1)}else this.Du=[]},t}();function e5(t){return{m:[],Wr:t,Tu:0/0,M:null}}var e6=function(t){function e(e,n){var i=t.call(this,e,n,!1)||this;return i.A=new td,i.Fu=e5(0),i.ot=new e4,i}return Q(e,t),e.prototype.P=function(t,e){return this.qe.U()?(this.Ye(),this.A):null},e.prototype.Ke=function(){var t=this.Ue.j().Wr();this.Fu=e5(t);for(var e=0,n=0,i=this.qe.ct().color,r=0,o=this.qe.Hi().iu();r<o.length;r++){var s=o[r],a=s.X[3],h=void 0!==s.et?s.et:i,l={S:s.Ph,D:a,p:0/0,g:0/0,et:h};++e<this.Fu.m.length?this.Fu.m[e]=l:this.Fu.m.push(l),this.Ie[n++]={S:s.Ph,p:0}}this.ot._(this.Fu),this.A.i([this.ot])},e.prototype.Xe=function(){},e.prototype.Ze=function(){t.prototype.Ze.call(this),this.Fu.M=null},e.prototype.Ge=function(t,e,n){if(null!==this.je){var i=e.Wr(),r=tr(e.mr()),o=t.K(this.qe.ct().base,n);e.Lr(this.Fu.m),t.Ss(this.Fu.m,n),this.Fu.Tu=o,this.Fu.M=eK(this.Fu.m,r,!1),this.Fu.Wr=i,this.ot._(this.Fu)}},e}(eY),e7=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.hu=new eF,i}return Q(e,t),e.prototype.P=function(t,e){if(!this.qe.U())return null;var n=this.qe.ct();this.Ye();var i={m:this.Ie,N:n.color,ut:n.lineStyle,Le:n.lineType,rt:n.lineWidth,M:this.je,Te:this.Ue.j().Wr()};return this.hu._(i),this.hu},e.prototype.nu=function(t,e){return this.Qe(t,e)},e}(eX),e9=/[2-9]/g,nt=function(){function t(t){void 0===t&&(t=50),this.kh=new Map,this.Eu=0,this.Vu=Array.from(Array(t))}return t.prototype.Ou=function(){this.kh.clear(),this.Vu.fill(void 0)},t.prototype.Vt=function(t,e,n){var i=String(e).replace(n||e9,"0"),r=this.kh.get(i);if(void 0===r){if(0===(r=t.measureText(i).width)&&0!==e.length)return 0;var o=this.Vu[this.Eu];void 0!==o&&this.kh.delete(o),this.Vu[this.Eu]=i,this.Eu=(this.Eu+1)%this.Vu.length,this.kh.set(i,r)}return r},t}(),ne=function(){function t(t){this.Wu=null,this.oe=null,this.zu="right",this.$h=0,this.Pu=t}return t.prototype.Ru=function(t,e,n,i){this.Wu=t,this.oe=e,this.$h=n,this.zu=i},t.prototype.h=function(t,e){null!==this.oe&&null!==this.Wu&&this.Wu.h(t,this.oe,this.Pu,this.$h,this.zu,e)},t}(),nn=function(){function t(t,e,n){this.Iu=t,this.Pu=new nt(50),this.ju=e,this.F=n,this.fe=-1,this.ot=new ne(this.Pu)}return t.prototype.P=function(t,e){var n=this.F.qu(this.ju);if(null===n)return null;var i=n.Uu(this.ju)?n.xi():this.ju.$();if(null===i)return null;var r=n.Hu(i);if("overlay"===r)return null;var o=this.F.Yu();return o.Wt!==this.fe&&(this.fe=o.Wt,this.Pu.Ou()),this.ot.Ru(this.Iu.Zt(),o,e,r),this.ot},t}(),ni=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,e,n,i){if(null!==this.tt&&!1!==this.tt.U){var r=Math.round(this.tt.g*e);if(!(r<0||r>Math.ceil(this.tt.Mt*e))){var o=Math.ceil(this.tt.wt*e);t.lineCap="butt",t.strokeStyle=this.tt.et,t.lineWidth=Math.floor(this.tt.rt*e),H(t,this.tt.ut),Z(t,r,0,o)}}},t}(),nr=function(){function t(t){this.Ku={wt:0,Mt:0,g:0,et:"rgba(0, 0, 0, 0)",rt:1,ut:0,U:!1},this.$u=new ni,this.L=!0,this.qe=t,this.Ue=t.vt(),this.$u._(this.Ku)}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,e){return this.qe.U()?(this.L&&(this.Xu(t,e),this.L=!1),this.$u):null},t}(),no=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.Xu=function(t,e){this.Ku.U=!1;var n=this.qe.$(),i=n.os().os;if(2===i||3===i){var r=this.qe.ct();if(r.baseLineVisible&&this.qe.U()){var o=this.qe.H();null!==o&&(this.Ku.U=!0,this.Ku.g=n.K(o.X,o.X),this.Ku.wt=e,this.Ku.Mt=t,this.Ku.et=r.baseLineColor,this.Ku.rt=r.baseLineWidth,this.Ku.ut=r.baseLineStyle)}}},e}(nr),ns=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.Zu=function(){return this.tt},t.prototype.h=function(t,e,n,i){var r=this.tt;if(null!==r){t.save();var o=Math.max(1,Math.floor(e)),s=o%2/2,a=Math.round(r.Lu.x*e)+s,h=r.Lu.y*e;t.fillStyle=r.Ju,t.beginPath();var l=Math.max(2,1.5*r.Gu)*e;t.arc(a,h,l,0,2*Math.PI,!1),t.fill(),t.fillStyle=r.Qu,t.beginPath(),t.arc(a,h,r.C*e,0,2*Math.PI,!1),t.fill(),t.lineWidth=o,t.strokeStyle=r.ta,t.beginPath(),t.arc(a,h,r.C*e+o/2,0,2*Math.PI,!1),t.stroke(),t.restore()}},t}(),na=[{ia:0,na:.25,sa:4,ha:10,ra:.25,ea:0,ua:.4,aa:.8},{ia:.25,na:.525,sa:10,ha:14,ra:0,ea:0,ua:.8,aa:0},{ia:.525,na:1,sa:14,ha:14,ra:0,ea:0,ua:0,aa:0}];function nh(t,e,n,i){if("transparent"===t)return t;var r=tT(t),o=r[3];return"rgba("+r[0]+", "+r[1]+", "+r[2]+", "+(n+(i-n)*e)*o+")"}function nl(t,e){for(var n,i=t%2600/2600,r=0;r<na.length;r++){var o=na[r];if(i>=o.ia&&i<=o.na){n=o;break}}tn(void 0!==n,"Last price animation internal logic error");var s,a=(i-n.ia)/(n.na-n.ia);return{Qu:nh(e,a,n.ra,n.ea),ta:nh(e,a,n.ua,n.aa),C:(s=n.sa)+(n.ha-s)*a}}var nu=function(){function t(t){this.ot=new ns,this.L=!0,this.oa=!0,this.la=performance.now(),this.fa=this.la-1,this.ca=t}return t.prototype.O=function(t){if(this.L=!0,"data"===t&&2===this.ca.ct().lastPriceAnimation){var e=performance.now(),n=this.fa-e;if(n>0)return void(n<650&&(this.fa+=2600));this.la=e,this.fa=e+2600}},t.prototype.va=function(){this.oa=!0},t.prototype.U=function(){return 0!==this.ca.ct().lastPriceAnimation},t.prototype._a=function(){switch(this.ca.ct().lastPriceAnimation){case 0:return!1;case 1:return!0;case 2:return performance.now()<=this.fa}},t.prototype.P=function(t,e){return this.L?(this.R(t,e),this.L=!1,this.oa=!1):this.oa&&(this.da(),this.oa=!1),this.ot},t.prototype.R=function(t,e){this.ot._(null);var n=this.ca.vt().j(),i=n.mr(),r=this.ca.H();if(null!==i&&null!==r){var o=this.ca.wa(!0);if(!o.Ma&&i.Eh(o.Ph)){var s={x:n.G(o.Ph),y:this.ca.$().K(o.D,r.X)},a=o.et,h=this.ca.ct().lineWidth,l=nl(this.ba(),a);this.ot._({Ju:a,Gu:h,Qu:l.Qu,ta:l.ta,C:l.C,Lu:s})}}},t.prototype.da=function(){var t=this.ot.Zu();if(null!==t){var e=nl(this.ba(),t.Ju);t.Qu=e.Qu,t.ta=e.ta,t.C=e.C}},t.prototype.ba=function(){return this._a()?performance.now()-this.la:2599},t}();function nc(t,e){return t6(Math.min(Math.max(t,12),30)*e)}function nf(t,e){switch(t){case"arrowDown":case"arrowUp":return nc(e,1);case"circle":return nc(e,.8);case"square":return nc(e,.7)}}function np(t){return Math.max(nc(t,.1),3)}function nd(t,e,n,i,r){var o=nf("square",n),s=(o-1)/2,a=t-s,h=e-s;return i>=a&&i<=a+o&&r>=h&&r<=h+o}function nv(t,e,n,i,r){var o=(nf("arrowUp",r)-1)/2,s=(t6(r/2)-1)/2;e.beginPath(),t?(e.moveTo(n-o,i),e.lineTo(n,i-o),e.lineTo(n+o,i),e.lineTo(n+s,i),e.lineTo(n+s,i+o),e.lineTo(n-s,i+o)):(e.moveTo(n-o,i),e.lineTo(n,i+o),e.lineTo(n+o,i),e.lineTo(n+s,i),e.lineTo(n+s,i-o),e.lineTo(n-s,i-o)),e.lineTo(n-s,i),e.fill()}var ng=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tt=null,e.Pu=new nt,e.fe=-1,e.ce="",e.ma="",e}return Q(e,t),e.prototype._=function(t){this.tt=t},e.prototype.Ru=function(t,e){this.fe===t&&this.ce===e||(this.fe=t,this.ce=e,this.ma=eB(t,e),this.Pu.Ou())},e.prototype.pa=function(t,e){if(null===this.tt||null===this.tt.M)return null;for(var n=this.tt.M.from;n<this.tt.M.to;n++){var i=this.tt.m[n];if(function(t,e,n){var i,r,o,s,a;return!(void 0===t.Et||(i=t.p,r=t.Et.g,o=t.Et.wt,s=t.Et.Mt,a=s/2,!(e>=i)||!(e<=i+o)||!(n>=r-a)||!(n<=r+a)))||function(t,e,n){var i,r,o,s,a,h,l,u;if(0===t.Je)return!1;switch(t.Na){case"arrowDown":case"arrowUp":return i=t.p,r=t.g,nd(i,r,t.Je,e,n);case"circle":return o=t.p,s=t.g,a=t.Je,h=2+nf("circle",a)/2,Math.sqrt((l=o-e)*l+(u=s-n)*u)<=h;case"square":return nd(t.p,t.g,t.Je,e,n)}}(t,e,n)}(i,t,e))return{ga:i.ya,ka:i.ka}}return null},e.prototype.u=function(t,e,n){if(null!==this.tt&&null!==this.tt.M){t.textBaseline="middle",t.font=this.ma;for(var i=this.tt.M.from;i<this.tt.M.to;i++){var r=this.tt.m[i];void 0!==r.Et&&(r.Et.wt=this.Pu.Vt(t,r.Et.Ca),r.Et.Mt=this.fe),function(t,e){var n,i,r;e.fillStyle=t.et,void 0!==t.Et&&(n=t.Et.Ca,i=t.p-t.Et.wt/2,r=t.Et.g,e.fillText(n,i,r)),function(t,e){if(0!==t.Je){var n,i,r,o,s,a,h;switch(t.Na){case"arrowDown":return nv(!1,e,t.p,t.g,t.Je);case"arrowUp":return nv(!0,e,t.p,t.g,t.Je);case"circle":return n=t.p,i=t.g,r=(nf("circle",t.Je)-1)/2,e.beginPath(),e.arc(n,i,r,0,2*Math.PI,!1),e.fill();case"square":return o=t.p,s=t.g,h=((a=nf("square",t.Je))-1)/2,e.fillRect(o-h,s-h,a,a)}t.Na}}(t,e)}(r,t)}}},e}(tv),ny=function(){function t(t,e){this.L=!0,this.Da=!0,this.Aa=!0,this.Ta=null,this.ot=new ng,this.ca=t,this.hi=e,this.tt={m:[],M:null}}return t.prototype.O=function(t){this.L=!0,this.Aa=!0,"data"===t&&(this.Da=!0)},t.prototype.P=function(t,e,n){if(!this.ca.U())return null;this.L&&this.Ye();var i=this.hi.ct().layout;return this.ot.Ru(i.fontSize,i.fontFamily),this.ot._(this.tt),this.ot},t.prototype.Ba=function(){if(this.Aa){if(this.ca.La().length>0){var t=this.hi.j().Wr(),e=np(t),n=1.5*t5(nc(t,1))+2*e;this.Ta={above:n,below:n}}else this.Ta=null;this.Aa=!1}return this.Ta},t.prototype.Ye=function(){var t=this.ca.$(),e=this.hi.j(),n=this.ca.La();this.Da&&(this.tt.m=n.map(function(t){return{S:t.time,p:0,g:0,Je:0,Na:t.shape,et:t.color,ya:t.ya,ka:t.id,Et:void 0}}),this.Da=!1);var i=this.hi.ct().layout;this.tt.M=null;var r=e.mr();if(null!==r){var o=this.ca.H();if(null!==o&&0!==this.tt.m.length){var s=0/0,a=np(e.Wr()),h={xa:a,Sa:a};this.tt.M=eK(this.tt.m,r,!0);for(var l=this.tt.M.from;l<this.tt.M.to;l++){var u=n[l];u.time!==s&&(h.xa=a,h.Sa=a,s=u.time);var c=this.tt.m[l];c.p=e.G(u.time),void 0!==u.text&&u.text.length>0&&(c.Et={Ca:u.text,g:0,wt:0,Mt:0});var f=this.ca.Fa(u.time);null!==f&&function(t,e,n,i,r,o,s,a,h){var l=ta(n)?n:n.close,u=ta(n)?n:n.high,c=ta(n)?n:n.low,f=ta(e.size)?Math.max(e.size,0):1,p=t5(nc(a.Wr(),1))*f,d=p/2;switch(t.Je=p,e.position){case"inBar":return t.g=s.K(l,h),void 0!==t.Et&&(t.Et.g=t.g+d+o+.6*r);case"aboveBar":return t.g=s.K(u,h)-d-i.xa,void 0!==t.Et&&(t.Et.g=t.g-d-.6*r,i.xa+=1.2*r),i.xa+=p+o;case"belowBar":return t.g=s.K(c,h)+d+i.Sa,void 0!==t.Et&&(t.Et.g=t.g+d+o+.6*r,i.Sa+=1.2*r),i.Sa+=p+o}e.position}(c,u,f,h,i.fontSize,a,t,e,o.X)}this.L=!1}}},t}(),nm=function(t){function e(e){return t.call(this,e)||this}return Q(e,t),e.prototype.Xu=function(t,e){var n=this.Ku;n.U=!1;var i=this.qe.ct();if(i.priceLineVisible&&this.qe.U()){var r=this.qe.wa(0===i.priceLineSource);r.Ma||(n.U=!0,n.g=r.zt,n.et=this.qe.Ea(r.et),n.wt=e,n.Mt=t,n.rt=i.priceLineWidth,n.ut=i.priceLineStyle)}},e}(nr),nw=function(t){function e(e){var n=t.call(this)||this;return n.lt=e,n}return Q(e,t),e.prototype.Jt=function(t,e,n){t.U=!1,e.U=!1;var i=this.lt;if(i.U()){var r=i.ct(),o=r.lastValueVisible,s=""!==i.Va(),a=0===r.seriesLastValueMode,h=i.wa(!1);if(!h.Ma){o&&(t.Et=this.Oa(h,o,a),t.U=0!==t.Et.length),(s||a)&&(e.Et=this.Wa(h,o,s,a),e.U=e.Et.length>0);var l=i.Ea(h.et),u=tA(l);n.yt=u.yt,n.et=u.kt,n.zt=h.zt,e.Z=i.vt().J(h.zt/i.$().Mt()),t.Z=l}}},e.prototype.Wa=function(t,e,n,i){var r="",o=this.lt.Va();return n&&0!==o.length&&(r+=o+" "),e&&i&&(r+=this.lt.$().cs()?t.za:t.Pa),r.trim()},e.prototype.Oa=function(t,e,n){return e?n?this.lt.$().cs()?t.Pa:t.za:t.Et:""},e}(tV),nb=function(){function t(t,e){this.On=t,this.Ra=e||null}return t.prototype.Cs=function(){return this.On},t.prototype.eh=function(){return this.Ra},t.prototype.Mn=function(){return null===this.On?null:{priceRange:this.On.Mn(),margins:this.Ra||void 0}},t.bn=function(e){return null===e?null:new t(t3.bn(e.priceRange),e.margins)},t}(),n_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.Ia=n,i}return Q(e,t),e.prototype.Xu=function(t,e){var n=this.Ku;if(n.U=!1,this.qe.U()){var i=this.Ia.ja();if(null!==i){var r=this.Ia.ct();n.U=!0,n.g=i,n.et=r.color,n.wt=e,n.Mt=t,n.rt=r.lineWidth,n.ut=r.lineStyle}}},e}(nr),nx=function(t){function e(e,n){var i=t.call(this)||this;return i.ca=e,i.Ia=n,i}return Q(e,t),e.prototype.Jt=function(t,e,n){t.U=!1,e.U=!1;var i=this.Ia.ct(),r=i.axisLabelVisible,o=""!==i.title,s=this.ca;if(r&&s.U()){var a=this.Ia.ja();if(null!==a){o&&(e.Et=i.title,e.U=!0),e.Z=s.vt().J(a/s.$().Mt()),t.Et=s.$().Zs(i.price),t.U=!0;var h=tA(i.color);n.yt=h.yt,n.et=h.kt,n.zt=a}}},e}(tV),nk=function(){function t(t,e){this.ca=t,this.ki=e,this.qa=new n_(t,this),this.Iu=new nx(t,this),this.Ua=new nn(this.Iu,t,t.vt())}return t.prototype.rs=function(t){ts(this.ki,t),this.O(),this.ca.vt().Or()},t.prototype.ct=function(){return this.ki},t.prototype.zi=function(){return[this.qa,this.Ua]},t.prototype.Ha=function(){return this.Iu},t.prototype.O=function(){this.qa.O(),this.Iu.O()},t.prototype.ja=function(){var t=this.ca,e=t.$();if(t.vt().j().ti()||e.ti())return null;var n=t.H();return null===n?null:e.K(this.ki.price,n.X)},t}(),nM=function(t){function e(e){var n=t.call(this)||this;return n.hi=e,n}return Q(e,t),e.prototype.vt=function(){return this.hi},e}(tZ),nS={fu:"",Su:"",xu:""},nE=function(){function t(t){this.ca=t}return t.prototype.cu=function(t,e){var n=this.ca.Ya(),i=this.ca.ct();switch(n){case"Line":return this.Ka(i);case"Area":return this.$a(i);case"Baseline":return this.Xa(i,t,e);case"Bar":return this.Za(i,t,e);case"Candlestick":return this.Ja(i,t,e);case"Histogram":return this.Ga(i,t,e)}throw Error("Unknown chart style")},t.prototype.Za=function(t,e,n){var i=tt({},nS),r=t.upColor,o=t.downColor,s=tr(this.Qa(e,n)),a=to(s.X[0])<=to(s.X[3]);return i.fu=a?r:o,i.Su=a?r:o,i},t.prototype.Ja=function(t,e,n){var i=tt({},nS),r=t.upColor,o=t.downColor,s=t.borderUpColor,a=t.borderDownColor,h=t.wickUpColor,l=t.wickDownColor,u=tr(this.Qa(e,n)),c=to(u.X[0])<=to(u.X[3]);return i.fu=c?r:o,i.Su=c?s:a,i.xu=c?h:l,i},t.prototype.$a=function(t){return tt(tt({},nS),{fu:t.lineColor})},t.prototype.Xa=function(t,e,n){var i=tr(this.Qa(e,n)).X[3]>=t.baseValue.price;return tt(tt({},nS),{fu:i?t.topLineColor:t.bottomLineColor})},t.prototype.Ka=function(t){return tt(tt({},nS),{fu:t.color})},t.prototype.Ga=function(t,e,n){var i=tt({},nS),r=tr(this.Qa(e,n));return i.fu=void 0!==r.et?r.et:t.color,i},t.prototype.Qa=function(t,e){return void 0!==e?e.X:this.ca.Hi().io(t)},t}(),nC=function(){function t(){this.no=[],this.so=new Map,this.ho=new Map}return t.prototype.ro=function(){return this.Je()>0?this.no[this.no.length-1]:null},t.prototype.eo=function(){return this.Je()>0?this.uo(0):null},t.prototype.Ui=function(){return this.Je()>0?this.uo(this.no.length-1):null},t.prototype.Je=function(){return this.no.length},t.prototype.ti=function(){return 0===this.Je()},t.prototype.Eh=function(t){return null!==this.ao(t,0)},t.prototype.io=function(t){return this.oo(t)},t.prototype.oo=function(t,e){void 0===e&&(e=0);var n=this.ao(t,e);return null===n?null:tt(tt({},this.lo(n)),{Ph:this.uo(n)})},t.prototype.iu=function(){return this.no},t.prototype.fo=function(t,e,n){if(this.ti())return null;for(var i=null,r=0;r<n.length;r++){var o=n[r];i=nj(i,this.co(t,e,o))}return i},t.prototype._=function(t){this.ho.clear(),this.so.clear(),this.no=t},t.prototype.uo=function(t){return this.no[t].Ph},t.prototype.lo=function(t){return this.no[t]},t.prototype.ao=function(t,e){var n=this.vo(t);if(null===n&&0!==e)switch(e){case -1:return this._o(t);case 1:return this.do(t);default:throw TypeError("Unknown search mode")}return n},t.prototype._o=function(t){var e=this.wo(t);return e>0&&(e-=1),e!==this.no.length&&this.uo(e)<t?e:null},t.prototype.do=function(t){var e=this.Mo(t);return e!==this.no.length&&t<this.uo(e)?e:null},t.prototype.vo=function(t){var e=this.wo(t);return e===this.no.length||t<this.no[e].Ph?null:e},t.prototype.wo=function(t){return eb(this.no,t,function(t,e){return t.Ph<e})},t.prototype.Mo=function(t){return e_(this.no,t,function(t,e){return e.Ph>t})},t.prototype.bo=function(t,e,n){for(var i=null,r=t;r<e;r++){var o=this.no[r].X[n];Number.isNaN(o)||(null===i?i={mo:o,po:o}:(o<i.mo&&(i.mo=o),o>i.po&&(i.po=o)))}return i},t.prototype.co=function(t,e,n){if(this.ti())return null;var i=null,r=tr(this.eo()),o=tr(this.Ui()),s=Math.max(t,r),a=Math.min(e,o),h=30*Math.ceil(s/30),l=Math.max(h,30*Math.floor(a/30)),u=this.wo(s),c=this.Mo(Math.min(a,h,e));i=nj(i,this.bo(u,c,n));var f=this.so.get(n);void 0===f&&(f=new Map,this.so.set(n,f));for(var p=Math.max(h+1,s);p<l;p+=30){var d=Math.floor(p/30),v=f.get(d);if(void 0===v){var g=this.wo(30*d),y=this.Mo(30*(d+1)-1);v=this.bo(g,y,n),f.set(d,v)}i=nj(i,v)}return u=this.wo(l),c=this.Mo(a),nj(i,this.bo(u,c,n))},t}();function nj(t,e){return null===t?e:null===e?t:{mo:Math.min(t.mo,e.mo),po:Math.max(t.po,e.po)}}var nT=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.tt=new nC,r.qa=new nm(r),r.yo=[],r.ko=new no(r),r.Co=null,r.No=null,r.xo=[],r.So=[],r.Do=null,r.ki=n,r.Ao=i;var o=new nw(r);return r.Mi=[o],r.Ua=new nn(o,r,e),"Area"!==i&&"Line"!==i&&"Baseline"!==i||(r.Co=new nu(r)),r.To(),r.Bo(),r}return Q(e,t),e.prototype.en=function(){null!==this.Do&&clearTimeout(this.Do)},e.prototype.Ea=function(t){return this.ki.priceLineColor||t},e.prototype.wa=function(t){var e={Ma:!0},n=this.$();if(this.vt().j().ti()||n.ti()||this.tt.ti())return e;var i,r,o=this.vt().j().mr(),s=this.H();if(null===o||null===s)return e;if(t){var a=this.tt.ro();if(null===a)return e;i=a,r=a.Ph}else{var h=this.tt.oo(o.rh(),-1);if(null===h||null===(i=this.tt.io(h.Ph)))return e;r=h.Ph}var l=i.X[3],u=this.tu().cu(r,{X:i}),c=n.K(l,s.X);return{Ma:!1,D:l,Et:n.ii(l,s.X),za:n.Zs(l),Pa:n.Gs(l,s.X),et:u.fu,zt:c,Ph:r}},e.prototype.tu=function(){return null!==this.No||(this.No=new nE(this)),this.No},e.prototype.ct=function(){return this.ki},e.prototype.rs=function(t){var e=t.priceScaleId;void 0!==e&&e!==this.ki.priceScaleId&&this.vt().Lo(this,e),ts(this.ki,t),null!==this.ui&&void 0!==t.scaleMargins&&this.ui.rs({scaleMargins:t.scaleMargins}),void 0!==t.priceFormat&&this.To(),this.vt().Fo(this),this.vt().Eo(),this.Ai.O("options")},e.prototype._=function(t){this.tt._(t),this.Vo(),this.Ai.O("data"),this.Ci.O("data"),null==(e=this.Co)||e.O("data");var e,n=this.vt().qu(this);this.vt().Oo(n),this.vt().Fo(this),this.vt().Eo(),this.vt().Or()},e.prototype.Wo=function(t){this.xo=t.map(function(t){return tt({},t)}),this.Vo();var e=this.vt().qu(this);this.Ci.O("data"),this.vt().Oo(e),this.vt().Fo(this),this.vt().Eo(),this.vt().Or()},e.prototype.La=function(){return this.So},e.prototype.zo=function(t){var e=new nk(this,t);return this.yo.push(e),this.vt().Fo(this),e},e.prototype.Po=function(t){var e=this.yo.indexOf(t);-1!==e&&this.yo.splice(e,1),this.vt().Fo(this)},e.prototype.Ya=function(){return this.Ao},e.prototype.H=function(){var t=this.Ro();return null===t?null:{X:t.X[3],Rs:t.S}},e.prototype.Ro=function(){var t=this.vt().j().mr();if(null===t)return null;var e=t.hh();return this.tt.oo(e,1)},e.prototype.Hi=function(){return this.tt},e.prototype.Fa=function(t){var e=this.tt.io(t);return null===e?null:"Bar"===this.Ao||"Candlestick"===this.Ao?{open:e.X[0],high:e.X[1],low:e.X[2],close:e.X[3]}:e.X[3]},e.prototype.Io=function(t){var e=this,n=this.Co;return null!==n&&n.U()?(null===this.Do&&n._a()&&(this.Do=setTimeout(function(){e.Do=null,e.vt().jo()},0)),n.va(),[n]):[]},e.prototype.zi=function(){var t=[];this.qo()||t.push(this.ko);for(var e=0,n=this.yo;e<n.length;e++){var i=n[e];t.push.apply(t,i.zi())}return t.push(this.Ai,this.qa,this.Ua,this.Ci),t},e.prototype.Pi=function(t,e){if(e!==this.ui&&!this.qo())return[];for(var n=te([],this.Mi,!0),i=0,r=this.yo;i<r.length;i++){var o=r[i];n.push(o.Ha())}return n},e.prototype.sh=function(t,e){var n=this;if(void 0!==this.ki.autoscaleInfoProvider){var i=this.ki.autoscaleInfoProvider(function(){var i=n.Uo(t,e);return null===i?null:i.Mn()});return nb.bn(i)}return this.Uo(t,e)},e.prototype.ih=function(){return this.ki.priceFormat.minMove},e.prototype.$s=function(){return this.Zn},e.prototype.Ii=function(){var t;this.Ai.O(),this.Ci.O();for(var e=0,n=this.Mi;e<n.length;e++)n[e].O();for(var i=0,r=this.yo;i<r.length;i++)r[i].O();this.qa.O(),this.ko.O(),null==(t=this.Co)||t.O()},e.prototype.$=function(){return tr(t.prototype.$.call(this))},e.prototype.q=function(t){if(!(("Line"===this.Ao||"Area"===this.Ao||"Baseline"===this.Ao)&&this.ki.crosshairMarkerVisible))return null;var e=this.tt.io(t);return null===e?null:{D:e.X[3],C:this.Ho(),Z:this.Yo(),Y:this.Ko(t)}},e.prototype.Va=function(){return this.ki.title},e.prototype.U=function(){return this.ki.visible},e.prototype.qo=function(){return!ez(this.$().hs())},e.prototype.Uo=function(t,e){if(!th(t)||!th(e)||this.tt.ti())return null;var n="Line"===this.Ao||"Area"===this.Ao||"Baseline"===this.Ao||"Histogram"===this.Ao?[3]:[2,1],i=this.tt.fo(t,e,n),r=null!==i?new t3(i.mo,i.po):null;if("Histogram"===this.Ya()){var o=this.ki.base,s=new t3(o,o);r=null!==r?r._n(s):s}return new nb(r,this.Ci.Ba())},e.prototype.Ho=function(){switch(this.Ao){case"Line":case"Area":case"Baseline":return this.ki.crosshairMarkerRadius}return 0},e.prototype.Yo=function(){switch(this.Ao){case"Line":case"Area":case"Baseline":var t=this.ki.crosshairMarkerBorderColor;if(0!==t.length)return t}return null},e.prototype.Ko=function(t){switch(this.Ao){case"Line":case"Area":case"Baseline":var e=this.ki.crosshairMarkerBackgroundColor;if(0!==e.length)return e}return this.tu().cu(t).fu},e.prototype.To=function(){switch(this.ki.priceFormat.type){case"custom":this.Zn={format:this.ki.priceFormat.formatter};break;case"volume":this.Zn=new eW(this.ki.priceFormat.precision);break;case"percent":this.Zn=new t1(this.ki.priceFormat.precision);break;default:var t=Math.pow(10,this.ki.priceFormat.precision);this.Zn=new t0(t,this.ki.priceFormat.minMove*t)}null!==this.ui&&this.ui.es()},e.prototype.Vo=function(){var t=this,e=this.vt().j();if(e.ti()||0===this.tt.Je())this.So=[];else{var n=tr(this.tt.eo());this.So=this.xo.map(function(i,r){var o=tr(e.br(i.time,!0));return{time:tr(t.tt.oo(o,o<n?1:-1)).Ph,position:i.position,shape:i.shape,color:i.color,id:i.id,ya:r,text:i.text,size:i.size}})}},e.prototype.Bo=function(){switch(this.Ci=new ny(this,this.vt()),this.Ao){case"Bar":this.Ai=new eQ(this,this.vt());break;case"Candlestick":this.Ai=new e8(this,this.vt());break;case"Line":this.Ai=new e7(this,this.vt());break;case"Area":this.Ai=new eH(this,this.vt());break;case"Baseline":this.Ai=new e2(this,this.vt());break;case"Histogram":this.Ai=new e6(this,this.vt());break;default:throw Error("Unknown chart style assigned: "+this.Ao)}},e}(nM),nA=function(){function t(t){this.ki=t}return t.prototype.$o=function(t,e,n){if(0===this.ki.mode)return t;var i=n.xi(),r=i.H();if(null===r)return t;var o=i.K(t,r),s=n.Vs().filter(function(t){return t instanceof nT}).reduce(function(t,i){if(n.Uu(i)||!i.U())return t;var r=i.$(),o=i.Hi();if(r.ti()||!o.Eh(e))return t;var s=o.io(e);if(null===s)return t;var a=to(i.H());return t.concat([r.K(s.X[3],a.X)])},[]);if(0===s.length)return t;s.sort(function(t,e){return Math.abs(t-o)-Math.abs(e-o)});var a=s[0];return i.Si(a,r)},t}(),nL=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,e,n,i){var r=this;if(null!==this.tt){var o=Math.max(1,Math.floor(e));t.lineWidth=o;var s=Math.ceil(this.tt.ht*e),a=Math.ceil(this.tt.st*e);t.save(),t.lineWidth%2&&t.translate(.5,.5),function(){var n=tr(r.tt);if(n.Xo){t.strokeStyle=n.Zo,H(t,n.Jo),t.beginPath();for(var i=0,h=n.Go;i<h.length;i++){var l=Math.round(h[i].An*e);t.moveTo(l,-o),t.lineTo(l,s+o)}t.stroke()}if(n.Qo){t.strokeStyle=n.tl,H(t,n.il),t.beginPath();for(var u=0,c=n.nl;u<c.length;u++){var f=Math.round(c[u].An*e);t.moveTo(-o,f),t.lineTo(a+o,f)}t.stroke()}}(),t.restore()}},t}(),nN=function(){function t(t){this.ot=new nL,this.L=!0,this.vi=t}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,e){if(this.L){var n=this.vi.vt().ct().grid,i={ht:t,st:e,Qo:n.horzLines.visible,Xo:n.vertLines.visible,tl:n.horzLines.color,Zo:n.vertLines.color,il:n.horzLines.style,Jo:n.vertLines.style,nl:this.vi.xi().Fn(),Go:this.vi.vt().j().Fn()||[]};this.ot._(i),this.L=!1}return this.ot},t}(),nP=function(){function t(t){this.Ai=new nN(t)}return t.prototype.sl=function(){return this.Ai},t}(),nR=function(){function t(t,e){this.Hn=[],this.hl=new Map,this.En=0,this.$h=0,this.rl=1e3,this.Yn=null,this.el=new t2,this.ul=t,this.hi=e,this.al=new nP(this);var n=e.ct();this.ol=this.ll("left",n.leftPriceScale),this.fl=this.ll("right",n.rightPriceScale),this.ol.bs().Ji(this.cl.bind(this,this.ol),this),this.fl.bs().Ji(this.cl.bind(this,this.ol),this),this.vl(n)}return t.prototype.vl=function(t){if(t.leftPriceScale&&this.ol.rs(t.leftPriceScale),t.rightPriceScale&&this.fl.rs(t.rightPriceScale),t.localization&&(this.ol.es(),this.fl.es()),t.overlayPriceScales)for(var e=0,n=Array.from(this.hl.values());e<n.length;e++){var i=tr(n[e][0].$());i.rs(t.overlayPriceScales),t.localization&&i.es()}},t.prototype._l=function(t){switch(t){case"left":return this.ol;case"right":return this.fl}return this.hl.has(t)?ti(this.hl.get(t))[0].$():null},t.prototype.en=function(){this.vt().dl().sn(this),this.ol.bs().sn(this),this.fl.bs().sn(this),this.Hn.forEach(function(t){t.en&&t.en()}),this.el.hn()},t.prototype.wl=function(){return this.rl},t.prototype.Ml=function(t){this.rl=t},t.prototype.vt=function(){return this.hi},t.prototype.wt=function(){return this.$h},t.prototype.Mt=function(){return this.En},t.prototype.Dr=function(t){this.$h=t,this.bl()},t.prototype.ps=function(t){var e=this;this.En=t,this.ol.ps(t),this.fl.ps(t),this.Hn.forEach(function(n){if(e.Uu(n)){var i=n.$();null!==i&&i.ps(t)}}),this.bl()},t.prototype.Vs=function(){return this.Hn},t.prototype.Uu=function(t){var e=t.$();return null===e||this.ol!==e&&this.fl!==e},t.prototype.Ws=function(t,e,n){var i=void 0!==n?n:this.pl().ml+1;this.gl(t,e,i)},t.prototype.Ps=function(t){var e=this.Hn.indexOf(t);tn(-1!==e,"removeDataSource: invalid data source"),this.Hn.splice(e,1);var n=tr(t.$()).hs();if(this.hl.has(n)){var i=ti(this.hl.get(n)),r=i.indexOf(t);-1!==r&&(i.splice(r,1),0===i.length&&this.hl.delete(n))}var o=t.$();o&&o.Vs().indexOf(t)>=0&&o.Ps(t),null!==o&&(o.zs(),this.yl(o)),this.Yn=null},t.prototype.Hu=function(t){return t===this.ol?"left":t===this.fl?"right":"overlay"},t.prototype.kl=function(){return this.ol},t.prototype.Cl=function(){return this.fl},t.prototype.Nl=function(t,e){t.js(e)},t.prototype.xl=function(t,e){t.qs(e),this.bl()},t.prototype.Sl=function(t){t.Us()},t.prototype.Dl=function(t,e){t.Hs(e)},t.prototype.Al=function(t,e){t.Ys(e),this.bl()},t.prototype.Tl=function(t){t.Ks()},t.prototype.bl=function(){this.Hn.forEach(function(t){t.Ii()})},t.prototype.xi=function(){var t=null;return this.hi.ct().rightPriceScale.visible&&0!==this.fl.Vs().length?t=this.fl:this.hi.ct().leftPriceScale.visible&&0!==this.ol.Vs().length?t=this.ol:0!==this.Hn.length&&(t=this.Hn[0].$()),null===t&&(t=this.fl),t},t.prototype.yl=function(t){null!==t&&t.fs()&&this.Bl(t)},t.prototype.Ll=function(t){var e=this.ul.mr();t.us({_s:!0}),null!==e&&t.th(e),this.bl()},t.prototype.Fl=function(){this.Bl(this.ol),this.Bl(this.fl)},t.prototype.El=function(){var t=this;this.yl(this.ol),this.yl(this.fl),this.Hn.forEach(function(e){t.Uu(e)&&t.yl(e.$())}),this.bl(),this.hi.Or()},t.prototype.Os=function(){return null===this.Yn&&(this.Yn=ea(this.Hn)),this.Yn},t.prototype.Vl=function(){return this.el},t.prototype.Ol=function(){return this.al},t.prototype.Bl=function(t){var e=t.Qs();if(e&&e.length>0&&!this.ul.ti()){var n=this.ul.mr();null!==n&&t.th(n)}t.Ii()},t.prototype.pl=function(){var t=this.Os();if(0===t.length)return{Wl:0,ml:0};for(var e=0,n=0,i=0;i<t.length;i++){var r=t[i].oi();null!==r&&(r<e&&(e=r),r>n&&(n=r))}return{Wl:e,ml:n}},t.prototype.gl=function(t,e,n){var i=this._l(e);if(null===i&&(i=this.ll(e,this.hi.ct().overlayPriceScales)),this.Hn.push(t),!ez(e)){var r=this.hl.get(e)||[];r.push(t),this.hl.set(e,r)}i.Ws(t),t.fi(i),t.li(n),this.yl(i),this.Yn=null},t.prototype.cl=function(t,e,n){e.os!==n.os&&this.Bl(t)},t.prototype.ll=function(t,e){var n=new ep(t,tt({visible:!0,autoScale:!0},tc(e)),this.hi.ct().layout,this.hi.ct().localization);return n.ps(this.Mt()),n},t}(),nB=function(t){function e(e){var n=t.call(this)||this;return n.zl=new Map,n.tt=e,n}return Q(e,t),e.prototype.u=function(t){},e.prototype.l=function(t){if(this.tt.U){t.save();for(var e=0,n=0,i=this.tt.Pl;n<i.length;n++)if(0!==(h=i[n]).Et.length){t.font=h.Nt;var r=this.Rl(t,h.Et);r>this.tt.wt?h.Ur=this.tt.wt/r:h.Ur=1,e+=h.Il*h.Ur}var o=0;switch(this.tt.jl){case"top":o=0;break;case"center":o=Math.max((this.tt.Mt-e)/2,0);break;case"bottom":o=Math.max(this.tt.Mt-e,0)}t.fillStyle=this.tt.et;for(var s=0,a=this.tt.Pl;s<a.length;s++){var h=a[s];t.save();var l=0;switch(this.tt.ql){case"left":t.textAlign="left",l=h.Il/2;break;case"center":t.textAlign="center",l=this.tt.wt/2;break;case"right":t.textAlign="right",l=this.tt.wt-1-h.Il/2}t.translate(l,o),t.textBaseline="top",t.font=h.Nt,t.scale(h.Ur,h.Ur),t.fillText(h.Et,0,h.Ul),t.restore(),o+=h.Il*h.Ur}t.restore()}},e.prototype.Rl=function(t,e){var n=this.Hl(t.font),i=n.get(e);return void 0===i&&(i=t.measureText(e).width,n.set(e,i)),i},e.prototype.Hl=function(t){var e=this.zl.get(t);return void 0===e&&(e=new Map,this.zl.set(t,e)),e},e}(tv),nI=function(){function t(t){this.L=!0,this.at={U:!1,et:"",Mt:0,wt:0,Pl:[],jl:"center",ql:"center"},this.ot=new nB(this.at),this.lt=t}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,e){return this.L&&(this.R(t,e),this.L=!1),this.ot},t.prototype.R=function(t,e){var n=this.lt.ct(),i=this.at;i.U=n.visible,i.U&&(i.et=n.color,i.wt=e,i.Mt=t,i.ql=n.horzAlign,i.jl=n.vertAlign,i.Pl=[{Et:n.text,Nt:eB(n.fontSize,n.fontFamily,n.fontStyle),Il:1.2*n.fontSize,Ul:0,Ur:0}])},t}(),nz=function(t){function e(e,n){var i=t.call(this)||this;return i.ki=n,i.Ai=new nI(i),i}return Q(e,t),e.prototype.Pi=function(){return[]},e.prototype.zi=function(){return[this.Ai]},e.prototype.ct=function(){return this.ki},e.prototype.Ii=function(){this.Ai.O()},e}(tZ),n$=function(){function t(t,e){this.Yl=[],this.Kl=[],this.$h=0,this.$l=null,this.Xl=null,this.Zl=new t2,this.Jl=new t2,this.Gl=null,this.Ql=t,this.ki=e,this.tf=new eI(this),this.ul=new eN(this,e.timeScale,this.ki.localization),this.V=new tJ(this,e.crosshair),this.if=new nA(e.crosshair),this.nf=new nz(this,e.watermark),this.sf(),this.Yl[0].Ml(2e3),this.hf=this.rf(0),this.ef=this.rf(1)}return t.prototype.uf=function(){this.af(new e$(3))},t.prototype.Or=function(){this.af(new e$(2))},t.prototype.jo=function(){this.af(new e$(1))},t.prototype.Fo=function(t){var e=this.lf(t);this.af(e)},t.prototype.ff=function(){return this.Xl},t.prototype.cf=function(t){var e=this.Xl;this.Xl=t,null!==e&&this.Fo(e.vf),null!==t&&this.Fo(t.vf)},t.prototype.ct=function(){return this.ki},t.prototype.rs=function(t){ts(this.ki,t),this.Yl.forEach(function(e){return e.vl(t)}),void 0!==t.timeScale&&this.ul.rs(t.timeScale),void 0!==t.localization&&this.ul.cr(t.localization),(t.leftPriceScale||t.rightPriceScale)&&this.Zl.hn(),this.hf=this.rf(0),this.ef=this.rf(1),this.uf()},t.prototype._f=function(t,e){var n=this.df(t);null!==n&&(n.$.rs(e),this.Zl.hn())},t.prototype.df=function(t){for(var e=0,n=this.Yl;e<n.length;e++){var i=n[e],r=i._l(t);if(null!==r)return{ft:i,$:r}}return null},t.prototype.j=function(){return this.ul},t.prototype.wf=function(){return this.Yl},t.prototype.Mf=function(){return this.nf},t.prototype.bf=function(){return this.V},t.prototype.mf=function(){return this.Jl},t.prototype.pf=function(t,e){t.ps(e),this.Vr()},t.prototype.Dr=function(t){this.$h=t,this.ul.Dr(this.$h),this.Yl.forEach(function(e){return e.Dr(t)}),this.Vr()},t.prototype.sf=function(t){var e=new nR(this.ul,this);void 0!==t?this.Yl.splice(t,0,e):this.Yl.push(e);var n=void 0===t?this.Yl.length-1:t,i=new e$(3);return i.be(n,{me:0,_s:!0}),this.af(i),e},t.prototype.Nl=function(t,e,n){t.Nl(e,n)},t.prototype.xl=function(t,e,n){t.xl(e,n),this.Eo(),this.af(this.gf(t,2))},t.prototype.Sl=function(t,e){t.Sl(e),this.af(this.gf(t,2))},t.prototype.Dl=function(t,e,n){e.fs()||t.Dl(e,n)},t.prototype.Al=function(t,e,n){e.fs()||(t.Al(e,n),this.Eo(),this.af(this.gf(t,2)))},t.prototype.Tl=function(t,e){e.fs()||(t.Tl(e),this.af(this.gf(t,2)))},t.prototype.Ll=function(t,e){t.Ll(e),this.af(this.gf(t,2))},t.prototype.yf=function(t){this.ul.js(t)},t.prototype.kf=function(t,e){var n=this.j();n.ti()||0===e||(t=Math.max(1,Math.min(t,n.wt())),n.Ur(t,e),this.Vr())},t.prototype.Cf=function(t){this.Nf(0),this.xf(t),this.Sf()},t.prototype.Df=function(t){this.ul.qs(t),this.Vr()},t.prototype.Af=function(){this.ul.Us(),this.Or()},t.prototype.Nf=function(t){this.$l=t,this.ul.Hs(t)},t.prototype.xf=function(t){var e=!1;return null!==this.$l&&Math.abs(t-this.$l)>20&&(this.$l=null,e=!0),this.ul.Ys(t),this.Vr(),e},t.prototype.Sf=function(){this.ul.Ks(),this.Or(),this.$l=null},t.prototype.W=function(){return this.Kl},t.prototype.Tf=function(t,e,n){this.V.Ti(t,e);var i=0/0,r=this.ul.Fr(t),o=this.ul.mr();null!==o&&(r=Math.min(Math.max(o.hh(),r),o.rh()));var s=n.xi(),a=s.H();null!==a&&(i=s.Si(e,a)),i=this.if.$o(i,r,n),this.V.Ei(r,i,n),this.jo(),this.Jl.hn(this.V.I(),{x:t,y:e})},t.prototype.Bf=function(){this.bf().Oi(),this.jo(),this.Jl.hn(null,null)},t.prototype.Eo=function(){var t=this.V.ft();if(null!==t){var e=this.V.Li(),n=this.V.Fi();this.Tf(e,n,t)}this.V.Ii()},t.prototype.Lf=function(t,e,n){var i=this.ul.ri(0);void 0!==e&&void 0!==n&&this.ul.O(e,n);var r=this.ul.ri(0),o=this.ul.Br(),s=this.ul.mr();if(null!==s&&null!==i&&null!==r){var a=s.Eh(o),h=i.Dh>r.Dh,l=null!==t&&t>o&&!h,u=a&&this.ul.ct().shiftVisibleRangeOnNewBar;if(l&&!u){var c=t-o;this.ul.Mr(this.ul.Pr()-c)}}this.ul.qr(t)},t.prototype.Oo=function(t){null!==t&&t.El()},t.prototype.qu=function(t){var e=this.Yl.find(function(e){return e.Os().includes(t)});return void 0===e?null:e},t.prototype.Vr=function(){this.nf.Ii(),this.Yl.forEach(function(t){return t.El()}),this.Eo()},t.prototype.en=function(){this.Yl.forEach(function(t){return t.en()}),this.Yl.length=0,this.ki.localization.priceFormatter=void 0,this.ki.localization.timeFormatter=void 0},t.prototype.Ff=function(){return this.tf},t.prototype.Yu=function(){return this.tf.ct()},t.prototype.dl=function(){return this.Zl},t.prototype.Ef=function(t,e){var n=this.Yl[0],i=this.Vf(e,t,n);return this.Kl.push(i),1===this.Kl.length?this.uf():this.Or(),i},t.prototype.Of=function(t){var e=this.qu(t),n=this.Kl.indexOf(t);tn(-1!==n,"Series not found"),this.Kl.splice(n,1),tr(e).Ps(t),t.en&&t.en()},t.prototype.Lo=function(t,e){var n=tr(this.qu(t));n.Ps(t);var i=this.df(e);if(null===i){var r=t.oi();n.Ws(t,e,r)}else r=i.ft===n?t.oi():void 0,i.ft.Ws(t,e,r)},t.prototype.Qr=function(){var t=new e$(2);t.ye(),this.af(t)},t.prototype.Wf=function(t){var e=new e$(2);e.Ce(t),this.af(e)},t.prototype.Ne=function(){var t=new e$(2);t.Ne(),this.af(t)},t.prototype.wr=function(t){var e=new e$(2);e.wr(t),this.af(e)},t.prototype.Mr=function(t){var e=new e$(2);e.Mr(t),this.af(e)},t.prototype.zf=function(){return this.ki.rightPriceScale.visible?"right":"left"},t.prototype.Pf=function(){return this.ef},t.prototype.Rf=function(){return this.hf},t.prototype.J=function(t){var e,n,i,r,o,s,a,h,l,u,c,f,p=this.ef,d=this.hf;if(p===d)return p;if(t=Math.max(0,Math.min(100,Math.round(100*t))),null===this.Gl||this.Gl.Ve!==d||this.Gl.Oe!==p)this.Gl={Ve:d,Oe:p,If:new Map};else{var v=this.Gl.If.get(t);if(void 0!==v)return v}var g=(e=t/100,i=(n=tT(d))[0],r=n[1],o=n[2],s=n[3],h=(a=tT(p))[0],l=a[1],u=a[2],c=a[3],"rgba("+(f=[tk(i+e*(h-i)),tk(r+e*(l-r)),tk(o+e*(u-o)),tM(s+e*(c-s))])[0]+", "+f[1]+", "+f[2]+", "+f[3]+")");return this.Gl.If.set(t,g),g},t.prototype.gf=function(t,e){var n=new e$(e);if(null!==t){var i=this.Yl.indexOf(t);n.be(i,{me:e})}return n},t.prototype.lf=function(t,e){return void 0===e&&(e=2),this.gf(this.qu(t),e)},t.prototype.af=function(t){this.Ql&&this.Ql(t),this.Yl.forEach(function(t){return t.Ol().sl().O()})},t.prototype.Vf=function(t,e,n){var i=new nT(this,t,e),r=void 0!==t.priceScaleId?t.priceScaleId:this.zf();return n.Ws(i,r),ez(r)||i.rs(t),i},t.prototype.rf=function(t){var e=this.ki.layout;return"gradient"===e.background.type?0===t?e.background.topColor:e.background.bottomColor:e.background.color},t}(),nW=function(){function t(t,e){this.st=t,this.ht=e}return t.prototype.on=function(t){return this.st===t.st&&this.ht===t.ht},t}();function nO(t){return t.ownerDocument&&t.ownerDocument.defaultView&&t.ownerDocument.defaultView.devicePixelRatio||1}function nU(t){var e=tr(t.getContext("2d"));return e.setTransform(1,0,0,1,0,0),e}function nD(t,e){var n=t.createElement("canvas"),i=nO(n);return n.style.width=e.st+"px",n.style.height=e.ht+"px",n.width=e.st*i,n.height=e.ht*i,n}function nq(t,e){var n,i=tr(t.ownerDocument).createElement("canvas");t.appendChild(i);var r=(void 0===n&&(n=Y),new X(i,n));return r.resizeCanvas({width:e.st,height:e.ht}),r}function nF(t,e,n){var i=(t.jf-e.jf)/(t.S-e.S);return Math.sign(i)*Math.min(Math.abs(i),n)}var nG=function(){function t(t,e,n,i){this.qf=null,this.Uf=null,this.Hf=null,this.Yf=null,this.Kf=null,this.$f=0,this.Xf=0,this.Zf=!1,this.Jf=t,this.Gf=e,this.Qf=n,this.Yi=i}return t.prototype.tc=function(t,e){if(null!==this.qf){if(this.qf.S===e)return void(this.qf.jf=t);if(Math.abs(this.qf.jf-t)<this.Yi)return}this.Yf=this.Hf,this.Hf=this.Uf,this.Uf=this.qf,this.qf={S:e,jf:t}},t.prototype.ia=function(t,e){if(null!==this.qf&&null!==this.Uf&&!(e-this.qf.S>50)){var n=0,i=nF(this.qf,this.Uf,this.Gf),r=(u=this.qf,c=this.Uf,u.jf-c.jf),o=[i],s=[r];if(n+=r,null!==this.Hf){var a=nF(this.Uf,this.Hf,this.Gf);if(Math.sign(a)===Math.sign(i)){var h=(f=this.Uf,p=this.Hf,f.jf-p.jf);if(o.push(a),s.push(h),n+=h,null!==this.Yf){var l=nF(this.Hf,this.Yf,this.Gf);if(Math.sign(l)===Math.sign(i)){var u,c,f,p,d,v,g=(d=this.Hf,v=this.Yf,d.jf-v.jf);o.push(l),s.push(g),n+=g}}}}for(var y,m,w=0,b=0;b<o.length;++b)w+=s[b]/n*o[b];Math.abs(w)<this.Jf||(this.Kf={jf:t,S:e},this.Xf=w,this.$f=(y=Math.abs(w),Math.log(-((m=Math.log(this.Qf))/y))/m))}},t.prototype.ic=function(t){var e=tr(this.Kf),n=t-e.S;return e.jf+this.Xf*(Math.pow(this.Qf,n)-1)/Math.log(this.Qf)},t.prototype.nc=function(t){return null===this.Kf||this.sc(t)===this.$f},t.prototype.hc=function(){return this.Zf},t.prototype.rc=function(){this.Zf=!0},t.prototype.sc=function(t){return Math.min(t-tr(this.Kf).S,this.$f)},t}(),nV="u">typeof window,nK=function(){if(!nV)return!1;var t=!!navigator.maxTouchPoints||!!navigator.msMaxTouchPoints||!!nV&&("ontouchstart"in window||!!(window.DocumentTouch&&document instanceof window.DocumentTouch));return"onorientationchange"in window&&t}(),nY=function(){if(!nV)return!1;var t=/Android/i.test(navigator.userAgent),e=/iPhone|iPad|iPod|AppleWebKit.+Mobile/i.test(navigator.userAgent);return t||e}(),nX=function(){function t(t,e,n){this.ec=0,this.uc=null,this.ac=null,this.oc=!1,this.lc=null,this.fc=!1,this.cc=!1,this.vc=null,this._c=null,this.dc=null,this.wc=null,this.Mc=0,this.bc=!1,this.mc=!1,this.gc=!1,this.yc=t,this.kc=e,this.ki=n,this.Cc()}return t.prototype.en=function(){null!==this.vc&&(this.vc(),this.vc=null),null!==this._c&&(this._c(),this._c=null),null!==this.dc&&(this.dc(),this.dc=null),this.Nc(),this.xc()},t.prototype.Sc=function(t){var e=this;this._c&&this._c();var n=this.Dc.bind(this);this._c=function(){e.yc.removeEventListener("mousemove",n)},this.yc.addEventListener("mousemove",n),nJ(t)&&this.Dc(t);var i=this.Ac(t);this.Tc(i,this.kc.Bc)},t.prototype.xc=function(){null!==this.uc&&clearTimeout(this.uc),this.ec=0,this.uc=null},t.prototype.Dc=function(t){if(!this.gc||nJ(t)){var e=this.Ac(t);this.Tc(e,this.kc.Lc)}},t.prototype.Fc=function(t){if((!("button"in t)||0===t.button)&&null===this.wc){var e=nJ(t);if(!this.mc||!e){this.bc=!0;var n=this.Ac(t),i=to(this.lc),r=Math.abs(i.p-n.Ec),o=Math.abs(i.g-n.Vc),s=r+o>5;if(s||!e){if(s&&!this.fc&&e){var a=.5*r,h=o>=a&&!this.ki.Oc,l=a>o&&!this.ki.Wc;h||l||(this.mc=!0)}s&&(this.fc=!0,this.cc=!0,e&&this.Nc()),this.mc||(this.Tc(n,this.kc.zc),e&&nQ(t))}}}},t.prototype.Pc=function(t){if(!("button"in t)||0===t.button){var e=this.Ac(t);this.Nc(),this.lc=null,this.gc=!1,this.dc&&(this.dc(),this.dc=null),nJ(t)&&this.Rc(t),this.Tc(e,this.kc.Ic),++this.ec,this.uc&&this.ec>1?(this.Tc(e,this.kc.jc),this.xc()):this.cc||this.Tc(e,this.kc.qc),nJ(t)&&(nQ(t),this.Rc(t),0===t.touches.length&&(this.oc=!1))}},t.prototype.Nc=function(){null!==this.ac&&(clearTimeout(this.ac),this.ac=null)},t.prototype.Uc=function(t){if(!("button"in t)||0===t.button){var e=this.Ac(t);this.cc=!1,this.fc=!1,this.mc=!1,nJ(t)&&this.Sc(t),this.lc={p:e.Ec,g:e.Vc},this.dc&&(this.dc(),this.dc=null);var n=this.Fc.bind(this),i=this.Pc.bind(this),r=this.yc.ownerDocument.documentElement;this.dc=function(){r.removeEventListener("touchmove",n),r.removeEventListener("touchend",i),r.removeEventListener("mousemove",n),r.removeEventListener("mouseup",i)},r.addEventListener("touchmove",n,{passive:!1}),r.addEventListener("touchend",i,{passive:!1}),this.Nc(),nJ(t)&&1===t.touches.length?this.ac=setTimeout(this.Hc.bind(this,t),240):(r.addEventListener("mousemove",n),r.addEventListener("mouseup",i)),this.gc=!0,this.Tc(e,this.kc.Yc),this.uc||(this.ec=0,this.uc=setTimeout(this.xc.bind(this),500))}},t.prototype.Cc=function(){var t=this;this.yc.addEventListener("mouseenter",this.Sc.bind(this)),this.yc.addEventListener("touchcancel",this.Nc.bind(this));var e=this.yc.ownerDocument,n=function(e){t.kc.Kc&&(e.composed&&t.yc.contains(e.composedPath()[0])||e.target&&t.yc.contains(e.target)||t.kc.Kc())};this.vc=function(){e.removeEventListener("mousedown",n),e.removeEventListener("touchstart",n)},e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!0}),this.yc.addEventListener("mouseleave",this.Rc.bind(this)),this.yc.addEventListener("touchstart",this.Uc.bind(this),{passive:!0}),nK||this.yc.addEventListener("mousedown",this.Uc.bind(this)),this.$c(),this.yc.addEventListener("touchmove",function(){},{passive:!1})},t.prototype.$c=function(){var t=this;void 0===this.kc.Xc&&void 0===this.kc.Zc&&void 0===this.kc.Jc||(this.yc.addEventListener("touchstart",function(e){return t.Gc(e.touches)},{passive:!0}),this.yc.addEventListener("touchmove",function(e){if(2===e.touches.length&&null!==t.wc&&void 0!==t.kc.Zc){var n=nZ(e.touches[0],e.touches[1])/t.Mc;t.kc.Zc(t.wc,n),nQ(e)}},{passive:!1}),this.yc.addEventListener("touchend",function(e){t.Gc(e.touches)}))},t.prototype.Gc=function(t){1===t.length&&(this.bc=!1),2!==t.length||this.bc||this.oc?this.Qc():this.tv(t)},t.prototype.tv=function(t){var e=nH(this.yc);this.wc={p:(t[0].clientX-e.left+(t[1].clientX-e.left))/2,g:(t[0].clientY-e.top+(t[1].clientY-e.top))/2},this.Mc=nZ(t[0],t[1]),void 0!==this.kc.Xc&&this.kc.Xc(),this.Nc()},t.prototype.Qc=function(){null!==this.wc&&(this.wc=null,void 0!==this.kc.Jc&&this.kc.Jc())},t.prototype.Rc=function(t){this._c&&this._c();var e=this.Ac(t);this.Tc(e,this.kc.iv)},t.prototype.Hc=function(t){var e=this.Ac(t);this.Tc(e,this.kc.nv),this.cc=!0,this.oc=!0},t.prototype.Tc=function(t,e){e&&e.call(this.kc,t)},t.prototype.Ac=function(t){var e="touches"in t&&t.touches.length?t.touches[0]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0]:t,n=nH(this.yc);return{sv:e.clientX,hv:e.clientY,Ec:e.pageX,Vc:e.pageY,rv:e.screenX,ev:e.screenY,uv:e.clientX-n.left,av:e.clientY-n.top,ov:t.ctrlKey,lv:t.altKey,fv:t.shiftKey,cv:t.metaKey,ke:t.type.startsWith("mouse")?"mouse":"touch",vv:t.view}},t}();function nH(t){return t.getBoundingClientRect()||{left:0,top:0}}function nZ(t,e){var n=t.clientX-e.clientX,i=t.clientY-e.clientY;return Math.sqrt(n*n+i*i)}function nJ(t){return!!t.touches}function nQ(t){t.cancelable&&t.preventDefault()}var n0=function(){function t(t,e,n,i){this.Pu=new nt(200),this.fe=0,this._v="",this.ma="",this.Vu=[],this.dv=new Map,this.fe=t,this._v=e,this.ma=eB(t,n,i)}return t.prototype.en=function(){this.Pu.Ou(),this.Vu=[],this.dv.clear()},t.prototype.wv=function(t,e,n,i,r){var o=this.Mv(t,e);if("left"!==r){var s=nO(t.canvas);n-=Math.floor(o.bv*s)}i-=Math.floor(o.Mt/2),t.drawImage(o.mv,n,i,o.wt,o.Mt)},t.prototype.Mv=function(t,e){var n,i=this;if(this.dv.has(e))n=ti(this.dv.get(e));else{if(this.Vu.length>=200){var r=ti(this.Vu.shift());this.dv.delete(r)}var o=nO(t.canvas),s=Math.ceil(this.fe/4.5),a=Math.round(this.fe/10),h=Math.ceil(this.Pu.Vt(t,e)),l=t5(Math.round(h+2*s)),u=t5(this.fe+2*s),c=nD(document,new nW(l,u));n={Et:e,bv:Math.round(Math.max(1,h)),wt:Math.ceil(l*o),Mt:Math.ceil(u*o),mv:c},0!==h&&(this.Vu.push(n.Et),this.dv.set(n.Et,n)),tL(t=nU(n.mv),o,function(){t.font=i.ma,t.fillStyle=i._v,t.fillText(e,0,u-s-a)})}return n},t}(),n1=function(){function t(t,e,n,i){var r=this;this.Gt=null,this.pv=null,this.gv=null,this.yv=!1,this.kv=new nt(50),this.Cv=new n0(11,"#000"),this._v=null,this.ma=null,this.Nv=0,this.xv=function(){r.Sv(r.tf.ct()),r.vi.Dv().vt().Or()},this.Av=function(){r.vi.Dv().vt().Or()},this.vi=t,this.ki=e,this.tf=n,this.Tv="left"===i,this.Bv=document.createElement("div"),this.Bv.style.height="100%",this.Bv.style.overflow="hidden",this.Bv.style.width="25px",this.Bv.style.left="0",this.Bv.style.position="relative",this.Lv=nq(this.Bv,new nW(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var o=this.Lv.canvas;o.style.position="absolute",o.style.zIndex="1",o.style.left="0",o.style.top="0",this.Fv=nq(this.Bv,new nW(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var s=this.Fv.canvas;s.style.position="absolute",s.style.zIndex="2",s.style.left="0",s.style.top="0";var a={Yc:this.Ev.bind(this),zc:this.Vv.bind(this),Kc:this.Ov.bind(this),Ic:this.Wv.bind(this),jc:this.zv.bind(this),Bc:this.Pv.bind(this),iv:this.Rv.bind(this)};this.Iv=new nX(this.Fv.canvas,a,{Oc:!1,Wc:!0})}return t.prototype.en=function(){this.Iv.en(),this.Fv.unsubscribeCanvasConfigured(this.Av),this.Fv.destroy(),this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy(),null!==this.Gt&&this.Gt.Is().sn(this),this.Gt=null,null!==this.gv&&(clearTimeout(this.gv),this.gv=null),this.Cv.en()},t.prototype.jv=function(){return this.Bv},t.prototype.N=function(){return tr(this.Gt).ct().borderColor},t.prototype.qv=function(){return this.ki.textColor},t.prototype.Wt=function(){return this.ki.fontSize},t.prototype.Uv=function(){return eB(this.Wt(),this.ki.fontFamily)},t.prototype.Hv=function(){var t=this.tf.ct(),e=this._v!==t.et,n=this.ma!==t.Nt;return(e||n)&&(this.Sv(t),this._v=t.et),n&&(this.kv.Ou(),this.ma=t.Nt),t},t.prototype.Yv=function(){if(null===this.Gt)return 0;var t=34,e=this.Hv(),n=nU(this.Lv.canvas),i=this.Gt.Fn();n.font=this.Uv(),i.length>0&&(t=Math.max(this.kv.Vt(n,i[0].Tn),this.kv.Vt(n,i[i.length-1].Tn)));for(var r=this.Kv(),o=r.length;o--;){var s=this.kv.Vt(n,r[o].Et());s>t&&(t=s)}var a=this.Gt.H();if(null!==a&&null!==this.pv){var h=this.Gt.Si(1,a),l=this.Gt.Si(this.pv.ht-2,a);t=Math.max(t,this.kv.Vt(n,this.Gt.ii(Math.floor(Math.min(h,l))+.11111111111111,a)),this.kv.Vt(n,this.Gt.ii(Math.ceil(Math.max(h,l))-.11111111111111,a)))}var u=Math.ceil(e.At+e.Dt+e.Lt+e.Ft+t);return u+u%2},t.prototype.$v=function(t){if(t.st<0||t.ht<0)throw Error("Try to set invalid size to PriceAxisWidget "+JSON.stringify(t));null!==this.pv&&this.pv.on(t)||(this.pv=t,this.Lv.resizeCanvas({width:t.st,height:t.ht}),this.Fv.resizeCanvas({width:t.st,height:t.ht}),this.Bv.style.width=t.st+"px",this.Bv.style.height=t.ht+"px",this.Bv.style.minWidth=t.st+"px")},t.prototype.Xv=function(){return tr(this.pv).st},t.prototype.fi=function(t){this.Gt!==t&&(null!==this.Gt&&this.Gt.Is().sn(this),this.Gt=t,t.Is().Ji(this.qn.bind(this),this))},t.prototype.$=function(){return this.Gt},t.prototype.Ou=function(){var t=this.vi.Zv();this.vi.Dv().vt().Ll(t,tr(this.$()))},t.prototype.Jv=function(t){if(null!==this.pv){if(1!==t){var e=nU(this.Lv.canvas);this.Gv(),this.Qv(e,this.Lv.pixelRatio),this.yu(e,this.Lv.pixelRatio),this.t_(e,this.Lv.pixelRatio),this.i_(e,this.Lv.pixelRatio)}var n=nU(this.Fv.canvas),i=this.pv.st,r=this.pv.ht;tL(n,this.Fv.pixelRatio,function(){n.clearRect(0,0,i,r)}),this.n_(n,this.Fv.pixelRatio)}},t.prototype.s_=function(){return this.Lv.canvas},t.prototype.Ev=function(t){if(null!==this.Gt&&!this.Gt.ti()&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var e=this.vi.Dv().vt(),n=this.vi.Zv();this.yv=!0,e.Nl(n,this.Gt,t.av)}},t.prototype.Vv=function(t){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var e=this.vi.Dv().vt(),n=this.vi.Zv(),i=this.Gt;e.xl(n,i,t.av)}},t.prototype.Ov=function(){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var t=this.vi.Dv().vt(),e=this.vi.Zv(),n=this.Gt;this.yv&&(this.yv=!1,t.Sl(e,n))}},t.prototype.Wv=function(t){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var e=this.vi.Dv().vt(),n=this.vi.Zv();this.yv=!1,e.Sl(n,this.Gt)}},t.prototype.zv=function(t){this.vi.Dv().ct().handleScale.axisDoubleClickReset&&this.Ou()},t.prototype.Pv=function(t){null!==this.Gt&&(!this.vi.Dv().vt().ct().handleScale.axisPressedMouseMove.price||this.Gt.cs()||this.Gt.vs()||this.h_(1))},t.prototype.Rv=function(t){this.h_(0)},t.prototype.Kv=function(){var t=this,e=[],n=null===this.Gt?void 0:this.Gt;return function(i){for(var r=0;r<i.length;++r)for(var o=i[r].Pi(t.vi.Zv(),n),s=0;s<o.length;s++)e.push(o[s])}(this.vi.Zv().Os()),e},t.prototype.Qv=function(t,e){var n=this;if(null!==this.pv){var i=this.pv.st,r=this.pv.ht;tL(t,e,function(){var e=n.vi.Zv().vt(),o=e.Rf(),s=e.Pf();o===s?tN(t,0,0,i,r,o):tP(t,0,0,i,r,o,s)})}},t.prototype.yu=function(t,e){if(null!==this.pv&&null!==this.Gt&&this.Gt.ct().borderVisible){t.save(),t.fillStyle=this.N();var n,i=Math.max(1,Math.floor(this.Hv().At*e));n=this.Tv?Math.floor(this.pv.st*e)-i:0,t.fillRect(n,0,i,Math.ceil(this.pv.ht*e)),t.restore()}},t.prototype.t_=function(t,e){if(null!==this.pv&&null!==this.Gt){var n=this.Gt.Fn();t.save(),t.strokeStyle=this.N(),t.font=this.Uv(),t.fillStyle=this.N();var i=this.Hv(),r=this.Gt.ct().borderVisible&&this.Gt.ct().drawTicks,o=this.Tv?Math.floor((this.pv.st-i.Dt)*e-i.At*e):Math.floor(i.At*e),s=this.Tv?Math.round(o-i.Lt*e):Math.round(o+i.Dt*e+i.Lt*e),a=this.Tv?"right":"left",h=Math.max(1,Math.floor(e)),l=Math.floor(.5*e);if(r){var u=Math.round(i.Dt*e);t.beginPath();for(var c=0;c<n.length;c++){var f=n[c];t.rect(o,Math.round(f.An*e)-l,u,h)}t.fill()}t.fillStyle=this.qv();for(var p=0;p<n.length;p++)f=n[p],this.Cv.wv(t,f.Tn,s,Math.round(f.An*e),a);t.restore()}},t.prototype.Gv=function(){if(null!==this.pv&&null!==this.Gt){var t=this.pv.ht/2,e=[],n=this.Gt.Os().slice(),i=this.vi.Zv(),r=this.Hv();this.Gt===i.xi()&&this.vi.Zv().Os().forEach(function(t){i.Uu(t)&&n.push(t)});var o=this.Gt.Vs()[0],s=this.Gt;n.forEach(function(n){var r=n.Pi(i,s);r.forEach(function(t){t.Kt(null),t.$t()&&e.push(t)}),o===n&&r.length>0&&(t=r[0].zt())});var a=e.filter(function(e){return e.zt()<=t}),h=e.filter(function(e){return e.zt()>t});if(a.sort(function(t,e){return e.zt()-t.zt()}),a.length&&h.length&&h.push(a[0]),h.sort(function(t,e){return t.zt()-e.zt()}),e.forEach(function(t){return t.Kt(t.zt())}),this.Gt.ct().alignLabels){for(var l,u,c=1;c<a.length;c++){var f=a[c],p=(l=a[c-1]).Mt(r,!1);f.zt()>(u=l.Yt())-p&&f.Kt(u-p)}for(var d=1;d<h.length;d++)f=h[d],p=(l=h[d-1]).Mt(r,!0),f.zt()<(u=l.Yt())+p&&f.Kt(u+p)}}},t.prototype.i_=function(t,e){var n=this;if(null!==this.pv){t.save();var i=this.pv,r=this.Kv(),o=this.Hv(),s=this.Tv?"right":"left";r.forEach(function(r){if(r.Xt()){var a=r.P(tr(n.Gt));t.save(),a.h(t,o,n.kv,i.st,s,e),t.restore()}}),t.restore()}},t.prototype.n_=function(t,e){var n=this;if(null!==this.pv&&null!==this.Gt){t.save();var i=this.pv,r=this.vi.Dv().vt(),o=[],s=this.vi.Zv(),a=r.bf().Pi(s,this.Gt);a.length&&o.push(a);var h=this.Hv(),l=this.Tv?"right":"left";o.forEach(function(r){r.forEach(function(r){t.save(),r.P(tr(n.Gt)).h(t,h,n.kv,i.st,l,e),t.restore()})}),t.restore()}},t.prototype.h_=function(t){this.Bv.style.cursor=1===t?"ns-resize":"default"},t.prototype.qn=function(){var t=this,e=this.Yv();if(this.Nv<e){var n=this.vi.Dv();null===this.gv&&(this.gv=setTimeout(function(){n&&n.vt().uf(),t.gv=null},100))}this.Nv=e},t.prototype.Sv=function(t){this.Cv.en(),this.Cv=new n0(t.Wt,t.et,t.le)},t}();function n2(t,e,n,i,r){t.o&&t.o(e,n,i,r)}function n3(t,e,n,i,r){t.h(e,n,i,r)}function n8(t,e){return t.zi(e)}function n4(t,e){return void 0!==t.Io?t.Io(e):[]}var n5=function(){function t(t,e){var n=this;this.pv=new nW(0,0),this.r_=null,this.e_=null,this.u_=null,this.a_=!1,this.o_=new t2,this.l_=0,this.f_=!1,this.c_=null,this.v_=!1,this.__=null,this.d_=null,this.xv=function(){return n.w_&&n.hi().Or()},this.Av=function(){return n.w_&&n.hi().Or()},this.M_=t,this.w_=e,this.w_.Vl().Ji(this.b_.bind(this),this,!0),this.m_=document.createElement("td"),this.m_.style.padding="0",this.m_.style.position="relative";var i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.position="relative",i.style.overflow="hidden",this.p_=document.createElement("td"),this.p_.style.padding="0",this.g_=document.createElement("td"),this.g_.style.padding="0",this.m_.appendChild(i),this.Lv=nq(i,new nW(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var r=this.Lv.canvas;r.style.position="absolute",r.style.zIndex="1",r.style.left="0",r.style.top="0",this.Fv=nq(i,new nW(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var o=this.Fv.canvas;o.style.position="absolute",o.style.zIndex="2",o.style.left="0",o.style.top="0",this.y_=document.createElement("tr"),this.y_.appendChild(this.p_),this.y_.appendChild(this.m_),this.y_.appendChild(this.g_),this.k_();var s=this.Dv().ct().handleScroll;this.Iv=new nX(this.Fv.canvas,this,{Oc:!s.vertTouchDrag,Wc:!s.horzTouchDrag})}return t.prototype.en=function(){null!==this.r_&&this.r_.en(),null!==this.e_&&this.e_.en(),this.Fv.unsubscribeCanvasConfigured(this.Av),this.Fv.destroy(),this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy(),null!==this.w_&&this.w_.Vl().sn(this),this.Iv.en()},t.prototype.Zv=function(){return tr(this.w_)},t.prototype.C_=function(e){null!==this.w_&&this.w_.Vl().sn(this),this.w_=e,null!==this.w_&&this.w_.Vl().Ji(t.prototype.b_.bind(this),this,!0),this.k_()},t.prototype.Dv=function(){return this.M_},t.prototype.jv=function(){return this.y_},t.prototype.k_=function(){if(null!==this.w_&&(this.N_(),0!==this.hi().W().length)){if(null!==this.r_){var t=this.w_.kl();this.r_.fi(tr(t))}if(null!==this.e_){var e=this.w_.Cl();this.e_.fi(tr(e))}}},t.prototype.wl=function(){return null!==this.w_?this.w_.wl():0},t.prototype.Ml=function(t){this.w_&&this.w_.Ml(t)},t.prototype.Bc=function(t){if(this.w_){var e=t.uv,n=t.av;nK||this.x_(e,n)}},t.prototype.Yc=function(t){if(this.f_=!1,this.v_=null!==this.c_,this.w_){if(this.S_(),document.activeElement!==document.body&&document.activeElement!==document.documentElement)tr(document.activeElement).blur();else{var e=document.getSelection();null!==e&&e.removeAllRanges()}var n=this.hi();if(!this.w_.xi().ti()&&!n.j().ti()){if(null!==this.c_){var i=n.bf();this.__={x:i.bt(),y:i.gt()},this.c_={x:t.uv,y:t.av}}nK||this.x_(t.uv,t.av)}}},t.prototype.Lc=function(t){if(this.w_){var e=t.uv,n=t.av;if(this.D_()&&this.A_(),!nK){this.x_(e,n);var i=this.pa(e,n);this.hi().cf(i&&{vf:i.vf,T_:i.T_})}}},t.prototype.qc=function(t){if(null!==this.w_){var e=t.uv,n=t.av;if(this.o_.rn()){var i=this.hi().bf().I();this.o_.hn(i,{x:e,y:n})}this.B_()}},t.prototype.zc=function(t){if(null!==this.w_){var e=this.hi(),n=t.uv,i=t.av;if(null!==this.c_){this.v_=!1;var r=tr(this.__),o=r.x+(n-this.c_.x),s=r.y+(i-this.c_.y);this.x_(o,s)}else this.D_()||this.x_(n,i);if(!e.j().ti()){var a=this.M_.ct(),h=a.handleScroll,l=a.kineticScroll;if(h.pressedMouseMove&&"touch"!==t.ke||(h.horzTouchDrag||h.vertTouchDrag)&&"mouse"!==t.ke){var u=this.w_.xi(),c=performance.now();null!==this.u_||this.L_()||(this.u_={x:t.sv,y:t.hv,Dh:c,uv:t.uv,av:t.av}),null!==this.d_&&this.d_.tc(t.uv,c),null===this.u_||this.a_||this.u_.x===t.sv&&this.u_.y===t.hv||(null===this.d_&&("touch"===t.ke&&l.touch||"mouse"===t.ke&&l.mouse)&&(this.d_=new nG(.2,7,.997,15),this.d_.tc(this.u_.uv,this.u_.Dh),this.d_.tc(t.uv,c)),u.ti()||e.Dl(this.w_,u,t.av),e.Nf(t.uv),this.a_=!0),this.a_&&(u.ti()||e.Al(this.w_,u,t.av),e.xf(t.uv))}}}},t.prototype.Ic=function(t){null!==this.w_&&(this.f_=!1,this.F_(t))},t.prototype.nv=function(t){if(this.f_=!0,null===this.c_&&nY){var e={x:t.uv,y:t.av};this.E_(e,e)}},t.prototype.iv=function(t){null!==this.w_&&(this.w_.vt().cf(null),nY||this.A_())},t.prototype.V_=function(){return this.o_},t.prototype.Xc=function(){this.l_=1,this.S_()},t.prototype.Zc=function(t,e){if(this.M_.ct().handleScale.pinch){var n=5*(e-this.l_);this.l_=e,this.hi().kf(t.p,n)}},t.prototype.pa=function(t,e){var n=this.w_;if(null===n)return null;for(var i=0,r=n.Os();i<r.length;i++){var o=r[i],s=this.O_(o.zi(n),t,e);if(null!==s)return{vf:o,vv:s.vv,T_:s.T_}}return null},t.prototype.W_=function(t,e){tr("left"===e?this.r_:this.e_).$v(new nW(t,this.pv.ht))},t.prototype.z_=function(){return this.pv},t.prototype.$v=function(t){if(t.st<0||t.ht<0)throw Error("Try to set invalid size to PaneWidget "+JSON.stringify(t));this.pv.on(t)||(this.pv=t,this.Lv.resizeCanvas({width:t.st,height:t.ht}),this.Fv.resizeCanvas({width:t.st,height:t.ht}),this.m_.style.width=t.st+"px",this.m_.style.height=t.ht+"px")},t.prototype.P_=function(){var t=tr(this.w_);t.yl(t.kl()),t.yl(t.Cl());for(var e=0,n=t.Vs();e<n.length;e++){var i=n[e];if(t.Uu(i)){var r=i.$();null!==r&&t.yl(r),i.Ii()}}},t.prototype.s_=function(){return this.Lv.canvas},t.prototype.Jv=function(t){if(0!==t&&null!==this.w_){if(t>1&&this.P_(),null!==this.r_&&this.r_.Jv(t),null!==this.e_&&this.e_.Jv(t),1!==t){var e=nU(this.Lv.canvas);e.save(),this.Qv(e,this.Lv.pixelRatio),this.w_&&(this.R_(e,this.Lv.pixelRatio),this.I_(e,this.Lv.pixelRatio),this.j_(e,this.Lv.pixelRatio,n8)),e.restore()}var n=nU(this.Fv.canvas);n.clearRect(0,0,Math.ceil(this.pv.st*this.Fv.pixelRatio),Math.ceil(this.pv.ht*this.Fv.pixelRatio)),this.j_(n,this.Lv.pixelRatio,n4),this.q_(n,this.Fv.pixelRatio)}},t.prototype.U_=function(){return this.r_},t.prototype.H_=function(){return this.e_},t.prototype.b_=function(){null!==this.w_&&this.w_.Vl().sn(this),this.w_=null},t.prototype.Qv=function(t,e){var n=this;tL(t,e,function(){var e=n.hi(),i=e.Rf(),r=e.Pf();i===r?tN(t,0,0,n.pv.st,n.pv.ht,r):tP(t,0,0,n.pv.st,n.pv.ht,i,r)})},t.prototype.R_=function(t,e){var n=tr(this.w_),i=n.Ol().sl().P(n.Mt(),n.wt());null!==i&&(t.save(),i.h(t,e,!1),t.restore())},t.prototype.I_=function(t,e){var n=this.hi().Mf();this.Y_(t,e,n8,n2,n),this.Y_(t,e,n8,n3,n)},t.prototype.q_=function(t,e){this.Y_(t,e,n8,n3,this.hi().bf())},t.prototype.j_=function(t,e,n){for(var i=tr(this.w_).Os(),r=0;r<i.length;r++){var o=i[r];this.Y_(t,e,n,n2,o)}for(var s=0;s<i.length;s++)o=i[s],this.Y_(t,e,n,n3,o)},t.prototype.Y_=function(t,e,n,i,r){for(var o=tr(this.w_),s=n(r,o),a=o.Mt(),h=o.wt(),l=o.vt().ff(),u=null!==l&&l.vf===r,c=null!==l&&u&&void 0!==l.T_?l.T_.ga:void 0,f=0;f<s.length;f++){var p=s[f].P(a,h);null!==p&&(t.save(),i(p,t,e,u,c),t.restore())}},t.prototype.O_=function(t,e,n){for(var i=0;i<t.length;i++){var r=t[i],o=r.P(this.pv.ht,this.pv.st);if(null!==o&&o.pa){var s=o.pa(e,n);if(null!==s)return{vv:r,T_:s}}}return null},t.prototype.N_=function(){if(null!==this.w_){var t=this.M_,e=this.w_.kl().ct().visible,n=this.w_.Cl().ct().visible;e||null===this.r_||(this.p_.removeChild(this.r_.jv()),this.r_.en(),this.r_=null),n||null===this.e_||(this.g_.removeChild(this.e_.jv()),this.e_.en(),this.e_=null);var i=t.vt().Ff();e&&null===this.r_&&(this.r_=new n1(this,t.ct().layout,i,"left"),this.p_.appendChild(this.r_.jv())),n&&null===this.e_&&(this.e_=new n1(this,t.ct().layout,i,"right"),this.g_.appendChild(this.e_.jv()))}},t.prototype.D_=function(){return nY&&null===this.c_},t.prototype.L_=function(){return nY&&this.f_||null!==this.c_},t.prototype.K_=function(t){return Math.max(0,Math.min(t,this.pv.st-1))},t.prototype.X_=function(t){return Math.max(0,Math.min(t,this.pv.ht-1))},t.prototype.x_=function(t,e){this.hi().Tf(this.K_(t),this.X_(e),tr(this.w_))},t.prototype.A_=function(){this.hi().Bf()},t.prototype.B_=function(){this.v_&&(this.c_=null,this.A_())},t.prototype.E_=function(t,e){this.c_=t,this.v_=!1,this.x_(e.x,e.y);var n=this.hi().bf();this.__={x:n.bt(),y:n.gt()}},t.prototype.hi=function(){return this.M_.vt()},t.prototype.Z_=function(){var t=this.hi(),e=this.Zv(),n=e.xi();t.Tl(e,n),t.Sf(),this.u_=null,this.a_=!1},t.prototype.F_=function(t){var e=this;if(this.a_){var n=performance.now();if(null!==this.d_&&this.d_.ia(t.uv,n),null===this.d_||this.d_.nc(n))this.Z_();else{var i=this.hi(),r=i.j(),o=this.d_,s=function(){if(!o.hc()){var t=performance.now(),n=o.nc(t);if(!o.hc()){var a=r.Pr();i.xf(o.ic(t)),a===r.Pr()&&(n=!0,e.d_=null)}n?e.Z_():requestAnimationFrame(s)}};requestAnimationFrame(s)}}},t.prototype.S_=function(){var t=performance.now(),e=null===this.d_||this.d_.nc(t);null!==this.d_&&(e||this.Z_()),null!==this.d_&&(this.d_.rc(),this.d_=null)},t}(),n6=function(){function t(t,e,n,i,r){var o=this;this.L=!0,this.pv=new nW(0,0),this.xv=function(){return o.Jv(3)},this.Tv="left"===t,this.tf=n.Ff,this.ki=e,this.J_=i,this.G_=r,this.Bv=document.createElement("div"),this.Bv.style.width="25px",this.Bv.style.height="100%",this.Bv.style.overflow="hidden",this.Lv=nq(this.Bv,new nW(16,16)),this.Lv.subscribeCanvasConfigured(this.xv)}return t.prototype.en=function(){this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy()},t.prototype.jv=function(){return this.Bv},t.prototype.z_=function(){return this.pv},t.prototype.$v=function(t){if(t.st<0||t.ht<0)throw Error("Try to set invalid size to PriceAxisStub "+JSON.stringify(t));this.pv.on(t)||(this.pv=t,this.Lv.resizeCanvas({width:t.st,height:t.ht}),this.Bv.style.width=t.st+"px",this.Bv.style.minWidth=t.st+"px",this.Bv.style.height=t.ht+"px",this.L=!0)},t.prototype.Jv=function(t){if((!(t<3)||this.L)&&0!==this.pv.st&&0!==this.pv.ht){this.L=!1;var e=nU(this.Lv.canvas);this.Qv(e,this.Lv.pixelRatio),this.yu(e,this.Lv.pixelRatio)}},t.prototype.s_=function(){return this.Lv.canvas},t.prototype.yu=function(t,e){if(this.J_()){var n=this.pv.st;t.save(),t.fillStyle=this.ki.timeScale.borderColor;var i=Math.floor(this.tf.ct().At*e),r=this.Tv?Math.round(n*e)-i:0;t.fillRect(r,0,i,i),t.restore()}},t.prototype.Qv=function(t,e){var n=this;tL(t,e,function(){tN(t,0,0,n.pv.st,n.pv.ht,n.G_())})},t}();function n7(t,e){return t.Rh>e.Rh?t:e}var n9=function(){function t(t){var e=this;this.Q_=null,this.td=null,this.oe=null,this.nd=!1,this.pv=new nW(0,0),this.sd=new t2,this.kv=new nt(5),this.xv=function(){return e.M_.vt().Or()},this.Av=function(){return e.M_.vt().Or()},this.M_=t,this.ki=t.ct().layout,this.hd=document.createElement("tr"),this.rd=document.createElement("td"),this.rd.style.padding="0",this.ed=document.createElement("td"),this.ed.style.padding="0",this.Bv=document.createElement("td"),this.Bv.style.height="25px",this.Bv.style.padding="0",this.ud=document.createElement("div"),this.ud.style.width="100%",this.ud.style.height="100%",this.ud.style.position="relative",this.ud.style.overflow="hidden",this.Bv.appendChild(this.ud),this.Lv=nq(this.ud,new nW(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var n=this.Lv.canvas;n.style.position="absolute",n.style.zIndex="1",n.style.left="0",n.style.top="0",this.Fv=nq(this.ud,new nW(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var i=this.Fv.canvas;i.style.position="absolute",i.style.zIndex="2",i.style.left="0",i.style.top="0",this.hd.appendChild(this.rd),this.hd.appendChild(this.Bv),this.hd.appendChild(this.ed),this.ad(),this.M_.vt().dl().Ji(this.ad.bind(this),this),this.Iv=new nX(this.Fv.canvas,this,{Oc:!0,Wc:!1})}return t.prototype.en=function(){this.Iv.en(),null!==this.Q_&&this.Q_.en(),null!==this.td&&this.td.en(),this.Fv.unsubscribeCanvasConfigured(this.Av),this.Fv.destroy(),this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy()},t.prototype.jv=function(){return this.hd},t.prototype.od=function(){return this.Q_},t.prototype.ld=function(){return this.td},t.prototype.Yc=function(t){if(!this.nd){this.nd=!0;var e=this.M_.vt();!e.j().ti()&&this.M_.ct().handleScale.axisPressedMouseMove.time&&e.yf(t.uv)}},t.prototype.Kc=function(){var t=this.M_.vt();!t.j().ti()&&this.nd&&(this.nd=!1,this.M_.ct().handleScale.axisPressedMouseMove.time&&t.Af())},t.prototype.zc=function(t){var e=this.M_.vt();!e.j().ti()&&this.M_.ct().handleScale.axisPressedMouseMove.time&&e.Df(t.uv)},t.prototype.Ic=function(t){this.nd=!1;var e=this.M_.vt();e.j().ti()&&!this.M_.ct().handleScale.axisPressedMouseMove.time||e.Af()},t.prototype.jc=function(){this.M_.ct().handleScale.axisDoubleClickReset&&this.M_.vt().Ne()},t.prototype.Bc=function(t){this.M_.vt().ct().handleScale.axisPressedMouseMove.time&&this.h_(1)},t.prototype.iv=function(t){this.h_(0)},t.prototype.z_=function(){return this.pv},t.prototype.fd=function(){return this.sd},t.prototype.vd=function(t,e,n){this.pv&&this.pv.on(t)||(this.pv=t,this.Lv.resizeCanvas({width:t.st,height:t.ht}),this.Fv.resizeCanvas({width:t.st,height:t.ht}),this.Bv.style.width=t.st+"px",this.Bv.style.height=t.ht+"px",this.sd.hn(t)),null!==this.Q_&&this.Q_.$v(new nW(e,t.ht)),null!==this.td&&this.td.$v(new nW(n,t.ht))},t.prototype._d=function(){var t=this.dd();return Math.ceil(t.At+t.Dt+t.Wt+t.Tt+t.Bt)},t.prototype.O=function(){this.M_.vt().j().Fn()},t.prototype.s_=function(){return this.Lv.canvas},t.prototype.Jv=function(t){if(0!==t){if(1!==t){var e=nU(this.Lv.canvas);this.Qv(e,this.Lv.pixelRatio),this.yu(e,this.Lv.pixelRatio),this.t_(e,this.Lv.pixelRatio),null!==this.Q_&&this.Q_.Jv(t),null!==this.td&&this.td.Jv(t)}var n=nU(this.Fv.canvas),i=this.Fv.pixelRatio;n.clearRect(0,0,Math.ceil(this.pv.st*i),Math.ceil(this.pv.ht*i)),this.wd([this.M_.vt().bf()],n,i)}},t.prototype.Qv=function(t,e){var n=this;tL(t,e,function(){tN(t,0,0,n.pv.st,n.pv.ht,n.M_.vt().Pf())})},t.prototype.yu=function(t,e){if(this.M_.ct().timeScale.borderVisible){t.save(),t.fillStyle=this.Md();var n=Math.max(1,Math.floor(this.dd().At*e));t.fillRect(0,0,Math.ceil(this.pv.st*e),n),t.restore()}},t.prototype.t_=function(t,e){var n=this,i=this.M_.vt().j().Fn();if(i&&0!==i.length){var r=i.reduce(n7,i[0]).Rh;r>30&&r<50&&(r=30),t.save(),t.strokeStyle=this.Md();var o=this.dd(),s=o.At+o.Dt+o.Tt+o.Wt-o.Ot;t.textAlign="center",t.fillStyle=this.Md();var a=Math.floor(this.dd().At*e),h=Math.max(1,Math.floor(e)),l=Math.floor(.5*e);if(this.M_.vt().j().ct().borderVisible){t.beginPath();for(var u=Math.round(o.Dt*e),c=i.length;c--;){var f=Math.round(i[c].An*e);t.rect(f-l,a,h,u)}t.fill()}t.fillStyle=this.ve(),tL(t,e,function(){t.font=n.bd();for(var e,o=0;o<i.length;o++)if((e=i[o]).Rh<r){var a=e.Ir?n.md(t,e.An,e.Tn):e.An;t.fillText(e.Tn,a,s)}t.font=n.pd();for(var h=0;h<i.length;h++)(e=i[h]).Rh>=r&&(a=e.Ir?n.md(t,e.An,e.Tn):e.An,t.fillText(e.Tn,a,s))})}},t.prototype.md=function(t,e,n){var i=this.kv.Vt(t,n),r=Math.floor(e-i/2)+.5;return r<0?e+=Math.abs(0-r):r+i>this.pv.st&&(e-=Math.abs(this.pv.st-(r+i))),e},t.prototype.wd=function(t,e,n){for(var i=this.dd(),r=0;r<t.length;r++)for(var o=0,s=t[r].ci();o<s.length;o++){var a=s[o];e.save(),a.P().h(e,i,n),e.restore()}},t.prototype.Md=function(){return this.M_.ct().timeScale.borderColor},t.prototype.ve=function(){return this.ki.textColor},t.prototype.fe=function(){return this.ki.fontSize},t.prototype.bd=function(){return eB(this.fe(),this.ki.fontFamily)},t.prototype.pd=function(){return eB(this.fe(),this.ki.fontFamily,"bold")},t.prototype.dd=function(){null===this.oe&&(this.oe={At:1,Ot:0/0,Tt:0/0,Bt:0/0,si:0/0,Dt:3,Wt:0/0,Nt:"",ni:new nt});var t=this.oe,e=this.bd();if(t.Nt!==e){var n=this.fe();t.Wt=n,t.Nt=e,t.Tt=Math.ceil(n/2.5),t.Bt=t.Tt,t.si=Math.ceil(n/2),t.Ot=Math.round(this.fe()/5),t.ni.Ou()}return this.oe},t.prototype.h_=function(t){this.Bv.style.cursor=1===t?"ew-resize":"default"},t.prototype.ad=function(){var t=this.M_.vt(),e=t.ct();e.leftPriceScale.visible||null===this.Q_||(this.rd.removeChild(this.Q_.jv()),this.Q_.en(),this.Q_=null),e.rightPriceScale.visible||null===this.td||(this.ed.removeChild(this.td.jv()),this.td.en(),this.td=null);var n={Ff:this.M_.vt().Ff()},i=function(){return e.leftPriceScale.borderVisible&&t.j().ct().borderVisible},r=function(){return t.Pf()};e.leftPriceScale.visible&&null===this.Q_&&(this.Q_=new n6("left",e,n,i,r),this.rd.appendChild(this.Q_.jv())),e.rightPriceScale.visible&&null===this.td&&(this.td=new n6("right",e,n,i,r),this.ed.appendChild(this.td.jv()))},t}(),it=function(){function t(t,e){this.gd=[],this.yd=0,this.En=0,this.$h=0,this.kd=0,this.Cd=0,this.Nd=null,this.xd=!1,this.o_=new t2,this.Jl=new t2,this.ki=e,this.hd=document.createElement("div"),this.hd.classList.add("tv-lightweight-charts"),this.hd.style.overflow="hidden",this.hd.style.width="100%",this.hd.style.height="100%",(n=this.hd).style.userSelect="none",n.style.webkitUserSelect="none",n.style.msUserSelect="none",n.style.MozUserSelect="none",n.style.webkitTapHighlightColor="transparent",this.Sd=document.createElement("table"),this.Sd.setAttribute("cellspacing","0"),this.hd.appendChild(this.Sd),this.Dd=this.Ad.bind(this),this.hd.addEventListener("wheel",this.Dd,{passive:!1}),this.hi=new n$(this.Ql.bind(this),this.ki),this.vt().mf().Ji(this.Td.bind(this),this),this.Bd=new n9(this),this.Sd.appendChild(this.Bd.jv());var n,i=this.ki.width,r=this.ki.height;if(0===i||0===r){var o=t.getBoundingClientRect();0===i&&(i=Math.floor(o.width),i-=i%2),0===r&&(r=Math.floor(o.height),r-=r%2)}this.Ld(i,r),this.Fd(),t.appendChild(this.hd),this.Ed(),this.hi.j().Jr().Ji(this.hi.uf.bind(this.hi),this),this.hi.dl().Ji(this.hi.uf.bind(this.hi),this)}return t.prototype.vt=function(){return this.hi},t.prototype.ct=function(){return this.ki},t.prototype.Vd=function(){return this.gd},t.prototype.Od=function(){return this.Bd},t.prototype.en=function(){this.hd.removeEventListener("wheel",this.Dd),0!==this.yd&&window.cancelAnimationFrame(this.yd),this.hi.mf().sn(this),this.hi.j().Jr().sn(this),this.hi.dl().sn(this),this.hi.en();for(var t=0,e=this.gd;t<e.length;t++){var n=e[t];this.Sd.removeChild(n.jv()),n.V_().sn(this),n.en()}this.gd=[],tr(this.Bd).en(),null!==this.hd.parentElement&&this.hd.parentElement.removeChild(this.hd),this.Jl.en(),this.o_.en()},t.prototype.Ld=function(t,e,n){if(void 0===n&&(n=!1),this.En!==e||this.$h!==t){this.En=e,this.$h=t;var i=e+"px",r=t+"px";tr(this.hd).style.height=i,tr(this.hd).style.width=r,this.Sd.style.height=i,this.Sd.style.width=r,n?this.Wd(new e$(3)):this.hi.uf()}},t.prototype.Jv=function(t){void 0===t&&(t=new e$(3));for(var e=0;e<this.gd.length;e++)this.gd[e].Jv(t.ge(e).me);this.ki.timeScale.visible&&this.Bd.Jv(t.pe())},t.prototype.rs=function(t){this.hi.rs(t),this.Ed();var e=t.width||this.$h,n=t.height||this.En;this.Ld(e,n)},t.prototype.V_=function(){return this.o_},t.prototype.mf=function(){return this.Jl},t.prototype.zd=function(){var t=this;null!==this.Nd&&(this.Wd(this.Nd),this.Nd=null);var e=this.gd[0],n=nD(document,new nW(this.$h,this.En)),i=nU(n);return tL(i,nO(n),function(){var n=0,r=0,o=function(e){for(var o=0;o<t.gd.length;o++){var s=t.gd[o],a=s.z_().ht,h=tr("left"===e?s.U_():s.H_()),l=h.s_();i.drawImage(l,n,r,h.Xv(),a),r+=a}};t.Pd()&&(o("left"),n=tr(e.U_()).Xv()),r=0;for(var s=0;s<t.gd.length;s++){var a=t.gd[s],h=a.z_(),l=a.s_();i.drawImage(l,n,r,h.st,h.ht),r+=h.ht}n+=e.z_().st,t.Rd()&&(r=0,o("right"));var u=function(e){var o=tr("left"===e?t.Bd.od():t.Bd.ld()),s=o.z_(),a=o.s_();i.drawImage(a,n,r,s.st,s.ht)};if(t.ki.timeScale.visible){n=0,t.Pd()&&(u("left"),n=tr(e.U_()).Xv());var c=t.Bd.z_();l=t.Bd.s_(),i.drawImage(l,n,r,c.st,c.ht),t.Rd()&&(n+=e.z_().st,u("right"),i.restore())}}),n},t.prototype.Id=function(t){return"none"===t?0:("left"!==t||this.Pd())&&("right"!==t||this.Rd())?0===this.gd.length?0:tr("left"===t?this.gd[0].U_():this.gd[0].H_()).Xv():0},t.prototype.jd=function(){for(var t=0,e=0,n=0,i=0,r=this.gd;i<r.length;i++){var o=r[i];this.Pd()&&(e=Math.max(e,tr(o.U_()).Yv())),this.Rd()&&(n=Math.max(n,tr(o.H_()).Yv())),t+=o.wl()}var s=this.$h,a=this.En,h=Math.max(s-e-n,0),l=this.ki.timeScale.visible,u=l?this.Bd._d():0;u%2&&(u+=1);for(var c=0+u,f=a<c?0:a-c,p=f/t,d=0,v=0;v<this.gd.length;++v){(o=this.gd[v]).C_(this.hi.wf()[v]);var g,y=0;y=v===this.gd.length-1?f-d:Math.round(o.wl()*p),d+=g=Math.max(y,2),o.$v(new nW(h,g)),this.Pd()&&o.W_(e,"left"),this.Rd()&&o.W_(n,"right"),o.Zv()&&this.hi.pf(o.Zv(),g)}this.Bd.vd(new nW(l?h:0,u),l?e:0,l?n:0),this.hi.Dr(h),this.kd!==e&&(this.kd=e),this.Cd!==n&&(this.Cd=n)},t.prototype.Ad=function(t){var e=t.deltaX/100,n=-t.deltaY/100;if(0!==e&&this.ki.handleScroll.mouseWheel||0!==n&&this.ki.handleScale.mouseWheel){switch(t.cancelable&&t.preventDefault(),t.deltaMode){case t.DOM_DELTA_PAGE:e*=120,n*=120;break;case t.DOM_DELTA_LINE:e*=32,n*=32}if(0!==n&&this.ki.handleScale.mouseWheel){var i=Math.sign(n)*Math.min(1,Math.abs(n)),r=t.clientX-this.hd.getBoundingClientRect().left;this.vt().kf(r,i)}0!==e&&this.ki.handleScroll.mouseWheel&&this.vt().Cf(-80*e)}},t.prototype.Wd=function(t){var e=t.pe();if(3===e&&this.qd(),3===e||2===e){for(var n=this.hi.wf(),i=0;i<n.length;i++)t.ge(i)._s&&n[i].Fl();for(var r=t.xe(),o=0;o<r.length;o++){var s=r[o];this.Se(s)}r.length>0&&(this.hi.Vr(),this.hi.Eo(),this.hi.Or()),this.Bd.O()}this.Jv(t)},t.prototype.Se=function(t){var e=this.hi.j();switch(t.ke){case 0:e.Qr();break;case 1:e.te(t.X);break;case 2:e.wr(t.X);break;case 3:e.Mr(t.X);break;case 4:e.jr()}},t.prototype.Ql=function(t){var e=this;null!==this.Nd?this.Nd._n(t):this.Nd=t,this.xd||(this.xd=!0,this.yd=window.requestAnimationFrame(function(){e.xd=!1,e.yd=0,null!==e.Nd&&(e.Wd(e.Nd),e.Nd=null)}))},t.prototype.qd=function(){this.Fd()},t.prototype.Fd=function(){for(var t=this.hi.wf(),e=t.length,n=this.gd.length,i=e;i<n;i++){var r=ti(this.gd.pop());this.Sd.removeChild(r.jv()),r.V_().sn(this),r.en()}for(i=n;i<e;i++)(r=new n5(this,t[i])).V_().Ji(this.Ud.bind(this),this),this.gd.push(r),this.Sd.insertBefore(r.jv(),this.Bd.jv());for(i=0;i<e;i++){var o=t[i];(r=this.gd[i]).Zv()!==o?r.C_(o):r.k_()}this.Ed(),this.jd()},t.prototype.Hd=function(t,e){var n,i=new Map;if(null!==t&&this.hi.W().forEach(function(e){var n=e.Fa(t);null!==n&&i.set(e,n)}),null!==t){var r=this.hi.j().ri(t);null!==r&&(n=r)}var o=this.vt().ff();return{S:n,Yd:e||void 0,Kd:null!==o&&o.vf instanceof nT?o.vf:void 0,$d:i,Xd:null!==o&&void 0!==o.T_?o.T_.ka:void 0}},t.prototype.Ud=function(t,e){var n=this;this.o_.hn(function(){return n.Hd(t,e)})},t.prototype.Td=function(t,e){var n=this;this.Jl.hn(function(){return n.Hd(t,e)})},t.prototype.Ed=function(){var t=this.ki.timeScale.visible?"":"none";this.Bd.jv().style.display=t},t.prototype.Pd=function(){return this.gd[0].Zv().kl().ct().visible},t.prototype.Rd=function(){return this.gd[0].Zv().Cl().ct().visible},t}();function ie(t,e,n){var i=n.value,r={Ph:e,S:t,X:[i,i,i,i]};return"color"in n&&void 0!==n.color&&(r.et=n.color),r}function ii(t,e,n){return{Ph:e,S:t,X:[n.open,n.high,n.low,n.close]}}function ir(t){return void 0!==t.X}function io(t){return function(e,n,i){return void 0===i.open&&void 0===i.value?{S:e,Ph:n}:t(e,n,i)}}var is={Candlestick:io(ii),Bar:io(ii),Area:io(ie),Baseline:io(ie),Histogram:io(ie),Line:io(ie)};function ia(t){return 60*t*6e4}function ih(t){return 60*t*1e3}var il=[{Zd:1e3,Rh:10},{Zd:ih(1),Rh:20},{Zd:ih(5),Rh:21},{Zd:ih(30),Rh:22},{Zd:ia(1),Rh:30},{Zd:ia(3),Rh:31},{Zd:ia(6),Rh:32},{Zd:ia(12),Rh:33}];function iu(t,e){if(t.getUTCFullYear()!==e.getUTCFullYear())return 70;if(t.getUTCMonth()!==e.getUTCMonth())return 60;if(t.getUTCDate()!==e.getUTCDate())return 50;for(var n=il.length-1;n>=0;--n)if(Math.floor(e.getTime()/il[n].Zd)!==Math.floor(t.getTime()/il[n].Zd))return il[n].Rh;return 0}function ic(t,e){if(void 0===e&&(e=0),0!==t.length){for(var n=0===e?null:t[e-1].S.Dh,i=null!==n?new Date(1e3*n):null,r=0,o=e;o<t.length;++o){var s=t[o],a=new Date(1e3*s.S.Dh);null!==i&&(s.zh=iu(a,i)),r+=s.S.Dh-(n||s.S.Dh),n=s.S.Dh,i=a}if(0===e&&t.length>1){var h=Math.ceil(r/(t.length-1)),l=new Date(1e3*(t[0].S.Dh-h));t[0].zh=iu(new Date(1e3*t[0].S.Dh),l)}}}function ip(t){if(!eP(t))throw Error("time must be of type BusinessDay");return{Dh:Math.round(new Date(Date.UTC(t.year,t.month-1,t.day,0,0,0,0)).getTime()/1e3),Sh:t}}function id(t){if(!ta(t))throw Error("time must be of type isUTCTimestamp");return{Dh:t}}function iv(t){return 0===t.length?null:eP(t[0].time)?ip:id}function ig(t){return ta(t)?id(t):eP(t)?ip(t):ip(iy(t))}function iy(t){var e=new Date(t);if(isNaN(e.getTime()))throw Error("Invalid date string="+t+", expected format=yyyy-mm-dd");return{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()}}function im(t){tl(t.time)&&(t.time=iy(t.time))}function iw(t){return{Ph:0,Jd:new Map,Rs:t}}var ib=function(){function t(){this.Gd=new Map,this.Qd=new Map,this.tw=new Map,this.iw=[]}return t.prototype.en=function(){this.Gd.clear(),this.Qd.clear(),this.tw.clear(),this.iw=[]},t.prototype.nw=function(t,e){var n=this,i=0!==this.Gd.size,r=!1;if(this.Qd.has(t))if(1===this.Qd.size)i=!1,r=!0,this.Gd.clear();else for(var o=0,s=this.iw;o<s.length;o++)s[o].pointData.Jd.delete(t)&&(r=!0);var a=[];if(0!==e.length){e.forEach(im);var h=tr(iv(e)),l=is[t.Ya()];a=e.map(function(e){var i=h(e.time),o=n.Gd.get(i.Dh);void 0===o&&(o=iw(i),n.Gd.set(i.Dh,o),r=!0);var s=l(i,o.Ph,e);return o.Jd.set(t,s),s})}i&&this.sw(),this.hw(t,a);var u=-1;if(r){var c=[];this.Gd.forEach(function(t){c.push({zh:0,S:t.Rs,pointData:t})}),c.sort(function(t,e){return t.S.Dh-e.S.Dh}),u=this.rw(c)}return this.ew(t,u)},t.prototype.Of=function(t){return this.nw(t,[])},t.prototype.uw=function(t,e){im(e);var n=tr(iv([e]))(e.time),i=this.tw.get(t);if(void 0!==i&&n.Dh<i.Dh)throw Error("Cannot update oldest data, last time="+i.Dh+", new time="+n.Dh);var r=this.Gd.get(n.Dh),o=void 0===r;void 0===r&&(r=iw(n),this.Gd.set(n.Dh,r));var s=is[t.Ya()](n,r.Ph,e);if(r.Jd.set(t,s),this.aw(t,s),!o)return this.ew(t,-1);var a={zh:0,S:r.Rs,pointData:r},h=eb(this.iw,a.S.Dh,function(t,e){return t.S.Dh<e});this.iw.splice(h,0,a);for(var l=h;l<this.iw.length;++l)i_(this.iw[l].pointData,l);return ic(this.iw,h),this.ew(t,h)},t.prototype.aw=function(t,e){var n=this.Qd.get(t);void 0===n&&(n=[],this.Qd.set(t,n));var i=0!==n.length?n[n.length-1]:null;null===i||e.S.Dh>i.S.Dh?ir(e)&&n.push(e):ir(e)?n[n.length-1]=e:n.splice(-1,1),this.tw.set(t,e.S)},t.prototype.hw=function(t,e){0!==e.length?(this.Qd.set(t,e.filter(ir)),this.tw.set(t,e[e.length-1].S)):(this.Qd.delete(t),this.tw.delete(t))},t.prototype.sw=function(){for(var t=0,e=this.iw;t<e.length;t++){var n=e[t];0===n.pointData.Jd.size&&this.Gd.delete(n.S.Dh)}},t.prototype.rw=function(t){for(var e=-1,n=0;n<this.iw.length&&n<t.length;++n){var i=this.iw[n],r=t[n];if(i.S.Dh!==r.S.Dh){e=n;break}r.zh=i.zh,i_(r.pointData,n)}if(-1===e&&this.iw.length!==t.length&&(e=Math.min(this.iw.length,t.length)),-1===e)return -1;for(n=e;n<t.length;++n)i_(t[n].pointData,n);return ic(t,e),this.iw=t,e},t.prototype.ow=function(){if(0===this.Qd.size)return null;var t=0;return this.Qd.forEach(function(e){0!==e.length&&(t=Math.max(t,e[e.length-1].Ph))}),t},t.prototype.ew=function(t,e){var n={lw:new Map,j:{Br:this.ow()}};if(-1!==e)this.Qd.forEach(function(t,e){n.lw.set(e,{Zu:t})}),this.Qd.has(t)||n.lw.set(t,{Zu:[]}),n.j.fw=this.iw,n.j.cw=e;else{var i=this.Qd.get(t);n.lw.set(t,{Zu:i||[]})}return n},t}();function i_(t,e){t.Ph=e,t.Jd.forEach(function(t){t.Ph=e})}var ix={color:"#FF0000",price:0,lineStyle:2,lineWidth:1,axisLabelVisible:!0,title:""},ik=function(){function t(t){this.Ia=t}return t.prototype.applyOptions=function(t){this.Ia.rs(t)},t.prototype.options=function(){return this.Ia.ct()},t.prototype._w=function(){return this.Ia},t}();function iM(t){var e=t.overlay,n=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)0>e.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}(t,["overlay"]);return e&&(n.priceScaleId=""),n}var iS=function(){function t(t,e,n){this.qe=t,this.dw=e,this.ww=n}return t.prototype.priceFormatter=function(){return this.qe.$s()},t.prototype.priceToCoordinate=function(t){var e=this.qe.H();return null===e?null:this.qe.$().K(t,e.X)},t.prototype.coordinateToPrice=function(t){var e=this.qe.H();return null===e?null:this.qe.$().Si(t,e.X)},t.prototype.barsInLogicalRange=function(t){if(null===t)return null;var e=new eT(new ek(t.from,t.to)).Hh(),n=this.qe.Hi();if(n.ti())return null;var i=n.oo(e.hh(),1),r=n.oo(e.rh(),-1),o=tr(n.eo()),s=tr(n.Ui());if(null!==i&&null!==r&&i.Ph>r.Ph)return{barsBefore:t.from-o,barsAfter:s-t.to};var a={barsBefore:null===i||i.Ph===o?t.from-o:i.Ph-o,barsAfter:null===r||r.Ph===s?s-t.to:s-r.Ph};return null!==i&&null!==r&&(a.from=i.S.Sh||i.S.Dh,a.to=r.S.Sh||r.S.Dh),a},t.prototype.setData=function(t){this.qe.Ya(),this.dw.Mw(this.qe,t)},t.prototype.update=function(t){this.qe.Ya(),this.dw.bw(this.qe,t)},t.prototype.setMarkers=function(t){var e=t.map(function(t){return tt(tt({},t),{time:ig(t.time)})});this.qe.Wo(e)},t.prototype.applyOptions=function(t){var e=iM(t);this.qe.rs(e)},t.prototype.options=function(){return tc(this.qe.ct())},t.prototype.priceScale=function(){return this.ww.priceScale(this.qe.$().hs())},t.prototype.createPriceLine=function(t){var e=ts(tc(ix),t);return new ik(this.qe.zo(e))},t.prototype.removePriceLine=function(t){this.qe.Po(t._w())},t.prototype.seriesType=function(){return this.qe.Ya()},t}(),iE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Q(e,t),e.prototype.applyOptions=function(e){ed(e),t.prototype.applyOptions.call(this,e)},e}(iS),iC={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:"#2B2B43",entireTextOnly:!1,visible:!1,drawTicks:!0,scaleMargins:{bottom:.1,top:.2}},ij={width:0,height:0,layout:{background:{type:"solid",color:"#FFFFFF"},textColor:"#191919",fontSize:11,fontFamily:eR},crosshair:{vertLine:{color:"#758696",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#4c525e"},horzLine:{color:"#758696",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#4c525e"},mode:1},grid:{vertLines:{color:"#D6DCDE",style:0,visible:!0},horzLines:{color:"#D6DCDE",style:0,visible:!0}},overlayPriceScales:tt({},iC),leftPriceScale:tt(tt({},iC),{visible:!1}),rightPriceScale:tt(tt({},iC),{visible:!0}),timeScale:{rightOffset:0,barSpacing:6,minBarSpacing:.5,fixLeftEdge:!1,fixRightEdge:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!1,borderVisible:!0,borderColor:"#2B2B43",visible:!0,timeVisible:!1,secondsVisible:!0,shiftVisibleRangeOnNewBar:!0},watermark:{color:"rgba(0, 0, 0, 0)",visible:!1,fontSize:48,fontFamily:eR,fontStyle:"",text:"",horzAlign:"center",vertAlign:"center"},localization:{locale:nV?navigator.language:"",dateFormat:"dd MMM 'yy"},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:!0,mouseWheel:!0,pinch:!0},kineticScroll:{mouse:!1,touch:!0}},iT={upColor:"#26a69a",downColor:"#ef5350",wickVisible:!0,borderVisible:!0,borderColor:"#378658",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"#737375",wickUpColor:"#26a69a",wickDownColor:"#ef5350"},iA={upColor:"#26a69a",downColor:"#ef5350",openVisible:!0,thinBars:!0},iL={color:"#2196f3",lineStyle:0,lineWidth:3,lineType:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},iN={topColor:"rgba( 46, 220, 135, 0.4)",bottomColor:"rgba( 40, 221, 100, 0)",lineColor:"#33D778",lineStyle:0,lineWidth:3,lineType:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},iP={baseValue:{type:"price",price:0},topFillColor1:"rgba(38, 166, 154, 0.28)",topFillColor2:"rgba(38, 166, 154, 0.05)",topLineColor:"rgba(38, 166, 154, 1)",bottomFillColor1:"rgba(239, 83, 80, 0.05)",bottomFillColor2:"rgba(239, 83, 80, 0.28)",bottomLineColor:"rgba(239, 83, 80, 1)",lineWidth:3,lineStyle:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},iR={color:"#26a69a",base:0},iB={title:"",visible:!0,lastValueVisible:!0,priceLineVisible:!0,priceLineSource:0,priceLineWidth:1,priceLineColor:"",priceLineStyle:2,baseLineVisible:!0,baseLineWidth:1,baseLineColor:"#B2B5BE",baseLineStyle:0,priceFormat:{type:"price",precision:2,minMove:.01}},iI=function(){function t(t,e){this.mw=t,this.pw=e}return t.prototype.applyOptions=function(t){this.mw.vt()._f(this.pw,t)},t.prototype.options=function(){return this.Gt().ct()},t.prototype.width=function(){return ez(this.pw)?this.mw.Id("left"===this.pw?"left":"right"):0},t.prototype.Gt=function(){return tr(this.mw.vt().df(this.pw)).$},t}(),iz=function(){function t(t,e){this.gw=new t2,this.nr=new t2,this.sd=new t2,this.hi=t,this.ul=t.j(),this.Bd=e,this.ul.Xr().Ji(this.yw.bind(this)),this.ul.Zr().Ji(this.kw.bind(this)),this.Bd.fd().Ji(this.Cw.bind(this))}return t.prototype.en=function(){this.ul.Xr().sn(this),this.ul.Zr().sn(this),this.Bd.fd().sn(this),this.gw.en(),this.nr.en(),this.sd.en()},t.prototype.scrollPosition=function(){return this.ul.Pr()},t.prototype.scrollToPosition=function(t,e){e?this.ul.$r(t,1e3):this.hi.Mr(t)},t.prototype.scrollToRealTime=function(){this.ul.Kr()},t.prototype.getVisibleRange=function(){var t,e,n=this.ul.yr();return null===n?null:{from:null!=(t=n.from.Sh)?t:n.from.Dh,to:null!=(e=n.to.Sh)?e:n.to.Dh}},t.prototype.setVisibleRange=function(t){var e={from:ig(t.from),to:ig(t.to)},n=this.ul.Sr(e);this.hi.Wf(n)},t.prototype.getVisibleLogicalRange=function(){var t=this.ul.gr();return null===t?null:{from:t.hh(),to:t.rh()}},t.prototype.setVisibleLogicalRange=function(t){tn(t.from<=t.to,"The from index cannot be after the to index."),this.hi.Wf(t)},t.prototype.resetTimeScale=function(){this.hi.Ne()},t.prototype.fitContent=function(){this.hi.Qr()},t.prototype.logicalToCoordinate=function(t){var e=this.hi.j();return e.ti()?null:e.G(t)},t.prototype.coordinateToLogical=function(t){return this.ul.ti()?null:this.ul.Fr(t)},t.prototype.timeToCoordinate=function(t){var e=ig(t),n=this.ul.br(e,!1);return null===n?null:this.ul.G(n)},t.prototype.coordinateToTime=function(t){var e,n=this.hi.j(),i=n.Fr(t),r=n.ri(i);return null===r?null:null!=(e=r.Sh)?e:r.Dh},t.prototype.width=function(){return this.Bd.z_().st},t.prototype.height=function(){return this.Bd.z_().ht},t.prototype.subscribeVisibleTimeRangeChange=function(t){this.gw.Ji(t)},t.prototype.unsubscribeVisibleTimeRangeChange=function(t){this.gw.nn(t)},t.prototype.subscribeVisibleLogicalRangeChange=function(t){this.nr.Ji(t)},t.prototype.unsubscribeVisibleLogicalRangeChange=function(t){this.nr.nn(t)},t.prototype.subscribeSizeChange=function(t){this.sd.Ji(t)},t.prototype.unsubscribeSizeChange=function(t){this.sd.nn(t)},t.prototype.applyOptions=function(t){this.ul.rs(t)},t.prototype.options=function(){return tc(this.ul.ct())},t.prototype.yw=function(){this.gw.rn()&&this.gw.hn(this.getVisibleRange())},t.prototype.kw=function(){this.nr.rn()&&this.nr.hn(this.getVisibleLogicalRange())},t.prototype.Cw=function(t){this.sd.hn(t.st,t.ht)},t}();function i$(t){void 0!==t&&"custom"!==t.type&&void 0!==t.minMove&&void 0===t.precision&&(t.precision=function(t){if(t>=1)return 0;for(var e=0;e<8&&!(1e-8>Math.abs(Math.round(t)-t));e++)t*=10;return e}(t.minMove))}function iW(t){return function(t){if(tu(t.handleScale)){var e=t.handleScale;t.handleScale={axisDoubleClickReset:e,axisPressedMouseMove:{time:e,price:e},mouseWheel:e,pinch:e}}else if(void 0!==t.handleScale&&tu(t.handleScale.axisPressedMouseMove)){var n=t.handleScale.axisPressedMouseMove;t.handleScale.axisPressedMouseMove={time:n,price:n}}var i=t.handleScroll;tu(i)&&(t.handleScroll={horzTouchDrag:i,vertTouchDrag:i,mouseWheel:i,pressedMouseMove:i})}(t),function(t){if(t.priceScale){t.leftPriceScale=t.leftPriceScale||{},t.rightPriceScale=t.rightPriceScale||{};var e=t.priceScale.position;delete t.priceScale.position,t.leftPriceScale=ts(t.leftPriceScale,t.priceScale),t.rightPriceScale=ts(t.rightPriceScale,t.priceScale),"left"===e&&(t.leftPriceScale.visible=!0,t.rightPriceScale.visible=!1),"right"===e&&(t.leftPriceScale.visible=!1,t.rightPriceScale.visible=!0),"none"===e&&(t.leftPriceScale.visible=!1,t.rightPriceScale.visible=!1),t.overlayPriceScales=t.overlayPriceScales||{},void 0!==t.priceScale.invertScale&&(t.overlayPriceScales.invertScale=t.priceScale.invertScale),void 0!==t.priceScale.scaleMargins&&(t.overlayPriceScales.scaleMargins=t.priceScale.scaleMargins)}}(t),t.layout&&t.layout.backgroundColor&&!t.layout.background&&(t.layout.background={type:"solid",color:t.layout.backgroundColor}),t}function iO(t,e){var n=this;this.Nw=new ib,this.xw=new Map,this.Sw=new Map,this.Dw=new t2,this.Aw=new t2;var i=void 0===e?tc(ij):ts(tc(ij),iW(e));this.mw=new it(t,i),this.mw.V_().Ji(function(t){n.Dw.rn()&&n.Dw.hn(n.Tw(t()))},this),this.mw.mf().Ji(function(t){n.Aw.rn()&&n.Aw.hn(n.Tw(t()))},this);var r=this.mw.vt();this.Bw=new iz(r,this.mw.Od())}iO.prototype.remove=function(){this.mw.V_().sn(this),this.mw.mf().sn(this),this.Bw.en(),this.mw.en(),this.xw.clear(),this.Sw.clear(),this.Dw.en(),this.Aw.en(),this.Nw.en()},iO.prototype.resize=function(t,e,n){this.mw.Ld(t,e,n)},iO.prototype.addAreaSeries=function(t){void 0===t&&(t={}),i$((t=iM(t)).priceFormat);var e=ts(tc(iB),iN,t),n=this.mw.vt().Ef("Area",e),i=new iS(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},iO.prototype.addBaselineSeries=function(t){void 0===t&&(t={}),i$((t=iM(t)).priceFormat);var e=ts(tc(iB),iP,t),n=this.mw.vt().Ef("Baseline",e),i=new iS(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},iO.prototype.addBarSeries=function(t){void 0===t&&(t={}),i$((t=iM(t)).priceFormat);var e=ts(tc(iB),iA,t),n=this.mw.vt().Ef("Bar",e),i=new iS(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},iO.prototype.addCandlestickSeries=function(t){void 0===t&&(t={}),ed(t=iM(t)),i$(t.priceFormat);var e=ts(tc(iB),iT,t),n=this.mw.vt().Ef("Candlestick",e),i=new iE(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},iO.prototype.addHistogramSeries=function(t){void 0===t&&(t={}),i$((t=iM(t)).priceFormat);var e=ts(tc(iB),iR,t),n=this.mw.vt().Ef("Histogram",e),i=new iS(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},iO.prototype.addLineSeries=function(t){void 0===t&&(t={}),i$((t=iM(t)).priceFormat);var e=ts(tc(iB),iL,t),n=this.mw.vt().Ef("Line",e),i=new iS(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},iO.prototype.removeSeries=function(t){var e=ti(this.xw.get(t)),n=this.Nw.Of(e);this.mw.vt().Of(e),this.Lw(n),this.xw.delete(t),this.Sw.delete(e)},iO.prototype.Mw=function(t,e){this.Lw(this.Nw.nw(t,e))},iO.prototype.bw=function(t,e){this.Lw(this.Nw.uw(t,e))},iO.prototype.subscribeClick=function(t){this.Dw.Ji(t)},iO.prototype.unsubscribeClick=function(t){this.Dw.nn(t)},iO.prototype.subscribeCrosshairMove=function(t){this.Aw.Ji(t)},iO.prototype.unsubscribeCrosshairMove=function(t){this.Aw.nn(t)},iO.prototype.priceScale=function(t){return void 0===t&&(t=this.mw.vt().zf()),new iI(this.mw,t)},iO.prototype.timeScale=function(){return this.Bw},iO.prototype.applyOptions=function(t){this.mw.rs(iW(t))},iO.prototype.options=function(){return this.mw.ct()},iO.prototype.takeScreenshot=function(){return this.mw.zd()},iO.prototype.Lw=function(t){var e=this.mw.vt();e.Lf(t.j.Br,t.j.fw,t.j.cw),t.lw.forEach(function(t,e){return e._(t.Zu)}),e.Vr()},iO.prototype.Fw=function(t){return ti(this.Sw.get(t))},iO.prototype.Tw=function(t){var e=this,n=new Map;t.$d.forEach(function(t,i){n.set(e.Fw(i),t)});var i=void 0===t.Kd?void 0:this.Fw(t.Kd);return{time:t.S&&(t.S.Sh||t.S.Dh),point:t.Yd,hoveredSeries:i,hoveredMarkerId:t.Xd,seriesPrices:n}},t.i(42778);function iU(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}function iD(t){return function(e,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=r.width?String(r.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var a=t.defaultWidth,h=r.width?String(r.width):t.defaultWidth;i=t.values[h]||t.values[a]}return i[t.argumentCallback?t.argumentCallback(e):e]}}function iq(t){return function(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;var a=s[0],h=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(h)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}(h,function(t){return t.test(a)}):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}(h,function(t){return t.test(a)});return n=t.valueCallback?t.valueCallback(l):l,{value:n=i.valueCallback?i.valueCallback(n):n,rest:e.slice(a.length)}}}function iF(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.match(t.matchPattern);if(!i)return null;var r=i[0],o=e.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(r.length)}}}function iG(t,e){if(void 0!==t.one&&1===e)return t.one;var n=e%10,i=e%100;return 1===n&&11!==i?t.singularNominative.replace("{{count}}",e):n>=2&&n<=4&&(i<10||i>20)?t.singularGenitive.replace("{{count}}",e):t.pluralGenitive.replace("{{count}}",e)}function iV(t){return function(e,n){if(!n.addSuffix)return iG(t.regular,e);if(n.comparison>0)if(t.future)return iG(t.future,e);else return"через "+iG(t.regular,e);return t.past?iG(t.past,e):iG(t.regular,e)+" назад"}}iU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),iU({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),iU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"}),iD({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),iD({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),iD({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),iD({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),iD({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"}),iF({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),iq({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),iq({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),iq({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),iq({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),iq({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"}),iV({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),iV({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),iV({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),iV({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),iV({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),iV({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),iV({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),iV({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),iV({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),iV({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),iV({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),iV({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),iV({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),iV({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),iV({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}}),iU({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),iU({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),iU({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"});iD({values:{narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},defaultWidth:"wide"}),iD({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),iD({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},defaultWidth:"wide",formattingValues:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},defaultFormattingWidth:"wide"}),iD({values:{narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},defaultWidth:"wide"}),iD({values:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},defaultFormattingWidth:"wide"}),iF({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),iq({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),iq({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),iq({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),iq({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),iq({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"});let iK=(0,t.i(22468).g)("circle-chart","sc"),iY=Object.freeze({circleСhart:iK,circle:`${iK}__circle`}),iX=(t,e,n)=>{let i=(t-90)*Math.PI/180;return{x:n+e*Math.cos(i),y:n+e*Math.sin(i)}};function iH(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=function t(e){var n,i,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(i=t(e[n]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}(t))&&(i&&(i+=" "),i+=e);return i}(0,r.memo)(({items:t,className:e,innerRadius:n=10,size:o=400,strokeWidth:s,stroke:a,animated:h=!1,dataQa:l,dataId:u})=>{let c=(0,r.useRef)(null);(0,r.useEffect)(()=>{h&&null!=c&&c.current&&(c.current.style.transform="rotate(-180deg)",c.current.style.transition="")},[c,t,h]);let f=t.reduce((t,e)=>t+e.value,0),p=o/2,d=0,v=t.map(t=>{if(0===t.value)return null;let e=t.value/f*360,r=d+e;if(360===e){let e=d+180,o=iX(e,p,p),h=iX(e,n,p),l=iX(d,p,p),u=iX(d,n,p),c=`M ${l.x} ${l.y}
          A ${p} ${p} 0 1 1 ${o.x} ${o.y}
          A ${p} ${p} 0 1 1 ${l.x} ${l.y}
          L ${u.x} ${u.y}
          A ${n} ${n} 0 1 0 ${h.x} ${h.y}
          A ${n} ${n} 0 1 0 ${u.x} ${u.y}
          Z`;return d=r,(0,i.jsx)("path",{fill:t.color,d:c,stroke:a,strokeWidth:s,className:iY.circle},t.color)}let o=+(e>180),h=iX(d,p,p),l=iX(r,p,p),u=iX(d,n,p),c=iX(r,n,p),v=`M ${h.x} ${h.y}
        A ${p} ${p} 0 ${o} 1 ${l.x} ${l.y}
        L ${c.x} ${c.y}
        A ${n} ${n} 0 ${o} 0 ${u.x} ${u.y}
        Z`;return d=r,(0,i.jsx)("path",{fill:t.color,d:v,stroke:a,strokeWidth:s,className:iY.circle},t.color)}).filter(t=>!!t),g=()=>{null!=c&&c.current&&(c.current.style.transform="rotate(0deg)",c.current.style.transition="all 1s")};return(0,r.useEffect)(()=>{if(h){let t=setTimeout(g,1);return()=>clearTimeout(t)}},[v,t,h]),(0,i.jsx)("svg",{"data-qa":l,"data-id":u,ref:c,className:e,viewBox:`0 0 ${o} ${o}`,height:o,width:o,children:v})}).displayName="CircleChart",t.i(18566),t.i(74009);let iZ=(0,r.memo)(({logoKey:t,alt:e,type:n="brandmark",entity:o="bank",directory:s="images",fullUrl:a,s3MinioUrl:h,size:l=46,className:u,dataQa:c})=>{let[f,p]=(0,r.useState)(!1),d=a||`${h}/${s}/logo-${n}-${o}-${t}.svg`;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Suspense,{children:(0,i.jsx)(K.default,{"data-qa":function(t,e,n){let i=t??n;if(i)return e?`${i}-${e}`:i}(c,"logo","app-logo-image"),src:d,className:iH(!f&&"_hidden_1r423_5",u),alt:e??"",width:l,height:l,unoptimized:!0,onLoad:function(t){t.currentTarget.naturalWidth>0&&p(!0)}})}),(0,i.jsx)(K.default,{"data-qa":"app-logo-no-logo-image",src:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_30_4349'%20style='mask-type:alpha'%20x='0'%20y='0'%20width='32'%20height='32'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23F7F8FA'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_30_4349)'%3e%3crect%20width='32'%20height='32'%20fill='%23F7F8FA'/%3e%3cpath%20d='M5.33337%2022.6666V14.3323H13.5424V9.33325H26.6667V22.6666H5.33337Z'%20fill='%23E3E7EC'/%3e%3c/g%3e%3c/svg%3e",width:l,height:l,className:iH(f&&"_notDisplayed_1r423_1",u),alt:"Изображение отсутствует"})]})});iZ.displayName="AppLogo";var iJ=((e=iJ||{}).OneMonth="ONE_MONTH",e.ThreeMonths="THREE_MONTHS",e.SixMonth="SIX_MONTH",e.OneYear="ONE_YEAR",e.ThreeYears="THREE_YEARS",e.FiveYears="FIVE_YEARS",e);function iQ(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}iJ.OneMonth,iJ.ThreeMonths,iJ.SixMonth,iJ.OneYear,iJ.ThreeYears,iJ.FiveYears;let i0=iQ(),i1=/[&<>"']/,i2=RegExp(i1.source,"g"),i3=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,i8=RegExp(i3.source,"g"),i4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i5=t=>i4[t];function i6(t,e){if(e){if(i1.test(t))return t.replace(i2,i5)}else if(i3.test(t))return t.replace(i8,i5);return t}let i7=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,i9=/(^|[^\[])\^/g;function rt(t,e){let n="string"==typeof t?t:t.source;e=e||"";let i={replace:(t,e)=>{let r="string"==typeof e?e:e.source;return r=r.replace(i9,"$1"),n=n.replace(t,r),i},getRegex:()=>new RegExp(n,e)};return i}function re(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}let rn={exec:()=>null};function ri(t,e){let n=t.replace(/\|/g,(t,e,n)=>{let i=!1,r=e;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function rr(t,e,n){let i=t.length;if(0===i)return"";let r=0;for(;r<i;){let o=t.charAt(i-r-1);if(o!==e||n)if(o!==e&&n)r++;else break;else r++}return t.slice(0,i-r)}function ro(t,e,n,i){let r=e.href,o=e.title?i6(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;let t={type:"link",raw:n,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,t}return{type:"image",raw:n,href:r,title:o,text:i6(s)}}class rs{options;rules;lexer;constructor(t){this.options=t||i0}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:rr(t,`
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e){let n=t.match(/^(\s+)(?:```)/);if(null===n)return e;let i=n[1];return e.split(`
`).map(t=>{let e=t.match(/^\s+/);if(null===e)return t;let[n]=e;return n.length>=i.length?t.slice(i.length):t}).join(`
`)}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){let e=rr(t,"#");(this.options.pedantic||!e||/ $/.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:rr(e[0],`
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=rr(e[0],`
`).split(`
`),n="",i="",r=[];for(;t.length>0;){let e,o=!1,s=[];for(e=0;e<t.length;e++)if(/^ {0,3}>/.test(t[e]))s.push(t[e]),o=!0;else if(o)break;else s.push(t[e]);t=t.slice(e);let a=s.join(`
`),h=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`).replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}
${a}`:a,i=i?`${i}
${h}`:h;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,r,!0),this.lexer.state.top=l,0===t.length)break;let u=r[r.length-1];if(u?.type==="code")break;if(u?.type==="blockquote"){let e=u.raw+`
`+t.join(`
`),o=this.blockquote(e);r[r.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,i=i.substring(0,i.length-u.text.length)+o.text;break}if(u?.type==="list"){let e=u.raw+`
`+t.join(`
`),o=this.list(e);r[r.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,i=i.substring(0,i.length-u.raw.length)+o.raw,t=e.substring(r[r.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:n,tokens:r,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),i=n.length>1,r={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`),s=!1;for(;t;){let n=!1,i="",a="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let h=e[2].split(`
`,1)[0].replace(/^\t+/,t=>" ".repeat(3*t.length)),l=t.split(`
`,1)[0],u=!h.trim(),c=0;if(this.options.pedantic?(c=2,a=h.trimStart()):u?c=e[1].length+1:(c=(c=e[2].search(/[^ ]/))>4?1:c,a=h.slice(c),c+=e[1].length),u&&/^ *$/.test(l)&&(i+=l+`
`,t=t.substring(l.length+1),n=!0),!n){let e=RegExp(`^ {0,${Math.min(3,c-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),n=RegExp(`^ {0,${Math.min(3,c-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=RegExp(`^ {0,${Math.min(3,c-1)}}(?:\`\`\`|~~~)`),o=RegExp(`^ {0,${Math.min(3,c-1)}}#`);for(;t;){let s=t.split(`
`,1)[0];if(l=s,this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),r.test(l)||o.test(l)||e.test(l)||n.test(t))break;if(l.search(/[^ ]/)>=c||!l.trim())a+=`
`+l.slice(c);else{if(u||h.search(/[^ ]/)>=4||r.test(h)||o.test(h)||n.test(h))break;a+=`
`+l}u||l.trim()||(u=!0),i+=s+`
`,t=t.substring(s.length+1),h=l.slice(c)}}r.loose||(s?r.loose=!0:/\n *\n *$/.test(i)&&(s=!0));let f=null,p;this.options.gfm&&(f=/^\[[ xX]\] /.exec(a))&&(p="[ ] "!==f[0],a=a.replace(/^\[[ xX]\] +/,"")),r.items.push({type:"list_item",raw:i,task:!!f,checked:p,loose:!1,text:a,tokens:[]}),r.raw+=i}r.items[r.items.length-1].raw=r.items[r.items.length-1].raw.trimEnd(),r.items[r.items.length-1].text=r.items[r.items.length-1].text.trimEnd(),r.raw=r.raw.trimEnd();for(let t=0;t<r.items.length;t++)if(this.lexer.state.top=!1,r.items[t].tokens=this.lexer.blockTokens(r.items[t].text,[]),!r.loose){let e=r.items[t].tokens.filter(t=>"space"===t.type);r.loose=e.length>0&&e.some(t=>/\n.*\n/.test(t.raw))}if(r.loose)for(let t=0;t<r.items.length;t++)r.items[t].loose=!0;return r}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(/\s+/g," "),n=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!/[:|]/.test(e[2]))return;let n=ri(e[1]),i=e[2].replace(/^\||\| *$/g,"").split("|"),r=e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split(`
`):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let t of i)/^ *-+: *$/.test(t)?o.align.push("right"):/^ *:-+: *$/.test(t)?o.align.push("center"):/^ *:-+ *$/.test(t)?o.align.push("left"):o.align.push(null);for(let t=0;t<n.length;t++)o.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:o.align[t]});for(let t of r)o.rows.push(ri(t,o.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:o.align[e]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:i6(e[1])}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;let e=rr(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return -1;let e=0;for(let n=0;n<t.length;n++)if("\\"===t[n])n++;else if("("===t[n])e++;else if(")"===t[n]&&--e<0)return n;return -1}(e[2]);if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){let t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);t&&(n=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(t)?n.slice(1):n.slice(1,-1)),ro(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return ro(n,t,n[0],this.lexer)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...i[0]].length-1,r,o,s=n,a=0,h="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+n);null!=(i=h.exec(e));){if(!(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6]))continue;if(o=[...r].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s+a);let e=[...i[0]][0].length,h=t.slice(0,n+i.index+e+o);if(Math.min(n,o)%2){let t=h.slice(1,-1);return{type:"em",raw:h,text:t,tokens:this.lexer.inlineTokens(t)}}let l=h.slice(2,-2);return{type:"strong",raw:h,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," "),n=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return n&&i&&(t=t.substring(1,t.length-1)),t=i6(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return n="@"===e[2]?"mailto:"+(t=i6(e[1])):t=i6(e[1]),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])n="mailto:"+(t=i6(e[0]));else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0])t=i6(e[0]),n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t;return t=this.lexer.state.inRawBlock?e[0]:i6(e[0]),{type:"text",raw:e[0],text:t}}}}let ra=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rh=/(?:[*+-]|\d{1,9}[.)])/,rl=rt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,rh).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ru=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,rf=rt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",rc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rp=rt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,rh).getRegex(),rd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rg=rt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",rv).replace("tag",rd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ry=rt(ru).replace("hr",ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",rd).getRegex(),rm={blockquote:rt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ry).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:rf,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ra,html:rg,lheading:rl,list:rp,newline:/^(?: *(?:\n|$))+/,paragraph:ry,table:rn,text:/^[^\n]+/},rw=rt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",rd).getRegex(),rb={...rm,table:rw,paragraph:rt(ru).replace("hr",ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rw).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",rd).getRegex()},r_={...rm,html:rt("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",rv).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:rt(ru).replace("hr",ra).replace("heading",` *#{1,6} *[^
]`).replace("lheading",rl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,rk=/^( {2,}|\\)\n(?!\s*$)/,rM="\\p{P}\\p{S}",rS=rt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,rM).getRegex(),rE=rt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,rM).getRegex(),rC=rt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,rM).getRegex(),rj=rt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,rM).getRegex(),rT=rt(/\\([punct])/,"gu").replace(/punct/g,rM).getRegex(),rA=rt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),rL=rt(rv).replace("(?:-->|$)","-->").getRegex(),rN=rt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",rL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rP=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rR=rt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",rP).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rB=rt(/^!?\[(label)\]\[(ref)\]/).replace("label",rP).replace("ref",rc).getRegex(),rI=rt(/^!?\[(ref)\](?:\[\])?/).replace("ref",rc).getRegex(),rz=rt("reflink|nolink(?!\\()","g").replace("reflink",rB).replace("nolink",rI).getRegex(),r$={_backpedal:rn,anyPunctuation:rT,autolink:rA,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:rk,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:rn,emStrongLDelim:rE,emStrongRDelimAst:rC,emStrongRDelimUnd:rj,escape:rx,link:rR,nolink:rI,punctuation:rS,reflink:rB,reflinkSearch:rz,tag:rN,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:rn},rW={...r$,link:rt(/^!?\[(label)\]\((.*?)\)/).replace("label",rP).getRegex(),reflink:rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rP).getRegex()},rO={...r$,escape:rt(rx).replace("])","~|])").getRegex(),url:rt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},rU={...rO,br:rt(rk).replace("{2,}","*").getRegex(),text:rt(rO.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},rD={normal:rm,gfm:rb,pedantic:r_},rq={normal:r$,gfm:rO,breaks:rU,pedantic:rW};class rF{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||i0,this.options.tokenizer=this.options.tokenizer||new rs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={block:rD.normal,inline:rq.normal};this.options.pedantic?(e.block=rD.pedantic,e.inline=rq.pedantic):this.options.gfm&&(e.block=rD.gfm,this.options.breaks?e.inline=rq.breaks:e.inline=rq.gfm),this.tokenizer.rules=e}static get rules(){return{block:rD,inline:rq}}static lex(t,e){return new rF(e).lex(t)}static lexInline(t,e){return new rF(e).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){let i,r,o;for(t=this.options.pedantic?t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(t,e,n)=>e+"    ".repeat(n.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>!!(i=n.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),1===i.raw.length&&e.length>0?e[e.length-1].raw+=`
`:e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),(r=e[e.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+=`
`+i.raw,r.text+=`
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if((i=this.tokenizer.fences(t))||(i=this.tokenizer.heading(t))||(i=this.tokenizer.hr(t))||(i=this.tokenizer.blockquote(t))||(i=this.tokenizer.list(t))||(i=this.tokenizer.html(t))){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),(r=e[e.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+=`
`+i.raw,r.text+=`
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if((i=this.tokenizer.table(t))||(i=this.tokenizer.lheading(t))){t=t.substring(i.raw.length),e.push(i);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let e,n=1/0,i=t.slice(1);this.options.extensions.startBlock.forEach(t=>{"number"==typeof(e=t.call({lexer:this},i))&&e>=0&&(n=Math.min(n,e))}),n<1/0&&n>=0&&(o=t.substring(0,n+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=e[e.length-1],n&&r?.type==="paragraph"?(r.raw+=`
`+i.raw,r.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i),n=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),(r=e[e.length-1])&&"text"===r.type?(r.raw+=`
`+i.raw,r.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(i);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,i,r,o=t,s,a,h;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(o));)t.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(h=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),(i=e[e.length-1])&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),(i=e[e.length-1])&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);continue}if((n=this.tokenizer.emStrong(t,o,h))||(n=this.tokenizer.codespan(t))||(n=this.tokenizer.br(t))||(n=this.tokenizer.del(t))||(n=this.tokenizer.autolink(t))||!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let e,n=1/0,i=t.slice(1);this.options.extensions.startInline.forEach(t=>{"number"==typeof(e=t.call({lexer:this},i))&&e>=0&&(n=Math.min(n,e))}),n<1/0&&n>=0&&(r=t.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(h=n.raw.slice(-1)),a=!0,(i=e[e.length-1])&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}}class rG{options;parser;constructor(t){this.options=t||i0}space(t){return""}code({text:t,lang:e,escaped:n}){let i=(e||"").match(/^\S*/)?.[0],r=t.replace(/\n$/,"")+`
`;return i?'<pre><code class="language-'+i6(i)+'">'+(n?r:i6(r,!0))+`</code></pre>
`:"<pre><code>"+(n?r:i6(r,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
`}hr(t){return`<hr>
`}list(t){let e=t.ordered,n=t.start,i="";for(let e=0;e<t.items.length;e++){let n=t.items[e];i+=this.listitem(n)}let r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+`>
`+i+"</"+r+`>
`}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let e="",n="";for(let e=0;e<t.header.length;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let i="";for(let e=0;e<t.rows.length;e++){let r=t.rows[e];n="";for(let t=0;t<r.length;t++)n+=this.tablecell(r[t]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+i+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let i=this.parser.parseInline(n),r=re(t);if(null===r)return i;let o='<a href="'+(t=r)+'"';return e&&(o+=' title="'+e+'"'),o+=">"+i+"</a>"}image({href:t,title:e,text:n}){let i=re(t);if(null===i)return n;t=i;let r=`<img src="${t}" alt="${n}"`;return e&&(r+=` title="${e}"`),r+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class rV{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class rK{options;renderer;textRenderer;constructor(t){this.options=t||i0,this.options.renderer=this.options.renderer||new rG,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new rV}static parse(t,e){return new rK(e).parse(t)}static parseInline(t,e){return new rK(e).parseInline(t)}parse(t,e=!0){let n="";for(let i=0;i<t.length;i++){let r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){let t=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(r.type)){n+=t||"";continue}}switch(r.type){case"space":n+=this.renderer.space(r);continue;case"hr":n+=this.renderer.hr(r);continue;case"heading":n+=this.renderer.heading(r);continue;case"code":n+=this.renderer.code(r);continue;case"table":n+=this.renderer.table(r);continue;case"blockquote":n+=this.renderer.blockquote(r);continue;case"list":n+=this.renderer.list(r);continue;case"html":n+=this.renderer.html(r);continue;case"paragraph":n+=this.renderer.paragraph(r);continue;case"text":{let o=r,s=this.renderer.text(o);for(;i+1<t.length&&"text"===t[i+1].type;)o=t[++i],s+=`
`+this.renderer.text(o);e?n+=this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s}]}):n+=s;continue}default:{let t='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}parseInline(t,e){e=e||this.renderer;let n="";for(let i=0;i<t.length;i++){let r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){let t=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=t||"";continue}}switch(r.type){case"escape":case"text":n+=e.text(r);break;case"html":n+=e.html(r);break;case"link":n+=e.link(r);break;case"image":n+=e.image(r);break;case"strong":n+=e.strong(r);break;case"em":n+=e.em(r);break;case"codespan":n+=e.codespan(r);break;case"br":n+=e.br(r);break;case"del":n+=e.del(r);break;default:{let t='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}}class rY{options;constructor(t){this.options=t||i0}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}let rX=new class{defaults=iQ();options=this.setOptions;parse=this.#t(rF.lex,rK.parse);parseInline=this.#t(rF.lexInline,rK.parseInline);Parser=rK;Renderer=rG;TextRenderer=rV;Lexer=rF;Tokenizer=rs;Hooks=rY;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let i of t)switch(n=n.concat(e.call(this,i)),i.type){case"table":for(let t of i.header)n=n.concat(this.walkTokens(t.tokens,e));for(let t of i.rows)for(let i of t)n=n.concat(this.walkTokens(i.tokens,e));break;case"list":n=n.concat(this.walkTokens(i.items,e));break;default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let r=t[i].flat(1/0);n=n.concat(this.walkTokens(r,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];n?e.renderers[t.name]=function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=n.apply(this,e)),i}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new rG(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let i=t.renderer[n];t.useNewRenderer||(i=this.#e(i,n,e));let r=e[n];e[n]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=r.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new rs(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let i=t.tokenizer[n],r=e[n];e[n]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=r.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new rY;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if("options"===n)continue;let i=t.hooks[n],r=e[n];rY.passThroughHooks.has(n)?e[n]=t=>{if(this.defaults.async)return Promise.resolve(i.call(e,t)).then(t=>r.call(e,t));let n=i.call(e,t);return r.call(e,n)}:e[n]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=r.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,i=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(i.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}#e(t,e,n){switch(e){case"heading":return function(i){return i.type&&i.type===e?t.call(this,n.parser.parseInline(i.tokens),i.depth,n.parser.parseInline(i.tokens,n.parser.textRenderer).replace(i7,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")):t.apply(this,arguments)};case"code":return function(n){return n.type&&n.type===e?t.call(this,n.text,n.lang,!!n.escaped):t.apply(this,arguments)};case"table":return function(n){if(!n.type||n.type!==e)return t.apply(this,arguments);let i="",r="";for(let t=0;t<n.header.length;t++)r+=this.tablecell({text:n.header[t].text,tokens:n.header[t].tokens,header:!0,align:n.align[t]});i+=this.tablerow({text:r});let o="";for(let t=0;t<n.rows.length;t++){let e=n.rows[t];r="";for(let t=0;t<e.length;t++)r+=this.tablecell({text:e[t].text,tokens:e[t].tokens,header:!1,align:n.align[t]});o+=this.tablerow({text:r})}return t.call(this,i,o)};case"blockquote":return function(n){if(!n.type||n.type!==e)return t.apply(this,arguments);let i=this.parser.parse(n.tokens);return t.call(this,i)};case"list":return function(n){if(!n.type||n.type!==e)return t.apply(this,arguments);let i=n.ordered,r=n.start,o=n.loose,s="";for(let t=0;t<n.items.length;t++){let e=n.items[t],i=e.checked,r=e.task,a="";if(e.task){let t=this.checkbox({checked:!!i});o?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=t+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=t+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",text:t+" "}):a+=t+" "}a+=this.parser.parse(e.tokens,o),s+=this.listitem({type:"list_item",raw:a,text:a,task:r,checked:!!i,loose:o,tokens:e.tokens})}return t.call(this,s,i,r)};case"html":return function(n){return n.type&&n.type===e?t.call(this,n.text,n.block):t.apply(this,arguments)};case"paragraph":case"strong":case"del":case"em":return function(n){return n.type&&n.type===e?t.call(this,this.parser.parseInline(n.tokens)):t.apply(this,arguments)};case"escape":case"text":case"codespan":return function(n){return n.type&&n.type===e?t.call(this,n.text):t.apply(this,arguments)};case"link":return function(n){return n.type&&n.type===e?t.call(this,n.href,n.title,this.parser.parseInline(n.tokens)):t.apply(this,arguments)};case"image":return function(n){return n.type&&n.type===e?t.call(this,n.href,n.title,n.text):t.apply(this,arguments)}}return t}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return rF.lex(t,e??this.defaults)}parser(t,e){return rK.parse(t,e??this.defaults)}#t(t,e){return(n,i)=>{let r={...i},o={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);let s=this.#n(!!o.silent,!!o.async);if(typeof n>"u"||null===n)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(e=>t(e,o)).then(t=>o.hooks?o.hooks.processAllTokens(t):t).then(t=>o.walkTokens?Promise.all(this.walkTokens(t,o.walkTokens)).then(()=>t):t).then(t=>e(t,o)).then(t=>o.hooks?o.hooks.postprocess(t):t).catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let i=t(n,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let r=e(i,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(t){return s(t)}}}#n(t,e){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+i6(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function rH(t,e){return rX.parse(t,e)}rH.options=rH.setOptions=function(t){return rX.setOptions(t),rH.defaults=rX.defaults,i0=rH.defaults,rH},rH.getDefaults=iQ,rH.defaults=i0,rH.use=function(...t){return rX.use(...t),rH.defaults=rX.defaults,i0=rH.defaults,rH},rH.walkTokens=function(t,e){return rX.walkTokens(t,e)},rH.parseInline=rX.parseInline,rH.Parser=rK,rH.parser=rK.parse,rH.Renderer=rG,rH.TextRenderer=rV,rH.Lexer=rF,rH.lexer=rF.lex,rH.Tokenizer=rs,rH.Hooks=rY,rH.parse=rH,rH.options,rH.setOptions,rH.use,rH.walkTokens,rH.parseInline,rK.parse,rF.lex;var rZ=t.i(99082);let rJ=[{key:"moex",icon:"moex"},{key:"registry",icon:"registry"},{key:"asv",icon:"asv"},{key:"partners"}],rQ=`${E.f}/landing/finuslugi-benefits`;function r0(){let t=(0,o.f)();return(0,i.jsx)("section",{className:rZ.default.section,children:(0,i.jsxs)(s.t,{children:[(0,i.jsx)(a.f,{as:"h2",className:rZ.default.title,type:"h4",children:t("sc-moneybox.landing.finuslugi-benefits.title")}),(0,i.jsx)("ul",{className:rZ.default.cardList,children:rJ.map(({icon:e,key:n})=>(0,i.jsx)("li",{className:rZ.default.cardItem,children:(0,i.jsxs)(s.N,{className:rZ.default.card,as:"article",children:[e?(0,i.jsx)("span",{className:rZ.default.iconWrapper,"aria-hidden":"true",children:(0,i.jsx)(K.default,{className:rZ.default[`${e}Icon`],src:`${rQ}/${e}.svg`,width:50,height:50,alt:""})}):(0,i.jsxs)("span",{className:rZ.default.partnerLogos,children:[(0,i.jsx)(iZ,{className:rZ.default.partnerLogo,fullUrl:`${rQ}/bank-1.svg`,size:50,alt:t("sc-moneybox.landing.finuslugi-benefits.cards.partners.logos.yandex")}),(0,i.jsx)(iZ,{className:rZ.default.partnerLogo,fullUrl:`${rQ}/bank-2.svg`,size:50,alt:t("sc-moneybox.landing.finuslugi-benefits.cards.partners.logos.tbank")}),(0,i.jsx)(iZ,{className:rZ.default.partnerLogo,fullUrl:`${rQ}/bank-3.svg`,size:50,alt:t("sc-moneybox.landing.finuslugi-benefits.cards.partners.logos.gazprom")})]}),(0,i.jsxs)(a.f,{as:"h3",className:rZ.default.cardTitle,type:"h6",children:[(0,i.jsx)("span",{className:rZ.default.desktopText,children:t(`sc-moneybox.landing.finuslugi-benefits.cards.${n}.desktop`)}),(0,i.jsx)("span",{className:rZ.default.mobileText,children:t(`sc-moneybox.landing.finuslugi-benefits.cards.${n}.mobile`)})]})]})},n))})]})})}var r1=t.i(46143);function r2({anchorRef:t,onCtaButtonClick:e}){let n=(0,o.f)(),[s,a]=(0,r.useState)(!1),h="true"===(0,f.f)("NEXT_PUBLIC_FEATURE_TOGGLE_LOGIN_WIDGET_ENABLED")?{}:{as:"a",href:n("sc-moneybox.landing.cta-button.href"),rel:"noreferrer",target:"_blank"};return(0,r.useEffect)(()=>{let e=t.current;if(!e)return;let n=new IntersectionObserver(([t])=>{a(!t.isIntersecting)});return n.observe(e),()=>n.disconnect()},[t]),(0,i.jsx)("div",{className:(0,L.f)(r1.default.wrapper,s&&r1.default.visible),"aria-hidden":!s,children:(0,i.jsx)(d.K,{className:r1.default.button,label:n("sc-moneybox.landing.cta-button.label"),size:"s",tabIndex:s?void 0:-1,...h,onClick:function(){e(),(0,S.f)("lk_fu_finpodushka","click_banner_otkryt_finpodushku")}})})}var r3=t.i(98428),r8=t.i(98529);let r4=["sc-moneybox.landing.hero.badges.yield","sc-moneybox.landing.hero.badges.amount","sc-moneybox.landing.hero.badges.withdrawal","sc-moneybox.landing.hero.badges.account"],r5=[{name:"xl",media:"(min-width: 1300px)",width:2832,height:720,sizes:"1416px"},{name:"l",media:"(min-width: 1024px)",width:1920,height:720,sizes:"960px"},{name:"m",media:"(min-width: 768px)",width:1424,height:720,sizes:"712px"},{name:"s",media:"(min-width: 600px)",width:1136,height:700,sizes:"568px"}];function r6({ctaRef:t,onCtaButtonClick:e}){let n=(0,o.f)(),r=`${E.f}/landing/hero`,a="true"===(0,f.f)("NEXT_PUBLIC_FEATURE_TOGGLE_LOGIN_WIDGET_ENABLED")?{}:{as:"a",href:n("sc-moneybox.landing.cta-button.href"),target:"_blank"},{props:h}=(0,r3.getImageProps)({alt:"",height:700,priority:!0,quality:90,sizes:"343px",src:`${r}/xs-2x.png`,width:686});return(0,i.jsx)("section",{className:r8.default.section,children:(0,i.jsx)(s.t,{children:(0,i.jsxs)("article",{className:r8.default.wrapper,children:[(0,i.jsxs)("picture",{className:r8.default.picture,children:[r5.map(t=>{let{props:{srcSet:e}}=(0,r3.getImageProps)({alt:"",height:t.height,quality:90,sizes:t.sizes,src:`${r}/${t.name}-2x.png`,width:t.width});return(0,i.jsx)("source",{media:t.media,srcSet:e},t.name)}),(0,i.jsx)("img",{...h,className:r8.default.heroImage,alt:""})]}),(0,i.jsxs)("div",{className:r8.default.content,children:[(0,i.jsxs)("div",{className:r8.default.topContent,children:[(0,i.jsx)(p.f,{className:r8.default.title,as:"h1",children:n("sc-moneybox.landing.hero.title")}),(0,i.jsx)("ul",{className:r8.default.badges,children:r4.map(t=>(0,i.jsx)("li",{className:r8.default.badge,children:n(t)},t))})]}),(0,i.jsx)("div",{ref:t,className:r8.default.ctaAnchor,children:(0,i.jsx)(d.K,{className:r8.default.button,label:n("sc-moneybox.landing.cta-button.label"),size:"s",...a,onClick:function(){e(),(0,S.f)("lk_fu_finpodushka","click_banner_otkryt_finpodushku")}})})]})]})})})}t.i(55824);var r7=t.i(95837),r9=t.i(40187);let ot=["management","depositary","other","total"];function oe({open:t,onClose:e}){let n=(0,o.f)();return(0,i.jsxs)(d.n,{"aria-labelledby":"fund-strategy-title",className:r9.default.modal,footer:{primaryBtnText:n("sc-moneybox.landing.how-it-works.strategy-modal.close"),onPrimary:e},header:{withoutCloseBtn:!0},open:t,size:"m",onClose:e,children:[(0,i.jsx)("button",{className:r9.default.closeButton,type:"button","aria-label":n("sc-moneybox.landing.how-it-works.strategy-modal.close-label"),onClick:e,children:(0,i.jsx)(q.v,{"aria-hidden":"true"})}),(0,i.jsxs)("div",{className:r9.default.content,children:[(0,i.jsxs)("section",{className:r9.default.section,children:[(0,i.jsx)("h2",{id:"fund-strategy-title",className:r9.default.title,children:n("sc-moneybox.landing.how-it-works.strategy-modal.title")}),(0,i.jsx)("p",{className:r9.default.description,children:n("sc-moneybox.landing.how-it-works.strategy-modal.description")})]}),(0,i.jsxs)("section",{className:r9.default.section,children:[(0,i.jsx)("h3",{className:r9.default.subtitle,children:n("sc-moneybox.landing.how-it-works.strategy-modal.commissions.title")}),(0,i.jsx)("div",{className:r9.default.tableWrapper,children:(0,i.jsxs)("table",{className:r9.default.table,children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{scope:"col",children:n("sc-moneybox.landing.how-it-works.strategy-modal.commissions.type")}),(0,i.jsx)("th",{scope:"col",children:n("sc-moneybox.landing.how-it-works.strategy-modal.commissions.amount")})]})}),(0,i.jsx)("tbody",{children:ot.map(t=>(0,i.jsxs)("tr",{className:"total"===t?r9.default.totalRow:void 0,children:[(0,i.jsx)("td",{children:n(`sc-moneybox.landing.how-it-works.strategy-modal.commissions.${t}.name`)}),(0,i.jsx)("td",{children:n(`sc-moneybox.landing.how-it-works.strategy-modal.commissions.${t}.value`)})]},t))})]})}),(0,i.jsx)("p",{className:r9.default.description,children:n("sc-moneybox.landing.how-it-works.strategy-modal.commissions.note")})]}),(0,i.jsxs)("section",{className:r9.default.documents,children:[(0,i.jsx)("h3",{className:r9.default.subtitle,children:n("sc-moneybox.landing.how-it-works.strategy-modal.documents.title")}),(0,i.jsxs)("a",{className:r9.default.documentLink,href:n("sc-moneybox.landing.how-it-works.strategy-modal.rules.href"),target:"_blank",rel:"noreferrer",onClick:()=>(0,S.f)("lk_fu_finpodushka","click_pravila-fonda"),children:[(0,i.jsx)(q.U,{className:r9.default.documentIcon,"aria-hidden":"true",size:24}),n("sc-moneybox.landing.how-it-works.strategy-modal.rules.text")]})]})]})]})}var on=t.i(60849);let oi=[{key:"yield",desktopSrc:`${E.f}/landing/how-it-works/yield-desktop-1-1x.png`,desktopSrc2x:`${E.f}/landing/how-it-works/yield-desktop-1-2x.png`,mobileSrc:`${E.f}/landing/how-it-works/yield-mobile-1-1x.png`,mobileSrc2x:`${E.f}/landing/how-it-works/yield-mobile-1-2x.png`,tags:["rate","bank"]},{key:"start",desktopSrc:`${E.f}/landing/how-it-works/yield-desktop-2-1x.png`,desktopSrc2x:`${E.f}/landing/how-it-works/yield-desktop-2-2x.png`,mobileSrc:`${E.f}/landing/how-it-works/yield-mobile-2-1x.png`,mobileSrc2x:`${E.f}/landing/how-it-works/yield-mobile-2-2x.png`,tags:["income","amount","withdrawal"]},{key:"withdraw",desktopSrc:`${E.f}/landing/how-it-works/yield-desktop-3-1x.png`,desktopSrc2x:`${E.f}/landing/how-it-works/yield-desktop-3-2x.png`,mobileSrc:`${E.f}/landing/how-it-works/yield-mobile-3-1x.png`,mobileSrc2x:`${E.f}/landing/how-it-works/yield-mobile-3-2x.png`,tags:["wallet","free","percent"]}];function or(){let t=(0,o.f)(),[e,n]=(0,r.useState)(!1);return(0,i.jsxs)("section",{className:on.default.section,children:[(0,i.jsxs)(s.t,{children:[(0,i.jsx)(a.f,{className:on.default.title,type:"h4",children:t("sc-moneybox.landing.how-it-works.title")}),(0,i.jsxs)("div",{className:on.default.content,children:[(0,i.jsx)("ul",{className:on.default.benefitList,children:oi.map(e=>(0,i.jsxs)(s.N,{className:on.default.benefitCard,as:"li",children:[(0,i.jsxs)("picture",{className:on.default.imageWrapper,"aria-hidden":"true",children:[(0,i.jsx)("source",{media:"(min-width: 1280px)",srcSet:`${e.desktopSrc} 1x, ${e.desktopSrc2x} 2x`}),(0,i.jsx)("img",{className:on.default.image,src:e.mobileSrc,srcSet:`${e.mobileSrc} 1x, ${e.mobileSrc2x} 2x`,alt:"",loading:"lazy"})]}),(0,i.jsxs)("div",{className:on.default.description,children:[(0,i.jsx)(p.f,{as:"h3",className:on.default.cardTitle,children:t(`sc-moneybox.landing.how-it-works.cards.${e.key}.title`)}),(0,i.jsx)(p.f,{className:on.default.cardSubtitle,as:"p",weight:"regular",children:t(`sc-moneybox.landing.how-it-works.cards.${e.key}.subtitle`)})]}),(0,i.jsx)("ul",{className:on.default.tagList,"aria-label":t(`sc-moneybox.landing.how-it-works.cards.${e.key}.tags-label`),children:e.tags.map(n=>(0,i.jsx)("li",{className:on.default.tag,children:t(`sc-moneybox.landing.how-it-works.cards.${e.key}.tags.${n}`)},n))})]},e.key))}),(0,i.jsxs)(s.N,{className:on.default.companyCard,children:[(0,i.jsxs)("div",{className:on.default.companyHeader,children:[(0,i.jsx)(r7.f,{className:on.default.logo,src:`${E.f}/landing/how-it-works/dohod.svg`,size:50,alt:t("sc-moneybox.landing.how-it-works.company.logo-alt")}),(0,i.jsxs)("div",{className:on.default.companyInfo,children:[(0,i.jsx)(a.f,{as:"h3",className:on.default.companyTitle,type:"h6",children:t("sc-moneybox.landing.how-it-works.company.title")}),(0,i.jsx)(p.f,{className:on.default.companyDescription,as:"p",children:t("sc-moneybox.landing.how-it-works.company.description")})]})]}),(0,i.jsxs)("div",{className:on.default.companyContent,children:[(0,i.jsx)(p.f,{className:on.default.companyText,as:"p",children:t("sc-moneybox.landing.how-it-works.company.text")}),(0,i.jsx)("button",{className:on.default.companyLink,type:"button",onClick:()=>n(!0),children:t("sc-moneybox.landing.how-it-works.company.strategy.text")})]})]})]})]}),(0,i.jsx)(oe,{open:e,onClose:()=>n(!1)})]})}var oo=W,os=t.i(20788);let oa={slidesPerView:"auto",spaceBetween:12},oh=[{key:"registration",icon:q.y,iconSize:30},{key:"cabinet",icon:q.T},{key:"replenishment",icon:q.W}];function ol({onCtaButtonClick:t}){let e=(0,o.f)(),n=(0,d.U)(`screen and (min-width: ${oo.B.xl.minWidth}px)`,{defaultValue:!1,initializeWithValue:!1}),r=`${E.f}/landing/how-to-open`,h="true"===(0,f.f)("NEXT_PUBLIC_FEATURE_TOGGLE_LOGIN_WIDGET_ENABLED")?{}:{as:"a",href:e("sc-moneybox.landing.cta-button.href"),rel:"noreferrer",target:"_blank"},{props:l}=(0,r3.getImageProps)({alt:"",height:290,loading:"lazy",quality:90,sizes:"(min-width: 1280px) 345px, calc(100vw - 32px)",src:`${r}/cta-2x.png`,width:345});function u(){t(),(0,S.f)("lk_fu_finpodushka","click_how_to_open_otkryt_finpodushku")}function c({icon:t,iconSize:n=24,key:r,noteIcon:o}){return(0,i.jsxs)(s.N,{className:os.default.stepCard,as:"article",children:[(0,i.jsx)("div",{className:os.default.iconWrapper,"aria-hidden":"true",children:(0,i.jsx)(t,{size:n})}),(0,i.jsxs)("div",{className:os.default.stepContent,children:[o&&(0,i.jsxs)("div",{className:os.default.note,children:[(0,i.jsx)("span",{className:os.default.noteIcon,"aria-hidden":"true",children:(0,i.jsx)(o,{size:18})}),(0,i.jsx)(p.f,{className:os.default.noteText,as:"span",children:e("sc-moneybox.landing.how-to-open.cards.registration.note")})]}),(0,i.jsxs)("div",{className:os.default.textContent,children:[(0,i.jsx)(a.f,{as:"h3",className:os.default.cardTitle,type:"h6",children:e(`sc-moneybox.landing.how-to-open.cards.${r}.title`)}),(0,i.jsx)(p.f,{className:os.default.cardSubtitle,as:"p",children:e(`sc-moneybox.landing.how-to-open.cards.${r}.subtitle`)})]})]})]},r)}return(0,i.jsx)("section",{className:os.default.section,children:(0,i.jsxs)(s.t,{children:[(0,i.jsx)(p.f,{className:os.default.title,as:"p",children:e("sc-moneybox.landing.how-to-open.title")}),n?(0,i.jsxs)("div",{className:os.default.desktopContent,children:[(0,i.jsx)("ul",{className:os.default.stepList,children:oh.map(t=>(0,i.jsx)("li",{className:os.default.stepItem,children:c(t)},t.key))}),(0,i.jsxs)(s.N,{className:os.default.ctaCard,children:[(0,i.jsx)("img",{...l,className:os.default.ctaImage,alt:""}),(0,i.jsx)("div",{className:os.default.ctaContent,children:(0,i.jsx)(a.f,{as:"h3",className:os.default.ctaTitle,type:"h6",children:e("sc-moneybox.landing.how-to-open.cta.title")})}),(0,i.jsx)(d.K,{className:(0,L.f)(os.default.button,os.default.desktopButton),label:e("sc-moneybox.landing.cta-button.label"),size:"s",...h,onClick:u})]})]}):(0,i.jsxs)("div",{className:os.default.mobileContent,children:[(0,i.jsx)(d.k,{className:os.default.slider,pagination:!0,wrapperClass:os.default.sliderWrapper,options:oa,children:oh.map(t=>(0,i.jsx)(d.o,{className:os.default.slide,children:c(t)},t.key))}),(0,i.jsx)("div",{className:os.default.mobileCtaWrapper,children:(0,i.jsxs)(s.N,{className:os.default.ctaCard,children:[(0,i.jsx)("img",{...l,className:os.default.ctaImage,alt:""}),(0,i.jsx)("div",{className:os.default.ctaContent,children:(0,i.jsx)(a.f,{as:"h3",className:os.default.ctaTitle,type:"h6",children:e("sc-moneybox.landing.how-to-open.cta.title")})}),(0,i.jsx)(d.K,{className:(0,L.f)(os.default.button,os.default.mobileButton),label:e("sc-moneybox.landing.cta-button.label"),size:"s",...h,onClick:u})]})})]})]})})}var ou=t.i(884),oc=t.i(64419);function of(){let t=(0,o.f)();return(0,i.jsx)(s.t,{children:(0,i.jsx)(ou.f,{className:oc.default.text,size:"small",children:t.rich("sc-moneybox.landing.legal-disclaimer.text",{disclosure:e=>(0,i.jsx)(d.L,{className:oc.default.link,href:t("sc-moneybox.landing.disclaimer.link.disclosure"),target:"_blank",children:e}),rusfar:e=>(0,i.jsx)(d.L,{className:oc.default.link,href:t("sc-moneybox.landing.disclaimer.link.rusfar"),target:"_blank",children:e})})})})}var op=t.i(25691);let od=[{key:"vacation",imageNumber:1},{key:"apartment",imageNumber:2},{key:"car",imageNumber:3},{key:"shopping",imageNumber:4}],ov={slidesPerView:"auto",spaceBetween:12};function og({onCtaButtonClick:t}){let e=(0,o.f)();function n({imageNumber:r,key:o}){let a=`${E.f}/landing/savings-goals/card-${r}`;return(0,i.jsxs)(s.N,{className:op.default.card,as:"article",children:[(0,i.jsxs)("picture",{className:op.default.imageWrapper,"aria-hidden":"true",children:[(0,i.jsx)("source",{media:"(min-width: 1280px)",srcSet:`${a}-desktop-1x.png 1x, ${a}-desktop-2x.png 2x`}),(0,i.jsx)("img",{className:op.default.image,src:`${a}-mobile-1x.png`,srcSet:`${a}-mobile-1x.png 1x, ${a}-mobile-2x.png 2x`,alt:"",loading:"lazy"})]}),(0,i.jsxs)("div",{className:op.default.cardContent,children:[(0,i.jsx)(p.f,{as:"h3",className:op.default.cardTitle,weight:"medium",children:e(`sc-moneybox.landing.savings-goals.cards.${o}.title`)}),(0,i.jsx)(p.f,{className:op.default.cardSubtitle,as:"p",weight:"medium",children:e(`sc-moneybox.landing.savings-goals.cards.${o}.subtitle`)})]}),(0,i.jsx)("button",{className:op.default.arrow,type:"button","aria-label":e(`sc-moneybox.landing.savings-goals.cards.${o}.title`),onClick:()=>{t(),(0,S.f)("lk_fu_finpodushka","click_button_kopit-na-otpusk",{eventLabel:o})},children:(0,i.jsx)(q.n,{className:op.default.arrowIcon})})]})}return(0,i.jsx)("section",{className:op.default.section,children:(0,i.jsxs)(s.t,{children:[(0,i.jsx)(a.f,{as:"h2",className:op.default.title,type:"h4",children:e("sc-moneybox.landing.savings-goals.title")}),(0,i.jsx)("div",{className:op.default.mobileContent,children:(0,i.jsx)(d.k,{className:op.default.slider,pagination:!0,wrapperClass:op.default.sliderWrapper,options:ov,children:od.map(t=>(0,i.jsx)(d.o,{className:op.default.slide,children:n(t)},t.key))})}),(0,i.jsx)("div",{className:op.default.desktopContent,children:(0,i.jsx)("ul",{className:op.default.cardList,children:od.map(t=>(0,i.jsx)("li",{className:op.default.cardItem,children:n(t)},t.key))})})]})})}var oy=t.i(61973);t.s(["Landing",0,function({moneybox:t,aggregatorIds:e,faq:n}){let p=(0,o.f)(),d=(0,r.useRef)(null),[v,g]=(0,r.useState)(!1),m=t.strategies[0].yield,w="true"===(0,f.f)("NEXT_PUBLIC_FEATURE_TOGGLE_LOGIN_WIDGET_ENABLED"),b="true"===(0,f.f)("NEXT_PUBLIC_FEATURE_TOGGLE_OPEN_MONEYBOX_NEW_FLOW"),_=(0,f.f)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),x=b?(0,h.s)((0,h.W)(_,"investment/moneybox/status"),{opening:"moneybox"}):void 0;function k(){w&&g(!0)}return(0,c.f)(e),(0,i.jsxs)("div",{className:oy.default.wrapper,children:[(0,i.jsx)(u.f,{}),(0,i.jsx)(r6,{ctaRef:d,onCtaButtonClick:k}),(0,i.jsx)(s.t,{children:(0,i.jsxs)("div",{className:oy.default.calculatorWrapper,children:[(0,i.jsx)(a.f,{id:"calculator",as:"h2",className:oy.default.calculatorTitle,type:"h3",children:p("sc-moneybox.landing.calculator.title")}),(0,i.jsxs)("div",{className:oy.default.calculatorLayout,children:[(0,i.jsx)(D,{yield:m,onCtaButtonClick:k}),(0,i.jsx)(y,{})]})]})}),(0,i.jsx)("div",{id:"how-it-works",children:(0,i.jsx)(or,{})}),(0,i.jsx)("div",{id:"how-to-open",children:(0,i.jsx)(ol,{onCtaButtonClick:k})}),(0,i.jsx)(og,{onCtaButtonClick:k}),(0,i.jsx)("div",{id:"faq",children:(0,i.jsx)(V,{faq:n})}),(0,i.jsx)(z,{}),(0,i.jsx)(r0,{}),(0,i.jsx)(of,{}),(0,i.jsx)(r2,{anchorRef:d,onCtaButtonClick:k}),(0,i.jsx)(l.f,{open:v,url:x,onClose:()=>g(!1)})]})}],83827)}],38492,(t,e,n)=>{n.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,h=(1<<a)-1,l=h>>1,u=-7,c=n?r-1:0,f=n?-1:1,p=t[e+c];for(c+=f,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+t[e+c],c+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+c],c+=f,u-=8);if(0===o)o=1-l;else{if(o===h)return s?0/0:(p?-1:1)*2e308;s+=Math.pow(2,i),o-=l}return(p?-1:1)*s*Math.pow(2,o-i)},n.write=function(t,e,n,i,r,o){var s,a,h,l=8*o-r-1,u=(1<<l)-1,c=u>>1,f=5960464477539062e-23*(23===r),p=i?0:o-1,d=i?1:-1,v=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||1/0===e?(a=+!!isNaN(e),s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+c>=1?e+=f/h:e+=f*Math.pow(2,1-c),e*h>=2&&(s++,h/=2),s+c>=u?(a=0,s=u):s+c>=1?(a=(e*h-1)*Math.pow(2,r),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;t[n+p]=255&a,p+=d,a/=256,r-=8);for(s=s<<r|a,l+=r;l>0;t[n+p]=255&s,p+=d,s/=256,l-=8);t[n+p-d]|=128*v}},49947,(t,e,n)=>{var i={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},30364,(t,e,n)=>{var i=t.r(48891),r=/^\s+/;e.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},48891,(t,e,n)=>{var i=/\s/;e.exports=function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e}},74009,(t,e,n)=>{var i=t.r(12447),r=t.r(31926),o=t.r(73759),s=Math.max,a=Math.min;e.exports=function(t,e,n){var h,l,u,c,f,p,d=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var n=h,i=l;return h=l=void 0,d=e,c=t.apply(i,n)}function w(t){var n=t-p,i=t-d;return void 0===p||n>=e||n<0||g&&i>=u}function b(){var t,n,i,o=r();if(w(o))return _(o);f=setTimeout(b,(t=o-p,n=o-d,i=e-t,g?a(i,u-n):i))}function _(t){return(f=void 0,y&&h)?m(t):(h=l=void 0,c)}function x(){var t,n=r(),i=w(n);if(h=arguments,l=this,p=n,i){if(void 0===f)return d=t=p,f=setTimeout(b,e),v?m(t):c;if(g)return clearTimeout(f),f=setTimeout(b,e),m(p)}return void 0===f&&(f=setTimeout(b,e)),c}return e=o(e)||0,i(n)&&(v=!!n.leading,u=(g="maxWait"in n)?s(o(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==f&&clearTimeout(f),d=0,h=p=l=f=void 0},x.flush=function(){return void 0===f?c:_(r())},x}},12447,(t,e,n)=>{e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},42778,(t,e,n)=>{(function(){var i,r="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],h="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",d="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Object]",m="[object Promise]",w="[object RegExp]",b="[object Set]",_="[object String]",x="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",S="[object DataView]",E="[object Float32Array]",C="[object Float64Array]",j="[object Int8Array]",T="[object Int16Array]",A="[object Int32Array]",L="[object Uint8Array]",N="[object Uint8ClampedArray]",P="[object Uint16Array]",R="[object Uint32Array]",B=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,O=RegExp($.source),U=RegExp(W.source),D=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source),H=/^\s+/,Z=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,tt=/,? & /,te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tn=/[()=,{}\[\]\/\s]/,ti=/\\(\\)?/g,tr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,to=/\w*$/,ts=/^[-+]0x[0-9a-f]+$/i,ta=/^0b[01]+$/i,th=/^\[object .+?Constructor\]$/,tl=/^0o[0-7]+$/i,tu=/^(?:0|[1-9]\d*)$/,tc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tf=/($^)/,tp=/['\n\r\u2028\u2029\\]/g,td="\\ud800-\\udfff",tv="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tg="\\u2700-\\u27bf",ty="a-z\\xdf-\\xf6\\xf8-\\xff",tm="A-Z\\xc0-\\xd6\\xd8-\\xde",tw="\\ufe0e\\ufe0f",tb="\\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",t_="['’]",tx="["+tb+"]",tk="["+tv+"]",tM="["+ty+"]",tS="[^"+td+tb+"\\d+"+tg+ty+tm+"]",tE="\\ud83c[\\udffb-\\udfff]",tC="[^"+td+"]",tj="(?:\\ud83c[\\udde6-\\uddff]){2}",tT="[\\ud800-\\udbff][\\udc00-\\udfff]",tA="["+tm+"]",tL="\\u200d",tN="(?:"+tM+"|"+tS+")",tP="(?:"+tA+"|"+tS+")",tR="(?:"+t_+"(?:d|ll|m|re|s|t|ve))?",tB="(?:"+t_+"(?:D|LL|M|RE|S|T|VE))?",tI="(?:"+tk+"|"+tE+")?",tz="["+tw+"]?",t$="(?:"+tL+"(?:"+[tC,tj,tT].join("|")+")"+tz+tI+")*",tW=tz+tI+t$,tO="(?:"+["["+tg+"]",tj,tT].join("|")+")"+tW,tU="(?:"+[tC+tk+"?",tk,tj,tT,"["+td+"]"].join("|")+")",tD=RegExp(t_,"g"),tq=RegExp(tk,"g"),tF=RegExp(tE+"(?="+tE+")|"+tU+tW,"g"),tG=RegExp([tA+"?"+tM+"+"+tR+"(?="+[tx,tA,"$"].join("|")+")",tP+"+"+tB+"(?="+[tx,tA+tN,"$"].join("|")+")",tA+"?"+tN+"+"+tR,tA+"+"+tB,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",tO].join("|"),"g"),tV=RegExp("["+tL+td+tv+tw+"]"),tK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tY=["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"],tX=-1,tH={};tH[E]=tH[C]=tH[j]=tH[T]=tH[A]=tH[L]=tH[N]=tH[P]=tH[R]=!0,tH[h]=tH[l]=tH[M]=tH[u]=tH[S]=tH[c]=tH[f]=tH[p]=tH[v]=tH[g]=tH[y]=tH[w]=tH[b]=tH[_]=tH[k]=!1;var tZ={};tZ[h]=tZ[l]=tZ[M]=tZ[S]=tZ[u]=tZ[c]=tZ[E]=tZ[C]=tZ[j]=tZ[T]=tZ[A]=tZ[v]=tZ[g]=tZ[y]=tZ[w]=tZ[b]=tZ[_]=tZ[x]=tZ[L]=tZ[N]=tZ[P]=tZ[R]=!0,tZ[f]=tZ[p]=tZ[k]=!1;var tJ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tQ=parseFloat,t0=parseInt,t1=t.g&&t.g.Object===Object&&t.g,t2="object"==typeof self&&self&&self.Object===Object&&self,t3=t1||t2||Function("return this")(),t8=n&&!n.nodeType&&n,t4=t8&&e&&!e.nodeType&&e,t5=t4&&t4.exports===t8,t6=t5&&t1.process,t7=function(){try{var t=t4&&t4.require&&t4.require("util").types;if(t)return t;return t6&&t6.binding&&t6.binding("util")}catch(t){}}(),t9=t7&&t7.isArrayBuffer,et=t7&&t7.isDate,ee=t7&&t7.isMap,en=t7&&t7.isRegExp,ei=t7&&t7.isSet,er=t7&&t7.isTypedArray;function eo(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function es(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),t)}return i}function ea(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function eh(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function el(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function eu(t,e){return!!(null==t?0:t.length)&&eb(t,e,0)>-1}function ec(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function ef(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function ep(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function ed(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function ev(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function eg(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var ey=eM("length");function em(t,e,n){var i;return n(t,function(t,n,r){if(e(t,n,r))return i=n,!1}),i}function ew(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return -1}function eb(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return -1}(t,e,n):ew(t,ex,n)}function e_(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return -1}function ex(t){return t!=t}function ek(t,e){var n=null==t?0:t.length;return n?eC(t,e)/n:0/0}function eM(t){return function(e){return null==e?i:e[t]}}function eS(t){return function(e){return null==t?i:t[e]}}function eE(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function eC(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);i!==s&&(n=i===n?s:n+s)}return n}function ej(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function eT(t){return t?t.slice(0,eG(t)+1).replace(H,""):t}function eA(t){return function(e){return t(e)}}function eL(t,e){return ef(e,function(e){return t[e]})}function eN(t,e){return t.has(e)}function eP(t,e){for(var n=-1,i=t.length;++n<i&&eb(e,t[n],0)>-1;);return n}function eR(t,e){for(var n=t.length;n--&&eb(e,t[n],0)>-1;);return n}var eB=eS({À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),eI=eS({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ez(t){return"\\"+tJ[t]}function e$(t){return tV.test(t)}function eW(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function eO(t,e){return function(n){return t(e(n))}}function eU(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];(a===e||a===s)&&(t[n]=s,o[r++]=n)}return o}function eD(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function eq(t){return e$(t)?function(t){for(var e=tF.lastIndex=0;tF.test(t);)++e;return e}(t):ey(t)}function eF(t){return e$(t)?t.match(tF)||[]:t.split("")}function eG(t){for(var e=t.length;e--&&Z.test(t.charAt(e)););return e}var eV=eS({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),eK=function t(e){var n,Z,td,tv,tg=(e=null==e?t3:eK.defaults(t3.Object(),e,eK.pick(t3,tY))).Array,ty=e.Date,tm=e.Error,tw=e.Function,tb=e.Math,t_=e.Object,tx=e.RegExp,tk=e.String,tM=e.TypeError,tS=tg.prototype,tE=tw.prototype,tC=t_.prototype,tj=e["__core-js_shared__"],tT=tE.toString,tA=tC.hasOwnProperty,tL=0,tN=(n=/[^.]+$/.exec(tj&&tj.keys&&tj.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",tP=tC.toString,tR=tT.call(t_),tB=t3._,tI=tx("^"+tT.call(tA).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tz=t5?e.Buffer:i,t$=e.Symbol,tW=e.Uint8Array,tO=tz?tz.allocUnsafe:i,tU=eO(t_.getPrototypeOf,t_),tF=t_.create,tV=tC.propertyIsEnumerable,tJ=tS.splice,t1=t$?t$.isConcatSpreadable:i,t2=t$?t$.iterator:i,t8=t$?t$.toStringTag:i,t4=function(){try{var t=rf(t_,"defineProperty");return t({},"",{}),t}catch(t){}}(),t6=e.clearTimeout!==t3.clearTimeout&&e.clearTimeout,t7=ty&&ty.now!==t3.Date.now&&ty.now,ey=e.setTimeout!==t3.setTimeout&&e.setTimeout,eS=tb.ceil,eY=tb.floor,eX=t_.getOwnPropertySymbols,eH=tz?tz.isBuffer:i,eZ=e.isFinite,eJ=tS.join,eQ=eO(t_.keys,t_),e0=tb.max,e1=tb.min,e2=ty.now,e3=e.parseInt,e8=tb.random,e4=tS.reverse,e5=rf(e,"DataView"),e6=rf(e,"Map"),e7=rf(e,"Promise"),e9=rf(e,"Set"),nt=rf(e,"WeakMap"),ne=rf(t_,"create"),nn=nt&&new nt,ni={},nr=rz(e5),no=rz(e6),ns=rz(e7),na=rz(e9),nh=rz(nt),nl=t$?t$.prototype:i,nu=nl?nl.valueOf:i,nc=nl?nl.toString:i;function nf(t){if(oV(t)&&!oB(t)&&!(t instanceof ng)){if(t instanceof nv)return t;if(tA.call(t,"__wrapped__"))return r$(t)}return new nv(t)}var np=function(){function t(){}return function(e){if(!oG(e))return{};if(tF)return tF(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function nd(){}function nv(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function ng(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function ny(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function nm(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function nw(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function nb(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new nw;++e<n;)this.add(t[e])}function n_(t){var e=this.__data__=new nm(t);this.size=e.size}function nx(t,e){var n=oB(t),i=!n&&oR(t),r=!n&&!i&&oW(t),o=!n&&!i&&!r&&o0(t),s=n||i||r||o,a=s?ej(t.length,tk):[],h=a.length;for(var l in t)(e||tA.call(t,l))&&!(s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||rw(l,h)))&&a.push(l);return a}function nk(t){var e=t.length;return e?t[ih(0,e-1)]:i}nf.templateSettings={escape:D,evaluate:q,interpolate:F,variable:"",imports:{_:nf}},nf.prototype=nd.prototype,nf.prototype.constructor=nf,nv.prototype=np(nd.prototype),nv.prototype.constructor=nv,ng.prototype=np(nd.prototype),ng.prototype.constructor=ng,ny.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},ny.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},ny.prototype.get=function(t){var e=this.__data__;if(ne){var n=e[t];return n===o?i:n}return tA.call(e,t)?e[t]:i},ny.prototype.has=function(t){var e=this.__data__;return ne?e[t]!==i:tA.call(e,t)},ny.prototype.set=function(t,e){var n=this.__data__;return this.size+=+!this.has(t),n[t]=ne&&i===e?o:e,this},nm.prototype.clear=function(){this.__data__=[],this.size=0},nm.prototype.delete=function(t){var e=this.__data__,n=nE(e,t);return!(n<0)&&(n==e.length-1?e.pop():tJ.call(e,n,1),--this.size,!0)},nm.prototype.get=function(t){var e=this.__data__,n=nE(e,t);return n<0?i:e[n][1]},nm.prototype.has=function(t){return nE(this.__data__,t)>-1},nm.prototype.set=function(t,e){var n=this.__data__,i=nE(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},nw.prototype.clear=function(){this.size=0,this.__data__={hash:new ny,map:new(e6||nm),string:new ny}},nw.prototype.delete=function(t){var e=ru(this,t).delete(t);return this.size-=!!e,e},nw.prototype.get=function(t){return ru(this,t).get(t)},nw.prototype.has=function(t){return ru(this,t).has(t)},nw.prototype.set=function(t,e){var n=ru(this,t),i=n.size;return n.set(t,e),this.size+=+(n.size!=i),this},nb.prototype.add=nb.prototype.push=function(t){return this.__data__.set(t,o),this},nb.prototype.has=function(t){return this.__data__.has(t)};function nM(t,e,n){(i===n||oL(t[e],n))&&(i!==n||e in t)||nT(t,e,n)}function nS(t,e,n){var r=t[e];tA.call(t,e)&&oL(r,n)&&(i!==n||e in t)||nT(t,e,n)}function nE(t,e){for(var n=t.length;n--;)if(oL(t[n][0],e))return n;return -1}function nC(t,e,n,i){return nI(t,function(t,r,o){e(i,t,n(t),o)}),i}function nj(t,e){return t&&iU(e,sf(e),t)}function nT(t,e,n){"__proto__"==e&&t4?t4(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function nA(t,e){for(var n=-1,r=e.length,o=tg(r),s=null==t;++n<r;)o[n]=s?i:sa(t,e[n]);return o}function nL(t,e,n){return t==t&&(i!==n&&(t=t<=n?t:n),i!==e&&(t=t>=e?t:e)),t}function nN(t,e,n,r,o,s){var a,l=1&e,f=2&e,m=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),i!==a)return a;if(!oG(t))return t;var k=oB(t);if(k){if(I=(B=t).length,z=new B.constructor(I),I&&"string"==typeof B[0]&&tA.call(B,"index")&&(z.index=B.index,z.input=B.input),a=z,!l)return iO(t,a)}else{var B,I,z,$,W,O,U,D,q=rv(t),F=q==p||q==d;if(oW(t))return iR(t,l);if(q==y||q==h||F&&!o){if(a=f||F?{}:ry(t),!l){return f?($=t,W=(D=a)&&iU(t,sp(t),D),iU($,rd($),W)):(O=t,U=nj(a,t),iU(O,rp(O),U))}}else{if(!tZ[q])return o?t:{};a=function(t,e,n){var i,r,o=t.constructor;switch(e){case M:return iB(t);case u:case c:return new o(+t);case S:return i=n?iB(t.buffer):t.buffer,new t.constructor(i,t.byteOffset,t.byteLength);case E:case C:case j:case T:case A:case L:case N:case P:case R:return iI(t,n);case v:return new o;case g:case _:return new o(t);case w:return(r=new t.constructor(t.source,to.exec(t))).lastIndex=t.lastIndex,r;case b:return new o;case x:return nu?t_(nu.call(t)):{}}}(t,q,l)}}s||(s=new n_);var G=s.get(t);if(G)return G;s.set(t,a),oZ(t)?t.forEach(function(i){a.add(nN(i,e,n,i,t,s))}):oK(t)&&t.forEach(function(i,r){a.set(r,nN(i,e,n,r,t,s))});var V=m?f?ro:rr:f?sp:sf,K=k?i:V(t);return ea(K||t,function(i,r){K&&(i=t[r=i]),nS(a,r,nN(i,e,n,r,t,s))}),a}function nP(t,e,n){var r=n.length;if(null==t)return!r;for(t=t_(t);r--;){var o=n[r],s=e[o],a=t[o];if(i===a&&!(o in t)||!s(a))return!1}return!0}function nR(t,e,n){if("function"!=typeof t)throw new tM(r);return rA(function(){t.apply(i,n)},e)}function nB(t,e,n,i){var r=-1,o=eu,s=!0,a=t.length,h=[],l=e.length;if(!a)return h;n&&(e=ef(e,eA(n))),i?(o=ec,s=!1):e.length>=200&&(o=eN,s=!1,e=new nb(e));t:for(;++r<a;){var u=t[r],c=null==n?u:n(u);if(u=i||0!==u?u:0,s&&c==c){for(var f=l;f--;)if(e[f]===c)continue t;h.push(u)}else o(e,c,i)||h.push(u)}return h}n_.prototype.clear=function(){this.__data__=new nm,this.size=0},n_.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},n_.prototype.get=function(t){return this.__data__.get(t)},n_.prototype.has=function(t){return this.__data__.has(t)},n_.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nm){var i=n.__data__;if(!e6||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new nw(i)}return n.set(t,e),this.size=n.size,this};var nI=iF(nF),nz=iF(nG,!0);function n$(t,e){var n=!0;return nI(t,function(t,i,r){return n=!!e(t,i,r)}),n}function nW(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],a=e(s);if(null!=a&&(i===h?a==a&&!oQ(a):n(a,h)))var h=a,l=s}return l}function nO(t,e){var n=[];return nI(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}function nU(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=rm),r||(r=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?nU(a,e-1,n,i,r):ep(r,a):i||(r[r.length]=a)}return r}var nD=iG(),nq=iG(!0);function nF(t,e){return t&&nD(t,e,sf)}function nG(t,e){return t&&nq(t,e,sf)}function nV(t,e){return el(e,function(e){return oD(t[e])})}function nK(t,e){e=iL(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[rI(e[n++])];return n&&n==r?t:i}function nY(t,e,n){var i=e(t);return oB(t)?i:ep(i,n(t))}function nX(t){var e;return null==t?i===t?"[object Undefined]":"[object Null]":t8&&t8 in t_(t)?function(t){var e=tA.call(t,t8),n=t[t8];try{t[t8]=i;var r=!0}catch(t){}var o=tP.call(t);return r&&(e?t[t8]=n:delete t[t8]),o}(t):(e=t,tP.call(e))}function nH(t,e){return t>e}function nZ(t,e){return null!=t&&tA.call(t,e)}function nJ(t,e){return null!=t&&e in t_(t)}function nQ(t,e,n){for(var r=n?ec:eu,o=t[0].length,s=t.length,a=s,h=tg(s),l=1/0,u=[];a--;){var c=t[a];a&&e&&(c=ef(c,eA(e))),l=e1(c.length,l),h[a]=!n&&(e||o>=120&&c.length>=120)?new nb(a&&c):i}c=t[0];var f=-1,p=h[0];t:for(;++f<o&&u.length<l;){var d=c[f],v=e?e(d):d;if(d=n||0!==d?d:0,!(p?eN(p,v):r(u,v,n))){for(a=s;--a;){var g=h[a];if(!(g?eN(g,v):r(t[a],v,n)))continue t}p&&p.push(v),u.push(d)}}return u}function n0(t,e,n){e=iL(e,t);var r=null==(t=rC(t,e))?t:t[rI(rX(e))];return null==r?i:eo(r,t,n)}function n1(t){return oV(t)&&nX(t)==h}function n2(t,e,n,r,o){return t===e||(null!=t&&null!=e&&(oV(t)||oV(e))?function(t,e,n,r,o,s){var a=oB(t),p=oB(e),d=a?l:rv(t),m=p?l:rv(e);d=d==h?y:d,m=m==h?y:m;var k=d==y,E=m==y,C=d==m;if(C&&oW(t)){if(!oW(e))return!1;a=!0,k=!1}if(C&&!k)return s||(s=new n_),a||o0(t)?rn(t,e,n,r,o,s):function(t,e,n,i,r,o,s){switch(n){case S:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case M:if(t.byteLength!=e.byteLength||!o(new tW(t),new tW(e)))break;return!0;case u:case c:case g:return oL(+t,+e);case f:return t.name==e.name&&t.message==e.message;case w:case _:return t==e+"";case v:var a=eW;case b:var h=1&i;if(a||(a=eD),t.size!=e.size&&!h)break;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var p=rn(a(t),a(e),i,r,o,s);return s.delete(t),p;case x:if(nu)return nu.call(t)==nu.call(e)}return!1}(t,e,d,n,r,o,s);if(!(1&n)){var j=k&&tA.call(t,"__wrapped__"),T=E&&tA.call(e,"__wrapped__");if(j||T){var A=j?t.value():t,L=T?e.value():e;return s||(s=new n_),o(A,L,n,r,s)}}return!!C&&(s||(s=new n_),function(t,e,n,r,o,s){var a=1&n,h=rr(t),l=h.length;if(l!=rr(e).length&&!a)return!1;for(var u=l;u--;){var c=h[u];if(!(a?c in e:tA.call(e,c)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var d=!0;s.set(t,e),s.set(e,t);for(var v=a;++u<l;){var g=t[c=h[u]],y=e[c];if(r)var m=a?r(y,g,c,e,t,s):r(g,y,c,t,e,s);if(!(i===m?g===y||o(g,y,n,r,s):m)){d=!1;break}v||(v="constructor"==c)}if(d&&!v){var w=t.constructor,b=e.constructor;w!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b)&&(d=!1)}return s.delete(t),s.delete(e),d}(t,e,n,r,o,s))}(t,e,n,r,n2,o):t!=t&&e!=e)}function n3(t,e,n,r){var o=n.length,s=o,a=!r;if(null==t)return!s;for(t=t_(t);o--;){var h=n[o];if(a&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++o<s;){var l=(h=n[o])[0],u=t[l],c=h[1];if(a&&h[2]){if(i===u&&!(l in t))return!1}else{var f=new n_;if(r)var p=r(u,c,l,t,e,f);if(!(i===p?n2(c,u,3,r,f):p))return!1}}return!0}function n8(t){var e;return!(!oG(t)||(e=t,tN&&tN in e))&&(oD(t)?tI:th).test(rz(t))}function n4(t){return"function"==typeof t?t:null==t?s$:"object"==typeof t?oB(t)?it(t[0],t[1]):n9(t):sK(t)}function n5(t){if(!rM(t))return eQ(t);var e=[];for(var n in t_(t))tA.call(t,n)&&"constructor"!=n&&e.push(n);return e}function n6(t,e){return t<e}function n7(t,e){var n=-1,i=oz(t)?tg(t.length):[];return nI(t,function(t,r,o){i[++n]=e(t,r,o)}),i}function n9(t){var e=rc(t);return 1==e.length&&e[0][2]?rS(e[0][0],e[0][1]):function(n){return n===t||n3(n,t,e)}}function it(t,e){var n;return r_(t)&&(n=e)==n&&!oG(n)?rS(rI(t),e):function(n){var r=sa(n,t);return i===r&&r===e?sh(n,t):n2(e,r,3)}}function ie(t,e,n,r,o){t!==e&&nD(e,function(s,a){if(o||(o=new n_),oG(s))!function(t,e,n,r,o,s,a){var h=rj(t,n),l=rj(e,n),u=a.get(l);if(u)return nM(t,n,u);var c=s?s(h,l,n+"",t,e,a):i,f=i===c;if(f){var p=oB(l),d=!p&&oW(l),v=!p&&!d&&o0(l);c=l,p||d||v?oB(h)?c=h:o$(h)?c=iO(h):d?(f=!1,c=iR(l,!0)):v?(f=!1,c=iI(l,!0)):c=[]:oX(l)||oR(l)?(c=h,oR(h)?c=o7(h):(!oG(h)||oD(h))&&(c=ry(l))):f=!1}f&&(a.set(l,c),o(c,l,r,s,a),a.delete(l)),nM(t,n,c)}(t,e,a,n,ie,r,o);else{var h=r?r(rj(t,a),s,a+"",t,e,o):i;i===h&&(h=s),nM(t,a,h)}},sp)}function ii(t,e){var n=t.length;if(n)return rw(e+=e<0?n:0,n)?t[e]:i}function ir(t,e,n){e=e.length?ef(e,function(t){return oB(t)?function(e){return nK(e,1===t.length?t[0]:t)}:t}):[s$];var i=-1;e=ef(e,eA(rl()));var r=n7(t,function(t,n,r){return{criteria:ef(e,function(e){return e(t)}),index:++i,value:t}}),o=r.length;for(r.sort(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var h=iz(r[i],o[i]);if(h){if(i>=a)return h;return h*("desc"==n[i]?-1:1)}}return t.index-e.index}(t,e,n)});o--;)r[o]=r[o].value;return r}function io(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=nK(t,s);n(a,s)&&ic(o,iL(s,t),a)}return o}function is(t,e,n,i){var r=i?e_:eb,o=-1,s=e.length,a=t;for(t===e&&(e=iO(e)),n&&(a=ef(t,eA(n)));++o<s;)for(var h=0,l=e[o],u=n?n(l):l;(h=r(a,u,h,i))>-1;)a!==t&&tJ.call(a,h,1),tJ.call(t,h,1);return t}function ia(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;rw(r)?tJ.call(t,r,1):ik(t,r)}}return t}function ih(t,e){return t+eY(e8()*(e-t+1))}function il(t,e){var n="";if(!t||e<1||e>0x1fffffffffffff)return n;do e%2&&(n+=t),(e=eY(e/2))&&(t+=t);while(e)return n}function iu(t,e){return rL(rE(t,e,s$),t+"")}function ic(t,e,n,r){if(!oG(t))return t;e=iL(e,t);for(var o=-1,s=e.length,a=s-1,h=t;null!=h&&++o<s;){var l=rI(e[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(o!=a){var c=h[l];u=r?r(c,l,h):i,i===u&&(u=oG(c)?c:rw(e[o+1])?[]:{})}nS(h,l,u),h=h[l]}return t}var ip=nn?function(t,e){return nn.set(t,e),t}:s$,id=t4?function(t,e){return t4(t,"toString",{configurable:!0,enumerable:!1,value:sB(e),writable:!0})}:s$;function iv(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=tg(r);++i<r;)o[i]=t[i+e];return o}function ig(t,e){var n;return nI(t,function(t,i,r){return!(n=e(t,i,r))}),!!n}function iy(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=0x7fffffff){for(;i<r;){var o=i+r>>>1,s=t[o];null!==s&&!oQ(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return im(t,e,s$,n)}function im(t,e,n,r){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,h=null===e,l=oQ(e),u=i===e;o<s;){var c=eY((o+s)/2),f=n(t[c]),p=i!==f,d=null===f,v=f==f,g=oQ(f);if(a)var y=r||v;else y=u?v&&(r||p):h?v&&p&&(r||!d):l?v&&p&&!d&&(r||!g):!d&&!g&&(r?f<=e:f<e);y?o=c+1:s=c}return e1(s,0xfffffffe)}function iw(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!oL(a,h)){var h=a;o[r++]=0===s?0:s}}return o}function ib(t){return"number"==typeof t?t:oQ(t)?0/0:+t}function i_(t){if("string"==typeof t)return t;if(oB(t))return ef(t,i_)+"";if(oQ(t))return nc?nc.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ix(t,e,n){var i=-1,r=eu,o=t.length,s=!0,a=[],h=a;if(n)s=!1,r=ec;else if(o>=200){var l=e?null:i5(t);if(l)return eD(l);s=!1,r=eN,h=new nb}else h=e?[]:a;t:for(;++i<o;){var u=t[i],c=e?e(u):u;if(u=n||0!==u?u:0,s&&c==c){for(var f=h.length;f--;)if(h[f]===c)continue t;e&&h.push(c),a.push(u)}else r(h,c,n)||(h!==a&&h.push(c),a.push(u))}return a}function ik(t,e){return e=iL(e,t),null==(t=rC(t,e))||delete t[rI(rX(e))]}function iM(t,e,n,i){return ic(t,e,n(nK(t,e)),i)}function iS(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?iv(t,i?0:o,i?o+1:r):iv(t,i?o+1:0,i?r:o)}function iE(t,e){var n=t;return n instanceof ng&&(n=n.value()),ed(e,function(t,e){return e.func.apply(e.thisArg,ep([t],e.args))},n)}function iC(t,e,n){var i=t.length;if(i<2)return i?ix(t[0]):[];for(var r=-1,o=tg(i);++r<i;)for(var s=t[r],a=-1;++a<i;)a!=r&&(o[r]=nB(o[r]||s,t[a],e,n));return ix(nU(o,1),e,n)}function ij(t,e,n){for(var r=-1,o=t.length,s=e.length,a={};++r<o;){var h=r<s?e[r]:i;n(a,t[r],h)}return a}function iT(t){return o$(t)?t:[]}function iA(t){return"function"==typeof t?t:s$}function iL(t,e){return oB(t)?t:r_(t,e)?[t]:rB(o9(t))}function iN(t,e,n){var r=t.length;return n=i===n?r:n,!e&&n>=r?t:iv(t,e,n)}var iP=t6||function(t){return t3.clearTimeout(t)};function iR(t,e){if(e)return t.slice();var n=t.length,i=tO?tO(n):new t.constructor(n);return t.copy(i),i}function iB(t){var e=new t.constructor(t.byteLength);return new tW(e).set(new tW(t)),e}function iI(t,e){var n=e?iB(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function iz(t,e){if(t!==e){var n=i!==t,r=null===t,o=t==t,s=oQ(t),a=i!==e,h=null===e,l=e==e,u=oQ(e);if(!h&&!u&&!s&&t>e||s&&a&&l&&!h&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!s&&!u&&t<e||u&&n&&o&&!r&&!s||h&&n&&o||!a&&o||!l)return -1}return 0}function i$(t,e,n,i){for(var r=-1,o=t.length,s=n.length,a=-1,h=e.length,l=e0(o-s,0),u=tg(h+l),c=!i;++a<h;)u[a]=e[a];for(;++r<s;)(c||r<o)&&(u[n[r]]=t[r]);for(;l--;)u[a++]=t[r++];return u}function iW(t,e,n,i){for(var r=-1,o=t.length,s=-1,a=n.length,h=-1,l=e.length,u=e0(o-a,0),c=tg(u+l),f=!i;++r<u;)c[r]=t[r];for(var p=r;++h<l;)c[p+h]=e[h];for(;++s<a;)(f||r<o)&&(c[p+n[s]]=t[r++]);return c}function iO(t,e){var n=-1,i=t.length;for(e||(e=tg(i));++n<i;)e[n]=t[n];return e}function iU(t,e,n,r){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var h=e[s],l=r?r(n[h],t[h],h,n,t):i;i===l&&(l=t[h]),o?nT(n,h,l):nS(n,h,l)}return n}function iD(t,e){return function(n,i){var r=oB(n)?es:nC,o=e?e():{};return r(n,t,rl(i,2),o)}}function iq(t){return iu(function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&rb(n[0],n[1],a)&&(s=o<3?i:s,o=1),e=t_(e);++r<o;){var h=n[r];h&&t(e,h,r,s)}return e})}function iF(t,e){return function(n,i){if(null==n)return n;if(!oz(n))return t(n,i);for(var r=n.length,o=e?r:-1,s=t_(n);(e?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function iG(t){return function(e,n,i){for(var r=-1,o=t_(e),s=i(e),a=s.length;a--;){var h=s[t?a:++r];if(!1===n(o[h],h,o))break}return e}}function iV(t){return function(e){var n=e$(e=o9(e))?eF(e):i,r=n?n[0]:e.charAt(0),o=n?iN(n,1).join(""):e.slice(1);return r[t]()+o}}function iK(t){return function(e){return ed(sN(sM(e).replace(tD,"")),t,"")}}function iY(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=np(t.prototype),i=t.apply(n,e);return oG(i)?i:n}}function iX(t){return function(e,n,r){var o=t_(e);if(!oz(e)){var s=rl(n,3);e=sf(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[s?e[a]:a]:i}}function iH(t){return ri(function(e){var n=e.length,o=n,s=nv.prototype.thru;for(t&&e.reverse();o--;){var a=e[o];if("function"!=typeof a)throw new tM(r);if(s&&!h&&"wrapper"==ra(a))var h=new nv([],!0)}for(o=h?o:n;++o<n;){var l=ra(a=e[o]),u="wrapper"==l?rs(a):i;h=u&&rx(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?h[ra(u[0])].apply(h,u[3]):1==a.length&&rx(a)?h[l]():h.thru(a)}return function(){var t=arguments,i=t[0];if(h&&1==t.length&&oB(i))return h.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}})}function iZ(t,e,n,r,o,s,a,h,l,u){var c=128&e,f=1&e,p=2&e,d=24&e,v=512&e,g=p?i:iY(t);function y(){for(var m=arguments.length,w=tg(m),b=m;b--;)w[b]=arguments[b];if(d)var _=rh(y),x=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(w,_);if(r&&(w=i$(w,r,o,d)),s&&(w=iW(w,s,a,d)),m-=x,d&&m<u){var k=eU(w,_);return i8(t,e,iZ,y.placeholder,n,w,k,h,l,u-m)}var M=f?n:this,S=p?M[t]:t;return m=w.length,h?w=function(t,e){for(var n=t.length,r=e1(e.length,n),o=iO(t);r--;){var s=e[r];t[r]=rw(s,n)?o[s]:i}return t}(w,h):v&&m>1&&w.reverse(),c&&l<m&&(w.length=l),this&&this!==t3&&this instanceof y&&(S=g||iY(S)),S.apply(M,w)}return y}function iJ(t,e){return function(n,i){var r,o;return r=e(i),o={},nF(n,function(e,n,i){t(o,r(e),n,i)}),o}}function iQ(t,e){return function(n,r){var o;if(i===n&&i===r)return e;if(i!==n&&(o=n),i!==r){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=i_(n),r=i_(r)):(n=ib(n),r=ib(r)),o=t(n,r)}return o}}function i0(t){return ri(function(e){return e=ef(e,eA(rl())),iu(function(n){var i=this;return t(e,function(t){return eo(t,i,n)})})})}function i1(t,e){var n=(e=i===e?" ":i_(e)).length;if(n<2)return n?il(e,t):e;var r=il(e,eS(t/eq(e)));return e$(e)?iN(eF(r),0,t).join(""):r.slice(0,t)}function i2(t){return function(e,n,r){r&&"number"!=typeof r&&rb(e,n,r)&&(n=r=i),e=o8(e),i===n?(n=e,e=0):n=o8(n),r=i===r?e<n?1:-1:o8(r);for(var o=e,s=n,a=r,h=-1,l=e0(eS((s-o)/(a||1)),0),u=tg(l);l--;)u[t?l:++h]=o,o+=a;return u}}function i3(t){return function(e,n){return("string"!=typeof e||"string"!=typeof n)&&(e=o6(e),n=o6(n)),t(e,n)}}function i8(t,e,n,r,o,s,a,h,l,u){var c=8&e,f=c?a:i,p=c?i:a,d=c?s:i,v=c?i:s;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var g=[t,e,o,d,f,v,p,h,l,u],y=n.apply(i,g);return rx(t)&&rT(y,g),y.placeholder=r,rN(y,t,e)}function i4(t){var e=tb[t];return function(t,n){if(t=o6(t),(n=null==n?0:e1(o4(n),292))&&eZ(t)){var i=(o9(t)+"e").split("e");return+((i=(o9(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(i[1]-n))}return e(t)}}var i5=e9&&1/eD(new e9([,-0]))[1]==1/0?function(t){return new e9(t)}:sq;function i6(t){return function(e){var n,i,r=rv(e);return r==v?eW(e):r==b?(n=-1,i=Array(e.size),e.forEach(function(t){i[++n]=[t,t]}),i):ef(t(e),function(t){return[t,e[t]]})}}function i7(t,e,n,o,a,h,l,u){var c=2&e;if(!c&&"function"!=typeof t)throw new tM(r);var f=o?o.length:0;if(f||(e&=-97,o=a=i),l=i===l?l:e0(o4(l),0),u=i===u?u:o4(u),f-=a?a.length:0,64&e){var p=o,d=a;o=a=i}var v=c?i:rs(t),g=[t,e,n,o,a,p,d,h,l,u];if(v&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,a=128==i&&8==n||128==i&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(o||a){1&i&&(t[2]=e[2],r|=1&n?0:4);var h=e[3];if(h){var l=t[3];t[3]=l?i$(l,h,e[4]):h,t[4]=l?eU(t[3],s):e[4]}(h=e[5])&&(l=t[5],t[5]=l?iW(l,h,e[6]):h,t[6]=l?eU(t[5],s):e[6]),(h=e[7])&&(t[7]=h),128&i&&(t[8]=null==t[8]?e[8]:e1(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}}(g,v),t=g[0],e=g[1],n=g[2],o=g[3],a=g[4],(u=g[9]=g[9]===i?c?0:t.length:e0(g[9]-f,0))||!(24&e)||(e&=-25),e&&1!=e)8==e||16==e?j=function(t,e,n){var r=iY(t);function o(){for(var s=arguments.length,a=tg(s),h=s,l=rh(o);h--;)a[h]=arguments[h];var u=s<3&&a[0]!==l&&a[s-1]!==l?[]:eU(a,l);return(s-=u.length)<n?i8(t,e,iZ,o.placeholder,i,a,u,i,i,n-s):eo(this&&this!==t3&&this instanceof o?r:t,this,a)}return o}(t,e,u):32!=e&&33!=e||a.length?j=iZ.apply(i,g):(y=t,m=e,w=n,b=o,_=1&m,x=iY(y),j=function t(){for(var e=-1,n=arguments.length,i=-1,r=b.length,o=tg(r+n),s=this&&this!==t3&&this instanceof t?x:y;++i<r;)o[i]=b[i];for(;n--;)o[i++]=arguments[++e];return eo(s,_?w:this,o)});else var y,m,w,b,_,x,k,M,S,E,C,j=(k=t,M=e,S=n,E=1&M,C=iY(k),function t(){return(this&&this!==t3&&this instanceof t?C:k).apply(E?S:this,arguments)});return rN((v?ip:rT)(j,g),t,e)}function i9(t,e,n,r){return i===t||oL(t,tC[n])&&!tA.call(r,n)?e:t}function rt(t,e,n,r,o,s){return oG(t)&&oG(e)&&(s.set(e,t),ie(t,e,i,rt,s),s.delete(e)),t}function re(t){return oX(t)?i:t}function rn(t,e,n,r,o,s){var a=1&n,h=t.length,l=e.length;if(h!=l&&!(a&&l>h))return!1;var u=s.get(t),c=s.get(e);if(u&&c)return u==e&&c==t;var f=-1,p=!0,d=2&n?new nb:i;for(s.set(t,e),s.set(e,t);++f<h;){var v=t[f],g=e[f];if(r)var y=a?r(g,v,f,e,t,s):r(v,g,f,t,e,s);if(i!==y){if(y)continue;p=!1;break}if(d){if(!eg(e,function(t,e){if(!eN(d,e)&&(v===t||o(v,t,n,r,s)))return d.push(e)})){p=!1;break}}else if(!(v===g||o(v,g,n,r,s))){p=!1;break}}return s.delete(t),s.delete(e),p}function ri(t){return rL(rE(t,i,rF),t+"")}function rr(t){return nY(t,sf,rp)}function ro(t){return nY(t,sp,rd)}var rs=nn?function(t){return nn.get(t)}:sq;function ra(t){for(var e=t.name+"",n=ni[e],i=tA.call(ni,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function rh(t){return(tA.call(nf,"placeholder")?nf:t).placeholder}function rl(){var t=nf.iteratee||sW;return t=t===sW?n4:t,arguments.length?t(arguments[0],arguments[1]):t}function ru(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function rc(t){for(var e=sf(t),n=e.length;n--;){var i,r=e[n],o=t[r];e[n]=[r,o,(i=o)==i&&!oG(i)]}return e}function rf(t,e){var n=null==t?i:t[e];return n8(n)?n:i}var rp=eX?function(t){return null==t?[]:el(eX(t=t_(t)),function(e){return tV.call(t,e)})}:sH,rd=eX?function(t){for(var e=[];t;)ep(e,rp(t)),t=tU(t);return e}:sH,rv=nX;function rg(t,e,n){e=iL(e,t);for(var i=-1,r=e.length,o=!1;++i<r;){var s=rI(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&oF(r)&&rw(s,r)&&(oB(t)||oR(t))}function ry(t){return"function"!=typeof t.constructor||rM(t)?{}:np(tU(t))}function rm(t){return oB(t)||oR(t)||!!(t1&&t&&t[t1])}function rw(t,e){var n=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==n||"symbol"!=n&&tu.test(t))&&t>-1&&t%1==0&&t<e}function rb(t,e,n){if(!oG(n))return!1;var i=typeof e;return("number"==i?!!(oz(n)&&rw(e,n.length)):"string"==i&&e in n)&&oL(n[e],t)}function r_(t,e){if(oB(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||oQ(t))||V.test(t)||!G.test(t)||null!=e&&t in t_(e)}function rx(t){var e=ra(t),n=nf[e];if("function"!=typeof n||!(e in ng.prototype))return!1;if(t===n)return!0;var i=rs(n);return!!i&&t===i[0]}(e5&&rv(new e5(new ArrayBuffer(1)))!=S||e6&&rv(new e6)!=v||e7&&rv(e7.resolve())!=m||e9&&rv(new e9)!=b||nt&&rv(new nt)!=k)&&(rv=function(t){var e=nX(t),n=e==y?t.constructor:i,r=n?rz(n):"";if(r)switch(r){case nr:return S;case no:return v;case ns:return m;case na:return b;case nh:return k}return e});var rk=tj?oD:sZ;function rM(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||tC)}function rS(t,e){return function(n){return null!=n&&n[t]===e&&(i!==e||t in t_(n))}}function rE(t,e,n){return e=e0(i===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=e0(i.length-e,0),s=tg(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=tg(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),eo(t,this,a)}}function rC(t,e){return e.length<2?t:nK(t,iv(e,0,-1))}function rj(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var rT=rP(ip),rA=ey||function(t,e){return t3.setTimeout(t,e)},rL=rP(id);function rN(t,e,n){var i,r,o,s=e+"";return rL(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(s,(i=(o=s.match(Q))?o[1].split(tt):[],r=n,ea(a,function(t){var e="_."+t[0];r&t[1]&&!eu(i,e)&&i.push(e)}),i.sort())))}function rP(t){var e=0,n=0;return function(){var r=e2(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function rR(t,e){var n=-1,r=t.length,o=r-1;for(e=i===e?r:e;++n<e;){var s=ih(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var rB=(td=(Z=oS(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(K,function(t,n,i,r){e.push(i?r.replace(ti,"$1"):n||t)}),e},function(t){return 500===td.size&&td.clear(),t})).cache,Z);function rI(t){if("string"==typeof t||oQ(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function rz(t){if(null!=t){try{return tT.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function r$(t){if(t instanceof ng)return t.clone();var e=new nv(t.__wrapped__,t.__chain__);return e.__actions__=iO(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var rW=iu(function(t,e){return o$(t)?nB(t,nU(e,1,o$,!0)):[]}),rO=iu(function(t,e){var n=rX(e);return o$(n)&&(n=i),o$(t)?nB(t,nU(e,1,o$,!0),rl(n,2)):[]}),rU=iu(function(t,e){var n=rX(e);return o$(n)&&(n=i),o$(t)?nB(t,nU(e,1,o$,!0),i,n):[]});function rD(t,e,n){var i=null==t?0:t.length;if(!i)return -1;var r=null==n?0:o4(n);return r<0&&(r=e0(i+r,0)),ew(t,rl(e,3),r)}function rq(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var o=r-1;return i!==n&&(o=o4(n),o=n<0?e0(r+o,0):e1(o,r-1)),ew(t,rl(e,3),o,!0)}function rF(t){return(null==t?0:t.length)?nU(t,1):[]}function rG(t){return t&&t.length?t[0]:i}var rV=iu(function(t){var e=ef(t,iT);return e.length&&e[0]===t[0]?nQ(e):[]}),rK=iu(function(t){var e=rX(t),n=ef(t,iT);return e===rX(n)?e=i:n.pop(),n.length&&n[0]===t[0]?nQ(n,rl(e,2)):[]}),rY=iu(function(t){var e=rX(t),n=ef(t,iT);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?nQ(n,i,e):[]});function rX(t){var e=null==t?0:t.length;return e?t[e-1]:i}var rH=iu(rZ);function rZ(t,e){return t&&t.length&&e&&e.length?is(t,e):t}var rJ=ri(function(t,e){var n=null==t?0:t.length,i=nA(t,e);return ia(t,ef(e,function(t){return rw(t,n)?+t:t}).sort(iz)),i});function rQ(t){return null==t?t:e4.call(t)}var r0=iu(function(t){return ix(nU(t,1,o$,!0))}),r1=iu(function(t){var e=rX(t);return o$(e)&&(e=i),ix(nU(t,1,o$,!0),rl(e,2))}),r2=iu(function(t){var e=rX(t);return e="function"==typeof e?e:i,ix(nU(t,1,o$,!0),i,e)});function r3(t){if(!(t&&t.length))return[];var e=0;return t=el(t,function(t){if(o$(t))return e=e0(t.length,e),!0}),ej(e,function(e){return ef(t,eM(e))})}function r8(t,e){if(!(t&&t.length))return[];var n=r3(t);return null==e?n:ef(n,function(t){return eo(e,i,t)})}var r4=iu(function(t,e){return o$(t)?nB(t,e):[]}),r5=iu(function(t){return iC(el(t,o$))}),r6=iu(function(t){var e=rX(t);return o$(e)&&(e=i),iC(el(t,o$),rl(e,2))}),r7=iu(function(t){var e=rX(t);return e="function"==typeof e?e:i,iC(el(t,o$),i,e)}),r9=iu(r3),ot=iu(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,r8(t,n)});function oe(t){var e=nf(t);return e.__chain__=!0,e}function on(t,e){return e(t)}var oi=ri(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return nA(e,t)};return!(e>1)&&!this.__actions__.length&&r instanceof ng&&rw(n)?((r=r.slice(n,+n+ +!!e)).__actions__.push({func:on,args:[o],thisArg:i}),new nv(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(o)}),or=iD(function(t,e,n){tA.call(t,n)?++t[n]:nT(t,n,1)}),oo=iX(rD),os=iX(rq);function oa(t,e){return(oB(t)?ea:nI)(t,rl(e,3))}function oh(t,e){return(oB(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:nz)(t,rl(e,3))}var ol=iD(function(t,e,n){tA.call(t,n)?t[n].push(e):nT(t,n,[e])}),ou=iu(function(t,e,n){var i=-1,r="function"==typeof e,o=oz(t)?tg(t.length):[];return nI(t,function(t){o[++i]=r?eo(e,t,n):n0(t,e,n)}),o}),oc=iD(function(t,e,n){nT(t,n,e)});function of(t,e){return(oB(t)?ef:n7)(t,rl(e,3))}var op=iD(function(t,e,n){t[+!n].push(e)},function(){return[[],[]]}),od=iu(function(t,e){if(null==t)return[];var n=e.length;return n>1&&rb(t,e[0],e[1])?e=[]:n>2&&rb(e[0],e[1],e[2])&&(e=[e[0]]),ir(t,nU(e,1),[])}),ov=t7||function(){return t3.Date.now()};function og(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,i7(t,128,i,i,i,i,e)}function oy(t,e){var n;if("function"!=typeof e)throw new tM(r);return t=o4(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var om=iu(function(t,e,n){var i=1;if(n.length){var r=eU(n,rh(om));i|=32}return i7(t,i,e,n,r)}),ow=iu(function(t,e,n){var i=3;if(n.length){var r=eU(n,rh(ow));i|=32}return i7(e,i,t,n,r)});function ob(t,e,n){e=n?i:e;var r=i7(t,8,i,i,i,i,i,e);return r.placeholder=ob.placeholder,r}function o_(t,e,n){e=n?i:e;var r=i7(t,16,i,i,i,i,i,e);return r.placeholder=o_.placeholder,r}function ox(t,e,n){var o,s,a,h,l,u,c=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw new tM(r);function v(e){var n=o,r=s;return o=s=i,c=e,h=t.apply(r,n)}function g(t){var n=t-u,r=t-c;return i===u||n>=e||n<0||p&&r>=a}function y(){var t,n,i,r=ov();if(g(r))return m(r);l=rA(y,(t=r-u,n=r-c,i=e-t,p?e1(i,a-n):i))}function m(t){return(l=i,d&&o)?v(t):(o=s=i,h)}function w(){var t,n=ov(),r=g(n);if(o=arguments,s=this,u=n,r){if(i===l)return c=t=u,l=rA(y,e),f?v(t):h;if(p)return iP(l),l=rA(y,e),v(u)}return i===l&&(l=rA(y,e)),h}return e=o6(e)||0,oG(n)&&(f=!!n.leading,a=(p="maxWait"in n)?e0(o6(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),w.cancel=function(){i!==l&&iP(l),c=0,o=u=s=l=i},w.flush=function(){return i===l?h:m(ov())},w}var ok=iu(function(t,e){return nR(t,1,e)}),oM=iu(function(t,e,n){return nR(t,o6(e)||0,n)});function oS(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new tM(r);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(oS.Cache||nw),n}function oE(t){if("function"!=typeof t)throw new tM(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}oS.Cache=nw;var oC=iu(function(t,e){var n=(e=1==e.length&&oB(e[0])?ef(e[0],eA(rl())):ef(nU(e,1),eA(rl()))).length;return iu(function(i){for(var r=-1,o=e1(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return eo(t,this,i)})}),oj=iu(function(t,e){var n=eU(e,rh(oj));return i7(t,32,i,e,n)}),oT=iu(function(t,e){var n=eU(e,rh(oT));return i7(t,64,i,e,n)}),oA=ri(function(t,e){return i7(t,256,i,i,i,e)});function oL(t,e){return t===e||t!=t&&e!=e}var oN=i3(nH),oP=i3(function(t,e){return t>=e}),oR=n1(function(){return arguments}())?n1:function(t){return oV(t)&&tA.call(t,"callee")&&!tV.call(t,"callee")},oB=tg.isArray,oI=t9?eA(t9):function(t){return oV(t)&&nX(t)==M};function oz(t){return null!=t&&oF(t.length)&&!oD(t)}function o$(t){return oV(t)&&oz(t)}var oW=eH||sZ,oO=et?eA(et):function(t){return oV(t)&&nX(t)==c};function oU(t){if(!oV(t))return!1;var e=nX(t);return e==f||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!oX(t)}function oD(t){if(!oG(t))return!1;var e=nX(t);return e==p||e==d||"[object AsyncFunction]"==e||"[object Proxy]"==e}function oq(t){return"number"==typeof t&&t==o4(t)}function oF(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}function oG(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function oV(t){return null!=t&&"object"==typeof t}var oK=ee?eA(ee):function(t){return oV(t)&&rv(t)==v};function oY(t){return"number"==typeof t||oV(t)&&nX(t)==g}function oX(t){if(!oV(t)||nX(t)!=y)return!1;var e=tU(t);if(null===e)return!0;var n=tA.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&tT.call(n)==tR}var oH=en?eA(en):function(t){return oV(t)&&nX(t)==w},oZ=ei?eA(ei):function(t){return oV(t)&&rv(t)==b};function oJ(t){return"string"==typeof t||!oB(t)&&oV(t)&&nX(t)==_}function oQ(t){return"symbol"==typeof t||oV(t)&&nX(t)==x}var o0=er?eA(er):function(t){return oV(t)&&oF(t.length)&&!!tH[nX(t)]},o1=i3(n6),o2=i3(function(t,e){return t<=e});function o3(t){if(!t)return[];if(oz(t))return oJ(t)?eF(t):iO(t);if(t2&&t[t2]){for(var e,n=t[t2](),i=[];!(e=n.next()).done;)i.push(e.value);return i}var r=rv(t);return(r==v?eW:r==b?eD:s_)(t)}function o8(t){return t?1/0===(t=o6(t))||-1/0===t?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function o4(t){var e=o8(t),n=e%1;return e==e?n?e-n:e:0}function o5(t){return t?nL(o4(t),0,0xffffffff):0}function o6(t){if("number"==typeof t)return t;if(oQ(t))return 0/0;if(oG(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=oG(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=eT(t);var n=ta.test(t);return n||tl.test(t)?t0(t.slice(2),n?2:8):ts.test(t)?0/0:+t}function o7(t){return iU(t,sp(t))}function o9(t){return null==t?"":i_(t)}var st=iq(function(t,e){if(rM(e)||oz(e))return void iU(e,sf(e),t);for(var n in e)tA.call(e,n)&&nS(t,n,e[n])}),se=iq(function(t,e){iU(e,sp(e),t)}),sn=iq(function(t,e,n,i){iU(e,sp(e),t,i)}),si=iq(function(t,e,n,i){iU(e,sf(e),t,i)}),sr=ri(nA),so=iu(function(t,e){t=t_(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&rb(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],a=sp(s),h=-1,l=a.length;++h<l;){var u=a[h],c=t[u];(i===c||oL(c,tC[u])&&!tA.call(t,u))&&(t[u]=s[u])}return t}),ss=iu(function(t){return t.push(i,rt),eo(sv,i,t)});function sa(t,e,n){var r=null==t?i:nK(t,e);return i===r?n:r}function sh(t,e){return null!=t&&rg(t,e,nJ)}var sl=iJ(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tP.call(e)),t[e]=n},sB(s$)),su=iJ(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=tP.call(e)),tA.call(t,e)?t[e].push(n):t[e]=[n]},rl),sc=iu(n0);function sf(t){return oz(t)?nx(t):n5(t)}function sp(t){return oz(t)?nx(t,!0):function(t){if(!oG(t)){var e=t,n=[];if(null!=e)for(var i in t_(e))n.push(i);return n}var r=rM(t),o=[];for(var s in t)"constructor"==s&&(r||!tA.call(t,s))||o.push(s);return o}(t)}var sd=iq(function(t,e,n){ie(t,e,n)}),sv=iq(function(t,e,n,i){ie(t,e,n,i)}),sg=ri(function(t,e){var n={};if(null==t)return n;var i=!1;e=ef(e,function(e){return e=iL(e,t),i||(i=e.length>1),e}),iU(t,ro(t),n),i&&(n=nN(n,7,re));for(var r=e.length;r--;)ik(n,e[r]);return n}),sy=ri(function(t,e){return null==t?{}:io(t,e,function(e,n){return sh(t,n)})});function sm(t,e){if(null==t)return{};var n=ef(ro(t),function(t){return[t]});return e=rl(e),io(t,n,function(t,n){return e(t,n[0])})}var sw=i6(sf),sb=i6(sp);function s_(t){return null==t?[]:eL(t,sf(t))}var sx=iK(function(t,e,n){return e=e.toLowerCase(),t+(n?sk(e):e)});function sk(t){return sL(o9(t).toLowerCase())}function sM(t){return(t=o9(t))&&t.replace(tc,eB).replace(tq,"")}var sS=iK(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),sE=iK(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),sC=iV("toLowerCase"),sj=iK(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),sT=iK(function(t,e,n){return t+(n?" ":"")+sL(e)}),sA=iK(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),sL=iV("toUpperCase");function sN(t,e,n){if(t=o9(t),e=n?i:e,i===e){var r;return(r=t,tK.test(r))?t.match(tG)||[]:t.match(te)||[]}return t.match(e)||[]}var sP=iu(function(t,e){try{return eo(t,i,e)}catch(t){return oU(t)?t:new tm(t)}}),sR=ri(function(t,e){return ea(e,function(e){nT(t,e=rI(e),om(t[e],t))}),t});function sB(t){return function(){return t}}var sI=iH(),sz=iH(!0);function s$(t){return t}function sW(t){return n4("function"==typeof t?t:nN(t,1))}var sO=iu(function(t,e){return function(n){return n0(n,t,e)}}),sU=iu(function(t,e){return function(n){return n0(t,n,e)}});function sD(t,e,n){var i=sf(e),r=nV(e,i);null!=n||oG(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=nV(e,sf(e)));var o=!(oG(n)&&"chain"in n)||!!n.chain,s=oD(t);return ea(r,function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=iO(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,ep([this.value()],arguments))})}),t}function sq(){}var sF=i0(ef),sG=i0(eh),sV=i0(eg);function sK(t){return r_(t)?eM(rI(t)):function(e){return nK(e,t)}}var sY=i2(),sX=i2(!0);function sH(){return[]}function sZ(){return!1}var sJ=iQ(function(t,e){return t+e},0),sQ=i4("ceil"),s0=iQ(function(t,e){return t/e},1),s1=i4("floor"),s2=iQ(function(t,e){return t*e},1),s3=i4("round"),s8=iQ(function(t,e){return t-e},0);return nf.after=function(t,e){if("function"!=typeof e)throw new tM(r);return t=o4(t),function(){if(--t<1)return e.apply(this,arguments)}},nf.ary=og,nf.assign=st,nf.assignIn=se,nf.assignInWith=sn,nf.assignWith=si,nf.at=sr,nf.before=oy,nf.bind=om,nf.bindAll=sR,nf.bindKey=ow,nf.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return oB(t)?t:[t]},nf.chain=oe,nf.chunk=function(t,e,n){e=(n?rb(t,e,n):i===e)?1:e0(o4(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,s=0,a=tg(eS(r/e));o<r;)a[s++]=iv(t,o,o+=e);return a},nf.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},nf.concat=function(){var t=arguments.length;if(!t)return[];for(var e=tg(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return ep(oB(n)?iO(n):[n],nU(e,1))},nf.cond=function(t){var e=null==t?0:t.length,n=rl();return t=e?ef(t,function(t){if("function"!=typeof t[1])throw new tM(r);return[n(t[0]),t[1]]}):[],iu(function(n){for(var i=-1;++i<e;){var r=t[i];if(eo(r[0],this,n))return eo(r[1],this,n)}})},nf.conforms=function(t){var e,n;return n=sf(e=nN(t,1)),function(t){return nP(t,e,n)}},nf.constant=sB,nf.countBy=or,nf.create=function(t,e){var n=np(t);return null==e?n:nj(n,e)},nf.curry=ob,nf.curryRight=o_,nf.debounce=ox,nf.defaults=so,nf.defaultsDeep=ss,nf.defer=ok,nf.delay=oM,nf.difference=rW,nf.differenceBy=rO,nf.differenceWith=rU,nf.drop=function(t,e,n){var r=null==t?0:t.length;return r?iv(t,(e=n||i===e?1:o4(e))<0?0:e,r):[]},nf.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?iv(t,0,(e=r-(e=n||i===e?1:o4(e)))<0?0:e):[]},nf.dropRightWhile=function(t,e){return t&&t.length?iS(t,rl(e,3),!0,!0):[]},nf.dropWhile=function(t,e){return t&&t.length?iS(t,rl(e,3),!0):[]},nf.fill=function(t,e,n,r){var o=null==t?0:t.length;if(!o)return[];n&&"number"!=typeof n&&rb(t,e,n)&&(n=0,r=o);var s=n,a=r,h=t.length;for((s=o4(s))<0&&(s=-s>h?0:h+s),(a=i===a||a>h?h:o4(a))<0&&(a+=h),a=s>a?0:o5(a);s<a;)t[s++]=e;return t},nf.filter=function(t,e){return(oB(t)?el:nO)(t,rl(e,3))},nf.flatMap=function(t,e){return nU(of(t,e),1)},nf.flatMapDeep=function(t,e){return nU(of(t,e),1/0)},nf.flatMapDepth=function(t,e,n){return n=i===n?1:o4(n),nU(of(t,e),n)},nf.flatten=rF,nf.flattenDeep=function(t){return(null==t?0:t.length)?nU(t,1/0):[]},nf.flattenDepth=function(t,e){return(null==t?0:t.length)?nU(t,e=i===e?1:o4(e)):[]},nf.flip=function(t){return i7(t,512)},nf.flow=sI,nf.flowRight=sz,nf.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},nf.functions=function(t){return null==t?[]:nV(t,sf(t))},nf.functionsIn=function(t){return null==t?[]:nV(t,sp(t))},nf.groupBy=ol,nf.initial=function(t){return(null==t?0:t.length)?iv(t,0,-1):[]},nf.intersection=rV,nf.intersectionBy=rK,nf.intersectionWith=rY,nf.invert=sl,nf.invertBy=su,nf.invokeMap=ou,nf.iteratee=sW,nf.keyBy=oc,nf.keys=sf,nf.keysIn=sp,nf.map=of,nf.mapKeys=function(t,e){var n={};return e=rl(e,3),nF(t,function(t,i,r){nT(n,e(t,i,r),t)}),n},nf.mapValues=function(t,e){var n={};return e=rl(e,3),nF(t,function(t,i,r){nT(n,i,e(t,i,r))}),n},nf.matches=function(t){return n9(nN(t,1))},nf.matchesProperty=function(t,e){return it(t,nN(e,1))},nf.memoize=oS,nf.merge=sd,nf.mergeWith=sv,nf.method=sO,nf.methodOf=sU,nf.mixin=sD,nf.negate=oE,nf.nthArg=function(t){return t=o4(t),iu(function(e){return ii(e,t)})},nf.omit=sg,nf.omitBy=function(t,e){return sm(t,oE(rl(e)))},nf.once=function(t){return oy(2,t)},nf.orderBy=function(t,e,n,r){return null==t?[]:(oB(e)||(e=null==e?[]:[e]),oB(n=r?i:n)||(n=null==n?[]:[n]),ir(t,e,n))},nf.over=sF,nf.overArgs=oC,nf.overEvery=sG,nf.overSome=sV,nf.partial=oj,nf.partialRight=oT,nf.partition=op,nf.pick=sy,nf.pickBy=sm,nf.property=sK,nf.propertyOf=function(t){return function(e){return null==t?i:nK(t,e)}},nf.pull=rH,nf.pullAll=rZ,nf.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?is(t,e,rl(n,2)):t},nf.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?is(t,e,i,n):t},nf.pullAt=rJ,nf.range=sY,nf.rangeRight=sX,nf.rearg=oA,nf.reject=function(t,e){return(oB(t)?el:nO)(t,oE(rl(e,3)))},nf.remove=function(t,e){var n=[];if(!(t&&t.length))return n;var i=-1,r=[],o=t.length;for(e=rl(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return ia(t,r),n},nf.rest=function(t,e){if("function"!=typeof t)throw new tM(r);return iu(t,e=i===e?e:o4(e))},nf.reverse=rQ,nf.sampleSize=function(t,e,n){return e=(n?rb(t,e,n):i===e)?1:o4(e),(oB(t)?function(t,e){return rR(iO(t),nL(e,0,t.length))}:function(t,e){var n=s_(t);return rR(n,nL(e,0,n.length))})(t,e)},nf.set=function(t,e,n){return null==t?t:ic(t,e,n)},nf.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ic(t,e,n,r)},nf.shuffle=function(t){return(oB(t)?function(t){return rR(iO(t))}:function(t){return rR(s_(t))})(t)},nf.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&rb(t,e,n)?(e=0,n=r):(e=null==e?0:o4(e),n=i===n?r:o4(n)),iv(t,e,n)):[]},nf.sortBy=od,nf.sortedUniq=function(t){return t&&t.length?iw(t):[]},nf.sortedUniqBy=function(t,e){return t&&t.length?iw(t,rl(e,2)):[]},nf.split=function(t,e,n){return(n&&"number"!=typeof n&&rb(t,e,n)&&(e=n=i),n=i===n?0xffffffff:n>>>0)?(t=o9(t))&&("string"==typeof e||null!=e&&!oH(e))&&!(e=i_(e))&&e$(t)?iN(eF(t),0,n):t.split(e,n):[]},nf.spread=function(t,e){if("function"!=typeof t)throw new tM(r);return e=null==e?0:e0(o4(e),0),iu(function(n){var i=n[e],r=iN(n,0,e);return i&&ep(r,i),eo(t,this,r)})},nf.tail=function(t){var e=null==t?0:t.length;return e?iv(t,1,e):[]},nf.take=function(t,e,n){return t&&t.length?iv(t,0,(e=n||i===e?1:o4(e))<0?0:e):[]},nf.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?iv(t,(e=r-(e=n||i===e?1:o4(e)))<0?0:e,r):[]},nf.takeRightWhile=function(t,e){return t&&t.length?iS(t,rl(e,3),!1,!0):[]},nf.takeWhile=function(t,e){return t&&t.length?iS(t,rl(e,3)):[]},nf.tap=function(t,e){return e(t),t},nf.throttle=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new tM(r);return oG(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),ox(t,e,{leading:i,maxWait:e,trailing:o})},nf.thru=on,nf.toArray=o3,nf.toPairs=sw,nf.toPairsIn=sb,nf.toPath=function(t){return oB(t)?ef(t,rI):oQ(t)?[t]:iO(rB(o9(t)))},nf.toPlainObject=o7,nf.transform=function(t,e,n){var i=oB(t),r=i||oW(t)||o0(t);if(e=rl(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:oG(t)&&oD(o)?np(tU(t)):{}}return(r?ea:nF)(t,function(t,i,r){return e(n,t,i,r)}),n},nf.unary=function(t){return og(t,1)},nf.union=r0,nf.unionBy=r1,nf.unionWith=r2,nf.uniq=function(t){return t&&t.length?ix(t):[]},nf.uniqBy=function(t,e){return t&&t.length?ix(t,rl(e,2)):[]},nf.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ix(t,i,e):[]},nf.unset=function(t,e){return null==t||ik(t,e)},nf.unzip=r3,nf.unzipWith=r8,nf.update=function(t,e,n){return null==t?t:iM(t,e,iA(n))},nf.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:iM(t,e,iA(n),r)},nf.values=s_,nf.valuesIn=function(t){return null==t?[]:eL(t,sp(t))},nf.without=r4,nf.words=sN,nf.wrap=function(t,e){return oj(iA(e),t)},nf.xor=r5,nf.xorBy=r6,nf.xorWith=r7,nf.zip=r9,nf.zipObject=function(t,e){return ij(t||[],e||[],nS)},nf.zipObjectDeep=function(t,e){return ij(t||[],e||[],ic)},nf.zipWith=ot,nf.entries=sw,nf.entriesIn=sb,nf.extend=se,nf.extendWith=sn,sD(nf,nf),nf.add=sJ,nf.attempt=sP,nf.camelCase=sx,nf.capitalize=sk,nf.ceil=sQ,nf.clamp=function(t,e,n){return i===n&&(n=e,e=i),i!==n&&(n=(n=o6(n))==n?n:0),i!==e&&(e=(e=o6(e))==e?e:0),nL(o6(t),e,n)},nf.clone=function(t){return nN(t,4)},nf.cloneDeep=function(t){return nN(t,5)},nf.cloneDeepWith=function(t,e){return nN(t,5,e="function"==typeof e?e:i)},nf.cloneWith=function(t,e){return nN(t,4,e="function"==typeof e?e:i)},nf.conformsTo=function(t,e){return null==e||nP(t,e,sf(e))},nf.deburr=sM,nf.defaultTo=function(t,e){return null==t||t!=t?e:t},nf.divide=s0,nf.endsWith=function(t,e,n){t=o9(t),e=i_(e);var r=t.length,o=n=i===n?r:nL(o4(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},nf.eq=oL,nf.escape=function(t){return(t=o9(t))&&U.test(t)?t.replace(W,eI):t},nf.escapeRegExp=function(t){return(t=o9(t))&&X.test(t)?t.replace(Y,"\\$&"):t},nf.every=function(t,e,n){var r=oB(t)?eh:n$;return n&&rb(t,e,n)&&(e=i),r(t,rl(e,3))},nf.find=oo,nf.findIndex=rD,nf.findKey=function(t,e){return em(t,rl(e,3),nF)},nf.findLast=os,nf.findLastIndex=rq,nf.findLastKey=function(t,e){return em(t,rl(e,3),nG)},nf.floor=s1,nf.forEach=oa,nf.forEachRight=oh,nf.forIn=function(t,e){return null==t?t:nD(t,rl(e,3),sp)},nf.forInRight=function(t,e){return null==t?t:nq(t,rl(e,3),sp)},nf.forOwn=function(t,e){return t&&nF(t,rl(e,3))},nf.forOwnRight=function(t,e){return t&&nG(t,rl(e,3))},nf.get=sa,nf.gt=oN,nf.gte=oP,nf.has=function(t,e){return null!=t&&rg(t,e,nZ)},nf.hasIn=sh,nf.head=rG,nf.identity=s$,nf.includes=function(t,e,n,i){t=oz(t)?t:s_(t),n=n&&!i?o4(n):0;var r=t.length;return n<0&&(n=e0(r+n,0)),oJ(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&eb(t,e,n)>-1},nf.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return -1;var r=null==n?0:o4(n);return r<0&&(r=e0(i+r,0)),eb(t,e,r)},nf.inRange=function(t,e,n){var r,o,s;return e=o8(e),i===n?(n=e,e=0):n=o8(n),(r=t=o6(t))>=e1(o=e,s=n)&&r<e0(o,s)},nf.invoke=sc,nf.isArguments=oR,nf.isArray=oB,nf.isArrayBuffer=oI,nf.isArrayLike=oz,nf.isArrayLikeObject=o$,nf.isBoolean=function(t){return!0===t||!1===t||oV(t)&&nX(t)==u},nf.isBuffer=oW,nf.isDate=oO,nf.isElement=function(t){return oV(t)&&1===t.nodeType&&!oX(t)},nf.isEmpty=function(t){if(null==t)return!0;if(oz(t)&&(oB(t)||"string"==typeof t||"function"==typeof t.splice||oW(t)||o0(t)||oR(t)))return!t.length;var e=rv(t);if(e==v||e==b)return!t.size;if(rM(t))return!n5(t).length;for(var n in t)if(tA.call(t,n))return!1;return!0},nf.isEqual=function(t,e){return n2(t,e)},nf.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return i===r?n2(t,e,i,n):!!r},nf.isError=oU,nf.isFinite=function(t){return"number"==typeof t&&eZ(t)},nf.isFunction=oD,nf.isInteger=oq,nf.isLength=oF,nf.isMap=oK,nf.isMatch=function(t,e){return t===e||n3(t,e,rc(e))},nf.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,n3(t,e,rc(e),n)},nf.isNaN=function(t){return oY(t)&&t!=+t},nf.isNative=function(t){if(rk(t))throw new tm("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return n8(t)},nf.isNil=function(t){return null==t},nf.isNull=function(t){return null===t},nf.isNumber=oY,nf.isObject=oG,nf.isObjectLike=oV,nf.isPlainObject=oX,nf.isRegExp=oH,nf.isSafeInteger=function(t){return oq(t)&&t>=-0x1fffffffffffff&&t<=0x1fffffffffffff},nf.isSet=oZ,nf.isString=oJ,nf.isSymbol=oQ,nf.isTypedArray=o0,nf.isUndefined=function(t){return i===t},nf.isWeakMap=function(t){return oV(t)&&rv(t)==k},nf.isWeakSet=function(t){return oV(t)&&"[object WeakSet]"==nX(t)},nf.join=function(t,e){return null==t?"":eJ.call(t,e)},nf.kebabCase=sS,nf.last=rX,nf.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var o=r;return i!==n&&(o=(o=o4(n))<0?e0(r+o,0):e1(o,r-1)),e==e?function(t,e,n){for(var i=n+1;i--&&t[i]!==e;);return i}(t,e,o):ew(t,ex,o,!0)},nf.lowerCase=sE,nf.lowerFirst=sC,nf.lt=o1,nf.lte=o2,nf.max=function(t){return t&&t.length?nW(t,s$,nH):i},nf.maxBy=function(t,e){return t&&t.length?nW(t,rl(e,2),nH):i},nf.mean=function(t){return ek(t,s$)},nf.meanBy=function(t,e){return ek(t,rl(e,2))},nf.min=function(t){return t&&t.length?nW(t,s$,n6):i},nf.minBy=function(t,e){return t&&t.length?nW(t,rl(e,2),n6):i},nf.stubArray=sH,nf.stubFalse=sZ,nf.stubObject=function(){return{}},nf.stubString=function(){return""},nf.stubTrue=function(){return!0},nf.multiply=s2,nf.nth=function(t,e){return t&&t.length?ii(t,o4(e)):i},nf.noConflict=function(){return t3._===this&&(t3._=tB),this},nf.noop=sq,nf.now=ov,nf.pad=function(t,e,n){t=o9(t);var i=(e=o4(e))?eq(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return i1(eY(r),n)+t+i1(eS(r),n)},nf.padEnd=function(t,e,n){t=o9(t);var i=(e=o4(e))?eq(t):0;return e&&i<e?t+i1(e-i,n):t},nf.padStart=function(t,e,n){t=o9(t);var i=(e=o4(e))?eq(t):0;return e&&i<e?i1(e-i,n)+t:t},nf.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e*=1),e3(o9(t).replace(H,""),e||0)},nf.random=function(t,e,n){if(n&&"boolean"!=typeof n&&rb(t,e,n)&&(e=n=i),i===n&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),i===t&&i===e?(t=0,e=1):(t=o8(t),i===e?(e=t,t=0):e=o8(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=e8();return e1(t+o*(e-t+tQ("1e-"+((o+"").length-1))),e)}return ih(t,e)},nf.reduce=function(t,e,n){var i=oB(t)?ed:eE,r=arguments.length<3;return i(t,rl(e,4),n,r,nI)},nf.reduceRight=function(t,e,n){var i=oB(t)?ev:eE,r=arguments.length<3;return i(t,rl(e,4),n,r,nz)},nf.repeat=function(t,e,n){return e=(n?rb(t,e,n):i===e)?1:o4(e),il(o9(t),e)},nf.replace=function(){var t=arguments,e=o9(t[0]);return t.length<3?e:e.replace(t[1],t[2])},nf.result=function(t,e,n){e=iL(e,t);var r=-1,o=e.length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[rI(e[r])];i===s&&(r=o,s=n),t=oD(s)?s.call(t):s}return t},nf.round=s3,nf.runInContext=t,nf.sample=function(t){return(oB(t)?nk:function(t){return nk(s_(t))})(t)},nf.size=function(t){if(null==t)return 0;if(oz(t))return oJ(t)?eq(t):t.length;var e=rv(t);return e==v||e==b?t.size:n5(t).length},nf.snakeCase=sj,nf.some=function(t,e,n){var r=oB(t)?eg:ig;return n&&rb(t,e,n)&&(e=i),r(t,rl(e,3))},nf.sortedIndex=function(t,e){return iy(t,e)},nf.sortedIndexBy=function(t,e,n){return im(t,e,rl(n,2))},nf.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=iy(t,e);if(i<n&&oL(t[i],e))return i}return -1},nf.sortedLastIndex=function(t,e){return iy(t,e,!0)},nf.sortedLastIndexBy=function(t,e,n){return im(t,e,rl(n,2),!0)},nf.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=iy(t,e,!0)-1;if(oL(t[n],e))return n}return -1},nf.startCase=sT,nf.startsWith=function(t,e,n){return t=o9(t),n=null==n?0:nL(o4(n),0,t.length),e=i_(e),t.slice(n,n+e.length)==e},nf.subtract=s8,nf.sum=function(t){return t&&t.length?eC(t,s$):0},nf.sumBy=function(t,e){return t&&t.length?eC(t,rl(e,2)):0},nf.template=function(t,e,n){var r=nf.templateSettings;n&&rb(t,e,n)&&(e=i),t=o9(t),e=sn({},e,r,i9);var o,s,a=sn({},e.imports,r.imports,i9),h=sf(a),l=eL(a,h),u=0,c=e.interpolate||tf,f="__p += '",p=tx((e.escape||tf).source+"|"+c.source+"|"+(c===F?tr:tf).source+"|"+(e.evaluate||tf).source+"|$","g"),d="//# sourceURL="+(tA.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tX+"]")+"\n";t.replace(p,function(e,n,i,r,a,h){return i||(i=r),f+=t.slice(u,h).replace(tp,ez),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),i&&(f+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=h+e.length,e}),f+="';\n";var v=tA.call(e,"variable")&&e.variable;if(v){if(tn.test(v))throw new tm("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(B,""):f).replace(I,"$1").replace(z,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=sP(function(){return tw(h,d+"return "+f).apply(i,l)});if(g.source=f,oU(g))throw g;return g},nf.times=function(t,e){if((t=o4(t))<1||t>0x1fffffffffffff)return[];var n=0xffffffff,i=e1(t,0xffffffff);e=rl(e),t-=0xffffffff;for(var r=ej(i,e);++n<t;)e(n);return r},nf.toFinite=o8,nf.toInteger=o4,nf.toLength=o5,nf.toLower=function(t){return o9(t).toLowerCase()},nf.toNumber=o6,nf.toSafeInteger=function(t){return t?nL(o4(t),-0x1fffffffffffff,0x1fffffffffffff):0===t?t:0},nf.toString=o9,nf.toUpper=function(t){return o9(t).toUpperCase()},nf.trim=function(t,e,n){if((t=o9(t))&&(n||i===e))return eT(t);if(!t||!(e=i_(e)))return t;var r=eF(t),o=eF(e),s=eP(r,o),a=eR(r,o)+1;return iN(r,s,a).join("")},nf.trimEnd=function(t,e,n){if((t=o9(t))&&(n||i===e))return t.slice(0,eG(t)+1);if(!t||!(e=i_(e)))return t;var r=eF(t),o=eR(r,eF(e))+1;return iN(r,0,o).join("")},nf.trimStart=function(t,e,n){if((t=o9(t))&&(n||i===e))return t.replace(H,"");if(!t||!(e=i_(e)))return t;var r=eF(t),o=eP(r,eF(e));return iN(r,o).join("")},nf.truncate=function(t,e){var n=30,r="...";if(oG(e)){var o="separator"in e?e.separator:o;n="length"in e?o4(e.length):n,r="omission"in e?i_(e.omission):r}var s=(t=o9(t)).length;if(e$(t)){var a=eF(t);s=a.length}if(n>=s)return t;var h=n-eq(r);if(h<1)return r;var l=a?iN(a,0,h).join(""):t.slice(0,h);if(i===o)return l+r;if(a&&(h+=l.length-h),oH(o)){if(t.slice(h).search(o)){var u,c=l;for(o.global||(o=tx(o.source,o9(to.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var f=u.index;l=l.slice(0,i===f?h:f)}}else if(t.indexOf(i_(o),h)!=h){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},nf.unescape=function(t){return(t=o9(t))&&O.test(t)?t.replace($,eV):t},nf.uniqueId=function(t){var e=++tL;return o9(t)+e},nf.upperCase=sA,nf.upperFirst=sL,nf.each=oa,nf.eachRight=oh,nf.first=rG,sD(nf,(tv={},nF(nf,function(t,e){tA.call(nf.prototype,e)||(tv[e]=t)}),tv),{chain:!1}),nf.VERSION="4.17.21",ea(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){nf[t].placeholder=nf}),ea(["drop","take"],function(t,e){ng.prototype[t]=function(n){n=i===n?1:e0(o4(n),0);var r=this.__filtered__&&!e?new ng(this):this.clone();return r.__filtered__?r.__takeCount__=e1(n,r.__takeCount__):r.__views__.push({size:e1(n,0xffffffff),type:t+(r.__dir__<0?"Right":"")}),r},ng.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ea(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;ng.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:rl(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),ea(["head","last"],function(t,e){var n="take"+(e?"Right":"");ng.prototype[t]=function(){return this[n](1).value()[0]}}),ea(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");ng.prototype[t]=function(){return this.__filtered__?new ng(this):this[n](1)}}),ng.prototype.compact=function(){return this.filter(s$)},ng.prototype.find=function(t){return this.filter(t).head()},ng.prototype.findLast=function(t){return this.reverse().find(t)},ng.prototype.invokeMap=iu(function(t,e){return"function"==typeof t?new ng(this):this.map(function(n){return n0(n,t,e)})}),ng.prototype.reject=function(t){return this.filter(oE(rl(t)))},ng.prototype.slice=function(t,e){t=o4(t);var n=this;return n.__filtered__&&(t>0||e<0)?new ng(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),i!==e&&(n=(e=o4(e))<0?n.dropRight(-e):n.take(e-t)),n)},ng.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ng.prototype.toArray=function(){return this.take(0xffffffff)},nF(ng.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=nf[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(nf.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,h=e instanceof ng,l=a[0],u=h||oB(e),c=function(t){var e=o.apply(nf,ep([t],a));return r&&f?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(h=u=!1);var f=this.__chain__,p=!!this.__actions__.length,d=s&&!f,v=h&&!p;if(!s&&u){e=v?e:new ng(this);var g=t.apply(e,a);return g.__actions__.push({func:on,args:[c],thisArg:i}),new nv(g,f)}return d&&v?t.apply(this,a):(g=this.thru(c),d?r?g.value()[0]:g.value():g)})}),ea(["pop","push","shift","sort","splice","unshift"],function(t){var e=tS[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);nf.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(oB(r)?r:[],t)}return this[n](function(n){return e.apply(oB(n)?n:[],t)})}}),nF(ng.prototype,function(t,e){var n=nf[e];if(n){var i=n.name+"";tA.call(ni,i)||(ni[i]=[]),ni[i].push({name:e,func:n})}}),ni[iZ(i,2).name]=[{name:"wrapper",func:i}],ng.prototype.clone=function(){var t=new ng(this.__wrapped__);return t.__actions__=iO(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=iO(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=iO(this.__views__),t},ng.prototype.reverse=function(){if(this.__filtered__){var t=new ng(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},ng.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=oB(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=e1(e,t+s);break;case"takeRight":t=e0(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,h=a-s,l=i?a:s-1,u=this.__iteratees__,c=u.length,f=0,p=e1(h,this.__takeCount__);if(!n||!i&&r==h&&p==h)return iE(t,this.__actions__);var d=[];t:for(;h--&&f<p;){for(var v=-1,g=t[l+=e];++v<c;){var y=u[v],m=y.iteratee,w=y.type,b=m(g);if(2==w)g=b;else if(!b)if(1==w)continue t;else break t}d[f++]=g}return d},nf.prototype.at=oi,nf.prototype.chain=function(){return oe(this)},nf.prototype.commit=function(){return new nv(this.value(),this.__chain__)},nf.prototype.next=function(){this.__values__===i&&(this.__values__=o3(this.value()));var t=this.__index__>=this.__values__.length,e=t?i:this.__values__[this.__index__++];return{done:t,value:e}},nf.prototype.plant=function(t){for(var e,n=this;n instanceof nd;){var r=r$(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},nf.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof ng){var e=t;return this.__actions__.length&&(e=new ng(this)),(e=e.reverse()).__actions__.push({func:on,args:[rQ],thisArg:i}),new nv(e,this.__chain__)}return this.thru(rQ)},nf.prototype.toJSON=nf.prototype.valueOf=nf.prototype.value=function(){return iE(this.__wrapped__,this.__actions__)},nf.prototype.first=nf.prototype.head,t2&&(nf.prototype[t2]=function(){return this}),nf}();if("function"==typeof define&&"object"==typeof define.amd&&define.amd)t3._=eK,t.r,i!==eK&&t.v(eK);else t4?((t4.exports=eK)._=eK,t8._=eK):t3._=eK}).call(t.e)},31926,(t,e,n)=>{var i=t.r(39088);e.exports=function(){return i.Date.now()}},73759,(t,e,n)=>{var i=t.r(30364),r=t.r(12447),o=t.r(61884),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,h=/^0o[0-7]+$/i,l=parseInt;e.exports=function(t){if("number"==typeof t)return t;if(o(t))return 0/0;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=a.test(t);return n||h.test(t)?l(t.slice(2),n?2:8):s.test(t)?0/0:+t}},73134,(t,e,n)=>{var i=t.r(38750),r=t.r(30671),o=t.r(63037),s=t.r(10891);function a(t,e,n,o,s){var a=[].slice.call(arguments,1),h=a.length,l="function"==typeof a[h-1];if(!l&&!i())throw Error("Callback required as last argument");if(l){if(h<2)throw Error("Too few arguments provided");2===h?(s=n,n=e,e=o=void 0):3===h&&(e.getContext&&void 0===s?(s=o,o=void 0):(s=o,o=n,n=e,e=void 0))}else{if(h<1)throw Error("Too few arguments provided");return 1===h?(n=e,e=o=void 0):2!==h||e.getContext||(o=n,n=e,e=void 0),new Promise(function(i,s){try{var a=r.create(n,o);i(t(a,e,o))}catch(t){s(t)}})}try{var u=r.create(n,o);s(null,t(u,e,o))}catch(t){s(t)}}n.create=r.create,n.toCanvas=a.bind(null,o.render),n.toDataURL=a.bind(null,o.renderToDataURL),n.toString=a.bind(null,function(t,e,n){return s.render(t,n)})},38750,(t,e,n)=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},20637,(t,e,n)=>{var i=t.r(87201).getSymbolSize;n.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7],s=1;s<e-1;s++)o[s]=o[s-1]-r;return o.push(6),o.reverse()},n.getPositions=function(t){for(var e=[],i=n.getRowColCoords(t),r=i.length,o=0;o<r;o++)for(var s=0;s<r;s++)(0!==o||0!==s)&&(0!==o||s!==r-1)&&(o!==r-1||0!==s)&&e.push([i[o],i[s]]);return e}},12553,(t,e,n)=>{var i=t.r(50882),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=i.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},e.exports=o},73666,(t,e,n)=>{function i(){this.buffer=[],this.length=0}i.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(var n=0;n<e;n++)this.putBit((t>>>e-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},e.exports=i},11421,(t,e,n)=>{var i=t.r(93770);function r(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=i.alloc(t*t),this.reservedBit=i.alloc(t*t)}r.prototype.set=function(t,e,n,i){var r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},e.exports=r},82257,(t,e,n)=>{var i=t.r(93770),r=t.r(50882);function o(t){this.mode=r.BYTE,this.data=i.from(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},e.exports=o},48125,(t,e,n)=>{var i=t.r(73133),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(t,e){switch(e){case i.L:return r[(t-1)*4+0];case i.M:return r[(t-1)*4+1];case i.Q:return r[(t-1)*4+2];case i.H:return r[(t-1)*4+3];default:return}},n.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return o[(t-1)*4+0];case i.M:return o[(t-1)*4+1];case i.Q:return o[(t-1)*4+2];case i.H:return o[(t-1)*4+3];default:return}}},73133,(t,e,n)=>{n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},n.from=function(t,e){if(n.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw Error("Unknown EC Level: "+t)}}catch(t){return e}}},14002,(t,e,n)=>{var i=t.r(87201).getSymbolSize;n.getPositions=function(t){var e=i(t);return[[0,0],[e-7,0],[0,e-7]]}},57655,(t,e,n)=>{var i=t.r(87201),r=i.getBCHDigit(1335);n.getEncodedBits=function(t,e){for(var n=t.bit<<3|e,o=n<<10;i.getBCHDigit(o)-r>=0;)o^=1335<<i.getBCHDigit(o)-r;return(n<<10|o)^21522}},54232,(t,e,n)=>{for(var i=t.r(93770),r=i.alloc(512),o=i.alloc(256),s=1,a=0;a<255;a++)r[a]=s,o[s]=a,256&(s<<=1)&&(s^=285);for(a=255;a<512;a++)r[a]=r[a-255];n.log=function(t){if(t<1)throw Error("log("+t+")");return o[t]},n.exp=function(t){return r[t]},n.mul=function(t,e){return 0===t||0===e?0:r[o[t]+o[e]]}},22644,(t,e,n)=>{var i=t.r(50882),r=t.r(87201);function o(t){this.mode=i.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),t.put(n,13)}},e.exports=o},37692,(t,e,n)=>{n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};n.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},n.from=function(t){return n.isValid(t)?parseInt(t,10):void 0},n.getPenaltyN1=function(t){for(var e=t.size,n=0,i=0,r=0,o=null,s=null,a=0;a<e;a++){i=r=0,o=s=null;for(var h=0;h<e;h++){var l=t.get(a,h);l===o?i++:(i>=5&&(n+=3+(i-5)),o=l,i=1),(l=t.get(h,a))===s?r++:(r>=5&&(n+=3+(r-5)),s=l,r=1)}i>=5&&(n+=3+(i-5)),r>=5&&(n+=3+(r-5))}return n},n.getPenaltyN2=function(t){for(var e=t.size,n=0,i=0;i<e-1;i++)for(var r=0;r<e-1;r++){var o=t.get(i,r)+t.get(i,r+1)+t.get(i+1,r)+t.get(i+1,r+1);(4===o||0===o)&&n++}return 3*n},n.getPenaltyN3=function(t){for(var e=t.size,n=0,i=0,r=0,o=0;o<e;o++){i=r=0;for(var s=0;s<e;s++)i=i<<1&2047|t.get(o,s),s>=10&&(1488===i||93===i)&&n++,r=r<<1&2047|t.get(s,o),s>=10&&(1488===r||93===r)&&n++}return 40*n},n.getPenaltyN4=function(t){for(var e=0,n=t.data.length,i=0;i<n;i++)e+=t.data[i];return 10*Math.abs(Math.ceil(100*e/n/5)-10)},n.applyMask=function(t,e){for(var i=e.size,r=0;r<i;r++)for(var o=0;o<i;o++)e.isReserved(o,r)||e.xor(o,r,function(t,e,i){switch(t){case n.Patterns.PATTERN000:return(e+i)%2==0;case n.Patterns.PATTERN001:return e%2==0;case n.Patterns.PATTERN010:return i%3==0;case n.Patterns.PATTERN011:return(e+i)%3==0;case n.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case n.Patterns.PATTERN101:return e*i%2+e*i%3==0;case n.Patterns.PATTERN110:return(e*i%2+e*i%3)%2==0;case n.Patterns.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw Error("bad maskPattern:"+t)}}(t,o,r))},n.getBestMask=function(t,e){for(var i=Object.keys(n.Patterns).length,r=0,o=1/0,s=0;s<i;s++){e(s),n.applyMask(s,t);var a=n.getPenaltyN1(t)+n.getPenaltyN2(t)+n.getPenaltyN3(t)+n.getPenaltyN4(t);n.applyMask(s,t),a<o&&(o=a,r=s)}return r}},50882,(t,e,n)=>{var i=t.r(67483),r=t.r(96592);n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!i.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return r.testNumeric(t)?n.NUMERIC:r.testAlphanumeric(t)?n.ALPHANUMERIC:r.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits},n.from=function(t,e){if(n.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw Error("Unknown mode: "+t)}}catch(t){return e}}},94097,(t,e,n)=>{var i=t.r(50882);function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){for(e=0;e+3<=this.data.length;e+=3)n=parseInt(this.data.substr(e,3),10),t.put(n,10);var e,n,i=this.data.length-e;i>0&&(n=parseInt(this.data.substr(e),10),t.put(n,3*i+1))},e.exports=r},50677,(t,e,n)=>{var i=t.r(93770),r=t.r(54232);n.mul=function(t,e){for(var n=i.alloc(t.length+e.length-1),o=0;o<t.length;o++)for(var s=0;s<e.length;s++)n[o+s]^=r.mul(t[o],e[s]);return n},n.mod=function(t,e){for(var n=i.from(t);n.length-e.length>=0;){for(var o=n[0],s=0;s<e.length;s++)n[s]^=r.mul(e[s],o);for(var a=0;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},n.generateECPolynomial=function(t){for(var e=i.from([1]),o=0;o<t;o++)e=n.mul(e,[1,r.exp(o)]);return e}},30671,(t,e,n)=>{var i=t.r(93770),r=t.r(87201),o=t.r(73133),s=t.r(73666),a=t.r(11421),h=t.r(20637),l=t.r(14002),u=t.r(37692),c=t.r(48125),f=t.r(62458),p=t.r(93547),d=t.r(57655),v=t.r(50882),g=t.r(97930),y=t.r(49947);function m(t,e,n){var i,r,o=t.size,s=d.getEncodedBits(e,n);for(i=0;i<15;i++)r=(s>>i&1)==1,i<6?t.set(i,8,r,!0):i<8?t.set(i+1,8,r,!0):t.set(o-15+i,8,r,!0),i<8?t.set(8,o-i-1,r,!0):i<9?t.set(8,15-i-1+1,r,!0):t.set(8,15-i-1,r,!0);t.set(o-8,8,1,!0)}n.create=function(t,e){if(void 0===t||""===t)throw Error("No input text");var n,d,w=o.M;return void 0!==e&&(w=o.from(e.errorCorrectionLevel,o.M),n=p.from(e.version),d=u.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,o){if(y(t))d=g.fromArray(t);else if("string"==typeof t){var d,w=e;if(!w){var b=g.rawSplit(t);w=p.getBestVersionForData(b,n)}d=g.fromString(t,w||40)}else throw Error("Invalid data");var _=p.getBestVersionForData(d,n);if(!_)throw Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<_)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+_+".\n")}else e=_;var x=function(t,e,n){var o=new s;n.forEach(function(e){o.put(e.mode.bit,4),o.put(e.getLength(),v.getCharCountIndicator(e.mode,t)),e.write(o)});var a=(r.getSymbolTotalCodewords(t)-c.getTotalCodewordsCount(t,e))*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var h=(a-o.getLengthInBits())/8,l=0;l<h;l++)o.put(l%2?17:236,8);return function(t,e,n){for(var o,s,a=r.getSymbolTotalCodewords(e),h=a-c.getTotalCodewordsCount(e,n),l=c.getBlocksCount(e,n),u=a%l,p=l-u,d=Math.floor(a/l),v=Math.floor(h/l),g=v+1,y=d-v,m=new f(y),w=0,b=Array(l),_=Array(l),x=0,k=i.from(t.buffer),M=0;M<l;M++){var S=M<p?v:g;b[M]=k.slice(w,w+S),_[M]=m.encode(b[M]),w+=S,x=Math.max(x,S)}var E=i.alloc(a),C=0;for(o=0;o<x;o++)for(s=0;s<l;s++)o<b[s].length&&(E[C++]=b[s][o]);for(o=0;o<y;o++)for(s=0;s<l;s++)E[C++]=_[s][o];return E}(o,t,e)}(e,n,d),k=new a(r.getSymbolSize(e));!function(t,e){for(var n=t.size,i=l.getPositions(e),r=0;r<i.length;r++)for(var o=i[r][0],s=i[r][1],a=-1;a<=7;a++)if(!(o+a<=-1)&&!(n<=o+a))for(var h=-1;h<=7;h++)s+h<=-1||n<=s+h||(a>=0&&a<=6&&(0===h||6===h)||h>=0&&h<=6&&(0===a||6===a)||a>=2&&a<=4&&h>=2&&h<=4?t.set(o+a,s+h,!0,!0):t.set(o+a,s+h,!1,!0))}(k,e);for(var M=k.size,S=8;S<M-8;S++){var E=S%2==0;k.set(S,6,E,!0),k.set(6,S,E,!0)}return!function(t,e){for(var n=h.getPositions(e),i=0;i<n.length;i++)for(var r=n[i][0],o=n[i][1],s=-2;s<=2;s++)for(var a=-2;a<=2;a++)-2===s||2===s||-2===a||2===a||0===s&&0===a?t.set(r+s,o+a,!0,!0):t.set(r+s,o+a,!1,!0)}(k,e),m(k,n,0),e>=7&&function(t,e){for(var n,i,r,o=t.size,s=p.getEncodedBits(e),a=0;a<18;a++)n=Math.floor(a/3),i=a%3+o-8-3,r=(s>>a&1)==1,t.set(n,i,r,!0),t.set(i,n,r,!0)}(k,e),!function(t,e){for(var n=t.size,i=-1,r=n-1,o=7,s=0,a=n-1;a>0;a-=2)for(6===a&&a--;;){for(var h=0;h<2;h++)if(!t.isReserved(r,a-h)){var l=!1;s<e.length&&(l=(e[s]>>>o&1)==1),t.set(r,a-h,l),-1==--o&&(s++,o=7)}if((r+=i)<0||n<=r){r-=i,i=-i;break}}}(k,x),isNaN(o)&&(o=u.getBestMask(k,m.bind(null,k,n))),u.applyMask(o,k),m(k,n,o),{modules:k,version:e,errorCorrectionLevel:n,maskPattern:o,segments:d}}(t,n,w,d)}},62458,(t,e,n)=>{var i=t.r(93770),r=t.r(50677),o=t.r(43943).Buffer;function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");var e=i.alloc(this.degree),n=o.concat([t,e],t.length+this.degree),s=r.mod(n,this.genPoly),a=this.degree-s.length;if(a>0){var h=i.alloc(this.degree);return s.copy(h,a),h}return s},e.exports=s},96592,(t,e,n)=>{var i="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=RegExp(r,"g"),n.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=RegExp(o,"g"),n.NUMERIC=RegExp(i,"g"),n.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");var s=RegExp("^"+r+"$"),a=RegExp("^"+i+"$"),h=RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(t){return s.test(t)},n.testNumeric=function(t){return a.test(t)},n.testAlphanumeric=function(t){return h.test(t)}},97930,(t,e,n)=>{var i=t.r(50882),r=t.r(94097),o=t.r(12553),s=t.r(82257),a=t.r(22644),h=t.r(96592),l=t.r(87201),u=t.r(45953);function c(t){return unescape(encodeURIComponent(t)).length}function f(t,e,n){for(var i,r=[];null!==(i=t.exec(n));)r.push({data:i[0],index:i.index,mode:e,length:i[0].length});return r}function p(t){var e,n,r=f(h.NUMERIC,i.NUMERIC,t),o=f(h.ALPHANUMERIC,i.ALPHANUMERIC,t);return l.isKanjiModeEnabled()?(e=f(h.BYTE,i.BYTE,t),n=f(h.KANJI,i.KANJI,t)):(e=f(h.BYTE_KANJI,i.BYTE,t),n=[]),r.concat(o,e,n).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function d(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return a.getBitsLength(t);case i.BYTE:return s.getBitsLength(t)}}function v(t,e){var n,h=i.getBestModeForData(t);if((n=i.from(e,h))!==i.BYTE&&n.bit<h.bit)throw Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(h));switch(n===i.KANJI&&!l.isKanjiModeEnabled()&&(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new a(t);case i.BYTE:return new s(t)}}n.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(v(e,null)):e.data&&t.push(v(e.data,e.mode)),t},[])},n.fromString=function(t,e){for(var r=function(t,e){for(var n={},r={start:{}},o=["start"],s=0;s<t.length;s++){for(var a=t[s],h=[],l=0;l<a.length;l++){var u=a[l],c=""+s+l;h.push(c),n[c]={node:u,lastCount:0},r[c]={};for(var f=0;f<o.length;f++){var p=o[f];n[p]&&n[p].node.mode===u.mode?(r[p][c]=d(n[p].lastCount+u.length,u.mode)-d(n[p].lastCount,u.mode),n[p].lastCount+=u.length):(n[p]&&(n[p].lastCount=u.length),r[p][c]=d(u.length,u.mode)+4+i.getCharCountIndicator(u.mode,e))}}o=h}for(f=0;f<o.length;f++)r[o[f]].end=0;return{map:r,table:n}}(function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:c(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:c(r.data)}])}}return e}(p(t,l.isKanjiModeEnabled())),e),o=u.find_path(r.map,"start","end"),s=[],a=1;a<o.length-1;a++)s.push(r.table[o[a]].node);return n.fromArray(s.reduce(function(t,e){var n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?t[t.length-1].data+=e.data:t.push(e),t},[]))},n.rawSplit=function(t){return n.fromArray(p(t,l.isKanjiModeEnabled()))}},87201,(t,e,n)=>{var i,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},n.getSymbolTotalCodewords=function(t){return r[t]},n.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},n.setToSJISFunction=function(t){if("function"!=typeof t)throw Error('"toSJISFunc" is not a valid function.');i=t},n.isKanjiModeEnabled=function(){return void 0!==i},n.toSJIS=function(t){return i(t)}},67483,(t,e,n)=>{n.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},93547,(t,e,n)=>{var i=t.r(87201),r=t.r(48125),o=t.r(73133),s=t.r(50882),a=t.r(67483),h=t.r(49947),l=i.getBCHDigit(7973);function u(t,e){return s.getCharCountIndicator(t,e)+4}n.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},n.getCapacity=function(t,e,n){if(!a.isValid(t))throw Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);var o=(i.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e))*8;if(n===s.MIXED)return o;var h=o-u(n,t);switch(n){case s.NUMERIC:return Math.floor(h/10*3);case s.ALPHANUMERIC:return Math.floor(h/11*2);case s.KANJI:return Math.floor(h/13);case s.BYTE:default:return Math.floor(h/8)}},n.getBestVersionForData=function(t,e){var i,r=o.from(e,o.M);if(h(t)){if(t.length>1){for(var a=1;a<=40;a++)if(function(t,e){var n=0;return t.forEach(function(t){var i=u(t.mode,e);n+=i+t.getBitsLength()}),n}(t,a)<=n.getCapacity(a,r,s.MIXED))return a;return}if(0===t.length)return 1;i=t[0]}else i=t;return function(t,e,i){for(var r=1;r<=40;r++)if(e<=n.getCapacity(r,i,t))return r}(i.mode,i.getLength(),r)},n.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw Error("Invalid QR Code version");for(var e=t<<12;i.getBCHDigit(e)-l>=0;)e^=7973<<i.getBCHDigit(e)-l;return t<<12|e}},63037,(t,e,n)=>{var i=t.r(25950);n.render=function(t,e,n){var r,o=n,s=e;void 0!==o||e&&e.getContext||(o=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw Error("You need to specify a canvas element")}}()),o=i.getOptions(o);var a=i.getImageWidth(t.modules.size,o),h=s.getContext("2d"),l=h.createImageData(a,a);return i.qrToImageData(l.data,t,o),r=s,h.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=a,r.width=a,r.style.height=a+"px",r.style.width=a+"px",h.putImageData(l,0,0),s},n.renderToDataURL=function(t,e,i){var r=i;void 0!==r||e&&e.getContext||(r=e,e=void 0),r||(r={});var o=n.render(t,e,r),s=r.type||"image/png",a=r.rendererOpts||{};return o.toDataURL(s,a.quality)}},10891,(t,e,n)=>{var i=t.r(25950);function r(t,e){var n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){var i=t+e;return void 0!==n&&(i+=" "+n),i}n.render=function(t,e,n){var s=i.getOptions(e),a=t.modules.size,h=t.modules.data,l=a+2*s.margin,u=s.color.light.a?"<path "+r(s.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",c="<path "+r(s.color.dark,"stroke")+' d="'+function(t,e,n){for(var i="",r=0,s=!1,a=0,h=0;h<t.length;h++){var l=Math.floor(h%e),u=Math.floor(h/e);l||s||(s=!0),t[h]?(a++,h>0&&l>0&&t[h-1]||(i+=s?o("M",l+n,.5+u+n):o("m",r,0),r=0,s=!1),l+1<e&&t[h+1]||(i+=o("h",a),a=0)):r++}return i}(h,a,s.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+('viewBox="0 0 '+l+" ")+l+'" shape-rendering="crispEdges">'+u+c+"</svg>\n";return"function"==typeof n&&n(null,f),f}},25950,(t,e,n)=>{function i(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:n,scale:n?4:r,margin:e,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},n.getImageWidth=function(t,e){var i=n.getScale(t,e);return Math.floor((t+2*e.margin)*i)},n.qrToImageData=function(t,e,i){for(var r=e.modules.size,o=e.modules.data,s=n.getScale(r,i),a=Math.floor((r+2*i.margin)*s),h=i.margin*s,l=[i.color.light,i.color.dark],u=0;u<a;u++)for(var c=0;c<a;c++){var f=(u*a+c)*4,p=i.color.light;u>=h&&c>=h&&u<a-h&&c<a-h&&(p=l[+!!o[Math.floor((u-h)/s)*r+Math.floor((c-h)/s)]]),t[f++]=p.r,t[f++]=p.g,t[f++]=p.b,t[f]=p.a}}},97423,t=>{t.v({badge:"SfX6mq_badge",caption:"SfX6mq_caption",card:"SfX6mq_card",content:"SfX6mq_content",label:"SfX6mq_label",list:"SfX6mq_list",listCard:"SfX6mq_listCard",listItem:"SfX6mq_listItem",slide:"SfX6mq_slide",slider:"SfX6mq_slider",sliderWrapper:"SfX6mq_sliderWrapper",title:"SfX6mq_title",wrapper:"SfX6mq_wrapper"})},3984,t=>{t.v({actions:"tGP2Yq_actions",ageAlert:"tGP2Yq_ageAlert",ageAlertWrapper:"tGP2Yq_ageAlertWrapper",bgImage:"tGP2Yq_bgImage",button:"tGP2Yq_button",buttons:"tGP2Yq_buttons",link:"tGP2Yq_link",qr:"tGP2Yq_qr",title:"tGP2Yq_title",wrapper:"tGP2Yq_wrapper"})},12278,t=>{t.v({fadeIn:"_1irkna_fadeIn",image:"_1irkna_image",qrCell:"_1irkna_qrCell",qrGrid:"_1irkna_qrGrid",qrPulse:"_1irkna_qrPulse"})},51712,t=>{t.v({amountFields:"aWCXja_amountFields",button:"aWCXja_button",calculatorWrapper:"aWCXja_calculatorWrapper",controlsBody:"aWCXja_controlsBody",controlsCard:"aWCXja_controlsCard",controlsTitleDesktop:"aWCXja_controlsTitleDesktop",controlsTitleMobile:"aWCXja_controlsTitleMobile",desktopButtonWrapper:"aWCXja_desktopButtonWrapper",disclaimer:"aWCXja_disclaimer",fields:"aWCXja_fields",formField:"aWCXja_formField",input:"aWCXja_input",metricDots:"aWCXja_metricDots",metricItem:"aWCXja_metricItem",metricKey:"aWCXja_metricKey",metricValue:"aWCXja_metricValue",metrics:"aWCXja_metrics",mobileSummary:"aWCXja_mobileSummary",slider:"aWCXja_slider",summary:"aWCXja_summary",summaryCard:"aWCXja_summaryCard",summaryTitle:"aWCXja_summaryTitle",termBlock:"aWCXja_termBlock",termHeader:"aWCXja_termHeader",termLabel:"aWCXja_termLabel",termValue:"aWCXja_termValue",total:"aWCXja_total",totalWrapper:"aWCXja_totalWrapper"})},60902,t=>{t.v({answer:"y4ZNxa_answer",answerInner:"y4ZNxa_answerInner",answerOpen:"y4ZNxa_answerOpen",answerText:"y4ZNxa_answerText",button:"y4ZNxa_button",icon:"y4ZNxa_icon",iconOpen:"y4ZNxa_iconOpen",item:"y4ZNxa_item",list:"y4ZNxa_list",question:"y4ZNxa_question",readAll:"y4ZNxa_readAll",section:"y4ZNxa_section",title:"y4ZNxa_title",wrapper:"y4ZNxa_wrapper"})},99082,t=>{t.v({asvIcon:"B7rkOq_asvIcon",card:"B7rkOq_card",cardItem:"B7rkOq_cardItem",cardList:"B7rkOq_cardList",cardTitle:"B7rkOq_cardTitle",desktopText:"B7rkOq_desktopText",iconWrapper:"B7rkOq_iconWrapper",mobileText:"B7rkOq_mobileText",moexIcon:"B7rkOq_moexIcon",partnerLogo:"B7rkOq_partnerLogo",partnerLogos:"B7rkOq_partnerLogos",registryIcon:"B7rkOq_registryIcon",section:"B7rkOq_section",title:"B7rkOq_title"})},46143,t=>{t.v({button:"_7mRbOq_button",visible:"_7mRbOq_visible",wrapper:"_7mRbOq_wrapper"})},40187,t=>{t.v({closeButton:"mM0Kfq_closeButton",content:"mM0Kfq_content",description:"mM0Kfq_description",documentIcon:"mM0Kfq_documentIcon",documentLink:"mM0Kfq_documentLink",documents:"mM0Kfq_documents",modal:"mM0Kfq_modal",section:"mM0Kfq_section",subtitle:"mM0Kfq_subtitle",table:"mM0Kfq_table",tableWrapper:"mM0Kfq_tableWrapper",title:"mM0Kfq_title",totalRow:"mM0Kfq_totalRow"})},98529,t=>{t.v({badge:"xaskdW_badge",badges:"xaskdW_badges",button:"xaskdW_button",content:"xaskdW_content",ctaAnchor:"xaskdW_ctaAnchor",heroImage:"xaskdW_heroImage",picture:"xaskdW_picture",section:"xaskdW_section",title:"xaskdW_title",topContent:"xaskdW_topContent",wrapper:"xaskdW_wrapper"})},60849,t=>{t.v({benefitCard:"KvY1rq_benefitCard",benefitList:"KvY1rq_benefitList",cardSubtitle:"KvY1rq_cardSubtitle",cardTitle:"KvY1rq_cardTitle",companyCard:"KvY1rq_companyCard",companyContent:"KvY1rq_companyContent",companyDescription:"KvY1rq_companyDescription",companyHeader:"KvY1rq_companyHeader",companyInfo:"KvY1rq_companyInfo",companyLink:"KvY1rq_companyLink",companyText:"KvY1rq_companyText",companyTitle:"KvY1rq_companyTitle",content:"KvY1rq_content",description:"KvY1rq_description",image:"KvY1rq_image",imageWrapper:"KvY1rq_imageWrapper",logo:"KvY1rq_logo",section:"KvY1rq_section",tag:"KvY1rq_tag",tagList:"KvY1rq_tagList",title:"KvY1rq_title"})},20788,t=>{t.v({button:"v3aKtW_button",cardSubtitle:"v3aKtW_cardSubtitle",cardTitle:"v3aKtW_cardTitle",ctaCard:"v3aKtW_ctaCard",ctaContent:"v3aKtW_ctaContent",ctaImage:"v3aKtW_ctaImage",ctaTitle:"v3aKtW_ctaTitle",desktopButton:"v3aKtW_desktopButton",desktopContent:"v3aKtW_desktopContent",iconWrapper:"v3aKtW_iconWrapper",mobileButton:"v3aKtW_mobileButton",mobileContent:"v3aKtW_mobileContent",mobileCtaWrapper:"v3aKtW_mobileCtaWrapper",note:"v3aKtW_note",noteIcon:"v3aKtW_noteIcon",noteText:"v3aKtW_noteText",section:"v3aKtW_section",slide:"v3aKtW_slide",slider:"v3aKtW_slider",sliderWrapper:"v3aKtW_sliderWrapper",stepCard:"v3aKtW_stepCard",stepContent:"v3aKtW_stepContent",stepItem:"v3aKtW_stepItem",stepList:"v3aKtW_stepList",textContent:"v3aKtW_textContent",title:"v3aKtW_title"})},61973,t=>{t.v({calculatorLayout:"_4nbUyW_calculatorLayout",calculatorTitle:"_4nbUyW_calculatorTitle",calculatorWrapper:"_4nbUyW_calculatorWrapper",faq:"_4nbUyW_faq","how-it-works":"_4nbUyW_how-it-works","how-to-open":"_4nbUyW_how-to-open",wrapper:"_4nbUyW_wrapper"})},64419,t=>{t.v({link:"_1K6sIW_link",text:"_1K6sIW_text"})},25691,t=>{t.v({arrow:"_0KR1bW_arrow",arrowIcon:"_0KR1bW_arrowIcon",card:"_0KR1bW_card",cardContent:"_0KR1bW_cardContent",cardItem:"_0KR1bW_cardItem",cardList:"_0KR1bW_cardList",cardSubtitle:"_0KR1bW_cardSubtitle",cardTitle:"_0KR1bW_cardTitle",desktopContent:"_0KR1bW_desktopContent",image:"_0KR1bW_image",imageWrapper:"_0KR1bW_imageWrapper",mobileContent:"_0KR1bW_mobileContent",section:"_0KR1bW_section",slide:"_0KR1bW_slide",slider:"_0KR1bW_slider",sliderWrapper:"_0KR1bW_sliderWrapper",title:"_0KR1bW_title"})}]);