@wangliang139/klinecharts-pro 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(function(lt,ce){typeof exports=="object"&&typeof module<"u"?ce(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],ce):(lt=typeof globalThis<"u"?globalThis:lt||self,ce(lt.klinechartspro={},lt.klinecharts))})(this,function(lt,ce){"use strict";var
|
|
1
|
+
(function(lt,ce){typeof exports=="object"&&typeof module<"u"?ce(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],ce):(lt=typeof globalThis<"u"?globalThis:lt||self,ce(lt.klinechartspro={},lt.klinecharts))})(this,function(lt,ce){"use strict";var ak=Object.defineProperty;var sk=(lt,ce,Gt)=>ce in lt?ak(lt,ce,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):lt[ce]=Gt;var wt=(lt,ce,Gt)=>(sk(lt,typeof ce!="symbol"?ce+"":ce,Gt),Gt);function Gt(e,r,i){const o=(e.x-r.x)*Math.cos(i)-(e.y-r.y)*Math.sin(i)+r.x,s=(e.x-r.x)*Math.sin(i)+(e.y-r.y)*Math.cos(i)+r.y;return{x:o,y:s}}function j0(e,r){if(e.length>1){let i;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?i={x:e[0].x,y:r.height}:i={x:e[0].x,y:0}:e[0].x>e[1].x?i={x:0,y:ce.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:r.width,y:ce.utils.getLinearYFromCoordinates(e[0],e[1],{x:r.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function sa(e,r){const i=Math.abs(e.x-r.x),o=Math.abs(e.y-r.y);return Math.sqrt(i*i+o*o)}var gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lr={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/Lr.exports,function(e,r){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",g="Invalid `imports` option passed into `_.template`",y="__lodash_hash_undefined__",C=500,_="__lodash_placeholder__",$=1,M=2,x=4,T=1,k=2,S=1,D=2,F=4,P=8,z=16,q=32,Z=64,O=128,W=256,Q=512,H=30,ie="...",J=800,N=16,re=1,Se=2,ge=3,pe=1/0,Fe=9007199254740991,Le=17976931348623157e292,Ge=0/0,Ee=4294967295,pt=Ee-1,oe=Ee>>>1,te=[["ary",O],["bind",S],["bindKey",D],["curry",P],["curryRight",z],["flip",Q],["partial",q],["partialRight",Z],["rearg",W]],ae="[object Arguments]",be="[object Array]",ze="[object AsyncFunction]",ve="[object Boolean]",Lt="[object Date]",zn="[object DOMException]",wn="[object Error]",Ln="[object Function]",Nn="[object GeneratorFunction]",je="[object Map]",Ne="[object Number]",en="[object Null]",rt="[object Object]",Mt="[object Promise]",$n="[object Proxy]",it="[object RegExp]",ut="[object Set]",kn="[object String]",O1="[object Symbol]",or="[object Undefined]",Kn="[object WeakMap]",ar="[object WeakSet]",r1="[object ArrayBuffer]",Wn="[object DataView]",B1="[object Float32Array]",sr="[object Float64Array]",Ue="[object Int8Array]",lr="[object Int16Array]",E1="[object Int32Array]",D1="[object Uint8Array]",R1="[object Uint8ClampedArray]",F1="[object Uint16Array]",ji="[object Uint32Array]",Sb=/\b__p \+= '';/g,Ab=/\b(__p \+=) '' \+/g,Mb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M5=/&(?:amp|lt|gt|quot|#39);/g,T5=/[&<>"']/g,Tb=RegExp(M5.source),Pb=RegExp(T5.source),Ib=/<%-([\s\S]+?)%>/g,Ob=/<%([\s\S]+?)%>/g,P5=/<%=([\s\S]+?)%>/g,Bb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Eb=/^\w*$/,Db=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yi=/[\\^$.*+?()[\]{}|]/g,Rb=RegExp(Yi.source),Gi=/^\s+/,Fb=/\s/,zb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nb=/\{\n\/\* \[wrapped with (.+)\] \*/,Kb=/,? & /,Wb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,I5=/[()=,{}\[\]\/\s]/,Ub=/\\(\\)?/g,Zb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,O5=/\w*$/,Qb=/^[-+]0x[0-9a-f]+$/i,jb=/^0b[01]+$/i,Yb=/^\[object .+?Constructor\]$/,Gb=/^0o[0-7]+$/i,Hb=/^(?:0|[1-9]\d*)$/,Vb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o0=/($^)/,qb=/['\n\r\u2028\u2029\\]/g,a0="\\ud800-\\udfff",Xb="\\u0300-\\u036f",Jb="\\ufe20-\\ufe2f",e_="\\u20d0-\\u20ff",B5=Xb+Jb+e_,E5="\\u2700-\\u27bf",D5="a-z\\xdf-\\xf6\\xf8-\\xff",t_="\\xac\\xb1\\xd7\\xf7",n_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",r_="\\u2000-\\u206f",i_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",R5="A-Z\\xc0-\\xd6\\xd8-\\xde",F5="\\ufe0e\\ufe0f",z5=t_+n_+r_+i_,Hi="['’]",o_="["+a0+"]",N5="["+z5+"]",s0="["+B5+"]",K5="\\d+",a_="["+E5+"]",W5="["+D5+"]",U5="[^"+a0+z5+K5+E5+D5+R5+"]",Vi="\\ud83c[\\udffb-\\udfff]",s_="(?:"+s0+"|"+Vi+")",Z5="[^"+a0+"]",qi="(?:\\ud83c[\\udde6-\\uddff]){2}",Xi="[\\ud800-\\udbff][\\udc00-\\udfff]",z1="["+R5+"]",Q5="\\u200d",j5="(?:"+W5+"|"+U5+")",l_="(?:"+z1+"|"+U5+")",Y5="(?:"+Hi+"(?:d|ll|m|re|s|t|ve))?",G5="(?:"+Hi+"(?:D|LL|M|RE|S|T|VE))?",H5=s_+"?",V5="["+F5+"]?",c_="(?:"+Q5+"(?:"+[Z5,qi,Xi].join("|")+")"+V5+H5+")*",u_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",f_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q5=V5+H5+c_,d_="(?:"+[a_,qi,Xi].join("|")+")"+q5,h_="(?:"+[Z5+s0+"?",s0,qi,Xi,o_].join("|")+")",g_=RegExp(Hi,"g"),p_=RegExp(s0,"g"),Ji=RegExp(Vi+"(?="+Vi+")|"+h_+q5,"g"),y_=RegExp([z1+"?"+W5+"+"+Y5+"(?="+[N5,z1,"$"].join("|")+")",l_+"+"+G5+"(?="+[N5,z1+j5,"$"].join("|")+")",z1+"?"+j5+"+"+Y5,z1+"+"+G5,f_,u_,K5,d_].join("|"),"g"),m_=RegExp("["+Q5+a0+B5+F5+"]"),b_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,__=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],v_=-1,Ze={};Ze[B1]=Ze[sr]=Ze[Ue]=Ze[lr]=Ze[E1]=Ze[D1]=Ze[R1]=Ze[F1]=Ze[ji]=!0,Ze[ae]=Ze[be]=Ze[r1]=Ze[ve]=Ze[Wn]=Ze[Lt]=Ze[wn]=Ze[Ln]=Ze[je]=Ze[Ne]=Ze[rt]=Ze[it]=Ze[ut]=Ze[kn]=Ze[Kn]=!1;var Ke={};Ke[ae]=Ke[be]=Ke[r1]=Ke[Wn]=Ke[ve]=Ke[Lt]=Ke[B1]=Ke[sr]=Ke[Ue]=Ke[lr]=Ke[E1]=Ke[je]=Ke[Ne]=Ke[rt]=Ke[it]=Ke[ut]=Ke[kn]=Ke[O1]=Ke[D1]=Ke[R1]=Ke[F1]=Ke[ji]=!0,Ke[wn]=Ke[Ln]=Ke[Kn]=!1;var C_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},x_={"&":"&","<":"<",">":">",'"':""","'":"'"},w_={"&":"&","<":"<",">":">",""":'"',"'":"'"},L_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$_=parseFloat,k_=parseInt,X5=typeof gn=="object"&&gn&&gn.Object===Object&&gn,S_=typeof self=="object"&&self&&self.Object===Object&&self,ft=X5||S_||Function("return this")(),eo=r&&!r.nodeType&&r,i1=eo&&!0&&e&&!e.nodeType&&e,J5=i1&&i1.exports===eo,to=J5&&X5.process,Kt=function(){try{var w=i1&&i1.require&&i1.require("util").types;return w||to&&to.binding&&to.binding("util")}catch{}}(),e2=Kt&&Kt.isArrayBuffer,t2=Kt&&Kt.isDate,n2=Kt&&Kt.isMap,r2=Kt&&Kt.isRegExp,i2=Kt&&Kt.isSet,o2=Kt&&Kt.isTypedArray;function Tt(w,I,A){switch(A.length){case 0:return w.call(I);case 1:return w.call(I,A[0]);case 2:return w.call(I,A[0],A[1]);case 3:return w.call(I,A[0],A[1],A[2])}return w.apply(I,A)}function A_(w,I,A,V){for(var fe=-1,Me=w==null?0:w.length;++fe<Me;){var ot=w[fe];I(V,ot,A(ot),w)}return V}function Pt(w,I){for(var A=-1,V=w==null?0:w.length;++A<V&&I(w[A],A,w)!==!1;);return w}function M_(w,I){for(var A=w==null?0:w.length;A--&&I(w[A],A,w)!==!1;);return w}function a2(w,I){for(var A=-1,V=w==null?0:w.length;++A<V;)if(!I(w[A],A,w))return!1;return!0}function Un(w,I){for(var A=-1,V=w==null?0:w.length,fe=0,Me=[];++A<V;){var ot=w[A];I(ot,A,w)&&(Me[fe++]=ot)}return Me}function l0(w,I){var A=w==null?0:w.length;return!!A&&N1(w,I,0)>-1}function no(w,I,A){for(var V=-1,fe=w==null?0:w.length;++V<fe;)if(A(I,w[V]))return!0;return!1}function Qe(w,I){for(var A=-1,V=w==null?0:w.length,fe=Array(V);++A<V;)fe[A]=I(w[A],A,w);return fe}function Zn(w,I){for(var A=-1,V=I.length,fe=w.length;++A<V;)w[fe+A]=I[A];return w}function ro(w,I,A,V){var fe=-1,Me=w==null?0:w.length;for(V&&Me&&(A=w[++fe]);++fe<Me;)A=I(A,w[fe],fe,w);return A}function T_(w,I,A,V){var fe=w==null?0:w.length;for(V&&fe&&(A=w[--fe]);fe--;)A=I(A,w[fe],fe,w);return A}function io(w,I){for(var A=-1,V=w==null?0:w.length;++A<V;)if(I(w[A],A,w))return!0;return!1}var P_=oo("length");function I_(w){return w.split("")}function O_(w){return w.match(Wb)||[]}function s2(w,I,A){var V;return A(w,function(fe,Me,ot){if(I(fe,Me,ot))return V=Me,!1}),V}function c0(w,I,A,V){for(var fe=w.length,Me=A+(V?1:-1);V?Me--:++Me<fe;)if(I(w[Me],Me,w))return Me;return-1}function N1(w,I,A){return I===I?Q_(w,I,A):c0(w,l2,A)}function B_(w,I,A,V){for(var fe=A-1,Me=w.length;++fe<Me;)if(V(w[fe],I))return fe;return-1}function l2(w){return w!==w}function c2(w,I){var A=w==null?0:w.length;return A?so(w,I)/A:Ge}function oo(w){return function(I){return I==null?i:I[w]}}function ao(w){return function(I){return w==null?i:w[I]}}function u2(w,I,A,V,fe){return fe(w,function(Me,ot,De){A=V?(V=!1,Me):I(A,Me,ot,De)}),A}function E_(w,I){var A=w.length;for(w.sort(I);A--;)w[A]=w[A].value;return w}function so(w,I){for(var A,V=-1,fe=w.length;++V<fe;){var Me=I(w[V]);Me!==i&&(A=A===i?Me:A+Me)}return A}function lo(w,I){for(var A=-1,V=Array(w);++A<w;)V[A]=I(A);return V}function D_(w,I){return Qe(I,function(A){return[A,w[A]]})}function f2(w){return w&&w.slice(0,p2(w)+1).replace(Gi,"")}function It(w){return function(I){return w(I)}}function co(w,I){return Qe(I,function(A){return w[A]})}function cr(w,I){return w.has(I)}function d2(w,I){for(var A=-1,V=w.length;++A<V&&N1(I,w[A],0)>-1;);return A}function h2(w,I){for(var A=w.length;A--&&N1(I,w[A],0)>-1;);return A}function R_(w,I){for(var A=w.length,V=0;A--;)w[A]===I&&++V;return V}var F_=ao(C_),z_=ao(x_);function N_(w){return"\\"+L_[w]}function K_(w,I){return w==null?i:w[I]}function K1(w){return m_.test(w)}function W_(w){return b_.test(w)}function U_(w){for(var I,A=[];!(I=w.next()).done;)A.push(I.value);return A}function uo(w){var I=-1,A=Array(w.size);return w.forEach(function(V,fe){A[++I]=[fe,V]}),A}function g2(w,I){return function(A){return w(I(A))}}function Qn(w,I){for(var A=-1,V=w.length,fe=0,Me=[];++A<V;){var ot=w[A];(ot===I||ot===_)&&(w[A]=_,Me[fe++]=A)}return Me}function u0(w){var I=-1,A=Array(w.size);return w.forEach(function(V){A[++I]=V}),A}function Z_(w){var I=-1,A=Array(w.size);return w.forEach(function(V){A[++I]=[V,V]}),A}function Q_(w,I,A){for(var V=A-1,fe=w.length;++V<fe;)if(w[V]===I)return V;return-1}function j_(w,I,A){for(var V=A+1;V--;)if(w[V]===I)return V;return V}function W1(w){return K1(w)?G_(w):P_(w)}function tn(w){return K1(w)?H_(w):I_(w)}function p2(w){for(var I=w.length;I--&&Fb.test(w.charAt(I)););return I}var Y_=ao(w_);function G_(w){for(var I=Ji.lastIndex=0;Ji.test(w);)++I;return I}function H_(w){return w.match(Ji)||[]}function V_(w){return w.match(y_)||[]}var q_=function w(I){I=I==null?ft:U1.defaults(ft.Object(),I,U1.pick(ft,__));var A=I.Array,V=I.Date,fe=I.Error,Me=I.Function,ot=I.Math,De=I.Object,fo=I.RegExp,X_=I.String,Wt=I.TypeError,f0=A.prototype,J_=Me.prototype,Z1=De.prototype,d0=I["__core-js_shared__"],h0=J_.toString,Te=Z1.hasOwnProperty,ev=0,y2=function(){var t=/[^.]+$/.exec(d0&&d0.keys&&d0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),g0=Z1.toString,tv=h0.call(De),nv=ft._,rv=fo("^"+h0.call(Te).replace(Yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p0=J5?I.Buffer:i,jn=I.Symbol,y0=I.Uint8Array,m2=p0?p0.allocUnsafe:i,m0=g2(De.getPrototypeOf,De),b2=De.create,_2=Z1.propertyIsEnumerable,b0=f0.splice,v2=jn?jn.isConcatSpreadable:i,ur=jn?jn.iterator:i,o1=jn?jn.toStringTag:i,_0=function(){try{var t=u1(De,"defineProperty");return t({},"",{}),t}catch{}}(),iv=I.clearTimeout!==ft.clearTimeout&&I.clearTimeout,ov=V&&V.now!==ft.Date.now&&V.now,av=I.setTimeout!==ft.setTimeout&&I.setTimeout,v0=ot.ceil,C0=ot.floor,ho=De.getOwnPropertySymbols,sv=p0?p0.isBuffer:i,C2=I.isFinite,lv=f0.join,cv=g2(De.keys,De),at=ot.max,yt=ot.min,uv=V.now,fv=I.parseInt,x2=ot.random,dv=f0.reverse,go=u1(I,"DataView"),fr=u1(I,"Map"),po=u1(I,"Promise"),Q1=u1(I,"Set"),dr=u1(I,"WeakMap"),hr=u1(De,"create"),x0=dr&&new dr,j1={},hv=f1(go),gv=f1(fr),pv=f1(po),yv=f1(Q1),mv=f1(dr),w0=jn?jn.prototype:i,gr=w0?w0.valueOf:i,w2=w0?w0.toString:i;function h(t){if(He(t)&&!ye(t)&&!(t instanceof ke)){if(t instanceof Ut)return t;if(Te.call(t,"__wrapped__"))return Ls(t)}return new Ut(t)}var Y1=function(){function t(){}return function(n){if(!Ye(n))return{};if(b2)return b2(n);t.prototype=n;var a=new t;return t.prototype=i,a}}();function L0(){}function Ut(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}h.templateSettings={escape:Ib,evaluate:Ob,interpolate:P5,variable:"",imports:{_:h}},h.prototype=L0.prototype,h.prototype.constructor=h,Ut.prototype=Y1(L0.prototype),Ut.prototype.constructor=Ut;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function bv(){var t=new ke(this.__wrapped__);return t.__actions__=$t(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=$t(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=$t(this.__views__),t}function _v(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function vv(){var t=this.__wrapped__.value(),n=this.__dir__,a=ye(t),c=n<0,d=a?t.length:0,p=IC(0,d,this.__views__),m=p.start,v=p.end,L=v-m,B=c?v:m-1,E=this.__iteratees__,R=E.length,j=0,ee=yt(L,this.__takeCount__);if(!a||!c&&d==L&&ee==L)return Y2(t,this.__actions__);var ue=[];e:for(;L--&&j<ee;){B+=n;for(var Ce=-1,se=t[B];++Ce<R;){var $e=E[Ce],Ae=$e.iteratee,Et=$e.type,xt=Ae(se);if(Et==Se)se=xt;else if(!xt){if(Et==re)continue e;break e}}ue[j++]=se}return ue}ke.prototype=Y1(L0.prototype),ke.prototype.constructor=ke;function a1(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function Cv(){this.__data__=hr?hr(null):{},this.size=0}function xv(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function wv(t){var n=this.__data__;if(hr){var a=n[t];return a===y?i:a}return Te.call(n,t)?n[t]:i}function Lv(t){var n=this.__data__;return hr?n[t]!==i:Te.call(n,t)}function $v(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=hr&&n===i?y:n,this}a1.prototype.clear=Cv,a1.prototype.delete=xv,a1.prototype.get=wv,a1.prototype.has=Lv,a1.prototype.set=$v;function Sn(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function kv(){this.__data__=[],this.size=0}function Sv(t){var n=this.__data__,a=$0(n,t);if(a<0)return!1;var c=n.length-1;return a==c?n.pop():b0.call(n,a,1),--this.size,!0}function Av(t){var n=this.__data__,a=$0(n,t);return a<0?i:n[a][1]}function Mv(t){return $0(this.__data__,t)>-1}function Tv(t,n){var a=this.__data__,c=$0(a,t);return c<0?(++this.size,a.push([t,n])):a[c][1]=n,this}Sn.prototype.clear=kv,Sn.prototype.delete=Sv,Sn.prototype.get=Av,Sn.prototype.has=Mv,Sn.prototype.set=Tv;function An(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function Pv(){this.size=0,this.__data__={hash:new a1,map:new(fr||Sn),string:new a1}}function Iv(t){var n=R0(this,t).delete(t);return this.size-=n?1:0,n}function Ov(t){return R0(this,t).get(t)}function Bv(t){return R0(this,t).has(t)}function Ev(t,n){var a=R0(this,t),c=a.size;return a.set(t,n),this.size+=a.size==c?0:1,this}An.prototype.clear=Pv,An.prototype.delete=Iv,An.prototype.get=Ov,An.prototype.has=Bv,An.prototype.set=Ev;function s1(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new An;++n<a;)this.add(t[n])}function Dv(t){return this.__data__.set(t,y),this}function Rv(t){return this.__data__.has(t)}s1.prototype.add=s1.prototype.push=Dv,s1.prototype.has=Rv;function nn(t){var n=this.__data__=new Sn(t);this.size=n.size}function Fv(){this.__data__=new Sn,this.size=0}function zv(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function Nv(t){return this.__data__.get(t)}function Kv(t){return this.__data__.has(t)}function Wv(t,n){var a=this.__data__;if(a instanceof Sn){var c=a.__data__;if(!fr||c.length<s-1)return c.push([t,n]),this.size=++a.size,this;a=this.__data__=new An(c)}return a.set(t,n),this.size=a.size,this}nn.prototype.clear=Fv,nn.prototype.delete=zv,nn.prototype.get=Nv,nn.prototype.has=Kv,nn.prototype.set=Wv;function L2(t,n){var a=ye(t),c=!a&&d1(t),d=!a&&!c&&qn(t),p=!a&&!c&&!d&&q1(t),m=a||c||d||p,v=m?lo(t.length,X_):[],L=v.length;for(var B in t)(n||Te.call(t,B))&&!(m&&(B=="length"||d&&(B=="offset"||B=="parent")||p&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Pn(B,L)))&&v.push(B);return v}function $2(t){var n=t.length;return n?t[ko(0,n-1)]:i}function Uv(t,n){return F0($t(t),l1(n,0,t.length))}function Zv(t){return F0($t(t))}function yo(t,n,a){(a!==i&&!on(t[n],a)||a===i&&!(n in t))&&fn(t,n,a)}function pr(t,n,a){var c=t[n];(!(Te.call(t,n)&&on(c,a))||a===i&&!(n in t))&&fn(t,n,a)}function $0(t,n){for(var a=t.length;a--;)if(on(t[a][0],n))return a;return-1}function Qv(t,n,a,c){return Yn(t,function(d,p,m){n(c,d,a(d),m)}),c}function k2(t,n){return t&&hn(n,st(n),t)}function jv(t,n){return t&&hn(n,St(n),t)}function fn(t,n,a){n=="__proto__"&&_0?_0(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function mo(t,n){for(var a=-1,c=n.length,d=A(c),p=t==null;++a<c;)d[a]=p?i:Xo(t,n[a]);return d}function l1(t,n,a){return t===t&&(a!==i&&(t=t<=a?t:a),n!==i&&(t=t>=n?t:n)),t}function Zt(t,n,a,c,d,p){var m,v=n&$,L=n&M,B=n&x;if(a&&(m=d?a(t,c,d,p):a(t)),m!==i)return m;if(!Ye(t))return t;var E=ye(t);if(E){if(m=BC(t),!v)return $t(t,m)}else{var R=mt(t),j=R==Ln||R==Nn;if(qn(t))return V2(t,v);if(R==rt||R==ae||j&&!d){if(m=L||j?{}:ps(t),!v)return L?wC(t,jv(m,t)):xC(t,k2(m,t))}else{if(!Ke[R])return d?t:{};m=EC(t,R,v)}}p||(p=new nn);var ee=p.get(t);if(ee)return ee;p.set(t,m),Zs(t)?t.forEach(function(se){m.add(Zt(se,n,a,se,t,p))}):Ws(t)&&t.forEach(function(se,$e){m.set($e,Zt(se,n,a,$e,t,p))});var ue=B?L?Ro:Do:L?St:st,Ce=E?i:ue(t);return Pt(Ce||t,function(se,$e){Ce&&($e=se,se=t[$e]),pr(m,$e,Zt(se,n,a,$e,t,p))}),m}function Yv(t){var n=st(t);return function(a){return S2(a,t,n)}}function S2(t,n,a){var c=a.length;if(t==null)return!c;for(t=De(t);c--;){var d=a[c],p=n[d],m=t[d];if(m===i&&!(d in t)||!p(m))return!1}return!0}function A2(t,n,a){if(typeof t!="function")throw new Wt(u);return xr(function(){t.apply(i,a)},n)}function yr(t,n,a,c){var d=-1,p=l0,m=!0,v=t.length,L=[],B=n.length;if(!v)return L;a&&(n=Qe(n,It(a))),c?(p=no,m=!1):n.length>=s&&(p=cr,m=!1,n=new s1(n));e:for(;++d<v;){var E=t[d],R=a==null?E:a(E);if(E=c||E!==0?E:0,m&&R===R){for(var j=B;j--;)if(n[j]===R)continue e;L.push(E)}else p(n,R,c)||L.push(E)}return L}var Yn=ts(dn),M2=ts(_o,!0);function Gv(t,n){var a=!0;return Yn(t,function(c,d,p){return a=!!n(c,d,p),a}),a}function k0(t,n,a){for(var c=-1,d=t.length;++c<d;){var p=t[c],m=n(p);if(m!=null&&(v===i?m===m&&!Bt(m):a(m,v)))var v=m,L=p}return L}function Hv(t,n,a,c){var d=t.length;for(a=_e(a),a<0&&(a=-a>d?0:d+a),c=c===i||c>d?d:_e(c),c<0&&(c+=d),c=a>c?0:js(c);a<c;)t[a++]=n;return t}function T2(t,n){var a=[];return Yn(t,function(c,d,p){n(c,d,p)&&a.push(c)}),a}function dt(t,n,a,c,d){var p=-1,m=t.length;for(a||(a=RC),d||(d=[]);++p<m;){var v=t[p];n>0&&a(v)?n>1?dt(v,n-1,a,c,d):Zn(d,v):c||(d[d.length]=v)}return d}var bo=ns(),P2=ns(!0);function dn(t,n){return t&&bo(t,n,st)}function _o(t,n){return t&&P2(t,n,st)}function S0(t,n){return Un(n,function(a){return In(t[a])})}function c1(t,n){n=Hn(n,t);for(var a=0,c=n.length;t!=null&&a<c;)t=t[rn(n[a++])];return a&&a==c?t:i}function I2(t,n,a){var c=n(t);return ye(t)?c:Zn(c,a(t))}function vt(t){return t==null?t===i?or:en:o1&&o1 in De(t)?PC(t):ZC(t)}function vo(t,n){return t>n}function Vv(t,n){return t!=null&&Te.call(t,n)}function qv(t,n){return t!=null&&n in De(t)}function Xv(t,n,a){return t>=yt(n,a)&&t<at(n,a)}function Co(t,n,a){for(var c=a?no:l0,d=t[0].length,p=t.length,m=p,v=A(p),L=1/0,B=[];m--;){var E=t[m];m&&n&&(E=Qe(E,It(n))),L=yt(E.length,L),v[m]=!a&&(n||d>=120&&E.length>=120)?new s1(m&&E):i}E=t[0];var R=-1,j=v[0];e:for(;++R<d&&B.length<L;){var ee=E[R],ue=n?n(ee):ee;if(ee=a||ee!==0?ee:0,!(j?cr(j,ue):c(B,ue,a))){for(m=p;--m;){var Ce=v[m];if(!(Ce?cr(Ce,ue):c(t[m],ue,a)))continue e}j&&j.push(ue),B.push(ee)}}return B}function Jv(t,n,a,c){return dn(t,function(d,p,m){n(c,a(d),p,m)}),c}function mr(t,n,a){n=Hn(n,t),t=_s(t,n);var c=t==null?t:t[rn(jt(n))];return c==null?i:Tt(c,t,a)}function O2(t){return He(t)&&vt(t)==ae}function eC(t){return He(t)&&vt(t)==r1}function tC(t){return He(t)&&vt(t)==Lt}function br(t,n,a,c,d){return t===n?!0:t==null||n==null||!He(t)&&!He(n)?t!==t&&n!==n:nC(t,n,a,c,br,d)}function nC(t,n,a,c,d,p){var m=ye(t),v=ye(n),L=m?be:mt(t),B=v?be:mt(n);L=L==ae?rt:L,B=B==ae?rt:B;var E=L==rt,R=B==rt,j=L==B;if(j&&qn(t)){if(!qn(n))return!1;m=!0,E=!1}if(j&&!E)return p||(p=new nn),m||q1(t)?ds(t,n,a,c,d,p):MC(t,n,L,a,c,d,p);if(!(a&T)){var ee=E&&Te.call(t,"__wrapped__"),ue=R&&Te.call(n,"__wrapped__");if(ee||ue){var Ce=ee?t.value():t,se=ue?n.value():n;return p||(p=new nn),d(Ce,se,a,c,p)}}return j?(p||(p=new nn),TC(t,n,a,c,d,p)):!1}function rC(t){return He(t)&&mt(t)==je}function xo(t,n,a,c){var d=a.length,p=d,m=!c;if(t==null)return!p;for(t=De(t);d--;){var v=a[d];if(m&&v[2]?v[1]!==t[v[0]]:!(v[0]in t))return!1}for(;++d<p;){v=a[d];var L=v[0],B=t[L],E=v[1];if(m&&v[2]){if(B===i&&!(L in t))return!1}else{var R=new nn;if(c)var j=c(B,E,L,t,n,R);if(!(j===i?br(E,B,T|k,c,R):j))return!1}}return!0}function B2(t){if(!Ye(t)||zC(t))return!1;var n=In(t)?rv:Yb;return n.test(f1(t))}function iC(t){return He(t)&&vt(t)==it}function oC(t){return He(t)&&mt(t)==ut}function aC(t){return He(t)&&Z0(t.length)&&!!Ze[vt(t)]}function E2(t){return typeof t=="function"?t:t==null?At:typeof t=="object"?ye(t)?F2(t[0],t[1]):R2(t):i6(t)}function wo(t){if(!Cr(t))return cv(t);var n=[];for(var a in De(t))Te.call(t,a)&&a!="constructor"&&n.push(a);return n}function sC(t){if(!Ye(t))return UC(t);var n=Cr(t),a=[];for(var c in t)c=="constructor"&&(n||!Te.call(t,c))||a.push(c);return a}function Lo(t,n){return t<n}function D2(t,n){var a=-1,c=kt(t)?A(t.length):[];return Yn(t,function(d,p,m){c[++a]=n(d,p,m)}),c}function R2(t){var n=zo(t);return n.length==1&&n[0][2]?ms(n[0][0],n[0][1]):function(a){return a===t||xo(a,t,n)}}function F2(t,n){return Ko(t)&&ys(n)?ms(rn(t),n):function(a){var c=Xo(a,t);return c===i&&c===n?Jo(a,t):br(n,c,T|k)}}function A0(t,n,a,c,d){t!==n&&bo(n,function(p,m){if(d||(d=new nn),Ye(p))lC(t,n,m,a,A0,c,d);else{var v=c?c(Uo(t,m),p,m+"",t,n,d):i;v===i&&(v=p),yo(t,m,v)}},St)}function lC(t,n,a,c,d,p,m){var v=Uo(t,a),L=Uo(n,a),B=m.get(L);if(B){yo(t,a,B);return}var E=p?p(v,L,a+"",t,n,m):i,R=E===i;if(R){var j=ye(L),ee=!j&&qn(L),ue=!j&&!ee&&q1(L);E=L,j||ee||ue?ye(v)?E=v:Ve(v)?E=$t(v):ee?(R=!1,E=V2(L,!0)):ue?(R=!1,E=q2(L,!0)):E=[]:wr(L)||d1(L)?(E=v,d1(v)?E=Ys(v):(!Ye(v)||In(v))&&(E=ps(L))):R=!1}R&&(m.set(L,E),d(E,L,c,p,m),m.delete(L)),yo(t,a,E)}function z2(t,n){var a=t.length;if(a)return n+=n<0?a:0,Pn(n,a)?t[n]:i}function N2(t,n,a){n.length?n=Qe(n,function(p){return ye(p)?function(m){return c1(m,p.length===1?p[0]:p)}:p}):n=[At];var c=-1;n=Qe(n,It(le()));var d=D2(t,function(p,m,v){var L=Qe(n,function(B){return B(p)});return{criteria:L,index:++c,value:p}});return E_(d,function(p,m){return CC(p,m,a)})}function cC(t,n){return K2(t,n,function(a,c){return Jo(t,c)})}function K2(t,n,a){for(var c=-1,d=n.length,p={};++c<d;){var m=n[c],v=c1(t,m);a(v,m)&&_r(p,Hn(m,t),v)}return p}function uC(t){return function(n){return c1(n,t)}}function $o(t,n,a,c){var d=c?B_:N1,p=-1,m=n.length,v=t;for(t===n&&(n=$t(n)),a&&(v=Qe(t,It(a)));++p<m;)for(var L=0,B=n[p],E=a?a(B):B;(L=d(v,E,L,c))>-1;)v!==t&&b0.call(v,L,1),b0.call(t,L,1);return t}function W2(t,n){for(var a=t?n.length:0,c=a-1;a--;){var d=n[a];if(a==c||d!==p){var p=d;Pn(d)?b0.call(t,d,1):Mo(t,d)}}return t}function ko(t,n){return t+C0(x2()*(n-t+1))}function fC(t,n,a,c){for(var d=-1,p=at(v0((n-t)/(a||1)),0),m=A(p);p--;)m[c?p:++d]=t,t+=a;return m}function So(t,n){var a="";if(!t||n<1||n>Fe)return a;do n%2&&(a+=t),n=C0(n/2),n&&(t+=t);while(n);return a}function xe(t,n){return Zo(bs(t,n,At),t+"")}function dC(t){return $2(X1(t))}function hC(t,n){var a=X1(t);return F0(a,l1(n,0,a.length))}function _r(t,n,a,c){if(!Ye(t))return t;n=Hn(n,t);for(var d=-1,p=n.length,m=p-1,v=t;v!=null&&++d<p;){var L=rn(n[d]),B=a;if(L==="__proto__"||L==="constructor"||L==="prototype")return t;if(d!=m){var E=v[L];B=c?c(E,L,v):i,B===i&&(B=Ye(E)?E:Pn(n[d+1])?[]:{})}pr(v,L,B),v=v[L]}return t}var U2=x0?function(t,n){return x0.set(t,n),t}:At,gC=_0?function(t,n){return _0(t,"toString",{configurable:!0,enumerable:!1,value:ta(n),writable:!0})}:At;function pC(t){return F0(X1(t))}function Qt(t,n,a){var c=-1,d=t.length;n<0&&(n=-n>d?0:d+n),a=a>d?d:a,a<0&&(a+=d),d=n>a?0:a-n>>>0,n>>>=0;for(var p=A(d);++c<d;)p[c]=t[c+n];return p}function yC(t,n){var a;return Yn(t,function(c,d,p){return a=n(c,d,p),!a}),!!a}function M0(t,n,a){var c=0,d=t==null?c:t.length;if(typeof n=="number"&&n===n&&d<=oe){for(;c<d;){var p=c+d>>>1,m=t[p];m!==null&&!Bt(m)&&(a?m<=n:m<n)?c=p+1:d=p}return d}return Ao(t,n,At,a)}function Ao(t,n,a,c){var d=0,p=t==null?0:t.length;if(p===0)return 0;n=a(n);for(var m=n!==n,v=n===null,L=Bt(n),B=n===i;d<p;){var E=C0((d+p)/2),R=a(t[E]),j=R!==i,ee=R===null,ue=R===R,Ce=Bt(R);if(m)var se=c||ue;else B?se=ue&&(c||j):v?se=ue&&j&&(c||!ee):L?se=ue&&j&&!ee&&(c||!Ce):ee||Ce?se=!1:se=c?R<=n:R<n;se?d=E+1:p=E}return yt(p,pt)}function Z2(t,n){for(var a=-1,c=t.length,d=0,p=[];++a<c;){var m=t[a],v=n?n(m):m;if(!a||!on(v,L)){var L=v;p[d++]=m===0?0:m}}return p}function Q2(t){return typeof t=="number"?t:Bt(t)?Ge:+t}function Ot(t){if(typeof t=="string")return t;if(ye(t))return Qe(t,Ot)+"";if(Bt(t))return w2?w2.call(t):"";var n=t+"";return n=="0"&&1/t==-pe?"-0":n}function Gn(t,n,a){var c=-1,d=l0,p=t.length,m=!0,v=[],L=v;if(a)m=!1,d=no;else if(p>=s){var B=n?null:SC(t);if(B)return u0(B);m=!1,d=cr,L=new s1}else L=n?[]:v;e:for(;++c<p;){var E=t[c],R=n?n(E):E;if(E=a||E!==0?E:0,m&&R===R){for(var j=L.length;j--;)if(L[j]===R)continue e;n&&L.push(R),v.push(E)}else d(L,R,a)||(L!==v&&L.push(R),v.push(E))}return v}function Mo(t,n){n=Hn(n,t);var a=-1,c=n.length;if(!c)return!0;for(;++a<c;){var d=rn(n[a]);if(d==="__proto__"&&!Te.call(t,"__proto__")||(d==="constructor"||d==="prototype")&&a<c-1)return!1}var p=_s(t,n);return p==null||delete p[rn(jt(n))]}function j2(t,n,a,c){return _r(t,n,a(c1(t,n)),c)}function T0(t,n,a,c){for(var d=t.length,p=c?d:-1;(c?p--:++p<d)&&n(t[p],p,t););return a?Qt(t,c?0:p,c?p+1:d):Qt(t,c?p+1:0,c?d:p)}function Y2(t,n){var a=t;return a instanceof ke&&(a=a.value()),ro(n,function(c,d){return d.func.apply(d.thisArg,Zn([c],d.args))},a)}function To(t,n,a){var c=t.length;if(c<2)return c?Gn(t[0]):[];for(var d=-1,p=A(c);++d<c;)for(var m=t[d],v=-1;++v<c;)v!=d&&(p[d]=yr(p[d]||m,t[v],n,a));return Gn(dt(p,1),n,a)}function G2(t,n,a){for(var c=-1,d=t.length,p=n.length,m={};++c<d;){var v=c<p?n[c]:i;a(m,t[c],v)}return m}function Po(t){return Ve(t)?t:[]}function Io(t){return typeof t=="function"?t:At}function Hn(t,n){return ye(t)?t:Ko(t,n)?[t]:ws(Pe(t))}var mC=xe;function Vn(t,n,a){var c=t.length;return a=a===i?c:a,!n&&a>=c?t:Qt(t,n,a)}var H2=iv||function(t){return ft.clearTimeout(t)};function V2(t,n){if(n)return t.slice();var a=t.length,c=m2?m2(a):new t.constructor(a);return t.copy(c),c}function Oo(t){var n=new t.constructor(t.byteLength);return new y0(n).set(new y0(t)),n}function bC(t,n){var a=n?Oo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function _C(t){var n=new t.constructor(t.source,O5.exec(t));return n.lastIndex=t.lastIndex,n}function vC(t){return gr?De(gr.call(t)):{}}function q2(t,n){var a=n?Oo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function X2(t,n){if(t!==n){var a=t!==i,c=t===null,d=t===t,p=Bt(t),m=n!==i,v=n===null,L=n===n,B=Bt(n);if(!v&&!B&&!p&&t>n||p&&m&&L&&!v&&!B||c&&m&&L||!a&&L||!d)return 1;if(!c&&!p&&!B&&t<n||B&&a&&d&&!c&&!p||v&&a&&d||!m&&d||!L)return-1}return 0}function CC(t,n,a){for(var c=-1,d=t.criteria,p=n.criteria,m=d.length,v=a.length;++c<m;){var L=X2(d[c],p[c]);if(L){if(c>=v)return L;var B=a[c];return L*(B=="desc"?-1:1)}}return t.index-n.index}function J2(t,n,a,c){for(var d=-1,p=t.length,m=a.length,v=-1,L=n.length,B=at(p-m,0),E=A(L+B),R=!c;++v<L;)E[v]=n[v];for(;++d<m;)(R||d<p)&&(E[a[d]]=t[d]);for(;B--;)E[v++]=t[d++];return E}function es(t,n,a,c){for(var d=-1,p=t.length,m=-1,v=a.length,L=-1,B=n.length,E=at(p-v,0),R=A(E+B),j=!c;++d<E;)R[d]=t[d];for(var ee=d;++L<B;)R[ee+L]=n[L];for(;++m<v;)(j||d<p)&&(R[ee+a[m]]=t[d++]);return R}function $t(t,n){var a=-1,c=t.length;for(n||(n=A(c));++a<c;)n[a]=t[a];return n}function hn(t,n,a,c){var d=!a;a||(a={});for(var p=-1,m=n.length;++p<m;){var v=n[p],L=c?c(a[v],t[v],v,a,t):i;L===i&&(L=t[v]),d?fn(a,v,L):pr(a,v,L)}return a}function xC(t,n){return hn(t,No(t),n)}function wC(t,n){return hn(t,hs(t),n)}function P0(t,n){return function(a,c){var d=ye(a)?A_:Qv,p=n?n():{};return d(a,t,le(c,2),p)}}function G1(t){return xe(function(n,a){var c=-1,d=a.length,p=d>1?a[d-1]:i,m=d>2?a[2]:i;for(p=t.length>3&&typeof p=="function"?(d--,p):i,m&&Ct(a[0],a[1],m)&&(p=d<3?i:p,d=1),n=De(n);++c<d;){var v=a[c];v&&t(n,v,c,p)}return n})}function ts(t,n){return function(a,c){if(a==null)return a;if(!kt(a))return t(a,c);for(var d=a.length,p=n?d:-1,m=De(a);(n?p--:++p<d)&&c(m[p],p,m)!==!1;);return a}}function ns(t){return function(n,a,c){for(var d=-1,p=De(n),m=c(n),v=m.length;v--;){var L=m[t?v:++d];if(a(p[L],L,p)===!1)break}return n}}function LC(t,n,a){var c=n&S,d=vr(t);function p(){var m=this&&this!==ft&&this instanceof p?d:t;return m.apply(c?a:this,arguments)}return p}function rs(t){return function(n){n=Pe(n);var a=K1(n)?tn(n):i,c=a?a[0]:n.charAt(0),d=a?Vn(a,1).join(""):n.slice(1);return c[t]()+d}}function H1(t){return function(n){return ro(n6(t6(n).replace(g_,"")),t,"")}}function vr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=Y1(t.prototype),c=t.apply(a,n);return Ye(c)?c:a}}function $C(t,n,a){var c=vr(t);function d(){for(var p=arguments.length,m=A(p),v=p,L=V1(d);v--;)m[v]=arguments[v];var B=p<3&&m[0]!==L&&m[p-1]!==L?[]:Qn(m,L);if(p-=B.length,p<a)return ls(t,n,I0,d.placeholder,i,m,B,i,i,a-p);var E=this&&this!==ft&&this instanceof d?c:t;return Tt(E,this,m)}return d}function is(t){return function(n,a,c){var d=De(n);if(!kt(n)){var p=le(a,3);n=st(n),a=function(v){return p(d[v],v,d)}}var m=t(n,a,c);return m>-1?d[p?n[m]:m]:i}}function os(t){return Tn(function(n){var a=n.length,c=a,d=Ut.prototype.thru;for(t&&n.reverse();c--;){var p=n[c];if(typeof p!="function")throw new Wt(u);if(d&&!m&&D0(p)=="wrapper")var m=new Ut([],!0)}for(c=m?c:a;++c<a;){p=n[c];var v=D0(p),L=v=="wrapper"?Fo(p):i;L&&Wo(L[0])&&L[1]==(O|P|q|W)&&!L[4].length&&L[9]==1?m=m[D0(L[0])].apply(m,L[3]):m=p.length==1&&Wo(p)?m[v]():m.thru(p)}return function(){var B=arguments,E=B[0];if(m&&B.length==1&&ye(E))return m.plant(E).value();for(var R=0,j=a?n[R].apply(this,B):E;++R<a;)j=n[R].call(this,j);return j}})}function I0(t,n,a,c,d,p,m,v,L,B){var E=n&O,R=n&S,j=n&D,ee=n&(P|z),ue=n&Q,Ce=j?i:vr(t);function se(){for(var $e=arguments.length,Ae=A($e),Et=$e;Et--;)Ae[Et]=arguments[Et];if(ee)var xt=V1(se),Dt=R_(Ae,xt);if(c&&(Ae=J2(Ae,c,d,ee)),p&&(Ae=es(Ae,p,m,ee)),$e-=Dt,ee&&$e<B){var qe=Qn(Ae,xt);return ls(t,n,I0,se.placeholder,a,Ae,qe,v,L,B-$e)}var an=R?a:this,Bn=j?an[t]:t;return $e=Ae.length,v?Ae=QC(Ae,v):ue&&$e>1&&Ae.reverse(),E&&L<$e&&(Ae.length=L),this&&this!==ft&&this instanceof se&&(Bn=Ce||vr(Bn)),Bn.apply(an,Ae)}return se}function as(t,n){return function(a,c){return Jv(a,t,n(c),{})}}function O0(t,n){return function(a,c){var d;if(a===i&&c===i)return n;if(a!==i&&(d=a),c!==i){if(d===i)return c;typeof a=="string"||typeof c=="string"?(a=Ot(a),c=Ot(c)):(a=Q2(a),c=Q2(c)),d=t(a,c)}return d}}function Bo(t){return Tn(function(n){return n=Qe(n,It(le())),xe(function(a){var c=this;return t(n,function(d){return Tt(d,c,a)})})})}function B0(t,n){n=n===i?" ":Ot(n);var a=n.length;if(a<2)return a?So(n,t):n;var c=So(n,v0(t/W1(n)));return K1(n)?Vn(tn(c),0,t).join(""):c.slice(0,t)}function kC(t,n,a,c){var d=n&S,p=vr(t);function m(){for(var v=-1,L=arguments.length,B=-1,E=c.length,R=A(E+L),j=this&&this!==ft&&this instanceof m?p:t;++B<E;)R[B]=c[B];for(;L--;)R[B++]=arguments[++v];return Tt(j,d?a:this,R)}return m}function ss(t){return function(n,a,c){return c&&typeof c!="number"&&Ct(n,a,c)&&(a=c=i),n=On(n),a===i?(a=n,n=0):a=On(a),c=c===i?n<a?1:-1:On(c),fC(n,a,c,t)}}function E0(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=Yt(n),a=Yt(a)),t(n,a)}}function ls(t,n,a,c,d,p,m,v,L,B){var E=n&P,R=E?m:i,j=E?i:m,ee=E?p:i,ue=E?i:p;n|=E?q:Z,n&=~(E?Z:q),n&F||(n&=~(S|D));var Ce=[t,n,d,ee,R,ue,j,v,L,B],se=a.apply(i,Ce);return Wo(t)&&vs(se,Ce),se.placeholder=c,Cs(se,t,n)}function Eo(t){var n=ot[t];return function(a,c){if(a=Yt(a),c=c==null?0:yt(_e(c),292),c&&C2(a)){var d=(Pe(a)+"e").split("e"),p=n(d[0]+"e"+(+d[1]+c));return d=(Pe(p)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return n(a)}}var SC=Q1&&1/u0(new Q1([,-0]))[1]==pe?function(t){return new Q1(t)}:ia;function cs(t){return function(n){var a=mt(n);return a==je?uo(n):a==ut?Z_(n):D_(n,t(n))}}function Mn(t,n,a,c,d,p,m,v){var L=n&D;if(!L&&typeof t!="function")throw new Wt(u);var B=c?c.length:0;if(B||(n&=~(q|Z),c=d=i),m=m===i?m:at(_e(m),0),v=v===i?v:_e(v),B-=d?d.length:0,n&Z){var E=c,R=d;c=d=i}var j=L?i:Fo(t),ee=[t,n,a,c,d,E,R,p,m,v];if(j&&WC(ee,j),t=ee[0],n=ee[1],a=ee[2],c=ee[3],d=ee[4],v=ee[9]=ee[9]===i?L?0:t.length:at(ee[9]-B,0),!v&&n&(P|z)&&(n&=~(P|z)),!n||n==S)var ue=LC(t,n,a);else n==P||n==z?ue=$C(t,n,v):(n==q||n==(S|q))&&!d.length?ue=kC(t,n,a,c):ue=I0.apply(i,ee);var Ce=j?U2:vs;return Cs(Ce(ue,ee),t,n)}function us(t,n,a,c){return t===i||on(t,Z1[a])&&!Te.call(c,a)?n:t}function fs(t,n,a,c,d,p){return Ye(t)&&Ye(n)&&(p.set(n,t),A0(t,n,i,fs,p),p.delete(n)),t}function AC(t){return wr(t)?i:t}function ds(t,n,a,c,d,p){var m=a&T,v=t.length,L=n.length;if(v!=L&&!(m&&L>v))return!1;var B=p.get(t),E=p.get(n);if(B&&E)return B==n&&E==t;var R=-1,j=!0,ee=a&k?new s1:i;for(p.set(t,n),p.set(n,t);++R<v;){var ue=t[R],Ce=n[R];if(c)var se=m?c(Ce,ue,R,n,t,p):c(ue,Ce,R,t,n,p);if(se!==i){if(se)continue;j=!1;break}if(ee){if(!io(n,function($e,Ae){if(!cr(ee,Ae)&&(ue===$e||d(ue,$e,a,c,p)))return ee.push(Ae)})){j=!1;break}}else if(!(ue===Ce||d(ue,Ce,a,c,p))){j=!1;break}}return p.delete(t),p.delete(n),j}function MC(t,n,a,c,d,p,m){switch(a){case Wn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case r1:return!(t.byteLength!=n.byteLength||!p(new y0(t),new y0(n)));case ve:case Lt:case Ne:return on(+t,+n);case wn:return t.name==n.name&&t.message==n.message;case it:case kn:return t==n+"";case je:var v=uo;case ut:var L=c&T;if(v||(v=u0),t.size!=n.size&&!L)return!1;var B=m.get(t);if(B)return B==n;c|=k,m.set(t,n);var E=ds(v(t),v(n),c,d,p,m);return m.delete(t),E;case O1:if(gr)return gr.call(t)==gr.call(n)}return!1}function TC(t,n,a,c,d,p){var m=a&T,v=Do(t),L=v.length,B=Do(n),E=B.length;if(L!=E&&!m)return!1;for(var R=L;R--;){var j=v[R];if(!(m?j in n:Te.call(n,j)))return!1}var ee=p.get(t),ue=p.get(n);if(ee&&ue)return ee==n&&ue==t;var Ce=!0;p.set(t,n),p.set(n,t);for(var se=m;++R<L;){j=v[R];var $e=t[j],Ae=n[j];if(c)var Et=m?c(Ae,$e,j,n,t,p):c($e,Ae,j,t,n,p);if(!(Et===i?$e===Ae||d($e,Ae,a,c,p):Et)){Ce=!1;break}se||(se=j=="constructor")}if(Ce&&!se){var xt=t.constructor,Dt=n.constructor;xt!=Dt&&"constructor"in t&&"constructor"in n&&!(typeof xt=="function"&&xt instanceof xt&&typeof Dt=="function"&&Dt instanceof Dt)&&(Ce=!1)}return p.delete(t),p.delete(n),Ce}function Tn(t){return Zo(bs(t,i,Ss),t+"")}function Do(t){return I2(t,st,No)}function Ro(t){return I2(t,St,hs)}var Fo=x0?function(t){return x0.get(t)}:ia;function D0(t){for(var n=t.name+"",a=j1[n],c=Te.call(j1,n)?a.length:0;c--;){var d=a[c],p=d.func;if(p==null||p==t)return d.name}return n}function V1(t){var n=Te.call(h,"placeholder")?h:t;return n.placeholder}function le(){var t=h.iteratee||na;return t=t===na?E2:t,arguments.length?t(arguments[0],arguments[1]):t}function R0(t,n){var a=t.__data__;return FC(n)?a[typeof n=="string"?"string":"hash"]:a.map}function zo(t){for(var n=st(t),a=n.length;a--;){var c=n[a],d=t[c];n[a]=[c,d,ys(d)]}return n}function u1(t,n){var a=K_(t,n);return B2(a)?a:i}function PC(t){var n=Te.call(t,o1),a=t[o1];try{t[o1]=i;var c=!0}catch{}var d=g0.call(t);return c&&(n?t[o1]=a:delete t[o1]),d}var No=ho?function(t){return t==null?[]:(t=De(t),Un(ho(t),function(n){return _2.call(t,n)}))}:oa,hs=ho?function(t){for(var n=[];t;)Zn(n,No(t)),t=m0(t);return n}:oa,mt=vt;(go&&mt(new go(new ArrayBuffer(1)))!=Wn||fr&&mt(new fr)!=je||po&&mt(po.resolve())!=Mt||Q1&&mt(new Q1)!=ut||dr&&mt(new dr)!=Kn)&&(mt=function(t){var n=vt(t),a=n==rt?t.constructor:i,c=a?f1(a):"";if(c)switch(c){case hv:return Wn;case gv:return je;case pv:return Mt;case yv:return ut;case mv:return Kn}return n});function IC(t,n,a){for(var c=-1,d=a.length;++c<d;){var p=a[c],m=p.size;switch(p.type){case"drop":t+=m;break;case"dropRight":n-=m;break;case"take":n=yt(n,t+m);break;case"takeRight":t=at(t,n-m);break}}return{start:t,end:n}}function OC(t){var n=t.match(Nb);return n?n[1].split(Kb):[]}function gs(t,n,a){n=Hn(n,t);for(var c=-1,d=n.length,p=!1;++c<d;){var m=rn(n[c]);if(!(p=t!=null&&a(t,m)))break;t=t[m]}return p||++c!=d?p:(d=t==null?0:t.length,!!d&&Z0(d)&&Pn(m,d)&&(ye(t)||d1(t)))}function BC(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&Te.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function ps(t){return typeof t.constructor=="function"&&!Cr(t)?Y1(m0(t)):{}}function EC(t,n,a){var c=t.constructor;switch(n){case r1:return Oo(t);case ve:case Lt:return new c(+t);case Wn:return bC(t,a);case B1:case sr:case Ue:case lr:case E1:case D1:case R1:case F1:case ji:return q2(t,a);case je:return new c;case Ne:case kn:return new c(t);case it:return _C(t);case ut:return new c;case O1:return vC(t)}}function DC(t,n){var a=n.length;if(!a)return t;var c=a-1;return n[c]=(a>1?"& ":"")+n[c],n=n.join(a>2?", ":" "),t.replace(zb,`{
|
|
8
|
+
*/Lr.exports,function(e,r){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",g="Invalid `imports` option passed into `_.template`",y="__lodash_hash_undefined__",C=500,_="__lodash_placeholder__",$=1,M=2,x=4,T=1,k=2,S=1,D=2,F=4,P=8,z=16,q=32,Z=64,O=128,W=256,Q=512,H=30,ie="...",J=800,N=16,re=1,Se=2,ge=3,pe=1/0,Fe=9007199254740991,Le=17976931348623157e292,Ge=0/0,Ee=4294967295,pt=Ee-1,oe=Ee>>>1,te=[["ary",O],["bind",S],["bindKey",D],["curry",P],["curryRight",z],["flip",Q],["partial",q],["partialRight",Z],["rearg",W]],ae="[object Arguments]",be="[object Array]",ze="[object AsyncFunction]",ve="[object Boolean]",Lt="[object Date]",zn="[object DOMException]",wn="[object Error]",Ln="[object Function]",Nn="[object GeneratorFunction]",je="[object Map]",Ne="[object Number]",en="[object Null]",rt="[object Object]",Mt="[object Promise]",$n="[object Proxy]",it="[object RegExp]",ut="[object Set]",kn="[object String]",O1="[object Symbol]",or="[object Undefined]",Kn="[object WeakMap]",ar="[object WeakSet]",r1="[object ArrayBuffer]",Wn="[object DataView]",B1="[object Float32Array]",sr="[object Float64Array]",Ue="[object Int8Array]",lr="[object Int16Array]",E1="[object Int32Array]",D1="[object Uint8Array]",R1="[object Uint8ClampedArray]",F1="[object Uint16Array]",ji="[object Uint32Array]",Mb=/\b__p \+= '';/g,Tb=/\b(__p \+=) '' \+/g,Pb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,T5=/&(?:amp|lt|gt|quot|#39);/g,P5=/[&<>"']/g,Ib=RegExp(T5.source),Ob=RegExp(P5.source),Bb=/<%-([\s\S]+?)%>/g,Eb=/<%([\s\S]+?)%>/g,I5=/<%=([\s\S]+?)%>/g,Db=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rb=/^\w*$/,Fb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yi=/[\\^$.*+?()[\]{}|]/g,zb=RegExp(Yi.source),Gi=/^\s+/,Nb=/\s/,Kb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wb=/\{\n\/\* \[wrapped with (.+)\] \*/,Ub=/,? & /,Zb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,O5=/[()=,{}\[\]\/\s]/,Qb=/\\(\\)?/g,jb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B5=/\w*$/,Yb=/^[-+]0x[0-9a-f]+$/i,Gb=/^0b[01]+$/i,Hb=/^\[object .+?Constructor\]$/,Vb=/^0o[0-7]+$/i,qb=/^(?:0|[1-9]\d*)$/,Xb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o0=/($^)/,Jb=/['\n\r\u2028\u2029\\]/g,a0="\\ud800-\\udfff",e_="\\u0300-\\u036f",t_="\\ufe20-\\ufe2f",n_="\\u20d0-\\u20ff",E5=e_+t_+n_,D5="\\u2700-\\u27bf",R5="a-z\\xdf-\\xf6\\xf8-\\xff",r_="\\xac\\xb1\\xd7\\xf7",i_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",o_="\\u2000-\\u206f",a_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",F5="A-Z\\xc0-\\xd6\\xd8-\\xde",z5="\\ufe0e\\ufe0f",N5=r_+i_+o_+a_,Hi="['’]",s_="["+a0+"]",K5="["+N5+"]",s0="["+E5+"]",W5="\\d+",l_="["+D5+"]",U5="["+R5+"]",Z5="[^"+a0+N5+W5+D5+R5+F5+"]",Vi="\\ud83c[\\udffb-\\udfff]",c_="(?:"+s0+"|"+Vi+")",Q5="[^"+a0+"]",qi="(?:\\ud83c[\\udde6-\\uddff]){2}",Xi="[\\ud800-\\udbff][\\udc00-\\udfff]",z1="["+F5+"]",j5="\\u200d",Y5="(?:"+U5+"|"+Z5+")",u_="(?:"+z1+"|"+Z5+")",G5="(?:"+Hi+"(?:d|ll|m|re|s|t|ve))?",H5="(?:"+Hi+"(?:D|LL|M|RE|S|T|VE))?",V5=c_+"?",q5="["+z5+"]?",f_="(?:"+j5+"(?:"+[Q5,qi,Xi].join("|")+")"+q5+V5+")*",d_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",X5=q5+V5+f_,g_="(?:"+[l_,qi,Xi].join("|")+")"+X5,p_="(?:"+[Q5+s0+"?",s0,qi,Xi,s_].join("|")+")",y_=RegExp(Hi,"g"),m_=RegExp(s0,"g"),Ji=RegExp(Vi+"(?="+Vi+")|"+p_+X5,"g"),b_=RegExp([z1+"?"+U5+"+"+G5+"(?="+[K5,z1,"$"].join("|")+")",u_+"+"+H5+"(?="+[K5,z1+Y5,"$"].join("|")+")",z1+"?"+Y5+"+"+G5,z1+"+"+H5,h_,d_,W5,g_].join("|"),"g"),__=RegExp("["+j5+a0+E5+z5+"]"),v_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,C_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],x_=-1,Ze={};Ze[B1]=Ze[sr]=Ze[Ue]=Ze[lr]=Ze[E1]=Ze[D1]=Ze[R1]=Ze[F1]=Ze[ji]=!0,Ze[ae]=Ze[be]=Ze[r1]=Ze[ve]=Ze[Wn]=Ze[Lt]=Ze[wn]=Ze[Ln]=Ze[je]=Ze[Ne]=Ze[rt]=Ze[it]=Ze[ut]=Ze[kn]=Ze[Kn]=!1;var Ke={};Ke[ae]=Ke[be]=Ke[r1]=Ke[Wn]=Ke[ve]=Ke[Lt]=Ke[B1]=Ke[sr]=Ke[Ue]=Ke[lr]=Ke[E1]=Ke[je]=Ke[Ne]=Ke[rt]=Ke[it]=Ke[ut]=Ke[kn]=Ke[O1]=Ke[D1]=Ke[R1]=Ke[F1]=Ke[ji]=!0,Ke[wn]=Ke[Ln]=Ke[Kn]=!1;var w_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},L_={"&":"&","<":"<",">":">",'"':""","'":"'"},$_={"&":"&","<":"<",">":">",""":'"',"'":"'"},k_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},S_=parseFloat,A_=parseInt,J5=typeof gn=="object"&&gn&&gn.Object===Object&&gn,M_=typeof self=="object"&&self&&self.Object===Object&&self,ft=J5||M_||Function("return this")(),eo=r&&!r.nodeType&&r,i1=eo&&!0&&e&&!e.nodeType&&e,e2=i1&&i1.exports===eo,to=e2&&J5.process,Kt=function(){try{var w=i1&&i1.require&&i1.require("util").types;return w||to&&to.binding&&to.binding("util")}catch{}}(),t2=Kt&&Kt.isArrayBuffer,n2=Kt&&Kt.isDate,r2=Kt&&Kt.isMap,i2=Kt&&Kt.isRegExp,o2=Kt&&Kt.isSet,a2=Kt&&Kt.isTypedArray;function Tt(w,I,A){switch(A.length){case 0:return w.call(I);case 1:return w.call(I,A[0]);case 2:return w.call(I,A[0],A[1]);case 3:return w.call(I,A[0],A[1],A[2])}return w.apply(I,A)}function T_(w,I,A,V){for(var fe=-1,Me=w==null?0:w.length;++fe<Me;){var ot=w[fe];I(V,ot,A(ot),w)}return V}function Pt(w,I){for(var A=-1,V=w==null?0:w.length;++A<V&&I(w[A],A,w)!==!1;);return w}function P_(w,I){for(var A=w==null?0:w.length;A--&&I(w[A],A,w)!==!1;);return w}function s2(w,I){for(var A=-1,V=w==null?0:w.length;++A<V;)if(!I(w[A],A,w))return!1;return!0}function Un(w,I){for(var A=-1,V=w==null?0:w.length,fe=0,Me=[];++A<V;){var ot=w[A];I(ot,A,w)&&(Me[fe++]=ot)}return Me}function l0(w,I){var A=w==null?0:w.length;return!!A&&N1(w,I,0)>-1}function no(w,I,A){for(var V=-1,fe=w==null?0:w.length;++V<fe;)if(A(I,w[V]))return!0;return!1}function Qe(w,I){for(var A=-1,V=w==null?0:w.length,fe=Array(V);++A<V;)fe[A]=I(w[A],A,w);return fe}function Zn(w,I){for(var A=-1,V=I.length,fe=w.length;++A<V;)w[fe+A]=I[A];return w}function ro(w,I,A,V){var fe=-1,Me=w==null?0:w.length;for(V&&Me&&(A=w[++fe]);++fe<Me;)A=I(A,w[fe],fe,w);return A}function I_(w,I,A,V){var fe=w==null?0:w.length;for(V&&fe&&(A=w[--fe]);fe--;)A=I(A,w[fe],fe,w);return A}function io(w,I){for(var A=-1,V=w==null?0:w.length;++A<V;)if(I(w[A],A,w))return!0;return!1}var O_=oo("length");function B_(w){return w.split("")}function E_(w){return w.match(Zb)||[]}function l2(w,I,A){var V;return A(w,function(fe,Me,ot){if(I(fe,Me,ot))return V=Me,!1}),V}function c0(w,I,A,V){for(var fe=w.length,Me=A+(V?1:-1);V?Me--:++Me<fe;)if(I(w[Me],Me,w))return Me;return-1}function N1(w,I,A){return I===I?Y_(w,I,A):c0(w,c2,A)}function D_(w,I,A,V){for(var fe=A-1,Me=w.length;++fe<Me;)if(V(w[fe],I))return fe;return-1}function c2(w){return w!==w}function u2(w,I){var A=w==null?0:w.length;return A?so(w,I)/A:Ge}function oo(w){return function(I){return I==null?i:I[w]}}function ao(w){return function(I){return w==null?i:w[I]}}function f2(w,I,A,V,fe){return fe(w,function(Me,ot,De){A=V?(V=!1,Me):I(A,Me,ot,De)}),A}function R_(w,I){var A=w.length;for(w.sort(I);A--;)w[A]=w[A].value;return w}function so(w,I){for(var A,V=-1,fe=w.length;++V<fe;){var Me=I(w[V]);Me!==i&&(A=A===i?Me:A+Me)}return A}function lo(w,I){for(var A=-1,V=Array(w);++A<w;)V[A]=I(A);return V}function F_(w,I){return Qe(I,function(A){return[A,w[A]]})}function d2(w){return w&&w.slice(0,y2(w)+1).replace(Gi,"")}function It(w){return function(I){return w(I)}}function co(w,I){return Qe(I,function(A){return w[A]})}function cr(w,I){return w.has(I)}function h2(w,I){for(var A=-1,V=w.length;++A<V&&N1(I,w[A],0)>-1;);return A}function g2(w,I){for(var A=w.length;A--&&N1(I,w[A],0)>-1;);return A}function z_(w,I){for(var A=w.length,V=0;A--;)w[A]===I&&++V;return V}var N_=ao(w_),K_=ao(L_);function W_(w){return"\\"+k_[w]}function U_(w,I){return w==null?i:w[I]}function K1(w){return __.test(w)}function Z_(w){return v_.test(w)}function Q_(w){for(var I,A=[];!(I=w.next()).done;)A.push(I.value);return A}function uo(w){var I=-1,A=Array(w.size);return w.forEach(function(V,fe){A[++I]=[fe,V]}),A}function p2(w,I){return function(A){return w(I(A))}}function Qn(w,I){for(var A=-1,V=w.length,fe=0,Me=[];++A<V;){var ot=w[A];(ot===I||ot===_)&&(w[A]=_,Me[fe++]=A)}return Me}function u0(w){var I=-1,A=Array(w.size);return w.forEach(function(V){A[++I]=V}),A}function j_(w){var I=-1,A=Array(w.size);return w.forEach(function(V){A[++I]=[V,V]}),A}function Y_(w,I,A){for(var V=A-1,fe=w.length;++V<fe;)if(w[V]===I)return V;return-1}function G_(w,I,A){for(var V=A+1;V--;)if(w[V]===I)return V;return V}function W1(w){return K1(w)?V_(w):O_(w)}function tn(w){return K1(w)?q_(w):B_(w)}function y2(w){for(var I=w.length;I--&&Nb.test(w.charAt(I)););return I}var H_=ao($_);function V_(w){for(var I=Ji.lastIndex=0;Ji.test(w);)++I;return I}function q_(w){return w.match(Ji)||[]}function X_(w){return w.match(b_)||[]}var J_=function w(I){I=I==null?ft:U1.defaults(ft.Object(),I,U1.pick(ft,C_));var A=I.Array,V=I.Date,fe=I.Error,Me=I.Function,ot=I.Math,De=I.Object,fo=I.RegExp,ev=I.String,Wt=I.TypeError,f0=A.prototype,tv=Me.prototype,Z1=De.prototype,d0=I["__core-js_shared__"],h0=tv.toString,Te=Z1.hasOwnProperty,nv=0,m2=function(){var t=/[^.]+$/.exec(d0&&d0.keys&&d0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),g0=Z1.toString,rv=h0.call(De),iv=ft._,ov=fo("^"+h0.call(Te).replace(Yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p0=e2?I.Buffer:i,jn=I.Symbol,y0=I.Uint8Array,b2=p0?p0.allocUnsafe:i,m0=p2(De.getPrototypeOf,De),_2=De.create,v2=Z1.propertyIsEnumerable,b0=f0.splice,C2=jn?jn.isConcatSpreadable:i,ur=jn?jn.iterator:i,o1=jn?jn.toStringTag:i,_0=function(){try{var t=u1(De,"defineProperty");return t({},"",{}),t}catch{}}(),av=I.clearTimeout!==ft.clearTimeout&&I.clearTimeout,sv=V&&V.now!==ft.Date.now&&V.now,lv=I.setTimeout!==ft.setTimeout&&I.setTimeout,v0=ot.ceil,C0=ot.floor,ho=De.getOwnPropertySymbols,cv=p0?p0.isBuffer:i,x2=I.isFinite,uv=f0.join,fv=p2(De.keys,De),at=ot.max,yt=ot.min,dv=V.now,hv=I.parseInt,w2=ot.random,gv=f0.reverse,go=u1(I,"DataView"),fr=u1(I,"Map"),po=u1(I,"Promise"),Q1=u1(I,"Set"),dr=u1(I,"WeakMap"),hr=u1(De,"create"),x0=dr&&new dr,j1={},pv=f1(go),yv=f1(fr),mv=f1(po),bv=f1(Q1),_v=f1(dr),w0=jn?jn.prototype:i,gr=w0?w0.valueOf:i,L2=w0?w0.toString:i;function h(t){if(He(t)&&!ye(t)&&!(t instanceof ke)){if(t instanceof Ut)return t;if(Te.call(t,"__wrapped__"))return $s(t)}return new Ut(t)}var Y1=function(){function t(){}return function(n){if(!Ye(n))return{};if(_2)return _2(n);t.prototype=n;var a=new t;return t.prototype=i,a}}();function L0(){}function Ut(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}h.templateSettings={escape:Bb,evaluate:Eb,interpolate:I5,variable:"",imports:{_:h}},h.prototype=L0.prototype,h.prototype.constructor=h,Ut.prototype=Y1(L0.prototype),Ut.prototype.constructor=Ut;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function vv(){var t=new ke(this.__wrapped__);return t.__actions__=$t(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=$t(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=$t(this.__views__),t}function Cv(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function xv(){var t=this.__wrapped__.value(),n=this.__dir__,a=ye(t),c=n<0,d=a?t.length:0,p=BC(0,d,this.__views__),m=p.start,v=p.end,L=v-m,B=c?v:m-1,E=this.__iteratees__,R=E.length,j=0,ee=yt(L,this.__takeCount__);if(!a||!c&&d==L&&ee==L)return G2(t,this.__actions__);var ue=[];e:for(;L--&&j<ee;){B+=n;for(var Ce=-1,se=t[B];++Ce<R;){var $e=E[Ce],Ae=$e.iteratee,Et=$e.type,xt=Ae(se);if(Et==Se)se=xt;else if(!xt){if(Et==re)continue e;break e}}ue[j++]=se}return ue}ke.prototype=Y1(L0.prototype),ke.prototype.constructor=ke;function a1(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function wv(){this.__data__=hr?hr(null):{},this.size=0}function Lv(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function $v(t){var n=this.__data__;if(hr){var a=n[t];return a===y?i:a}return Te.call(n,t)?n[t]:i}function kv(t){var n=this.__data__;return hr?n[t]!==i:Te.call(n,t)}function Sv(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=hr&&n===i?y:n,this}a1.prototype.clear=wv,a1.prototype.delete=Lv,a1.prototype.get=$v,a1.prototype.has=kv,a1.prototype.set=Sv;function Sn(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function Av(){this.__data__=[],this.size=0}function Mv(t){var n=this.__data__,a=$0(n,t);if(a<0)return!1;var c=n.length-1;return a==c?n.pop():b0.call(n,a,1),--this.size,!0}function Tv(t){var n=this.__data__,a=$0(n,t);return a<0?i:n[a][1]}function Pv(t){return $0(this.__data__,t)>-1}function Iv(t,n){var a=this.__data__,c=$0(a,t);return c<0?(++this.size,a.push([t,n])):a[c][1]=n,this}Sn.prototype.clear=Av,Sn.prototype.delete=Mv,Sn.prototype.get=Tv,Sn.prototype.has=Pv,Sn.prototype.set=Iv;function An(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function Ov(){this.size=0,this.__data__={hash:new a1,map:new(fr||Sn),string:new a1}}function Bv(t){var n=R0(this,t).delete(t);return this.size-=n?1:0,n}function Ev(t){return R0(this,t).get(t)}function Dv(t){return R0(this,t).has(t)}function Rv(t,n){var a=R0(this,t),c=a.size;return a.set(t,n),this.size+=a.size==c?0:1,this}An.prototype.clear=Ov,An.prototype.delete=Bv,An.prototype.get=Ev,An.prototype.has=Dv,An.prototype.set=Rv;function s1(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new An;++n<a;)this.add(t[n])}function Fv(t){return this.__data__.set(t,y),this}function zv(t){return this.__data__.has(t)}s1.prototype.add=s1.prototype.push=Fv,s1.prototype.has=zv;function nn(t){var n=this.__data__=new Sn(t);this.size=n.size}function Nv(){this.__data__=new Sn,this.size=0}function Kv(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function Wv(t){return this.__data__.get(t)}function Uv(t){return this.__data__.has(t)}function Zv(t,n){var a=this.__data__;if(a instanceof Sn){var c=a.__data__;if(!fr||c.length<s-1)return c.push([t,n]),this.size=++a.size,this;a=this.__data__=new An(c)}return a.set(t,n),this.size=a.size,this}nn.prototype.clear=Nv,nn.prototype.delete=Kv,nn.prototype.get=Wv,nn.prototype.has=Uv,nn.prototype.set=Zv;function $2(t,n){var a=ye(t),c=!a&&d1(t),d=!a&&!c&&qn(t),p=!a&&!c&&!d&&q1(t),m=a||c||d||p,v=m?lo(t.length,ev):[],L=v.length;for(var B in t)(n||Te.call(t,B))&&!(m&&(B=="length"||d&&(B=="offset"||B=="parent")||p&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Pn(B,L)))&&v.push(B);return v}function k2(t){var n=t.length;return n?t[ko(0,n-1)]:i}function Qv(t,n){return F0($t(t),l1(n,0,t.length))}function jv(t){return F0($t(t))}function yo(t,n,a){(a!==i&&!on(t[n],a)||a===i&&!(n in t))&&fn(t,n,a)}function pr(t,n,a){var c=t[n];(!(Te.call(t,n)&&on(c,a))||a===i&&!(n in t))&&fn(t,n,a)}function $0(t,n){for(var a=t.length;a--;)if(on(t[a][0],n))return a;return-1}function Yv(t,n,a,c){return Yn(t,function(d,p,m){n(c,d,a(d),m)}),c}function S2(t,n){return t&&hn(n,st(n),t)}function Gv(t,n){return t&&hn(n,St(n),t)}function fn(t,n,a){n=="__proto__"&&_0?_0(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function mo(t,n){for(var a=-1,c=n.length,d=A(c),p=t==null;++a<c;)d[a]=p?i:Xo(t,n[a]);return d}function l1(t,n,a){return t===t&&(a!==i&&(t=t<=a?t:a),n!==i&&(t=t>=n?t:n)),t}function Zt(t,n,a,c,d,p){var m,v=n&$,L=n&M,B=n&x;if(a&&(m=d?a(t,c,d,p):a(t)),m!==i)return m;if(!Ye(t))return t;var E=ye(t);if(E){if(m=DC(t),!v)return $t(t,m)}else{var R=mt(t),j=R==Ln||R==Nn;if(qn(t))return q2(t,v);if(R==rt||R==ae||j&&!d){if(m=L||j?{}:ys(t),!v)return L?$C(t,Gv(m,t)):LC(t,S2(m,t))}else{if(!Ke[R])return d?t:{};m=RC(t,R,v)}}p||(p=new nn);var ee=p.get(t);if(ee)return ee;p.set(t,m),Qs(t)?t.forEach(function(se){m.add(Zt(se,n,a,se,t,p))}):Us(t)&&t.forEach(function(se,$e){m.set($e,Zt(se,n,a,$e,t,p))});var ue=B?L?Ro:Do:L?St:st,Ce=E?i:ue(t);return Pt(Ce||t,function(se,$e){Ce&&($e=se,se=t[$e]),pr(m,$e,Zt(se,n,a,$e,t,p))}),m}function Hv(t){var n=st(t);return function(a){return A2(a,t,n)}}function A2(t,n,a){var c=a.length;if(t==null)return!c;for(t=De(t);c--;){var d=a[c],p=n[d],m=t[d];if(m===i&&!(d in t)||!p(m))return!1}return!0}function M2(t,n,a){if(typeof t!="function")throw new Wt(u);return xr(function(){t.apply(i,a)},n)}function yr(t,n,a,c){var d=-1,p=l0,m=!0,v=t.length,L=[],B=n.length;if(!v)return L;a&&(n=Qe(n,It(a))),c?(p=no,m=!1):n.length>=s&&(p=cr,m=!1,n=new s1(n));e:for(;++d<v;){var E=t[d],R=a==null?E:a(E);if(E=c||E!==0?E:0,m&&R===R){for(var j=B;j--;)if(n[j]===R)continue e;L.push(E)}else p(n,R,c)||L.push(E)}return L}var Yn=ns(dn),T2=ns(_o,!0);function Vv(t,n){var a=!0;return Yn(t,function(c,d,p){return a=!!n(c,d,p),a}),a}function k0(t,n,a){for(var c=-1,d=t.length;++c<d;){var p=t[c],m=n(p);if(m!=null&&(v===i?m===m&&!Bt(m):a(m,v)))var v=m,L=p}return L}function qv(t,n,a,c){var d=t.length;for(a=_e(a),a<0&&(a=-a>d?0:d+a),c=c===i||c>d?d:_e(c),c<0&&(c+=d),c=a>c?0:Ys(c);a<c;)t[a++]=n;return t}function P2(t,n){var a=[];return Yn(t,function(c,d,p){n(c,d,p)&&a.push(c)}),a}function dt(t,n,a,c,d){var p=-1,m=t.length;for(a||(a=zC),d||(d=[]);++p<m;){var v=t[p];n>0&&a(v)?n>1?dt(v,n-1,a,c,d):Zn(d,v):c||(d[d.length]=v)}return d}var bo=rs(),I2=rs(!0);function dn(t,n){return t&&bo(t,n,st)}function _o(t,n){return t&&I2(t,n,st)}function S0(t,n){return Un(n,function(a){return In(t[a])})}function c1(t,n){n=Hn(n,t);for(var a=0,c=n.length;t!=null&&a<c;)t=t[rn(n[a++])];return a&&a==c?t:i}function O2(t,n,a){var c=n(t);return ye(t)?c:Zn(c,a(t))}function vt(t){return t==null?t===i?or:en:o1&&o1 in De(t)?OC(t):jC(t)}function vo(t,n){return t>n}function Xv(t,n){return t!=null&&Te.call(t,n)}function Jv(t,n){return t!=null&&n in De(t)}function eC(t,n,a){return t>=yt(n,a)&&t<at(n,a)}function Co(t,n,a){for(var c=a?no:l0,d=t[0].length,p=t.length,m=p,v=A(p),L=1/0,B=[];m--;){var E=t[m];m&&n&&(E=Qe(E,It(n))),L=yt(E.length,L),v[m]=!a&&(n||d>=120&&E.length>=120)?new s1(m&&E):i}E=t[0];var R=-1,j=v[0];e:for(;++R<d&&B.length<L;){var ee=E[R],ue=n?n(ee):ee;if(ee=a||ee!==0?ee:0,!(j?cr(j,ue):c(B,ue,a))){for(m=p;--m;){var Ce=v[m];if(!(Ce?cr(Ce,ue):c(t[m],ue,a)))continue e}j&&j.push(ue),B.push(ee)}}return B}function tC(t,n,a,c){return dn(t,function(d,p,m){n(c,a(d),p,m)}),c}function mr(t,n,a){n=Hn(n,t),t=vs(t,n);var c=t==null?t:t[rn(jt(n))];return c==null?i:Tt(c,t,a)}function B2(t){return He(t)&&vt(t)==ae}function nC(t){return He(t)&&vt(t)==r1}function rC(t){return He(t)&&vt(t)==Lt}function br(t,n,a,c,d){return t===n?!0:t==null||n==null||!He(t)&&!He(n)?t!==t&&n!==n:iC(t,n,a,c,br,d)}function iC(t,n,a,c,d,p){var m=ye(t),v=ye(n),L=m?be:mt(t),B=v?be:mt(n);L=L==ae?rt:L,B=B==ae?rt:B;var E=L==rt,R=B==rt,j=L==B;if(j&&qn(t)){if(!qn(n))return!1;m=!0,E=!1}if(j&&!E)return p||(p=new nn),m||q1(t)?hs(t,n,a,c,d,p):PC(t,n,L,a,c,d,p);if(!(a&T)){var ee=E&&Te.call(t,"__wrapped__"),ue=R&&Te.call(n,"__wrapped__");if(ee||ue){var Ce=ee?t.value():t,se=ue?n.value():n;return p||(p=new nn),d(Ce,se,a,c,p)}}return j?(p||(p=new nn),IC(t,n,a,c,d,p)):!1}function oC(t){return He(t)&&mt(t)==je}function xo(t,n,a,c){var d=a.length,p=d,m=!c;if(t==null)return!p;for(t=De(t);d--;){var v=a[d];if(m&&v[2]?v[1]!==t[v[0]]:!(v[0]in t))return!1}for(;++d<p;){v=a[d];var L=v[0],B=t[L],E=v[1];if(m&&v[2]){if(B===i&&!(L in t))return!1}else{var R=new nn;if(c)var j=c(B,E,L,t,n,R);if(!(j===i?br(E,B,T|k,c,R):j))return!1}}return!0}function E2(t){if(!Ye(t)||KC(t))return!1;var n=In(t)?ov:Hb;return n.test(f1(t))}function aC(t){return He(t)&&vt(t)==it}function sC(t){return He(t)&&mt(t)==ut}function lC(t){return He(t)&&Z0(t.length)&&!!Ze[vt(t)]}function D2(t){return typeof t=="function"?t:t==null?At:typeof t=="object"?ye(t)?z2(t[0],t[1]):F2(t):o6(t)}function wo(t){if(!Cr(t))return fv(t);var n=[];for(var a in De(t))Te.call(t,a)&&a!="constructor"&&n.push(a);return n}function cC(t){if(!Ye(t))return QC(t);var n=Cr(t),a=[];for(var c in t)c=="constructor"&&(n||!Te.call(t,c))||a.push(c);return a}function Lo(t,n){return t<n}function R2(t,n){var a=-1,c=kt(t)?A(t.length):[];return Yn(t,function(d,p,m){c[++a]=n(d,p,m)}),c}function F2(t){var n=zo(t);return n.length==1&&n[0][2]?bs(n[0][0],n[0][1]):function(a){return a===t||xo(a,t,n)}}function z2(t,n){return Ko(t)&&ms(n)?bs(rn(t),n):function(a){var c=Xo(a,t);return c===i&&c===n?Jo(a,t):br(n,c,T|k)}}function A0(t,n,a,c,d){t!==n&&bo(n,function(p,m){if(d||(d=new nn),Ye(p))uC(t,n,m,a,A0,c,d);else{var v=c?c(Uo(t,m),p,m+"",t,n,d):i;v===i&&(v=p),yo(t,m,v)}},St)}function uC(t,n,a,c,d,p,m){var v=Uo(t,a),L=Uo(n,a),B=m.get(L);if(B){yo(t,a,B);return}var E=p?p(v,L,a+"",t,n,m):i,R=E===i;if(R){var j=ye(L),ee=!j&&qn(L),ue=!j&&!ee&&q1(L);E=L,j||ee||ue?ye(v)?E=v:Ve(v)?E=$t(v):ee?(R=!1,E=q2(L,!0)):ue?(R=!1,E=X2(L,!0)):E=[]:wr(L)||d1(L)?(E=v,d1(v)?E=Gs(v):(!Ye(v)||In(v))&&(E=ys(L))):R=!1}R&&(m.set(L,E),d(E,L,c,p,m),m.delete(L)),yo(t,a,E)}function N2(t,n){var a=t.length;if(a)return n+=n<0?a:0,Pn(n,a)?t[n]:i}function K2(t,n,a){n.length?n=Qe(n,function(p){return ye(p)?function(m){return c1(m,p.length===1?p[0]:p)}:p}):n=[At];var c=-1;n=Qe(n,It(le()));var d=R2(t,function(p,m,v){var L=Qe(n,function(B){return B(p)});return{criteria:L,index:++c,value:p}});return R_(d,function(p,m){return wC(p,m,a)})}function fC(t,n){return W2(t,n,function(a,c){return Jo(t,c)})}function W2(t,n,a){for(var c=-1,d=n.length,p={};++c<d;){var m=n[c],v=c1(t,m);a(v,m)&&_r(p,Hn(m,t),v)}return p}function dC(t){return function(n){return c1(n,t)}}function $o(t,n,a,c){var d=c?D_:N1,p=-1,m=n.length,v=t;for(t===n&&(n=$t(n)),a&&(v=Qe(t,It(a)));++p<m;)for(var L=0,B=n[p],E=a?a(B):B;(L=d(v,E,L,c))>-1;)v!==t&&b0.call(v,L,1),b0.call(t,L,1);return t}function U2(t,n){for(var a=t?n.length:0,c=a-1;a--;){var d=n[a];if(a==c||d!==p){var p=d;Pn(d)?b0.call(t,d,1):Mo(t,d)}}return t}function ko(t,n){return t+C0(w2()*(n-t+1))}function hC(t,n,a,c){for(var d=-1,p=at(v0((n-t)/(a||1)),0),m=A(p);p--;)m[c?p:++d]=t,t+=a;return m}function So(t,n){var a="";if(!t||n<1||n>Fe)return a;do n%2&&(a+=t),n=C0(n/2),n&&(t+=t);while(n);return a}function xe(t,n){return Zo(_s(t,n,At),t+"")}function gC(t){return k2(X1(t))}function pC(t,n){var a=X1(t);return F0(a,l1(n,0,a.length))}function _r(t,n,a,c){if(!Ye(t))return t;n=Hn(n,t);for(var d=-1,p=n.length,m=p-1,v=t;v!=null&&++d<p;){var L=rn(n[d]),B=a;if(L==="__proto__"||L==="constructor"||L==="prototype")return t;if(d!=m){var E=v[L];B=c?c(E,L,v):i,B===i&&(B=Ye(E)?E:Pn(n[d+1])?[]:{})}pr(v,L,B),v=v[L]}return t}var Z2=x0?function(t,n){return x0.set(t,n),t}:At,yC=_0?function(t,n){return _0(t,"toString",{configurable:!0,enumerable:!1,value:ta(n),writable:!0})}:At;function mC(t){return F0(X1(t))}function Qt(t,n,a){var c=-1,d=t.length;n<0&&(n=-n>d?0:d+n),a=a>d?d:a,a<0&&(a+=d),d=n>a?0:a-n>>>0,n>>>=0;for(var p=A(d);++c<d;)p[c]=t[c+n];return p}function bC(t,n){var a;return Yn(t,function(c,d,p){return a=n(c,d,p),!a}),!!a}function M0(t,n,a){var c=0,d=t==null?c:t.length;if(typeof n=="number"&&n===n&&d<=oe){for(;c<d;){var p=c+d>>>1,m=t[p];m!==null&&!Bt(m)&&(a?m<=n:m<n)?c=p+1:d=p}return d}return Ao(t,n,At,a)}function Ao(t,n,a,c){var d=0,p=t==null?0:t.length;if(p===0)return 0;n=a(n);for(var m=n!==n,v=n===null,L=Bt(n),B=n===i;d<p;){var E=C0((d+p)/2),R=a(t[E]),j=R!==i,ee=R===null,ue=R===R,Ce=Bt(R);if(m)var se=c||ue;else B?se=ue&&(c||j):v?se=ue&&j&&(c||!ee):L?se=ue&&j&&!ee&&(c||!Ce):ee||Ce?se=!1:se=c?R<=n:R<n;se?d=E+1:p=E}return yt(p,pt)}function Q2(t,n){for(var a=-1,c=t.length,d=0,p=[];++a<c;){var m=t[a],v=n?n(m):m;if(!a||!on(v,L)){var L=v;p[d++]=m===0?0:m}}return p}function j2(t){return typeof t=="number"?t:Bt(t)?Ge:+t}function Ot(t){if(typeof t=="string")return t;if(ye(t))return Qe(t,Ot)+"";if(Bt(t))return L2?L2.call(t):"";var n=t+"";return n=="0"&&1/t==-pe?"-0":n}function Gn(t,n,a){var c=-1,d=l0,p=t.length,m=!0,v=[],L=v;if(a)m=!1,d=no;else if(p>=s){var B=n?null:MC(t);if(B)return u0(B);m=!1,d=cr,L=new s1}else L=n?[]:v;e:for(;++c<p;){var E=t[c],R=n?n(E):E;if(E=a||E!==0?E:0,m&&R===R){for(var j=L.length;j--;)if(L[j]===R)continue e;n&&L.push(R),v.push(E)}else d(L,R,a)||(L!==v&&L.push(R),v.push(E))}return v}function Mo(t,n){n=Hn(n,t);var a=-1,c=n.length;if(!c)return!0;for(;++a<c;){var d=rn(n[a]);if(d==="__proto__"&&!Te.call(t,"__proto__")||(d==="constructor"||d==="prototype")&&a<c-1)return!1}var p=vs(t,n);return p==null||delete p[rn(jt(n))]}function Y2(t,n,a,c){return _r(t,n,a(c1(t,n)),c)}function T0(t,n,a,c){for(var d=t.length,p=c?d:-1;(c?p--:++p<d)&&n(t[p],p,t););return a?Qt(t,c?0:p,c?p+1:d):Qt(t,c?p+1:0,c?d:p)}function G2(t,n){var a=t;return a instanceof ke&&(a=a.value()),ro(n,function(c,d){return d.func.apply(d.thisArg,Zn([c],d.args))},a)}function To(t,n,a){var c=t.length;if(c<2)return c?Gn(t[0]):[];for(var d=-1,p=A(c);++d<c;)for(var m=t[d],v=-1;++v<c;)v!=d&&(p[d]=yr(p[d]||m,t[v],n,a));return Gn(dt(p,1),n,a)}function H2(t,n,a){for(var c=-1,d=t.length,p=n.length,m={};++c<d;){var v=c<p?n[c]:i;a(m,t[c],v)}return m}function Po(t){return Ve(t)?t:[]}function Io(t){return typeof t=="function"?t:At}function Hn(t,n){return ye(t)?t:Ko(t,n)?[t]:Ls(Pe(t))}var _C=xe;function Vn(t,n,a){var c=t.length;return a=a===i?c:a,!n&&a>=c?t:Qt(t,n,a)}var V2=av||function(t){return ft.clearTimeout(t)};function q2(t,n){if(n)return t.slice();var a=t.length,c=b2?b2(a):new t.constructor(a);return t.copy(c),c}function Oo(t){var n=new t.constructor(t.byteLength);return new y0(n).set(new y0(t)),n}function vC(t,n){var a=n?Oo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function CC(t){var n=new t.constructor(t.source,B5.exec(t));return n.lastIndex=t.lastIndex,n}function xC(t){return gr?De(gr.call(t)):{}}function X2(t,n){var a=n?Oo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function J2(t,n){if(t!==n){var a=t!==i,c=t===null,d=t===t,p=Bt(t),m=n!==i,v=n===null,L=n===n,B=Bt(n);if(!v&&!B&&!p&&t>n||p&&m&&L&&!v&&!B||c&&m&&L||!a&&L||!d)return 1;if(!c&&!p&&!B&&t<n||B&&a&&d&&!c&&!p||v&&a&&d||!m&&d||!L)return-1}return 0}function wC(t,n,a){for(var c=-1,d=t.criteria,p=n.criteria,m=d.length,v=a.length;++c<m;){var L=J2(d[c],p[c]);if(L){if(c>=v)return L;var B=a[c];return L*(B=="desc"?-1:1)}}return t.index-n.index}function es(t,n,a,c){for(var d=-1,p=t.length,m=a.length,v=-1,L=n.length,B=at(p-m,0),E=A(L+B),R=!c;++v<L;)E[v]=n[v];for(;++d<m;)(R||d<p)&&(E[a[d]]=t[d]);for(;B--;)E[v++]=t[d++];return E}function ts(t,n,a,c){for(var d=-1,p=t.length,m=-1,v=a.length,L=-1,B=n.length,E=at(p-v,0),R=A(E+B),j=!c;++d<E;)R[d]=t[d];for(var ee=d;++L<B;)R[ee+L]=n[L];for(;++m<v;)(j||d<p)&&(R[ee+a[m]]=t[d++]);return R}function $t(t,n){var a=-1,c=t.length;for(n||(n=A(c));++a<c;)n[a]=t[a];return n}function hn(t,n,a,c){var d=!a;a||(a={});for(var p=-1,m=n.length;++p<m;){var v=n[p],L=c?c(a[v],t[v],v,a,t):i;L===i&&(L=t[v]),d?fn(a,v,L):pr(a,v,L)}return a}function LC(t,n){return hn(t,No(t),n)}function $C(t,n){return hn(t,gs(t),n)}function P0(t,n){return function(a,c){var d=ye(a)?T_:Yv,p=n?n():{};return d(a,t,le(c,2),p)}}function G1(t){return xe(function(n,a){var c=-1,d=a.length,p=d>1?a[d-1]:i,m=d>2?a[2]:i;for(p=t.length>3&&typeof p=="function"?(d--,p):i,m&&Ct(a[0],a[1],m)&&(p=d<3?i:p,d=1),n=De(n);++c<d;){var v=a[c];v&&t(n,v,c,p)}return n})}function ns(t,n){return function(a,c){if(a==null)return a;if(!kt(a))return t(a,c);for(var d=a.length,p=n?d:-1,m=De(a);(n?p--:++p<d)&&c(m[p],p,m)!==!1;);return a}}function rs(t){return function(n,a,c){for(var d=-1,p=De(n),m=c(n),v=m.length;v--;){var L=m[t?v:++d];if(a(p[L],L,p)===!1)break}return n}}function kC(t,n,a){var c=n&S,d=vr(t);function p(){var m=this&&this!==ft&&this instanceof p?d:t;return m.apply(c?a:this,arguments)}return p}function is(t){return function(n){n=Pe(n);var a=K1(n)?tn(n):i,c=a?a[0]:n.charAt(0),d=a?Vn(a,1).join(""):n.slice(1);return c[t]()+d}}function H1(t){return function(n){return ro(r6(n6(n).replace(y_,"")),t,"")}}function vr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=Y1(t.prototype),c=t.apply(a,n);return Ye(c)?c:a}}function SC(t,n,a){var c=vr(t);function d(){for(var p=arguments.length,m=A(p),v=p,L=V1(d);v--;)m[v]=arguments[v];var B=p<3&&m[0]!==L&&m[p-1]!==L?[]:Qn(m,L);if(p-=B.length,p<a)return cs(t,n,I0,d.placeholder,i,m,B,i,i,a-p);var E=this&&this!==ft&&this instanceof d?c:t;return Tt(E,this,m)}return d}function os(t){return function(n,a,c){var d=De(n);if(!kt(n)){var p=le(a,3);n=st(n),a=function(v){return p(d[v],v,d)}}var m=t(n,a,c);return m>-1?d[p?n[m]:m]:i}}function as(t){return Tn(function(n){var a=n.length,c=a,d=Ut.prototype.thru;for(t&&n.reverse();c--;){var p=n[c];if(typeof p!="function")throw new Wt(u);if(d&&!m&&D0(p)=="wrapper")var m=new Ut([],!0)}for(c=m?c:a;++c<a;){p=n[c];var v=D0(p),L=v=="wrapper"?Fo(p):i;L&&Wo(L[0])&&L[1]==(O|P|q|W)&&!L[4].length&&L[9]==1?m=m[D0(L[0])].apply(m,L[3]):m=p.length==1&&Wo(p)?m[v]():m.thru(p)}return function(){var B=arguments,E=B[0];if(m&&B.length==1&&ye(E))return m.plant(E).value();for(var R=0,j=a?n[R].apply(this,B):E;++R<a;)j=n[R].call(this,j);return j}})}function I0(t,n,a,c,d,p,m,v,L,B){var E=n&O,R=n&S,j=n&D,ee=n&(P|z),ue=n&Q,Ce=j?i:vr(t);function se(){for(var $e=arguments.length,Ae=A($e),Et=$e;Et--;)Ae[Et]=arguments[Et];if(ee)var xt=V1(se),Dt=z_(Ae,xt);if(c&&(Ae=es(Ae,c,d,ee)),p&&(Ae=ts(Ae,p,m,ee)),$e-=Dt,ee&&$e<B){var qe=Qn(Ae,xt);return cs(t,n,I0,se.placeholder,a,Ae,qe,v,L,B-$e)}var an=R?a:this,Bn=j?an[t]:t;return $e=Ae.length,v?Ae=YC(Ae,v):ue&&$e>1&&Ae.reverse(),E&&L<$e&&(Ae.length=L),this&&this!==ft&&this instanceof se&&(Bn=Ce||vr(Bn)),Bn.apply(an,Ae)}return se}function ss(t,n){return function(a,c){return tC(a,t,n(c),{})}}function O0(t,n){return function(a,c){var d;if(a===i&&c===i)return n;if(a!==i&&(d=a),c!==i){if(d===i)return c;typeof a=="string"||typeof c=="string"?(a=Ot(a),c=Ot(c)):(a=j2(a),c=j2(c)),d=t(a,c)}return d}}function Bo(t){return Tn(function(n){return n=Qe(n,It(le())),xe(function(a){var c=this;return t(n,function(d){return Tt(d,c,a)})})})}function B0(t,n){n=n===i?" ":Ot(n);var a=n.length;if(a<2)return a?So(n,t):n;var c=So(n,v0(t/W1(n)));return K1(n)?Vn(tn(c),0,t).join(""):c.slice(0,t)}function AC(t,n,a,c){var d=n&S,p=vr(t);function m(){for(var v=-1,L=arguments.length,B=-1,E=c.length,R=A(E+L),j=this&&this!==ft&&this instanceof m?p:t;++B<E;)R[B]=c[B];for(;L--;)R[B++]=arguments[++v];return Tt(j,d?a:this,R)}return m}function ls(t){return function(n,a,c){return c&&typeof c!="number"&&Ct(n,a,c)&&(a=c=i),n=On(n),a===i?(a=n,n=0):a=On(a),c=c===i?n<a?1:-1:On(c),hC(n,a,c,t)}}function E0(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=Yt(n),a=Yt(a)),t(n,a)}}function cs(t,n,a,c,d,p,m,v,L,B){var E=n&P,R=E?m:i,j=E?i:m,ee=E?p:i,ue=E?i:p;n|=E?q:Z,n&=~(E?Z:q),n&F||(n&=~(S|D));var Ce=[t,n,d,ee,R,ue,j,v,L,B],se=a.apply(i,Ce);return Wo(t)&&Cs(se,Ce),se.placeholder=c,xs(se,t,n)}function Eo(t){var n=ot[t];return function(a,c){if(a=Yt(a),c=c==null?0:yt(_e(c),292),c&&x2(a)){var d=(Pe(a)+"e").split("e"),p=n(d[0]+"e"+(+d[1]+c));return d=(Pe(p)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return n(a)}}var MC=Q1&&1/u0(new Q1([,-0]))[1]==pe?function(t){return new Q1(t)}:ia;function us(t){return function(n){var a=mt(n);return a==je?uo(n):a==ut?j_(n):F_(n,t(n))}}function Mn(t,n,a,c,d,p,m,v){var L=n&D;if(!L&&typeof t!="function")throw new Wt(u);var B=c?c.length:0;if(B||(n&=~(q|Z),c=d=i),m=m===i?m:at(_e(m),0),v=v===i?v:_e(v),B-=d?d.length:0,n&Z){var E=c,R=d;c=d=i}var j=L?i:Fo(t),ee=[t,n,a,c,d,E,R,p,m,v];if(j&&ZC(ee,j),t=ee[0],n=ee[1],a=ee[2],c=ee[3],d=ee[4],v=ee[9]=ee[9]===i?L?0:t.length:at(ee[9]-B,0),!v&&n&(P|z)&&(n&=~(P|z)),!n||n==S)var ue=kC(t,n,a);else n==P||n==z?ue=SC(t,n,v):(n==q||n==(S|q))&&!d.length?ue=AC(t,n,a,c):ue=I0.apply(i,ee);var Ce=j?Z2:Cs;return xs(Ce(ue,ee),t,n)}function fs(t,n,a,c){return t===i||on(t,Z1[a])&&!Te.call(c,a)?n:t}function ds(t,n,a,c,d,p){return Ye(t)&&Ye(n)&&(p.set(n,t),A0(t,n,i,ds,p),p.delete(n)),t}function TC(t){return wr(t)?i:t}function hs(t,n,a,c,d,p){var m=a&T,v=t.length,L=n.length;if(v!=L&&!(m&&L>v))return!1;var B=p.get(t),E=p.get(n);if(B&&E)return B==n&&E==t;var R=-1,j=!0,ee=a&k?new s1:i;for(p.set(t,n),p.set(n,t);++R<v;){var ue=t[R],Ce=n[R];if(c)var se=m?c(Ce,ue,R,n,t,p):c(ue,Ce,R,t,n,p);if(se!==i){if(se)continue;j=!1;break}if(ee){if(!io(n,function($e,Ae){if(!cr(ee,Ae)&&(ue===$e||d(ue,$e,a,c,p)))return ee.push(Ae)})){j=!1;break}}else if(!(ue===Ce||d(ue,Ce,a,c,p))){j=!1;break}}return p.delete(t),p.delete(n),j}function PC(t,n,a,c,d,p,m){switch(a){case Wn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case r1:return!(t.byteLength!=n.byteLength||!p(new y0(t),new y0(n)));case ve:case Lt:case Ne:return on(+t,+n);case wn:return t.name==n.name&&t.message==n.message;case it:case kn:return t==n+"";case je:var v=uo;case ut:var L=c&T;if(v||(v=u0),t.size!=n.size&&!L)return!1;var B=m.get(t);if(B)return B==n;c|=k,m.set(t,n);var E=hs(v(t),v(n),c,d,p,m);return m.delete(t),E;case O1:if(gr)return gr.call(t)==gr.call(n)}return!1}function IC(t,n,a,c,d,p){var m=a&T,v=Do(t),L=v.length,B=Do(n),E=B.length;if(L!=E&&!m)return!1;for(var R=L;R--;){var j=v[R];if(!(m?j in n:Te.call(n,j)))return!1}var ee=p.get(t),ue=p.get(n);if(ee&&ue)return ee==n&&ue==t;var Ce=!0;p.set(t,n),p.set(n,t);for(var se=m;++R<L;){j=v[R];var $e=t[j],Ae=n[j];if(c)var Et=m?c(Ae,$e,j,n,t,p):c($e,Ae,j,t,n,p);if(!(Et===i?$e===Ae||d($e,Ae,a,c,p):Et)){Ce=!1;break}se||(se=j=="constructor")}if(Ce&&!se){var xt=t.constructor,Dt=n.constructor;xt!=Dt&&"constructor"in t&&"constructor"in n&&!(typeof xt=="function"&&xt instanceof xt&&typeof Dt=="function"&&Dt instanceof Dt)&&(Ce=!1)}return p.delete(t),p.delete(n),Ce}function Tn(t){return Zo(_s(t,i,As),t+"")}function Do(t){return O2(t,st,No)}function Ro(t){return O2(t,St,gs)}var Fo=x0?function(t){return x0.get(t)}:ia;function D0(t){for(var n=t.name+"",a=j1[n],c=Te.call(j1,n)?a.length:0;c--;){var d=a[c],p=d.func;if(p==null||p==t)return d.name}return n}function V1(t){var n=Te.call(h,"placeholder")?h:t;return n.placeholder}function le(){var t=h.iteratee||na;return t=t===na?D2:t,arguments.length?t(arguments[0],arguments[1]):t}function R0(t,n){var a=t.__data__;return NC(n)?a[typeof n=="string"?"string":"hash"]:a.map}function zo(t){for(var n=st(t),a=n.length;a--;){var c=n[a],d=t[c];n[a]=[c,d,ms(d)]}return n}function u1(t,n){var a=U_(t,n);return E2(a)?a:i}function OC(t){var n=Te.call(t,o1),a=t[o1];try{t[o1]=i;var c=!0}catch{}var d=g0.call(t);return c&&(n?t[o1]=a:delete t[o1]),d}var No=ho?function(t){return t==null?[]:(t=De(t),Un(ho(t),function(n){return v2.call(t,n)}))}:oa,gs=ho?function(t){for(var n=[];t;)Zn(n,No(t)),t=m0(t);return n}:oa,mt=vt;(go&&mt(new go(new ArrayBuffer(1)))!=Wn||fr&&mt(new fr)!=je||po&&mt(po.resolve())!=Mt||Q1&&mt(new Q1)!=ut||dr&&mt(new dr)!=Kn)&&(mt=function(t){var n=vt(t),a=n==rt?t.constructor:i,c=a?f1(a):"";if(c)switch(c){case pv:return Wn;case yv:return je;case mv:return Mt;case bv:return ut;case _v:return Kn}return n});function BC(t,n,a){for(var c=-1,d=a.length;++c<d;){var p=a[c],m=p.size;switch(p.type){case"drop":t+=m;break;case"dropRight":n-=m;break;case"take":n=yt(n,t+m);break;case"takeRight":t=at(t,n-m);break}}return{start:t,end:n}}function EC(t){var n=t.match(Wb);return n?n[1].split(Ub):[]}function ps(t,n,a){n=Hn(n,t);for(var c=-1,d=n.length,p=!1;++c<d;){var m=rn(n[c]);if(!(p=t!=null&&a(t,m)))break;t=t[m]}return p||++c!=d?p:(d=t==null?0:t.length,!!d&&Z0(d)&&Pn(m,d)&&(ye(t)||d1(t)))}function DC(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&Te.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function ys(t){return typeof t.constructor=="function"&&!Cr(t)?Y1(m0(t)):{}}function RC(t,n,a){var c=t.constructor;switch(n){case r1:return Oo(t);case ve:case Lt:return new c(+t);case Wn:return vC(t,a);case B1:case sr:case Ue:case lr:case E1:case D1:case R1:case F1:case ji:return X2(t,a);case je:return new c;case Ne:case kn:return new c(t);case it:return CC(t);case ut:return new c;case O1:return xC(t)}}function FC(t,n){var a=n.length;if(!a)return t;var c=a-1;return n[c]=(a>1?"& ":"")+n[c],n=n.join(a>2?", ":" "),t.replace(Kb,`{
|
|
9
9
|
/* [wrapped with `+n+`] */
|
|
10
|
-
`)}function RC(t){return ye(t)||d1(t)||!!(v2&&t&&t[v2])}function Pn(t,n){var a=typeof t;return n=n??Fe,!!n&&(a=="number"||a!="symbol"&&Hb.test(t))&&t>-1&&t%1==0&&t<n}function Ct(t,n,a){if(!Ye(a))return!1;var c=typeof n;return(c=="number"?kt(a)&&Pn(n,a.length):c=="string"&&n in a)?on(a[n],t):!1}function Ko(t,n){if(ye(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Bt(t)?!0:Eb.test(t)||!Bb.test(t)||n!=null&&t in De(n)}function FC(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Wo(t){var n=D0(t),a=h[n];if(typeof a!="function"||!(n in ke.prototype))return!1;if(t===a)return!0;var c=Fo(a);return!!c&&t===c[0]}function zC(t){return!!y2&&y2 in t}var NC=d0?In:aa;function Cr(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||Z1;return t===a}function ys(t){return t===t&&!Ye(t)}function ms(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==i||t in De(a))}}function KC(t){var n=W0(t,function(c){return a.size===C&&a.clear(),c}),a=n.cache;return n}function WC(t,n){var a=t[1],c=n[1],d=a|c,p=d<(S|D|O),m=c==O&&a==P||c==O&&a==W&&t[7].length<=n[8]||c==(O|W)&&n[7].length<=n[8]&&a==P;if(!(p||m))return t;c&S&&(t[2]=n[2],d|=a&S?0:F);var v=n[3];if(v){var L=t[3];t[3]=L?J2(L,v,n[4]):v,t[4]=L?Qn(t[3],_):n[4]}return v=n[5],v&&(L=t[5],t[5]=L?es(L,v,n[6]):v,t[6]=L?Qn(t[5],_):n[6]),v=n[7],v&&(t[7]=v),c&O&&(t[8]=t[8]==null?n[8]:yt(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=d,t}function UC(t){var n=[];if(t!=null)for(var a in De(t))n.push(a);return n}function ZC(t){return g0.call(t)}function bs(t,n,a){return n=at(n===i?t.length-1:n,0),function(){for(var c=arguments,d=-1,p=at(c.length-n,0),m=A(p);++d<p;)m[d]=c[n+d];d=-1;for(var v=A(n+1);++d<n;)v[d]=c[d];return v[n]=a(m),Tt(t,this,v)}}function _s(t,n){return n.length<2?t:c1(t,Qt(n,0,-1))}function QC(t,n){for(var a=t.length,c=yt(n.length,a),d=$t(t);c--;){var p=n[c];t[c]=Pn(p,a)?d[p]:i}return t}function Uo(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var vs=xs(U2),xr=av||function(t,n){return ft.setTimeout(t,n)},Zo=xs(gC);function Cs(t,n,a){var c=n+"";return Zo(t,DC(c,jC(OC(c),a)))}function xs(t){var n=0,a=0;return function(){var c=uv(),d=N-(c-a);if(a=c,d>0){if(++n>=J)return arguments[0]}else n=0;return t.apply(i,arguments)}}function F0(t,n){var a=-1,c=t.length,d=c-1;for(n=n===i?c:n;++a<n;){var p=ko(a,d),m=t[p];t[p]=t[a],t[a]=m}return t.length=n,t}var ws=KC(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Db,function(a,c,d,p){n.push(d?p.replace(Ub,"$1"):c||a)}),n});function rn(t){if(typeof t=="string"||Bt(t))return t;var n=t+"";return n=="0"&&1/t==-pe?"-0":n}function f1(t){if(t!=null){try{return h0.call(t)}catch{}try{return t+""}catch{}}return""}function jC(t,n){return Pt(te,function(a){var c="_."+a[0];n&a[1]&&!l0(t,c)&&t.push(c)}),t.sort()}function Ls(t){if(t instanceof ke)return t.clone();var n=new Ut(t.__wrapped__,t.__chain__);return n.__actions__=$t(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function YC(t,n,a){(a?Ct(t,n,a):n===i)?n=1:n=at(_e(n),0);var c=t==null?0:t.length;if(!c||n<1)return[];for(var d=0,p=0,m=A(v0(c/n));d<c;)m[p++]=Qt(t,d,d+=n);return m}function GC(t){for(var n=-1,a=t==null?0:t.length,c=0,d=[];++n<a;){var p=t[n];p&&(d[c++]=p)}return d}function HC(){var t=arguments.length;if(!t)return[];for(var n=A(t-1),a=arguments[0],c=t;c--;)n[c-1]=arguments[c];return Zn(ye(a)?$t(a):[a],dt(n,1))}var VC=xe(function(t,n){return Ve(t)?yr(t,dt(n,1,Ve,!0)):[]}),qC=xe(function(t,n){var a=jt(n);return Ve(a)&&(a=i),Ve(t)?yr(t,dt(n,1,Ve,!0),le(a,2)):[]}),XC=xe(function(t,n){var a=jt(n);return Ve(a)&&(a=i),Ve(t)?yr(t,dt(n,1,Ve,!0),i,a):[]});function JC(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:_e(n),Qt(t,n<0?0:n,c)):[]}function ex(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:_e(n),n=c-n,Qt(t,0,n<0?0:n)):[]}function tx(t,n){return t&&t.length?T0(t,le(n,3),!0,!0):[]}function nx(t,n){return t&&t.length?T0(t,le(n,3),!0):[]}function rx(t,n,a,c){var d=t==null?0:t.length;return d?(a&&typeof a!="number"&&Ct(t,n,a)&&(a=0,c=d),Hv(t,n,a,c)):[]}function $s(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:_e(a);return d<0&&(d=at(c+d,0)),c0(t,le(n,3),d)}function ks(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c-1;return a!==i&&(d=_e(a),d=a<0?at(c+d,0):yt(d,c-1)),c0(t,le(n,3),d,!0)}function Ss(t){var n=t==null?0:t.length;return n?dt(t,1):[]}function ix(t){var n=t==null?0:t.length;return n?dt(t,pe):[]}function ox(t,n){var a=t==null?0:t.length;return a?(n=n===i?1:_e(n),dt(t,n)):[]}function ax(t){for(var n=-1,a=t==null?0:t.length,c={};++n<a;){var d=t[n];fn(c,d[0],d[1])}return c}function As(t){return t&&t.length?t[0]:i}function sx(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:_e(a);return d<0&&(d=at(c+d,0)),N1(t,n,d)}function lx(t){var n=t==null?0:t.length;return n?Qt(t,0,-1):[]}var cx=xe(function(t){var n=Qe(t,Po);return n.length&&n[0]===t[0]?Co(n):[]}),ux=xe(function(t){var n=jt(t),a=Qe(t,Po);return n===jt(a)?n=i:a.pop(),a.length&&a[0]===t[0]?Co(a,le(n,2)):[]}),fx=xe(function(t){var n=jt(t),a=Qe(t,Po);return n=typeof n=="function"?n:i,n&&a.pop(),a.length&&a[0]===t[0]?Co(a,i,n):[]});function dx(t,n){return t==null?"":lv.call(t,n)}function jt(t){var n=t==null?0:t.length;return n?t[n-1]:i}function hx(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c;return a!==i&&(d=_e(a),d=d<0?at(c+d,0):yt(d,c-1)),n===n?j_(t,n,d):c0(t,l2,d,!0)}function gx(t,n){return t&&t.length?z2(t,_e(n)):i}var px=xe(Ms);function Ms(t,n){return t&&t.length&&n&&n.length?$o(t,n):t}function yx(t,n,a){return t&&t.length&&n&&n.length?$o(t,n,le(a,2)):t}function mx(t,n,a){return t&&t.length&&n&&n.length?$o(t,n,i,a):t}var bx=Tn(function(t,n){var a=t==null?0:t.length,c=mo(t,n);return W2(t,Qe(n,function(d){return Pn(d,a)?+d:d}).sort(X2)),c});function _x(t,n){var a=[];if(!(t&&t.length))return a;var c=-1,d=[],p=t.length;for(n=le(n,3);++c<p;){var m=t[c];n(m,c,t)&&(a.push(m),d.push(c))}return W2(t,d),a}function Qo(t){return t==null?t:dv.call(t)}function vx(t,n,a){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&Ct(t,n,a)?(n=0,a=c):(n=n==null?0:_e(n),a=a===i?c:_e(a)),Qt(t,n,a)):[]}function Cx(t,n){return M0(t,n)}function xx(t,n,a){return Ao(t,n,le(a,2))}function wx(t,n){var a=t==null?0:t.length;if(a){var c=M0(t,n);if(c<a&&on(t[c],n))return c}return-1}function Lx(t,n){return M0(t,n,!0)}function $x(t,n,a){return Ao(t,n,le(a,2),!0)}function kx(t,n){var a=t==null?0:t.length;if(a){var c=M0(t,n,!0)-1;if(on(t[c],n))return c}return-1}function Sx(t){return t&&t.length?Z2(t):[]}function Ax(t,n){return t&&t.length?Z2(t,le(n,2)):[]}function Mx(t){var n=t==null?0:t.length;return n?Qt(t,1,n):[]}function Tx(t,n,a){return t&&t.length?(n=a||n===i?1:_e(n),Qt(t,0,n<0?0:n)):[]}function Px(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:_e(n),n=c-n,Qt(t,n<0?0:n,c)):[]}function Ix(t,n){return t&&t.length?T0(t,le(n,3),!1,!0):[]}function Ox(t,n){return t&&t.length?T0(t,le(n,3)):[]}var Bx=xe(function(t){return Gn(dt(t,1,Ve,!0))}),Ex=xe(function(t){var n=jt(t);return Ve(n)&&(n=i),Gn(dt(t,1,Ve,!0),le(n,2))}),Dx=xe(function(t){var n=jt(t);return n=typeof n=="function"?n:i,Gn(dt(t,1,Ve,!0),i,n)});function Rx(t){return t&&t.length?Gn(t):[]}function Fx(t,n){return t&&t.length?Gn(t,le(n,2)):[]}function zx(t,n){return n=typeof n=="function"?n:i,t&&t.length?Gn(t,i,n):[]}function jo(t){if(!(t&&t.length))return[];var n=0;return t=Un(t,function(a){if(Ve(a))return n=at(a.length,n),!0}),lo(n,function(a){return Qe(t,oo(a))})}function Ts(t,n){if(!(t&&t.length))return[];var a=jo(t);return n==null?a:Qe(a,function(c){return Tt(n,i,c)})}var Nx=xe(function(t,n){return Ve(t)?yr(t,n):[]}),Kx=xe(function(t){return To(Un(t,Ve))}),Wx=xe(function(t){var n=jt(t);return Ve(n)&&(n=i),To(Un(t,Ve),le(n,2))}),Ux=xe(function(t){var n=jt(t);return n=typeof n=="function"?n:i,To(Un(t,Ve),i,n)}),Zx=xe(jo);function Qx(t,n){return G2(t||[],n||[],pr)}function jx(t,n){return G2(t||[],n||[],_r)}var Yx=xe(function(t){var n=t.length,a=n>1?t[n-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Ts(t,a)});function Ps(t){var n=h(t);return n.__chain__=!0,n}function Gx(t,n){return n(t),t}function z0(t,n){return n(t)}var Hx=Tn(function(t){var n=t.length,a=n?t[0]:0,c=this.__wrapped__,d=function(p){return mo(p,t)};return n>1||this.__actions__.length||!(c instanceof ke)||!Pn(a)?this.thru(d):(c=c.slice(a,+a+(n?1:0)),c.__actions__.push({func:z0,args:[d],thisArg:i}),new Ut(c,this.__chain__).thru(function(p){return n&&!p.length&&p.push(i),p}))});function Vx(){return Ps(this)}function qx(){return new Ut(this.value(),this.__chain__)}function Xx(){this.__values__===i&&(this.__values__=Qs(this.value()));var t=this.__index__>=this.__values__.length,n=t?i:this.__values__[this.__index__++];return{done:t,value:n}}function Jx(){return this}function ew(t){for(var n,a=this;a instanceof L0;){var c=Ls(a);c.__index__=0,c.__values__=i,n?d.__wrapped__=c:n=c;var d=c;a=a.__wrapped__}return d.__wrapped__=t,n}function tw(){var t=this.__wrapped__;if(t instanceof ke){var n=t;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:z0,args:[Qo],thisArg:i}),new Ut(n,this.__chain__)}return this.thru(Qo)}function nw(){return Y2(this.__wrapped__,this.__actions__)}var rw=P0(function(t,n,a){Te.call(t,a)?++t[a]:fn(t,a,1)});function iw(t,n,a){var c=ye(t)?a2:Gv;return a&&Ct(t,n,a)&&(n=i),c(t,le(n,3))}function ow(t,n){var a=ye(t)?Un:T2;return a(t,le(n,3))}var aw=is($s),sw=is(ks);function lw(t,n){return dt(N0(t,n),1)}function cw(t,n){return dt(N0(t,n),pe)}function uw(t,n,a){return a=a===i?1:_e(a),dt(N0(t,n),a)}function Is(t,n){var a=ye(t)?Pt:Yn;return a(t,le(n,3))}function Os(t,n){var a=ye(t)?M_:M2;return a(t,le(n,3))}var fw=P0(function(t,n,a){Te.call(t,a)?t[a].push(n):fn(t,a,[n])});function dw(t,n,a,c){t=kt(t)?t:X1(t),a=a&&!c?_e(a):0;var d=t.length;return a<0&&(a=at(d+a,0)),Q0(t)?a<=d&&t.indexOf(n,a)>-1:!!d&&N1(t,n,a)>-1}var hw=xe(function(t,n,a){var c=-1,d=typeof n=="function",p=kt(t)?A(t.length):[];return Yn(t,function(m){p[++c]=d?Tt(n,m,a):mr(m,n,a)}),p}),gw=P0(function(t,n,a){fn(t,a,n)});function N0(t,n){var a=ye(t)?Qe:D2;return a(t,le(n,3))}function pw(t,n,a,c){return t==null?[]:(ye(n)||(n=n==null?[]:[n]),a=c?i:a,ye(a)||(a=a==null?[]:[a]),N2(t,n,a))}var yw=P0(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function mw(t,n,a){var c=ye(t)?ro:u2,d=arguments.length<3;return c(t,le(n,4),a,d,Yn)}function bw(t,n,a){var c=ye(t)?T_:u2,d=arguments.length<3;return c(t,le(n,4),a,d,M2)}function _w(t,n){var a=ye(t)?Un:T2;return a(t,U0(le(n,3)))}function vw(t){var n=ye(t)?$2:dC;return n(t)}function Cw(t,n,a){(a?Ct(t,n,a):n===i)?n=1:n=_e(n);var c=ye(t)?Uv:hC;return c(t,n)}function xw(t){var n=ye(t)?Zv:pC;return n(t)}function ww(t){if(t==null)return 0;if(kt(t))return Q0(t)?W1(t):t.length;var n=mt(t);return n==je||n==ut?t.size:wo(t).length}function Lw(t,n,a){var c=ye(t)?io:yC;return a&&Ct(t,n,a)&&(n=i),c(t,le(n,3))}var $w=xe(function(t,n){if(t==null)return[];var a=n.length;return a>1&&Ct(t,n[0],n[1])?n=[]:a>2&&Ct(n[0],n[1],n[2])&&(n=[n[0]]),N2(t,dt(n,1),[])}),K0=ov||function(){return ft.Date.now()};function kw(t,n){if(typeof n!="function")throw new Wt(u);return t=_e(t),function(){if(--t<1)return n.apply(this,arguments)}}function Bs(t,n,a){return n=a?i:n,n=t&&n==null?t.length:n,Mn(t,O,i,i,i,i,n)}function Es(t,n){var a;if(typeof n!="function")throw new Wt(u);return t=_e(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=i),a}}var Yo=xe(function(t,n,a){var c=S;if(a.length){var d=Qn(a,V1(Yo));c|=q}return Mn(t,c,n,a,d)}),Ds=xe(function(t,n,a){var c=S|D;if(a.length){var d=Qn(a,V1(Ds));c|=q}return Mn(n,c,t,a,d)});function Rs(t,n,a){n=a?i:n;var c=Mn(t,P,i,i,i,i,i,n);return c.placeholder=Rs.placeholder,c}function Fs(t,n,a){n=a?i:n;var c=Mn(t,z,i,i,i,i,i,n);return c.placeholder=Fs.placeholder,c}function zs(t,n,a){var c,d,p,m,v,L,B=0,E=!1,R=!1,j=!0;if(typeof t!="function")throw new Wt(u);n=Yt(n)||0,Ye(a)&&(E=!!a.leading,R="maxWait"in a,p=R?at(Yt(a.maxWait)||0,n):p,j="trailing"in a?!!a.trailing:j);function ee(qe){var an=c,Bn=d;return c=d=i,B=qe,m=t.apply(Bn,an),m}function ue(qe){return B=qe,v=xr($e,n),E?ee(qe):m}function Ce(qe){var an=qe-L,Bn=qe-B,o6=n-an;return R?yt(o6,p-Bn):o6}function se(qe){var an=qe-L,Bn=qe-B;return L===i||an>=n||an<0||R&&Bn>=p}function $e(){var qe=K0();if(se(qe))return Ae(qe);v=xr($e,Ce(qe))}function Ae(qe){return v=i,j&&c?ee(qe):(c=d=i,m)}function Et(){v!==i&&H2(v),B=0,c=L=d=v=i}function xt(){return v===i?m:Ae(K0())}function Dt(){var qe=K0(),an=se(qe);if(c=arguments,d=this,L=qe,an){if(v===i)return ue(L);if(R)return H2(v),v=xr($e,n),ee(L)}return v===i&&(v=xr($e,n)),m}return Dt.cancel=Et,Dt.flush=xt,Dt}var Sw=xe(function(t,n){return A2(t,1,n)}),Aw=xe(function(t,n,a){return A2(t,Yt(n)||0,a)});function Mw(t){return Mn(t,Q)}function W0(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new Wt(u);var a=function(){var c=arguments,d=n?n.apply(this,c):c[0],p=a.cache;if(p.has(d))return p.get(d);var m=t.apply(this,c);return a.cache=p.set(d,m)||p,m};return a.cache=new(W0.Cache||An),a}W0.Cache=An;function U0(t){if(typeof t!="function")throw new Wt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Tw(t){return Es(2,t)}var Pw=mC(function(t,n){n=n.length==1&&ye(n[0])?Qe(n[0],It(le())):Qe(dt(n,1),It(le()));var a=n.length;return xe(function(c){for(var d=-1,p=yt(c.length,a);++d<p;)c[d]=n[d].call(this,c[d]);return Tt(t,this,c)})}),Go=xe(function(t,n){var a=Qn(n,V1(Go));return Mn(t,q,i,n,a)}),Ns=xe(function(t,n){var a=Qn(n,V1(Ns));return Mn(t,Z,i,n,a)}),Iw=Tn(function(t,n){return Mn(t,W,i,i,i,n)});function Ow(t,n){if(typeof t!="function")throw new Wt(u);return n=n===i?n:_e(n),xe(t,n)}function Bw(t,n){if(typeof t!="function")throw new Wt(u);return n=n==null?0:at(_e(n),0),xe(function(a){var c=a[n],d=Vn(a,0,n);return c&&Zn(d,c),Tt(t,this,d)})}function Ew(t,n,a){var c=!0,d=!0;if(typeof t!="function")throw new Wt(u);return Ye(a)&&(c="leading"in a?!!a.leading:c,d="trailing"in a?!!a.trailing:d),zs(t,n,{leading:c,maxWait:n,trailing:d})}function Dw(t){return Bs(t,1)}function Rw(t,n){return Go(Io(n),t)}function Fw(){if(!arguments.length)return[];var t=arguments[0];return ye(t)?t:[t]}function zw(t){return Zt(t,x)}function Nw(t,n){return n=typeof n=="function"?n:i,Zt(t,x,n)}function Kw(t){return Zt(t,$|x)}function Ww(t,n){return n=typeof n=="function"?n:i,Zt(t,$|x,n)}function Uw(t,n){return n==null||S2(t,n,st(n))}function on(t,n){return t===n||t!==t&&n!==n}var Zw=E0(vo),Qw=E0(function(t,n){return t>=n}),d1=O2(function(){return arguments}())?O2:function(t){return He(t)&&Te.call(t,"callee")&&!_2.call(t,"callee")},ye=A.isArray,jw=e2?It(e2):eC;function kt(t){return t!=null&&Z0(t.length)&&!In(t)}function Ve(t){return He(t)&&kt(t)}function Yw(t){return t===!0||t===!1||He(t)&&vt(t)==ve}var qn=sv||aa,Gw=t2?It(t2):tC;function Hw(t){return He(t)&&t.nodeType===1&&!wr(t)}function Vw(t){if(t==null)return!0;if(kt(t)&&(ye(t)||typeof t=="string"||typeof t.splice=="function"||qn(t)||q1(t)||d1(t)))return!t.length;var n=mt(t);if(n==je||n==ut)return!t.size;if(Cr(t))return!wo(t).length;for(var a in t)if(Te.call(t,a))return!1;return!0}function qw(t,n){return br(t,n)}function Xw(t,n,a){a=typeof a=="function"?a:i;var c=a?a(t,n):i;return c===i?br(t,n,i,a):!!c}function Ho(t){if(!He(t))return!1;var n=vt(t);return n==wn||n==zn||typeof t.message=="string"&&typeof t.name=="string"&&!wr(t)}function Jw(t){return typeof t=="number"&&C2(t)}function In(t){if(!Ye(t))return!1;var n=vt(t);return n==Ln||n==Nn||n==ze||n==$n}function Ks(t){return typeof t=="number"&&t==_e(t)}function Z0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fe}function Ye(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function He(t){return t!=null&&typeof t=="object"}var Ws=n2?It(n2):rC;function eL(t,n){return t===n||xo(t,n,zo(n))}function tL(t,n,a){return a=typeof a=="function"?a:i,xo(t,n,zo(n),a)}function nL(t){return Us(t)&&t!=+t}function rL(t){if(NC(t))throw new fe(l);return B2(t)}function iL(t){return t===null}function oL(t){return t==null}function Us(t){return typeof t=="number"||He(t)&&vt(t)==Ne}function wr(t){if(!He(t)||vt(t)!=rt)return!1;var n=m0(t);if(n===null)return!0;var a=Te.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&h0.call(a)==tv}var Vo=r2?It(r2):iC;function aL(t){return Ks(t)&&t>=-Fe&&t<=Fe}var Zs=i2?It(i2):oC;function Q0(t){return typeof t=="string"||!ye(t)&&He(t)&&vt(t)==kn}function Bt(t){return typeof t=="symbol"||He(t)&&vt(t)==O1}var q1=o2?It(o2):aC;function sL(t){return t===i}function lL(t){return He(t)&&mt(t)==Kn}function cL(t){return He(t)&&vt(t)==ar}var uL=E0(Lo),fL=E0(function(t,n){return t<=n});function Qs(t){if(!t)return[];if(kt(t))return Q0(t)?tn(t):$t(t);if(ur&&t[ur])return U_(t[ur]());var n=mt(t),a=n==je?uo:n==ut?u0:X1;return a(t)}function On(t){if(!t)return t===0?t:0;if(t=Yt(t),t===pe||t===-pe){var n=t<0?-1:1;return n*Le}return t===t?t:0}function _e(t){var n=On(t),a=n%1;return n===n?a?n-a:n:0}function js(t){return t?l1(_e(t),0,Ee):0}function Yt(t){if(typeof t=="number")return t;if(Bt(t))return Ge;if(Ye(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Ye(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=f2(t);var a=jb.test(t);return a||Gb.test(t)?k_(t.slice(2),a?2:8):Qb.test(t)?Ge:+t}function Ys(t){return hn(t,St(t))}function dL(t){return t?l1(_e(t),-Fe,Fe):t===0?t:0}function Pe(t){return t==null?"":Ot(t)}var hL=G1(function(t,n){if(Cr(n)||kt(n)){hn(n,st(n),t);return}for(var a in n)Te.call(n,a)&&pr(t,a,n[a])}),Gs=G1(function(t,n){hn(n,St(n),t)}),Hs=G1(function(t,n,a,c){hn(n,St(n),t,c)}),qo=G1(function(t,n,a,c){hn(n,st(n),t,c)}),gL=Tn(mo);function pL(t,n){var a=Y1(t);return n==null?a:k2(a,n)}var yL=xe(function(t,n){t=De(t);var a=-1,c=n.length,d=c>2?n[2]:i;for(d&&Ct(n[0],n[1],d)&&(c=1);++a<c;)for(var p=n[a],m=St(p),v=-1,L=m.length;++v<L;){var B=m[v],E=t[B];(E===i||on(E,Z1[B])&&!Te.call(t,B))&&(t[B]=p[B])}return t}),mL=xe(function(t){return t.push(i,fs),Tt(Vs,i,t)});function bL(t,n){return s2(t,le(n,3),dn)}function _L(t,n){return s2(t,le(n,3),_o)}function vL(t,n){return t==null?t:bo(t,le(n,3),St)}function CL(t,n){return t==null?t:P2(t,le(n,3),St)}function xL(t,n){return t&&dn(t,le(n,3))}function wL(t,n){return t&&_o(t,le(n,3))}function LL(t){return t==null?[]:S0(t,st(t))}function $L(t){return t==null?[]:S0(t,St(t))}function Xo(t,n,a){var c=t==null?i:c1(t,n);return c===i?a:c}function kL(t,n){return t!=null&&gs(t,n,Vv)}function Jo(t,n){return t!=null&&gs(t,n,qv)}var SL=as(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=g0.call(n)),t[n]=a},ta(At)),AL=as(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=g0.call(n)),Te.call(t,n)?t[n].push(a):t[n]=[a]},le),ML=xe(mr);function st(t){return kt(t)?L2(t):wo(t)}function St(t){return kt(t)?L2(t,!0):sC(t)}function TL(t,n){var a={};return n=le(n,3),dn(t,function(c,d,p){fn(a,n(c,d,p),c)}),a}function PL(t,n){var a={};return n=le(n,3),dn(t,function(c,d,p){fn(a,d,n(c,d,p))}),a}var IL=G1(function(t,n,a){A0(t,n,a)}),Vs=G1(function(t,n,a,c){A0(t,n,a,c)}),OL=Tn(function(t,n){var a={};if(t==null)return a;var c=!1;n=Qe(n,function(p){return p=Hn(p,t),c||(c=p.length>1),p}),hn(t,Ro(t),a),c&&(a=Zt(a,$|M|x,AC));for(var d=n.length;d--;)Mo(a,n[d]);return a});function BL(t,n){return qs(t,U0(le(n)))}var EL=Tn(function(t,n){return t==null?{}:cC(t,n)});function qs(t,n){if(t==null)return{};var a=Qe(Ro(t),function(c){return[c]});return n=le(n),K2(t,a,function(c,d){return n(c,d[0])})}function DL(t,n,a){n=Hn(n,t);var c=-1,d=n.length;for(d||(d=1,t=i);++c<d;){var p=t==null?i:t[rn(n[c])];p===i&&(c=d,p=a),t=In(p)?p.call(t):p}return t}function RL(t,n,a){return t==null?t:_r(t,n,a)}function FL(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:_r(t,n,a,c)}var Xs=cs(st),Js=cs(St);function zL(t,n,a){var c=ye(t),d=c||qn(t)||q1(t);if(n=le(n,4),a==null){var p=t&&t.constructor;d?a=c?new p:[]:Ye(t)?a=In(p)?Y1(m0(t)):{}:a={}}return(d?Pt:dn)(t,function(m,v,L){return n(a,m,v,L)}),a}function NL(t,n){return t==null?!0:Mo(t,n)}function KL(t,n,a){return t==null?t:j2(t,n,Io(a))}function WL(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:j2(t,n,Io(a),c)}function X1(t){return t==null?[]:co(t,st(t))}function UL(t){return t==null?[]:co(t,St(t))}function ZL(t,n,a){return a===i&&(a=n,n=i),a!==i&&(a=Yt(a),a=a===a?a:0),n!==i&&(n=Yt(n),n=n===n?n:0),l1(Yt(t),n,a)}function QL(t,n,a){return n=On(n),a===i?(a=n,n=0):a=On(a),t=Yt(t),Xv(t,n,a)}function jL(t,n,a){if(a&&typeof a!="boolean"&&Ct(t,n,a)&&(n=a=i),a===i&&(typeof n=="boolean"?(a=n,n=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&n===i?(t=0,n=1):(t=On(t),n===i?(n=t,t=0):n=On(n)),t>n){var c=t;t=n,n=c}if(a||t%1||n%1){var d=x2();return yt(t+d*(n-t+$_("1e-"+((d+"").length-1))),n)}return ko(t,n)}var YL=H1(function(t,n,a){return n=n.toLowerCase(),t+(a?e6(n):n)});function e6(t){return ea(Pe(t).toLowerCase())}function t6(t){return t=Pe(t),t&&t.replace(Vb,F_).replace(p_,"")}function GL(t,n,a){t=Pe(t),n=Ot(n);var c=t.length;a=a===i?c:l1(_e(a),0,c);var d=a;return a-=n.length,a>=0&&t.slice(a,d)==n}function HL(t){return t=Pe(t),t&&Pb.test(t)?t.replace(T5,z_):t}function VL(t){return t=Pe(t),t&&Rb.test(t)?t.replace(Yi,"\\$&"):t}var qL=H1(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),XL=H1(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),JL=rs("toLowerCase");function e$(t,n,a){t=Pe(t),n=_e(n);var c=n?W1(t):0;if(!n||c>=n)return t;var d=(n-c)/2;return B0(C0(d),a)+t+B0(v0(d),a)}function t$(t,n,a){t=Pe(t),n=_e(n);var c=n?W1(t):0;return n&&c<n?t+B0(n-c,a):t}function n$(t,n,a){t=Pe(t),n=_e(n);var c=n?W1(t):0;return n&&c<n?B0(n-c,a)+t:t}function r$(t,n,a){return a||n==null?n=0:n&&(n=+n),fv(Pe(t).replace(Gi,""),n||0)}function i$(t,n,a){return(a?Ct(t,n,a):n===i)?n=1:n=_e(n),So(Pe(t),n)}function o$(){var t=arguments,n=Pe(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var a$=H1(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function s$(t,n,a){return a&&typeof a!="number"&&Ct(t,n,a)&&(n=a=i),a=a===i?Ee:a>>>0,a?(t=Pe(t),t&&(typeof n=="string"||n!=null&&!Vo(n))&&(n=Ot(n),!n&&K1(t))?Vn(tn(t),0,a):t.split(n,a)):[]}var l$=H1(function(t,n,a){return t+(a?" ":"")+ea(n)});function c$(t,n,a){return t=Pe(t),a=a==null?0:l1(_e(a),0,t.length),n=Ot(n),t.slice(a,a+n.length)==n}function u$(t,n,a){var c=h.templateSettings;a&&Ct(t,n,a)&&(n=i),t=Pe(t),n=qo({},n,c,us);var d=qo({},n.imports,c.imports,us),p=st(d),m=co(d,p);Pt(p,function(se){if(I5.test(se))throw new fe(g)});var v,L,B=0,E=n.interpolate||o0,R="__p += '",j=fo((n.escape||o0).source+"|"+E.source+"|"+(E===P5?Zb:o0).source+"|"+(n.evaluate||o0).source+"|$","g"),ee="//# sourceURL="+(Te.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++v_+"]")+`
|
|
11
|
-
`;t.replace(j,function(se,$e,Ae,Et,xt,Dt){return Ae||(Ae=Et),R+=t.slice(B,Dt).replace(
|
|
10
|
+
`)}function zC(t){return ye(t)||d1(t)||!!(C2&&t&&t[C2])}function Pn(t,n){var a=typeof t;return n=n??Fe,!!n&&(a=="number"||a!="symbol"&&qb.test(t))&&t>-1&&t%1==0&&t<n}function Ct(t,n,a){if(!Ye(a))return!1;var c=typeof n;return(c=="number"?kt(a)&&Pn(n,a.length):c=="string"&&n in a)?on(a[n],t):!1}function Ko(t,n){if(ye(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Bt(t)?!0:Rb.test(t)||!Db.test(t)||n!=null&&t in De(n)}function NC(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Wo(t){var n=D0(t),a=h[n];if(typeof a!="function"||!(n in ke.prototype))return!1;if(t===a)return!0;var c=Fo(a);return!!c&&t===c[0]}function KC(t){return!!m2&&m2 in t}var WC=d0?In:aa;function Cr(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||Z1;return t===a}function ms(t){return t===t&&!Ye(t)}function bs(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==i||t in De(a))}}function UC(t){var n=W0(t,function(c){return a.size===C&&a.clear(),c}),a=n.cache;return n}function ZC(t,n){var a=t[1],c=n[1],d=a|c,p=d<(S|D|O),m=c==O&&a==P||c==O&&a==W&&t[7].length<=n[8]||c==(O|W)&&n[7].length<=n[8]&&a==P;if(!(p||m))return t;c&S&&(t[2]=n[2],d|=a&S?0:F);var v=n[3];if(v){var L=t[3];t[3]=L?es(L,v,n[4]):v,t[4]=L?Qn(t[3],_):n[4]}return v=n[5],v&&(L=t[5],t[5]=L?ts(L,v,n[6]):v,t[6]=L?Qn(t[5],_):n[6]),v=n[7],v&&(t[7]=v),c&O&&(t[8]=t[8]==null?n[8]:yt(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=d,t}function QC(t){var n=[];if(t!=null)for(var a in De(t))n.push(a);return n}function jC(t){return g0.call(t)}function _s(t,n,a){return n=at(n===i?t.length-1:n,0),function(){for(var c=arguments,d=-1,p=at(c.length-n,0),m=A(p);++d<p;)m[d]=c[n+d];d=-1;for(var v=A(n+1);++d<n;)v[d]=c[d];return v[n]=a(m),Tt(t,this,v)}}function vs(t,n){return n.length<2?t:c1(t,Qt(n,0,-1))}function YC(t,n){for(var a=t.length,c=yt(n.length,a),d=$t(t);c--;){var p=n[c];t[c]=Pn(p,a)?d[p]:i}return t}function Uo(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var Cs=ws(Z2),xr=lv||function(t,n){return ft.setTimeout(t,n)},Zo=ws(yC);function xs(t,n,a){var c=n+"";return Zo(t,FC(c,GC(EC(c),a)))}function ws(t){var n=0,a=0;return function(){var c=dv(),d=N-(c-a);if(a=c,d>0){if(++n>=J)return arguments[0]}else n=0;return t.apply(i,arguments)}}function F0(t,n){var a=-1,c=t.length,d=c-1;for(n=n===i?c:n;++a<n;){var p=ko(a,d),m=t[p];t[p]=t[a],t[a]=m}return t.length=n,t}var Ls=UC(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Fb,function(a,c,d,p){n.push(d?p.replace(Qb,"$1"):c||a)}),n});function rn(t){if(typeof t=="string"||Bt(t))return t;var n=t+"";return n=="0"&&1/t==-pe?"-0":n}function f1(t){if(t!=null){try{return h0.call(t)}catch{}try{return t+""}catch{}}return""}function GC(t,n){return Pt(te,function(a){var c="_."+a[0];n&a[1]&&!l0(t,c)&&t.push(c)}),t.sort()}function $s(t){if(t instanceof ke)return t.clone();var n=new Ut(t.__wrapped__,t.__chain__);return n.__actions__=$t(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function HC(t,n,a){(a?Ct(t,n,a):n===i)?n=1:n=at(_e(n),0);var c=t==null?0:t.length;if(!c||n<1)return[];for(var d=0,p=0,m=A(v0(c/n));d<c;)m[p++]=Qt(t,d,d+=n);return m}function VC(t){for(var n=-1,a=t==null?0:t.length,c=0,d=[];++n<a;){var p=t[n];p&&(d[c++]=p)}return d}function qC(){var t=arguments.length;if(!t)return[];for(var n=A(t-1),a=arguments[0],c=t;c--;)n[c-1]=arguments[c];return Zn(ye(a)?$t(a):[a],dt(n,1))}var XC=xe(function(t,n){return Ve(t)?yr(t,dt(n,1,Ve,!0)):[]}),JC=xe(function(t,n){var a=jt(n);return Ve(a)&&(a=i),Ve(t)?yr(t,dt(n,1,Ve,!0),le(a,2)):[]}),ex=xe(function(t,n){var a=jt(n);return Ve(a)&&(a=i),Ve(t)?yr(t,dt(n,1,Ve,!0),i,a):[]});function tx(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:_e(n),Qt(t,n<0?0:n,c)):[]}function nx(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:_e(n),n=c-n,Qt(t,0,n<0?0:n)):[]}function rx(t,n){return t&&t.length?T0(t,le(n,3),!0,!0):[]}function ix(t,n){return t&&t.length?T0(t,le(n,3),!0):[]}function ox(t,n,a,c){var d=t==null?0:t.length;return d?(a&&typeof a!="number"&&Ct(t,n,a)&&(a=0,c=d),qv(t,n,a,c)):[]}function ks(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:_e(a);return d<0&&(d=at(c+d,0)),c0(t,le(n,3),d)}function Ss(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c-1;return a!==i&&(d=_e(a),d=a<0?at(c+d,0):yt(d,c-1)),c0(t,le(n,3),d,!0)}function As(t){var n=t==null?0:t.length;return n?dt(t,1):[]}function ax(t){var n=t==null?0:t.length;return n?dt(t,pe):[]}function sx(t,n){var a=t==null?0:t.length;return a?(n=n===i?1:_e(n),dt(t,n)):[]}function lx(t){for(var n=-1,a=t==null?0:t.length,c={};++n<a;){var d=t[n];fn(c,d[0],d[1])}return c}function Ms(t){return t&&t.length?t[0]:i}function cx(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:_e(a);return d<0&&(d=at(c+d,0)),N1(t,n,d)}function ux(t){var n=t==null?0:t.length;return n?Qt(t,0,-1):[]}var fx=xe(function(t){var n=Qe(t,Po);return n.length&&n[0]===t[0]?Co(n):[]}),dx=xe(function(t){var n=jt(t),a=Qe(t,Po);return n===jt(a)?n=i:a.pop(),a.length&&a[0]===t[0]?Co(a,le(n,2)):[]}),hx=xe(function(t){var n=jt(t),a=Qe(t,Po);return n=typeof n=="function"?n:i,n&&a.pop(),a.length&&a[0]===t[0]?Co(a,i,n):[]});function gx(t,n){return t==null?"":uv.call(t,n)}function jt(t){var n=t==null?0:t.length;return n?t[n-1]:i}function px(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c;return a!==i&&(d=_e(a),d=d<0?at(c+d,0):yt(d,c-1)),n===n?G_(t,n,d):c0(t,c2,d,!0)}function yx(t,n){return t&&t.length?N2(t,_e(n)):i}var mx=xe(Ts);function Ts(t,n){return t&&t.length&&n&&n.length?$o(t,n):t}function bx(t,n,a){return t&&t.length&&n&&n.length?$o(t,n,le(a,2)):t}function _x(t,n,a){return t&&t.length&&n&&n.length?$o(t,n,i,a):t}var vx=Tn(function(t,n){var a=t==null?0:t.length,c=mo(t,n);return U2(t,Qe(n,function(d){return Pn(d,a)?+d:d}).sort(J2)),c});function Cx(t,n){var a=[];if(!(t&&t.length))return a;var c=-1,d=[],p=t.length;for(n=le(n,3);++c<p;){var m=t[c];n(m,c,t)&&(a.push(m),d.push(c))}return U2(t,d),a}function Qo(t){return t==null?t:gv.call(t)}function xx(t,n,a){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&Ct(t,n,a)?(n=0,a=c):(n=n==null?0:_e(n),a=a===i?c:_e(a)),Qt(t,n,a)):[]}function wx(t,n){return M0(t,n)}function Lx(t,n,a){return Ao(t,n,le(a,2))}function $x(t,n){var a=t==null?0:t.length;if(a){var c=M0(t,n);if(c<a&&on(t[c],n))return c}return-1}function kx(t,n){return M0(t,n,!0)}function Sx(t,n,a){return Ao(t,n,le(a,2),!0)}function Ax(t,n){var a=t==null?0:t.length;if(a){var c=M0(t,n,!0)-1;if(on(t[c],n))return c}return-1}function Mx(t){return t&&t.length?Q2(t):[]}function Tx(t,n){return t&&t.length?Q2(t,le(n,2)):[]}function Px(t){var n=t==null?0:t.length;return n?Qt(t,1,n):[]}function Ix(t,n,a){return t&&t.length?(n=a||n===i?1:_e(n),Qt(t,0,n<0?0:n)):[]}function Ox(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:_e(n),n=c-n,Qt(t,n<0?0:n,c)):[]}function Bx(t,n){return t&&t.length?T0(t,le(n,3),!1,!0):[]}function Ex(t,n){return t&&t.length?T0(t,le(n,3)):[]}var Dx=xe(function(t){return Gn(dt(t,1,Ve,!0))}),Rx=xe(function(t){var n=jt(t);return Ve(n)&&(n=i),Gn(dt(t,1,Ve,!0),le(n,2))}),Fx=xe(function(t){var n=jt(t);return n=typeof n=="function"?n:i,Gn(dt(t,1,Ve,!0),i,n)});function zx(t){return t&&t.length?Gn(t):[]}function Nx(t,n){return t&&t.length?Gn(t,le(n,2)):[]}function Kx(t,n){return n=typeof n=="function"?n:i,t&&t.length?Gn(t,i,n):[]}function jo(t){if(!(t&&t.length))return[];var n=0;return t=Un(t,function(a){if(Ve(a))return n=at(a.length,n),!0}),lo(n,function(a){return Qe(t,oo(a))})}function Ps(t,n){if(!(t&&t.length))return[];var a=jo(t);return n==null?a:Qe(a,function(c){return Tt(n,i,c)})}var Wx=xe(function(t,n){return Ve(t)?yr(t,n):[]}),Ux=xe(function(t){return To(Un(t,Ve))}),Zx=xe(function(t){var n=jt(t);return Ve(n)&&(n=i),To(Un(t,Ve),le(n,2))}),Qx=xe(function(t){var n=jt(t);return n=typeof n=="function"?n:i,To(Un(t,Ve),i,n)}),jx=xe(jo);function Yx(t,n){return H2(t||[],n||[],pr)}function Gx(t,n){return H2(t||[],n||[],_r)}var Hx=xe(function(t){var n=t.length,a=n>1?t[n-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Ps(t,a)});function Is(t){var n=h(t);return n.__chain__=!0,n}function Vx(t,n){return n(t),t}function z0(t,n){return n(t)}var qx=Tn(function(t){var n=t.length,a=n?t[0]:0,c=this.__wrapped__,d=function(p){return mo(p,t)};return n>1||this.__actions__.length||!(c instanceof ke)||!Pn(a)?this.thru(d):(c=c.slice(a,+a+(n?1:0)),c.__actions__.push({func:z0,args:[d],thisArg:i}),new Ut(c,this.__chain__).thru(function(p){return n&&!p.length&&p.push(i),p}))});function Xx(){return Is(this)}function Jx(){return new Ut(this.value(),this.__chain__)}function ew(){this.__values__===i&&(this.__values__=js(this.value()));var t=this.__index__>=this.__values__.length,n=t?i:this.__values__[this.__index__++];return{done:t,value:n}}function tw(){return this}function nw(t){for(var n,a=this;a instanceof L0;){var c=$s(a);c.__index__=0,c.__values__=i,n?d.__wrapped__=c:n=c;var d=c;a=a.__wrapped__}return d.__wrapped__=t,n}function rw(){var t=this.__wrapped__;if(t instanceof ke){var n=t;return this.__actions__.length&&(n=new ke(this)),n=n.reverse(),n.__actions__.push({func:z0,args:[Qo],thisArg:i}),new Ut(n,this.__chain__)}return this.thru(Qo)}function iw(){return G2(this.__wrapped__,this.__actions__)}var ow=P0(function(t,n,a){Te.call(t,a)?++t[a]:fn(t,a,1)});function aw(t,n,a){var c=ye(t)?s2:Vv;return a&&Ct(t,n,a)&&(n=i),c(t,le(n,3))}function sw(t,n){var a=ye(t)?Un:P2;return a(t,le(n,3))}var lw=os(ks),cw=os(Ss);function uw(t,n){return dt(N0(t,n),1)}function fw(t,n){return dt(N0(t,n),pe)}function dw(t,n,a){return a=a===i?1:_e(a),dt(N0(t,n),a)}function Os(t,n){var a=ye(t)?Pt:Yn;return a(t,le(n,3))}function Bs(t,n){var a=ye(t)?P_:T2;return a(t,le(n,3))}var hw=P0(function(t,n,a){Te.call(t,a)?t[a].push(n):fn(t,a,[n])});function gw(t,n,a,c){t=kt(t)?t:X1(t),a=a&&!c?_e(a):0;var d=t.length;return a<0&&(a=at(d+a,0)),Q0(t)?a<=d&&t.indexOf(n,a)>-1:!!d&&N1(t,n,a)>-1}var pw=xe(function(t,n,a){var c=-1,d=typeof n=="function",p=kt(t)?A(t.length):[];return Yn(t,function(m){p[++c]=d?Tt(n,m,a):mr(m,n,a)}),p}),yw=P0(function(t,n,a){fn(t,a,n)});function N0(t,n){var a=ye(t)?Qe:R2;return a(t,le(n,3))}function mw(t,n,a,c){return t==null?[]:(ye(n)||(n=n==null?[]:[n]),a=c?i:a,ye(a)||(a=a==null?[]:[a]),K2(t,n,a))}var bw=P0(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function _w(t,n,a){var c=ye(t)?ro:f2,d=arguments.length<3;return c(t,le(n,4),a,d,Yn)}function vw(t,n,a){var c=ye(t)?I_:f2,d=arguments.length<3;return c(t,le(n,4),a,d,T2)}function Cw(t,n){var a=ye(t)?Un:P2;return a(t,U0(le(n,3)))}function xw(t){var n=ye(t)?k2:gC;return n(t)}function ww(t,n,a){(a?Ct(t,n,a):n===i)?n=1:n=_e(n);var c=ye(t)?Qv:pC;return c(t,n)}function Lw(t){var n=ye(t)?jv:mC;return n(t)}function $w(t){if(t==null)return 0;if(kt(t))return Q0(t)?W1(t):t.length;var n=mt(t);return n==je||n==ut?t.size:wo(t).length}function kw(t,n,a){var c=ye(t)?io:bC;return a&&Ct(t,n,a)&&(n=i),c(t,le(n,3))}var Sw=xe(function(t,n){if(t==null)return[];var a=n.length;return a>1&&Ct(t,n[0],n[1])?n=[]:a>2&&Ct(n[0],n[1],n[2])&&(n=[n[0]]),K2(t,dt(n,1),[])}),K0=sv||function(){return ft.Date.now()};function Aw(t,n){if(typeof n!="function")throw new Wt(u);return t=_e(t),function(){if(--t<1)return n.apply(this,arguments)}}function Es(t,n,a){return n=a?i:n,n=t&&n==null?t.length:n,Mn(t,O,i,i,i,i,n)}function Ds(t,n){var a;if(typeof n!="function")throw new Wt(u);return t=_e(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=i),a}}var Yo=xe(function(t,n,a){var c=S;if(a.length){var d=Qn(a,V1(Yo));c|=q}return Mn(t,c,n,a,d)}),Rs=xe(function(t,n,a){var c=S|D;if(a.length){var d=Qn(a,V1(Rs));c|=q}return Mn(n,c,t,a,d)});function Fs(t,n,a){n=a?i:n;var c=Mn(t,P,i,i,i,i,i,n);return c.placeholder=Fs.placeholder,c}function zs(t,n,a){n=a?i:n;var c=Mn(t,z,i,i,i,i,i,n);return c.placeholder=zs.placeholder,c}function Ns(t,n,a){var c,d,p,m,v,L,B=0,E=!1,R=!1,j=!0;if(typeof t!="function")throw new Wt(u);n=Yt(n)||0,Ye(a)&&(E=!!a.leading,R="maxWait"in a,p=R?at(Yt(a.maxWait)||0,n):p,j="trailing"in a?!!a.trailing:j);function ee(qe){var an=c,Bn=d;return c=d=i,B=qe,m=t.apply(Bn,an),m}function ue(qe){return B=qe,v=xr($e,n),E?ee(qe):m}function Ce(qe){var an=qe-L,Bn=qe-B,a6=n-an;return R?yt(a6,p-Bn):a6}function se(qe){var an=qe-L,Bn=qe-B;return L===i||an>=n||an<0||R&&Bn>=p}function $e(){var qe=K0();if(se(qe))return Ae(qe);v=xr($e,Ce(qe))}function Ae(qe){return v=i,j&&c?ee(qe):(c=d=i,m)}function Et(){v!==i&&V2(v),B=0,c=L=d=v=i}function xt(){return v===i?m:Ae(K0())}function Dt(){var qe=K0(),an=se(qe);if(c=arguments,d=this,L=qe,an){if(v===i)return ue(L);if(R)return V2(v),v=xr($e,n),ee(L)}return v===i&&(v=xr($e,n)),m}return Dt.cancel=Et,Dt.flush=xt,Dt}var Mw=xe(function(t,n){return M2(t,1,n)}),Tw=xe(function(t,n,a){return M2(t,Yt(n)||0,a)});function Pw(t){return Mn(t,Q)}function W0(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new Wt(u);var a=function(){var c=arguments,d=n?n.apply(this,c):c[0],p=a.cache;if(p.has(d))return p.get(d);var m=t.apply(this,c);return a.cache=p.set(d,m)||p,m};return a.cache=new(W0.Cache||An),a}W0.Cache=An;function U0(t){if(typeof t!="function")throw new Wt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Iw(t){return Ds(2,t)}var Ow=_C(function(t,n){n=n.length==1&&ye(n[0])?Qe(n[0],It(le())):Qe(dt(n,1),It(le()));var a=n.length;return xe(function(c){for(var d=-1,p=yt(c.length,a);++d<p;)c[d]=n[d].call(this,c[d]);return Tt(t,this,c)})}),Go=xe(function(t,n){var a=Qn(n,V1(Go));return Mn(t,q,i,n,a)}),Ks=xe(function(t,n){var a=Qn(n,V1(Ks));return Mn(t,Z,i,n,a)}),Bw=Tn(function(t,n){return Mn(t,W,i,i,i,n)});function Ew(t,n){if(typeof t!="function")throw new Wt(u);return n=n===i?n:_e(n),xe(t,n)}function Dw(t,n){if(typeof t!="function")throw new Wt(u);return n=n==null?0:at(_e(n),0),xe(function(a){var c=a[n],d=Vn(a,0,n);return c&&Zn(d,c),Tt(t,this,d)})}function Rw(t,n,a){var c=!0,d=!0;if(typeof t!="function")throw new Wt(u);return Ye(a)&&(c="leading"in a?!!a.leading:c,d="trailing"in a?!!a.trailing:d),Ns(t,n,{leading:c,maxWait:n,trailing:d})}function Fw(t){return Es(t,1)}function zw(t,n){return Go(Io(n),t)}function Nw(){if(!arguments.length)return[];var t=arguments[0];return ye(t)?t:[t]}function Kw(t){return Zt(t,x)}function Ww(t,n){return n=typeof n=="function"?n:i,Zt(t,x,n)}function Uw(t){return Zt(t,$|x)}function Zw(t,n){return n=typeof n=="function"?n:i,Zt(t,$|x,n)}function Qw(t,n){return n==null||A2(t,n,st(n))}function on(t,n){return t===n||t!==t&&n!==n}var jw=E0(vo),Yw=E0(function(t,n){return t>=n}),d1=B2(function(){return arguments}())?B2:function(t){return He(t)&&Te.call(t,"callee")&&!v2.call(t,"callee")},ye=A.isArray,Gw=t2?It(t2):nC;function kt(t){return t!=null&&Z0(t.length)&&!In(t)}function Ve(t){return He(t)&&kt(t)}function Hw(t){return t===!0||t===!1||He(t)&&vt(t)==ve}var qn=cv||aa,Vw=n2?It(n2):rC;function qw(t){return He(t)&&t.nodeType===1&&!wr(t)}function Xw(t){if(t==null)return!0;if(kt(t)&&(ye(t)||typeof t=="string"||typeof t.splice=="function"||qn(t)||q1(t)||d1(t)))return!t.length;var n=mt(t);if(n==je||n==ut)return!t.size;if(Cr(t))return!wo(t).length;for(var a in t)if(Te.call(t,a))return!1;return!0}function Jw(t,n){return br(t,n)}function eL(t,n,a){a=typeof a=="function"?a:i;var c=a?a(t,n):i;return c===i?br(t,n,i,a):!!c}function Ho(t){if(!He(t))return!1;var n=vt(t);return n==wn||n==zn||typeof t.message=="string"&&typeof t.name=="string"&&!wr(t)}function tL(t){return typeof t=="number"&&x2(t)}function In(t){if(!Ye(t))return!1;var n=vt(t);return n==Ln||n==Nn||n==ze||n==$n}function Ws(t){return typeof t=="number"&&t==_e(t)}function Z0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fe}function Ye(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function He(t){return t!=null&&typeof t=="object"}var Us=r2?It(r2):oC;function nL(t,n){return t===n||xo(t,n,zo(n))}function rL(t,n,a){return a=typeof a=="function"?a:i,xo(t,n,zo(n),a)}function iL(t){return Zs(t)&&t!=+t}function oL(t){if(WC(t))throw new fe(l);return E2(t)}function aL(t){return t===null}function sL(t){return t==null}function Zs(t){return typeof t=="number"||He(t)&&vt(t)==Ne}function wr(t){if(!He(t)||vt(t)!=rt)return!1;var n=m0(t);if(n===null)return!0;var a=Te.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&h0.call(a)==rv}var Vo=i2?It(i2):aC;function lL(t){return Ws(t)&&t>=-Fe&&t<=Fe}var Qs=o2?It(o2):sC;function Q0(t){return typeof t=="string"||!ye(t)&&He(t)&&vt(t)==kn}function Bt(t){return typeof t=="symbol"||He(t)&&vt(t)==O1}var q1=a2?It(a2):lC;function cL(t){return t===i}function uL(t){return He(t)&&mt(t)==Kn}function fL(t){return He(t)&&vt(t)==ar}var dL=E0(Lo),hL=E0(function(t,n){return t<=n});function js(t){if(!t)return[];if(kt(t))return Q0(t)?tn(t):$t(t);if(ur&&t[ur])return Q_(t[ur]());var n=mt(t),a=n==je?uo:n==ut?u0:X1;return a(t)}function On(t){if(!t)return t===0?t:0;if(t=Yt(t),t===pe||t===-pe){var n=t<0?-1:1;return n*Le}return t===t?t:0}function _e(t){var n=On(t),a=n%1;return n===n?a?n-a:n:0}function Ys(t){return t?l1(_e(t),0,Ee):0}function Yt(t){if(typeof t=="number")return t;if(Bt(t))return Ge;if(Ye(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Ye(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=d2(t);var a=Gb.test(t);return a||Vb.test(t)?A_(t.slice(2),a?2:8):Yb.test(t)?Ge:+t}function Gs(t){return hn(t,St(t))}function gL(t){return t?l1(_e(t),-Fe,Fe):t===0?t:0}function Pe(t){return t==null?"":Ot(t)}var pL=G1(function(t,n){if(Cr(n)||kt(n)){hn(n,st(n),t);return}for(var a in n)Te.call(n,a)&&pr(t,a,n[a])}),Hs=G1(function(t,n){hn(n,St(n),t)}),Vs=G1(function(t,n,a,c){hn(n,St(n),t,c)}),qo=G1(function(t,n,a,c){hn(n,st(n),t,c)}),yL=Tn(mo);function mL(t,n){var a=Y1(t);return n==null?a:S2(a,n)}var bL=xe(function(t,n){t=De(t);var a=-1,c=n.length,d=c>2?n[2]:i;for(d&&Ct(n[0],n[1],d)&&(c=1);++a<c;)for(var p=n[a],m=St(p),v=-1,L=m.length;++v<L;){var B=m[v],E=t[B];(E===i||on(E,Z1[B])&&!Te.call(t,B))&&(t[B]=p[B])}return t}),_L=xe(function(t){return t.push(i,ds),Tt(qs,i,t)});function vL(t,n){return l2(t,le(n,3),dn)}function CL(t,n){return l2(t,le(n,3),_o)}function xL(t,n){return t==null?t:bo(t,le(n,3),St)}function wL(t,n){return t==null?t:I2(t,le(n,3),St)}function LL(t,n){return t&&dn(t,le(n,3))}function $L(t,n){return t&&_o(t,le(n,3))}function kL(t){return t==null?[]:S0(t,st(t))}function SL(t){return t==null?[]:S0(t,St(t))}function Xo(t,n,a){var c=t==null?i:c1(t,n);return c===i?a:c}function AL(t,n){return t!=null&&ps(t,n,Xv)}function Jo(t,n){return t!=null&&ps(t,n,Jv)}var ML=ss(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=g0.call(n)),t[n]=a},ta(At)),TL=ss(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=g0.call(n)),Te.call(t,n)?t[n].push(a):t[n]=[a]},le),PL=xe(mr);function st(t){return kt(t)?$2(t):wo(t)}function St(t){return kt(t)?$2(t,!0):cC(t)}function IL(t,n){var a={};return n=le(n,3),dn(t,function(c,d,p){fn(a,n(c,d,p),c)}),a}function OL(t,n){var a={};return n=le(n,3),dn(t,function(c,d,p){fn(a,d,n(c,d,p))}),a}var BL=G1(function(t,n,a){A0(t,n,a)}),qs=G1(function(t,n,a,c){A0(t,n,a,c)}),EL=Tn(function(t,n){var a={};if(t==null)return a;var c=!1;n=Qe(n,function(p){return p=Hn(p,t),c||(c=p.length>1),p}),hn(t,Ro(t),a),c&&(a=Zt(a,$|M|x,TC));for(var d=n.length;d--;)Mo(a,n[d]);return a});function DL(t,n){return Xs(t,U0(le(n)))}var RL=Tn(function(t,n){return t==null?{}:fC(t,n)});function Xs(t,n){if(t==null)return{};var a=Qe(Ro(t),function(c){return[c]});return n=le(n),W2(t,a,function(c,d){return n(c,d[0])})}function FL(t,n,a){n=Hn(n,t);var c=-1,d=n.length;for(d||(d=1,t=i);++c<d;){var p=t==null?i:t[rn(n[c])];p===i&&(c=d,p=a),t=In(p)?p.call(t):p}return t}function zL(t,n,a){return t==null?t:_r(t,n,a)}function NL(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:_r(t,n,a,c)}var Js=us(st),e6=us(St);function KL(t,n,a){var c=ye(t),d=c||qn(t)||q1(t);if(n=le(n,4),a==null){var p=t&&t.constructor;d?a=c?new p:[]:Ye(t)?a=In(p)?Y1(m0(t)):{}:a={}}return(d?Pt:dn)(t,function(m,v,L){return n(a,m,v,L)}),a}function WL(t,n){return t==null?!0:Mo(t,n)}function UL(t,n,a){return t==null?t:Y2(t,n,Io(a))}function ZL(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:Y2(t,n,Io(a),c)}function X1(t){return t==null?[]:co(t,st(t))}function QL(t){return t==null?[]:co(t,St(t))}function jL(t,n,a){return a===i&&(a=n,n=i),a!==i&&(a=Yt(a),a=a===a?a:0),n!==i&&(n=Yt(n),n=n===n?n:0),l1(Yt(t),n,a)}function YL(t,n,a){return n=On(n),a===i?(a=n,n=0):a=On(a),t=Yt(t),eC(t,n,a)}function GL(t,n,a){if(a&&typeof a!="boolean"&&Ct(t,n,a)&&(n=a=i),a===i&&(typeof n=="boolean"?(a=n,n=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&n===i?(t=0,n=1):(t=On(t),n===i?(n=t,t=0):n=On(n)),t>n){var c=t;t=n,n=c}if(a||t%1||n%1){var d=w2();return yt(t+d*(n-t+S_("1e-"+((d+"").length-1))),n)}return ko(t,n)}var HL=H1(function(t,n,a){return n=n.toLowerCase(),t+(a?t6(n):n)});function t6(t){return ea(Pe(t).toLowerCase())}function n6(t){return t=Pe(t),t&&t.replace(Xb,N_).replace(m_,"")}function VL(t,n,a){t=Pe(t),n=Ot(n);var c=t.length;a=a===i?c:l1(_e(a),0,c);var d=a;return a-=n.length,a>=0&&t.slice(a,d)==n}function qL(t){return t=Pe(t),t&&Ob.test(t)?t.replace(P5,K_):t}function XL(t){return t=Pe(t),t&&zb.test(t)?t.replace(Yi,"\\$&"):t}var JL=H1(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),e$=H1(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),t$=is("toLowerCase");function n$(t,n,a){t=Pe(t),n=_e(n);var c=n?W1(t):0;if(!n||c>=n)return t;var d=(n-c)/2;return B0(C0(d),a)+t+B0(v0(d),a)}function r$(t,n,a){t=Pe(t),n=_e(n);var c=n?W1(t):0;return n&&c<n?t+B0(n-c,a):t}function i$(t,n,a){t=Pe(t),n=_e(n);var c=n?W1(t):0;return n&&c<n?B0(n-c,a)+t:t}function o$(t,n,a){return a||n==null?n=0:n&&(n=+n),hv(Pe(t).replace(Gi,""),n||0)}function a$(t,n,a){return(a?Ct(t,n,a):n===i)?n=1:n=_e(n),So(Pe(t),n)}function s$(){var t=arguments,n=Pe(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var l$=H1(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function c$(t,n,a){return a&&typeof a!="number"&&Ct(t,n,a)&&(n=a=i),a=a===i?Ee:a>>>0,a?(t=Pe(t),t&&(typeof n=="string"||n!=null&&!Vo(n))&&(n=Ot(n),!n&&K1(t))?Vn(tn(t),0,a):t.split(n,a)):[]}var u$=H1(function(t,n,a){return t+(a?" ":"")+ea(n)});function f$(t,n,a){return t=Pe(t),a=a==null?0:l1(_e(a),0,t.length),n=Ot(n),t.slice(a,a+n.length)==n}function d$(t,n,a){var c=h.templateSettings;a&&Ct(t,n,a)&&(n=i),t=Pe(t),n=qo({},n,c,fs);var d=qo({},n.imports,c.imports,fs),p=st(d),m=co(d,p);Pt(p,function(se){if(O5.test(se))throw new fe(g)});var v,L,B=0,E=n.interpolate||o0,R="__p += '",j=fo((n.escape||o0).source+"|"+E.source+"|"+(E===I5?jb:o0).source+"|"+(n.evaluate||o0).source+"|$","g"),ee="//# sourceURL="+(Te.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++x_+"]")+`
|
|
11
|
+
`;t.replace(j,function(se,$e,Ae,Et,xt,Dt){return Ae||(Ae=Et),R+=t.slice(B,Dt).replace(Jb,W_),$e&&(v=!0,R+=`' +
|
|
12
12
|
__e(`+$e+`) +
|
|
13
13
|
'`),xt&&(L=!0,R+=`';
|
|
14
14
|
`+xt+`;
|
|
@@ -18,13 +18,13 @@ __p += '`),Ae&&(R+=`' +
|
|
|
18
18
|
`;var ue=Te.call(n,"variable")&&n.variable;if(!ue)R=`with (obj) {
|
|
19
19
|
`+R+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
21
|
+
`;else if(O5.test(ue))throw new fe(f);R=(L?R.replace(Mb,""):R).replace(Tb,"$1").replace(Pb,"$1;"),R="function("+(ue||"obj")+`) {
|
|
22
22
|
`+(ue?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(v?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+R+`return __p
|
|
27
|
-
}`;var Ce=r6(function(){return Me(p,ee+"return "+R).apply(i,m)});if(Ce.source=R,Ho(Ce))throw Ce;return Ce}function f$(t){return Pe(t).toLowerCase()}function d$(t){return Pe(t).toUpperCase()}function h$(t,n,a){if(t=Pe(t),t&&(a||n===i))return f2(t);if(!t||!(n=Ot(n)))return t;var c=tn(t),d=tn(n),p=d2(c,d),m=h2(c,d)+1;return Vn(c,p,m).join("")}function g$(t,n,a){if(t=Pe(t),t&&(a||n===i))return t.slice(0,p2(t)+1);if(!t||!(n=Ot(n)))return t;var c=tn(t),d=h2(c,tn(n))+1;return Vn(c,0,d).join("")}function p$(t,n,a){if(t=Pe(t),t&&(a||n===i))return t.replace(Gi,"");if(!t||!(n=Ot(n)))return t;var c=tn(t),d=d2(c,tn(n));return Vn(c,d).join("")}function y$(t,n){var a=H,c=ie;if(Ye(n)){var d="separator"in n?n.separator:d;a="length"in n?_e(n.length):a,c="omission"in n?Ot(n.omission):c}t=Pe(t);var p=t.length;if(K1(t)){var m=tn(t);p=m.length}if(a>=p)return t;var v=a-W1(c);if(v<1)return c;var L=m?Vn(m,0,v).join(""):t.slice(0,v);if(d===i)return L+c;if(m&&(v+=L.length-v),Vo(d)){if(t.slice(v).search(d)){var B,E=L;for(d.global||(d=fo(d.source,Pe(O5.exec(d))+"g")),d.lastIndex=0;B=d.exec(E);)var R=B.index;L=L.slice(0,R===i?v:R)}}else if(t.indexOf(Ot(d),v)!=v){var j=L.lastIndexOf(d);j>-1&&(L=L.slice(0,j))}return L+c}function m$(t){return t=Pe(t),t&&Tb.test(t)?t.replace(M5,Y_):t}var b$=H1(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),ea=rs("toUpperCase");function n6(t,n,a){return t=Pe(t),n=a?i:n,n===i?W_(t)?V_(t):O_(t):t.match(n)||[]}var r6=xe(function(t,n){try{return Tt(t,i,n)}catch(a){return Ho(a)?a:new fe(a)}}),_$=Tn(function(t,n){return Pt(n,function(a){a=rn(a),fn(t,a,Yo(t[a],t))}),t});function v$(t){var n=t==null?0:t.length,a=le();return t=n?Qe(t,function(c){if(typeof c[1]!="function")throw new Wt(u);return[a(c[0]),c[1]]}):[],xe(function(c){for(var d=-1;++d<n;){var p=t[d];if(Tt(p[0],this,c))return Tt(p[1],this,c)}})}function C$(t){return Yv(Zt(t,$))}function ta(t){return function(){return t}}function x$(t,n){return t==null||t!==t?n:t}var w$=os(),L$=os(!0);function At(t){return t}function na(t){return E2(typeof t=="function"?t:Zt(t,$))}function $$(t){return R2(Zt(t,$))}function k$(t,n){return F2(t,Zt(n,$))}var S$=xe(function(t,n){return function(a){return mr(a,t,n)}}),A$=xe(function(t,n){return function(a){return mr(t,a,n)}});function ra(t,n,a){var c=st(n),d=S0(n,c);a==null&&!(Ye(n)&&(d.length||!c.length))&&(a=n,n=t,t=this,d=S0(n,st(n)));var p=!(Ye(a)&&"chain"in a)||!!a.chain,m=In(t);return Pt(d,function(v){var L=n[v];t[v]=L,m&&(t.prototype[v]=function(){var B=this.__chain__;if(p||B){var E=t(this.__wrapped__),R=E.__actions__=$t(this.__actions__);return R.push({func:L,args:arguments,thisArg:t}),E.__chain__=B,E}return L.apply(t,Zn([this.value()],arguments))})}),t}function M$(){return ft._===this&&(ft._=nv),this}function ia(){}function T$(t){return t=_e(t),xe(function(n){return z2(n,t)})}var P$=Bo(Qe),I$=Bo(a2),O$=Bo(io);function i6(t){return Ko(t)?oo(rn(t)):uC(t)}function B$(t){return function(n){return t==null?i:c1(t,n)}}var E$=ss(),D$=ss(!0);function oa(){return[]}function aa(){return!1}function R$(){return{}}function F$(){return""}function z$(){return!0}function N$(t,n){if(t=_e(t),t<1||t>Fe)return[];var a=Ee,c=yt(t,Ee);n=le(n),t-=Ee;for(var d=lo(c,n);++a<t;)n(a);return d}function K$(t){return ye(t)?Qe(t,rn):Bt(t)?[t]:$t(ws(Pe(t)))}function W$(t){var n=++ev;return Pe(t)+n}var U$=O0(function(t,n){return t+n},0),Z$=Eo("ceil"),Q$=O0(function(t,n){return t/n},1),j$=Eo("floor");function Y$(t){return t&&t.length?k0(t,At,vo):i}function G$(t,n){return t&&t.length?k0(t,le(n,2),vo):i}function H$(t){return c2(t,At)}function V$(t,n){return c2(t,le(n,2))}function q$(t){return t&&t.length?k0(t,At,Lo):i}function X$(t,n){return t&&t.length?k0(t,le(n,2),Lo):i}var J$=O0(function(t,n){return t*n},1),ek=Eo("round"),tk=O0(function(t,n){return t-n},0);function nk(t){return t&&t.length?so(t,At):0}function rk(t,n){return t&&t.length?so(t,le(n,2)):0}return h.after=kw,h.ary=Bs,h.assign=hL,h.assignIn=Gs,h.assignInWith=Hs,h.assignWith=qo,h.at=gL,h.before=Es,h.bind=Yo,h.bindAll=_$,h.bindKey=Ds,h.castArray=Fw,h.chain=Ps,h.chunk=YC,h.compact=GC,h.concat=HC,h.cond=v$,h.conforms=C$,h.constant=ta,h.countBy=rw,h.create=pL,h.curry=Rs,h.curryRight=Fs,h.debounce=zs,h.defaults=yL,h.defaultsDeep=mL,h.defer=Sw,h.delay=Aw,h.difference=VC,h.differenceBy=qC,h.differenceWith=XC,h.drop=JC,h.dropRight=ex,h.dropRightWhile=tx,h.dropWhile=nx,h.fill=rx,h.filter=ow,h.flatMap=lw,h.flatMapDeep=cw,h.flatMapDepth=uw,h.flatten=Ss,h.flattenDeep=ix,h.flattenDepth=ox,h.flip=Mw,h.flow=w$,h.flowRight=L$,h.fromPairs=ax,h.functions=LL,h.functionsIn=$L,h.groupBy=fw,h.initial=lx,h.intersection=cx,h.intersectionBy=ux,h.intersectionWith=fx,h.invert=SL,h.invertBy=AL,h.invokeMap=hw,h.iteratee=na,h.keyBy=gw,h.keys=st,h.keysIn=St,h.map=N0,h.mapKeys=TL,h.mapValues=PL,h.matches=$$,h.matchesProperty=k$,h.memoize=W0,h.merge=IL,h.mergeWith=Vs,h.method=S$,h.methodOf=A$,h.mixin=ra,h.negate=U0,h.nthArg=T$,h.omit=OL,h.omitBy=BL,h.once=Tw,h.orderBy=pw,h.over=P$,h.overArgs=Pw,h.overEvery=I$,h.overSome=O$,h.partial=Go,h.partialRight=Ns,h.partition=yw,h.pick=EL,h.pickBy=qs,h.property=i6,h.propertyOf=B$,h.pull=px,h.pullAll=Ms,h.pullAllBy=yx,h.pullAllWith=mx,h.pullAt=bx,h.range=E$,h.rangeRight=D$,h.rearg=Iw,h.reject=_w,h.remove=_x,h.rest=Ow,h.reverse=Qo,h.sampleSize=Cw,h.set=RL,h.setWith=FL,h.shuffle=xw,h.slice=vx,h.sortBy=$w,h.sortedUniq=Sx,h.sortedUniqBy=Ax,h.split=s$,h.spread=Bw,h.tail=Mx,h.take=Tx,h.takeRight=Px,h.takeRightWhile=Ix,h.takeWhile=Ox,h.tap=Gx,h.throttle=Ew,h.thru=z0,h.toArray=Qs,h.toPairs=Xs,h.toPairsIn=Js,h.toPath=K$,h.toPlainObject=Ys,h.transform=zL,h.unary=Dw,h.union=Bx,h.unionBy=Ex,h.unionWith=Dx,h.uniq=Rx,h.uniqBy=Fx,h.uniqWith=zx,h.unset=NL,h.unzip=jo,h.unzipWith=Ts,h.update=KL,h.updateWith=WL,h.values=X1,h.valuesIn=UL,h.without=Nx,h.words=n6,h.wrap=Rw,h.xor=Kx,h.xorBy=Wx,h.xorWith=Ux,h.zip=Zx,h.zipObject=Qx,h.zipObjectDeep=jx,h.zipWith=Yx,h.entries=Xs,h.entriesIn=Js,h.extend=Gs,h.extendWith=Hs,ra(h,h),h.add=U$,h.attempt=r6,h.camelCase=YL,h.capitalize=e6,h.ceil=Z$,h.clamp=ZL,h.clone=zw,h.cloneDeep=Kw,h.cloneDeepWith=Ww,h.cloneWith=Nw,h.conformsTo=Uw,h.deburr=t6,h.defaultTo=x$,h.divide=Q$,h.endsWith=GL,h.eq=on,h.escape=HL,h.escapeRegExp=VL,h.every=iw,h.find=aw,h.findIndex=$s,h.findKey=bL,h.findLast=sw,h.findLastIndex=ks,h.findLastKey=_L,h.floor=j$,h.forEach=Is,h.forEachRight=Os,h.forIn=vL,h.forInRight=CL,h.forOwn=xL,h.forOwnRight=wL,h.get=Xo,h.gt=Zw,h.gte=Qw,h.has=kL,h.hasIn=Jo,h.head=As,h.identity=At,h.includes=dw,h.indexOf=sx,h.inRange=QL,h.invoke=ML,h.isArguments=d1,h.isArray=ye,h.isArrayBuffer=jw,h.isArrayLike=kt,h.isArrayLikeObject=Ve,h.isBoolean=Yw,h.isBuffer=qn,h.isDate=Gw,h.isElement=Hw,h.isEmpty=Vw,h.isEqual=qw,h.isEqualWith=Xw,h.isError=Ho,h.isFinite=Jw,h.isFunction=In,h.isInteger=Ks,h.isLength=Z0,h.isMap=Ws,h.isMatch=eL,h.isMatchWith=tL,h.isNaN=nL,h.isNative=rL,h.isNil=oL,h.isNull=iL,h.isNumber=Us,h.isObject=Ye,h.isObjectLike=He,h.isPlainObject=wr,h.isRegExp=Vo,h.isSafeInteger=aL,h.isSet=Zs,h.isString=Q0,h.isSymbol=Bt,h.isTypedArray=q1,h.isUndefined=sL,h.isWeakMap=lL,h.isWeakSet=cL,h.join=dx,h.kebabCase=qL,h.last=jt,h.lastIndexOf=hx,h.lowerCase=XL,h.lowerFirst=JL,h.lt=uL,h.lte=fL,h.max=Y$,h.maxBy=G$,h.mean=H$,h.meanBy=V$,h.min=q$,h.minBy=X$,h.stubArray=oa,h.stubFalse=aa,h.stubObject=R$,h.stubString=F$,h.stubTrue=z$,h.multiply=J$,h.nth=gx,h.noConflict=M$,h.noop=ia,h.now=K0,h.pad=e$,h.padEnd=t$,h.padStart=n$,h.parseInt=r$,h.random=jL,h.reduce=mw,h.reduceRight=bw,h.repeat=i$,h.replace=o$,h.result=DL,h.round=ek,h.runInContext=w,h.sample=vw,h.size=ww,h.snakeCase=a$,h.some=Lw,h.sortedIndex=Cx,h.sortedIndexBy=xx,h.sortedIndexOf=wx,h.sortedLastIndex=Lx,h.sortedLastIndexBy=$x,h.sortedLastIndexOf=kx,h.startCase=l$,h.startsWith=c$,h.subtract=tk,h.sum=nk,h.sumBy=rk,h.template=u$,h.times=N$,h.toFinite=On,h.toInteger=_e,h.toLength=js,h.toLower=f$,h.toNumber=Yt,h.toSafeInteger=dL,h.toString=Pe,h.toUpper=d$,h.trim=h$,h.trimEnd=g$,h.trimStart=p$,h.truncate=y$,h.unescape=m$,h.uniqueId=W$,h.upperCase=b$,h.upperFirst=ea,h.each=Is,h.eachRight=Os,h.first=As,ra(h,function(){var t={};return dn(h,function(n,a){Te.call(h.prototype,a)||(t[a]=n)}),t}(),{chain:!1}),h.VERSION=o,Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){h[t].placeholder=h}),Pt(["drop","take"],function(t,n){ke.prototype[t]=function(a){a=a===i?1:at(_e(a),0);var c=this.__filtered__&&!n?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=yt(a,c.__takeCount__):c.__views__.push({size:yt(a,Ee),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Pt(["filter","map","takeWhile"],function(t,n){var a=n+1,c=a==re||a==ge;ke.prototype[t]=function(d){var p=this.clone();return p.__iteratees__.push({iteratee:le(d,3),type:a}),p.__filtered__=p.__filtered__||c,p}}),Pt(["head","last"],function(t,n){var a="take"+(n?"Right":"");ke.prototype[t]=function(){return this[a](1).value()[0]}}),Pt(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[a](1)}}),ke.prototype.compact=function(){return this.filter(At)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=xe(function(t,n){return typeof t=="function"?new ke(this):this.map(function(a){return mr(a,t,n)})}),ke.prototype.reject=function(t){return this.filter(U0(le(t)))},ke.prototype.slice=function(t,n){t=_e(t);var a=this;return a.__filtered__&&(t>0||n<0)?new ke(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==i&&(n=_e(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(Ee)},dn(ke.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),c=/^(?:head|last)$/.test(n),d=h[c?"take"+(n=="last"?"Right":""):n],p=c||/^find/.test(n);d&&(h.prototype[n]=function(){var m=this.__wrapped__,v=c?[1]:arguments,L=m instanceof ke,B=v[0],E=L||ye(m),R=function($e){var Ae=d.apply(h,Zn([$e],v));return c&&j?Ae[0]:Ae};E&&a&&typeof B=="function"&&B.length!=1&&(L=E=!1);var j=this.__chain__,ee=!!this.__actions__.length,ue=p&&!j,Ce=L&&!ee;if(!p&&E){m=Ce?m:new ke(this);var se=t.apply(m,v);return se.__actions__.push({func:z0,args:[R],thisArg:i}),new Ut(se,j)}return ue&&Ce?t.apply(this,v):(se=this.thru(R),ue?c?se.value()[0]:se.value():se)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(t){var n=f0[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);h.prototype[t]=function(){var d=arguments;if(c&&!this.__chain__){var p=this.value();return n.apply(ye(p)?p:[],d)}return this[a](function(m){return n.apply(ye(m)?m:[],d)})}}),dn(ke.prototype,function(t,n){var a=h[n];if(a){var c=a.name+"";Te.call(j1,c)||(j1[c]=[]),j1[c].push({name:n,func:a})}}),j1[I0(i,D).name]=[{name:"wrapper",func:i}],ke.prototype.clone=bv,ke.prototype.reverse=_v,ke.prototype.value=vv,h.prototype.at=Hx,h.prototype.chain=Vx,h.prototype.commit=qx,h.prototype.next=Xx,h.prototype.plant=ew,h.prototype.reverse=tw,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=nw,h.prototype.first=h.prototype.head,ur&&(h.prototype[ur]=Jx),h},U1=q_();i1?((i1.exports=U1)._=U1,eo._=U1):ft._=U1}).call(gn)}(Lr,Lr.exports);var la=Lr.exports;const Xe=Y0(la),a6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=ce.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const u=Gt({x:i[1].x-8,y:i[1].y+4},i[1],l),f=Gt({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:r()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[u,i[1],f]},styles:r()}]}return[]},setProperties:i=>{e=Xe.merge({},e,i)},getProperties:()=>e}},s6=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=sa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:r(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,Xe.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},l6=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:r(o.id)}]:[],setProperties:(i,o)=>{e.set(o,Xe.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},c6=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:r()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},u6=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:r()}],setProperties:i=>{e=Xe.merge({},e,i)},getProperties:()=>e}},f6=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),u=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],g=[],y=[];return f.forEach(C=>{const _=u*C;g.push({...o[0],r:_}),y.push({x:o[0].x,y:o[0].y+_+6,text:`${(C*100).toFixed(1)}%`})}),[{type:"circle",attrs:g,styles:r()},{type:"text",ignoreEvent:!0,attrs:y,styles:i()}]}return[]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},d6=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:u})=>{const f=[],g=[];if(o.length>1){let y=0;const C=l.getSymbol();((u==null?void 0:u.isInCandle())??!0)&&C?y=C.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach(S=>{y=Math.max(y,S.precision)});const _=o[1].x>o[0].x?o[0].x:o[1].x,$=[1,.786,.618,.5,.382,.236,0],M=o[0].y-o[1].y,x=s.points,T=x[0].value-x[1].value;$.forEach(k=>{const S=o[1].y+M*k,D=(x[1].value+T*k).toFixed(y.price);f.push({coordinates:[{x:o[0].x,y:S},{x:o[1].x,y:S}]}),g.push({x:_,y:S,text:`${D} (${(k*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:r()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},h6=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=sa(o[0],o[1])/Math.sqrt(24),u=o[1].x>o[0].x?0:1,f=ce.utils.getLinearSlopeIntercept(o[0],o[1]);let g;f?g=Math.atan(f[0])+Math.PI*u:o[1].y>o[0].y?g=Math.PI/2:g=Math.PI/2*3;const y=Gt({x:o[0].x-l,y:o[0].y},o[0],g),C=Gt({x:o[0].x-l,y:o[0].y-l},o[0],g),_=[{...y,r:l,startAngle:g,endAngle:g+Math.PI/2},{...C,r:l*2,startAngle:g+Math.PI/2,endAngle:g+Math.PI}];let $=o[0].x-l,M=o[0].y-l;for(let x=2;x<9;x++){const T=_[x-2].r+_[x-1].r;let k=0;switch(x%4){case 0:{k=g,$-=_[x-2].r;break}case 1:{k=g+Math.PI/2,M-=_[x-2].r;break}case 2:{k=g+Math.PI,$+=_[x-2].r;break}case 3:{k=g+Math.PI/2*3,M+=_[x-2].r;break}}const S=k+Math.PI/2,D=Gt({x:$,y:M},o[0],g);_.push({...D,r:T,startAngle:k,endAngle:S})}return[{type:"arc",attrs:_,styles:r()},{type:"line",attrs:j0(o,s),styles:i()}]}return[]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},g6=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let u=[];const f=[];if(o.length>1){const g=o[1].x>o[0].x?-38:4,y=o[1].y>o[0].y?-2:20,C=o[1].x-o[0].x,_=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(M=>{const x=o[1].x-C*M,T=o[1].y-_*M;l.push({coordinates:[{x,y:o[0].y},{x,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:T},{x:o[1].x,y:T}]}),u=u.concat(j0([o[0],{x,y:o[1].y}],s)),u=u.concat(j0([o[0],{x:o[1].x,y:T}],s)),f.unshift({x:o[0].x+g,y:T+10,text:`${M.toFixed(3)}`}),f.unshift({x:x-18,y:o[0].y+y,text:`${M.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:r()},{type:"line",attrs:u,styles:r()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},p6=()=>{let e={};const r=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:u,overlay:f})=>{const g=[],y=[];if(u.length>2){let C=0;const _=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&_?C=_.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(D=>{C=Math.max(C,D.precision)});const $=f.points,M=$[1].value-$[0].value,x=u[1].y-u[0].y,T=[0,.236,.382,.5,.618,.786,1],k=u[2].x>u[1].x?u[1].x:u[2].x;T.forEach(S=>{const D=u[2].y+x*S,F=($[2].value+M*S).toFixed(C.price);g.push({coordinates:[{x:u[1].x,y:D},{x:u[2].x,y:D}]}),y.push({x:k,y:D,text:`${F} (${(S*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:u},styles:r()},{type:"line",attrs:g,styles:i()},{type:"text",ignoreEvent:!0,attrs:y,styles:o()}]},setProperties:s=>{e=Xe.merge({},e,s)},getProperties:()=>e}},y6=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const u=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,g=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-u}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-u*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],y=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:r()},{type:"line",attrs:g,styles:o()},{type:"line",attrs:y,styles:s()}]}return[]},setProperties:l=>{e=Xe.merge({},e,l)},getProperties:()=>e}},m6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},b6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},_6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},v6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},C6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...r(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],u=[];const f=["A","B","C","D"],g=s.map((y,C)=>({...y,baseline:"bottom",text:`(${f[C]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(u=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:r()},{type:"line",attrs:[{coordinates:l},{coordinates:u}],styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=Xe.merge({},e,s)},getProperties:()=>e}},x6=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:u})=>{const f=[],g=[],y=["X","A","B","C","D"],C=l.map((_,$)=>({..._,baseline:"bottom",text:`(${y[$]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),g.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),g.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:o()},{type:"polygon",ignoreEvent:!0,attrs:g,styles:r()},{type:"text",ignoreEvent:!0,attrs:C,styles:s()}]},setProperties:l=>{e=Xe.merge({},e,l)},getProperties:()=>e}},w6=(e,r,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:r.paneId}).forEach(u=>{o.price=Math.max(o.price,u.precision)}),o},G0=e=>({thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900})[e],Je={lineStyle:{style:"dashed",size:1,color:"#00698b",dashedValue:[4,4]},labelStyle:{style:"stroke_fill",size:12,family:"Helvetica Neue",weight:"normal",paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,borderStyle:"solid",borderSize:1,borderDashedValue:[0,0],borderRadius:3,color:"#FFFFFF",borderColor:"#00698b",backgroundColor:"#00698b",show:!0}},J1=(e,r)=>{if(e){const{params:i,callback:o}=e;o(i,r)}},L6=()=>{let e={isBodyVisible:!0,isCancelButtonVisible:!0,isQuantityVisible:!0,marginRight:10};const r=()=>({style:e.lineStyle??Je.lineStyle.style,size:e.lineWidth??Je.lineStyle.size,color:e.lineColor??Je.lineStyle.color,dashedValue:e.lineDashedValue??Je.lineStyle.dashedValue}),i=o=>({style:Je.labelStyle.style,size:(o=="body"?e.bodySize:o=="quantity"?e.quantitySize:e.cancelButtonSize)??e.bodySize??Je.labelStyle.size,weight:(o=="body"?e.bodyWeight:o=="quantity"?e.quantityWeight:e.cancelButtonWeight)??e.bodyWeight??Je.labelStyle.weight,family:(o=="body"?e.bodyFont:o=="quantity"?e.quantityFont:"icomoon")??e.bodyFont??Je.labelStyle.family,color:(o=="body"?e.bodyTextColor:o=="quantity"?e.quantityColor:e.cancelButtonIconColor)??e.bodyTextColor??Je.labelStyle.color,backgroundColor:(o=="body"?e.bodyBackgroundColor:o=="quantity"?e.quantityBackgroundColor:e.cancelButtonBackgroundColor)??e.bodyBackgroundColor??Je.labelStyle.backgroundColor,borderColor:(o=="body"?e.bodyBorderColor:o=="quantity"?e.quantityBorderColor:e.cancelButtonBorderColor)??e.bodyBorderColor??Je.labelStyle.borderColor,borderStyle:e.borderStyle??Je.labelStyle.borderStyle,borderSize:e.borderSize??Je.labelStyle.borderSize,borderDashedValue:e.borderDashedValue??Je.labelStyle.borderDashedValue,borderRadius:e.borderRadius??Je.labelStyle.borderRadius,paddingLeft:(o=="body"?e.bodyPaddingLeft:o=="quantity"?e.quantityPaddingLeft:e.cancelButtonPaddingLeft)??e.bodyPaddingLeft??Je.labelStyle.paddingLeft,paddingRight:(o=="body"?e.bodyPaddingRight:o=="quantity"?e.quantityPaddingRight:e.cancelButtonPaddingRight)??e.bodyPaddingRight??Je.labelStyle.paddingRight,paddingTop:(o=="body"?e.bodyPaddingTop:o=="quantity"?e.quantityPaddingTop:e.cancelButtonPaddingTop)??e.bodyPaddingTop??Je.labelStyle.paddingTop,paddingBottom:(o=="body"?e.bodyPaddingBottom:o=="quantity"?e.quantityPaddingBottom:e.cancelButtonPaddingBottom)??e.bodyPaddingBottom??Je.labelStyle.paddingBottom});return{name:"orderLine",totalStep:2,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({chart:o,coordinates:s,bounding:l})=>{var k,S,D,F,P,z,q;const u=i("body"),f=i("quantity"),g=i("cancel-button"),y="",C=(e.quantity??"Size").toString(),_=e.text??"Position Line",$=e.marginRight,M=ce.utils.calcTextWidth(y)+g.paddingLeft+g.paddingRight+$-(e.borderSize??Je.labelStyle.borderSize),x=ce.utils.calcTextWidth(C.toString())+f.paddingLeft+f.paddingRight+M,T=ce.utils.calcTextWidth(_.toString())+u.paddingLeft+u.paddingRight+x;return[{key:"price-line",type:"line",attrs:{coordinates:[{x:0,y:e.price?o.convertToPixel({timestamp:(k=o.getDataList().at(o.getDataList().length-1))==null?void 0:k.timestamp,value:e.price}).y:s[0].y},{x:l.width-T,y:e.price?o.convertToPixel({timestamp:(S=o.getDataList().at(o.getDataList().length-1))==null?void 0:S.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"price-line-two",type:"line",attrs:{coordinates:[{x:l.width-$,y:e.price?o.convertToPixel({timestamp:(D=o.getDataList().at(o.getDataList().length-1))==null?void 0:D.timestamp,value:e.price}).y:s[0].y},{x:l.width,y:e.price?o.convertToPixel({timestamp:(F=o.getDataList().at(o.getDataList().length-1))==null?void 0:F.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"body",type:"text",attrs:{x:l.width-x,y:e.price?o.convertToPixel({timestamp:(P=o.getDataList().at(o.getDataList().length-1))==null?void 0:P.timestamp,value:e.price}).y:s[0].y,text:_,align:"right",baseline:"middle"},styles:u},{key:"quantity",type:"text",attrs:{x:l.width-M,y:e.price?o.convertToPixel({timestamp:(z=o.getDataList().at(o.getDataList().length-1))==null?void 0:z.timestamp,value:e.price}).y:s[0].y,text:C,align:"right",baseline:"middle"},styles:f},{key:"cancel-button",type:"text",attrs:{x:l.width-$,y:e.price?o.convertToPixel({timestamp:(q=o.getDataList().at(o.getDataList().length-1))==null?void 0:q.timestamp,value:e.price}).y:s[0].y,text:y,align:"right",baseline:"middle"},styles:g}]},createYAxisFigures:({chart:o,overlay:s,coordinates:l,bounding:u,yAxis:f})=>{var M;const g=w6(o,s,f),y=(f==null?void 0:f.isFromZero())??!1;let C,_;y?(C="left",_=0):(C="right",_=u.width);let $;return e.price!==void 0&&(s.points[0].value=e.price),ce.utils.isValid(s.extendData)&&(ce.utils.isFunction(s.extendData)?$=s.extendData(s):$=s.extendData??""),!ce.utils.isValid($)&&s.points[0].value!==void 0&&($=ce.utils.formatPrecision(s.points[0].value,g.price)),{type:"text",attrs:{x:_,y:e.price?o.convertToPixel({timestamp:(M=o.getDataList().at(o.getDataList().length-1))==null?void 0:M.timestamp,value:e.price}).y:l[0].y,text:$??"",align:C,baseline:"middle"},styles:i("body")}},onSelected:o=>(o.preventDefault&&o.preventDefault(),o.overlay.mode="normal",!1),onRightClick:o=>(o.preventDefault&&o.preventDefault(),!1),onPressedMoveStart:o=>(J1(e.onMoveStart,o),!1),onPressedMoving:o=>(e.price=o.chart.convertFromPixel([{y:o.y,x:o.x}],{paneId:"candle_pane"}).value,J1(e.onMove,o),!1),onPressedMoveEnd:o=>(J1(e.onMoveEnd,o),!1),onClick:o=>{var s;switch((s=o.figure)==null?void 0:s.key){case"cancel-button":J1(e.onCancel,o);break;case"quantity":J1(e.onModify,o);break}return!1},setPrice(o){return e.price=o,this},setText(o){return e.text=o,this},setQuantity(o){return e.quantity=o,this},setModifyTooltip(o){return e.modifyTooltip=o,this},setTooltip(o){return e.tooltip=o,this},setLineColor(o){return e.lineColor=o,this},setLineWidth(o){return e.lineWidth=o,this},setLineStyle(o){return e.lineStyle=o,this},setLineLength(o){return e.lineDashedValue=[o,o],this},setLineDashedValue(o){return e.lineDashedValue=o,this},setBodyFont(o){return e.bodyFont=o,this},setBodyFontWeight(o){return ce.utils.isString(o)&&(o=G0(o)),e.bodyWeight=o,this},setBodyTextColor(o){return e.bodyTextColor=o,this},setBodyBackgroundColor(o){return e.bodyBackgroundColor=o,this},setBodyBorderColor(o){return e.bodyBorderColor=o,this},setQuantityFont(o){return e.quantityFont=o,this},setQuantityFontWeight(o){return ce.utils.isString(o)&&(o=G0(o)),e.quantityWeight=o,this},setQuantityColor(o){return e.quantityColor=o,this},setQuantityBackgroundColor(o){return e.quantityBackgroundColor=o,this},setQuantityBorderColor(o){return e.quantityBorderColor=o,this},setCancelButtonFontWeight(o){return ce.utils.isString(o)&&(o=G0(o)),e.cancelButtonWeight=o,this},setCancelButtonIconColor(o){return e.cancelButtonIconColor=o,this},setCancelButtonBackgroundColor(o){return e.cancelButtonBackgroundColor=o,this},setCancelButtonBorderColor(o){return e.cancelButtonBorderColor=o,this},setBorderStyle(o){return e.borderStyle=o,this},setBorderSize(o){return e.borderSize=o,this},setBorderDashedValue(o){return e.borderDashedValue=o,this},setBorderRadius(o){return e.borderRadius=o,this},onMoveStart(o,s){return e.onMoveStart={params:o,callback:s},this},onMove(o,s){return e.onMove={params:o,callback:s},this},onMoveEnd(o,s){return e.onMoveEnd={params:o,callback:s},this},onCancel(o,s){return e.onCancel={params:o,callback:s},this},onModify(o,s){return e.onModify={params:o,callback:s},this}}},$6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:r})=>{const i=[];if(r.length>1){const o=r.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:r,points:i,performPoint:o})=>{r>=2&&i.push(o)},setProperties:r=>{e=Xe.merge({},e,r)},getProperties:()=>e}},k6=[a6(),$6(),s6(),l6(),u6(),c6(),f6(),d6(),h6(),g6(),p6(),y6(),m6(),b6(),_6(),v6(),C6(),x6(),L6()];class S6{constructor(r){wt(this,"_apiKey");wt(this,"_prevSymbolMarket");wt(this,"_ws");this._apiKey=r}async searchSymbols(r){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${r??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(r,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${r.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(r,i,o){var s,l;this._prevSymbolMarket!==r.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${r.market}`),this._ws.onopen=()=>{var u;(u=this._ws)==null||u.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=u=>{var g;const f=JSON.parse(u.data);f[0].ev==="status"?f[0].status==="auth_success"&&((g=this._ws)==null||g.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`})),this._prevSymbolMarket=r.market}unsubscribe(r,i){}}class A6{constructor(r,i,o){wt(this,"apikey");wt(this,"apiurl");wt(this,"testsesson_id");this.apiurl=r,this.apikey=i,this.testsesson_id=o}async retrieveOrder(r){const i=await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions/${r}`),o=await(i==null?void 0:i.json());return{entryPoint:o.data.entrypoint,stopLoss:o.data.stoploss,takeProfit:o.data.takeprofit,lotSize:o.data.lotsize,pl:o.data.pl,accountId:o.data.account_id,orderId:o.data.id,entryTime:o.data.entrytime,exitTime:o.data.exittime,exitPoint:o.data.exitpoint,action:o.data.action}}async retrieveOrders(r,i){try{return((await(await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions`)).json()).data||[]).map(l=>({entryPoint:l.entrypoint,stopLoss:l.stoploss,takeProfit:l.takeprofit,lotSize:l.lotsize,pl:l.pl,accountId:l.account_id,orderId:l.id,entryTime:l.entrytime,exitTime:l.exittime,exitPoint:l.exitpoint,action:l.action}))}catch{return[]}}async openOrder(r,i,o,s,l){const u=await this.makeFetchWithAuthAndBody("POST",`${this.apiurl}/positions`,{account_id:this.testsesson_id,action:r,entrypoint:o,stoploss:s,takeprofit:l}),f=await(u==null?void 0:u.json());return{orderId:f.id,accountId:f.account_id,action:f.action,entryPoint:f.entrypoint,exitPoint:f.exitpoint,stopLoss:f.stoploss,takeProfit:f.takeprofit,lotSize:f.lotsize,pips:f.pips,pl:f.pl,entryTime:f.entrytime,exitTime:f.exittime,exitType:f.exittype,partials:f.partials}}async closeOrder(r,i){try{const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}`);return await(o==null?void 0:o.json())}catch{return null}}async modifyOrder(r){const i=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r.id}`,r),o=await(i==null?void 0:i.json());return{orderId:o.id,accountId:o.account_id,action:o.action,entryPoint:o.entrypoint,exitPoint:o.exitpoint,stopLoss:o.stoploss,takeProfit:o.takeprofit,lotSize:o.lotsize,pips:o.pips,pl:o.pl,entryTime:o.entrytime,exitTime:o.exittime,exitType:o.exittype,partials:o.partials}}async unsetSlOrTP(r,i){const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}/unset/${i}`),s=await(o==null?void 0:o.json());return{orderId:s.id,accountId:s.account_id,action:s.action,entryPoint:s.entrypoint,exitPoint:s.exitpoint,stopLoss:s.stoploss,takeProfit:s.takeprofit,lotSize:s.lotsize,pips:s.pips,pl:s.pl,entryTime:s.entrytime,exitTime:s.exittime,exitType:s.exittype,partials:s.partials}}launchOrderModal(r,i,o){}async makeFetchWithAuthAndBody(r,i,o){const s={method:r,credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json",authorization:`Bearer ${this.apikey}`},body:o?JSON.stringify(o):null};try{return await fetch(`${i}`,s)}catch(l){return alert(l.message??"An error occured"),null}}}class M6{constructor(r="dummy_order_controller"){wt(this,"storage_name");this.storage_name=r}async retrieveOrder(r){return this.retrieveOrderFromLs(r)}async retrieveOrders(r,i){let o=this.retrieveOrdersFromLs();return r&&(o=o.filter((s,l)=>s.action==r)),i&&(o=o.filter(s=>s.accountId==i)),o}async openOrder(r,i,o,s,l){const u=this.retrieveOrdersFromLs(),f={orderId:u.length?u.at(u.length-1).orderId+1:0,action:r,entryPoint:o,exitPoint:void 0,stopLoss:s,takeProfit:l,lotSize:i,pips:0,pl:0,entryTime:new Date().getTime().toString(),exitTime:void 0,exitType:void 0,partials:void 0};return this.storeOrder(f,u),f}async closeOrder(r,i){try{const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return(!i||i>l.lotSize)&&(i=l.lotSize),l.lotSize-=i,this.storeOrder(l,o,s),l}catch{return null}}async modifyOrder(r){const i=this.retrieveOrdersFromLs(),o=i.findIndex(l=>l.orderId==r.id);if(o<0)return null;const s=i[o];return s.action=r.action??s.action,s.entryPoint=r.entrypoint??s.entryPoint,s.exitPoint=r.exitpoint??s.exitPoint,s.stopLoss=r.stoploss??s.stopLoss,s.takeProfit=r.takeprofit??s.takeProfit,s.lotSize=r.lotsize??s.lotSize,s.pips=r.pips??s.pips,s.pl=r.pl??s.pl,s.entryTime=["buy","sell"].includes(s.action)?new Date().getTime().toString():s.entryTime,s.exitTime=s.exitPoint&&s.exitTime?new Date().getTime().toString():s.exitTime,this.storeOrder(s,i,o),s}async unsetSlOrTP(r,i){const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return i=="sl"?l.stopLoss=void 0:l.takeProfit=void 0,this.storeOrder(l,o,s),l}launchOrderModal(r,i,o){}retrieveOrdersFromLs(){return JSON.parse(localStorage.getItem(this.storage_name)??"[]")}retrieveOrderFromLs(r){return this.retrieveOrdersFromLs().find(i=>i.orderId==r)??null}storeOrder(r,i,o){if(i||(i=this.retrieveOrdersFromLs()),o&&o>i.length)throw new Error("storeOrder: index cannot be greater than total order length");o?i[o]=r:i.push(r),localStorage.setItem(this.storage_name,JSON.stringify(i))}}const T6=!1,P6=(e,r)=>e===r,H0=Symbol("solid-proxy"),I6=typeof Proxy=="function",O6=Symbol("solid-track"),$r={equals:P6};let ca=pa;const pn=1,kr=2,ua={owned:null,cleanups:null,context:null,owner:null},V0={};var Oe=null;let q0=null,B6=null,Ie=null,ht=null,yn=null,Sr=0;function Ar(e,r){const i=Ie,o=Oe,s=e.length===0,l=r===void 0?o:r,u=s?ua:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>Ht(()=>er(u)));Oe=u,Ie=null;try{return mn(f,!0)}finally{Ie=i,Oe=o}}function G(e,r){r=r?Object.assign({},$r,r):$r;const i={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),ga(i,s));return[ha.bind(i),o]}function fa(e,r,i){const o=Tr(e,r,!0,pn);h1(o)}function Be(e,r,i){const o=Tr(e,r,!1,pn);h1(o)}function sn(e,r,i){ca=W6;const o=Tr(e,r,!1,pn);(!i||!i.render)&&(o.user=!0),yn?yn.push(o):h1(o)}function ln(e,r,i){i=i?Object.assign({},$r,i):$r;const o=Tr(e,r,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,h1(o),ha.bind(o)}function E6(e){return e&&typeof e=="object"&&"then"in e}function D6(e,r,i){let o,s,l;typeof r=="function"?(o=e,s=r,l=i||{}):(o=!0,s=e,l=r||{});let u=null,f=V0,g=!1,y="initialValue"in l,C=typeof o=="function"&&ln(o);const _=new Set,[$,M]=(l.storage||G)(l.initialValue),[x,T]=G(void 0),[k,S]=G(void 0,{equals:!1}),[D,F]=G(y?"ready":"unresolved");function P(W,Q,H,ie){return u===W&&(u=null,ie!==void 0&&(y=!0),(W===f||Q===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(ie,{value:Q})),f=V0,z(Q,H)),Q}function z(W,Q){mn(()=>{Q===void 0&&M(()=>W),F(Q!==void 0?"errored":y?"ready":"unresolved"),T(Q);for(const H of _.keys())H.decrement();_.clear()},!1)}function q(){const W=z6,Q=$(),H=x();if(H!==void 0&&!u)throw H;return Ie&&!Ie.user&&W&&fa(()=>{k(),u&&(W.resolved||_.has(W)||(W.increment(),_.add(W)))}),Q}function Z(W=!0){if(W!==!1&&g)return;g=!1;const Q=C?C():o;if(Q==null||Q===!1){P(u,Ht($));return}let H;const ie=f!==V0?f:Ht(()=>{try{return s(Q,{value:$(),refetching:W})}catch(J){H=J}});if(H!==void 0){P(u,void 0,Or(H),Q);return}else if(!E6(ie))return P(u,ie,void 0,Q),ie;return u=ie,"v"in ie?(ie.s===1?P(u,ie.v,void 0,Q):P(u,void 0,Or(ie.v),Q),ie):(g=!0,queueMicrotask(()=>g=!1),mn(()=>{F(y?"refreshing":"pending"),S()},!1),ie.then(J=>P(ie,J,void 0,Q),J=>P(ie,void 0,Or(J),Q)))}Object.defineProperties(q,{state:{get:()=>D()},error:{get:()=>x()},loading:{get(){const W=D();return W==="pending"||W==="refreshing"}},latest:{get(){if(!y)return q();const W=x();if(W&&!u)throw W;return $()}}});let O=Oe;return C?fa(()=>(O=Oe,Z(!1))):Z(!1),[q,{refetch:W=>R6(O,()=>Z(W)),mutate:M}]}function Ht(e){if(Ie===null)return e();const r=Ie;Ie=null;try{return e()}finally{Ie=r}}function da(e){sn(()=>Ht(e))}function Mr(e){return Oe===null||(Oe.cleanups===null?Oe.cleanups=[e]:Oe.cleanups.push(e)),e}function R6(e,r){const i=Oe,o=Ie;Oe=e,Ie=null;try{return mn(r,!0)}catch(s){X0(s)}finally{Oe=i,Ie=o}}function F6(e){const r=Ie,i=Oe;return Promise.resolve().then(()=>{Ie=r,Oe=i;let o;return mn(e,!1),Ie=Oe=null,o?o.done:void 0})}let z6;function ha(){if(this.sources&&this.state)if(this.state===pn)h1(this);else{const e=ht;ht=null,mn(()=>Ir(this),!1),ht=e}if(Ie){const e=this.observers?this.observers.length:0;Ie.sources?(Ie.sources.push(this),Ie.sourceSlots.push(e)):(Ie.sources=[this],Ie.sourceSlots=[e]),this.observers?(this.observers.push(Ie),this.observerSlots.push(Ie.sources.length-1)):(this.observers=[Ie],this.observerSlots=[Ie.sources.length-1])}return this.value}function ga(e,r,i){let o=e.value;return(!e.comparator||!e.comparator(o,r))&&(e.value=r,e.observers&&e.observers.length&&mn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],u=q0&&q0.running;u&&q0.disposed.has(l),(u?!l.tState:!l.state)&&(l.pure?ht.push(l):yn.push(l),l.observers&&ya(l)),u||(l.state=pn)}if(ht.length>1e6)throw ht=[],new Error},!1)),r}function h1(e){if(!e.fn)return;er(e);const r=Sr;N6(e,e.value,r)}function N6(e,r,i){let o;const s=Oe,l=Ie;Ie=Oe=e;try{o=e.fn(r)}catch(u){return e.pure&&(e.state=pn,e.owned&&e.owned.forEach(er),e.owned=null),e.updatedAt=i+1,X0(u)}finally{Ie=l,Oe=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?ga(e,o):e.value=o,e.updatedAt=i)}function Tr(e,r,i,o=pn,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:Oe,context:Oe?Oe.context:null,pure:i};return Oe===null||Oe!==ua&&(Oe.owned?Oe.owned.push(l):Oe.owned=[l]),l}function Pr(e){if(e.state===0)return;if(e.state===kr)return Ir(e);if(e.suspense&&Ht(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Sr);)e.state&&r.push(e);for(let i=r.length-1;i>=0;i--)if(e=r[i],e.state===pn)h1(e);else if(e.state===kr){const o=ht;ht=null,mn(()=>Ir(e,r[0]),!1),ht=o}}function mn(e,r){if(ht)return e();let i=!1;r||(ht=[]),yn?i=!0:yn=[],Sr++;try{const o=e();return K6(i),o}catch(o){i||(yn=null),ht=null,X0(o)}}function K6(e){if(ht&&(pa(ht),ht=null),e)return;const r=yn;yn=null,r.length&&mn(()=>ca(r),!1)}function pa(e){for(let r=0;r<e.length;r++)Pr(e[r])}function W6(e){let r,i=0;for(r=0;r<e.length;r++){const o=e[r];o.user?e[i++]=o:Pr(o)}for(r=0;r<i;r++)Pr(e[r])}function Ir(e,r){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===pn?o!==r&&(!o.updatedAt||o.updatedAt<Sr)&&Pr(o):s===kr&&Ir(o,r)}}}function ya(e){for(let r=0;r<e.observers.length;r+=1){const i=e.observers[r];i.state||(i.state=kr,i.pure?ht.push(i):yn.push(i),i.observers&&ya(i))}}function er(e){let r;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),u=i.observerSlots.pop();o<s.length&&(l.sourceSlots[u]=o,s[o]=l,i.observerSlots[o]=u)}}if(e.tOwned){for(r=e.tOwned.length-1;r>=0;r--)er(e.tOwned[r]);delete e.tOwned}if(e.owned){for(r=e.owned.length-1;r>=0;r--)er(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0}function Or(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function X0(e,r=Oe){throw Or(e)}const U6=Symbol("fallback");function ma(e){for(let r=0;r<e.length;r++)e[r]()}function Z6(e,r,i={}){let o=[],s=[],l=[],u=0,f=r.length>1?[]:null;return Mr(()=>ma(l)),()=>{let g=e()||[],y=g.length,C,_;return g[O6],Ht(()=>{let M,x,T,k,S,D,F,P,z;if(y===0)u!==0&&(ma(l),l=[],o=[],s=[],u=0,f&&(f=[])),i.fallback&&(o=[U6],s[0]=Ar(q=>(l[0]=q,i.fallback())),u=1);else if(u===0){for(s=new Array(y),_=0;_<y;_++)o[_]=g[_],s[_]=Ar($);u=y}else{for(T=new Array(y),k=new Array(y),f&&(S=new Array(y)),D=0,F=Math.min(u,y);D<F&&o[D]===g[D];D++);for(F=u-1,P=y-1;F>=D&&P>=D&&o[F]===g[P];F--,P--)T[P]=s[F],k[P]=l[F],f&&(S[P]=f[F]);for(M=new Map,x=new Array(P+1),_=P;_>=D;_--)z=g[_],C=M.get(z),x[_]=C===void 0?-1:C,M.set(z,_);for(C=D;C<=F;C++)z=o[C],_=M.get(z),_!==void 0&&_!==-1?(T[_]=s[C],k[_]=l[C],f&&(S[_]=f[C]),_=x[_],M.set(z,_)):l[C]();for(_=D;_<y;_++)_ in T?(s[_]=T[_],l[_]=k[_],f&&(f[_]=S[_],f[_](_))):s[_]=Ar($);s=s.slice(0,u=y),o=g.slice(0)}return s});function $(M){if(l[_]=M,f){const[x,T]=G(_);return f[_]=T,r(g[_],x)}return r(g[_])}}}function X(e,r){return Ht(()=>e(r||{}))}function Br(){return!0}const Q6={get(e,r,i){return r===H0?i:e.get(r)},has(e,r){return r===H0?!0:e.has(r)},set:Br,deleteProperty:Br,getOwnPropertyDescriptor(e,r){return{configurable:!0,enumerable:!0,get(){return e.get(r)},set:Br,deleteProperty:Br}},ownKeys(e){return e.keys()}};function J0(e){return(e=typeof e=="function"?e():e)?e:{}}function j6(){for(let e=0,r=this.length;e<r;++e){const i=this[e]();if(i!==void 0)return i}}function ba(...e){let r=!1;for(let u=0;u<e.length;u++){const f=e[u];r=r||!!f&&H0 in f,e[u]=typeof f=="function"?(r=!0,ln(f)):f}if(I6&&r)return new Proxy({get(u){for(let f=e.length-1;f>=0;f--){const g=J0(e[f])[u];if(g!==void 0)return g}},has(u){for(let f=e.length-1;f>=0;f--)if(u in J0(e[f]))return!0;return!1},keys(){const u=[];for(let f=0;f<e.length;f++)u.push(...Object.keys(J0(e[f])));return[...new Set(u)]}},Q6);const i={},o=Object.create(null);for(let u=e.length-1;u>=0;u--){const f=e[u];if(!f)continue;const g=Object.getOwnPropertyNames(f);for(let y=g.length-1;y>=0;y--){const C=g[y];if(C==="__proto__"||C==="constructor")continue;const _=Object.getOwnPropertyDescriptor(f,C);if(!o[C])o[C]=_.get?{enumerable:!0,configurable:!0,get:j6.bind(i[C]=[_.get.bind(f)])}:_.value!==void 0?_:void 0;else{const $=i[C];$&&(_.get?$.push(_.get.bind(f)):_.value!==void 0&&$.push(()=>_.value))}}}const s={},l=Object.keys(o);for(let u=l.length-1;u>=0;u--){const f=l[u],g=o[f];g&&g.get?Object.defineProperty(s,f,g):s[f]=g?g.value:void 0}return s}const Y6=e=>`Stale read from <${e}>.`;function G6(e){const r="fallback"in e&&{fallback:()=>e.fallback};return ln(Z6(()=>e.each,e.children,r||void 0))}function ct(e){const r=e.keyed,i=ln(()=>e.when,void 0,void 0),o=r?i:ln(i,void 0,{equals:(s,l)=>!s==!l});return ln(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?Ht(()=>l(r?s:()=>{if(!Ht(o))throw Y6("Show");return i()})):l}return e.fallback},void 0,void 0)}const et=e=>ln(()=>e());function H6(e,r,i){let o=i.length,s=r.length,l=o,u=0,f=0,g=r[s-1].nextSibling,y=null;for(;u<s||f<l;){if(r[u]===i[f]){u++,f++;continue}for(;r[s-1]===i[l-1];)s--,l--;if(s===u){const C=l<o?f?i[f-1].nextSibling:i[l-f]:g;for(;f<l;)e.insertBefore(i[f++],C)}else if(l===f)for(;u<s;)(!y||!y.has(r[u]))&&r[u].remove(),u++;else if(r[u]===i[l-1]&&i[f]===r[s-1]){const C=r[--s].nextSibling;e.insertBefore(i[f++],r[u++].nextSibling),e.insertBefore(i[--l],C),r[s]=i[l]}else{if(!y){y=new Map;let _=f;for(;_<l;)y.set(i[_],_++)}const C=y.get(r[u]);if(C!=null)if(f<C&&C<l){let _=u,$=1,M;for(;++_<s&&_<l&&!((M=y.get(r[_]))==null||M!==C+$);)$++;if($>C-f){const x=r[u];for(;f<C;)e.insertBefore(i[f++],x)}else e.replaceChild(i[f++],r[u++])}else u++;else r[u++].remove()}}}const _a="_$DX_DELEGATE";function V6(e,r,i,o={}){let s;return Ar(l=>{s=l,r===document?e():Y(r,e(),r.firstChild?null:void 0,i)},o.owner),()=>{s(),r.textContent=""}}function U(e,r,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},u=r?()=>Ht(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return u.cloneNode=u,u}function Rt(e,r=window.document){const i=r[_a]||(r[_a]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),r.addEventListener(l,q6))}}function bt(e,r,i){i==null?e.removeAttribute(r):e.setAttribute(r,i)}function Vt(e,r){r==null?e.removeAttribute("class"):e.className=r}function bn(e,r,i,o){if(o)Array.isArray(i)?(e[`$$${r}`]=i[0],e[`$$${r}Data`]=i[1]):e[`$$${r}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(r,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(r,i,typeof i!="function"&&i)}function qt(e,r,i){if(!r)return i?bt(e,"style"):r;const o=e.style;if(typeof r=="string")return o.cssText=r;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),r||(r={});let s,l;for(l in i)r[l]==null&&o.removeProperty(l),delete i[l];for(l in r)s=r[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Er(e,r,i){i!=null?e.style.setProperty(r,i):e.style.removeProperty(r)}function ei(e,r,i){return Ht(()=>e(r,i))}function Y(e,r,i,o){if(i!==void 0&&!o&&(o=[]),typeof r!="function")return Dr(e,r,o,i);Be(s=>Dr(e,r(),s,i),o)}function q6(e){let r=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=g=>Object.defineProperty(e,"target",{configurable:!0,value:g}),u=()=>{const g=r[i];if(g&&!r.disabled){const y=r[`${i}Data`];if(y!==void 0?g.call(r,y,e):g.call(r,e),e.cancelBubble)return}return r.host&&typeof r.host!="string"&&!r.host._$host&&r.contains(e.target)&&l(r.host),!0},f=()=>{for(;u()&&(r=r._$host||r.parentNode||r.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),e.composedPath){const g=e.composedPath();l(g[0]);for(let y=0;y<g.length-2&&(r=g[y],!!u());y++){if(r._$host){r=r._$host,f();break}if(r.parentNode===s)break}}else f();l(o)}function Dr(e,r,i,o,s){for(;typeof i=="function";)i=i();if(r===i)return i;const l=typeof r,u=o!==void 0;if(e=u&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(r=r.toString(),r===i))return i;if(u){let f=i[0];f&&f.nodeType===3?f.data!==r&&(f.data=r):f=document.createTextNode(r),i=g1(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=r:i=e.textContent=r}else if(r==null||l==="boolean")i=g1(e,i,o);else{if(l==="function")return Be(()=>{let f=r();for(;typeof f=="function";)f=f();i=Dr(e,f,i,o)}),()=>i;if(Array.isArray(r)){const f=[],g=i&&Array.isArray(i);if(ti(f,r,i,s))return Be(()=>i=Dr(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=g1(e,i,o),u)return i}else g?i.length===0?va(e,f,o):H6(e,i,f):(i&&g1(e),va(e,f));i=f}else if(r.nodeType){if(Array.isArray(i)){if(u)return i=g1(e,i,o,r);g1(e,i,null,r)}else i==null||i===""||!e.firstChild?e.appendChild(r):e.replaceChild(r,e.firstChild);i=r}}return i}function ti(e,r,i,o){let s=!1;for(let l=0,u=r.length;l<u;l++){let f=r[l],g=i&&i[e.length],y;if(!(f==null||f===!0||f===!1))if((y=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=ti(e,f,g)||s;else if(y==="function")if(o){for(;typeof f=="function";)f=f();s=ti(e,Array.isArray(f)?f:[f],Array.isArray(g)?g:[g])||s}else e.push(f),s=!0;else{const C=String(f);g&&g.nodeType===3&&g.data===C?e.push(g):e.push(document.createTextNode(C))}}return s}function va(e,r,i=null){for(let o=0,s=r.length;o<s;o++)e.insertBefore(r[o],i)}function g1(e,r,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(r.length){let l=!1;for(let u=r.length-1;u>=0;u--){const f=r[u];if(s!==f){const g=f.parentNode===e;!l&&!u?g?e.replaceChild(s,f):e.insertBefore(s,i):g&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function X6(){this.__data__=[],this.size=0}var J6=X6;function e3(e,r){return e===r||e!==e&&r!==r}var Ca=e3,t3=Ca;function n3(e,r){for(var i=e.length;i--;)if(t3(e[i][0],r))return i;return-1}var Rr=n3,r3=Rr,i3=Array.prototype,o3=i3.splice;function a3(e){var r=this.__data__,i=r3(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():o3.call(r,i,1),--this.size,!0}var s3=a3,l3=Rr;function c3(e){var r=this.__data__,i=l3(r,e);return i<0?void 0:r[i][1]}var u3=c3,f3=Rr;function d3(e){return f3(this.__data__,e)>-1}var h3=d3,g3=Rr;function p3(e,r){var i=this.__data__,o=g3(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var y3=p3,m3=J6,b3=s3,_3=u3,v3=h3,C3=y3;function p1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}p1.prototype.clear=m3,p1.prototype.delete=b3,p1.prototype.get=_3,p1.prototype.has=v3,p1.prototype.set=C3;var Fr=p1,x3=Fr;function w3(){this.__data__=new x3,this.size=0}var L3=w3;function $3(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var k3=$3;function S3(e){return this.__data__.get(e)}var A3=S3;function M3(e){return this.__data__.has(e)}var T3=M3,P3=typeof gn=="object"&&gn&&gn.Object===Object&&gn,xa=P3,I3=xa,O3=typeof self=="object"&&self&&self.Object===Object&&self,B3=I3||O3||Function("return this")(),cn=B3,E3=cn,D3=E3.Symbol,zr=D3,wa=zr,La=Object.prototype,R3=La.hasOwnProperty,F3=La.toString,tr=wa?wa.toStringTag:void 0;function z3(e){var r=R3.call(e,tr),i=e[tr];try{e[tr]=void 0;var o=!0}catch{}var s=F3.call(e);return o&&(r?e[tr]=i:delete e[tr]),s}var N3=z3,K3=Object.prototype,W3=K3.toString;function U3(e){return W3.call(e)}var Z3=U3,$a=zr,Q3=N3,j3=Z3,Y3="[object Null]",G3="[object Undefined]",ka=$a?$a.toStringTag:void 0;function H3(e){return e==null?e===void 0?G3:Y3:ka&&ka in Object(e)?Q3(e):j3(e)}var nr=H3;function V3(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var y1=V3,q3=nr,X3=y1,J3="[object AsyncFunction]",e8="[object Function]",t8="[object GeneratorFunction]",n8="[object Proxy]";function r8(e){if(!X3(e))return!1;var r=q3(e);return r==e8||r==t8||r==J3||r==n8}var Sa=r8,i8=cn,o8=i8["__core-js_shared__"],a8=o8,ni=a8,Aa=function(){var e=/[^.]+$/.exec(ni&&ni.keys&&ni.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function s8(e){return!!Aa&&Aa in e}var l8=s8,c8=Function.prototype,u8=c8.toString;function f8(e){if(e!=null){try{return u8.call(e)}catch{}try{return e+""}catch{}}return""}var Ma=f8,d8=Sa,h8=l8,g8=y1,p8=Ma,y8=/[\\^$.*+?()[\]{}|]/g,m8=/^\[object .+?Constructor\]$/,b8=Function.prototype,_8=Object.prototype,v8=b8.toString,C8=_8.hasOwnProperty,x8=RegExp("^"+v8.call(C8).replace(y8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w8(e){if(!g8(e)||h8(e))return!1;var r=d8(e)?x8:m8;return r.test(p8(e))}var L8=w8;function $8(e,r){return e==null?void 0:e[r]}var k8=$8,S8=L8,A8=k8;function M8(e,r){var i=A8(e,r);return S8(i)?i:void 0}var Xn=M8,T8=Xn,P8=cn,I8=T8(P8,"Map"),ri=I8,O8=Xn,B8=O8(Object,"create"),Nr=B8,Ta=Nr;function E8(){this.__data__=Ta?Ta(null):{},this.size=0}var D8=E8;function R8(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var F8=R8,z8=Nr,N8="__lodash_hash_undefined__",K8=Object.prototype,W8=K8.hasOwnProperty;function U8(e){var r=this.__data__;if(z8){var i=r[e];return i===N8?void 0:i}return W8.call(r,e)?r[e]:void 0}var Z8=U8,Q8=Nr,j8=Object.prototype,Y8=j8.hasOwnProperty;function G8(e){var r=this.__data__;return Q8?r[e]!==void 0:Y8.call(r,e)}var H8=G8,V8=Nr,q8="__lodash_hash_undefined__";function X8(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=V8&&r===void 0?q8:r,this}var J8=X8,el=D8,tl=F8,nl=Z8,rl=H8,il=J8;function m1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}m1.prototype.clear=el,m1.prototype.delete=tl,m1.prototype.get=nl,m1.prototype.has=rl,m1.prototype.set=il;var ol=m1,Pa=ol,al=Fr,sl=ri;function ll(){this.size=0,this.__data__={hash:new Pa,map:new(sl||al),string:new Pa}}var cl=ll;function ul(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var fl=ul,dl=fl;function hl(e,r){var i=e.__data__;return dl(r)?i[typeof r=="string"?"string":"hash"]:i.map}var Kr=hl,gl=Kr;function pl(e){var r=gl(this,e).delete(e);return this.size-=r?1:0,r}var yl=pl,ml=Kr;function bl(e){return ml(this,e).get(e)}var _l=bl,vl=Kr;function Cl(e){return vl(this,e).has(e)}var xl=Cl,wl=Kr;function Ll(e,r){var i=wl(this,e),o=i.size;return i.set(e,r),this.size+=i.size==o?0:1,this}var $l=Ll,kl=cl,Sl=yl,Al=_l,Ml=xl,Tl=$l;function b1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}b1.prototype.clear=kl,b1.prototype.delete=Sl,b1.prototype.get=Al,b1.prototype.has=Ml,b1.prototype.set=Tl;var Ia=b1,Pl=Fr,Il=ri,Ol=Ia,Bl=200;function El(e,r){var i=this.__data__;if(i instanceof Pl){var o=i.__data__;if(!Il||o.length<Bl-1)return o.push([e,r]),this.size=++i.size,this;i=this.__data__=new Ol(o)}return i.set(e,r),this.size=i.size,this}var Dl=El,Rl=Fr,Fl=L3,zl=k3,Nl=A3,Kl=T3,Wl=Dl;function _1(e){var r=this.__data__=new Rl(e);this.size=r.size}_1.prototype.clear=Fl,_1.prototype.delete=zl,_1.prototype.get=Nl,_1.prototype.has=Kl,_1.prototype.set=Wl;var Ul=_1;function Zl(e,r){for(var i=-1,o=e==null?0:e.length;++i<o&&r(e[i],i,e)!==!1;);return e}var Ql=Zl,jl=Xn,Yl=function(){try{var e=jl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Gl=Yl,Oa=Gl;function Hl(e,r,i){r=="__proto__"&&Oa?Oa(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}var Ba=Hl,Vl=Ba,ql=Ca,Xl=Object.prototype,Jl=Xl.hasOwnProperty;function e7(e,r,i){var o=e[r];(!(Jl.call(e,r)&&ql(o,i))||i===void 0&&!(r in e))&&Vl(e,r,i)}var ii=e7,t7=ii,n7=Ba;function r7(e,r,i,o){var s=!i;i||(i={});for(var l=-1,u=r.length;++l<u;){var f=r[l],g=o?o(i[f],e[f],f,i,e):void 0;g===void 0&&(g=e[f]),s?n7(i,f,g):t7(i,f,g)}return i}var Wr=r7;function i7(e,r){for(var i=-1,o=Array(e);++i<e;)o[i]=r(i);return o}var o7=i7;function a7(e){return e!=null&&typeof e=="object"}var v1=a7,s7=nr,l7=v1,c7="[object Arguments]";function u7(e){return l7(e)&&s7(e)==c7}var f7=u7,Ea=f7,d7=v1,Da=Object.prototype,h7=Da.hasOwnProperty,g7=Da.propertyIsEnumerable,p7=Ea(function(){return arguments}())?Ea:function(e){return d7(e)&&h7.call(e,"callee")&&!g7.call(e,"callee")},y7=p7,m7=Array.isArray,C1=m7,Ur={exports:{}};function b7(){return!1}var _7=b7;Ur.exports,function(e,r){var i=cn,o=_7,s=r&&!r.nodeType&&r,l=s&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===s,f=u?i.Buffer:void 0,g=f?f.isBuffer:void 0,y=g||o;e.exports=y}(Ur,Ur.exports);var Ra=Ur.exports,v7=9007199254740991,C7=/^(?:0|[1-9]\d*)$/;function x7(e,r){var i=typeof e;return r=r??v7,!!r&&(i=="number"||i!="symbol"&&C7.test(e))&&e>-1&&e%1==0&&e<r}var Fa=x7,w7=9007199254740991;function L7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=w7}var za=L7,$7=nr,k7=za,S7=v1,A7="[object Arguments]",M7="[object Array]",T7="[object Boolean]",P7="[object Date]",I7="[object Error]",O7="[object Function]",B7="[object Map]",E7="[object Number]",D7="[object Object]",R7="[object RegExp]",F7="[object Set]",z7="[object String]",N7="[object WeakMap]",K7="[object ArrayBuffer]",W7="[object DataView]",U7="[object Float32Array]",Z7="[object Float64Array]",Q7="[object Int8Array]",j7="[object Int16Array]",Y7="[object Int32Array]",G7="[object Uint8Array]",H7="[object Uint8ClampedArray]",V7="[object Uint16Array]",q7="[object Uint32Array]",We={};We[U7]=We[Z7]=We[Q7]=We[j7]=We[Y7]=We[G7]=We[H7]=We[V7]=We[q7]=!0,We[A7]=We[M7]=We[K7]=We[T7]=We[W7]=We[P7]=We[I7]=We[O7]=We[B7]=We[E7]=We[D7]=We[R7]=We[F7]=We[z7]=We[N7]=!1;function X7(e){return S7(e)&&k7(e.length)&&!!We[$7(e)]}var J7=X7;function ec(e){return function(r){return e(r)}}var oi=ec,Zr={exports:{}};Zr.exports,function(e,r){var i=xa,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l&&i.process,f=function(){try{var g=s&&s.require&&s.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();e.exports=f}(Zr,Zr.exports);var ai=Zr.exports,tc=J7,nc=oi,Na=ai,Ka=Na&&Na.isTypedArray,rc=Ka?nc(Ka):tc,ic=rc,oc=o7,ac=y7,sc=C1,lc=Ra,cc=Fa,uc=ic,fc=Object.prototype,dc=fc.hasOwnProperty;function hc(e,r){var i=sc(e),o=!i&&ac(e),s=!i&&!o&&lc(e),l=!i&&!o&&!s&&uc(e),u=i||o||s||l,f=u?oc(e.length,String):[],g=f.length;for(var y in e)(r||dc.call(e,y))&&!(u&&(y=="length"||s&&(y=="offset"||y=="parent")||l&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||cc(y,g)))&&f.push(y);return f}var Wa=hc,gc=Object.prototype;function pc(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||gc;return e===i}var si=pc;function yc(e,r){return function(i){return e(r(i))}}var Ua=yc,mc=Ua,bc=mc(Object.keys,Object),_c=bc,vc=si,Cc=_c,xc=Object.prototype,wc=xc.hasOwnProperty;function Lc(e){if(!vc(e))return Cc(e);var r=[];for(var i in Object(e))wc.call(e,i)&&i!="constructor"&&r.push(i);return r}var $c=Lc,kc=Sa,Sc=za;function Ac(e){return e!=null&&Sc(e.length)&&!kc(e)}var Za=Ac,Mc=Wa,Tc=$c,Pc=Za;function Ic(e){return Pc(e)?Mc(e):Tc(e)}var li=Ic,Oc=Wr,Bc=li;function Ec(e,r){return e&&Oc(r,Bc(r),e)}var Dc=Ec;function Rc(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var Fc=Rc,zc=y1,Nc=si,Kc=Fc,Wc=Object.prototype,Uc=Wc.hasOwnProperty;function Zc(e){if(!zc(e))return Kc(e);var r=Nc(e),i=[];for(var o in e)o=="constructor"&&(r||!Uc.call(e,o))||i.push(o);return i}var Qc=Zc,jc=Wa,Yc=Qc,Gc=Za;function Hc(e){return Gc(e)?jc(e,!0):Yc(e)}var ci=Hc,Vc=Wr,qc=ci;function Xc(e,r){return e&&Vc(r,qc(r),e)}var Jc=Xc,Qr={exports:{}};Qr.exports,function(e,r){var i=cn,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l?i.Buffer:void 0,f=u?u.allocUnsafe:void 0;function g(y,C){if(C)return y.slice();var _=y.length,$=f?f(_):new y.constructor(_);return y.copy($),$}e.exports=g}(Qr,Qr.exports);var e4=Qr.exports;function t4(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i<o;)r[i]=e[i];return r}var n4=t4;function r4(e,r){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var u=e[i];r(u,i,e)&&(l[s++]=u)}return l}var i4=r4;function o4(){return[]}var Qa=o4,a4=i4,s4=Qa,l4=Object.prototype,c4=l4.propertyIsEnumerable,ja=Object.getOwnPropertySymbols,u4=ja?function(e){return e==null?[]:(e=Object(e),a4(ja(e),function(r){return c4.call(e,r)}))}:s4,ui=u4,f4=Wr,d4=ui;function h4(e,r){return f4(e,d4(e),r)}var g4=h4;function p4(e,r){for(var i=-1,o=r.length,s=e.length;++i<o;)e[s+i]=r[i];return e}var Ya=p4,y4=Ua,m4=y4(Object.getPrototypeOf,Object),Ga=m4,b4=Ya,_4=Ga,v4=ui,C4=Qa,x4=Object.getOwnPropertySymbols,w4=x4?function(e){for(var r=[];e;)b4(r,v4(e)),e=_4(e);return r}:C4,Ha=w4,L4=Wr,$4=Ha;function k4(e,r){return L4(e,$4(e),r)}var S4=k4,A4=Ya,M4=C1;function T4(e,r,i){var o=r(e);return M4(e)?o:A4(o,i(e))}var Va=T4,P4=Va,I4=ui,O4=li;function B4(e){return P4(e,O4,I4)}var E4=B4,D4=Va,R4=Ha,F4=ci;function z4(e){return D4(e,F4,R4)}var N4=z4,K4=Xn,W4=cn,U4=K4(W4,"DataView"),Z4=U4,Q4=Xn,j4=cn,Y4=Q4(j4,"Promise"),G4=Y4,H4=Xn,V4=cn,q4=H4(V4,"Set"),X4=q4,J4=Xn,eu=cn,tu=J4(eu,"WeakMap"),nu=tu,fi=Z4,di=ri,hi=G4,gi=X4,pi=nu,qa=nr,x1=Ma,Xa="[object Map]",ru="[object Object]",Ja="[object Promise]",e9="[object Set]",t9="[object WeakMap]",n9="[object DataView]",iu=x1(fi),ou=x1(di),au=x1(hi),su=x1(gi),lu=x1(pi),Jn=qa;(fi&&Jn(new fi(new ArrayBuffer(1)))!=n9||di&&Jn(new di)!=Xa||hi&&Jn(hi.resolve())!=Ja||gi&&Jn(new gi)!=e9||pi&&Jn(new pi)!=t9)&&(Jn=function(e){var r=qa(e),i=r==ru?e.constructor:void 0,o=i?x1(i):"";if(o)switch(o){case iu:return n9;case ou:return Xa;case au:return Ja;case su:return e9;case lu:return t9}return r});var yi=Jn,cu=Object.prototype,uu=cu.hasOwnProperty;function fu(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&uu.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var du=fu,hu=cn,gu=hu.Uint8Array,pu=gu,r9=pu;function yu(e){var r=new e.constructor(e.byteLength);return new r9(r).set(new r9(e)),r}var mi=yu,mu=mi;function bu(e,r){var i=r?mu(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var _u=bu,vu=/\w*$/;function Cu(e){var r=new e.constructor(e.source,vu.exec(e));return r.lastIndex=e.lastIndex,r}var xu=Cu,i9=zr,o9=i9?i9.prototype:void 0,a9=o9?o9.valueOf:void 0;function wu(e){return a9?Object(a9.call(e)):{}}var Lu=wu,$u=mi;function ku(e,r){var i=r?$u(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Su=ku,Au=mi,Mu=_u,Tu=xu,Pu=Lu,Iu=Su,Ou="[object Boolean]",Bu="[object Date]",Eu="[object Map]",Du="[object Number]",Ru="[object RegExp]",Fu="[object Set]",zu="[object String]",Nu="[object Symbol]",Ku="[object ArrayBuffer]",Wu="[object DataView]",Uu="[object Float32Array]",Zu="[object Float64Array]",Qu="[object Int8Array]",ju="[object Int16Array]",Yu="[object Int32Array]",Gu="[object Uint8Array]",Hu="[object Uint8ClampedArray]",Vu="[object Uint16Array]",qu="[object Uint32Array]";function Xu(e,r,i){var o=e.constructor;switch(r){case Ku:return Au(e);case Ou:case Bu:return new o(+e);case Wu:return Mu(e,i);case Uu:case Zu:case Qu:case ju:case Yu:case Gu:case Hu:case Vu:case qu:return Iu(e,i);case Eu:return new o;case Du:case zu:return new o(e);case Ru:return Tu(e);case Fu:return new o;case Nu:return Pu(e)}}var Ju=Xu,ef=y1,s9=Object.create,tf=function(){function e(){}return function(r){if(!ef(r))return{};if(s9)return s9(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),nf=tf,rf=nf,of=Ga,af=si;function sf(e){return typeof e.constructor=="function"&&!af(e)?rf(of(e)):{}}var lf=sf,cf=yi,uf=v1,ff="[object Map]";function df(e){return uf(e)&&cf(e)==ff}var hf=df,gf=hf,pf=oi,l9=ai,c9=l9&&l9.isMap,yf=c9?pf(c9):gf,mf=yf,bf=yi,_f=v1,vf="[object Set]";function Cf(e){return _f(e)&&bf(e)==vf}var xf=Cf,wf=xf,Lf=oi,u9=ai,f9=u9&&u9.isSet,$f=f9?Lf(f9):wf,kf=$f,Sf=Ul,Af=Ql,Mf=ii,Tf=Dc,Pf=Jc,If=e4,Of=n4,Bf=g4,Ef=S4,Df=E4,Rf=N4,Ff=yi,zf=du,Nf=Ju,Kf=lf,Wf=C1,Uf=Ra,Zf=mf,Qf=y1,jf=kf,Yf=li,Gf=ci,Hf=1,Vf=2,qf=4,d9="[object Arguments]",Xf="[object Array]",Jf="[object Boolean]",ed="[object Date]",td="[object Error]",h9="[object Function]",nd="[object GeneratorFunction]",rd="[object Map]",id="[object Number]",g9="[object Object]",od="[object RegExp]",ad="[object Set]",sd="[object String]",ld="[object Symbol]",cd="[object WeakMap]",ud="[object ArrayBuffer]",fd="[object DataView]",dd="[object Float32Array]",hd="[object Float64Array]",gd="[object Int8Array]",pd="[object Int16Array]",yd="[object Int32Array]",md="[object Uint8Array]",bd="[object Uint8ClampedArray]",_d="[object Uint16Array]",vd="[object Uint32Array]",Re={};Re[d9]=Re[Xf]=Re[ud]=Re[fd]=Re[Jf]=Re[ed]=Re[dd]=Re[hd]=Re[gd]=Re[pd]=Re[yd]=Re[rd]=Re[id]=Re[g9]=Re[od]=Re[ad]=Re[sd]=Re[ld]=Re[md]=Re[bd]=Re[_d]=Re[vd]=!0,Re[td]=Re[h9]=Re[cd]=!1;function jr(e,r,i,o,s,l){var u,f=r&Hf,g=r&Vf,y=r&qf;if(i&&(u=s?i(e,o,s,l):i(e)),u!==void 0)return u;if(!Qf(e))return e;var C=Wf(e);if(C){if(u=zf(e),!f)return Of(e,u)}else{var _=Ff(e),$=_==h9||_==nd;if(Uf(e))return If(e,f);if(_==g9||_==d9||$&&!s){if(u=g||$?{}:Kf(e),!f)return g?Ef(e,Pf(u,e)):Bf(e,Tf(u,e))}else{if(!Re[_])return s?e:{};u=Nf(e,_,f)}}l||(l=new Sf);var M=l.get(e);if(M)return M;l.set(e,u),jf(e)?e.forEach(function(k){u.add(jr(k,r,i,k,e,l))}):Zf(e)&&e.forEach(function(k,S){u.set(S,jr(k,r,i,S,e,l))});var x=y?g?Rf:Df:g?Gf:Yf,T=C?void 0:x(e);return Af(T||e,function(k,S){T&&(S=k,k=e[S]),Mf(u,S,jr(k,r,i,S,e,l))}),u}var Cd=jr,xd=Cd,wd=1,Ld=4;function $d(e){return xd(e,wd|Ld)}var kd=$d;const Sd=Y0(kd);var Ad=nr,Md=v1,Td="[object Symbol]";function Pd(e){return typeof e=="symbol"||Md(e)&&Ad(e)==Td}var bi=Pd,Id=C1,Od=bi,Bd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ed=/^\w*$/;function Dd(e,r){if(Id(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Od(e)?!0:Ed.test(e)||!Bd.test(e)||r!=null&&e in Object(r)}var Rd=Dd,p9=Ia,Fd="Expected a function";function _i(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Fd);var i=function(){var o=arguments,s=r?r.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var u=e.apply(this,o);return i.cache=l.set(s,u)||l,u};return i.cache=new(_i.Cache||p9),i}_i.Cache=p9;var zd=_i,Nd=zd,Kd=500;function Wd(e){var r=Nd(e,function(o){return i.size===Kd&&i.clear(),o}),i=r.cache;return r}var Ud=Wd,Zd=Ud,Qd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jd=/\\(\\)?/g,Yd=Zd(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Qd,function(i,o,s,l){r.push(s?l.replace(jd,"$1"):o||i)}),r}),Gd=Yd;function Hd(e,r){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=r(e[i],i,e);return s}var Vd=Hd,y9=zr,qd=Vd,Xd=C1,Jd=bi,eh=1/0,m9=y9?y9.prototype:void 0,b9=m9?m9.toString:void 0;function _9(e){if(typeof e=="string")return e;if(Xd(e))return qd(e,_9)+"";if(Jd(e))return b9?b9.call(e):"";var r=e+"";return r=="0"&&1/e==-eh?"-0":r}var th=_9,nh=th;function rh(e){return e==null?"":nh(e)}var ih=rh,oh=C1,ah=Rd,sh=Gd,lh=ih;function ch(e,r){return oh(e)?e:ah(e,r)?[e]:sh(lh(e))}var uh=ch,fh=bi,dh=1/0;function hh(e){if(typeof e=="string"||fh(e))return e;var r=e+"";return r=="0"&&1/e==-dh?"-0":r}var gh=hh,ph=ii,yh=uh,mh=Fa,v9=y1,bh=gh;function _h(e,r,i,o){if(!v9(e))return e;r=yh(r,e);for(var s=-1,l=r.length,u=l-1,f=e;f!=null&&++s<l;){var g=bh(r[s]),y=i;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(s!=u){var C=f[g];y=o?o(C,g,f):void 0,y===void 0&&(y=v9(C)?C:mh(r[s+1])?[]:{})}ph(f,g,y),f=f[g]}return e}var vh=_h,Ch=vh;function xh(e,r,i){return e==null?e:Ch(e,r,i)}var wh=xh;const rr=Y0(wh);var Lh=U("<button>");const $h=e=>(()=>{var r=Lh();return bn(r,"click",e.onClick,!0),Y(r,()=>e.children),Be(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=qt(r,o,i.e),s!==i.t&&Vt(r,i.t=s),i},{e:void 0,t:void 0}),r})();Rt(["click"]);var kh=U('<svg viewBox="0 0 1024 1024"class=icon><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m-353.706667 567.04a42.496 42.496 0 0 1-60.16 0L243.626667 541.866667c-8.106667-8.106667-12.373333-18.773333-12.373334-29.866667s4.693333-22.186667 12.373334-29.866667a42.496 42.496 0 0 1 60.16 0L426.666667 604.586667l293.546666-293.546667a42.496 42.496 0 1 1 60.16 60.16l-323.413333 323.84z">'),Sh=U('<svg viewBox="0 0 1024 1024"class=icon><path d="M245.333333 128h533.333334A117.333333 117.333333 0 0 1 896 245.333333v533.333334A117.333333 117.333333 0 0 1 778.666667 896H245.333333A117.333333 117.333333 0 0 1 128 778.666667V245.333333A117.333333 117.333333 0 0 1 245.333333 128z m0 64c-29.44 0-53.333333 23.893333-53.333333 53.333333v533.333334c0 29.44 23.893333 53.333333 53.333333 53.333333h533.333334c29.44 0 53.333333-23.893333 53.333333-53.333333V245.333333c0-29.44-23.893333-53.333333-53.333333-53.333333H245.333333z">'),Ah=U("<div>"),Mh=U("<span class=label>");const Th=()=>kh(),Ph=()=>Sh(),C9=e=>{const[r,i]=G(e.checked??!1);return sn(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=Ah();return o.$$click=s=>{const l=!r();e.onChange&&e.onChange(l),i(l)},Y(o,(()=>{var s=et(()=>!!r());return()=>s()?X(Th,{}):X(Ph,{})})(),null),Y(o,(()=>{var s=et(()=>!!e.label);return()=>s()&&(()=>{var l=Mh();return Y(l,()=>e.label),l})()})(),null),Be(s=>{var l=e.style,u=`klinecharts-pro-checkbox ${r()&&"checked"||""} ${e.class||""}`;return s.e=qt(o,l,s.e),u!==s.t&&Vt(o,s.t=u),s},{e:void 0,t:void 0}),o})()};Rt(["click"]);var Ih=U("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const x9=()=>Ih();var Oh=U('<div class=klinecharts-pro-empty><svg class=icon viewBox="0 0 1024 1024"><path d="M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z">');const Bh=()=>Oh();var Eh=U("<ul>"),Dh=U("<li>");const Yr=e=>(()=>{var r=Eh();return Y(r,X(ct,{get when(){return e.loading},get children(){return X(x9,{})}}),null),Y(r,X(ct,{get when(){var i;return et(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return X(Bh,{})}}),null),Y(r,X(ct,{get when(){return e.children},get children(){return e.children}}),null),Y(r,X(ct,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(o=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,o))??Dh()})}}),null),Be(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=qt(r,o,i.e),s!==i.t&&Vt(r,i.t=s),i},{e:void 0,t:void 0}),r})();var Rh=U('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),Fh=U("<div class=button-container>");const w1=e=>{const r=o=>{var s;o.target&&o.target.classList.contains("klinecharts-pro-modal")&&((s=e.onClose)==null||s.call(e))},i={};return e.width!=null&&(i.width=`${e.width}px`,i["max-width"]=`${e.width}px`),e.height!=null&&(i.height=`${e.height}px`,i["max-height"]=`${e.height}px`),(()=>{var o=Rh(),s=o.firstChild,l=s.firstChild,u=l.firstChild,f=l.nextSibling;return o.$$click=r,Y(l,()=>e.title,u),bn(u,"click",e.onClose,!0),Y(f,()=>e.children),Y(s,(()=>{var g=et(()=>!!(e.buttons&&e.buttons.length>0));return()=>g()&&(()=>{var y=Fh();return Y(y,()=>e.buttons.map(C=>X($h,ba(C,{get children(){return C.children}})))),y})()})(),null),Be(g=>{var y=`inner${e.height!=null?" inner--fixed-height":""}`,C=i;return y!==g.e&&Vt(s,g.e=y),g.t=qt(s,C,g.t),g},{e:void 0,t:void 0}),o})()};Rt(["click"]);var zh=U("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),Nh=U("<div class=drop-down-container><ul>"),Kh=U("<li>");const w9=e=>{const[r,i]=G(!1);return(()=>{var o=zh(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",u=>{i(!1)}),o.$$click=u=>{i(f=>!f)},Y(l,()=>e.value),Y(o,(()=>{var u=et(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>u()&&(()=>{var f=Nh(),g=f.firstChild;return Y(g,()=>e.dataSource.map(y=>{const _=y[e.valueKey??"text"]??y;return(()=>{var $=Kh();return $.$$click=M=>{var x;M.stopPropagation(),e.value!==_&&((x=e.onSelected)==null||x.call(e,y)),i(!1)},Y($,_),$})()})),f})()})(),null),Be(u=>{var f=e.style,g=`klinecharts-pro-select ${e.class??""} ${r()?"klinecharts-pro-select-show":""}`;return u.e=qt(o,f,u.e),g!==u.t&&Vt(o,u.t=g),u},{e:void 0,t:void 0}),o})()};Rt(["click"]);var Wh=U("<span class=prefix>"),Uh=U("<span class=suffix>"),Zh=U("<div><input id=myInput class=value>");const[Qh,ak]=G("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),L9=e=>{const r=ba({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=G("normal"),l=u=>{u&&u.focus()};return sn(()=>{l(document.querySelector("#myInput"))}),(()=>{var u=Zh(),f=u.firstChild;u.$$click=()=>{i==null||i.focus()},Y(u,X(ct,{get when(){return r.prefix},get children(){var y=Wh();return Y(y,()=>r.prefix),y}}),f),bn(f,"keydown",r.onKeyDown,!0),f.addEventListener("change",y=>{var _,$;const C=y.target.value;if("precision"in r){let M;const x=Math.max(0,Math.floor(r.precision));x<=0?M=new RegExp(/^[1-9]\d*$/):M=new RegExp("^\\d+\\.?\\d{0,"+x+"}$"),(C===""||M.test(C)&&+C>=r.min&&+C<=r.max)&&((_=r.onChange)==null||_.call(r,C===""?C:+C))}else($=r.onChange)==null||$.call(r,C)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var g=i;return typeof g=="function"?ei(g,f):i=f,Y(u,X(ct,{get when(){return r.suffix},get children(){var y=Uh();return Y(y,()=>r.suffix),y}}),null),Be(y=>{var C=r.style,_=`${Qh()}${r.class??""}`,$=o(),M=r.placeholder??"",x=r.focus===!0?r.focus:!1;return y.e=qt(u,C,y.e),_!==y.t&&Vt(u,y.t=_),$!==y.a&&bt(u,"data-status",y.a=$),M!==y.o&&bt(f,"placeholder",y.o=M),x!==y.i&&(f.autofocus=y.i=x),y},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Be(()=>f.value=r.value),u})()};Rt(["click","keydown"]);var jh=U("<div><i class=thumb>");const Yh=e=>(()=>{var r=jh();return r.$$click=i=>{e.onChange&&e.onChange()},Be(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=qt(r,o,i.e),s!==i.t&&Vt(r,i.t=s),i},{e:void 0,t:void 0}),r})();Rt(["click"]);const{min:Gh,max:Hh}=Math,e1=(e,r=0,i=1)=>Gh(Hh(r,e),i),vi=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=e1(e[r],0,255)):r===3&&(e[r]=e1(e[r],0,1));return e},$9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])$9[`[object ${e}]`]=e.toLowerCase();function we(e){return $9[Object.prototype.toString.call(e)]||"object"}const me=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):we(e[0])=="object"&&r?r.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),L1=e=>{if(e.length<2)return null;const r=e.length-1;return we(e[r])=="string"?e[r].toLowerCase():null},{PI:Gr,min:k9,max:S9}=Math,Ft=e=>Math.round(e*100)/100,Ci=e=>Math.round(e*100)/100,_n=Gr*2,xi=Gr/3,Vh=Gr/180,qh=180/Gr;function A9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const he={format:{},autodetect:[]};let K=class{constructor(...r){const i=this;if(we(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=L1(r),s=!1;if(!o){s=!0,he.sorted||(he.autodetect=he.autodetect.sort((l,u)=>u.p-l.p),he.sorted=!0);for(let l of he.autodetect)if(o=l.test(...r),o)break}if(he.format[o]){const l=he.format[o].apply(null,s?r:r.slice(0,-1));i._rgb=vi(l)}else throw new Error("unknown format: "+r);i._rgb.length===3&&i._rgb.push(1)}toString(){return we(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Xh="3.2.0",de=(...e)=>new K(...e);de.version=Xh;const $1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Jh=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,eg=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,M9=e=>{if(e.match(Jh)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),i=r>>16,o=r>>8&255,s=r&255;return[i,o,s,1]}if(e.match(eg)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),i=r>>24&255,o=r>>16&255,s=r>>8&255,l=Math.round((r&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:Hr}=Math,T9=(...e)=>{let[r,i,o,s]=me(e,"rgba"),l=L1(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),r=Hr(r),i=Hr(i),o=Hr(o);let f="000000"+(r<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let g="0"+Hr(s*255).toString(16);switch(g=g.substr(g.length-2),l.toLowerCase()){case"rgba":return`#${f}${g}`;case"argb":return`#${g}${f}`;default:return`#${f}`}};K.prototype.name=function(){const e=T9(this._rgb,"rgb");for(let r of Object.keys($1))if($1[r]===e)return r.toLowerCase();return e},he.format.named=e=>{if(e=e.toLowerCase(),$1[e])return M9($1[e]);throw new Error("unknown color name: "+e)},he.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&we(e)==="string"&&$1[e.toLowerCase()])return"named"}}),K.prototype.alpha=function(e,r=!1){return e!==void 0&&we(e)==="number"?r?(this._rgb[3]=e,this):new K([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},K.prototype.clipped=function(){return this._rgb._clipped||!1};const un={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},tg=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function vn(e){const r=tg.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);un.labWhitePoint=e,un.Xn=r[0],un.Zn=r[1]}function ir(){return un.labWhitePoint}const wi=(...e)=>{e=me(e,"lab");const[r,i,o]=e,[s,l,u]=ng(r,i,o),[f,g,y]=P9(s,l,u);return[f,g,y,e.length>3?e[3]:1]},ng=(e,r,i)=>{const{kE:o,kK:s,kKE:l,Xn:u,Yn:f,Zn:g}=un,y=(e+16)/116,C=.002*r+y,_=y-.005*i,$=C*C*C,M=_*_*_,x=$>o?$:(116*C-16)/s,T=e>l?Math.pow((e+16)/116,3):e/s,k=M>o?M:(116*_-16)/s,S=x*u,D=T*f,F=k*g;return[S,D,F]},Li=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},P9=(e,r,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:u,Xn:f,Yn:g,Zn:y}=un,C=f*o.m00+g*o.m10+y*o.m20,_=f*o.m01+g*o.m11+y*o.m21,$=f*o.m02+g*o.m12+y*o.m22,M=u.X*o.m00+u.Y*o.m10+u.Z*o.m20,x=u.X*o.m01+u.Y*o.m11+u.Z*o.m21,T=u.X*o.m02+u.Y*o.m12+u.Z*o.m22,k=(e*o.m00+r*o.m10+i*o.m20)*(M/C),S=(e*o.m01+r*o.m11+i*o.m21)*(x/_),D=(e*o.m02+r*o.m12+i*o.m22)*(T/$),F=k*s.m00+S*s.m10+D*s.m20,P=k*s.m01+S*s.m11+D*s.m21,z=k*s.m02+S*s.m12+D*s.m22,q=Li(F*l.m00+P*l.m10+z*l.m20),Z=Li(F*l.m01+P*l.m11+z*l.m21),O=Li(F*l.m02+P*l.m12+z*l.m22);return[q*255,Z*255,O*255]},$i=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),[l,u,f]=I9(r,i,o),[g,y,C]=rg(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]};function rg(e,r,i){const{Xn:o,Yn:s,Zn:l,kE:u,kK:f}=un,g=e/o,y=r/s,C=i/l,_=g>u?Math.pow(g,1/3):(f*g+16)/116,$=y>u?Math.pow(y,1/3):(f*y+16)/116,M=C>u?Math.pow(C,1/3):(f*C+16)/116;return[116*$-16,500*(_-$),200*($-M)]}function ki(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const I9=(e,r,i)=>{e=ki(e/255),r=ki(r/255),i=ki(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:u,Yn:f,Zn:g,As:y,Bs:C,Cs:_}=un;let $=e*o.m00+r*o.m10+i*o.m20,M=e*o.m01+r*o.m11+i*o.m21,x=e*o.m02+r*o.m12+i*o.m22;const T=u*s.m00+f*s.m10+g*s.m20,k=u*s.m01+f*s.m11+g*s.m21,S=u*s.m02+f*s.m12+g*s.m22;let D=$*s.m00+M*s.m10+x*s.m20,F=$*s.m01+M*s.m11+x*s.m21,P=$*s.m02+M*s.m12+x*s.m22;return D*=T/y,F*=k/C,P*=S/_,$=D*l.m00+F*l.m10+P*l.m20,M=D*l.m01+F*l.m11+P*l.m21,x=D*l.m02+F*l.m12+P*l.m22,[$,M,x]};K.prototype.lab=function(){return $i(this._rgb)},Object.assign(de,{lab:(...e)=>new K(...e,"lab"),getLabWhitePoint:ir,setLabWhitePoint:vn}),he.format.lab=wi,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),we(e)==="array"&&e.length===3)return"lab"}}),K.prototype.darken=function(e=1){const r=this,i=r.lab();return i[0]-=un.Kn*e,new K(i,"lab").alpha(r.alpha(),!0)},K.prototype.brighten=function(e=1){return this.darken(-e)},K.prototype.darker=K.prototype.darken,K.prototype.brighter=K.prototype.brighten,K.prototype.get=function(e){const[r,i]=e.split("."),o=this[r]();if(i){const s=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${r}`)}else return o};const{pow:ig}=Math,og=1e-7,ag=20;K.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&we(e)==="number"){if(e===0)return new K([0,0,0,this._rgb[3]],"rgb");if(e===1)return new K([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=ag;const s=(u,f)=>{const g=u.interpolate(f,.5,r),y=g.luminance();return Math.abs(e-y)<og||!o--?g:y>e?s(u,g):s(g,f)},l=(i>e?s(new K([0,0,0]),this):s(this,new K([255,255,255]))).rgb();return new K([...l,this._rgb[3]])}return sg(...this._rgb.slice(0,3))};const sg=(e,r,i)=>(e=Si(e),r=Si(r),i=Si(i),.2126*e+.7152*r+.0722*i),Si=e=>(e/=255,e<=.03928?e/12.92:ig((e+.055)/1.055,2.4)),gt={},k1=(e,r,i=.5,...o)=>{let s=o[0]||"lrgb";if(!gt[s]&&!o.length&&(s=Object.keys(gt)[0]),!gt[s])throw new Error(`interpolation mode ${s} is not defined`);return we(e)!=="object"&&(e=new K(e)),we(r)!=="object"&&(r=new K(r)),gt[s](e,r,i).alpha(e.alpha()+i*(r.alpha()-e.alpha()))};K.prototype.mix=K.prototype.interpolate=function(e,r=.5,...i){return k1(this,e,r,...i)},K.prototype.premultiply=function(e=!1){const r=this._rgb,i=r[3];return e?(this._rgb=[r[0]*i,r[1]*i,r[2]*i,i],this):new K([r[0]*i,r[1]*i,r[2]*i,i],"rgb")};const{sin:lg,cos:cg}=Math,O9=(...e)=>{let[r,i,o]=me(e,"lch");return isNaN(o)&&(o=0),o=o*Vh,[r,cg(o)*i,lg(o)*i]},Ai=(...e)=>{e=me(e,"lch");const[r,i,o]=e,[s,l,u]=O9(r,i,o),[f,g,y]=wi(s,l,u);return[f,g,y,e.length>3?e[3]:1]},ug=(...e)=>{const r=A9(me(e,"hcl"));return Ai(...r)},{sqrt:fg,atan2:dg,round:hg}=Math,B9=(...e)=>{const[r,i,o]=me(e,"lab"),s=fg(i*i+o*o);let l=(dg(o,i)*qh+360)%360;return hg(s*1e4)===0&&(l=Number.NaN),[r,s,l]},Mi=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),[l,u,f]=$i(r,i,o),[g,y,C]=B9(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]};K.prototype.lch=function(){return Mi(this._rgb)},K.prototype.hcl=function(){return A9(Mi(this._rgb))},Object.assign(de,{lch:(...e)=>new K(...e,"lch"),hcl:(...e)=>new K(...e,"hcl")}),he.format.lch=Ai,he.format.hcl=ug,["lch","hcl"].forEach(e=>he.autodetect.push({p:2,test:(...r)=>{if(r=me(r,e),we(r)==="array"&&r.length===3)return e}})),K.prototype.saturate=function(e=1){const r=this,i=r.lch();return i[1]+=un.Kn*e,i[1]<0&&(i[1]=0),new K(i,"lch").alpha(r.alpha(),!0)},K.prototype.desaturate=function(e=1){return this.saturate(-e)},K.prototype.set=function(e,r,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const u=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(u>-1){if(we(r)=="string")switch(r.charAt(0)){case"+":l[u]+=+r;break;case"-":l[u]+=+r;break;case"*":l[u]*=+r.substr(1);break;case"/":l[u]/=+r.substr(1);break;default:l[u]=+r}else if(we(r)==="number")l[u]=r;else throw new Error("unsupported value for Color.set");const f=new K(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},K.prototype.tint=function(e=.5,...r){return k1(this,"white",e,...r)},K.prototype.shade=function(e=.5,...r){return k1(this,"black",e,...r)};const gg=(e,r,i)=>{const o=e._rgb,s=r._rgb;return new K(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};gt.rgb=gg;const{sqrt:Ti,pow:S1}=Math,pg=(e,r,i)=>{const[o,s,l]=e._rgb,[u,f,g]=r._rgb;return new K(Ti(S1(o,2)*(1-i)+S1(u,2)*i),Ti(S1(s,2)*(1-i)+S1(f,2)*i),Ti(S1(l,2)*(1-i)+S1(g,2)*i),"rgb")};gt.lrgb=pg;const yg=(e,r,i)=>{const o=e.lab(),s=r.lab();return new K(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};gt.lab=yg;const A1=(e,r,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=r.hsl()):o==="hsv"?(s=e.hsv(),l=r.hsv()):o==="hcg"?(s=e.hcg(),l=r.hcg()):o==="hsi"?(s=e.hsi(),l=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=r.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=r.oklch().reverse());let u,f,g,y,C,_;(o.substr(0,1)==="h"||o==="oklch")&&([u,g,C]=s,[f,y,_]=l);let $,M,x,T;return!isNaN(u)&&!isNaN(f)?(f>u&&f-u>180?T=f-(u+360):f<u&&u-f>180?T=f+360-u:T=f-u,M=u+i*T):isNaN(u)?isNaN(f)?M=Number.NaN:(M=f,(C==1||C==0)&&o!="hsv"&&($=y)):(M=u,(_==1||_==0)&&o!="hsv"&&($=g)),$===void 0&&($=g+i*(y-g)),x=C+i*(_-C),o==="oklch"?new K([x,$,M],o):new K([M,$,x],o)},E9=(e,r,i)=>A1(e,r,i,"lch");gt.lch=E9,gt.hcl=E9;const mg=e=>{if(we(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,i=e>>8&255,o=e&255;return[r,i,o,1]}throw new Error("unknown num color: "+e)},bg=(...e)=>{const[r,i,o]=me(e,"rgb");return(r<<16)+(i<<8)+o};K.prototype.num=function(){return bg(this._rgb)},Object.assign(de,{num:(...e)=>new K(...e,"num")}),he.format.num=mg,he.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&we(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const _g=(e,r,i)=>{const o=e.num(),s=r.num();return new K(o+i*(s-o),"num")};gt.num=_g;const{floor:vg}=Math,Cg=(...e)=>{e=me(e,"hcg");let[r,i,o]=e,s,l,u;o=o*255;const f=i*255;if(i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const g=vg(r),y=r-g,C=o*(1-i),_=C+f*(1-y),$=C+f*y,M=C+f;switch(g){case 0:[s,l,u]=[M,$,C];break;case 1:[s,l,u]=[_,M,C];break;case 2:[s,l,u]=[C,M,$];break;case 3:[s,l,u]=[C,_,M];break;case 4:[s,l,u]=[$,C,M];break;case 5:[s,l,u]=[M,C,_];break}}return[s,l,u,e.length>3?e[3]:1]},xg=(...e)=>{const[r,i,o]=me(e,"rgb"),s=k9(r,i,o),l=S9(r,i,o),u=l-s,f=u*100/255,g=s/(255-u)*100;let y;return u===0?y=Number.NaN:(r===l&&(y=(i-o)/u),i===l&&(y=2+(o-r)/u),o===l&&(y=4+(r-i)/u),y*=60,y<0&&(y+=360)),[y,f,g]};K.prototype.hcg=function(){return xg(this._rgb)};const wg=(...e)=>new K(...e,"hcg");de.hcg=wg,he.format.hcg=Cg,he.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),we(e)==="array"&&e.length===3)return"hcg"}});const Lg=(e,r,i)=>A1(e,r,i,"hcg");gt.hcg=Lg;const{cos:M1}=Math,$g=(...e)=>{e=me(e,"hsi");let[r,i,o]=e,s,l,u;return isNaN(r)&&(r=0),isNaN(i)&&(i=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(u=(1-i)/3,s=(1+i*M1(_n*r)/M1(xi-_n*r))/3,l=1-(u+s)):r<2/3?(r-=1/3,s=(1-i)/3,l=(1+i*M1(_n*r)/M1(xi-_n*r))/3,u=1-(s+l)):(r-=2/3,l=(1-i)/3,u=(1+i*M1(_n*r)/M1(xi-_n*r))/3,s=1-(l+u)),s=e1(o*s*3),l=e1(o*l*3),u=e1(o*u*3),[s*255,l*255,u*255,e.length>3?e[3]:1]},{min:kg,sqrt:Sg,acos:Ag}=Math,Mg=(...e)=>{let[r,i,o]=me(e,"rgb");r/=255,i/=255,o/=255;let s;const l=kg(r,i,o),u=(r+i+o)/3,f=u>0?1-l/u:0;return f===0?s=NaN:(s=(r-i+(r-o))/2,s/=Sg((r-i)*(r-i)+(r-o)*(i-o)),s=Ag(s),o>i&&(s=_n-s),s/=_n),[s*360,f,u]};K.prototype.hsi=function(){return Mg(this._rgb)};const Tg=(...e)=>new K(...e,"hsi");de.hsi=Tg,he.format.hsi=$g,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),we(e)==="array"&&e.length===3)return"hsi"}});const Pg=(e,r,i)=>A1(e,r,i,"hsi");gt.hsi=Pg;const Pi=(...e)=>{e=me(e,"hsl");const[r,i,o]=e;let s,l,u;if(i===0)s=l=u=o*255;else{const f=[0,0,0],g=[0,0,0],y=o<.5?o*(1+i):o+i-o*i,C=2*o-y,_=r/360;f[0]=_+1/3,f[1]=_,f[2]=_-1/3;for(let $=0;$<3;$++)f[$]<0&&(f[$]+=1),f[$]>1&&(f[$]-=1),6*f[$]<1?g[$]=C+(y-C)*6*f[$]:2*f[$]<1?g[$]=y:3*f[$]<2?g[$]=C+(y-C)*(2/3-f[$])*6:g[$]=C;[s,l,u]=[g[0]*255,g[1]*255,g[2]*255]}return e.length>3?[s,l,u,e[3]]:[s,l,u,1]},D9=(...e)=>{e=me(e,"rgba");let[r,i,o]=e;r/=255,i/=255,o/=255;const s=k9(r,i,o),l=S9(r,i,o),u=(l+s)/2;let f,g;return l===s?(f=0,g=Number.NaN):f=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),r==l?g=(i-o)/(l-s):i==l?g=2+(o-r)/(l-s):o==l&&(g=4+(r-i)/(l-s)),g*=60,g<0&&(g+=360),e.length>3&&e[3]!==void 0?[g,f,u,e[3]]:[g,f,u]};K.prototype.hsl=function(){return D9(this._rgb)};const Ig=(...e)=>new K(...e,"hsl");de.hsl=Ig,he.format.hsl=Pi,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),we(e)==="array"&&e.length===3)return"hsl"}});const Og=(e,r,i)=>A1(e,r,i,"hsl");gt.hsl=Og;const{floor:Bg}=Math,Eg=(...e)=>{e=me(e,"hsv");let[r,i,o]=e,s,l,u;if(o*=255,i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const f=Bg(r),g=r-f,y=o*(1-i),C=o*(1-i*g),_=o*(1-i*(1-g));switch(f){case 0:[s,l,u]=[o,_,y];break;case 1:[s,l,u]=[C,o,y];break;case 2:[s,l,u]=[y,o,_];break;case 3:[s,l,u]=[y,C,o];break;case 4:[s,l,u]=[_,y,o];break;case 5:[s,l,u]=[o,y,C];break}}return[s,l,u,e.length>3?e[3]:1]},{min:Dg,max:Rg}=Math,Fg=(...e)=>{e=me(e,"rgb");let[r,i,o]=e;const s=Dg(r,i,o),l=Rg(r,i,o),u=l-s;let f,g,y;return y=l/255,l===0?(f=Number.NaN,g=0):(g=u/l,r===l&&(f=(i-o)/u),i===l&&(f=2+(o-r)/u),o===l&&(f=4+(r-i)/u),f*=60,f<0&&(f+=360)),[f,g,y]};K.prototype.hsv=function(){return Fg(this._rgb)};const zg=(...e)=>new K(...e,"hsv");de.hsv=zg,he.format.hsv=Eg,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),we(e)==="array"&&e.length===3)return"hsv"}});const Ng=(e,r,i)=>A1(e,r,i,"hsv");gt.hsv=Ng;function Vr(e,r){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(u=>[u]));let o=r[0].length,s=r[0].map((u,f)=>r.map(g=>g[f])),l=e.map(u=>s.map(f=>Array.isArray(u)?u.reduce((g,y,C)=>g+y*(f[C]||0),0):f.reduce((g,y)=>g+y*u,0)));return i===1&&(l=l[0]),o===1?l.map(u=>u[0]):l}const Ii=(...e)=>{e=me(e,"lab");const[r,i,o,...s]=e,[l,u,f]=Kg([r,i,o]),[g,y,C]=P9(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]};function Kg(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Vr(i,e);return Vr(r,o.map(s=>s**3))}const Oi=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),l=I9(r,i,o);return[...Wg(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function Wg(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Vr(r,e);return Vr(i,o.map(s=>Math.cbrt(s)))}K.prototype.oklab=function(){return Oi(this._rgb)},Object.assign(de,{oklab:(...e)=>new K(...e,"oklab")}),he.format.oklab=Ii,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),we(e)==="array"&&e.length===3)return"oklab"}});const Ug=(e,r,i)=>{const o=e.oklab(),s=r.oklab();return new K(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};gt.oklab=Ug;const Zg=(e,r,i)=>A1(e,r,i,"oklch");gt.oklch=Zg;const{pow:Bi,sqrt:Ei,PI:Di,cos:R9,sin:F9,atan2:Qg}=Math,jg=(e,r="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(_,$){return _+$});if(i.forEach((_,$)=>{i[$]*=s}),e=e.map(_=>new K(_)),r==="lrgb")return Yg(e,i);const l=e.shift(),u=l.get(r),f=[];let g=0,y=0;for(let _=0;_<u.length;_++)if(u[_]=(u[_]||0)*i[0],f.push(isNaN(u[_])?0:i[0]),r.charAt(_)==="h"&&!isNaN(u[_])){const $=u[_]/180*Di;g+=R9($)*i[0],y+=F9($)*i[0]}let C=l.alpha()*i[0];e.forEach((_,$)=>{const M=_.get(r);C+=_.alpha()*i[$+1];for(let x=0;x<u.length;x++)if(!isNaN(M[x]))if(f[x]+=i[$+1],r.charAt(x)==="h"){const T=M[x]/180*Di;g+=R9(T)*i[$+1],y+=F9(T)*i[$+1]}else u[x]+=M[x]*i[$+1]});for(let _=0;_<u.length;_++)if(r.charAt(_)==="h"){let $=Qg(y/f[_],g/f[_])/Di*180;for(;$<0;)$+=360;for(;$>=360;)$-=360;u[_]=$}else u[_]=u[_]/f[_];return C/=o,new K(u,r).alpha(C>.99999?1:C,!0)},Yg=(e,r)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],u=r[s]/i,f=l._rgb;o[0]+=Bi(f[0],2)*u,o[1]+=Bi(f[1],2)*u,o[2]+=Bi(f[2],2)*u,o[3]+=f[3]*u}return o[0]=Ei(o[0]),o[1]=Ei(o[1]),o[2]=Ei(o[2]),o[3]>.9999999&&(o[3]=1),new K(vi(o))},{pow:Gg}=Math;function qr(e){let r="rgb",i=de("#ccc"),o=0,s=[0,1],l=[0,1],u=[],f=[0,0],g=!1,y=[],C=!1,_=0,$=1,M=!1,x={},T=!0,k=1;const S=function(O){if(O=O||["#fff","#000"],O&&we(O)==="string"&&de.brewer&&de.brewer[O.toLowerCase()]&&(O=de.brewer[O.toLowerCase()]),we(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(let W=0;W<O.length;W++)O[W]=de(O[W]);u.length=0;for(let W=0;W<O.length;W++)u.push(W/(O.length-1))}return q(),y=O},D=function(O){if(g!=null){const W=g.length-1;let Q=0;for(;Q<W&&O>=g[Q];)Q++;return Q-1}return 0};let F=O=>O,P=O=>O;const z=function(O,W){let Q,H;if(W==null&&(W=!1),isNaN(O)||O===null)return i;W?H=O:g&&g.length>2?H=D(O)/(g.length-2):$!==_?H=(O-_)/($-_):H=1,H=P(H),W||(H=F(H)),k!==1&&(H=Gg(H,k)),H=f[0]+H*(1-f[0]-f[1]),H=e1(H,0,1);const ie=Math.floor(H*1e4);if(T&&x[ie])Q=x[ie];else{if(we(y)==="array")for(let J=0;J<u.length;J++){const N=u[J];if(H<=N){Q=y[J];break}if(H>=N&&J===u.length-1){Q=y[J];break}if(H>N&&H<u[J+1]){H=(H-N)/(u[J+1]-N),Q=de.interpolate(y[J],y[J+1],H,r);break}}else we(y)==="function"&&(Q=y(H));T&&(x[ie]=Q)}return Q};var q=()=>x={};S(e);const Z=function(O){const W=de(z(O));return C&&W[C]?W[C]():W};return Z.classes=function(O){if(O!=null){if(we(O)==="array")g=O,s=[O[0],O[O.length-1]];else{const W=de.analyze(s);O===0?g=[W.min,W.max]:g=de.limits(W,"e",O)}return Z}return g},Z.domain=function(O){if(!arguments.length)return l;l=O.slice(0),_=O[0],$=O[O.length-1],u=[];const W=y.length;if(O.length===W&&_!==$)for(let Q of Array.from(O))u.push((Q-_)/($-_));else{for(let Q=0;Q<W;Q++)u.push(Q/(W-1));if(O.length>2){const Q=O.map((ie,J)=>J/(O.length-1)),H=O.map(ie=>(ie-_)/($-_));H.every((ie,J)=>Q[J]===ie)||(P=ie=>{if(ie<=0||ie>=1)return ie;let J=0;for(;ie>=H[J+1];)J++;const N=(ie-H[J])/(H[J+1]-H[J]);return Q[J]+N*(Q[J+1]-Q[J])})}}return s=[_,$],Z},Z.mode=function(O){return arguments.length?(r=O,q(),Z):r},Z.range=function(O,W){return S(O),Z},Z.out=function(O){return C=O,Z},Z.spread=function(O){return arguments.length?(o=O,Z):o},Z.correctLightness=function(O){return O==null&&(O=!0),M=O,q(),M?F=function(W){const Q=z(0,!0).lab()[0],H=z(1,!0).lab()[0],ie=Q>H;let J=z(W,!0).lab()[0];const N=Q+(H-Q)*W;let re=J-N,Se=0,ge=1,pe=20;for(;Math.abs(re)>.01&&pe-- >0;)(function(){return ie&&(re*=-1),re<0?(Se=W,W+=(ge-W)*.5):(ge=W,W+=(Se-W)*.5),J=z(W,!0).lab()[0],re=J-N})();return W}:F=W=>W,Z},Z.padding=function(O){return O!=null?(we(O)==="number"&&(O=[O,O]),f=O,Z):f},Z.colors=function(O,W){arguments.length<2&&(W="hex");let Q=[];if(arguments.length===0)Q=y.slice(0);else if(O===1)Q=[Z(.5)];else if(O>1){const H=s[0],ie=s[1]-H;Q=Hg(0,O,!1).map(J=>Z(H+J/(O-1)*ie))}else{e=[];let H=[];if(g&&g.length>2)for(let ie=1,J=g.length,N=1<=J;N?ie<J:ie>J;N?ie++:ie--)H.push((g[ie-1]+g[ie])*.5);else H=s;Q=H.map(ie=>Z(ie))}return de[W]&&(Q=Q.map(H=>H[W]())),Q},Z.cache=function(O){return O!=null?(T=O,Z):T},Z.gamma=function(O){return O!=null?(k=O,Z):k},Z.nodata=function(O){return O!=null?(i=de(O),Z):i},Z}function Hg(e,r,i){let o=[],s=e<r,l=i?s?r+1:r-1:r;for(let u=e;s?u<l:u>l;s?u++:u--)o.push(u);return o}const Vg=function(e){let r=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=r.length;s++)o[s]=(r[s]||0)+r[s-1];r=o}return r},qg=function(e){let r,i,o,s;if(e=e.map(l=>new K(l)),e.length===2)[i,o]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new K(u,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new K(u,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(u=>u.lab()),r=function(u){const f=[0,1,2].map(g=>(1-u)*(1-u)*(1-u)*i[g]+3*(1-u)*(1-u)*u*o[g]+3*(1-u)*u*u*s[g]+u*u*u*l[g]);return new K(f,"lab")}}else if(e.length>=5){let l,u,f;l=e.map(g=>g.lab()),f=e.length-1,u=Vg(f),r=function(g){const y=1-g,C=[0,1,2].map(_=>l.reduce(($,M,x)=>$+u[x]*y**(f-x)*g**x*M[_],0));return new K(C,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},Xg=e=>{const r=qg(e);return r.scale=()=>qr(r),r},{round:z9}=Math;K.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(z9)},K.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,i)=>i<3?e===!1?r:z9(r):r)},Object.assign(de,{rgb:(...e)=>new K(...e,"rgb")}),he.format.rgb=(...e)=>{const r=me(e,"rgba");return r[3]===void 0&&(r[3]=1),r},he.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),we(e)==="array"&&(e.length===3||e.length===4&&we(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Xt=(e,r,i)=>{if(!Xt[i])throw new Error("unknown blend mode "+i);return Xt[i](e,r)},En=e=>(r,i)=>{const o=de(i).rgb(),s=de(r).rgb();return de.rgb(e(o,s))},Dn=e=>(r,i)=>{const o=[];return o[0]=e(r[0],i[0]),o[1]=e(r[1],i[1]),o[2]=e(r[2],i[2]),o},Jg=e=>e,ep=(e,r)=>e*r/255,tp=(e,r)=>e>r?r:e,np=(e,r)=>e>r?e:r,rp=(e,r)=>255*(1-(1-e/255)*(1-r/255)),ip=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),op=(e,r)=>255*(1-(1-r/255)/(e/255)),ap=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Xt.normal=En(Dn(Jg)),Xt.multiply=En(Dn(ep)),Xt.screen=En(Dn(rp)),Xt.overlay=En(Dn(ip)),Xt.darken=En(Dn(tp)),Xt.lighten=En(Dn(np)),Xt.dodge=En(Dn(ap)),Xt.burn=En(Dn(op));const{pow:sp,sin:lp,cos:cp}=Math;function up(e=300,r=-1.5,i=1,o=1,s=[0,1]){let l=0,u;we(s)==="array"?u=s[1]-s[0]:(u=0,s=[s,s]);const f=function(g){const y=_n*((e+120)/360+r*g),C=sp(s[0]+u*g,o),$=(l!==0?i[0]+g*l:i)*C*(1-C)/2,M=cp(y),x=lp(y),T=C+$*(-.14861*M+1.78277*x),k=C+$*(-.29227*M-.90649*x),S=C+$*(1.97294*M);return de(vi([T*255,k*255,S*255,1]))};return f.start=function(g){return g==null?e:(e=g,f)},f.rotations=function(g){return g==null?r:(r=g,f)},f.gamma=function(g){return g==null?o:(o=g,f)},f.hue=function(g){return g==null?i:(i=g,we(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(g){return g==null?s:(we(g)==="array"?(s=g,u=g[1]-g[0]):(s=[g,g],u=0),f)},f.scale=()=>de.scale(f),f.hue(i),f}const fp="0123456789abcdef",{floor:dp,random:hp}=Math,gp=(e=hp)=>{let r="#";for(let i=0;i<6;i++)r+=fp.charAt(dp(e()*16));return new K(r,"hex")},{log:N9,pow:pp,floor:yp,abs:mp}=Math;function K9(e,r=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return we(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&we(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>W9(i,o,s),i}function W9(e,r="equal",i=7){we(e)=="array"&&(e=K9(e));const{min:o,max:s}=e,l=e.values.sort((f,g)=>f-g);if(i===1)return[o,s];const u=[];if(r.substr(0,1)==="c"&&(u.push(o),u.push(s)),r.substr(0,1)==="e"){u.push(o);for(let f=1;f<i;f++)u.push(o+f/i*(s-o));u.push(s)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*N9(o),g=Math.LOG10E*N9(s);u.push(o);for(let y=1;y<i;y++)u.push(pp(10,f+y/i*(g-f)));u.push(s)}else if(r.substr(0,1)==="q"){u.push(o);for(let f=1;f<i;f++){const g=(l.length-1)*f/i,y=yp(g);if(y===g)u.push(l[y]);else{const C=g-y;u.push(l[y]*(1-C)+l[y+1]*C)}}u.push(s)}else if(r.substr(0,1)==="k"){let f;const g=l.length,y=new Array(g),C=new Array(i);let _=!0,$=0,M=null;M=[],M.push(o);for(let k=1;k<i;k++)M.push(o+k/i*(s-o));for(M.push(s);_;){for(let S=0;S<i;S++)C[S]=0;for(let S=0;S<g;S++){const D=l[S];let F=Number.MAX_VALUE,P;for(let z=0;z<i;z++){const q=mp(M[z]-D);q<F&&(F=q,P=z),C[P]++,y[S]=P}}const k=new Array(i);for(let S=0;S<i;S++)k[S]=null;for(let S=0;S<g;S++)f=y[S],k[f]===null?k[f]=l[S]:k[f]+=l[S];for(let S=0;S<i;S++)k[S]*=1/C[S];_=!1;for(let S=0;S<i;S++)if(k[S]!==M[S]){_=!0;break}M=k,$++,$>200&&(_=!1)}const x={};for(let k=0;k<i;k++)x[k]=[];for(let k=0;k<g;k++)f=y[k],x[f].push(l[k]);let T=[];for(let k=0;k<i;k++)T.push(x[k][0]),T.push(x[k][x[k].length-1]);T=T.sort((k,S)=>k-S),u.push(T[0]);for(let k=1;k<T.length;k+=2){const S=T[k];!isNaN(S)&&u.indexOf(S)===-1&&u.push(S)}}return u}const bp=(e,r)=>{e=new K(e),r=new K(r);const i=e.luminance(),o=r.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
|
|
27
|
+
}`;var Ce=i6(function(){return Me(p,ee+"return "+R).apply(i,m)});if(Ce.source=R,Ho(Ce))throw Ce;return Ce}function h$(t){return Pe(t).toLowerCase()}function g$(t){return Pe(t).toUpperCase()}function p$(t,n,a){if(t=Pe(t),t&&(a||n===i))return d2(t);if(!t||!(n=Ot(n)))return t;var c=tn(t),d=tn(n),p=h2(c,d),m=g2(c,d)+1;return Vn(c,p,m).join("")}function y$(t,n,a){if(t=Pe(t),t&&(a||n===i))return t.slice(0,y2(t)+1);if(!t||!(n=Ot(n)))return t;var c=tn(t),d=g2(c,tn(n))+1;return Vn(c,0,d).join("")}function m$(t,n,a){if(t=Pe(t),t&&(a||n===i))return t.replace(Gi,"");if(!t||!(n=Ot(n)))return t;var c=tn(t),d=h2(c,tn(n));return Vn(c,d).join("")}function b$(t,n){var a=H,c=ie;if(Ye(n)){var d="separator"in n?n.separator:d;a="length"in n?_e(n.length):a,c="omission"in n?Ot(n.omission):c}t=Pe(t);var p=t.length;if(K1(t)){var m=tn(t);p=m.length}if(a>=p)return t;var v=a-W1(c);if(v<1)return c;var L=m?Vn(m,0,v).join(""):t.slice(0,v);if(d===i)return L+c;if(m&&(v+=L.length-v),Vo(d)){if(t.slice(v).search(d)){var B,E=L;for(d.global||(d=fo(d.source,Pe(B5.exec(d))+"g")),d.lastIndex=0;B=d.exec(E);)var R=B.index;L=L.slice(0,R===i?v:R)}}else if(t.indexOf(Ot(d),v)!=v){var j=L.lastIndexOf(d);j>-1&&(L=L.slice(0,j))}return L+c}function _$(t){return t=Pe(t),t&&Ib.test(t)?t.replace(T5,H_):t}var v$=H1(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),ea=is("toUpperCase");function r6(t,n,a){return t=Pe(t),n=a?i:n,n===i?Z_(t)?X_(t):E_(t):t.match(n)||[]}var i6=xe(function(t,n){try{return Tt(t,i,n)}catch(a){return Ho(a)?a:new fe(a)}}),C$=Tn(function(t,n){return Pt(n,function(a){a=rn(a),fn(t,a,Yo(t[a],t))}),t});function x$(t){var n=t==null?0:t.length,a=le();return t=n?Qe(t,function(c){if(typeof c[1]!="function")throw new Wt(u);return[a(c[0]),c[1]]}):[],xe(function(c){for(var d=-1;++d<n;){var p=t[d];if(Tt(p[0],this,c))return Tt(p[1],this,c)}})}function w$(t){return Hv(Zt(t,$))}function ta(t){return function(){return t}}function L$(t,n){return t==null||t!==t?n:t}var $$=as(),k$=as(!0);function At(t){return t}function na(t){return D2(typeof t=="function"?t:Zt(t,$))}function S$(t){return F2(Zt(t,$))}function A$(t,n){return z2(t,Zt(n,$))}var M$=xe(function(t,n){return function(a){return mr(a,t,n)}}),T$=xe(function(t,n){return function(a){return mr(t,a,n)}});function ra(t,n,a){var c=st(n),d=S0(n,c);a==null&&!(Ye(n)&&(d.length||!c.length))&&(a=n,n=t,t=this,d=S0(n,st(n)));var p=!(Ye(a)&&"chain"in a)||!!a.chain,m=In(t);return Pt(d,function(v){var L=n[v];t[v]=L,m&&(t.prototype[v]=function(){var B=this.__chain__;if(p||B){var E=t(this.__wrapped__),R=E.__actions__=$t(this.__actions__);return R.push({func:L,args:arguments,thisArg:t}),E.__chain__=B,E}return L.apply(t,Zn([this.value()],arguments))})}),t}function P$(){return ft._===this&&(ft._=iv),this}function ia(){}function I$(t){return t=_e(t),xe(function(n){return N2(n,t)})}var O$=Bo(Qe),B$=Bo(s2),E$=Bo(io);function o6(t){return Ko(t)?oo(rn(t)):dC(t)}function D$(t){return function(n){return t==null?i:c1(t,n)}}var R$=ls(),F$=ls(!0);function oa(){return[]}function aa(){return!1}function z$(){return{}}function N$(){return""}function K$(){return!0}function W$(t,n){if(t=_e(t),t<1||t>Fe)return[];var a=Ee,c=yt(t,Ee);n=le(n),t-=Ee;for(var d=lo(c,n);++a<t;)n(a);return d}function U$(t){return ye(t)?Qe(t,rn):Bt(t)?[t]:$t(Ls(Pe(t)))}function Z$(t){var n=++nv;return Pe(t)+n}var Q$=O0(function(t,n){return t+n},0),j$=Eo("ceil"),Y$=O0(function(t,n){return t/n},1),G$=Eo("floor");function H$(t){return t&&t.length?k0(t,At,vo):i}function V$(t,n){return t&&t.length?k0(t,le(n,2),vo):i}function q$(t){return u2(t,At)}function X$(t,n){return u2(t,le(n,2))}function J$(t){return t&&t.length?k0(t,At,Lo):i}function ek(t,n){return t&&t.length?k0(t,le(n,2),Lo):i}var tk=O0(function(t,n){return t*n},1),nk=Eo("round"),rk=O0(function(t,n){return t-n},0);function ik(t){return t&&t.length?so(t,At):0}function ok(t,n){return t&&t.length?so(t,le(n,2)):0}return h.after=Aw,h.ary=Es,h.assign=pL,h.assignIn=Hs,h.assignInWith=Vs,h.assignWith=qo,h.at=yL,h.before=Ds,h.bind=Yo,h.bindAll=C$,h.bindKey=Rs,h.castArray=Nw,h.chain=Is,h.chunk=HC,h.compact=VC,h.concat=qC,h.cond=x$,h.conforms=w$,h.constant=ta,h.countBy=ow,h.create=mL,h.curry=Fs,h.curryRight=zs,h.debounce=Ns,h.defaults=bL,h.defaultsDeep=_L,h.defer=Mw,h.delay=Tw,h.difference=XC,h.differenceBy=JC,h.differenceWith=ex,h.drop=tx,h.dropRight=nx,h.dropRightWhile=rx,h.dropWhile=ix,h.fill=ox,h.filter=sw,h.flatMap=uw,h.flatMapDeep=fw,h.flatMapDepth=dw,h.flatten=As,h.flattenDeep=ax,h.flattenDepth=sx,h.flip=Pw,h.flow=$$,h.flowRight=k$,h.fromPairs=lx,h.functions=kL,h.functionsIn=SL,h.groupBy=hw,h.initial=ux,h.intersection=fx,h.intersectionBy=dx,h.intersectionWith=hx,h.invert=ML,h.invertBy=TL,h.invokeMap=pw,h.iteratee=na,h.keyBy=yw,h.keys=st,h.keysIn=St,h.map=N0,h.mapKeys=IL,h.mapValues=OL,h.matches=S$,h.matchesProperty=A$,h.memoize=W0,h.merge=BL,h.mergeWith=qs,h.method=M$,h.methodOf=T$,h.mixin=ra,h.negate=U0,h.nthArg=I$,h.omit=EL,h.omitBy=DL,h.once=Iw,h.orderBy=mw,h.over=O$,h.overArgs=Ow,h.overEvery=B$,h.overSome=E$,h.partial=Go,h.partialRight=Ks,h.partition=bw,h.pick=RL,h.pickBy=Xs,h.property=o6,h.propertyOf=D$,h.pull=mx,h.pullAll=Ts,h.pullAllBy=bx,h.pullAllWith=_x,h.pullAt=vx,h.range=R$,h.rangeRight=F$,h.rearg=Bw,h.reject=Cw,h.remove=Cx,h.rest=Ew,h.reverse=Qo,h.sampleSize=ww,h.set=zL,h.setWith=NL,h.shuffle=Lw,h.slice=xx,h.sortBy=Sw,h.sortedUniq=Mx,h.sortedUniqBy=Tx,h.split=c$,h.spread=Dw,h.tail=Px,h.take=Ix,h.takeRight=Ox,h.takeRightWhile=Bx,h.takeWhile=Ex,h.tap=Vx,h.throttle=Rw,h.thru=z0,h.toArray=js,h.toPairs=Js,h.toPairsIn=e6,h.toPath=U$,h.toPlainObject=Gs,h.transform=KL,h.unary=Fw,h.union=Dx,h.unionBy=Rx,h.unionWith=Fx,h.uniq=zx,h.uniqBy=Nx,h.uniqWith=Kx,h.unset=WL,h.unzip=jo,h.unzipWith=Ps,h.update=UL,h.updateWith=ZL,h.values=X1,h.valuesIn=QL,h.without=Wx,h.words=r6,h.wrap=zw,h.xor=Ux,h.xorBy=Zx,h.xorWith=Qx,h.zip=jx,h.zipObject=Yx,h.zipObjectDeep=Gx,h.zipWith=Hx,h.entries=Js,h.entriesIn=e6,h.extend=Hs,h.extendWith=Vs,ra(h,h),h.add=Q$,h.attempt=i6,h.camelCase=HL,h.capitalize=t6,h.ceil=j$,h.clamp=jL,h.clone=Kw,h.cloneDeep=Uw,h.cloneDeepWith=Zw,h.cloneWith=Ww,h.conformsTo=Qw,h.deburr=n6,h.defaultTo=L$,h.divide=Y$,h.endsWith=VL,h.eq=on,h.escape=qL,h.escapeRegExp=XL,h.every=aw,h.find=lw,h.findIndex=ks,h.findKey=vL,h.findLast=cw,h.findLastIndex=Ss,h.findLastKey=CL,h.floor=G$,h.forEach=Os,h.forEachRight=Bs,h.forIn=xL,h.forInRight=wL,h.forOwn=LL,h.forOwnRight=$L,h.get=Xo,h.gt=jw,h.gte=Yw,h.has=AL,h.hasIn=Jo,h.head=Ms,h.identity=At,h.includes=gw,h.indexOf=cx,h.inRange=YL,h.invoke=PL,h.isArguments=d1,h.isArray=ye,h.isArrayBuffer=Gw,h.isArrayLike=kt,h.isArrayLikeObject=Ve,h.isBoolean=Hw,h.isBuffer=qn,h.isDate=Vw,h.isElement=qw,h.isEmpty=Xw,h.isEqual=Jw,h.isEqualWith=eL,h.isError=Ho,h.isFinite=tL,h.isFunction=In,h.isInteger=Ws,h.isLength=Z0,h.isMap=Us,h.isMatch=nL,h.isMatchWith=rL,h.isNaN=iL,h.isNative=oL,h.isNil=sL,h.isNull=aL,h.isNumber=Zs,h.isObject=Ye,h.isObjectLike=He,h.isPlainObject=wr,h.isRegExp=Vo,h.isSafeInteger=lL,h.isSet=Qs,h.isString=Q0,h.isSymbol=Bt,h.isTypedArray=q1,h.isUndefined=cL,h.isWeakMap=uL,h.isWeakSet=fL,h.join=gx,h.kebabCase=JL,h.last=jt,h.lastIndexOf=px,h.lowerCase=e$,h.lowerFirst=t$,h.lt=dL,h.lte=hL,h.max=H$,h.maxBy=V$,h.mean=q$,h.meanBy=X$,h.min=J$,h.minBy=ek,h.stubArray=oa,h.stubFalse=aa,h.stubObject=z$,h.stubString=N$,h.stubTrue=K$,h.multiply=tk,h.nth=yx,h.noConflict=P$,h.noop=ia,h.now=K0,h.pad=n$,h.padEnd=r$,h.padStart=i$,h.parseInt=o$,h.random=GL,h.reduce=_w,h.reduceRight=vw,h.repeat=a$,h.replace=s$,h.result=FL,h.round=nk,h.runInContext=w,h.sample=xw,h.size=$w,h.snakeCase=l$,h.some=kw,h.sortedIndex=wx,h.sortedIndexBy=Lx,h.sortedIndexOf=$x,h.sortedLastIndex=kx,h.sortedLastIndexBy=Sx,h.sortedLastIndexOf=Ax,h.startCase=u$,h.startsWith=f$,h.subtract=rk,h.sum=ik,h.sumBy=ok,h.template=d$,h.times=W$,h.toFinite=On,h.toInteger=_e,h.toLength=Ys,h.toLower=h$,h.toNumber=Yt,h.toSafeInteger=gL,h.toString=Pe,h.toUpper=g$,h.trim=p$,h.trimEnd=y$,h.trimStart=m$,h.truncate=b$,h.unescape=_$,h.uniqueId=Z$,h.upperCase=v$,h.upperFirst=ea,h.each=Os,h.eachRight=Bs,h.first=Ms,ra(h,function(){var t={};return dn(h,function(n,a){Te.call(h.prototype,a)||(t[a]=n)}),t}(),{chain:!1}),h.VERSION=o,Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){h[t].placeholder=h}),Pt(["drop","take"],function(t,n){ke.prototype[t]=function(a){a=a===i?1:at(_e(a),0);var c=this.__filtered__&&!n?new ke(this):this.clone();return c.__filtered__?c.__takeCount__=yt(a,c.__takeCount__):c.__views__.push({size:yt(a,Ee),type:t+(c.__dir__<0?"Right":"")}),c},ke.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Pt(["filter","map","takeWhile"],function(t,n){var a=n+1,c=a==re||a==ge;ke.prototype[t]=function(d){var p=this.clone();return p.__iteratees__.push({iteratee:le(d,3),type:a}),p.__filtered__=p.__filtered__||c,p}}),Pt(["head","last"],function(t,n){var a="take"+(n?"Right":"");ke.prototype[t]=function(){return this[a](1).value()[0]}}),Pt(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[a](1)}}),ke.prototype.compact=function(){return this.filter(At)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=xe(function(t,n){return typeof t=="function"?new ke(this):this.map(function(a){return mr(a,t,n)})}),ke.prototype.reject=function(t){return this.filter(U0(le(t)))},ke.prototype.slice=function(t,n){t=_e(t);var a=this;return a.__filtered__&&(t>0||n<0)?new ke(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==i&&(n=_e(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(Ee)},dn(ke.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),c=/^(?:head|last)$/.test(n),d=h[c?"take"+(n=="last"?"Right":""):n],p=c||/^find/.test(n);d&&(h.prototype[n]=function(){var m=this.__wrapped__,v=c?[1]:arguments,L=m instanceof ke,B=v[0],E=L||ye(m),R=function($e){var Ae=d.apply(h,Zn([$e],v));return c&&j?Ae[0]:Ae};E&&a&&typeof B=="function"&&B.length!=1&&(L=E=!1);var j=this.__chain__,ee=!!this.__actions__.length,ue=p&&!j,Ce=L&&!ee;if(!p&&E){m=Ce?m:new ke(this);var se=t.apply(m,v);return se.__actions__.push({func:z0,args:[R],thisArg:i}),new Ut(se,j)}return ue&&Ce?t.apply(this,v):(se=this.thru(R),ue?c?se.value()[0]:se.value():se)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(t){var n=f0[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);h.prototype[t]=function(){var d=arguments;if(c&&!this.__chain__){var p=this.value();return n.apply(ye(p)?p:[],d)}return this[a](function(m){return n.apply(ye(m)?m:[],d)})}}),dn(ke.prototype,function(t,n){var a=h[n];if(a){var c=a.name+"";Te.call(j1,c)||(j1[c]=[]),j1[c].push({name:n,func:a})}}),j1[I0(i,D).name]=[{name:"wrapper",func:i}],ke.prototype.clone=vv,ke.prototype.reverse=Cv,ke.prototype.value=xv,h.prototype.at=qx,h.prototype.chain=Xx,h.prototype.commit=Jx,h.prototype.next=ew,h.prototype.plant=nw,h.prototype.reverse=rw,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=iw,h.prototype.first=h.prototype.head,ur&&(h.prototype[ur]=tw),h},U1=J_();i1?((i1.exports=U1)._=U1,eo._=U1):ft._=U1}).call(gn)}(Lr,Lr.exports);var la=Lr.exports;const Xe=Y0(la),s6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=ce.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const u=Gt({x:i[1].x-8,y:i[1].y+4},i[1],l),f=Gt({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:r()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[u,i[1],f]},styles:r()}]}return[]},setProperties:i=>{e=Xe.merge({},e,i)},getProperties:()=>e}},l6=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=sa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:r(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,Xe.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},c6=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:r(o.id)}]:[],setProperties:(i,o)=>{e.set(o,Xe.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},u6=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:r()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},f6=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:r()}],setProperties:i=>{e=Xe.merge({},e,i)},getProperties:()=>e}},d6=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),u=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],g=[],y=[];return f.forEach(C=>{const _=u*C;g.push({...o[0],r:_}),y.push({x:o[0].x,y:o[0].y+_+6,text:`${(C*100).toFixed(1)}%`})}),[{type:"circle",attrs:g,styles:r()},{type:"text",ignoreEvent:!0,attrs:y,styles:i()}]}return[]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},h6=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:u})=>{const f=[],g=[];if(o.length>1){let y=0;const C=l.getSymbol();((u==null?void 0:u.isInCandle())??!0)&&C?y=C.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach(S=>{y=Math.max(y,S.precision)});const _=o[1].x>o[0].x?o[0].x:o[1].x,$=[1,.786,.618,.5,.382,.236,0],M=o[0].y-o[1].y,x=s.points,T=x[0].value-x[1].value;$.forEach(k=>{const S=o[1].y+M*k,D=(x[1].value+T*k).toFixed(y.price);f.push({coordinates:[{x:o[0].x,y:S},{x:o[1].x,y:S}]}),g.push({x:_,y:S,text:`${D} (${(k*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:r()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},g6=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=sa(o[0],o[1])/Math.sqrt(24),u=o[1].x>o[0].x?0:1,f=ce.utils.getLinearSlopeIntercept(o[0],o[1]);let g;f?g=Math.atan(f[0])+Math.PI*u:o[1].y>o[0].y?g=Math.PI/2:g=Math.PI/2*3;const y=Gt({x:o[0].x-l,y:o[0].y},o[0],g),C=Gt({x:o[0].x-l,y:o[0].y-l},o[0],g),_=[{...y,r:l,startAngle:g,endAngle:g+Math.PI/2},{...C,r:l*2,startAngle:g+Math.PI/2,endAngle:g+Math.PI}];let $=o[0].x-l,M=o[0].y-l;for(let x=2;x<9;x++){const T=_[x-2].r+_[x-1].r;let k=0;switch(x%4){case 0:{k=g,$-=_[x-2].r;break}case 1:{k=g+Math.PI/2,M-=_[x-2].r;break}case 2:{k=g+Math.PI,$+=_[x-2].r;break}case 3:{k=g+Math.PI/2*3,M+=_[x-2].r;break}}const S=k+Math.PI/2,D=Gt({x:$,y:M},o[0],g);_.push({...D,r:T,startAngle:k,endAngle:S})}return[{type:"arc",attrs:_,styles:r()},{type:"line",attrs:j0(o,s),styles:i()}]}return[]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},p6=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let u=[];const f=[];if(o.length>1){const g=o[1].x>o[0].x?-38:4,y=o[1].y>o[0].y?-2:20,C=o[1].x-o[0].x,_=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(M=>{const x=o[1].x-C*M,T=o[1].y-_*M;l.push({coordinates:[{x,y:o[0].y},{x,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:T},{x:o[1].x,y:T}]}),u=u.concat(j0([o[0],{x,y:o[1].y}],s)),u=u.concat(j0([o[0],{x:o[1].x,y:T}],s)),f.unshift({x:o[0].x+g,y:T+10,text:`${M.toFixed(3)}`}),f.unshift({x:x-18,y:o[0].y+y,text:`${M.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:r()},{type:"line",attrs:u,styles:r()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},y6=()=>{let e={};const r=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:u,overlay:f})=>{const g=[],y=[];if(u.length>2){let C=0;const _=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&_?C=_.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(D=>{C=Math.max(C,D.precision)});const $=f.points,M=$[1].value-$[0].value,x=u[1].y-u[0].y,T=[0,.236,.382,.5,.618,.786,1],k=u[2].x>u[1].x?u[1].x:u[2].x;T.forEach(S=>{const D=u[2].y+x*S,F=($[2].value+M*S).toFixed(C.price);g.push({coordinates:[{x:u[1].x,y:D},{x:u[2].x,y:D}]}),y.push({x:k,y:D,text:`${F} (${(S*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:u},styles:r()},{type:"line",attrs:g,styles:i()},{type:"text",ignoreEvent:!0,attrs:y,styles:o()}]},setProperties:s=>{e=Xe.merge({},e,s)},getProperties:()=>e}},m6=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const u=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,g=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-u}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-u*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],y=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:r()},{type:"line",attrs:g,styles:o()},{type:"line",attrs:y,styles:s()}]}return[]},setProperties:l=>{e=Xe.merge({},e,l)},getProperties:()=>e}},b6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},_6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},v6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},C6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=Xe.merge({},e,o)},getProperties:()=>e}},x6=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...r(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],u=[];const f=["A","B","C","D"],g=s.map((y,C)=>({...y,baseline:"bottom",text:`(${f[C]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(u=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:r()},{type:"line",attrs:[{coordinates:l},{coordinates:u}],styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=Xe.merge({},e,s)},getProperties:()=>e}},w6=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:u})=>{const f=[],g=[],y=["X","A","B","C","D"],C=l.map((_,$)=>({..._,baseline:"bottom",text:`(${y[$]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),g.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),g.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:o()},{type:"polygon",ignoreEvent:!0,attrs:g,styles:r()},{type:"text",ignoreEvent:!0,attrs:C,styles:s()}]},setProperties:l=>{e=Xe.merge({},e,l)},getProperties:()=>e}},L6=(e,r,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:r.paneId}).forEach(u=>{o.price=Math.max(o.price,u.precision)}),o},G0=e=>({thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900})[e],Je={lineStyle:{style:"dashed",size:1,color:"#00698b",dashedValue:[4,4]},labelStyle:{style:"stroke_fill",size:12,family:"Helvetica Neue",weight:"normal",paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,borderStyle:"solid",borderSize:1,borderDashedValue:[0,0],borderRadius:3,color:"#FFFFFF",borderColor:"#00698b",backgroundColor:"#00698b",show:!0}},J1=(e,r)=>{if(e){const{params:i,callback:o}=e;o(i,r)}},$6=()=>{let e={isBodyVisible:!0,isCancelButtonVisible:!0,isQuantityVisible:!0,marginRight:10};const r=()=>({style:e.lineStyle??Je.lineStyle.style,size:e.lineWidth??Je.lineStyle.size,color:e.lineColor??Je.lineStyle.color,dashedValue:e.lineDashedValue??Je.lineStyle.dashedValue}),i=o=>({style:Je.labelStyle.style,size:(o=="body"?e.bodySize:o=="quantity"?e.quantitySize:e.cancelButtonSize)??e.bodySize??Je.labelStyle.size,weight:(o=="body"?e.bodyWeight:o=="quantity"?e.quantityWeight:e.cancelButtonWeight)??e.bodyWeight??Je.labelStyle.weight,family:(o=="body"?e.bodyFont:o=="quantity"?e.quantityFont:"icomoon")??e.bodyFont??Je.labelStyle.family,color:(o=="body"?e.bodyTextColor:o=="quantity"?e.quantityColor:e.cancelButtonIconColor)??e.bodyTextColor??Je.labelStyle.color,backgroundColor:(o=="body"?e.bodyBackgroundColor:o=="quantity"?e.quantityBackgroundColor:e.cancelButtonBackgroundColor)??e.bodyBackgroundColor??Je.labelStyle.backgroundColor,borderColor:(o=="body"?e.bodyBorderColor:o=="quantity"?e.quantityBorderColor:e.cancelButtonBorderColor)??e.bodyBorderColor??Je.labelStyle.borderColor,borderStyle:e.borderStyle??Je.labelStyle.borderStyle,borderSize:e.borderSize??Je.labelStyle.borderSize,borderDashedValue:e.borderDashedValue??Je.labelStyle.borderDashedValue,borderRadius:e.borderRadius??Je.labelStyle.borderRadius,paddingLeft:(o=="body"?e.bodyPaddingLeft:o=="quantity"?e.quantityPaddingLeft:e.cancelButtonPaddingLeft)??e.bodyPaddingLeft??Je.labelStyle.paddingLeft,paddingRight:(o=="body"?e.bodyPaddingRight:o=="quantity"?e.quantityPaddingRight:e.cancelButtonPaddingRight)??e.bodyPaddingRight??Je.labelStyle.paddingRight,paddingTop:(o=="body"?e.bodyPaddingTop:o=="quantity"?e.quantityPaddingTop:e.cancelButtonPaddingTop)??e.bodyPaddingTop??Je.labelStyle.paddingTop,paddingBottom:(o=="body"?e.bodyPaddingBottom:o=="quantity"?e.quantityPaddingBottom:e.cancelButtonPaddingBottom)??e.bodyPaddingBottom??Je.labelStyle.paddingBottom});return{name:"orderLine",totalStep:2,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({chart:o,coordinates:s,bounding:l})=>{var k,S,D,F,P,z,q;const u=i("body"),f=i("quantity"),g=i("cancel-button"),y="",C=(e.quantity??"Size").toString(),_=e.text??"Position Line",$=e.marginRight,M=ce.utils.calcTextWidth(y)+g.paddingLeft+g.paddingRight+$-(e.borderSize??Je.labelStyle.borderSize),x=ce.utils.calcTextWidth(C.toString())+f.paddingLeft+f.paddingRight+M,T=ce.utils.calcTextWidth(_.toString())+u.paddingLeft+u.paddingRight+x;return[{key:"price-line",type:"line",attrs:{coordinates:[{x:0,y:e.price?o.convertToPixel({timestamp:(k=o.getDataList().at(o.getDataList().length-1))==null?void 0:k.timestamp,value:e.price}).y:s[0].y},{x:l.width-T,y:e.price?o.convertToPixel({timestamp:(S=o.getDataList().at(o.getDataList().length-1))==null?void 0:S.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"price-line-two",type:"line",attrs:{coordinates:[{x:l.width-$,y:e.price?o.convertToPixel({timestamp:(D=o.getDataList().at(o.getDataList().length-1))==null?void 0:D.timestamp,value:e.price}).y:s[0].y},{x:l.width,y:e.price?o.convertToPixel({timestamp:(F=o.getDataList().at(o.getDataList().length-1))==null?void 0:F.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"body",type:"text",attrs:{x:l.width-x,y:e.price?o.convertToPixel({timestamp:(P=o.getDataList().at(o.getDataList().length-1))==null?void 0:P.timestamp,value:e.price}).y:s[0].y,text:_,align:"right",baseline:"middle"},styles:u},{key:"quantity",type:"text",attrs:{x:l.width-M,y:e.price?o.convertToPixel({timestamp:(z=o.getDataList().at(o.getDataList().length-1))==null?void 0:z.timestamp,value:e.price}).y:s[0].y,text:C,align:"right",baseline:"middle"},styles:f},{key:"cancel-button",type:"text",attrs:{x:l.width-$,y:e.price?o.convertToPixel({timestamp:(q=o.getDataList().at(o.getDataList().length-1))==null?void 0:q.timestamp,value:e.price}).y:s[0].y,text:y,align:"right",baseline:"middle"},styles:g}]},createYAxisFigures:({chart:o,overlay:s,coordinates:l,bounding:u,yAxis:f})=>{var M;const g=L6(o,s,f),y=(f==null?void 0:f.isFromZero())??!1;let C,_;y?(C="left",_=0):(C="right",_=u.width);let $;return e.price!==void 0&&(s.points[0].value=e.price),ce.utils.isValid(s.extendData)&&(ce.utils.isFunction(s.extendData)?$=s.extendData(s):$=s.extendData??""),!ce.utils.isValid($)&&s.points[0].value!==void 0&&($=ce.utils.formatPrecision(s.points[0].value,g.price)),{type:"text",attrs:{x:_,y:e.price?o.convertToPixel({timestamp:(M=o.getDataList().at(o.getDataList().length-1))==null?void 0:M.timestamp,value:e.price}).y:l[0].y,text:$??"",align:C,baseline:"middle"},styles:i("body")}},onSelected:o=>(o.preventDefault&&o.preventDefault(),o.overlay.mode="normal",!1),onRightClick:o=>(o.preventDefault&&o.preventDefault(),!1),onPressedMoveStart:o=>(J1(e.onMoveStart,o),!1),onPressedMoving:o=>(e.price=o.chart.convertFromPixel([{y:o.y,x:o.x}],{paneId:"candle_pane"}).value,J1(e.onMove,o),!1),onPressedMoveEnd:o=>(J1(e.onMoveEnd,o),!1),onClick:o=>{var s;switch((s=o.figure)==null?void 0:s.key){case"cancel-button":J1(e.onCancel,o);break;case"quantity":J1(e.onModify,o);break}return!1},setPrice(o){return e.price=o,this},setText(o){return e.text=o,this},setQuantity(o){return e.quantity=o,this},setModifyTooltip(o){return e.modifyTooltip=o,this},setTooltip(o){return e.tooltip=o,this},setLineColor(o){return e.lineColor=o,this},setLineWidth(o){return e.lineWidth=o,this},setLineStyle(o){return e.lineStyle=o,this},setLineLength(o){return e.lineDashedValue=[o,o],this},setLineDashedValue(o){return e.lineDashedValue=o,this},setBodyFont(o){return e.bodyFont=o,this},setBodyFontWeight(o){return ce.utils.isString(o)&&(o=G0(o)),e.bodyWeight=o,this},setBodyTextColor(o){return e.bodyTextColor=o,this},setBodyBackgroundColor(o){return e.bodyBackgroundColor=o,this},setBodyBorderColor(o){return e.bodyBorderColor=o,this},setQuantityFont(o){return e.quantityFont=o,this},setQuantityFontWeight(o){return ce.utils.isString(o)&&(o=G0(o)),e.quantityWeight=o,this},setQuantityColor(o){return e.quantityColor=o,this},setQuantityBackgroundColor(o){return e.quantityBackgroundColor=o,this},setQuantityBorderColor(o){return e.quantityBorderColor=o,this},setCancelButtonFontWeight(o){return ce.utils.isString(o)&&(o=G0(o)),e.cancelButtonWeight=o,this},setCancelButtonIconColor(o){return e.cancelButtonIconColor=o,this},setCancelButtonBackgroundColor(o){return e.cancelButtonBackgroundColor=o,this},setCancelButtonBorderColor(o){return e.cancelButtonBorderColor=o,this},setBorderStyle(o){return e.borderStyle=o,this},setBorderSize(o){return e.borderSize=o,this},setBorderDashedValue(o){return e.borderDashedValue=o,this},setBorderRadius(o){return e.borderRadius=o,this},onMoveStart(o,s){return e.onMoveStart={params:o,callback:s},this},onMove(o,s){return e.onMove={params:o,callback:s},this},onMoveEnd(o,s){return e.onMoveEnd={params:o,callback:s},this},onCancel(o,s){return e.onCancel={params:o,callback:s},this},onModify(o,s){return e.onModify={params:o,callback:s},this}}},k6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:r})=>{const i=[];if(r.length>1){const o=r.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:r,points:i,performPoint:o})=>{r>=2&&i.push(o)},setProperties:r=>{e=Xe.merge({},e,r)},getProperties:()=>e}},S6=[s6(),k6(),l6(),c6(),f6(),u6(),d6(),h6(),g6(),p6(),y6(),m6(),b6(),_6(),v6(),C6(),x6(),w6(),$6()];class A6{constructor(r){wt(this,"_apiKey");wt(this,"_prevSymbolMarket");wt(this,"_ws");this._apiKey=r}async searchSymbols(r){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${r??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(r,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${r.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(r,i,o){var s,l;this._prevSymbolMarket!==r.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${r.market}`),this._ws.onopen=()=>{var u;(u=this._ws)==null||u.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=u=>{var g;const f=JSON.parse(u.data);f[0].ev==="status"?f[0].status==="auth_success"&&((g=this._ws)==null||g.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`})),this._prevSymbolMarket=r.market}unsubscribe(r,i){}}class M6{constructor(r,i,o){wt(this,"apikey");wt(this,"apiurl");wt(this,"testsesson_id");this.apiurl=r,this.apikey=i,this.testsesson_id=o}async retrieveOrder(r){const i=await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions/${r}`),o=await(i==null?void 0:i.json());return{entryPoint:o.data.entrypoint,stopLoss:o.data.stoploss,takeProfit:o.data.takeprofit,lotSize:o.data.lotsize,pl:o.data.pl,accountId:o.data.account_id,orderId:o.data.id,entryTime:o.data.entrytime,exitTime:o.data.exittime,exitPoint:o.data.exitpoint,action:o.data.action}}async retrieveOrders(r,i){try{return((await(await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions`)).json()).data||[]).map(l=>({entryPoint:l.entrypoint,stopLoss:l.stoploss,takeProfit:l.takeprofit,lotSize:l.lotsize,pl:l.pl,accountId:l.account_id,orderId:l.id,entryTime:l.entrytime,exitTime:l.exittime,exitPoint:l.exitpoint,action:l.action}))}catch{return[]}}async openOrder(r,i,o,s,l){const u=await this.makeFetchWithAuthAndBody("POST",`${this.apiurl}/positions`,{account_id:this.testsesson_id,action:r,entrypoint:o,stoploss:s,takeprofit:l}),f=await(u==null?void 0:u.json());return{orderId:f.id,accountId:f.account_id,action:f.action,entryPoint:f.entrypoint,exitPoint:f.exitpoint,stopLoss:f.stoploss,takeProfit:f.takeprofit,lotSize:f.lotsize,pips:f.pips,pl:f.pl,entryTime:f.entrytime,exitTime:f.exittime,exitType:f.exittype,partials:f.partials}}async closeOrder(r,i){try{const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}`);return await(o==null?void 0:o.json())}catch{return null}}async modifyOrder(r){const i=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r.id}`,r),o=await(i==null?void 0:i.json());return{orderId:o.id,accountId:o.account_id,action:o.action,entryPoint:o.entrypoint,exitPoint:o.exitpoint,stopLoss:o.stoploss,takeProfit:o.takeprofit,lotSize:o.lotsize,pips:o.pips,pl:o.pl,entryTime:o.entrytime,exitTime:o.exittime,exitType:o.exittype,partials:o.partials}}async unsetSlOrTP(r,i){const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}/unset/${i}`),s=await(o==null?void 0:o.json());return{orderId:s.id,accountId:s.account_id,action:s.action,entryPoint:s.entrypoint,exitPoint:s.exitpoint,stopLoss:s.stoploss,takeProfit:s.takeprofit,lotSize:s.lotsize,pips:s.pips,pl:s.pl,entryTime:s.entrytime,exitTime:s.exittime,exitType:s.exittype,partials:s.partials}}launchOrderModal(r,i,o){}async makeFetchWithAuthAndBody(r,i,o){const s={method:r,credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json",authorization:`Bearer ${this.apikey}`},body:o?JSON.stringify(o):null};try{return await fetch(`${i}`,s)}catch(l){return alert(l.message??"An error occured"),null}}}class T6{constructor(r="dummy_order_controller"){wt(this,"storage_name");this.storage_name=r}async retrieveOrder(r){return this.retrieveOrderFromLs(r)}async retrieveOrders(r,i){let o=this.retrieveOrdersFromLs();return r&&(o=o.filter((s,l)=>s.action==r)),i&&(o=o.filter(s=>s.accountId==i)),o}async openOrder(r,i,o,s,l){const u=this.retrieveOrdersFromLs(),f={orderId:u.length?u.at(u.length-1).orderId+1:0,action:r,entryPoint:o,exitPoint:void 0,stopLoss:s,takeProfit:l,lotSize:i,pips:0,pl:0,entryTime:new Date().getTime().toString(),exitTime:void 0,exitType:void 0,partials:void 0};return this.storeOrder(f,u),f}async closeOrder(r,i){try{const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return(!i||i>l.lotSize)&&(i=l.lotSize),l.lotSize-=i,this.storeOrder(l,o,s),l}catch{return null}}async modifyOrder(r){const i=this.retrieveOrdersFromLs(),o=i.findIndex(l=>l.orderId==r.id);if(o<0)return null;const s=i[o];return s.action=r.action??s.action,s.entryPoint=r.entrypoint??s.entryPoint,s.exitPoint=r.exitpoint??s.exitPoint,s.stopLoss=r.stoploss??s.stopLoss,s.takeProfit=r.takeprofit??s.takeProfit,s.lotSize=r.lotsize??s.lotSize,s.pips=r.pips??s.pips,s.pl=r.pl??s.pl,s.entryTime=["buy","sell"].includes(s.action)?new Date().getTime().toString():s.entryTime,s.exitTime=s.exitPoint&&s.exitTime?new Date().getTime().toString():s.exitTime,this.storeOrder(s,i,o),s}async unsetSlOrTP(r,i){const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return i=="sl"?l.stopLoss=void 0:l.takeProfit=void 0,this.storeOrder(l,o,s),l}launchOrderModal(r,i,o){}retrieveOrdersFromLs(){return JSON.parse(localStorage.getItem(this.storage_name)??"[]")}retrieveOrderFromLs(r){return this.retrieveOrdersFromLs().find(i=>i.orderId==r)??null}storeOrder(r,i,o){if(i||(i=this.retrieveOrdersFromLs()),o&&o>i.length)throw new Error("storeOrder: index cannot be greater than total order length");o?i[o]=r:i.push(r),localStorage.setItem(this.storage_name,JSON.stringify(i))}}const P6=!1,I6=(e,r)=>e===r,H0=Symbol("solid-proxy"),O6=typeof Proxy=="function",B6=Symbol("solid-track"),$r={equals:I6};let ca=pa;const pn=1,kr=2,ua={owned:null,cleanups:null,context:null,owner:null},V0={};var Oe=null;let q0=null,E6=null,Ie=null,ht=null,yn=null,Sr=0;function Ar(e,r){const i=Ie,o=Oe,s=e.length===0,l=r===void 0?o:r,u=s?ua:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>Ht(()=>er(u)));Oe=u,Ie=null;try{return mn(f,!0)}finally{Ie=i,Oe=o}}function G(e,r){r=r?Object.assign({},$r,r):$r;const i={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),ga(i,s));return[ha.bind(i),o]}function fa(e,r,i){const o=Tr(e,r,!0,pn);h1(o)}function Be(e,r,i){const o=Tr(e,r,!1,pn);h1(o)}function sn(e,r,i){ca=U6;const o=Tr(e,r,!1,pn);(!i||!i.render)&&(o.user=!0),yn?yn.push(o):h1(o)}function ln(e,r,i){i=i?Object.assign({},$r,i):$r;const o=Tr(e,r,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,h1(o),ha.bind(o)}function D6(e){return e&&typeof e=="object"&&"then"in e}function R6(e,r,i){let o,s,l;typeof r=="function"?(o=e,s=r,l=i||{}):(o=!0,s=e,l=r||{});let u=null,f=V0,g=!1,y="initialValue"in l,C=typeof o=="function"&&ln(o);const _=new Set,[$,M]=(l.storage||G)(l.initialValue),[x,T]=G(void 0),[k,S]=G(void 0,{equals:!1}),[D,F]=G(y?"ready":"unresolved");function P(W,Q,H,ie){return u===W&&(u=null,ie!==void 0&&(y=!0),(W===f||Q===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(ie,{value:Q})),f=V0,z(Q,H)),Q}function z(W,Q){mn(()=>{Q===void 0&&M(()=>W),F(Q!==void 0?"errored":y?"ready":"unresolved"),T(Q);for(const H of _.keys())H.decrement();_.clear()},!1)}function q(){const W=N6,Q=$(),H=x();if(H!==void 0&&!u)throw H;return Ie&&!Ie.user&&W&&fa(()=>{k(),u&&(W.resolved||_.has(W)||(W.increment(),_.add(W)))}),Q}function Z(W=!0){if(W!==!1&&g)return;g=!1;const Q=C?C():o;if(Q==null||Q===!1){P(u,Ht($));return}let H;const ie=f!==V0?f:Ht(()=>{try{return s(Q,{value:$(),refetching:W})}catch(J){H=J}});if(H!==void 0){P(u,void 0,Or(H),Q);return}else if(!D6(ie))return P(u,ie,void 0,Q),ie;return u=ie,"v"in ie?(ie.s===1?P(u,ie.v,void 0,Q):P(u,void 0,Or(ie.v),Q),ie):(g=!0,queueMicrotask(()=>g=!1),mn(()=>{F(y?"refreshing":"pending"),S()},!1),ie.then(J=>P(ie,J,void 0,Q),J=>P(ie,void 0,Or(J),Q)))}Object.defineProperties(q,{state:{get:()=>D()},error:{get:()=>x()},loading:{get(){const W=D();return W==="pending"||W==="refreshing"}},latest:{get(){if(!y)return q();const W=x();if(W&&!u)throw W;return $()}}});let O=Oe;return C?fa(()=>(O=Oe,Z(!1))):Z(!1),[q,{refetch:W=>F6(O,()=>Z(W)),mutate:M}]}function Ht(e){if(Ie===null)return e();const r=Ie;Ie=null;try{return e()}finally{Ie=r}}function da(e){sn(()=>Ht(e))}function Mr(e){return Oe===null||(Oe.cleanups===null?Oe.cleanups=[e]:Oe.cleanups.push(e)),e}function F6(e,r){const i=Oe,o=Ie;Oe=e,Ie=null;try{return mn(r,!0)}catch(s){X0(s)}finally{Oe=i,Ie=o}}function z6(e){const r=Ie,i=Oe;return Promise.resolve().then(()=>{Ie=r,Oe=i;let o;return mn(e,!1),Ie=Oe=null,o?o.done:void 0})}let N6;function ha(){if(this.sources&&this.state)if(this.state===pn)h1(this);else{const e=ht;ht=null,mn(()=>Ir(this),!1),ht=e}if(Ie){const e=this.observers?this.observers.length:0;Ie.sources?(Ie.sources.push(this),Ie.sourceSlots.push(e)):(Ie.sources=[this],Ie.sourceSlots=[e]),this.observers?(this.observers.push(Ie),this.observerSlots.push(Ie.sources.length-1)):(this.observers=[Ie],this.observerSlots=[Ie.sources.length-1])}return this.value}function ga(e,r,i){let o=e.value;return(!e.comparator||!e.comparator(o,r))&&(e.value=r,e.observers&&e.observers.length&&mn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],u=q0&&q0.running;u&&q0.disposed.has(l),(u?!l.tState:!l.state)&&(l.pure?ht.push(l):yn.push(l),l.observers&&ya(l)),u||(l.state=pn)}if(ht.length>1e6)throw ht=[],new Error},!1)),r}function h1(e){if(!e.fn)return;er(e);const r=Sr;K6(e,e.value,r)}function K6(e,r,i){let o;const s=Oe,l=Ie;Ie=Oe=e;try{o=e.fn(r)}catch(u){return e.pure&&(e.state=pn,e.owned&&e.owned.forEach(er),e.owned=null),e.updatedAt=i+1,X0(u)}finally{Ie=l,Oe=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?ga(e,o):e.value=o,e.updatedAt=i)}function Tr(e,r,i,o=pn,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:Oe,context:Oe?Oe.context:null,pure:i};return Oe===null||Oe!==ua&&(Oe.owned?Oe.owned.push(l):Oe.owned=[l]),l}function Pr(e){if(e.state===0)return;if(e.state===kr)return Ir(e);if(e.suspense&&Ht(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Sr);)e.state&&r.push(e);for(let i=r.length-1;i>=0;i--)if(e=r[i],e.state===pn)h1(e);else if(e.state===kr){const o=ht;ht=null,mn(()=>Ir(e,r[0]),!1),ht=o}}function mn(e,r){if(ht)return e();let i=!1;r||(ht=[]),yn?i=!0:yn=[],Sr++;try{const o=e();return W6(i),o}catch(o){i||(yn=null),ht=null,X0(o)}}function W6(e){if(ht&&(pa(ht),ht=null),e)return;const r=yn;yn=null,r.length&&mn(()=>ca(r),!1)}function pa(e){for(let r=0;r<e.length;r++)Pr(e[r])}function U6(e){let r,i=0;for(r=0;r<e.length;r++){const o=e[r];o.user?e[i++]=o:Pr(o)}for(r=0;r<i;r++)Pr(e[r])}function Ir(e,r){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===pn?o!==r&&(!o.updatedAt||o.updatedAt<Sr)&&Pr(o):s===kr&&Ir(o,r)}}}function ya(e){for(let r=0;r<e.observers.length;r+=1){const i=e.observers[r];i.state||(i.state=kr,i.pure?ht.push(i):yn.push(i),i.observers&&ya(i))}}function er(e){let r;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),u=i.observerSlots.pop();o<s.length&&(l.sourceSlots[u]=o,s[o]=l,i.observerSlots[o]=u)}}if(e.tOwned){for(r=e.tOwned.length-1;r>=0;r--)er(e.tOwned[r]);delete e.tOwned}if(e.owned){for(r=e.owned.length-1;r>=0;r--)er(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0}function Or(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function X0(e,r=Oe){throw Or(e)}const Z6=Symbol("fallback");function ma(e){for(let r=0;r<e.length;r++)e[r]()}function Q6(e,r,i={}){let o=[],s=[],l=[],u=0,f=r.length>1?[]:null;return Mr(()=>ma(l)),()=>{let g=e()||[],y=g.length,C,_;return g[B6],Ht(()=>{let M,x,T,k,S,D,F,P,z;if(y===0)u!==0&&(ma(l),l=[],o=[],s=[],u=0,f&&(f=[])),i.fallback&&(o=[Z6],s[0]=Ar(q=>(l[0]=q,i.fallback())),u=1);else if(u===0){for(s=new Array(y),_=0;_<y;_++)o[_]=g[_],s[_]=Ar($);u=y}else{for(T=new Array(y),k=new Array(y),f&&(S=new Array(y)),D=0,F=Math.min(u,y);D<F&&o[D]===g[D];D++);for(F=u-1,P=y-1;F>=D&&P>=D&&o[F]===g[P];F--,P--)T[P]=s[F],k[P]=l[F],f&&(S[P]=f[F]);for(M=new Map,x=new Array(P+1),_=P;_>=D;_--)z=g[_],C=M.get(z),x[_]=C===void 0?-1:C,M.set(z,_);for(C=D;C<=F;C++)z=o[C],_=M.get(z),_!==void 0&&_!==-1?(T[_]=s[C],k[_]=l[C],f&&(S[_]=f[C]),_=x[_],M.set(z,_)):l[C]();for(_=D;_<y;_++)_ in T?(s[_]=T[_],l[_]=k[_],f&&(f[_]=S[_],f[_](_))):s[_]=Ar($);s=s.slice(0,u=y),o=g.slice(0)}return s});function $(M){if(l[_]=M,f){const[x,T]=G(_);return f[_]=T,r(g[_],x)}return r(g[_])}}}function X(e,r){return Ht(()=>e(r||{}))}function Br(){return!0}const j6={get(e,r,i){return r===H0?i:e.get(r)},has(e,r){return r===H0?!0:e.has(r)},set:Br,deleteProperty:Br,getOwnPropertyDescriptor(e,r){return{configurable:!0,enumerable:!0,get(){return e.get(r)},set:Br,deleteProperty:Br}},ownKeys(e){return e.keys()}};function J0(e){return(e=typeof e=="function"?e():e)?e:{}}function Y6(){for(let e=0,r=this.length;e<r;++e){const i=this[e]();if(i!==void 0)return i}}function ba(...e){let r=!1;for(let u=0;u<e.length;u++){const f=e[u];r=r||!!f&&H0 in f,e[u]=typeof f=="function"?(r=!0,ln(f)):f}if(O6&&r)return new Proxy({get(u){for(let f=e.length-1;f>=0;f--){const g=J0(e[f])[u];if(g!==void 0)return g}},has(u){for(let f=e.length-1;f>=0;f--)if(u in J0(e[f]))return!0;return!1},keys(){const u=[];for(let f=0;f<e.length;f++)u.push(...Object.keys(J0(e[f])));return[...new Set(u)]}},j6);const i={},o=Object.create(null);for(let u=e.length-1;u>=0;u--){const f=e[u];if(!f)continue;const g=Object.getOwnPropertyNames(f);for(let y=g.length-1;y>=0;y--){const C=g[y];if(C==="__proto__"||C==="constructor")continue;const _=Object.getOwnPropertyDescriptor(f,C);if(!o[C])o[C]=_.get?{enumerable:!0,configurable:!0,get:Y6.bind(i[C]=[_.get.bind(f)])}:_.value!==void 0?_:void 0;else{const $=i[C];$&&(_.get?$.push(_.get.bind(f)):_.value!==void 0&&$.push(()=>_.value))}}}const s={},l=Object.keys(o);for(let u=l.length-1;u>=0;u--){const f=l[u],g=o[f];g&&g.get?Object.defineProperty(s,f,g):s[f]=g?g.value:void 0}return s}const G6=e=>`Stale read from <${e}>.`;function H6(e){const r="fallback"in e&&{fallback:()=>e.fallback};return ln(Q6(()=>e.each,e.children,r||void 0))}function ct(e){const r=e.keyed,i=ln(()=>e.when,void 0,void 0),o=r?i:ln(i,void 0,{equals:(s,l)=>!s==!l});return ln(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?Ht(()=>l(r?s:()=>{if(!Ht(o))throw G6("Show");return i()})):l}return e.fallback},void 0,void 0)}const et=e=>ln(()=>e());function V6(e,r,i){let o=i.length,s=r.length,l=o,u=0,f=0,g=r[s-1].nextSibling,y=null;for(;u<s||f<l;){if(r[u]===i[f]){u++,f++;continue}for(;r[s-1]===i[l-1];)s--,l--;if(s===u){const C=l<o?f?i[f-1].nextSibling:i[l-f]:g;for(;f<l;)e.insertBefore(i[f++],C)}else if(l===f)for(;u<s;)(!y||!y.has(r[u]))&&r[u].remove(),u++;else if(r[u]===i[l-1]&&i[f]===r[s-1]){const C=r[--s].nextSibling;e.insertBefore(i[f++],r[u++].nextSibling),e.insertBefore(i[--l],C),r[s]=i[l]}else{if(!y){y=new Map;let _=f;for(;_<l;)y.set(i[_],_++)}const C=y.get(r[u]);if(C!=null)if(f<C&&C<l){let _=u,$=1,M;for(;++_<s&&_<l&&!((M=y.get(r[_]))==null||M!==C+$);)$++;if($>C-f){const x=r[u];for(;f<C;)e.insertBefore(i[f++],x)}else e.replaceChild(i[f++],r[u++])}else u++;else r[u++].remove()}}}const _a="_$DX_DELEGATE";function q6(e,r,i,o={}){let s;return Ar(l=>{s=l,r===document?e():Y(r,e(),r.firstChild?null:void 0,i)},o.owner),()=>{s(),r.textContent=""}}function U(e,r,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},u=r?()=>Ht(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return u.cloneNode=u,u}function Rt(e,r=window.document){const i=r[_a]||(r[_a]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),r.addEventListener(l,X6))}}function bt(e,r,i){i==null?e.removeAttribute(r):e.setAttribute(r,i)}function Vt(e,r){r==null?e.removeAttribute("class"):e.className=r}function bn(e,r,i,o){if(o)Array.isArray(i)?(e[`$$${r}`]=i[0],e[`$$${r}Data`]=i[1]):e[`$$${r}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(r,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(r,i,typeof i!="function"&&i)}function qt(e,r,i){if(!r)return i?bt(e,"style"):r;const o=e.style;if(typeof r=="string")return o.cssText=r;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),r||(r={});let s,l;for(l in i)r[l]==null&&o.removeProperty(l),delete i[l];for(l in r)s=r[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Er(e,r,i){i!=null?e.style.setProperty(r,i):e.style.removeProperty(r)}function ei(e,r,i){return Ht(()=>e(r,i))}function Y(e,r,i,o){if(i!==void 0&&!o&&(o=[]),typeof r!="function")return Dr(e,r,o,i);Be(s=>Dr(e,r(),s,i),o)}function X6(e){let r=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=g=>Object.defineProperty(e,"target",{configurable:!0,value:g}),u=()=>{const g=r[i];if(g&&!r.disabled){const y=r[`${i}Data`];if(y!==void 0?g.call(r,y,e):g.call(r,e),e.cancelBubble)return}return r.host&&typeof r.host!="string"&&!r.host._$host&&r.contains(e.target)&&l(r.host),!0},f=()=>{for(;u()&&(r=r._$host||r.parentNode||r.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),e.composedPath){const g=e.composedPath();l(g[0]);for(let y=0;y<g.length-2&&(r=g[y],!!u());y++){if(r._$host){r=r._$host,f();break}if(r.parentNode===s)break}}else f();l(o)}function Dr(e,r,i,o,s){for(;typeof i=="function";)i=i();if(r===i)return i;const l=typeof r,u=o!==void 0;if(e=u&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(r=r.toString(),r===i))return i;if(u){let f=i[0];f&&f.nodeType===3?f.data!==r&&(f.data=r):f=document.createTextNode(r),i=g1(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=r:i=e.textContent=r}else if(r==null||l==="boolean")i=g1(e,i,o);else{if(l==="function")return Be(()=>{let f=r();for(;typeof f=="function";)f=f();i=Dr(e,f,i,o)}),()=>i;if(Array.isArray(r)){const f=[],g=i&&Array.isArray(i);if(ti(f,r,i,s))return Be(()=>i=Dr(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=g1(e,i,o),u)return i}else g?i.length===0?va(e,f,o):V6(e,i,f):(i&&g1(e),va(e,f));i=f}else if(r.nodeType){if(Array.isArray(i)){if(u)return i=g1(e,i,o,r);g1(e,i,null,r)}else i==null||i===""||!e.firstChild?e.appendChild(r):e.replaceChild(r,e.firstChild);i=r}}return i}function ti(e,r,i,o){let s=!1;for(let l=0,u=r.length;l<u;l++){let f=r[l],g=i&&i[e.length],y;if(!(f==null||f===!0||f===!1))if((y=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=ti(e,f,g)||s;else if(y==="function")if(o){for(;typeof f=="function";)f=f();s=ti(e,Array.isArray(f)?f:[f],Array.isArray(g)?g:[g])||s}else e.push(f),s=!0;else{const C=String(f);g&&g.nodeType===3&&g.data===C?e.push(g):e.push(document.createTextNode(C))}}return s}function va(e,r,i=null){for(let o=0,s=r.length;o<s;o++)e.insertBefore(r[o],i)}function g1(e,r,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(r.length){let l=!1;for(let u=r.length-1;u>=0;u--){const f=r[u];if(s!==f){const g=f.parentNode===e;!l&&!u?g?e.replaceChild(s,f):e.insertBefore(s,i):g&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function J6(){this.__data__=[],this.size=0}var e3=J6;function t3(e,r){return e===r||e!==e&&r!==r}var Ca=t3,n3=Ca;function r3(e,r){for(var i=e.length;i--;)if(n3(e[i][0],r))return i;return-1}var Rr=r3,i3=Rr,o3=Array.prototype,a3=o3.splice;function s3(e){var r=this.__data__,i=i3(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():a3.call(r,i,1),--this.size,!0}var l3=s3,c3=Rr;function u3(e){var r=this.__data__,i=c3(r,e);return i<0?void 0:r[i][1]}var f3=u3,d3=Rr;function h3(e){return d3(this.__data__,e)>-1}var g3=h3,p3=Rr;function y3(e,r){var i=this.__data__,o=p3(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var m3=y3,b3=e3,_3=l3,v3=f3,C3=g3,x3=m3;function p1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}p1.prototype.clear=b3,p1.prototype.delete=_3,p1.prototype.get=v3,p1.prototype.has=C3,p1.prototype.set=x3;var Fr=p1,w3=Fr;function L3(){this.__data__=new w3,this.size=0}var $3=L3;function k3(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var S3=k3;function A3(e){return this.__data__.get(e)}var M3=A3;function T3(e){return this.__data__.has(e)}var P3=T3,I3=typeof gn=="object"&&gn&&gn.Object===Object&&gn,xa=I3,O3=xa,B3=typeof self=="object"&&self&&self.Object===Object&&self,E3=O3||B3||Function("return this")(),cn=E3,D3=cn,R3=D3.Symbol,zr=R3,wa=zr,La=Object.prototype,F3=La.hasOwnProperty,z3=La.toString,tr=wa?wa.toStringTag:void 0;function N3(e){var r=F3.call(e,tr),i=e[tr];try{e[tr]=void 0;var o=!0}catch{}var s=z3.call(e);return o&&(r?e[tr]=i:delete e[tr]),s}var K3=N3,W3=Object.prototype,U3=W3.toString;function Z3(e){return U3.call(e)}var Q3=Z3,$a=zr,j3=K3,Y3=Q3,G3="[object Null]",H3="[object Undefined]",ka=$a?$a.toStringTag:void 0;function V3(e){return e==null?e===void 0?H3:G3:ka&&ka in Object(e)?j3(e):Y3(e)}var nr=V3;function q3(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var y1=q3,X3=nr,J3=y1,e8="[object AsyncFunction]",t8="[object Function]",n8="[object GeneratorFunction]",r8="[object Proxy]";function i8(e){if(!J3(e))return!1;var r=X3(e);return r==t8||r==n8||r==e8||r==r8}var Sa=i8,o8=cn,a8=o8["__core-js_shared__"],s8=a8,ni=s8,Aa=function(){var e=/[^.]+$/.exec(ni&&ni.keys&&ni.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l8(e){return!!Aa&&Aa in e}var c8=l8,u8=Function.prototype,f8=u8.toString;function d8(e){if(e!=null){try{return f8.call(e)}catch{}try{return e+""}catch{}}return""}var Ma=d8,h8=Sa,g8=c8,p8=y1,y8=Ma,m8=/[\\^$.*+?()[\]{}|]/g,b8=/^\[object .+?Constructor\]$/,_8=Function.prototype,v8=Object.prototype,C8=_8.toString,x8=v8.hasOwnProperty,w8=RegExp("^"+C8.call(x8).replace(m8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L8(e){if(!p8(e)||g8(e))return!1;var r=h8(e)?w8:b8;return r.test(y8(e))}var $8=L8;function k8(e,r){return e==null?void 0:e[r]}var S8=k8,A8=$8,M8=S8;function T8(e,r){var i=M8(e,r);return A8(i)?i:void 0}var Xn=T8,P8=Xn,I8=cn,O8=P8(I8,"Map"),ri=O8,B8=Xn,E8=B8(Object,"create"),Nr=E8,Ta=Nr;function D8(){this.__data__=Ta?Ta(null):{},this.size=0}var R8=D8;function F8(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var z8=F8,N8=Nr,K8="__lodash_hash_undefined__",W8=Object.prototype,U8=W8.hasOwnProperty;function Z8(e){var r=this.__data__;if(N8){var i=r[e];return i===K8?void 0:i}return U8.call(r,e)?r[e]:void 0}var Q8=Z8,j8=Nr,Y8=Object.prototype,G8=Y8.hasOwnProperty;function H8(e){var r=this.__data__;return j8?r[e]!==void 0:G8.call(r,e)}var V8=H8,q8=Nr,X8="__lodash_hash_undefined__";function J8(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=q8&&r===void 0?X8:r,this}var el=J8,tl=R8,nl=z8,rl=Q8,il=V8,ol=el;function m1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}m1.prototype.clear=tl,m1.prototype.delete=nl,m1.prototype.get=rl,m1.prototype.has=il,m1.prototype.set=ol;var al=m1,Pa=al,sl=Fr,ll=ri;function cl(){this.size=0,this.__data__={hash:new Pa,map:new(ll||sl),string:new Pa}}var ul=cl;function fl(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var dl=fl,hl=dl;function gl(e,r){var i=e.__data__;return hl(r)?i[typeof r=="string"?"string":"hash"]:i.map}var Kr=gl,pl=Kr;function yl(e){var r=pl(this,e).delete(e);return this.size-=r?1:0,r}var ml=yl,bl=Kr;function _l(e){return bl(this,e).get(e)}var vl=_l,Cl=Kr;function xl(e){return Cl(this,e).has(e)}var wl=xl,Ll=Kr;function $l(e,r){var i=Ll(this,e),o=i.size;return i.set(e,r),this.size+=i.size==o?0:1,this}var kl=$l,Sl=ul,Al=ml,Ml=vl,Tl=wl,Pl=kl;function b1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}b1.prototype.clear=Sl,b1.prototype.delete=Al,b1.prototype.get=Ml,b1.prototype.has=Tl,b1.prototype.set=Pl;var Ia=b1,Il=Fr,Ol=ri,Bl=Ia,El=200;function Dl(e,r){var i=this.__data__;if(i instanceof Il){var o=i.__data__;if(!Ol||o.length<El-1)return o.push([e,r]),this.size=++i.size,this;i=this.__data__=new Bl(o)}return i.set(e,r),this.size=i.size,this}var Rl=Dl,Fl=Fr,zl=$3,Nl=S3,Kl=M3,Wl=P3,Ul=Rl;function _1(e){var r=this.__data__=new Fl(e);this.size=r.size}_1.prototype.clear=zl,_1.prototype.delete=Nl,_1.prototype.get=Kl,_1.prototype.has=Wl,_1.prototype.set=Ul;var Zl=_1;function Ql(e,r){for(var i=-1,o=e==null?0:e.length;++i<o&&r(e[i],i,e)!==!1;);return e}var jl=Ql,Yl=Xn,Gl=function(){try{var e=Yl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Hl=Gl,Oa=Hl;function Vl(e,r,i){r=="__proto__"&&Oa?Oa(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}var Ba=Vl,ql=Ba,Xl=Ca,Jl=Object.prototype,e7=Jl.hasOwnProperty;function t7(e,r,i){var o=e[r];(!(e7.call(e,r)&&Xl(o,i))||i===void 0&&!(r in e))&&ql(e,r,i)}var ii=t7,n7=ii,r7=Ba;function i7(e,r,i,o){var s=!i;i||(i={});for(var l=-1,u=r.length;++l<u;){var f=r[l],g=o?o(i[f],e[f],f,i,e):void 0;g===void 0&&(g=e[f]),s?r7(i,f,g):n7(i,f,g)}return i}var Wr=i7;function o7(e,r){for(var i=-1,o=Array(e);++i<e;)o[i]=r(i);return o}var a7=o7;function s7(e){return e!=null&&typeof e=="object"}var v1=s7,l7=nr,c7=v1,u7="[object Arguments]";function f7(e){return c7(e)&&l7(e)==u7}var d7=f7,Ea=d7,h7=v1,Da=Object.prototype,g7=Da.hasOwnProperty,p7=Da.propertyIsEnumerable,y7=Ea(function(){return arguments}())?Ea:function(e){return h7(e)&&g7.call(e,"callee")&&!p7.call(e,"callee")},m7=y7,b7=Array.isArray,C1=b7,Ur={exports:{}};function _7(){return!1}var v7=_7;Ur.exports,function(e,r){var i=cn,o=v7,s=r&&!r.nodeType&&r,l=s&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===s,f=u?i.Buffer:void 0,g=f?f.isBuffer:void 0,y=g||o;e.exports=y}(Ur,Ur.exports);var Ra=Ur.exports,C7=9007199254740991,x7=/^(?:0|[1-9]\d*)$/;function w7(e,r){var i=typeof e;return r=r??C7,!!r&&(i=="number"||i!="symbol"&&x7.test(e))&&e>-1&&e%1==0&&e<r}var Fa=w7,L7=9007199254740991;function $7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=L7}var za=$7,k7=nr,S7=za,A7=v1,M7="[object Arguments]",T7="[object Array]",P7="[object Boolean]",I7="[object Date]",O7="[object Error]",B7="[object Function]",E7="[object Map]",D7="[object Number]",R7="[object Object]",F7="[object RegExp]",z7="[object Set]",N7="[object String]",K7="[object WeakMap]",W7="[object ArrayBuffer]",U7="[object DataView]",Z7="[object Float32Array]",Q7="[object Float64Array]",j7="[object Int8Array]",Y7="[object Int16Array]",G7="[object Int32Array]",H7="[object Uint8Array]",V7="[object Uint8ClampedArray]",q7="[object Uint16Array]",X7="[object Uint32Array]",We={};We[Z7]=We[Q7]=We[j7]=We[Y7]=We[G7]=We[H7]=We[V7]=We[q7]=We[X7]=!0,We[M7]=We[T7]=We[W7]=We[P7]=We[U7]=We[I7]=We[O7]=We[B7]=We[E7]=We[D7]=We[R7]=We[F7]=We[z7]=We[N7]=We[K7]=!1;function J7(e){return A7(e)&&S7(e.length)&&!!We[k7(e)]}var ec=J7;function tc(e){return function(r){return e(r)}}var oi=tc,Zr={exports:{}};Zr.exports,function(e,r){var i=xa,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l&&i.process,f=function(){try{var g=s&&s.require&&s.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();e.exports=f}(Zr,Zr.exports);var ai=Zr.exports,nc=ec,rc=oi,Na=ai,Ka=Na&&Na.isTypedArray,ic=Ka?rc(Ka):nc,oc=ic,ac=a7,sc=m7,lc=C1,cc=Ra,uc=Fa,fc=oc,dc=Object.prototype,hc=dc.hasOwnProperty;function gc(e,r){var i=lc(e),o=!i&&sc(e),s=!i&&!o&&cc(e),l=!i&&!o&&!s&&fc(e),u=i||o||s||l,f=u?ac(e.length,String):[],g=f.length;for(var y in e)(r||hc.call(e,y))&&!(u&&(y=="length"||s&&(y=="offset"||y=="parent")||l&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||uc(y,g)))&&f.push(y);return f}var Wa=gc,pc=Object.prototype;function yc(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||pc;return e===i}var si=yc;function mc(e,r){return function(i){return e(r(i))}}var Ua=mc,bc=Ua,_c=bc(Object.keys,Object),vc=_c,Cc=si,xc=vc,wc=Object.prototype,Lc=wc.hasOwnProperty;function $c(e){if(!Cc(e))return xc(e);var r=[];for(var i in Object(e))Lc.call(e,i)&&i!="constructor"&&r.push(i);return r}var kc=$c,Sc=Sa,Ac=za;function Mc(e){return e!=null&&Ac(e.length)&&!Sc(e)}var Za=Mc,Tc=Wa,Pc=kc,Ic=Za;function Oc(e){return Ic(e)?Tc(e):Pc(e)}var li=Oc,Bc=Wr,Ec=li;function Dc(e,r){return e&&Bc(r,Ec(r),e)}var Rc=Dc;function Fc(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var zc=Fc,Nc=y1,Kc=si,Wc=zc,Uc=Object.prototype,Zc=Uc.hasOwnProperty;function Qc(e){if(!Nc(e))return Wc(e);var r=Kc(e),i=[];for(var o in e)o=="constructor"&&(r||!Zc.call(e,o))||i.push(o);return i}var jc=Qc,Yc=Wa,Gc=jc,Hc=Za;function Vc(e){return Hc(e)?Yc(e,!0):Gc(e)}var ci=Vc,qc=Wr,Xc=ci;function Jc(e,r){return e&&qc(r,Xc(r),e)}var e4=Jc,Qr={exports:{}};Qr.exports,function(e,r){var i=cn,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l?i.Buffer:void 0,f=u?u.allocUnsafe:void 0;function g(y,C){if(C)return y.slice();var _=y.length,$=f?f(_):new y.constructor(_);return y.copy($),$}e.exports=g}(Qr,Qr.exports);var t4=Qr.exports;function n4(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i<o;)r[i]=e[i];return r}var r4=n4;function i4(e,r){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var u=e[i];r(u,i,e)&&(l[s++]=u)}return l}var o4=i4;function a4(){return[]}var Qa=a4,s4=o4,l4=Qa,c4=Object.prototype,u4=c4.propertyIsEnumerable,ja=Object.getOwnPropertySymbols,f4=ja?function(e){return e==null?[]:(e=Object(e),s4(ja(e),function(r){return u4.call(e,r)}))}:l4,ui=f4,d4=Wr,h4=ui;function g4(e,r){return d4(e,h4(e),r)}var p4=g4;function y4(e,r){for(var i=-1,o=r.length,s=e.length;++i<o;)e[s+i]=r[i];return e}var Ya=y4,m4=Ua,b4=m4(Object.getPrototypeOf,Object),Ga=b4,_4=Ya,v4=Ga,C4=ui,x4=Qa,w4=Object.getOwnPropertySymbols,L4=w4?function(e){for(var r=[];e;)_4(r,C4(e)),e=v4(e);return r}:x4,Ha=L4,$4=Wr,k4=Ha;function S4(e,r){return $4(e,k4(e),r)}var A4=S4,M4=Ya,T4=C1;function P4(e,r,i){var o=r(e);return T4(e)?o:M4(o,i(e))}var Va=P4,I4=Va,O4=ui,B4=li;function E4(e){return I4(e,B4,O4)}var D4=E4,R4=Va,F4=Ha,z4=ci;function N4(e){return R4(e,z4,F4)}var K4=N4,W4=Xn,U4=cn,Z4=W4(U4,"DataView"),Q4=Z4,j4=Xn,Y4=cn,G4=j4(Y4,"Promise"),H4=G4,V4=Xn,q4=cn,X4=V4(q4,"Set"),J4=X4,eu=Xn,tu=cn,nu=eu(tu,"WeakMap"),ru=nu,fi=Q4,di=ri,hi=H4,gi=J4,pi=ru,qa=nr,x1=Ma,Xa="[object Map]",iu="[object Object]",Ja="[object Promise]",e9="[object Set]",t9="[object WeakMap]",n9="[object DataView]",ou=x1(fi),au=x1(di),su=x1(hi),lu=x1(gi),cu=x1(pi),Jn=qa;(fi&&Jn(new fi(new ArrayBuffer(1)))!=n9||di&&Jn(new di)!=Xa||hi&&Jn(hi.resolve())!=Ja||gi&&Jn(new gi)!=e9||pi&&Jn(new pi)!=t9)&&(Jn=function(e){var r=qa(e),i=r==iu?e.constructor:void 0,o=i?x1(i):"";if(o)switch(o){case ou:return n9;case au:return Xa;case su:return Ja;case lu:return e9;case cu:return t9}return r});var yi=Jn,uu=Object.prototype,fu=uu.hasOwnProperty;function du(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&fu.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var hu=du,gu=cn,pu=gu.Uint8Array,yu=pu,r9=yu;function mu(e){var r=new e.constructor(e.byteLength);return new r9(r).set(new r9(e)),r}var mi=mu,bu=mi;function _u(e,r){var i=r?bu(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var vu=_u,Cu=/\w*$/;function xu(e){var r=new e.constructor(e.source,Cu.exec(e));return r.lastIndex=e.lastIndex,r}var wu=xu,i9=zr,o9=i9?i9.prototype:void 0,a9=o9?o9.valueOf:void 0;function Lu(e){return a9?Object(a9.call(e)):{}}var $u=Lu,ku=mi;function Su(e,r){var i=r?ku(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Au=Su,Mu=mi,Tu=vu,Pu=wu,Iu=$u,Ou=Au,Bu="[object Boolean]",Eu="[object Date]",Du="[object Map]",Ru="[object Number]",Fu="[object RegExp]",zu="[object Set]",Nu="[object String]",Ku="[object Symbol]",Wu="[object ArrayBuffer]",Uu="[object DataView]",Zu="[object Float32Array]",Qu="[object Float64Array]",ju="[object Int8Array]",Yu="[object Int16Array]",Gu="[object Int32Array]",Hu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",qu="[object Uint16Array]",Xu="[object Uint32Array]";function Ju(e,r,i){var o=e.constructor;switch(r){case Wu:return Mu(e);case Bu:case Eu:return new o(+e);case Uu:return Tu(e,i);case Zu:case Qu:case ju:case Yu:case Gu:case Hu:case Vu:case qu:case Xu:return Ou(e,i);case Du:return new o;case Ru:case Nu:return new o(e);case Fu:return Pu(e);case zu:return new o;case Ku:return Iu(e)}}var ef=Ju,tf=y1,s9=Object.create,nf=function(){function e(){}return function(r){if(!tf(r))return{};if(s9)return s9(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),rf=nf,of=rf,af=Ga,sf=si;function lf(e){return typeof e.constructor=="function"&&!sf(e)?of(af(e)):{}}var cf=lf,uf=yi,ff=v1,df="[object Map]";function hf(e){return ff(e)&&uf(e)==df}var gf=hf,pf=gf,yf=oi,l9=ai,c9=l9&&l9.isMap,mf=c9?yf(c9):pf,bf=mf,_f=yi,vf=v1,Cf="[object Set]";function xf(e){return vf(e)&&_f(e)==Cf}var wf=xf,Lf=wf,$f=oi,u9=ai,f9=u9&&u9.isSet,kf=f9?$f(f9):Lf,Sf=kf,Af=Zl,Mf=jl,Tf=ii,Pf=Rc,If=e4,Of=t4,Bf=r4,Ef=p4,Df=A4,Rf=D4,Ff=K4,zf=yi,Nf=hu,Kf=ef,Wf=cf,Uf=C1,Zf=Ra,Qf=bf,jf=y1,Yf=Sf,Gf=li,Hf=ci,Vf=1,qf=2,Xf=4,d9="[object Arguments]",Jf="[object Array]",ed="[object Boolean]",td="[object Date]",nd="[object Error]",h9="[object Function]",rd="[object GeneratorFunction]",id="[object Map]",od="[object Number]",g9="[object Object]",ad="[object RegExp]",sd="[object Set]",ld="[object String]",cd="[object Symbol]",ud="[object WeakMap]",fd="[object ArrayBuffer]",dd="[object DataView]",hd="[object Float32Array]",gd="[object Float64Array]",pd="[object Int8Array]",yd="[object Int16Array]",md="[object Int32Array]",bd="[object Uint8Array]",_d="[object Uint8ClampedArray]",vd="[object Uint16Array]",Cd="[object Uint32Array]",Re={};Re[d9]=Re[Jf]=Re[fd]=Re[dd]=Re[ed]=Re[td]=Re[hd]=Re[gd]=Re[pd]=Re[yd]=Re[md]=Re[id]=Re[od]=Re[g9]=Re[ad]=Re[sd]=Re[ld]=Re[cd]=Re[bd]=Re[_d]=Re[vd]=Re[Cd]=!0,Re[nd]=Re[h9]=Re[ud]=!1;function jr(e,r,i,o,s,l){var u,f=r&Vf,g=r&qf,y=r&Xf;if(i&&(u=s?i(e,o,s,l):i(e)),u!==void 0)return u;if(!jf(e))return e;var C=Uf(e);if(C){if(u=Nf(e),!f)return Bf(e,u)}else{var _=zf(e),$=_==h9||_==rd;if(Zf(e))return Of(e,f);if(_==g9||_==d9||$&&!s){if(u=g||$?{}:Wf(e),!f)return g?Df(e,If(u,e)):Ef(e,Pf(u,e))}else{if(!Re[_])return s?e:{};u=Kf(e,_,f)}}l||(l=new Af);var M=l.get(e);if(M)return M;l.set(e,u),Yf(e)?e.forEach(function(k){u.add(jr(k,r,i,k,e,l))}):Qf(e)&&e.forEach(function(k,S){u.set(S,jr(k,r,i,S,e,l))});var x=y?g?Ff:Rf:g?Hf:Gf,T=C?void 0:x(e);return Mf(T||e,function(k,S){T&&(S=k,k=e[S]),Tf(u,S,jr(k,r,i,S,e,l))}),u}var xd=jr,wd=xd,Ld=1,$d=4;function kd(e){return wd(e,Ld|$d)}var Sd=kd;const Ad=Y0(Sd);var Md=nr,Td=v1,Pd="[object Symbol]";function Id(e){return typeof e=="symbol"||Td(e)&&Md(e)==Pd}var bi=Id,Od=C1,Bd=bi,Ed=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dd=/^\w*$/;function Rd(e,r){if(Od(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Bd(e)?!0:Dd.test(e)||!Ed.test(e)||r!=null&&e in Object(r)}var Fd=Rd,p9=Ia,zd="Expected a function";function _i(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(zd);var i=function(){var o=arguments,s=r?r.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var u=e.apply(this,o);return i.cache=l.set(s,u)||l,u};return i.cache=new(_i.Cache||p9),i}_i.Cache=p9;var Nd=_i,Kd=Nd,Wd=500;function Ud(e){var r=Kd(e,function(o){return i.size===Wd&&i.clear(),o}),i=r.cache;return r}var Zd=Ud,Qd=Zd,jd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yd=/\\(\\)?/g,Gd=Qd(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(jd,function(i,o,s,l){r.push(s?l.replace(Yd,"$1"):o||i)}),r}),Hd=Gd;function Vd(e,r){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=r(e[i],i,e);return s}var qd=Vd,y9=zr,Xd=qd,Jd=C1,eh=bi,th=1/0,m9=y9?y9.prototype:void 0,b9=m9?m9.toString:void 0;function _9(e){if(typeof e=="string")return e;if(Jd(e))return Xd(e,_9)+"";if(eh(e))return b9?b9.call(e):"";var r=e+"";return r=="0"&&1/e==-th?"-0":r}var nh=_9,rh=nh;function ih(e){return e==null?"":rh(e)}var oh=ih,ah=C1,sh=Fd,lh=Hd,ch=oh;function uh(e,r){return ah(e)?e:sh(e,r)?[e]:lh(ch(e))}var fh=uh,dh=bi,hh=1/0;function gh(e){if(typeof e=="string"||dh(e))return e;var r=e+"";return r=="0"&&1/e==-hh?"-0":r}var ph=gh,yh=ii,mh=fh,bh=Fa,v9=y1,_h=ph;function vh(e,r,i,o){if(!v9(e))return e;r=mh(r,e);for(var s=-1,l=r.length,u=l-1,f=e;f!=null&&++s<l;){var g=_h(r[s]),y=i;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(s!=u){var C=f[g];y=o?o(C,g,f):void 0,y===void 0&&(y=v9(C)?C:bh(r[s+1])?[]:{})}yh(f,g,y),f=f[g]}return e}var Ch=vh,xh=Ch;function wh(e,r,i){return e==null?e:xh(e,r,i)}var Lh=wh;const rr=Y0(Lh);var $h=U("<button>");const kh=e=>(()=>{var r=$h();return bn(r,"click",e.onClick,!0),Y(r,()=>e.children),Be(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=qt(r,o,i.e),s!==i.t&&Vt(r,i.t=s),i},{e:void 0,t:void 0}),r})();Rt(["click"]);var Sh=U('<svg viewBox="0 0 1024 1024"class=icon><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m-353.706667 567.04a42.496 42.496 0 0 1-60.16 0L243.626667 541.866667c-8.106667-8.106667-12.373333-18.773333-12.373334-29.866667s4.693333-22.186667 12.373334-29.866667a42.496 42.496 0 0 1 60.16 0L426.666667 604.586667l293.546666-293.546667a42.496 42.496 0 1 1 60.16 60.16l-323.413333 323.84z">'),Ah=U('<svg viewBox="0 0 1024 1024"class=icon><path d="M245.333333 128h533.333334A117.333333 117.333333 0 0 1 896 245.333333v533.333334A117.333333 117.333333 0 0 1 778.666667 896H245.333333A117.333333 117.333333 0 0 1 128 778.666667V245.333333A117.333333 117.333333 0 0 1 245.333333 128z m0 64c-29.44 0-53.333333 23.893333-53.333333 53.333333v533.333334c0 29.44 23.893333 53.333333 53.333333 53.333333h533.333334c29.44 0 53.333333-23.893333 53.333333-53.333333V245.333333c0-29.44-23.893333-53.333333-53.333333-53.333333H245.333333z">'),Mh=U("<div>"),Th=U("<span class=label>");const Ph=()=>Sh(),Ih=()=>Ah(),C9=e=>{const[r,i]=G(e.checked??!1);return sn(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=Mh();return o.$$click=s=>{const l=!r();e.onChange&&e.onChange(l),i(l)},Y(o,(()=>{var s=et(()=>!!r());return()=>s()?X(Ph,{}):X(Ih,{})})(),null),Y(o,(()=>{var s=et(()=>!!e.label);return()=>s()&&(()=>{var l=Th();return Y(l,()=>e.label),l})()})(),null),Be(s=>{var l=e.style,u=`klinecharts-pro-checkbox ${r()&&"checked"||""} ${e.class||""}`;return s.e=qt(o,l,s.e),u!==s.t&&Vt(o,s.t=u),s},{e:void 0,t:void 0}),o})()};Rt(["click"]);var Oh=U("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const x9=()=>Oh();var Bh=U('<div class=klinecharts-pro-empty><svg class=icon viewBox="0 0 1024 1024"><path d="M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z">');const Eh=()=>Bh();var Dh=U("<ul>"),Rh=U("<li>");const Yr=e=>(()=>{var r=Dh();return Y(r,X(ct,{get when(){return e.loading},get children(){return X(x9,{})}}),null),Y(r,X(ct,{get when(){var i;return et(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return X(Eh,{})}}),null),Y(r,X(ct,{get when(){return e.children},get children(){return e.children}}),null),Y(r,X(ct,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(o=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,o))??Rh()})}}),null),Be(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=qt(r,o,i.e),s!==i.t&&Vt(r,i.t=s),i},{e:void 0,t:void 0}),r})();var Fh=U('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),zh=U("<div class=button-container>");const w1=e=>{const r=o=>{var s;o.target&&o.target.classList.contains("klinecharts-pro-modal")&&((s=e.onClose)==null||s.call(e))},i={};return e.width!=null&&(i.width=`${e.width}px`,i["max-width"]=`${e.width}px`),e.height!=null&&(i.height=`${e.height}px`,i["max-height"]=`${e.height}px`),(()=>{var o=Fh(),s=o.firstChild,l=s.firstChild,u=l.firstChild,f=l.nextSibling;return o.$$click=r,Y(l,()=>e.title,u),bn(u,"click",e.onClose,!0),Y(f,()=>e.children),Y(s,(()=>{var g=et(()=>!!(e.buttons&&e.buttons.length>0));return()=>g()&&(()=>{var y=zh();return Y(y,()=>e.buttons.map(C=>X(kh,ba(C,{get children(){return C.children}})))),y})()})(),null),Be(g=>{var y=`inner${e.height!=null?" inner--fixed-height":""}`,C=i;return y!==g.e&&Vt(s,g.e=y),g.t=qt(s,C,g.t),g},{e:void 0,t:void 0}),o})()};Rt(["click"]);var Nh=U("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),Kh=U("<div class=drop-down-container><ul>"),Wh=U("<li>");const w9=e=>{const[r,i]=G(!1);return(()=>{var o=Nh(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",u=>{i(!1)}),o.$$click=u=>{i(f=>!f)},Y(l,()=>e.value),Y(o,(()=>{var u=et(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>u()&&(()=>{var f=Kh(),g=f.firstChild;return Y(g,()=>e.dataSource.map(y=>{const _=y[e.valueKey??"text"]??y;return(()=>{var $=Wh();return $.$$click=M=>{var x;M.stopPropagation(),e.value!==_&&((x=e.onSelected)==null||x.call(e,y)),i(!1)},Y($,_),$})()})),f})()})(),null),Be(u=>{var f=e.style,g=`klinecharts-pro-select ${e.class??""} ${r()?"klinecharts-pro-select-show":""}`;return u.e=qt(o,f,u.e),g!==u.t&&Vt(o,u.t=g),u},{e:void 0,t:void 0}),o})()};Rt(["click"]);var Uh=U("<span class=prefix>"),Zh=U("<span class=suffix>"),Qh=U("<div><input id=myInput class=value>");const[jh,lk]=G("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),L9=e=>{const r=ba({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=G("normal"),l=u=>{u&&u.focus()};return sn(()=>{l(document.querySelector("#myInput"))}),(()=>{var u=Qh(),f=u.firstChild;u.$$click=()=>{i==null||i.focus()},Y(u,X(ct,{get when(){return r.prefix},get children(){var y=Uh();return Y(y,()=>r.prefix),y}}),f),bn(f,"keydown",r.onKeyDown,!0),f.addEventListener("change",y=>{var _,$;const C=y.target.value;if("precision"in r){let M;const x=Math.max(0,Math.floor(r.precision));x<=0?M=new RegExp(/^[1-9]\d*$/):M=new RegExp("^\\d+\\.?\\d{0,"+x+"}$"),(C===""||M.test(C)&&+C>=r.min&&+C<=r.max)&&((_=r.onChange)==null||_.call(r,C===""?C:+C))}else($=r.onChange)==null||$.call(r,C)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var g=i;return typeof g=="function"?ei(g,f):i=f,Y(u,X(ct,{get when(){return r.suffix},get children(){var y=Zh();return Y(y,()=>r.suffix),y}}),null),Be(y=>{var C=r.style,_=`${jh()}${r.class??""}`,$=o(),M=r.placeholder??"",x=r.focus===!0?r.focus:!1;return y.e=qt(u,C,y.e),_!==y.t&&Vt(u,y.t=_),$!==y.a&&bt(u,"data-status",y.a=$),M!==y.o&&bt(f,"placeholder",y.o=M),x!==y.i&&(f.autofocus=y.i=x),y},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Be(()=>f.value=r.value),u})()};Rt(["click","keydown"]);var Yh=U("<div><i class=thumb>");const Gh=e=>(()=>{var r=Yh();return r.$$click=i=>{e.onChange&&e.onChange()},Be(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=qt(r,o,i.e),s!==i.t&&Vt(r,i.t=s),i},{e:void 0,t:void 0}),r})();Rt(["click"]);const{min:Hh,max:Vh}=Math,e1=(e,r=0,i=1)=>Hh(Vh(r,e),i),vi=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=e1(e[r],0,255)):r===3&&(e[r]=e1(e[r],0,1));return e},$9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])$9[`[object ${e}]`]=e.toLowerCase();function we(e){return $9[Object.prototype.toString.call(e)]||"object"}const me=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):we(e[0])=="object"&&r?r.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),L1=e=>{if(e.length<2)return null;const r=e.length-1;return we(e[r])=="string"?e[r].toLowerCase():null},{PI:Gr,min:k9,max:S9}=Math,Ft=e=>Math.round(e*100)/100,Ci=e=>Math.round(e*100)/100,_n=Gr*2,xi=Gr/3,qh=Gr/180,Xh=180/Gr;function A9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const he={format:{},autodetect:[]};let K=class{constructor(...r){const i=this;if(we(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=L1(r),s=!1;if(!o){s=!0,he.sorted||(he.autodetect=he.autodetect.sort((l,u)=>u.p-l.p),he.sorted=!0);for(let l of he.autodetect)if(o=l.test(...r),o)break}if(he.format[o]){const l=he.format[o].apply(null,s?r:r.slice(0,-1));i._rgb=vi(l)}else throw new Error("unknown format: "+r);i._rgb.length===3&&i._rgb.push(1)}toString(){return we(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Jh="3.2.0",de=(...e)=>new K(...e);de.version=Jh;const $1={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},eg=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,tg=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,M9=e=>{if(e.match(eg)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),i=r>>16,o=r>>8&255,s=r&255;return[i,o,s,1]}if(e.match(tg)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),i=r>>24&255,o=r>>16&255,s=r>>8&255,l=Math.round((r&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:Hr}=Math,T9=(...e)=>{let[r,i,o,s]=me(e,"rgba"),l=L1(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),r=Hr(r),i=Hr(i),o=Hr(o);let f="000000"+(r<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let g="0"+Hr(s*255).toString(16);switch(g=g.substr(g.length-2),l.toLowerCase()){case"rgba":return`#${f}${g}`;case"argb":return`#${g}${f}`;default:return`#${f}`}};K.prototype.name=function(){const e=T9(this._rgb,"rgb");for(let r of Object.keys($1))if($1[r]===e)return r.toLowerCase();return e},he.format.named=e=>{if(e=e.toLowerCase(),$1[e])return M9($1[e]);throw new Error("unknown color name: "+e)},he.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&we(e)==="string"&&$1[e.toLowerCase()])return"named"}}),K.prototype.alpha=function(e,r=!1){return e!==void 0&&we(e)==="number"?r?(this._rgb[3]=e,this):new K([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},K.prototype.clipped=function(){return this._rgb._clipped||!1};const un={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},ng=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function vn(e){const r=ng.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);un.labWhitePoint=e,un.Xn=r[0],un.Zn=r[1]}function ir(){return un.labWhitePoint}const wi=(...e)=>{e=me(e,"lab");const[r,i,o]=e,[s,l,u]=rg(r,i,o),[f,g,y]=P9(s,l,u);return[f,g,y,e.length>3?e[3]:1]},rg=(e,r,i)=>{const{kE:o,kK:s,kKE:l,Xn:u,Yn:f,Zn:g}=un,y=(e+16)/116,C=.002*r+y,_=y-.005*i,$=C*C*C,M=_*_*_,x=$>o?$:(116*C-16)/s,T=e>l?Math.pow((e+16)/116,3):e/s,k=M>o?M:(116*_-16)/s,S=x*u,D=T*f,F=k*g;return[S,D,F]},Li=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},P9=(e,r,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:u,Xn:f,Yn:g,Zn:y}=un,C=f*o.m00+g*o.m10+y*o.m20,_=f*o.m01+g*o.m11+y*o.m21,$=f*o.m02+g*o.m12+y*o.m22,M=u.X*o.m00+u.Y*o.m10+u.Z*o.m20,x=u.X*o.m01+u.Y*o.m11+u.Z*o.m21,T=u.X*o.m02+u.Y*o.m12+u.Z*o.m22,k=(e*o.m00+r*o.m10+i*o.m20)*(M/C),S=(e*o.m01+r*o.m11+i*o.m21)*(x/_),D=(e*o.m02+r*o.m12+i*o.m22)*(T/$),F=k*s.m00+S*s.m10+D*s.m20,P=k*s.m01+S*s.m11+D*s.m21,z=k*s.m02+S*s.m12+D*s.m22,q=Li(F*l.m00+P*l.m10+z*l.m20),Z=Li(F*l.m01+P*l.m11+z*l.m21),O=Li(F*l.m02+P*l.m12+z*l.m22);return[q*255,Z*255,O*255]},$i=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),[l,u,f]=I9(r,i,o),[g,y,C]=ig(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]};function ig(e,r,i){const{Xn:o,Yn:s,Zn:l,kE:u,kK:f}=un,g=e/o,y=r/s,C=i/l,_=g>u?Math.pow(g,1/3):(f*g+16)/116,$=y>u?Math.pow(y,1/3):(f*y+16)/116,M=C>u?Math.pow(C,1/3):(f*C+16)/116;return[116*$-16,500*(_-$),200*($-M)]}function ki(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const I9=(e,r,i)=>{e=ki(e/255),r=ki(r/255),i=ki(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:u,Yn:f,Zn:g,As:y,Bs:C,Cs:_}=un;let $=e*o.m00+r*o.m10+i*o.m20,M=e*o.m01+r*o.m11+i*o.m21,x=e*o.m02+r*o.m12+i*o.m22;const T=u*s.m00+f*s.m10+g*s.m20,k=u*s.m01+f*s.m11+g*s.m21,S=u*s.m02+f*s.m12+g*s.m22;let D=$*s.m00+M*s.m10+x*s.m20,F=$*s.m01+M*s.m11+x*s.m21,P=$*s.m02+M*s.m12+x*s.m22;return D*=T/y,F*=k/C,P*=S/_,$=D*l.m00+F*l.m10+P*l.m20,M=D*l.m01+F*l.m11+P*l.m21,x=D*l.m02+F*l.m12+P*l.m22,[$,M,x]};K.prototype.lab=function(){return $i(this._rgb)},Object.assign(de,{lab:(...e)=>new K(...e,"lab"),getLabWhitePoint:ir,setLabWhitePoint:vn}),he.format.lab=wi,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),we(e)==="array"&&e.length===3)return"lab"}}),K.prototype.darken=function(e=1){const r=this,i=r.lab();return i[0]-=un.Kn*e,new K(i,"lab").alpha(r.alpha(),!0)},K.prototype.brighten=function(e=1){return this.darken(-e)},K.prototype.darker=K.prototype.darken,K.prototype.brighter=K.prototype.brighten,K.prototype.get=function(e){const[r,i]=e.split("."),o=this[r]();if(i){const s=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${r}`)}else return o};const{pow:og}=Math,ag=1e-7,sg=20;K.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&we(e)==="number"){if(e===0)return new K([0,0,0,this._rgb[3]],"rgb");if(e===1)return new K([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=sg;const s=(u,f)=>{const g=u.interpolate(f,.5,r),y=g.luminance();return Math.abs(e-y)<ag||!o--?g:y>e?s(u,g):s(g,f)},l=(i>e?s(new K([0,0,0]),this):s(this,new K([255,255,255]))).rgb();return new K([...l,this._rgb[3]])}return lg(...this._rgb.slice(0,3))};const lg=(e,r,i)=>(e=Si(e),r=Si(r),i=Si(i),.2126*e+.7152*r+.0722*i),Si=e=>(e/=255,e<=.03928?e/12.92:og((e+.055)/1.055,2.4)),gt={},k1=(e,r,i=.5,...o)=>{let s=o[0]||"lrgb";if(!gt[s]&&!o.length&&(s=Object.keys(gt)[0]),!gt[s])throw new Error(`interpolation mode ${s} is not defined`);return we(e)!=="object"&&(e=new K(e)),we(r)!=="object"&&(r=new K(r)),gt[s](e,r,i).alpha(e.alpha()+i*(r.alpha()-e.alpha()))};K.prototype.mix=K.prototype.interpolate=function(e,r=.5,...i){return k1(this,e,r,...i)},K.prototype.premultiply=function(e=!1){const r=this._rgb,i=r[3];return e?(this._rgb=[r[0]*i,r[1]*i,r[2]*i,i],this):new K([r[0]*i,r[1]*i,r[2]*i,i],"rgb")};const{sin:cg,cos:ug}=Math,O9=(...e)=>{let[r,i,o]=me(e,"lch");return isNaN(o)&&(o=0),o=o*qh,[r,ug(o)*i,cg(o)*i]},Ai=(...e)=>{e=me(e,"lch");const[r,i,o]=e,[s,l,u]=O9(r,i,o),[f,g,y]=wi(s,l,u);return[f,g,y,e.length>3?e[3]:1]},fg=(...e)=>{const r=A9(me(e,"hcl"));return Ai(...r)},{sqrt:dg,atan2:hg,round:gg}=Math,B9=(...e)=>{const[r,i,o]=me(e,"lab"),s=dg(i*i+o*o);let l=(hg(o,i)*Xh+360)%360;return gg(s*1e4)===0&&(l=Number.NaN),[r,s,l]},Mi=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),[l,u,f]=$i(r,i,o),[g,y,C]=B9(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]};K.prototype.lch=function(){return Mi(this._rgb)},K.prototype.hcl=function(){return A9(Mi(this._rgb))},Object.assign(de,{lch:(...e)=>new K(...e,"lch"),hcl:(...e)=>new K(...e,"hcl")}),he.format.lch=Ai,he.format.hcl=fg,["lch","hcl"].forEach(e=>he.autodetect.push({p:2,test:(...r)=>{if(r=me(r,e),we(r)==="array"&&r.length===3)return e}})),K.prototype.saturate=function(e=1){const r=this,i=r.lch();return i[1]+=un.Kn*e,i[1]<0&&(i[1]=0),new K(i,"lch").alpha(r.alpha(),!0)},K.prototype.desaturate=function(e=1){return this.saturate(-e)},K.prototype.set=function(e,r,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const u=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(u>-1){if(we(r)=="string")switch(r.charAt(0)){case"+":l[u]+=+r;break;case"-":l[u]+=+r;break;case"*":l[u]*=+r.substr(1);break;case"/":l[u]/=+r.substr(1);break;default:l[u]=+r}else if(we(r)==="number")l[u]=r;else throw new Error("unsupported value for Color.set");const f=new K(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},K.prototype.tint=function(e=.5,...r){return k1(this,"white",e,...r)},K.prototype.shade=function(e=.5,...r){return k1(this,"black",e,...r)};const pg=(e,r,i)=>{const o=e._rgb,s=r._rgb;return new K(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};gt.rgb=pg;const{sqrt:Ti,pow:S1}=Math,yg=(e,r,i)=>{const[o,s,l]=e._rgb,[u,f,g]=r._rgb;return new K(Ti(S1(o,2)*(1-i)+S1(u,2)*i),Ti(S1(s,2)*(1-i)+S1(f,2)*i),Ti(S1(l,2)*(1-i)+S1(g,2)*i),"rgb")};gt.lrgb=yg;const mg=(e,r,i)=>{const o=e.lab(),s=r.lab();return new K(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};gt.lab=mg;const A1=(e,r,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=r.hsl()):o==="hsv"?(s=e.hsv(),l=r.hsv()):o==="hcg"?(s=e.hcg(),l=r.hcg()):o==="hsi"?(s=e.hsi(),l=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=r.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=r.oklch().reverse());let u,f,g,y,C,_;(o.substr(0,1)==="h"||o==="oklch")&&([u,g,C]=s,[f,y,_]=l);let $,M,x,T;return!isNaN(u)&&!isNaN(f)?(f>u&&f-u>180?T=f-(u+360):f<u&&u-f>180?T=f+360-u:T=f-u,M=u+i*T):isNaN(u)?isNaN(f)?M=Number.NaN:(M=f,(C==1||C==0)&&o!="hsv"&&($=y)):(M=u,(_==1||_==0)&&o!="hsv"&&($=g)),$===void 0&&($=g+i*(y-g)),x=C+i*(_-C),o==="oklch"?new K([x,$,M],o):new K([M,$,x],o)},E9=(e,r,i)=>A1(e,r,i,"lch");gt.lch=E9,gt.hcl=E9;const bg=e=>{if(we(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,i=e>>8&255,o=e&255;return[r,i,o,1]}throw new Error("unknown num color: "+e)},_g=(...e)=>{const[r,i,o]=me(e,"rgb");return(r<<16)+(i<<8)+o};K.prototype.num=function(){return _g(this._rgb)},Object.assign(de,{num:(...e)=>new K(...e,"num")}),he.format.num=bg,he.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&we(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const vg=(e,r,i)=>{const o=e.num(),s=r.num();return new K(o+i*(s-o),"num")};gt.num=vg;const{floor:Cg}=Math,xg=(...e)=>{e=me(e,"hcg");let[r,i,o]=e,s,l,u;o=o*255;const f=i*255;if(i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const g=Cg(r),y=r-g,C=o*(1-i),_=C+f*(1-y),$=C+f*y,M=C+f;switch(g){case 0:[s,l,u]=[M,$,C];break;case 1:[s,l,u]=[_,M,C];break;case 2:[s,l,u]=[C,M,$];break;case 3:[s,l,u]=[C,_,M];break;case 4:[s,l,u]=[$,C,M];break;case 5:[s,l,u]=[M,C,_];break}}return[s,l,u,e.length>3?e[3]:1]},wg=(...e)=>{const[r,i,o]=me(e,"rgb"),s=k9(r,i,o),l=S9(r,i,o),u=l-s,f=u*100/255,g=s/(255-u)*100;let y;return u===0?y=Number.NaN:(r===l&&(y=(i-o)/u),i===l&&(y=2+(o-r)/u),o===l&&(y=4+(r-i)/u),y*=60,y<0&&(y+=360)),[y,f,g]};K.prototype.hcg=function(){return wg(this._rgb)};const Lg=(...e)=>new K(...e,"hcg");de.hcg=Lg,he.format.hcg=xg,he.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),we(e)==="array"&&e.length===3)return"hcg"}});const $g=(e,r,i)=>A1(e,r,i,"hcg");gt.hcg=$g;const{cos:M1}=Math,kg=(...e)=>{e=me(e,"hsi");let[r,i,o]=e,s,l,u;return isNaN(r)&&(r=0),isNaN(i)&&(i=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(u=(1-i)/3,s=(1+i*M1(_n*r)/M1(xi-_n*r))/3,l=1-(u+s)):r<2/3?(r-=1/3,s=(1-i)/3,l=(1+i*M1(_n*r)/M1(xi-_n*r))/3,u=1-(s+l)):(r-=2/3,l=(1-i)/3,u=(1+i*M1(_n*r)/M1(xi-_n*r))/3,s=1-(l+u)),s=e1(o*s*3),l=e1(o*l*3),u=e1(o*u*3),[s*255,l*255,u*255,e.length>3?e[3]:1]},{min:Sg,sqrt:Ag,acos:Mg}=Math,Tg=(...e)=>{let[r,i,o]=me(e,"rgb");r/=255,i/=255,o/=255;let s;const l=Sg(r,i,o),u=(r+i+o)/3,f=u>0?1-l/u:0;return f===0?s=NaN:(s=(r-i+(r-o))/2,s/=Ag((r-i)*(r-i)+(r-o)*(i-o)),s=Mg(s),o>i&&(s=_n-s),s/=_n),[s*360,f,u]};K.prototype.hsi=function(){return Tg(this._rgb)};const Pg=(...e)=>new K(...e,"hsi");de.hsi=Pg,he.format.hsi=kg,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),we(e)==="array"&&e.length===3)return"hsi"}});const Ig=(e,r,i)=>A1(e,r,i,"hsi");gt.hsi=Ig;const Pi=(...e)=>{e=me(e,"hsl");const[r,i,o]=e;let s,l,u;if(i===0)s=l=u=o*255;else{const f=[0,0,0],g=[0,0,0],y=o<.5?o*(1+i):o+i-o*i,C=2*o-y,_=r/360;f[0]=_+1/3,f[1]=_,f[2]=_-1/3;for(let $=0;$<3;$++)f[$]<0&&(f[$]+=1),f[$]>1&&(f[$]-=1),6*f[$]<1?g[$]=C+(y-C)*6*f[$]:2*f[$]<1?g[$]=y:3*f[$]<2?g[$]=C+(y-C)*(2/3-f[$])*6:g[$]=C;[s,l,u]=[g[0]*255,g[1]*255,g[2]*255]}return e.length>3?[s,l,u,e[3]]:[s,l,u,1]},D9=(...e)=>{e=me(e,"rgba");let[r,i,o]=e;r/=255,i/=255,o/=255;const s=k9(r,i,o),l=S9(r,i,o),u=(l+s)/2;let f,g;return l===s?(f=0,g=Number.NaN):f=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),r==l?g=(i-o)/(l-s):i==l?g=2+(o-r)/(l-s):o==l&&(g=4+(r-i)/(l-s)),g*=60,g<0&&(g+=360),e.length>3&&e[3]!==void 0?[g,f,u,e[3]]:[g,f,u]};K.prototype.hsl=function(){return D9(this._rgb)};const Og=(...e)=>new K(...e,"hsl");de.hsl=Og,he.format.hsl=Pi,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),we(e)==="array"&&e.length===3)return"hsl"}});const Bg=(e,r,i)=>A1(e,r,i,"hsl");gt.hsl=Bg;const{floor:Eg}=Math,Dg=(...e)=>{e=me(e,"hsv");let[r,i,o]=e,s,l,u;if(o*=255,i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const f=Eg(r),g=r-f,y=o*(1-i),C=o*(1-i*g),_=o*(1-i*(1-g));switch(f){case 0:[s,l,u]=[o,_,y];break;case 1:[s,l,u]=[C,o,y];break;case 2:[s,l,u]=[y,o,_];break;case 3:[s,l,u]=[y,C,o];break;case 4:[s,l,u]=[_,y,o];break;case 5:[s,l,u]=[o,y,C];break}}return[s,l,u,e.length>3?e[3]:1]},{min:Rg,max:Fg}=Math,zg=(...e)=>{e=me(e,"rgb");let[r,i,o]=e;const s=Rg(r,i,o),l=Fg(r,i,o),u=l-s;let f,g,y;return y=l/255,l===0?(f=Number.NaN,g=0):(g=u/l,r===l&&(f=(i-o)/u),i===l&&(f=2+(o-r)/u),o===l&&(f=4+(r-i)/u),f*=60,f<0&&(f+=360)),[f,g,y]};K.prototype.hsv=function(){return zg(this._rgb)};const Ng=(...e)=>new K(...e,"hsv");de.hsv=Ng,he.format.hsv=Dg,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),we(e)==="array"&&e.length===3)return"hsv"}});const Kg=(e,r,i)=>A1(e,r,i,"hsv");gt.hsv=Kg;function Vr(e,r){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(u=>[u]));let o=r[0].length,s=r[0].map((u,f)=>r.map(g=>g[f])),l=e.map(u=>s.map(f=>Array.isArray(u)?u.reduce((g,y,C)=>g+y*(f[C]||0),0):f.reduce((g,y)=>g+y*u,0)));return i===1&&(l=l[0]),o===1?l.map(u=>u[0]):l}const Ii=(...e)=>{e=me(e,"lab");const[r,i,o,...s]=e,[l,u,f]=Wg([r,i,o]),[g,y,C]=P9(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]};function Wg(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Vr(i,e);return Vr(r,o.map(s=>s**3))}const Oi=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),l=I9(r,i,o);return[...Ug(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function Ug(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Vr(r,e);return Vr(i,o.map(s=>Math.cbrt(s)))}K.prototype.oklab=function(){return Oi(this._rgb)},Object.assign(de,{oklab:(...e)=>new K(...e,"oklab")}),he.format.oklab=Ii,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),we(e)==="array"&&e.length===3)return"oklab"}});const Zg=(e,r,i)=>{const o=e.oklab(),s=r.oklab();return new K(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};gt.oklab=Zg;const Qg=(e,r,i)=>A1(e,r,i,"oklch");gt.oklch=Qg;const{pow:Bi,sqrt:Ei,PI:Di,cos:R9,sin:F9,atan2:jg}=Math,Yg=(e,r="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(_,$){return _+$});if(i.forEach((_,$)=>{i[$]*=s}),e=e.map(_=>new K(_)),r==="lrgb")return Gg(e,i);const l=e.shift(),u=l.get(r),f=[];let g=0,y=0;for(let _=0;_<u.length;_++)if(u[_]=(u[_]||0)*i[0],f.push(isNaN(u[_])?0:i[0]),r.charAt(_)==="h"&&!isNaN(u[_])){const $=u[_]/180*Di;g+=R9($)*i[0],y+=F9($)*i[0]}let C=l.alpha()*i[0];e.forEach((_,$)=>{const M=_.get(r);C+=_.alpha()*i[$+1];for(let x=0;x<u.length;x++)if(!isNaN(M[x]))if(f[x]+=i[$+1],r.charAt(x)==="h"){const T=M[x]/180*Di;g+=R9(T)*i[$+1],y+=F9(T)*i[$+1]}else u[x]+=M[x]*i[$+1]});for(let _=0;_<u.length;_++)if(r.charAt(_)==="h"){let $=jg(y/f[_],g/f[_])/Di*180;for(;$<0;)$+=360;for(;$>=360;)$-=360;u[_]=$}else u[_]=u[_]/f[_];return C/=o,new K(u,r).alpha(C>.99999?1:C,!0)},Gg=(e,r)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],u=r[s]/i,f=l._rgb;o[0]+=Bi(f[0],2)*u,o[1]+=Bi(f[1],2)*u,o[2]+=Bi(f[2],2)*u,o[3]+=f[3]*u}return o[0]=Ei(o[0]),o[1]=Ei(o[1]),o[2]=Ei(o[2]),o[3]>.9999999&&(o[3]=1),new K(vi(o))},{pow:Hg}=Math;function qr(e){let r="rgb",i=de("#ccc"),o=0,s=[0,1],l=[0,1],u=[],f=[0,0],g=!1,y=[],C=!1,_=0,$=1,M=!1,x={},T=!0,k=1;const S=function(O){if(O=O||["#fff","#000"],O&&we(O)==="string"&&de.brewer&&de.brewer[O.toLowerCase()]&&(O=de.brewer[O.toLowerCase()]),we(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(let W=0;W<O.length;W++)O[W]=de(O[W]);u.length=0;for(let W=0;W<O.length;W++)u.push(W/(O.length-1))}return q(),y=O},D=function(O){if(g!=null){const W=g.length-1;let Q=0;for(;Q<W&&O>=g[Q];)Q++;return Q-1}return 0};let F=O=>O,P=O=>O;const z=function(O,W){let Q,H;if(W==null&&(W=!1),isNaN(O)||O===null)return i;W?H=O:g&&g.length>2?H=D(O)/(g.length-2):$!==_?H=(O-_)/($-_):H=1,H=P(H),W||(H=F(H)),k!==1&&(H=Hg(H,k)),H=f[0]+H*(1-f[0]-f[1]),H=e1(H,0,1);const ie=Math.floor(H*1e4);if(T&&x[ie])Q=x[ie];else{if(we(y)==="array")for(let J=0;J<u.length;J++){const N=u[J];if(H<=N){Q=y[J];break}if(H>=N&&J===u.length-1){Q=y[J];break}if(H>N&&H<u[J+1]){H=(H-N)/(u[J+1]-N),Q=de.interpolate(y[J],y[J+1],H,r);break}}else we(y)==="function"&&(Q=y(H));T&&(x[ie]=Q)}return Q};var q=()=>x={};S(e);const Z=function(O){const W=de(z(O));return C&&W[C]?W[C]():W};return Z.classes=function(O){if(O!=null){if(we(O)==="array")g=O,s=[O[0],O[O.length-1]];else{const W=de.analyze(s);O===0?g=[W.min,W.max]:g=de.limits(W,"e",O)}return Z}return g},Z.domain=function(O){if(!arguments.length)return l;l=O.slice(0),_=O[0],$=O[O.length-1],u=[];const W=y.length;if(O.length===W&&_!==$)for(let Q of Array.from(O))u.push((Q-_)/($-_));else{for(let Q=0;Q<W;Q++)u.push(Q/(W-1));if(O.length>2){const Q=O.map((ie,J)=>J/(O.length-1)),H=O.map(ie=>(ie-_)/($-_));H.every((ie,J)=>Q[J]===ie)||(P=ie=>{if(ie<=0||ie>=1)return ie;let J=0;for(;ie>=H[J+1];)J++;const N=(ie-H[J])/(H[J+1]-H[J]);return Q[J]+N*(Q[J+1]-Q[J])})}}return s=[_,$],Z},Z.mode=function(O){return arguments.length?(r=O,q(),Z):r},Z.range=function(O,W){return S(O),Z},Z.out=function(O){return C=O,Z},Z.spread=function(O){return arguments.length?(o=O,Z):o},Z.correctLightness=function(O){return O==null&&(O=!0),M=O,q(),M?F=function(W){const Q=z(0,!0).lab()[0],H=z(1,!0).lab()[0],ie=Q>H;let J=z(W,!0).lab()[0];const N=Q+(H-Q)*W;let re=J-N,Se=0,ge=1,pe=20;for(;Math.abs(re)>.01&&pe-- >0;)(function(){return ie&&(re*=-1),re<0?(Se=W,W+=(ge-W)*.5):(ge=W,W+=(Se-W)*.5),J=z(W,!0).lab()[0],re=J-N})();return W}:F=W=>W,Z},Z.padding=function(O){return O!=null?(we(O)==="number"&&(O=[O,O]),f=O,Z):f},Z.colors=function(O,W){arguments.length<2&&(W="hex");let Q=[];if(arguments.length===0)Q=y.slice(0);else if(O===1)Q=[Z(.5)];else if(O>1){const H=s[0],ie=s[1]-H;Q=Vg(0,O,!1).map(J=>Z(H+J/(O-1)*ie))}else{e=[];let H=[];if(g&&g.length>2)for(let ie=1,J=g.length,N=1<=J;N?ie<J:ie>J;N?ie++:ie--)H.push((g[ie-1]+g[ie])*.5);else H=s;Q=H.map(ie=>Z(ie))}return de[W]&&(Q=Q.map(H=>H[W]())),Q},Z.cache=function(O){return O!=null?(T=O,Z):T},Z.gamma=function(O){return O!=null?(k=O,Z):k},Z.nodata=function(O){return O!=null?(i=de(O),Z):i},Z}function Vg(e,r,i){let o=[],s=e<r,l=i?s?r+1:r-1:r;for(let u=e;s?u<l:u>l;s?u++:u--)o.push(u);return o}const qg=function(e){let r=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=r.length;s++)o[s]=(r[s]||0)+r[s-1];r=o}return r},Xg=function(e){let r,i,o,s;if(e=e.map(l=>new K(l)),e.length===2)[i,o]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new K(u,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new K(u,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(u=>u.lab()),r=function(u){const f=[0,1,2].map(g=>(1-u)*(1-u)*(1-u)*i[g]+3*(1-u)*(1-u)*u*o[g]+3*(1-u)*u*u*s[g]+u*u*u*l[g]);return new K(f,"lab")}}else if(e.length>=5){let l,u,f;l=e.map(g=>g.lab()),f=e.length-1,u=qg(f),r=function(g){const y=1-g,C=[0,1,2].map(_=>l.reduce(($,M,x)=>$+u[x]*y**(f-x)*g**x*M[_],0));return new K(C,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},Jg=e=>{const r=Xg(e);return r.scale=()=>qr(r),r},{round:z9}=Math;K.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(z9)},K.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,i)=>i<3?e===!1?r:z9(r):r)},Object.assign(de,{rgb:(...e)=>new K(...e,"rgb")}),he.format.rgb=(...e)=>{const r=me(e,"rgba");return r[3]===void 0&&(r[3]=1),r},he.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),we(e)==="array"&&(e.length===3||e.length===4&&we(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Xt=(e,r,i)=>{if(!Xt[i])throw new Error("unknown blend mode "+i);return Xt[i](e,r)},En=e=>(r,i)=>{const o=de(i).rgb(),s=de(r).rgb();return de.rgb(e(o,s))},Dn=e=>(r,i)=>{const o=[];return o[0]=e(r[0],i[0]),o[1]=e(r[1],i[1]),o[2]=e(r[2],i[2]),o},ep=e=>e,tp=(e,r)=>e*r/255,np=(e,r)=>e>r?r:e,rp=(e,r)=>e>r?e:r,ip=(e,r)=>255*(1-(1-e/255)*(1-r/255)),op=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),ap=(e,r)=>255*(1-(1-r/255)/(e/255)),sp=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Xt.normal=En(Dn(ep)),Xt.multiply=En(Dn(tp)),Xt.screen=En(Dn(ip)),Xt.overlay=En(Dn(op)),Xt.darken=En(Dn(np)),Xt.lighten=En(Dn(rp)),Xt.dodge=En(Dn(sp)),Xt.burn=En(Dn(ap));const{pow:lp,sin:cp,cos:up}=Math;function fp(e=300,r=-1.5,i=1,o=1,s=[0,1]){let l=0,u;we(s)==="array"?u=s[1]-s[0]:(u=0,s=[s,s]);const f=function(g){const y=_n*((e+120)/360+r*g),C=lp(s[0]+u*g,o),$=(l!==0?i[0]+g*l:i)*C*(1-C)/2,M=up(y),x=cp(y),T=C+$*(-.14861*M+1.78277*x),k=C+$*(-.29227*M-.90649*x),S=C+$*(1.97294*M);return de(vi([T*255,k*255,S*255,1]))};return f.start=function(g){return g==null?e:(e=g,f)},f.rotations=function(g){return g==null?r:(r=g,f)},f.gamma=function(g){return g==null?o:(o=g,f)},f.hue=function(g){return g==null?i:(i=g,we(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(g){return g==null?s:(we(g)==="array"?(s=g,u=g[1]-g[0]):(s=[g,g],u=0),f)},f.scale=()=>de.scale(f),f.hue(i),f}const dp="0123456789abcdef",{floor:hp,random:gp}=Math,pp=(e=gp)=>{let r="#";for(let i=0;i<6;i++)r+=dp.charAt(hp(e()*16));return new K(r,"hex")},{log:N9,pow:yp,floor:mp,abs:bp}=Math;function K9(e,r=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return we(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&we(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>W9(i,o,s),i}function W9(e,r="equal",i=7){we(e)=="array"&&(e=K9(e));const{min:o,max:s}=e,l=e.values.sort((f,g)=>f-g);if(i===1)return[o,s];const u=[];if(r.substr(0,1)==="c"&&(u.push(o),u.push(s)),r.substr(0,1)==="e"){u.push(o);for(let f=1;f<i;f++)u.push(o+f/i*(s-o));u.push(s)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*N9(o),g=Math.LOG10E*N9(s);u.push(o);for(let y=1;y<i;y++)u.push(yp(10,f+y/i*(g-f)));u.push(s)}else if(r.substr(0,1)==="q"){u.push(o);for(let f=1;f<i;f++){const g=(l.length-1)*f/i,y=mp(g);if(y===g)u.push(l[y]);else{const C=g-y;u.push(l[y]*(1-C)+l[y+1]*C)}}u.push(s)}else if(r.substr(0,1)==="k"){let f;const g=l.length,y=new Array(g),C=new Array(i);let _=!0,$=0,M=null;M=[],M.push(o);for(let k=1;k<i;k++)M.push(o+k/i*(s-o));for(M.push(s);_;){for(let S=0;S<i;S++)C[S]=0;for(let S=0;S<g;S++){const D=l[S];let F=Number.MAX_VALUE,P;for(let z=0;z<i;z++){const q=bp(M[z]-D);q<F&&(F=q,P=z),C[P]++,y[S]=P}}const k=new Array(i);for(let S=0;S<i;S++)k[S]=null;for(let S=0;S<g;S++)f=y[S],k[f]===null?k[f]=l[S]:k[f]+=l[S];for(let S=0;S<i;S++)k[S]*=1/C[S];_=!1;for(let S=0;S<i;S++)if(k[S]!==M[S]){_=!0;break}M=k,$++,$>200&&(_=!1)}const x={};for(let k=0;k<i;k++)x[k]=[];for(let k=0;k<g;k++)f=y[k],x[f].push(l[k]);let T=[];for(let k=0;k<i;k++)T.push(x[k][0]),T.push(x[k][x[k].length-1]);T=T.sort((k,S)=>k-S),u.push(T[0]);for(let k=1;k<T.length;k+=2){const S=T[k];!isNaN(S)&&u.indexOf(S)===-1&&u.push(S)}}return u}const _p=(e,r)=>{e=new K(e),r=new K(r);const i=e.luminance(),o=r.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
|
|
28
28
|
* @license
|
|
29
29
|
*
|
|
30
30
|
* The APCA contrast prediction algorithm is based of the formulas published
|
|
@@ -36,5 +36,5 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
36
36
|
*
|
|
37
37
|
* You can read more about the APCA Readability Criterion at
|
|
38
38
|
* https://readtech.org/ARC/
|
|
39
|
-
*/const U9=.027,_p=5e-4,vp=.1,Z9=1.14,Xr=.022,Q9=1.414,Cp=(e,r)=>{e=new K(e),r=new K(r),e.alpha()<1&&(e=k1(r,e,e.alpha(),"rgb"));const i=j9(...e.rgb()),o=j9(...r.rgb()),s=i>=Xr?i:i+Math.pow(Xr-i,Q9),l=o>=Xr?o:o+Math.pow(Xr-o,Q9),u=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),g=Math.abs(l-s)<_p?0:s<l?u*Z9:f*Z9;return(Math.abs(g)<vp?0:g>0?g-U9:g+U9)*100};function j9(e,r,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Cn,pow:tt,min:xp,max:wp,atan2:Y9,abs:G9,cos:Jr,sin:H9,exp:Lp,PI:V9}=Math;function $p(e,r,i=1,o=1,s=1){var l=function(pt){return 360*pt/(2*V9)},u=function(pt){return 2*V9*pt/360};e=new K(e),r=new K(r);const[f,g,y]=Array.from(e.lab()),[C,_,$]=Array.from(r.lab()),M=(f+C)/2,x=Cn(tt(g,2)+tt(y,2)),T=Cn(tt(_,2)+tt($,2)),k=(x+T)/2,S=.5*(1-Cn(tt(k,7)/(tt(k,7)+tt(25,7)))),D=g*(1+S),F=_*(1+S),P=Cn(tt(D,2)+tt(y,2)),z=Cn(tt(F,2)+tt($,2)),q=(P+z)/2,Z=l(Y9(y,D)),O=l(Y9($,F)),W=Z>=0?Z:Z+360,Q=O>=0?O:O+360,H=G9(W-Q)>180?(W+Q+360)/2:(W+Q)/2,ie=1-.17*Jr(u(H-30))+.24*Jr(u(2*H))+.32*Jr(u(3*H+6))-.2*Jr(u(4*H-63));let J=Q-W;J=G9(J)<=180?J:Q<=W?J+360:J-360,J=2*Cn(P*z)*H9(u(J)/2);const N=C-f,re=z-P,Se=1+.015*tt(M-50,2)/Cn(20+tt(M-50,2)),ge=1+.045*q,pe=1+.015*q*ie,Fe=30*Lp(-tt((H-275)/25,2)),Ge=-(2*Cn(tt(q,7)/(tt(q,7)+tt(25,7))))*H9(2*u(Fe)),Ee=Cn(tt(N/(i*Se),2)+tt(re/(o*ge),2)+tt(J/(s*pe),2)+Ge*(re/(o*ge))*(J/(s*pe)));return wp(0,xp(100,Ee))}function kp(e,r,i="lab"){e=new K(e),r=new K(r);const o=e.get(i),s=r.get(i);let l=0;for(let u in o){const f=(o[u]||0)-(s[u]||0);l+=f*f}return Math.sqrt(l)}const Sp=(...e)=>{try{return new K(...e),!0}catch{return!1}},Ap={cool(){return qr([de.hsl(180,1,.9),de.hsl(250,.7,.4)])},hot(){return qr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Ri={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},q9=Object.keys(Ri),X9=new Map(q9.map(e=>[e.toLowerCase(),e])),Mp=typeof Proxy=="function"?new Proxy(Ri,{get(e,r){const i=r.toLowerCase();if(X9.has(i))return e[X9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(q9)}}):Ri,Tp=(...e)=>{e=me(e,"cmyk");const[r,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[r>=1?0:255*(1-r)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:J9}=Math,Pp=(...e)=>{let[r,i,o]=me(e,"rgb");r=r/255,i=i/255,o=o/255;const s=1-J9(r,J9(i,o)),l=s<1?1/(1-s):0,u=(1-r-s)*l,f=(1-i-s)*l,g=(1-o-s)*l;return[u,f,g,s]};K.prototype.cmyk=function(){return Pp(this._rgb)},Object.assign(de,{cmyk:(...e)=>new K(...e,"cmyk")}),he.format.cmyk=Tp,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),we(e)==="array"&&e.length===4)return"cmyk"}});const Ip=(...e)=>{const r=me(e,"hsla");let i=L1(e)||"lsa";return r[0]=Ft(r[0]||0)+"deg",r[1]=Ft(r[1]*100)+"%",r[2]=Ft(r[2]*100)+"%",i==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),i="hsla"):r.length=3,`${i.substr(0,3)}(${r.join(" ")})`},Op=(...e)=>{const r=me(e,"lab");let i=L1(e)||"lab";return r[0]=Ft(r[0])+"%",r[1]=Ft(r[1]),r[2]=Ft(r[2]),i==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},Bp=(...e)=>{const r=me(e,"lch");let i=L1(e)||"lab";return r[0]=Ft(r[0])+"%",r[1]=Ft(r[1]),r[2]=isNaN(r[2])?"none":Ft(r[2])+"deg",i==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},Ep=(...e)=>{const r=me(e,"lab");return r[0]=Ft(r[0]*100)+"%",r[1]=Ci(r[1]),r[2]=Ci(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},e5=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),[l,u,f]=Oi(r,i,o),[g,y,C]=B9(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]},Dp=(...e)=>{const r=me(e,"lch");return r[0]=Ft(r[0]*100)+"%",r[1]=Ci(r[1]),r[2]=isNaN(r[2])?"none":Ft(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:Fi}=Math,Rp=(...e)=>{const r=me(e,"rgba");let i=L1(e)||"rgb";if(i.substr(0,3)==="hsl")return Ip(D9(r),i);if(i.substr(0,3)==="lab"){const o=ir();vn("d50");const s=Op($i(r),i);return vn(o),s}if(i.substr(0,3)==="lch"){const o=ir();vn("d50");const s=Bp(Mi(r),i);return vn(o),s}return i.substr(0,5)==="oklab"?Ep(Oi(r)):i.substr(0,5)==="oklch"?Dp(e5(r)):(r[0]=Fi(r[0]),r[1]=Fi(r[1]),r[2]=Fi(r[2]),(i==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),i="rgba"),`${i.substr(0,3)}(${r.slice(0,i==="rgb"?3:4).join(" ")})`)},t5=(...e)=>{e=me(e,"lch");const[r,i,o,...s]=e,[l,u,f]=O9(r,i,o),[g,y,C]=Ii(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]},xn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Jt=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,e0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,zt=/\s*/.source,T1=/\s+/.source,zi=/\s*,\s*/.source,t0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,P1=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,n5=new RegExp("^rgba?\\("+zt+[xn,xn,xn].join(T1)+P1+"\\)$"),r5=new RegExp("^rgb\\("+zt+[xn,xn,xn].join(zi)+zt+"\\)$"),i5=new RegExp("^rgba\\("+zt+[xn,xn,xn,Jt].join(zi)+zt+"\\)$"),o5=new RegExp("^hsla?\\("+zt+[t0,e0,e0].join(T1)+P1+"\\)$"),a5=new RegExp("^hsl?\\("+zt+[t0,e0,e0].join(zi)+zt+"\\)$"),s5=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,l5=new RegExp("^lab\\("+zt+[Jt,Jt,Jt].join(T1)+P1+"\\)$"),c5=new RegExp("^lch\\("+zt+[Jt,Jt,t0].join(T1)+P1+"\\)$"),u5=new RegExp("^oklab\\("+zt+[Jt,Jt,Jt].join(T1)+P1+"\\)$"),f5=new RegExp("^oklch\\("+zt+[Jt,Jt,t0].join(T1)+P1+"\\)$"),{round:d5}=Math,I1=e=>e.map((r,i)=>i<=2?e1(d5(r),0,255):r),nt=(e,r=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(i-r):e=r+e*(i-r)),+e),_t=(e,r)=>e==="none"?r:e,Ni=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(he.format.named)try{return he.format.named(e)}catch{}if((r=e.match(n5))||(r=e.match(r5))){let i=r.slice(1,4);for(let s=0;s<3;s++)i[s]=+nt(_t(i[s],0),0,255);i=I1(i);const o=r[4]!==void 0?+nt(r[4],0,1):1;return i[3]=o,i}if(r=e.match(i5)){const i=r.slice(1,5);for(let o=0;o<4;o++)i[o]=+nt(i[o],0,255);return i}if((r=e.match(o5))||(r=e.match(a5))){const i=r.slice(1,4);i[0]=+_t(i[0].replace("deg",""),0),i[1]=+nt(_t(i[1],0),0,100)*.01,i[2]=+nt(_t(i[2],0),0,100)*.01;const o=I1(Pi(i)),s=r[4]!==void 0?+nt(r[4],0,1):1;return o[3]=s,o}if(r=e.match(s5)){const i=r.slice(1,4);i[1]*=.01,i[2]*=.01;const o=Pi(i);for(let s=0;s<3;s++)o[s]=d5(o[s]);return o[3]=+r[4],o}if(r=e.match(l5)){const i=r.slice(1,4);i[0]=nt(_t(i[0],0),0,100),i[1]=nt(_t(i[1],0),-125,125,!0),i[2]=nt(_t(i[2],0),-125,125,!0);const o=ir();vn("d50");const s=I1(wi(i));vn(o);const l=r[4]!==void 0?+nt(r[4],0,1):1;return s[3]=l,s}if(r=e.match(c5)){const i=r.slice(1,4);i[0]=nt(i[0],0,100),i[1]=nt(_t(i[1],0),0,150,!1),i[2]=+_t(i[2].replace("deg",""),0);const o=ir();vn("d50");const s=I1(Ai(i));vn(o);const l=r[4]!==void 0?+nt(r[4],0,1):1;return s[3]=l,s}if(r=e.match(u5)){const i=r.slice(1,4);i[0]=nt(_t(i[0],0),0,1),i[1]=nt(_t(i[1],0),-.4,.4,!0),i[2]=nt(_t(i[2],0),-.4,.4,!0);const o=I1(Ii(i)),s=r[4]!==void 0?+nt(r[4],0,1):1;return o[3]=s,o}if(r=e.match(f5)){const i=r.slice(1,4);i[0]=nt(_t(i[0],0),0,1),i[1]=nt(_t(i[1],0),0,.4,!1),i[2]=+_t(i[2].replace("deg",""),0);const o=I1(t5(i)),s=r[4]!==void 0?+nt(r[4],0,1):1;return o[3]=s,o}};Ni.test=e=>n5.test(e)||o5.test(e)||l5.test(e)||c5.test(e)||u5.test(e)||f5.test(e)||r5.test(e)||i5.test(e)||a5.test(e)||s5.test(e)||e==="transparent",K.prototype.css=function(e){return Rp(this._rgb,e)};const Fp=(...e)=>new K(...e,"css");de.css=Fp,he.format.css=Ni,he.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&we(e)==="string"&&Ni.test(e))return"css"}}),he.format.gl=(...e)=>{const r=me(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const zp=(...e)=>new K(...e,"gl");de.gl=zp,K.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},K.prototype.hex=function(e){return T9(this._rgb,e)};const Np=(...e)=>new K(...e,"hex");de.hex=Np,he.format.hex=M9,he.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&we(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:n0}=Math,h5=e=>{const r=e/100;let i,o,s;return r<66?(i=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*n0(o),s=r<20?0:-254.76935184120902+.8274096064007395*(s=r-10)+115.67994401066147*n0(s)):(i=351.97690566805693+.114206453784165*(i=r-55)-40.25366309332127*n0(i),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*n0(o),s=255),[i,o,s,1]},{round:Kp}=Math,Wp=(...e)=>{const r=me(e,"rgb"),i=r[0],o=r[2];let s=1e3,l=4e4;const u=.4;let f;for(;l-s>u;){f=(l+s)*.5;const g=h5(f);g[2]/g[0]>=o/i?l=f:s=f}return Kp(f)};K.prototype.temp=K.prototype.kelvin=K.prototype.temperature=function(){return Wp(this._rgb)};const Ki=(...e)=>new K(...e,"temp");Object.assign(de,{temp:Ki,kelvin:Ki,temperature:Ki}),he.format.temp=he.format.kelvin=he.format.temperature=h5,K.prototype.oklch=function(){return e5(this._rgb)},Object.assign(de,{oklch:(...e)=>new K(...e,"oklch")}),he.format.oklch=t5,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),we(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(de,{analyze:K9,average:jg,bezier:Xg,blend:Xt,brewer:Mp,Color:K,colors:$1,contrast:bp,contrastAPCA:Cp,cubehelix:up,deltaE:$p,distance:kp,input:he,interpolate:k1,limits:W9,mix:k1,random:gp,scale:qr,scales:Ap,valid:Sp});var Up=U("<div tabindex=0><div class=selector-container><i class=arrow></i></div><div class=drop-down-container style=left:50%;top:20%><div class=split_line></div><div class=range_div><input class=range type=range min=1 max=100><p>%</p></div><div class=split_line></div><div class=submit><span class=cancel>Cancel</span><span>Ok"),Zp=U("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),Qp=U("<div class=each_line>"),jp=U("<div>"),Yp=U("<div class=each_line style=display:flex;align-items:center;gap:8px><div style=width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.04);cursor:pointer><span style=font-size:18px;line-height:1;color:var(--klinecharts-pro-text-color,#fff)>+"),Gp=U('<div style=display:flex;flex-direction:column;gap:8px;padding:6px;width:260px><div style=display:flex;gap:8px;align-items:center><div></div><input style="flex:1;padding:6px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:transparent;color:inherit"></div><div style="width:220px;height:140px;border-radius:6px;position:relative;touch-action:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.2)"><div style=position:absolute;inset:0;borderRadius:6px></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to top, #ffffff, rgba(255,255,255,0));mixBlendMode:overlay;opacity:0.6"></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to bottom, rgba(0,0,0,0), #000);opacity:0.6"></div><div style="position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;borderRadius:50%;boxShadow:0 0 0 2px rgba(255,255,255,0.9);border:1px solid rgba(0,0,0,0.6)"></div></div><div style=display:flex;align-items:center;gap:8px><input type=range min=0 max=360 style="flex:1;height:10px;background:linear-gradient(90deg, red 0%, yellow 17%, lime 33%, cyan 50%, blue 67%, magenta 83%, red 100%);border-radius:6px;padding:0"><span style=width:38px;text-align:center></span></div><div style=display:flex;gap:8px;justify-content:flex-end><button class=cancel>Cancel</button><button class=ok>Add');const Hp=e=>{const r=String(e.value).includes("rgba")?de(String(e.value)).alpha()*100:100,[i,o]=G(!1),[s,l]=G(r),[u,f]=G(e.value),[g,y]=G(e.value),[C,_]=G(!1),[$,M]=G(!1),[x,T]=G(e.value??"#000000"),[k,S]=G(0),[D,F]=G(1),[P,z]=G(.5),[q,Z]=G(!1),O=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],W=oe=>{try{return de(oe).hex()}catch{return String(oe||"#000000")}},Q=oe=>{const te=W(oe),[ae,be,ze]=de(te).hsl();S(Number.isFinite(ae)?Math.round(ae):0),F(Number.isFinite(be)?be:1),z(Number.isFinite(ze)?ze:.5),T(te)},H=()=>{o(!1),M(!1)},ie=()=>{var oe;f(e.value),y(e.value),(oe=e.onChange)==null||oe.call(e,e.value),H()},J=oe=>{var be;f(oe);const te=s()/100,ae=de(oe).alpha(te).css();y(ae),(e.reactiveChange??!0)&&((be=e.onChange)==null||be.call(e,ae))},N=()=>{var ae;const oe=s()/100,te=de(u()).alpha(oe).css();y(te),(e.reactiveChange??!0)&&((ae=e.onChange)==null||ae.call(e,te))},re=oe=>{l(oe.target.value),N()},Se=()=>{const oe=u()??e.value??"#000000";Q(String(oe)),M(!0),o(!0)},ge=oe=>{S(oe);const te=de.hsl(oe,D(),P()).hex();T(te)},pe=oe=>{let te=oe.trim();te.startsWith("#")||(te="#"+te);try{const ae=de(te).hex(),[be,ze,ve]=de(ae).hsl();S(Number.isFinite(be)?Math.round(be):k()),F(Number.isFinite(ze)?ze:D()),z(Number.isFinite(ve)?ve:P()),T(ae)}catch{T(oe)}},Fe=oe=>{var te,ae;(ae=(te=oe.target).setPointerCapture)==null||ae.call(te,oe.pointerId),Z(!0),Ee(oe)},Le=oe=>{q()&&Ee(oe)},Ge=oe=>{var te,ae;try{(ae=(te=oe.target).releasePointerCapture)==null||ae.call(te,oe.pointerId)}catch{}Z(!1)},Ee=oe=>{const ae=oe.currentTarget.getBoundingClientRect(),be=Math.min(Math.max(0,oe.clientX-ae.left),ae.width),ze=Math.min(Math.max(0,oe.clientY-ae.top),ae.height),ve=ae.width?be/ae.width:0,Lt=ae.height?1-ze/ae.height:.5;F(ve),z(Lt);const zn=de.hsl(k(),ve,Lt).hex();T(zn)},pt=()=>{try{const oe=W(x());O[0].unshift(oe),J(oe),M(!1)}catch{}};return[et(()=>et(()=>!!i())()&&(()=>{var oe=Zp();return oe.$$click=()=>{ie()},oe})()),(()=>{var oe=Up(),te=oe.firstChild,ae=te.nextSibling,be=ae.firstChild,ze=be.nextSibling,ve=ze.firstChild,Lt=ve.nextSibling,zn=Lt.firstChild,wn=ze.nextSibling,Ln=wn.nextSibling,Nn=Ln.firstChild,je=Nn.nextSibling;return te.$$click=Ne=>{o(!0)},Y(ae,(()=>{var Ne=et(()=>!$());return()=>Ne()&&O.map(en=>(()=>{var rt=Qp();return Y(rt,()=>en.map(Mt=>(()=>{var $n=jp();return $n.$$click=it=>{it.preventDefault(),J(Mt)},Be(it=>{var ut=`each_color ${Mt==u()?"selected":""}`,kn=`background-color: ${Mt}`;return ut!==it.e&&Vt($n,it.e=ut),it.t=qt($n,kn,it.t),it},{e:void 0,t:void 0}),$n})())),rt})())})(),be),Y(ae,(()=>{var Ne=et(()=>!$());return()=>Ne()&&(()=>{var en=Yp(),rt=en.firstChild;return rt.$$click=Mt=>{Mt.stopPropagation(),Se()},en})()})(),be),Y(ae,(()=>{var Ne=et(()=>!!$());return()=>Ne()&&(()=>{var en=Gp(),rt=en.firstChild,Mt=rt.firstChild,$n=Mt.nextSibling,it=rt.nextSibling,ut=it.firstChild,kn=ut.nextSibling,O1=kn.nextSibling,or=O1.nextSibling,Kn=it.nextSibling,ar=Kn.firstChild,r1=ar.nextSibling,Wn=Kn.nextSibling,B1=Wn.firstChild,sr=B1.nextSibling;return $n.$$input=Ue=>pe(Ue.currentTarget.value),it.$$pointerup=Ue=>Ge(Ue),it.$$pointermove=Ue=>Le(Ue),it.$$pointerdown=Ue=>Fe(Ue),ar.$$input=Ue=>ge(Number(Ue.currentTarget.value)),Y(r1,k),B1.$$click=()=>M(!1),sr.$$click=pt,Be(Ue=>{var lr=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${x()}`,E1=`linear-gradient(to right, hsl(${k()}, 0%, 50%), hsl(${k()}, 100%, 50%))`,D1=`${Math.round(D()*100)}%`,R1=`${Math.round((1-P())*100)}%`,F1=x();return Ue.e=qt(Mt,lr,Ue.e),E1!==Ue.t&&Er(ut,"background",Ue.t=E1),D1!==Ue.a&&Er(or,"left",Ue.a=D1),R1!==Ue.o&&Er(or,"top",Ue.o=R1),F1!==Ue.i&&Er(or,"background",Ue.i=F1),Ue},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Be(()=>$n.value=x()),Be(()=>ar.value=k()),en})()})(),be),ve.addEventListener("blur",()=>{_(!1)}),ve.addEventListener("focus",()=>{_(!0)}),ve.$$input=Ne=>{Ne.preventDefault,re(Ne)},Y(Lt,s,zn),Nn.$$click=ie,je.$$click=()=>{var Ne;e.reactiveChange===!1&&((Ne=e.onChange)==null||Ne.call(e,g())),H()},Be(Ne=>{var en=`width: 120px; background-color: ${g()}`,rt=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,Mt=`background-color: ${g()}; border: 1px solid ${u()}`;return Ne.e=qt(oe,en,Ne.e),rt!==Ne.t&&Vt(oe,Ne.t=rt),Ne.a=qt(ve,Mt,Ne.a),Ne},{e:void 0,t:void 0,a:void 0}),Be(()=>ve.value=s()),oe})()]};Rt(["click","input","pointerdown","pointermove","pointerup"]);const g5={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults"}};function Vp(e,r){g5[e]=r}const b=(e,r)=>{var i;return((i=g5[r])==null?void 0:i[e])??e};G(!1),G(!1);const[qp,PT]=G(!1);G(!1),G(!1),G(!1),G(!1),G("");const[Xp,Jp]=G("");function ey(e){const r=Xp();if(r)return document.getElementById(r);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}const[ty,p5]=G(!1),[t1,Wi]=G(null),[Rn,Ui]=G(null);G();const[ne,ny]=G(null),[Zi,y5]=G(null),[m5,b5]=G([""]),[_5,v5]=G({}),[IT,Fn]=G(!1);G("");const[C5,ry]=G(!1);G(1),G();const[iy,r0]=G(null);var oy=U("<img alt=symbol>"),ay=U("<div class=symbol><span>"),sy=U('<div class=klinecharts-pro-period-bar style=overflow-x:auto><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg><span></span></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg><span></span></div><div class="item tools">'),ly=U("<button type=button>"),cy=U('<svg viewBox="0 0 20 20"><path d=M1.08108,0L0,1.079L4.18919,5.27938L2.54826,6.91715L6.9112,6.91715L6.9112,2.56262L5.28957,4.18112L1.08108,0ZM15.8108,5.27938L20,1.079L18.9189,0L14.7104,4.18112L13.0888,2.56262L13.0888,6.91715L17.4517,6.91715L15.8108,5.27938ZM4.16988,14.7014L0.07722,18.8054L1.1583,20L5.27027,15.7996L6.9112,17.4374L6.9112,13.0829L2.54826,13.0829L4.16988,14.7014ZM17.4517,13.0829L13.0888,13.0829L13.0888,17.4374L14.7297,15.7996L18.8417,20L19.9228,18.8054L15.8301,14.7013L17.4517,13.0829Z>'),x5=U("<span>"),uy=U('<svg viewBox="0 0 20 20"><path d=M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z>');const fy=e=>{let r;const i=s=>s.span===e.period.span&&s.type===e.period.type,o=()=>{ry(s=>!s)};return da(()=>{document.addEventListener("fullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Mr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var s=sy(),l=s.firstChild,u=l.firstChild,f=l.nextSibling,g=f.firstChild,y=g.nextSibling,C=f.nextSibling,_=C.firstChild,$=_.nextSibling,M=C.nextSibling,x=M.firstChild,T=x.nextSibling,k=M.nextSibling,S=k.firstChild,D=S.nextSibling,F=k.nextSibling;return ei(P=>{r=P},s),bn(u,"click",e.onMenuClick,!0),Y(s,X(ct,{get when(){return e.symbol},get children(){var P=ay(),z=P.firstChild;return bn(P,"click",e.onSymbolClick,!0),Y(P,X(ct,{get when(){return e.symbol.logo},get children(){var q=oy();return Be(()=>bt(q,"src",e.symbol.logo)),q}}),z),Y(z,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),P}}),f),Y(s,()=>e.periods.map(P=>(()=>{var z=ly();return z.$$click=()=>{e.onPeriodChange(P)},Y(z,()=>P.text),Be(()=>Vt(z,`item tools period ${i(P)?"selected":""}`)),z})()),f),bn(f,"click",e.onIndicatorClick,!0),Y(y,()=>b("indicator",e.locale)),bn(C,"click",e.onTimezoneClick,!0),Y($,()=>b("timezone",e.locale)),bn(M,"click",e.onSettingClick,!0),Y(T,()=>b("setting",e.locale)),bn(k,"click",e.onScreenshotClick,!0),Y(D,()=>b("screenshot",e.locale)),F.$$click=()=>{if(C5())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const P=ey(r);P&&(P.requestFullscreen??P.webkitRequestFullscreen??P.mozRequestFullScreen??P.msRequestFullscreen).call(P)}},Y(F,(()=>{var P=et(()=>!!C5());return()=>P()?[cy(),(()=>{var z=x5();return Y(z,()=>b("exit_full_screen",e.locale)),z})()]:[uy(),(()=>{var z=x5();return Y(z,()=>b("full_screen",e.locale)),z})()]})()),Be(()=>bt(u,"class",e.spread?"":"rotate")),s})()};Rt(["click"]);var dy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M12.41465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L12.41465,12C12.20873,12.5826,11.65311,13,11,13C10.34689,13,9.79127,12.5826,9.58535,12L3.5,12C3.223857,12,3,11.77614,3,11.5C3,11.22386,3.223857,11,3.5,11L9.58535,11C9.79127,10.417404,10.34689,10,11,10C11.65311,10,12.20873,10.417404,12.41465,11Z stroke-opacity=0 stroke=none>');const hy=()=>dy();var gy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,11L11.08535,11C11.29127,10.417404,11.84689,10,12.5,10C13.15311,10,13.70873,10.417404,13.91465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L13.91465,12C13.70873,12.5826,13.15311,13,12.5,13C11.84689,13,11.29127,12.5826,11.08535,12L6.91465,12C6.70873,12.5826,6.15311,13,5.5,13C4.671573,13,4,12.32843,4,11.5C4,10.671573,4.671573,10,5.5,10C6.15311,10,6.70873,10.417404,6.91465,11Z stroke-opacity=0 stroke=none>');const py=()=>gy();var yy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,12.5C6.70873,13.0826,6.15311,13.5,5.5,13.5C4.671573,13.5,4,12.82843,4,12C4,11.171573,4.671573,10.5,5.5,10.5C6.15311,10.5,6.70873,10.917404,6.91465,11.5L16.0853,11.5C16.2913,10.917404,16.846899999999998,10.5,17.5,10.5C18.328400000000002,10.5,19,11.171573,19,12C19,12.82843,18.328400000000002,13.5,17.5,13.5C16.846899999999998,13.5,16.2913,13.0826,16.0853,12.5L6.91465,12.5Z stroke-opacity=0 stroke=none>');const my=()=>yy();var by=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,12.41465L11,18.5C11,18.7761,11.22386,19,11.5,19C11.77614,19,12,18.7761,12,18.5L12,12.41465C12.5826,12.20873,13,11.65311,13,11C13,10.34689,12.5826,9.79127,12,9.58535L12,3.5C12,3.223857,11.77614,3,11.5,3C11.22386,3,11,3.223857,11,3.5L11,9.58535C10.417404,9.79127,10,10.34689,10,11C10,11.65311,10.417404,12.20873,11,12.41465Z stroke-opacity=0 stroke=none>');const _y=()=>by();var vy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z stroke-opacity=0 stroke=none>');const Cy=()=>vy();var xy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.165603637695312,6.91465C11.748203637695312,6.70873,12.165603637695312,6.15311,12.165603637695312,5.5C12.165603637695312,4.671573,11.494033637695313,4,10.665603637695312,4C9.837176637695313,4,9.165603637695312,4.671573,9.165603637695312,5.5C9.165603637695312,6.15311,9.583007637695312,6.70873,10.165603637695312,6.91465L10.165603637695312,16.0854C9.583007637695312,16.2913,9.165603637695312,16.846899999999998,9.165603637695312,17.5C9.165603637695312,18.328400000000002,9.837176637695313,19,10.665603637695312,19C11.494033637695313,19,12.165603637695312,18.328400000000002,12.165603637695312,17.5C12.165603637695312,16.846899999999998,11.748203637695312,16.2913,11.165603637695312,16.0854L11.165603637695312,6.91465Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const wy=()=>xy();var Ly=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.146447,15.753C4.9511845,15.9483,4.9511845,16.2649,5.146447,16.4602C5.341709,16.6554,5.658291,16.6554,5.853554,16.4602L8.156600000000001,14.15711C8.352409999999999,14.25082,8.57173,14.3033,8.8033,14.3033C9.631730000000001,14.3033,10.3033,13.63172,10.3033,12.80329C10.3033,12.57172,10.250820000000001,12.352409999999999,10.157119999999999,12.15659L12.156600000000001,10.15711C12.352409999999999,10.250820000000001,12.571729999999999,10.30329,12.8033,10.30329C13.63173,10.30329,14.3033,9.63172,14.3033,8.80329C14.3033,8.57172,14.25082,8.352409999999999,14.15712,8.15659L16.4602,5.853553C16.6554,5.658291,16.6554,5.341709,16.4602,5.146447C16.2649,4.9511843,15.9483,4.9511843,15.753,5.146447L13.45001,7.449479999999999C13.25419,7.35577,13.03487,7.3032900000000005,12.8033,7.3032900000000005C11.97487,7.3032900000000005,11.3033,7.97487,11.3033,8.80329C11.3033,9.03487,11.35578,9.254190000000001,11.44949,9.450009999999999L9.450009999999999,11.449480000000001C9.254190000000001,11.35577,9.03487,11.30329,8.8033,11.30329C7.97487,11.30329,7.3033,11.97487,7.3033,12.80329C7.3033,13.03487,7.35578,13.25419,7.44949,13.45001L5.146447,15.753Z stroke-opacity=0 stroke=none>');const $y=()=>Ly();var ky=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M7.573332939453125,14.54567903564453C7.667042939453125,14.741499035644532,7.719512939453125,14.960809035644532,7.719512939453125,15.19239903564453C7.719512939453125,16.02079903564453,7.047942939453125,16.69239903564453,6.219512939453125,16.69239903564453C5.391085939453125,16.69239903564453,4.719512939453125,16.02079903564453,4.719512939453125,15.19239903564453C4.719512939453125,14.36394903564453,5.391085939453125,13.692379035644532,6.219512939453125,13.692379035644532C6.451092939453125,13.692379035644532,6.670412939453125,13.74485903564453,6.866232939453125,13.83856903564453L9.865702939453126,10.83909903564453C9.771992939453124,10.643279035644532,9.719512939453125,10.42395903564453,9.719512939453125,10.192379035644532C9.719512939453125,9.36394903564453,10.391082939453124,8.692379035644532,11.219512939453125,8.692379035644532C11.451092939453126,8.692379035644532,11.670412939453126,8.74485903564453,11.866232939453125,8.838569035644532L15.462112939453124,5.242645035644531C15.657412939453126,5.047383335644532,15.974012939453125,5.047383335644532,16.169212939453125,5.242645035644531C16.364512939453125,5.437907035644531,16.364512939453125,5.754489035644531,16.169212939453125,5.949752035644531L12.573332939453124,9.545679035644532C12.667042939453125,9.74149903564453,12.719512939453125,9.96080903564453,12.719512939453125,10.192379035644532C12.719512939453125,11.020809035644533,12.047942939453126,11.692379035644532,11.219512939453125,11.692379035644532C10.987942939453125,11.692379035644532,10.768632939453125,11.639909035644532,10.572812939453126,11.54619903564453L7.573332939453125,14.54567903564453Z stroke-opacity=0 stroke=none>');const Sy=()=>ky();var Ay=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M15.719512939453125,8.461776733398438C16.547912939453127,8.461776733398438,17.219512939453125,7.7902067333984375,17.219512939453125,6.9617767333984375C17.219512939453125,6.133349733398438,16.547912939453127,5.4617767333984375,15.719512939453125,5.4617767333984375C14.891082939453124,5.4617767333984375,14.219512939453125,6.133349733398438,14.219512939453125,6.9617767333984375C14.219512939453125,7.193346733398437,14.271992939453124,7.412666733398438,14.365692939453124,7.608486733398438L7.366222939453126,14.607956733398437C7.170402939453125,14.514256733398437,6.951082939453125,14.461776733398438,6.719512939453125,14.461776733398438C5.891085939453125,14.461776733398438,5.219512939453125,15.133346733398437,5.219512939453125,15.961776733398438C5.219512939453125,16.79017673339844,5.891085939453125,17.461776733398438,6.719512939453125,17.461776733398438C7.547942939453125,17.461776733398438,8.219512939453125,16.79017673339844,8.219512939453125,15.961776733398438C8.219512939453125,15.730176733398437,8.167032939453126,15.510876733398437,8.073322939453124,15.315066733398437L15.072802939453124,8.315586733398437C15.268612939453124,8.409296733398438,15.487912939453125,8.461776733398438,15.719512939453125,8.461776733398438Z stroke-opacity=0 stroke=none>');const My=()=>Ay();var Ty=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const Py=()=>Ty();var Iy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,13.00505L18.5,13.00505C18.7761,13.00505,19,13.228909999999999,19,13.50505C19,13.781189999999999,18.7761,14.00505,18.5,14.00505L6.91465,14.00505C6.70873,14.58765,6.15311,15.00505,5.5,15.00505C4.671573,15.00505,4,14.33348,4,13.50505C4,12.67662,4.671573,12.00505,5.5,12.00505C6.15311,12.00505,6.70873,12.422450000000001,6.91465,13.00505ZM7.81404,11.625L10.48591,11.625L10.48591,10.90625L9.65193,10.90625L9.65193,7.125L8.997630000000001,7.125C8.71443,7.306641,8.415600000000001,7.419922,7.96443,7.498047L7.96443,8.05078L8.77497,8.05078L8.77497,10.90625L7.81404,10.90625L7.81404,11.625ZM11.081620000000001,11.625L14.0562,11.625L14.0562,10.88281L13.09724,10.88281C12.8863,10.88281,12.59333,10.90625,12.36482,10.93555C13.17537,10.11328,13.84724,9.2207,13.84724,8.39062C13.84724,7.541016,13.28865,7,12.4488,7C11.84333,7,11.446850000000001,7.234375,11.03279,7.679688L11.52497,8.16797C11.747630000000001,7.914062,12.0113,7.697266,12.33552,7.697266C12.7613,7.697266,13.00154,7.982422,13.00154,8.43359C13.00154,9.14648,12.29255,10.00781,11.081620000000001,11.11523L11.081620000000001,11.625ZM15.9605,11.75C16.8121,11.75,17.526899999999998,11.2832,17.526899999999998,10.4375C17.526899999999998,9.82031,17.142200000000003,9.43945,16.6441,9.30078L16.6441,9.27148C17.1129,9.08594,17.3824,8.7207,17.3824,8.21289C17.3824,7.421875,16.8004,7,15.9429,7C15.4215,7,14.9957,7.210938,14.6109,7.541016L15.066,8.11133C15.3258,7.849609,15.5836,7.697266,15.9019,7.697266C16.2789,7.697266,16.4957,7.914062,16.4957,8.28125C16.4957,8.70898,16.2301,9,15.4215,9L15.4215,9.63672C16.3804,9.63672,16.6383,9.91992,16.6383,10.38086C16.6383,10.79688,16.3336,11.03125,15.8824,11.03125C15.4742,11.03125,15.1578,10.82227,14.8922,10.55078L14.4781,11.13281C14.7906,11.486329999999999,15.2652,11.75,15.9605,11.75Z stroke-opacity=0 stroke=none>');const Oy=()=>Iy();var By=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.146447,14.178126025390625C2.9511847,13.982826025390626,2.9511847,13.666226025390625,3.146447,13.470926025390625L7.39146,9.225966025390626C7.35417,9.095106025390624,7.33421,8.956946025390625,7.33421,8.814116025390625C7.33421,7.985696025390625,8.00578,7.314116025390625,8.834209999999999,7.314116025390625C8.97703,7.314116025390625,9.11519,7.334086025390625,9.24605,7.371366025390625L13.753,2.864373025390625C13.9483,2.669110325390625,14.2649,2.669110325390625,14.4602,2.864373025390625C14.6554,3.059635025390625,14.6554,3.376217025390625,14.4602,3.571479025390625L10.06916,7.962476025390625C10.23631,8.204386025390626,10.334209999999999,8.497826025390625,10.334209999999999,8.814116025390625C10.334209999999999,9.642546025390626,9.66264,10.314116025390625,8.834209999999999,10.314116025390625C8.51791,10.314116025390625,8.22448,10.216226025390625,7.98256,10.049076025390626L3.853554,14.178126025390625C3.658291,14.373326025390625,3.341709,14.373326025390625,3.146447,14.178126025390625ZM7.67736,19.188526025390626C7.4821,18.993226025390626,7.4821,18.676626025390625,7.67736,18.481426025390626L9.9804,16.178326025390625C9.88669,15.982526025390625,9.834209999999999,15.763226025390624,9.834209999999999,15.531626025390626C9.834209999999999,14.703226025390626,10.50578,14.031626025390626,11.33421,14.031626025390626C11.56579,14.031626025390626,11.78511,14.084126025390624,11.98093,14.177826025390624L13.9804,12.178356025390626C13.8867,11.982536025390624,13.8342,11.763216025390625,13.8342,11.531636025390625C13.8342,10.703206025390624,14.5058,10.031636025390625,15.3342,10.031636025390625C15.5658,10.031636025390625,15.7851,10.084116025390625,15.9809,10.177826025390626L18.284,7.874796025390625C18.4792,7.679536025390625,18.7958,7.679536025390625,18.9911,7.874796025390625C19.1863,8.070056025390624,19.1863,8.386636025390626,18.9911,8.581906025390625L16.688000000000002,10.884936025390624C16.7817,11.080756025390626,16.8342,11.300066025390626,16.8342,11.531636025390625C16.8342,12.360066025390624,16.162599999999998,13.031626025390626,15.3342,13.031626025390626C15.1026,13.031626025390626,14.8833,12.979126025390626,14.6875,12.885426025390625L12.68803,14.884926025390625C12.78174,15.080726025390625,12.83421,15.300026025390626,12.83421,15.531626025390626C12.83421,16.360026025390624,12.16264,17.031626025390626,11.33421,17.031626025390626C11.10264,17.031626025390626,10.88333,16.979126025390627,10.68751,16.885426025390625L8.38446,19.188526025390626C8.1892,19.383726025390626,7.87262,19.383726025390626,7.67736,19.188526025390626Z stroke-opacity=0 stroke=none>');const Ey=()=>By();var Dy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.3367688759765626,12.63173C3.5320318759765623,12.82699,3.8486138759765627,12.82699,4.043876875976562,12.63173L11.822052875976562,4.853553C12.017312875976563,4.658291,12.017312875976563,4.341708,11.822052875976562,4.146446C11.626792875976562,3.9511843,11.310202875976563,3.9511843,11.114942875976563,4.146446L3.3367688759765626,11.92462C3.1415071759765625,12.11988,3.1415071759765625,12.43647,3.3367688759765626,12.63173ZM5.001492875976562,17.0351C4.806232875976562,16.8399,4.806232875976562,16.5233,5.001492875976562,16.328L7.304532875976562,14.025C7.210822875976563,13.82916,7.158352875976563,13.60984,7.158352875976563,13.37827C7.158352875976563,12.54984,7.829922875976562,11.87827,8.658352875976561,11.87827C8.889922875976563,11.87827,9.109232875976563,11.93075,9.305052875976562,12.02446L11.304532875976562,10.02498C11.210822875976563,9.82916,11.158352875976561,9.60984,11.158352875976561,9.37827C11.158352875976561,8.54984,11.829922875976562,7.8782700000000006,12.658352875976563,7.8782700000000006C12.889922875976563,7.8782700000000006,13.109232875976563,7.93075,13.305022875976562,8.024460000000001L15.608122875976562,5.72142C15.803322875976562,5.5261499999999995,16.119922875976563,5.5261499999999995,16.315222875976563,5.72142C16.510422875976563,5.9166799999999995,16.510422875976563,6.23326,16.315222875976563,6.42852L14.012122875976562,8.73156C14.105822875976562,8.92738,14.158322875976562,9.1467,14.158322875976562,9.37827C14.158322875976562,10.2067,13.486822875976562,10.87827,12.658352875976563,10.87827C12.426772875976562,10.87827,12.207452875976562,10.82579,12.011642875976563,10.73209L10.012162875976562,12.73156C10.105872875976562,12.92738,10.158352875976561,13.1467,10.158352875976561,13.37827C10.158352875976561,14.2067,9.486772875976563,14.8783,8.658352875976561,14.8783C8.426772875976562,14.8783,8.207452875976562,14.8258,8.011642875976563,14.7321L5.708602875976562,17.0351C5.513342875976562,17.2304,5.196752875976562,17.2304,5.001492875976562,17.0351ZM10.415712875976563,18.328C10.220452875976562,18.5233,9.903862875976563,18.5233,9.708602875976563,18.328C9.513342875976562,18.1328,9.513342875976562,17.816200000000002,9.708602875976563,17.6209L12.304532875976562,15.025C12.210822875976563,14.8292,12.158352875976563,14.6098,12.158352875976563,14.3783C12.158352875976563,13.54984,12.829922875976562,12.87827,13.658322875976562,12.87827C13.889922875976563,12.87827,14.109222875976563,12.93075,14.305022875976562,13.02446L17.486822875976564,9.84274C17.682022875976564,9.64747,17.99862287597656,9.64747,18.19392287597656,9.84274C18.38912287597656,10.038,18.38912287597656,10.35458,18.19392287597656,10.54984L15.012122875976562,13.73156C15.105822875976562,13.92738,15.158322875976562,14.1467,15.158322875976562,14.3783C15.158322875976562,15.2067,14.486822875976562,15.8783,13.658322875976562,15.8783C13.426822875976562,15.8783,13.207422875976562,15.8258,13.011642875976563,15.7321L10.415712875976563,18.328Z stroke-opacity=0 stroke=none>');const Ry=()=>Dy();var Fy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M13.1889,6C12.98303,6.582599999999999,12.42741,7,11.7743,7C11.12119,7,10.565570000000001,6.582599999999999,10.35965,6L3.5,6C3.223857,6,3,5.77614,3,5.5C3,5.22386,3.223857,5,3.5,5L10.35965,5C10.565570000000001,4.417404,11.12119,4,11.7743,4C12.42741,4,12.98303,4.417404,13.1889,5L18.5,5C18.7761,5,19,5.22386,19,5.5C19,5.77614,18.7761,6,18.5,6L13.1889,6ZM3,8.5C3,8.22386,3.223857,8,3.5,8L18.5,8C18.7761,8,19,8.22386,19,8.5C19,8.77614,18.7761,9,18.5,9L3.5,9C3.223857,9,3,8.77614,3,8.5ZM3.278549,11.5C3.278549,11.22386,3.502407,11,3.778549,11L18.7785,11C19.0547,11,19.2785,11.22386,19.2785,11.5C19.2785,11.77614,19.0547,12,18.7785,12L3.778549,12C3.502407,12,3.278549,11.77614,3.278549,11.5ZM3.139267,14.5C3.139267,14.2239,3.363124,14,3.6392670000000003,14L18.6393,14C18.915399999999998,14,19.1393,14.2239,19.1393,14.5C19.1393,14.7761,18.915399999999998,15,18.6393,15L3.6392670000000003,15C3.363124,15,3.139267,14.7761,3.139267,14.5ZM13.1889,18C12.98303,18.5826,12.42741,19,11.7743,19C11.12119,19,10.565570000000001,18.5826,10.35965,18L3.778549,18C3.502407,18,3.278549,17.7761,3.278549,17.5C3.278549,17.2239,3.502407,17,3.778549,17L10.35965,17C10.565570000000001,16.4174,11.12119,16,11.7743,16C12.42741,16,12.98303,16.4174,13.1889,17L18.7785,17C19.0547,17,19.2785,17.2239,19.2785,17.5C19.2785,17.7761,19.0547,18,18.7785,18L13.1889,18Z stroke-opacity=0 stroke=none>');const zy=()=>Fy();var Ny=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4.91465,6C4.70873,6.582599999999999,4.15311,7,3.5,7C2.671573,7,2,6.32843,2,5.5C2,4.671573,2.671573,4,3.5,4C4.15311,4,4.70873,4.417404,4.91465,5L18.2257,5C18.5018,5,18.7257,5.22386,18.7257,5.5C18.7257,5.77614,18.5018,6,18.2257,6L4.91465,6ZM2.7257,8.5C2.7257,8.22386,2.949558,8,3.2257,8L18.2257,8C18.5018,8,18.7257,8.22386,18.7257,8.5C18.7257,8.77614,18.5018,9,18.2257,9L3.2257,9C2.949558,9,2.7257,8.77614,2.7257,8.5ZM3.00425,11.5C3.00425,11.22386,3.22811,11,3.50425,11L18.5042,11C18.7804,11,19.0042,11.22386,19.0042,11.5C19.0042,11.77614,18.7804,12,18.5042,12L3.50425,12C3.22811,12,3.00425,11.77614,3.00425,11.5ZM2.864967,14.5C2.864967,14.2239,3.08882,14,3.36497,14L18.365,14C18.6411,14,18.865,14.2239,18.865,14.5C18.865,14.7761,18.6411,15,18.365,15L3.36497,15C3.08882,15,2.864967,14.7761,2.864967,14.5ZM20,17.5C20,18.328400000000002,19.3284,19,18.5,19C17.846899999999998,19,17.2913,18.5826,17.0854,18L3.50425,18C3.22811,18,3.00425,17.7761,3.00425,17.5C3.00425,17.2239,3.22811,17,3.50425,17L17.0854,17C17.2913,16.4174,17.846899999999998,16,18.5,16C19.3284,16,20,16.671599999999998,20,17.5Z stroke-opacity=0 stroke=none>');const Ky=()=>Ny();var Wy=U('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=5 ry=5 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=3 ry=3 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1>');const Uy=()=>Wy();var Zy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3,7.32468C5.90649,3.3893050000000002,11.49833,2.81306,14.6674,6.31944C14.9056,6.1554199999999994,15.192,6.05979,15.5,6.05979C15.845,6.05979,16.1628,6.17974,16.4162,6.381349999999999L18.4509,4.23827L19,4.816615L16.8945,7.03429C16.962600000000002,7.21075,17,7.40319,17,7.60463C17,8.45782,16.328400000000002,9.14947,15.5,9.14947C14.6716,9.14947,14,8.45782,14,7.60463C14,7.36402,14.0534,7.13625,14.1487,6.93322C11.32695,3.748365,6.25159,4.253956,3.612785,7.82695L3,7.32468ZM14.09,15.4717C15.7427,13.78985,16.244500000000002,11.524740000000001,15.5633,9.30134L15.5618,9.30134L16.3012,9.0502C17.072400000000002,11.56646,16.497700000000002,14.158,14.6282,16.0599C12.28737,18.442,8.62386,18.6988,6.41348,16.4501C4.5526,14.5572,4.52076,11.19671,6.36766,9.3177C7.89069,7.76754,10.07544,7.706189999999999,11.56741,9.22363C11.95453,9.61742,12.24817,10.08363,12.43369,10.57677L14.1451,8.77421L14.6942,9.35256L12.64982,11.50582C12.65827,11.59712,12.66295,11.68839,12.66378,11.77936C12.87398,12.04523,13,12.38451,13,12.7541C13,13.60729,12.32843,14.2989,11.5,14.2989C10.67157,14.2989,10,13.60729,10,12.7541C10,11.90091,10.67157,11.20926,11.5,11.20926C11.60387,11.20926,11.70528,11.220130000000001,11.8032,11.240829999999999L11.81763,11.22564C11.69858,10.71874,11.42858,10.21929,11.0284,9.81179C9.844000000000001,8.60765,8.136890000000001,8.65592,6.90822,9.90586C5.37975,11.460930000000001,5.40693,14.288,6.95404,15.8619C8.84598,17.7867,12.03496,17.5626,14.09,15.4717Z stroke-opacity=0 stroke=none>');const Qy=()=>Zy();var jy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4,17.0854L4,3.5C4,3.223858,4.22386,3,4.5,3C4.77614,3,5,3.223858,5,3.5L5,10L7.57584,10L9.8127,4.46359C9.91614,4.20756,10.20756,4.08386,10.46359,4.1873000000000005C10.71963,4.29075,10.84333,4.58216,10.73988,4.8382000000000005L8.65438,10L11.08535,10C11.29127,9.4174,11.84689,9,12.5,9C12.65154,9,12.79784,9.02247,12.93573,9.06427L16.6464,5.35355C16.8417,5.15829,17.1583,5.15829,17.3536,5.35355C17.5488,5.54882,17.5488,5.8654,17.3536,6.06066L13.7475,9.66675C13.907,9.90508,14,10.19168,14,10.5C14,11.15311,13.5826,11.70873,13,11.91465L13,14.3638L18.3714,12.1936C18.6274,12.09015,18.918799999999997,12.21385,19.0222,12.46989C19.1257,12.72592,19.002,13.0173,18.746000000000002,13.1208L13,15.4423L13,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854ZM6.3729499999999994,17.0413L12,14.7678L12,11.91465C11.88136,11.87271,11.76956,11.81627,11.66675,11.74746L6.3729499999999994,17.0413ZM12,15.8463L6.6694700000000005,18L12,18L12,15.8463ZM6.38629,15.6137L8.250350000000001,11L11,11L6.38629,15.6137ZM5,11L7.17182,11L5,16.3754L5,11Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Yy=()=>jy();var Gy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17,4.5C17,5.32843,16.328400000000002,6,15.5,6C15.0931,6,14.7241,5.83802,14.4539,5.57503L5.98992,8.32515C5.99658,8.38251,6,8.440850000000001,6,8.5C6,9.15311,5.582599999999999,9.70873,5,9.91465L5,11.08535C5.42621,11.236,5.763999999999999,11.57379,5.91465,12L19.5,12C19.7761,12,20,12.22386,20,12.5C20,12.77614,19.7761,13,19.5,13L5.91465,13C5.70873,13.5826,5.15311,14,4.5,14C3.671573,14,3,13.3284,3,12.5C3,11.84689,3.417404,11.29127,4,11.08535L4,9.91465C3.417404,9.70873,3,9.15311,3,8.5C3,7.67157,3.671573,7,4.5,7C4.90411,7,5.2709,7.15981,5.5406200000000005,7.41967L14.0093,4.66802C14.0032,4.6128599999999995,14,4.5568,14,4.5C14,3.671573,14.6716,3,15.5,3C16.328400000000002,3,17,3.671573,17,4.5ZM4,15.5C4,15.2239,4.22386,15,4.5,15L19.5,15C19.7761,15,20,15.2239,20,15.5C20,15.7761,19.7761,16,19.5,16L4.5,16C4.22386,16,4,15.7761,4,15.5ZM4,18.5C4,18.2239,4.22386,18,4.5,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L4.5,19C4.22386,19,4,18.7761,4,18.5Z stroke-opacity=0 stroke=none>');const Hy=()=>Gy();var Vy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M20,3.5C20,4.15311,19.5826,4.70873,19,4.91465L19,18.5C19,18.7761,18.7761,19,18.5,19L4.91465,19C4.70873,19.5826,4.15311,20,3.5,20C2.671573,20,2,19.3284,2,18.5C2,17.846899999999998,2.417404,17.2913,3,17.0854L3,3.5C3,3.22386,3.22386,3,3.5,3L17.0854,3C17.2913,2.417404,17.846899999999998,2,18.5,2C19.3284,2,20,2.671573,20,3.5ZM17.0854,4C17.236,4.42621,17.5738,4.763999999999999,18,4.91465L18,8L14,8L14,4L17.0854,4ZM13,4L13,8L9,8L9,4L13,4ZM13,9L9,9L9,13L13,13L13,9ZM13,14L9,14L9,18L13,18L13,14ZM14,18L14,14L18,14L18,18L14,18ZM18,13L14,13L14,9L18,9L18,13ZM4.91465,18C4.763999999999999,17.5738,4.42621,17.236,4,17.0854L4,14L8,14L8,18L4.91465,18ZM4,8L4,4L8,4L8,8L4,8ZM8,9L8,13L4,13L4,9L8,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const qy=()=>Vy();var Xy=U('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 fill=none stroke-opacity=1 stroke-width=1>');const Jy=()=>Xy();var em=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.57625,6.9981C11.55099,6.999359999999999,11.52557,7,11.5,7C11.34,7,11.18584,6.97495,11.04125,6.9285499999999995L5.55401,16.4327C5.713760000000001,16.5905,5.83826,16.7839,5.91465,17L16.0854,17C16.2187,16.622700000000002,16.4987,16.314700000000002,16.8569,16.1445L11.57625,6.9981ZM12.50759,6.611219999999999C12.81005,6.336790000000001,13,5.94058,13,5.5C13,4.671573,12.32843,4,11.5,4C10.67157,4,10,4.671573,10,5.5C10,5.80059,10.08841,6.08052,10.24066,6.31522L4.64514,16.0069C4.59738,16.002299999999998,4.54896,16,4.5,16C3.671573,16,3,16.671599999999998,3,17.5C3,18.328400000000002,3.671573,19,4.5,19C5.15311,19,5.70873,18.5826,5.91465,18L16.0854,18C16.2913,18.5826,16.846899999999998,19,17.5,19C18.328400000000002,19,19,18.328400000000002,19,17.5C19,16.8365,18.5691,16.2735,17.971899999999998,16.075699999999998L12.50759,6.611219999999999Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const tm=()=>em();var nm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19,4.5C19,5.15311,18.5826,5.70873,18,5.91465L18,18.5C18,18.7761,17.7761,19,17.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854L4,4.5C4,4.22386,4.22386,4,4.5,4L16.0854,4C16.2913,3.417404,16.846899999999998,3,17.5,3C18.328400000000002,3,19,3.671573,19,4.5ZM5,5L16.0854,5C16.236,5.42621,16.5738,5.763999999999999,17,5.91465L17,18L5.91465,18C5.763999999999999,17.5738,5.42621,17.236,5,17.0854L5,5Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const rm=()=>nm();var im=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19.6401,7.99355C20.4028,7.92291,21,7.2811900000000005,21,6.5C21,5.671573,20.3284,5,19.5,5C18.8469,5,18.2913,5.417404,18.0854,6L7.62067,6C7.34453,6,7.12067,6.22386,7.12067,6.5C7.12067,6.5479,7.12741,6.59423,7.13999,6.63809L3.2294099999999997,15.0243C2.530138,15.1517,2,15.764,2,16.5C2,17.328400000000002,2.671573,18,3.5,18C4.15311,18,4.70873,17.5826,4.91465,17L14.5963,17C14.6456,17.076,14.7162,17.1396,14.8044,17.1807C15.0546,17.2974,15.3521,17.1891,15.4688,16.9388L19.6401,7.99355ZM14.7896,16.0293L18.6551,7.739599999999999C18.3942,7.56144,18.1925,7.30307,18.0854,7L8.0746,7L4.25044,15.2009C4.55701,15.3784,4.79493,15.6613,4.91465,16L14.6207,16C14.68,16,14.7368,16.0103,14.7896,16.0293Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const om=()=>im();var am=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.134443814697265,7.494615087890625L8.764323814697265,7.494615087890625L8.764323814697265,3.414215087890625L8.310223814697267,3.414215087890625L7.294603814697266,4.005035087890625L7.289713814697266,4.634915087890625L8.134443814697265,4.149892087890625L8.134443814697265,7.494615087890625ZM18.832003814697266,6.933095087890624Q19.004603814697266,6.635245087890625,19.004603814697266,6.2543850878906255Q19.004603814697266,5.884915087890625,18.845103814697264,5.593575087890625Q18.685503814697267,5.3006050878906255,18.399103814697266,5.136225087890625Q18.114303814697266,4.9702050878906245,17.754603814697266,4.9653250878906245L18.820603814697265,3.840647087890625L18.820603814697265,3.414215087890625L16.519203814697264,3.414215087890625L16.519203814697264,3.939931087890625L18.050803814697264,3.939931087890625L16.719403814697266,5.334785087890625L17.074203814697263,5.7205350878906245Q17.254903814697265,5.484525087890625,17.619503814697268,5.484525087890625Q17.980803814697268,5.484525087890625,18.187503814697266,5.689605087890625Q18.394203814697267,5.894685087890625,18.394203814697267,6.2543850878906255Q18.394203814697267,6.604315087890625,18.187503814697266,6.822415087890625Q17.980803814697268,7.0405150878906255,17.640603814697265,7.0405150878906255Q17.334603814697267,7.0405150878906255,17.124703814697266,6.890775087890625Q16.914703814697265,6.739415087890626,16.820303814697265,6.469225087890624L16.354803814697263,6.744295087890626Q16.480103814697266,7.125155087890625,16.821903814697265,7.341625087890625Q17.165403814697264,7.559725087890625,17.640603814697265,7.559725087890625Q18.039403814697266,7.559725087890625,18.348603814697267,7.393705087890625Q18.659503814697267,7.229315087890625,18.832003814697266,6.933095087890624ZM10.000003814697266,10.634915087890626C10.000003814697266,11.024655087890626,9.851363814697265,11.379685087890625,9.607683814697266,11.646395087890625L12.168903814697266,15.171615087890626C12.275403814697265,15.147615087890625,12.386203814697266,15.134915087890626,12.500003814697266,15.134915087890626C12.596503814697266,15.134915087890626,12.690803814697265,15.144015087890624,12.782303814697265,15.161415087890624L16.108803814697268,11.196955087890625C16.038703814697264,11.023375087890624,16.000003814697266,10.833655087890625,16.000003814697266,10.634915087890626C16.000003814697266,9.806495087890625,16.671603814697264,9.134915087890626,17.500003814697266,9.134915087890626C18.328403814697264,9.134915087890626,19.000003814697266,9.806495087890625,19.000003814697266,10.634915087890626C19.000003814697266,11.463345087890625,18.328403814697264,12.134915087890626,17.500003814697266,12.134915087890626C17.239503814697265,12.134915087890626,16.994503814697268,12.068495087890625,16.781003814697264,11.951675087890624L13.654703814697266,15.677415087890624C13.870303814697266,15.937215087890625,14.000003814697266,16.270915087890625,14.000003814697266,16.634915087890626C14.000003814697266,17.463315087890624,13.328403814697266,18.134915087890626,12.500003814697266,18.134915087890626C11.671573814697265,18.134915087890626,11.000003814697266,17.463315087890624,11.000003814697266,16.634915087890626C11.000003814697266,16.284415087890626,11.120193814697265,15.962015087890626,11.321603814697266,15.706715087890625L8.715393814697265,12.119565087890624C8.645053814697267,12.129685087890625,8.573143814697266,12.134915087890626,8.500003814697266,12.134915087890626C8.162103814697264,12.134915087890626,7.8503038146972655,12.023195087890626,7.599523814697266,11.834665087890626L4.505583814697266,15.521915087890624C4.809213814697266,15.796415087890624,5.000003814697266,16.193415087890624,5.000003814697266,16.634915087890626C5.000003814697266,17.463315087890624,4.328433814697266,18.134915087890626,3.5000038146972656,18.134915087890626C2.6715768146972656,18.134915087890626,2.0000038146972656,17.463315087890624,2.0000038146972656,16.634915087890626C2.0000038146972656,15.806515087890626,2.6715768146972656,15.134915087890626,3.5000038146972656,15.134915087890626C3.508253814697266,15.134915087890626,3.5164838146972657,15.135015087890626,3.524703814697266,15.135115087890625L7.033823814697266,10.953115087890625C7.011673814697265,10.850565087890626,7.000003814697266,10.744105087890624,7.000003814697266,10.634915087890626C7.000003814697266,9.806495087890625,7.671573814697266,9.134915087890626,8.500003814697266,9.134915087890626C9.328433814697267,9.134915087890626,10.000003814697266,9.806495087890625,10.000003814697266,10.634915087890626Z stroke-opacity=0 stroke=none>');const sm=()=>am();var lm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.13444,7.494615087890625L8.76432,7.494615087890625L8.76432,3.414215087890625L8.310220000000001,3.414215087890625L7.2946,4.005035087890625L7.28971,4.634915087890625L8.13444,4.149892087890625L8.13444,7.494615087890625ZM18.832,6.929835087890625Q19.0046,6.635245087890625,19.0046,6.2543850878906255Q19.0046,5.889805087890625,18.8451,5.5952050878906245Q18.6855,5.3006050878906255,18.3975,5.132965087890625Q18.1094,4.9653250878906245,17.7399,4.9653250878906245Q17.435499999999998,4.9653250878906245,17.1556,5.149245087890625L17.2793,3.939931087890625L18.8304,3.939931087890625L18.8304,3.414215087890625L16.7406,3.414215087890625L16.5094,5.665195087890625L17.0156,5.795405087890625Q17.095399999999998,5.655425087890626,17.2516,5.570795087890625Q17.4095,5.484525087890625,17.6357,5.484525087890625Q17.9694,5.484525087890625,18.1842,5.697745087890625Q18.4007,5.909335087890625,18.4007,6.2543850878906255Q18.4007,6.604315087890625,18.1842,6.822415087890625Q17.9694,7.0405150878906255,17.6292,7.0405150878906255Q17.3298,7.0405150878906255,17.119799999999998,6.890775087890625Q16.9098,6.739415087890626,16.825200000000002,6.474115087890625L16.3597,6.749175087890626Q16.470399999999998,7.110505087890624,16.807299999999998,7.335115087890625Q17.144199999999998,7.559725087890625,17.6292,7.559725087890625Q18.0296,7.559725087890625,18.3438,7.392075087890625Q18.6595,7.224435087890625,18.832,6.929835087890625ZM10,10.634915087890626C10,11.024655087890626,9.85136,11.379685087890625,9.60768,11.646395087890625L12.1689,15.171615087890626C12.2754,15.147615087890625,12.3862,15.134915087890626,12.5,15.134915087890626C12.5965,15.134915087890626,12.6908,15.144015087890624,12.7823,15.161415087890624L16.108800000000002,11.196955087890625C16.0387,11.023375087890624,16,10.833655087890625,16,10.634915087890626C16,9.806495087890625,16.671599999999998,9.134915087890626,17.5,9.134915087890626C18.3284,9.134915087890626,19,9.806495087890625,19,10.634915087890626C19,11.463345087890625,18.3284,12.134915087890626,17.5,12.134915087890626C17.2395,12.134915087890626,16.994500000000002,12.068505087890625,16.781,11.951675087890624L13.6547,15.677415087890624C13.8703,15.937215087890625,14,16.270915087890625,14,16.634915087890626C14,17.463315087890624,13.3284,18.134915087890626,12.5,18.134915087890626C11.67157,18.134915087890626,11,17.463315087890624,11,16.634915087890626C11,16.284415087890626,11.12019,15.962015087890626,11.3216,15.706715087890625L8.71539,12.119565087890624C8.645050000000001,12.129685087890625,8.57314,12.134915087890626,8.5,12.134915087890626C8.162099999999999,12.134915087890626,7.8503,12.023195087890626,7.59952,11.834665087890626L4.50558,15.521915087890624C4.80921,15.796415087890624,5,16.193415087890624,5,16.634915087890626C5,17.463315087890624,4.32843,18.134915087890626,3.5,18.134915087890626C2.671573,18.134915087890626,2,17.463315087890624,2,16.634915087890626C2,15.806515087890626,2.671573,15.134915087890626,3.5,15.134915087890626C3.5082500000000003,15.134915087890626,3.51648,15.135015087890626,3.5247,15.135115087890625L7.03382,10.953115087890625C7.01167,10.850565087890626,7,10.744105087890624,7,10.634915087890626C7,9.806495087890625,7.67157,9.134915087890626,8.5,9.134915087890626C9.32843,9.134915087890626,10,9.806495087890625,10,10.634915087890626Z stroke-opacity=0 stroke=none>');const cm=()=>lm();var um=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M18.8532,7.020985087890625Q19.0257,6.734525087890625,19.0257,6.369945087890625Q19.0257,6.020005087890625,18.8499,5.754705087890625Q18.6758,5.489415087890626,18.3649,5.339675087890625Q18.5944,5.209465087890625,18.7214,4.994615087890625Q18.8499,4.779775087890625,18.8499,4.5193550878906255Q18.8499,4.2003480878906245,18.7002,3.951324087890625Q18.5505,3.700673087890625,18.277,3.557444087890625Q18.0052,3.414215087890625,17.6455,3.414215087890625Q17.285800000000002,3.414215087890625,17.0107,3.557444087890625Q16.7357,3.700673087890625,16.5843,3.951324087890625Q16.4346,4.2003480878906245,16.4346,4.5193550878906255Q16.4346,4.779775087890625,16.561500000000002,4.994615087890625Q16.6901,5.209465087890625,16.919600000000003,5.339675087890625Q16.6055,5.489415087890626,16.4297,5.757965087890625Q16.255499999999998,6.024895087890625,16.255499999999998,6.369945087890625Q16.255499999999998,6.734525087890625,16.4297,7.020985087890625Q16.6055,7.305815087890625,16.919600000000003,7.465325087890625Q17.2354,7.624825087890625,17.6455,7.624825087890625Q18.0557,7.624825087890625,18.3682,7.465325087890625Q18.6807,7.305815087890625,18.8532,7.020985087890625ZM8.76432,7.559725087890625L8.13444,7.559725087890625L8.13444,4.214996087890625L7.28971,4.700025087890625L7.2946,4.070139087890625L8.310220000000001,3.479319087890625L8.76432,3.479319087890625L8.76432,7.559725087890625ZM17.1816,4.955555087890625Q17.0042,4.784655087890625,17.0042,4.5095950878906255Q17.0042,4.229645087890625,17.18,4.057119087890625Q17.355800000000002,3.884592087890625,17.6455,3.884592087890625Q17.935200000000002,3.884592087890625,18.1077,4.057119087890625Q18.2803,4.229645087890625,18.2803,4.5095950878906255Q18.2803,4.784655087890625,18.1045,4.955555087890625Q17.930300000000003,5.124825087890625,17.6455,5.124825087890625Q17.3607,5.124825087890625,17.1816,4.955555087890625ZM18.2217,5.7953950878906255Q18.4398,6.005365087890625,18.4398,6.3552950878906245Q18.4398,6.705235087890625,18.2217,6.915195087890625Q18.0052,7.125155087890625,17.6455,7.125155087890625Q17.285800000000002,7.125155087890625,17.067700000000002,6.915195087890625Q16.849600000000002,6.705235087890625,16.849600000000002,6.3552950878906245Q16.849600000000002,6.005365087890625,17.064500000000002,5.7953950878906255Q17.2793,5.585435087890625,17.6455,5.585435087890625Q18.0052,5.585435087890625,18.2217,5.7953950878906255ZM9.60768,11.711495087890626C9.85136,11.444785087890626,10,11.089765087890626,10,10.700025087890625C10,9.871595087890626,9.32843,9.200025087890625,8.5,9.200025087890625C7.67157,9.200025087890625,7,9.871595087890626,7,10.700025087890625C7,10.809205087890625,7.01167,10.915665087890625,7.03382,11.018215087890624L3.5247,15.200215087890625C3.51648,15.200115087890625,3.5082500000000003,15.200015087890625,3.5,15.200015087890625C2.671573,15.200015087890625,2,15.871615087890625,2,16.700015087890627C2,17.528415087890625,2.671573,18.200015087890627,3.5,18.200015087890627C4.32843,18.200015087890627,5,17.528415087890625,5,16.700015087890627C5,16.258515087890625,4.80921,15.861515087890625,4.50558,15.587015087890626L7.59952,11.899765087890625C7.8503,12.088295087890625,8.162099999999999,12.200025087890625,8.5,12.200025087890625C8.57314,12.200025087890625,8.645050000000001,12.194785087890626,8.71539,12.184675087890625L11.3216,15.771815087890625C11.12019,16.027215087890625,11,16.349515087890623,11,16.700015087890627C11,17.528415087890625,11.67157,18.200015087890627,12.5,18.200015087890627C13.3284,18.200015087890627,14,17.528415087890625,14,16.700015087890627C14,16.336015087890623,13.8703,16.002315087890626,13.6547,15.742515087890625L16.781,12.016775087890625C16.994500000000002,12.133605087890626,17.2395,12.200025087890625,17.5,12.200025087890625C18.3284,12.200025087890625,19,11.528445087890624,19,10.700025087890625C19,9.871595087890626,18.3284,9.200025087890625,17.5,9.200025087890625C16.671599999999998,9.200025087890625,16,9.871595087890626,16,10.700025087890625C16,10.898765087890624,16.0387,11.088475087890625,16.108800000000002,11.262055087890625L12.7823,15.226515087890625C12.6908,15.209115087890625,12.5965,15.200015087890625,12.5,15.200015087890625C12.3862,15.200015087890625,12.2754,15.212715087890626,12.1689,15.236715087890625L9.60768,11.711495087890626Z stroke-opacity=0 stroke=none>');const fm=()=>um();var dm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M9.474616630859375,7.494615087890625L8.844736630859375,7.494615087890625L8.844736630859375,4.149892087890625L8.000006630859374,4.634915087890625L8.004896630859374,4.005035087890625L9.020516630859376,3.414215087890625L9.474616630859375,3.414215087890625L9.474616630859375,7.494615087890625ZM18.529296630859378,4.8318550878906255Q18.307996630859375,5.028795087890625,18.122396630859377,5.385245087890625Q17.868496630859376,5.019035087890625,17.629196630859376,4.8269750878906255Q17.389996630859375,4.634915087890625,17.168596630859376,4.634915087890625Q16.794296630859375,4.634915087890625,16.522496630859376,4.976715087890625Q16.252296630859377,5.3168850878906255,16.252296630859377,5.7856350878906255Q16.252296630859377,6.218575087890625,16.502896630859375,6.521315087890625Q16.755196630859373,6.822415087890625,17.114896630859377,6.822415087890625Q17.368796630859375,6.822415087890625,17.588596630859374,6.625475087890624Q17.809896630859377,6.428535087890625,17.998696630859374,6.0688350878906245Q18.249396630859373,6.439935087890625,18.488596630859377,6.631985087890625Q18.727896630859377,6.822415087890625,18.952496630859375,6.822415087890625Q19.326796630859373,6.822415087890625,19.596996630859376,6.482245087890625Q19.868796630859375,6.140455087890626,19.868796630859375,5.671705087890626Q19.868796630859375,5.238755087890625,19.618196630859376,4.937655087890625Q19.367496630859375,4.634915087890625,19.006196630859375,4.634915087890625Q18.750696630859377,4.634915087890625,18.529296630859378,4.8318550878906255ZM18.337296630859377,5.674955087890625L18.278696630859375,5.596835087890625Q18.449596630859375,5.272935087890625,18.622096630859374,5.1101750878906245Q18.794596630859374,4.947415087890625,18.967096630859373,4.947415087890625Q19.194996630859375,4.947415087890625,19.346396630859374,5.1345950878906255Q19.497696630859377,5.320135087890625,19.497696630859377,5.598455087890625Q19.497696630859377,5.8914250878906245,19.360996630859376,6.096505087890625Q19.224296630859374,6.301585087890626,19.027396630859375,6.301585087890626Q18.915096630859374,6.301585087890626,18.742496630859375,6.146965087890624Q18.569996630859375,5.992335087890625,18.337296630859377,5.674955087890625ZM17.785496630859377,5.779125087890625L17.842496630859372,5.857245087890625Q17.668296630859373,6.186025087890625,17.495796630859374,6.348785087890625Q17.324896630859374,6.509915087890625,17.153996630859375,6.509915087890625Q16.926096630859377,6.509915087890625,16.774796630859377,6.324375087890624Q16.623396630859375,6.137195087890625,16.623396630859375,5.858875087890625Q16.623396630859375,5.565905087890625,16.761696630859376,5.360825087890625Q16.900096630859373,5.1557550878906255,17.095396630859376,5.1557550878906255Q17.228896630859374,5.1557550878906255,17.365596630859375,5.2778250878906245Q17.502296630859377,5.399895087890625,17.785496630859377,5.779125087890625ZM10.710296630859375,10.634915087890626C10.710296630859375,11.024655087890626,10.561656630859375,11.379685087890625,10.317976630859375,11.646395087890625L12.879196630859376,15.171615087890626C12.985696630859374,15.147615087890625,13.096496630859376,15.134915087890626,13.210296630859375,15.134915087890626C13.306796630859376,15.134915087890626,13.401096630859374,15.144015087890624,13.492596630859374,15.161415087890624L16.819096630859377,11.196955087890625C16.748996630859374,11.023375087890624,16.710296630859375,10.833655087890625,16.710296630859375,10.634915087890626C16.710296630859375,9.806495087890625,17.381896630859373,9.134915087890626,18.210296630859375,9.134915087890626C19.038696630859373,9.134915087890626,19.710296630859375,9.806495087890625,19.710296630859375,10.634915087890626C19.710296630859375,11.463345087890625,19.038696630859373,12.134915087890626,18.210296630859375,12.134915087890626C17.949796630859375,12.134915087890626,17.704796630859377,12.068505087890625,17.491296630859374,11.951675087890624L14.364996630859375,15.677415087890624C14.580596630859375,15.937215087890625,14.710296630859375,16.270915087890625,14.710296630859375,16.634915087890626C14.710296630859375,17.463315087890624,14.038696630859375,18.134915087890626,13.210296630859375,18.134915087890626C12.381866630859374,18.134915087890626,11.710296630859375,17.463315087890624,11.710296630859375,16.634915087890626C11.710296630859375,16.284415087890626,11.830486630859374,15.962015087890626,12.031896630859375,15.706715087890625L9.425686630859374,12.119565087890624C9.355346630859376,12.129685087890625,9.283436630859375,12.134915087890626,9.210296630859375,12.134915087890626C8.872396630859374,12.134915087890626,8.560596630859376,12.023195087890626,8.309816630859375,11.834665087890626L5.215876630859375,15.521915087890624C5.519506630859375,15.796415087890624,5.710296630859375,16.193415087890624,5.710296630859375,16.634915087890626C5.710296630859375,17.463315087890624,5.038726630859375,18.134915087890626,4.210296630859375,18.134915087890626C3.381869630859375,18.134915087890626,2.710296630859375,17.463315087890624,2.710296630859375,16.634915087890626C2.710296630859375,15.806515087890626,3.381869630859375,15.134915087890626,4.210296630859375,15.134915087890626C4.218546630859375,15.134915087890626,4.226776630859375,15.135015087890626,4.234996630859375,15.135115087890625L7.744116630859375,10.953115087890625C7.721966630859375,10.850565087890626,7.710296630859375,10.744105087890624,7.710296630859375,10.634915087890626C7.710296630859375,9.806495087890625,8.381866630859374,9.134915087890626,9.210296630859375,9.134915087890626C10.038726630859376,9.134915087890626,10.710296630859375,9.806495087890625,10.710296630859375,10.634915087890626Z stroke-opacity=0 stroke=none>');const hm=()=>dm();var gm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M21,5.5C21,6.32843,20.3284,7,19.5,7C19.4136,7,19.3289,6.99269,19.2465,6.97866L15.6257,15.5086C15.8587,15.7729,16,16.119999999999997,16,16.5C16,17.328400000000002,15.3284,18,14.5,18C13.8469,18,13.2913,17.5826,13.0854,17L3.91465,17C3.70873,17.5826,3.15311,18,2.5,18C1.671573,18,1,17.328400000000002,1,16.5C1,15.6716,1.671573,15,2.5,15C2.5840199999999998,15,2.66643,15.0069,2.74668,15.0202L6.36934,6.48574C6.13933,6.22213,6,5.87733,6,5.5C6,4.671573,6.67157,4,7.5,4C8.15311,4,8.70873,4.417404,8.91465,5L18.0854,5C18.2913,4.417404,18.8469,4,19.5,4C20.3284,4,21,4.671573,21,5.5ZM18.0854,6L8.91465,6C8.892579999999999,6.06243,8.8665,6.12296,8.83672,6.18128L13.9814,15.0921C14.143,15.0325,14.3177,15,14.5,15C14.584,15,14.6664,15.0069,14.7467,15.0202L18.3693,6.48574C18.2462,6.3446,18.149,6.1802,18.0854,6ZM13.2036,15.745L8.0861,6.8811800000000005C7.90605,6.95768,7.70797,7,7.5,7C7.41359,7,7.32888,6.99269,7.24647,6.97866L3.62571,15.5086C3.7512,15.651,3.8501,15.8174,3.91465,16L13.0854,16C13.1169,15.9108,13.1566,15.8255,13.2036,15.745Z stroke-opacity=0 stroke=none>');const pm=()=>gm();var ym=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.92159,5.93994C6.04014,5.90529,6.152620000000001,5.85639,6.25704,5.79523L9.12729,9.89437C9.045449999999999,10.07959,9,10.28449,9,10.5C9,10.79522,9.08529,11.07053,9.232569999999999,11.30262L4.97573,16.7511L5.92159,5.93994ZM4.92259,5.8848400000000005C4.38078,5.658659999999999,4,5.1238,4,4.5C4,3.671573,4.67157,3,5.5,3C6.2157,3,6.81433,3.50124,6.96399,4.17183L15.1309,4.88634C15.3654,4.36387,15.8902,4,16.5,4C17.328400000000002,4,18,4.67157,18,5.5C18,6.08983,17.659599999999998,6.60015,17.1645,6.84518L18.4264,14.0018C18.4508,14.0006,18.4753,14,18.5,14C19.3284,14,20,14.6716,20,15.5C20,16.328400000000002,19.3284,17,18.5,17C17.932499999999997,17,17.4386,16.6849,17.183799999999998,16.22L5.99686,18.5979C5.946429999999999,19.3807,5.29554,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.869300000000003,3.389292,17.3295,3.94071,17.1077L4.92259,5.8848400000000005ZM5.72452,17.6334C5.69799,17.596,5.6698,17.5599,5.64004,17.525100000000002L10.01843,11.92103C10.16958,11.97223,10.33155,12,10.5,12C10.80059,12,11.08052,11.91158,11.31522,11.75934L17.0606,15.0765C17.0457,15.1271,17.0335,15.1789,17.023899999999998,15.2317L5.72452,17.6334ZM11.92855,10.95875L17.4349,14.1379L16.1699,6.96356C15.9874,6.92257,15.8174,6.8483,15.6667,6.74746L11.99771,10.4165C11.99923,10.44414,12,10.47198,12,10.5C12,10.66,11.97495,10.814160000000001,11.92855,10.95875ZM10.5,9C10.259830000000001,9,10.03285,9.05644,9.83159,9.15679L7.04919,5.1831L15.0493,5.88302C15.054,5.90072,15.059,5.91829,15.0643,5.9357299999999995L11.56066,9.43934C11.28921,9.16789,10.91421,9,10.5,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const mm=()=>ym();var bm=U('<svg viewBox="0 0 22 22"><path d=M4.727219638671875,8.007996215820313L9.973849638671876,2.7629472158203123C10.167279638671875,2.5696791158203123,10.480729638671875,2.5696791158203123,10.674169638671875,2.7629472158203123L13.223329638671874,5.311756215820313C13.416929638671874,5.505236215820313,13.416929638671874,5.8189862158203125,13.223329638671874,6.012466215820313L7.977129638671875,11.257906215820313C7.379859638671875,11.855176215820313,7.407609638671875,12.909396215820312,8.033809638671876,13.535596215820313C8.660409638671876,14.162596215820313,9.713849638671874,14.189996215820312,10.311129638671876,13.591896215820313L15.556929638671875,8.346066215820311C15.750429638671875,8.152526215820313,16.064229638671875,8.152526215820313,16.257629638671872,8.346066215820311L18.806529638671876,10.895266215820312C19.000029638671876,11.088746215820313,19.000029638671876,11.402496215820312,18.806529638671876,11.595976215820313L13.560629638671875,16.841796215820313C11.165619638671876,19.237196215820312,7.197149638671875,19.19919621582031,4.783499638671875,16.785496215820313C2.3698426386718747,14.371896215820312,2.331397638671875,10.403416215820313,4.727219638671875,8.007996215820313ZM12.172299638671875,5.662106215820312L10.323809638671875,3.8136162158203124L5.4287196386718755,8.709096215820313C3.422893638671875,10.714536215820312,3.4549956386718748,14.055196215820313,5.484999638671875,16.08479621582031C7.514609638671875,18.114796215820313,10.855289638671875,18.146496215820314,12.860719638671876,16.141096215820312L15.465629638671874,13.535796215820312L14.090929638671875,12.160756215820312L14.791629638671875,11.460436215820312L16.166229638671876,12.834996215820313L17.755829638671877,11.245226215820313L15.907729638671874,9.396736215820312L11.011839638671875,14.292596215820312C10.042809638671875,15.262396215820312,8.418249638671874,15.243796215820312,7.406019638671875,14.306496215820312L7.333099638671875,14.236296215820312C6.327599638671876,13.230796215820313,6.284009638671876,11.550396215820312,7.276419638671875,10.557586215820312L9.882199638671874,7.952026215820313L8.501079638671875,6.570906215820313L9.201789638671876,5.870186215820313L10.582939638671874,7.251336215820312L12.172299638671875,5.662106215820312Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const _m=e=>(()=>{var r=bm();return bt(r,"class",`icon-overlay ${e??""}`),r})();var vm=U('<svg viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_615><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_615)><path d=M19.672,3.0673368C19.4417,2.9354008,19.1463,3.00292252,18.9994,3.2210900000000002L17.4588,5.50622L16.743299999999998,3.781253L13.9915,7.4662L13.9618,7.51108C13.8339,7.72862,13.8936,8.005659999999999,14.1004,8.15391L14.1462,8.183430000000001C14.3683,8.308720000000001,14.6511,8.25001,14.8022,8.047229999999999L16.4907,5.78571L17.246299999999998,7.60713L19.8374,3.7635389999999997L19.8651,3.717088C19.9871,3.484615,19.9023,3.199273,19.672,3.0673368ZM4.79974,8.462530000000001L10.117740000000001,3.252975C10.31381,3.0610145,10.63152,3.0610145,10.82759,3.252975L13.4115,5.78453C13.6076,5.976710000000001,13.6076,6.28833,13.4115,6.4805L8.093869999999999,11.69045C7.48847,12.28368,7.51659,13.3308,8.151309999999999,13.9528C8.786439999999999,14.5755,9.85421,14.6027,10.45961,14.0087L15.7768,8.79831C15.9729,8.60609,16.2909,8.60609,16.487099999999998,8.79831L19.0705,11.33026C19.2667,11.52244,19.2667,11.83406,19.0705,12.02623L13.7533,17.2366C11.32572,19.6158,7.30328,19.578,4.85679,17.1807C2.410298,14.7834,2.371331,10.84174,4.79974,8.462530000000001ZM12.3461,6.1325199999999995L10.47246,4.29654L5.51079,9.15889C3.477674,11.15076,3.510214,14.4688,5.56784,16.4847C7.62506,18.500999999999998,11.01117,18.5325,13.0439,16.540599999999998L15.6842,13.9529L14.2908,12.58718L15.0011,11.89161L16.394399999999997,13.2569L18.0056,11.67786L16.1323,9.84188L11.16985,14.7046C10.18764,15.6679,8.540980000000001,15.6494,7.51498,14.7184L7.44107,14.6487C6.4219,13.65,6.37771,11.98096,7.38362,10.994869999999999L10.02485,8.40693L8.624939999999999,7.03516L9.335180000000001,6.33919L10.73512,7.71099L12.3461,6.1325199999999995Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Cm=e=>(()=>{var r=vm();return bt(r,"class",`icon-overlay ${e??""}`),r})();var xm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,17C5.80945,17,3.667717,12.85,3.113386,11.575C2.9622047,11.2,2.9622047,10.8,3.113386,10.425C3.667717,9.15,5.80945,5,11,5C16.165399999999998,5,18.3323,9.15,18.8866,10.425C19.0378,10.8,19.0378,11.2,18.8866,11.575C18.3323,12.85,16.165399999999998,17,11,17ZM4.04567,10.8C3.995276,10.925,3.995276,11.05,4.04567,11.175C4.52441,12.325,6.43937,16,11,16C15.5606,16,17.4756,12.325,17.9543,11.2C18.0047,11.075,18.0047,10.95,17.9543,10.825C17.4756,9.675,15.5606,6,11,6C6.43937,6,4.52441,9.675,4.04567,10.8ZM11,13.5C9.61417,13.5,8.480319999999999,12.375,8.480319999999999,11C8.480319999999999,9.625,9.61417,8.5,11,8.5C12.38583,8.5,13.5197,9.625,13.5197,11C13.5197,12.375,12.38583,13.5,11,13.5ZM11,9.5C10.1685,9.5,9.48819,10.175,9.48819,11C9.48819,11.825,10.1685,12.5,11,12.5C11.8315,12.5,12.51181,11.825,12.51181,11C12.51181,10.175,11.8315,9.5,11,9.5Z stroke-opacity=0 fill-opacity=1>');const wm=()=>xm();var Lm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.80417,14.9887L4.62563,16.167299999999997C4.43037,16.3625,4.43037,16.6791,4.62563,16.8744C4.82089,17.0696,5.13748,17.0696,5.332739999999999,16.8744L6.62638,15.5807C7.75595,16.290100000000002,9.19328,16.7929,11,16.7929C16.165399999999998,16.7929,18.3323,12.64289,18.8866,11.36789C19.0378,10.99289,19.0378,10.59289,18.8866,10.21789C18.5549,9.45486,17.6456,7.66212,15.8617,6.34545L17.3536,4.853553C17.5488,4.658291,17.5488,4.341709,17.3536,4.146447C17.1583,3.9511845,16.8417,3.9511845,16.6464,4.146447L15.0014,5.7915399999999995C13.9314,5.1969,12.61166,4.792893,11,4.792893C5.80945,4.792893,3.667717,8.94289,3.113386,10.21789C2.9622049,10.59289,2.9622049,10.99289,3.113386,11.36789C3.424435,12.08333,4.2353000000000005,13.70399,5.80417,14.9887ZM7.36012,14.847C8.32327,15.4074,9.52286,15.7929,11,15.7929C15.5606,15.7929,17.4756,12.11789,17.9543,10.99289C18.0047,10.86789,18.0047,10.74289,17.9543,10.61789C17.659,9.90846,16.8171,8.23812,15.1447,7.06241L12.96929,9.23782C13.3134,9.66543,13.5197,10.20642,13.5197,10.79289C13.5197,12.16789,12.38583,13.29289,11,13.29289C10.41596,13.29289,9.87667,13.09308,9.44815,12.75896L7.36012,14.847ZM8.794609999999999,11.99829L6.520099999999999,14.2728C5.06905,13.12119,4.32057,11.628250000000001,4.04567,10.96789C3.995275,10.84289,3.995275,10.71789,4.04567,10.59289C4.52441,9.46789,6.43937,5.79289,11,5.79289C12.28868,5.79289,13.3661,6.086320000000001,14.2596,6.53329L12.19759,8.5953C11.84086,8.40257,11.43271,8.29289,11,8.29289C9.61417,8.29289,8.480319999999999,9.41789,8.480319999999999,10.79289C8.480319999999999,11.22918,8.594470000000001,11.64029,8.794609999999999,11.99829ZM10.16528,12.04183C10.404869999999999,12.20032,10.692070000000001,12.29289,11,12.29289C11.8315,12.29289,12.51181,11.61789,12.51181,10.79289C12.51181,10.48318,12.41593,10.194600000000001,12.25216,9.95494L10.16528,12.04183ZM11.43602,9.35687L9.55616,11.236740000000001C9.512,11.09633,9.48819,10.94724,9.48819,10.79289C9.48819,9.96789,10.1685,9.29289,11,9.29289C11.15142,9.29289,11.29782,9.31528,11.43602,9.35687Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const $m=()=>Lm();var km=U('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_625><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_625)><path d=M14.5385,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807692,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.88462,4,14.5385,5.61538,14.5385,7.576919999999999L14.5385,9.76923ZM10.88461,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923L13.38462,9.76923L13.38462,7.576919999999999C13.38462,6.23077,12.26923,5.15385,10.88461,5.15385ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.038450000000001,12.07692,11.307680000000001,12.34615,11.307680000000001,12.65385L11.307680000000001,14.5769C11.307680000000001,14.8846,11.038450000000001,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Sm=()=>km();var Am=U('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_620><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_620)><path d=M8.38461,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807693,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.46154,4,13.84615,4.961539,14.3462,6.423080000000001C14.4615,6.73077,14.3077,7.038460000000001,14,7.15385C13.69231,7.26923,13.38461,7.11538,13.26923,6.80769C12.92308,5.80769,11.96154,5.15385,10.88462,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.03846,12.07692,11.307690000000001,12.34615,11.307690000000001,12.65385L11.307690000000001,14.5769C11.307690000000001,14.8846,11.03846,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Mm=()=>Am();var Tm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M16.966900000000003,8.67144C16.6669,8.67144,16.4247,8.91558,16.4247,9.21802L16.4247,16.631500000000003C16.4247,17.322,16.007199999999997,17.9068,15.5139,17.9068L13.93072,17.9068L13.93072,9.2162C13.93072,8.91741,13.68675,8.67144,13.38855,8.67144C13.09036,8.67144,12.84639,8.91741,12.84639,9.21802L12.84639,17.9068L10.151810000000001,17.9068L10.151810000000001,9.21802C10.151810000000001,8.91741,9.90783,8.67144,9.609639999999999,8.67144C9.31145,8.67144,9.06747,8.91741,9.06747,9.219850000000001L9.06747,17.9068L7.48614,17.9068C6.99277,17.9068,6.5753,17.322,6.5753,16.631500000000003L6.5753,9.21802C6.5753,8.91558,6.333130000000001,8.67144,6.03313,8.67144C5.73313,8.67144,5.49096,8.91558,5.49096,9.21802L5.49096,16.631500000000003C5.49096,17.9378,6.385540000000001,19,7.48614,19L15.512,19C16.6127,19,17.509,17.9378,17.509,16.631500000000003L17.509,9.21802C17.509,8.91558,17.2669,8.67144,16.966900000000003,8.67144ZM18.4578,6.21183L4.542169,6.21183C4.243976,6.21183,4,6.45779,4,6.75841C4,7.05903,4.243976,7.30499,4.542169,7.30499L18.4578,7.30499C18.756,7.30499,19,7.05903,19,6.75841C19,6.45779,18.756,6.21183,18.4578,6.21183ZM8.68072,5.10045L14.3193,5.10045C14.6175,5.10045,14.8614,4.852666,14.8614,4.550225C14.8614,4.247783,14.6175,4,14.3193,4L8.68072,4C8.38253,4,8.13855,4.247783,8.13855,4.550225C8.13855,4.852666,8.38253,5.10045,8.68072,5.10045Z stroke-opacity=0 fill-opacity=1>');const Pm=()=>Tm();var Im=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const Om={horizontalStraightLine:hy,horizontalRayLine:py,horizontalSegment:my,verticalStraightLine:_y,verticalRayLine:Cy,verticalSegment:wy,straightLine:$y,rayLine:Sy,segment:My,arrow:Py,priceLine:Oy,priceChannelLine:Ey,parallelStraightLine:Ry,fibonacciLine:zy,fibonacciSegment:Ky,fibonacciCircle:Uy,fibonacciSpiral:Qy,fibonacciSpeedResistanceFan:Yy,fibonacciExtension:Hy,gannBox:qy,circle:Jy,triangle:tm,rect:rm,parallelogram:om,threeWaves:sm,fiveWaves:cm,eightWaves:fm,anyWaves:hm,abcd:pm,xabcd:mm,weak_magnet:_m,strong_magnet:Cm,lock:Sm,unlock:Mm,visible:wm,invisible:$m,remove:Pm,brush:()=>Im()};function Bm(e){return[{key:"horizontalStraightLine",text:b("horizontal_straight_line",e)},{key:"horizontalRayLine",text:b("horizontal_ray_line",e)},{key:"horizontalSegment",text:b("horizontal_segment",e)},{key:"verticalStraightLine",text:b("vertical_straight_line",e)},{key:"verticalRayLine",text:b("vertical_ray_line",e)},{key:"verticalSegment",text:b("vertical_segment",e)},{key:"straightLine",text:b("straight_line",e)},{key:"rayLine",text:b("ray_line",e)},{key:"segment",text:b("segment",e)},{key:"arrow",text:b("arrow",e)},{key:"brush",text:b("brush",e)},{key:"priceLine",text:b("price_line",e)}]}function Em(e){return[{key:"priceChannelLine",text:b("price_channel_line",e)},{key:"parallelStraightLine",text:b("parallel_straight_line",e)}]}function Dm(e){return[{key:"circle",text:b("circle",e)},{key:"rect",text:b("rect",e)},{key:"parallelogram",text:b("parallelogram",e)},{key:"triangle",text:b("triangle",e)}]}function Rm(e){return[{key:"fibonacciLine",text:b("fibonacci_line",e)},{key:"fibonacciSegment",text:b("fibonacci_segment",e)},{key:"fibonacciCircle",text:b("fibonacci_circle",e)},{key:"fibonacciSpiral",text:b("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:b("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:b("fibonacci_extension",e)},{key:"gannBox",text:b("gann_box",e)}]}function Fm(e){return[{key:"xabcd",text:b("xabcd",e)},{key:"abcd",text:b("abcd",e)},{key:"threeWaves",text:b("three_waves",e)},{key:"fiveWaves",text:b("five_waves",e)},{key:"eightWaves",text:b("eight_waves",e)},{key:"anyWaves",text:b("any_waves",e)}]}function zm(e){return[{key:"weak_magnet",text:b("weak_magnet",e)},{key:"strong_magnet",text:b("strong_magnet",e)}]}const Nt=e=>Om[e.name](e.class);var Nm=U('<div class=klinecharts-pro-drawing-bar><span class=split-line></span><div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0></path></svg></div></div><div class=item><span style=width:32px;height:32px></span></div><div class=item><span style=width:32px;height:32px></span></div><span class=split-line></span><div class=item><span style=width:32px;height:32px>'),Km=U('<div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0>'),w5=U("<li><span style=padding-left:8px>");const L5="drawing_tools",Wm=e=>{const[r,i]=G("horizontalStraightLine"),[o,s]=G("priceChannelLine"),[l,u]=G("circle"),[f,g]=G("fibonacciLine"),[y,C]=G("xabcd"),[_,$]=G("weak_magnet"),[M,x]=G("normal"),[T,k]=G(!1),[S,D]=G(!0),[F,P]=G(""),z=ln(()=>[{key:"singleLine",icon:r(),list:Bm(e.locale),setter:i},{key:"moreLine",icon:o(),list:Em(e.locale),setter:s},{key:"polygon",icon:l(),list:Dm(e.locale),setter:u},{key:"fibonacci",icon:f(),list:Rm(e.locale),setter:g},{key:"wave",icon:y(),list:Fm(e.locale),setter:C}]),q=ln(()=>zm(e.locale));return(()=>{var Z=Nm(),O=Z.firstChild,W=O.nextSibling,Q=W.firstChild,H=Q.nextSibling,ie=H.firstChild,J=W.nextSibling,N=J.firstChild,re=J.nextSibling,Se=re.firstChild,ge=re.nextSibling,pe=ge.nextSibling,Fe=pe.firstChild;return Y(Z,()=>z().map(Le=>(()=>{var Ge=Km(),Ee=Ge.firstChild,pt=Ee.nextSibling,oe=pt.firstChild;return Ge.addEventListener("blur",()=>{P("")}),Ee.$$click=()=>{e.onDrawingItemClick({groupId:L5,name:Le.icon,visible:S(),lock:T(),mode:M()})},Y(Ee,X(Nt,{get name(){return Le.icon}})),pt.$$click=()=>{Le.key===F()?P(""):P(Le.key)},Y(Ge,(()=>{var te=et(()=>Le.key===F());return()=>te()&&X(Yr,{class:"list",get children(){return Le.list.map(ae=>(()=>{var be=w5(),ze=be.firstChild;return be.$$click=()=>{Le.setter(ae.key),e.onDrawingItemClick({name:ae.key,lock:T(),mode:M()}),P("")},Y(be,X(Nt,{get name(){return ae.key}}),ze),Y(ze,()=>ae.text),be})())}})})(),null),Be(()=>bt(oe,"class",Le.key===F()?"rotate":"")),Ge})()),O),W.addEventListener("blur",()=>{P("")}),Q.$$click=()=>{let Le=_();M()!=="normal"&&(Le="normal"),x(Le),e.onModeChange(Le)},Y(Q,(()=>{var Le=et(()=>_()==="weak_magnet");return()=>Le()?et(()=>M()==="weak_magnet")()?X(Nt,{name:"weak_magnet",class:"selected"}):X(Nt,{name:"weak_magnet"}):et(()=>M()==="strong_magnet")()?X(Nt,{name:"strong_magnet",class:"selected"}):X(Nt,{name:"strong_magnet"})})()),H.$$click=()=>{F()==="mode"?P(""):P("mode")},Y(W,(()=>{var Le=et(()=>F()==="mode");return()=>Le()&&X(Yr,{class:"list",get children(){return q().map(Ge=>(()=>{var Ee=w5(),pt=Ee.firstChild;return Ee.$$click=()=>{$(Ge.key),x(Ge.key),e.onModeChange(Ge.key),P("")},Y(Ee,X(Nt,{get name(){return Ge.key}}),pt),Y(pt,()=>Ge.text),Ee})())}})})(),null),N.$$click=()=>{const Le=!T();k(Le),e.onLockChange(Le)},Y(N,(()=>{var Le=et(()=>!!T());return()=>Le()?X(Nt,{name:"lock"}):X(Nt,{name:"unlock"})})()),Se.$$click=()=>{const Le=!S();D(Le),e.onVisibleChange(Le)},Y(Se,(()=>{var Le=et(()=>!!S());return()=>Le()?X(Nt,{name:"visible"}):X(Nt,{name:"invisible"})})()),Fe.$$click=()=>{e.onRemoveClick(L5)},Y(Fe,X(Nt,{name:"remove"})),Be(()=>bt(ie,"class",F()==="mode"?"rotate":"")),Z})()};Rt(["click"]);var $5=U("<li class=title>"),Um=U('<div style="padding:0 20px">'),k5=U("<li class=row>");const Zm=e=>X(w1,{get title(){return b("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var r=Um();return Y(r,X(Yr,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=$5();return Y(i,()=>b("main_indicator",e.locale)),i})(),et(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=k5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},Y(s,X(C9,{checked:o,get label(){return b(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=$5();return Y(i,()=>b("sub_indicator",e.locale)),i})(),et(()=>["MA","EMA","VOL","MACD","BOLL","KDJ","RSI","BIAS","BRAR","CCI","DMI","CR","PSY","DMA","TRIX","OBV","VR","WR","MTM","EMV","SAR","SMA","ROC","PVT","BBI","AO"].map(i=>{const o=i in e.subIndicators;return(()=>{var s=k5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},Y(s,X(C9,{checked:o,get label(){return b(i.toLowerCase(),e.locale)}})),s})()}))]}})),r}});Rt(["click"]);function S5(e,r){switch(e){case"Etc/UTC":return b("utc",r);case"Pacific/Honolulu":return b("honolulu",r);case"America/Juneau":return b("juneau",r);case"America/Los_Angeles":return b("los_angeles",r);case"America/Chicago":return b("chicago",r);case"America/Toronto":return b("toronto",r);case"America/Sao_Paulo":return b("sao_paulo",r);case"Europe/London":return b("london",r);case"Europe/Berlin":return b("berlin",r);case"Asia/Bahrain":return b("bahrain",r);case"Asia/Dubai":return b("dubai",r);case"Asia/Ashkhabad":return b("ashkhabad",r);case"Asia/Almaty":return b("almaty",r);case"Asia/Bangkok":return b("bangkok",r);case"Asia/Shanghai":return b("shanghai",r);case"Asia/Tokyo":return b("tokyo",r);case"Australia/Sydney":return b("sydney",r);case"Pacific/Norfolk":return b("norfolk",r)}return e}function Qm(e){return[{key:"Etc/UTC",text:b("utc",e)},{key:"Pacific/Honolulu",text:b("honolulu",e)},{key:"America/Juneau",text:b("juneau",e)},{key:"America/Los_Angeles",text:b("los_angeles",e)},{key:"America/Chicago",text:b("chicago",e)},{key:"America/Toronto",text:b("toronto",e)},{key:"America/Sao_Paulo",text:b("sao_paulo",e)},{key:"Europe/London",text:b("london",e)},{key:"Europe/Berlin",text:b("berlin",e)},{key:"Asia/Bahrain",text:b("bahrain",e)},{key:"Asia/Dubai",text:b("dubai",e)},{key:"Asia/Ashkhabad",text:b("ashkhabad",e)},{key:"Asia/Almaty",text:b("almaty",e)},{key:"Asia/Bangkok",text:b("bangkok",e)},{key:"Asia/Shanghai",text:b("shanghai",e)},{key:"Asia/Tokyo",text:b("tokyo",e)},{key:"Australia/Sydney",text:b("sydney",e)},{key:"Pacific/Norfolk",text:b("norfolk",e)}]}var jm=U('<div style="padding:20px 20px 0 20px">');const Ym=e=>{const[r,i]=G(e.timezone),o=ln(()=>Qm(e.locale));return X(w1,{get title(){return b("timezone",e.locale)},width:320,get buttons(){return[{children:b("confirm",e.locale),onClick:()=>{e.onConfirm(r()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=jm();return Y(s,X(w9,{style:{width:"100%"},get value(){return r().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},n1=e=>{const r=[{key:"solid",text:b("solid",e)},{key:"dashed",text:b("dashed",e)}],i=[{key:[4,4]}],o=[{key:"true",text:!0},{key:"false",text:!1}],s=[{key:1,text:1},{key:2,text:2},{key:3,text:3},{key:4,text:4},{key:5,text:5},{key:6,text:6},{key:7,text:7},{key:8,text:8},{key:9,text:9},{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:13,text:13},{key:14,text:14},{key:15,text:15}],l=[{key:"fill",text:b("fill",e)},{key:"stroke",text:b("stroke",e)},{key:"stroke_fill",text:b("stroke_fill",e)}],u=[{key:"none",text:b("none",e)},{key:"always",text:b("always",e)},{key:"follow_cross",text:b("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],g=[{key:"normal",text:b("Normal",e)}],y=[{key:"Helvetica Neue",text:b("Helvetica Neue",e)}];return{solid_dashed:r,dashed_value:i,size:s,fill_stroke:l,font_family:y,font_size:f,font_weight:g,none_always_followCross:u,true_false:o}},Gm=e=>{const{font_family:r,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:u,none_always_followCross:f}=n1(e);return[{key:"candle.type",text:b("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:b("candle_solid",e)},{key:"candle_stroke",text:b("candle_stroke",e)},{key:"candle_up_stroke",text:b("candle_up_stroke",e)},{key:"candle_down_stroke",text:b("candle_down_stroke",e)},{key:"ohlc",text:b("ohlc",e)},{key:"area",text:b("area",e)},{key:"heikin_ashi",text:b("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:b("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:b("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:b("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:b("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:b("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:b("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:b("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:b("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:b("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:b("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:b("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:b("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:b("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:b("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:b("Pricemark High Font family",e),component:"select",dataSource:r},{key:"candle.priceMark.high.textWeight",text:b("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:b("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:b("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:b("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:b("Pricemark Low Font family",e),component:"select",dataSource:r},{key:"candle.priceMark.low.textWeight",text:b("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:b("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:b("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:b("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:b("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:b("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:b("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:b("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:b("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:b("Pricemark last text style",e),component:"select",dataSource:u},{key:"candle.priceMark.last.text.size",text:b("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:b("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:b("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:b("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:b("Rect",e)},{key:"standard",text:b("Standard",e)}]},{key:"candle.tooltip.rect.position",text:b("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:b("Fixed",e)},{key:"pointer",text:b("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:b("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:b("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:b("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:b("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:b("Tooltip text color",e),component:"color"}]},Hm=e=>{const{fill_stroke:r,font_size:i,font_weight:o,none_always_followCross:s}=n1(e);return[{key:"indicator.ohlc.upColor",text:b("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:b("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:b("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:b("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:b("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:b("Last value mark text style",e),component:"select",dataSource:r},{key:"indicator.lastValueMark.text.size",text:b("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:b("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:b("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:b("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:b("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:b("Standard",e)},{key:"rect",text:b("Rect",e)}]},{key:"indicator.tooltip.showName",text:b("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:b("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:b("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:b("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:b("Tooltip text color",e),component:"color"}]},Vm=e=>{const{font_size:r,size:i,font_weight:o}=n1(e);return[{key:"xAxis.show",text:b("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:b("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:b("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:b("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:b("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:b("Tick text size",e),component:"select",dataSource:r},{key:"xAxis.tickText.weight",text:b("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:b("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:b("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:b("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:b("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:b("Tick line color",e),component:"color"}]},qm=e=>{const{size:r,font_weight:i,font_size:o}=n1(e);return[{key:"yAxis.show",text:b("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:b("Position",e),component:"select",dataSource:[{key:"right",text:b("Right",e)},{key:"left",text:b("Left",e)}]},{key:"yAxis.type",text:b("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:b("normal",e)},{key:"percentage",text:b("percentage",e)},{key:"log",text:b("log",e)}]},{key:"yAxis.inside",text:b("Inside",e),component:"switch"},{key:"yAxis.reverse",text:b("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:b("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:b("Axis line size",e),component:"select",dataSource:r},{key:"yAxis.axisLine.color",text:b("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:b("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:b("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:b("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:b("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:b("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:b("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:b("Tick line size",e),component:"select",dataSource:r},{key:"yAxis.tickLine.length",text:b("Tick line length",e),component:"select",dataSource:r}]},Xm=e=>{const{size:r}=n1(e);return[{key:"grid.show",text:b("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:b("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:b("Horizontal size",e),component:"select",dataSource:r},{key:"grid.horizontal.color",text:b("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:b("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:b("Vertical size",e),component:"select",dataSource:r},{key:"grid.vertical.color",text:b("Vertical color",e),component:"color"}]},Jm=e=>{const{solid_dashed:r,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:u}=n1(e);return[{key:"crosshair.show",text:b("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:b("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:b("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:b("Horizontal Line Style",e),component:"select",dataSource:r},{key:"crosshair.horizontal.line.dashed_value",text:b("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:b("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:b("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:b("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:b("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:b("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:b("Horizontal text weight",e),component:"select",dataSource:u},{key:"crosshair.horizontal.text.color",text:b("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:b("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:b("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:b("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:b("Vertical Line Style",e),component:"select",dataSource:r},{key:"crosshair.vertical.line.size",text:b("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:b("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:b("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:b("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:b("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:b("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:b("Vertical text weight",e),component:"select",dataSource:u},{key:"crosshair.vertical.text.color",text:b("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:b("Vertical text background color",e),component:"color"}]};function A5(e){const{size:r}=n1(e);return[...Gm(e),...Hm(e),...Vm(e),...qm(e),...Xm(e),...Jm(e),{key:"separator.size",text:b("Seperator size",e),component:"select",dataSource:r},{key:"separator.fill",text:b("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:b("Background color",e),component:"color"}]}var eb=U("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),tb=U("<button>"),nb=U("<div class=component><span>");const rb=e=>{const[r,i]=G(e.currentStyles),[o,s]=G(A5(e.locale)),[l,u]=G("candle");sn(()=>{s(A5(e.locale))});const f=(C,_)=>{const $=localStorage.getItem("chartstatedata");let M;$?(M=JSON.parse($),M.styleObj=M.styleObj??{}):M={styleObj:{}};const x=C.key.indexOf(".");x===-1?C.key:C.key.slice(0,x)+""+C.key.slice(x),rr(M.styleObj,C.key,_),localStorage.setItem("chartstatedata",JSON.stringify(M)),Fn(!0);const T={};rr(T,C.key,_),rr(T,C.key,_);const k=ce.utils.clone(r());rr(k,C.key,_),i(k),s(o().map(S=>({...S}))),e.onChange(T)},g=()=>{const C=localStorage.getItem("chartstatedata");let _;C&&(_=JSON.parse(C),_.styleObj&&(_.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(_))),e.onRestoreDefault(o()),e.onClose()},y=[{text:"Candle",key:"candle"},{text:"Indicator",key:"indicator"},{text:"Grid",key:"grid"},{text:"X-Axis",key:"xAxis"},{text:"Y-Axis",key:"yAxis"},{text:"Separator",key:"separator"},{text:"Crosshair",key:"crosshair"}];return X(w1,{get title(){return b("setting",e.locale)},width:640,height:560,get buttons(){return[{children:b("restore_default",e.locale),onClick:()=>{g()}}]},get onClose(){return e.onClose},get children(){var C=eb(),_=C.firstChild,$=_.nextSibling;return Y(_,()=>y.map(M=>(()=>{var x=tb();return x.$$click=()=>u(M.key),Y(x,()=>M.text),Be(()=>Vt(x,`${l()==M.key?"selected":""}`)),x})())),Y($,X(G6,{get each(){return o().filter(M=>M.key.includes(l()))},children:M=>{let x;const T=ce.utils.formatValue(r(),M.key);switch(M.component){case"select":{x=X(w9,{style:{width:"120px"},get value(){return b(T,e.locale)},get dataSource(){return M.dataSource},onSelected:k=>{const S=k.key;f(M,S)}});break}case"switch":{const k=!!T;x=X(Yh,{open:k,onChange:()=>{f(M,!k)}});break}case"color":{x=X(Hp,{style:{width:"120px"},value:T,reactiveChange:!1,onChange:k=>{f(M,k)}});break}}return(()=>{var k=nb(),S=k.firstChild;return Y(S,()=>M.text),Y(k,x,null),k})()}})),C}})};Rt(["click"]);var ib=U('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const ob=e=>X(w1,{get title(){return b("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:b("save",e.locale),onClick:()=>{const r=document.createElement("a");r.download="screenshot",r.href=e.url,document.body.appendChild(r),r.click(),r.remove()}}]},get onClose(){return e.onClose},get children(){var r=ib(),i=r.firstChild;return Be(()=>bt(i,"src",e.url)),r}}),ab={AO:[{paramNameKey:"params_1",precision:0,min:1,default:5},{paramNameKey:"params_2",precision:0,min:1,default:34}],BIAS:[{paramNameKey:"BIAS1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"BIAS2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"BIAS3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"BIAS4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"BIAS5",precision:0,min:1,styleKey:"lines[4].color"}],BOLL:[{paramNameKey:"period",precision:0,min:1,default:20},{paramNameKey:"standard_deviation",precision:2,min:1,default:2}],BRAR:[{paramNameKey:"period",precision:0,min:1,default:26}],BBI:[{paramNameKey:"params_1",precision:0,min:1,default:3},{paramNameKey:"params_2",precision:0,min:1,default:6},{paramNameKey:"params_3",precision:0,min:1,default:12},{paramNameKey:"params_4",precision:0,min:1,default:24}],CCI:[{paramNameKey:"params_1",precision:0,min:1,default:20}],CR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:10},{paramNameKey:"params_3",precision:0,min:1,default:20},{paramNameKey:"params_4",precision:0,min:1,default:40},{paramNameKey:"params_5",precision:0,min:1,default:60}],DMA:[{paramNameKey:"params_1",precision:0,min:1,default:10},{paramNameKey:"params_2",precision:0,min:1,default:50},{paramNameKey:"params_3",precision:0,min:1,default:10}],DMI:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:6}],EMV:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:9}],EMA:[{paramNameKey:"EMA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"EMA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"EMA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"EMA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"EMA5",precision:0,min:1,styleKey:"lines[4].color"}],MTM:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],MA:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],MACD:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:9}],OBV:[{paramNameKey:"params_1",precision:0,min:1,default:30}],PVT:[],PSY:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],ROC:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],RSI:[{paramNameKey:"RSI1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"RSI2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"RSI3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"RSI4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"RSI5",precision:0,min:1,styleKey:"lines[4].color"}],SMA:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:2}],KDJ:[{paramNameKey:"params_1",precision:0,min:1,default:9},{paramNameKey:"params_2",precision:0,min:1,default:3},{paramNameKey:"params_3",precision:0,min:1,default:3}],SAR:[{paramNameKey:"params_1",precision:0,min:1,default:2},{paramNameKey:"params_2",precision:0,min:1,default:2},{paramNameKey:"params_3",precision:0,min:1,default:20}],TRIX:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:9}],VOL:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],VR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:6}],WR:[{paramNameKey:"WR1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"WR2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"WR3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"WR4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"WR5",precision:0,min:1,styleKey:"lines[4].color"}]};var sb=U("<div class=klinecharts-pro-indicator-setting-modal-content>"),lb=U("<div class=param-row><span>");const cb=e=>{const[r,i]=G(ce.utils.clone(e.params.calcParams)),o=s=>ab[s];return X(w1,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:b("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];ce.utils.clone(r()).forEach((u,f)=>{!ce.utils.isValid(u)||u===""?"default"in s[f]&&l.push(s[f].default):l.push(u)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=sb();return Y(s,()=>o(e.params.indicatorName).map((l,u)=>(()=>{var f=lb(),g=f.firstChild;return Y(g,()=>b(l.paramNameKey,e.locale)),Y(f,X(L9,{style:{width:"200px"},get value(){return r()[u]??""},get precision(){return l.precision},get min(){return l.min},onChange:y=>{const C=ce.utils.clone(r());C[u]=y,i(C)}}),null),f})())),s}})};var ub=U('<div style="margin:10px 20px 0 20px">'),fb=U('<svg viewBox="0 0 1024 1024"><path d="M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z">'),db=U("<img alt=symbol>"),hb=U("<li><div><span>");const gb=e=>{const[r,i]=G(""),[o]=D6(r,e.datafeed.searchSymbols.bind(e.datafeed));return X(w1,{get title(){return b("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=ub();return Y(s,X(L9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return b("symbol_code",e.locale)},get suffix(){return fb()},get value(){return r()},onChange:l=>{const u=`${l}`;i(u)}}),null),Y(s,X(Yr,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var u=hb(),f=u.firstChild,g=f.firstChild;return u.$$click=()=>{e.onSymbolSelected(l),e.onClose()},Y(f,X(ct,{get when(){return l.logo},get children(){var y=db();return Be(()=>bt(y,"src",l.logo)),y}}),g),Y(g,()=>l.shortName??l.ticker,null),Y(g,()=>`${l.name?`(${l.name})`:""}`,null),Y(u,()=>l.exchange??"",null),Be(()=>bt(g,"title",l.name??"")),u})()}),null),s}})};Rt(["click"]);class Qi{constructor(r,i){wt(this,"_chart");wt(this,"_charts",new Map);wt(this,"id");const o=ce.init(r,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(r,i){return new Qi(r,i)}getDom(r,i){return this._chart.getDom(r,i)}getSize(r,i){return this._chart.getSize(r,i)}createIndicator(r,i,o){return this._chart.createIndicator(r,i,o)}getIndicators(r){return this._chart.getIndicators(r)}createOverlay(r){return this._chart.createOverlay(r)}getOverlays(r){return this._chart.getOverlays(r)}setPaneOptions(r){return this._chart.setPaneOptions(r)}getPaneOptions(r){return this._chart.getPaneOptions(r)}scrollByDistance(r,i){return this._chart.scrollByDistance(r,i)}scrollToRealTime(r){return this._chart.scrollToRealTime(r)}scrollToDataIndex(r,i){return this._chart.scrollToDataIndex(r,i)}scrollToTimestamp(r,i){return this._chart.scrollToTimestamp(r,i)}zoomAtCoordinate(r,i,o){return this._chart.zoomAtCoordinate(r,i,o)}zoomAtDataIndex(r,i,o){return this._chart.zoomAtDataIndex(r,i,o)}zoomAtTimestamp(r,i,o){return this._chart.zoomAtTimestamp(r,i,o)}convertToPixel(r,i){return this._chart.convertToPixel(r,i)}convertFromPixel(r,i){return this._chart.convertFromPixel(r,i)}executeAction(r,i){return this._chart.executeAction(r,i)}subscribeAction(r,i){return this._chart.subscribeAction(r,i)}unsubscribeAction(r,i){return this._chart.unsubscribeAction(r,i)}getConvertPictureUrl(r,i,o){return this._chart.getConvertPictureUrl(r,i,o)}resize(){return this._chart.resize()}setStyles(r){return this._chart.setStyles(r)}getStyles(){return this._chart.getStyles()}setFormatter(r){return this._chart.setFormatter(r)}getFormatter(){return this._chart.getFormatter()}setLocale(r){return this._chart.setLocale(r)}getLocale(){return this._chart.getLocale()}setTimezone(r){return this._chart.setTimezone(r)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(r){return this._chart.setThousandsSeparator(r)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(r){return this._chart.setDecimalFold(r)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(r){return this._chart.setSymbol(r)}getSymbol(){return this._chart.getSymbol()}setPeriod(r){return this._chart.setPeriod(r)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(r){return this._chart.setOffsetRightDistance(r)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(r){return this._chart.setMaxOffsetLeftDistance(r)}setMaxOffsetRightDistance(r){return this._chart.setMaxOffsetRightDistance(r)}setLeftMinVisibleBarCount(r){return this._chart.setLeftMinVisibleBarCount(r)}setRightMinVisibleBarCount(r){return this._chart.setRightMinVisibleBarCount(r)}setBarSpace(r){return this._chart.setBarSpace(r)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(r){return this._chart.setDataLoader(r)}overrideIndicator(r){return this._chart.overrideIndicator(r)}removeIndicator(r){return this._chart.removeIndicator(r)}overrideOverlay(r){return this._chart.overrideOverlay(r)}removeOverlay(r){return this._chart.removeOverlay(r)}setZoomEnabled(r){return this._chart.setZoomEnabled(r)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(r){this._chart.setZoomAnchor(r)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(r){return this._chart.setScrollEnabled(r)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(r){const i=this._charts.get(r);return i&&(this._chart=i),this}chartById(r){return this._charts.get(r)}getOverlayById(r){return this._chart.getOverlays({id:r})[0]??null}createOrderLine(r){const i=this._chart.getDataList(),o=this._chart.createOverlay({name:"orderLine",paneId:"candle_pane",points:[{timestamp:i[i.length-40].timestamp,value:i[i.length-40].close}]});return o?this._chart.getOverlays({id:o,paneId:"candle_pane"})[0]:null}createOrderLines(r,i){const o=[],s=this._chart.getDataList(),l=Math.floor(s.length/(r+1));for(let g=1;g<=r;g++)o.push({timestamp:s[l*g].timestamp,value:s[l*g].close});const u={name:"orderLine",paneId:"candle_pane",points:o},f=this._chart.createOverlay(u);return!f||la.isArray(f)&&f.length===0?[]:f.map(g=>this._chart.getOverlays({id:g,paneId:"canlde_pane"})[0])}}const pb=e=>{const r=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return r.forEach(o=>{delete i[o]}),i},yb=e=>{const r=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return r.forEach(o=>{delete i[o]}),i},mb=()=>{const e=(x,T,k)=>{const S=localStorage.getItem("chartstatedata");let D;const F=pb(Xe.cloneDeep(x));return S?(D=JSON.parse(S),D.indicators?D.indicators.find(P=>{var z,q;return((z=P.value)==null?void 0:z.name)===F.name&&((q=P.paneOptions)==null?void 0:q.id)===(k==null?void 0:k.id)})?D.indicators=D.indicators.map(P=>{var z;return((z=P.value)==null?void 0:z.id)!==F.id?P:{value:F,isStack:T,paneOptions:k}}):D.indicators.push({value:F,isStack:T,paneOptions:k}):D.indicators=[{value:F,isStack:T,paneOptions:k}]):D={indicators:[{value:F,isStack:T,paneOptions:k}]},localStorage.setItem("chartstatedata",JSON.stringify(D)),Fn(!0),!1},r=x=>{const T=localStorage.getItem("chartstatedata");let k;const S=yb(Xe.cloneDeep(x));return T?(k=JSON.parse(T),k.overlays?k.overlays.find(D=>{var F;return((F=D.value)==null?void 0:F.id)===S.id})?k.overlays=k.overlays.map(D=>{var F;return((F=D.value)==null?void 0:F.id)!==S.id?D:{value:S,paneId:x.paneId}}):k.overlays.push({value:S,paneId:x.paneId}):k.overlays=[{value:x,paneId:x.paneId}]):k={overlays:[{value:S,paneId:x.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(k)),Fn(!0),!1};function i(x,T,k,S,D=!1){T==="VOL"&&(S={axis:{gap:{bottom:2}},...S});const F=(S==null?void 0:S.id)==="candle_pane",P=x.createIndicator({name:T,createTooltipDataSource:z=>{const Z=z.chart.getStyles().indicator.tooltip.features,O=[];return F&&O.push(z.indicator.visible?Z[1]:Z[0]),O.push(Z[2]),O.push(Z[3]),{features:O}}},k,S)??null;if(P&&D){const z=x==null?void 0:x.getIndicators({id:P,name:T})[0];z&&e(z,k,{id:P})}return P}const o=(x,T,k=!1)=>{var P,z,q;const S=(P=ne())==null?void 0:P.createOverlay({...x,paneId:T});if(!S)return!1;const D=(z=ne())==null?void 0:z.getOverlays({id:S})[0],F=Z=>(Z.preventDefault&&Z.preventDefault(),s(Z.overlay.id),!0);D&&(x.properties&&D.setProperties(x.properties,S),(q=ne())==null||q.overrideOverlay({id:D.id,onDrawEnd:Z=>["measure"].includes(D.name)?!1:r(Z.overlay),onPressedMoveEnd:Z=>["measure"].includes(D.name)?!1:r(Z.overlay),onSelected:Z=>r0(Z.overlay),onDeselected:()=>r0(null),onRightClick:D.onRightClick?D.onRightClick:F,onDoubleClick:D.onDoubleClick?D.onDoubleClick:F}),k||r(D))},s=x=>{var k,S,D;const T=localStorage.getItem("chartstatedata");if(T){let F=JSON.parse(T);F.overlays=(k=F.overlays)==null?void 0:k.filter(P=>{var z;return((z=P.value)==null?void 0:z.id)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0)}(S=ne())==null||S.removeOverlay({id:x}),((D=iy())==null?void 0:D.id)===x&&r0(null)},l=(x,T)=>{var S,D;const k=localStorage.getItem("chartstatedata");if(k){let F=JSON.parse(k);F.overlays=(S=F.overlays)==null?void 0:S.map(P=>{var z;return((z=P.value)==null?void 0:z.id)===x&&(P.value={...P.value,...T},P.paneId=T.paneId??P.paneId),P}),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0),(D=ne())==null||D.overrideOverlay({...T,id:x})}},u=(x,T)=>{var S,D;const k=localStorage.getItem("chartstatedata");if(k){let F=JSON.parse(k);F.overlays=(S=F.overlays)==null?void 0:S.map(z=>{var q;return((q=z.value)==null?void 0:q.id)===x&&(z.value.properties={...z.value.properties,...T}),z});const P=(D=ne())==null?void 0:D.getOverlayById(x);P&&P.setProperties(T,x),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0)}},f=x=>{const T=[...m5()];x.added?(i(ne(),x.name,!0,{id:"candle_pane"},!0),T.push(x.name)):(C(x.name,"candle_pane"),T.splice(T.indexOf(x.name),1)),b5(T)},g=x=>{const T={..._5()};if(x.added){const k=i(ne(),x.name,!1,void 0,!0);k&&(T[x.name]=k)}else x.paneId&&(C(x.name,x.paneId),delete T[x.name]);v5(T)},y=(x,T)=>{var S,D;const k=localStorage.getItem("chartstatedata");if(k){let F=JSON.parse(k);F.indicators=(S=F.indicators)==null?void 0:S.map(P=>{var z;return((z=P.value)==null?void 0:z.name)===x.indicatorName&&(P.value.name=x.indicatorName,P.value.calcParams=T,P.paneOptions.id=x.paneId),P}),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0),(D=ne())==null||D.overrideIndicator({name:x.indicatorName,calcParams:T,paneId:x.paneId})}},C=(x,T,k)=>{var D,F;const S=localStorage.getItem("chartstatedata");if((D=ne())==null||D.removeIndicator({id:x,paneId:k,name:T}),S){let P=JSON.parse(S);P.indicators=(F=P.indicators)==null?void 0:F.filter(z=>{var q,Z;return((q=z.paneOptions)==null?void 0:q.id)!==k&&((Z=z.value)==null?void 0:Z.name)!==T}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Fn(!0)}},_=(x,T)=>{document.documentElement.style.setProperty(x,T,"important");const k=document.querySelector("[data-theme]");k&&k.style.setProperty(x,T,"important")},$=x=>{var T;x.background&&_("--klinecharts-pro-pane-background",x.background),x.backgroundGradientStartColor&&_("--klinecharts-pro-pane-background-gradient-start",x.backgroundGradientStartColor),x.backgroundGradientEndColor&&_("--klinecharts-pro-pane-background-gradient-end",x.backgroundGradientEndColor),(T=x.separator)!=null&&T.color&&_("--klinecharts-pro-border-color",x.separator.color)};return{createIndicator:i,modifyIndicator:y,popIndicator:C,syncIndiObject:e,syncObject:r,pushOverlay:o,modifyOverlay:l,modifyOverlayProperties:u,popOverlay:s,pushMainIndicator:f,pushSubIndicator:g,restoreChartState:async x=>{const T=D=>{const F=JSON.parse(D);F.figures,F.overlays&&F.overlays.forEach(P=>{o(P.value,P.paneId,!0)}),F.indicators&&setTimeout(()=>{const P=[...m5()],z={..._5};F.indicators.forEach(q=>{var Z,O,W;q.value&&((Z=ne())==null||Z.createIndicator(q.value,q.isStack,q.paneOptions),((O=q.paneOptions)==null?void 0:O.id)==="candle_pane"?P.push(q.value.name):z[q.value.name]=(W=q.paneOptions)==null?void 0:W.id)}),b5(P),v5(z)},500)},k=localStorage.getItem("chartstatedata");k&&T(k);const S=JSON.parse(k)??{};x&&($(x),S.styleObj||(S.styleObj=x,localStorage.setItem("chartstatedata",JSON.stringify(S)))),S.styleObj&&y5(S.styleObj)}}};var bb=U('<i class="icon-close klinecharts-pro-load-icon">'),_b=U("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>");const{createIndicator:i0,pushOverlay:vb,restoreChartState:Cb}=mb(),xb=e=>{let r,i;const[o,s]=G(e.theme),[l,u]=G(e.locale),[f,g]=G(!1),[y,C]=G([...e.mainIndicators]),[_,$]=G({}),[M,x]=G(!1),[T,k]=G({key:e.timezone,text:S5(e.timezone,e.locale)}),[S,D]=G(!1),[F,P]=G(),[z,q]=G(""),[Z,O]=G(e.drawingBarVisible),[W,Q]=G(!1),[H,ie]=G({visible:!1,indicatorName:"",paneId:"",calcParams:[]});Ui(e.period),Wi(e.symbol),e.ref({setTheme:s,getTheme:()=>o(),setStyles:y5,getStyles:()=>Zi()??{},setLocale:u,getLocale:()=>l(),setTimezone:N=>{k({key:N,text:S5(e.timezone,l())})},getTimezone:()=>T().key,setSymbol:Wi,getSymbol:()=>t1(),setPeriod:Ui,getPeriod:()=>Rn(),getInstanceApi:()=>ne(),resize:()=>{var N;return(N=ne())==null?void 0:N.resize()},dispose:()=>{}});const J=()=>{var N;(N=ne())==null||N.resize()};return da(()=>{var re,Se,ge,pe,Fe,Le,Ge,Ee,pt,oe;if(window.addEventListener("resize",J),ny(Qi.init(r,{formatter:{formatDate:te=>{switch(Rn().type){case"minute":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"HH:mm"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"hour":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"MM-DD HH:mm"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"month":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"year":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD")}return ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm")}}})),ne()){Jp(e.rootElementId);const te=ne().getDom("candle_pane","main");if(te){let ze=document.createElement("div");if(ze.className="klinecharts-pro-watermark",ce.utils.isString(e.watermark)){const ve=e.watermark.replace(/(^\s*)|(\s*$)/g,"");ze.innerHTML=ve}else ze.appendChild(e.watermark);te.appendChild(ze)}const ae=ne().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",ae==null||ae.appendChild(i),(re=ne())==null||re.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),(Se=ne())==null||Se.setBarSpace(400),(ge=ne())==null||ge.subscribeAction("onCrosshairFeatureClick",ze=>{}),(pe=ne())==null||pe.subscribeAction("onIndicatorTooltipFeatureClick",ze=>{var Lt,zn,wn,Ln,Nn;const ve=ze;switch(ve.feature.id){case"visible":{(Lt=ne())==null||Lt.overrideIndicator({name:ve.indicator.name,visible:!0,paneId:ve.paneId});break}case"invisible":{(zn=ne())==null||zn.overrideIndicator({name:ve.indicator.name,visible:!1,paneId:ve.paneId});break}case"setting":{const je=(wn=ne())==null?void 0:wn.getIndicators({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}).at(0);if(!je)return;ie({visible:!0,indicatorName:ve.indicator.name,paneId:ve.paneId,calcParams:je.calcParams});break}case"close":if(ve.paneId==="candle_pane"){const je=[...y()];(Ln=ne())==null||Ln.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),je.splice(je.indexOf(ve.indicator.name),1),C(je)}else{const je={..._()};(Nn=ne())==null||Nn.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),delete je[ve.indicator.name],$(je)}}}),(Fe=ne())==null||Fe.subscribeAction("onCandleTooltipFeatureClick",ze=>{}),(Le=ne())==null||Le.subscribeAction("onZoom",ze=>{}),(Ge=ne())==null||Ge.subscribeAction("onCrosshairChange",ze=>{}),Cb(e.overrides);const be=t1();be!=null&&be.priceCurrency?(i.innerHTML=be==null?void 0:be.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(Ee=ne())==null||Ee.setSymbol({ticker:be.ticker,pricePrecision:(be==null?void 0:be.pricePrecision)??2,volumePrecision:(be==null?void 0:be.volumePrecision)??0}),(pt=ne())==null||pt.setPeriod(Rn()),(oe=ne())==null||oe.setDataLoader(e.dataloader)}const N=ne();if(N){y().forEach(ae=>{i0(N,ae,!0,{id:"candle_pane"})});const te={};e.subIndicators.forEach(ae=>{const be=i0(N,ae,!0);be&&(te[ae]=be)}),$(te)}}),Mr(()=>{window.removeEventListener("resize",J),ce.dispose(r)}),sn(N=>{var re,Se,ge;if(!e.dataloader.loading){const pe=t1(),Fe=Rn();return(N==null?void 0:N.period.span)!==Fe.span&&(N==null?void 0:N.period.type)!==Fe.type&&((re=ne())==null||re.setPeriod(Fe)),N!==void 0&&((Se=N.symbol)==null?void 0:Se.ticker)!==pe.ticker&&r0(null),(ge=ne())==null||ge.setSymbol({ticker:pe.ticker,pricePrecision:pe.pricePrecision,volumePrecision:pe.volumePrecision}),Mr(()=>{}),{symbol:pe,period:Fe}}return N}),sn(()=>{var Se,ge;const N=o();(Se=ne())==null||Se.setStyles(N);const re=N==="dark"?"#929AA5":"#76808F";(ge=ne())==null||ge.setStyles({indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}})}),sn(()=>{var N;(N=ne())==null||N.setLocale(l())}),sn(()=>{var N;(N=ne())==null||N.setTimezone(T().key)}),sn(()=>{P(Sd(ne().getStyles()))}),sn(()=>{var N;Zi()&&((N=ne())==null||N.setStyles(Zi()))}),[bb(),X(ct,{get when(){return W()},get children(){return X(gb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:N=>{Wi(N)},onClose:()=>{Q(!1)}})}}),X(ct,{get when(){return f()},get children(){return X(Zm,{get locale(){return e.locale},get mainIndicators(){return y()},get subIndicators(){return _()},onClose:()=>{g(!1)},onMainIndicatorChange:N=>{var Se;const re=[...y()];N.added?(i0(ne(),N.name,!0,{id:"candle_pane"}),re.push(N.name)):((Se=ne())==null||Se.removeIndicator({name:N.name,paneId:"candle_pane",id:N.id??void 0}),re.splice(re.indexOf(N.name),1)),C(re)},onSubIndicatorChange:N=>{var Se;const re={..._()};if(N.added){const ge=i0(ne(),N.name);ge&&(re[N.name]=ge)}else N.id&&((Se=ne())==null||Se.removeIndicator({name:N.name,id:N.id}),delete re[N.name]);$(re)}})}}),X(ct,{get when(){return M()},get children(){return X(Ym,{get locale(){return e.locale},get timezone(){return T()},onClose:()=>{x(!1)},onConfirm:k})}}),X(ct,{get when(){return S()},get children(){return X(rb,{get locale(){return e.locale},get currentStyles(){return ce.utils.clone(ne().getStyles())},onClose:()=>{D(!1)},onChange:N=>{var re;(re=ne())==null||re.setStyles(N)},onRestoreDefault:N=>{var Se;const re={};N.forEach(ge=>{const pe=ge.key;rr(re,pe,ce.utils.formatValue(F(),pe))}),(Se=ne())==null||Se.setStyles(re)}})}}),X(ct,{get when(){return z().length>0},get children(){return X(ob,{get locale(){return e.locale},get url(){return z()},onClose:()=>{q("")}})}}),X(ct,{get when(){return H().visible},get children(){return X(cb,{get locale(){return e.locale},get params(){return H()},onClose:()=>{ie({visible:!1,indicatorName:"",paneId:"",calcParams:[]})},onConfirm:N=>{var Se;const re=H();(Se=ne())==null||Se.overrideIndicator({name:re.indicatorName,calcParams:N,paneId:re.paneId})}})}}),X(fy,{get locale(){return e.locale},get symbol(){return t1()},get spread(){return Z()},get period(){return Rn()},get periods(){return e.periods},onMenuClick:async()=>{var N;try{await F6(()=>O(!Z())),(N=ne())==null||N.resize()}catch{}},onSymbolClick:()=>{Q(!W())},onPeriodChange:Ui,onIndicatorClick:()=>{g(N=>!N)},onTimezoneClick:()=>{x(N=>!N)},onSettingClick:()=>{D(N=>!N)},onScreenshotClick:()=>{if(ne()){const N=ne().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");q(N)}}}),(()=>{var N=_b(),re=N.firstChild;Y(N,X(ct,{get when(){return ty()},get children(){return X(x9,{})}}),re),Y(N,X(ct,{get when(){return Z()},get children(){return X(Wm,{get locale(){return e.locale},onDrawingItemClick:ge=>{vb(ge)},onModeChange:ge=>{var pe;(pe=ne())==null||pe.overrideOverlay({mode:ge})},onLockChange:ge=>{var pe;(pe=ne())==null||pe.overrideOverlay({lock:ge})},onVisibleChange:ge=>{var pe;(pe=ne())==null||pe.overrideOverlay({visible:ge})},onRemoveClick:ge=>{var pe;(pe=ne())==null||pe.removeOverlay({groupId:ge})}})}}),re);var Se=r;return typeof Se=="function"?ei(Se,re):r=re,Be(ge=>{var pe=qp(),Fe=e.overrides.backgroundType??"solid",Le=Z();return pe!==ge.e&&bt(N,"data-orders-pane-visible",ge.e=pe),Fe!==ge.t&&bt(re,"data-pane-style",ge.t=Fe),Le!==ge.a&&bt(re,"data-drawing-bar-visible",ge.a=Le),ge},{e:void 0,t:void 0,a:void 0}),N})()]};class wb{constructor(r){wt(this,"_datafeed");wt(this,"_loading");this._datafeed=r,this._loading=!1}async getBars(r){const{type:i,timestamp:o,symbol:s,period:l,callback:u}=r;if(i==="backward"||i==="update"){u([],!1);return}this._loading=!0,p5(!0);const f=o??new Date().getTime();await(async()=>{const y=Rn(),C=t1(),[_]=this.adjustFromTo(y,f,1),[$]=this.adjustFromTo(y,_,500),M=await this._datafeed.getHistoryKLineData(C,y,$,_);u(M,M.length>0),this._loading=!1,p5(!1)})()}subscribeBar(r){const{symbol:i,period:o,callback:s}=r;this._datafeed.subscribe(t1(),Rn(),s)}unsubscribeBar(r){this._datafeed.unsubscribe(t1(),Rn())}searchSymbols(r){return this._datafeed.searchSymbols(r)}get loading(){return this._loading}set loading(r){this._loading=r}adjustFromTo(r,i,o){let s=i,l=s;switch(r.type){case"minute":s-=s%(60*1e3),l=s-o*r.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*r.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*r.span*24*60*60*1e3;break;case"week":{const u=new Date(s),f=u.getDay()||7;u.setHours(0,0,0,0),s=u.getTime()-(f-1)*24*60*60*1e3,l=s-o*r.span*7*24*60*60*1e3;break}case"month":{const u=new Date(s);s=new Date(u.getFullYear(),u.getMonth(),1).getTime();const f=new Date(s-o*r.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const u=new Date(s);s=new Date(u.getFullYear(),0,1).getTime();const f=new Date(s-o*r.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var Lb=U('<svg class=logo viewBox="0 0 80 92"><path d=M28.148808359375,51.7280513671875L22.963588359375,51.7280513671875C21.572648359375002,51.7280513671875,20.445068359375,52.6220613671875,20.445068359375,53.7248813671875L20.445068359375,72.3979013671875C20.445068359375,73.5007013671875,21.572648359375002,74.39470136718751,22.963588359375,74.39470136718751L33.926568359375,74.39470136718751C35.317468359375,74.39470136718751,36.445068359375,73.5007013671875,36.445068359375,72.3979013671875L36.445068359375,53.7248813671875C36.445068359375,52.6220613671875,35.317468359375,51.7280513671875,33.926568359375,51.7280513671875L28.741398359374998,51.7280513671875L28.741398359374998,46.2963223671875C28.741398359374998,46.1665793671875,28.608748359375,46.0614013671875,28.445108359375,46.0614013671875C28.281468359375,46.0614013671875,28.148808359375,46.1665793671875,28.148808359375,46.2963223671875L28.148808359375,51.7280513671875ZM28.741398359374998,74.3948013671875L28.741398359374998,79.82650136718749C28.741398359374998,79.9563013671875,28.608748359375,80.0614013671875,28.445108359375,80.0614013671875C28.281468359375,80.0614013671875,28.148808359375,79.9563013671875,28.148808359375,79.82650136718749L28.148808359375,74.3948013671875L28.741398359374998,74.3948013671875Z></path><path d=M51.148808359374996,44.7280513671875L45.963588359375,44.7280513671875C44.572648359375,44.7280513671875,43.445068359375,45.6220613671875,43.445068359375,46.7248813671875L43.445068359375,65.3979013671875C43.445068359375,66.5007013671875,44.572648359375,67.39470136718751,45.963588359375,67.39470136718751L56.926568359375,67.39470136718751C58.317468359375,67.39470136718751,59.445068359375,66.5007013671875,59.445068359375,65.3979013671875L59.445068359375,46.7248813671875C59.445068359375,45.6220613671875,58.317468359375,44.7280513671875,56.926568359375,44.7280513671875L51.741398359375,44.7280513671875L51.741398359375,39.2963223671875C51.741398359375,39.1665793671875,51.608748359375,39.0614013671875,51.445108359375,39.0614013671875C51.281468359375,39.0614013671875,51.148808359374996,39.1665793671875,51.148808359374996,39.2963223671875L51.148808359374996,44.7280513671875ZM51.741398359375,67.3948013671875L51.741398359375,72.82650136718749C51.741398359375,72.9563013671875,51.608748359375,73.0614013671875,51.445108359375,73.0614013671875C51.281468359375,73.0614013671875,51.148808359374996,72.9563013671875,51.148808359374996,72.82650136718749L51.148808359374996,67.3948013671875L51.741398359375,67.3948013671875Z></path><path d=M17.7274,90.6541C17.5901,90.6541,17.4517,90.6436,17.3121,90.6225C9.93219,89.5095,4.80718,86.7136,2.07787,82.3084C-1.1223,77.1437,0.241766,71.6314,0.56829,70.5137C5.37624,46.647,15.0785,38.4945,21.5025,33.0957C22.9683,31.8633,24.2342,30.7995,25.1676,29.7672C25.4105,29.4984,25.6051,29.2154,25.7556,28.9202C24.7465,29.2231,24.1971,29.4326,24.1703,29.4429C22.908,29.9368,21.4777,29.3247,20.9761,28.076C20.4756,26.8272,21.0897,25.4146,22.352,24.9172C22.5042,24.8571,23.5312,24.4607,25.3073,23.9616C24.087,21.4425,21.7693,18.7949,19.7125,16.6431L19.2819,16.1902C16.2438,12.9776,14.6017,4.80159,14.3036,3.19471C14.1306,2.26212,14.4636,1.30796,15.1814,0.679657C15.8995,0.0512175,16.8976,-0.159672,17.8125,0.123747C22.7731,1.66274,24.2638,1.81255,27.2321,2.11098C28.7357,2.26195,29.83,3.59029,29.6762,5.07662C29.5236,6.56295,28.182,7.64786,26.6784,7.49454C24.4992,7.27569,22.9517,7.09896,20.724,6.56646C21.4493,9.09088,22.3803,11.5427,23.2771,12.4919L23.6876,12.9237C25.3757,14.69,28.9691,18.45,30.7016,22.7299C35.0392,21.9433,40.8791,21.3359,47.7817,21.7249C48.2004,20.7386,48.8054,19.7953,49.5907,18.9135C49.7137,18.7754,49.8498,18.6502,49.9988,18.539C53.6142,15.8508,57.5491,12.857,59.7803,11.0758C58.1028,11.2502,56.1034,11.0278,53.9124,9.70882C53.2439,9.30622,52.5992,8.89427,51.9662,8.48933C48.4668,6.25164,46.497,5.12109,43.4234,5.94853C41.9647,6.34058,40.4622,5.48975,40.0659,4.04789C39.6695,2.60604,40.5296,1.11853,41.9871,0.726471C47.5602,-0.773825,51.4796,1.73271,54.9364,3.9434L54.9364,3.9434C55.5284,4.32176,56.1318,4.70797,56.7564,5.08482C58.3843,6.06556,59.4858,5.76127,61.2899,5.13865C62.3511,4.77234,63.5567,4.35687,64.8675,4.53476C66.3321,4.73254,67.4406,5.56933,67.9103,6.83096C68.7444,9.07333,67.1035,11.5533,65.5797,13.2374C64.6729,14.2394,60.0845,17.7606,56.4519,20.4957C56.9477,20.3369,57.4767,20.2511,58.026,20.2511C59.4281,20.2511,60.6982,20.8102,61.621,21.7153C65.4948,20.6901,67.87,17.9563,67.9033,17.9175C68.78,16.8888,70.3322,16.7577,71.3721,17.6226C72.412,18.4886,72.5457,20.0253,71.6702,21.054C71.5221,21.2286,69.5063,23.5492,66.0787,25.233C69.5399,26.8822,72.9993,29.682,74.1841,34.4145C74.5106,35.7206,73.7062,37.0407,72.3859,37.3638C72.1871,37.4117,71.9884,37.4351,71.792,37.4351C70.687,37.4351,69.6826,36.6932,69.4046,35.5848C68.4378,31.7217,64.8144,29.7431,61.7619,28.7456C60.8298,29.7349,59.5009,30.3535,58.026,30.3535C55.8642,30.3535,54.0162,29.0245,53.2713,27.1474C53.2022,27.138,53.1331,27.1287,53.0642,27.1195C54.232,29.5936,57.0851,31.9259,58.1868,32.665C58.3157,32.7516,58.4423,32.8523,58.5547,32.9599C66.5865,40.6151,72.4887,48.8133,76.0971,57.3287C76.6815,58.7074,76.0249,60.2932,74.6313,60.8702C74.2976,61.01,73.9388,61.082,73.576,61.082C72.5065,61.082,71.4914,60.4582,71.0525,59.4213C67.7577,51.6455,62.331,44.1074,54.9203,37.0116C53.6073,36.1009,48.0984,31.9917,47.2065,26.583C40.9421,26.2679,35.6187,26.8278,31.6725,27.5336C31.6197,29.527,30.9225,31.5172,29.2456,33.3731C28.0614,34.6827,26.5968,35.915,25.0446,37.2188C21.9414,39.8269,18.2648,42.9169,14.8104,48.1192C11.356,53.3215,8.12389,60.6361,5.9098,71.6934C5.88732,71.8035,5.85893,71.9123,5.82344,72.0188C5.81634,72.041,4.57886,76.0413,6.77344,79.5289C8.6332,82.4828,12.4557,84.4139,18.1367,85.2705C19.6297,85.4953,20.6566,86.8762,20.4295,88.3532C20.2213,89.6944,19.0559,90.6541,17.7274,90.6541ZM35.1195,7.03101C33.3502,7.03101,31.9158,5.61208,31.9158,3.86173C31.9158,2.11139,33.3502,0.69245,35.1195,0.69245C36.8889,0.69245,38.3233,2.11139,38.3233,3.86173C38.3233,5.61208,36.8889,7.03101,35.1195,7.03101ZM57.6848,23.1892L58.414,24.4754C58.8984,24.3623,59.3923,24.3435,59.8644,24.4203C60.2191,24.5005,60.5087,24.7182,60.6663,25.0229C60.8636,25.3394,60.8993,25.7346,60.7646,26.1094C60.5988,26.5176,60.2972,26.8749,59.9085,27.1235L60.31,27.8316L59.7886,28.1294L59.3994,27.443C58.9257,27.7175,58.399,27.883,57.8664,27.9247L57.3744,27.0569C57.6378,27.0741,57.9071,27.048,58.1704,26.9797C58.4501,26.9251,58.7239,26.8323,58.9829,26.7044L58.2801,25.4647C57.8047,25.5877,57.3167,25.6065,56.8549,25.5197C56.4913,25.4263,56.196,25.1971,56.0328,24.8814C55.8433,24.5561,55.8127,24.1572,55.9484,23.7789C56.088,23.373,56.3763,23.0149,56.7584,22.7726L56.4166,22.1699L56.938,21.8721L57.2727,22.4625C57.6615,22.2376,58.0888,22.0901,58.5254,22.0301L59.0042,22.8746C58.5548,22.8828,58.103,22.9906,57.6848,23.1892ZM56.9319,24.2961Q57.1278,24.6417,57.7863,24.5856L57.1695,23.4978Q56.6982,23.884,56.9319,24.2961ZM58.9077,25.3462L59.4981,26.3875L59.499,26.3891Q59.9965,26.0045,59.7628,25.5923Q59.573,25.2576,58.9077,25.3462ZM73.2212,66.5065C73.2212,68.2569,74.6555,69.6758,76.4249,69.6758C78.1943,69.6758,79.6286,68.2569,79.6286,66.5065C79.6286,64.7562,78.1943,63.3372,76.4249,63.3372C74.6555,63.3372,73.2212,64.7562,73.2212,66.5065ZM35.9465,91.8045C35.0734,91.8045,34.2038,91.7987,33.3378,91.7858C31.827,91.7636,30.6203,90.5359,30.6428,89.0402C30.6653,87.5457,31.9158,86.3297,33.4183,86.3742C49.6344,86.6059,65.7512,84.6175,67.6134,84.037C72.1953,82.4184,74.5295,79.3603,74.5295,74.9575C74.5295,73.463,75.754,72.2517,77.2648,72.2517C78.7755,72.2517,80,73.463,80,74.9575C80,81.5992,76.148,86.7686,69.4317,89.142C67.0041,89.9999,51.0955,91.8046,35.9465,91.8045ZM25.2731,92C23.5037,92,22.0693,90.5811,22.0693,88.8307C22.0693,87.0804,23.5037,85.6615,25.2731,85.6615C27.0424,85.6615,28.4768,87.0804,28.4768,88.8307C28.4768,90.5811,27.0424,92,25.2731,92Z>');const $b=Lb();class kb{constructor(r){wt(this,"_container");wt(this,"_chartApi",null);if(ce.utils.isString(r.container)){if(this._container=document.getElementById(r.container),!this._container)throw new Error("Container is null")}else this._container=r.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",r.theme??"light");const i=new wb(r.datafeed);V6(()=>{const o=this;return X(xb,{ref:s=>{o._chartApi=s},get watermark(){return r.watermark??$b},get theme(){return r.theme??"light"},get locale(){return r.locale??"zh-CN"},get drawingBarVisible(){return r.drawingBarVisible??!0},get orderPanelVisible(){return r.orderPanelVisible??!1},get symbol(){return r.symbol},get period(){return r.period},get periods(){return r.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return r.overrides??{}},get timezone(){return r.timezone??"Etc/UTC"},get mainIndicators(){return r.mainIndicators??["MA"]},get subIndicators(){return r.subIndicators??["VOL"]},get dataTimestamp(){return r.dataTimestamp??new Date().getTime()},get rootElementId(){var s;return r.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&ce.dispose(this._container),this._container=null,this._chartApi=null}setTheme(r){var i;(i=this._container)==null||i.setAttribute("data-theme",r),this._chartApi.setTheme(r)}getTheme(){return this._chartApi.getTheme()}setStyles(r){this._chartApi.setStyles(r)}getStyles(){return this._chartApi.getStyles()}setLocale(r){this._chartApi.setLocale(r)}getLocale(){return this._chartApi.getLocale()}setTimezone(r){this._chartApi.setTimezone(r)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(r){this._chartApi.setSymbol(r)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(r){this._chartApi.setPeriod(r)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return ne()}resize(){ne().resize()}dispose(){this.destroy()}}const BT="";k6.forEach(e=>{ce.registerOverlay(e)}),lt.DefaultDatafeed=S6,lt.DefaultOrderController=A6,lt.DummyOrderController=M6,lt.KLineChartPro=kb,lt.loadLocales=Vp,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})});
|
|
39
|
+
*/const U9=.027,vp=5e-4,Cp=.1,Z9=1.14,Xr=.022,Q9=1.414,xp=(e,r)=>{e=new K(e),r=new K(r),e.alpha()<1&&(e=k1(r,e,e.alpha(),"rgb"));const i=j9(...e.rgb()),o=j9(...r.rgb()),s=i>=Xr?i:i+Math.pow(Xr-i,Q9),l=o>=Xr?o:o+Math.pow(Xr-o,Q9),u=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),g=Math.abs(l-s)<vp?0:s<l?u*Z9:f*Z9;return(Math.abs(g)<Cp?0:g>0?g-U9:g+U9)*100};function j9(e,r,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Cn,pow:tt,min:wp,max:Lp,atan2:Y9,abs:G9,cos:Jr,sin:H9,exp:$p,PI:V9}=Math;function kp(e,r,i=1,o=1,s=1){var l=function(pt){return 360*pt/(2*V9)},u=function(pt){return 2*V9*pt/360};e=new K(e),r=new K(r);const[f,g,y]=Array.from(e.lab()),[C,_,$]=Array.from(r.lab()),M=(f+C)/2,x=Cn(tt(g,2)+tt(y,2)),T=Cn(tt(_,2)+tt($,2)),k=(x+T)/2,S=.5*(1-Cn(tt(k,7)/(tt(k,7)+tt(25,7)))),D=g*(1+S),F=_*(1+S),P=Cn(tt(D,2)+tt(y,2)),z=Cn(tt(F,2)+tt($,2)),q=(P+z)/2,Z=l(Y9(y,D)),O=l(Y9($,F)),W=Z>=0?Z:Z+360,Q=O>=0?O:O+360,H=G9(W-Q)>180?(W+Q+360)/2:(W+Q)/2,ie=1-.17*Jr(u(H-30))+.24*Jr(u(2*H))+.32*Jr(u(3*H+6))-.2*Jr(u(4*H-63));let J=Q-W;J=G9(J)<=180?J:Q<=W?J+360:J-360,J=2*Cn(P*z)*H9(u(J)/2);const N=C-f,re=z-P,Se=1+.015*tt(M-50,2)/Cn(20+tt(M-50,2)),ge=1+.045*q,pe=1+.015*q*ie,Fe=30*$p(-tt((H-275)/25,2)),Ge=-(2*Cn(tt(q,7)/(tt(q,7)+tt(25,7))))*H9(2*u(Fe)),Ee=Cn(tt(N/(i*Se),2)+tt(re/(o*ge),2)+tt(J/(s*pe),2)+Ge*(re/(o*ge))*(J/(s*pe)));return Lp(0,wp(100,Ee))}function Sp(e,r,i="lab"){e=new K(e),r=new K(r);const o=e.get(i),s=r.get(i);let l=0;for(let u in o){const f=(o[u]||0)-(s[u]||0);l+=f*f}return Math.sqrt(l)}const Ap=(...e)=>{try{return new K(...e),!0}catch{return!1}},Mp={cool(){return qr([de.hsl(180,1,.9),de.hsl(250,.7,.4)])},hot(){return qr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Ri={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},q9=Object.keys(Ri),X9=new Map(q9.map(e=>[e.toLowerCase(),e])),Tp=typeof Proxy=="function"?new Proxy(Ri,{get(e,r){const i=r.toLowerCase();if(X9.has(i))return e[X9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(q9)}}):Ri,Pp=(...e)=>{e=me(e,"cmyk");const[r,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[r>=1?0:255*(1-r)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:J9}=Math,Ip=(...e)=>{let[r,i,o]=me(e,"rgb");r=r/255,i=i/255,o=o/255;const s=1-J9(r,J9(i,o)),l=s<1?1/(1-s):0,u=(1-r-s)*l,f=(1-i-s)*l,g=(1-o-s)*l;return[u,f,g,s]};K.prototype.cmyk=function(){return Ip(this._rgb)},Object.assign(de,{cmyk:(...e)=>new K(...e,"cmyk")}),he.format.cmyk=Pp,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),we(e)==="array"&&e.length===4)return"cmyk"}});const Op=(...e)=>{const r=me(e,"hsla");let i=L1(e)||"lsa";return r[0]=Ft(r[0]||0)+"deg",r[1]=Ft(r[1]*100)+"%",r[2]=Ft(r[2]*100)+"%",i==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),i="hsla"):r.length=3,`${i.substr(0,3)}(${r.join(" ")})`},Bp=(...e)=>{const r=me(e,"lab");let i=L1(e)||"lab";return r[0]=Ft(r[0])+"%",r[1]=Ft(r[1]),r[2]=Ft(r[2]),i==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},Ep=(...e)=>{const r=me(e,"lch");let i=L1(e)||"lab";return r[0]=Ft(r[0])+"%",r[1]=Ft(r[1]),r[2]=isNaN(r[2])?"none":Ft(r[2])+"deg",i==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},Dp=(...e)=>{const r=me(e,"lab");return r[0]=Ft(r[0]*100)+"%",r[1]=Ci(r[1]),r[2]=Ci(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},e5=(...e)=>{const[r,i,o,...s]=me(e,"rgb"),[l,u,f]=Oi(r,i,o),[g,y,C]=B9(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]},Rp=(...e)=>{const r=me(e,"lch");return r[0]=Ft(r[0]*100)+"%",r[1]=Ci(r[1]),r[2]=isNaN(r[2])?"none":Ft(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:Fi}=Math,Fp=(...e)=>{const r=me(e,"rgba");let i=L1(e)||"rgb";if(i.substr(0,3)==="hsl")return Op(D9(r),i);if(i.substr(0,3)==="lab"){const o=ir();vn("d50");const s=Bp($i(r),i);return vn(o),s}if(i.substr(0,3)==="lch"){const o=ir();vn("d50");const s=Ep(Mi(r),i);return vn(o),s}return i.substr(0,5)==="oklab"?Dp(Oi(r)):i.substr(0,5)==="oklch"?Rp(e5(r)):(r[0]=Fi(r[0]),r[1]=Fi(r[1]),r[2]=Fi(r[2]),(i==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),i="rgba"),`${i.substr(0,3)}(${r.slice(0,i==="rgb"?3:4).join(" ")})`)},t5=(...e)=>{e=me(e,"lch");const[r,i,o,...s]=e,[l,u,f]=O9(r,i,o),[g,y,C]=Ii(l,u,f);return[g,y,C,...s.length>0&&s[0]<1?[s[0]]:[]]},xn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Jt=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,e0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,zt=/\s*/.source,T1=/\s+/.source,zi=/\s*,\s*/.source,t0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,P1=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,n5=new RegExp("^rgba?\\("+zt+[xn,xn,xn].join(T1)+P1+"\\)$"),r5=new RegExp("^rgb\\("+zt+[xn,xn,xn].join(zi)+zt+"\\)$"),i5=new RegExp("^rgba\\("+zt+[xn,xn,xn,Jt].join(zi)+zt+"\\)$"),o5=new RegExp("^hsla?\\("+zt+[t0,e0,e0].join(T1)+P1+"\\)$"),a5=new RegExp("^hsl?\\("+zt+[t0,e0,e0].join(zi)+zt+"\\)$"),s5=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,l5=new RegExp("^lab\\("+zt+[Jt,Jt,Jt].join(T1)+P1+"\\)$"),c5=new RegExp("^lch\\("+zt+[Jt,Jt,t0].join(T1)+P1+"\\)$"),u5=new RegExp("^oklab\\("+zt+[Jt,Jt,Jt].join(T1)+P1+"\\)$"),f5=new RegExp("^oklch\\("+zt+[Jt,Jt,t0].join(T1)+P1+"\\)$"),{round:d5}=Math,I1=e=>e.map((r,i)=>i<=2?e1(d5(r),0,255):r),nt=(e,r=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(i-r):e=r+e*(i-r)),+e),_t=(e,r)=>e==="none"?r:e,Ni=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(he.format.named)try{return he.format.named(e)}catch{}if((r=e.match(n5))||(r=e.match(r5))){let i=r.slice(1,4);for(let s=0;s<3;s++)i[s]=+nt(_t(i[s],0),0,255);i=I1(i);const o=r[4]!==void 0?+nt(r[4],0,1):1;return i[3]=o,i}if(r=e.match(i5)){const i=r.slice(1,5);for(let o=0;o<4;o++)i[o]=+nt(i[o],0,255);return i}if((r=e.match(o5))||(r=e.match(a5))){const i=r.slice(1,4);i[0]=+_t(i[0].replace("deg",""),0),i[1]=+nt(_t(i[1],0),0,100)*.01,i[2]=+nt(_t(i[2],0),0,100)*.01;const o=I1(Pi(i)),s=r[4]!==void 0?+nt(r[4],0,1):1;return o[3]=s,o}if(r=e.match(s5)){const i=r.slice(1,4);i[1]*=.01,i[2]*=.01;const o=Pi(i);for(let s=0;s<3;s++)o[s]=d5(o[s]);return o[3]=+r[4],o}if(r=e.match(l5)){const i=r.slice(1,4);i[0]=nt(_t(i[0],0),0,100),i[1]=nt(_t(i[1],0),-125,125,!0),i[2]=nt(_t(i[2],0),-125,125,!0);const o=ir();vn("d50");const s=I1(wi(i));vn(o);const l=r[4]!==void 0?+nt(r[4],0,1):1;return s[3]=l,s}if(r=e.match(c5)){const i=r.slice(1,4);i[0]=nt(i[0],0,100),i[1]=nt(_t(i[1],0),0,150,!1),i[2]=+_t(i[2].replace("deg",""),0);const o=ir();vn("d50");const s=I1(Ai(i));vn(o);const l=r[4]!==void 0?+nt(r[4],0,1):1;return s[3]=l,s}if(r=e.match(u5)){const i=r.slice(1,4);i[0]=nt(_t(i[0],0),0,1),i[1]=nt(_t(i[1],0),-.4,.4,!0),i[2]=nt(_t(i[2],0),-.4,.4,!0);const o=I1(Ii(i)),s=r[4]!==void 0?+nt(r[4],0,1):1;return o[3]=s,o}if(r=e.match(f5)){const i=r.slice(1,4);i[0]=nt(_t(i[0],0),0,1),i[1]=nt(_t(i[1],0),0,.4,!1),i[2]=+_t(i[2].replace("deg",""),0);const o=I1(t5(i)),s=r[4]!==void 0?+nt(r[4],0,1):1;return o[3]=s,o}};Ni.test=e=>n5.test(e)||o5.test(e)||l5.test(e)||c5.test(e)||u5.test(e)||f5.test(e)||r5.test(e)||i5.test(e)||a5.test(e)||s5.test(e)||e==="transparent",K.prototype.css=function(e){return Fp(this._rgb,e)};const zp=(...e)=>new K(...e,"css");de.css=zp,he.format.css=Ni,he.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&we(e)==="string"&&Ni.test(e))return"css"}}),he.format.gl=(...e)=>{const r=me(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const Np=(...e)=>new K(...e,"gl");de.gl=Np,K.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},K.prototype.hex=function(e){return T9(this._rgb,e)};const Kp=(...e)=>new K(...e,"hex");de.hex=Kp,he.format.hex=M9,he.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&we(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:n0}=Math,h5=e=>{const r=e/100;let i,o,s;return r<66?(i=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*n0(o),s=r<20?0:-254.76935184120902+.8274096064007395*(s=r-10)+115.67994401066147*n0(s)):(i=351.97690566805693+.114206453784165*(i=r-55)-40.25366309332127*n0(i),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*n0(o),s=255),[i,o,s,1]},{round:Wp}=Math,Up=(...e)=>{const r=me(e,"rgb"),i=r[0],o=r[2];let s=1e3,l=4e4;const u=.4;let f;for(;l-s>u;){f=(l+s)*.5;const g=h5(f);g[2]/g[0]>=o/i?l=f:s=f}return Wp(f)};K.prototype.temp=K.prototype.kelvin=K.prototype.temperature=function(){return Up(this._rgb)};const Ki=(...e)=>new K(...e,"temp");Object.assign(de,{temp:Ki,kelvin:Ki,temperature:Ki}),he.format.temp=he.format.kelvin=he.format.temperature=h5,K.prototype.oklch=function(){return e5(this._rgb)},Object.assign(de,{oklch:(...e)=>new K(...e,"oklch")}),he.format.oklch=t5,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),we(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(de,{analyze:K9,average:Yg,bezier:Jg,blend:Xt,brewer:Tp,Color:K,colors:$1,contrast:_p,contrastAPCA:xp,cubehelix:fp,deltaE:kp,distance:Sp,input:he,interpolate:k1,limits:W9,mix:k1,random:pp,scale:qr,scales:Mp,valid:Ap});var Zp=U("<div tabindex=0><div class=selector-container><i class=arrow></i></div><div class=drop-down-container style=left:50%;top:20%><div class=split_line></div><div class=range_div><input class=range type=range min=1 max=100><p>%</p></div><div class=split_line></div><div class=submit><span class=cancel>Cancel</span><span>Ok"),Qp=U("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),jp=U("<div class=each_line>"),Yp=U("<div>"),Gp=U("<div class=each_line style=display:flex;align-items:center;gap:8px><div style=width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.04);cursor:pointer><span style=font-size:18px;line-height:1;color:var(--klinecharts-pro-text-color,#fff)>+"),Hp=U('<div style=display:flex;flex-direction:column;gap:8px;padding:6px;width:260px><div style=display:flex;gap:8px;align-items:center><div></div><input style="flex:1;padding:6px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:transparent;color:inherit"></div><div style="width:220px;height:140px;border-radius:6px;position:relative;touch-action:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.2)"><div style=position:absolute;inset:0;borderRadius:6px></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to top, #ffffff, rgba(255,255,255,0));mixBlendMode:overlay;opacity:0.6"></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to bottom, rgba(0,0,0,0), #000);opacity:0.6"></div><div style="position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;borderRadius:50%;boxShadow:0 0 0 2px rgba(255,255,255,0.9);border:1px solid rgba(0,0,0,0.6)"></div></div><div style=display:flex;align-items:center;gap:8px><input type=range min=0 max=360 style="flex:1;height:10px;background:linear-gradient(90deg, red 0%, yellow 17%, lime 33%, cyan 50%, blue 67%, magenta 83%, red 100%);border-radius:6px;padding:0"><span style=width:38px;text-align:center></span></div><div style=display:flex;gap:8px;justify-content:flex-end><button class=cancel>Cancel</button><button class=ok>Add');const Vp=e=>{const r=String(e.value).includes("rgba")?de(String(e.value)).alpha()*100:100,[i,o]=G(!1),[s,l]=G(r),[u,f]=G(e.value),[g,y]=G(e.value),[C,_]=G(!1),[$,M]=G(!1),[x,T]=G(e.value??"#000000"),[k,S]=G(0),[D,F]=G(1),[P,z]=G(.5),[q,Z]=G(!1),O=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],W=oe=>{try{return de(oe).hex()}catch{return String(oe||"#000000")}},Q=oe=>{const te=W(oe),[ae,be,ze]=de(te).hsl();S(Number.isFinite(ae)?Math.round(ae):0),F(Number.isFinite(be)?be:1),z(Number.isFinite(ze)?ze:.5),T(te)},H=()=>{o(!1),M(!1)},ie=()=>{var oe;f(e.value),y(e.value),(oe=e.onChange)==null||oe.call(e,e.value),H()},J=oe=>{var be;f(oe);const te=s()/100,ae=de(oe).alpha(te).css();y(ae),(e.reactiveChange??!0)&&((be=e.onChange)==null||be.call(e,ae))},N=()=>{var ae;const oe=s()/100,te=de(u()).alpha(oe).css();y(te),(e.reactiveChange??!0)&&((ae=e.onChange)==null||ae.call(e,te))},re=oe=>{l(oe.target.value),N()},Se=()=>{const oe=u()??e.value??"#000000";Q(String(oe)),M(!0),o(!0)},ge=oe=>{S(oe);const te=de.hsl(oe,D(),P()).hex();T(te)},pe=oe=>{let te=oe.trim();te.startsWith("#")||(te="#"+te);try{const ae=de(te).hex(),[be,ze,ve]=de(ae).hsl();S(Number.isFinite(be)?Math.round(be):k()),F(Number.isFinite(ze)?ze:D()),z(Number.isFinite(ve)?ve:P()),T(ae)}catch{T(oe)}},Fe=oe=>{var te,ae;(ae=(te=oe.target).setPointerCapture)==null||ae.call(te,oe.pointerId),Z(!0),Ee(oe)},Le=oe=>{q()&&Ee(oe)},Ge=oe=>{var te,ae;try{(ae=(te=oe.target).releasePointerCapture)==null||ae.call(te,oe.pointerId)}catch{}Z(!1)},Ee=oe=>{const ae=oe.currentTarget.getBoundingClientRect(),be=Math.min(Math.max(0,oe.clientX-ae.left),ae.width),ze=Math.min(Math.max(0,oe.clientY-ae.top),ae.height),ve=ae.width?be/ae.width:0,Lt=ae.height?1-ze/ae.height:.5;F(ve),z(Lt);const zn=de.hsl(k(),ve,Lt).hex();T(zn)},pt=()=>{try{const oe=W(x());O[0].unshift(oe),J(oe),M(!1)}catch{}};return[et(()=>et(()=>!!i())()&&(()=>{var oe=Qp();return oe.$$click=()=>{ie()},oe})()),(()=>{var oe=Zp(),te=oe.firstChild,ae=te.nextSibling,be=ae.firstChild,ze=be.nextSibling,ve=ze.firstChild,Lt=ve.nextSibling,zn=Lt.firstChild,wn=ze.nextSibling,Ln=wn.nextSibling,Nn=Ln.firstChild,je=Nn.nextSibling;return te.$$click=Ne=>{o(!0)},Y(ae,(()=>{var Ne=et(()=>!$());return()=>Ne()&&O.map(en=>(()=>{var rt=jp();return Y(rt,()=>en.map(Mt=>(()=>{var $n=Yp();return $n.$$click=it=>{it.preventDefault(),J(Mt)},Be(it=>{var ut=`each_color ${Mt==u()?"selected":""}`,kn=`background-color: ${Mt}`;return ut!==it.e&&Vt($n,it.e=ut),it.t=qt($n,kn,it.t),it},{e:void 0,t:void 0}),$n})())),rt})())})(),be),Y(ae,(()=>{var Ne=et(()=>!$());return()=>Ne()&&(()=>{var en=Gp(),rt=en.firstChild;return rt.$$click=Mt=>{Mt.stopPropagation(),Se()},en})()})(),be),Y(ae,(()=>{var Ne=et(()=>!!$());return()=>Ne()&&(()=>{var en=Hp(),rt=en.firstChild,Mt=rt.firstChild,$n=Mt.nextSibling,it=rt.nextSibling,ut=it.firstChild,kn=ut.nextSibling,O1=kn.nextSibling,or=O1.nextSibling,Kn=it.nextSibling,ar=Kn.firstChild,r1=ar.nextSibling,Wn=Kn.nextSibling,B1=Wn.firstChild,sr=B1.nextSibling;return $n.$$input=Ue=>pe(Ue.currentTarget.value),it.$$pointerup=Ue=>Ge(Ue),it.$$pointermove=Ue=>Le(Ue),it.$$pointerdown=Ue=>Fe(Ue),ar.$$input=Ue=>ge(Number(Ue.currentTarget.value)),Y(r1,k),B1.$$click=()=>M(!1),sr.$$click=pt,Be(Ue=>{var lr=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${x()}`,E1=`linear-gradient(to right, hsl(${k()}, 0%, 50%), hsl(${k()}, 100%, 50%))`,D1=`${Math.round(D()*100)}%`,R1=`${Math.round((1-P())*100)}%`,F1=x();return Ue.e=qt(Mt,lr,Ue.e),E1!==Ue.t&&Er(ut,"background",Ue.t=E1),D1!==Ue.a&&Er(or,"left",Ue.a=D1),R1!==Ue.o&&Er(or,"top",Ue.o=R1),F1!==Ue.i&&Er(or,"background",Ue.i=F1),Ue},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Be(()=>$n.value=x()),Be(()=>ar.value=k()),en})()})(),be),ve.addEventListener("blur",()=>{_(!1)}),ve.addEventListener("focus",()=>{_(!0)}),ve.$$input=Ne=>{Ne.preventDefault,re(Ne)},Y(Lt,s,zn),Nn.$$click=ie,je.$$click=()=>{var Ne;e.reactiveChange===!1&&((Ne=e.onChange)==null||Ne.call(e,g())),H()},Be(Ne=>{var en=`width: 120px; background-color: ${g()}`,rt=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,Mt=`background-color: ${g()}; border: 1px solid ${u()}`;return Ne.e=qt(oe,en,Ne.e),rt!==Ne.t&&Vt(oe,Ne.t=rt),Ne.a=qt(ve,Mt,Ne.a),Ne},{e:void 0,t:void 0,a:void 0}),Be(()=>ve.value=s()),oe})()]};Rt(["click","input","pointerdown","pointermove","pointerup"]);const g5={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults"}};function qp(e,r){g5[e]=r}const b=(e,r)=>{var i;return((i=g5[r])==null?void 0:i[e])??e};G(!1),G(!1);const[Xp,OT]=G(!1);G(!1),G(!1),G(!1),G(!1),G("");const[Jp,ey]=G("");function p5(e){const r=Jp();if(r)return document.getElementById(r);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function ty(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function ny(e){const r=p5(e),i=ty();return!!(r&&i&&(r===i||r.contains(i)))}const[ry,y5]=G(!1),[t1,Wi]=G(null),[Rn,Ui]=G(null);G();const[ne,iy]=G(null),[Zi,m5]=G(null),[b5,_5]=G([""]),[v5,C5]=G({}),[BT,Fn]=G(!1);G("");const[x5,oy]=G(!1);G(1),G();const[ay,r0]=G(null);var sy=U("<img alt=symbol>"),ly=U("<div class=symbol><span>"),cy=U('<div class=klinecharts-pro-period-bar style=overflow-x:auto><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg><span></span></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg><span></span></div><div class="item tools">'),uy=U("<button type=button>"),fy=U('<svg viewBox="0 0 20 20"><path d=M1.08108,0L0,1.079L4.18919,5.27938L2.54826,6.91715L6.9112,6.91715L6.9112,2.56262L5.28957,4.18112L1.08108,0ZM15.8108,5.27938L20,1.079L18.9189,0L14.7104,4.18112L13.0888,2.56262L13.0888,6.91715L17.4517,6.91715L15.8108,5.27938ZM4.16988,14.7014L0.07722,18.8054L1.1583,20L5.27027,15.7996L6.9112,17.4374L6.9112,13.0829L2.54826,13.0829L4.16988,14.7014ZM17.4517,13.0829L13.0888,13.0829L13.0888,17.4374L14.7297,15.7996L18.8417,20L19.9228,18.8054L15.8301,14.7013L17.4517,13.0829Z>'),w5=U("<span>"),dy=U('<svg viewBox="0 0 20 20"><path d=M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z>');const hy=e=>{let r;const i=s=>s.span===e.period.span&&s.type===e.period.type,o=()=>{oy(ny(r))};return da(()=>{document.addEventListener("fullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Mr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var s=cy(),l=s.firstChild,u=l.firstChild,f=l.nextSibling,g=f.firstChild,y=g.nextSibling,C=f.nextSibling,_=C.firstChild,$=_.nextSibling,M=C.nextSibling,x=M.firstChild,T=x.nextSibling,k=M.nextSibling,S=k.firstChild,D=S.nextSibling,F=k.nextSibling;return ei(P=>{r=P},s),bn(u,"click",e.onMenuClick,!0),Y(s,X(ct,{get when(){return e.symbol},get children(){var P=ly(),z=P.firstChild;return bn(P,"click",e.onSymbolClick,!0),Y(P,X(ct,{get when(){return e.symbol.logo},get children(){var q=sy();return Be(()=>bt(q,"src",e.symbol.logo)),q}}),z),Y(z,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),P}}),f),Y(s,()=>e.periods.map(P=>(()=>{var z=uy();return z.$$click=()=>{e.onPeriodChange(P)},Y(z,()=>P.text),Be(()=>Vt(z,`item tools period ${i(P)?"selected":""}`)),z})()),f),bn(f,"click",e.onIndicatorClick,!0),Y(y,()=>b("indicator",e.locale)),bn(C,"click",e.onTimezoneClick,!0),Y($,()=>b("timezone",e.locale)),bn(M,"click",e.onSettingClick,!0),Y(T,()=>b("setting",e.locale)),bn(k,"click",e.onScreenshotClick,!0),Y(D,()=>b("screenshot",e.locale)),F.$$click=()=>{if(x5())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const P=p5(r);P&&(P.requestFullscreen??P.webkitRequestFullscreen??P.mozRequestFullScreen??P.msRequestFullscreen).call(P)}},Y(F,(()=>{var P=et(()=>!!x5());return()=>P()?[fy(),(()=>{var z=w5();return Y(z,()=>b("exit_full_screen",e.locale)),z})()]:[dy(),(()=>{var z=w5();return Y(z,()=>b("full_screen",e.locale)),z})()]})()),Be(()=>bt(u,"class",e.spread?"":"rotate")),s})()};Rt(["click"]);var gy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M12.41465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L12.41465,12C12.20873,12.5826,11.65311,13,11,13C10.34689,13,9.79127,12.5826,9.58535,12L3.5,12C3.223857,12,3,11.77614,3,11.5C3,11.22386,3.223857,11,3.5,11L9.58535,11C9.79127,10.417404,10.34689,10,11,10C11.65311,10,12.20873,10.417404,12.41465,11Z stroke-opacity=0 stroke=none>');const py=()=>gy();var yy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,11L11.08535,11C11.29127,10.417404,11.84689,10,12.5,10C13.15311,10,13.70873,10.417404,13.91465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L13.91465,12C13.70873,12.5826,13.15311,13,12.5,13C11.84689,13,11.29127,12.5826,11.08535,12L6.91465,12C6.70873,12.5826,6.15311,13,5.5,13C4.671573,13,4,12.32843,4,11.5C4,10.671573,4.671573,10,5.5,10C6.15311,10,6.70873,10.417404,6.91465,11Z stroke-opacity=0 stroke=none>');const my=()=>yy();var by=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,12.5C6.70873,13.0826,6.15311,13.5,5.5,13.5C4.671573,13.5,4,12.82843,4,12C4,11.171573,4.671573,10.5,5.5,10.5C6.15311,10.5,6.70873,10.917404,6.91465,11.5L16.0853,11.5C16.2913,10.917404,16.846899999999998,10.5,17.5,10.5C18.328400000000002,10.5,19,11.171573,19,12C19,12.82843,18.328400000000002,13.5,17.5,13.5C16.846899999999998,13.5,16.2913,13.0826,16.0853,12.5L6.91465,12.5Z stroke-opacity=0 stroke=none>');const _y=()=>by();var vy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,12.41465L11,18.5C11,18.7761,11.22386,19,11.5,19C11.77614,19,12,18.7761,12,18.5L12,12.41465C12.5826,12.20873,13,11.65311,13,11C13,10.34689,12.5826,9.79127,12,9.58535L12,3.5C12,3.223857,11.77614,3,11.5,3C11.22386,3,11,3.223857,11,3.5L11,9.58535C10.417404,9.79127,10,10.34689,10,11C10,11.65311,10.417404,12.20873,11,12.41465Z stroke-opacity=0 stroke=none>');const Cy=()=>vy();var xy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z stroke-opacity=0 stroke=none>');const wy=()=>xy();var Ly=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.165603637695312,6.91465C11.748203637695312,6.70873,12.165603637695312,6.15311,12.165603637695312,5.5C12.165603637695312,4.671573,11.494033637695313,4,10.665603637695312,4C9.837176637695313,4,9.165603637695312,4.671573,9.165603637695312,5.5C9.165603637695312,6.15311,9.583007637695312,6.70873,10.165603637695312,6.91465L10.165603637695312,16.0854C9.583007637695312,16.2913,9.165603637695312,16.846899999999998,9.165603637695312,17.5C9.165603637695312,18.328400000000002,9.837176637695313,19,10.665603637695312,19C11.494033637695313,19,12.165603637695312,18.328400000000002,12.165603637695312,17.5C12.165603637695312,16.846899999999998,11.748203637695312,16.2913,11.165603637695312,16.0854L11.165603637695312,6.91465Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const $y=()=>Ly();var ky=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.146447,15.753C4.9511845,15.9483,4.9511845,16.2649,5.146447,16.4602C5.341709,16.6554,5.658291,16.6554,5.853554,16.4602L8.156600000000001,14.15711C8.352409999999999,14.25082,8.57173,14.3033,8.8033,14.3033C9.631730000000001,14.3033,10.3033,13.63172,10.3033,12.80329C10.3033,12.57172,10.250820000000001,12.352409999999999,10.157119999999999,12.15659L12.156600000000001,10.15711C12.352409999999999,10.250820000000001,12.571729999999999,10.30329,12.8033,10.30329C13.63173,10.30329,14.3033,9.63172,14.3033,8.80329C14.3033,8.57172,14.25082,8.352409999999999,14.15712,8.15659L16.4602,5.853553C16.6554,5.658291,16.6554,5.341709,16.4602,5.146447C16.2649,4.9511843,15.9483,4.9511843,15.753,5.146447L13.45001,7.449479999999999C13.25419,7.35577,13.03487,7.3032900000000005,12.8033,7.3032900000000005C11.97487,7.3032900000000005,11.3033,7.97487,11.3033,8.80329C11.3033,9.03487,11.35578,9.254190000000001,11.44949,9.450009999999999L9.450009999999999,11.449480000000001C9.254190000000001,11.35577,9.03487,11.30329,8.8033,11.30329C7.97487,11.30329,7.3033,11.97487,7.3033,12.80329C7.3033,13.03487,7.35578,13.25419,7.44949,13.45001L5.146447,15.753Z stroke-opacity=0 stroke=none>');const Sy=()=>ky();var Ay=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M7.573332939453125,14.54567903564453C7.667042939453125,14.741499035644532,7.719512939453125,14.960809035644532,7.719512939453125,15.19239903564453C7.719512939453125,16.02079903564453,7.047942939453125,16.69239903564453,6.219512939453125,16.69239903564453C5.391085939453125,16.69239903564453,4.719512939453125,16.02079903564453,4.719512939453125,15.19239903564453C4.719512939453125,14.36394903564453,5.391085939453125,13.692379035644532,6.219512939453125,13.692379035644532C6.451092939453125,13.692379035644532,6.670412939453125,13.74485903564453,6.866232939453125,13.83856903564453L9.865702939453126,10.83909903564453C9.771992939453124,10.643279035644532,9.719512939453125,10.42395903564453,9.719512939453125,10.192379035644532C9.719512939453125,9.36394903564453,10.391082939453124,8.692379035644532,11.219512939453125,8.692379035644532C11.451092939453126,8.692379035644532,11.670412939453126,8.74485903564453,11.866232939453125,8.838569035644532L15.462112939453124,5.242645035644531C15.657412939453126,5.047383335644532,15.974012939453125,5.047383335644532,16.169212939453125,5.242645035644531C16.364512939453125,5.437907035644531,16.364512939453125,5.754489035644531,16.169212939453125,5.949752035644531L12.573332939453124,9.545679035644532C12.667042939453125,9.74149903564453,12.719512939453125,9.96080903564453,12.719512939453125,10.192379035644532C12.719512939453125,11.020809035644533,12.047942939453126,11.692379035644532,11.219512939453125,11.692379035644532C10.987942939453125,11.692379035644532,10.768632939453125,11.639909035644532,10.572812939453126,11.54619903564453L7.573332939453125,14.54567903564453Z stroke-opacity=0 stroke=none>');const My=()=>Ay();var Ty=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M15.719512939453125,8.461776733398438C16.547912939453127,8.461776733398438,17.219512939453125,7.7902067333984375,17.219512939453125,6.9617767333984375C17.219512939453125,6.133349733398438,16.547912939453127,5.4617767333984375,15.719512939453125,5.4617767333984375C14.891082939453124,5.4617767333984375,14.219512939453125,6.133349733398438,14.219512939453125,6.9617767333984375C14.219512939453125,7.193346733398437,14.271992939453124,7.412666733398438,14.365692939453124,7.608486733398438L7.366222939453126,14.607956733398437C7.170402939453125,14.514256733398437,6.951082939453125,14.461776733398438,6.719512939453125,14.461776733398438C5.891085939453125,14.461776733398438,5.219512939453125,15.133346733398437,5.219512939453125,15.961776733398438C5.219512939453125,16.79017673339844,5.891085939453125,17.461776733398438,6.719512939453125,17.461776733398438C7.547942939453125,17.461776733398438,8.219512939453125,16.79017673339844,8.219512939453125,15.961776733398438C8.219512939453125,15.730176733398437,8.167032939453126,15.510876733398437,8.073322939453124,15.315066733398437L15.072802939453124,8.315586733398437C15.268612939453124,8.409296733398438,15.487912939453125,8.461776733398438,15.719512939453125,8.461776733398438Z stroke-opacity=0 stroke=none>');const Py=()=>Ty();var Iy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const Oy=()=>Iy();var By=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,13.00505L18.5,13.00505C18.7761,13.00505,19,13.228909999999999,19,13.50505C19,13.781189999999999,18.7761,14.00505,18.5,14.00505L6.91465,14.00505C6.70873,14.58765,6.15311,15.00505,5.5,15.00505C4.671573,15.00505,4,14.33348,4,13.50505C4,12.67662,4.671573,12.00505,5.5,12.00505C6.15311,12.00505,6.70873,12.422450000000001,6.91465,13.00505ZM7.81404,11.625L10.48591,11.625L10.48591,10.90625L9.65193,10.90625L9.65193,7.125L8.997630000000001,7.125C8.71443,7.306641,8.415600000000001,7.419922,7.96443,7.498047L7.96443,8.05078L8.77497,8.05078L8.77497,10.90625L7.81404,10.90625L7.81404,11.625ZM11.081620000000001,11.625L14.0562,11.625L14.0562,10.88281L13.09724,10.88281C12.8863,10.88281,12.59333,10.90625,12.36482,10.93555C13.17537,10.11328,13.84724,9.2207,13.84724,8.39062C13.84724,7.541016,13.28865,7,12.4488,7C11.84333,7,11.446850000000001,7.234375,11.03279,7.679688L11.52497,8.16797C11.747630000000001,7.914062,12.0113,7.697266,12.33552,7.697266C12.7613,7.697266,13.00154,7.982422,13.00154,8.43359C13.00154,9.14648,12.29255,10.00781,11.081620000000001,11.11523L11.081620000000001,11.625ZM15.9605,11.75C16.8121,11.75,17.526899999999998,11.2832,17.526899999999998,10.4375C17.526899999999998,9.82031,17.142200000000003,9.43945,16.6441,9.30078L16.6441,9.27148C17.1129,9.08594,17.3824,8.7207,17.3824,8.21289C17.3824,7.421875,16.8004,7,15.9429,7C15.4215,7,14.9957,7.210938,14.6109,7.541016L15.066,8.11133C15.3258,7.849609,15.5836,7.697266,15.9019,7.697266C16.2789,7.697266,16.4957,7.914062,16.4957,8.28125C16.4957,8.70898,16.2301,9,15.4215,9L15.4215,9.63672C16.3804,9.63672,16.6383,9.91992,16.6383,10.38086C16.6383,10.79688,16.3336,11.03125,15.8824,11.03125C15.4742,11.03125,15.1578,10.82227,14.8922,10.55078L14.4781,11.13281C14.7906,11.486329999999999,15.2652,11.75,15.9605,11.75Z stroke-opacity=0 stroke=none>');const Ey=()=>By();var Dy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.146447,14.178126025390625C2.9511847,13.982826025390626,2.9511847,13.666226025390625,3.146447,13.470926025390625L7.39146,9.225966025390626C7.35417,9.095106025390624,7.33421,8.956946025390625,7.33421,8.814116025390625C7.33421,7.985696025390625,8.00578,7.314116025390625,8.834209999999999,7.314116025390625C8.97703,7.314116025390625,9.11519,7.334086025390625,9.24605,7.371366025390625L13.753,2.864373025390625C13.9483,2.669110325390625,14.2649,2.669110325390625,14.4602,2.864373025390625C14.6554,3.059635025390625,14.6554,3.376217025390625,14.4602,3.571479025390625L10.06916,7.962476025390625C10.23631,8.204386025390626,10.334209999999999,8.497826025390625,10.334209999999999,8.814116025390625C10.334209999999999,9.642546025390626,9.66264,10.314116025390625,8.834209999999999,10.314116025390625C8.51791,10.314116025390625,8.22448,10.216226025390625,7.98256,10.049076025390626L3.853554,14.178126025390625C3.658291,14.373326025390625,3.341709,14.373326025390625,3.146447,14.178126025390625ZM7.67736,19.188526025390626C7.4821,18.993226025390626,7.4821,18.676626025390625,7.67736,18.481426025390626L9.9804,16.178326025390625C9.88669,15.982526025390625,9.834209999999999,15.763226025390624,9.834209999999999,15.531626025390626C9.834209999999999,14.703226025390626,10.50578,14.031626025390626,11.33421,14.031626025390626C11.56579,14.031626025390626,11.78511,14.084126025390624,11.98093,14.177826025390624L13.9804,12.178356025390626C13.8867,11.982536025390624,13.8342,11.763216025390625,13.8342,11.531636025390625C13.8342,10.703206025390624,14.5058,10.031636025390625,15.3342,10.031636025390625C15.5658,10.031636025390625,15.7851,10.084116025390625,15.9809,10.177826025390626L18.284,7.874796025390625C18.4792,7.679536025390625,18.7958,7.679536025390625,18.9911,7.874796025390625C19.1863,8.070056025390624,19.1863,8.386636025390626,18.9911,8.581906025390625L16.688000000000002,10.884936025390624C16.7817,11.080756025390626,16.8342,11.300066025390626,16.8342,11.531636025390625C16.8342,12.360066025390624,16.162599999999998,13.031626025390626,15.3342,13.031626025390626C15.1026,13.031626025390626,14.8833,12.979126025390626,14.6875,12.885426025390625L12.68803,14.884926025390625C12.78174,15.080726025390625,12.83421,15.300026025390626,12.83421,15.531626025390626C12.83421,16.360026025390624,12.16264,17.031626025390626,11.33421,17.031626025390626C11.10264,17.031626025390626,10.88333,16.979126025390627,10.68751,16.885426025390625L8.38446,19.188526025390626C8.1892,19.383726025390626,7.87262,19.383726025390626,7.67736,19.188526025390626Z stroke-opacity=0 stroke=none>');const Ry=()=>Dy();var Fy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.3367688759765626,12.63173C3.5320318759765623,12.82699,3.8486138759765627,12.82699,4.043876875976562,12.63173L11.822052875976562,4.853553C12.017312875976563,4.658291,12.017312875976563,4.341708,11.822052875976562,4.146446C11.626792875976562,3.9511843,11.310202875976563,3.9511843,11.114942875976563,4.146446L3.3367688759765626,11.92462C3.1415071759765625,12.11988,3.1415071759765625,12.43647,3.3367688759765626,12.63173ZM5.001492875976562,17.0351C4.806232875976562,16.8399,4.806232875976562,16.5233,5.001492875976562,16.328L7.304532875976562,14.025C7.210822875976563,13.82916,7.158352875976563,13.60984,7.158352875976563,13.37827C7.158352875976563,12.54984,7.829922875976562,11.87827,8.658352875976561,11.87827C8.889922875976563,11.87827,9.109232875976563,11.93075,9.305052875976562,12.02446L11.304532875976562,10.02498C11.210822875976563,9.82916,11.158352875976561,9.60984,11.158352875976561,9.37827C11.158352875976561,8.54984,11.829922875976562,7.8782700000000006,12.658352875976563,7.8782700000000006C12.889922875976563,7.8782700000000006,13.109232875976563,7.93075,13.305022875976562,8.024460000000001L15.608122875976562,5.72142C15.803322875976562,5.5261499999999995,16.119922875976563,5.5261499999999995,16.315222875976563,5.72142C16.510422875976563,5.9166799999999995,16.510422875976563,6.23326,16.315222875976563,6.42852L14.012122875976562,8.73156C14.105822875976562,8.92738,14.158322875976562,9.1467,14.158322875976562,9.37827C14.158322875976562,10.2067,13.486822875976562,10.87827,12.658352875976563,10.87827C12.426772875976562,10.87827,12.207452875976562,10.82579,12.011642875976563,10.73209L10.012162875976562,12.73156C10.105872875976562,12.92738,10.158352875976561,13.1467,10.158352875976561,13.37827C10.158352875976561,14.2067,9.486772875976563,14.8783,8.658352875976561,14.8783C8.426772875976562,14.8783,8.207452875976562,14.8258,8.011642875976563,14.7321L5.708602875976562,17.0351C5.513342875976562,17.2304,5.196752875976562,17.2304,5.001492875976562,17.0351ZM10.415712875976563,18.328C10.220452875976562,18.5233,9.903862875976563,18.5233,9.708602875976563,18.328C9.513342875976562,18.1328,9.513342875976562,17.816200000000002,9.708602875976563,17.6209L12.304532875976562,15.025C12.210822875976563,14.8292,12.158352875976563,14.6098,12.158352875976563,14.3783C12.158352875976563,13.54984,12.829922875976562,12.87827,13.658322875976562,12.87827C13.889922875976563,12.87827,14.109222875976563,12.93075,14.305022875976562,13.02446L17.486822875976564,9.84274C17.682022875976564,9.64747,17.99862287597656,9.64747,18.19392287597656,9.84274C18.38912287597656,10.038,18.38912287597656,10.35458,18.19392287597656,10.54984L15.012122875976562,13.73156C15.105822875976562,13.92738,15.158322875976562,14.1467,15.158322875976562,14.3783C15.158322875976562,15.2067,14.486822875976562,15.8783,13.658322875976562,15.8783C13.426822875976562,15.8783,13.207422875976562,15.8258,13.011642875976563,15.7321L10.415712875976563,18.328Z stroke-opacity=0 stroke=none>');const zy=()=>Fy();var Ny=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M13.1889,6C12.98303,6.582599999999999,12.42741,7,11.7743,7C11.12119,7,10.565570000000001,6.582599999999999,10.35965,6L3.5,6C3.223857,6,3,5.77614,3,5.5C3,5.22386,3.223857,5,3.5,5L10.35965,5C10.565570000000001,4.417404,11.12119,4,11.7743,4C12.42741,4,12.98303,4.417404,13.1889,5L18.5,5C18.7761,5,19,5.22386,19,5.5C19,5.77614,18.7761,6,18.5,6L13.1889,6ZM3,8.5C3,8.22386,3.223857,8,3.5,8L18.5,8C18.7761,8,19,8.22386,19,8.5C19,8.77614,18.7761,9,18.5,9L3.5,9C3.223857,9,3,8.77614,3,8.5ZM3.278549,11.5C3.278549,11.22386,3.502407,11,3.778549,11L18.7785,11C19.0547,11,19.2785,11.22386,19.2785,11.5C19.2785,11.77614,19.0547,12,18.7785,12L3.778549,12C3.502407,12,3.278549,11.77614,3.278549,11.5ZM3.139267,14.5C3.139267,14.2239,3.363124,14,3.6392670000000003,14L18.6393,14C18.915399999999998,14,19.1393,14.2239,19.1393,14.5C19.1393,14.7761,18.915399999999998,15,18.6393,15L3.6392670000000003,15C3.363124,15,3.139267,14.7761,3.139267,14.5ZM13.1889,18C12.98303,18.5826,12.42741,19,11.7743,19C11.12119,19,10.565570000000001,18.5826,10.35965,18L3.778549,18C3.502407,18,3.278549,17.7761,3.278549,17.5C3.278549,17.2239,3.502407,17,3.778549,17L10.35965,17C10.565570000000001,16.4174,11.12119,16,11.7743,16C12.42741,16,12.98303,16.4174,13.1889,17L18.7785,17C19.0547,17,19.2785,17.2239,19.2785,17.5C19.2785,17.7761,19.0547,18,18.7785,18L13.1889,18Z stroke-opacity=0 stroke=none>');const Ky=()=>Ny();var Wy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4.91465,6C4.70873,6.582599999999999,4.15311,7,3.5,7C2.671573,7,2,6.32843,2,5.5C2,4.671573,2.671573,4,3.5,4C4.15311,4,4.70873,4.417404,4.91465,5L18.2257,5C18.5018,5,18.7257,5.22386,18.7257,5.5C18.7257,5.77614,18.5018,6,18.2257,6L4.91465,6ZM2.7257,8.5C2.7257,8.22386,2.949558,8,3.2257,8L18.2257,8C18.5018,8,18.7257,8.22386,18.7257,8.5C18.7257,8.77614,18.5018,9,18.2257,9L3.2257,9C2.949558,9,2.7257,8.77614,2.7257,8.5ZM3.00425,11.5C3.00425,11.22386,3.22811,11,3.50425,11L18.5042,11C18.7804,11,19.0042,11.22386,19.0042,11.5C19.0042,11.77614,18.7804,12,18.5042,12L3.50425,12C3.22811,12,3.00425,11.77614,3.00425,11.5ZM2.864967,14.5C2.864967,14.2239,3.08882,14,3.36497,14L18.365,14C18.6411,14,18.865,14.2239,18.865,14.5C18.865,14.7761,18.6411,15,18.365,15L3.36497,15C3.08882,15,2.864967,14.7761,2.864967,14.5ZM20,17.5C20,18.328400000000002,19.3284,19,18.5,19C17.846899999999998,19,17.2913,18.5826,17.0854,18L3.50425,18C3.22811,18,3.00425,17.7761,3.00425,17.5C3.00425,17.2239,3.22811,17,3.50425,17L17.0854,17C17.2913,16.4174,17.846899999999998,16,18.5,16C19.3284,16,20,16.671599999999998,20,17.5Z stroke-opacity=0 stroke=none>');const Uy=()=>Wy();var Zy=U('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=5 ry=5 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=3 ry=3 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1>');const Qy=()=>Zy();var jy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3,7.32468C5.90649,3.3893050000000002,11.49833,2.81306,14.6674,6.31944C14.9056,6.1554199999999994,15.192,6.05979,15.5,6.05979C15.845,6.05979,16.1628,6.17974,16.4162,6.381349999999999L18.4509,4.23827L19,4.816615L16.8945,7.03429C16.962600000000002,7.21075,17,7.40319,17,7.60463C17,8.45782,16.328400000000002,9.14947,15.5,9.14947C14.6716,9.14947,14,8.45782,14,7.60463C14,7.36402,14.0534,7.13625,14.1487,6.93322C11.32695,3.748365,6.25159,4.253956,3.612785,7.82695L3,7.32468ZM14.09,15.4717C15.7427,13.78985,16.244500000000002,11.524740000000001,15.5633,9.30134L15.5618,9.30134L16.3012,9.0502C17.072400000000002,11.56646,16.497700000000002,14.158,14.6282,16.0599C12.28737,18.442,8.62386,18.6988,6.41348,16.4501C4.5526,14.5572,4.52076,11.19671,6.36766,9.3177C7.89069,7.76754,10.07544,7.706189999999999,11.56741,9.22363C11.95453,9.61742,12.24817,10.08363,12.43369,10.57677L14.1451,8.77421L14.6942,9.35256L12.64982,11.50582C12.65827,11.59712,12.66295,11.68839,12.66378,11.77936C12.87398,12.04523,13,12.38451,13,12.7541C13,13.60729,12.32843,14.2989,11.5,14.2989C10.67157,14.2989,10,13.60729,10,12.7541C10,11.90091,10.67157,11.20926,11.5,11.20926C11.60387,11.20926,11.70528,11.220130000000001,11.8032,11.240829999999999L11.81763,11.22564C11.69858,10.71874,11.42858,10.21929,11.0284,9.81179C9.844000000000001,8.60765,8.136890000000001,8.65592,6.90822,9.90586C5.37975,11.460930000000001,5.40693,14.288,6.95404,15.8619C8.84598,17.7867,12.03496,17.5626,14.09,15.4717Z stroke-opacity=0 stroke=none>');const Yy=()=>jy();var Gy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4,17.0854L4,3.5C4,3.223858,4.22386,3,4.5,3C4.77614,3,5,3.223858,5,3.5L5,10L7.57584,10L9.8127,4.46359C9.91614,4.20756,10.20756,4.08386,10.46359,4.1873000000000005C10.71963,4.29075,10.84333,4.58216,10.73988,4.8382000000000005L8.65438,10L11.08535,10C11.29127,9.4174,11.84689,9,12.5,9C12.65154,9,12.79784,9.02247,12.93573,9.06427L16.6464,5.35355C16.8417,5.15829,17.1583,5.15829,17.3536,5.35355C17.5488,5.54882,17.5488,5.8654,17.3536,6.06066L13.7475,9.66675C13.907,9.90508,14,10.19168,14,10.5C14,11.15311,13.5826,11.70873,13,11.91465L13,14.3638L18.3714,12.1936C18.6274,12.09015,18.918799999999997,12.21385,19.0222,12.46989C19.1257,12.72592,19.002,13.0173,18.746000000000002,13.1208L13,15.4423L13,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854ZM6.3729499999999994,17.0413L12,14.7678L12,11.91465C11.88136,11.87271,11.76956,11.81627,11.66675,11.74746L6.3729499999999994,17.0413ZM12,15.8463L6.6694700000000005,18L12,18L12,15.8463ZM6.38629,15.6137L8.250350000000001,11L11,11L6.38629,15.6137ZM5,11L7.17182,11L5,16.3754L5,11Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Hy=()=>Gy();var Vy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17,4.5C17,5.32843,16.328400000000002,6,15.5,6C15.0931,6,14.7241,5.83802,14.4539,5.57503L5.98992,8.32515C5.99658,8.38251,6,8.440850000000001,6,8.5C6,9.15311,5.582599999999999,9.70873,5,9.91465L5,11.08535C5.42621,11.236,5.763999999999999,11.57379,5.91465,12L19.5,12C19.7761,12,20,12.22386,20,12.5C20,12.77614,19.7761,13,19.5,13L5.91465,13C5.70873,13.5826,5.15311,14,4.5,14C3.671573,14,3,13.3284,3,12.5C3,11.84689,3.417404,11.29127,4,11.08535L4,9.91465C3.417404,9.70873,3,9.15311,3,8.5C3,7.67157,3.671573,7,4.5,7C4.90411,7,5.2709,7.15981,5.5406200000000005,7.41967L14.0093,4.66802C14.0032,4.6128599999999995,14,4.5568,14,4.5C14,3.671573,14.6716,3,15.5,3C16.328400000000002,3,17,3.671573,17,4.5ZM4,15.5C4,15.2239,4.22386,15,4.5,15L19.5,15C19.7761,15,20,15.2239,20,15.5C20,15.7761,19.7761,16,19.5,16L4.5,16C4.22386,16,4,15.7761,4,15.5ZM4,18.5C4,18.2239,4.22386,18,4.5,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L4.5,19C4.22386,19,4,18.7761,4,18.5Z stroke-opacity=0 stroke=none>');const qy=()=>Vy();var Xy=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M20,3.5C20,4.15311,19.5826,4.70873,19,4.91465L19,18.5C19,18.7761,18.7761,19,18.5,19L4.91465,19C4.70873,19.5826,4.15311,20,3.5,20C2.671573,20,2,19.3284,2,18.5C2,17.846899999999998,2.417404,17.2913,3,17.0854L3,3.5C3,3.22386,3.22386,3,3.5,3L17.0854,3C17.2913,2.417404,17.846899999999998,2,18.5,2C19.3284,2,20,2.671573,20,3.5ZM17.0854,4C17.236,4.42621,17.5738,4.763999999999999,18,4.91465L18,8L14,8L14,4L17.0854,4ZM13,4L13,8L9,8L9,4L13,4ZM13,9L9,9L9,13L13,13L13,9ZM13,14L9,14L9,18L13,18L13,14ZM14,18L14,14L18,14L18,18L14,18ZM18,13L14,13L14,9L18,9L18,13ZM4.91465,18C4.763999999999999,17.5738,4.42621,17.236,4,17.0854L4,14L8,14L8,18L4.91465,18ZM4,8L4,4L8,4L8,8L4,8ZM8,9L8,13L4,13L4,9L8,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Jy=()=>Xy();var em=U('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 fill=none stroke-opacity=1 stroke-width=1>');const tm=()=>em();var nm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.57625,6.9981C11.55099,6.999359999999999,11.52557,7,11.5,7C11.34,7,11.18584,6.97495,11.04125,6.9285499999999995L5.55401,16.4327C5.713760000000001,16.5905,5.83826,16.7839,5.91465,17L16.0854,17C16.2187,16.622700000000002,16.4987,16.314700000000002,16.8569,16.1445L11.57625,6.9981ZM12.50759,6.611219999999999C12.81005,6.336790000000001,13,5.94058,13,5.5C13,4.671573,12.32843,4,11.5,4C10.67157,4,10,4.671573,10,5.5C10,5.80059,10.08841,6.08052,10.24066,6.31522L4.64514,16.0069C4.59738,16.002299999999998,4.54896,16,4.5,16C3.671573,16,3,16.671599999999998,3,17.5C3,18.328400000000002,3.671573,19,4.5,19C5.15311,19,5.70873,18.5826,5.91465,18L16.0854,18C16.2913,18.5826,16.846899999999998,19,17.5,19C18.328400000000002,19,19,18.328400000000002,19,17.5C19,16.8365,18.5691,16.2735,17.971899999999998,16.075699999999998L12.50759,6.611219999999999Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const rm=()=>nm();var im=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19,4.5C19,5.15311,18.5826,5.70873,18,5.91465L18,18.5C18,18.7761,17.7761,19,17.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854L4,4.5C4,4.22386,4.22386,4,4.5,4L16.0854,4C16.2913,3.417404,16.846899999999998,3,17.5,3C18.328400000000002,3,19,3.671573,19,4.5ZM5,5L16.0854,5C16.236,5.42621,16.5738,5.763999999999999,17,5.91465L17,18L5.91465,18C5.763999999999999,17.5738,5.42621,17.236,5,17.0854L5,5Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const om=()=>im();var am=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19.6401,7.99355C20.4028,7.92291,21,7.2811900000000005,21,6.5C21,5.671573,20.3284,5,19.5,5C18.8469,5,18.2913,5.417404,18.0854,6L7.62067,6C7.34453,6,7.12067,6.22386,7.12067,6.5C7.12067,6.5479,7.12741,6.59423,7.13999,6.63809L3.2294099999999997,15.0243C2.530138,15.1517,2,15.764,2,16.5C2,17.328400000000002,2.671573,18,3.5,18C4.15311,18,4.70873,17.5826,4.91465,17L14.5963,17C14.6456,17.076,14.7162,17.1396,14.8044,17.1807C15.0546,17.2974,15.3521,17.1891,15.4688,16.9388L19.6401,7.99355ZM14.7896,16.0293L18.6551,7.739599999999999C18.3942,7.56144,18.1925,7.30307,18.0854,7L8.0746,7L4.25044,15.2009C4.55701,15.3784,4.79493,15.6613,4.91465,16L14.6207,16C14.68,16,14.7368,16.0103,14.7896,16.0293Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const sm=()=>am();var lm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.134443814697265,7.494615087890625L8.764323814697265,7.494615087890625L8.764323814697265,3.414215087890625L8.310223814697267,3.414215087890625L7.294603814697266,4.005035087890625L7.289713814697266,4.634915087890625L8.134443814697265,4.149892087890625L8.134443814697265,7.494615087890625ZM18.832003814697266,6.933095087890624Q19.004603814697266,6.635245087890625,19.004603814697266,6.2543850878906255Q19.004603814697266,5.884915087890625,18.845103814697264,5.593575087890625Q18.685503814697267,5.3006050878906255,18.399103814697266,5.136225087890625Q18.114303814697266,4.9702050878906245,17.754603814697266,4.9653250878906245L18.820603814697265,3.840647087890625L18.820603814697265,3.414215087890625L16.519203814697264,3.414215087890625L16.519203814697264,3.939931087890625L18.050803814697264,3.939931087890625L16.719403814697266,5.334785087890625L17.074203814697263,5.7205350878906245Q17.254903814697265,5.484525087890625,17.619503814697268,5.484525087890625Q17.980803814697268,5.484525087890625,18.187503814697266,5.689605087890625Q18.394203814697267,5.894685087890625,18.394203814697267,6.2543850878906255Q18.394203814697267,6.604315087890625,18.187503814697266,6.822415087890625Q17.980803814697268,7.0405150878906255,17.640603814697265,7.0405150878906255Q17.334603814697267,7.0405150878906255,17.124703814697266,6.890775087890625Q16.914703814697265,6.739415087890626,16.820303814697265,6.469225087890624L16.354803814697263,6.744295087890626Q16.480103814697266,7.125155087890625,16.821903814697265,7.341625087890625Q17.165403814697264,7.559725087890625,17.640603814697265,7.559725087890625Q18.039403814697266,7.559725087890625,18.348603814697267,7.393705087890625Q18.659503814697267,7.229315087890625,18.832003814697266,6.933095087890624ZM10.000003814697266,10.634915087890626C10.000003814697266,11.024655087890626,9.851363814697265,11.379685087890625,9.607683814697266,11.646395087890625L12.168903814697266,15.171615087890626C12.275403814697265,15.147615087890625,12.386203814697266,15.134915087890626,12.500003814697266,15.134915087890626C12.596503814697266,15.134915087890626,12.690803814697265,15.144015087890624,12.782303814697265,15.161415087890624L16.108803814697268,11.196955087890625C16.038703814697264,11.023375087890624,16.000003814697266,10.833655087890625,16.000003814697266,10.634915087890626C16.000003814697266,9.806495087890625,16.671603814697264,9.134915087890626,17.500003814697266,9.134915087890626C18.328403814697264,9.134915087890626,19.000003814697266,9.806495087890625,19.000003814697266,10.634915087890626C19.000003814697266,11.463345087890625,18.328403814697264,12.134915087890626,17.500003814697266,12.134915087890626C17.239503814697265,12.134915087890626,16.994503814697268,12.068495087890625,16.781003814697264,11.951675087890624L13.654703814697266,15.677415087890624C13.870303814697266,15.937215087890625,14.000003814697266,16.270915087890625,14.000003814697266,16.634915087890626C14.000003814697266,17.463315087890624,13.328403814697266,18.134915087890626,12.500003814697266,18.134915087890626C11.671573814697265,18.134915087890626,11.000003814697266,17.463315087890624,11.000003814697266,16.634915087890626C11.000003814697266,16.284415087890626,11.120193814697265,15.962015087890626,11.321603814697266,15.706715087890625L8.715393814697265,12.119565087890624C8.645053814697267,12.129685087890625,8.573143814697266,12.134915087890626,8.500003814697266,12.134915087890626C8.162103814697264,12.134915087890626,7.8503038146972655,12.023195087890626,7.599523814697266,11.834665087890626L4.505583814697266,15.521915087890624C4.809213814697266,15.796415087890624,5.000003814697266,16.193415087890624,5.000003814697266,16.634915087890626C5.000003814697266,17.463315087890624,4.328433814697266,18.134915087890626,3.5000038146972656,18.134915087890626C2.6715768146972656,18.134915087890626,2.0000038146972656,17.463315087890624,2.0000038146972656,16.634915087890626C2.0000038146972656,15.806515087890626,2.6715768146972656,15.134915087890626,3.5000038146972656,15.134915087890626C3.508253814697266,15.134915087890626,3.5164838146972657,15.135015087890626,3.524703814697266,15.135115087890625L7.033823814697266,10.953115087890625C7.011673814697265,10.850565087890626,7.000003814697266,10.744105087890624,7.000003814697266,10.634915087890626C7.000003814697266,9.806495087890625,7.671573814697266,9.134915087890626,8.500003814697266,9.134915087890626C9.328433814697267,9.134915087890626,10.000003814697266,9.806495087890625,10.000003814697266,10.634915087890626Z stroke-opacity=0 stroke=none>');const cm=()=>lm();var um=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.13444,7.494615087890625L8.76432,7.494615087890625L8.76432,3.414215087890625L8.310220000000001,3.414215087890625L7.2946,4.005035087890625L7.28971,4.634915087890625L8.13444,4.149892087890625L8.13444,7.494615087890625ZM18.832,6.929835087890625Q19.0046,6.635245087890625,19.0046,6.2543850878906255Q19.0046,5.889805087890625,18.8451,5.5952050878906245Q18.6855,5.3006050878906255,18.3975,5.132965087890625Q18.1094,4.9653250878906245,17.7399,4.9653250878906245Q17.435499999999998,4.9653250878906245,17.1556,5.149245087890625L17.2793,3.939931087890625L18.8304,3.939931087890625L18.8304,3.414215087890625L16.7406,3.414215087890625L16.5094,5.665195087890625L17.0156,5.795405087890625Q17.095399999999998,5.655425087890626,17.2516,5.570795087890625Q17.4095,5.484525087890625,17.6357,5.484525087890625Q17.9694,5.484525087890625,18.1842,5.697745087890625Q18.4007,5.909335087890625,18.4007,6.2543850878906255Q18.4007,6.604315087890625,18.1842,6.822415087890625Q17.9694,7.0405150878906255,17.6292,7.0405150878906255Q17.3298,7.0405150878906255,17.119799999999998,6.890775087890625Q16.9098,6.739415087890626,16.825200000000002,6.474115087890625L16.3597,6.749175087890626Q16.470399999999998,7.110505087890624,16.807299999999998,7.335115087890625Q17.144199999999998,7.559725087890625,17.6292,7.559725087890625Q18.0296,7.559725087890625,18.3438,7.392075087890625Q18.6595,7.224435087890625,18.832,6.929835087890625ZM10,10.634915087890626C10,11.024655087890626,9.85136,11.379685087890625,9.60768,11.646395087890625L12.1689,15.171615087890626C12.2754,15.147615087890625,12.3862,15.134915087890626,12.5,15.134915087890626C12.5965,15.134915087890626,12.6908,15.144015087890624,12.7823,15.161415087890624L16.108800000000002,11.196955087890625C16.0387,11.023375087890624,16,10.833655087890625,16,10.634915087890626C16,9.806495087890625,16.671599999999998,9.134915087890626,17.5,9.134915087890626C18.3284,9.134915087890626,19,9.806495087890625,19,10.634915087890626C19,11.463345087890625,18.3284,12.134915087890626,17.5,12.134915087890626C17.2395,12.134915087890626,16.994500000000002,12.068505087890625,16.781,11.951675087890624L13.6547,15.677415087890624C13.8703,15.937215087890625,14,16.270915087890625,14,16.634915087890626C14,17.463315087890624,13.3284,18.134915087890626,12.5,18.134915087890626C11.67157,18.134915087890626,11,17.463315087890624,11,16.634915087890626C11,16.284415087890626,11.12019,15.962015087890626,11.3216,15.706715087890625L8.71539,12.119565087890624C8.645050000000001,12.129685087890625,8.57314,12.134915087890626,8.5,12.134915087890626C8.162099999999999,12.134915087890626,7.8503,12.023195087890626,7.59952,11.834665087890626L4.50558,15.521915087890624C4.80921,15.796415087890624,5,16.193415087890624,5,16.634915087890626C5,17.463315087890624,4.32843,18.134915087890626,3.5,18.134915087890626C2.671573,18.134915087890626,2,17.463315087890624,2,16.634915087890626C2,15.806515087890626,2.671573,15.134915087890626,3.5,15.134915087890626C3.5082500000000003,15.134915087890626,3.51648,15.135015087890626,3.5247,15.135115087890625L7.03382,10.953115087890625C7.01167,10.850565087890626,7,10.744105087890624,7,10.634915087890626C7,9.806495087890625,7.67157,9.134915087890626,8.5,9.134915087890626C9.32843,9.134915087890626,10,9.806495087890625,10,10.634915087890626Z stroke-opacity=0 stroke=none>');const fm=()=>um();var dm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M18.8532,7.020985087890625Q19.0257,6.734525087890625,19.0257,6.369945087890625Q19.0257,6.020005087890625,18.8499,5.754705087890625Q18.6758,5.489415087890626,18.3649,5.339675087890625Q18.5944,5.209465087890625,18.7214,4.994615087890625Q18.8499,4.779775087890625,18.8499,4.5193550878906255Q18.8499,4.2003480878906245,18.7002,3.951324087890625Q18.5505,3.700673087890625,18.277,3.557444087890625Q18.0052,3.414215087890625,17.6455,3.414215087890625Q17.285800000000002,3.414215087890625,17.0107,3.557444087890625Q16.7357,3.700673087890625,16.5843,3.951324087890625Q16.4346,4.2003480878906245,16.4346,4.5193550878906255Q16.4346,4.779775087890625,16.561500000000002,4.994615087890625Q16.6901,5.209465087890625,16.919600000000003,5.339675087890625Q16.6055,5.489415087890626,16.4297,5.757965087890625Q16.255499999999998,6.024895087890625,16.255499999999998,6.369945087890625Q16.255499999999998,6.734525087890625,16.4297,7.020985087890625Q16.6055,7.305815087890625,16.919600000000003,7.465325087890625Q17.2354,7.624825087890625,17.6455,7.624825087890625Q18.0557,7.624825087890625,18.3682,7.465325087890625Q18.6807,7.305815087890625,18.8532,7.020985087890625ZM8.76432,7.559725087890625L8.13444,7.559725087890625L8.13444,4.214996087890625L7.28971,4.700025087890625L7.2946,4.070139087890625L8.310220000000001,3.479319087890625L8.76432,3.479319087890625L8.76432,7.559725087890625ZM17.1816,4.955555087890625Q17.0042,4.784655087890625,17.0042,4.5095950878906255Q17.0042,4.229645087890625,17.18,4.057119087890625Q17.355800000000002,3.884592087890625,17.6455,3.884592087890625Q17.935200000000002,3.884592087890625,18.1077,4.057119087890625Q18.2803,4.229645087890625,18.2803,4.5095950878906255Q18.2803,4.784655087890625,18.1045,4.955555087890625Q17.930300000000003,5.124825087890625,17.6455,5.124825087890625Q17.3607,5.124825087890625,17.1816,4.955555087890625ZM18.2217,5.7953950878906255Q18.4398,6.005365087890625,18.4398,6.3552950878906245Q18.4398,6.705235087890625,18.2217,6.915195087890625Q18.0052,7.125155087890625,17.6455,7.125155087890625Q17.285800000000002,7.125155087890625,17.067700000000002,6.915195087890625Q16.849600000000002,6.705235087890625,16.849600000000002,6.3552950878906245Q16.849600000000002,6.005365087890625,17.064500000000002,5.7953950878906255Q17.2793,5.585435087890625,17.6455,5.585435087890625Q18.0052,5.585435087890625,18.2217,5.7953950878906255ZM9.60768,11.711495087890626C9.85136,11.444785087890626,10,11.089765087890626,10,10.700025087890625C10,9.871595087890626,9.32843,9.200025087890625,8.5,9.200025087890625C7.67157,9.200025087890625,7,9.871595087890626,7,10.700025087890625C7,10.809205087890625,7.01167,10.915665087890625,7.03382,11.018215087890624L3.5247,15.200215087890625C3.51648,15.200115087890625,3.5082500000000003,15.200015087890625,3.5,15.200015087890625C2.671573,15.200015087890625,2,15.871615087890625,2,16.700015087890627C2,17.528415087890625,2.671573,18.200015087890627,3.5,18.200015087890627C4.32843,18.200015087890627,5,17.528415087890625,5,16.700015087890627C5,16.258515087890625,4.80921,15.861515087890625,4.50558,15.587015087890626L7.59952,11.899765087890625C7.8503,12.088295087890625,8.162099999999999,12.200025087890625,8.5,12.200025087890625C8.57314,12.200025087890625,8.645050000000001,12.194785087890626,8.71539,12.184675087890625L11.3216,15.771815087890625C11.12019,16.027215087890625,11,16.349515087890623,11,16.700015087890627C11,17.528415087890625,11.67157,18.200015087890627,12.5,18.200015087890627C13.3284,18.200015087890627,14,17.528415087890625,14,16.700015087890627C14,16.336015087890623,13.8703,16.002315087890626,13.6547,15.742515087890625L16.781,12.016775087890625C16.994500000000002,12.133605087890626,17.2395,12.200025087890625,17.5,12.200025087890625C18.3284,12.200025087890625,19,11.528445087890624,19,10.700025087890625C19,9.871595087890626,18.3284,9.200025087890625,17.5,9.200025087890625C16.671599999999998,9.200025087890625,16,9.871595087890626,16,10.700025087890625C16,10.898765087890624,16.0387,11.088475087890625,16.108800000000002,11.262055087890625L12.7823,15.226515087890625C12.6908,15.209115087890625,12.5965,15.200015087890625,12.5,15.200015087890625C12.3862,15.200015087890625,12.2754,15.212715087890626,12.1689,15.236715087890625L9.60768,11.711495087890626Z stroke-opacity=0 stroke=none>');const hm=()=>dm();var gm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M9.474616630859375,7.494615087890625L8.844736630859375,7.494615087890625L8.844736630859375,4.149892087890625L8.000006630859374,4.634915087890625L8.004896630859374,4.005035087890625L9.020516630859376,3.414215087890625L9.474616630859375,3.414215087890625L9.474616630859375,7.494615087890625ZM18.529296630859378,4.8318550878906255Q18.307996630859375,5.028795087890625,18.122396630859377,5.385245087890625Q17.868496630859376,5.019035087890625,17.629196630859376,4.8269750878906255Q17.389996630859375,4.634915087890625,17.168596630859376,4.634915087890625Q16.794296630859375,4.634915087890625,16.522496630859376,4.976715087890625Q16.252296630859377,5.3168850878906255,16.252296630859377,5.7856350878906255Q16.252296630859377,6.218575087890625,16.502896630859375,6.521315087890625Q16.755196630859373,6.822415087890625,17.114896630859377,6.822415087890625Q17.368796630859375,6.822415087890625,17.588596630859374,6.625475087890624Q17.809896630859377,6.428535087890625,17.998696630859374,6.0688350878906245Q18.249396630859373,6.439935087890625,18.488596630859377,6.631985087890625Q18.727896630859377,6.822415087890625,18.952496630859375,6.822415087890625Q19.326796630859373,6.822415087890625,19.596996630859376,6.482245087890625Q19.868796630859375,6.140455087890626,19.868796630859375,5.671705087890626Q19.868796630859375,5.238755087890625,19.618196630859376,4.937655087890625Q19.367496630859375,4.634915087890625,19.006196630859375,4.634915087890625Q18.750696630859377,4.634915087890625,18.529296630859378,4.8318550878906255ZM18.337296630859377,5.674955087890625L18.278696630859375,5.596835087890625Q18.449596630859375,5.272935087890625,18.622096630859374,5.1101750878906245Q18.794596630859374,4.947415087890625,18.967096630859373,4.947415087890625Q19.194996630859375,4.947415087890625,19.346396630859374,5.1345950878906255Q19.497696630859377,5.320135087890625,19.497696630859377,5.598455087890625Q19.497696630859377,5.8914250878906245,19.360996630859376,6.096505087890625Q19.224296630859374,6.301585087890626,19.027396630859375,6.301585087890626Q18.915096630859374,6.301585087890626,18.742496630859375,6.146965087890624Q18.569996630859375,5.992335087890625,18.337296630859377,5.674955087890625ZM17.785496630859377,5.779125087890625L17.842496630859372,5.857245087890625Q17.668296630859373,6.186025087890625,17.495796630859374,6.348785087890625Q17.324896630859374,6.509915087890625,17.153996630859375,6.509915087890625Q16.926096630859377,6.509915087890625,16.774796630859377,6.324375087890624Q16.623396630859375,6.137195087890625,16.623396630859375,5.858875087890625Q16.623396630859375,5.565905087890625,16.761696630859376,5.360825087890625Q16.900096630859373,5.1557550878906255,17.095396630859376,5.1557550878906255Q17.228896630859374,5.1557550878906255,17.365596630859375,5.2778250878906245Q17.502296630859377,5.399895087890625,17.785496630859377,5.779125087890625ZM10.710296630859375,10.634915087890626C10.710296630859375,11.024655087890626,10.561656630859375,11.379685087890625,10.317976630859375,11.646395087890625L12.879196630859376,15.171615087890626C12.985696630859374,15.147615087890625,13.096496630859376,15.134915087890626,13.210296630859375,15.134915087890626C13.306796630859376,15.134915087890626,13.401096630859374,15.144015087890624,13.492596630859374,15.161415087890624L16.819096630859377,11.196955087890625C16.748996630859374,11.023375087890624,16.710296630859375,10.833655087890625,16.710296630859375,10.634915087890626C16.710296630859375,9.806495087890625,17.381896630859373,9.134915087890626,18.210296630859375,9.134915087890626C19.038696630859373,9.134915087890626,19.710296630859375,9.806495087890625,19.710296630859375,10.634915087890626C19.710296630859375,11.463345087890625,19.038696630859373,12.134915087890626,18.210296630859375,12.134915087890626C17.949796630859375,12.134915087890626,17.704796630859377,12.068505087890625,17.491296630859374,11.951675087890624L14.364996630859375,15.677415087890624C14.580596630859375,15.937215087890625,14.710296630859375,16.270915087890625,14.710296630859375,16.634915087890626C14.710296630859375,17.463315087890624,14.038696630859375,18.134915087890626,13.210296630859375,18.134915087890626C12.381866630859374,18.134915087890626,11.710296630859375,17.463315087890624,11.710296630859375,16.634915087890626C11.710296630859375,16.284415087890626,11.830486630859374,15.962015087890626,12.031896630859375,15.706715087890625L9.425686630859374,12.119565087890624C9.355346630859376,12.129685087890625,9.283436630859375,12.134915087890626,9.210296630859375,12.134915087890626C8.872396630859374,12.134915087890626,8.560596630859376,12.023195087890626,8.309816630859375,11.834665087890626L5.215876630859375,15.521915087890624C5.519506630859375,15.796415087890624,5.710296630859375,16.193415087890624,5.710296630859375,16.634915087890626C5.710296630859375,17.463315087890624,5.038726630859375,18.134915087890626,4.210296630859375,18.134915087890626C3.381869630859375,18.134915087890626,2.710296630859375,17.463315087890624,2.710296630859375,16.634915087890626C2.710296630859375,15.806515087890626,3.381869630859375,15.134915087890626,4.210296630859375,15.134915087890626C4.218546630859375,15.134915087890626,4.226776630859375,15.135015087890626,4.234996630859375,15.135115087890625L7.744116630859375,10.953115087890625C7.721966630859375,10.850565087890626,7.710296630859375,10.744105087890624,7.710296630859375,10.634915087890626C7.710296630859375,9.806495087890625,8.381866630859374,9.134915087890626,9.210296630859375,9.134915087890626C10.038726630859376,9.134915087890626,10.710296630859375,9.806495087890625,10.710296630859375,10.634915087890626Z stroke-opacity=0 stroke=none>');const pm=()=>gm();var ym=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M21,5.5C21,6.32843,20.3284,7,19.5,7C19.4136,7,19.3289,6.99269,19.2465,6.97866L15.6257,15.5086C15.8587,15.7729,16,16.119999999999997,16,16.5C16,17.328400000000002,15.3284,18,14.5,18C13.8469,18,13.2913,17.5826,13.0854,17L3.91465,17C3.70873,17.5826,3.15311,18,2.5,18C1.671573,18,1,17.328400000000002,1,16.5C1,15.6716,1.671573,15,2.5,15C2.5840199999999998,15,2.66643,15.0069,2.74668,15.0202L6.36934,6.48574C6.13933,6.22213,6,5.87733,6,5.5C6,4.671573,6.67157,4,7.5,4C8.15311,4,8.70873,4.417404,8.91465,5L18.0854,5C18.2913,4.417404,18.8469,4,19.5,4C20.3284,4,21,4.671573,21,5.5ZM18.0854,6L8.91465,6C8.892579999999999,6.06243,8.8665,6.12296,8.83672,6.18128L13.9814,15.0921C14.143,15.0325,14.3177,15,14.5,15C14.584,15,14.6664,15.0069,14.7467,15.0202L18.3693,6.48574C18.2462,6.3446,18.149,6.1802,18.0854,6ZM13.2036,15.745L8.0861,6.8811800000000005C7.90605,6.95768,7.70797,7,7.5,7C7.41359,7,7.32888,6.99269,7.24647,6.97866L3.62571,15.5086C3.7512,15.651,3.8501,15.8174,3.91465,16L13.0854,16C13.1169,15.9108,13.1566,15.8255,13.2036,15.745Z stroke-opacity=0 stroke=none>');const mm=()=>ym();var bm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.92159,5.93994C6.04014,5.90529,6.152620000000001,5.85639,6.25704,5.79523L9.12729,9.89437C9.045449999999999,10.07959,9,10.28449,9,10.5C9,10.79522,9.08529,11.07053,9.232569999999999,11.30262L4.97573,16.7511L5.92159,5.93994ZM4.92259,5.8848400000000005C4.38078,5.658659999999999,4,5.1238,4,4.5C4,3.671573,4.67157,3,5.5,3C6.2157,3,6.81433,3.50124,6.96399,4.17183L15.1309,4.88634C15.3654,4.36387,15.8902,4,16.5,4C17.328400000000002,4,18,4.67157,18,5.5C18,6.08983,17.659599999999998,6.60015,17.1645,6.84518L18.4264,14.0018C18.4508,14.0006,18.4753,14,18.5,14C19.3284,14,20,14.6716,20,15.5C20,16.328400000000002,19.3284,17,18.5,17C17.932499999999997,17,17.4386,16.6849,17.183799999999998,16.22L5.99686,18.5979C5.946429999999999,19.3807,5.29554,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.869300000000003,3.389292,17.3295,3.94071,17.1077L4.92259,5.8848400000000005ZM5.72452,17.6334C5.69799,17.596,5.6698,17.5599,5.64004,17.525100000000002L10.01843,11.92103C10.16958,11.97223,10.33155,12,10.5,12C10.80059,12,11.08052,11.91158,11.31522,11.75934L17.0606,15.0765C17.0457,15.1271,17.0335,15.1789,17.023899999999998,15.2317L5.72452,17.6334ZM11.92855,10.95875L17.4349,14.1379L16.1699,6.96356C15.9874,6.92257,15.8174,6.8483,15.6667,6.74746L11.99771,10.4165C11.99923,10.44414,12,10.47198,12,10.5C12,10.66,11.97495,10.814160000000001,11.92855,10.95875ZM10.5,9C10.259830000000001,9,10.03285,9.05644,9.83159,9.15679L7.04919,5.1831L15.0493,5.88302C15.054,5.90072,15.059,5.91829,15.0643,5.9357299999999995L11.56066,9.43934C11.28921,9.16789,10.91421,9,10.5,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const _m=()=>bm();var vm=U('<svg viewBox="0 0 22 22"><path d=M4.727219638671875,8.007996215820313L9.973849638671876,2.7629472158203123C10.167279638671875,2.5696791158203123,10.480729638671875,2.5696791158203123,10.674169638671875,2.7629472158203123L13.223329638671874,5.311756215820313C13.416929638671874,5.505236215820313,13.416929638671874,5.8189862158203125,13.223329638671874,6.012466215820313L7.977129638671875,11.257906215820313C7.379859638671875,11.855176215820313,7.407609638671875,12.909396215820312,8.033809638671876,13.535596215820313C8.660409638671876,14.162596215820313,9.713849638671874,14.189996215820312,10.311129638671876,13.591896215820313L15.556929638671875,8.346066215820311C15.750429638671875,8.152526215820313,16.064229638671875,8.152526215820313,16.257629638671872,8.346066215820311L18.806529638671876,10.895266215820312C19.000029638671876,11.088746215820313,19.000029638671876,11.402496215820312,18.806529638671876,11.595976215820313L13.560629638671875,16.841796215820313C11.165619638671876,19.237196215820312,7.197149638671875,19.19919621582031,4.783499638671875,16.785496215820313C2.3698426386718747,14.371896215820312,2.331397638671875,10.403416215820313,4.727219638671875,8.007996215820313ZM12.172299638671875,5.662106215820312L10.323809638671875,3.8136162158203124L5.4287196386718755,8.709096215820313C3.422893638671875,10.714536215820312,3.4549956386718748,14.055196215820313,5.484999638671875,16.08479621582031C7.514609638671875,18.114796215820313,10.855289638671875,18.146496215820314,12.860719638671876,16.141096215820312L15.465629638671874,13.535796215820312L14.090929638671875,12.160756215820312L14.791629638671875,11.460436215820312L16.166229638671876,12.834996215820313L17.755829638671877,11.245226215820313L15.907729638671874,9.396736215820312L11.011839638671875,14.292596215820312C10.042809638671875,15.262396215820312,8.418249638671874,15.243796215820312,7.406019638671875,14.306496215820312L7.333099638671875,14.236296215820312C6.327599638671876,13.230796215820313,6.284009638671876,11.550396215820312,7.276419638671875,10.557586215820312L9.882199638671874,7.952026215820313L8.501079638671875,6.570906215820313L9.201789638671876,5.870186215820313L10.582939638671874,7.251336215820312L12.172299638671875,5.662106215820312Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Cm=e=>(()=>{var r=vm();return bt(r,"class",`icon-overlay ${e??""}`),r})();var xm=U('<svg viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_615><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_615)><path d=M19.672,3.0673368C19.4417,2.9354008,19.1463,3.00292252,18.9994,3.2210900000000002L17.4588,5.50622L16.743299999999998,3.781253L13.9915,7.4662L13.9618,7.51108C13.8339,7.72862,13.8936,8.005659999999999,14.1004,8.15391L14.1462,8.183430000000001C14.3683,8.308720000000001,14.6511,8.25001,14.8022,8.047229999999999L16.4907,5.78571L17.246299999999998,7.60713L19.8374,3.7635389999999997L19.8651,3.717088C19.9871,3.484615,19.9023,3.199273,19.672,3.0673368ZM4.79974,8.462530000000001L10.117740000000001,3.252975C10.31381,3.0610145,10.63152,3.0610145,10.82759,3.252975L13.4115,5.78453C13.6076,5.976710000000001,13.6076,6.28833,13.4115,6.4805L8.093869999999999,11.69045C7.48847,12.28368,7.51659,13.3308,8.151309999999999,13.9528C8.786439999999999,14.5755,9.85421,14.6027,10.45961,14.0087L15.7768,8.79831C15.9729,8.60609,16.2909,8.60609,16.487099999999998,8.79831L19.0705,11.33026C19.2667,11.52244,19.2667,11.83406,19.0705,12.02623L13.7533,17.2366C11.32572,19.6158,7.30328,19.578,4.85679,17.1807C2.410298,14.7834,2.371331,10.84174,4.79974,8.462530000000001ZM12.3461,6.1325199999999995L10.47246,4.29654L5.51079,9.15889C3.477674,11.15076,3.510214,14.4688,5.56784,16.4847C7.62506,18.500999999999998,11.01117,18.5325,13.0439,16.540599999999998L15.6842,13.9529L14.2908,12.58718L15.0011,11.89161L16.394399999999997,13.2569L18.0056,11.67786L16.1323,9.84188L11.16985,14.7046C10.18764,15.6679,8.540980000000001,15.6494,7.51498,14.7184L7.44107,14.6487C6.4219,13.65,6.37771,11.98096,7.38362,10.994869999999999L10.02485,8.40693L8.624939999999999,7.03516L9.335180000000001,6.33919L10.73512,7.71099L12.3461,6.1325199999999995Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const wm=e=>(()=>{var r=xm();return bt(r,"class",`icon-overlay ${e??""}`),r})();var Lm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,17C5.80945,17,3.667717,12.85,3.113386,11.575C2.9622047,11.2,2.9622047,10.8,3.113386,10.425C3.667717,9.15,5.80945,5,11,5C16.165399999999998,5,18.3323,9.15,18.8866,10.425C19.0378,10.8,19.0378,11.2,18.8866,11.575C18.3323,12.85,16.165399999999998,17,11,17ZM4.04567,10.8C3.995276,10.925,3.995276,11.05,4.04567,11.175C4.52441,12.325,6.43937,16,11,16C15.5606,16,17.4756,12.325,17.9543,11.2C18.0047,11.075,18.0047,10.95,17.9543,10.825C17.4756,9.675,15.5606,6,11,6C6.43937,6,4.52441,9.675,4.04567,10.8ZM11,13.5C9.61417,13.5,8.480319999999999,12.375,8.480319999999999,11C8.480319999999999,9.625,9.61417,8.5,11,8.5C12.38583,8.5,13.5197,9.625,13.5197,11C13.5197,12.375,12.38583,13.5,11,13.5ZM11,9.5C10.1685,9.5,9.48819,10.175,9.48819,11C9.48819,11.825,10.1685,12.5,11,12.5C11.8315,12.5,12.51181,11.825,12.51181,11C12.51181,10.175,11.8315,9.5,11,9.5Z stroke-opacity=0 fill-opacity=1>');const $m=()=>Lm();var km=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.80417,14.9887L4.62563,16.167299999999997C4.43037,16.3625,4.43037,16.6791,4.62563,16.8744C4.82089,17.0696,5.13748,17.0696,5.332739999999999,16.8744L6.62638,15.5807C7.75595,16.290100000000002,9.19328,16.7929,11,16.7929C16.165399999999998,16.7929,18.3323,12.64289,18.8866,11.36789C19.0378,10.99289,19.0378,10.59289,18.8866,10.21789C18.5549,9.45486,17.6456,7.66212,15.8617,6.34545L17.3536,4.853553C17.5488,4.658291,17.5488,4.341709,17.3536,4.146447C17.1583,3.9511845,16.8417,3.9511845,16.6464,4.146447L15.0014,5.7915399999999995C13.9314,5.1969,12.61166,4.792893,11,4.792893C5.80945,4.792893,3.667717,8.94289,3.113386,10.21789C2.9622049,10.59289,2.9622049,10.99289,3.113386,11.36789C3.424435,12.08333,4.2353000000000005,13.70399,5.80417,14.9887ZM7.36012,14.847C8.32327,15.4074,9.52286,15.7929,11,15.7929C15.5606,15.7929,17.4756,12.11789,17.9543,10.99289C18.0047,10.86789,18.0047,10.74289,17.9543,10.61789C17.659,9.90846,16.8171,8.23812,15.1447,7.06241L12.96929,9.23782C13.3134,9.66543,13.5197,10.20642,13.5197,10.79289C13.5197,12.16789,12.38583,13.29289,11,13.29289C10.41596,13.29289,9.87667,13.09308,9.44815,12.75896L7.36012,14.847ZM8.794609999999999,11.99829L6.520099999999999,14.2728C5.06905,13.12119,4.32057,11.628250000000001,4.04567,10.96789C3.995275,10.84289,3.995275,10.71789,4.04567,10.59289C4.52441,9.46789,6.43937,5.79289,11,5.79289C12.28868,5.79289,13.3661,6.086320000000001,14.2596,6.53329L12.19759,8.5953C11.84086,8.40257,11.43271,8.29289,11,8.29289C9.61417,8.29289,8.480319999999999,9.41789,8.480319999999999,10.79289C8.480319999999999,11.22918,8.594470000000001,11.64029,8.794609999999999,11.99829ZM10.16528,12.04183C10.404869999999999,12.20032,10.692070000000001,12.29289,11,12.29289C11.8315,12.29289,12.51181,11.61789,12.51181,10.79289C12.51181,10.48318,12.41593,10.194600000000001,12.25216,9.95494L10.16528,12.04183ZM11.43602,9.35687L9.55616,11.236740000000001C9.512,11.09633,9.48819,10.94724,9.48819,10.79289C9.48819,9.96789,10.1685,9.29289,11,9.29289C11.15142,9.29289,11.29782,9.31528,11.43602,9.35687Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Sm=()=>km();var Am=U('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_625><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_625)><path d=M14.5385,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807692,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.88462,4,14.5385,5.61538,14.5385,7.576919999999999L14.5385,9.76923ZM10.88461,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923L13.38462,9.76923L13.38462,7.576919999999999C13.38462,6.23077,12.26923,5.15385,10.88461,5.15385ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.038450000000001,12.07692,11.307680000000001,12.34615,11.307680000000001,12.65385L11.307680000000001,14.5769C11.307680000000001,14.8846,11.038450000000001,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Mm=()=>Am();var Tm=U('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_620><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_620)><path d=M8.38461,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807693,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.46154,4,13.84615,4.961539,14.3462,6.423080000000001C14.4615,6.73077,14.3077,7.038460000000001,14,7.15385C13.69231,7.26923,13.38461,7.11538,13.26923,6.80769C12.92308,5.80769,11.96154,5.15385,10.88462,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.03846,12.07692,11.307690000000001,12.34615,11.307690000000001,12.65385L11.307690000000001,14.5769C11.307690000000001,14.8846,11.03846,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Pm=()=>Tm();var Im=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M16.966900000000003,8.67144C16.6669,8.67144,16.4247,8.91558,16.4247,9.21802L16.4247,16.631500000000003C16.4247,17.322,16.007199999999997,17.9068,15.5139,17.9068L13.93072,17.9068L13.93072,9.2162C13.93072,8.91741,13.68675,8.67144,13.38855,8.67144C13.09036,8.67144,12.84639,8.91741,12.84639,9.21802L12.84639,17.9068L10.151810000000001,17.9068L10.151810000000001,9.21802C10.151810000000001,8.91741,9.90783,8.67144,9.609639999999999,8.67144C9.31145,8.67144,9.06747,8.91741,9.06747,9.219850000000001L9.06747,17.9068L7.48614,17.9068C6.99277,17.9068,6.5753,17.322,6.5753,16.631500000000003L6.5753,9.21802C6.5753,8.91558,6.333130000000001,8.67144,6.03313,8.67144C5.73313,8.67144,5.49096,8.91558,5.49096,9.21802L5.49096,16.631500000000003C5.49096,17.9378,6.385540000000001,19,7.48614,19L15.512,19C16.6127,19,17.509,17.9378,17.509,16.631500000000003L17.509,9.21802C17.509,8.91558,17.2669,8.67144,16.966900000000003,8.67144ZM18.4578,6.21183L4.542169,6.21183C4.243976,6.21183,4,6.45779,4,6.75841C4,7.05903,4.243976,7.30499,4.542169,7.30499L18.4578,7.30499C18.756,7.30499,19,7.05903,19,6.75841C19,6.45779,18.756,6.21183,18.4578,6.21183ZM8.68072,5.10045L14.3193,5.10045C14.6175,5.10045,14.8614,4.852666,14.8614,4.550225C14.8614,4.247783,14.6175,4,14.3193,4L8.68072,4C8.38253,4,8.13855,4.247783,8.13855,4.550225C8.13855,4.852666,8.38253,5.10045,8.68072,5.10045Z stroke-opacity=0 fill-opacity=1>');const Om=()=>Im();var Bm=U('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const Em={horizontalStraightLine:py,horizontalRayLine:my,horizontalSegment:_y,verticalStraightLine:Cy,verticalRayLine:wy,verticalSegment:$y,straightLine:Sy,rayLine:My,segment:Py,arrow:Oy,priceLine:Ey,priceChannelLine:Ry,parallelStraightLine:zy,fibonacciLine:Ky,fibonacciSegment:Uy,fibonacciCircle:Qy,fibonacciSpiral:Yy,fibonacciSpeedResistanceFan:Hy,fibonacciExtension:qy,gannBox:Jy,circle:tm,triangle:rm,rect:om,parallelogram:sm,threeWaves:cm,fiveWaves:fm,eightWaves:hm,anyWaves:pm,abcd:mm,xabcd:_m,weak_magnet:Cm,strong_magnet:wm,lock:Mm,unlock:Pm,visible:$m,invisible:Sm,remove:Om,brush:()=>Bm()};function Dm(e){return[{key:"horizontalStraightLine",text:b("horizontal_straight_line",e)},{key:"horizontalRayLine",text:b("horizontal_ray_line",e)},{key:"horizontalSegment",text:b("horizontal_segment",e)},{key:"verticalStraightLine",text:b("vertical_straight_line",e)},{key:"verticalRayLine",text:b("vertical_ray_line",e)},{key:"verticalSegment",text:b("vertical_segment",e)},{key:"straightLine",text:b("straight_line",e)},{key:"rayLine",text:b("ray_line",e)},{key:"segment",text:b("segment",e)},{key:"arrow",text:b("arrow",e)},{key:"brush",text:b("brush",e)},{key:"priceLine",text:b("price_line",e)}]}function Rm(e){return[{key:"priceChannelLine",text:b("price_channel_line",e)},{key:"parallelStraightLine",text:b("parallel_straight_line",e)}]}function Fm(e){return[{key:"circle",text:b("circle",e)},{key:"rect",text:b("rect",e)},{key:"parallelogram",text:b("parallelogram",e)},{key:"triangle",text:b("triangle",e)}]}function zm(e){return[{key:"fibonacciLine",text:b("fibonacci_line",e)},{key:"fibonacciSegment",text:b("fibonacci_segment",e)},{key:"fibonacciCircle",text:b("fibonacci_circle",e)},{key:"fibonacciSpiral",text:b("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:b("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:b("fibonacci_extension",e)},{key:"gannBox",text:b("gann_box",e)}]}function Nm(e){return[{key:"xabcd",text:b("xabcd",e)},{key:"abcd",text:b("abcd",e)},{key:"threeWaves",text:b("three_waves",e)},{key:"fiveWaves",text:b("five_waves",e)},{key:"eightWaves",text:b("eight_waves",e)},{key:"anyWaves",text:b("any_waves",e)}]}function Km(e){return[{key:"weak_magnet",text:b("weak_magnet",e)},{key:"strong_magnet",text:b("strong_magnet",e)}]}const Nt=e=>Em[e.name](e.class);var Wm=U('<div class=klinecharts-pro-drawing-bar><span class=split-line></span><div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0></path></svg></div></div><div class=item><span style=width:32px;height:32px></span></div><div class=item><span style=width:32px;height:32px></span></div><span class=split-line></span><div class=item><span style=width:32px;height:32px>'),Um=U('<div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0>'),L5=U("<li><span style=padding-left:8px>");const $5="drawing_tools",Zm=e=>{const[r,i]=G("horizontalStraightLine"),[o,s]=G("priceChannelLine"),[l,u]=G("circle"),[f,g]=G("fibonacciLine"),[y,C]=G("xabcd"),[_,$]=G("weak_magnet"),[M,x]=G("normal"),[T,k]=G(!1),[S,D]=G(!0),[F,P]=G(""),z=ln(()=>[{key:"singleLine",icon:r(),list:Dm(e.locale),setter:i},{key:"moreLine",icon:o(),list:Rm(e.locale),setter:s},{key:"polygon",icon:l(),list:Fm(e.locale),setter:u},{key:"fibonacci",icon:f(),list:zm(e.locale),setter:g},{key:"wave",icon:y(),list:Nm(e.locale),setter:C}]),q=ln(()=>Km(e.locale));return(()=>{var Z=Wm(),O=Z.firstChild,W=O.nextSibling,Q=W.firstChild,H=Q.nextSibling,ie=H.firstChild,J=W.nextSibling,N=J.firstChild,re=J.nextSibling,Se=re.firstChild,ge=re.nextSibling,pe=ge.nextSibling,Fe=pe.firstChild;return Y(Z,()=>z().map(Le=>(()=>{var Ge=Um(),Ee=Ge.firstChild,pt=Ee.nextSibling,oe=pt.firstChild;return Ge.addEventListener("blur",()=>{P("")}),Ee.$$click=()=>{e.onDrawingItemClick({groupId:$5,name:Le.icon,visible:S(),lock:T(),mode:M()})},Y(Ee,X(Nt,{get name(){return Le.icon}})),pt.$$click=()=>{Le.key===F()?P(""):P(Le.key)},Y(Ge,(()=>{var te=et(()=>Le.key===F());return()=>te()&&X(Yr,{class:"list",get children(){return Le.list.map(ae=>(()=>{var be=L5(),ze=be.firstChild;return be.$$click=()=>{Le.setter(ae.key),e.onDrawingItemClick({name:ae.key,lock:T(),mode:M()}),P("")},Y(be,X(Nt,{get name(){return ae.key}}),ze),Y(ze,()=>ae.text),be})())}})})(),null),Be(()=>bt(oe,"class",Le.key===F()?"rotate":"")),Ge})()),O),W.addEventListener("blur",()=>{P("")}),Q.$$click=()=>{let Le=_();M()!=="normal"&&(Le="normal"),x(Le),e.onModeChange(Le)},Y(Q,(()=>{var Le=et(()=>_()==="weak_magnet");return()=>Le()?et(()=>M()==="weak_magnet")()?X(Nt,{name:"weak_magnet",class:"selected"}):X(Nt,{name:"weak_magnet"}):et(()=>M()==="strong_magnet")()?X(Nt,{name:"strong_magnet",class:"selected"}):X(Nt,{name:"strong_magnet"})})()),H.$$click=()=>{F()==="mode"?P(""):P("mode")},Y(W,(()=>{var Le=et(()=>F()==="mode");return()=>Le()&&X(Yr,{class:"list",get children(){return q().map(Ge=>(()=>{var Ee=L5(),pt=Ee.firstChild;return Ee.$$click=()=>{$(Ge.key),x(Ge.key),e.onModeChange(Ge.key),P("")},Y(Ee,X(Nt,{get name(){return Ge.key}}),pt),Y(pt,()=>Ge.text),Ee})())}})})(),null),N.$$click=()=>{const Le=!T();k(Le),e.onLockChange(Le)},Y(N,(()=>{var Le=et(()=>!!T());return()=>Le()?X(Nt,{name:"lock"}):X(Nt,{name:"unlock"})})()),Se.$$click=()=>{const Le=!S();D(Le),e.onVisibleChange(Le)},Y(Se,(()=>{var Le=et(()=>!!S());return()=>Le()?X(Nt,{name:"visible"}):X(Nt,{name:"invisible"})})()),Fe.$$click=()=>{e.onRemoveClick($5)},Y(Fe,X(Nt,{name:"remove"})),Be(()=>bt(ie,"class",F()==="mode"?"rotate":"")),Z})()};Rt(["click"]);var k5=U("<li class=title>"),Qm=U('<div style="padding:0 20px">'),S5=U("<li class=row>");const jm=e=>X(w1,{get title(){return b("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var r=Qm();return Y(r,X(Yr,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=k5();return Y(i,()=>b("main_indicator",e.locale)),i})(),et(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=S5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},Y(s,X(C9,{checked:o,get label(){return b(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=k5();return Y(i,()=>b("sub_indicator",e.locale)),i})(),et(()=>["MA","EMA","VOL","MACD","BOLL","KDJ","RSI","BIAS","BRAR","CCI","DMI","CR","PSY","DMA","TRIX","OBV","VR","WR","MTM","EMV","SAR","SMA","ROC","PVT","BBI","AO"].map(i=>{const o=i in e.subIndicators;return(()=>{var s=S5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},Y(s,X(C9,{checked:o,get label(){return b(i.toLowerCase(),e.locale)}})),s})()}))]}})),r}});Rt(["click"]);function A5(e,r){switch(e){case"Etc/UTC":return b("utc",r);case"Pacific/Honolulu":return b("honolulu",r);case"America/Juneau":return b("juneau",r);case"America/Los_Angeles":return b("los_angeles",r);case"America/Chicago":return b("chicago",r);case"America/Toronto":return b("toronto",r);case"America/Sao_Paulo":return b("sao_paulo",r);case"Europe/London":return b("london",r);case"Europe/Berlin":return b("berlin",r);case"Asia/Bahrain":return b("bahrain",r);case"Asia/Dubai":return b("dubai",r);case"Asia/Ashkhabad":return b("ashkhabad",r);case"Asia/Almaty":return b("almaty",r);case"Asia/Bangkok":return b("bangkok",r);case"Asia/Shanghai":return b("shanghai",r);case"Asia/Tokyo":return b("tokyo",r);case"Australia/Sydney":return b("sydney",r);case"Pacific/Norfolk":return b("norfolk",r)}return e}function Ym(e){return[{key:"Etc/UTC",text:b("utc",e)},{key:"Pacific/Honolulu",text:b("honolulu",e)},{key:"America/Juneau",text:b("juneau",e)},{key:"America/Los_Angeles",text:b("los_angeles",e)},{key:"America/Chicago",text:b("chicago",e)},{key:"America/Toronto",text:b("toronto",e)},{key:"America/Sao_Paulo",text:b("sao_paulo",e)},{key:"Europe/London",text:b("london",e)},{key:"Europe/Berlin",text:b("berlin",e)},{key:"Asia/Bahrain",text:b("bahrain",e)},{key:"Asia/Dubai",text:b("dubai",e)},{key:"Asia/Ashkhabad",text:b("ashkhabad",e)},{key:"Asia/Almaty",text:b("almaty",e)},{key:"Asia/Bangkok",text:b("bangkok",e)},{key:"Asia/Shanghai",text:b("shanghai",e)},{key:"Asia/Tokyo",text:b("tokyo",e)},{key:"Australia/Sydney",text:b("sydney",e)},{key:"Pacific/Norfolk",text:b("norfolk",e)}]}var Gm=U('<div style="padding:20px 20px 0 20px">');const Hm=e=>{const[r,i]=G(e.timezone),o=ln(()=>Ym(e.locale));return X(w1,{get title(){return b("timezone",e.locale)},width:320,get buttons(){return[{children:b("confirm",e.locale),onClick:()=>{e.onConfirm(r()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=Gm();return Y(s,X(w9,{style:{width:"100%"},get value(){return r().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},n1=e=>{const r=[{key:"solid",text:b("solid",e)},{key:"dashed",text:b("dashed",e)}],i=[{key:[4,4]}],o=[{key:"true",text:!0},{key:"false",text:!1}],s=[{key:1,text:1},{key:2,text:2},{key:3,text:3},{key:4,text:4},{key:5,text:5},{key:6,text:6},{key:7,text:7},{key:8,text:8},{key:9,text:9},{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:13,text:13},{key:14,text:14},{key:15,text:15}],l=[{key:"fill",text:b("fill",e)},{key:"stroke",text:b("stroke",e)},{key:"stroke_fill",text:b("stroke_fill",e)}],u=[{key:"none",text:b("none",e)},{key:"always",text:b("always",e)},{key:"follow_cross",text:b("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],g=[{key:"normal",text:b("Normal",e)}],y=[{key:"Helvetica Neue",text:b("Helvetica Neue",e)}];return{solid_dashed:r,dashed_value:i,size:s,fill_stroke:l,font_family:y,font_size:f,font_weight:g,none_always_followCross:u,true_false:o}},Vm=e=>{const{font_family:r,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:u,none_always_followCross:f}=n1(e);return[{key:"candle.type",text:b("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:b("candle_solid",e)},{key:"candle_stroke",text:b("candle_stroke",e)},{key:"candle_up_stroke",text:b("candle_up_stroke",e)},{key:"candle_down_stroke",text:b("candle_down_stroke",e)},{key:"ohlc",text:b("ohlc",e)},{key:"area",text:b("area",e)},{key:"heikin_ashi",text:b("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:b("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:b("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:b("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:b("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:b("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:b("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:b("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:b("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:b("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:b("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:b("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:b("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:b("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:b("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:b("Pricemark High Font family",e),component:"select",dataSource:r},{key:"candle.priceMark.high.textWeight",text:b("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:b("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:b("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:b("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:b("Pricemark Low Font family",e),component:"select",dataSource:r},{key:"candle.priceMark.low.textWeight",text:b("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:b("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:b("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:b("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:b("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:b("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:b("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:b("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:b("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:b("Pricemark last text style",e),component:"select",dataSource:u},{key:"candle.priceMark.last.text.size",text:b("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:b("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:b("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:b("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:b("Rect",e)},{key:"standard",text:b("Standard",e)}]},{key:"candle.tooltip.rect.position",text:b("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:b("Fixed",e)},{key:"pointer",text:b("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:b("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:b("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:b("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:b("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:b("Tooltip text color",e),component:"color"}]},qm=e=>{const{fill_stroke:r,font_size:i,font_weight:o,none_always_followCross:s}=n1(e);return[{key:"indicator.ohlc.upColor",text:b("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:b("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:b("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:b("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:b("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:b("Last value mark text style",e),component:"select",dataSource:r},{key:"indicator.lastValueMark.text.size",text:b("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:b("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:b("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:b("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:b("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:b("Standard",e)},{key:"rect",text:b("Rect",e)}]},{key:"indicator.tooltip.showName",text:b("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:b("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:b("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:b("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:b("Tooltip text color",e),component:"color"}]},Xm=e=>{const{font_size:r,size:i,font_weight:o}=n1(e);return[{key:"xAxis.show",text:b("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:b("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:b("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:b("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:b("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:b("Tick text size",e),component:"select",dataSource:r},{key:"xAxis.tickText.weight",text:b("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:b("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:b("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:b("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:b("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:b("Tick line color",e),component:"color"}]},Jm=e=>{const{size:r,font_weight:i,font_size:o}=n1(e);return[{key:"yAxis.show",text:b("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:b("Position",e),component:"select",dataSource:[{key:"right",text:b("Right",e)},{key:"left",text:b("Left",e)}]},{key:"yAxis.type",text:b("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:b("normal",e)},{key:"percentage",text:b("percentage",e)},{key:"log",text:b("log",e)}]},{key:"yAxis.inside",text:b("Inside",e),component:"switch"},{key:"yAxis.reverse",text:b("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:b("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:b("Axis line size",e),component:"select",dataSource:r},{key:"yAxis.axisLine.color",text:b("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:b("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:b("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:b("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:b("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:b("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:b("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:b("Tick line size",e),component:"select",dataSource:r},{key:"yAxis.tickLine.length",text:b("Tick line length",e),component:"select",dataSource:r}]},eb=e=>{const{size:r}=n1(e);return[{key:"grid.show",text:b("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:b("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:b("Horizontal size",e),component:"select",dataSource:r},{key:"grid.horizontal.color",text:b("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:b("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:b("Vertical size",e),component:"select",dataSource:r},{key:"grid.vertical.color",text:b("Vertical color",e),component:"color"}]},tb=e=>{const{solid_dashed:r,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:u}=n1(e);return[{key:"crosshair.show",text:b("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:b("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:b("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:b("Horizontal Line Style",e),component:"select",dataSource:r},{key:"crosshair.horizontal.line.dashed_value",text:b("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:b("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:b("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:b("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:b("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:b("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:b("Horizontal text weight",e),component:"select",dataSource:u},{key:"crosshair.horizontal.text.color",text:b("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:b("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:b("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:b("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:b("Vertical Line Style",e),component:"select",dataSource:r},{key:"crosshair.vertical.line.size",text:b("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:b("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:b("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:b("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:b("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:b("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:b("Vertical text weight",e),component:"select",dataSource:u},{key:"crosshair.vertical.text.color",text:b("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:b("Vertical text background color",e),component:"color"}]};function M5(e){const{size:r}=n1(e);return[...Vm(e),...qm(e),...Xm(e),...Jm(e),...eb(e),...tb(e),{key:"separator.size",text:b("Seperator size",e),component:"select",dataSource:r},{key:"separator.fill",text:b("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:b("Background color",e),component:"color"}]}var nb=U("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),rb=U("<button>"),ib=U("<div class=component><span>");const ob=e=>{const[r,i]=G(e.currentStyles),[o,s]=G(M5(e.locale)),[l,u]=G("candle");sn(()=>{s(M5(e.locale))});const f=(C,_)=>{const $=localStorage.getItem("chartstatedata");let M;$?(M=JSON.parse($),M.styleObj=M.styleObj??{}):M={styleObj:{}};const x=C.key.indexOf(".");x===-1?C.key:C.key.slice(0,x)+""+C.key.slice(x),rr(M.styleObj,C.key,_),localStorage.setItem("chartstatedata",JSON.stringify(M)),Fn(!0);const T={};rr(T,C.key,_),rr(T,C.key,_);const k=ce.utils.clone(r());rr(k,C.key,_),i(k),s(o().map(S=>({...S}))),e.onChange(T)},g=()=>{const C=localStorage.getItem("chartstatedata");let _;C&&(_=JSON.parse(C),_.styleObj&&(_.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(_))),e.onRestoreDefault(o()),e.onClose()},y=[{text:"Candle",key:"candle"},{text:"Indicator",key:"indicator"},{text:"Grid",key:"grid"},{text:"X-Axis",key:"xAxis"},{text:"Y-Axis",key:"yAxis"},{text:"Separator",key:"separator"},{text:"Crosshair",key:"crosshair"}];return X(w1,{get title(){return b("setting",e.locale)},width:640,height:560,get buttons(){return[{children:b("restore_default",e.locale),onClick:()=>{g()}}]},get onClose(){return e.onClose},get children(){var C=nb(),_=C.firstChild,$=_.nextSibling;return Y(_,()=>y.map(M=>(()=>{var x=rb();return x.$$click=()=>u(M.key),Y(x,()=>M.text),Be(()=>Vt(x,`${l()==M.key?"selected":""}`)),x})())),Y($,X(H6,{get each(){return o().filter(M=>M.key.includes(l()))},children:M=>{let x;const T=ce.utils.formatValue(r(),M.key);switch(M.component){case"select":{x=X(w9,{style:{width:"120px"},get value(){return b(T,e.locale)},get dataSource(){return M.dataSource},onSelected:k=>{const S=k.key;f(M,S)}});break}case"switch":{const k=!!T;x=X(Gh,{open:k,onChange:()=>{f(M,!k)}});break}case"color":{x=X(Vp,{style:{width:"120px"},value:T,reactiveChange:!1,onChange:k=>{f(M,k)}});break}}return(()=>{var k=ib(),S=k.firstChild;return Y(S,()=>M.text),Y(k,x,null),k})()}})),C}})};Rt(["click"]);var ab=U('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const sb=e=>X(w1,{get title(){return b("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:b("save",e.locale),onClick:()=>{const r=document.createElement("a");r.download="screenshot",r.href=e.url,document.body.appendChild(r),r.click(),r.remove()}}]},get onClose(){return e.onClose},get children(){var r=ab(),i=r.firstChild;return Be(()=>bt(i,"src",e.url)),r}}),lb={AO:[{paramNameKey:"params_1",precision:0,min:1,default:5},{paramNameKey:"params_2",precision:0,min:1,default:34}],BIAS:[{paramNameKey:"BIAS1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"BIAS2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"BIAS3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"BIAS4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"BIAS5",precision:0,min:1,styleKey:"lines[4].color"}],BOLL:[{paramNameKey:"period",precision:0,min:1,default:20},{paramNameKey:"standard_deviation",precision:2,min:1,default:2}],BRAR:[{paramNameKey:"period",precision:0,min:1,default:26}],BBI:[{paramNameKey:"params_1",precision:0,min:1,default:3},{paramNameKey:"params_2",precision:0,min:1,default:6},{paramNameKey:"params_3",precision:0,min:1,default:12},{paramNameKey:"params_4",precision:0,min:1,default:24}],CCI:[{paramNameKey:"params_1",precision:0,min:1,default:20}],CR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:10},{paramNameKey:"params_3",precision:0,min:1,default:20},{paramNameKey:"params_4",precision:0,min:1,default:40},{paramNameKey:"params_5",precision:0,min:1,default:60}],DMA:[{paramNameKey:"params_1",precision:0,min:1,default:10},{paramNameKey:"params_2",precision:0,min:1,default:50},{paramNameKey:"params_3",precision:0,min:1,default:10}],DMI:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:6}],EMV:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:9}],EMA:[{paramNameKey:"EMA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"EMA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"EMA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"EMA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"EMA5",precision:0,min:1,styleKey:"lines[4].color"}],MTM:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],MA:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],MACD:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:9}],OBV:[{paramNameKey:"params_1",precision:0,min:1,default:30}],PVT:[],PSY:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],ROC:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],RSI:[{paramNameKey:"RSI1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"RSI2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"RSI3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"RSI4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"RSI5",precision:0,min:1,styleKey:"lines[4].color"}],SMA:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:2}],KDJ:[{paramNameKey:"params_1",precision:0,min:1,default:9},{paramNameKey:"params_2",precision:0,min:1,default:3},{paramNameKey:"params_3",precision:0,min:1,default:3}],SAR:[{paramNameKey:"params_1",precision:0,min:1,default:2},{paramNameKey:"params_2",precision:0,min:1,default:2},{paramNameKey:"params_3",precision:0,min:1,default:20}],TRIX:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:9}],VOL:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],VR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:6}],WR:[{paramNameKey:"WR1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"WR2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"WR3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"WR4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"WR5",precision:0,min:1,styleKey:"lines[4].color"}]};var cb=U("<div class=klinecharts-pro-indicator-setting-modal-content>"),ub=U("<div class=param-row><span>");const fb=e=>{const[r,i]=G(ce.utils.clone(e.params.calcParams)),o=s=>lb[s];return X(w1,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:b("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];ce.utils.clone(r()).forEach((u,f)=>{!ce.utils.isValid(u)||u===""?"default"in s[f]&&l.push(s[f].default):l.push(u)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=cb();return Y(s,()=>o(e.params.indicatorName).map((l,u)=>(()=>{var f=ub(),g=f.firstChild;return Y(g,()=>b(l.paramNameKey,e.locale)),Y(f,X(L9,{style:{width:"200px"},get value(){return r()[u]??""},get precision(){return l.precision},get min(){return l.min},onChange:y=>{const C=ce.utils.clone(r());C[u]=y,i(C)}}),null),f})())),s}})};var db=U('<div style="margin:10px 20px 0 20px">'),hb=U('<svg viewBox="0 0 1024 1024"><path d="M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z">'),gb=U("<img alt=symbol>"),pb=U("<li><div><span>");const yb=e=>{const[r,i]=G(""),[o]=R6(r,e.datafeed.searchSymbols.bind(e.datafeed));return X(w1,{get title(){return b("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=db();return Y(s,X(L9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return b("symbol_code",e.locale)},get suffix(){return hb()},get value(){return r()},onChange:l=>{const u=`${l}`;i(u)}}),null),Y(s,X(Yr,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var u=pb(),f=u.firstChild,g=f.firstChild;return u.$$click=()=>{e.onSymbolSelected(l),e.onClose()},Y(f,X(ct,{get when(){return l.logo},get children(){var y=gb();return Be(()=>bt(y,"src",l.logo)),y}}),g),Y(g,()=>l.shortName??l.ticker,null),Y(g,()=>`${l.name?`(${l.name})`:""}`,null),Y(u,()=>l.exchange??"",null),Be(()=>bt(g,"title",l.name??"")),u})()}),null),s}})};Rt(["click"]);class Qi{constructor(r,i){wt(this,"_chart");wt(this,"_charts",new Map);wt(this,"id");const o=ce.init(r,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(r,i){return new Qi(r,i)}getDom(r,i){return this._chart.getDom(r,i)}getSize(r,i){return this._chart.getSize(r,i)}createIndicator(r,i,o){return this._chart.createIndicator(r,i,o)}getIndicators(r){return this._chart.getIndicators(r)}createOverlay(r){return this._chart.createOverlay(r)}getOverlays(r){return this._chart.getOverlays(r)}setPaneOptions(r){return this._chart.setPaneOptions(r)}getPaneOptions(r){return this._chart.getPaneOptions(r)}scrollByDistance(r,i){return this._chart.scrollByDistance(r,i)}scrollToRealTime(r){return this._chart.scrollToRealTime(r)}scrollToDataIndex(r,i){return this._chart.scrollToDataIndex(r,i)}scrollToTimestamp(r,i){return this._chart.scrollToTimestamp(r,i)}zoomAtCoordinate(r,i,o){return this._chart.zoomAtCoordinate(r,i,o)}zoomAtDataIndex(r,i,o){return this._chart.zoomAtDataIndex(r,i,o)}zoomAtTimestamp(r,i,o){return this._chart.zoomAtTimestamp(r,i,o)}convertToPixel(r,i){return this._chart.convertToPixel(r,i)}convertFromPixel(r,i){return this._chart.convertFromPixel(r,i)}executeAction(r,i){return this._chart.executeAction(r,i)}subscribeAction(r,i){return this._chart.subscribeAction(r,i)}unsubscribeAction(r,i){return this._chart.unsubscribeAction(r,i)}getConvertPictureUrl(r,i,o){return this._chart.getConvertPictureUrl(r,i,o)}resize(){return this._chart.resize()}setStyles(r){return this._chart.setStyles(r)}getStyles(){return this._chart.getStyles()}setFormatter(r){return this._chart.setFormatter(r)}getFormatter(){return this._chart.getFormatter()}setLocale(r){return this._chart.setLocale(r)}getLocale(){return this._chart.getLocale()}setTimezone(r){return this._chart.setTimezone(r)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(r){return this._chart.setThousandsSeparator(r)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(r){return this._chart.setDecimalFold(r)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(r){return this._chart.setSymbol(r)}getSymbol(){return this._chart.getSymbol()}setPeriod(r){return this._chart.setPeriod(r)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(r){return this._chart.setOffsetRightDistance(r)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(r){return this._chart.setMaxOffsetLeftDistance(r)}setMaxOffsetRightDistance(r){return this._chart.setMaxOffsetRightDistance(r)}setLeftMinVisibleBarCount(r){return this._chart.setLeftMinVisibleBarCount(r)}setRightMinVisibleBarCount(r){return this._chart.setRightMinVisibleBarCount(r)}setBarSpace(r){return this._chart.setBarSpace(r)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(r){return this._chart.setDataLoader(r)}overrideIndicator(r){return this._chart.overrideIndicator(r)}removeIndicator(r){return this._chart.removeIndicator(r)}overrideOverlay(r){return this._chart.overrideOverlay(r)}removeOverlay(r){return this._chart.removeOverlay(r)}setZoomEnabled(r){return this._chart.setZoomEnabled(r)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(r){this._chart.setZoomAnchor(r)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(r){return this._chart.setScrollEnabled(r)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(r){const i=this._charts.get(r);return i&&(this._chart=i),this}chartById(r){return this._charts.get(r)}getOverlayById(r){return this._chart.getOverlays({id:r})[0]??null}createOrderLine(r){const i=this._chart.getDataList(),o=this._chart.createOverlay({name:"orderLine",paneId:"candle_pane",points:[{timestamp:i[i.length-40].timestamp,value:i[i.length-40].close}]});return o?this._chart.getOverlays({id:o,paneId:"candle_pane"})[0]:null}createOrderLines(r,i){const o=[],s=this._chart.getDataList(),l=Math.floor(s.length/(r+1));for(let g=1;g<=r;g++)o.push({timestamp:s[l*g].timestamp,value:s[l*g].close});const u={name:"orderLine",paneId:"candle_pane",points:o},f=this._chart.createOverlay(u);return!f||la.isArray(f)&&f.length===0?[]:f.map(g=>this._chart.getOverlays({id:g,paneId:"canlde_pane"})[0])}}const mb=e=>{const r=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return r.forEach(o=>{delete i[o]}),i},bb=e=>{const r=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return r.forEach(o=>{delete i[o]}),i},_b=()=>{const e=(x,T,k)=>{const S=localStorage.getItem("chartstatedata");let D;const F=mb(Xe.cloneDeep(x));return S?(D=JSON.parse(S),D.indicators?D.indicators.find(P=>{var z,q;return((z=P.value)==null?void 0:z.name)===F.name&&((q=P.paneOptions)==null?void 0:q.id)===(k==null?void 0:k.id)})?D.indicators=D.indicators.map(P=>{var z;return((z=P.value)==null?void 0:z.id)!==F.id?P:{value:F,isStack:T,paneOptions:k}}):D.indicators.push({value:F,isStack:T,paneOptions:k}):D.indicators=[{value:F,isStack:T,paneOptions:k}]):D={indicators:[{value:F,isStack:T,paneOptions:k}]},localStorage.setItem("chartstatedata",JSON.stringify(D)),Fn(!0),!1},r=x=>{const T=localStorage.getItem("chartstatedata");let k;const S=bb(Xe.cloneDeep(x));return T?(k=JSON.parse(T),k.overlays?k.overlays.find(D=>{var F;return((F=D.value)==null?void 0:F.id)===S.id})?k.overlays=k.overlays.map(D=>{var F;return((F=D.value)==null?void 0:F.id)!==S.id?D:{value:S,paneId:x.paneId}}):k.overlays.push({value:S,paneId:x.paneId}):k.overlays=[{value:x,paneId:x.paneId}]):k={overlays:[{value:S,paneId:x.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(k)),Fn(!0),!1};function i(x,T,k,S,D=!1){T==="VOL"&&(S={axis:{gap:{bottom:2}},...S});const F=(S==null?void 0:S.id)==="candle_pane",P=x.createIndicator({name:T,createTooltipDataSource:z=>{const Z=z.chart.getStyles().indicator.tooltip.features,O=[];return F&&O.push(z.indicator.visible?Z[1]:Z[0]),O.push(Z[2]),O.push(Z[3]),{features:O}}},k,S)??null;if(P&&D){const z=x==null?void 0:x.getIndicators({id:P,name:T})[0];z&&e(z,k,{id:P})}return P}const o=(x,T,k=!1)=>{var P,z,q;const S=(P=ne())==null?void 0:P.createOverlay({...x,paneId:T});if(!S)return!1;const D=(z=ne())==null?void 0:z.getOverlays({id:S})[0],F=Z=>(Z.preventDefault&&Z.preventDefault(),s(Z.overlay.id),!0);D&&(x.properties&&D.setProperties(x.properties,S),(q=ne())==null||q.overrideOverlay({id:D.id,onDrawEnd:Z=>["measure"].includes(D.name)?!1:r(Z.overlay),onPressedMoveEnd:Z=>["measure"].includes(D.name)?!1:r(Z.overlay),onSelected:Z=>r0(Z.overlay),onDeselected:()=>r0(null),onRightClick:D.onRightClick?D.onRightClick:F,onDoubleClick:D.onDoubleClick?D.onDoubleClick:F}),k||r(D))},s=x=>{var k,S,D;const T=localStorage.getItem("chartstatedata");if(T){let F=JSON.parse(T);F.overlays=(k=F.overlays)==null?void 0:k.filter(P=>{var z;return((z=P.value)==null?void 0:z.id)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0)}(S=ne())==null||S.removeOverlay({id:x}),((D=ay())==null?void 0:D.id)===x&&r0(null)},l=(x,T)=>{var S,D;const k=localStorage.getItem("chartstatedata");if(k){let F=JSON.parse(k);F.overlays=(S=F.overlays)==null?void 0:S.map(P=>{var z;return((z=P.value)==null?void 0:z.id)===x&&(P.value={...P.value,...T},P.paneId=T.paneId??P.paneId),P}),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0),(D=ne())==null||D.overrideOverlay({...T,id:x})}},u=(x,T)=>{var S,D;const k=localStorage.getItem("chartstatedata");if(k){let F=JSON.parse(k);F.overlays=(S=F.overlays)==null?void 0:S.map(z=>{var q;return((q=z.value)==null?void 0:q.id)===x&&(z.value.properties={...z.value.properties,...T}),z});const P=(D=ne())==null?void 0:D.getOverlayById(x);P&&P.setProperties(T,x),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0)}},f=x=>{const T=[...b5()];x.added?(i(ne(),x.name,!0,{id:"candle_pane"},!0),T.push(x.name)):(C(x.name,"candle_pane"),T.splice(T.indexOf(x.name),1)),_5(T)},g=x=>{const T={...v5()};if(x.added){const k=i(ne(),x.name,!1,void 0,!0);k&&(T[x.name]=k)}else x.paneId&&(C(x.name,x.paneId),delete T[x.name]);C5(T)},y=(x,T)=>{var S,D;const k=localStorage.getItem("chartstatedata");if(k){let F=JSON.parse(k);F.indicators=(S=F.indicators)==null?void 0:S.map(P=>{var z;return((z=P.value)==null?void 0:z.name)===x.indicatorName&&(P.value.name=x.indicatorName,P.value.calcParams=T,P.paneOptions.id=x.paneId),P}),localStorage.setItem("chartstatedata",JSON.stringify(F)),Fn(!0),(D=ne())==null||D.overrideIndicator({name:x.indicatorName,calcParams:T,paneId:x.paneId})}},C=(x,T,k)=>{var D,F;const S=localStorage.getItem("chartstatedata");if((D=ne())==null||D.removeIndicator({id:x,paneId:k,name:T}),S){let P=JSON.parse(S);P.indicators=(F=P.indicators)==null?void 0:F.filter(z=>{var q,Z;return((q=z.paneOptions)==null?void 0:q.id)!==k&&((Z=z.value)==null?void 0:Z.name)!==T}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Fn(!0)}},_=(x,T)=>{document.documentElement.style.setProperty(x,T,"important");const k=document.querySelector("[data-theme]");k&&k.style.setProperty(x,T,"important")},$=x=>{var T;x.background&&_("--klinecharts-pro-pane-background",x.background),x.backgroundGradientStartColor&&_("--klinecharts-pro-pane-background-gradient-start",x.backgroundGradientStartColor),x.backgroundGradientEndColor&&_("--klinecharts-pro-pane-background-gradient-end",x.backgroundGradientEndColor),(T=x.separator)!=null&&T.color&&_("--klinecharts-pro-border-color",x.separator.color)};return{createIndicator:i,modifyIndicator:y,popIndicator:C,syncIndiObject:e,syncObject:r,pushOverlay:o,modifyOverlay:l,modifyOverlayProperties:u,popOverlay:s,pushMainIndicator:f,pushSubIndicator:g,restoreChartState:async x=>{const T=D=>{const F=JSON.parse(D);F.figures,F.overlays&&F.overlays.forEach(P=>{o(P.value,P.paneId,!0)}),F.indicators&&setTimeout(()=>{const P=[...b5()],z={...v5};F.indicators.forEach(q=>{var Z,O,W;q.value&&((Z=ne())==null||Z.createIndicator(q.value,q.isStack,q.paneOptions),((O=q.paneOptions)==null?void 0:O.id)==="candle_pane"?P.push(q.value.name):z[q.value.name]=(W=q.paneOptions)==null?void 0:W.id)}),_5(P),C5(z)},500)},k=localStorage.getItem("chartstatedata");k&&T(k);const S=JSON.parse(k)??{};x&&($(x),S.styleObj||(S.styleObj=x,localStorage.setItem("chartstatedata",JSON.stringify(S)))),S.styleObj&&m5(S.styleObj)}}};var vb=U('<i class="icon-close klinecharts-pro-load-icon">'),Cb=U("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>");const{createIndicator:i0,pushOverlay:xb,restoreChartState:wb}=_b(),Lb=e=>{let r,i;const[o,s]=G(e.theme),[l,u]=G(e.locale),[f,g]=G(!1),[y,C]=G([...e.mainIndicators]),[_,$]=G({}),[M,x]=G(!1),[T,k]=G({key:e.timezone,text:A5(e.timezone,e.locale)}),[S,D]=G(!1),[F,P]=G(),[z,q]=G(""),[Z,O]=G(e.drawingBarVisible),[W,Q]=G(!1),[H,ie]=G({visible:!1,indicatorName:"",paneId:"",calcParams:[]});Ui(e.period),Wi(e.symbol),e.ref({setTheme:s,getTheme:()=>o(),setStyles:m5,getStyles:()=>Zi()??{},setLocale:u,getLocale:()=>l(),setTimezone:N=>{k({key:N,text:A5(e.timezone,l())})},getTimezone:()=>T().key,setSymbol:Wi,getSymbol:()=>t1(),setPeriod:Ui,getPeriod:()=>Rn(),getInstanceApi:()=>ne(),resize:()=>{var N;return(N=ne())==null?void 0:N.resize()},dispose:()=>{}});const J=()=>{var N;(N=ne())==null||N.resize()};return da(()=>{var re,Se,ge,pe,Fe,Le,Ge,Ee,pt,oe;if(window.addEventListener("resize",J),iy(Qi.init(r,{formatter:{formatDate:te=>{switch(Rn().type){case"minute":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"HH:mm"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"hour":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"MM-DD HH:mm"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"month":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"year":return te.type==="xAxis"?ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY"):ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD")}return ce.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm")}}})),ne()){ey(e.rootElementId);const te=ne().getDom("candle_pane","main");if(te){let ze=document.createElement("div");if(ze.className="klinecharts-pro-watermark",ce.utils.isString(e.watermark)){const ve=e.watermark.replace(/(^\s*)|(\s*$)/g,"");ze.innerHTML=ve}else ze.appendChild(e.watermark);te.appendChild(ze)}const ae=ne().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",ae==null||ae.appendChild(i),(re=ne())==null||re.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),(Se=ne())==null||Se.setBarSpace(400),(ge=ne())==null||ge.subscribeAction("onCrosshairFeatureClick",ze=>{}),(pe=ne())==null||pe.subscribeAction("onIndicatorTooltipFeatureClick",ze=>{var Lt,zn,wn,Ln,Nn;const ve=ze;switch(ve.feature.id){case"visible":{(Lt=ne())==null||Lt.overrideIndicator({name:ve.indicator.name,visible:!0,paneId:ve.paneId});break}case"invisible":{(zn=ne())==null||zn.overrideIndicator({name:ve.indicator.name,visible:!1,paneId:ve.paneId});break}case"setting":{const je=(wn=ne())==null?void 0:wn.getIndicators({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}).at(0);if(!je)return;ie({visible:!0,indicatorName:ve.indicator.name,paneId:ve.paneId,calcParams:je.calcParams});break}case"close":if(ve.paneId==="candle_pane"){const je=[...y()];(Ln=ne())==null||Ln.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),je.splice(je.indexOf(ve.indicator.name),1),C(je)}else{const je={..._()};(Nn=ne())==null||Nn.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),delete je[ve.indicator.name],$(je)}}}),(Fe=ne())==null||Fe.subscribeAction("onCandleTooltipFeatureClick",ze=>{}),(Le=ne())==null||Le.subscribeAction("onZoom",ze=>{}),(Ge=ne())==null||Ge.subscribeAction("onCrosshairChange",ze=>{}),wb(e.overrides);const be=t1();be!=null&&be.priceCurrency?(i.innerHTML=be==null?void 0:be.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(Ee=ne())==null||Ee.setSymbol({ticker:be.ticker,pricePrecision:(be==null?void 0:be.pricePrecision)??2,volumePrecision:(be==null?void 0:be.volumePrecision)??0}),(pt=ne())==null||pt.setPeriod(Rn()),(oe=ne())==null||oe.setDataLoader(e.dataloader)}const N=ne();if(N){y().forEach(ae=>{i0(N,ae,!0,{id:"candle_pane"})});const te={};e.subIndicators.forEach(ae=>{const be=i0(N,ae,!0);be&&(te[ae]=be)}),$(te)}}),Mr(()=>{window.removeEventListener("resize",J),ce.dispose(r)}),sn(N=>{var re,Se,ge;if(!e.dataloader.loading){const pe=t1(),Fe=Rn();return(N==null?void 0:N.period.span)!==Fe.span&&(N==null?void 0:N.period.type)!==Fe.type&&((re=ne())==null||re.setPeriod(Fe)),N!==void 0&&((Se=N.symbol)==null?void 0:Se.ticker)!==pe.ticker&&r0(null),(ge=ne())==null||ge.setSymbol({ticker:pe.ticker,pricePrecision:pe.pricePrecision,volumePrecision:pe.volumePrecision}),Mr(()=>{}),{symbol:pe,period:Fe}}return N}),sn(()=>{var Se,ge;const N=o();(Se=ne())==null||Se.setStyles(N);const re=N==="dark"?"#929AA5":"#76808F";(ge=ne())==null||ge.setStyles({indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:re,activeColor:re,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}})}),sn(()=>{var N;(N=ne())==null||N.setLocale(l())}),sn(()=>{var N;(N=ne())==null||N.setTimezone(T().key)}),sn(()=>{P(Ad(ne().getStyles()))}),sn(()=>{var N;Zi()&&((N=ne())==null||N.setStyles(Zi()))}),[vb(),X(ct,{get when(){return W()},get children(){return X(yb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:N=>{Wi(N)},onClose:()=>{Q(!1)}})}}),X(ct,{get when(){return f()},get children(){return X(jm,{get locale(){return e.locale},get mainIndicators(){return y()},get subIndicators(){return _()},onClose:()=>{g(!1)},onMainIndicatorChange:N=>{var Se;const re=[...y()];N.added?(i0(ne(),N.name,!0,{id:"candle_pane"}),re.push(N.name)):((Se=ne())==null||Se.removeIndicator({name:N.name,paneId:"candle_pane",id:N.id??void 0}),re.splice(re.indexOf(N.name),1)),C(re)},onSubIndicatorChange:N=>{var Se;const re={..._()};if(N.added){const ge=i0(ne(),N.name);ge&&(re[N.name]=ge)}else N.id&&((Se=ne())==null||Se.removeIndicator({name:N.name,id:N.id}),delete re[N.name]);$(re)}})}}),X(ct,{get when(){return M()},get children(){return X(Hm,{get locale(){return e.locale},get timezone(){return T()},onClose:()=>{x(!1)},onConfirm:k})}}),X(ct,{get when(){return S()},get children(){return X(ob,{get locale(){return e.locale},get currentStyles(){return ce.utils.clone(ne().getStyles())},onClose:()=>{D(!1)},onChange:N=>{var re;(re=ne())==null||re.setStyles(N)},onRestoreDefault:N=>{var Se;const re={};N.forEach(ge=>{const pe=ge.key;rr(re,pe,ce.utils.formatValue(F(),pe))}),(Se=ne())==null||Se.setStyles(re)}})}}),X(ct,{get when(){return z().length>0},get children(){return X(sb,{get locale(){return e.locale},get url(){return z()},onClose:()=>{q("")}})}}),X(ct,{get when(){return H().visible},get children(){return X(fb,{get locale(){return e.locale},get params(){return H()},onClose:()=>{ie({visible:!1,indicatorName:"",paneId:"",calcParams:[]})},onConfirm:N=>{var Se;const re=H();(Se=ne())==null||Se.overrideIndicator({name:re.indicatorName,calcParams:N,paneId:re.paneId})}})}}),X(hy,{get locale(){return e.locale},get symbol(){return t1()},get spread(){return Z()},get period(){return Rn()},get periods(){return e.periods},onMenuClick:async()=>{var N;try{await z6(()=>O(!Z())),(N=ne())==null||N.resize()}catch{}},onSymbolClick:()=>{Q(!W())},onPeriodChange:Ui,onIndicatorClick:()=>{g(N=>!N)},onTimezoneClick:()=>{x(N=>!N)},onSettingClick:()=>{D(N=>!N)},onScreenshotClick:()=>{if(ne()){const N=ne().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");q(N)}}}),(()=>{var N=Cb(),re=N.firstChild;Y(N,X(ct,{get when(){return ry()},get children(){return X(x9,{})}}),re),Y(N,X(ct,{get when(){return Z()},get children(){return X(Zm,{get locale(){return e.locale},onDrawingItemClick:ge=>{xb(ge)},onModeChange:ge=>{var pe;(pe=ne())==null||pe.overrideOverlay({mode:ge})},onLockChange:ge=>{var pe;(pe=ne())==null||pe.overrideOverlay({lock:ge})},onVisibleChange:ge=>{var pe;(pe=ne())==null||pe.overrideOverlay({visible:ge})},onRemoveClick:ge=>{var pe;(pe=ne())==null||pe.removeOverlay({groupId:ge})}})}}),re);var Se=r;return typeof Se=="function"?ei(Se,re):r=re,Be(ge=>{var pe=Xp(),Fe=e.overrides.backgroundType??"solid",Le=Z();return pe!==ge.e&&bt(N,"data-orders-pane-visible",ge.e=pe),Fe!==ge.t&&bt(re,"data-pane-style",ge.t=Fe),Le!==ge.a&&bt(re,"data-drawing-bar-visible",ge.a=Le),ge},{e:void 0,t:void 0,a:void 0}),N})()]};class $b{constructor(r){wt(this,"_datafeed");wt(this,"_loading");this._datafeed=r,this._loading=!1}async getBars(r){const{type:i,timestamp:o,symbol:s,period:l,callback:u}=r;if(i==="backward"||i==="update"){u([],!1);return}this._loading=!0,y5(!0);const f=o??new Date().getTime();await(async()=>{const y=Rn(),C=t1(),[_]=this.adjustFromTo(y,f,1),[$]=this.adjustFromTo(y,_,500),M=await this._datafeed.getHistoryKLineData(C,y,$,_);u(M,M.length>0),this._loading=!1,y5(!1)})()}subscribeBar(r){const{symbol:i,period:o,callback:s}=r;this._datafeed.subscribe(t1(),Rn(),s)}unsubscribeBar(r){this._datafeed.unsubscribe(t1(),Rn())}searchSymbols(r){return this._datafeed.searchSymbols(r)}get loading(){return this._loading}set loading(r){this._loading=r}adjustFromTo(r,i,o){let s=i,l=s;switch(r.type){case"minute":s-=s%(60*1e3),l=s-o*r.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*r.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*r.span*24*60*60*1e3;break;case"week":{const u=new Date(s),f=u.getDay()||7;u.setHours(0,0,0,0),s=u.getTime()-(f-1)*24*60*60*1e3,l=s-o*r.span*7*24*60*60*1e3;break}case"month":{const u=new Date(s);s=new Date(u.getFullYear(),u.getMonth(),1).getTime();const f=new Date(s-o*r.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const u=new Date(s);s=new Date(u.getFullYear(),0,1).getTime();const f=new Date(s-o*r.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var kb=U('<svg class=logo viewBox="0 0 80 92"><path d=M28.148808359375,51.7280513671875L22.963588359375,51.7280513671875C21.572648359375002,51.7280513671875,20.445068359375,52.6220613671875,20.445068359375,53.7248813671875L20.445068359375,72.3979013671875C20.445068359375,73.5007013671875,21.572648359375002,74.39470136718751,22.963588359375,74.39470136718751L33.926568359375,74.39470136718751C35.317468359375,74.39470136718751,36.445068359375,73.5007013671875,36.445068359375,72.3979013671875L36.445068359375,53.7248813671875C36.445068359375,52.6220613671875,35.317468359375,51.7280513671875,33.926568359375,51.7280513671875L28.741398359374998,51.7280513671875L28.741398359374998,46.2963223671875C28.741398359374998,46.1665793671875,28.608748359375,46.0614013671875,28.445108359375,46.0614013671875C28.281468359375,46.0614013671875,28.148808359375,46.1665793671875,28.148808359375,46.2963223671875L28.148808359375,51.7280513671875ZM28.741398359374998,74.3948013671875L28.741398359374998,79.82650136718749C28.741398359374998,79.9563013671875,28.608748359375,80.0614013671875,28.445108359375,80.0614013671875C28.281468359375,80.0614013671875,28.148808359375,79.9563013671875,28.148808359375,79.82650136718749L28.148808359375,74.3948013671875L28.741398359374998,74.3948013671875Z></path><path d=M51.148808359374996,44.7280513671875L45.963588359375,44.7280513671875C44.572648359375,44.7280513671875,43.445068359375,45.6220613671875,43.445068359375,46.7248813671875L43.445068359375,65.3979013671875C43.445068359375,66.5007013671875,44.572648359375,67.39470136718751,45.963588359375,67.39470136718751L56.926568359375,67.39470136718751C58.317468359375,67.39470136718751,59.445068359375,66.5007013671875,59.445068359375,65.3979013671875L59.445068359375,46.7248813671875C59.445068359375,45.6220613671875,58.317468359375,44.7280513671875,56.926568359375,44.7280513671875L51.741398359375,44.7280513671875L51.741398359375,39.2963223671875C51.741398359375,39.1665793671875,51.608748359375,39.0614013671875,51.445108359375,39.0614013671875C51.281468359375,39.0614013671875,51.148808359374996,39.1665793671875,51.148808359374996,39.2963223671875L51.148808359374996,44.7280513671875ZM51.741398359375,67.3948013671875L51.741398359375,72.82650136718749C51.741398359375,72.9563013671875,51.608748359375,73.0614013671875,51.445108359375,73.0614013671875C51.281468359375,73.0614013671875,51.148808359374996,72.9563013671875,51.148808359374996,72.82650136718749L51.148808359374996,67.3948013671875L51.741398359375,67.3948013671875Z></path><path d=M17.7274,90.6541C17.5901,90.6541,17.4517,90.6436,17.3121,90.6225C9.93219,89.5095,4.80718,86.7136,2.07787,82.3084C-1.1223,77.1437,0.241766,71.6314,0.56829,70.5137C5.37624,46.647,15.0785,38.4945,21.5025,33.0957C22.9683,31.8633,24.2342,30.7995,25.1676,29.7672C25.4105,29.4984,25.6051,29.2154,25.7556,28.9202C24.7465,29.2231,24.1971,29.4326,24.1703,29.4429C22.908,29.9368,21.4777,29.3247,20.9761,28.076C20.4756,26.8272,21.0897,25.4146,22.352,24.9172C22.5042,24.8571,23.5312,24.4607,25.3073,23.9616C24.087,21.4425,21.7693,18.7949,19.7125,16.6431L19.2819,16.1902C16.2438,12.9776,14.6017,4.80159,14.3036,3.19471C14.1306,2.26212,14.4636,1.30796,15.1814,0.679657C15.8995,0.0512175,16.8976,-0.159672,17.8125,0.123747C22.7731,1.66274,24.2638,1.81255,27.2321,2.11098C28.7357,2.26195,29.83,3.59029,29.6762,5.07662C29.5236,6.56295,28.182,7.64786,26.6784,7.49454C24.4992,7.27569,22.9517,7.09896,20.724,6.56646C21.4493,9.09088,22.3803,11.5427,23.2771,12.4919L23.6876,12.9237C25.3757,14.69,28.9691,18.45,30.7016,22.7299C35.0392,21.9433,40.8791,21.3359,47.7817,21.7249C48.2004,20.7386,48.8054,19.7953,49.5907,18.9135C49.7137,18.7754,49.8498,18.6502,49.9988,18.539C53.6142,15.8508,57.5491,12.857,59.7803,11.0758C58.1028,11.2502,56.1034,11.0278,53.9124,9.70882C53.2439,9.30622,52.5992,8.89427,51.9662,8.48933C48.4668,6.25164,46.497,5.12109,43.4234,5.94853C41.9647,6.34058,40.4622,5.48975,40.0659,4.04789C39.6695,2.60604,40.5296,1.11853,41.9871,0.726471C47.5602,-0.773825,51.4796,1.73271,54.9364,3.9434L54.9364,3.9434C55.5284,4.32176,56.1318,4.70797,56.7564,5.08482C58.3843,6.06556,59.4858,5.76127,61.2899,5.13865C62.3511,4.77234,63.5567,4.35687,64.8675,4.53476C66.3321,4.73254,67.4406,5.56933,67.9103,6.83096C68.7444,9.07333,67.1035,11.5533,65.5797,13.2374C64.6729,14.2394,60.0845,17.7606,56.4519,20.4957C56.9477,20.3369,57.4767,20.2511,58.026,20.2511C59.4281,20.2511,60.6982,20.8102,61.621,21.7153C65.4948,20.6901,67.87,17.9563,67.9033,17.9175C68.78,16.8888,70.3322,16.7577,71.3721,17.6226C72.412,18.4886,72.5457,20.0253,71.6702,21.054C71.5221,21.2286,69.5063,23.5492,66.0787,25.233C69.5399,26.8822,72.9993,29.682,74.1841,34.4145C74.5106,35.7206,73.7062,37.0407,72.3859,37.3638C72.1871,37.4117,71.9884,37.4351,71.792,37.4351C70.687,37.4351,69.6826,36.6932,69.4046,35.5848C68.4378,31.7217,64.8144,29.7431,61.7619,28.7456C60.8298,29.7349,59.5009,30.3535,58.026,30.3535C55.8642,30.3535,54.0162,29.0245,53.2713,27.1474C53.2022,27.138,53.1331,27.1287,53.0642,27.1195C54.232,29.5936,57.0851,31.9259,58.1868,32.665C58.3157,32.7516,58.4423,32.8523,58.5547,32.9599C66.5865,40.6151,72.4887,48.8133,76.0971,57.3287C76.6815,58.7074,76.0249,60.2932,74.6313,60.8702C74.2976,61.01,73.9388,61.082,73.576,61.082C72.5065,61.082,71.4914,60.4582,71.0525,59.4213C67.7577,51.6455,62.331,44.1074,54.9203,37.0116C53.6073,36.1009,48.0984,31.9917,47.2065,26.583C40.9421,26.2679,35.6187,26.8278,31.6725,27.5336C31.6197,29.527,30.9225,31.5172,29.2456,33.3731C28.0614,34.6827,26.5968,35.915,25.0446,37.2188C21.9414,39.8269,18.2648,42.9169,14.8104,48.1192C11.356,53.3215,8.12389,60.6361,5.9098,71.6934C5.88732,71.8035,5.85893,71.9123,5.82344,72.0188C5.81634,72.041,4.57886,76.0413,6.77344,79.5289C8.6332,82.4828,12.4557,84.4139,18.1367,85.2705C19.6297,85.4953,20.6566,86.8762,20.4295,88.3532C20.2213,89.6944,19.0559,90.6541,17.7274,90.6541ZM35.1195,7.03101C33.3502,7.03101,31.9158,5.61208,31.9158,3.86173C31.9158,2.11139,33.3502,0.69245,35.1195,0.69245C36.8889,0.69245,38.3233,2.11139,38.3233,3.86173C38.3233,5.61208,36.8889,7.03101,35.1195,7.03101ZM57.6848,23.1892L58.414,24.4754C58.8984,24.3623,59.3923,24.3435,59.8644,24.4203C60.2191,24.5005,60.5087,24.7182,60.6663,25.0229C60.8636,25.3394,60.8993,25.7346,60.7646,26.1094C60.5988,26.5176,60.2972,26.8749,59.9085,27.1235L60.31,27.8316L59.7886,28.1294L59.3994,27.443C58.9257,27.7175,58.399,27.883,57.8664,27.9247L57.3744,27.0569C57.6378,27.0741,57.9071,27.048,58.1704,26.9797C58.4501,26.9251,58.7239,26.8323,58.9829,26.7044L58.2801,25.4647C57.8047,25.5877,57.3167,25.6065,56.8549,25.5197C56.4913,25.4263,56.196,25.1971,56.0328,24.8814C55.8433,24.5561,55.8127,24.1572,55.9484,23.7789C56.088,23.373,56.3763,23.0149,56.7584,22.7726L56.4166,22.1699L56.938,21.8721L57.2727,22.4625C57.6615,22.2376,58.0888,22.0901,58.5254,22.0301L59.0042,22.8746C58.5548,22.8828,58.103,22.9906,57.6848,23.1892ZM56.9319,24.2961Q57.1278,24.6417,57.7863,24.5856L57.1695,23.4978Q56.6982,23.884,56.9319,24.2961ZM58.9077,25.3462L59.4981,26.3875L59.499,26.3891Q59.9965,26.0045,59.7628,25.5923Q59.573,25.2576,58.9077,25.3462ZM73.2212,66.5065C73.2212,68.2569,74.6555,69.6758,76.4249,69.6758C78.1943,69.6758,79.6286,68.2569,79.6286,66.5065C79.6286,64.7562,78.1943,63.3372,76.4249,63.3372C74.6555,63.3372,73.2212,64.7562,73.2212,66.5065ZM35.9465,91.8045C35.0734,91.8045,34.2038,91.7987,33.3378,91.7858C31.827,91.7636,30.6203,90.5359,30.6428,89.0402C30.6653,87.5457,31.9158,86.3297,33.4183,86.3742C49.6344,86.6059,65.7512,84.6175,67.6134,84.037C72.1953,82.4184,74.5295,79.3603,74.5295,74.9575C74.5295,73.463,75.754,72.2517,77.2648,72.2517C78.7755,72.2517,80,73.463,80,74.9575C80,81.5992,76.148,86.7686,69.4317,89.142C67.0041,89.9999,51.0955,91.8046,35.9465,91.8045ZM25.2731,92C23.5037,92,22.0693,90.5811,22.0693,88.8307C22.0693,87.0804,23.5037,85.6615,25.2731,85.6615C27.0424,85.6615,28.4768,87.0804,28.4768,88.8307C28.4768,90.5811,27.0424,92,25.2731,92Z>');const Sb=kb();class Ab{constructor(r){wt(this,"_container");wt(this,"_chartApi",null);if(ce.utils.isString(r.container)){if(this._container=document.getElementById(r.container),!this._container)throw new Error("Container is null")}else this._container=r.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",r.theme??"light");const i=new $b(r.datafeed);q6(()=>{const o=this;return X(Lb,{ref:s=>{o._chartApi=s},get watermark(){return r.watermark??Sb},get theme(){return r.theme??"light"},get locale(){return r.locale??"zh-CN"},get drawingBarVisible(){return r.drawingBarVisible??!0},get orderPanelVisible(){return r.orderPanelVisible??!1},get symbol(){return r.symbol},get period(){return r.period},get periods(){return r.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return r.overrides??{}},get timezone(){return r.timezone??"Etc/UTC"},get mainIndicators(){return r.mainIndicators??["MA"]},get subIndicators(){return r.subIndicators??["VOL"]},get dataTimestamp(){return r.dataTimestamp??new Date().getTime()},get rootElementId(){var s;return r.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&ce.dispose(this._container),this._container=null,this._chartApi=null}setTheme(r){var i;(i=this._container)==null||i.setAttribute("data-theme",r),this._chartApi.setTheme(r)}getTheme(){return this._chartApi.getTheme()}setStyles(r){this._chartApi.setStyles(r)}getStyles(){return this._chartApi.getStyles()}setLocale(r){this._chartApi.setLocale(r)}getLocale(){return this._chartApi.getLocale()}setTimezone(r){this._chartApi.setTimezone(r)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(r){this._chartApi.setSymbol(r)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(r){this._chartApi.setPeriod(r)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return ne()}resize(){ne().resize()}dispose(){this.destroy()}}const DT="";S6.forEach(e=>{ce.registerOverlay(e)}),lt.DefaultDatafeed=A6,lt.DefaultOrderController=M6,lt.DummyOrderController=T6,lt.KLineChartPro=Ab,lt.loadLocales=qp,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})});
|
|
40
40
|
//# sourceMappingURL=klinecharts-pro.umd.js.map
|