(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[251],{49090:function(t,i,e){"use strict";var r,n,o;function s(t){let i=t;return"string"==typeof i&&(i=i.replace(",",".")),i=(Number(i)||0).toString().replace(".",","),`${i}%`}function h(t,i,e=!1){if(!Array.isArray(i))throw Error("Plurals must be type of Array<String>");let[r,n,o]=i,s=Math.abs(+t);return(s%=100)>=5&&s<=20?e?o:`${t} ${o}`:1==(s%=10)?e?r:`${t} ${r}`:s>=2&&s<=4?e?n:`${t} ${n}`:e?o:`${t} ${o}`}e.d(i,{_6:function(){return h},og:function(){return s}}),e(96434).Buffer,Object.freeze({643:"RUB",840:"USD",978:"EUR",36:"AUD",944:"AZN",826:"GBP",51:"AMD",933:"BYN",975:"BGN",986:"BRL",348:"HUF",704:"VND",344:"HKD",981:"GEL",208:"DKK",784:"AED",818:"EGP",356:"INR",360:"IDR",398:"KZT",124:"CAD",634:"QAR",417:"KGS",156:"CNY",498:"MDL",554:"NZD",578:"NOK",985:"PLN",946:"RON",960:"XDR",702:"SGD",972:"TJS",764:"THB",949:"TRY",934:"TMT",860:"UZS",980:"UAH",203:"CZK",752:"SEK",756:"CHF",941:"RSD",710:"ZAR",410:"KRW",392:"JPY"}),Object.freeze({RUB:"₽",USD:"$",EUR:"€",AUD:"AU$",AZN:"₼",GBP:"\xa3",AMD:"֏",BYN:"Br",BGN:"лв",BRL:"R$",HUF:"Ft",VND:"₫",HKD:"HK$",GEL:"₾",DKK:"kr",AED:"د.إ.",EGP:"E\xa3",INR:"₹",IDR:"Rp",KZT:"₸",CAD:"CA$",QAR:"ر.ق.",KGS:"с",CNY:"CN\xa5",MDL:"L",NZD:"NZ$",NOK:"kr",PLN:"zł",RON:"L",XDR:"XDR",SGD:"S$",TJS:"SM",THB:"฿",TRY:"₺",TMT:"T",UZS:"сум",UAH:"₴",CZK:"Kč",SEK:"kr",CHF:"₣",RSD:"дин",ZAR:"R",KRW:"₩",JPY:"\xa5"}),(o=r||(r={})).Pending="pending",o.Success="success",(n||(n={})).PERSISTENT_STATE="persistentState"},89862:function(t,i,e){"use strict";var r=e(92517),n=e(18690),o=e(93191),s=e(69756);t.exports=s||r.call(o,n)},18690:function(t){"use strict";t.exports=Function.prototype.apply},93191:function(t){"use strict";t.exports=Function.prototype.call},56327:function(t,i,e){"use strict";var r=e(92517),n=e(53842),o=e(93191),s=e(89862);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return s(r,o,t)}},69756:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},73250:function(t,i,e){"use strict";var r=e(50071),n=e(56327),o=n([r("%String.prototype.indexOf%")]);t.exports=function(t,i){var e=r(t,!!i);return"function"==typeof e&&o(t,".prototype.")>-1?n([e]):e}},23314:function(t,i,e){"use strict";var r,n=e(56327),o=e(50297);try{r=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var s=!!r&&o&&o(Object.prototype,"__proto__"),h=Object,a=h.getPrototypeOf;t.exports=s&&"function"==typeof s.get?n([s.get]):"function"==typeof a&&function(t){return a(null==t?t:h(t))}},10816:function(t){"use strict";var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch(t){i=!1}t.exports=i},12107:function(t){"use strict";t.exports=EvalError},22016:function(t){"use strict";t.exports=Error},2706:function(t){"use strict";t.exports=RangeError},926:function(t){"use strict";t.exports=ReferenceError},5014:function(t){"use strict";t.exports=SyntaxError},53842:function(t){"use strict";t.exports=TypeError},34662:function(t){"use strict";t.exports=URIError},66199:function(t){"use strict";t.exports=Object},98595:function(t){"use strict";var i=Object.prototype.toString,e=Math.max,r=function(t,i){for(var e=[],r=0;r<t.length;r+=1)e[r]=t[r];for(var n=0;n<i.length;n+=1)e[n+t.length]=i[n];return e},n=function(t,i){for(var e=[],r=i||0,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e},o=function(t,i){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=i);return e};t.exports=function(t){var s,h=this;if("function"!=typeof h||"[object Function]"!==i.apply(h))throw TypeError("Function.prototype.bind called on incompatible "+h);for(var a=n(arguments,1),u=e(0,h.length-a.length),l=[],c=0;c<u;c++)l[c]="$"+c;if(s=Function("binder","return function ("+o(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var i=h.apply(this,r(a,arguments));return Object(i)===i?i:this}return h.apply(t,r(a,arguments))}),h.prototype){var f=function(){};f.prototype=h.prototype,s.prototype=new f,f.prototype=null}return s}},92517:function(t,i,e){"use strict";var r=e(98595);t.exports=Function.prototype.bind||r},50071:function(t,i,e){"use strict";var r,n=e(66199),o=e(22016),s=e(12107),h=e(2706),a=e(926),u=e(5014),l=e(53842),c=e(34662),f=e(11881),p=e(98775),v=e(99564),y=e(34387),d=e(46451),m=e(55304),g=e(9797),w=Function,b=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(t){}},M=e(50297),_=e(10816),S=function(){throw new l},E=M?function(){try{return arguments.callee,S}catch(t){try{return M(arguments,"callee").get}catch(t){return S}}}():S,k=e(35222)(),x=e(66399),A=e(83617),T=e(14197),C=e(18690),P=e(93191),L={},O="undefined"!=typeof Uint8Array&&x?x(Uint8Array):r,N={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&x?x([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":L,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&x?x(x([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&x?x(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":M,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":h,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&x?x(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&x?x(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":E,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":C,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":A,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":v,"%Math.min%":y,"%Math.pow%":d,"%Math.round%":m,"%Math.sign%":g,"%Reflect.getPrototypeOf%":T};if(x)try{null.error}catch(t){var j=x(x(t));N["%Error.prototype%"]=j}var D=function t(i){var e;if("%AsyncFunction%"===i)e=b("async function () {}");else if("%GeneratorFunction%"===i)e=b("function* () {}");else if("%AsyncGeneratorFunction%"===i)e=b("async function* () {}");else if("%AsyncGenerator%"===i){var r=t("%AsyncGeneratorFunction%");r&&(e=r.prototype)}else if("%AsyncIteratorPrototype%"===i){var n=t("%AsyncGenerator%");n&&x&&(e=x(n.prototype))}return N[i]=e,e},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=e(92517),F=e(2575),U=I.call(P,Array.prototype.concat),B=I.call(C,Array.prototype.splice),$=I.call(P,String.prototype.replace),V=I.call(P,String.prototype.slice),z=I.call(P,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,q=function(t){var i=V(t,0,1),e=V(t,-1);if("%"===i&&"%"!==e)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==i)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return $(t,W,function(t,i,e,n){r[r.length]=e?$(n,G,"$1"):i||t}),r},H=function(t,i){var e,r=t;if(F(R,r)&&(r="%"+(e=R[r])[0]+"%"),F(N,r)){var n=N[r];if(n===L&&(n=D(r)),void 0===n&&!i)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:e,name:r,value:n}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,i){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof i)throw new l('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=q(t),r=e.length>0?e[0]:"",n=H("%"+r+"%",i),o=n.name,s=n.value,h=!1,a=n.alias;a&&(r=a[0],B(e,U([0,1],a)));for(var c=1,f=!0;c<e.length;c+=1){var p=e[c],v=V(p,0,1),y=V(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==p&&f||(h=!0),r+="."+p,F(N,o="%"+r+"%"))s=N[o];else if(null!=s){if(!(p in s)){if(!i)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(M&&c+1>=e.length){var d=M(s,p);s=(f=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:s[p]}else f=F(s,p),s=s[p];f&&!h&&(N[o]=s)}}return s}},83617:function(t,i,e){"use strict";var r=e(66199);t.exports=r.getPrototypeOf||null},14197:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},66399:function(t,i,e){"use strict";var r=e(14197),n=e(83617),o=e(23314);t.exports=r?function(t){return r(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("getProto: not an object");return n(t)}:o?function(t){return o(t)}:null},61534:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},50297:function(t,i,e){"use strict";var r=e(61534);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},35222:function(t,i,e){"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=e(38056);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},38056:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},i=Symbol("test"),e=Object(i);if("string"==typeof i||"[object Symbol]"!==Object.prototype.toString.call(i)||"[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(var r in t[i]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==i||!Object.prototype.propertyIsEnumerable.call(t,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,i);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},2575:function(t,i,e){"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=e(92517);t.exports=o.call(r,n)},91978:function(){"use strict";var t,i={allowDownsampling:!0},e=function(){function t(t,i){var e=this;this._resolutionMediaQueryList=null,this._resolutionListener=function(t){return e._onResolutionChanged()},this._canvasConfiguredListeners=[],this.canvas=t,this._canvasSize={width:this.canvas.clientWidth,height:this.canvas.clientHeight},this._options=i,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(i){return i!=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(i){return i.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 i=t.devicePixelRatio;this._resolutionMediaQueryList=t.matchMedia("all and (resolution: "+i+"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 r(t,i){var e,r=((e={})[0]=[],e[1]=[t.lineWidth,t.lineWidth],e[2]=[2*t.lineWidth,2*t.lineWidth],e[3]=[6*t.lineWidth,6*t.lineWidth],e[4]=[t.lineWidth,4*t.lineWidth],e)[i];t.setLineDash(r)}function n(t,i,e,r){t.beginPath();var n=t.lineWidth%2?.5:0;t.moveTo(e,i+n),t.lineTo(r,i+n),t.stroke()}($=z||(z={}))[$.Simple=0]="Simple",$[$.WithSteps=1]="WithSteps",(V=W||(W={}))[V.Solid=0]="Solid",V[V.Dotted=1]="Dotted",V[V.Dashed=2]="Dashed",V[V.LargeDashed=3]="LargeDashed",V[V.SparseDotted=4]="SparseDotted";var o=function(t,i){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)};function s(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}var h=function(){return(h=Object.assign||function(t){for(var i,e=1,r=arguments.length;e<r;e++)for(var n in i=arguments[e])Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);return t}).apply(this,arguments)};function a(t,i,e){if(e||2==arguments.length)for(var r,n=0,o=i.length;n<o;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))}function u(t,i){if(!t)throw Error("Assertion failed"+(i?": "+i:""))}function l(t){if(void 0===t)throw Error("Value is undefined");return t}function c(t){if(null===t)throw Error("Value is null");return t}function f(t){return c(l(t))}function p(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];for(var r=0;r<i.length;r++){var n=i[r];for(var o in n)void 0!==n[o]&&("object"!=typeof n[o]||void 0===t[o]?t[o]=n[o]:p(t[o],n[o]))}return t}function v(t){return"number"==typeof t&&isFinite(t)}function y(t){return"number"==typeof t&&t%1==0}function d(t){return"string"==typeof t}function m(t){return"boolean"==typeof t}function g(t){var i,e,r;if(!t||"object"!=typeof t)return t;for(e in i=Array.isArray(t)?[]:{},t)t.hasOwnProperty(e)&&(r=t[e],i[e]=r&&"object"==typeof r?g(r):r);return i}function w(t){return null!==t}function b(t){return null===t?void 0:t}var M=function(){function t(){this.t=[]}return t.prototype.i=function(t){this.t=t},t.prototype.h=function(t,i,e,r){this.t.forEach(function(n){t.save(),n.h(t,i,e,r),t.restore()})},t}(),_=function(){function t(){}return t.prototype.h=function(t,i,e,r){t.save(),t.scale(i,i),this.u(t,e,r),t.restore()},t.prototype.o=function(t,i,e,r){t.save(),t.scale(i,i),this.l(t,e,r),t.restore()},t.prototype.l=function(t,i,e){},t}(),S=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.v=null,i}return s(i,t),i.prototype._=function(t){this.v=t},i.prototype.u=function(t){if(null!==this.v&&null!==this.v.M){var i=this.v.M,e=this.v,r=function(r){t.beginPath();for(var n=i.to-1;n>=i.from;--n){var o=e.m[n];t.moveTo(o.p,o.g),t.arc(o.p,o.g,r,0,2*Math.PI)}t.fill()};t.fillStyle=e.k,r(e.C+2),t.fillStyle=e.N,r(e.C)}},i}(_);function E(){return{m:[{p:0,g:0,S:0,D:0}],N:"",k:"",C:0,M:null}}var k={from:0,to:1},x=function(){function t(t,i){this.A=new M,this.T=[],this.B=[],this.L=!0,this.F=t,this.V=i,this.A.i(this.T)}return t.prototype.O=function(t){var i=this.F.W();i.length!==this.T.length&&(this.B=i.map(E),this.T=this.B.map(function(t){var i=new S;return i._(t),i}),this.A.i(this.T)),this.L=!0},t.prototype.P=function(t,i,e){return this.L&&(this.R(t),this.L=!1),this.A},t.prototype.R=function(t){var i=this,e=this.F.W(),r=this.V.I(),n=this.F.j();e.forEach(function(e,o){var s,h=i.B[o],a=e.q(r);if(null!==a&&e.U()){var u=c(e.H());h.N=a.Y,h.C=a.C,h.m[0].D=a.D,h.m[0].g=e.$().K(a.D,u.X),h.k=null!==(s=a.Z)&&void 0!==s?s:i.F.J(h.m[0].g/t),h.m[0].S=r,h.m[0].p=n.G(r),h.M=k}else h.M=null})},t}(),A=function(){function t(t){this.tt=t}return t.prototype.h=function(t,i,e,o){if(null!==this.tt){var s=this.tt.it.U,h=this.tt.nt.U;if(s||h){t.save();var a=Math.round(this.tt.p*i),u=Math.round(this.tt.g*i),l=Math.ceil(this.tt.st*i),c=Math.ceil(this.tt.ht*i);t.lineCap="butt",s&&a>=0&&(t.lineWidth=Math.floor(this.tt.it.rt*i),t.strokeStyle=this.tt.it.et,t.fillStyle=this.tt.it.et,r(t,this.tt.it.ut),function(t,i,e,r){t.beginPath();var n=t.lineWidth%2?.5:0;t.moveTo(i+n,0),t.lineTo(i+n,r),t.stroke()}(t,a,0,c)),h&&u>=0&&(t.lineWidth=Math.floor(this.tt.nt.rt*i),t.strokeStyle=this.tt.nt.et,t.fillStyle=this.tt.nt.et,r(t,this.tt.nt.ut),n(t,u,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 A(this.at),this.lt=t}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,i){return this.L&&(this.R(),this.L=!1),this.ot},t.prototype.R=function(){var t=this.lt.U(),i=c(this.lt.ft()),e=i.vt().ct().crosshair,r=this.at;r.nt.U=t&&this.lt._t(i),r.it.U=t&&this.lt.dt(),r.nt.rt=e.horzLine.width,r.nt.ut=e.horzLine.style,r.nt.et=e.horzLine.color,r.it.rt=e.vertLine.width,r.it.ut=e.vertLine.style,r.it.et=e.vertLine.color,r.st=i.wt(),r.ht=i.Mt(),r.p=this.lt.bt(),r.g=this.lt.gt()},t}(),C={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 P(t){return t<0?0:t>255?255:Math.round(t)||0}function L(t){return t<=0||t>0?t<0?0:t>1?1:Math.round(1e4*t)/1e4:0}var O=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,N=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,j=/^rgb\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*\)$/,D=/^rgba\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?[\d]{0,10}(?:\.\d+)?)\s*\)$/;function R(t){var i;if((t=t.toLowerCase())in C&&(t=C[t]),i=D.exec(t)||j.exec(t))return[P(parseInt(i[1],10)),P(parseInt(i[2],10)),P(parseInt(i[3],10)),L(i.length<5?1:parseFloat(i[4]))];if(i=N.exec(t))return[P(parseInt(i[1],16)),P(parseInt(i[2],16)),P(parseInt(i[3],16)),1];if(i=O.exec(t))return[P(17*parseInt(i[1],16)),P(17*parseInt(i[2],16)),P(17*parseInt(i[3],16)),1];throw Error("Cannot parse color: "+t)}function I(t){var i=R(t);return{yt:"rgb("+i[0]+", "+i[1]+", "+i[2]+")",kt:.199*i[0]+.687*i[1]+.114*i[2]>160?"black":"white"}}function F(t,i,e){t.save(),t.scale(i,i),e(),t.restore()}function U(t,i,e,r,n,o){t.save(),t.globalCompositeOperation="copy",t.fillStyle=o,t.fillRect(i,e,r,n),t.restore()}function B(t,i,e,r,n,o,s){t.save(),t.globalCompositeOperation="copy";var h=t.createLinearGradient(0,0,0,n);h.addColorStop(0,o),h.addColorStop(1,s),t.fillStyle=h,t.fillRect(i,e,r,n),t.restore()}var $,V,z,W,G,q=function(){function t(t,i){this._(t,i)}return t.prototype._=function(t,i){this.tt=t,this.Ct=i},t.prototype.h=function(t,i,e,r,n,o){if(this.tt.U){t.font=i.Nt;var s=this.tt.xt||!this.tt.St?i.Dt:0,h=i.At,a=i.Tt,u=i.Bt,l=i.Lt,c=i.Ft,f=this.tt.Et,p=Math.ceil(e.Vt(t,f)),v=i.Ot,y=i.Wt+a+u,d=Math.ceil(.5*y),m=h+p+l+c+s,g=this.Ct.zt;this.Ct.Pt&&(g=this.Ct.Pt);var w,b,M=(g=Math.round(g))-d,_=M+y,S="right"===n,E=S?r:0,k=Math.ceil(r*o),x=E;if(t.fillStyle=this.Ct.yt,t.lineWidth=1,t.lineCap="butt",f){S?(w=E-s,b=(x=E-m)+c):(x=E+m,w=E+s,b=E+h+s+l);var A=Math.max(1,Math.floor(o)),T=Math.max(1,Math.floor(h*o)),C=S?k:0,P=Math.round(M*o),L=Math.round(x*o),O=Math.round(g*o)-Math.floor(.5*o),N=O+A+(O-P),j=Math.round(w*o);t.save(),t.beginPath(),t.moveTo(C,P),t.lineTo(L,P),t.lineTo(L,N),t.lineTo(C,N),t.fill(),t.fillStyle=this.tt.Z,t.fillRect(S?k-T:0,P,T,N-P),this.tt.xt&&(t.fillStyle=this.Ct.et,t.fillRect(C,O,j-C,A)),t.textAlign="left",t.fillStyle=this.Ct.et,F(t,o,function(){t.fillText(f,b,_-u-v)}),t.restore()}}},t.prototype.Mt=function(t,i){return this.tt.U?t.Wt+t.Tt+t.Bt:0},t}(),H=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||q)(this.It,this.Rt),this.Ut=new(t||q)(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,i){return void 0===i&&(i=!1),Math.max(this.qt.Mt(t,i),this.Ut.Mt(t,i))},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}(),Z=function(t){function i(i,e,r){var n=t.call(this)||this;return n.lt=i,n.Gt=e,n.Qt=r,n}return s(i,t),i.prototype.Jt=function(t,i,e){t.U=!1;var r=this.lt.ct().horzLine;if(r.labelVisible){var n=this.Gt.H();if(this.lt.U()&&!this.Gt.ti()&&null!==n){var o=I(r.labelBackgroundColor);e.yt=o.yt,e.et=o.kt;var s=this.Qt(this.Gt);e.zt=s.zt,t.Et=this.Gt.ii(s.D,n),t.U=!0}}},i}(H),K=/[1-9]/g,X=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,i,e){var r=this;if(null!==this.tt&&!1!==this.tt.U&&0!==this.tt.Et.length){t.font=i.Nt;var n=Math.round(i.ni.Vt(t,this.tt.Et,K));if(!(n<=0)){t.save();var o=i.si,s=n+2*o,h=s/2,a=this.tt.wt,u=this.tt.zt,l=Math.floor(u-h)+.5;l<0?(u+=Math.abs(0-l),l=Math.floor(u-h)+.5):l+s>a&&(u-=Math.abs(a-(l+s)),l=Math.floor(u-h)+.5);var f=l+s,p=0+i.At+i.Tt+i.Wt+i.Bt;t.fillStyle=this.tt.yt;var v=Math.round(l*e),y=Math.round(0*e),d=Math.round(f*e),m=Math.round(p*e);t.fillRect(v,y,d-v,m-y);var g=Math.round(this.tt.zt*e),w=Math.round((y+i.At+i.Dt)*e);t.fillStyle=this.tt.et;var b=Math.max(1,Math.floor(e)),M=Math.floor(.5*e);t.fillRect(g-M,y,b,w-y);var _=p-i.Ot-i.Bt;t.textAlign="left",t.fillStyle=this.tt.et,F(t,e,function(){t.fillText(c(r.tt).Et,l+o,_)}),t.restore()}}},t}(),J=function(){function t(t,i,e){this.L=!0,this.ot=new X,this.at={U:!1,yt:"#4c525e",et:"white",Et:"",wt:0,zt:NaN},this.V=t,this.hi=i,this.Qt=e}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 i=this.V.ct().vertLine;if(i.labelVisible){var e=this.hi.j();if(!e.ti()){var r=e.ri(this.V.I());t.wt=e.wt();var n=this.Qt();if(n.S){t.zt=n.zt,t.Et=e.ei(c(r)),t.U=!0;var o=I(i.labelBackgroundColor);t.yt=o.yt,t.et=o.kt}}}},t}(),Y=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}();(tv=G||(G={}))[tv.Normal=0]="Normal",tv[tv.Magnet=1]="Magnet";var Q=function(t){function i(i,e){var r,n,o,s,h=t.call(this)||this;h.vi=null,h._i=NaN,h.di=0,h.wi=!0,h.Mi=new Map,h.bi=!1,h.mi=NaN,h.pi=NaN,h.gi=NaN,h.yi=NaN,h.hi=i,h.ki=e,h.Ci=new x(i,h),h.Ni=(o=function(){return h._i},s=function(){return h.pi},function(t){var i=s(),e=o();if(t===c(h.vi).xi())return{D:e,zt:i};var r=c(t.H());return{D:t.Si(i,r),zt:i}});var a=(r=function(){return h.di},n=function(){return h.bt()},function(){return{S:h.hi.j().ri(r()),zt:n()}});return h.Di=new J(h,i,a),h.Ai=new T(h),h}return s(i,t),i.prototype.ct=function(){return this.ki},i.prototype.Ti=function(t,i){this.gi=t,this.yi=i},i.prototype.Bi=function(){this.gi=NaN,this.yi=NaN},i.prototype.Li=function(){return this.gi},i.prototype.Fi=function(){return this.yi},i.prototype.Ei=function(t,i,e){this.bi||(this.bi=!0),this.wi=!0,this.Vi(t,i,e)},i.prototype.I=function(){return this.di},i.prototype.bt=function(){return this.mi},i.prototype.gt=function(){return this.pi},i.prototype.U=function(){return this.wi},i.prototype.Oi=function(){this.wi=!1,this.Wi(),this._i=NaN,this.mi=NaN,this.pi=NaN,this.vi=null,this.Bi()},i.prototype.zi=function(t){return null!==this.vi?[this.Ai,this.Ci]:[]},i.prototype._t=function(t){return t===this.vi&&this.ki.horzLine.visible},i.prototype.dt=function(){return this.ki.vertLine.visible},i.prototype.Pi=function(t,i){this.wi&&this.vi===t||this.Mi.clear();var e=[];return this.vi===t&&e.push(this.Ri(this.Mi,i,this.Ni)),e},i.prototype.ci=function(){return this.wi?[this.Di]:[]},i.prototype.ft=function(){return this.vi},i.prototype.Ii=function(){this.Ai.O(),this.Mi.forEach(function(t){return t.O()}),this.Di.O(),this.Ci.O()},i.prototype.ji=function(t){return t&&!t.xi().ti()?t.xi():null},i.prototype.Vi=function(t,i,e){this.qi(t,i,e)&&this.Ii()},i.prototype.qi=function(t,i,e){var r=this.mi,n=this.pi,o=this._i,s=this.di,h=this.vi,a=this.ji(e);this.di=t,this.mi=isNaN(t)?NaN:this.hi.j().G(t),this.vi=e;var u=null!==a?a.H():null;return null!==a&&null!==u?(this._i=i,this.pi=a.K(i,u)):(this._i=NaN,this.pi=NaN),r!==this.mi||n!==this.pi||s!==this.di||o!==this._i||h!==this.vi},i.prototype.Wi=function(){var t=this.hi.W().map(function(t){return t.Hi().Ui()}).filter(w),i=0===t.length?null:Math.max.apply(Math,t);this.di=null!==i?i:NaN},i.prototype.Ri=function(t,i,e){var r=t.get(i);return void 0===r&&(r=new Z(this,i,e),t.set(i,r)),r},i}(Y);function tt(t,i){if(!v(t))return"n/a";if(!y(i)||i<0||i>16)throw TypeError("invalid length");return 0===i?t.toString():("0000000000000000"+t.toString()).slice(-i)}var ti=function(){function t(t,i){if(i||(i=1),v(t)&&y(t)||(t=100),t<0)throw TypeError("invalid base");this.Gt=t,this.Yi=i,this.Ki()}return t.prototype.format=function(t){var i=t<0?"−":"";return t=Math.abs(t),i+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 i=this.Gt/this.Yi,e=Math.floor(t),r="",n=void 0!==this.Xi?this.Xi:NaN;if(i>1){var o=+(Math.round(t*i)-e*i).toFixed(this.Xi);o>=i&&(o-=i,e+=1),r="."+tt(+o.toFixed(this.Xi)*this.Yi,n)}else e=Math.round(e*i)/i,n>0&&(r="."+tt(0,n));return e.toFixed(0)+r},t}(),te=function(t){function i(i){return void 0===i&&(i=100),t.call(this,i)||this}return s(i,t),i.prototype.format=function(i){return t.prototype.format.call(this,i)+"%"},i}(ti),tr=function(){function t(){this.Zi=[]}return t.prototype.Ji=function(t,i,e){this.Zi.push({Gi:t,Qi:i,tn:!0===e})},t.prototype.nn=function(t){var i=this.Zi.findIndex(function(i){return t===i.Gi});i>-1&&this.Zi.splice(i,1)},t.prototype.sn=function(t){this.Zi=this.Zi.filter(function(i){return i.Qi===t})},t.prototype.hn=function(t,i){var e=a([],this.Zi,!0);this.Zi=this.Zi.filter(function(t){return!t.tn}),e.forEach(function(e){return e.Gi(t,i)})},t.prototype.rn=function(){return this.Zi.length>0},t.prototype.en=function(){this.Zi=[]},t}(),tn=function(){function t(t,i){this.un=t,this.an=i}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(i){return null===i?this:new t(Math.min(this.fn(),i.fn()),Math.max(this.cn(),i.cn()))},t.prototype.dn=function(t){if(v(t)&&0!=this.an-this.un){var i=.5*(this.an+this.un),e=this.an-i,r=this.un-i;e*=t,r*=t,this.an=i+e,this.un=i+r}},t.prototype.wn=function(t){v(t)&&(this.an+=t,this.un+=t)},t.prototype.Mn=function(){return{minValue:this.un,maxValue:this.an}},t.bn=function(i){return null===i?null:new t(i.minValue,i.maxValue)},t}();function to(t,i,e){return Math.min(Math.max(t,i),e)}function ts(t){return t<=0?NaN:Math.log(t)/Math.log(10)}function th(t){var i=Math.ceil(t);return i%2!=0?i-1:i}function ta(t){var i=Math.ceil(t);return i%2==0?i-1:i}function tu(t,i){var e=100*(t-i)/i;return i<0?-e:e}function tl(t,i){var e=100*(t-i)/i+100;return i<0?-e:e}function tc(t){var i=Math.abs(t);if(i<1e-8)return 0;var e=ts(i+1e-4)+4;return t<0?-e:e}function tf(t){var i=Math.abs(t);if(i<1e-8)return 0;var e=Math.pow(10,i-4)-1e-4;return t<0?-e:e}function tp(t){return null===t?null:new tn(tc(t.fn()),tc(t.cn()))}var tv,ty,td=function(){function t(t,i){if(this.mn=t,this.pn=i,function(t){if(t<0)return!1;for(var i=t;i>1;i/=10)if(i%10!=0)return!1;return!0}(this.mn))this.gn=[2,2.5,2];else{this.gn=[];for(var e=this.mn;1!==e;){if(e%2==0)this.gn.push(2),e/=2;else{if(e%5!=0)throw Error("unexpected base");this.gn.push(2,2.5),e/=5}if(this.gn.length>100)throw Error("something wrong with base")}}}return t.prototype.yn=function(t,i,e){for(var r=0===this.mn?0:1/this.mn,n=Math.pow(10,Math.max(0,Math.ceil(ts(t-i)))),o=0,s=this.pn[0];;){var h=r-n<=1e-14&&n>r+1e-14,a=e*s-n<=1e-14,u=1-n<=1e-14;if(!(h&&a&&u))break;n/=s,s=this.pn[++o%this.pn.length]}if(n<=r+1e-14&&(n=r),n=Math.max(1,n),this.gn.length>0&&1e-14>Math.abs(n-1))for(o=0,s=this.gn[0];e*s-n<=1e-14&&n>r+1e-14;)n/=s,s=this.gn[++o%this.gn.length];return n},t}(),tm=function(){function t(t,i,e,r){this.kn=[],this.Gt=t,this.mn=i,this.Cn=e,this.Nn=r}return t.prototype.yn=function(t,i){if(t<i)throw Error("high < low");var e=this.Gt.Mt(),r=(t-i)*this.xn()/e,n=new td(this.mn,[2,2.5,2]),o=new td(this.mn,[2,2,2.5]),s=new td(this.mn,[2.5,2,2]),h=[];return h.push(n.yn(t,i,r),o.yn(t,i,r),s.yn(t,i,r)),function(t){if(t.length<1)throw Error("array is empty");for(var i=t[0],e=1;e<t.length;++e)t[e]<i&&(i=t[e]);return i}(h)},t.prototype.Sn=function(){var t=this.Gt,i=t.H();if(null!==i){var e=t.Mt(),r=this.Cn(e-1,i),n=this.Cn(0,i),o=this.Gt.ct().entireTextOnly?this.Dn()/2:0,s=e-1-o,h=Math.max(r,n),a=Math.min(r,n);if(h!==a){for(var u=this.yn(h,a),l=h%u,c=h>=a?1:-1,f=null,p=0,v=h-(l+=l<0?u:0);v>a;v-=u){var y=this.Nn(v,i,!0);null!==f&&Math.abs(y-f)<this.xn()||y<o||y>s||(p<this.kn.length?(this.kn[p].An=y,this.kn[p].Tn=t.Bn(v)):this.kn.push({An:y,Tn:t.Bn(v)}),p++,f=y,t.Ln()&&(u=this.yn(v*c,a)))}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 tg(t){return t.slice().sort(function(t,i){return c(t.oi())-c(i.oi())})}(tw=ty||(ty={}))[tw.Normal=0]="Normal",tw[tw.Logarithmic=1]="Logarithmic",tw[tw.Percentage=2]="Percentage",tw[tw.IndexedTo100=3]="IndexedTo100";var tw,tb,tM,t_=new te,tS=new ti(100,1),tE=function(){function t(t,i,e,r){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 tr,this.Un=new tr,this.Hn=[],this.Yn=null,this.Kn=null,this.$n=null,this.Xn=null,this.Zn=tS,this.Jn=t,this.ki=i,this.Gn=e,this.Qn=r,this.ts=new tm(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(p(this.ki,t),this.es(),void 0!==t.mode&&this.us({os:t.mode}),void 0!==t.scaleMargins){var i=l(t.scaleMargins.top),e=l(t.scaleMargins.bottom);if(i<0||i>1)throw Error("Invalid top margin - expect value between 0 and 1, given="+i);if(e<0||e>1||i+e>1)throw Error("Invalid bottom margin - expect value between 0 and 1, given="+e);if(i+e>1)throw Error("Invalid margins - sum of margins must be less than 1, given="+(i+e));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 i,e=this.os(),r=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===e.os&&t.os!==e.os&&(function(t){if(null===t)return!1;var i=tf(t.fn()),e=tf(t.cn());return isFinite(i)&&isFinite(e)}(this.On)?null!==(r=null===(i=this.On)?null:new tn(tf(i.fn()),tf(i.cn())))&&this.ws(r):this.ki.autoScale=!0),1===t.os&&t.os!==e.os&&null!==(r=tp(this.On))&&this.ws(r);var n=e.os!==this.ki.mode;n&&(2===e.os||this.cs())&&this.es(),n&&(3===e.os||this.vs())&&this.es(),void 0!==t.ds&&e.ds!==t.ds&&(this.ki.invertScale=t.ds,this.Ms()),this.Un.hn(e,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,i){var e=this.On;(i||null===e&&null!==t||null!==e&&!e.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,i){return this.cs()?t=tu(t,i):this.vs()&&(t=tl(t,i)),this.ss(t,i)},t.prototype.Ss=function(t,i,e){this.Ns();for(var r=this.ks(),n=c(this.Cs()),o=n.fn(),s=n.cn(),h=this.gs()-1,a=this.ds(),u=h/(s-o),l=void 0===e?0:e.from,f=void 0===e?t.length:e.to,p=this.Ds(),v=l;v<f;v++){var y=t[v],d=y.D;if(!isNaN(d)){var m=d;null!==p&&(m=p(y.D,i));var g=r+u*(m-o),w=a?g:this.En-1-g;y.g=w}}},t.prototype.As=function(t,i,e){this.Ns();for(var r=this.ks(),n=c(this.Cs()),o=n.fn(),s=n.cn(),h=this.gs()-1,a=this.ds(),u=h/(s-o),l=void 0===e?0:e.from,f=void 0===e?t.length:e.to,p=this.Ds(),v=l;v<f;v++){var y=t[v],d=y.open,m=y.high,g=y.low,w=y.close;null!==p&&(d=p(y.open,i),m=p(y.high,i),g=p(y.low,i),w=p(y.close,i));var b=r+u*(d-o),M=a?b:this.En-1-b;y.Ts=M,b=r+u*(m-o),M=a?b:this.En-1-b,y.Bs=M,b=r+u*(g-o),M=a?b:this.En-1-b,y.Ls=M,b=r+u*(w-o),M=a?b:this.En-1-b,y.Fs=M}},t.prototype.Si=function(t,i){var e=this.ns(t,i);return this.Es(e,i)},t.prototype.Es=function(t,i){var e,r,n=t;return this.cs()?(e=n,i<0&&(e=-e),n=e/100*i+i):this.vs()&&(r=n-100,i<0&&(r=-r),n=r/100*i+i),n},t.prototype.Vs=function(){return this.Hn},t.prototype.Os=function(){if(this.Yn)return this.Yn;for(var t=[],i=0;i<this.Hn.length;i++){var e=this.Hn[i];null===e.oi()&&e.li(i+1),t.push(e)}return t=tg(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 i=this.Hn.indexOf(t);if(-1===i)throw Error("source is not attached to scale");this.Hn.splice(i,1),0===this.Hn.length&&(this.us({_s:!0}),this.ws(null)),this.es(),this.zs()},t.prototype.H=function(){for(var t=null,i=0,e=this.Hn;i<e.length;i++){var r=e[i].H();null!==r&&(null===t||r.Rs<t.Rs)&&(t=r)}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=c(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 i=(this.$n+.2*(this.En-1))/(t+.2*(this.En-1)),e=c(this.Wn).ln();i=Math.max(i,.1),e.dn(i),this.ws(e)}},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=c(this.Cs()).ln()))},t.prototype.Ys=function(t){if(!this.fs()&&null!==this.Xn){var i=c(this.Cs()).vn()/(this.gs()-1),e=t-this.Xn;this.ds()&&(e*=-1);var r=e*i,n=c(this.Wn).ln();n.wn(r),this.ws(n,!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,i){switch(this.ki.mode){case 2:return this.$s().format(tu(t,i));case 3:return this.$s().format(tl(t,i));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,c(this.Js()).$s())},t.prototype.Gs=function(t,i){return t=tu(t,i),t_.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(),i=100;null!==t&&(i=Math.round(1/t.ih())),this.Zn=tS,this.cs()?(this.Zn=t_,i=100):this.vs()?(this.Zn=new ti(100,1),i=100):null!==t&&(this.Zn=t.$s()),this.ts=new tm(this,i,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,i){if(this.Ns(),this.ti())return 0;t=this.Ln()&&t?tc(t):t;var e=c(this.Cs()),r=this.ks()+(this.gs()-1)*(t-e.fn())/e.vn();return this.xs(r)},t.prototype.ns=function(t,i){if(this.Ns(),this.ti())return 0;var e=this.xs(t),r=c(this.Cs()),n=r.fn()+r.vn()*((e-this.ks())/(this.gs()-1));return this.Ln()?tf(n):n},t.prototype.Ms=function(){this.Kn=null,this.ts.Sn()},t.prototype.nh=function(){var t=this.zn.Rn;if(null!==t){for(var i=null,e=0,r=0,n=0,o=this.Qs();n<o.length;n++){var s=o[n];if(s.U()){var h=s.H();if(null!==h){var a=s.sh(t.hh(),t.rh()),u=a&&a.Cs();if(null!==u){switch(this.ki.mode){case 1:u=tp(u);break;case 2:l=u,f=h.X,u=new tn(tu(l.fn(),f),tu(l.cn(),f));break;case 3:p=u,v=h.X,u=new tn(tl(p.fn(),v),tl(p.cn(),v))}if(i=null===i?u:i._n(c(u)),null!==a){var l,f,p,v,y=a.eh();null!==y&&(r=Math.max(e=Math.max(e,y.above),y.below))}}}}}if(e===this.In&&r===this.jn||(this.In=e,this.jn=r,this.Kn=null,this.ls()),null!==i){if(i.fn()===i.cn()){var d=this.Js(),m=5*(null===d||this.cs()||this.vs()?1:d.ih());i=new tn(i.fn()-m,i.cn()+m)}this.ws(i)}else null===this.On&&this.ws(new tn(-.5,.5));this.zn.Pn=!0}},t.prototype.Ds=function(){return this.cs()?tu:this.vs()?tl:this.Ln()?tc:null},t.prototype.Xs=function(t,i){return void 0===this.Qn.priceFormatter?(void 0===i&&(i=this.$s()),i.format(t)):this.Qn.priceFormatter(t)},t}();function tk(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)}(tR=tb||(tb={}))[tR.Disabled=0]="Disabled",tR[tR.Continuous=1]="Continuous",tR[tR.OnDataUpdate=2]="OnDataUpdate",(tI=tM||(tM={}))[tI.LastBar=0]="LastBar",tI[tI.LastVisible=1]="LastVisible";var tx=function(t){return t.getUTCFullYear()},tA=function(){function t(t,i){void 0===t&&(t="yyyy-MM-dd"),void 0===i&&(i="default"),this.uh=t,this.ah=i}return t.prototype.oh=function(t){var i,e,r;return i=t,e=this.uh,r=this.ah,e.replace(/yyyy/g,tt(tx(i),4)).replace(/yy/g,tt(tx(i)%100,2)).replace(/MMMM/g,new Date(i.getUTCFullYear(),i.getUTCMonth(),1).toLocaleString(r,{month:"long"})).replace(/MMM/g,new Date(i.getUTCFullYear(),i.getUTCMonth(),1).toLocaleString(r,{month:"short"})).replace(/MM/g,tt(i.getUTCMonth()+1,2)).replace(/dd/g,tt(i.getUTCDate(),2))},t}(),tT=function(){function t(t){this.lh=t||"%h:%m:%s"}return t.prototype.oh=function(t){return this.lh.replace("%h",tt(t.getUTCHours(),2)).replace("%m",tt(t.getUTCMinutes(),2)).replace("%s",tt(t.getUTCSeconds(),2))},t}(),tC={fh:"yyyy-MM-dd",_h:"%h:%m:%s",dh:" ",wh:"default"},tP=function(){function t(t){void 0===t&&(t={});var i=h(h({},tC),t);this.Mh=new tA(i.fh,i.wh),this.bh=new tT(i._h),this.mh=i.dh}return t.prototype.oh=function(t){return""+this.Mh.oh(t)+this.mh+this.bh.oh(t)},t}();function tL(t,i,e,r,n){void 0===r&&(r=0),void 0===n&&(n=t.length);for(var o=n-r;0<o;){var s=o>>1,h=r+s;e(t[h],i)?(r=h+1,o-=s+1):o=s}return r}function tO(t,i,e,r,n){void 0===r&&(r=0),void 0===n&&(n=t.length);for(var o=n-r;0<o;){var s=o>>1,h=r+s;e(i,t[h])?o=s:(r=h+1,o-=s+1)}return r}var tN=function(){function t(t,i){void 0===i&&(i=50),this.ph=0,this.gh=1,this.yh=1,this.kh=new Map,this.Ch=new Map,this.Nh=t,this.xh=i}return t.prototype.oh=function(t){var i=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(),e=this.kh.get(i);if(void 0!==e)return e.Ah;if(this.ph===this.xh){var r=this.Ch.get(this.yh);this.Ch.delete(this.yh),this.kh.delete(l(r)),this.yh++,this.ph--}var n=this.Nh(t);return this.kh.set(i,{Ah:n,Th:this.gh}),this.Ch.set(this.gh,i),this.ph++,this.gh++,n},t}(),tj=function(){function t(t,i){u(t<=i,"right should be >= left"),this.Bh=t,this.Lh=i}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 tD(t,i){return null===t||null===i?t===i:t.on(i)}var tR,tI,tF,tU=function(){function t(){this.Vh=new Map,this.kh=null}return t.prototype.Oh=function(t,i){this.Wh(i),this.kh=null;for(var e=i;e<t.length;++e){var r=t[e],n=this.Vh.get(r.zh);void 0===n&&(n=[],this.Vh.set(r.zh,n)),n.push({Ph:e,S:r.S,Rh:r.zh})}},t.prototype.Ih=function(t,i){var e=Math.ceil(i/t);return null!==this.kh&&this.kh.jh===e||(this.kh={Fn:this.qh(e),jh:e}),this.kh.Fn},t.prototype.Wh=function(t){if(0!==t){var i=[];this.Vh.forEach(function(e,r){t<=e[0].Ph?i.push(r):e.splice(tL(e,t,function(i){return i.Ph<t}),1/0)});for(var e=0;e<i.length;e++){var r=i[e];this.Vh.delete(r)}}else this.Vh.clear()},t.prototype.qh=function(t){for(var i=[],e=0,r=Array.from(this.Vh.keys()).sort(function(t,i){return i-t});e<r.length;e++){var n=r[e];if(this.Vh.get(n)){var o=i;i=[];for(var s=o.length,h=0,a=l(this.Vh.get(n)),u=a.length,c=1/0,f=-1/0,p=0;p<u;p++){for(var v=a[p],y=v.Ph;h<s;){var d=o[h],m=d.Ph;if(!(m<y)){c=m;break}h++,i.push(d),f=m,c=1/0}c-y>=t&&y-f>=t&&(i.push(v),f=y)}for(;h<s;h++)i.push(o[h])}}return i},t}(),tB=function(){function t(t){this.Uh=t}return t.prototype.Hh=function(){return null===this.Uh?null:new tj(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}();(t$=tF||(tF={}))[t$.Year=0]="Year",t$[t$.Month=1]="Month",t$[t$.DayOfMonth=2]="DayOfMonth",t$[t$.Time=3]="Time",t$[t$.TimeWithSeconds=4]="TimeWithSeconds";var t$,tV,tz=function(){function t(t,i,e){this.$h=0,this.Xh=null,this.Zh=[],this.Xn=null,this.$n=null,this.Jh=new tU,this.Gh=new Map,this.Qh=tB.Kh(),this.tr=!0,this.ir=new tr,this.nr=new tr,this.sr=new tr,this.hr=null,this.rr=null,this.er=[],this.ki=i,this.Qn=e,this.ur=i.rightOffset,this.ar=i.barSpacing,this.hi=t,this.lr()}return t.prototype.ct=function(){return this.ki},t.prototype.cr=function(t){p(this.Qn,t),this.vr(),this.lr()},t.prototype.rs=function(t,i){var e;p(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!==(e=t.barSpacing)&&void 0!==e?e:this.ar),this.vr(),this.lr(),this.sr.hn()},t.prototype.ri=function(t){var i;return(null===(i=this.Zh[t])||void 0===i?void 0:i.S)||null},t.prototype.br=function(t,i){if(this.Zh.length<1)return null;if(t.Dh>this.Zh[this.Zh.length-1].S.Dh)return i?this.Zh.length-1:null;var e=tL(this.Zh,t.Dh,function(t,i){return t.S.Dh<i});return t.Dh<this.Zh[e].S.Dh?i?e:null:e},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 i={from:t.hh(),to:t.rh()};return this.kr(i)},t.prototype.kr=function(t){var i=Math.round(t.from),e=Math.round(t.to),r=c(this.Cr()),n=c(this.Nr());return{from:c(this.ri(Math.max(r,i))),to:c(this.ri(Math.min(n,e)))}},t.prototype.Sr=function(t){return{from:c(this.br(t.from,!0)),to:c(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 i=this.ar*t/this.$h;this.ar=i}if(this.ki.fixLeftEdge){var e=this.mr();if(null!==e&&0>=e.hh()){var r=this.$h-t;this.ur-=Math.round(r/this.ar)+1}}this.$h=t,this.tr=!0,this.Ar(),this.Tr()}},t.prototype.G=function(t){if(this.ti()||!y(t))return 0;var i=this.Br()+this.ur-t;return this.$h-(i+.5)*this.ar-1},t.prototype.Lr=function(t,i){for(var e=this.Br(),r=void 0===i?0:i.from,n=void 0===i?t.length:i.to,o=r;o<n;o++){var s=t[o].S,h=e+this.ur-s,a=this.$h-(h+.5)*this.ar-1;t[o].p=a}},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,i=5*(this.hi.ct().layout.fontSize+4),e=Math.round(i/t),r=c(this.mr()),n=Math.max(r.hh(),r.hh()-e),o=Math.max(r.rh(),r.rh()-e),s=this.Jh.Ih(t,i),h=this.Cr()+e,a=this.Nr()-e,u=0,l=0;l<s.length;l++){var f=s[l];if(n<=f.Ph&&f.Ph<=o){var p=void 0;u<this.er.length?((p=this.er[u]).An=this.G(f.Ph),p.Tn=this.Rr(f.S,f.Rh),p.Rh=f.Rh):(p={Ir:!1,An:this.G(f.Ph),Tn:this.Rr(f.S,f.Rh),Rh:f.Rh},this.er.push(p)),this.ar>i/2?p.Ir=!1:p.Ir=this.ki.fixLeftEdge&&f.Ph<=h||this.ki.fixRightEdge&&f.Ph>=a,u++}}return this.er.length=u,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,i){var e=this.Er(t),r=this.Wr();this.wr(r+r/10*i),this.ki.rightBarStaysOnScroll||this.Mr(this.Pr()+(e-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 i=to(this.$h-t,0,this.$h),e=to(this.$h-c(this.$n),0,this.$h);0!==i&&0!==e&&this.wr(this.hr.Wr*i/e)}},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 i=(this.Xn-t)/this.Wr();this.ur=c(this.hr).Pr+i,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,i){var e=this;if(void 0===i&&(i=400),!isFinite(t))throw RangeError("offset is required and must be finite number");if(!isFinite(i)||i<=0)throw RangeError("animationDuration (optional) must be finite positive number");var r=this.ur,n=performance.now(),o=function(){var s=(performance.now()-n)/i,h=s>=1;e.Mr(h?t:r+(t-r)*s),h||setTimeout(o,20)};o()},t.prototype.O=function(t,i){this.tr=!0,this.Zh=t,this.Jh.Oh(t,i),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 i=t.Fh();this.zr(this.$h/i),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(),i=this.Nr();null!==t&&null!==i&&this.Gr(new tj(t,i+this.ki.rightOffset))},t.prototype.te=function(t){var i=new tj(t.from,t.to);this.Gr(i)},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 i=this.ne(t);return Math.round(1e6*(this.Br()+this.ur-i))/1e6},t.prototype.zr=function(t){var i=this.ar;this.ar=t,this.Ar(),i!==this.ar&&(this.tr=!0,this.se())},t.prototype.pr=function(){if(this.tr){if(this.tr=!1,this.ti())this.he(tB.Kh());else{var t=this.Br(),i=this.$h/this.ar,e=this.ur+t,r=new tj(e-i+1,e);this.he(new tB(r))}}},t.prototype.Ar=function(){var t=this.re();if(this.ar<t&&(this.ar=t,this.tr=!0),0!==this.$h){var i=.5*this.$h;this.ar>i&&(this.ar=i,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 i=this.ue();null!==i&&this.ur<i&&(this.ur=i,this.tr=!0)},t.prototype.ue=function(){var t=this.Cr(),i=this.Xh;return null===t||null===i?null:t-i-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,i){var e=this,r=this.Gh.get(i);return void 0===r&&(r=new tN(function(t){return e.ae(t,i)}),this.Gh.set(i,r)),r.oh(t)},t.prototype.ae=function(t,i){var e,r=function(t,i,e){switch(t){case 0:case 10:return i?e?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return i?3:2;case 50:return 2;case 60:return 1;case 70:return 0}}(i,this.ki.timeVisible,this.ki.secondsVisible);return void 0!==this.ki.tickMarkFormatter?this.ki.tickMarkFormatter(null!==(e=t.Sh)&&void 0!==e?e:t.Dh,r,this.Qn.locale):function(t,i,e){var r={};switch(i){case 0:r.year="numeric";break;case 1:r.month="short";break;case 2:r.day="numeric";break;case 3:r.hour12=!1,r.hour="2-digit",r.minute="2-digit";break;case 4:r.hour12=!1,r.hour="2-digit",r.minute="2-digit",r.second="2-digit"}var n=new Date(void 0===t.Sh?1e3*t.Dh:Date.UTC(t.Sh.year,t.Sh.month-1,t.Sh.day));return new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()).toLocaleString(e,r)}(t,r,this.Qn.locale)},t.prototype.he=function(t){var i=this.Qh;this.Qh=t,tD(i.Hh(),this.Qh.Hh())||this.ir.hn(),tD(i.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 tP({fh:t,_h:this.ki.secondsVisible?"%h:%m:%s":"%h:%m",dh:"   ",wh:this.Qn.locale}):this.ie=new tA(t,this.Qn.locale)},t.prototype._r=function(){if(this.ki.fixLeftEdge){var t=this.Cr();if(null!==t){var i=this.mr();if(null!==i){var e=i.hh()-t;if(e<0){var r=this.ur-e-1;this.Mr(r)}this.Ar()}}}},t.prototype.dr=function(){this.Tr(),this.Ar()},t}();function tW(t){return!v(t)&&!d(t)}(t=tV||(tV={})).Solid="solid",t.VerticalGradient="gradient";var tG="'Trebuchet MS', Roboto, Ubuntu, sans-serif";function tq(t,i,e){return void 0!==e?e+=" ":e="",void 0===i&&(i=tG),""+e+t+"px "+i}var tH=function(){function t(t){this.oe={At:1,Dt:4,Wt:NaN,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,i=this.fe(),e=this.ce();return t.Wt===i&&t.le===e||(t.Wt=i,t.le=e,t.Nt=tq(i,e),t.Tt=Math.floor(i/3.5),t.Bt=t.Tt,t.Lt=Math.max(Math.ceil(i/2-t.Dt/2),0),t.Ft=Math.ceil(i/2+t.Dt/2),t.Ot=Math.round(i/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 tZ(t){return"left"===t||"right"===t}var tK=function(){function t(t){this._e=new Map,this.de=!1,this.we=[],this.Me=t}return t.prototype.be=function(t,i){var e,r=void 0===(e=this._e.get(t))?i:{me:Math.max(e.me,i.me),_s:e._s||i._s};this._e.set(t,r)},t.prototype.pe=function(){return this.Me},t.prototype.ge=function(t){var i=this._e.get(t);return void 0===i?{me:this.Me}:{me:Math.max(this.Me,i.me),_s:i._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 i=this;this.de=this.de||t.de,this.we=this.we.concat(t.we);for(var e=0,r=t.we;e<r.length;e++){var n=r[e];this.Se(n)}this.Me=Math.max(this.Me,t.Me),t._e.forEach(function(t,e){i.be(e,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}(),tX=function(){function t(t){this.De=t}return t.prototype.format=function(t){var i="";return t<0&&(i="-",t=-t),t<995?i+this.Ae(t):t<999995?i+this.Ae(t/1e3)+"K":t<999999995?(t=1e3*Math.round(t/1e3),i+this.Ae(t/1e6)+"M"):(t=1e6*Math.round(t/1e6),i+this.Ae(t/1e9)+"B")},t.prototype.Ae=function(t){var i=Math.pow(10,this.De);return((t=Math.round(t*i)/i)>=1e-15&&t<1?t.toFixed(this.De).replace(/\.?0+$/,""):String(t)).replace(/(\.[1-9]*)0+$/,function(t,i){return i})},t}();function tJ(t,i,e,r){if(0!==i.length){var n=i[r.from].p,o=i[r.from].g;t.moveTo(n,o);for(var s=r.from+1;s<r.to;++s){var h=i[s];if(1===e){var a=i[s-1].g,u=h.p;t.lineTo(u,a)}t.lineTo(h.p,h.g)}}}var tY=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.v=null,i}return s(i,t),i.prototype._=function(t){this.v=t},i.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,r(t,this.v.ut),t.lineWidth=1,t.beginPath(),1===this.v.m.length){var i=this.v.m[0],e=this.v.Te/2;t.moveTo(i.p-e,this.v.Be),t.lineTo(i.p-e,i.g),t.lineTo(i.p+e,i.g),t.lineTo(i.p+e,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),tJ(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()}},i}(_),tQ=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return s(i,t),i.prototype.Fe=function(t){var i=this.v,e=t.createLinearGradient(0,0,0,i.Ee);return e.addColorStop(0,i.Ve),e.addColorStop(1,i.Oe),e},i}(tY),t0=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.v=null,i}return s(i,t),i.prototype._=function(t){this.v=t},i.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,r(t,this.v.ut),t.strokeStyle=this.We(t),t.lineJoin="round",t.beginPath(),1===this.v.m.length){var i=this.v.m[0];t.moveTo(i.p-this.v.Te/2,i.g),t.lineTo(i.p+this.v.Te/2,i.g)}else tJ(t,this.v.m,this.v.Le,this.v.M);t.stroke()}},i}(_),t1=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return s(i,t),i.prototype.We=function(){return this.v.N},i}(t0);function t2(t,i){return t.S<i}function t3(t,i){return t<i.S}function t5(t,i,e){var r=i.hh(),n=i.rh(),o=tL(t,r,t2),s=tO(t,n,t3);if(!e)return{from:o,to:s};var h=o,a=s;return o>0&&o<t.length&&t[o].S>=r&&(h=o-1),s>0&&s<t.length&&t[s-1].S<=n&&(a=s+1),{from:h,to:a}}var t6=function(){function t(t,i,e){this.ze=!0,this.Pe=!0,this.Re=!0,this.Ie=[],this.je=null,this.qe=t,this.Ue=i,this.He=e}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.$(),i=this.Ue.j();if(this.Ze(),!i.ti()&&!t.ti()){var e=i.mr();if(null!==e&&0!==this.qe.Hi().Je()){var r=this.qe.H();null!==r&&(this.je=t5(this.Ie,e,this.He),this.Ge(t,i,r.X))}}},t}(),t8=function(t){function i(i,e){return t.call(this,i,e,!0)||this}return s(i,t),i.prototype.Ge=function(t,i,e){i.Lr(this.Ie,b(this.je)),t.Ss(this.Ie,e,b(this.je))},i.prototype.Qe=function(t,i){return{S:t,D:i,p:NaN,g:NaN}},i.prototype.Xe=function(){},i.prototype.Ke=function(){var t=this,i=this.qe.tu();this.Ie=this.qe.Hi().iu().map(function(e){var r=e.X[3];return t.nu(e.Ph,r,i)})},i}(t6),t9=function(t){function i(i,e){var r=t.call(this,i,e)||this;return r.ot=new M,r.su=new tQ,r.hu=new t1,r.ot.i([r.su,r.hu]),r}return s(i,t),i.prototype.P=function(t,i){if(!this.qe.U())return null;var e=this.qe.ct();return this.Ye(),this.su._({Le:e.lineType,m:this.Ie,ut:e.lineStyle,rt:e.lineWidth,Ve:e.topColor,Oe:e.bottomColor,Be:t,Ee:t,M:this.je,Te:this.Ue.j().Wr()}),this.hu._({Le:e.lineType,m:this.Ie,N:e.lineColor,ut:e.lineStyle,rt:e.lineWidth,M:this.je,Te:this.Ue.j().Wr()}),this.ot},i.prototype.nu=function(t,i){return this.Qe(t,i)},i}(t8),t4=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,i,e,r){if(null!==this.tt&&0!==this.tt.Hi.length&&null!==this.tt.M){this.ru=this.uu(i),this.ru>=2&&Math.max(1,Math.floor(i))%2!=this.ru%2&&this.ru--,this.eu=this.tt.au?Math.min(this.ru,Math.floor(i)):this.ru;for(var n=null,o=this.eu<=this.ru&&this.tt.Wr>=Math.floor(1.5*i),s=this.tt.M.from;s<this.tt.M.to;++s){var h=this.tt.Hi[s];n!==h.et&&(t.fillStyle=h.et,n=h.et);var a=Math.floor(.5*this.eu),u=Math.round(h.p*i),l=u-a,c=this.eu,f=l+c-1,p=Math.min(h.Bs,h.Ls),v=Math.max(h.Bs,h.Ls),y=Math.round(p*i)-a,d=Math.max(Math.round(v*i)+a-y,this.eu);t.fillRect(l,y,c,d);var m=Math.ceil(1.5*this.ru);if(o){if(this.tt.ou){var g=u-m,w=Math.max(y,Math.round(h.Ts*i)-a),b=w+c-1;b>y+d-1&&(w=(b=y+d-1)-c+1),t.fillRect(g,w,l-g,b-w+1)}var M=u+m,_=Math.max(y,Math.round(h.Fs*i)-a),S=_+c-1;S>y+d-1&&(_=(S=y+d-1)-c+1),t.fillRect(f+1,_,M-f,S-_+1)}}}},t.prototype.uu=function(t){return Math.max(Math.floor(t),Math.floor(Math.floor(.3*c(this.tt).Wr*t)))},t}(),t7=function(t){function i(i,e){return t.call(this,i,e,!1)||this}return s(i,t),i.prototype.Ge=function(t,i,e){i.Lr(this.Ie,b(this.je)),t.As(this.Ie,e,b(this.je))},i.prototype.lu=function(t,i,e){return{S:t,open:i.X[0],high:i.X[1],low:i.X[2],close:i.X[3],p:NaN,Ts:NaN,Bs:NaN,Ls:NaN,Fs:NaN}},i.prototype.Ke=function(){var t=this,i=this.qe.tu();this.Ie=this.qe.Hi().iu().map(function(e){return t.nu(e.Ph,e,i)})},i}(t6),it=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ot=new t4,i}return s(i,t),i.prototype.P=function(t,i){if(!this.qe.U())return null;var e=this.qe.ct();this.Ye();var r={Hi:this.Ie,Wr:this.Ue.j().Wr(),ou:e.openVisible,au:e.thinBars,M:this.je};return this.ot._(r),this.ot},i.prototype.Xe=function(){var t=this;this.Ie.forEach(function(i){i.et=t.qe.tu().cu(i.S).fu})},i.prototype.nu=function(t,i,e){return h(h({},this.lu(t,i,e)),{et:e.cu(t).fu})},i}(t7),ii=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return s(i,t),i.prototype.Fe=function(t){var i=this.v,e=t.createLinearGradient(0,0,0,i.Ee),r=to(i.Be/i.Ee,0,1);return e.addColorStop(0,i.vu),e.addColorStop(r,i._u),e.addColorStop(r,i.du),e.addColorStop(1,i.wu),e},i}(tY),ie=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return s(i,t),i.prototype.We=function(t){var i=this.v,e=t.createLinearGradient(0,0,0,i.Ee),r=to(i.Be/i.Ee,0,1);return e.addColorStop(0,i.Ve),e.addColorStop(r,i.Ve),e.addColorStop(r,i.Oe),e.addColorStop(1,i.Oe),e},i}(t0),ir=function(t){function i(i,e){var r=t.call(this,i,e)||this;return r.Mu=new ii,r.bu=new ie,r.A=new M,r.A.i([r.Mu,r.bu]),r}return s(i,t),i.prototype.P=function(t,i){if(!this.qe.U())return null;var e=this.qe.H();if(null===e)return null;var r=this.qe.ct();this.Ye();var n=this.qe.$().K(r.baseValue.price,e.X),o=this.Ue.j().Wr();return this.Mu._({m:this.Ie,vu:r.topFillColor1,_u:r.topFillColor2,du:r.bottomFillColor1,wu:r.bottomFillColor2,rt:r.lineWidth,ut:r.lineStyle,Le:0,Be:n,Ee:t,M:this.je,Te:o}),this.bu._({m:this.Ie,Ve:r.topLineColor,Oe:r.bottomLineColor,rt:r.lineWidth,ut:r.lineStyle,Le:0,Be:n,Ee:t,M:this.je,Te:o}),this.A},i.prototype.nu=function(t,i){return this.Qe(t,i)},i}(t8),io=function(){function t(){this.tt=null,this.ru=0}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,i,e,r){if(null!==this.tt&&0!==this.tt.Hi.length&&null!==this.tt.M){this.ru=function(t,i){if(t>=2.5&&t<=4)return Math.floor(3*i);var e=1-.2*Math.atan(Math.max(4,t)-4)/(.5*Math.PI),r=Math.min(Math.floor(t*e*i),Math.floor(t*i));return Math.max(Math.floor(i),r)}(this.tt.Wr,i),this.ru>=2&&Math.floor(i)%2!=this.ru%2&&this.ru--;var n=this.tt.Hi;this.tt.mu&&this.pu(t,n,this.tt.M,i),this.tt.gu&&this.yu(t,n,this.tt.M,this.tt.Wr,i);var o=this.ku(i);(!this.tt.gu||this.ru>2*o)&&this.Cu(t,n,this.tt.M,i)}},t.prototype.pu=function(t,i,e,r){if(null!==this.tt){var n="",o=Math.min(Math.floor(r),Math.floor(this.tt.Wr*r));o=Math.max(Math.floor(r),Math.min(o,this.ru));for(var s=Math.floor(.5*o),h=null,a=e.from;a<e.to;a++){var u=i[a];u.Nu!==n&&(t.fillStyle=u.Nu,n=u.Nu);var l=Math.round(Math.min(u.Ts,u.Fs)*r),c=Math.round(Math.max(u.Ts,u.Fs)*r),f=Math.round(u.Bs*r),p=Math.round(u.Ls*r),v=Math.round(r*u.p)-s,y=v+o-1;null!==h&&(v=Math.min(v=Math.max(h+1,v),y));var d=y-v+1;t.fillRect(v,f,d,l-f),t.fillRect(v,c+1,d,p-c),h=y}}},t.prototype.ku=function(t){var i=Math.floor(1*t);this.ru<=2*i&&(i=Math.floor(.5*(this.ru-1)));var e=Math.max(Math.floor(t),i);return this.ru<=2*e?Math.max(Math.floor(t),Math.floor(1*t)):e},t.prototype.yu=function(t,i,e,r,n){if(null!==this.tt)for(var o="",s=this.ku(n),h=null,a=e.from;a<e.to;a++){var u,l,c,f=i[a];f.Z!==o&&(t.fillStyle=f.Z,o=f.Z);var p=Math.round(f.p*n)-Math.floor(.5*this.ru),v=p+this.ru-1,y=Math.round(Math.min(f.Ts,f.Fs)*n),d=Math.round(Math.max(f.Ts,f.Fs)*n);if(null!==h&&(p=Math.min(p=Math.max(h+1,p),v)),this.tt.Wr*n>2*s)u=p,l=v-p+1,c=d-y+1,t.fillRect(u+s,y,l-2*s,s),t.fillRect(u+s,y+c-s,l-2*s,s),t.fillRect(u,y,s,c),t.fillRect(u+l-s,y,s,c);else{var m=v-p+1;t.fillRect(p,y,m,d-y+1)}h=v}},t.prototype.Cu=function(t,i,e,r){if(null!==this.tt)for(var n="",o=this.ku(r),s=e.from;s<e.to;s++){var h=i[s],a=Math.round(Math.min(h.Ts,h.Fs)*r),u=Math.round(Math.max(h.Ts,h.Fs)*r),l=Math.round(h.p*r)-Math.floor(.5*this.ru),c=l+this.ru-1;if(h.et!==n){var f=h.et;t.fillStyle=f,n=f}this.tt.gu&&(l+=o,a+=o,c-=o,u-=o),a>u||t.fillRect(l,a,c-l+1,u-a+1)}},t}(),is=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ot=new io,i}return s(i,t),i.prototype.P=function(t,i){if(!this.qe.U())return null;var e=this.qe.ct();this.Ye();var r={Hi:this.Ie,Wr:this.Ue.j().Wr(),mu:e.wickVisible,gu:e.borderVisible,M:this.je};return this.ot._(r),this.ot},i.prototype.Xe=function(){var t=this;this.Ie.forEach(function(i){var e=t.qe.tu().cu(i.S);i.et=e.fu,i.Nu=e.xu,i.Z=e.Su})},i.prototype.nu=function(t,i,e){var r=e.cu(t);return h(h({},this.lu(t,i,e)),{et:r.fu,Nu:r.xu,Z:r.Su})},i}(t7),ih=function(){function t(){this.tt=null,this.Du=[]}return t.prototype._=function(t){this.tt=t,this.Du=[]},t.prototype.h=function(t,i,e,r){if(null!==this.tt&&0!==this.tt.m.length&&null!==this.tt.M){this.Du.length||this.Au(i);for(var n=Math.max(1,Math.floor(i)),o=Math.round(this.tt.Tu*i)-Math.floor(n/2),s=o+n,h=this.tt.M.from;h<this.tt.M.to;h++){var a=this.tt.m[h],u=this.Du[h-this.tt.M.from],l=Math.round(a.g*i);t.fillStyle=a.et;var c=void 0,f=void 0;l<=o?(c=l,f=s):(c=o,f=l-Math.floor(n/2)+n),t.fillRect(u.hh,c,u.rh-u.hh+1,f-c)}}},t.prototype.Au=function(t){if(null!==this.tt&&0!==this.tt.m.length&&null!==this.tt.M){var i=1>=Math.ceil(this.tt.Wr*t)?0:Math.max(1,Math.floor(t)),e=Math.round(this.tt.Wr*t)-i;this.Du=Array(this.tt.M.to-this.tt.M.from);for(var r=this.tt.M.from;r<this.tt.M.to;r++){var n,o=this.tt.m[r],s=Math.round(o.p*t),h=void 0,a=void 0;e%2?(h=s-(n=(e-1)/2),a=s+n):(h=s-(n=e/2),a=s+n-1),this.Du[r-this.tt.M.from]={hh:h,rh:a,Bu:s,Lu:o.p*t,S:o.S}}for(r=this.tt.M.from+1;r<this.tt.M.to;r++){var u=this.Du[r-this.tt.M.from],l=this.Du[r-this.tt.M.from-1];u.S===l.S+1&&u.hh-l.rh!==i+1&&(l.Bu>l.Lu?l.rh=u.hh-i-1:u.hh=l.rh+i+1)}var c=Math.ceil(this.tt.Wr*t);for(r=this.tt.M.from;r<this.tt.M.to;r++){(u=this.Du[r-this.tt.M.from]).rh<u.hh&&(u.rh=u.hh);var f=u.rh-u.hh+1;c=Math.min(f,c)}if(i>0&&c<4)for(r=this.tt.M.from;r<this.tt.M.to;r++)(f=(u=this.Du[r-this.tt.M.from]).rh-u.hh+1)>c&&(u.Bu>u.Lu?u.rh-=1:u.hh+=1)}else this.Du=[]},t}();function ia(t){return{m:[],Wr:t,Tu:NaN,M:null}}var iu=function(t){function i(i,e){var r=t.call(this,i,e,!1)||this;return r.A=new M,r.Fu=ia(0),r.ot=new ih,r}return s(i,t),i.prototype.P=function(t,i){return this.qe.U()?(this.Ye(),this.A):null},i.prototype.Ke=function(){var t=this.Ue.j().Wr();this.Fu=ia(t);for(var i=0,e=0,r=this.qe.ct().color,n=0,o=this.qe.Hi().iu();n<o.length;n++){var s=o[n],h=s.X[3],a=void 0!==s.et?s.et:r,u={S:s.Ph,D:h,p:NaN,g:NaN,et:a};++i<this.Fu.m.length?this.Fu.m[i]=u:this.Fu.m.push(u),this.Ie[e++]={S:s.Ph,p:0}}this.ot._(this.Fu),this.A.i([this.ot])},i.prototype.Xe=function(){},i.prototype.Ze=function(){t.prototype.Ze.call(this),this.Fu.M=null},i.prototype.Ge=function(t,i,e){if(null!==this.je){var r=i.Wr(),n=c(i.mr()),o=t.K(this.qe.ct().base,e);i.Lr(this.Fu.m),t.Ss(this.Fu.m,e),this.Fu.Tu=o,this.Fu.M=t5(this.Fu.m,n,!1),this.Fu.Wr=r,this.ot._(this.Fu)}},i}(t6),il=function(t){function i(i,e){var r=t.call(this,i,e)||this;return r.hu=new t1,r}return s(i,t),i.prototype.P=function(t,i){if(!this.qe.U())return null;var e=this.qe.ct();this.Ye();var r={m:this.Ie,N:e.color,ut:e.lineStyle,Le:e.lineType,rt:e.lineWidth,M:this.je,Te:this.Ue.j().Wr()};return this.hu._(r),this.hu},i.prototype.nu=function(t,i){return this.Qe(t,i)},i}(t8),ic=/[2-9]/g,ip=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,i,e){var r=String(i).replace(e||ic,"0"),n=this.kh.get(r);if(void 0===n){if(0===(n=t.measureText(r).width)&&0!==i.length)return 0;var o=this.Vu[this.Eu];void 0!==o&&this.kh.delete(o),this.Vu[this.Eu]=r,this.Eu=(this.Eu+1)%this.Vu.length,this.kh.set(r,n)}return n},t}(),iv=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,i,e,r){this.Wu=t,this.oe=i,this.$h=e,this.zu=r},t.prototype.h=function(t,i){null!==this.oe&&null!==this.Wu&&this.Wu.h(t,this.oe,this.Pu,this.$h,this.zu,i)},t}(),iy=function(){function t(t,i,e){this.Iu=t,this.Pu=new ip(50),this.ju=i,this.F=e,this.fe=-1,this.ot=new iv(this.Pu)}return t.prototype.P=function(t,i){var e=this.F.qu(this.ju);if(null===e)return null;var r=e.Uu(this.ju)?e.xi():this.ju.$();if(null===r)return null;var n=e.Hu(r);if("overlay"===n)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,i,n),this.ot},t}(),id=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,i,e,o){if(null!==this.tt&&!1!==this.tt.U){var s=Math.round(this.tt.g*i);if(!(s<0||s>Math.ceil(this.tt.Mt*i))){var h=Math.ceil(this.tt.wt*i);t.lineCap="butt",t.strokeStyle=this.tt.et,t.lineWidth=Math.floor(this.tt.rt*i),r(t,this.tt.ut),n(t,s,0,h)}}},t}(),im=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 id,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,i){return this.qe.U()?(this.L&&(this.Xu(t,i),this.L=!1),this.$u):null},t}(),ig=function(t){function i(i){return t.call(this,i)||this}return s(i,t),i.prototype.Xu=function(t,i){this.Ku.U=!1;var e=this.qe.$(),r=e.os().os;if(2===r||3===r){var n=this.qe.ct();if(n.baseLineVisible&&this.qe.U()){var o=this.qe.H();null!==o&&(this.Ku.U=!0,this.Ku.g=e.K(o.X,o.X),this.Ku.wt=i,this.Ku.Mt=t,this.Ku.et=n.baseLineColor,this.Ku.rt=n.baseLineWidth,this.Ku.ut=n.baseLineStyle)}}},i}(im),iw=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,i,e,r){var n=this.tt;if(null!==n){t.save();var o=Math.max(1,Math.floor(i)),s=o%2/2,h=Math.round(n.Lu.x*i)+s,a=n.Lu.y*i;t.fillStyle=n.Ju,t.beginPath();var u=Math.max(2,1.5*n.Gu)*i;t.arc(h,a,u,0,2*Math.PI,!1),t.fill(),t.fillStyle=n.Qu,t.beginPath(),t.arc(h,a,n.C*i,0,2*Math.PI,!1),t.fill(),t.lineWidth=o,t.strokeStyle=n.ta,t.beginPath(),t.arc(h,a,n.C*i+o/2,0,2*Math.PI,!1),t.stroke(),t.restore()}},t}(),ib=[{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 iM(t,i,e,r){return function(t,i){if("transparent"===t)return t;var e=R(t),r=e[3];return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+i*r+")"}(t,e+(r-e)*i)}function i_(t,i){for(var e,r=t%2600/2600,n=0;n<ib.length;n++){var o=ib[n];if(r>=o.ia&&r<=o.na){e=o;break}}u(void 0!==e,"Last price animation internal logic error");var s,h=(r-e.ia)/(e.na-e.ia);return{Qu:iM(i,h,e.ra,e.ea),ta:iM(i,h,e.ua,e.aa),C:(s=e.sa)+(e.ha-s)*h}}var iS=function(){function t(t){this.ot=new iw,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 i=performance.now(),e=this.fa-i;if(e>0)return void(e<650&&(this.fa+=2600));this.la=i,this.fa=i+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,i){return this.L?(this.R(t,i),this.L=!1,this.oa=!1):this.oa&&(this.da(),this.oa=!1),this.ot},t.prototype.R=function(t,i){this.ot._(null);var e=this.ca.vt().j(),r=e.mr(),n=this.ca.H();if(null!==r&&null!==n){var o=this.ca.wa(!0);if(!o.Ma&&r.Eh(o.Ph)){var s={x:e.G(o.Ph),y:this.ca.$().K(o.D,n.X)},h=o.et,a=this.ca.ct().lineWidth,u=i_(this.ba(),h);this.ot._({Ju:h,Gu:a,Qu:u.Qu,ta:u.ta,C:u.C,Lu:s})}}},t.prototype.da=function(){var t=this.ot.Zu();if(null!==t){var i=i_(this.ba(),t.Ju);t.Qu=i.Qu,t.ta=i.ta,t.C=i.C}},t.prototype.ba=function(){return this._a()?performance.now()-this.la:2599},t}();function iE(t,i){return ta(Math.min(Math.max(t,12),30)*i)}function ik(t,i){switch(t){case"arrowDown":case"arrowUp":return iE(i,1);case"circle":return iE(i,.8);case"square":return iE(i,.7)}}function ix(t){return Math.max(iE(t,.1),3)}function iA(t,i,e,r,n){var o=ik("square",e),s=(o-1)/2,h=t-s,a=i-s;return r>=h&&r<=h+o&&n>=a&&n<=a+o}function iT(t,i,e,r,n){var o=(ik("arrowUp",n)-1)/2,s=(ta(n/2)-1)/2;i.beginPath(),t?(i.moveTo(e-o,r),i.lineTo(e,r-o),i.lineTo(e+o,r),i.lineTo(e+s,r),i.lineTo(e+s,r+o),i.lineTo(e-s,r+o)):(i.moveTo(e-o,r),i.lineTo(e,r+o),i.lineTo(e+o,r),i.lineTo(e+s,r),i.lineTo(e+s,r-o),i.lineTo(e-s,r-o)),i.lineTo(e-s,r),i.fill()}var iC=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.tt=null,i.Pu=new ip,i.fe=-1,i.ce="",i.ma="",i}return s(i,t),i.prototype._=function(t){this.tt=t},i.prototype.Ru=function(t,i){this.fe===t&&this.ce===i||(this.fe=t,this.ce=i,this.ma=tq(t,i),this.Pu.Ou())},i.prototype.pa=function(t,i){if(null===this.tt||null===this.tt.M)return null;for(var e=this.tt.M.from;e<this.tt.M.to;e++){var r=this.tt.m[e];if(function(t,i,e){var r,n,o,s;return!(void 0===t.Et||(r=t.p,n=t.Et.g,o=t.Et.wt,s=t.Et.Mt/2,!(i>=r)||!(i<=r+o)||!(e>=n-s)||!(e<=n+s)))||function(t,i,e){var r,n,o,s,h,a;if(0===t.Je)return!1;switch(t.Na){case"arrowDown":case"arrowUp":return r=t.p,iA(r,t.g,t.Je,i,e);case"circle":return n=t.p,o=t.g,s=2+ik("circle",t.Je)/2,Math.sqrt((h=n-i)*h+(a=o-e)*a)<=s;case"square":return iA(t.p,t.g,t.Je,i,e)}}(t,i,e)}(r,t,i))return{ga:r.ya,ka:r.ka}}return null},i.prototype.u=function(t,i,e){if(null!==this.tt&&null!==this.tt.M){t.textBaseline="middle",t.font=this.ma;for(var r=this.tt.M.from;r<this.tt.M.to;r++){var n=this.tt.m[r];void 0!==n.Et&&(n.Et.wt=this.Pu.Vt(t,n.Et.Ca),n.Et.Mt=this.fe),t.fillStyle=n.et,void 0!==n.Et&&function(t,i,e,r){t.fillText(i,e,r)}(t,n.Et.Ca,n.p-n.Et.wt/2,n.Et.g),function(t,i){if(0!==t.Je){switch(t.Na){case"arrowDown":return void iT(!1,i,t.p,t.g,t.Je);case"arrowUp":return void iT(!0,i,t.p,t.g,t.Je);case"circle":var e,r,n;return void(e=t.p,r=t.g,n=(ik("circle",t.Je)-1)/2,i.beginPath(),i.arc(e,r,n,0,2*Math.PI,!1),i.fill());case"square":return void function(t,i,e,r){var n=ik("square",r),o=(n-1)/2;t.fillRect(i-o,e-o,n,n)}(i,t.p,t.g,t.Je)}t.Na}}(n,t)}}},i}(_),iP=function(){function t(t,i){this.L=!0,this.Da=!0,this.Aa=!0,this.Ta=null,this.ot=new iC,this.ca=t,this.hi=i,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,i,e){if(!this.ca.U())return null;this.L&&this.Ye();var r=this.hi.ct().layout;return this.ot.Ru(r.fontSize,r.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(),i=ix(t),e=1.5*th(iE(t,1))+2*i;this.Ta={above:e,below:e}}else this.Ta=null;this.Aa=!1}return this.Ta},t.prototype.Ye=function(){var t=this.ca.$(),i=this.hi.j(),e=this.ca.La();this.Da&&(this.tt.m=e.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 r=this.hi.ct().layout;this.tt.M=null;var n=i.mr();if(null!==n){var o=this.ca.H();if(null!==o&&0!==this.tt.m.length){var s=NaN,h=ix(i.Wr()),a={xa:h,Sa:h};this.tt.M=t5(this.tt.m,n,!0);for(var u=this.tt.M.from;u<this.tt.M.to;u++){var l=e[u];l.time!==s&&(a.xa=h,a.Sa=h,s=l.time);var c=this.tt.m[u];c.p=i.G(l.time),void 0!==l.text&&l.text.length>0&&(c.Et={Ca:l.text,g:0,wt:0,Mt:0});var f=this.ca.Fa(l.time);null!==f&&function(t,i,e,r,n,o,s,h,a){var u=v(e)?e:e.close,l=v(e)?e:e.high,c=v(e)?e:e.low,f=v(i.size)?Math.max(i.size,0):1,p=th(iE(h.Wr(),1))*f,y=p/2;switch(t.Je=p,i.position){case"inBar":return t.g=s.K(u,a),void(void 0!==t.Et&&(t.Et.g=t.g+y+o+.6*n));case"aboveBar":return t.g=s.K(l,a)-y-r.xa,void 0!==t.Et&&(t.Et.g=t.g-y-.6*n,r.xa+=1.2*n),void(r.xa+=p+o);case"belowBar":return t.g=s.K(c,a)+y+r.Sa,void 0!==t.Et&&(t.Et.g=t.g+y+o+.6*n,r.Sa+=1.2*n),void(r.Sa+=p+o)}i.position}(c,l,f,a,r.fontSize,h,t,i,o.X)}this.L=!1}}},t}(),iL=function(t){function i(i){return t.call(this,i)||this}return s(i,t),i.prototype.Xu=function(t,i){var e=this.Ku;e.U=!1;var r=this.qe.ct();if(r.priceLineVisible&&this.qe.U()){var n=this.qe.wa(0===r.priceLineSource);n.Ma||(e.U=!0,e.g=n.zt,e.et=this.qe.Ea(n.et),e.wt=i,e.Mt=t,e.rt=r.priceLineWidth,e.ut=r.priceLineStyle)}},i}(im),iO=function(t){function i(i){var e=t.call(this)||this;return e.lt=i,e}return s(i,t),i.prototype.Jt=function(t,i,e){t.U=!1,i.U=!1;var r=this.lt;if(r.U()){var n=r.ct(),o=n.lastValueVisible,s=""!==r.Va(),h=0===n.seriesLastValueMode,a=r.wa(!1);if(!a.Ma){o&&(t.Et=this.Oa(a,o,h),t.U=0!==t.Et.length),(s||h)&&(i.Et=this.Wa(a,o,s,h),i.U=i.Et.length>0);var u=r.Ea(a.et),l=I(u);e.yt=l.yt,e.et=l.kt,e.zt=a.zt,i.Z=r.vt().J(a.zt/r.$().Mt()),t.Z=u}}},i.prototype.Wa=function(t,i,e,r){var n="",o=this.lt.Va();return e&&0!==o.length&&(n+=o+" "),i&&r&&(n+=this.lt.$().cs()?t.za:t.Pa),n.trim()},i.prototype.Oa=function(t,i,e){return i?e?this.lt.$().cs()?t.Pa:t.za:t.Et:""},i}(H),iN=function(){function t(t,i){this.On=t,this.Ra=i||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(i){return null===i?null:new t(tn.bn(i.priceRange),i.margins)},t}(),ij=function(t){function i(i,e){var r=t.call(this,i)||this;return r.Ia=e,r}return s(i,t),i.prototype.Xu=function(t,i){var e=this.Ku;if(e.U=!1,this.qe.U()){var r=this.Ia.ja();if(null!==r){var n=this.Ia.ct();e.U=!0,e.g=r,e.et=n.color,e.wt=i,e.Mt=t,e.rt=n.lineWidth,e.ut=n.lineStyle}}},i}(im),iD=function(t){function i(i,e){var r=t.call(this)||this;return r.ca=i,r.Ia=e,r}return s(i,t),i.prototype.Jt=function(t,i,e){t.U=!1,i.U=!1;var r=this.Ia.ct(),n=r.axisLabelVisible,o=""!==r.title,s=this.ca;if(n&&s.U()){var h=this.Ia.ja();if(null!==h){o&&(i.Et=r.title,i.U=!0),i.Z=s.vt().J(h/s.$().Mt()),t.Et=s.$().Zs(r.price),t.U=!0;var a=I(r.color);e.yt=a.yt,e.et=a.kt,e.zt=h}}},i}(H),iR=function(){function t(t,i){this.ca=t,this.ki=i,this.qa=new ij(t,this),this.Iu=new iD(t,this),this.Ua=new iy(this.Iu,t,t.vt())}return t.prototype.rs=function(t){p(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,i=t.$();if(t.vt().j().ti()||i.ti())return null;var e=t.H();return null===e?null:i.K(this.ki.price,e.X)},t}(),iI=function(t){function i(i){var e=t.call(this)||this;return e.hi=i,e}return s(i,t),i.prototype.vt=function(){return this.hi},i}(Y),iF={fu:"",Su:"",xu:""},iU=function(){function t(t){this.ca=t}return t.prototype.cu=function(t,i){var e=this.ca.Ya(),r=this.ca.ct();switch(e){case"Line":return this.Ka(r);case"Area":return this.$a(r);case"Baseline":return this.Xa(r,t,i);case"Bar":return this.Za(r,t,i);case"Candlestick":return this.Ja(r,t,i);case"Histogram":return this.Ga(r,t,i)}throw Error("Unknown chart style")},t.prototype.Za=function(t,i,e){var r=h({},iF),n=t.upColor,o=t.downColor,s=c(this.Qa(i,e)),a=f(s.X[0])<=f(s.X[3]);return r.fu=a?n:o,r.Su=a?n:o,r},t.prototype.Ja=function(t,i,e){var r=h({},iF),n=t.upColor,o=t.downColor,s=t.borderUpColor,a=t.borderDownColor,u=t.wickUpColor,l=t.wickDownColor,p=c(this.Qa(i,e)),v=f(p.X[0])<=f(p.X[3]);return r.fu=v?n:o,r.Su=v?s:a,r.xu=v?u:l,r},t.prototype.$a=function(t){return h(h({},iF),{fu:t.lineColor})},t.prototype.Xa=function(t,i,e){var r=c(this.Qa(i,e)).X[3]>=t.baseValue.price;return h(h({},iF),{fu:r?t.topLineColor:t.bottomLineColor})},t.prototype.Ka=function(t){return h(h({},iF),{fu:t.color})},t.prototype.Ga=function(t,i,e){var r=h({},iF),n=c(this.Qa(i,e));return r.fu=void 0!==n.et?n.et:t.color,r},t.prototype.Qa=function(t,i){return void 0!==i?i.X:this.ca.Hi().io(t)},t}(),iB=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,i){void 0===i&&(i=0);var e=this.ao(t,i);return null===e?null:h(h({},this.lo(e)),{Ph:this.uo(e)})},t.prototype.iu=function(){return this.no},t.prototype.fo=function(t,i,e){if(this.ti())return null;for(var r=null,n=0;n<e.length;n++){var o=e[n];r=i$(r,this.co(t,i,o))}return r},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,i){var e=this.vo(t);if(null===e&&0!==i)switch(i){case -1:return this._o(t);case 1:return this.do(t);default:throw TypeError("Unknown search mode")}return e},t.prototype._o=function(t){var i=this.wo(t);return i>0&&(i-=1),i!==this.no.length&&this.uo(i)<t?i:null},t.prototype.do=function(t){var i=this.Mo(t);return i!==this.no.length&&t<this.uo(i)?i:null},t.prototype.vo=function(t){var i=this.wo(t);return i===this.no.length||t<this.no[i].Ph?null:i},t.prototype.wo=function(t){return tL(this.no,t,function(t,i){return t.Ph<i})},t.prototype.Mo=function(t){return tO(this.no,t,function(t,i){return i.Ph>t})},t.prototype.bo=function(t,i,e){for(var r=null,n=t;n<i;n++){var o=this.no[n].X[e];Number.isNaN(o)||(null===r?r={mo:o,po:o}:(o<r.mo&&(r.mo=o),o>r.po&&(r.po=o)))}return r},t.prototype.co=function(t,i,e){if(this.ti())return null;var r=null,n=c(this.eo()),o=c(this.Ui()),s=Math.max(t,n),h=Math.min(i,o),a=30*Math.ceil(s/30),u=Math.max(a,30*Math.floor(h/30)),l=this.wo(s),f=this.Mo(Math.min(h,a,i));r=i$(r,this.bo(l,f,e));var p=this.so.get(e);void 0===p&&(p=new Map,this.so.set(e,p));for(var v=Math.max(a+1,s);v<u;v+=30){var y=Math.floor(v/30),d=p.get(y);if(void 0===d){var m=this.wo(30*y),g=this.Mo(30*(y+1)-1);d=this.bo(m,g,e),p.set(y,d)}r=i$(r,d)}return l=this.wo(u),f=this.Mo(h),i$(r,this.bo(l,f,e))},t}();function i$(t,i){return null===t?i:null===i?t:{mo:Math.min(t.mo,i.mo),po:Math.max(t.po,i.po)}}var iV=function(t){function i(i,e,r){var n=t.call(this,i)||this;n.tt=new iB,n.qa=new iL(n),n.yo=[],n.ko=new ig(n),n.Co=null,n.No=null,n.xo=[],n.So=[],n.Do=null,n.ki=e,n.Ao=r;var o=new iO(n);return n.Mi=[o],n.Ua=new iy(o,n,i),"Area"!==r&&"Line"!==r&&"Baseline"!==r||(n.Co=new iS(n)),n.To(),n.Bo(),n}return s(i,t),i.prototype.en=function(){null!==this.Do&&clearTimeout(this.Do)},i.prototype.Ea=function(t){return this.ki.priceLineColor||t},i.prototype.wa=function(t){var i={Ma:!0},e=this.$();if(this.vt().j().ti()||e.ti()||this.tt.ti())return i;var r,n,o=this.vt().j().mr(),s=this.H();if(null===o||null===s)return i;if(t){var h=this.tt.ro();if(null===h)return i;r=h,n=h.Ph}else{var a=this.tt.oo(o.rh(),-1);if(null===a||null===(r=this.tt.io(a.Ph)))return i;n=a.Ph}var u=r.X[3],l=this.tu().cu(n,{X:r}),c=e.K(u,s.X);return{Ma:!1,D:u,Et:e.ii(u,s.X),za:e.Zs(u),Pa:e.Gs(u,s.X),et:l.fu,zt:c,Ph:n}},i.prototype.tu=function(){return null!==this.No||(this.No=new iU(this)),this.No},i.prototype.ct=function(){return this.ki},i.prototype.rs=function(t){var i=t.priceScaleId;void 0!==i&&i!==this.ki.priceScaleId&&this.vt().Lo(this,i),p(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")},i.prototype._=function(t){this.tt._(t),this.Vo(),this.Ai.O("data"),this.Ci.O("data"),null===(i=this.Co)||void 0===i||i.O("data");var i,e=this.vt().qu(this);this.vt().Oo(e),this.vt().Fo(this),this.vt().Eo(),this.vt().Or()},i.prototype.Wo=function(t){this.xo=t.map(function(t){return h({},t)}),this.Vo();var i=this.vt().qu(this);this.Ci.O("data"),this.vt().Oo(i),this.vt().Fo(this),this.vt().Eo(),this.vt().Or()},i.prototype.La=function(){return this.So},i.prototype.zo=function(t){var i=new iR(this,t);return this.yo.push(i),this.vt().Fo(this),i},i.prototype.Po=function(t){var i=this.yo.indexOf(t);-1!==i&&this.yo.splice(i,1),this.vt().Fo(this)},i.prototype.Ya=function(){return this.Ao},i.prototype.H=function(){var t=this.Ro();return null===t?null:{X:t.X[3],Rs:t.S}},i.prototype.Ro=function(){var t=this.vt().j().mr();if(null===t)return null;var i=t.hh();return this.tt.oo(i,1)},i.prototype.Hi=function(){return this.tt},i.prototype.Fa=function(t){var i=this.tt.io(t);return null===i?null:"Bar"===this.Ao||"Candlestick"===this.Ao?{open:i.X[0],high:i.X[1],low:i.X[2],close:i.X[3]}:i.X[3]},i.prototype.Io=function(t){var i=this,e=this.Co;return null!==e&&e.U()?(null===this.Do&&e._a()&&(this.Do=setTimeout(function(){i.Do=null,i.vt().jo()},0)),e.va(),[e]):[]},i.prototype.zi=function(){var t=[];this.qo()||t.push(this.ko);for(var i=0,e=this.yo;i<e.length;i++){var r=e[i];t.push.apply(t,r.zi())}return t.push(this.Ai,this.qa,this.Ua,this.Ci),t},i.prototype.Pi=function(t,i){if(i!==this.ui&&!this.qo())return[];for(var e=a([],this.Mi,!0),r=0,n=this.yo;r<n.length;r++){var o=n[r];e.push(o.Ha())}return e},i.prototype.sh=function(t,i){var e=this;if(void 0!==this.ki.autoscaleInfoProvider){var r=this.ki.autoscaleInfoProvider(function(){var r=e.Uo(t,i);return null===r?null:r.Mn()});return iN.bn(r)}return this.Uo(t,i)},i.prototype.ih=function(){return this.ki.priceFormat.minMove},i.prototype.$s=function(){return this.Zn},i.prototype.Ii=function(){var t;this.Ai.O(),this.Ci.O();for(var i=0,e=this.Mi;i<e.length;i++)e[i].O();for(var r=0,n=this.yo;r<n.length;r++)n[r].O();this.qa.O(),this.ko.O(),null===(t=this.Co)||void 0===t||t.O()},i.prototype.$=function(){return c(t.prototype.$.call(this))},i.prototype.q=function(t){if(!(("Line"===this.Ao||"Area"===this.Ao||"Baseline"===this.Ao)&&this.ki.crosshairMarkerVisible))return null;var i=this.tt.io(t);return null===i?null:{D:i.X[3],C:this.Ho(),Z:this.Yo(),Y:this.Ko(t)}},i.prototype.Va=function(){return this.ki.title},i.prototype.U=function(){return this.ki.visible},i.prototype.qo=function(){return!tZ(this.$().hs())},i.prototype.Uo=function(t,i){if(!y(t)||!y(i)||this.tt.ti())return null;var e="Line"===this.Ao||"Area"===this.Ao||"Baseline"===this.Ao||"Histogram"===this.Ao?[3]:[2,1],r=this.tt.fo(t,i,e),n=null!==r?new tn(r.mo,r.po):null;if("Histogram"===this.Ya()){var o=this.ki.base,s=new tn(o,o);n=null!==n?n._n(s):s}return new iN(n,this.Ci.Ba())},i.prototype.Ho=function(){switch(this.Ao){case"Line":case"Area":case"Baseline":return this.ki.crosshairMarkerRadius}return 0},i.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},i.prototype.Ko=function(t){switch(this.Ao){case"Line":case"Area":case"Baseline":var i=this.ki.crosshairMarkerBackgroundColor;if(0!==i.length)return i}return this.tu().cu(t).fu},i.prototype.To=function(){switch(this.ki.priceFormat.type){case"custom":this.Zn={format:this.ki.priceFormat.formatter};break;case"volume":this.Zn=new tX(this.ki.priceFormat.precision);break;case"percent":this.Zn=new te(this.ki.priceFormat.precision);break;default:var t=Math.pow(10,this.ki.priceFormat.precision);this.Zn=new ti(t,this.ki.priceFormat.minMove*t)}null!==this.ui&&this.ui.es()},i.prototype.Vo=function(){var t=this,i=this.vt().j();if(i.ti()||0===this.tt.Je())this.So=[];else{var e=c(this.tt.eo());this.So=this.xo.map(function(r,n){var o=c(i.br(r.time,!0));return{time:c(t.tt.oo(o,o<e?1:-1)).Ph,position:r.position,shape:r.shape,color:r.color,id:r.id,ya:n,text:r.text,size:r.size}})}},i.prototype.Bo=function(){switch(this.Ci=new iP(this,this.vt()),this.Ao){case"Bar":this.Ai=new it(this,this.vt());break;case"Candlestick":this.Ai=new is(this,this.vt());break;case"Line":this.Ai=new il(this,this.vt());break;case"Area":this.Ai=new t9(this,this.vt());break;case"Baseline":this.Ai=new ir(this,this.vt());break;case"Histogram":this.Ai=new iu(this,this.vt());break;default:throw Error("Unknown chart style assigned: "+this.Ao)}},i}(iI),iz=function(){function t(t){this.ki=t}return t.prototype.$o=function(t,i,e){if(0===this.ki.mode)return t;var r=e.xi(),n=r.H();if(null===n)return t;var o=r.K(t,n),s=e.Vs().filter(function(t){return t instanceof iV}).reduce(function(t,r){if(e.Uu(r)||!r.U())return t;var n=r.$(),o=r.Hi();if(n.ti()||!o.Eh(i))return t;var s=o.io(i);if(null===s)return t;var h=f(r.H());return t.concat([n.K(s.X[3],h.X)])},[]);if(0===s.length)return t;s.sort(function(t,i){return Math.abs(t-o)-Math.abs(i-o)});var h=s[0];return r.Si(h,n)},t}(),iW=function(){function t(){this.tt=null}return t.prototype._=function(t){this.tt=t},t.prototype.h=function(t,i,e,n){var o=this;if(null!==this.tt){var s,h=Math.max(1,Math.floor(i));t.lineWidth=h;var a=Math.ceil(this.tt.ht*i),u=Math.ceil(this.tt.st*i);s=function(){var e=c(o.tt);if(e.Xo){t.strokeStyle=e.Zo,r(t,e.Jo),t.beginPath();for(var n=0,s=e.Go;n<s.length;n++){var l=Math.round(s[n].An*i);t.moveTo(l,-h),t.lineTo(l,a+h)}t.stroke()}if(e.Qo){t.strokeStyle=e.tl,r(t,e.il),t.beginPath();for(var f=0,p=e.nl;f<p.length;f++){var v=Math.round(p[f].An*i);t.moveTo(-h,v),t.lineTo(u+h,v)}t.stroke()}},t.save(),t.lineWidth%2&&t.translate(.5,.5),s(),t.restore()}},t}(),iG=function(){function t(t){this.ot=new iW,this.L=!0,this.vi=t}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,i){if(this.L){var e=this.vi.vt().ct().grid,r={ht:t,st:i,Qo:e.horzLines.visible,Xo:e.vertLines.visible,tl:e.horzLines.color,Zo:e.vertLines.color,il:e.horzLines.style,Jo:e.vertLines.style,nl:this.vi.xi().Fn(),Go:this.vi.vt().j().Fn()||[]};this.ot._(r),this.L=!1}return this.ot},t}(),iq=function(){function t(t){this.Ai=new iG(t)}return t.prototype.sl=function(){return this.Ai},t}(),iH=function(){function t(t,i){this.Hn=[],this.hl=new Map,this.En=0,this.$h=0,this.rl=1e3,this.Yn=null,this.el=new tr,this.ul=t,this.hi=i,this.al=new iq(this);var e=i.ct();this.ol=this.ll("left",e.leftPriceScale),this.fl=this.ll("right",e.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(e)}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 i=0,e=Array.from(this.hl.values());i<e.length;i++){var r=c(e[i][0].$());r.rs(t.overlayPriceScales),t.localization&&r.es()}},t.prototype._l=function(t){switch(t){case"left":return this.ol;case"right":return this.fl}return this.hl.has(t)?l(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 i=this;this.En=t,this.ol.ps(t),this.fl.ps(t),this.Hn.forEach(function(e){if(i.Uu(e)){var r=e.$();null!==r&&r.ps(t)}}),this.bl()},t.prototype.Vs=function(){return this.Hn},t.prototype.Uu=function(t){var i=t.$();return null===i||this.ol!==i&&this.fl!==i},t.prototype.Ws=function(t,i,e){var r=void 0!==e?e:this.pl().ml+1;this.gl(t,i,r)},t.prototype.Ps=function(t){var i=this.Hn.indexOf(t);u(-1!==i,"removeDataSource: invalid data source"),this.Hn.splice(i,1);var e=c(t.$()).hs();if(this.hl.has(e)){var r=l(this.hl.get(e)),n=r.indexOf(t);-1!==n&&(r.splice(n,1),0===r.length&&this.hl.delete(e))}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,i){t.js(i)},t.prototype.xl=function(t,i){t.qs(i),this.bl()},t.prototype.Sl=function(t){t.Us()},t.prototype.Dl=function(t,i){t.Hs(i)},t.prototype.Al=function(t,i){t.Ys(i),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 i=this.ul.mr();t.us({_s:!0}),null!==i&&t.th(i),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(i){t.Uu(i)&&t.yl(i.$())}),this.bl(),this.hi.Or()},t.prototype.Os=function(){return null===this.Yn&&(this.Yn=tg(this.Hn)),this.Yn},t.prototype.Vl=function(){return this.el},t.prototype.Ol=function(){return this.al},t.prototype.Bl=function(t){var i=t.Qs();if(i&&i.length>0&&!this.ul.ti()){var e=this.ul.mr();null!==e&&t.th(e)}t.Ii()},t.prototype.pl=function(){var t=this.Os();if(0===t.length)return{Wl:0,ml:0};for(var i=0,e=0,r=0;r<t.length;r++){var n=t[r].oi();null!==n&&(n<i&&(i=n),n>e&&(e=n))}return{Wl:i,ml:e}},t.prototype.gl=function(t,i,e){var r=this._l(i);if(null===r&&(r=this.ll(i,this.hi.ct().overlayPriceScales)),this.Hn.push(t),!tZ(i)){var n=this.hl.get(i)||[];n.push(t),this.hl.set(i,n)}r.Ws(t),t.fi(r),t.li(e),this.yl(r),this.Yn=null},t.prototype.cl=function(t,i,e){i.os!==e.os&&this.Bl(t)},t.prototype.ll=function(t,i){var e=new tE(t,h({visible:!0,autoScale:!0},g(i)),this.hi.ct().layout,this.hi.ct().localization);return e.ps(this.Mt()),e},t}(),iZ=function(t){function i(i){var e=t.call(this)||this;return e.zl=new Map,e.tt=i,e}return s(i,t),i.prototype.u=function(t){},i.prototype.l=function(t){if(this.tt.U){t.save();for(var i=0,e=0,r=this.tt.Pl;e<r.length;e++)if(0!==(a=r[e]).Et.length){t.font=a.Nt;var n=this.Rl(t,a.Et);n>this.tt.wt?a.Ur=this.tt.wt/n:a.Ur=1,i+=a.Il*a.Ur}var o=0;switch(this.tt.jl){case"top":o=0;break;case"center":o=Math.max((this.tt.Mt-i)/2,0);break;case"bottom":o=Math.max(this.tt.Mt-i,0)}t.fillStyle=this.tt.et;for(var s=0,h=this.tt.Pl;s<h.length;s++){var a=h[s];t.save();var u=0;switch(this.tt.ql){case"left":t.textAlign="left",u=a.Il/2;break;case"center":t.textAlign="center",u=this.tt.wt/2;break;case"right":t.textAlign="right",u=this.tt.wt-1-a.Il/2}t.translate(u,o),t.textBaseline="top",t.font=a.Nt,t.scale(a.Ur,a.Ur),t.fillText(a.Et,0,a.Ul),t.restore(),o+=a.Il*a.Ur}t.restore()}},i.prototype.Rl=function(t,i){var e=this.Hl(t.font),r=e.get(i);return void 0===r&&(r=t.measureText(i).width,e.set(i,r)),r},i.prototype.Hl=function(t){var i=this.zl.get(t);return void 0===i&&(i=new Map,this.zl.set(t,i)),i},i}(_),iK=function(){function t(t){this.L=!0,this.at={U:!1,et:"",Mt:0,wt:0,Pl:[],jl:"center",ql:"center"},this.ot=new iZ(this.at),this.lt=t}return t.prototype.O=function(){this.L=!0},t.prototype.P=function(t,i){return this.L&&(this.R(t,i),this.L=!1),this.ot},t.prototype.R=function(t,i){var e=this.lt.ct(),r=this.at;r.U=e.visible,r.U&&(r.et=e.color,r.wt=i,r.Mt=t,r.ql=e.horzAlign,r.jl=e.vertAlign,r.Pl=[{Et:e.text,Nt:tq(e.fontSize,e.fontFamily,e.fontStyle),Il:1.2*e.fontSize,Ul:0,Ur:0}])},t}(),iX=function(t){function i(i,e){var r=t.call(this)||this;return r.ki=e,r.Ai=new iK(r),r}return s(i,t),i.prototype.Pi=function(){return[]},i.prototype.zi=function(){return[this.Ai]},i.prototype.ct=function(){return this.ki},i.prototype.Ii=function(){this.Ai.O()},i}(Y),iJ=function(){function t(t,i){this.Yl=[],this.Kl=[],this.$h=0,this.$l=null,this.Xl=null,this.Zl=new tr,this.Jl=new tr,this.Gl=null,this.Ql=t,this.ki=i,this.tf=new tH(this),this.ul=new tz(this,i.timeScale,this.ki.localization),this.V=new Q(this,i.crosshair),this.if=new iz(i.crosshair),this.nf=new iX(this,i.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 tK(3))},t.prototype.Or=function(){this.af(new tK(2))},t.prototype.jo=function(){this.af(new tK(1))},t.prototype.Fo=function(t){var i=this.lf(t);this.af(i)},t.prototype.ff=function(){return this.Xl},t.prototype.cf=function(t){var i=this.Xl;this.Xl=t,null!==i&&this.Fo(i.vf),null!==t&&this.Fo(t.vf)},t.prototype.ct=function(){return this.ki},t.prototype.rs=function(t){p(this.ki,t),this.Yl.forEach(function(i){return i.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,i){var e=this.df(t);null!==e&&(e.$.rs(i),this.Zl.hn())},t.prototype.df=function(t){for(var i=0,e=this.Yl;i<e.length;i++){var r=e[i],n=r._l(t);if(null!==n)return{ft:r,$:n}}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,i){t.ps(i),this.Vr()},t.prototype.Dr=function(t){this.$h=t,this.ul.Dr(this.$h),this.Yl.forEach(function(i){return i.Dr(t)}),this.Vr()},t.prototype.sf=function(t){var i=new iH(this.ul,this);void 0!==t?this.Yl.splice(t,0,i):this.Yl.push(i);var e=void 0===t?this.Yl.length-1:t,r=new tK(3);return r.be(e,{me:0,_s:!0}),this.af(r),i},t.prototype.Nl=function(t,i,e){t.Nl(i,e)},t.prototype.xl=function(t,i,e){t.xl(i,e),this.Eo(),this.af(this.gf(t,2))},t.prototype.Sl=function(t,i){t.Sl(i),this.af(this.gf(t,2))},t.prototype.Dl=function(t,i,e){i.fs()||t.Dl(i,e)},t.prototype.Al=function(t,i,e){i.fs()||(t.Al(i,e),this.Eo(),this.af(this.gf(t,2)))},t.prototype.Tl=function(t,i){i.fs()||(t.Tl(i),this.af(this.gf(t,2)))},t.prototype.Ll=function(t,i){t.Ll(i),this.af(this.gf(t,2))},t.prototype.yf=function(t){this.ul.js(t)},t.prototype.kf=function(t,i){var e=this.j();e.ti()||0===i||(t=Math.max(1,Math.min(t,e.wt())),e.Ur(t,i),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 i=!1;return null!==this.$l&&Math.abs(t-this.$l)>20&&(this.$l=null,i=!0),this.ul.Ys(t),this.Vr(),i},t.prototype.Sf=function(){this.ul.Ks(),this.Or(),this.$l=null},t.prototype.W=function(){return this.Kl},t.prototype.Tf=function(t,i,e){this.V.Ti(t,i);var r=NaN,n=this.ul.Fr(t),o=this.ul.mr();null!==o&&(n=Math.min(Math.max(o.hh(),n),o.rh()));var s=e.xi(),h=s.H();null!==h&&(r=s.Si(i,h)),r=this.if.$o(r,n,e),this.V.Ei(n,r,e),this.jo(),this.Jl.hn(this.V.I(),{x:t,y:i})},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 i=this.V.Li(),e=this.V.Fi();this.Tf(i,e,t)}this.V.Ii()},t.prototype.Lf=function(t,i,e){var r=this.ul.ri(0);void 0!==i&&void 0!==e&&this.ul.O(i,e);var n=this.ul.ri(0),o=this.ul.Br(),s=this.ul.mr();if(null!==s&&null!==r&&null!==n){var h=s.Eh(o),a=r.Dh>n.Dh,u=null!==t&&t>o&&!a,l=h&&this.ul.ct().shiftVisibleRangeOnNewBar;if(u&&!l){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 i=this.Yl.find(function(i){return i.Os().includes(t)});return void 0===i?null:i},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,i){var e=this.Yl[0],r=this.Vf(i,t,e);return this.Kl.push(r),1===this.Kl.length?this.uf():this.Or(),r},t.prototype.Of=function(t){var i=this.qu(t),e=this.Kl.indexOf(t);u(-1!==e,"Series not found"),this.Kl.splice(e,1),c(i).Ps(t),t.en&&t.en()},t.prototype.Lo=function(t,i){var e=c(this.qu(t));e.Ps(t);var r=this.df(i);if(null===r){var n=t.oi();e.Ws(t,i,n)}else n=r.ft===e?t.oi():void 0,r.ft.Ws(t,i,n)},t.prototype.Qr=function(){var t=new tK(2);t.ye(),this.af(t)},t.prototype.Wf=function(t){var i=new tK(2);i.Ce(t),this.af(i)},t.prototype.Ne=function(){var t=new tK(2);t.Ne(),this.af(t)},t.prototype.wr=function(t){var i=new tK(2);i.wr(t),this.af(i)},t.prototype.Mr=function(t){var i=new tK(2);i.Mr(t),this.af(i)},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 i,e,r,n,o,s,h,a,u,l,c,f,p=this.ef,v=this.hf;if(p===v)return p;if(t=Math.max(0,Math.min(100,Math.round(100*t))),null===this.Gl||this.Gl.Ve!==v||this.Gl.Oe!==p)this.Gl={Ve:v,Oe:p,If:new Map};else{var y=this.Gl.If.get(t);if(void 0!==y)return y}var d=(i=t/100,r=(e=R(v))[0],n=e[1],o=e[2],s=e[3],a=(h=R(p))[0],u=h[1],l=h[2],c=h[3],"rgba("+(f=[P(r+i*(a-r)),P(n+i*(u-n)),P(o+i*(l-o)),L(s+i*(c-s))])[0]+", "+f[1]+", "+f[2]+", "+f[3]+")");return this.Gl.If.set(t,d),d},t.prototype.gf=function(t,i){var e=new tK(i);if(null!==t){var r=this.Yl.indexOf(t);e.be(r,{me:i})}return e},t.prototype.lf=function(t,i){return void 0===i&&(i=2),this.gf(this.qu(t),i)},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,i,e){var r=new iV(this,t,i),n=void 0!==t.priceScaleId?t.priceScaleId:this.zf();return e.Ws(r,n),tZ(n)||r.rs(t),r},t.prototype.rf=function(t){var i=this.ki.layout;return"gradient"===i.background.type?0===t?i.background.topColor:i.background.bottomColor:i.background.color},t}(),iY=function(){function t(t,i){this.st=t,this.ht=i}return t.prototype.on=function(t){return this.st===t.st&&this.ht===t.ht},t}();function iQ(t){return t.ownerDocument&&t.ownerDocument.defaultView&&t.ownerDocument.defaultView.devicePixelRatio||1}function i0(t){var i=c(t.getContext("2d"));return i.setTransform(1,0,0,1,0,0),i}function i1(t,i){var e=t.createElement("canvas"),r=iQ(e);return e.style.width=i.st+"px",e.style.height=i.ht+"px",e.width=i.st*r,e.height=i.ht*r,e}function i2(t,r){var n,o=c(t.ownerDocument).createElement("canvas");t.appendChild(o);var s=(void 0===n&&(n=i),new e(o,n));return s.resizeCanvas({width:r.st,height:r.ht}),s}function i3(t,i,e){var r=(t.jf-i.jf)/(t.S-i.S);return Math.sign(r)*Math.min(Math.abs(r),e)}var i5=function(){function t(t,i,e,r){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=i,this.Qf=e,this.Yi=r}return t.prototype.tc=function(t,i){if(null!==this.qf){if(this.qf.S===i)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:i,jf:t}},t.prototype.ia=function(t,i){if(null!==this.qf&&null!==this.Uf&&!(i-this.qf.S>50)){var e=0,r=i3(this.qf,this.Uf,this.Gf),n=(l=this.qf,c=this.Uf,l.jf-c.jf),o=[r],s=[n];if(e+=n,null!==this.Hf){var h=i3(this.Uf,this.Hf,this.Gf);if(Math.sign(h)===Math.sign(r)){var a=(f=this.Uf,p=this.Hf,f.jf-p.jf);if(o.push(h),s.push(a),e+=a,null!==this.Yf){var u=i3(this.Hf,this.Yf,this.Gf);if(Math.sign(u)===Math.sign(r)){var l,c,f,p,v,y,d=(v=this.Hf,y=this.Yf,v.jf-y.jf);o.push(u),s.push(d),e+=d}}}}for(var m,g,w=0,b=0;b<o.length;++b)w+=s[b]/e*o[b];Math.abs(w)<this.Jf||(this.Kf={jf:t,S:i},this.Xf=w,this.$f=(m=Math.abs(w),Math.log(-(1*(g=Math.log(this.Qf))/m))/g))}},t.prototype.ic=function(t){var i=c(this.Kf),e=t-i.S;return i.jf+this.Xf*(Math.pow(this.Qf,e)-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-c(this.Kf).S,this.$f)},t}(),i6="undefined"!=typeof window,i8=function(){if(!i6)return!1;var t=!!navigator.maxTouchPoints||!!navigator.msMaxTouchPoints||!!i6&&("ontouchstart"in window||!!(window.DocumentTouch&&document instanceof window.DocumentTouch));return"onorientationchange"in window&&t}(),i9=function(){if(!i6)return!1;var t=/Android/i.test(navigator.userAgent),i=/iPhone|iPad|iPod|AppleWebKit.+Mobile/i.test(navigator.userAgent);return t||i}(),i4=function(){function t(t,i,e){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=i,this.ki=e,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 i=this;this._c&&this._c();var e=this.Dc.bind(this);this._c=function(){i.yc.removeEventListener("mousemove",e)},this.yc.addEventListener("mousemove",e),ei(t)&&this.Dc(t);var r=this.Ac(t);this.Tc(r,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||ei(t)){var i=this.Ac(t);this.Tc(i,this.kc.Lc)}},t.prototype.Fc=function(t){if((!("button"in t)||0===t.button)&&null===this.wc){var i=ei(t);if(!this.mc||!i){this.bc=!0;var e=this.Ac(t),r=f(this.lc),n=Math.abs(r.p-e.Ec),o=Math.abs(r.g-e.Vc),s=n+o>5;if(s||!i){if(s&&!this.fc&&i){var h=.5*n,a=o>=h&&!this.ki.Oc,u=h>o&&!this.ki.Wc;a||u||(this.mc=!0)}s&&(this.fc=!0,this.cc=!0,i&&this.Nc()),this.mc||(this.Tc(e,this.kc.zc),i&&ee(t))}}}},t.prototype.Pc=function(t){if(!("button"in t)||0===t.button){var i=this.Ac(t);this.Nc(),this.lc=null,this.gc=!1,this.dc&&(this.dc(),this.dc=null),ei(t)&&this.Rc(t),this.Tc(i,this.kc.Ic),++this.ec,this.uc&&this.ec>1?(this.Tc(i,this.kc.jc),this.xc()):this.cc||this.Tc(i,this.kc.qc),ei(t)&&(ee(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 i=this.Ac(t);this.cc=!1,this.fc=!1,this.mc=!1,ei(t)&&this.Sc(t),this.lc={p:i.Ec,g:i.Vc},this.dc&&(this.dc(),this.dc=null);var e=this.Fc.bind(this),r=this.Pc.bind(this),n=this.yc.ownerDocument.documentElement;this.dc=function(){n.removeEventListener("touchmove",e),n.removeEventListener("touchend",r),n.removeEventListener("mousemove",e),n.removeEventListener("mouseup",r)},n.addEventListener("touchmove",e,{passive:!1}),n.addEventListener("touchend",r,{passive:!1}),this.Nc(),ei(t)&&1===t.touches.length?this.ac=setTimeout(this.Hc.bind(this,t),240):(n.addEventListener("mousemove",e),n.addEventListener("mouseup",r)),this.gc=!0,this.Tc(i,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 i=this.yc.ownerDocument,e=function(i){t.kc.Kc&&(i.composed&&t.yc.contains(i.composedPath()[0])||i.target&&t.yc.contains(i.target)||t.kc.Kc())};this.vc=function(){i.removeEventListener("mousedown",e),i.removeEventListener("touchstart",e)},i.addEventListener("mousedown",e),i.addEventListener("touchstart",e,{passive:!0}),this.yc.addEventListener("mouseleave",this.Rc.bind(this)),this.yc.addEventListener("touchstart",this.Uc.bind(this),{passive:!0}),i8||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(i){return t.Gc(i.touches)},{passive:!0}),this.yc.addEventListener("touchmove",function(i){if(2===i.touches.length&&null!==t.wc&&void 0!==t.kc.Zc){var e=et(i.touches[0],i.touches[1])/t.Mc;t.kc.Zc(t.wc,e),ee(i)}},{passive:!1}),this.yc.addEventListener("touchend",function(i){t.Gc(i.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 i=i7(this.yc);this.wc={p:(t[0].clientX-i.left+(t[1].clientX-i.left))/2,g:(t[0].clientY-i.top+(t[1].clientY-i.top))/2},this.Mc=et(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 i=this.Ac(t);this.Tc(i,this.kc.iv)},t.prototype.Hc=function(t){var i=this.Ac(t);this.Tc(i,this.kc.nv),this.cc=!0,this.oc=!0},t.prototype.Tc=function(t,i){i&&i.call(this.kc,t)},t.prototype.Ac=function(t){i="touches"in t&&t.touches.length?t.touches[0]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0]:t;var i,e=i7(this.yc);return{sv:i.clientX,hv:i.clientY,Ec:i.pageX,Vc:i.pageY,rv:i.screenX,ev:i.screenY,uv:i.clientX-e.left,av:i.clientY-e.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 i7(t){return t.getBoundingClientRect()||{left:0,top:0}}function et(t,i){var e=t.clientX-i.clientX,r=t.clientY-i.clientY;return Math.sqrt(e*e+r*r)}function ei(t){return!!t.touches}function ee(t){t.cancelable&&t.preventDefault()}var er=function(){function t(t,i,e,r){this.Pu=new ip(200),this.fe=0,this._v="",this.ma="",this.Vu=[],this.dv=new Map,this.fe=t,this._v=i,this.ma=tq(t,e,r)}return t.prototype.en=function(){this.Pu.Ou(),this.Vu=[],this.dv.clear()},t.prototype.wv=function(t,i,e,r,n){var o=this.Mv(t,i);if("left"!==n){var s=iQ(t.canvas);e-=Math.floor(o.bv*s)}r-=Math.floor(o.Mt/2),t.drawImage(o.mv,e,r,o.wt,o.Mt)},t.prototype.Mv=function(t,i){var e,r=this;if(this.dv.has(i))e=l(this.dv.get(i));else{if(this.Vu.length>=200){var n=l(this.Vu.shift());this.dv.delete(n)}var o=iQ(t.canvas),s=Math.ceil(this.fe/4.5),h=Math.round(this.fe/10),a=Math.ceil(this.Pu.Vt(t,i)),u=th(Math.round(a+2*s)),c=th(this.fe+2*s),f=i1(document,new iY(u,c));e={Et:i,bv:Math.round(Math.max(1,a)),wt:Math.ceil(u*o),Mt:Math.ceil(c*o),mv:f},0!==a&&(this.Vu.push(e.Et),this.dv.set(e.Et,e)),F(t=i0(e.mv),o,function(){t.font=r.ma,t.fillStyle=r._v,t.fillText(i,0,c-s-h)})}return e},t}(),en=function(){function t(t,i,e,r){var n=this;this.Gt=null,this.pv=null,this.gv=null,this.yv=!1,this.kv=new ip(50),this.Cv=new er(11,"#000"),this._v=null,this.ma=null,this.Nv=0,this.xv=function(){n.Sv(n.tf.ct()),n.vi.Dv().vt().Or()},this.Av=function(){n.vi.Dv().vt().Or()},this.vi=t,this.ki=i,this.tf=e,this.Tv="left"===r,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=i2(this.Bv,new iY(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=i2(this.Bv,new iY(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 h={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 i4(this.Fv.canvas,h,{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 c(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 tq(this.Wt(),this.ki.fontFamily)},t.prototype.Hv=function(){var t=this.tf.ct(),i=this._v!==t.et,e=this.ma!==t.Nt;return(i||e)&&(this.Sv(t),this._v=t.et),e&&(this.kv.Ou(),this.ma=t.Nt),t},t.prototype.Yv=function(){if(null===this.Gt)return 0;var t=34,i=this.Hv(),e=i0(this.Lv.canvas),r=this.Gt.Fn();e.font=this.Uv(),r.length>0&&(t=Math.max(this.kv.Vt(e,r[0].Tn),this.kv.Vt(e,r[r.length-1].Tn)));for(var n=this.Kv(),o=n.length;o--;){var s=this.kv.Vt(e,n[o].Et());s>t&&(t=s)}var h=this.Gt.H();if(null!==h&&null!==this.pv){var a=this.Gt.Si(1,h),u=this.Gt.Si(this.pv.ht-2,h);t=Math.max(t,this.kv.Vt(e,this.Gt.ii(Math.floor(Math.min(a,u))+.11111111111111,h)),this.kv.Vt(e,this.Gt.ii(Math.ceil(Math.max(a,u))-.11111111111111,h)))}var l=Math.ceil(i.At+i.Dt+i.Lt+i.Ft+t);return l+l%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 c(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,c(this.$()))},t.prototype.Jv=function(t){if(null!==this.pv){if(1!==t){var i=i0(this.Lv.canvas);this.Gv(),this.Qv(i,this.Lv.pixelRatio),this.yu(i,this.Lv.pixelRatio),this.t_(i,this.Lv.pixelRatio),this.i_(i,this.Lv.pixelRatio)}var e=i0(this.Fv.canvas),r=this.pv.st,n=this.pv.ht;F(e,this.Fv.pixelRatio,function(){e.clearRect(0,0,r,n)}),this.n_(e,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 i=this.vi.Dv().vt(),e=this.vi.Zv();this.yv=!0,i.Nl(e,this.Gt,t.av)}},t.prototype.Vv=function(t){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var i=this.vi.Dv().vt(),e=this.vi.Zv(),r=this.Gt;i.xl(e,r,t.av)}},t.prototype.Ov=function(){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var t=this.vi.Dv().vt(),i=this.vi.Zv(),e=this.Gt;this.yv&&(this.yv=!1,t.Sl(i,e))}},t.prototype.Wv=function(t){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var i=this.vi.Dv().vt(),e=this.vi.Zv();this.yv=!1,i.Sl(e,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,i=[],e=null===this.Gt?void 0:this.Gt;return function(r){for(var n=0;n<r.length;++n)for(var o=r[n].Pi(t.vi.Zv(),e),s=0;s<o.length;s++)i.push(o[s])}(this.vi.Zv().Os()),i},t.prototype.Qv=function(t,i){var e=this;if(null!==this.pv){var r=this.pv.st,n=this.pv.ht;F(t,i,function(){var i=e.vi.Zv().vt(),o=i.Rf(),s=i.Pf();o===s?U(t,0,0,r,n,o):B(t,0,0,r,n,o,s)})}},t.prototype.yu=function(t,i){if(null!==this.pv&&null!==this.Gt&&this.Gt.ct().borderVisible){t.save(),t.fillStyle=this.N();var e,r=Math.max(1,Math.floor(this.Hv().At*i));e=this.Tv?Math.floor(this.pv.st*i)-r:0,t.fillRect(e,0,r,Math.ceil(this.pv.ht*i)),t.restore()}},t.prototype.t_=function(t,i){if(null!==this.pv&&null!==this.Gt){var e=this.Gt.Fn();t.save(),t.strokeStyle=this.N(),t.font=this.Uv(),t.fillStyle=this.N();var r=this.Hv(),n=this.Gt.ct().borderVisible&&this.Gt.ct().drawTicks,o=this.Tv?Math.floor((this.pv.st-r.Dt)*i-r.At*i):Math.floor(r.At*i),s=this.Tv?Math.round(o-r.Lt*i):Math.round(o+r.Dt*i+r.Lt*i),h=this.Tv?"right":"left",a=Math.max(1,Math.floor(i)),u=Math.floor(.5*i);if(n){var l=Math.round(r.Dt*i);t.beginPath();for(var c=0;c<e.length;c++){var f=e[c];t.rect(o,Math.round(f.An*i)-u,l,a)}t.fill()}t.fillStyle=this.qv();for(var p=0;p<e.length;p++)f=e[p],this.Cv.wv(t,f.Tn,s,Math.round(f.An*i),h);t.restore()}},t.prototype.Gv=function(){if(null!==this.pv&&null!==this.Gt){var t=this.pv.ht/2,i=[],e=this.Gt.Os().slice(),r=this.vi.Zv(),n=this.Hv();this.Gt===r.xi()&&this.vi.Zv().Os().forEach(function(t){r.Uu(t)&&e.push(t)});var o=this.Gt.Vs()[0],s=this.Gt;e.forEach(function(e){var n=e.Pi(r,s);n.forEach(function(t){t.Kt(null),t.$t()&&i.push(t)}),o===e&&n.length>0&&(t=n[0].zt())});var h=i.filter(function(i){return i.zt()<=t}),a=i.filter(function(i){return i.zt()>t});if(h.sort(function(t,i){return i.zt()-t.zt()}),h.length&&a.length&&a.push(h[0]),a.sort(function(t,i){return t.zt()-i.zt()}),i.forEach(function(t){return t.Kt(t.zt())}),this.Gt.ct().alignLabels){for(var u,l,c=1;c<h.length;c++){var f=h[c],p=(u=h[c-1]).Mt(n,!1);f.zt()>(l=u.Yt())-p&&f.Kt(l-p)}for(var v=1;v<a.length;v++)f=a[v],p=(u=a[v-1]).Mt(n,!0),f.zt()<(l=u.Yt())+p&&f.Kt(l+p)}}},t.prototype.i_=function(t,i){var e=this;if(null!==this.pv){t.save();var r=this.pv,n=this.Kv(),o=this.Hv(),s=this.Tv?"right":"left";n.forEach(function(n){if(n.Xt()){var h=n.P(c(e.Gt));t.save(),h.h(t,o,e.kv,r.st,s,i),t.restore()}}),t.restore()}},t.prototype.n_=function(t,i){var e=this;if(null!==this.pv&&null!==this.Gt){t.save();var r=this.pv,n=this.vi.Dv().vt(),o=[],s=this.vi.Zv(),h=n.bf().Pi(s,this.Gt);h.length&&o.push(h);var a=this.Hv(),u=this.Tv?"right":"left";o.forEach(function(n){n.forEach(function(n){t.save(),n.P(c(e.Gt)).h(t,a,e.kv,r.st,u,i),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,i=this.Yv();if(this.Nv<i){var e=this.vi.Dv();null===this.gv&&(this.gv=setTimeout(function(){e&&e.vt().uf(),t.gv=null},100))}this.Nv=i},t.prototype.Sv=function(t){this.Cv.en(),this.Cv=new er(t.Wt,t.et,t.le)},t}();function eo(t,i,e,r,n){t.o&&t.o(i,e,r,n)}function es(t,i,e,r,n){t.h(i,e,r,n)}function eh(t,i){return t.zi(i)}function ea(t,i){return void 0!==t.Io?t.Io(i):[]}var eu=function(){function t(t,i){var e=this;this.pv=new iY(0,0),this.r_=null,this.e_=null,this.u_=null,this.a_=!1,this.o_=new tr,this.l_=0,this.f_=!1,this.c_=null,this.v_=!1,this.__=null,this.d_=null,this.xv=function(){return e.w_&&e.hi().Or()},this.Av=function(){return e.w_&&e.hi().Or()},this.M_=t,this.w_=i,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 r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.position="relative",r.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(r),this.Lv=i2(r,new iY(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=i2(r,new iY(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 i4(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 c(this.w_)},t.prototype.C_=function(i){null!==this.w_&&this.w_.Vl().sn(this),this.w_=i,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(c(t))}if(null!==this.e_){var i=this.w_.Cl();this.e_.fi(c(i))}}},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 i=t.uv,e=t.av;i8||this.x_(i,e)}},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)c(document.activeElement).blur();else{var i=document.getSelection();null!==i&&i.removeAllRanges()}var e=this.hi();if(!this.w_.xi().ti()&&!e.j().ti()){if(null!==this.c_){var r=e.bf();this.__={x:r.bt(),y:r.gt()},this.c_={x:t.uv,y:t.av}}i8||this.x_(t.uv,t.av)}}},t.prototype.Lc=function(t){if(this.w_){var i=t.uv,e=t.av;if(this.D_()&&this.A_(),!i8){this.x_(i,e);var r=this.pa(i,e);this.hi().cf(r&&{vf:r.vf,T_:r.T_})}}},t.prototype.qc=function(t){if(null!==this.w_){var i=t.uv,e=t.av;if(this.o_.rn()){var r=this.hi().bf().I();this.o_.hn(r,{x:i,y:e})}this.B_()}},t.prototype.zc=function(t){if(null!==this.w_){var i=this.hi(),e=t.uv,r=t.av;if(null!==this.c_){this.v_=!1;var n=c(this.__),o=n.x+(e-this.c_.x),s=n.y+(r-this.c_.y);this.x_(o,s)}else this.D_()||this.x_(e,r);if(!i.j().ti()){var h=this.M_.ct(),a=h.handleScroll,u=h.kineticScroll;if(a.pressedMouseMove&&"touch"!==t.ke||(a.horzTouchDrag||a.vertTouchDrag)&&"mouse"!==t.ke){var l=this.w_.xi(),f=performance.now();null!==this.u_||this.L_()||(this.u_={x:t.sv,y:t.hv,Dh:f,uv:t.uv,av:t.av}),null!==this.d_&&this.d_.tc(t.uv,f),null===this.u_||this.a_||this.u_.x===t.sv&&this.u_.y===t.hv||(null===this.d_&&("touch"===t.ke&&u.touch||"mouse"===t.ke&&u.mouse)&&(this.d_=new i5(.2,7,.997,15),this.d_.tc(this.u_.uv,this.u_.Dh),this.d_.tc(t.uv,f)),l.ti()||i.Dl(this.w_,l,t.av),i.Nf(t.uv),this.a_=!0),this.a_&&(l.ti()||i.Al(this.w_,l,t.av),i.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_&&i9){var i={x:t.uv,y:t.av};this.E_(i,i)}},t.prototype.iv=function(t){null!==this.w_&&(this.w_.vt().cf(null),i9||this.A_())},t.prototype.V_=function(){return this.o_},t.prototype.Xc=function(){this.l_=1,this.S_()},t.prototype.Zc=function(t,i){if(this.M_.ct().handleScale.pinch){var e=5*(i-this.l_);this.l_=i,this.hi().kf(t.p,e)}},t.prototype.pa=function(t,i){var e=this.w_;if(null===e)return null;for(var r=0,n=e.Os();r<n.length;r++){var o=n[r],s=this.O_(o.zi(e),t,i);if(null!==s)return{vf:o,vv:s.vv,T_:s.T_}}return null},t.prototype.W_=function(t,i){c("left"===i?this.r_:this.e_).$v(new iY(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=c(this.w_);t.yl(t.kl()),t.yl(t.Cl());for(var i=0,e=t.Vs();i<e.length;i++){var r=e[i];if(t.Uu(r)){var n=r.$();null!==n&&t.yl(n),r.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 i=i0(this.Lv.canvas);i.save(),this.Qv(i,this.Lv.pixelRatio),this.w_&&(this.R_(i,this.Lv.pixelRatio),this.I_(i,this.Lv.pixelRatio),this.j_(i,this.Lv.pixelRatio,eh)),i.restore()}var e=i0(this.Fv.canvas);e.clearRect(0,0,Math.ceil(this.pv.st*this.Fv.pixelRatio),Math.ceil(this.pv.ht*this.Fv.pixelRatio)),this.j_(e,this.Lv.pixelRatio,ea),this.q_(e,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,i){var e=this;F(t,i,function(){var i=e.hi(),r=i.Rf(),n=i.Pf();r===n?U(t,0,0,e.pv.st,e.pv.ht,n):B(t,0,0,e.pv.st,e.pv.ht,r,n)})},t.prototype.R_=function(t,i){var e=c(this.w_),r=e.Ol().sl().P(e.Mt(),e.wt());null!==r&&(t.save(),r.h(t,i,!1),t.restore())},t.prototype.I_=function(t,i){var e=this.hi().Mf();this.Y_(t,i,eh,eo,e),this.Y_(t,i,eh,es,e)},t.prototype.q_=function(t,i){this.Y_(t,i,eh,es,this.hi().bf())},t.prototype.j_=function(t,i,e){for(var r=c(this.w_).Os(),n=0;n<r.length;n++){var o=r[n];this.Y_(t,i,e,eo,o)}for(var s=0;s<r.length;s++)o=r[s],this.Y_(t,i,e,es,o)},t.prototype.Y_=function(t,i,e,r,n){for(var o=c(this.w_),s=e(n,o),h=o.Mt(),a=o.wt(),u=o.vt().ff(),l=null!==u&&u.vf===n,f=null!==u&&l&&void 0!==u.T_?u.T_.ga:void 0,p=0;p<s.length;p++){var v=s[p].P(h,a);null!==v&&(t.save(),r(v,t,i,l,f),t.restore())}},t.prototype.O_=function(t,i,e){for(var r=0;r<t.length;r++){var n=t[r],o=n.P(this.pv.ht,this.pv.st);if(null!==o&&o.pa){var s=o.pa(i,e);if(null!==s)return{vv:n,T_:s}}}return null},t.prototype.N_=function(){if(null!==this.w_){var t=this.M_,i=this.w_.kl().ct().visible,e=this.w_.Cl().ct().visible;i||null===this.r_||(this.p_.removeChild(this.r_.jv()),this.r_.en(),this.r_=null),e||null===this.e_||(this.g_.removeChild(this.e_.jv()),this.e_.en(),this.e_=null);var r=t.vt().Ff();i&&null===this.r_&&(this.r_=new en(this,t.ct().layout,r,"left"),this.p_.appendChild(this.r_.jv())),e&&null===this.e_&&(this.e_=new en(this,t.ct().layout,r,"right"),this.g_.appendChild(this.e_.jv()))}},t.prototype.D_=function(){return i9&&null===this.c_},t.prototype.L_=function(){return i9&&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,i){this.hi().Tf(this.K_(t),this.X_(i),c(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,i){this.c_=t,this.v_=!1,this.x_(i.x,i.y);var e=this.hi().bf();this.__={x:e.bt(),y:e.gt()}},t.prototype.hi=function(){return this.M_.vt()},t.prototype.Z_=function(){var t=this.hi(),i=this.Zv(),e=i.xi();t.Tl(i,e),t.Sf(),this.u_=null,this.a_=!1},t.prototype.F_=function(t){var i=this;if(this.a_){var e=performance.now();if(null!==this.d_&&this.d_.ia(t.uv,e),null===this.d_||this.d_.nc(e))this.Z_();else{var r=this.hi(),n=r.j(),o=this.d_,s=function(){if(!o.hc()){var t=performance.now(),e=o.nc(t);if(!o.hc()){var h=n.Pr();r.xf(o.ic(t)),h===n.Pr()&&(e=!0,i.d_=null)}e?i.Z_():requestAnimationFrame(s)}};requestAnimationFrame(s)}}},t.prototype.S_=function(){var t=performance.now(),i=null===this.d_||this.d_.nc(t);null!==this.d_&&(i||this.Z_()),null!==this.d_&&(this.d_.rc(),this.d_=null)},t}(),el=function(){function t(t,i,e,r,n){var o=this;this.L=!0,this.pv=new iY(0,0),this.xv=function(){return o.Jv(3)},this.Tv="left"===t,this.tf=e.Ff,this.ki=i,this.J_=r,this.G_=n,this.Bv=document.createElement("div"),this.Bv.style.width="25px",this.Bv.style.height="100%",this.Bv.style.overflow="hidden",this.Lv=i2(this.Bv,new iY(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 i=i0(this.Lv.canvas);this.Qv(i,this.Lv.pixelRatio),this.yu(i,this.Lv.pixelRatio)}},t.prototype.s_=function(){return this.Lv.canvas},t.prototype.yu=function(t,i){if(this.J_()){var e=this.pv.st;t.save(),t.fillStyle=this.ki.timeScale.borderColor;var r=Math.floor(this.tf.ct().At*i),n=this.Tv?Math.round(e*i)-r:0;t.fillRect(n,0,r,r),t.restore()}},t.prototype.Qv=function(t,i){var e=this;F(t,i,function(){U(t,0,0,e.pv.st,e.pv.ht,e.G_())})},t}();function ec(t,i){return t.Rh>i.Rh?t:i}var ef=function(){function t(t){var i=this;this.Q_=null,this.td=null,this.oe=null,this.nd=!1,this.pv=new iY(0,0),this.sd=new tr,this.kv=new ip(5),this.xv=function(){return i.M_.vt().Or()},this.Av=function(){return i.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=i2(this.ud,new iY(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var e=this.Lv.canvas;e.style.position="absolute",e.style.zIndex="1",e.style.left="0",e.style.top="0",this.Fv=i2(this.ud,new iY(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var r=this.Fv.canvas;r.style.position="absolute",r.style.zIndex="2",r.style.left="0",r.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 i4(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 i=this.M_.vt();!i.j().ti()&&this.M_.ct().handleScale.axisPressedMouseMove.time&&i.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 i=this.M_.vt();!i.j().ti()&&this.M_.ct().handleScale.axisPressedMouseMove.time&&i.Df(t.uv)},t.prototype.Ic=function(t){this.nd=!1;var i=this.M_.vt();i.j().ti()&&!this.M_.ct().handleScale.axisPressedMouseMove.time||i.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,i,e){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 iY(i,t.ht)),null!==this.td&&this.td.$v(new iY(e,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 i=i0(this.Lv.canvas);this.Qv(i,this.Lv.pixelRatio),this.yu(i,this.Lv.pixelRatio),this.t_(i,this.Lv.pixelRatio),null!==this.Q_&&this.Q_.Jv(t),null!==this.td&&this.td.Jv(t)}var e=i0(this.Fv.canvas),r=this.Fv.pixelRatio;e.clearRect(0,0,Math.ceil(this.pv.st*r),Math.ceil(this.pv.ht*r)),this.wd([this.M_.vt().bf()],e,r)}},t.prototype.Qv=function(t,i){var e=this;F(t,i,function(){U(t,0,0,e.pv.st,e.pv.ht,e.M_.vt().Pf())})},t.prototype.yu=function(t,i){if(this.M_.ct().timeScale.borderVisible){t.save(),t.fillStyle=this.Md();var e=Math.max(1,Math.floor(this.dd().At*i));t.fillRect(0,0,Math.ceil(this.pv.st*i),e),t.restore()}},t.prototype.t_=function(t,i){var e=this,r=this.M_.vt().j().Fn();if(r&&0!==r.length){var n=r.reduce(ec,r[0]).Rh;n>30&&n<50&&(n=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 h=Math.floor(this.dd().At*i),a=Math.max(1,Math.floor(i)),u=Math.floor(.5*i);if(this.M_.vt().j().ct().borderVisible){t.beginPath();for(var l=Math.round(o.Dt*i),c=r.length;c--;){var f=Math.round(r[c].An*i);t.rect(f-u,h,a,l)}t.fill()}t.fillStyle=this.ve(),F(t,i,function(){t.font=e.bd();for(var i,o=0;o<r.length;o++)if((i=r[o]).Rh<n){var h=i.Ir?e.md(t,i.An,i.Tn):i.An;t.fillText(i.Tn,h,s)}t.font=e.pd();for(var a=0;a<r.length;a++)(i=r[a]).Rh>=n&&(h=i.Ir?e.md(t,i.An,i.Tn):i.An,t.fillText(i.Tn,h,s))})}},t.prototype.md=function(t,i,e){var r=this.kv.Vt(t,e),n=Math.floor(i-r/2)+.5;return n<0?i+=Math.abs(0-n):n+r>this.pv.st&&(i-=Math.abs(this.pv.st-(n+r))),i},t.prototype.wd=function(t,i,e){for(var r=this.dd(),n=0;n<t.length;n++)for(var o=0,s=t[n].ci();o<s.length;o++){var h=s[o];i.save(),h.P().h(i,r,e),i.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 tq(this.fe(),this.ki.fontFamily)},t.prototype.pd=function(){return tq(this.fe(),this.ki.fontFamily,"bold")},t.prototype.dd=function(){null===this.oe&&(this.oe={At:1,Ot:NaN,Tt:NaN,Bt:NaN,si:NaN,Dt:3,Wt:NaN,Nt:"",ni:new ip});var t=this.oe,i=this.bd();if(t.Nt!==i){var e=this.fe();t.Wt=e,t.Nt=i,t.Tt=Math.ceil(e/2.5),t.Bt=t.Tt,t.si=Math.ceil(e/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(),i=t.ct();i.leftPriceScale.visible||null===this.Q_||(this.rd.removeChild(this.Q_.jv()),this.Q_.en(),this.Q_=null),i.rightPriceScale.visible||null===this.td||(this.ed.removeChild(this.td.jv()),this.td.en(),this.td=null);var e={Ff:this.M_.vt().Ff()},r=function(){return i.leftPriceScale.borderVisible&&t.j().ct().borderVisible},n=function(){return t.Pf()};i.leftPriceScale.visible&&null===this.Q_&&(this.Q_=new el("left",i,e,r,n),this.rd.appendChild(this.Q_.jv())),i.rightPriceScale.visible&&null===this.td&&(this.td=new el("right",i,e,r,n),this.ed.appendChild(this.td.jv()))},t}(),ep=function(){function t(t,i){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 tr,this.Jl=new tr,this.ki=i,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%",(e=this.hd).style.userSelect="none",e.style.webkitUserSelect="none",e.style.msUserSelect="none",e.style.MozUserSelect="none",e.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 iJ(this.Ql.bind(this),this.ki),this.vt().mf().Ji(this.Td.bind(this),this),this.Bd=new ef(this),this.Sd.appendChild(this.Bd.jv());var e,r=this.ki.width,n=this.ki.height;if(0===r||0===n){var o=t.getBoundingClientRect();0===r&&(r=Math.floor(o.width),r-=r%2),0===n&&(n=Math.floor(o.height),n-=n%2)}this.Ld(r,n),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,i=this.gd;t<i.length;t++){var e=i[t];this.Sd.removeChild(e.jv()),e.V_().sn(this),e.en()}this.gd=[],c(this.Bd).en(),null!==this.hd.parentElement&&this.hd.parentElement.removeChild(this.hd),this.Jl.en(),this.o_.en()},t.prototype.Ld=function(t,i,e){if(void 0===e&&(e=!1),this.En!==i||this.$h!==t){this.En=i,this.$h=t;var r=i+"px",n=t+"px";c(this.hd).style.height=r,c(this.hd).style.width=n,this.Sd.style.height=r,this.Sd.style.width=n,e?this.Wd(new tK(3)):this.hi.uf()}},t.prototype.Jv=function(t){void 0===t&&(t=new tK(3));for(var i=0;i<this.gd.length;i++)this.gd[i].Jv(t.ge(i).me);this.ki.timeScale.visible&&this.Bd.Jv(t.pe())},t.prototype.rs=function(t){this.hi.rs(t),this.Ed();var i=t.width||this.$h,e=t.height||this.En;this.Ld(i,e)},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 i=this.gd[0],e=i1(document,new iY(this.$h,this.En)),r=i0(e);return F(r,iQ(e),function(){var e=0,n=0,o=function(i){for(var o=0;o<t.gd.length;o++){var s=t.gd[o],h=s.z_().ht,a=c("left"===i?s.U_():s.H_()),u=a.s_();r.drawImage(u,e,n,a.Xv(),h),n+=h}};t.Pd()&&(o("left"),e=c(i.U_()).Xv()),n=0;for(var s=0;s<t.gd.length;s++){var h=t.gd[s],a=h.z_(),u=h.s_();r.drawImage(u,e,n,a.st,a.ht),n+=a.ht}e+=i.z_().st,t.Rd()&&(n=0,o("right"));var l=function(i){var o=c("left"===i?t.Bd.od():t.Bd.ld()),s=o.z_(),h=o.s_();r.drawImage(h,e,n,s.st,s.ht)};if(t.ki.timeScale.visible){e=0,t.Pd()&&(l("left"),e=c(i.U_()).Xv());var f=t.Bd.z_();u=t.Bd.s_(),r.drawImage(u,e,n,f.st,f.ht),t.Rd()&&(e+=i.z_().st,l("right"),r.restore())}}),e},t.prototype.Id=function(t){return"none"===t?0:("left"!==t||this.Pd())&&("right"!==t||this.Rd())?0===this.gd.length?0:c("left"===t?this.gd[0].U_():this.gd[0].H_()).Xv():0},t.prototype.jd=function(){for(var t=0,i=0,e=0,r=0,n=this.gd;r<n.length;r++){var o=n[r];this.Pd()&&(i=Math.max(i,c(o.U_()).Yv())),this.Rd()&&(e=Math.max(e,c(o.H_()).Yv())),t+=o.wl()}var s=this.$h,h=this.En,a=Math.max(s-i-e,0),u=this.ki.timeScale.visible,l=u?this.Bd._d():0;l%2&&(l+=1);for(var f=0+l,p=h<f?0:h-f,v=p/t,y=0,d=0;d<this.gd.length;++d){(o=this.gd[d]).C_(this.hi.wf()[d]);var m,g=0;g=d===this.gd.length-1?p-y:Math.round(o.wl()*v),y+=m=Math.max(g,2),o.$v(new iY(a,m)),this.Pd()&&o.W_(i,"left"),this.Rd()&&o.W_(e,"right"),o.Zv()&&this.hi.pf(o.Zv(),m)}this.Bd.vd(new iY(u?a:0,l),u?i:0,u?e:0),this.hi.Dr(a),this.kd!==i&&(this.kd=i),this.Cd!==e&&(this.Cd=e)},t.prototype.Ad=function(t){var i=t.deltaX/100,e=-t.deltaY/100;if(0!==i&&this.ki.handleScroll.mouseWheel||0!==e&&this.ki.handleScale.mouseWheel){switch(t.cancelable&&t.preventDefault(),t.deltaMode){case t.DOM_DELTA_PAGE:i*=120,e*=120;break;case t.DOM_DELTA_LINE:i*=32,e*=32}if(0!==e&&this.ki.handleScale.mouseWheel){var r=Math.sign(e)*Math.min(1,Math.abs(e)),n=t.clientX-this.hd.getBoundingClientRect().left;this.vt().kf(n,r)}0!==i&&this.ki.handleScroll.mouseWheel&&this.vt().Cf(-80*i)}},t.prototype.Wd=function(t){var i=t.pe();if(3===i&&this.qd(),3===i||2===i){for(var e=this.hi.wf(),r=0;r<e.length;r++)t.ge(r)._s&&e[r].Fl();for(var n=t.xe(),o=0;o<n.length;o++){var s=n[o];this.Se(s)}n.length>0&&(this.hi.Vr(),this.hi.Eo(),this.hi.Or()),this.Bd.O()}this.Jv(t)},t.prototype.Se=function(t){var i=this.hi.j();switch(t.ke){case 0:i.Qr();break;case 1:i.te(t.X);break;case 2:i.wr(t.X);break;case 3:i.Mr(t.X);break;case 4:i.jr()}},t.prototype.Ql=function(t){var i=this;null!==this.Nd?this.Nd._n(t):this.Nd=t,this.xd||(this.xd=!0,this.yd=window.requestAnimationFrame(function(){i.xd=!1,i.yd=0,null!==i.Nd&&(i.Wd(i.Nd),i.Nd=null)}))},t.prototype.qd=function(){this.Fd()},t.prototype.Fd=function(){for(var t=this.hi.wf(),i=t.length,e=this.gd.length,r=i;r<e;r++){var n=l(this.gd.pop());this.Sd.removeChild(n.jv()),n.V_().sn(this),n.en()}for(r=e;r<i;r++)(n=new eu(this,t[r])).V_().Ji(this.Ud.bind(this),this),this.gd.push(n),this.Sd.insertBefore(n.jv(),this.Bd.jv());for(r=0;r<i;r++){var o=t[r];(n=this.gd[r]).Zv()!==o?n.C_(o):n.k_()}this.Ed(),this.jd()},t.prototype.Hd=function(t,i){var e,r=new Map;if(null!==t&&this.hi.W().forEach(function(i){var e=i.Fa(t);null!==e&&r.set(i,e)}),null!==t){var n=this.hi.j().ri(t);null!==n&&(e=n)}var o=this.vt().ff();return{S:e,Yd:i||void 0,Kd:null!==o&&o.vf instanceof iV?o.vf:void 0,$d:r,Xd:null!==o&&void 0!==o.T_?o.T_.ka:void 0}},t.prototype.Ud=function(t,i){var e=this;this.o_.hn(function(){return e.Hd(t,i)})},t.prototype.Td=function(t,i){var e=this;this.Jl.hn(function(){return e.Hd(t,i)})},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 ev(t,i,e){var r=e.value,n={Ph:i,S:t,X:[r,r,r,r]};return"color"in e&&void 0!==e.color&&(n.et=e.color),n}function ey(t,i,e){return{Ph:i,S:t,X:[e.open,e.high,e.low,e.close]}}function ed(t){return void 0!==t.X}function em(t){return function(i,e,r){return void 0===r.open&&void 0===r.value?{S:i,Ph:e}:t(i,e,r)}}var eg={Candlestick:em(ey),Bar:em(ey),Area:em(ev),Baseline:em(ev),Histogram:em(ev),Line:em(ev)};function ew(t){return 60*t*6e4}function eb(t){return 60*t*1e3}var eM=[{Zd:1e3,Rh:10},{Zd:eb(1),Rh:20},{Zd:eb(5),Rh:21},{Zd:eb(30),Rh:22},{Zd:ew(1),Rh:30},{Zd:ew(3),Rh:31},{Zd:ew(6),Rh:32},{Zd:ew(12),Rh:33}];function e_(t,i){if(t.getUTCFullYear()!==i.getUTCFullYear())return 70;if(t.getUTCMonth()!==i.getUTCMonth())return 60;if(t.getUTCDate()!==i.getUTCDate())return 50;for(var e=eM.length-1;e>=0;--e)if(Math.floor(i.getTime()/eM[e].Zd)!==Math.floor(t.getTime()/eM[e].Zd))return eM[e].Rh;return 0}function eS(t,i){if(void 0===i&&(i=0),0!==t.length){for(var e=0===i?null:t[i-1].S.Dh,r=null!==e?new Date(1e3*e):null,n=0,o=i;o<t.length;++o){var s=t[o],h=new Date(1e3*s.S.Dh);null!==r&&(s.zh=e_(h,r)),n+=s.S.Dh-(e||s.S.Dh),e=s.S.Dh,r=h}if(0===i&&t.length>1){var a=Math.ceil(n/(t.length-1)),u=new Date(1e3*(t[0].S.Dh-a));t[0].zh=e_(new Date(1e3*t[0].S.Dh),u)}}}function eE(t){if(!tW(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 ek(t){if(!v(t))throw Error("time must be of type isUTCTimestamp");return{Dh:t}}function ex(t){return 0===t.length?null:tW(t[0].time)?eE:ek}function eA(t){return v(t)?ek(t):tW(t)?eE(t):eE(eT(t))}function eT(t){var i=new Date(t);if(isNaN(i.getTime()))throw Error("Invalid date string="+t+", expected format=yyyy-mm-dd");return{day:i.getUTCDate(),month:i.getUTCMonth()+1,year:i.getUTCFullYear()}}function eC(t){d(t.time)&&(t.time=eT(t.time))}function eP(t){return{Ph:0,Jd:new Map,Rs:t}}var eL=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,i){var e=this,r=0!==this.Gd.size,n=!1;if(this.Qd.has(t)){if(1===this.Qd.size)r=!1,n=!0,this.Gd.clear();else for(var o=0,s=this.iw;o<s.length;o++)s[o].pointData.Jd.delete(t)&&(n=!0)}var h=[];if(0!==i.length){!function(t){t.forEach(eC)}(i);var a=c(ex(i)),u=eg[t.Ya()];h=i.map(function(i){var r=a(i.time),o=e.Gd.get(r.Dh);void 0===o&&(o=eP(r),e.Gd.set(r.Dh,o),n=!0);var s=u(r,o.Ph,i);return o.Jd.set(t,s),s})}r&&this.sw(),this.hw(t,h);var l=-1;if(n){var f=[];this.Gd.forEach(function(t){f.push({zh:0,S:t.Rs,pointData:t})}),f.sort(function(t,i){return t.S.Dh-i.S.Dh}),l=this.rw(f)}return this.ew(t,l)},t.prototype.Of=function(t){return this.nw(t,[])},t.prototype.uw=function(t,i){eC(i);var e=c(ex([i]))(i.time),r=this.tw.get(t);if(void 0!==r&&e.Dh<r.Dh)throw Error("Cannot update oldest data, last time="+r.Dh+", new time="+e.Dh);var n=this.Gd.get(e.Dh),o=void 0===n;void 0===n&&(n=eP(e),this.Gd.set(e.Dh,n));var s=eg[t.Ya()](e,n.Ph,i);if(n.Jd.set(t,s),this.aw(t,s),!o)return this.ew(t,-1);var h={zh:0,S:n.Rs,pointData:n},a=tL(this.iw,h.S.Dh,function(t,i){return t.S.Dh<i});this.iw.splice(a,0,h);for(var u=a;u<this.iw.length;++u)eO(this.iw[u].pointData,u);return eS(this.iw,a),this.ew(t,a)},t.prototype.aw=function(t,i){var e=this.Qd.get(t);void 0===e&&(e=[],this.Qd.set(t,e));var r=0!==e.length?e[e.length-1]:null;null===r||i.S.Dh>r.S.Dh?ed(i)&&e.push(i):ed(i)?e[e.length-1]=i:e.splice(-1,1),this.tw.set(t,i.S)},t.prototype.hw=function(t,i){0!==i.length?(this.Qd.set(t,i.filter(ed)),this.tw.set(t,i[i.length-1].S)):(this.Qd.delete(t),this.tw.delete(t))},t.prototype.sw=function(){for(var t=0,i=this.iw;t<i.length;t++){var e=i[t];0===e.pointData.Jd.size&&this.Gd.delete(e.S.Dh)}},t.prototype.rw=function(t){for(var i=-1,e=0;e<this.iw.length&&e<t.length;++e){var r=this.iw[e],n=t[e];if(r.S.Dh!==n.S.Dh){i=e;break}n.zh=r.zh,eO(n.pointData,e)}if(-1===i&&this.iw.length!==t.length&&(i=Math.min(this.iw.length,t.length)),-1===i)return -1;for(e=i;e<t.length;++e)eO(t[e].pointData,e);return eS(t,i),this.iw=t,i},t.prototype.ow=function(){if(0===this.Qd.size)return null;var t=0;return this.Qd.forEach(function(i){0!==i.length&&(t=Math.max(t,i[i.length-1].Ph))}),t},t.prototype.ew=function(t,i){var e={lw:new Map,j:{Br:this.ow()}};if(-1!==i)this.Qd.forEach(function(t,i){e.lw.set(i,{Zu:t})}),this.Qd.has(t)||e.lw.set(t,{Zu:[]}),e.j.fw=this.iw,e.j.cw=i;else{var r=this.Qd.get(t);e.lw.set(t,{Zu:r||[]})}return e},t}();function eO(t,i){t.Ph=i,t.Jd.forEach(function(t){t.Ph=i})}var eN={color:"#FF0000",price:0,lineStyle:2,lineWidth:1,axisLabelVisible:!0,title:""},ej=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 eD(t){var i=t.overlay,e=function(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>i.indexOf(r)&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)0>i.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(e[r[n]]=t[r[n]])}return e}(t,["overlay"]);return i&&(e.priceScaleId=""),e}var eR=function(){function t(t,i,e){this.qe=t,this.dw=i,this.ww=e}return t.prototype.priceFormatter=function(){return this.qe.$s()},t.prototype.priceToCoordinate=function(t){var i=this.qe.H();return null===i?null:this.qe.$().K(t,i.X)},t.prototype.coordinateToPrice=function(t){var i=this.qe.H();return null===i?null:this.qe.$().Si(t,i.X)},t.prototype.barsInLogicalRange=function(t){if(null===t)return null;var i=new tB(new tj(t.from,t.to)).Hh(),e=this.qe.Hi();if(e.ti())return null;var r=e.oo(i.hh(),1),n=e.oo(i.rh(),-1),o=c(e.eo()),s=c(e.Ui());if(null!==r&&null!==n&&r.Ph>n.Ph)return{barsBefore:t.from-o,barsAfter:s-t.to};var h={barsBefore:null===r||r.Ph===o?t.from-o:r.Ph-o,barsAfter:null===n||n.Ph===s?s-t.to:s-n.Ph};return null!==r&&null!==n&&(h.from=r.S.Sh||r.S.Dh,h.to=n.S.Sh||n.S.Dh),h},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 i=t.map(function(t){return h(h({},t),{time:eA(t.time)})});this.qe.Wo(i)},t.prototype.applyOptions=function(t){var i=eD(t);this.qe.rs(i)},t.prototype.options=function(){return g(this.qe.ct())},t.prototype.priceScale=function(){return this.ww.priceScale(this.qe.$().hs())},t.prototype.createPriceLine=function(t){var i=p(g(eN),t);return new ej(this.qe.zo(i))},t.prototype.removePriceLine=function(t){this.qe.Po(t._w())},t.prototype.seriesType=function(){return this.qe.Ya()},t}(),eI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return s(i,t),i.prototype.applyOptions=function(i){tk(i),t.prototype.applyOptions.call(this,i)},i}(eR),eF={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:"#2B2B43",entireTextOnly:!1,visible:!1,drawTicks:!0,scaleMargins:{bottom:.1,top:.2}},eU={width:0,height:0,layout:{background:{type:"solid",color:"#FFFFFF"},textColor:"#191919",fontSize:11,fontFamily:tG},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:h({},eF),leftPriceScale:h(h({},eF),{visible:!1}),rightPriceScale:h(h({},eF),{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:tG,fontStyle:"",text:"",horzAlign:"center",vertAlign:"center"},localization:{locale:i6?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}},eB={upColor:"#26a69a",downColor:"#ef5350",wickVisible:!0,borderVisible:!0,borderColor:"#378658",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"#737375",wickUpColor:"#26a69a",wickDownColor:"#ef5350"},e$={upColor:"#26a69a",downColor:"#ef5350",openVisible:!0,thinBars:!0},eV={color:"#2196f3",lineStyle:0,lineWidth:3,lineType:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},ez={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},eW={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},eG={color:"#26a69a",base:0},eq={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}},eH=function(){function t(t,i){this.mw=t,this.pw=i}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 tZ(this.pw)?this.mw.Id("left"===this.pw?"left":"right"):0},t.prototype.Gt=function(){return c(this.mw.vt().df(this.pw)).$},t}(),eZ=function(){function t(t,i){this.gw=new tr,this.nr=new tr,this.sd=new tr,this.hi=t,this.ul=t.j(),this.Bd=i,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,i){i?this.ul.$r(t,1e3):this.hi.Mr(t)},t.prototype.scrollToRealTime=function(){this.ul.Kr()},t.prototype.getVisibleRange=function(){var t,i,e=this.ul.yr();return null===e?null:{from:null!==(t=e.from.Sh)&&void 0!==t?t:e.from.Dh,to:null!==(i=e.to.Sh)&&void 0!==i?i:e.to.Dh}},t.prototype.setVisibleRange=function(t){var i={from:eA(t.from),to:eA(t.to)},e=this.ul.Sr(i);this.hi.Wf(e)},t.prototype.getVisibleLogicalRange=function(){var t=this.ul.gr();return null===t?null:{from:t.hh(),to:t.rh()}},t.prototype.setVisibleLogicalRange=function(t){u(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 i=this.hi.j();return i.ti()?null:i.G(t)},t.prototype.coordinateToLogical=function(t){return this.ul.ti()?null:this.ul.Fr(t)},t.prototype.timeToCoordinate=function(t){var i=eA(t),e=this.ul.br(i,!1);return null===e?null:this.ul.G(e)},t.prototype.coordinateToTime=function(t){var i,e=this.hi.j(),r=e.Fr(t),n=e.ri(r);return null===n?null:null!==(i=n.Sh)&&void 0!==i?i:n.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 g(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 eK(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 i=0;i<8&&!(1e-8>Math.abs(Math.round(t)-t));i++)t*=10;return i}(t.minMove))}function eX(t){return function(t){if(m(t.handleScale)){var i=t.handleScale;t.handleScale={axisDoubleClickReset:i,axisPressedMouseMove:{time:i,price:i},mouseWheel:i,pinch:i}}else if(void 0!==t.handleScale&&m(t.handleScale.axisPressedMouseMove)){var e=t.handleScale.axisPressedMouseMove;t.handleScale.axisPressedMouseMove={time:e,price:e}}var r=t.handleScroll;m(r)&&(t.handleScroll={horzTouchDrag:r,vertTouchDrag:r,mouseWheel:r,pressedMouseMove:r})}(t),function(t){if(t.priceScale){t.leftPriceScale=t.leftPriceScale||{},t.rightPriceScale=t.rightPriceScale||{};var i=t.priceScale.position;delete t.priceScale.position,t.leftPriceScale=p(t.leftPriceScale,t.priceScale),t.rightPriceScale=p(t.rightPriceScale,t.priceScale),"left"===i&&(t.leftPriceScale.visible=!0,t.rightPriceScale.visible=!1),"right"===i&&(t.leftPriceScale.visible=!1,t.rightPriceScale.visible=!0),"none"===i&&(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(){function t(t,i){var e=this;this.Nw=new eL,this.xw=new Map,this.Sw=new Map,this.Dw=new tr,this.Aw=new tr;var r=void 0===i?g(eU):p(g(eU),eX(i));this.mw=new ep(t,r),this.mw.V_().Ji(function(t){e.Dw.rn()&&e.Dw.hn(e.Tw(t()))},this),this.mw.mf().Ji(function(t){e.Aw.rn()&&e.Aw.hn(e.Tw(t()))},this);var n=this.mw.vt();this.Bw=new eZ(n,this.mw.Od())}t.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()},t.prototype.resize=function(t,i,e){this.mw.Ld(t,i,e)},t.prototype.addAreaSeries=function(t){void 0===t&&(t={}),eK((t=eD(t)).priceFormat);var i=p(g(eq),ez,t),e=this.mw.vt().Ef("Area",i),r=new eR(e,this,this);return this.xw.set(r,e),this.Sw.set(e,r),r},t.prototype.addBaselineSeries=function(t){void 0===t&&(t={}),eK((t=eD(t)).priceFormat);var i=p(g(eq),eW,t),e=this.mw.vt().Ef("Baseline",i),r=new eR(e,this,this);return this.xw.set(r,e),this.Sw.set(e,r),r},t.prototype.addBarSeries=function(t){void 0===t&&(t={}),eK((t=eD(t)).priceFormat);var i=p(g(eq),e$,t),e=this.mw.vt().Ef("Bar",i),r=new eR(e,this,this);return this.xw.set(r,e),this.Sw.set(e,r),r},t.prototype.addCandlestickSeries=function(t){void 0===t&&(t={}),tk(t=eD(t)),eK(t.priceFormat);var i=p(g(eq),eB,t),e=this.mw.vt().Ef("Candlestick",i),r=new eI(e,this,this);return this.xw.set(r,e),this.Sw.set(e,r),r},t.prototype.addHistogramSeries=function(t){void 0===t&&(t={}),eK((t=eD(t)).priceFormat);var i=p(g(eq),eG,t),e=this.mw.vt().Ef("Histogram",i),r=new eR(e,this,this);return this.xw.set(r,e),this.Sw.set(e,r),r},t.prototype.addLineSeries=function(t){void 0===t&&(t={}),eK((t=eD(t)).priceFormat);var i=p(g(eq),eV,t),e=this.mw.vt().Ef("Line",i),r=new eR(e,this,this);return this.xw.set(r,e),this.Sw.set(e,r),r},t.prototype.removeSeries=function(t){var i=l(this.xw.get(t)),e=this.Nw.Of(i);this.mw.vt().Of(i),this.Lw(e),this.xw.delete(t),this.Sw.delete(i)},t.prototype.Mw=function(t,i){this.Lw(this.Nw.nw(t,i))},t.prototype.bw=function(t,i){this.Lw(this.Nw.uw(t,i))},t.prototype.subscribeClick=function(t){this.Dw.Ji(t)},t.prototype.unsubscribeClick=function(t){this.Dw.nn(t)},t.prototype.subscribeCrosshairMove=function(t){this.Aw.Ji(t)},t.prototype.unsubscribeCrosshairMove=function(t){this.Aw.nn(t)},t.prototype.priceScale=function(t){return void 0===t&&(t=this.mw.vt().zf()),new eH(this.mw,t)},t.prototype.timeScale=function(){return this.Bw},t.prototype.applyOptions=function(t){this.mw.rs(eX(t))},t.prototype.options=function(){return this.mw.ct()},t.prototype.takeScreenshot=function(){return this.mw.zd()},t.prototype.Lw=function(t){var i=this.mw.vt();i.Lf(t.j.Br,t.j.fw,t.j.cw),t.lw.forEach(function(t,i){return i._(t.Zu)}),i.Vr()},t.prototype.Fw=function(t){return l(this.Sw.get(t))},t.prototype.Tw=function(t){var i=this,e=new Map;t.$d.forEach(function(t,r){e.set(i.Fw(r),t)});var r=void 0===t.Kd?void 0:this.Fw(t.Kd);return{time:t.S&&(t.S.Sh||t.S.Dh),point:t.Yd,hoveredSeries:r,hoveredMarkerId:t.Xd,seriesPrices:e}}}()},11881:function(t){"use strict";t.exports=Math.abs},98775:function(t){"use strict";t.exports=Math.floor},99646:function(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},99564:function(t){"use strict";t.exports=Math.max},34387:function(t){"use strict";t.exports=Math.min},46451:function(t){"use strict";t.exports=Math.pow},55304:function(t){"use strict";t.exports=Math.round},9797:function(t,i,e){"use strict";var r=e(99646);t.exports=function(t){return r(t)||0===t?t:t<0?-1:1}},52680:function(t,i){"use strict";function e(){return(e=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(null,arguments)}Object.defineProperty(i,"__esModule",{value:!0}),i.extends=e},42586:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(23345),n=e(12579),o=e(73559),s=e(2791);i.useFormatter=r.useFormatter,i.useTranslations=r.useTranslations,i.useLocale=n.default,i.NextIntlClientProvider=o.default,Object.keys(s).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(i,t,{enumerable:!0,get:function(){return s[t]}})})},23345:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(2791);function n(t,i){return function(){try{return i(...arguments)}catch(t){throw Error(void 0)}}}let o=n(0,r.useTranslations),s=n(0,r.useFormatter);i.useFormatter=s,i.useTranslations=o,Object.keys(r).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(i,t,{enumerable:!0,get:function(){return r[t]}})})},12579:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(99376),n=e(63513),o=e(42132);i.default=function(){let t;let i=r.useParams();try{t=n.useLocale()}catch(e){if("string"!=typeof(null==i?void 0:i[o.LOCALE_SEGMENT_NAME]))throw e;t=i[o.LOCALE_SEGMENT_NAME]}return t}},73559:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(52680),n=e(2265),o=e(54909),s=n&&n.__esModule?n:{default:n};i.default=function(t){let{locale:i,...e}=t;if(!i)throw Error(void 0);return s.default.createElement(o.IntlProvider,r.extends({locale:i},e))}},42132:function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.COOKIE_LOCALE_NAME="NEXT_LOCALE",i.COOKIE_MAX_AGE=31536e3,i.COOKIE_SAME_SITE="lax",i.HEADER_LOCALE_NAME="X-NEXT-INTL-LOCALE",i.LOCALE_SEGMENT_NAME="locale"},5038:function(t,i,e){var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,s=r&&Map.prototype.forEach,h="function"==typeof Set&&Set.prototype,a=Object.getOwnPropertyDescriptor&&h?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=h&&a&&"function"==typeof a.get?a.get:null,l=h&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,y=Object.prototype.toString,d=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,w=String.prototype.replace,b=String.prototype.toUpperCase,M=String.prototype.toLowerCase,_=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,k=Array.prototype.slice,x=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P?"object":"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function j(t,i){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,i))return i;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-x(-t):x(t);if(r!==t){var n=String(r),o=g.call(i,n.length+1);return w.call(n,e,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(i,e,"$&_")}var D=e(24654),R=D.custom,I=W(R)?R:null,F={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(t,i,e){var r=F[e.quoteStyle||i];return r+t+r}function $(t){return!L||!("object"==typeof t&&(L in t||void 0!==t[L]))}function V(t){return"[object Array]"===H(t)&&$(t)}function z(t){return"[object RegExp]"===H(t)&&$(t)}function W(t){if(P)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(i,r,n,h){var a=r||{};if(q(a,"quoteStyle")&&!q(F,a.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!q(a,"customInspect")||a.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(a,"indent")&&null!==a.indent&&"	"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=a.numericSeparator;if(void 0===i)return"undefined";if(null===i)return"null";if("boolean"==typeof i)return i?"true":"false";if("string"==typeof i)return function t(i,e){if(i.length>e.maxStringLength){var r=i.length-e.maxStringLength;return t(g.call(i,0,e.maxStringLength),e)+"... "+r+" more character"+(r>1?"s":"")}var n=U[e.quoteStyle||"single"];return n.lastIndex=0,B(w.call(w.call(i,n,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}(i,a);if("number"==typeof i){if(0===i)return 1/0/i>0?"0":"-0";var _=String(i);return b?j(i,_):_}if("bigint"==typeof i){var x=String(i)+"n";return b?j(i,x):x}var T=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=T&&T>0&&"object"==typeof i)return V(i)?"[Array]":"[Object]";var R=function(t,i){var e;if("	"===t.indent)e="	";else{if("number"!=typeof t.indent||!(t.indent>0))return null;e=E.call(Array(t.indent+1)," ")}return{base:e,prev:E.call(Array(i+1),e)}}(a,n);if(void 0===h)h=[];else if(Z(h,i)>=0)return"[Circular]";function G(i,e,r){if(e&&(h=k.call(h)).push(e),r){var o={depth:a.depth};return q(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),t(i,o,n+1,h)}return t(i,a,n+1,h)}if("function"==typeof i&&!z(i)){var ti=function(t){if(t.name)return t.name;var i=m.call(d.call(t),/^function\s*([\w$]+)/);return i?i[1]:null}(i),te=tt(i,G);return"[Function"+(ti?": "+ti:" (anonymous)")+"]"+(te.length>0?" { "+E.call(te,", ")+" }":"")}if(W(i)){var tr=P?w.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(i);return"object"!=typeof i||P?tr:X(tr)}if(i&&"object"==typeof i&&("undefined"!=typeof HTMLElement&&i instanceof HTMLElement||"string"==typeof i.nodeName&&"function"==typeof i.getAttribute)){for(var tn,to="<"+M.call(String(i.nodeName)),ts=i.attributes||[],th=0;th<ts.length;th++)to+=" "+ts[th].name+"="+B((tn=ts[th].value,w.call(String(tn),/"/g,"&quot;")),"double",a);return to+=">",i.childNodes&&i.childNodes.length&&(to+="..."),to+="</"+M.call(String(i.nodeName))+">"}if(V(i)){if(0===i.length)return"[]";var ta=tt(i,G);return R&&!function(t){for(var i=0;i<t.length;i++)if(Z(t[i],"\n")>=0)return!1;return!0}(ta)?"["+Q(ta,R)+"]":"[ "+E.call(ta,", ")+" ]"}if("[object Error]"===H(i)&&$(i)){var tu=tt(i,G);return"cause"in Error.prototype||!("cause"in i)||O.call(i,"cause")?0===tu.length?"["+String(i)+"]":"{ ["+String(i)+"] "+E.call(tu,", ")+" }":"{ ["+String(i)+"] "+E.call(S.call("[cause]: "+G(i.cause),tu),", ")+" }"}if("object"==typeof i&&y){if(I&&"function"==typeof i[I]&&D)return D(i,{depth:T-n});if("symbol"!==y&&"function"==typeof i.inspect)return i.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(i)){var tl=[];return s&&s.call(i,function(t,e){tl.push(G(e,i,!0)+" => "+G(t,i))}),Y("Map",o.call(i),tl,R)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(i)){var tc=[];return l&&l.call(i,function(t){tc.push(G(t,i))}),Y("Set",u.call(i),tc,R)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t,c);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(i))return J("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{c.call(t,c)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(i))return J("WeakSet");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{return p.call(t),!0}catch(t){}return!1}(i))return J("WeakRef");if("[object Number]"===H(i)&&$(i))return X(G(Number(i)));if(function(t){if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(t){}return!1}(i))return X(G(A.call(i)));if("[object Boolean]"===H(i)&&$(i))return X(v.call(i));if("[object String]"===H(i)&&$(i))return X(G(String(i)));if("undefined"!=typeof window&&i===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&i===globalThis||void 0!==e.g&&i===e.g)return"{ [object globalThis] }";if(!("[object Date]"===H(i)&&$(i))&&!z(i)){var tf=tt(i,G),tp=N?N(i)===Object.prototype:i instanceof Object||i.constructor===Object,tv=i instanceof Object?"":"null prototype",ty=!tp&&L&&Object(i)===i&&L in i?g.call(H(i),8,-1):tv?"Object":"",td=(tp||"function"!=typeof i.constructor?"":i.constructor.name?i.constructor.name+" ":"")+(ty||tv?"["+E.call(S.call([],ty||[],tv||[]),": ")+"] ":"");return 0===tf.length?td+"{}":R?td+"{"+Q(tf,R)+"}":td+"{ "+E.call(tf,", ")+" }"}return String(i)};var G=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,i){return G.call(t,i)}function H(t){return y.call(t)}function Z(t,i){if(t.indexOf)return t.indexOf(i);for(var e=0,r=t.length;e<r;e++)if(t[e]===i)return e;return -1}function K(t){var i=t.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];return e?"\\"+e:"\\x"+(i<16?"0":"")+b.call(i.toString(16))}function X(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function Y(t,i,e,r){return t+" ("+i+") {"+(r?Q(e,r):E.call(e,", "))+"}"}function Q(t,i){if(0===t.length)return"";var e="\n"+i.prev+i.base;return e+E.call(t,","+e)+"\n"+i.prev}function tt(t,i){var e,r=V(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=q(t,o)?i(t[o],t):""}var s="function"==typeof T?T(t):[];if(P){e={};for(var h=0;h<s.length;h++)e["$"+s[h]]=s[h]}for(var a in t)q(t,a)&&(!r||String(Number(a))!==a||!(a<t.length))&&(P&&e["$"+a]instanceof Symbol||(_.call(/[^\w$]/,a)?n.push(i(a,t)+": "+i(t[a],t)):n.push(a+": "+i(t[a],t))));if("function"==typeof T)for(var u=0;u<s.length;u++)O.call(t,s[u])&&n.push("["+i(s[u])+"]: "+i(t[s[u]],t));return n}},39770:function(t){"use strict";var i=String.prototype.replace,e=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return i.call(t,e,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},64927:function(t,i,e){"use strict";var r=e(82741),n=e(39658),o=e(39770);t.exports={formats:o,parse:n,stringify:r}},39658:function(t,i,e){"use strict";var r=e(40391),n=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},h=function(t,i,e){if(t&&"string"==typeof t&&i.comma&&t.indexOf(",")>-1)return t.split(",");if(i.throwOnLimitExceeded&&e>=i.arrayLimit)throw RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(1===i.arrayLimit?"":"s")+" allowed in an array.");return t},a=function(t,i){var e={__proto__:null},a=i.ignoreQueryPrefix?t.replace(/^\?/,""):t;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=i.parameterLimit===1/0?void 0:i.parameterLimit,l=a.split(i.delimiter,i.throwOnLimitExceeded?u+1:u);if(i.throwOnLimitExceeded&&l.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var c=-1,f=i.charset;if(i.charsetSentinel)for(p=0;p<l.length;++p)0===l[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[p]?f="utf-8":"utf8=%26%2310003%3B"===l[p]&&(f="iso-8859-1"),c=p,p=l.length);for(p=0;p<l.length;++p)if(p!==c){var p,v,y,d=l[p],m=d.indexOf("]="),g=-1===m?d.indexOf("="):m+1;-1===g?(v=i.decoder(d,s.decoder,f,"key"),y=i.strictNullHandling?null:""):(v=i.decoder(d.slice(0,g),s.decoder,f,"key"),y=r.maybeMap(h(d.slice(g+1),i,o(e[v])?e[v].length:0),function(t){return i.decoder(t,s.decoder,f,"value")})),y&&i.interpretNumericEntities&&"iso-8859-1"===f&&(y=String(y).replace(/&#(\d+);/g,function(t,i){return String.fromCharCode(parseInt(i,10))})),d.indexOf("[]=")>-1&&(y=o(y)?[y]:y);var w=n.call(e,v);w&&"combine"===i.duplicates?e[v]=r.combine(e[v],y):w&&"last"!==i.duplicates||(e[v]=y)}return e},u=function(t,i,e,n){var o=0;if(t.length>0&&"[]"===t[t.length-1]){var s=t.slice(0,-1).join("");o=Array.isArray(i)&&i[s]?i[s].length:0}for(var a=n?i:h(i,e,o),u=t.length-1;u>=0;--u){var l,c=t[u];if("[]"===c&&e.parseArrays)l=e.allowEmptyArrays&&(""===a||e.strictNullHandling&&null===a)?[]:r.combine([],a);else{l=e.plainObjects?{__proto__:null}:{};var f="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,p=e.decodeDotInKeys?f.replace(/%2E/g,"."):f,v=parseInt(p,10);e.parseArrays||""!==p?!isNaN(v)&&c!==p&&String(v)===p&&v>=0&&e.parseArrays&&v<=e.arrayLimit?(l=[])[v]=a:"__proto__"!==p&&(l[p]=a):l={0:a}}a=l}return a},l=function(t,i,e,r){if(t){var o=e.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,h=e.depth>0&&/(\[[^[\]]*])/.exec(o),a=h?o.slice(0,h.index):o,l=[];if(a){if(!e.plainObjects&&n.call(Object.prototype,a)&&!e.allowPrototypes)return;l.push(a)}for(var c=0;e.depth>0&&null!==(h=s.exec(o))&&c<e.depth;){if(c+=1,!e.plainObjects&&n.call(Object.prototype,h[1].slice(1,-1))&&!e.allowPrototypes)return;l.push(h[1])}if(h){if(!0===e.strictDepth)throw RangeError("Input depth exceeded depth option of "+e.depth+" and strictDepth is true");l.push("["+o.slice(h.index)+"]")}return u(l,i,e,r)}},c=function(t){if(!t)return s;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var i=void 0===t.charset?s.charset:t.charset,e=void 0===t.duplicates?s.duplicates:t.duplicates;if("combine"!==e&&"first"!==e&&"last"!==e)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||s.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:i,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,duplicates:e,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}};t.exports=function(t,i){var e=c(i);if(""===t||null==t)return e.plainObjects?{__proto__:null}:{};for(var n="string"==typeof t?a(t,e):t,o=e.plainObjects?{__proto__:null}:{},s=Object.keys(n),h=0;h<s.length;++h){var u=s[h],f=l(u,n[u],e,"string"==typeof t);o=r.merge(o,f,e)}return!0===e.allowSparse?o:r.compact(o)}},82741:function(t,i,e){"use strict";var r=e(29912),n=e(40391),o=e(39770),s=Object.prototype.hasOwnProperty,h={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,i){return t+"["+i+"]"},repeat:function(t){return t}},a=Array.isArray,u=Array.prototype.push,l=function(t,i){u.apply(t,a(i)?i:[i])},c=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(t){return c.call(t)},skipNulls:!1,strictNullHandling:!1},v={},y=function t(i,e,o,s,h,u,c,f,y,d,m,g,w,b,M,_,S,E){for(var k,x,A=i,T=E,C=0,P=!1;void 0!==(T=T.get(v))&&!P;){var L=T.get(i);if(C+=1,void 0!==L){if(L===C)throw RangeError("Cyclic object value");P=!0}void 0===T.get(v)&&(C=0)}if("function"==typeof d?A=d(e,A):A instanceof Date?A=w(A):"comma"===o&&a(A)&&(A=n.maybeMap(A,function(t){return t instanceof Date?w(t):t})),null===A){if(u)return y&&!_?y(e,p.encoder,S,"key",b):e;A=""}if("string"==typeof(k=A)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||n.isBuffer(A))return y?[M(_?e:y(e,p.encoder,S,"key",b))+"="+M(y(A,p.encoder,S,"value",b))]:[M(e)+"="+M(String(A))];var O=[];if(void 0===A)return O;if("comma"===o&&a(A))_&&y&&(A=n.maybeMap(A,y)),x=[{value:A.length>0?A.join(",")||null:void 0}];else if(a(d))x=d;else{var N=Object.keys(A);x=m?N.sort(m):N}var j=f?String(e).replace(/\./g,"%2E"):String(e),D=s&&a(A)&&1===A.length?j+"[]":j;if(h&&a(A)&&0===A.length)return D+"[]";for(var R=0;R<x.length;++R){var I=x[R],F="object"==typeof I&&I&&void 0!==I.value?I.value:A[I];if(!c||null!==F){var U=g&&f?String(I).replace(/\./g,"%2E"):String(I),B=a(A)?"function"==typeof o?o(D,U):D:D+(g?"."+U:"["+U+"]");E.set(i,C);var $=r();$.set(v,E),l(O,t(F,B,o,s,h,u,c,f,"comma"===o&&_&&a(A)?null:y,d,m,g,w,b,M,_,S,$))}}return O},d=function(t){if(!t)return p;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw TypeError("Encoder has to be a function.");var i,e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!s.call(o.formatters,t.format))throw TypeError("Unknown format option provided.");r=t.format}var n=o.formatters[r],u=p.filter;if(("function"==typeof t.filter||a(t.filter))&&(u=t.filter),i=t.arrayFormat in h?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===t.allowDots?!0===t.encodeDotInKeys||p.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:i,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:u,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}};t.exports=function(t,i){var e,n=t,o=d(i);"function"==typeof o.filter?n=(0,o.filter)("",n):a(o.filter)&&(e=o.filter);var s=[];if("object"!=typeof n||null===n)return"";var u=h[o.arrayFormat],c="comma"===u&&o.commaRoundTrip;e||(e=Object.keys(n)),o.sort&&e.sort(o.sort);for(var f=r(),p=0;p<e.length;++p){var v=e[p],m=n[v];o.skipNulls&&null===m||l(s,y(m,v,u,c,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,f))}var g=s.join(o.delimiter),w=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),g.length>0?w+g:""}},40391:function(t,i,e){"use strict";var r=e(39770),n=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],i=0;i<256;++i)t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return t}(),h=function(t){for(;t.length>1;){var i=t.pop(),e=i.obj[i.prop];if(o(e)){for(var r=[],n=0;n<e.length;++n)void 0!==e[n]&&r.push(e[n]);i.obj[i.prop]=r}}},a=function(t,i){for(var e=i&&i.plainObjects?{__proto__:null}:{},r=0;r<t.length;++r)void 0!==t[r]&&(e[r]=t[r]);return e};t.exports={arrayToObject:a,assign:function(t,i){return Object.keys(i).reduce(function(t,e){return t[e]=i[e],t},t)},combine:function(t,i){return[].concat(t,i)},compact:function(t){for(var i=[{obj:{o:t},prop:"o"}],e=[],r=0;r<i.length;++r)for(var n=i[r],o=n.obj[n.prop],s=Object.keys(o),a=0;a<s.length;++a){var u=s[a],l=o[u];"object"==typeof l&&null!==l&&-1===e.indexOf(l)&&(i.push({obj:o,prop:u}),e.push(l))}return h(i),t},decode:function(t,i,e){var r=t.replace(/\+/g," ");if("iso-8859-1"===e)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,i,e,n,o){if(0===t.length)return t;var h=t;if("symbol"==typeof t?h=Symbol.prototype.toString.call(t):"string"!=typeof t&&(h=String(t)),"iso-8859-1"===e)return escape(h).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var a="",u=0;u<h.length;u+=1024){for(var l=h.length>=1024?h.slice(u,u+1024):h,c=[],f=0;f<l.length;++f){var p=l.charCodeAt(f);if(45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===r.RFC1738&&(40===p||41===p)){c[c.length]=l.charAt(f);continue}if(p<128){c[c.length]=s[p];continue}if(p<2048){c[c.length]=s[192|p>>6]+s[128|63&p];continue}if(p<55296||p>=57344){c[c.length]=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p];continue}f+=1,p=65536+((1023&p)<<10|1023&l.charCodeAt(f)),c[c.length]=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p]}a+=c.join("")}return a},isBuffer:function(t){return!!t&&"object"==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,i){if(o(t)){for(var e=[],r=0;r<t.length;r+=1)e.push(i(t[r]));return e}return i(t)},merge:function t(i,e,r){if(!e)return i;if("object"!=typeof e&&"function"!=typeof e){if(o(i))i.push(e);else{if(!i||"object"!=typeof i)return[i,e];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,e))&&(i[e]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(e);var s=i;return(o(i)&&!o(e)&&(s=a(i,r)),o(i)&&o(e))?(e.forEach(function(e,o){if(n.call(i,o)){var s=i[o];s&&"object"==typeof s&&e&&"object"==typeof e?i[o]=t(s,e,r):i.push(e)}else i[o]=e}),i):Object.keys(e).reduce(function(i,o){var s=e[o];return n.call(i,o)?i[o]=t(i[o],s,r):i[o]=s,i},s)}}},9112:function(t,i,e){"use strict";var r=e(5038),n=e(53842),o=function(t,i,e){for(var r,n=t;null!=(r=n.next);n=r)if(r.key===i)return n.next=r.next,e||(r.next=t.next,t.next=r),r},s=function(t,i){if(t){var e=o(t,i);return e&&e.value}},h=function(t,i,e){var r=o(t,i);r?r.value=e:t.next={key:i,next:t.next,value:e}},a=function(t,i){if(t)return o(t,i,!0)};t.exports=function(){var t,i={assert:function(t){if(!i.has(t))throw new n("Side channel does not contain "+r(t))},delete:function(i){var e=t&&t.next,r=a(t,i);return r&&e&&e===r&&(t=void 0),!!r},get:function(i){return s(t,i)},has:function(i){var e;return!!(e=t)&&!!o(e,i)},set:function(i,e){t||(t={next:void 0}),h(t,i,e)}};return i}},9265:function(t,i,e){"use strict";var r=e(50071),n=e(73250),o=e(5038),s=e(53842),h=r("%Map%",!0),a=n("Map.prototype.get",!0),u=n("Map.prototype.set",!0),l=n("Map.prototype.has",!0),c=n("Map.prototype.delete",!0),f=n("Map.prototype.size",!0);t.exports=!!h&&function(){var t,i={assert:function(t){if(!i.has(t))throw new s("Side channel does not contain "+o(t))},delete:function(i){if(t){var e=c(t,i);return 0===f(t)&&(t=void 0),e}return!1},get:function(i){if(t)return a(t,i)},has:function(i){return!!t&&l(t,i)},set:function(i,e){t||(t=new h),u(t,i,e)}};return i}},77117:function(t,i,e){"use strict";var r=e(50071),n=e(73250),o=e(5038),s=e(9265),h=e(53842),a=r("%WeakMap%",!0),u=n("WeakMap.prototype.get",!0),l=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=a?function(){var t,i,e={assert:function(t){if(!e.has(t))throw new h("Side channel does not contain "+o(t))},delete:function(e){if(a&&e&&("object"==typeof e||"function"==typeof e)){if(t)return f(t,e)}else if(s&&i)return i.delete(e);return!1},get:function(e){return a&&e&&("object"==typeof e||"function"==typeof e)&&t?u(t,e):i&&i.get(e)},has:function(e){return a&&e&&("object"==typeof e||"function"==typeof e)&&t?c(t,e):!!i&&i.has(e)},set:function(e,r){a&&e&&("object"==typeof e||"function"==typeof e)?(t||(t=new a),l(t,e,r)):s&&(i||(i=s()),i.set(e,r))}};return e}:s},29912:function(t,i,e){"use strict";var r=e(53842),n=e(5038),o=e(9112),s=e(9265),h=e(77117)||s||o;t.exports=function(){var t,i={assert:function(t){if(!i.has(t))throw new r("Side channel does not contain "+n(t))},delete:function(i){return!!t&&t.delete(i)},get:function(i){return t&&t.get(i)},has:function(i){return!!t&&t.has(i)},set:function(i,e){t||(t=h()),t.set(i,e)}};return i}},54909:function(t,i,e){"use strict";t.exports=e(69362)},63513:function(t,i,e){"use strict";t.exports=e(526)},2791:function(t,i,e){"use strict";t.exports=e(13350)},76357:function(t,i,e){"use strict";var r=e(2265),n=e(23442);function o(){let t=r.useContext(n.IntlContext);if(!t)throw Error(void 0);return t}i.useIntlContext=o,i.useLocale=function(){return o().locale}},526:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(76357);e(2265),e(23442),i.useLocale=r.useLocale},14907:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(29303),n=e(47781);e(2265),e(63981),e(1360),i.IntlError=r.IntlError,i.IntlErrorCode=r.IntlErrorCode,i.createFormatter=r.createFormatter,i._createFormatters=n.createFormatters,i.initializeConfig=n.initializeConfig,i.createTranslator=function(t){let{_formatters:i=n.createFormatters(),getMessageFallback:e=n.defaultGetMessageFallback,messages:o,namespace:s,onError:h=n.defaultOnError,...a}=t;return function(t,i){let{messages:e,namespace:n,...o}=t;return e=e["!"],n=r.resolveNamespace(n,"!"),r.createBaseTranslator({...o,messages:e,namespace:n})}({...a,onError:h,formatters:i,getMessageFallback:e,messages:{"!":o},namespace:s?"!.".concat(s):"!"},0)}},29303:function(t,i,e){"use strict";var r,n=e(2265),o=e(63981),s=e(47781),h=o&&o.__esModule?o:{default:o};function a(t,i,e){var r;return(i="symbol"==typeof(r=function(t,i){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,i||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(i,"string"))?r:r+"")in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}let u=((r={}).MISSING_MESSAGE="MISSING_MESSAGE",r.MISSING_FORMAT="MISSING_FORMAT",r.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",r.INSUFFICIENT_PATH="INSUFFICIENT_PATH",r.INVALID_MESSAGE="INVALID_MESSAGE",r.INVALID_KEY="INVALID_KEY",r.FORMATTING_ERROR="FORMATTING_ERROR",r);class l extends Error{constructor(t,i){let e=t;i&&(e+=": "+i),super(e),a(this,"code",void 0),a(this,"originalMessage",void 0),this.code=t,i&&(this.originalMessage=i)}}function c(t,i){return t?Object.keys(t).reduce((e,r)=>(e[r]={timeZone:i,...t[r]},e),{}):t}function f(t,i,e,r){let n=s.joinPath(r,e);if(!i)throw Error(n);let o=i;return e.split(".").forEach(i=>{let e=o[i];if(null==i||null==e)throw Error(n+" (".concat(t,")"));o=e}),o}let p=365/12*86400,v={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};i.IntlError=l,i.IntlErrorCode=u,i.createBaseTranslator=function(t){let i=function(t,i,e){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.defaultOnError;try{if(!i)throw Error(void 0);let r=e?f(t,i,e):i;if(!r)throw Error(e);return r}catch(i){let t=new l(u.MISSING_MESSAGE,i.message);return r(t),t}}(t.locale,t.messages,t.namespace,t.onError);return function(t){let{defaultTranslationValues:i,formats:e,formatters:r,getMessageFallback:o=s.defaultGetMessageFallback,locale:a,messagesOrError:p,namespace:v,onError:y,timeZone:d}=t;function m(t,i,e){let r=new l(i,e);return y(r),o({error:r,key:t,namespace:v})}function g(t,s,y){let g,w;if(p instanceof l)return o({error:p,key:t,namespace:v});try{g=f(a,p,t,v)}catch(i){return m(t,u.MISSING_MESSAGE,i.message)}if("object"==typeof g){let i;return m(t,Array.isArray(g)?u.INVALID_MESSAGE:u.INSUFFICIENT_PATH,i)}let b=function(t,i){if(i)return;let e=t.replace(/'([{}])/gi,"$1");return/<|{/.test(e)?void 0:e}(g,s);if(b)return b;try{w=r.getMessageFormat(g,a,function(t,i){let e=i?{...t,dateTime:c(t.dateTime,i)}:t,r=h.default.formats.date,n=i?c(r,i):r,o=h.default.formats.time,s=i?c(o,i):o;return{...e,date:{...n,...null==e?void 0:e.dateTime},time:{...s,...null==e?void 0:e.dateTime}}}({...e,...y},d),{formatters:{...r,getDateTimeFormat:(t,i)=>r.getDateTimeFormat(t,{timeZone:d,...i})}})}catch(i){return m(t,u.INVALID_MESSAGE,i.message)}try{let t=w.format(function(t){if(0===Object.keys(t).length)return;let i={};return Object.keys(t).forEach(e=>{let r,o=0,s=t[e];r="function"==typeof s?t=>{let i=s(t);return n.isValidElement(i)?n.cloneElement(i,{key:e+o++}):i}:s,i[e]=r}),i}({...i,...s}));if(null==t)throw Error(void 0);return n.isValidElement(t)||Array.isArray(t)||"string"==typeof t?t:String(t)}catch(i){return m(t,u.FORMATTING_ERROR,i.message)}}function w(t,i,e){let r=g(t,i,e);return"string"!=typeof r?m(t,u.INVALID_MESSAGE,void 0):r}return w.rich=g,w.markup=(t,i,e)=>{let r=g(t,i,e);if("string"!=typeof r){let i=new l(u.FORMATTING_ERROR,void 0);return y(i),o({error:i,key:t,namespace:v})}return r},w.raw=t=>{if(p instanceof l)return o({error:p,key:t,namespace:v});try{return f(a,p,t,v)}catch(i){return m(t,u.MISSING_MESSAGE,i.message)}},w}({...t,messagesOrError:i})},i.createFormatter=function(t){let{_formatters:i=s.createFormatters(),formats:e,locale:r,now:n,onError:o=s.defaultOnError,timeZone:h}=t;function a(t){var i;return null!==(i=t)&&void 0!==i&&i.timeZone||(h?t={...t,timeZone:h}:o(new l(u.ENVIRONMENT_FALLBACK,void 0))),t}function c(t,i,e,r){let n;try{n=function(t,i){let e;if("string"==typeof i){if(!(e=null==t?void 0:t[i])){let t=new l(u.MISSING_FORMAT,void 0);throw o(t),t}}else e=i;return e}(i,t)}catch(t){return r()}try{return e(n)}catch(t){return o(new l(u.FORMATTING_ERROR,t.message)),r()}}function f(t,n){return c(n,null==e?void 0:e.dateTime,e=>(e=a(e),i.getDateTimeFormat(r,e).format(t)),()=>String(t))}function y(){return n||(o(new l(u.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:f,number:function(t,n){return c(n,null==e?void 0:e.number,e=>i.getNumberFormat(r,e).format(t),()=>String(t))},relativeTime:function(t,e){try{var n;let o,s;let h={};e instanceof Date||"number"==typeof e?o=new Date(e):e&&(o=null!=e.now?new Date(e.now):y(),s=e.unit,h.style=e.style,h.numberingSystem=e.numberingSystem),o||(o=y());let a=(new Date(t).getTime()-o.getTime())/1e3;s||(s=function(t){let i=Math.abs(t);return i<60?"second":i<3600?"minute":i<86400?"hour":i<604800?"day":i<p?"week":i<31536e3?"month":"year"}(a)),h.numeric="second"===s?"auto":"always";let u=(n=s,Math.round(a/v[n]));return i.getRelativeTimeFormat(r,h).format(u,s)}catch(i){return o(new l(u.FORMATTING_ERROR,i.message)),String(t)}},list:function(t,n){let o=[],s=new Map,h=0;for(let i of t){let t;"object"==typeof i?(t=String(h),s.set(t,i)):t=String(i),o.push(t),h++}return c(n,null==e?void 0:e.list,t=>{let e=i.getListFormat(r,t).formatToParts(o).map(t=>"literal"===t.type?t.value:s.get(t.value)||t.value);return s.size>0?e:e.join("")},()=>String(t))},dateTimeRange:function(t,n,o){return c(o,null==e?void 0:e.dateTime,e=>(e=a(e),i.getDateTimeFormat(r,e).formatRange(t,n)),()=>[f(t),f(n)].join(" – "))}}},i.resolveNamespace=function(t,i){return t===i?void 0:t.slice((i+".").length)}},13350:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(29303),n=e(14907),o=e(47781),s=e(69362),h=e(38780),a=e(76357);e(2265),e(63981),e(1360),e(23442),i.IntlError=r.IntlError,i.IntlErrorCode=r.IntlErrorCode,i.createFormatter=r.createFormatter,i.createTranslator=n.createTranslator,i._createFormatters=o.createFormatters,i.initializeConfig=o.initializeConfig,i.IntlProvider=s.IntlProvider,i.useFormatter=h.useFormatter,i.useMessages=h.useMessages,i.useNow=h.useNow,i.useTimeZone=h.useTimeZone,i.useTranslations=h.useTranslations,i.useLocale=a.useLocale},38780:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e(69362),n=e(76357),o=e(2265),s=e(29303);e(47781),e(1360),e(63981),e(23442);let h=!1,a="undefined"==typeof window;i.IntlProvider=r.IntlProvider,i.useLocale=n.useLocale,i.useFormatter=function(){let{formats:t,formatters:i,locale:e,now:r,onError:h,timeZone:a}=n.useIntlContext();return o.useMemo(()=>s.createFormatter({formats:t,locale:e,now:r,onError:h,timeZone:a,_formatters:i}),[t,i,r,e,h,a])},i.useMessages=function(){let t=n.useIntlContext();if(!t.messages)throw Error(void 0);return t.messages},i.useNow=function(t){let i=null==t?void 0:t.updateInterval,{now:e}=n.useIntlContext(),[r,s]=o.useState(e||new Date);return o.useEffect(()=>{if(!i)return;let t=setInterval(()=>{s(new Date)},i);return()=>{clearInterval(t)}},[e,i]),null==i&&e?e:r},i.useTimeZone=function(){return n.useIntlContext().timeZone},i.useTranslations=function(t){return function(t,i,e){let{defaultTranslationValues:r,formats:u,formatters:l,getMessageFallback:c,locale:f,onError:p,timeZone:v}=n.useIntlContext();return t=t["!"],i=s.resolveNamespace(i,"!"),v||h||!a||(h=!0,p(new s.IntlError(s.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),o.useMemo(()=>s.createBaseTranslator({formatters:l,getMessageFallback:c,messages:t,defaultTranslationValues:r,namespace:i,onError:p,formats:u,locale:f,timeZone:v}),[l,c,t,r,i,p,u,f,v])}({"!":n.useIntlContext().messages},t?"!.".concat(t):"!",0)}},31511:function(t,i,e){"use strict";e.d(i,{C:function(){return _}});var r=e(57437),n=e(2265),o=e(35563),s=e(75461),h=e(61994),a=e(31620),u=e(80684),l=e(52074);let c=(0,l.g)("check-all","sc"),f=Object.freeze({wrapper:`${c}__wrapper`,link:`${c}__link`,icon:`${c}__icon`,iconGray:`${c}__icon--gray`}),p=({children:t,className:i,linkClassName:e,iconGrayBackground:n,Link:o,event:a,href:l,dataLayerPush:c})=>{let p=o??s.rU;return(0,r.jsx)("div",{className:(0,h.Z)(f.wrapper,i),onClick:()=>{a&&c(a)},children:(0,r.jsxs)(p,{className:(0,h.Z)(f.link,e),href:l,children:[t,(0,r.jsx)("span",{className:(0,h.Z)(f.icon,{[f.iconGray]:n}),children:(0,r.jsx)(u.IconFdsArrowUpRightSmallO,{size:24})})]})})},v=(0,l.g)("faq-block","sc"),y=Object.freeze({faqBlock:v,titleWrapper:`${v}__title-wrapper`,title:`${v}__title`,accordionWrapper:`${v}__accordion-wrapper`,accordionItems:`${v}__accordion-items`,accordionItemGray:`${v}__accordion-item--gray`,accordionItemContent:`${v}__accordion-item-content`,accordionActiveItemContent:`${v}__accordion-item-content--active`,states:{primary:`${v}--primary`,secondary:`${v}--secondary`,gray:`${v}--gray`}}),d=t=>{t.data.forEach((i,e)=>{"header"===i.type&&(t.headerBlocksCount++,3===t.headerBlocksCount&&("banner"===t.data[e-1].type&&(t.banner=t.data.splice(e-1,1)),"banner"===t.data[e+1].type&&(t.banner=t.data.splice(e+1,1))),t.banner&&4===t.headerBlocksCount&&t.data.splice(e,0,t.banner[0]))})},m=(0,l.g)("faq-content-block","sc"),g=Object.freeze({contentBlocks:`${m}__content-blocks`,blockLink:`${m}__block-link`,keynoteWrapper:`${m}__keynote-wrapper`,keynote:`${m}__keynote`,annotation:`${m}__annotation`,contentTableWrapper:`${m}__content-table-wrapper`}),w=({className:t,data:i})=>{if(!Array.isArray(i))return null;let e=(()=>{let t=[],e=1,n={data:i,headerBlocksCount:0,banner:[]};d(n),d(n);let o={},s=t=>{var i,e,r,n;let s=(null==(i=t.data)?void 0:i.text)??(null==(e=t.data)?void 0:e.url)??(null==(r=t.data)?void 0:r.html)??(null!=(n=t.data)&&n.year?String(t.data.year):"");return o[t.type]=(o[t.type]??0)+1,`${t.type}-${String(s).slice(0,80)}-${o[t.type]}`};return i.forEach(i=>{let n=s(i);switch(i.type){case"header":t.push((0,r.jsx)("h2",{id:`content_header_${e}`,role:"header",children:i.data.text||""},n)),e++;break;case"sub_header":t.push((0,r.jsx)("h3",{role:"sub-header",children:i.data.text||""},n));break;case"paragraph":t.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:i.data.text||""},role:"paragraph"},n));break;case"link":t.push((0,r.jsx)("div",{className:g.blockLink,children:(0,r.jsx)("a",{target:"_blank",href:i.data.url||"",role:"link",rel:"noreferrer",children:i.data.text||""})},n));break;case"dossier":t.push((0,r.jsxs)("div",{children:[(0,r.jsx)("span",{role:"dossier-year",children:i.data.year||""}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:i.data.text||""},role:"dossier-text"})]},n));break;case"html":t.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:i.data.html||""},role:"html"},n));break;case"annotation":t.push((0,r.jsx)("div",{className:g.annotation,dangerouslySetInnerHTML:{__html:i.data.text||""},role:"annotation"},n));break;case"company-annotation":t.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:i.data.text||""},role:"company-annotation"},n));break;case"keynote":t.push((0,r.jsx)("div",{className:g.keynoteWrapper,children:(0,r.jsx)("p",{className:g.keynote,dangerouslySetInnerHTML:{__html:i.data.text||""},role:"keynote"})},n));break;case"image":t.push((0,r.jsx)("img",{src:i.data.url||"",alt:"image"},n))}}),t})();return(0,r.jsx)("div",{className:(0,h.Z)(g.contentBlocks,t),role:"blocks",children:e})},b=({question:t,eventCategory:i,dataLayerPush:e,...n})=>(0,r.jsx)(s.Qd,{...n,title:t.question,children:(0,r.jsx)("div",{className:(0,h.Z)(y.accordionItemContent,{[y.accordionActiveItemContent]:n.isActive}),onClick:t=>{t.target instanceof HTMLAnchorElement&&e({event:"data-event",eventCategory:i,eventAction:"click_link",eventLabel:t.target.href})},children:"string"==typeof t.answer?(0,r.jsx)(w,{data:[{type:"html",data:{html:t.answer}}]}):t.answer})}),M=t=>{setTimeout(()=>{let{top:i}=t.getBoundingClientRect();i<80&&t.scrollIntoView({behavior:"smooth",block:"start"})},300)},_=({sectionTitle:t="Частые вопросы",innerTitle:i,questions:e=[],href:u,checkAllText:l,Link:c,className:f,eventCategory:v="cb-faq",multiple:d=!1,variant:m="secondary",dataLayerPush:g,tagTitle:w})=>{let _=d?e.map(t=>t.question):[],[S,E]=(0,n.useState)(_),k="gray"===m;return(0,r.jsx)("section",{className:(0,h.Z)(y.faqBlock,y.states[m],f),children:(0,r.jsxs)(o.W2,{children:[!i&&(0,r.jsx)("div",{className:y.titleWrapper,children:(0,r.jsx)(o.X6,{as:"h2",type:"display",className:y.title,children:t})}),(0,r.jsxs)("div",{className:y.accordionWrapper,children:[i&&(0,r.jsx)(o.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,h.Z)(y.title,`${y.title}--inner`),children:i}),(0,r.jsx)("div",{className:y.accordionItems,children:(0,r.jsx)(s.UQ,{activeIndex:S,variant:k?"primary":"secondary",withoutOutline:k,onTabToggle:t=>{let i=(null==t?void 0:t.length)>(null==S?void 0:S.length),e=t.filter(t=>!S.includes(t))[0]||S.filter(i=>!t.includes(i))[0];g({event:"data-event",eventCategory:v,eventAction:`click_togg_${i?"on":"off"}`,eventLabel:(0,a.t)(String(e))}),E(t);let r=`[data-accordion-index="${e}"]`,n=document.querySelector(r);n&&M(n)},multiple:d,children:e.map(t=>{let i=`faq-${t.question}`;return(0,r.jsx)(b,{id:i,question:t,dataLayerPush:g,eventCategory:v,className:k?y.accordionItemGray:void 0,tagTitle:w},i)})})}),u&&l&&(0,r.jsx)(p,{href:u,event:{event:"data-event",eventCategory:v,eventAction:"сlick_link_answer-link",eventLabel:u},dataLayerPush:g,...null!=c?{Link:c}:{},iconGrayBackground:!0,children:l||"Читать все вопросы"})]})]})})}},98645:function(t,i,e){"use strict";e.d(i,{Wg:function(){return g}});let r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,n=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(t,i){if("__proto__"===t||"constructor"===t&&i&&"object"==typeof i&&"prototype"in i){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`);return}return i}function h(t,i={}){if("string"!=typeof t)return t;let e=t.trim();if('"'===t[0]&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){let t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!o.test(t)){if(i.strict)throw SyntaxError("[destr] Invalid JSON");return t}try{if(r.test(t)||n.test(t)){if(i.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(t,s)}return JSON.parse(t)}catch(e){if(i.strict)throw e;return t}}var a=e(77337);class u extends Error{constructor(t,i){super(t,i),this.name="FetchError",i?.cause&&!this.cause&&(this.cause=i.cause)}}let l=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function c(t="GET"){return l.has(t.toUpperCase())}let f=new Set(["image/svg","application/xml","application/xhtml","application/html"]),p=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function v(t,i){if(i){if(Array.isArray(i))for(let e of i)await e(t);else await i(t)}}let y=new Set([408,409,425,429,500,502,503,504]),d=new Set([101,204,205,304]),m=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}(),g=function t(i={}){let{fetch:e=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=i;async function o(t){let i=t.error&&"AbortError"===t.error.name&&!t.options.timeout||!1;if(!1!==t.options.retry&&!i){let i;i="number"==typeof t.options.retry?t.options.retry:c(t.options.method)?0:1;let e=t.response&&t.response.status||500;if(i>0&&(Array.isArray(t.options.retryStatusCodes)?t.options.retryStatusCodes.includes(e):y.has(e))){let e="function"==typeof t.options.retryDelay?t.options.retryDelay(t):t.options.retryDelay||0;return e>0&&await new Promise(t=>setTimeout(t,e)),s(t.request,{...t.options,retry:i-1})}}let e=function(t){let i=t.error?.message||t.error?.toString()||"",e=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",n=`[${e}] ${JSON.stringify(r)}`,o=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=new u(`${n}: ${o}${i?` ${i}`:""}`,t.error?{cause:t.error}:void 0);for(let i of["request","options","response"])Object.defineProperty(s,i,{get:()=>t[i]});for(let[i,e]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,i,{get:()=>t.response&&t.response[e]});return s}(t);throw Error.captureStackTrace&&Error.captureStackTrace(e,s),e}let s=async function(t,s={}){let u;let l={request:t,options:function(t,i,e,r){let n;let o=function(t,i,e){if(!i)return new e(t);let r=new e(i);if(t)for(let[i,n]of Symbol.iterator in t||Array.isArray(t)?t:new e(t))r.set(i,n);return r}(i?.headers??t?.headers,e?.headers,r);return(e?.query||e?.params||i?.params||i?.query)&&(n={...e?.params,...e?.query,...i?.params,...i?.query}),{...e,...i,query:n,params:n,headers:o}}(t,s,i.defaults,r),response:void 0,error:void 0};if(l.options.method=l.options.method?.toUpperCase(),l.options.onRequest&&await v(l,l.options.onRequest),"string"==typeof l.request&&(l.options.baseURL&&(l.request=(0,a.pJ)(l.request,l.options.baseURL)),l.options.query&&(l.request=(0,a.jb)(l.request,l.options.query))),l.options.body&&c(l.options.method)&&(function(t){if(void 0===t)return!1;let i=typeof t;return"string"===i||"number"===i||"boolean"===i||null===i||"object"===i&&(!!Array.isArray(t)||!t.buffer&&(t.constructor&&"Object"===t.constructor.name||"function"==typeof t.toJSON))}(l.options.body)?(l.options.body="string"==typeof l.options.body?l.options.body:JSON.stringify(l.options.body),l.options.headers=new r(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&"function"==typeof l.options.body.pipeTo||"function"==typeof l.options.body.pipe)&&!("duplex"in l.options)&&(l.options.duplex="half")),!l.options.signal&&l.options.timeout){let t=new n;u=setTimeout(()=>{let i=Error("[TimeoutError]: The operation was aborted due to timeout");i.name="TimeoutError",i.code=23,t.abort(i)},l.options.timeout),l.options.signal=t.signal}try{l.response=await e(l.request,l.options)}catch(t){return l.error=t,l.options.onRequestError&&await v(l,l.options.onRequestError),await o(l)}finally{u&&clearTimeout(u)}if(l.response.body&&!d.has(l.response.status)&&"HEAD"!==l.options.method){let t=(l.options.parseResponse?"json":l.options.responseType)||function(t=""){if(!t)return"json";let i=t.split(";").shift()||"";return p.test(i)?"json":f.has(i)||i.startsWith("text/")?"text":"blob"}(l.response.headers.get("content-type")||"");switch(t){case"json":{let t=await l.response.text(),i=l.options.parseResponse||h;l.response._data=i(t);break}case"stream":l.response._data=l.response.body;break;default:l.response._data=await l.response[t]()}}return(l.options.onResponse&&await v(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600)?(l.options.onResponseError&&await v(l,l.options.onResponseError),await o(l)):l.response},l=async function(t,i){return(await s(t,i))._data};return l.raw=s,l.native=(...t)=>e(...t),l.create=(e={},r={})=>t({...i,...r,defaults:{...i.defaults,...r.defaults,...e}}),l}({fetch:m.fetch?(...t)=>m.fetch(...t):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),Headers:m.Headers,AbortController:m.AbortController})}}]);