@wangliang139/klinecharts-pro 0.2.28 → 0.2.29
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.
- package/dist/klinecharts-pro.js +3077 -3087
- package/dist/klinecharts-pro.js.map +1 -1
- package/dist/klinecharts-pro.umd.js +15 -15
- package/dist/klinecharts-pro.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
(function(At,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],fe):(At=typeof globalThis<"u"?globalThis:At||self,fe(At.klinechartspro={},At.klinecharts))})(this,function(At,fe){"use strict";var QA=Object.defineProperty;var XA=(At,fe,
|
|
1
|
+
(function(At,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],fe):(At=typeof globalThis<"u"?globalThis:At||self,fe(At.klinechartspro={},At.klinecharts))})(this,function(At,fe){"use strict";var QA=Object.defineProperty;var XA=(At,fe,cn)=>fe in At?QA(At,fe,{enumerable:!0,configurable:!0,writable:!0,value:cn}):At[fe]=cn;var Cn=(At,fe,cn)=>(XA(At,typeof fe!="symbol"?fe+"":fe,cn),cn);function cn(e,n,i){const o=(e.x-n.x)*Math.cos(i)-(e.y-n.y)*Math.sin(i)+n.x,s=(e.x-n.x)*Math.sin(i)+(e.y-n.y)*Math.cos(i)+n.y;return{x:o,y:s}}function P0(e,n){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:n.height}:i={x:e[0].x,y:0}:e[0].x>e[1].x?i={x:0,y:fe.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:n.width,y:fe.utils.getLinearYFromCoordinates(e[0],e[1],{x:n.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function ja(e,n){const i=Math.abs(e.x-n.x),o=Math.abs(e.y-n.y);return Math.sqrt(i*i+o*o)}var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q1={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
|
-
*/U1.exports,function(e,n){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",v=500,y="__lodash_placeholder__",b=1,C=2,L=4,k=1,x=2,$=1,P=2,O=4,T=8,z=16,H=32,U=64,I=128,D=256,V=512,j=30,te="...",ne=800,Ie=16,ot=1,xt=2,wt=3,Ye=1/0,ft=9007199254740991,$e=17976931348623157e292,oe=0/0,Ae=4294967295,dt=Ae-1,ae=Ae>>>1,Me=[["ary",I],["bind",$],["bindKey",P],["curry",T],["curryRight",z],["flip",V],["partial",H],["partialRight",U],["rearg",D]],ue="[object Arguments]",Ee="[object Array]",ut="[object AsyncFunction]",je="[object Boolean]",$t="[object Date]",gn="[object DOMException]",Rt="[object Error]",pn="[object Function]",kn="[object GeneratorFunction]",_t="[object Map]",Pe="[object Number]",ht="[object Null]",Qe="[object Object]",Lt="[object Promise]",Bt="[object Proxy]",qe="[object RegExp]",et="[object Set]",tn="[object String]",tr="[object Symbol]",nr="[object Undefined]",_n="[object WeakMap]",B="[object WeakSet]",W="[object ArrayBuffer]",de="[object DataView]",X="[object Float32Array]",we="[object Float64Array]",ee="[object Int8Array]",tt="[object Int16Array]",nt="[object Int32Array]",Wt="[object Uint8Array]",An="[object Uint8ClampedArray]",Wn="[object Uint16Array]",t1="[object Uint32Array]",Ii=/\b__p \+= '';/g,Oi=/\b(__p \+=) '' \+/g,Ei=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D9=/&(?:amp|lt|gt|quot|#39);/g,R9=/[&<>"']/g,wC=RegExp(D9.source),$C=RegExp(R9.source),LC=/<%-([\s\S]+?)%>/g,SC=/<%([\s\S]+?)%>/g,B9=/<%=([\s\S]+?)%>/g,kC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AC=/^\w*$/,MC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ao=/[\\^$.*+?()[\]{}|]/g,TC=RegExp(Ao.source),Mo=/^\s+/,PC=/\s/,IC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,EC=/,? & /,DC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,F9=/[()=,{}\[\]\/\s]/,RC=/\\(\\)?/g,BC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z9=/\w*$/,FC=/^[-+]0x[0-9a-f]+$/i,zC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,KC=/^0o[0-7]+$/i,HC=/^(?:0|[1-9]\d*)$/,WC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Di=/($^)/,UC=/['\n\r\u2028\u2029\\]/g,Ri="\\ud800-\\udfff",ZC="\\u0300-\\u036f",YC="\\ufe20-\\ufe2f",qC="\\u20d0-\\u20ff",N9=ZC+YC+qC,K9="\\u2700-\\u27bf",H9="a-z\\xdf-\\xf6\\xf8-\\xff",GC="\\xac\\xb1\\xd7\\xf7",VC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jC="\\u2000-\\u206f",QC=" \\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",W9="A-Z\\xc0-\\xd6\\xd8-\\xde",U9="\\ufe0e\\ufe0f",Z9=GC+VC+jC+QC,To="['’]",XC="["+Ri+"]",Y9="["+Z9+"]",Bi="["+N9+"]",q9="\\d+",JC="["+K9+"]",G9="["+H9+"]",V9="[^"+Ri+Z9+q9+K9+H9+W9+"]",Po="\\ud83c[\\udffb-\\udfff]",ex="(?:"+Bi+"|"+Po+")",j9="[^"+Ri+"]",Io="(?:\\ud83c[\\udde6-\\uddff]){2}",Oo="[\\ud800-\\udbff][\\udc00-\\udfff]",n1="["+W9+"]",Q9="\\u200d",X9="(?:"+G9+"|"+V9+")",tx="(?:"+n1+"|"+V9+")",J9="(?:"+To+"(?:d|ll|m|re|s|t|ve))?",e5="(?:"+To+"(?:D|LL|M|RE|S|T|VE))?",t5=ex+"?",n5="["+U9+"]?",nx="(?:"+Q9+"(?:"+[j9,Io,Oo].join("|")+")"+n5+t5+")*",rx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ix="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",r5=n5+t5+nx,ox="(?:"+[JC,Io,Oo].join("|")+")"+r5,ax="(?:"+[j9+Bi+"?",Bi,Io,Oo,XC].join("|")+")",sx=RegExp(To,"g"),lx=RegExp(Bi,"g"),Eo=RegExp(Po+"(?="+Po+")|"+ax+r5,"g"),cx=RegExp([n1+"?"+G9+"+"+J9+"(?="+[Y9,n1,"$"].join("|")+")",tx+"+"+e5+"(?="+[Y9,n1+X9,"$"].join("|")+")",n1+"?"+X9+"+"+J9,n1+"+"+e5,ix,rx,q9,ox].join("|"),"g"),ux=RegExp("["+Q9+Ri+N9+U9+"]"),fx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dx=["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"],hx=-1,Ue={};Ue[X]=Ue[we]=Ue[ee]=Ue[tt]=Ue[nt]=Ue[Wt]=Ue[An]=Ue[Wn]=Ue[t1]=!0,Ue[ue]=Ue[Ee]=Ue[W]=Ue[je]=Ue[de]=Ue[$t]=Ue[Rt]=Ue[pn]=Ue[_t]=Ue[Pe]=Ue[Qe]=Ue[qe]=Ue[et]=Ue[tn]=Ue[_n]=!1;var He={};He[ue]=He[Ee]=He[W]=He[de]=He[je]=He[$t]=He[X]=He[we]=He[ee]=He[tt]=He[nt]=He[_t]=He[Pe]=He[Qe]=He[qe]=He[et]=He[tn]=He[tr]=He[Wt]=He[An]=He[Wn]=He[t1]=!0,He[Rt]=He[pn]=He[_n]=!1;var gx={À:"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"},px={"&":"&","<":"<",">":">",'"':""","'":"'"},_x={"&":"&","<":"<",">":">",""":'"',"'":"'"},mx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yx=parseFloat,bx=parseInt,i5=typeof In=="object"&&In&&In.Object===Object&&In,vx=typeof self=="object"&&self&&self.Object===Object&&self,yt=i5||vx||Function("return this")(),Do=n&&!n.nodeType&&n,mr=Do&&!0&&e&&!e.nodeType&&e,o5=mr&&mr.exports===Do,Ro=o5&&i5.process,nn=function(){try{var A=mr&&mr.require&&mr.require("util").types;return A||Ro&&Ro.binding&&Ro.binding("util")}catch{}}(),a5=nn&&nn.isArrayBuffer,s5=nn&&nn.isDate,l5=nn&&nn.isMap,c5=nn&&nn.isRegExp,u5=nn&&nn.isSet,f5=nn&&nn.isTypedArray;function Ut(A,F,E){switch(E.length){case 0:return A.call(F);case 1:return A.call(F,E[0]);case 2:return A.call(F,E[0],E[1]);case 3:return A.call(F,E[0],E[1],E[2])}return A.apply(F,E)}function Cx(A,F,E,re){for(var he=-1,De=A==null?0:A.length;++he<De;){var gt=A[he];F(re,gt,E(gt),A)}return re}function Zt(A,F){for(var E=-1,re=A==null?0:A.length;++E<re&&F(A[E],E,A)!==!1;);return A}function xx(A,F){for(var E=A==null?0:A.length;E--&&F(A[E],E,A)!==!1;);return A}function d5(A,F){for(var E=-1,re=A==null?0:A.length;++E<re;)if(!F(A[E],E,A))return!1;return!0}function rr(A,F){for(var E=-1,re=A==null?0:A.length,he=0,De=[];++E<re;){var gt=A[E];F(gt,E,A)&&(De[he++]=gt)}return De}function Fi(A,F){var E=A==null?0:A.length;return!!E&&r1(A,F,0)>-1}function Bo(A,F,E){for(var re=-1,he=A==null?0:A.length;++re<he;)if(E(F,A[re]))return!0;return!1}function Ge(A,F){for(var E=-1,re=A==null?0:A.length,he=Array(re);++E<re;)he[E]=F(A[E],E,A);return he}function ir(A,F){for(var E=-1,re=F.length,he=A.length;++E<re;)A[he+E]=F[E];return A}function Fo(A,F,E,re){var he=-1,De=A==null?0:A.length;for(re&&De&&(E=A[++he]);++he<De;)E=F(E,A[he],he,A);return E}function wx(A,F,E,re){var he=A==null?0:A.length;for(re&&he&&(E=A[--he]);he--;)E=F(E,A[he],he,A);return E}function zo(A,F){for(var E=-1,re=A==null?0:A.length;++E<re;)if(F(A[E],E,A))return!0;return!1}var $x=No("length");function Lx(A){return A.split("")}function Sx(A){return A.match(DC)||[]}function h5(A,F,E){var re;return E(A,function(he,De,gt){if(F(he,De,gt))return re=De,!1}),re}function zi(A,F,E,re){for(var he=A.length,De=E+(re?1:-1);re?De--:++De<he;)if(F(A[De],De,A))return De;return-1}function r1(A,F,E){return F===F?Fx(A,F,E):zi(A,g5,E)}function kx(A,F,E,re){for(var he=E-1,De=A.length;++he<De;)if(re(A[he],F))return he;return-1}function g5(A){return A!==A}function p5(A,F){var E=A==null?0:A.length;return E?Ho(A,F)/E:oe}function No(A){return function(F){return F==null?i:F[A]}}function Ko(A){return function(F){return A==null?i:A[F]}}function _5(A,F,E,re,he){return he(A,function(De,gt,Ne){E=re?(re=!1,De):F(E,De,gt,Ne)}),E}function Ax(A,F){var E=A.length;for(A.sort(F);E--;)A[E]=A[E].value;return A}function Ho(A,F){for(var E,re=-1,he=A.length;++re<he;){var De=F(A[re]);De!==i&&(E=E===i?De:E+De)}return E}function Wo(A,F){for(var E=-1,re=Array(A);++E<A;)re[E]=F(E);return re}function Mx(A,F){return Ge(F,function(E){return[E,A[E]]})}function m5(A){return A&&A.slice(0,C5(A)+1).replace(Mo,"")}function Yt(A){return function(F){return A(F)}}function Uo(A,F){return Ge(F,function(E){return A[E]})}function M1(A,F){return A.has(F)}function y5(A,F){for(var E=-1,re=A.length;++E<re&&r1(F,A[E],0)>-1;);return E}function b5(A,F){for(var E=A.length;E--&&r1(F,A[E],0)>-1;);return E}function Tx(A,F){for(var E=A.length,re=0;E--;)A[E]===F&&++re;return re}var Px=Ko(gx),Ix=Ko(px);function Ox(A){return"\\"+mx[A]}function Ex(A,F){return A==null?i:A[F]}function i1(A){return ux.test(A)}function Dx(A){return fx.test(A)}function Rx(A){for(var F,E=[];!(F=A.next()).done;)E.push(F.value);return E}function Zo(A){var F=-1,E=Array(A.size);return A.forEach(function(re,he){E[++F]=[he,re]}),E}function v5(A,F){return function(E){return A(F(E))}}function or(A,F){for(var E=-1,re=A.length,he=0,De=[];++E<re;){var gt=A[E];(gt===F||gt===y)&&(A[E]=y,De[he++]=E)}return De}function Ni(A){var F=-1,E=Array(A.size);return A.forEach(function(re){E[++F]=re}),E}function Bx(A){var F=-1,E=Array(A.size);return A.forEach(function(re){E[++F]=[re,re]}),E}function Fx(A,F,E){for(var re=E-1,he=A.length;++re<he;)if(A[re]===F)return re;return-1}function zx(A,F,E){for(var re=E+1;re--;)if(A[re]===F)return re;return re}function o1(A){return i1(A)?Kx(A):$x(A)}function mn(A){return i1(A)?Hx(A):Lx(A)}function C5(A){for(var F=A.length;F--&&PC.test(A.charAt(F)););return F}var Nx=Ko(_x);function Kx(A){for(var F=Eo.lastIndex=0;Eo.test(A);)++F;return F}function Hx(A){return A.match(Eo)||[]}function Wx(A){return A.match(cx)||[]}var Ux=function A(F){F=F==null?yt:a1.defaults(yt.Object(),F,a1.pick(yt,dx));var E=F.Array,re=F.Date,he=F.Error,De=F.Function,gt=F.Math,Ne=F.Object,Yo=F.RegExp,Zx=F.String,rn=F.TypeError,Ki=E.prototype,Yx=De.prototype,s1=Ne.prototype,Hi=F["__core-js_shared__"],Wi=Yx.toString,Re=s1.hasOwnProperty,qx=0,x5=function(){var t=/[^.]+$/.exec(Hi&&Hi.keys&&Hi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ui=s1.toString,Gx=Wi.call(Ne),Vx=yt._,jx=Yo("^"+Wi.call(Re).replace(Ao,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zi=o5?F.Buffer:i,ar=F.Symbol,Yi=F.Uint8Array,w5=Zi?Zi.allocUnsafe:i,qi=v5(Ne.getPrototypeOf,Ne),$5=Ne.create,L5=s1.propertyIsEnumerable,Gi=Ki.splice,S5=ar?ar.isConcatSpreadable:i,T1=ar?ar.iterator:i,yr=ar?ar.toStringTag:i,Vi=function(){try{var t=wr(Ne,"defineProperty");return t({},"",{}),t}catch{}}(),Qx=F.clearTimeout!==yt.clearTimeout&&F.clearTimeout,Xx=re&&re.now!==yt.Date.now&&re.now,Jx=F.setTimeout!==yt.setTimeout&&F.setTimeout,ji=gt.ceil,Qi=gt.floor,qo=Ne.getOwnPropertySymbols,ew=Zi?Zi.isBuffer:i,k5=F.isFinite,tw=Ki.join,nw=v5(Ne.keys,Ne),pt=gt.max,St=gt.min,rw=re.now,iw=F.parseInt,A5=gt.random,ow=Ki.reverse,Go=wr(F,"DataView"),P1=wr(F,"Map"),Vo=wr(F,"Promise"),l1=wr(F,"Set"),I1=wr(F,"WeakMap"),O1=wr(Ne,"create"),Xi=I1&&new I1,c1={},aw=$r(Go),sw=$r(P1),lw=$r(Vo),cw=$r(l1),uw=$r(I1),Ji=ar?ar.prototype:i,E1=Ji?Ji.valueOf:i,M5=Ji?Ji.toString:i;function p(t){if(rt(t)&&!me(t)&&!(t instanceof Se)){if(t instanceof on)return t;if(Re.call(t,"__wrapped__"))return Tc(t)}return new on(t)}var u1=function(){function t(){}return function(r){if(!Xe(r))return{};if($5)return $5(r);t.prototype=r;var a=new t;return t.prototype=i,a}}();function e0(){}function on(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:LC,evaluate:SC,interpolate:B9,variable:"",imports:{_:p}},p.prototype=e0.prototype,p.prototype.constructor=p,on.prototype=u1(e0.prototype),on.prototype.constructor=on;function Se(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ae,this.__views__=[]}function fw(){var t=new Se(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function dw(){if(this.__filtered__){var t=new Se(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function hw(){var t=this.__wrapped__.value(),r=this.__dir__,a=me(t),u=r<0,h=a?t.length:0,_=L$(0,h,this.__views__),w=_.start,S=_.end,M=S-w,N=u?S:w-1,K=this.__iteratees__,Z=K.length,J=0,ie=St(M,this.__takeCount__);if(!a||!u&&h==M&&ie==M)return J5(t,this.__actions__);var ce=[];e:for(;M--&&J<ie;){N+=r;for(var ve=-1,se=t[N];++ve<Z;){var Le=K[ve],ke=Le.iteratee,Vt=Le.type,Et=ke(se);if(Vt==xt)se=Et;else if(!Et){if(Vt==ot)continue e;break e}}ce[J++]=se}return ce}Se.prototype=u1(e0.prototype),Se.prototype.constructor=Se;function br(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function gw(){this.__data__=O1?O1(null):{},this.size=0}function pw(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function _w(t){var r=this.__data__;if(O1){var a=r[t];return a===g?i:a}return Re.call(r,t)?r[t]:i}function mw(t){var r=this.__data__;return O1?r[t]!==i:Re.call(r,t)}function yw(t,r){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=O1&&r===i?g:r,this}br.prototype.clear=gw,br.prototype.delete=pw,br.prototype.get=_w,br.prototype.has=mw,br.prototype.set=yw;function Un(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function bw(){this.__data__=[],this.size=0}function vw(t){var r=this.__data__,a=t0(r,t);if(a<0)return!1;var u=r.length-1;return a==u?r.pop():Gi.call(r,a,1),--this.size,!0}function Cw(t){var r=this.__data__,a=t0(r,t);return a<0?i:r[a][1]}function xw(t){return t0(this.__data__,t)>-1}function ww(t,r){var a=this.__data__,u=t0(a,t);return u<0?(++this.size,a.push([t,r])):a[u][1]=r,this}Un.prototype.clear=bw,Un.prototype.delete=vw,Un.prototype.get=Cw,Un.prototype.has=xw,Un.prototype.set=ww;function Zn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function $w(){this.size=0,this.__data__={hash:new br,map:new(P1||Un),string:new br}}function Lw(t){var r=h0(this,t).delete(t);return this.size-=r?1:0,r}function Sw(t){return h0(this,t).get(t)}function kw(t){return h0(this,t).has(t)}function Aw(t,r){var a=h0(this,t),u=a.size;return a.set(t,r),this.size+=a.size==u?0:1,this}Zn.prototype.clear=$w,Zn.prototype.delete=Lw,Zn.prototype.get=Sw,Zn.prototype.has=kw,Zn.prototype.set=Aw;function vr(t){var r=-1,a=t==null?0:t.length;for(this.__data__=new Zn;++r<a;)this.add(t[r])}function Mw(t){return this.__data__.set(t,g),this}function Tw(t){return this.__data__.has(t)}vr.prototype.add=vr.prototype.push=Mw,vr.prototype.has=Tw;function yn(t){var r=this.__data__=new Un(t);this.size=r.size}function Pw(){this.__data__=new Un,this.size=0}function Iw(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}function Ow(t){return this.__data__.get(t)}function Ew(t){return this.__data__.has(t)}function Dw(t,r){var a=this.__data__;if(a instanceof Un){var u=a.__data__;if(!P1||u.length<s-1)return u.push([t,r]),this.size=++a.size,this;a=this.__data__=new Zn(u)}return a.set(t,r),this.size=a.size,this}yn.prototype.clear=Pw,yn.prototype.delete=Iw,yn.prototype.get=Ow,yn.prototype.has=Ew,yn.prototype.set=Dw;function T5(t,r){var a=me(t),u=!a&&Lr(t),h=!a&&!u&&fr(t),_=!a&&!u&&!h&&g1(t),w=a||u||h||_,S=w?Wo(t.length,Zx):[],M=S.length;for(var N in t)(r||Re.call(t,N))&&!(w&&(N=="length"||h&&(N=="offset"||N=="parent")||_&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Gn(N,M)))&&S.push(N);return S}function P5(t){var r=t.length;return r?t[aa(0,r-1)]:i}function Rw(t,r){return g0(Ft(t),Cr(r,0,t.length))}function Bw(t){return g0(Ft(t))}function jo(t,r,a){(a!==i&&!vn(t[r],a)||a===i&&!(r in t))&&Mn(t,r,a)}function D1(t,r,a){var u=t[r];(!(Re.call(t,r)&&vn(u,a))||a===i&&!(r in t))&&Mn(t,r,a)}function t0(t,r){for(var a=t.length;a--;)if(vn(t[a][0],r))return a;return-1}function Fw(t,r,a,u){return sr(t,function(h,_,w){r(u,h,a(h),w)}),u}function I5(t,r){return t&&Pn(r,mt(r),t)}function zw(t,r){return t&&Pn(r,Nt(r),t)}function Mn(t,r,a){r=="__proto__"&&Vi?Vi(t,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[r]=a}function Qo(t,r){for(var a=-1,u=r.length,h=E(u),_=t==null;++a<u;)h[a]=_?i:Ia(t,r[a]);return h}function Cr(t,r,a){return t===t&&(a!==i&&(t=t<=a?t:a),r!==i&&(t=t>=r?t:r)),t}function an(t,r,a,u,h,_){var w,S=r&b,M=r&C,N=r&L;if(a&&(w=h?a(t,u,h,_):a(t)),w!==i)return w;if(!Xe(t))return t;var K=me(t);if(K){if(w=k$(t),!S)return Ft(t,w)}else{var Z=kt(t),J=Z==pn||Z==kn;if(fr(t))return nc(t,S);if(Z==Qe||Z==ue||J&&!h){if(w=M||J?{}:Cc(t),!S)return M?_$(t,zw(w,t)):p$(t,I5(w,t))}else{if(!He[Z])return h?t:{};w=A$(t,Z,S)}}_||(_=new yn);var ie=_.get(t);if(ie)return ie;_.set(t,w),jc(t)?t.forEach(function(se){w.add(an(se,r,a,se,t,_))}):Gc(t)&&t.forEach(function(se,Le){w.set(Le,an(se,r,a,Le,t,_))});var ce=N?M?ma:_a:M?Nt:mt,ve=K?i:ce(t);return Zt(ve||t,function(se,Le){ve&&(Le=se,se=t[Le]),D1(w,Le,an(se,r,a,Le,t,_))}),w}function Nw(t){var r=mt(t);return function(a){return O5(a,t,r)}}function O5(t,r,a){var u=a.length;if(t==null)return!u;for(t=Ne(t);u--;){var h=a[u],_=r[h],w=t[h];if(w===i&&!(h in t)||!_(w))return!1}return!0}function E5(t,r,a){if(typeof t!="function")throw new rn(c);return H1(function(){t.apply(i,a)},r)}function R1(t,r,a,u){var h=-1,_=Fi,w=!0,S=t.length,M=[],N=r.length;if(!S)return M;a&&(r=Ge(r,Yt(a))),u?(_=Bo,w=!1):r.length>=s&&(_=M1,w=!1,r=new vr(r));e:for(;++h<S;){var K=t[h],Z=a==null?K:a(K);if(K=u||K!==0?K:0,w&&Z===Z){for(var J=N;J--;)if(r[J]===Z)continue e;M.push(K)}else _(r,Z,u)||M.push(K)}return M}var sr=sc(Tn),D5=sc(Jo,!0);function Kw(t,r){var a=!0;return sr(t,function(u,h,_){return a=!!r(u,h,_),a}),a}function n0(t,r,a){for(var u=-1,h=t.length;++u<h;){var _=t[u],w=r(_);if(w!=null&&(S===i?w===w&&!Gt(w):a(w,S)))var S=w,M=_}return M}function Hw(t,r,a,u){var h=t.length;for(a=be(a),a<0&&(a=-a>h?0:h+a),u=u===i||u>h?h:be(u),u<0&&(u+=h),u=a>u?0:Xc(u);a<u;)t[a++]=r;return t}function R5(t,r){var a=[];return sr(t,function(u,h,_){r(u,h,_)&&a.push(u)}),a}function bt(t,r,a,u,h){var _=-1,w=t.length;for(a||(a=T$),h||(h=[]);++_<w;){var S=t[_];r>0&&a(S)?r>1?bt(S,r-1,a,u,h):ir(h,S):u||(h[h.length]=S)}return h}var Xo=lc(),B5=lc(!0);function Tn(t,r){return t&&Xo(t,r,mt)}function Jo(t,r){return t&&B5(t,r,mt)}function r0(t,r){return rr(r,function(a){return Vn(t[a])})}function xr(t,r){r=cr(r,t);for(var a=0,u=r.length;t!=null&&a<u;)t=t[bn(r[a++])];return a&&a==u?t:i}function F5(t,r,a){var u=r(t);return me(t)?u:ir(u,a(t))}function It(t){return t==null?t===i?nr:ht:yr&&yr in Ne(t)?$$(t):B$(t)}function ea(t,r){return t>r}function Ww(t,r){return t!=null&&Re.call(t,r)}function Uw(t,r){return t!=null&&r in Ne(t)}function Zw(t,r,a){return t>=St(r,a)&&t<pt(r,a)}function ta(t,r,a){for(var u=a?Bo:Fi,h=t[0].length,_=t.length,w=_,S=E(_),M=1/0,N=[];w--;){var K=t[w];w&&r&&(K=Ge(K,Yt(r))),M=St(K.length,M),S[w]=!a&&(r||h>=120&&K.length>=120)?new vr(w&&K):i}K=t[0];var Z=-1,J=S[0];e:for(;++Z<h&&N.length<M;){var ie=K[Z],ce=r?r(ie):ie;if(ie=a||ie!==0?ie:0,!(J?M1(J,ce):u(N,ce,a))){for(w=_;--w;){var ve=S[w];if(!(ve?M1(ve,ce):u(t[w],ce,a)))continue e}J&&J.push(ce),N.push(ie)}}return N}function Yw(t,r,a,u){return Tn(t,function(h,_,w){r(u,a(h),_,w)}),u}function B1(t,r,a){r=cr(r,t),t=Lc(t,r);var u=t==null?t:t[bn(ln(r))];return u==null?i:Ut(u,t,a)}function z5(t){return rt(t)&&It(t)==ue}function qw(t){return rt(t)&&It(t)==W}function Gw(t){return rt(t)&&It(t)==$t}function F1(t,r,a,u,h){return t===r?!0:t==null||r==null||!rt(t)&&!rt(r)?t!==t&&r!==r:Vw(t,r,a,u,F1,h)}function Vw(t,r,a,u,h,_){var w=me(t),S=me(r),M=w?Ee:kt(t),N=S?Ee:kt(r);M=M==ue?Qe:M,N=N==ue?Qe:N;var K=M==Qe,Z=N==Qe,J=M==N;if(J&&fr(t)){if(!fr(r))return!1;w=!0,K=!1}if(J&&!K)return _||(_=new yn),w||g1(t)?yc(t,r,a,u,h,_):x$(t,r,M,a,u,h,_);if(!(a&k)){var ie=K&&Re.call(t,"__wrapped__"),ce=Z&&Re.call(r,"__wrapped__");if(ie||ce){var ve=ie?t.value():t,se=ce?r.value():r;return _||(_=new yn),h(ve,se,a,u,_)}}return J?(_||(_=new yn),w$(t,r,a,u,h,_)):!1}function jw(t){return rt(t)&&kt(t)==_t}function na(t,r,a,u){var h=a.length,_=h,w=!u;if(t==null)return!_;for(t=Ne(t);h--;){var S=a[h];if(w&&S[2]?S[1]!==t[S[0]]:!(S[0]in t))return!1}for(;++h<_;){S=a[h];var M=S[0],N=t[M],K=S[1];if(w&&S[2]){if(N===i&&!(M in t))return!1}else{var Z=new yn;if(u)var J=u(N,K,M,t,r,Z);if(!(J===i?F1(K,N,k|x,u,Z):J))return!1}}return!0}function N5(t){if(!Xe(t)||I$(t))return!1;var r=Vn(t)?jx:NC;return r.test($r(t))}function Qw(t){return rt(t)&&It(t)==qe}function Xw(t){return rt(t)&&kt(t)==et}function Jw(t){return rt(t)&&v0(t.length)&&!!Ue[It(t)]}function K5(t){return typeof t=="function"?t:t==null?Kt:typeof t=="object"?me(t)?U5(t[0],t[1]):W5(t):u2(t)}function ra(t){if(!K1(t))return nw(t);var r=[];for(var a in Ne(t))Re.call(t,a)&&a!="constructor"&&r.push(a);return r}function e$(t){if(!Xe(t))return R$(t);var r=K1(t),a=[];for(var u in t)u=="constructor"&&(r||!Re.call(t,u))||a.push(u);return a}function ia(t,r){return t<r}function H5(t,r){var a=-1,u=zt(t)?E(t.length):[];return sr(t,function(h,_,w){u[++a]=r(h,_,w)}),u}function W5(t){var r=ba(t);return r.length==1&&r[0][2]?wc(r[0][0],r[0][1]):function(a){return a===t||na(a,t,r)}}function U5(t,r){return Ca(t)&&xc(r)?wc(bn(t),r):function(a){var u=Ia(a,t);return u===i&&u===r?Oa(a,t):F1(r,u,k|x)}}function i0(t,r,a,u,h){t!==r&&Xo(r,function(_,w){if(h||(h=new yn),Xe(_))t$(t,r,w,a,i0,u,h);else{var S=u?u(wa(t,w),_,w+"",t,r,h):i;S===i&&(S=_),jo(t,w,S)}},Nt)}function t$(t,r,a,u,h,_,w){var S=wa(t,a),M=wa(r,a),N=w.get(M);if(N){jo(t,a,N);return}var K=_?_(S,M,a+"",t,r,w):i,Z=K===i;if(Z){var J=me(M),ie=!J&&fr(M),ce=!J&&!ie&&g1(M);K=M,J||ie||ce?me(S)?K=S:at(S)?K=Ft(S):ie?(Z=!1,K=nc(M,!0)):ce?(Z=!1,K=rc(M,!0)):K=[]:W1(M)||Lr(M)?(K=S,Lr(S)?K=Jc(S):(!Xe(S)||Vn(S))&&(K=Cc(M))):Z=!1}Z&&(w.set(M,K),h(K,M,u,_,w),w.delete(M)),jo(t,a,K)}function Z5(t,r){var a=t.length;if(a)return r+=r<0?a:0,Gn(r,a)?t[r]:i}function Y5(t,r,a){r.length?r=Ge(r,function(_){return me(_)?function(w){return xr(w,_.length===1?_[0]:_)}:_}):r=[Kt];var u=-1;r=Ge(r,Yt(le()));var h=H5(t,function(_,w,S){var M=Ge(r,function(N){return N(_)});return{criteria:M,index:++u,value:_}});return Ax(h,function(_,w){return g$(_,w,a)})}function n$(t,r){return q5(t,r,function(a,u){return Oa(t,u)})}function q5(t,r,a){for(var u=-1,h=r.length,_={};++u<h;){var w=r[u],S=xr(t,w);a(S,w)&&z1(_,cr(w,t),S)}return _}function r$(t){return function(r){return xr(r,t)}}function oa(t,r,a,u){var h=u?kx:r1,_=-1,w=r.length,S=t;for(t===r&&(r=Ft(r)),a&&(S=Ge(t,Yt(a)));++_<w;)for(var M=0,N=r[_],K=a?a(N):N;(M=h(S,K,M,u))>-1;)S!==t&&Gi.call(S,M,1),Gi.call(t,M,1);return t}function G5(t,r){for(var a=t?r.length:0,u=a-1;a--;){var h=r[a];if(a==u||h!==_){var _=h;Gn(h)?Gi.call(t,h,1):ca(t,h)}}return t}function aa(t,r){return t+Qi(A5()*(r-t+1))}function i$(t,r,a,u){for(var h=-1,_=pt(ji((r-t)/(a||1)),0),w=E(_);_--;)w[u?_:++h]=t,t+=a;return w}function sa(t,r){var a="";if(!t||r<1||r>ft)return a;do r%2&&(a+=t),r=Qi(r/2),r&&(t+=t);while(r);return a}function Ce(t,r){return $a($c(t,r,Kt),t+"")}function o$(t){return P5(p1(t))}function a$(t,r){var a=p1(t);return g0(a,Cr(r,0,a.length))}function z1(t,r,a,u){if(!Xe(t))return t;r=cr(r,t);for(var h=-1,_=r.length,w=_-1,S=t;S!=null&&++h<_;){var M=bn(r[h]),N=a;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=w){var K=S[M];N=u?u(K,M,S):i,N===i&&(N=Xe(K)?K:Gn(r[h+1])?[]:{})}D1(S,M,N),S=S[M]}return t}var V5=Xi?function(t,r){return Xi.set(t,r),t}:Kt,s$=Vi?function(t,r){return Vi(t,"toString",{configurable:!0,enumerable:!1,value:Da(r),writable:!0})}:Kt;function l$(t){return g0(p1(t))}function sn(t,r,a){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var _=E(h);++u<h;)_[u]=t[u+r];return _}function c$(t,r){var a;return sr(t,function(u,h,_){return a=r(u,h,_),!a}),!!a}function o0(t,r,a){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=ae){for(;u<h;){var _=u+h>>>1,w=t[_];w!==null&&!Gt(w)&&(a?w<=r:w<r)?u=_+1:h=_}return h}return la(t,r,Kt,a)}function la(t,r,a,u){var h=0,_=t==null?0:t.length;if(_===0)return 0;r=a(r);for(var w=r!==r,S=r===null,M=Gt(r),N=r===i;h<_;){var K=Qi((h+_)/2),Z=a(t[K]),J=Z!==i,ie=Z===null,ce=Z===Z,ve=Gt(Z);if(w)var se=u||ce;else N?se=ce&&(u||J):S?se=ce&&J&&(u||!ie):M?se=ce&&J&&!ie&&(u||!ve):ie||ve?se=!1:se=u?Z<=r:Z<r;se?h=K+1:_=K}return St(_,dt)}function j5(t,r){for(var a=-1,u=t.length,h=0,_=[];++a<u;){var w=t[a],S=r?r(w):w;if(!a||!vn(S,M)){var M=S;_[h++]=w===0?0:w}}return _}function Q5(t){return typeof t=="number"?t:Gt(t)?oe:+t}function qt(t){if(typeof t=="string")return t;if(me(t))return Ge(t,qt)+"";if(Gt(t))return M5?M5.call(t):"";var r=t+"";return r=="0"&&1/t==-Ye?"-0":r}function lr(t,r,a){var u=-1,h=Fi,_=t.length,w=!0,S=[],M=S;if(a)w=!1,h=Bo;else if(_>=s){var N=r?null:v$(t);if(N)return Ni(N);w=!1,h=M1,M=new vr}else M=r?[]:S;e:for(;++u<_;){var K=t[u],Z=r?r(K):K;if(K=a||K!==0?K:0,w&&Z===Z){for(var J=M.length;J--;)if(M[J]===Z)continue e;r&&M.push(Z),S.push(K)}else h(M,Z,a)||(M!==S&&M.push(Z),S.push(K))}return S}function ca(t,r){r=cr(r,t);var a=-1,u=r.length;if(!u)return!0;for(;++a<u;){var h=bn(r[a]);if(h==="__proto__"&&!Re.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&a<u-1)return!1}var _=Lc(t,r);return _==null||delete _[bn(ln(r))]}function X5(t,r,a,u){return z1(t,r,a(xr(t,r)),u)}function a0(t,r,a,u){for(var h=t.length,_=u?h:-1;(u?_--:++_<h)&&r(t[_],_,t););return a?sn(t,u?0:_,u?_+1:h):sn(t,u?_+1:0,u?h:_)}function J5(t,r){var a=t;return a instanceof Se&&(a=a.value()),Fo(r,function(u,h){return h.func.apply(h.thisArg,ir([u],h.args))},a)}function ua(t,r,a){var u=t.length;if(u<2)return u?lr(t[0]):[];for(var h=-1,_=E(u);++h<u;)for(var w=t[h],S=-1;++S<u;)S!=h&&(_[h]=R1(_[h]||w,t[S],r,a));return lr(bt(_,1),r,a)}function ec(t,r,a){for(var u=-1,h=t.length,_=r.length,w={};++u<h;){var S=u<_?r[u]:i;a(w,t[u],S)}return w}function fa(t){return at(t)?t:[]}function da(t){return typeof t=="function"?t:Kt}function cr(t,r){return me(t)?t:Ca(t,r)?[t]:Mc(Be(t))}var u$=Ce;function ur(t,r,a){var u=t.length;return a=a===i?u:a,!r&&a>=u?t:sn(t,r,a)}var tc=Qx||function(t){return yt.clearTimeout(t)};function nc(t,r){if(r)return t.slice();var a=t.length,u=w5?w5(a):new t.constructor(a);return t.copy(u),u}function ha(t){var r=new t.constructor(t.byteLength);return new Yi(r).set(new Yi(t)),r}function f$(t,r){var a=r?ha(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function d$(t){var r=new t.constructor(t.source,z9.exec(t));return r.lastIndex=t.lastIndex,r}function h$(t){return E1?Ne(E1.call(t)):{}}function rc(t,r){var a=r?ha(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function ic(t,r){if(t!==r){var a=t!==i,u=t===null,h=t===t,_=Gt(t),w=r!==i,S=r===null,M=r===r,N=Gt(r);if(!S&&!N&&!_&&t>r||_&&w&&M&&!S&&!N||u&&w&&M||!a&&M||!h)return 1;if(!u&&!_&&!N&&t<r||N&&a&&h&&!u&&!_||S&&a&&h||!w&&h||!M)return-1}return 0}function g$(t,r,a){for(var u=-1,h=t.criteria,_=r.criteria,w=h.length,S=a.length;++u<w;){var M=ic(h[u],_[u]);if(M){if(u>=S)return M;var N=a[u];return M*(N=="desc"?-1:1)}}return t.index-r.index}function oc(t,r,a,u){for(var h=-1,_=t.length,w=a.length,S=-1,M=r.length,N=pt(_-w,0),K=E(M+N),Z=!u;++S<M;)K[S]=r[S];for(;++h<w;)(Z||h<_)&&(K[a[h]]=t[h]);for(;N--;)K[S++]=t[h++];return K}function ac(t,r,a,u){for(var h=-1,_=t.length,w=-1,S=a.length,M=-1,N=r.length,K=pt(_-S,0),Z=E(K+N),J=!u;++h<K;)Z[h]=t[h];for(var ie=h;++M<N;)Z[ie+M]=r[M];for(;++w<S;)(J||h<_)&&(Z[ie+a[w]]=t[h++]);return Z}function Ft(t,r){var a=-1,u=t.length;for(r||(r=E(u));++a<u;)r[a]=t[a];return r}function Pn(t,r,a,u){var h=!a;a||(a={});for(var _=-1,w=r.length;++_<w;){var S=r[_],M=u?u(a[S],t[S],S,a,t):i;M===i&&(M=t[S]),h?Mn(a,S,M):D1(a,S,M)}return a}function p$(t,r){return Pn(t,va(t),r)}function _$(t,r){return Pn(t,bc(t),r)}function s0(t,r){return function(a,u){var h=me(a)?Cx:Fw,_=r?r():{};return h(a,t,le(u,2),_)}}function f1(t){return Ce(function(r,a){var u=-1,h=a.length,_=h>1?a[h-1]:i,w=h>2?a[2]:i;for(_=t.length>3&&typeof _=="function"?(h--,_):i,w&&Ot(a[0],a[1],w)&&(_=h<3?i:_,h=1),r=Ne(r);++u<h;){var S=a[u];S&&t(r,S,u,_)}return r})}function sc(t,r){return function(a,u){if(a==null)return a;if(!zt(a))return t(a,u);for(var h=a.length,_=r?h:-1,w=Ne(a);(r?_--:++_<h)&&u(w[_],_,w)!==!1;);return a}}function lc(t){return function(r,a,u){for(var h=-1,_=Ne(r),w=u(r),S=w.length;S--;){var M=w[t?S:++h];if(a(_[M],M,_)===!1)break}return r}}function m$(t,r,a){var u=r&$,h=N1(t);function _(){var w=this&&this!==yt&&this instanceof _?h:t;return w.apply(u?a:this,arguments)}return _}function cc(t){return function(r){r=Be(r);var a=i1(r)?mn(r):i,u=a?a[0]:r.charAt(0),h=a?ur(a,1).join(""):r.slice(1);return u[t]()+h}}function d1(t){return function(r){return Fo(l2(s2(r).replace(sx,"")),t,"")}}function N1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=u1(t.prototype),u=t.apply(a,r);return Xe(u)?u:a}}function y$(t,r,a){var u=N1(t);function h(){for(var _=arguments.length,w=E(_),S=_,M=h1(h);S--;)w[S]=arguments[S];var N=_<3&&w[0]!==M&&w[_-1]!==M?[]:or(w,M);if(_-=N.length,_<a)return gc(t,r,l0,h.placeholder,i,w,N,i,i,a-_);var K=this&&this!==yt&&this instanceof h?u:t;return Ut(K,this,w)}return h}function uc(t){return function(r,a,u){var h=Ne(r);if(!zt(r)){var _=le(a,3);r=mt(r),a=function(S){return _(h[S],S,h)}}var w=t(r,a,u);return w>-1?h[_?r[w]:w]:i}}function fc(t){return qn(function(r){var a=r.length,u=a,h=on.prototype.thru;for(t&&r.reverse();u--;){var _=r[u];if(typeof _!="function")throw new rn(c);if(h&&!w&&d0(_)=="wrapper")var w=new on([],!0)}for(u=w?u:a;++u<a;){_=r[u];var S=d0(_),M=S=="wrapper"?ya(_):i;M&&xa(M[0])&&M[1]==(I|T|H|D)&&!M[4].length&&M[9]==1?w=w[d0(M[0])].apply(w,M[3]):w=_.length==1&&xa(_)?w[S]():w.thru(_)}return function(){var N=arguments,K=N[0];if(w&&N.length==1&&me(K))return w.plant(K).value();for(var Z=0,J=a?r[Z].apply(this,N):K;++Z<a;)J=r[Z].call(this,J);return J}})}function l0(t,r,a,u,h,_,w,S,M,N){var K=r&I,Z=r&$,J=r&P,ie=r&(T|z),ce=r&V,ve=J?i:N1(t);function se(){for(var Le=arguments.length,ke=E(Le),Vt=Le;Vt--;)ke[Vt]=arguments[Vt];if(ie)var Et=h1(se),jt=Tx(ke,Et);if(u&&(ke=oc(ke,u,h,ie)),_&&(ke=ac(ke,_,w,ie)),Le-=jt,ie&&Le<N){var st=or(ke,Et);return gc(t,r,l0,se.placeholder,a,ke,st,S,M,N-Le)}var Cn=Z?a:this,Qn=J?Cn[t]:t;return Le=ke.length,S?ke=F$(ke,S):ce&&Le>1&&ke.reverse(),K&&M<Le&&(ke.length=M),this&&this!==yt&&this instanceof se&&(Qn=ve||N1(Qn)),Qn.apply(Cn,ke)}return se}function dc(t,r){return function(a,u){return Yw(a,t,r(u),{})}}function c0(t,r){return function(a,u){var h;if(a===i&&u===i)return r;if(a!==i&&(h=a),u!==i){if(h===i)return u;typeof a=="string"||typeof u=="string"?(a=qt(a),u=qt(u)):(a=Q5(a),u=Q5(u)),h=t(a,u)}return h}}function ga(t){return qn(function(r){return r=Ge(r,Yt(le())),Ce(function(a){var u=this;return t(r,function(h){return Ut(h,u,a)})})})}function u0(t,r){r=r===i?" ":qt(r);var a=r.length;if(a<2)return a?sa(r,t):r;var u=sa(r,ji(t/o1(r)));return i1(r)?ur(mn(u),0,t).join(""):u.slice(0,t)}function b$(t,r,a,u){var h=r&$,_=N1(t);function w(){for(var S=-1,M=arguments.length,N=-1,K=u.length,Z=E(K+M),J=this&&this!==yt&&this instanceof w?_:t;++N<K;)Z[N]=u[N];for(;M--;)Z[N++]=arguments[++S];return Ut(J,h?a:this,Z)}return w}function hc(t){return function(r,a,u){return u&&typeof u!="number"&&Ot(r,a,u)&&(a=u=i),r=jn(r),a===i?(a=r,r=0):a=jn(a),u=u===i?r<a?1:-1:jn(u),i$(r,a,u,t)}}function f0(t){return function(r,a){return typeof r=="string"&&typeof a=="string"||(r=cn(r),a=cn(a)),t(r,a)}}function gc(t,r,a,u,h,_,w,S,M,N){var K=r&T,Z=K?w:i,J=K?i:w,ie=K?_:i,ce=K?i:_;r|=K?H:U,r&=~(K?U:H),r&O||(r&=~($|P));var ve=[t,r,h,ie,Z,ce,J,S,M,N],se=a.apply(i,ve);return xa(t)&&Sc(se,ve),se.placeholder=u,kc(se,t,r)}function pa(t){var r=gt[t];return function(a,u){if(a=cn(a),u=u==null?0:St(be(u),292),u&&k5(a)){var h=(Be(a)+"e").split("e"),_=r(h[0]+"e"+(+h[1]+u));return h=(Be(_)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(a)}}var v$=l1&&1/Ni(new l1([,-0]))[1]==Ye?function(t){return new l1(t)}:Fa;function pc(t){return function(r){var a=kt(r);return a==_t?Zo(r):a==et?Bx(r):Mx(r,t(r))}}function Yn(t,r,a,u,h,_,w,S){var M=r&P;if(!M&&typeof t!="function")throw new rn(c);var N=u?u.length:0;if(N||(r&=~(H|U),u=h=i),w=w===i?w:pt(be(w),0),S=S===i?S:be(S),N-=h?h.length:0,r&U){var K=u,Z=h;u=h=i}var J=M?i:ya(t),ie=[t,r,a,u,h,K,Z,_,w,S];if(J&&D$(ie,J),t=ie[0],r=ie[1],a=ie[2],u=ie[3],h=ie[4],S=ie[9]=ie[9]===i?M?0:t.length:pt(ie[9]-N,0),!S&&r&(T|z)&&(r&=~(T|z)),!r||r==$)var ce=m$(t,r,a);else r==T||r==z?ce=y$(t,r,S):(r==H||r==($|H))&&!h.length?ce=b$(t,r,a,u):ce=l0.apply(i,ie);var ve=J?V5:Sc;return kc(ve(ce,ie),t,r)}function _c(t,r,a,u){return t===i||vn(t,s1[a])&&!Re.call(u,a)?r:t}function mc(t,r,a,u,h,_){return Xe(t)&&Xe(r)&&(_.set(r,t),i0(t,r,i,mc,_),_.delete(r)),t}function C$(t){return W1(t)?i:t}function yc(t,r,a,u,h,_){var w=a&k,S=t.length,M=r.length;if(S!=M&&!(w&&M>S))return!1;var N=_.get(t),K=_.get(r);if(N&&K)return N==r&&K==t;var Z=-1,J=!0,ie=a&x?new vr:i;for(_.set(t,r),_.set(r,t);++Z<S;){var ce=t[Z],ve=r[Z];if(u)var se=w?u(ve,ce,Z,r,t,_):u(ce,ve,Z,t,r,_);if(se!==i){if(se)continue;J=!1;break}if(ie){if(!zo(r,function(Le,ke){if(!M1(ie,ke)&&(ce===Le||h(ce,Le,a,u,_)))return ie.push(ke)})){J=!1;break}}else if(!(ce===ve||h(ce,ve,a,u,_))){J=!1;break}}return _.delete(t),_.delete(r),J}function x$(t,r,a,u,h,_,w){switch(a){case de:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case W:return!(t.byteLength!=r.byteLength||!_(new Yi(t),new Yi(r)));case je:case $t:case Pe:return vn(+t,+r);case Rt:return t.name==r.name&&t.message==r.message;case qe:case tn:return t==r+"";case _t:var S=Zo;case et:var M=u&k;if(S||(S=Ni),t.size!=r.size&&!M)return!1;var N=w.get(t);if(N)return N==r;u|=x,w.set(t,r);var K=yc(S(t),S(r),u,h,_,w);return w.delete(t),K;case tr:if(E1)return E1.call(t)==E1.call(r)}return!1}function w$(t,r,a,u,h,_){var w=a&k,S=_a(t),M=S.length,N=_a(r),K=N.length;if(M!=K&&!w)return!1;for(var Z=M;Z--;){var J=S[Z];if(!(w?J in r:Re.call(r,J)))return!1}var ie=_.get(t),ce=_.get(r);if(ie&&ce)return ie==r&&ce==t;var ve=!0;_.set(t,r),_.set(r,t);for(var se=w;++Z<M;){J=S[Z];var Le=t[J],ke=r[J];if(u)var Vt=w?u(ke,Le,J,r,t,_):u(Le,ke,J,t,r,_);if(!(Vt===i?Le===ke||h(Le,ke,a,u,_):Vt)){ve=!1;break}se||(se=J=="constructor")}if(ve&&!se){var Et=t.constructor,jt=r.constructor;Et!=jt&&"constructor"in t&&"constructor"in r&&!(typeof Et=="function"&&Et instanceof Et&&typeof jt=="function"&&jt instanceof jt)&&(ve=!1)}return _.delete(t),_.delete(r),ve}function qn(t){return $a($c(t,i,Oc),t+"")}function _a(t){return F5(t,mt,va)}function ma(t){return F5(t,Nt,bc)}var ya=Xi?function(t){return Xi.get(t)}:Fa;function d0(t){for(var r=t.name+"",a=c1[r],u=Re.call(c1,r)?a.length:0;u--;){var h=a[u],_=h.func;if(_==null||_==t)return h.name}return r}function h1(t){var r=Re.call(p,"placeholder")?p:t;return r.placeholder}function le(){var t=p.iteratee||Ra;return t=t===Ra?K5:t,arguments.length?t(arguments[0],arguments[1]):t}function h0(t,r){var a=t.__data__;return P$(r)?a[typeof r=="string"?"string":"hash"]:a.map}function ba(t){for(var r=mt(t),a=r.length;a--;){var u=r[a],h=t[u];r[a]=[u,h,xc(h)]}return r}function wr(t,r){var a=Ex(t,r);return N5(a)?a:i}function $$(t){var r=Re.call(t,yr),a=t[yr];try{t[yr]=i;var u=!0}catch{}var h=Ui.call(t);return u&&(r?t[yr]=a:delete t[yr]),h}var va=qo?function(t){return t==null?[]:(t=Ne(t),rr(qo(t),function(r){return L5.call(t,r)}))}:za,bc=qo?function(t){for(var r=[];t;)ir(r,va(t)),t=qi(t);return r}:za,kt=It;(Go&&kt(new Go(new ArrayBuffer(1)))!=de||P1&&kt(new P1)!=_t||Vo&&kt(Vo.resolve())!=Lt||l1&&kt(new l1)!=et||I1&&kt(new I1)!=_n)&&(kt=function(t){var r=It(t),a=r==Qe?t.constructor:i,u=a?$r(a):"";if(u)switch(u){case aw:return de;case sw:return _t;case lw:return Lt;case cw:return et;case uw:return _n}return r});function L$(t,r,a){for(var u=-1,h=a.length;++u<h;){var _=a[u],w=_.size;switch(_.type){case"drop":t+=w;break;case"dropRight":r-=w;break;case"take":r=St(r,t+w);break;case"takeRight":t=pt(t,r-w);break}}return{start:t,end:r}}function S$(t){var r=t.match(OC);return r?r[1].split(EC):[]}function vc(t,r,a){r=cr(r,t);for(var u=-1,h=r.length,_=!1;++u<h;){var w=bn(r[u]);if(!(_=t!=null&&a(t,w)))break;t=t[w]}return _||++u!=h?_:(h=t==null?0:t.length,!!h&&v0(h)&&Gn(w,h)&&(me(t)||Lr(t)))}function k$(t){var r=t.length,a=new t.constructor(r);return r&&typeof t[0]=="string"&&Re.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function Cc(t){return typeof t.constructor=="function"&&!K1(t)?u1(qi(t)):{}}function A$(t,r,a){var u=t.constructor;switch(r){case W:return ha(t);case je:case $t:return new u(+t);case de:return f$(t,a);case X:case we:case ee:case tt:case nt:case Wt:case An:case Wn:case t1:return rc(t,a);case _t:return new u;case Pe:case tn:return new u(t);case qe:return d$(t);case et:return new u;case tr:return h$(t)}}function M$(t,r){var a=r.length;if(!a)return t;var u=a-1;return r[u]=(a>1?"& ":"")+r[u],r=r.join(a>2?", ":" "),t.replace(IC,`{
|
|
8
|
+
*/q1.exports,function(e,n){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",v=500,y="__lodash_placeholder__",b=1,C=2,L=4,k=1,x=2,$=1,P=2,O=4,T=8,z=16,W=32,U=64,I=128,R=256,V=512,j=30,ee="...",te=800,Oe=16,it=1,wt=2,$t=3,qe=1/0,dt=9007199254740991,Le=17976931348623157e292,ie=0/0,Me=4294967295,ht=Me-1,oe=Me>>>1,Te=[["ary",I],["bind",$],["bindKey",P],["curry",T],["curryRight",z],["flip",V],["partial",W],["partialRight",U],["rearg",R]],ce="[object Arguments]",Re="[object Array]",ct="[object AsyncFunction]",Qe="[object Boolean]",yt="[object Date]",Ht="[object DOMException]",hn="[object Error]",gn="[object Function]",Sn="[object GeneratorFunction]",ut="[object Map]",Pe="[object Number]",Lt="[object Null]",Xe="[object Object]",_t="[object Promise]",Dt="[object Proxy]",Ge="[object RegExp]",ft="[object Set]",pn="[object String]",Hn="[object Symbol]",nr="[object Undefined]",D="[object WeakMap]",N="[object WeakSet]",de="[object ArrayBuffer]",X="[object DataView]",xe="[object Float32Array]",ue="[object Float64Array]",ye="[object Int8Array]",Je="[object Int16Array]",en="[object Int32Array]",kn="[object Uint8Array]",Wn="[object Uint8ClampedArray]",Un="[object Uint16Array]",t1="[object Uint32Array]",Di=/\b__p \+= '';/g,Ri=/\b(__p \+=) '' \+/g,Bi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M1=/&(?:amp|lt|gt|quot|#39);/g,T1=/[&<>"']/g,Fi=RegExp(M1.source),zi=RegExp(T1.source),Ni=/<%-([\s\S]+?)%>/g,Ki=/<%([\s\S]+?)%>/g,P1=/<%=([\s\S]+?)%>/g,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wi=/^\w*$/,MC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bo=/[\\^$.*+?()[\]{}|]/g,TC=RegExp(Bo.source),Fo=/^\s+/,PC=/\s/,IC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,EC=/,? & /,DC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U9=/[()=,{}\[\]\/\s]/,RC=/\\(\\)?/g,BC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Z9=/\w*$/,FC=/^[-+]0x[0-9a-f]+$/i,zC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,KC=/^0o[0-7]+$/i,HC=/^(?:0|[1-9]\d*)$/,WC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ui=/($^)/,UC=/['\n\r\u2028\u2029\\]/g,Zi="\\ud800-\\udfff",ZC="\\u0300-\\u036f",YC="\\ufe20-\\ufe2f",qC="\\u20d0-\\u20ff",Y9=ZC+YC+qC,q9="\\u2700-\\u27bf",G9="a-z\\xdf-\\xf6\\xf8-\\xff",GC="\\xac\\xb1\\xd7\\xf7",VC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jC="\\u2000-\\u206f",QC=" \\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",V9="A-Z\\xc0-\\xd6\\xd8-\\xde",j9="\\ufe0e\\ufe0f",Q9=GC+VC+jC+QC,zo="['’]",XC="["+Zi+"]",X9="["+Q9+"]",Yi="["+Y9+"]",J9="\\d+",JC="["+q9+"]",e5="["+G9+"]",t5="[^"+Zi+Q9+J9+q9+G9+V9+"]",No="\\ud83c[\\udffb-\\udfff]",ex="(?:"+Yi+"|"+No+")",n5="[^"+Zi+"]",Ko="(?:\\ud83c[\\udde6-\\uddff]){2}",Ho="[\\ud800-\\udbff][\\udc00-\\udfff]",n1="["+V9+"]",r5="\\u200d",i5="(?:"+e5+"|"+t5+")",tx="(?:"+n1+"|"+t5+")",o5="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",a5="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",s5=ex+"?",l5="["+j9+"]?",nx="(?:"+r5+"(?:"+[n5,Ko,Ho].join("|")+")"+l5+s5+")*",rx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ix="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",c5=l5+s5+nx,ox="(?:"+[JC,Ko,Ho].join("|")+")"+c5,ax="(?:"+[n5+Yi+"?",Yi,Ko,Ho,XC].join("|")+")",sx=RegExp(zo,"g"),lx=RegExp(Yi,"g"),Wo=RegExp(No+"(?="+No+")|"+ax+c5,"g"),cx=RegExp([n1+"?"+e5+"+"+o5+"(?="+[X9,n1,"$"].join("|")+")",tx+"+"+a5+"(?="+[X9,n1+i5,"$"].join("|")+")",n1+"?"+i5+"+"+o5,n1+"+"+a5,ix,rx,J9,ox].join("|"),"g"),ux=RegExp("["+r5+Zi+Y9+j9+"]"),fx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dx=["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"],hx=-1,Ze={};Ze[xe]=Ze[ue]=Ze[ye]=Ze[Je]=Ze[en]=Ze[kn]=Ze[Wn]=Ze[Un]=Ze[t1]=!0,Ze[ce]=Ze[Re]=Ze[de]=Ze[Qe]=Ze[X]=Ze[yt]=Ze[hn]=Ze[gn]=Ze[ut]=Ze[Pe]=Ze[Xe]=Ze[Ge]=Ze[ft]=Ze[pn]=Ze[D]=!1;var We={};We[ce]=We[Re]=We[de]=We[X]=We[Qe]=We[yt]=We[xe]=We[ue]=We[ye]=We[Je]=We[en]=We[ut]=We[Pe]=We[Xe]=We[Ge]=We[ft]=We[pn]=We[Hn]=We[kn]=We[Wn]=We[Un]=We[t1]=!0,We[hn]=We[gn]=We[D]=!1;var gx={À:"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"},px={"&":"&","<":"<",">":">",'"':""","'":"'"},_x={"&":"&","<":"<",">":">",""":'"',"'":"'"},mx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yx=parseFloat,bx=parseInt,u5=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,vx=typeof self=="object"&&self&&self.Object===Object&&self,bt=u5||vx||Function("return this")(),Uo=n&&!n.nodeType&&n,mr=Uo&&!0&&e&&!e.nodeType&&e,f5=mr&&mr.exports===Uo,Zo=f5&&u5.process,tn=function(){try{var A=mr&&mr.require&&mr.require("util").types;return A||Zo&&Zo.binding&&Zo.binding("util")}catch{}}(),d5=tn&&tn.isArrayBuffer,h5=tn&&tn.isDate,g5=tn&&tn.isMap,p5=tn&&tn.isRegExp,_5=tn&&tn.isSet,m5=tn&&tn.isTypedArray;function Wt(A,F,E){switch(E.length){case 0:return A.call(F);case 1:return A.call(F,E[0]);case 2:return A.call(F,E[0],E[1]);case 3:return A.call(F,E[0],E[1],E[2])}return A.apply(F,E)}function Cx(A,F,E,ne){for(var he=-1,De=A==null?0:A.length;++he<De;){var gt=A[he];F(ne,gt,E(gt),A)}return ne}function Ut(A,F){for(var E=-1,ne=A==null?0:A.length;++E<ne&&F(A[E],E,A)!==!1;);return A}function xx(A,F){for(var E=A==null?0:A.length;E--&&F(A[E],E,A)!==!1;);return A}function y5(A,F){for(var E=-1,ne=A==null?0:A.length;++E<ne;)if(!F(A[E],E,A))return!1;return!0}function rr(A,F){for(var E=-1,ne=A==null?0:A.length,he=0,De=[];++E<ne;){var gt=A[E];F(gt,E,A)&&(De[he++]=gt)}return De}function qi(A,F){var E=A==null?0:A.length;return!!E&&r1(A,F,0)>-1}function Yo(A,F,E){for(var ne=-1,he=A==null?0:A.length;++ne<he;)if(E(F,A[ne]))return!0;return!1}function Ve(A,F){for(var E=-1,ne=A==null?0:A.length,he=Array(ne);++E<ne;)he[E]=F(A[E],E,A);return he}function ir(A,F){for(var E=-1,ne=F.length,he=A.length;++E<ne;)A[he+E]=F[E];return A}function qo(A,F,E,ne){var he=-1,De=A==null?0:A.length;for(ne&&De&&(E=A[++he]);++he<De;)E=F(E,A[he],he,A);return E}function wx(A,F,E,ne){var he=A==null?0:A.length;for(ne&&he&&(E=A[--he]);he--;)E=F(E,A[he],he,A);return E}function Go(A,F){for(var E=-1,ne=A==null?0:A.length;++E<ne;)if(F(A[E],E,A))return!0;return!1}var $x=Vo("length");function Lx(A){return A.split("")}function Sx(A){return A.match(DC)||[]}function b5(A,F,E){var ne;return E(A,function(he,De,gt){if(F(he,De,gt))return ne=De,!1}),ne}function Gi(A,F,E,ne){for(var he=A.length,De=E+(ne?1:-1);ne?De--:++De<he;)if(F(A[De],De,A))return De;return-1}function r1(A,F,E){return F===F?Fx(A,F,E):Gi(A,v5,E)}function kx(A,F,E,ne){for(var he=E-1,De=A.length;++he<De;)if(ne(A[he],F))return he;return-1}function v5(A){return A!==A}function C5(A,F){var E=A==null?0:A.length;return E?Qo(A,F)/E:ie}function Vo(A){return function(F){return F==null?i:F[A]}}function jo(A){return function(F){return A==null?i:A[F]}}function x5(A,F,E,ne,he){return he(A,function(De,gt,Ke){E=ne?(ne=!1,De):F(E,De,gt,Ke)}),E}function Ax(A,F){var E=A.length;for(A.sort(F);E--;)A[E]=A[E].value;return A}function Qo(A,F){for(var E,ne=-1,he=A.length;++ne<he;){var De=F(A[ne]);De!==i&&(E=E===i?De:E+De)}return E}function Xo(A,F){for(var E=-1,ne=Array(A);++E<A;)ne[E]=F(E);return ne}function Mx(A,F){return Ve(F,function(E){return[E,A[E]]})}function w5(A){return A&&A.slice(0,k5(A)+1).replace(Fo,"")}function Zt(A){return function(F){return A(F)}}function Jo(A,F){return Ve(F,function(E){return A[E]})}function I1(A,F){return A.has(F)}function $5(A,F){for(var E=-1,ne=A.length;++E<ne&&r1(F,A[E],0)>-1;);return E}function L5(A,F){for(var E=A.length;E--&&r1(F,A[E],0)>-1;);return E}function Tx(A,F){for(var E=A.length,ne=0;E--;)A[E]===F&&++ne;return ne}var Px=jo(gx),Ix=jo(px);function Ox(A){return"\\"+mx[A]}function Ex(A,F){return A==null?i:A[F]}function i1(A){return ux.test(A)}function Dx(A){return fx.test(A)}function Rx(A){for(var F,E=[];!(F=A.next()).done;)E.push(F.value);return E}function ea(A){var F=-1,E=Array(A.size);return A.forEach(function(ne,he){E[++F]=[he,ne]}),E}function S5(A,F){return function(E){return A(F(E))}}function or(A,F){for(var E=-1,ne=A.length,he=0,De=[];++E<ne;){var gt=A[E];(gt===F||gt===y)&&(A[E]=y,De[he++]=E)}return De}function Vi(A){var F=-1,E=Array(A.size);return A.forEach(function(ne){E[++F]=ne}),E}function Bx(A){var F=-1,E=Array(A.size);return A.forEach(function(ne){E[++F]=[ne,ne]}),E}function Fx(A,F,E){for(var ne=E-1,he=A.length;++ne<he;)if(A[ne]===F)return ne;return-1}function zx(A,F,E){for(var ne=E+1;ne--;)if(A[ne]===F)return ne;return ne}function o1(A){return i1(A)?Kx(A):$x(A)}function _n(A){return i1(A)?Hx(A):Lx(A)}function k5(A){for(var F=A.length;F--&&PC.test(A.charAt(F)););return F}var Nx=jo(_x);function Kx(A){for(var F=Wo.lastIndex=0;Wo.test(A);)++F;return F}function Hx(A){return A.match(Wo)||[]}function Wx(A){return A.match(cx)||[]}var Ux=function A(F){F=F==null?bt:a1.defaults(bt.Object(),F,a1.pick(bt,dx));var E=F.Array,ne=F.Date,he=F.Error,De=F.Function,gt=F.Math,Ke=F.Object,ta=F.RegExp,Zx=F.String,nn=F.TypeError,ji=E.prototype,Yx=De.prototype,s1=Ke.prototype,Qi=F["__core-js_shared__"],Xi=Yx.toString,Be=s1.hasOwnProperty,qx=0,A5=function(){var t=/[^.]+$/.exec(Qi&&Qi.keys&&Qi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ji=s1.toString,Gx=Xi.call(Ke),Vx=bt._,jx=ta("^"+Xi.call(Be).replace(Bo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),e0=f5?F.Buffer:i,ar=F.Symbol,t0=F.Uint8Array,M5=e0?e0.allocUnsafe:i,n0=S5(Ke.getPrototypeOf,Ke),T5=Ke.create,P5=s1.propertyIsEnumerable,r0=ji.splice,I5=ar?ar.isConcatSpreadable:i,O1=ar?ar.iterator:i,yr=ar?ar.toStringTag:i,i0=function(){try{var t=wr(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),Qx=F.clearTimeout!==bt.clearTimeout&&F.clearTimeout,Xx=ne&&ne.now!==bt.Date.now&&ne.now,Jx=F.setTimeout!==bt.setTimeout&&F.setTimeout,o0=gt.ceil,a0=gt.floor,na=Ke.getOwnPropertySymbols,ew=e0?e0.isBuffer:i,O5=F.isFinite,tw=ji.join,nw=S5(Ke.keys,Ke),pt=gt.max,St=gt.min,rw=ne.now,iw=F.parseInt,E5=gt.random,ow=ji.reverse,ra=wr(F,"DataView"),E1=wr(F,"Map"),ia=wr(F,"Promise"),l1=wr(F,"Set"),D1=wr(F,"WeakMap"),R1=wr(Ke,"create"),s0=D1&&new D1,c1={},aw=$r(ra),sw=$r(E1),lw=$r(ia),cw=$r(l1),uw=$r(D1),l0=ar?ar.prototype:i,B1=l0?l0.valueOf:i,D5=l0?l0.toString:i;function p(t){if(nt(t)&&!_e(t)&&!(t instanceof ke)){if(t instanceof rn)return t;if(Be.call(t,"__wrapped__"))return Rc(t)}return new rn(t)}var u1=function(){function t(){}return function(r){if(!et(r))return{};if(T5)return T5(r);t.prototype=r;var a=new t;return t.prototype=i,a}}();function c0(){}function rn(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:Ni,evaluate:Ki,interpolate:P1,variable:"",imports:{_:p}},p.prototype=c0.prototype,p.prototype.constructor=p,rn.prototype=u1(c0.prototype),rn.prototype.constructor=rn;function ke(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Me,this.__views__=[]}function fw(){var t=new ke(this.__wrapped__);return t.__actions__=Rt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Rt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Rt(this.__views__),t}function dw(){if(this.__filtered__){var t=new ke(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function hw(){var t=this.__wrapped__.value(),r=this.__dir__,a=_e(t),u=r<0,h=a?t.length:0,_=L$(0,h,this.__views__),w=_.start,S=_.end,M=S-w,K=u?S:w-1,H=this.__iteratees__,Z=H.length,J=0,re=St(M,this.__takeCount__);if(!a||!u&&h==M&&re==M)return oc(t,this.__actions__);var le=[];e:for(;M--&&J<re;){K+=r;for(var Ce=-1,ae=t[K];++Ce<Z;){var Se=H[Ce],Ae=Se.iteratee,Gt=Se.type,Ot=Ae(ae);if(Gt==wt)ae=Ot;else if(!Ot){if(Gt==it)continue e;break e}}le[J++]=ae}return le}ke.prototype=u1(c0.prototype),ke.prototype.constructor=ke;function br(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function gw(){this.__data__=R1?R1(null):{},this.size=0}function pw(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function _w(t){var r=this.__data__;if(R1){var a=r[t];return a===g?i:a}return Be.call(r,t)?r[t]:i}function mw(t){var r=this.__data__;return R1?r[t]!==i:Be.call(r,t)}function yw(t,r){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=R1&&r===i?g:r,this}br.prototype.clear=gw,br.prototype.delete=pw,br.prototype.get=_w,br.prototype.has=mw,br.prototype.set=yw;function Zn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function bw(){this.__data__=[],this.size=0}function vw(t){var r=this.__data__,a=u0(r,t);if(a<0)return!1;var u=r.length-1;return a==u?r.pop():r0.call(r,a,1),--this.size,!0}function Cw(t){var r=this.__data__,a=u0(r,t);return a<0?i:r[a][1]}function xw(t){return u0(this.__data__,t)>-1}function ww(t,r){var a=this.__data__,u=u0(a,t);return u<0?(++this.size,a.push([t,r])):a[u][1]=r,this}Zn.prototype.clear=bw,Zn.prototype.delete=vw,Zn.prototype.get=Cw,Zn.prototype.has=xw,Zn.prototype.set=ww;function Yn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function $w(){this.size=0,this.__data__={hash:new br,map:new(E1||Zn),string:new br}}function Lw(t){var r=x0(this,t).delete(t);return this.size-=r?1:0,r}function Sw(t){return x0(this,t).get(t)}function kw(t){return x0(this,t).has(t)}function Aw(t,r){var a=x0(this,t),u=a.size;return a.set(t,r),this.size+=a.size==u?0:1,this}Yn.prototype.clear=$w,Yn.prototype.delete=Lw,Yn.prototype.get=Sw,Yn.prototype.has=kw,Yn.prototype.set=Aw;function vr(t){var r=-1,a=t==null?0:t.length;for(this.__data__=new Yn;++r<a;)this.add(t[r])}function Mw(t){return this.__data__.set(t,g),this}function Tw(t){return this.__data__.has(t)}vr.prototype.add=vr.prototype.push=Mw,vr.prototype.has=Tw;function mn(t){var r=this.__data__=new Zn(t);this.size=r.size}function Pw(){this.__data__=new Zn,this.size=0}function Iw(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}function Ow(t){return this.__data__.get(t)}function Ew(t){return this.__data__.has(t)}function Dw(t,r){var a=this.__data__;if(a instanceof Zn){var u=a.__data__;if(!E1||u.length<s-1)return u.push([t,r]),this.size=++a.size,this;a=this.__data__=new Yn(u)}return a.set(t,r),this.size=a.size,this}mn.prototype.clear=Pw,mn.prototype.delete=Iw,mn.prototype.get=Ow,mn.prototype.has=Ew,mn.prototype.set=Dw;function R5(t,r){var a=_e(t),u=!a&&Lr(t),h=!a&&!u&&fr(t),_=!a&&!u&&!h&&g1(t),w=a||u||h||_,S=w?Xo(t.length,Zx):[],M=S.length;for(var K in t)(r||Be.call(t,K))&&!(w&&(K=="length"||h&&(K=="offset"||K=="parent")||_&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Vn(K,M)))&&S.push(K);return S}function B5(t){var r=t.length;return r?t[pa(0,r-1)]:i}function Rw(t,r){return w0(Rt(t),Cr(r,0,t.length))}function Bw(t){return w0(Rt(t))}function oa(t,r,a){(a!==i&&!bn(t[r],a)||a===i&&!(r in t))&&An(t,r,a)}function F1(t,r,a){var u=t[r];(!(Be.call(t,r)&&bn(u,a))||a===i&&!(r in t))&&An(t,r,a)}function u0(t,r){for(var a=t.length;a--;)if(bn(t[a][0],r))return a;return-1}function Fw(t,r,a,u){return sr(t,function(h,_,w){r(u,h,a(h),w)}),u}function F5(t,r){return t&&Tn(r,mt(r),t)}function zw(t,r){return t&&Tn(r,Ft(r),t)}function An(t,r,a){r=="__proto__"&&i0?i0(t,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[r]=a}function aa(t,r){for(var a=-1,u=r.length,h=E(u),_=t==null;++a<u;)h[a]=_?i:Ka(t,r[a]);return h}function Cr(t,r,a){return t===t&&(a!==i&&(t=t<=a?t:a),r!==i&&(t=t>=r?t:r)),t}function on(t,r,a,u,h,_){var w,S=r&b,M=r&C,K=r&L;if(a&&(w=h?a(t,u,h,_):a(t)),w!==i)return w;if(!et(t))return t;var H=_e(t);if(H){if(w=k$(t),!S)return Rt(t,w)}else{var Z=kt(t),J=Z==gn||Z==Sn;if(fr(t))return lc(t,S);if(Z==Xe||Z==ce||J&&!h){if(w=M||J?{}:kc(t),!S)return M?_$(t,zw(w,t)):p$(t,F5(w,t))}else{if(!We[Z])return h?t:{};w=A$(t,Z,S)}}_||(_=new mn);var re=_.get(t);if(re)return re;_.set(t,w),n2(t)?t.forEach(function(ae){w.add(on(ae,r,a,ae,t,_))}):e2(t)&&t.forEach(function(ae,Se){w.set(Se,on(ae,r,a,Se,t,_))});var le=K?M?Sa:La:M?Ft:mt,Ce=H?i:le(t);return Ut(Ce||t,function(ae,Se){Ce&&(Se=ae,ae=t[Se]),F1(w,Se,on(ae,r,a,Se,t,_))}),w}function Nw(t){var r=mt(t);return function(a){return z5(a,t,r)}}function z5(t,r,a){var u=a.length;if(t==null)return!u;for(t=Ke(t);u--;){var h=a[u],_=r[h],w=t[h];if(w===i&&!(h in t)||!_(w))return!1}return!0}function N5(t,r,a){if(typeof t!="function")throw new nn(c);return Z1(function(){t.apply(i,a)},r)}function z1(t,r,a,u){var h=-1,_=qi,w=!0,S=t.length,M=[],K=r.length;if(!S)return M;a&&(r=Ve(r,Zt(a))),u?(_=Yo,w=!1):r.length>=s&&(_=I1,w=!1,r=new vr(r));e:for(;++h<S;){var H=t[h],Z=a==null?H:a(H);if(H=u||H!==0?H:0,w&&Z===Z){for(var J=K;J--;)if(r[J]===Z)continue e;M.push(H)}else _(r,Z,u)||M.push(H)}return M}var sr=hc(Mn),K5=hc(la,!0);function Kw(t,r){var a=!0;return sr(t,function(u,h,_){return a=!!r(u,h,_),a}),a}function f0(t,r,a){for(var u=-1,h=t.length;++u<h;){var _=t[u],w=r(_);if(w!=null&&(S===i?w===w&&!qt(w):a(w,S)))var S=w,M=_}return M}function Hw(t,r,a,u){var h=t.length;for(a=be(a),a<0&&(a=-a>h?0:h+a),u=u===i||u>h?h:be(u),u<0&&(u+=h),u=a>u?0:i2(u);a<u;)t[a++]=r;return t}function H5(t,r){var a=[];return sr(t,function(u,h,_){r(u,h,_)&&a.push(u)}),a}function vt(t,r,a,u,h){var _=-1,w=t.length;for(a||(a=T$),h||(h=[]);++_<w;){var S=t[_];r>0&&a(S)?r>1?vt(S,r-1,a,u,h):ir(h,S):u||(h[h.length]=S)}return h}var sa=gc(),W5=gc(!0);function Mn(t,r){return t&&sa(t,r,mt)}function la(t,r){return t&&W5(t,r,mt)}function d0(t,r){return rr(r,function(a){return jn(t[a])})}function xr(t,r){r=cr(r,t);for(var a=0,u=r.length;t!=null&&a<u;)t=t[yn(r[a++])];return a&&a==u?t:i}function U5(t,r,a){var u=r(t);return _e(t)?u:ir(u,a(t))}function Pt(t){return t==null?t===i?nr:Lt:yr&&yr in Ke(t)?$$(t):B$(t)}function ca(t,r){return t>r}function Ww(t,r){return t!=null&&Be.call(t,r)}function Uw(t,r){return t!=null&&r in Ke(t)}function Zw(t,r,a){return t>=St(r,a)&&t<pt(r,a)}function ua(t,r,a){for(var u=a?Yo:qi,h=t[0].length,_=t.length,w=_,S=E(_),M=1/0,K=[];w--;){var H=t[w];w&&r&&(H=Ve(H,Zt(r))),M=St(H.length,M),S[w]=!a&&(r||h>=120&&H.length>=120)?new vr(w&&H):i}H=t[0];var Z=-1,J=S[0];e:for(;++Z<h&&K.length<M;){var re=H[Z],le=r?r(re):re;if(re=a||re!==0?re:0,!(J?I1(J,le):u(K,le,a))){for(w=_;--w;){var Ce=S[w];if(!(Ce?I1(Ce,le):u(t[w],le,a)))continue e}J&&J.push(le),K.push(re)}}return K}function Yw(t,r,a,u){return Mn(t,function(h,_,w){r(u,a(h),_,w)}),u}function N1(t,r,a){r=cr(r,t),t=Pc(t,r);var u=t==null?t:t[yn(sn(r))];return u==null?i:Wt(u,t,a)}function Z5(t){return nt(t)&&Pt(t)==ce}function qw(t){return nt(t)&&Pt(t)==de}function Gw(t){return nt(t)&&Pt(t)==yt}function K1(t,r,a,u,h){return t===r?!0:t==null||r==null||!nt(t)&&!nt(r)?t!==t&&r!==r:Vw(t,r,a,u,K1,h)}function Vw(t,r,a,u,h,_){var w=_e(t),S=_e(r),M=w?Re:kt(t),K=S?Re:kt(r);M=M==ce?Xe:M,K=K==ce?Xe:K;var H=M==Xe,Z=K==Xe,J=M==K;if(J&&fr(t)){if(!fr(r))return!1;w=!0,H=!1}if(J&&!H)return _||(_=new mn),w||g1(t)?$c(t,r,a,u,h,_):x$(t,r,M,a,u,h,_);if(!(a&k)){var re=H&&Be.call(t,"__wrapped__"),le=Z&&Be.call(r,"__wrapped__");if(re||le){var Ce=re?t.value():t,ae=le?r.value():r;return _||(_=new mn),h(Ce,ae,a,u,_)}}return J?(_||(_=new mn),w$(t,r,a,u,h,_)):!1}function jw(t){return nt(t)&&kt(t)==ut}function fa(t,r,a,u){var h=a.length,_=h,w=!u;if(t==null)return!_;for(t=Ke(t);h--;){var S=a[h];if(w&&S[2]?S[1]!==t[S[0]]:!(S[0]in t))return!1}for(;++h<_;){S=a[h];var M=S[0],K=t[M],H=S[1];if(w&&S[2]){if(K===i&&!(M in t))return!1}else{var Z=new mn;if(u)var J=u(K,H,M,t,r,Z);if(!(J===i?K1(H,K,k|x,u,Z):J))return!1}}return!0}function Y5(t){if(!et(t)||I$(t))return!1;var r=jn(t)?jx:NC;return r.test($r(t))}function Qw(t){return nt(t)&&Pt(t)==Ge}function Xw(t){return nt(t)&&kt(t)==ft}function Jw(t){return nt(t)&&M0(t.length)&&!!Ze[Pt(t)]}function q5(t){return typeof t=="function"?t:t==null?zt:typeof t=="object"?_e(t)?j5(t[0],t[1]):V5(t):_2(t)}function da(t){if(!U1(t))return nw(t);var r=[];for(var a in Ke(t))Be.call(t,a)&&a!="constructor"&&r.push(a);return r}function e$(t){if(!et(t))return R$(t);var r=U1(t),a=[];for(var u in t)u=="constructor"&&(r||!Be.call(t,u))||a.push(u);return a}function ha(t,r){return t<r}function G5(t,r){var a=-1,u=Bt(t)?E(t.length):[];return sr(t,function(h,_,w){u[++a]=r(h,_,w)}),u}function V5(t){var r=Aa(t);return r.length==1&&r[0][2]?Mc(r[0][0],r[0][1]):function(a){return a===t||fa(a,t,r)}}function j5(t,r){return Ta(t)&&Ac(r)?Mc(yn(t),r):function(a){var u=Ka(a,t);return u===i&&u===r?Ha(a,t):K1(r,u,k|x)}}function h0(t,r,a,u,h){t!==r&&sa(r,function(_,w){if(h||(h=new mn),et(_))t$(t,r,w,a,h0,u,h);else{var S=u?u(Ia(t,w),_,w+"",t,r,h):i;S===i&&(S=_),oa(t,w,S)}},Ft)}function t$(t,r,a,u,h,_,w){var S=Ia(t,a),M=Ia(r,a),K=w.get(M);if(K){oa(t,a,K);return}var H=_?_(S,M,a+"",t,r,w):i,Z=H===i;if(Z){var J=_e(M),re=!J&&fr(M),le=!J&&!re&&g1(M);H=M,J||re||le?_e(S)?H=S:ot(S)?H=Rt(S):re?(Z=!1,H=lc(M,!0)):le?(Z=!1,H=cc(M,!0)):H=[]:Y1(M)||Lr(M)?(H=S,Lr(S)?H=o2(S):(!et(S)||jn(S))&&(H=kc(M))):Z=!1}Z&&(w.set(M,H),h(H,M,u,_,w),w.delete(M)),oa(t,a,H)}function Q5(t,r){var a=t.length;if(a)return r+=r<0?a:0,Vn(r,a)?t[r]:i}function X5(t,r,a){r.length?r=Ve(r,function(_){return _e(_)?function(w){return xr(w,_.length===1?_[0]:_)}:_}):r=[zt];var u=-1;r=Ve(r,Zt(se()));var h=G5(t,function(_,w,S){var M=Ve(r,function(K){return K(_)});return{criteria:M,index:++u,value:_}});return Ax(h,function(_,w){return g$(_,w,a)})}function n$(t,r){return J5(t,r,function(a,u){return Ha(t,u)})}function J5(t,r,a){for(var u=-1,h=r.length,_={};++u<h;){var w=r[u],S=xr(t,w);a(S,w)&&H1(_,cr(w,t),S)}return _}function r$(t){return function(r){return xr(r,t)}}function ga(t,r,a,u){var h=u?kx:r1,_=-1,w=r.length,S=t;for(t===r&&(r=Rt(r)),a&&(S=Ve(t,Zt(a)));++_<w;)for(var M=0,K=r[_],H=a?a(K):K;(M=h(S,H,M,u))>-1;)S!==t&&r0.call(S,M,1),r0.call(t,M,1);return t}function ec(t,r){for(var a=t?r.length:0,u=a-1;a--;){var h=r[a];if(a==u||h!==_){var _=h;Vn(h)?r0.call(t,h,1):ya(t,h)}}return t}function pa(t,r){return t+a0(E5()*(r-t+1))}function i$(t,r,a,u){for(var h=-1,_=pt(o0((r-t)/(a||1)),0),w=E(_);_--;)w[u?_:++h]=t,t+=a;return w}function _a(t,r){var a="";if(!t||r<1||r>dt)return a;do r%2&&(a+=t),r=a0(r/2),r&&(t+=t);while(r);return a}function we(t,r){return Oa(Tc(t,r,zt),t+"")}function o$(t){return B5(p1(t))}function a$(t,r){var a=p1(t);return w0(a,Cr(r,0,a.length))}function H1(t,r,a,u){if(!et(t))return t;r=cr(r,t);for(var h=-1,_=r.length,w=_-1,S=t;S!=null&&++h<_;){var M=yn(r[h]),K=a;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=w){var H=S[M];K=u?u(H,M,S):i,K===i&&(K=et(H)?H:Vn(r[h+1])?[]:{})}F1(S,M,K),S=S[M]}return t}var tc=s0?function(t,r){return s0.set(t,r),t}:zt,s$=i0?function(t,r){return i0(t,"toString",{configurable:!0,enumerable:!1,value:Ua(r),writable:!0})}:zt;function l$(t){return w0(p1(t))}function an(t,r,a){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var _=E(h);++u<h;)_[u]=t[u+r];return _}function c$(t,r){var a;return sr(t,function(u,h,_){return a=r(u,h,_),!a}),!!a}function g0(t,r,a){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=oe){for(;u<h;){var _=u+h>>>1,w=t[_];w!==null&&!qt(w)&&(a?w<=r:w<r)?u=_+1:h=_}return h}return ma(t,r,zt,a)}function ma(t,r,a,u){var h=0,_=t==null?0:t.length;if(_===0)return 0;r=a(r);for(var w=r!==r,S=r===null,M=qt(r),K=r===i;h<_;){var H=a0((h+_)/2),Z=a(t[H]),J=Z!==i,re=Z===null,le=Z===Z,Ce=qt(Z);if(w)var ae=u||le;else K?ae=le&&(u||J):S?ae=le&&J&&(u||!re):M?ae=le&&J&&!re&&(u||!Ce):re||Ce?ae=!1:ae=u?Z<=r:Z<r;ae?h=H+1:_=H}return St(_,ht)}function nc(t,r){for(var a=-1,u=t.length,h=0,_=[];++a<u;){var w=t[a],S=r?r(w):w;if(!a||!bn(S,M)){var M=S;_[h++]=w===0?0:w}}return _}function rc(t){return typeof t=="number"?t:qt(t)?ie:+t}function Yt(t){if(typeof t=="string")return t;if(_e(t))return Ve(t,Yt)+"";if(qt(t))return D5?D5.call(t):"";var r=t+"";return r=="0"&&1/t==-qe?"-0":r}function lr(t,r,a){var u=-1,h=qi,_=t.length,w=!0,S=[],M=S;if(a)w=!1,h=Yo;else if(_>=s){var K=r?null:v$(t);if(K)return Vi(K);w=!1,h=I1,M=new vr}else M=r?[]:S;e:for(;++u<_;){var H=t[u],Z=r?r(H):H;if(H=a||H!==0?H:0,w&&Z===Z){for(var J=M.length;J--;)if(M[J]===Z)continue e;r&&M.push(Z),S.push(H)}else h(M,Z,a)||(M!==S&&M.push(Z),S.push(H))}return S}function ya(t,r){r=cr(r,t);var a=-1,u=r.length;if(!u)return!0;for(;++a<u;){var h=yn(r[a]);if(h==="__proto__"&&!Be.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&a<u-1)return!1}var _=Pc(t,r);return _==null||delete _[yn(sn(r))]}function ic(t,r,a,u){return H1(t,r,a(xr(t,r)),u)}function p0(t,r,a,u){for(var h=t.length,_=u?h:-1;(u?_--:++_<h)&&r(t[_],_,t););return a?an(t,u?0:_,u?_+1:h):an(t,u?_+1:0,u?h:_)}function oc(t,r){var a=t;return a instanceof ke&&(a=a.value()),qo(r,function(u,h){return h.func.apply(h.thisArg,ir([u],h.args))},a)}function ba(t,r,a){var u=t.length;if(u<2)return u?lr(t[0]):[];for(var h=-1,_=E(u);++h<u;)for(var w=t[h],S=-1;++S<u;)S!=h&&(_[h]=z1(_[h]||w,t[S],r,a));return lr(vt(_,1),r,a)}function ac(t,r,a){for(var u=-1,h=t.length,_=r.length,w={};++u<h;){var S=u<_?r[u]:i;a(w,t[u],S)}return w}function va(t){return ot(t)?t:[]}function Ca(t){return typeof t=="function"?t:zt}function cr(t,r){return _e(t)?t:Ta(t,r)?[t]:Dc(Fe(t))}var u$=we;function ur(t,r,a){var u=t.length;return a=a===i?u:a,!r&&a>=u?t:an(t,r,a)}var sc=Qx||function(t){return bt.clearTimeout(t)};function lc(t,r){if(r)return t.slice();var a=t.length,u=M5?M5(a):new t.constructor(a);return t.copy(u),u}function xa(t){var r=new t.constructor(t.byteLength);return new t0(r).set(new t0(t)),r}function f$(t,r){var a=r?xa(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function d$(t){var r=new t.constructor(t.source,Z9.exec(t));return r.lastIndex=t.lastIndex,r}function h$(t){return B1?Ke(B1.call(t)):{}}function cc(t,r){var a=r?xa(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function uc(t,r){if(t!==r){var a=t!==i,u=t===null,h=t===t,_=qt(t),w=r!==i,S=r===null,M=r===r,K=qt(r);if(!S&&!K&&!_&&t>r||_&&w&&M&&!S&&!K||u&&w&&M||!a&&M||!h)return 1;if(!u&&!_&&!K&&t<r||K&&a&&h&&!u&&!_||S&&a&&h||!w&&h||!M)return-1}return 0}function g$(t,r,a){for(var u=-1,h=t.criteria,_=r.criteria,w=h.length,S=a.length;++u<w;){var M=uc(h[u],_[u]);if(M){if(u>=S)return M;var K=a[u];return M*(K=="desc"?-1:1)}}return t.index-r.index}function fc(t,r,a,u){for(var h=-1,_=t.length,w=a.length,S=-1,M=r.length,K=pt(_-w,0),H=E(M+K),Z=!u;++S<M;)H[S]=r[S];for(;++h<w;)(Z||h<_)&&(H[a[h]]=t[h]);for(;K--;)H[S++]=t[h++];return H}function dc(t,r,a,u){for(var h=-1,_=t.length,w=-1,S=a.length,M=-1,K=r.length,H=pt(_-S,0),Z=E(H+K),J=!u;++h<H;)Z[h]=t[h];for(var re=h;++M<K;)Z[re+M]=r[M];for(;++w<S;)(J||h<_)&&(Z[re+a[w]]=t[h++]);return Z}function Rt(t,r){var a=-1,u=t.length;for(r||(r=E(u));++a<u;)r[a]=t[a];return r}function Tn(t,r,a,u){var h=!a;a||(a={});for(var _=-1,w=r.length;++_<w;){var S=r[_],M=u?u(a[S],t[S],S,a,t):i;M===i&&(M=t[S]),h?An(a,S,M):F1(a,S,M)}return a}function p$(t,r){return Tn(t,Ma(t),r)}function _$(t,r){return Tn(t,Lc(t),r)}function _0(t,r){return function(a,u){var h=_e(a)?Cx:Fw,_=r?r():{};return h(a,t,se(u,2),_)}}function f1(t){return we(function(r,a){var u=-1,h=a.length,_=h>1?a[h-1]:i,w=h>2?a[2]:i;for(_=t.length>3&&typeof _=="function"?(h--,_):i,w&&It(a[0],a[1],w)&&(_=h<3?i:_,h=1),r=Ke(r);++u<h;){var S=a[u];S&&t(r,S,u,_)}return r})}function hc(t,r){return function(a,u){if(a==null)return a;if(!Bt(a))return t(a,u);for(var h=a.length,_=r?h:-1,w=Ke(a);(r?_--:++_<h)&&u(w[_],_,w)!==!1;);return a}}function gc(t){return function(r,a,u){for(var h=-1,_=Ke(r),w=u(r),S=w.length;S--;){var M=w[t?S:++h];if(a(_[M],M,_)===!1)break}return r}}function m$(t,r,a){var u=r&$,h=W1(t);function _(){var w=this&&this!==bt&&this instanceof _?h:t;return w.apply(u?a:this,arguments)}return _}function pc(t){return function(r){r=Fe(r);var a=i1(r)?_n(r):i,u=a?a[0]:r.charAt(0),h=a?ur(a,1).join(""):r.slice(1);return u[t]()+h}}function d1(t){return function(r){return qo(g2(h2(r).replace(sx,"")),t,"")}}function W1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=u1(t.prototype),u=t.apply(a,r);return et(u)?u:a}}function y$(t,r,a){var u=W1(t);function h(){for(var _=arguments.length,w=E(_),S=_,M=h1(h);S--;)w[S]=arguments[S];var K=_<3&&w[0]!==M&&w[_-1]!==M?[]:or(w,M);if(_-=K.length,_<a)return vc(t,r,m0,h.placeholder,i,w,K,i,i,a-_);var H=this&&this!==bt&&this instanceof h?u:t;return Wt(H,this,w)}return h}function _c(t){return function(r,a,u){var h=Ke(r);if(!Bt(r)){var _=se(a,3);r=mt(r),a=function(S){return _(h[S],S,h)}}var w=t(r,a,u);return w>-1?h[_?r[w]:w]:i}}function mc(t){return Gn(function(r){var a=r.length,u=a,h=rn.prototype.thru;for(t&&r.reverse();u--;){var _=r[u];if(typeof _!="function")throw new nn(c);if(h&&!w&&C0(_)=="wrapper")var w=new rn([],!0)}for(u=w?u:a;++u<a;){_=r[u];var S=C0(_),M=S=="wrapper"?ka(_):i;M&&Pa(M[0])&&M[1]==(I|T|W|R)&&!M[4].length&&M[9]==1?w=w[C0(M[0])].apply(w,M[3]):w=_.length==1&&Pa(_)?w[S]():w.thru(_)}return function(){var K=arguments,H=K[0];if(w&&K.length==1&&_e(H))return w.plant(H).value();for(var Z=0,J=a?r[Z].apply(this,K):H;++Z<a;)J=r[Z].call(this,J);return J}})}function m0(t,r,a,u,h,_,w,S,M,K){var H=r&I,Z=r&$,J=r&P,re=r&(T|z),le=r&V,Ce=J?i:W1(t);function ae(){for(var Se=arguments.length,Ae=E(Se),Gt=Se;Gt--;)Ae[Gt]=arguments[Gt];if(re)var Ot=h1(ae),Vt=Tx(Ae,Ot);if(u&&(Ae=fc(Ae,u,h,re)),_&&(Ae=dc(Ae,_,w,re)),Se-=Vt,re&&Se<K){var at=or(Ae,Ot);return vc(t,r,m0,ae.placeholder,a,Ae,at,S,M,K-Se)}var vn=Z?a:this,Xn=J?vn[t]:t;return Se=Ae.length,S?Ae=F$(Ae,S):le&&Se>1&&Ae.reverse(),H&&M<Se&&(Ae.length=M),this&&this!==bt&&this instanceof ae&&(Xn=Ce||W1(Xn)),Xn.apply(vn,Ae)}return ae}function yc(t,r){return function(a,u){return Yw(a,t,r(u),{})}}function y0(t,r){return function(a,u){var h;if(a===i&&u===i)return r;if(a!==i&&(h=a),u!==i){if(h===i)return u;typeof a=="string"||typeof u=="string"?(a=Yt(a),u=Yt(u)):(a=rc(a),u=rc(u)),h=t(a,u)}return h}}function wa(t){return Gn(function(r){return r=Ve(r,Zt(se())),we(function(a){var u=this;return t(r,function(h){return Wt(h,u,a)})})})}function b0(t,r){r=r===i?" ":Yt(r);var a=r.length;if(a<2)return a?_a(r,t):r;var u=_a(r,o0(t/o1(r)));return i1(r)?ur(_n(u),0,t).join(""):u.slice(0,t)}function b$(t,r,a,u){var h=r&$,_=W1(t);function w(){for(var S=-1,M=arguments.length,K=-1,H=u.length,Z=E(H+M),J=this&&this!==bt&&this instanceof w?_:t;++K<H;)Z[K]=u[K];for(;M--;)Z[K++]=arguments[++S];return Wt(J,h?a:this,Z)}return w}function bc(t){return function(r,a,u){return u&&typeof u!="number"&&It(r,a,u)&&(a=u=i),r=Qn(r),a===i?(a=r,r=0):a=Qn(a),u=u===i?r<a?1:-1:Qn(u),i$(r,a,u,t)}}function v0(t){return function(r,a){return typeof r=="string"&&typeof a=="string"||(r=ln(r),a=ln(a)),t(r,a)}}function vc(t,r,a,u,h,_,w,S,M,K){var H=r&T,Z=H?w:i,J=H?i:w,re=H?_:i,le=H?i:_;r|=H?W:U,r&=~(H?U:W),r&O||(r&=~($|P));var Ce=[t,r,h,re,Z,le,J,S,M,K],ae=a.apply(i,Ce);return Pa(t)&&Ic(ae,Ce),ae.placeholder=u,Oc(ae,t,r)}function $a(t){var r=gt[t];return function(a,u){if(a=ln(a),u=u==null?0:St(be(u),292),u&&O5(a)){var h=(Fe(a)+"e").split("e"),_=r(h[0]+"e"+(+h[1]+u));return h=(Fe(_)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(a)}}var v$=l1&&1/Vi(new l1([,-0]))[1]==qe?function(t){return new l1(t)}:qa;function Cc(t){return function(r){var a=kt(r);return a==ut?ea(r):a==ft?Bx(r):Mx(r,t(r))}}function qn(t,r,a,u,h,_,w,S){var M=r&P;if(!M&&typeof t!="function")throw new nn(c);var K=u?u.length:0;if(K||(r&=~(W|U),u=h=i),w=w===i?w:pt(be(w),0),S=S===i?S:be(S),K-=h?h.length:0,r&U){var H=u,Z=h;u=h=i}var J=M?i:ka(t),re=[t,r,a,u,h,H,Z,_,w,S];if(J&&D$(re,J),t=re[0],r=re[1],a=re[2],u=re[3],h=re[4],S=re[9]=re[9]===i?M?0:t.length:pt(re[9]-K,0),!S&&r&(T|z)&&(r&=~(T|z)),!r||r==$)var le=m$(t,r,a);else r==T||r==z?le=y$(t,r,S):(r==W||r==($|W))&&!h.length?le=b$(t,r,a,u):le=m0.apply(i,re);var Ce=J?tc:Ic;return Oc(Ce(le,re),t,r)}function xc(t,r,a,u){return t===i||bn(t,s1[a])&&!Be.call(u,a)?r:t}function wc(t,r,a,u,h,_){return et(t)&&et(r)&&(_.set(r,t),h0(t,r,i,wc,_),_.delete(r)),t}function C$(t){return Y1(t)?i:t}function $c(t,r,a,u,h,_){var w=a&k,S=t.length,M=r.length;if(S!=M&&!(w&&M>S))return!1;var K=_.get(t),H=_.get(r);if(K&&H)return K==r&&H==t;var Z=-1,J=!0,re=a&x?new vr:i;for(_.set(t,r),_.set(r,t);++Z<S;){var le=t[Z],Ce=r[Z];if(u)var ae=w?u(Ce,le,Z,r,t,_):u(le,Ce,Z,t,r,_);if(ae!==i){if(ae)continue;J=!1;break}if(re){if(!Go(r,function(Se,Ae){if(!I1(re,Ae)&&(le===Se||h(le,Se,a,u,_)))return re.push(Ae)})){J=!1;break}}else if(!(le===Ce||h(le,Ce,a,u,_))){J=!1;break}}return _.delete(t),_.delete(r),J}function x$(t,r,a,u,h,_,w){switch(a){case X:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case de:return!(t.byteLength!=r.byteLength||!_(new t0(t),new t0(r)));case Qe:case yt:case Pe:return bn(+t,+r);case hn:return t.name==r.name&&t.message==r.message;case Ge:case pn:return t==r+"";case ut:var S=ea;case ft:var M=u&k;if(S||(S=Vi),t.size!=r.size&&!M)return!1;var K=w.get(t);if(K)return K==r;u|=x,w.set(t,r);var H=$c(S(t),S(r),u,h,_,w);return w.delete(t),H;case Hn:if(B1)return B1.call(t)==B1.call(r)}return!1}function w$(t,r,a,u,h,_){var w=a&k,S=La(t),M=S.length,K=La(r),H=K.length;if(M!=H&&!w)return!1;for(var Z=M;Z--;){var J=S[Z];if(!(w?J in r:Be.call(r,J)))return!1}var re=_.get(t),le=_.get(r);if(re&&le)return re==r&&le==t;var Ce=!0;_.set(t,r),_.set(r,t);for(var ae=w;++Z<M;){J=S[Z];var Se=t[J],Ae=r[J];if(u)var Gt=w?u(Ae,Se,J,r,t,_):u(Se,Ae,J,t,r,_);if(!(Gt===i?Se===Ae||h(Se,Ae,a,u,_):Gt)){Ce=!1;break}ae||(ae=J=="constructor")}if(Ce&&!ae){var Ot=t.constructor,Vt=r.constructor;Ot!=Vt&&"constructor"in t&&"constructor"in r&&!(typeof Ot=="function"&&Ot instanceof Ot&&typeof Vt=="function"&&Vt instanceof Vt)&&(Ce=!1)}return _.delete(t),_.delete(r),Ce}function Gn(t){return Oa(Tc(t,i,zc),t+"")}function La(t){return U5(t,mt,Ma)}function Sa(t){return U5(t,Ft,Lc)}var ka=s0?function(t){return s0.get(t)}:qa;function C0(t){for(var r=t.name+"",a=c1[r],u=Be.call(c1,r)?a.length:0;u--;){var h=a[u],_=h.func;if(_==null||_==t)return h.name}return r}function h1(t){var r=Be.call(p,"placeholder")?p:t;return r.placeholder}function se(){var t=p.iteratee||Za;return t=t===Za?q5:t,arguments.length?t(arguments[0],arguments[1]):t}function x0(t,r){var a=t.__data__;return P$(r)?a[typeof r=="string"?"string":"hash"]:a.map}function Aa(t){for(var r=mt(t),a=r.length;a--;){var u=r[a],h=t[u];r[a]=[u,h,Ac(h)]}return r}function wr(t,r){var a=Ex(t,r);return Y5(a)?a:i}function $$(t){var r=Be.call(t,yr),a=t[yr];try{t[yr]=i;var u=!0}catch{}var h=Ji.call(t);return u&&(r?t[yr]=a:delete t[yr]),h}var Ma=na?function(t){return t==null?[]:(t=Ke(t),rr(na(t),function(r){return P5.call(t,r)}))}:Ga,Lc=na?function(t){for(var r=[];t;)ir(r,Ma(t)),t=n0(t);return r}:Ga,kt=Pt;(ra&&kt(new ra(new ArrayBuffer(1)))!=X||E1&&kt(new E1)!=ut||ia&&kt(ia.resolve())!=_t||l1&&kt(new l1)!=ft||D1&&kt(new D1)!=D)&&(kt=function(t){var r=Pt(t),a=r==Xe?t.constructor:i,u=a?$r(a):"";if(u)switch(u){case aw:return X;case sw:return ut;case lw:return _t;case cw:return ft;case uw:return D}return r});function L$(t,r,a){for(var u=-1,h=a.length;++u<h;){var _=a[u],w=_.size;switch(_.type){case"drop":t+=w;break;case"dropRight":r-=w;break;case"take":r=St(r,t+w);break;case"takeRight":t=pt(t,r-w);break}}return{start:t,end:r}}function S$(t){var r=t.match(OC);return r?r[1].split(EC):[]}function Sc(t,r,a){r=cr(r,t);for(var u=-1,h=r.length,_=!1;++u<h;){var w=yn(r[u]);if(!(_=t!=null&&a(t,w)))break;t=t[w]}return _||++u!=h?_:(h=t==null?0:t.length,!!h&&M0(h)&&Vn(w,h)&&(_e(t)||Lr(t)))}function k$(t){var r=t.length,a=new t.constructor(r);return r&&typeof t[0]=="string"&&Be.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function kc(t){return typeof t.constructor=="function"&&!U1(t)?u1(n0(t)):{}}function A$(t,r,a){var u=t.constructor;switch(r){case de:return xa(t);case Qe:case yt:return new u(+t);case X:return f$(t,a);case xe:case ue:case ye:case Je:case en:case kn:case Wn:case Un:case t1:return cc(t,a);case ut:return new u;case Pe:case pn:return new u(t);case Ge:return d$(t);case ft:return new u;case Hn:return h$(t)}}function M$(t,r){var a=r.length;if(!a)return t;var u=a-1;return r[u]=(a>1?"& ":"")+r[u],r=r.join(a>2?", ":" "),t.replace(IC,`{
|
|
9
9
|
/* [wrapped with `+r+`] */
|
|
10
|
-
`)}function T$(t){return me(t)||Lr(t)||!!(S5&&t&&t[S5])}function Gn(t,r){var a=typeof t;return r=r??ft,!!r&&(a=="number"||a!="symbol"&&HC.test(t))&&t>-1&&t%1==0&&t<r}function Ot(t,r,a){if(!Xe(a))return!1;var u=typeof r;return(u=="number"?zt(a)&&Gn(r,a.length):u=="string"&&r in a)?vn(a[r],t):!1}function Ca(t,r){if(me(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Gt(t)?!0:AC.test(t)||!kC.test(t)||r!=null&&t in Ne(r)}function P$(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function xa(t){var r=d0(t),a=p[r];if(typeof a!="function"||!(r in Se.prototype))return!1;if(t===a)return!0;var u=ya(a);return!!u&&t===u[0]}function I$(t){return!!x5&&x5 in t}var O$=Hi?Vn:Na;function K1(t){var r=t&&t.constructor,a=typeof r=="function"&&r.prototype||s1;return t===a}function xc(t){return t===t&&!Xe(t)}function wc(t,r){return function(a){return a==null?!1:a[t]===r&&(r!==i||t in Ne(a))}}function E$(t){var r=y0(t,function(u){return a.size===v&&a.clear(),u}),a=r.cache;return r}function D$(t,r){var a=t[1],u=r[1],h=a|u,_=h<($|P|I),w=u==I&&a==T||u==I&&a==D&&t[7].length<=r[8]||u==(I|D)&&r[7].length<=r[8]&&a==T;if(!(_||w))return t;u&$&&(t[2]=r[2],h|=a&$?0:O);var S=r[3];if(S){var M=t[3];t[3]=M?oc(M,S,r[4]):S,t[4]=M?or(t[3],y):r[4]}return S=r[5],S&&(M=t[5],t[5]=M?ac(M,S,r[6]):S,t[6]=M?or(t[5],y):r[6]),S=r[7],S&&(t[7]=S),u&I&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function R$(t){var r=[];if(t!=null)for(var a in Ne(t))r.push(a);return r}function B$(t){return Ui.call(t)}function $c(t,r,a){return r=pt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,_=pt(u.length-r,0),w=E(_);++h<_;)w[h]=u[r+h];h=-1;for(var S=E(r+1);++h<r;)S[h]=u[h];return S[r]=a(w),Ut(t,this,S)}}function Lc(t,r){return r.length<2?t:xr(t,sn(r,0,-1))}function F$(t,r){for(var a=t.length,u=St(r.length,a),h=Ft(t);u--;){var _=r[u];t[u]=Gn(_,a)?h[_]:i}return t}function wa(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var Sc=Ac(V5),H1=Jx||function(t,r){return yt.setTimeout(t,r)},$a=Ac(s$);function kc(t,r,a){var u=r+"";return $a(t,M$(u,z$(S$(u),a)))}function Ac(t){var r=0,a=0;return function(){var u=rw(),h=Ie-(u-a);if(a=u,h>0){if(++r>=ne)return arguments[0]}else r=0;return t.apply(i,arguments)}}function g0(t,r){var a=-1,u=t.length,h=u-1;for(r=r===i?u:r;++a<r;){var _=aa(a,h),w=t[_];t[_]=t[a],t[a]=w}return t.length=r,t}var Mc=E$(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(MC,function(a,u,h,_){r.push(h?_.replace(RC,"$1"):u||a)}),r});function bn(t){if(typeof t=="string"||Gt(t))return t;var r=t+"";return r=="0"&&1/t==-Ye?"-0":r}function $r(t){if(t!=null){try{return Wi.call(t)}catch{}try{return t+""}catch{}}return""}function z$(t,r){return Zt(Me,function(a){var u="_."+a[0];r&a[1]&&!Fi(t,u)&&t.push(u)}),t.sort()}function Tc(t){if(t instanceof Se)return t.clone();var r=new on(t.__wrapped__,t.__chain__);return r.__actions__=Ft(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function N$(t,r,a){(a?Ot(t,r,a):r===i)?r=1:r=pt(be(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,_=0,w=E(ji(u/r));h<u;)w[_++]=sn(t,h,h+=r);return w}function K$(t){for(var r=-1,a=t==null?0:t.length,u=0,h=[];++r<a;){var _=t[r];_&&(h[u++]=_)}return h}function H$(){var t=arguments.length;if(!t)return[];for(var r=E(t-1),a=arguments[0],u=t;u--;)r[u-1]=arguments[u];return ir(me(a)?Ft(a):[a],bt(r,1))}var W$=Ce(function(t,r){return at(t)?R1(t,bt(r,1,at,!0)):[]}),U$=Ce(function(t,r){var a=ln(r);return at(a)&&(a=i),at(t)?R1(t,bt(r,1,at,!0),le(a,2)):[]}),Z$=Ce(function(t,r){var a=ln(r);return at(a)&&(a=i),at(t)?R1(t,bt(r,1,at,!0),i,a):[]});function Y$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),sn(t,r<0?0:r,u)):[]}function q$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,sn(t,0,r<0?0:r)):[]}function G$(t,r){return t&&t.length?a0(t,le(r,3),!0,!0):[]}function V$(t,r){return t&&t.length?a0(t,le(r,3),!0):[]}function j$(t,r,a,u){var h=t==null?0:t.length;return h?(a&&typeof a!="number"&&Ot(t,r,a)&&(a=0,u=h),Hw(t,r,a,u)):[]}function Pc(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=pt(u+h,0)),zi(t,le(r,3),h)}function Ic(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return a!==i&&(h=be(a),h=a<0?pt(u+h,0):St(h,u-1)),zi(t,le(r,3),h,!0)}function Oc(t){var r=t==null?0:t.length;return r?bt(t,1):[]}function Q$(t){var r=t==null?0:t.length;return r?bt(t,Ye):[]}function X$(t,r){var a=t==null?0:t.length;return a?(r=r===i?1:be(r),bt(t,r)):[]}function J$(t){for(var r=-1,a=t==null?0:t.length,u={};++r<a;){var h=t[r];Mn(u,h[0],h[1])}return u}function Ec(t){return t&&t.length?t[0]:i}function eL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=pt(u+h,0)),r1(t,r,h)}function tL(t){var r=t==null?0:t.length;return r?sn(t,0,-1):[]}var nL=Ce(function(t){var r=Ge(t,fa);return r.length&&r[0]===t[0]?ta(r):[]}),rL=Ce(function(t){var r=ln(t),a=Ge(t,fa);return r===ln(a)?r=i:a.pop(),a.length&&a[0]===t[0]?ta(a,le(r,2)):[]}),iL=Ce(function(t){var r=ln(t),a=Ge(t,fa);return r=typeof r=="function"?r:i,r&&a.pop(),a.length&&a[0]===t[0]?ta(a,i,r):[]});function oL(t,r){return t==null?"":tw.call(t,r)}function ln(t){var r=t==null?0:t.length;return r?t[r-1]:i}function aL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u;return a!==i&&(h=be(a),h=h<0?pt(u+h,0):St(h,u-1)),r===r?zx(t,r,h):zi(t,g5,h,!0)}function sL(t,r){return t&&t.length?Z5(t,be(r)):i}var lL=Ce(Dc);function Dc(t,r){return t&&t.length&&r&&r.length?oa(t,r):t}function cL(t,r,a){return t&&t.length&&r&&r.length?oa(t,r,le(a,2)):t}function uL(t,r,a){return t&&t.length&&r&&r.length?oa(t,r,i,a):t}var fL=qn(function(t,r){var a=t==null?0:t.length,u=Qo(t,r);return G5(t,Ge(r,function(h){return Gn(h,a)?+h:h}).sort(ic)),u});function dL(t,r){var a=[];if(!(t&&t.length))return a;var u=-1,h=[],_=t.length;for(r=le(r,3);++u<_;){var w=t[u];r(w,u,t)&&(a.push(w),h.push(u))}return G5(t,h),a}function La(t){return t==null?t:ow.call(t)}function hL(t,r,a){var u=t==null?0:t.length;return u?(a&&typeof a!="number"&&Ot(t,r,a)?(r=0,a=u):(r=r==null?0:be(r),a=a===i?u:be(a)),sn(t,r,a)):[]}function gL(t,r){return o0(t,r)}function pL(t,r,a){return la(t,r,le(a,2))}function _L(t,r){var a=t==null?0:t.length;if(a){var u=o0(t,r);if(u<a&&vn(t[u],r))return u}return-1}function mL(t,r){return o0(t,r,!0)}function yL(t,r,a){return la(t,r,le(a,2),!0)}function bL(t,r){var a=t==null?0:t.length;if(a){var u=o0(t,r,!0)-1;if(vn(t[u],r))return u}return-1}function vL(t){return t&&t.length?j5(t):[]}function CL(t,r){return t&&t.length?j5(t,le(r,2)):[]}function xL(t){var r=t==null?0:t.length;return r?sn(t,1,r):[]}function wL(t,r,a){return t&&t.length?(r=a||r===i?1:be(r),sn(t,0,r<0?0:r)):[]}function $L(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,sn(t,r<0?0:r,u)):[]}function LL(t,r){return t&&t.length?a0(t,le(r,3),!1,!0):[]}function SL(t,r){return t&&t.length?a0(t,le(r,3)):[]}var kL=Ce(function(t){return lr(bt(t,1,at,!0))}),AL=Ce(function(t){var r=ln(t);return at(r)&&(r=i),lr(bt(t,1,at,!0),le(r,2))}),ML=Ce(function(t){var r=ln(t);return r=typeof r=="function"?r:i,lr(bt(t,1,at,!0),i,r)});function TL(t){return t&&t.length?lr(t):[]}function PL(t,r){return t&&t.length?lr(t,le(r,2)):[]}function IL(t,r){return r=typeof r=="function"?r:i,t&&t.length?lr(t,i,r):[]}function Sa(t){if(!(t&&t.length))return[];var r=0;return t=rr(t,function(a){if(at(a))return r=pt(a.length,r),!0}),Wo(r,function(a){return Ge(t,No(a))})}function Rc(t,r){if(!(t&&t.length))return[];var a=Sa(t);return r==null?a:Ge(a,function(u){return Ut(r,i,u)})}var OL=Ce(function(t,r){return at(t)?R1(t,r):[]}),EL=Ce(function(t){return ua(rr(t,at))}),DL=Ce(function(t){var r=ln(t);return at(r)&&(r=i),ua(rr(t,at),le(r,2))}),RL=Ce(function(t){var r=ln(t);return r=typeof r=="function"?r:i,ua(rr(t,at),i,r)}),BL=Ce(Sa);function FL(t,r){return ec(t||[],r||[],D1)}function zL(t,r){return ec(t||[],r||[],z1)}var NL=Ce(function(t){var r=t.length,a=r>1?t[r-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Rc(t,a)});function Bc(t){var r=p(t);return r.__chain__=!0,r}function KL(t,r){return r(t),t}function p0(t,r){return r(t)}var HL=qn(function(t){var r=t.length,a=r?t[0]:0,u=this.__wrapped__,h=function(_){return Qo(_,t)};return r>1||this.__actions__.length||!(u instanceof Se)||!Gn(a)?this.thru(h):(u=u.slice(a,+a+(r?1:0)),u.__actions__.push({func:p0,args:[h],thisArg:i}),new on(u,this.__chain__).thru(function(_){return r&&!_.length&&_.push(i),_}))});function WL(){return Bc(this)}function UL(){return new on(this.value(),this.__chain__)}function ZL(){this.__values__===i&&(this.__values__=Qc(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function YL(){return this}function qL(t){for(var r,a=this;a instanceof e0;){var u=Tc(a);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;a=a.__wrapped__}return h.__wrapped__=t,r}function GL(){var t=this.__wrapped__;if(t instanceof Se){var r=t;return this.__actions__.length&&(r=new Se(this)),r=r.reverse(),r.__actions__.push({func:p0,args:[La],thisArg:i}),new on(r,this.__chain__)}return this.thru(La)}function VL(){return J5(this.__wrapped__,this.__actions__)}var jL=s0(function(t,r,a){Re.call(t,a)?++t[a]:Mn(t,a,1)});function QL(t,r,a){var u=me(t)?d5:Kw;return a&&Ot(t,r,a)&&(r=i),u(t,le(r,3))}function XL(t,r){var a=me(t)?rr:R5;return a(t,le(r,3))}var JL=uc(Pc),eS=uc(Ic);function tS(t,r){return bt(_0(t,r),1)}function nS(t,r){return bt(_0(t,r),Ye)}function rS(t,r,a){return a=a===i?1:be(a),bt(_0(t,r),a)}function Fc(t,r){var a=me(t)?Zt:sr;return a(t,le(r,3))}function zc(t,r){var a=me(t)?xx:D5;return a(t,le(r,3))}var iS=s0(function(t,r,a){Re.call(t,a)?t[a].push(r):Mn(t,a,[r])});function oS(t,r,a,u){t=zt(t)?t:p1(t),a=a&&!u?be(a):0;var h=t.length;return a<0&&(a=pt(h+a,0)),C0(t)?a<=h&&t.indexOf(r,a)>-1:!!h&&r1(t,r,a)>-1}var aS=Ce(function(t,r,a){var u=-1,h=typeof r=="function",_=zt(t)?E(t.length):[];return sr(t,function(w){_[++u]=h?Ut(r,w,a):B1(w,r,a)}),_}),sS=s0(function(t,r,a){Mn(t,a,r)});function _0(t,r){var a=me(t)?Ge:H5;return a(t,le(r,3))}function lS(t,r,a,u){return t==null?[]:(me(r)||(r=r==null?[]:[r]),a=u?i:a,me(a)||(a=a==null?[]:[a]),Y5(t,r,a))}var cS=s0(function(t,r,a){t[a?0:1].push(r)},function(){return[[],[]]});function uS(t,r,a){var u=me(t)?Fo:_5,h=arguments.length<3;return u(t,le(r,4),a,h,sr)}function fS(t,r,a){var u=me(t)?wx:_5,h=arguments.length<3;return u(t,le(r,4),a,h,D5)}function dS(t,r){var a=me(t)?rr:R5;return a(t,b0(le(r,3)))}function hS(t){var r=me(t)?P5:o$;return r(t)}function gS(t,r,a){(a?Ot(t,r,a):r===i)?r=1:r=be(r);var u=me(t)?Rw:a$;return u(t,r)}function pS(t){var r=me(t)?Bw:l$;return r(t)}function _S(t){if(t==null)return 0;if(zt(t))return C0(t)?o1(t):t.length;var r=kt(t);return r==_t||r==et?t.size:ra(t).length}function mS(t,r,a){var u=me(t)?zo:c$;return a&&Ot(t,r,a)&&(r=i),u(t,le(r,3))}var yS=Ce(function(t,r){if(t==null)return[];var a=r.length;return a>1&&Ot(t,r[0],r[1])?r=[]:a>2&&Ot(r[0],r[1],r[2])&&(r=[r[0]]),Y5(t,bt(r,1),[])}),m0=Xx||function(){return yt.Date.now()};function bS(t,r){if(typeof r!="function")throw new rn(c);return t=be(t),function(){if(--t<1)return r.apply(this,arguments)}}function Nc(t,r,a){return r=a?i:r,r=t&&r==null?t.length:r,Yn(t,I,i,i,i,i,r)}function Kc(t,r){var a;if(typeof r!="function")throw new rn(c);return t=be(t),function(){return--t>0&&(a=r.apply(this,arguments)),t<=1&&(r=i),a}}var ka=Ce(function(t,r,a){var u=$;if(a.length){var h=or(a,h1(ka));u|=H}return Yn(t,u,r,a,h)}),Hc=Ce(function(t,r,a){var u=$|P;if(a.length){var h=or(a,h1(Hc));u|=H}return Yn(r,u,t,a,h)});function Wc(t,r,a){r=a?i:r;var u=Yn(t,T,i,i,i,i,i,r);return u.placeholder=Wc.placeholder,u}function Uc(t,r,a){r=a?i:r;var u=Yn(t,z,i,i,i,i,i,r);return u.placeholder=Uc.placeholder,u}function Zc(t,r,a){var u,h,_,w,S,M,N=0,K=!1,Z=!1,J=!0;if(typeof t!="function")throw new rn(c);r=cn(r)||0,Xe(a)&&(K=!!a.leading,Z="maxWait"in a,_=Z?pt(cn(a.maxWait)||0,r):_,J="trailing"in a?!!a.trailing:J);function ie(st){var Cn=u,Qn=h;return u=h=i,N=st,w=t.apply(Qn,Cn),w}function ce(st){return N=st,S=H1(Le,r),K?ie(st):w}function ve(st){var Cn=st-M,Qn=st-N,f2=r-Cn;return Z?St(f2,_-Qn):f2}function se(st){var Cn=st-M,Qn=st-N;return M===i||Cn>=r||Cn<0||Z&&Qn>=_}function Le(){var st=m0();if(se(st))return ke(st);S=H1(Le,ve(st))}function ke(st){return S=i,J&&u?ie(st):(u=h=i,w)}function Vt(){S!==i&&tc(S),N=0,u=M=h=S=i}function Et(){return S===i?w:ke(m0())}function jt(){var st=m0(),Cn=se(st);if(u=arguments,h=this,M=st,Cn){if(S===i)return ce(M);if(Z)return tc(S),S=H1(Le,r),ie(M)}return S===i&&(S=H1(Le,r)),w}return jt.cancel=Vt,jt.flush=Et,jt}var vS=Ce(function(t,r){return E5(t,1,r)}),CS=Ce(function(t,r,a){return E5(t,cn(r)||0,a)});function xS(t){return Yn(t,V)}function y0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new rn(c);var a=function(){var u=arguments,h=r?r.apply(this,u):u[0],_=a.cache;if(_.has(h))return _.get(h);var w=t.apply(this,u);return a.cache=_.set(h,w)||_,w};return a.cache=new(y0.Cache||Zn),a}y0.Cache=Zn;function b0(t){if(typeof t!="function")throw new rn(c);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function wS(t){return Kc(2,t)}var $S=u$(function(t,r){r=r.length==1&&me(r[0])?Ge(r[0],Yt(le())):Ge(bt(r,1),Yt(le()));var a=r.length;return Ce(function(u){for(var h=-1,_=St(u.length,a);++h<_;)u[h]=r[h].call(this,u[h]);return Ut(t,this,u)})}),Aa=Ce(function(t,r){var a=or(r,h1(Aa));return Yn(t,H,i,r,a)}),Yc=Ce(function(t,r){var a=or(r,h1(Yc));return Yn(t,U,i,r,a)}),LS=qn(function(t,r){return Yn(t,D,i,i,i,r)});function SS(t,r){if(typeof t!="function")throw new rn(c);return r=r===i?r:be(r),Ce(t,r)}function kS(t,r){if(typeof t!="function")throw new rn(c);return r=r==null?0:pt(be(r),0),Ce(function(a){var u=a[r],h=ur(a,0,r);return u&&ir(h,u),Ut(t,this,h)})}function AS(t,r,a){var u=!0,h=!0;if(typeof t!="function")throw new rn(c);return Xe(a)&&(u="leading"in a?!!a.leading:u,h="trailing"in a?!!a.trailing:h),Zc(t,r,{leading:u,maxWait:r,trailing:h})}function MS(t){return Nc(t,1)}function TS(t,r){return Aa(da(r),t)}function PS(){if(!arguments.length)return[];var t=arguments[0];return me(t)?t:[t]}function IS(t){return an(t,L)}function OS(t,r){return r=typeof r=="function"?r:i,an(t,L,r)}function ES(t){return an(t,b|L)}function DS(t,r){return r=typeof r=="function"?r:i,an(t,b|L,r)}function RS(t,r){return r==null||O5(t,r,mt(r))}function vn(t,r){return t===r||t!==t&&r!==r}var BS=f0(ea),FS=f0(function(t,r){return t>=r}),Lr=z5(function(){return arguments}())?z5:function(t){return rt(t)&&Re.call(t,"callee")&&!L5.call(t,"callee")},me=E.isArray,zS=a5?Yt(a5):qw;function zt(t){return t!=null&&v0(t.length)&&!Vn(t)}function at(t){return rt(t)&&zt(t)}function NS(t){return t===!0||t===!1||rt(t)&&It(t)==je}var fr=ew||Na,KS=s5?Yt(s5):Gw;function HS(t){return rt(t)&&t.nodeType===1&&!W1(t)}function WS(t){if(t==null)return!0;if(zt(t)&&(me(t)||typeof t=="string"||typeof t.splice=="function"||fr(t)||g1(t)||Lr(t)))return!t.length;var r=kt(t);if(r==_t||r==et)return!t.size;if(K1(t))return!ra(t).length;for(var a in t)if(Re.call(t,a))return!1;return!0}function US(t,r){return F1(t,r)}function ZS(t,r,a){a=typeof a=="function"?a:i;var u=a?a(t,r):i;return u===i?F1(t,r,i,a):!!u}function Ma(t){if(!rt(t))return!1;var r=It(t);return r==Rt||r==gn||typeof t.message=="string"&&typeof t.name=="string"&&!W1(t)}function YS(t){return typeof t=="number"&&k5(t)}function Vn(t){if(!Xe(t))return!1;var r=It(t);return r==pn||r==kn||r==ut||r==Bt}function qc(t){return typeof t=="number"&&t==be(t)}function v0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ft}function Xe(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function rt(t){return t!=null&&typeof t=="object"}var Gc=l5?Yt(l5):jw;function qS(t,r){return t===r||na(t,r,ba(r))}function GS(t,r,a){return a=typeof a=="function"?a:i,na(t,r,ba(r),a)}function VS(t){return Vc(t)&&t!=+t}function jS(t){if(O$(t))throw new he(l);return N5(t)}function QS(t){return t===null}function XS(t){return t==null}function Vc(t){return typeof t=="number"||rt(t)&&It(t)==Pe}function W1(t){if(!rt(t)||It(t)!=Qe)return!1;var r=qi(t);if(r===null)return!0;var a=Re.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Wi.call(a)==Gx}var Ta=c5?Yt(c5):Qw;function JS(t){return qc(t)&&t>=-ft&&t<=ft}var jc=u5?Yt(u5):Xw;function C0(t){return typeof t=="string"||!me(t)&&rt(t)&&It(t)==tn}function Gt(t){return typeof t=="symbol"||rt(t)&&It(t)==tr}var g1=f5?Yt(f5):Jw;function ek(t){return t===i}function tk(t){return rt(t)&&kt(t)==_n}function nk(t){return rt(t)&&It(t)==B}var rk=f0(ia),ik=f0(function(t,r){return t<=r});function Qc(t){if(!t)return[];if(zt(t))return C0(t)?mn(t):Ft(t);if(T1&&t[T1])return Rx(t[T1]());var r=kt(t),a=r==_t?Zo:r==et?Ni:p1;return a(t)}function jn(t){if(!t)return t===0?t:0;if(t=cn(t),t===Ye||t===-Ye){var r=t<0?-1:1;return r*$e}return t===t?t:0}function be(t){var r=jn(t),a=r%1;return r===r?a?r-a:r:0}function Xc(t){return t?Cr(be(t),0,Ae):0}function cn(t){if(typeof t=="number")return t;if(Gt(t))return oe;if(Xe(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=Xe(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=m5(t);var a=zC.test(t);return a||KC.test(t)?bx(t.slice(2),a?2:8):FC.test(t)?oe:+t}function Jc(t){return Pn(t,Nt(t))}function ok(t){return t?Cr(be(t),-ft,ft):t===0?t:0}function Be(t){return t==null?"":qt(t)}var ak=f1(function(t,r){if(K1(r)||zt(r)){Pn(r,mt(r),t);return}for(var a in r)Re.call(r,a)&&D1(t,a,r[a])}),e2=f1(function(t,r){Pn(r,Nt(r),t)}),t2=f1(function(t,r,a,u){Pn(r,Nt(r),t,u)}),Pa=f1(function(t,r,a,u){Pn(r,mt(r),t,u)}),sk=qn(Qo);function lk(t,r){var a=u1(t);return r==null?a:I5(a,r)}var ck=Ce(function(t,r){t=Ne(t);var a=-1,u=r.length,h=u>2?r[2]:i;for(h&&Ot(r[0],r[1],h)&&(u=1);++a<u;)for(var _=r[a],w=Nt(_),S=-1,M=w.length;++S<M;){var N=w[S],K=t[N];(K===i||vn(K,s1[N])&&!Re.call(t,N))&&(t[N]=_[N])}return t}),uk=Ce(function(t){return t.push(i,mc),Ut(n2,i,t)});function fk(t,r){return h5(t,le(r,3),Tn)}function dk(t,r){return h5(t,le(r,3),Jo)}function hk(t,r){return t==null?t:Xo(t,le(r,3),Nt)}function gk(t,r){return t==null?t:B5(t,le(r,3),Nt)}function pk(t,r){return t&&Tn(t,le(r,3))}function _k(t,r){return t&&Jo(t,le(r,3))}function mk(t){return t==null?[]:r0(t,mt(t))}function yk(t){return t==null?[]:r0(t,Nt(t))}function Ia(t,r,a){var u=t==null?i:xr(t,r);return u===i?a:u}function bk(t,r){return t!=null&&vc(t,r,Ww)}function Oa(t,r){return t!=null&&vc(t,r,Uw)}var vk=dc(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ui.call(r)),t[r]=a},Da(Kt)),Ck=dc(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ui.call(r)),Re.call(t,r)?t[r].push(a):t[r]=[a]},le),xk=Ce(B1);function mt(t){return zt(t)?T5(t):ra(t)}function Nt(t){return zt(t)?T5(t,!0):e$(t)}function wk(t,r){var a={};return r=le(r,3),Tn(t,function(u,h,_){Mn(a,r(u,h,_),u)}),a}function $k(t,r){var a={};return r=le(r,3),Tn(t,function(u,h,_){Mn(a,h,r(u,h,_))}),a}var Lk=f1(function(t,r,a){i0(t,r,a)}),n2=f1(function(t,r,a,u){i0(t,r,a,u)}),Sk=qn(function(t,r){var a={};if(t==null)return a;var u=!1;r=Ge(r,function(_){return _=cr(_,t),u||(u=_.length>1),_}),Pn(t,ma(t),a),u&&(a=an(a,b|C|L,C$));for(var h=r.length;h--;)ca(a,r[h]);return a});function kk(t,r){return r2(t,b0(le(r)))}var Ak=qn(function(t,r){return t==null?{}:n$(t,r)});function r2(t,r){if(t==null)return{};var a=Ge(ma(t),function(u){return[u]});return r=le(r),q5(t,a,function(u,h){return r(u,h[0])})}function Mk(t,r,a){r=cr(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var _=t==null?i:t[bn(r[u])];_===i&&(u=h,_=a),t=Vn(_)?_.call(t):_}return t}function Tk(t,r,a){return t==null?t:z1(t,r,a)}function Pk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:z1(t,r,a,u)}var i2=pc(mt),o2=pc(Nt);function Ik(t,r,a){var u=me(t),h=u||fr(t)||g1(t);if(r=le(r,4),a==null){var _=t&&t.constructor;h?a=u?new _:[]:Xe(t)?a=Vn(_)?u1(qi(t)):{}:a={}}return(h?Zt:Tn)(t,function(w,S,M){return r(a,w,S,M)}),a}function Ok(t,r){return t==null?!0:ca(t,r)}function Ek(t,r,a){return t==null?t:X5(t,r,da(a))}function Dk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:X5(t,r,da(a),u)}function p1(t){return t==null?[]:Uo(t,mt(t))}function Rk(t){return t==null?[]:Uo(t,Nt(t))}function Bk(t,r,a){return a===i&&(a=r,r=i),a!==i&&(a=cn(a),a=a===a?a:0),r!==i&&(r=cn(r),r=r===r?r:0),Cr(cn(t),r,a)}function Fk(t,r,a){return r=jn(r),a===i?(a=r,r=0):a=jn(a),t=cn(t),Zw(t,r,a)}function zk(t,r,a){if(a&&typeof a!="boolean"&&Ot(t,r,a)&&(r=a=i),a===i&&(typeof r=="boolean"?(a=r,r=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&r===i?(t=0,r=1):(t=jn(t),r===i?(r=t,t=0):r=jn(r)),t>r){var u=t;t=r,r=u}if(a||t%1||r%1){var h=A5();return St(t+h*(r-t+yx("1e-"+((h+"").length-1))),r)}return aa(t,r)}var Nk=d1(function(t,r,a){return r=r.toLowerCase(),t+(a?a2(r):r)});function a2(t){return Ea(Be(t).toLowerCase())}function s2(t){return t=Be(t),t&&t.replace(WC,Px).replace(lx,"")}function Kk(t,r,a){t=Be(t),r=qt(r);var u=t.length;a=a===i?u:Cr(be(a),0,u);var h=a;return a-=r.length,a>=0&&t.slice(a,h)==r}function Hk(t){return t=Be(t),t&&$C.test(t)?t.replace(R9,Ix):t}function Wk(t){return t=Be(t),t&&TC.test(t)?t.replace(Ao,"\\$&"):t}var Uk=d1(function(t,r,a){return t+(a?"-":"")+r.toLowerCase()}),Zk=d1(function(t,r,a){return t+(a?" ":"")+r.toLowerCase()}),Yk=cc("toLowerCase");function qk(t,r,a){t=Be(t),r=be(r);var u=r?o1(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return u0(Qi(h),a)+t+u0(ji(h),a)}function Gk(t,r,a){t=Be(t),r=be(r);var u=r?o1(t):0;return r&&u<r?t+u0(r-u,a):t}function Vk(t,r,a){t=Be(t),r=be(r);var u=r?o1(t):0;return r&&u<r?u0(r-u,a)+t:t}function jk(t,r,a){return a||r==null?r=0:r&&(r=+r),iw(Be(t).replace(Mo,""),r||0)}function Qk(t,r,a){return(a?Ot(t,r,a):r===i)?r=1:r=be(r),sa(Be(t),r)}function Xk(){var t=arguments,r=Be(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var Jk=d1(function(t,r,a){return t+(a?"_":"")+r.toLowerCase()});function eA(t,r,a){return a&&typeof a!="number"&&Ot(t,r,a)&&(r=a=i),a=a===i?Ae:a>>>0,a?(t=Be(t),t&&(typeof r=="string"||r!=null&&!Ta(r))&&(r=qt(r),!r&&i1(t))?ur(mn(t),0,a):t.split(r,a)):[]}var tA=d1(function(t,r,a){return t+(a?" ":"")+Ea(r)});function nA(t,r,a){return t=Be(t),a=a==null?0:Cr(be(a),0,t.length),r=qt(r),t.slice(a,a+r.length)==r}function rA(t,r,a){var u=p.templateSettings;a&&Ot(t,r,a)&&(r=i),t=Be(t),r=Pa({},r,u,_c);var h=Pa({},r.imports,u.imports,_c),_=mt(h),w=Uo(h,_);Zt(_,function(se){if(F9.test(se))throw new he(d)});var S,M,N=0,K=r.interpolate||Di,Z="__p += '",J=Yo((r.escape||Di).source+"|"+K.source+"|"+(K===B9?BC:Di).source+"|"+(r.evaluate||Di).source+"|$","g"),ie="//# sourceURL="+(Re.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hx+"]")+`
|
|
11
|
-
`;t.replace(J,function(
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
17
|
-
'`),
|
|
18
|
-
`;var
|
|
10
|
+
`)}function T$(t){return _e(t)||Lr(t)||!!(I5&&t&&t[I5])}function Vn(t,r){var a=typeof t;return r=r??dt,!!r&&(a=="number"||a!="symbol"&&HC.test(t))&&t>-1&&t%1==0&&t<r}function It(t,r,a){if(!et(a))return!1;var u=typeof r;return(u=="number"?Bt(a)&&Vn(r,a.length):u=="string"&&r in a)?bn(a[r],t):!1}function Ta(t,r){if(_e(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||qt(t)?!0:Wi.test(t)||!Hi.test(t)||r!=null&&t in Ke(r)}function P$(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function Pa(t){var r=C0(t),a=p[r];if(typeof a!="function"||!(r in ke.prototype))return!1;if(t===a)return!0;var u=ka(a);return!!u&&t===u[0]}function I$(t){return!!A5&&A5 in t}var O$=Qi?jn:Va;function U1(t){var r=t&&t.constructor,a=typeof r=="function"&&r.prototype||s1;return t===a}function Ac(t){return t===t&&!et(t)}function Mc(t,r){return function(a){return a==null?!1:a[t]===r&&(r!==i||t in Ke(a))}}function E$(t){var r=k0(t,function(u){return a.size===v&&a.clear(),u}),a=r.cache;return r}function D$(t,r){var a=t[1],u=r[1],h=a|u,_=h<($|P|I),w=u==I&&a==T||u==I&&a==R&&t[7].length<=r[8]||u==(I|R)&&r[7].length<=r[8]&&a==T;if(!(_||w))return t;u&$&&(t[2]=r[2],h|=a&$?0:O);var S=r[3];if(S){var M=t[3];t[3]=M?fc(M,S,r[4]):S,t[4]=M?or(t[3],y):r[4]}return S=r[5],S&&(M=t[5],t[5]=M?dc(M,S,r[6]):S,t[6]=M?or(t[5],y):r[6]),S=r[7],S&&(t[7]=S),u&I&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function R$(t){var r=[];if(t!=null)for(var a in Ke(t))r.push(a);return r}function B$(t){return Ji.call(t)}function Tc(t,r,a){return r=pt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,_=pt(u.length-r,0),w=E(_);++h<_;)w[h]=u[r+h];h=-1;for(var S=E(r+1);++h<r;)S[h]=u[h];return S[r]=a(w),Wt(t,this,S)}}function Pc(t,r){return r.length<2?t:xr(t,an(r,0,-1))}function F$(t,r){for(var a=t.length,u=St(r.length,a),h=Rt(t);u--;){var _=r[u];t[u]=Vn(_,a)?h[_]:i}return t}function Ia(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var Ic=Ec(tc),Z1=Jx||function(t,r){return bt.setTimeout(t,r)},Oa=Ec(s$);function Oc(t,r,a){var u=r+"";return Oa(t,M$(u,z$(S$(u),a)))}function Ec(t){var r=0,a=0;return function(){var u=rw(),h=Oe-(u-a);if(a=u,h>0){if(++r>=te)return arguments[0]}else r=0;return t.apply(i,arguments)}}function w0(t,r){var a=-1,u=t.length,h=u-1;for(r=r===i?u:r;++a<r;){var _=pa(a,h),w=t[_];t[_]=t[a],t[a]=w}return t.length=r,t}var Dc=E$(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(MC,function(a,u,h,_){r.push(h?_.replace(RC,"$1"):u||a)}),r});function yn(t){if(typeof t=="string"||qt(t))return t;var r=t+"";return r=="0"&&1/t==-qe?"-0":r}function $r(t){if(t!=null){try{return Xi.call(t)}catch{}try{return t+""}catch{}}return""}function z$(t,r){return Ut(Te,function(a){var u="_."+a[0];r&a[1]&&!qi(t,u)&&t.push(u)}),t.sort()}function Rc(t){if(t instanceof ke)return t.clone();var r=new rn(t.__wrapped__,t.__chain__);return r.__actions__=Rt(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function N$(t,r,a){(a?It(t,r,a):r===i)?r=1:r=pt(be(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,_=0,w=E(o0(u/r));h<u;)w[_++]=an(t,h,h+=r);return w}function K$(t){for(var r=-1,a=t==null?0:t.length,u=0,h=[];++r<a;){var _=t[r];_&&(h[u++]=_)}return h}function H$(){var t=arguments.length;if(!t)return[];for(var r=E(t-1),a=arguments[0],u=t;u--;)r[u-1]=arguments[u];return ir(_e(a)?Rt(a):[a],vt(r,1))}var W$=we(function(t,r){return ot(t)?z1(t,vt(r,1,ot,!0)):[]}),U$=we(function(t,r){var a=sn(r);return ot(a)&&(a=i),ot(t)?z1(t,vt(r,1,ot,!0),se(a,2)):[]}),Z$=we(function(t,r){var a=sn(r);return ot(a)&&(a=i),ot(t)?z1(t,vt(r,1,ot,!0),i,a):[]});function Y$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),an(t,r<0?0:r,u)):[]}function q$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,an(t,0,r<0?0:r)):[]}function G$(t,r){return t&&t.length?p0(t,se(r,3),!0,!0):[]}function V$(t,r){return t&&t.length?p0(t,se(r,3),!0):[]}function j$(t,r,a,u){var h=t==null?0:t.length;return h?(a&&typeof a!="number"&&It(t,r,a)&&(a=0,u=h),Hw(t,r,a,u)):[]}function Bc(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=pt(u+h,0)),Gi(t,se(r,3),h)}function Fc(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return a!==i&&(h=be(a),h=a<0?pt(u+h,0):St(h,u-1)),Gi(t,se(r,3),h,!0)}function zc(t){var r=t==null?0:t.length;return r?vt(t,1):[]}function Q$(t){var r=t==null?0:t.length;return r?vt(t,qe):[]}function X$(t,r){var a=t==null?0:t.length;return a?(r=r===i?1:be(r),vt(t,r)):[]}function J$(t){for(var r=-1,a=t==null?0:t.length,u={};++r<a;){var h=t[r];An(u,h[0],h[1])}return u}function Nc(t){return t&&t.length?t[0]:i}function eL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=pt(u+h,0)),r1(t,r,h)}function tL(t){var r=t==null?0:t.length;return r?an(t,0,-1):[]}var nL=we(function(t){var r=Ve(t,va);return r.length&&r[0]===t[0]?ua(r):[]}),rL=we(function(t){var r=sn(t),a=Ve(t,va);return r===sn(a)?r=i:a.pop(),a.length&&a[0]===t[0]?ua(a,se(r,2)):[]}),iL=we(function(t){var r=sn(t),a=Ve(t,va);return r=typeof r=="function"?r:i,r&&a.pop(),a.length&&a[0]===t[0]?ua(a,i,r):[]});function oL(t,r){return t==null?"":tw.call(t,r)}function sn(t){var r=t==null?0:t.length;return r?t[r-1]:i}function aL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u;return a!==i&&(h=be(a),h=h<0?pt(u+h,0):St(h,u-1)),r===r?zx(t,r,h):Gi(t,v5,h,!0)}function sL(t,r){return t&&t.length?Q5(t,be(r)):i}var lL=we(Kc);function Kc(t,r){return t&&t.length&&r&&r.length?ga(t,r):t}function cL(t,r,a){return t&&t.length&&r&&r.length?ga(t,r,se(a,2)):t}function uL(t,r,a){return t&&t.length&&r&&r.length?ga(t,r,i,a):t}var fL=Gn(function(t,r){var a=t==null?0:t.length,u=aa(t,r);return ec(t,Ve(r,function(h){return Vn(h,a)?+h:h}).sort(uc)),u});function dL(t,r){var a=[];if(!(t&&t.length))return a;var u=-1,h=[],_=t.length;for(r=se(r,3);++u<_;){var w=t[u];r(w,u,t)&&(a.push(w),h.push(u))}return ec(t,h),a}function Ea(t){return t==null?t:ow.call(t)}function hL(t,r,a){var u=t==null?0:t.length;return u?(a&&typeof a!="number"&&It(t,r,a)?(r=0,a=u):(r=r==null?0:be(r),a=a===i?u:be(a)),an(t,r,a)):[]}function gL(t,r){return g0(t,r)}function pL(t,r,a){return ma(t,r,se(a,2))}function _L(t,r){var a=t==null?0:t.length;if(a){var u=g0(t,r);if(u<a&&bn(t[u],r))return u}return-1}function mL(t,r){return g0(t,r,!0)}function yL(t,r,a){return ma(t,r,se(a,2),!0)}function bL(t,r){var a=t==null?0:t.length;if(a){var u=g0(t,r,!0)-1;if(bn(t[u],r))return u}return-1}function vL(t){return t&&t.length?nc(t):[]}function CL(t,r){return t&&t.length?nc(t,se(r,2)):[]}function xL(t){var r=t==null?0:t.length;return r?an(t,1,r):[]}function wL(t,r,a){return t&&t.length?(r=a||r===i?1:be(r),an(t,0,r<0?0:r)):[]}function $L(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,an(t,r<0?0:r,u)):[]}function LL(t,r){return t&&t.length?p0(t,se(r,3),!1,!0):[]}function SL(t,r){return t&&t.length?p0(t,se(r,3)):[]}var kL=we(function(t){return lr(vt(t,1,ot,!0))}),AL=we(function(t){var r=sn(t);return ot(r)&&(r=i),lr(vt(t,1,ot,!0),se(r,2))}),ML=we(function(t){var r=sn(t);return r=typeof r=="function"?r:i,lr(vt(t,1,ot,!0),i,r)});function TL(t){return t&&t.length?lr(t):[]}function PL(t,r){return t&&t.length?lr(t,se(r,2)):[]}function IL(t,r){return r=typeof r=="function"?r:i,t&&t.length?lr(t,i,r):[]}function Da(t){if(!(t&&t.length))return[];var r=0;return t=rr(t,function(a){if(ot(a))return r=pt(a.length,r),!0}),Xo(r,function(a){return Ve(t,Vo(a))})}function Hc(t,r){if(!(t&&t.length))return[];var a=Da(t);return r==null?a:Ve(a,function(u){return Wt(r,i,u)})}var OL=we(function(t,r){return ot(t)?z1(t,r):[]}),EL=we(function(t){return ba(rr(t,ot))}),DL=we(function(t){var r=sn(t);return ot(r)&&(r=i),ba(rr(t,ot),se(r,2))}),RL=we(function(t){var r=sn(t);return r=typeof r=="function"?r:i,ba(rr(t,ot),i,r)}),BL=we(Da);function FL(t,r){return ac(t||[],r||[],F1)}function zL(t,r){return ac(t||[],r||[],H1)}var NL=we(function(t){var r=t.length,a=r>1?t[r-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Hc(t,a)});function Wc(t){var r=p(t);return r.__chain__=!0,r}function KL(t,r){return r(t),t}function $0(t,r){return r(t)}var HL=Gn(function(t){var r=t.length,a=r?t[0]:0,u=this.__wrapped__,h=function(_){return aa(_,t)};return r>1||this.__actions__.length||!(u instanceof ke)||!Vn(a)?this.thru(h):(u=u.slice(a,+a+(r?1:0)),u.__actions__.push({func:$0,args:[h],thisArg:i}),new rn(u,this.__chain__).thru(function(_){return r&&!_.length&&_.push(i),_}))});function WL(){return Wc(this)}function UL(){return new rn(this.value(),this.__chain__)}function ZL(){this.__values__===i&&(this.__values__=r2(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function YL(){return this}function qL(t){for(var r,a=this;a instanceof c0;){var u=Rc(a);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;a=a.__wrapped__}return h.__wrapped__=t,r}function GL(){var t=this.__wrapped__;if(t instanceof ke){var r=t;return this.__actions__.length&&(r=new ke(this)),r=r.reverse(),r.__actions__.push({func:$0,args:[Ea],thisArg:i}),new rn(r,this.__chain__)}return this.thru(Ea)}function VL(){return oc(this.__wrapped__,this.__actions__)}var jL=_0(function(t,r,a){Be.call(t,a)?++t[a]:An(t,a,1)});function QL(t,r,a){var u=_e(t)?y5:Kw;return a&&It(t,r,a)&&(r=i),u(t,se(r,3))}function XL(t,r){var a=_e(t)?rr:H5;return a(t,se(r,3))}var JL=_c(Bc),eS=_c(Fc);function tS(t,r){return vt(L0(t,r),1)}function nS(t,r){return vt(L0(t,r),qe)}function rS(t,r,a){return a=a===i?1:be(a),vt(L0(t,r),a)}function Uc(t,r){var a=_e(t)?Ut:sr;return a(t,se(r,3))}function Zc(t,r){var a=_e(t)?xx:K5;return a(t,se(r,3))}var iS=_0(function(t,r,a){Be.call(t,a)?t[a].push(r):An(t,a,[r])});function oS(t,r,a,u){t=Bt(t)?t:p1(t),a=a&&!u?be(a):0;var h=t.length;return a<0&&(a=pt(h+a,0)),T0(t)?a<=h&&t.indexOf(r,a)>-1:!!h&&r1(t,r,a)>-1}var aS=we(function(t,r,a){var u=-1,h=typeof r=="function",_=Bt(t)?E(t.length):[];return sr(t,function(w){_[++u]=h?Wt(r,w,a):N1(w,r,a)}),_}),sS=_0(function(t,r,a){An(t,a,r)});function L0(t,r){var a=_e(t)?Ve:G5;return a(t,se(r,3))}function lS(t,r,a,u){return t==null?[]:(_e(r)||(r=r==null?[]:[r]),a=u?i:a,_e(a)||(a=a==null?[]:[a]),X5(t,r,a))}var cS=_0(function(t,r,a){t[a?0:1].push(r)},function(){return[[],[]]});function uS(t,r,a){var u=_e(t)?qo:x5,h=arguments.length<3;return u(t,se(r,4),a,h,sr)}function fS(t,r,a){var u=_e(t)?wx:x5,h=arguments.length<3;return u(t,se(r,4),a,h,K5)}function dS(t,r){var a=_e(t)?rr:H5;return a(t,A0(se(r,3)))}function hS(t){var r=_e(t)?B5:o$;return r(t)}function gS(t,r,a){(a?It(t,r,a):r===i)?r=1:r=be(r);var u=_e(t)?Rw:a$;return u(t,r)}function pS(t){var r=_e(t)?Bw:l$;return r(t)}function _S(t){if(t==null)return 0;if(Bt(t))return T0(t)?o1(t):t.length;var r=kt(t);return r==ut||r==ft?t.size:da(t).length}function mS(t,r,a){var u=_e(t)?Go:c$;return a&&It(t,r,a)&&(r=i),u(t,se(r,3))}var yS=we(function(t,r){if(t==null)return[];var a=r.length;return a>1&&It(t,r[0],r[1])?r=[]:a>2&&It(r[0],r[1],r[2])&&(r=[r[0]]),X5(t,vt(r,1),[])}),S0=Xx||function(){return bt.Date.now()};function bS(t,r){if(typeof r!="function")throw new nn(c);return t=be(t),function(){if(--t<1)return r.apply(this,arguments)}}function Yc(t,r,a){return r=a?i:r,r=t&&r==null?t.length:r,qn(t,I,i,i,i,i,r)}function qc(t,r){var a;if(typeof r!="function")throw new nn(c);return t=be(t),function(){return--t>0&&(a=r.apply(this,arguments)),t<=1&&(r=i),a}}var Ra=we(function(t,r,a){var u=$;if(a.length){var h=or(a,h1(Ra));u|=W}return qn(t,u,r,a,h)}),Gc=we(function(t,r,a){var u=$|P;if(a.length){var h=or(a,h1(Gc));u|=W}return qn(r,u,t,a,h)});function Vc(t,r,a){r=a?i:r;var u=qn(t,T,i,i,i,i,i,r);return u.placeholder=Vc.placeholder,u}function jc(t,r,a){r=a?i:r;var u=qn(t,z,i,i,i,i,i,r);return u.placeholder=jc.placeholder,u}function Qc(t,r,a){var u,h,_,w,S,M,K=0,H=!1,Z=!1,J=!0;if(typeof t!="function")throw new nn(c);r=ln(r)||0,et(a)&&(H=!!a.leading,Z="maxWait"in a,_=Z?pt(ln(a.maxWait)||0,r):_,J="trailing"in a?!!a.trailing:J);function re(at){var vn=u,Xn=h;return u=h=i,K=at,w=t.apply(Xn,vn),w}function le(at){return K=at,S=Z1(Se,r),H?re(at):w}function Ce(at){var vn=at-M,Xn=at-K,m2=r-vn;return Z?St(m2,_-Xn):m2}function ae(at){var vn=at-M,Xn=at-K;return M===i||vn>=r||vn<0||Z&&Xn>=_}function Se(){var at=S0();if(ae(at))return Ae(at);S=Z1(Se,Ce(at))}function Ae(at){return S=i,J&&u?re(at):(u=h=i,w)}function Gt(){S!==i&&sc(S),K=0,u=M=h=S=i}function Ot(){return S===i?w:Ae(S0())}function Vt(){var at=S0(),vn=ae(at);if(u=arguments,h=this,M=at,vn){if(S===i)return le(M);if(Z)return sc(S),S=Z1(Se,r),re(M)}return S===i&&(S=Z1(Se,r)),w}return Vt.cancel=Gt,Vt.flush=Ot,Vt}var vS=we(function(t,r){return N5(t,1,r)}),CS=we(function(t,r,a){return N5(t,ln(r)||0,a)});function xS(t){return qn(t,V)}function k0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new nn(c);var a=function(){var u=arguments,h=r?r.apply(this,u):u[0],_=a.cache;if(_.has(h))return _.get(h);var w=t.apply(this,u);return a.cache=_.set(h,w)||_,w};return a.cache=new(k0.Cache||Yn),a}k0.Cache=Yn;function A0(t){if(typeof t!="function")throw new nn(c);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function wS(t){return qc(2,t)}var $S=u$(function(t,r){r=r.length==1&&_e(r[0])?Ve(r[0],Zt(se())):Ve(vt(r,1),Zt(se()));var a=r.length;return we(function(u){for(var h=-1,_=St(u.length,a);++h<_;)u[h]=r[h].call(this,u[h]);return Wt(t,this,u)})}),Ba=we(function(t,r){var a=or(r,h1(Ba));return qn(t,W,i,r,a)}),Xc=we(function(t,r){var a=or(r,h1(Xc));return qn(t,U,i,r,a)}),LS=Gn(function(t,r){return qn(t,R,i,i,i,r)});function SS(t,r){if(typeof t!="function")throw new nn(c);return r=r===i?r:be(r),we(t,r)}function kS(t,r){if(typeof t!="function")throw new nn(c);return r=r==null?0:pt(be(r),0),we(function(a){var u=a[r],h=ur(a,0,r);return u&&ir(h,u),Wt(t,this,h)})}function AS(t,r,a){var u=!0,h=!0;if(typeof t!="function")throw new nn(c);return et(a)&&(u="leading"in a?!!a.leading:u,h="trailing"in a?!!a.trailing:h),Qc(t,r,{leading:u,maxWait:r,trailing:h})}function MS(t){return Yc(t,1)}function TS(t,r){return Ba(Ca(r),t)}function PS(){if(!arguments.length)return[];var t=arguments[0];return _e(t)?t:[t]}function IS(t){return on(t,L)}function OS(t,r){return r=typeof r=="function"?r:i,on(t,L,r)}function ES(t){return on(t,b|L)}function DS(t,r){return r=typeof r=="function"?r:i,on(t,b|L,r)}function RS(t,r){return r==null||z5(t,r,mt(r))}function bn(t,r){return t===r||t!==t&&r!==r}var BS=v0(ca),FS=v0(function(t,r){return t>=r}),Lr=Z5(function(){return arguments}())?Z5:function(t){return nt(t)&&Be.call(t,"callee")&&!P5.call(t,"callee")},_e=E.isArray,zS=d5?Zt(d5):qw;function Bt(t){return t!=null&&M0(t.length)&&!jn(t)}function ot(t){return nt(t)&&Bt(t)}function NS(t){return t===!0||t===!1||nt(t)&&Pt(t)==Qe}var fr=ew||Va,KS=h5?Zt(h5):Gw;function HS(t){return nt(t)&&t.nodeType===1&&!Y1(t)}function WS(t){if(t==null)return!0;if(Bt(t)&&(_e(t)||typeof t=="string"||typeof t.splice=="function"||fr(t)||g1(t)||Lr(t)))return!t.length;var r=kt(t);if(r==ut||r==ft)return!t.size;if(U1(t))return!da(t).length;for(var a in t)if(Be.call(t,a))return!1;return!0}function US(t,r){return K1(t,r)}function ZS(t,r,a){a=typeof a=="function"?a:i;var u=a?a(t,r):i;return u===i?K1(t,r,i,a):!!u}function Fa(t){if(!nt(t))return!1;var r=Pt(t);return r==hn||r==Ht||typeof t.message=="string"&&typeof t.name=="string"&&!Y1(t)}function YS(t){return typeof t=="number"&&O5(t)}function jn(t){if(!et(t))return!1;var r=Pt(t);return r==gn||r==Sn||r==ct||r==Dt}function Jc(t){return typeof t=="number"&&t==be(t)}function M0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=dt}function et(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function nt(t){return t!=null&&typeof t=="object"}var e2=g5?Zt(g5):jw;function qS(t,r){return t===r||fa(t,r,Aa(r))}function GS(t,r,a){return a=typeof a=="function"?a:i,fa(t,r,Aa(r),a)}function VS(t){return t2(t)&&t!=+t}function jS(t){if(O$(t))throw new he(l);return Y5(t)}function QS(t){return t===null}function XS(t){return t==null}function t2(t){return typeof t=="number"||nt(t)&&Pt(t)==Pe}function Y1(t){if(!nt(t)||Pt(t)!=Xe)return!1;var r=n0(t);if(r===null)return!0;var a=Be.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Xi.call(a)==Gx}var za=p5?Zt(p5):Qw;function JS(t){return Jc(t)&&t>=-dt&&t<=dt}var n2=_5?Zt(_5):Xw;function T0(t){return typeof t=="string"||!_e(t)&&nt(t)&&Pt(t)==pn}function qt(t){return typeof t=="symbol"||nt(t)&&Pt(t)==Hn}var g1=m5?Zt(m5):Jw;function ek(t){return t===i}function tk(t){return nt(t)&&kt(t)==D}function nk(t){return nt(t)&&Pt(t)==N}var rk=v0(ha),ik=v0(function(t,r){return t<=r});function r2(t){if(!t)return[];if(Bt(t))return T0(t)?_n(t):Rt(t);if(O1&&t[O1])return Rx(t[O1]());var r=kt(t),a=r==ut?ea:r==ft?Vi:p1;return a(t)}function Qn(t){if(!t)return t===0?t:0;if(t=ln(t),t===qe||t===-qe){var r=t<0?-1:1;return r*Le}return t===t?t:0}function be(t){var r=Qn(t),a=r%1;return r===r?a?r-a:r:0}function i2(t){return t?Cr(be(t),0,Me):0}function ln(t){if(typeof t=="number")return t;if(qt(t))return ie;if(et(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=et(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=w5(t);var a=zC.test(t);return a||KC.test(t)?bx(t.slice(2),a?2:8):FC.test(t)?ie:+t}function o2(t){return Tn(t,Ft(t))}function ok(t){return t?Cr(be(t),-dt,dt):t===0?t:0}function Fe(t){return t==null?"":Yt(t)}var ak=f1(function(t,r){if(U1(r)||Bt(r)){Tn(r,mt(r),t);return}for(var a in r)Be.call(r,a)&&F1(t,a,r[a])}),a2=f1(function(t,r){Tn(r,Ft(r),t)}),s2=f1(function(t,r,a,u){Tn(r,Ft(r),t,u)}),Na=f1(function(t,r,a,u){Tn(r,mt(r),t,u)}),sk=Gn(aa);function lk(t,r){var a=u1(t);return r==null?a:F5(a,r)}var ck=we(function(t,r){t=Ke(t);var a=-1,u=r.length,h=u>2?r[2]:i;for(h&&It(r[0],r[1],h)&&(u=1);++a<u;)for(var _=r[a],w=Ft(_),S=-1,M=w.length;++S<M;){var K=w[S],H=t[K];(H===i||bn(H,s1[K])&&!Be.call(t,K))&&(t[K]=_[K])}return t}),uk=we(function(t){return t.push(i,wc),Wt(l2,i,t)});function fk(t,r){return b5(t,se(r,3),Mn)}function dk(t,r){return b5(t,se(r,3),la)}function hk(t,r){return t==null?t:sa(t,se(r,3),Ft)}function gk(t,r){return t==null?t:W5(t,se(r,3),Ft)}function pk(t,r){return t&&Mn(t,se(r,3))}function _k(t,r){return t&&la(t,se(r,3))}function mk(t){return t==null?[]:d0(t,mt(t))}function yk(t){return t==null?[]:d0(t,Ft(t))}function Ka(t,r,a){var u=t==null?i:xr(t,r);return u===i?a:u}function bk(t,r){return t!=null&&Sc(t,r,Ww)}function Ha(t,r){return t!=null&&Sc(t,r,Uw)}var vk=yc(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ji.call(r)),t[r]=a},Ua(zt)),Ck=yc(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ji.call(r)),Be.call(t,r)?t[r].push(a):t[r]=[a]},se),xk=we(N1);function mt(t){return Bt(t)?R5(t):da(t)}function Ft(t){return Bt(t)?R5(t,!0):e$(t)}function wk(t,r){var a={};return r=se(r,3),Mn(t,function(u,h,_){An(a,r(u,h,_),u)}),a}function $k(t,r){var a={};return r=se(r,3),Mn(t,function(u,h,_){An(a,h,r(u,h,_))}),a}var Lk=f1(function(t,r,a){h0(t,r,a)}),l2=f1(function(t,r,a,u){h0(t,r,a,u)}),Sk=Gn(function(t,r){var a={};if(t==null)return a;var u=!1;r=Ve(r,function(_){return _=cr(_,t),u||(u=_.length>1),_}),Tn(t,Sa(t),a),u&&(a=on(a,b|C|L,C$));for(var h=r.length;h--;)ya(a,r[h]);return a});function kk(t,r){return c2(t,A0(se(r)))}var Ak=Gn(function(t,r){return t==null?{}:n$(t,r)});function c2(t,r){if(t==null)return{};var a=Ve(Sa(t),function(u){return[u]});return r=se(r),J5(t,a,function(u,h){return r(u,h[0])})}function Mk(t,r,a){r=cr(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var _=t==null?i:t[yn(r[u])];_===i&&(u=h,_=a),t=jn(_)?_.call(t):_}return t}function Tk(t,r,a){return t==null?t:H1(t,r,a)}function Pk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:H1(t,r,a,u)}var u2=Cc(mt),f2=Cc(Ft);function Ik(t,r,a){var u=_e(t),h=u||fr(t)||g1(t);if(r=se(r,4),a==null){var _=t&&t.constructor;h?a=u?new _:[]:et(t)?a=jn(_)?u1(n0(t)):{}:a={}}return(h?Ut:Mn)(t,function(w,S,M){return r(a,w,S,M)}),a}function Ok(t,r){return t==null?!0:ya(t,r)}function Ek(t,r,a){return t==null?t:ic(t,r,Ca(a))}function Dk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:ic(t,r,Ca(a),u)}function p1(t){return t==null?[]:Jo(t,mt(t))}function Rk(t){return t==null?[]:Jo(t,Ft(t))}function Bk(t,r,a){return a===i&&(a=r,r=i),a!==i&&(a=ln(a),a=a===a?a:0),r!==i&&(r=ln(r),r=r===r?r:0),Cr(ln(t),r,a)}function Fk(t,r,a){return r=Qn(r),a===i?(a=r,r=0):a=Qn(a),t=ln(t),Zw(t,r,a)}function zk(t,r,a){if(a&&typeof a!="boolean"&&It(t,r,a)&&(r=a=i),a===i&&(typeof r=="boolean"?(a=r,r=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Qn(t),r===i?(r=t,t=0):r=Qn(r)),t>r){var u=t;t=r,r=u}if(a||t%1||r%1){var h=E5();return St(t+h*(r-t+yx("1e-"+((h+"").length-1))),r)}return pa(t,r)}var Nk=d1(function(t,r,a){return r=r.toLowerCase(),t+(a?d2(r):r)});function d2(t){return Wa(Fe(t).toLowerCase())}function h2(t){return t=Fe(t),t&&t.replace(WC,Px).replace(lx,"")}function Kk(t,r,a){t=Fe(t),r=Yt(r);var u=t.length;a=a===i?u:Cr(be(a),0,u);var h=a;return a-=r.length,a>=0&&t.slice(a,h)==r}function Hk(t){return t=Fe(t),t&&zi.test(t)?t.replace(T1,Ix):t}function Wk(t){return t=Fe(t),t&&TC.test(t)?t.replace(Bo,"\\$&"):t}var Uk=d1(function(t,r,a){return t+(a?"-":"")+r.toLowerCase()}),Zk=d1(function(t,r,a){return t+(a?" ":"")+r.toLowerCase()}),Yk=pc("toLowerCase");function qk(t,r,a){t=Fe(t),r=be(r);var u=r?o1(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return b0(a0(h),a)+t+b0(o0(h),a)}function Gk(t,r,a){t=Fe(t),r=be(r);var u=r?o1(t):0;return r&&u<r?t+b0(r-u,a):t}function Vk(t,r,a){t=Fe(t),r=be(r);var u=r?o1(t):0;return r&&u<r?b0(r-u,a)+t:t}function jk(t,r,a){return a||r==null?r=0:r&&(r=+r),iw(Fe(t).replace(Fo,""),r||0)}function Qk(t,r,a){return(a?It(t,r,a):r===i)?r=1:r=be(r),_a(Fe(t),r)}function Xk(){var t=arguments,r=Fe(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var Jk=d1(function(t,r,a){return t+(a?"_":"")+r.toLowerCase()});function eA(t,r,a){return a&&typeof a!="number"&&It(t,r,a)&&(r=a=i),a=a===i?Me:a>>>0,a?(t=Fe(t),t&&(typeof r=="string"||r!=null&&!za(r))&&(r=Yt(r),!r&&i1(t))?ur(_n(t),0,a):t.split(r,a)):[]}var tA=d1(function(t,r,a){return t+(a?" ":"")+Wa(r)});function nA(t,r,a){return t=Fe(t),a=a==null?0:Cr(be(a),0,t.length),r=Yt(r),t.slice(a,a+r.length)==r}function rA(t,r,a){var u=p.templateSettings;a&&It(t,r,a)&&(r=i),t=Fe(t),r=Na({},r,u,xc);var h=Na({},r.imports,u.imports,xc),_=mt(h),w=Jo(h,_);Ut(_,function(ae){if(U9.test(ae))throw new he(d)});var S,M,K=0,H=r.interpolate||Ui,Z="__p += '",J=ta((r.escape||Ui).source+"|"+H.source+"|"+(H===P1?BC:Ui).source+"|"+(r.evaluate||Ui).source+"|$","g"),re="//# sourceURL="+(Be.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hx+"]")+`
|
|
11
|
+
`;t.replace(J,function(ae,Se,Ae,Gt,Ot,Vt){return Ae||(Ae=Gt),Z+=t.slice(K,Vt).replace(UC,Ox),Se&&(S=!0,Z+=`' +
|
|
12
|
+
__e(`+Se+`) +
|
|
13
|
+
'`),Ot&&(M=!0,Z+=`';
|
|
14
|
+
`+Ot+`;
|
|
15
|
+
__p += '`),Ae&&(Z+=`' +
|
|
16
|
+
((__t = (`+Ae+`)) == null ? '' : __t) +
|
|
17
|
+
'`),K=Vt+ae.length,ae}),Z+=`';
|
|
18
|
+
`;var le=Be.call(r,"variable")&&r.variable;if(!le)Z=`with (obj) {
|
|
19
19
|
`+Z+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
22
|
-
`+(
|
|
21
|
+
`;else if(U9.test(le))throw new he(f);Z=(M?Z.replace(Di,""):Z).replace(Ri,"$1").replace(Bi,"$1;"),Z="function("+(le||"obj")+`) {
|
|
22
|
+
`+(le?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(S?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+Z+`return __p
|
|
27
|
-
}`;var ve=c2(function(){return De(_,ie+"return "+Z).apply(i,w)});if(ve.source=Z,Ma(ve))throw ve;return ve}function iA(t){return Be(t).toLowerCase()}function oA(t){return Be(t).toUpperCase()}function aA(t,r,a){if(t=Be(t),t&&(a||r===i))return m5(t);if(!t||!(r=qt(r)))return t;var u=mn(t),h=mn(r),_=y5(u,h),w=b5(u,h)+1;return ur(u,_,w).join("")}function sA(t,r,a){if(t=Be(t),t&&(a||r===i))return t.slice(0,C5(t)+1);if(!t||!(r=qt(r)))return t;var u=mn(t),h=b5(u,mn(r))+1;return ur(u,0,h).join("")}function lA(t,r,a){if(t=Be(t),t&&(a||r===i))return t.replace(Mo,"");if(!t||!(r=qt(r)))return t;var u=mn(t),h=y5(u,mn(r));return ur(u,h).join("")}function cA(t,r){var a=j,u=te;if(Xe(r)){var h="separator"in r?r.separator:h;a="length"in r?be(r.length):a,u="omission"in r?qt(r.omission):u}t=Be(t);var _=t.length;if(i1(t)){var w=mn(t);_=w.length}if(a>=_)return t;var S=a-o1(u);if(S<1)return u;var M=w?ur(w,0,S).join(""):t.slice(0,S);if(h===i)return M+u;if(w&&(S+=M.length-S),Ta(h)){if(t.slice(S).search(h)){var N,K=M;for(h.global||(h=Yo(h.source,Be(z9.exec(h))+"g")),h.lastIndex=0;N=h.exec(K);)var Z=N.index;M=M.slice(0,Z===i?S:Z)}}else if(t.indexOf(qt(h),S)!=S){var J=M.lastIndexOf(h);J>-1&&(M=M.slice(0,J))}return M+u}function uA(t){return t=Be(t),t&&wC.test(t)?t.replace(D9,Nx):t}var fA=d1(function(t,r,a){return t+(a?" ":"")+r.toUpperCase()}),Ea=cc("toUpperCase");function l2(t,r,a){return t=Be(t),r=a?i:r,r===i?Dx(t)?Wx(t):Sx(t):t.match(r)||[]}var c2=Ce(function(t,r){try{return Ut(t,i,r)}catch(a){return Ma(a)?a:new he(a)}}),dA=qn(function(t,r){return Zt(r,function(a){a=bn(a),Mn(t,a,ka(t[a],t))}),t});function hA(t){var r=t==null?0:t.length,a=le();return t=r?Ge(t,function(u){if(typeof u[1]!="function")throw new rn(c);return[a(u[0]),u[1]]}):[],Ce(function(u){for(var h=-1;++h<r;){var _=t[h];if(Ut(_[0],this,u))return Ut(_[1],this,u)}})}function gA(t){return Nw(an(t,b))}function Da(t){return function(){return t}}function pA(t,r){return t==null||t!==t?r:t}var _A=fc(),mA=fc(!0);function Kt(t){return t}function Ra(t){return K5(typeof t=="function"?t:an(t,b))}function yA(t){return W5(an(t,b))}function bA(t,r){return U5(t,an(r,b))}var vA=Ce(function(t,r){return function(a){return B1(a,t,r)}}),CA=Ce(function(t,r){return function(a){return B1(t,a,r)}});function Ba(t,r,a){var u=mt(r),h=r0(r,u);a==null&&!(Xe(r)&&(h.length||!u.length))&&(a=r,r=t,t=this,h=r0(r,mt(r)));var _=!(Xe(a)&&"chain"in a)||!!a.chain,w=Vn(t);return Zt(h,function(S){var M=r[S];t[S]=M,w&&(t.prototype[S]=function(){var N=this.__chain__;if(_||N){var K=t(this.__wrapped__),Z=K.__actions__=Ft(this.__actions__);return Z.push({func:M,args:arguments,thisArg:t}),K.__chain__=N,K}return M.apply(t,ir([this.value()],arguments))})}),t}function xA(){return yt._===this&&(yt._=Vx),this}function Fa(){}function wA(t){return t=be(t),Ce(function(r){return Z5(r,t)})}var $A=ga(Ge),LA=ga(d5),SA=ga(zo);function u2(t){return Ca(t)?No(bn(t)):r$(t)}function kA(t){return function(r){return t==null?i:xr(t,r)}}var AA=hc(),MA=hc(!0);function za(){return[]}function Na(){return!1}function TA(){return{}}function PA(){return""}function IA(){return!0}function OA(t,r){if(t=be(t),t<1||t>ft)return[];var a=Ae,u=St(t,Ae);r=le(r),t-=Ae;for(var h=Wo(u,r);++a<t;)r(a);return h}function EA(t){return me(t)?Ge(t,bn):Gt(t)?[t]:Ft(Mc(Be(t)))}function DA(t){var r=++qx;return Be(t)+r}var RA=c0(function(t,r){return t+r},0),BA=pa("ceil"),FA=c0(function(t,r){return t/r},1),zA=pa("floor");function NA(t){return t&&t.length?n0(t,Kt,ea):i}function KA(t,r){return t&&t.length?n0(t,le(r,2),ea):i}function HA(t){return p5(t,Kt)}function WA(t,r){return p5(t,le(r,2))}function UA(t){return t&&t.length?n0(t,Kt,ia):i}function ZA(t,r){return t&&t.length?n0(t,le(r,2),ia):i}var YA=c0(function(t,r){return t*r},1),qA=pa("round"),GA=c0(function(t,r){return t-r},0);function VA(t){return t&&t.length?Ho(t,Kt):0}function jA(t,r){return t&&t.length?Ho(t,le(r,2)):0}return p.after=bS,p.ary=Nc,p.assign=ak,p.assignIn=e2,p.assignInWith=t2,p.assignWith=Pa,p.at=sk,p.before=Kc,p.bind=ka,p.bindAll=dA,p.bindKey=Hc,p.castArray=PS,p.chain=Bc,p.chunk=N$,p.compact=K$,p.concat=H$,p.cond=hA,p.conforms=gA,p.constant=Da,p.countBy=jL,p.create=lk,p.curry=Wc,p.curryRight=Uc,p.debounce=Zc,p.defaults=ck,p.defaultsDeep=uk,p.defer=vS,p.delay=CS,p.difference=W$,p.differenceBy=U$,p.differenceWith=Z$,p.drop=Y$,p.dropRight=q$,p.dropRightWhile=G$,p.dropWhile=V$,p.fill=j$,p.filter=XL,p.flatMap=tS,p.flatMapDeep=nS,p.flatMapDepth=rS,p.flatten=Oc,p.flattenDeep=Q$,p.flattenDepth=X$,p.flip=xS,p.flow=_A,p.flowRight=mA,p.fromPairs=J$,p.functions=mk,p.functionsIn=yk,p.groupBy=iS,p.initial=tL,p.intersection=nL,p.intersectionBy=rL,p.intersectionWith=iL,p.invert=vk,p.invertBy=Ck,p.invokeMap=aS,p.iteratee=Ra,p.keyBy=sS,p.keys=mt,p.keysIn=Nt,p.map=_0,p.mapKeys=wk,p.mapValues=$k,p.matches=yA,p.matchesProperty=bA,p.memoize=y0,p.merge=Lk,p.mergeWith=n2,p.method=vA,p.methodOf=CA,p.mixin=Ba,p.negate=b0,p.nthArg=wA,p.omit=Sk,p.omitBy=kk,p.once=wS,p.orderBy=lS,p.over=$A,p.overArgs=$S,p.overEvery=LA,p.overSome=SA,p.partial=Aa,p.partialRight=Yc,p.partition=cS,p.pick=Ak,p.pickBy=r2,p.property=u2,p.propertyOf=kA,p.pull=lL,p.pullAll=Dc,p.pullAllBy=cL,p.pullAllWith=uL,p.pullAt=fL,p.range=AA,p.rangeRight=MA,p.rearg=LS,p.reject=dS,p.remove=dL,p.rest=SS,p.reverse=La,p.sampleSize=gS,p.set=Tk,p.setWith=Pk,p.shuffle=pS,p.slice=hL,p.sortBy=yS,p.sortedUniq=vL,p.sortedUniqBy=CL,p.split=eA,p.spread=kS,p.tail=xL,p.take=wL,p.takeRight=$L,p.takeRightWhile=LL,p.takeWhile=SL,p.tap=KL,p.throttle=AS,p.thru=p0,p.toArray=Qc,p.toPairs=i2,p.toPairsIn=o2,p.toPath=EA,p.toPlainObject=Jc,p.transform=Ik,p.unary=MS,p.union=kL,p.unionBy=AL,p.unionWith=ML,p.uniq=TL,p.uniqBy=PL,p.uniqWith=IL,p.unset=Ok,p.unzip=Sa,p.unzipWith=Rc,p.update=Ek,p.updateWith=Dk,p.values=p1,p.valuesIn=Rk,p.without=OL,p.words=l2,p.wrap=TS,p.xor=EL,p.xorBy=DL,p.xorWith=RL,p.zip=BL,p.zipObject=FL,p.zipObjectDeep=zL,p.zipWith=NL,p.entries=i2,p.entriesIn=o2,p.extend=e2,p.extendWith=t2,Ba(p,p),p.add=RA,p.attempt=c2,p.camelCase=Nk,p.capitalize=a2,p.ceil=BA,p.clamp=Bk,p.clone=IS,p.cloneDeep=ES,p.cloneDeepWith=DS,p.cloneWith=OS,p.conformsTo=RS,p.deburr=s2,p.defaultTo=pA,p.divide=FA,p.endsWith=Kk,p.eq=vn,p.escape=Hk,p.escapeRegExp=Wk,p.every=QL,p.find=JL,p.findIndex=Pc,p.findKey=fk,p.findLast=eS,p.findLastIndex=Ic,p.findLastKey=dk,p.floor=zA,p.forEach=Fc,p.forEachRight=zc,p.forIn=hk,p.forInRight=gk,p.forOwn=pk,p.forOwnRight=_k,p.get=Ia,p.gt=BS,p.gte=FS,p.has=bk,p.hasIn=Oa,p.head=Ec,p.identity=Kt,p.includes=oS,p.indexOf=eL,p.inRange=Fk,p.invoke=xk,p.isArguments=Lr,p.isArray=me,p.isArrayBuffer=zS,p.isArrayLike=zt,p.isArrayLikeObject=at,p.isBoolean=NS,p.isBuffer=fr,p.isDate=KS,p.isElement=HS,p.isEmpty=WS,p.isEqual=US,p.isEqualWith=ZS,p.isError=Ma,p.isFinite=YS,p.isFunction=Vn,p.isInteger=qc,p.isLength=v0,p.isMap=Gc,p.isMatch=qS,p.isMatchWith=GS,p.isNaN=VS,p.isNative=jS,p.isNil=XS,p.isNull=QS,p.isNumber=Vc,p.isObject=Xe,p.isObjectLike=rt,p.isPlainObject=W1,p.isRegExp=Ta,p.isSafeInteger=JS,p.isSet=jc,p.isString=C0,p.isSymbol=Gt,p.isTypedArray=g1,p.isUndefined=ek,p.isWeakMap=tk,p.isWeakSet=nk,p.join=oL,p.kebabCase=Uk,p.last=ln,p.lastIndexOf=aL,p.lowerCase=Zk,p.lowerFirst=Yk,p.lt=rk,p.lte=ik,p.max=NA,p.maxBy=KA,p.mean=HA,p.meanBy=WA,p.min=UA,p.minBy=ZA,p.stubArray=za,p.stubFalse=Na,p.stubObject=TA,p.stubString=PA,p.stubTrue=IA,p.multiply=YA,p.nth=sL,p.noConflict=xA,p.noop=Fa,p.now=m0,p.pad=qk,p.padEnd=Gk,p.padStart=Vk,p.parseInt=jk,p.random=zk,p.reduce=uS,p.reduceRight=fS,p.repeat=Qk,p.replace=Xk,p.result=Mk,p.round=qA,p.runInContext=A,p.sample=hS,p.size=_S,p.snakeCase=Jk,p.some=mS,p.sortedIndex=gL,p.sortedIndexBy=pL,p.sortedIndexOf=_L,p.sortedLastIndex=mL,p.sortedLastIndexBy=yL,p.sortedLastIndexOf=bL,p.startCase=tA,p.startsWith=nA,p.subtract=GA,p.sum=VA,p.sumBy=jA,p.template=rA,p.times=OA,p.toFinite=jn,p.toInteger=be,p.toLength=Xc,p.toLower=iA,p.toNumber=cn,p.toSafeInteger=ok,p.toString=Be,p.toUpper=oA,p.trim=aA,p.trimEnd=sA,p.trimStart=lA,p.truncate=cA,p.unescape=uA,p.uniqueId=DA,p.upperCase=fA,p.upperFirst=Ea,p.each=Fc,p.eachRight=zc,p.first=Ec,Ba(p,function(){var t={};return Tn(p,function(r,a){Re.call(p.prototype,a)||(t[a]=r)}),t}(),{chain:!1}),p.VERSION=o,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Zt(["drop","take"],function(t,r){Se.prototype[t]=function(a){a=a===i?1:pt(be(a),0);var u=this.__filtered__&&!r?new Se(this):this.clone();return u.__filtered__?u.__takeCount__=St(a,u.__takeCount__):u.__views__.push({size:St(a,Ae),type:t+(u.__dir__<0?"Right":"")}),u},Se.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Zt(["filter","map","takeWhile"],function(t,r){var a=r+1,u=a==ot||a==wt;Se.prototype[t]=function(h){var _=this.clone();return _.__iteratees__.push({iteratee:le(h,3),type:a}),_.__filtered__=_.__filtered__||u,_}}),Zt(["head","last"],function(t,r){var a="take"+(r?"Right":"");Se.prototype[t]=function(){return this[a](1).value()[0]}}),Zt(["initial","tail"],function(t,r){var a="drop"+(r?"":"Right");Se.prototype[t]=function(){return this.__filtered__?new Se(this):this[a](1)}}),Se.prototype.compact=function(){return this.filter(Kt)},Se.prototype.find=function(t){return this.filter(t).head()},Se.prototype.findLast=function(t){return this.reverse().find(t)},Se.prototype.invokeMap=Ce(function(t,r){return typeof t=="function"?new Se(this):this.map(function(a){return B1(a,t,r)})}),Se.prototype.reject=function(t){return this.filter(b0(le(t)))},Se.prototype.slice=function(t,r){t=be(t);var a=this;return a.__filtered__&&(t>0||r<0)?new Se(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),r!==i&&(r=be(r),a=r<0?a.dropRight(-r):a.take(r-t)),a)},Se.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Se.prototype.toArray=function(){return this.take(Ae)},Tn(Se.prototype,function(t,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],_=u||/^find/.test(r);h&&(p.prototype[r]=function(){var w=this.__wrapped__,S=u?[1]:arguments,M=w instanceof Se,N=S[0],K=M||me(w),Z=function(Le){var ke=h.apply(p,ir([Le],S));return u&&J?ke[0]:ke};K&&a&&typeof N=="function"&&N.length!=1&&(M=K=!1);var J=this.__chain__,ie=!!this.__actions__.length,ce=_&&!J,ve=M&&!ie;if(!_&&K){w=ve?w:new Se(this);var se=t.apply(w,S);return se.__actions__.push({func:p0,args:[Z],thisArg:i}),new on(se,J)}return ce&&ve?t.apply(this,S):(se=this.thru(Z),ce?u?se.value()[0]:se.value():se)})}),Zt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ki[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var _=this.value();return r.apply(me(_)?_:[],h)}return this[a](function(w){return r.apply(me(w)?w:[],h)})}}),Tn(Se.prototype,function(t,r){var a=p[r];if(a){var u=a.name+"";Re.call(c1,u)||(c1[u]=[]),c1[u].push({name:r,func:a})}}),c1[l0(i,P).name]=[{name:"wrapper",func:i}],Se.prototype.clone=fw,Se.prototype.reverse=dw,Se.prototype.value=hw,p.prototype.at=HL,p.prototype.chain=WL,p.prototype.commit=UL,p.prototype.next=ZL,p.prototype.plant=qL,p.prototype.reverse=GL,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=VL,p.prototype.first=p.prototype.head,T1&&(p.prototype[T1]=YL),p},a1=Ux();mr?((mr.exports=a1)._=a1,Do._=a1):yt._=a1}).call(In)}(U1,U1.exports);var d2=U1.exports;const it=w0(d2),h2=()=>{let e={};const n=()=>({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=fe.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 c=un({x:i[1].x-8,y:i[1].y+4},i[1],l),f=un({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=it.merge({},e,i)},getProperties:()=>e}},g2=()=>{let e=new Map,n=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=Ka(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,it.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},p2=()=>{let e=new Map,n=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:n(o.id)}]:[],setProperties:(i,o)=>{e.set(o,it.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},_2=()=>{let e={},n=()=>({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:n()}]}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=it.merge({},e,o)},getProperties:()=>e}},m2=()=>{let e={},n=()=>({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:n()}],setProperties:i=>{e=it.merge({},e,i)},getProperties:()=>e}},y2=()=>{let e={},n=()=>({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),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(v=>{const y=c*v;d.push({...o[0],r:y}),g.push({x:o[0].x,y:o[0].y+y+6,text:`${(v*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},b2=()=>{let e={};const n=()=>({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:c})=>{const f=[],d=[];if(o.length>1){let g=0;const v=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&v?g=v.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach($=>{g=Math.max(g,$.precision)});const y=o[1].x>o[0].x?o[0].x:o[1].x,b=[1,.786,.618,.5,.382,.236,0],C=o[0].y-o[1].y,L=s.points,k=L[0].value-L[1].value;b.forEach(x=>{const $=o[1].y+C*x,P=(L[1].value+k*x).toFixed(g.price);f.push({coordinates:[{x:o[0].x,y:$},{x:o[1].x,y:$}]}),d.push({x:y,y:$,text:`${P} (${(x*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},v2=()=>{let e={},n=()=>({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=Ka(o[0],o[1])/Math.sqrt(24),c=o[1].x>o[0].x?0:1,f=fe.utils.getLinearSlopeIntercept(o[0],o[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:o[1].y>o[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=un({x:o[0].x-l,y:o[0].y},o[0],d),v=un({x:o[0].x-l,y:o[0].y-l},o[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{...v,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let b=o[0].x-l,C=o[0].y-l;for(let L=2;L<9;L++){const k=y[L-2].r+y[L-1].r;let x=0;switch(L%4){case 0:{x=d,b-=y[L-2].r;break}case 1:{x=d+Math.PI/2,C-=y[L-2].r;break}case 2:{x=d+Math.PI,b+=y[L-2].r;break}case 3:{x=d+Math.PI/2*3,C+=y[L-2].r;break}}const $=x+Math.PI/2,P=un({x:b,y:C},o[0],d);y.push({...P,r:k,startAngle:x,endAngle:$})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:x0(o,s),styles:i()}]}return[]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},C2=()=>{let e={};const n=()=>({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 c=[];const f=[];if(o.length>1){const d=o[1].x>o[0].x?-38:4,g=o[1].y>o[0].y?-2:20,v=o[1].x-o[0].x,y=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(C=>{const L=o[1].x-v*C,k=o[1].y-y*C;l.push({coordinates:[{x:L,y:o[0].y},{x:L,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:k},{x:o[1].x,y:k}]}),c=c.concat(x0([o[0],{x:L,y:o[1].y}],s)),c=c.concat(x0([o[0],{x:o[1].x,y:k}],s)),f.unshift({x:o[0].x+d,y:k+10,text:`${C.toFixed(3)}`}),f.unshift({x:L-18,y:o[0].y+g,text:`${C.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},x2=()=>{let e={};const n=()=>({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:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let v=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?v=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(P=>{v=Math.max(v,P.precision)});const b=f.points,C=b[1].value-b[0].value,L=c[1].y-c[0].y,k=[0,.236,.382,.5,.618,.786,1],x=c[2].x>c[1].x?c[1].x:c[2].x;k.forEach($=>{const P=c[2].y+L*$,O=(b[2].value+C*$).toFixed(v.price);d.push({coordinates:[{x:c[1].x,y:P},{x:c[2].x,y:P}]}),g.push({x,y:P,text:`${O} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=it.merge({},e,s)},getProperties:()=>e}},w2=()=>{let e={},n=()=>({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 c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*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}]}],g=[{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:n()},{type:"line",attrs:d,styles:o()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=it.merge({},e,l)},getProperties:()=>e}},$2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},L2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},S2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},k2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},A2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),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=[],c=[];const f=["A","B","C","D"],d=s.map((g,v)=>({...g,baseline:"bottom",text:`(${f[v]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:o()}]},setProperties:s=>{e=it.merge({},e,s)},getProperties:()=>e}},M2=()=>{let e={},n=()=>({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:c})=>{const f=[],d=[],g=["X","A","B","C","D"],v=l.map((y,b)=>({...y,baseline:"bottom",text:`(${g[b]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.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]]}),d.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:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:v,styles:s()}]},setProperties:l=>{e=it.merge({},e,l)},getProperties:()=>e}},T2=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const o=n.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:o})=>{n>=2&&i.push(o)},setProperties:n=>{e=it.merge({},e,n)},getProperties:()=>e}},Ha="--klinecharts-pro-price-alert-line-color",Wa="#76808F";function P2(e){const n=e.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function Ua(e,n,i){if(typeof window>"u"||typeof window.getComputedStyle!="function")return i;const o=P2(e);if(!o)return i;const s=window.getComputedStyle(o).getPropertyValue(n).trim();return s||i}function Xn(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const $0=(e,n,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:n.paneId}).forEach(c=>{o.price=Math.max(o.price,c.precision)}),o},I2=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},Za="#2ebd85",Ya="#f6465d",O2="#2ebd85",E2="#f6465d",D2=e=>({style:"solid",size:1,color:e,dashedValue:[]}),qa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),R2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),B2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),F2=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var Ie;const s=(Ie=o.points[0])==null?void 0:Ie.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,v=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*v:(s-g)*l.size*v,b=e.getSymbol(),C=(b==null?void 0:b.pricePrecision)??2,L=(b==null?void 0:b.volumePrecision)??4,k=Xn(l.size,L),x=`PNL ${y>=0?"+":""}${Xn(y,C)}`,$=l.side==="long"?Za:Ya,P=y>=0?O2:E2,O=B2($),T=R2(P),z=O.paddingLeft,H=O.paddingRight,U=fe.utils.calcTextWidth(k)+z+H,I=fe.utils.calcTextWidth(x)+z+H,D=16,V=-1,j=0,te=D+I+V,ne=te+U+j;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(ne,i.width),y:d},{x:i.width,y:d}]},styles:D2($),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:D,y:d,text:x,align:"left",baseline:"middle"},styles:T,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:te,y:d,text:k,align:"left",baseline:"middle"},styles:O,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=n.extendData,f=$0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:qa("#888")};c.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,v=(s==null?void 0:s.isFromZero())??!1,y=Xn(l,f.price);return{type:"text",attrs:{x:v?0:o.width,y:g,text:y,align:v?"left":"right",baseline:"middle"},styles:qa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Ga(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function z2(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,o=Ga(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Ga(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return o===void 0||s===void 0?null:{min:Math.min(o,s),max:Math.max(o,s)}}function _1(e,n){const i=z2(e);return i?n>=i.min&&n<=i.max:!1}const L0="#f6465d",N2=()=>({style:"dashed",size:1,color:L0,dashedValue:[4,4]}),Z1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:L0,borderColor:L0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},K2={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},H2=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var P;const s=(P=o.points[0])==null?void 0:P.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!_1(e,s))return[];const c=l.timestamp,f=e.convertToPixel({timestamp:c,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${Xn(s,g)}`,b=Z1.paddingLeft,C=Z1.paddingRight,L=fe.utils.calcTextWidth(y)+b+C,k=16,x=2,$=k+L+x;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min($,i.width),y:f},{x:i.width,y:f}]},styles:N2(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x:k,y:f,text:y,align:"left",baseline:"middle"},styles:Z1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=$0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Z1};if(l===void 0||!Number.isFinite(l)||!_1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,v=(s==null?void 0:s.isFromZero())??!1,y=Xn(l,c.price);return{type:"text",attrs:{x:v?0:o.width,y:g,text:y,align:v?"left":"right",baseline:"middle"},styles:K2}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),Va={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",alerts:"预警",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:"网格线显示",setting_sidebar_chart:"图表",setting_sidebar_candle:"蜡烛图",setting_sidebar_indicator:"指标",setting_sidebar_grid:"网格",setting_sidebar_x_axis:"X 轴",setting_sidebar_y_axis:"Y 轴",setting_sidebar_separator:"分隔线",setting_sidebar_crosshair:"十字光标",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",trading_display_price_alerts:"价格预警",alert_type_price_reach:"价格达到",alert_type_price_rise_to:"价格上涨至",alert_type_price_fall_to:"价格下跌至",alert_type_price_rise_pct_over:"价格涨幅超过",alert_type_price_fall_pct_over:"价格跌幅超过",alert_frequency_repeat:"重复提醒",alert_frequency_once:"仅提醒一次",alert_window_5m:"5分",alert_window_1h:"1小时",alert_window_4h:"4小时",alert_window_24h:"24小时",alert_add:"添加预警",alert_detail:"预警详情",alert_empty:"暂无预警",alert_delete:"删除",alert_optional:"可选",alert_submit:"提交",alert_submitting:"提交中...",alert_double_click_detail:"双击查看详情",alert_field_symbol:"标的",alert_field_type:"类型",alert_field_price:"价格",alert_field_window:"时间窗",alert_field_percent:"百分比",alert_field_frequency:"频率",alert_field_remark:"备注",alert_validation_price_gt_zero:"请输入大于 0 的价格",alert_validation_percent_range:"百分比需为 1-100 的整数",trade_buy:"买入",trade_sell:"卖出",order_id:"订单ID",order_price:"价格",order_quantity:"数量",order_fee:"手续费",order_realized_pnl:"已实现盈亏",order_filled_time:"成交时间",order_limit:"限价",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",alerts:"Alerts",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(Sentiment Index)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(Energy Index)",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",setting_sidebar_chart:"Chart",setting_sidebar_candle:"Candle",setting_sidebar_indicator:"Indicator",setting_sidebar_grid:"Grid",setting_sidebar_x_axis:"X-Axis",setting_sidebar_y_axis:"Y-Axis",setting_sidebar_separator:"Separator",setting_sidebar_crosshair:"Crosshair",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",trading_display_price_alerts:"Price alerts",alert_type_price_reach:"Price reaches",alert_type_price_rise_to:"Price rises to",alert_type_price_fall_to:"Price falls to",alert_type_price_rise_pct_over:"Price increase exceeds",alert_type_price_fall_pct_over:"Price decrease exceeds",alert_frequency_repeat:"Repeat reminder",alert_frequency_once:"Remind once",alert_window_5m:"5m",alert_window_1h:"1 hour",alert_window_4h:"4 hours",alert_window_24h:"24 hours",alert_add:"Add Alert",alert_detail:"Alert Detail",alert_empty:"No alerts",alert_delete:"Delete",alert_optional:"Optional",alert_submit:"Submit",alert_submitting:"Submitting...",alert_double_click_detail:"Double-click to view details",alert_field_symbol:"Symbol",alert_field_type:"Type",alert_field_price:"Price",alert_field_window:"Time Window",alert_field_percent:"Percent",alert_field_frequency:"Frequency",alert_field_remark:"Remark",alert_validation_price_gt_zero:"Please enter a price greater than 0",alert_validation_percent_range:"Percent must be an integer between 1 and 100",trade_buy:"Buy",trade_sell:"Sell",order_id:"Order ID",order_price:"Price",order_quantity:"Quantity",order_fee:"Fee",order_realized_pnl:"Realized PnL",order_filled_time:"Filled Time",order_limit:"Limit",restore_default:"Restore"}};function W2(e,n){Va[e]=n}const m=(e,n)=>{var i;return((i=Va[n])==null?void 0:i[e])??e},U2="#2ebd85",Z2="#f6465d";function ja(e){return e?U2:Z2}const Y2=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),q2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),G2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),Qa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),V2=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var V,j;const s=(V=o.points[0])==null?void 0:V.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!c)return[];if(!_1(e,s))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const v=(g==null?void 0:g.volumePrecision)??4,y=((j=e.getLocale)==null?void 0:j.call(e))??"zh-CN",b=m("order_limit",y),C=Xn(l.size,v),L=ja(l.isBuy),k=q2(L),x=G2(L),$=k.paddingLeft,P=k.paddingRight,O=fe.utils.calcTextWidth(b)+$+P,T=fe.utils.calcTextWidth(C)+$+P,z=16,H=-1,U=2,I=z+O+H,D=I+T+U;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(D,i.width),y:d},{x:i.width,y:d}]},styles:Y2(L),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:z,y:d,text:b,align:"left",baseline:"middle"},styles:k,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:I,y:d,text:C,align:"left",baseline:"middle"},styles:x,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var C;const l=(C=n.points[0])==null?void 0:C.value,c=$0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Qa("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!_1(e,l))return f;ja(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const v=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,b=Xn(l,c.price);return{type:"text",attrs:{x:y?0:o.width,y:v,text:b,align:y?"left":"right",baseline:"middle"},styles:Qa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),j2="#2ebd85",Q2="#f6465d",X2=6,J2=14,Xa=14,Ja=18,e6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},t6=()=>({name:"hisOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const o=i.points[0],s=i.extendData;if(!o||!s||!Number.isFinite(o.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(T=>T.timestamp===o.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?j2:Q2,v=s.isBuy?"B":"S",y=n[0].x,b=e.convertToPixel({timestamp:o.timestamp,value:f}).y??n[0].y,C=e.convertToPixel({timestamp:o.timestamp,value:d}).y??n[0].y,L=Math.max(0,s.stackIndex??0),k=Math.abs(C-b),x=Number.isFinite(k)&&k<Ja?Math.max(0,Ja-k)*.65:0,$=J2+x,P=s.isBuy?C+$+L*Xa:b-$-L*Xa;return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:P-.5,r:X2},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:P,text:v,align:"center",baseline:"middle"},styles:e6,ignoreEvent:!0}]},onMouseEnter:()=>!1,onMouseLeave:()=>!1,onRemoved:()=>!1,onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Qt(e,n){switch(e){case"price_reach":return m("alert_type_price_reach",n);case"price_rise_to":return m("alert_type_price_rise_to",n);case"price_fall_to":return m("alert_type_price_fall_to",n);case"price_rise_pct_over":return m("alert_type_price_rise_pct_over",n);default:return m("alert_type_price_fall_pct_over",n)}}function S0(e,n){return m(e==="repeat"?"alert_frequency_repeat":"alert_frequency_once",n)}function dr(e,n){switch(e){case"5m":return m("alert_window_5m",n);case"1h":return m("alert_window_1h",n);case"4h":return m("alert_window_4h",n);case"24h":return m("alert_window_24h",n);default:return e??"--"}}function n6(e,n){if(e.type==="price_reach")return`${Qt(e.type,n)} ${e.price??"--"}`;if(e.type==="price_rise_to")return`${Qt(e.type,n)} ${e.price??"--"}`;if(e.type==="price_fall_to")return`${Qt(e.type,n)} ${e.price??"--"}`;const i=dr(e.window,n),o=`${e.percent??"--"}%`;return n==="zh-CN"?e.type==="price_rise_pct_over"?`价格${i}涨幅 ${o}`:`价格${i}跌幅 ${o}`:e.type==="price_rise_pct_over"?`Price ${i} increase ${o}`:`Price ${i} decrease ${o}`}function r6(e,n,i=2){const o=Number(e.price??0),s=Xn(Number.isFinite(o)?o:0,i);if(e.type==="price_reach")return`${Qt(e.type,n)} ${s}`;if(e.type==="price_rise_to")return`${Qt(e.type,n)} ${s}`;if(e.type==="price_fall_to")return`${Qt(e.type,n)} ${s}`;const l=dr(e.window,n),c=`${e.percent??0}%`;return n==="zh-CN"?e.type==="price_rise_pct_over"?`价格${l}涨幅 ${c}`:`价格${l}跌幅 ${c}`:e.type==="price_rise_pct_over"?`Price ${l} increase ${c}`:`Price ${l} decrease ${c}`}const Y1="klinecharts-pro-his-order-hover",m1="klinecharts-pro-alert-detail-open",i6=140,q1=new Map;function o6(e){const n=e.chart.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function a6(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(m1,{detail:e}))}function k0(e){const n=q1.get(e);n!=null&&(clearTimeout(n),q1.delete(e))}function s6(e,n){k0(n);const i=setTimeout(()=>{q1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},i6);q1.set(n,i)}function es(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let G1;function l6(e){G1=e.onRemove}const c6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),u6=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var $,P,O;const s=($=o.points[0])==null?void 0:$.value,l=o.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!_1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=Ua(e,Ha,Wa),v=((P=e.getSymbol())==null?void 0:P.pricePrecision)??2,y=r6(c,((O=e.getLocale)==null?void 0:O.call(e))??"zh-CN",v),b=fe.utils.calcTextWidth(y),C=i.width,L=C-10,k=L-2,x=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:k,y:d}]},styles:c6(g),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:L,y:d-6},{x:C,y:d},{x:L,y:d+6}]},styles:{style:"fill",color:g},ignoreEvent:!1}];if(l!=null&&l.showInfo){const T=Math.max(120,b+28),z=Math.max(8,L-T-10);x.push({key:"alert-info-text",type:"text",attrs:{x:z+8,y:d,text:y,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:z+T-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return x},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var o;const n=(o=e.figure)==null?void 0:o.key;if(!es(n))return!1;k0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return es(n)&&s6(e.chart,e.overlay.id),!1},onRemoved:e=>(k0(e.overlay.id),!1),onSelected:e=>{var o;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((o=e.figure)==null?void 0:o.key)??"")==="alert-info-close"&&n.alert&&(G1==null||G1(n.alert)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="alert-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.alert&&a6({alert:n.alert,sourceContainer:o6(e)}),!1}}),f6=[h2(),T2(),g2(),p2(),m2(),_2(),y2(),b2(),v2(),C2(),x2(),w2(),$2(),L2(),S2(),k2(),A2(),M2(),F2(),H2(),V2(),t6(),u6()];class d6{constructor(n){xn(this,"_apiKey");xn(this,"_prevSymbolMarket");xn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).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(n,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.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(n,i,o){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.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.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const h6=!1,g6=(e,n)=>e===n,A0=Symbol("solid-proxy"),p6=typeof Proxy=="function",_6=Symbol("solid-track"),V1={equals:g6};let ts=as;const On=1,j1=2,ns={owned:null,cleanups:null,context:null,owner:null},M0={};var ze=null;let T0=null,m6=null,Fe=null,vt=null,En=null,Q1=0;function X1(e,n){const i=Fe,o=ze,s=e.length===0,l=n===void 0?o:n,c=s?ns:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>fn(()=>y1(c)));ze=c,Fe=null;try{return Dn(f,!0)}finally{Fe=i,ze=o}}function Q(e,n){n=n?Object.assign({},V1,n):V1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),os(i,s));return[is.bind(i),o]}function rs(e,n,i){const o=J1(e,n,!0,On);kr(o)}function Te(e,n,i){const o=J1(e,n,!1,On);kr(o)}function Mt(e,n,i){ts=L6;const o=J1(e,n,!1,On);(!i||!i.render)&&(o.user=!0),En?En.push(o):kr(o)}function Tt(e,n,i){i=i?Object.assign({},V1,i):V1;const o=J1(e,n,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,kr(o),is.bind(o)}function y6(e){return e&&typeof e=="object"&&"then"in e}function b6(e,n,i){let o,s,l;typeof n=="function"?(o=e,s=n,l=i||{}):(o=!0,s=e,l=n||{});let c=null,f=M0,d=!1,g="initialValue"in l,v=typeof o=="function"&&Tt(o);const y=new Set,[b,C]=(l.storage||Q)(l.initialValue),[L,k]=Q(void 0),[x,$]=Q(void 0,{equals:!1}),[P,O]=Q(g?"ready":"unresolved");function T(D,V,j,te){return c===D&&(c=null,te!==void 0&&(g=!0),(D===f||V===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(te,{value:V})),f=M0,z(V,j)),V}function z(D,V){Dn(()=>{V===void 0&&C(()=>D),O(V!==void 0?"errored":g?"ready":"unresolved"),k(V);for(const j of y.keys())j.decrement();y.clear()},!1)}function H(){const D=x6,V=b(),j=L();if(j!==void 0&&!c)throw j;return Fe&&!Fe.user&&D&&rs(()=>{x(),c&&(D.resolved||y.has(D)||(D.increment(),y.add(D)))}),V}function U(D=!0){if(D!==!1&&d)return;d=!1;const V=v?v():o;if(V==null||V===!1){T(c,fn(b));return}let j;const te=f!==M0?f:fn(()=>{try{return s(V,{value:b(),refetching:D})}catch(ne){j=ne}});if(j!==void 0){T(c,void 0,ni(j),V);return}else if(!y6(te))return T(c,te,void 0,V),te;return c=te,"v"in te?(te.s===1?T(c,te.v,void 0,V):T(c,void 0,ni(te.v),V),te):(d=!0,queueMicrotask(()=>d=!1),Dn(()=>{O(g?"refreshing":"pending"),$()},!1),te.then(ne=>T(te,ne,void 0,V),ne=>T(te,void 0,ni(ne),V)))}Object.defineProperties(H,{state:{get:()=>P()},error:{get:()=>L()},loading:{get(){const D=P();return D==="pending"||D==="refreshing"}},latest:{get(){if(!g)return H();const D=L();if(D&&!c)throw D;return b()}}});let I=ze;return v?rs(()=>(I=ze,U(!1))):U(!1),[H,{refetch:D=>v6(I,()=>U(D)),mutate:C}]}function fn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function P0(e){Mt(()=>fn(e))}function Sr(e){return ze===null||(ze.cleanups===null?ze.cleanups=[e]:ze.cleanups.push(e)),e}function v6(e,n){const i=ze,o=Fe;ze=e,Fe=null;try{return Dn(n,!0)}catch(s){I0(s)}finally{ze=i,Fe=o}}function C6(e){const n=Fe,i=ze;return Promise.resolve().then(()=>{Fe=n,ze=i;let o;return Dn(e,!1),Fe=ze=null,o?o.done:void 0})}let x6;function is(){if(this.sources&&this.state)if(this.state===On)kr(this);else{const e=vt;vt=null,Dn(()=>ti(this),!1),vt=e}if(Fe){const e=this.observers?this.observers.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(e)):(Fe.sources=[this],Fe.sourceSlots=[e]),this.observers?(this.observers.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}return this.value}function os(e,n,i){let o=e.value;return(!e.comparator||!e.comparator(o,n))&&(e.value=n,e.observers&&e.observers.length&&Dn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],c=T0&&T0.running;c&&T0.disposed.has(l),(c?!l.tState:!l.state)&&(l.pure?vt.push(l):En.push(l),l.observers&&ss(l)),c||(l.state=On)}if(vt.length>1e6)throw vt=[],new Error},!1)),n}function kr(e){if(!e.fn)return;y1(e);const n=Q1;w6(e,e.value,n)}function w6(e,n,i){let o;const s=ze,l=Fe;Fe=ze=e;try{o=e.fn(n)}catch(c){return e.pure&&(e.state=On,e.owned&&e.owned.forEach(y1),e.owned=null),e.updatedAt=i+1,I0(c)}finally{Fe=l,ze=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?os(e,o):e.value=o,e.updatedAt=i)}function J1(e,n,i,o=On,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:ze,context:ze?ze.context:null,pure:i};return ze===null||ze!==ns&&(ze.owned?ze.owned.push(l):ze.owned=[l]),l}function ei(e){if(e.state===0)return;if(e.state===j1)return ti(e);if(e.suspense&&fn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Q1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===On)kr(e);else if(e.state===j1){const o=vt;vt=null,Dn(()=>ti(e,n[0]),!1),vt=o}}function Dn(e,n){if(vt)return e();let i=!1;n||(vt=[]),En?i=!0:En=[],Q1++;try{const o=e();return $6(i),o}catch(o){i||(En=null),vt=null,I0(o)}}function $6(e){if(vt&&(as(vt),vt=null),e)return;const n=En;En=null,n.length&&Dn(()=>ts(n),!1)}function as(e){for(let n=0;n<e.length;n++)ei(e[n])}function L6(e){let n,i=0;for(n=0;n<e.length;n++){const o=e[n];o.user?e[i++]=o:ei(o)}for(n=0;n<i;n++)ei(e[n])}function ti(e,n){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===On?o!==n&&(!o.updatedAt||o.updatedAt<Q1)&&ei(o):s===j1&&ti(o,n)}}}function ss(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=j1,i.pure?vt.push(i):En.push(i),i.observers&&ss(i))}}function y1(e){let n;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(),c=i.observerSlots.pop();o<s.length&&(l.sourceSlots[c]=o,s[o]=l,i.observerSlots[o]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)y1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)y1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function ni(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function I0(e,n=ze){throw ni(e)}const S6=Symbol("fallback");function ls(e){for(let n=0;n<e.length;n++)e[n]()}function k6(e,n,i={}){let o=[],s=[],l=[],c=0,f=n.length>1?[]:null;return Sr(()=>ls(l)),()=>{let d=e()||[],g=d.length,v,y;return d[_6],fn(()=>{let C,L,k,x,$,P,O,T,z;if(g===0)c!==0&&(ls(l),l=[],o=[],s=[],c=0,f&&(f=[])),i.fallback&&(o=[S6],s[0]=X1(H=>(l[0]=H,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)o[y]=d[y],s[y]=X1(b);c=g}else{for(k=new Array(g),x=new Array(g),f&&($=new Array(g)),P=0,O=Math.min(c,g);P<O&&o[P]===d[P];P++);for(O=c-1,T=g-1;O>=P&&T>=P&&o[O]===d[T];O--,T--)k[T]=s[O],x[T]=l[O],f&&($[T]=f[O]);for(C=new Map,L=new Array(T+1),y=T;y>=P;y--)z=d[y],v=C.get(z),L[y]=v===void 0?-1:v,C.set(z,y);for(v=P;v<=O;v++)z=o[v],y=C.get(z),y!==void 0&&y!==-1?(k[y]=s[v],x[y]=l[v],f&&($[y]=f[v]),y=L[y],C.set(z,y)):l[v]();for(y=P;y<g;y++)y in k?(s[y]=k[y],l[y]=x[y],f&&(f[y]=$[y],f[y](y))):s[y]=X1(b);s=s.slice(0,c=g),o=d.slice(0)}return s});function b(C){if(l[y]=C,f){const[L,k]=Q(y);return f[y]=k,n(d[y],L)}return n(d[y])}}}function q(e,n){return fn(()=>e(n||{}))}function ri(){return!0}const A6={get(e,n,i){return n===A0?i:e.get(n)},has(e,n){return n===A0?!0:e.has(n)},set:ri,deleteProperty:ri,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:ri,deleteProperty:ri}},ownKeys(e){return e.keys()}};function O0(e){return(e=typeof e=="function"?e():e)?e:{}}function M6(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function cs(...e){let n=!1;for(let c=0;c<e.length;c++){const f=e[c];n=n||!!f&&A0 in f,e[c]=typeof f=="function"?(n=!0,Tt(f)):f}if(p6&&n)return new Proxy({get(c){for(let f=e.length-1;f>=0;f--){const d=O0(e[f])[c];if(d!==void 0)return d}},has(c){for(let f=e.length-1;f>=0;f--)if(c in O0(e[f]))return!0;return!1},keys(){const c=[];for(let f=0;f<e.length;f++)c.push(...Object.keys(O0(e[f])));return[...new Set(c)]}},A6);const i={},o=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const v=d[g];if(v==="__proto__"||v==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,v);if(!o[v])o[v]=y.get?{enumerable:!0,configurable:!0,get:M6.bind(i[v]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const b=i[v];b&&(y.get?b.push(y.get.bind(f)):y.value!==void 0&&b.push(()=>y.value))}}}const s={},l=Object.keys(o);for(let c=l.length-1;c>=0;c--){const f=l[c],d=o[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const T6=e=>`Stale read from <${e}>.`;function us(e){const n="fallback"in e&&{fallback:()=>e.fallback};return Tt(k6(()=>e.each,e.children,n||void 0))}function Oe(e){const n=e.keyed,i=Tt(()=>e.when,void 0,void 0),o=n?i:Tt(i,void 0,{equals:(s,l)=>!s==!l});return Tt(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?fn(()=>l(n?s:()=>{if(!fn(o))throw T6("Show");return i()})):l}return e.fallback},void 0,void 0)}const Ze=e=>Tt(()=>e());function P6(e,n,i){let o=i.length,s=n.length,l=o,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const v=l<o?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],v)}else if(l===f)for(;c<s;)(!g||!g.has(n[c]))&&n[c].remove(),c++;else if(n[c]===i[l-1]&&i[f]===n[s-1]){const v=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],v),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const v=g.get(n[c]);if(v!=null)if(f<v&&v<l){let y=c,b=1,C;for(;++y<s&&y<l&&!((C=g.get(n[y]))==null||C!==v+b);)b++;if(b>v-f){const L=n[c];for(;f<v;)e.insertBefore(i[f++],L)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const fs="_$DX_DELEGATE";function I6(e,n,i,o={}){let s;return X1(l=>{s=l,n===document?e():R(n,e(),n.firstChild?null:void 0,i)},o.owner),()=>{s(),n.textContent=""}}function Y(e,n,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},c=n?()=>fn(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return c.cloneNode=c,c}function Dt(e,n=window.document){const i=n[fs]||(n[fs]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),n.addEventListener(l,O6))}}function Je(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Ht(e,n){n==null?e.removeAttribute("class"):e.className=n}function wn(e,n,i,o){if(o)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function Ve(e,n,i){if(!n)return i?Je(e,"style"):n;const o=e.style;if(typeof n=="string")return o.cssText=n;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&o.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Ar(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function ii(e,n,i){return fn(()=>e(n,i))}function R(e,n,i,o){if(i!==void 0&&!o&&(o=[]),typeof n!="function")return oi(e,n,o,i);Te(s=>oi(e,n(),s,i),o)}function O6(e){let n=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(o)}function oi(e,n,i,o,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=o!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=Mr(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=Mr(e,i,o);else{if(l==="function")return Te(()=>{let f=n();for(;typeof f=="function";)f=f();i=oi(e,f,i,o)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(E0(f,n,i,s))return Te(()=>i=oi(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=Mr(e,i,o),c)return i}else d?i.length===0?ds(e,f,o):P6(e,i,f):(i&&Mr(e),ds(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=Mr(e,i,o,n);Mr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function E0(e,n,i,o){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=E0(e,f,d)||s;else if(g==="function")if(o){for(;typeof f=="function";)f=f();s=E0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const v=String(f);d&&d.nodeType===3&&d.data===v?e.push(d):e.push(document.createTextNode(v))}}return s}function ds(e,n,i=null){for(let o=0,s=n.length;o<s;o++)e.insertBefore(n[o],i)}function Mr(e,n,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function E6(){this.__data__=[],this.size=0}var D6=E6;function R6(e,n){return e===n||e!==e&&n!==n}var hs=R6,B6=hs;function F6(e,n){for(var i=e.length;i--;)if(B6(e[i][0],n))return i;return-1}var ai=F6,z6=ai,N6=Array.prototype,K6=N6.splice;function H6(e){var n=this.__data__,i=z6(n,e);if(i<0)return!1;var o=n.length-1;return i==o?n.pop():K6.call(n,i,1),--this.size,!0}var W6=H6,U6=ai;function Z6(e){var n=this.__data__,i=U6(n,e);return i<0?void 0:n[i][1]}var Y6=Z6,q6=ai;function G6(e){return q6(this.__data__,e)>-1}var V6=G6,j6=ai;function Q6(e,n){var i=this.__data__,o=j6(i,e);return o<0?(++this.size,i.push([e,n])):i[o][1]=n,this}var X6=Q6,J6=D6,e3=W6,t3=Y6,n3=V6,r3=X6;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Tr.prototype.clear=J6,Tr.prototype.delete=e3,Tr.prototype.get=t3,Tr.prototype.has=n3,Tr.prototype.set=r3;var si=Tr,i3=si;function o3(){this.__data__=new i3,this.size=0}var a3=o3;function s3(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var l3=s3;function c3(e){return this.__data__.get(e)}var u3=c3;function f3(e){return this.__data__.has(e)}var d3=f3,h3=typeof In=="object"&&In&&In.Object===Object&&In,gs=h3,g3=gs,p3=typeof self=="object"&&self&&self.Object===Object&&self,_3=g3||p3||Function("return this")(),$n=_3,m3=$n,y3=m3.Symbol,li=y3,ps=li,_s=Object.prototype,b3=_s.hasOwnProperty,v3=_s.toString,b1=ps?ps.toStringTag:void 0;function C3(e){var n=b3.call(e,b1),i=e[b1];try{e[b1]=void 0;var o=!0}catch{}var s=v3.call(e);return o&&(n?e[b1]=i:delete e[b1]),s}var x3=C3,w3=Object.prototype,$3=w3.toString;function L3(e){return $3.call(e)}var S3=L3,ms=li,k3=x3,A3=S3,M3="[object Null]",T3="[object Undefined]",ys=ms?ms.toStringTag:void 0;function P3(e){return e==null?e===void 0?T3:M3:ys&&ys in Object(e)?k3(e):A3(e)}var v1=P3;function I3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Pr=I3,O3=v1,E3=Pr,D3="[object AsyncFunction]",R3="[object Function]",B3="[object GeneratorFunction]",F3="[object Proxy]";function z3(e){if(!E3(e))return!1;var n=O3(e);return n==R3||n==B3||n==D3||n==F3}var bs=z3,N3=$n,K3=N3["__core-js_shared__"],H3=K3,D0=H3,vs=function(){var e=/[^.]+$/.exec(D0&&D0.keys&&D0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function W3(e){return!!vs&&vs in e}var U3=W3,Z3=Function.prototype,Y3=Z3.toString;function q3(e){if(e!=null){try{return Y3.call(e)}catch{}try{return e+""}catch{}}return""}var Cs=q3,G3=bs,V3=U3,j3=Pr,Q3=Cs,X3=/[\\^$.*+?()[\]{}|]/g,J3=/^\[object .+?Constructor\]$/,e8=Function.prototype,t8=Object.prototype,n8=e8.toString,r8=t8.hasOwnProperty,i8=RegExp("^"+n8.call(r8).replace(X3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o8(e){if(!j3(e)||V3(e))return!1;var n=G3(e)?i8:J3;return n.test(Q3(e))}var a8=o8;function s8(e,n){return e==null?void 0:e[n]}var l8=s8,c8=a8,u8=l8;function f8(e,n){var i=u8(e,n);return c8(i)?i:void 0}var hr=f8,d8=hr,h8=$n,g8=d8(h8,"Map"),R0=g8,p8=hr,_8=p8(Object,"create"),ci=_8,xs=ci;function m8(){this.__data__=xs?xs(null):{},this.size=0}var y8=m8;function b8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var v8=b8,C8=ci,x8="__lodash_hash_undefined__",w8=Object.prototype,$8=w8.hasOwnProperty;function L8(e){var n=this.__data__;if(C8){var i=n[e];return i===x8?void 0:i}return $8.call(n,e)?n[e]:void 0}var S8=L8,k8=ci,A8=Object.prototype,M8=A8.hasOwnProperty;function T8(e){var n=this.__data__;return k8?n[e]!==void 0:M8.call(n,e)}var P8=T8,I8=ci,O8="__lodash_hash_undefined__";function E8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=I8&&n===void 0?O8:n,this}var D8=E8,R8=y8,B8=v8,F8=S8,z8=P8,N8=D8;function Ir(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Ir.prototype.clear=R8,Ir.prototype.delete=B8,Ir.prototype.get=F8,Ir.prototype.has=z8,Ir.prototype.set=N8;var K8=Ir,ws=K8,H8=si,W8=R0;function U8(){this.size=0,this.__data__={hash:new ws,map:new(W8||H8),string:new ws}}var Z8=U8;function Y8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var q8=Y8,G8=q8;function V8(e,n){var i=e.__data__;return G8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ui=V8,j8=ui;function Q8(e){var n=j8(this,e).delete(e);return this.size-=n?1:0,n}var X8=Q8,J8=ui;function e7(e){return J8(this,e).get(e)}var t7=e7,n7=ui;function r7(e){return n7(this,e).has(e)}var i7=r7,o7=ui;function a7(e,n){var i=o7(this,e),o=i.size;return i.set(e,n),this.size+=i.size==o?0:1,this}var s7=a7,l7=Z8,c7=X8,u7=t7,f7=i7,d7=s7;function Or(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Or.prototype.clear=l7,Or.prototype.delete=c7,Or.prototype.get=u7,Or.prototype.has=f7,Or.prototype.set=d7;var $s=Or,h7=si,g7=R0,p7=$s,_7=200;function m7(e,n){var i=this.__data__;if(i instanceof h7){var o=i.__data__;if(!g7||o.length<_7-1)return o.push([e,n]),this.size=++i.size,this;i=this.__data__=new p7(o)}return i.set(e,n),this.size=i.size,this}var y7=m7,b7=si,v7=a3,C7=l3,x7=u3,w7=d3,$7=y7;function Er(e){var n=this.__data__=new b7(e);this.size=n.size}Er.prototype.clear=v7,Er.prototype.delete=C7,Er.prototype.get=x7,Er.prototype.has=w7,Er.prototype.set=$7;var L7=Er;function S7(e,n){for(var i=-1,o=e==null?0:e.length;++i<o&&n(e[i],i,e)!==!1;);return e}var k7=S7,A7=hr,M7=function(){try{var e=A7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),T7=M7,Ls=T7;function P7(e,n,i){n=="__proto__"&&Ls?Ls(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var Ss=P7,I7=Ss,O7=hs,E7=Object.prototype,D7=E7.hasOwnProperty;function R7(e,n,i){var o=e[n];(!(D7.call(e,n)&&O7(o,i))||i===void 0&&!(n in e))&&I7(e,n,i)}var B0=R7,B7=B0,F7=Ss;function z7(e,n,i,o){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=o?o(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?F7(i,f,d):B7(i,f,d)}return i}var fi=z7;function N7(e,n){for(var i=-1,o=Array(e);++i<e;)o[i]=n(i);return o}var K7=N7;function H7(e){return e!=null&&typeof e=="object"}var Dr=H7,W7=v1,U7=Dr,Z7="[object Arguments]";function Y7(e){return U7(e)&&W7(e)==Z7}var q7=Y7,ks=q7,G7=Dr,As=Object.prototype,V7=As.hasOwnProperty,j7=As.propertyIsEnumerable,Q7=ks(function(){return arguments}())?ks:function(e){return G7(e)&&V7.call(e,"callee")&&!j7.call(e,"callee")},X7=Q7,J7=Array.isArray,Rr=J7,di={exports:{}};function eu(){return!1}var tu=eu;di.exports,function(e,n){var i=$n,o=tu,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||o;e.exports=g}(di,di.exports);var Ms=di.exports,nu=9007199254740991,ru=/^(?:0|[1-9]\d*)$/;function iu(e,n){var i=typeof e;return n=n??nu,!!n&&(i=="number"||i!="symbol"&&ru.test(e))&&e>-1&&e%1==0&&e<n}var Ts=iu,ou=9007199254740991;function au(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ou}var Ps=au,su=v1,lu=Ps,cu=Dr,uu="[object Arguments]",fu="[object Array]",du="[object Boolean]",hu="[object Date]",gu="[object Error]",pu="[object Function]",_u="[object Map]",mu="[object Number]",yu="[object Object]",bu="[object RegExp]",vu="[object Set]",Cu="[object String]",xu="[object WeakMap]",wu="[object ArrayBuffer]",$u="[object DataView]",Lu="[object Float32Array]",Su="[object Float64Array]",ku="[object Int8Array]",Au="[object Int16Array]",Mu="[object Int32Array]",Tu="[object Uint8Array]",Pu="[object Uint8ClampedArray]",Iu="[object Uint16Array]",Ou="[object Uint32Array]",We={};We[Lu]=We[Su]=We[ku]=We[Au]=We[Mu]=We[Tu]=We[Pu]=We[Iu]=We[Ou]=!0,We[uu]=We[fu]=We[wu]=We[du]=We[$u]=We[hu]=We[gu]=We[pu]=We[_u]=We[mu]=We[yu]=We[bu]=We[vu]=We[Cu]=We[xu]=!1;function Eu(e){return cu(e)&&lu(e.length)&&!!We[su(e)]}var Du=Eu;function Ru(e){return function(n){return e(n)}}var F0=Ru,hi={exports:{}};hi.exports,function(e,n){var i=gs,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(hi,hi.exports);var z0=hi.exports,Bu=Du,Fu=F0,Is=z0,Os=Is&&Is.isTypedArray,zu=Os?Fu(Os):Bu,Nu=zu,Ku=K7,Hu=X7,Wu=Rr,Uu=Ms,Zu=Ts,Yu=Nu,qu=Object.prototype,Gu=qu.hasOwnProperty;function Vu(e,n){var i=Wu(e),o=!i&&Hu(e),s=!i&&!o&&Uu(e),l=!i&&!o&&!s&&Yu(e),c=i||o||s||l,f=c?Ku(e.length,String):[],d=f.length;for(var g in e)(n||Gu.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Zu(g,d)))&&f.push(g);return f}var Es=Vu,ju=Object.prototype;function Qu(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||ju;return e===i}var N0=Qu;function Xu(e,n){return function(i){return e(n(i))}}var Ds=Xu,Ju=Ds,e4=Ju(Object.keys,Object),t4=e4,n4=N0,r4=t4,i4=Object.prototype,o4=i4.hasOwnProperty;function a4(e){if(!n4(e))return r4(e);var n=[];for(var i in Object(e))o4.call(e,i)&&i!="constructor"&&n.push(i);return n}var s4=a4,l4=bs,c4=Ps;function u4(e){return e!=null&&c4(e.length)&&!l4(e)}var Rs=u4,f4=Es,d4=s4,h4=Rs;function g4(e){return h4(e)?f4(e):d4(e)}var K0=g4,p4=fi,_4=K0;function m4(e,n){return e&&p4(n,_4(n),e)}var y4=m4;function b4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var v4=b4,C4=Pr,x4=N0,w4=v4,$4=Object.prototype,L4=$4.hasOwnProperty;function S4(e){if(!C4(e))return w4(e);var n=x4(e),i=[];for(var o in e)o=="constructor"&&(n||!L4.call(e,o))||i.push(o);return i}var k4=S4,A4=Es,M4=k4,T4=Rs;function P4(e){return T4(e)?A4(e,!0):M4(e)}var H0=P4,I4=fi,O4=H0;function E4(e,n){return e&&I4(n,O4(n),e)}var D4=E4,gi={exports:{}};gi.exports,function(e,n){var i=$n,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,v){if(v)return g.slice();var y=g.length,b=f?f(y):new g.constructor(y);return g.copy(b),b}e.exports=d}(gi,gi.exports);var R4=gi.exports;function B4(e,n){var i=-1,o=e.length;for(n||(n=Array(o));++i<o;)n[i]=e[i];return n}var F4=B4;function z4(e,n){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var N4=z4;function K4(){return[]}var Bs=K4,H4=N4,W4=Bs,U4=Object.prototype,Z4=U4.propertyIsEnumerable,Fs=Object.getOwnPropertySymbols,Y4=Fs?function(e){return e==null?[]:(e=Object(e),H4(Fs(e),function(n){return Z4.call(e,n)}))}:W4,W0=Y4,q4=fi,G4=W0;function V4(e,n){return q4(e,G4(e),n)}var j4=V4;function Q4(e,n){for(var i=-1,o=n.length,s=e.length;++i<o;)e[s+i]=n[i];return e}var zs=Q4,X4=Ds,J4=X4(Object.getPrototypeOf,Object),Ns=J4,ef=zs,tf=Ns,nf=W0,rf=Bs,of=Object.getOwnPropertySymbols,af=of?function(e){for(var n=[];e;)ef(n,nf(e)),e=tf(e);return n}:rf,Ks=af,sf=fi,lf=Ks;function cf(e,n){return sf(e,lf(e),n)}var uf=cf,ff=zs,df=Rr;function hf(e,n,i){var o=n(e);return df(e)?o:ff(o,i(e))}var Hs=hf,gf=Hs,pf=W0,_f=K0;function mf(e){return gf(e,_f,pf)}var yf=mf,bf=Hs,vf=Ks,Cf=H0;function xf(e){return bf(e,Cf,vf)}var wf=xf,$f=hr,Lf=$n,Sf=$f(Lf,"DataView"),kf=Sf,Af=hr,Mf=$n,Tf=Af(Mf,"Promise"),Pf=Tf,If=hr,Of=$n,Ef=If(Of,"Set"),Df=Ef,Rf=hr,Bf=$n,Ff=Rf(Bf,"WeakMap"),zf=Ff,U0=kf,Z0=R0,Y0=Pf,q0=Df,G0=zf,Ws=v1,Br=Cs,Us="[object Map]",Nf="[object Object]",Zs="[object Promise]",Ys="[object Set]",qs="[object WeakMap]",Gs="[object DataView]",Kf=Br(U0),Hf=Br(Z0),Wf=Br(Y0),Uf=Br(q0),Zf=Br(G0),gr=Ws;(U0&&gr(new U0(new ArrayBuffer(1)))!=Gs||Z0&&gr(new Z0)!=Us||Y0&&gr(Y0.resolve())!=Zs||q0&&gr(new q0)!=Ys||G0&&gr(new G0)!=qs)&&(gr=function(e){var n=Ws(e),i=n==Nf?e.constructor:void 0,o=i?Br(i):"";if(o)switch(o){case Kf:return Gs;case Hf:return Us;case Wf:return Zs;case Uf:return Ys;case Zf:return qs}return n});var V0=gr,Yf=Object.prototype,qf=Yf.hasOwnProperty;function Gf(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&qf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Vf=Gf,jf=$n,Qf=jf.Uint8Array,Xf=Qf,Vs=Xf;function Jf(e){var n=new e.constructor(e.byteLength);return new Vs(n).set(new Vs(e)),n}var j0=Jf,ed=j0;function td(e,n){var i=n?ed(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var nd=td,rd=/\w*$/;function id(e){var n=new e.constructor(e.source,rd.exec(e));return n.lastIndex=e.lastIndex,n}var od=id,js=li,Qs=js?js.prototype:void 0,Xs=Qs?Qs.valueOf:void 0;function ad(e){return Xs?Object(Xs.call(e)):{}}var sd=ad,ld=j0;function cd(e,n){var i=n?ld(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var ud=cd,fd=j0,dd=nd,hd=od,gd=sd,pd=ud,_d="[object Boolean]",md="[object Date]",yd="[object Map]",bd="[object Number]",vd="[object RegExp]",Cd="[object Set]",xd="[object String]",wd="[object Symbol]",$d="[object ArrayBuffer]",Ld="[object DataView]",Sd="[object Float32Array]",kd="[object Float64Array]",Ad="[object Int8Array]",Md="[object Int16Array]",Td="[object Int32Array]",Pd="[object Uint8Array]",Id="[object Uint8ClampedArray]",Od="[object Uint16Array]",Ed="[object Uint32Array]";function Dd(e,n,i){var o=e.constructor;switch(n){case $d:return fd(e);case _d:case md:return new o(+e);case Ld:return dd(e,i);case Sd:case kd:case Ad:case Md:case Td:case Pd:case Id:case Od:case Ed:return pd(e,i);case yd:return new o;case bd:case xd:return new o(e);case vd:return hd(e);case Cd:return new o;case wd:return gd(e)}}var Rd=Dd,Bd=Pr,Js=Object.create,Fd=function(){function e(){}return function(n){if(!Bd(n))return{};if(Js)return Js(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),zd=Fd,Nd=zd,Kd=Ns,Hd=N0;function Wd(e){return typeof e.constructor=="function"&&!Hd(e)?Nd(Kd(e)):{}}var Ud=Wd,Zd=V0,Yd=Dr,qd="[object Map]";function Gd(e){return Yd(e)&&Zd(e)==qd}var Vd=Gd,jd=Vd,Qd=F0,el=z0,tl=el&&el.isMap,Xd=tl?Qd(tl):jd,Jd=Xd,eh=V0,th=Dr,nh="[object Set]";function rh(e){return th(e)&&eh(e)==nh}var ih=rh,oh=ih,ah=F0,nl=z0,rl=nl&&nl.isSet,sh=rl?ah(rl):oh,lh=sh,ch=L7,uh=k7,fh=B0,dh=y4,hh=D4,gh=R4,ph=F4,_h=j4,mh=uf,yh=yf,bh=wf,vh=V0,Ch=Vf,xh=Rd,wh=Ud,$h=Rr,Lh=Ms,Sh=Jd,kh=Pr,Ah=lh,Mh=K0,Th=H0,Ph=1,Ih=2,Oh=4,il="[object Arguments]",Eh="[object Array]",Dh="[object Boolean]",Rh="[object Date]",Bh="[object Error]",ol="[object Function]",Fh="[object GeneratorFunction]",zh="[object Map]",Nh="[object Number]",al="[object Object]",Kh="[object RegExp]",Hh="[object Set]",Wh="[object String]",Uh="[object Symbol]",Zh="[object WeakMap]",Yh="[object ArrayBuffer]",qh="[object DataView]",Gh="[object Float32Array]",Vh="[object Float64Array]",jh="[object Int8Array]",Qh="[object Int16Array]",Xh="[object Int32Array]",Jh="[object Uint8Array]",eg="[object Uint8ClampedArray]",tg="[object Uint16Array]",ng="[object Uint32Array]",Ke={};Ke[il]=Ke[Eh]=Ke[Yh]=Ke[qh]=Ke[Dh]=Ke[Rh]=Ke[Gh]=Ke[Vh]=Ke[jh]=Ke[Qh]=Ke[Xh]=Ke[zh]=Ke[Nh]=Ke[al]=Ke[Kh]=Ke[Hh]=Ke[Wh]=Ke[Uh]=Ke[Jh]=Ke[eg]=Ke[tg]=Ke[ng]=!0,Ke[Bh]=Ke[ol]=Ke[Zh]=!1;function pi(e,n,i,o,s,l){var c,f=n&Ph,d=n&Ih,g=n&Oh;if(i&&(c=s?i(e,o,s,l):i(e)),c!==void 0)return c;if(!kh(e))return e;var v=$h(e);if(v){if(c=Ch(e),!f)return ph(e,c)}else{var y=vh(e),b=y==ol||y==Fh;if(Lh(e))return gh(e,f);if(y==al||y==il||b&&!s){if(c=d||b?{}:wh(e),!f)return d?mh(e,hh(c,e)):_h(e,dh(c,e))}else{if(!Ke[y])return s?e:{};c=xh(e,y,f)}}l||(l=new ch);var C=l.get(e);if(C)return C;l.set(e,c),Ah(e)?e.forEach(function(x){c.add(pi(x,n,i,x,e,l))}):Sh(e)&&e.forEach(function(x,$){c.set($,pi(x,n,i,$,e,l))});var L=g?d?bh:yh:d?Th:Mh,k=v?void 0:L(e);return uh(k||e,function(x,$){k&&($=x,x=e[$]),fh(c,$,pi(x,n,i,$,e,l))}),c}var rg=pi,ig=rg,og=1,ag=4;function sg(e){return ig(e,og|ag)}var lg=sg;const cg=w0(lg);var ug=v1,fg=Dr,dg="[object Symbol]";function hg(e){return typeof e=="symbol"||fg(e)&&ug(e)==dg}var Q0=hg,gg=Rr,pg=Q0,_g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mg=/^\w*$/;function yg(e,n){if(gg(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||pg(e)?!0:mg.test(e)||!_g.test(e)||n!=null&&e in Object(n)}var bg=yg,sl=$s,vg="Expected a function";function X0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(vg);var i=function(){var o=arguments,s=n?n.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(X0.Cache||sl),i}X0.Cache=sl;var Cg=X0,xg=Cg,wg=500;function $g(e){var n=xg(e,function(o){return i.size===wg&&i.clear(),o}),i=n.cache;return n}var Lg=$g,Sg=Lg,kg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ag=/\\(\\)?/g,Mg=Sg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(kg,function(i,o,s,l){n.push(s?l.replace(Ag,"$1"):o||i)}),n}),Tg=Mg;function Pg(e,n){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=n(e[i],i,e);return s}var Ig=Pg,ll=li,Og=Ig,Eg=Rr,Dg=Q0,Rg=1/0,cl=ll?ll.prototype:void 0,ul=cl?cl.toString:void 0;function fl(e){if(typeof e=="string")return e;if(Eg(e))return Og(e,fl)+"";if(Dg(e))return ul?ul.call(e):"";var n=e+"";return n=="0"&&1/e==-Rg?"-0":n}var Bg=fl,Fg=Bg;function zg(e){return e==null?"":Fg(e)}var Ng=zg,Kg=Rr,Hg=bg,Wg=Tg,Ug=Ng;function Zg(e,n){return Kg(e)?e:Hg(e,n)?[e]:Wg(Ug(e))}var Yg=Zg,qg=Q0,Gg=1/0;function Vg(e){if(typeof e=="string"||qg(e))return e;var n=e+"";return n=="0"&&1/e==-Gg?"-0":n}var jg=Vg,Qg=B0,Xg=Yg,Jg=Ts,dl=Pr,ep=jg;function tp(e,n,i,o){if(!dl(e))return e;n=Xg(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=ep(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var v=f[d];g=o?o(v,d,f):void 0,g===void 0&&(g=dl(v)?v:Jg(n[s+1])?[]:{})}Qg(f,d,g),f=f[d]}return e}var np=tp,rp=np;function ip(e,n,i){return e==null?e:rp(e,n,i)}var op=ip;const C1=w0(op);var ap=Y("<button>");const sp=e=>(()=>{var n=ap();return wn(n,"click",e.onClick,!0),R(n,()=>e.children),Te(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=Ve(n,o,i.e),s!==i.t&&Ht(n,i.t=s),i},{e:void 0,t:void 0}),n})();Dt(["click"]);var lp=Y('<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">'),cp=Y('<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">'),up=Y("<div>"),fp=Y("<span class=label>");const dp=()=>lp(),hp=()=>cp(),hl=e=>{const[n,i]=Q(e.checked??!1);return Mt(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=up();return o.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},R(o,(()=>{var s=Ze(()=>!!n());return()=>s()?q(dp,{}):q(hp,{})})(),null),R(o,(()=>{var s=Ze(()=>!!e.label);return()=>s()&&(()=>{var l=fp();return R(l,()=>e.label),l})()})(),null),Te(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=Ve(o,l,s.e),c!==s.t&&Ht(o,s.t=c),s},{e:void 0,t:void 0}),o})()};Dt(["click"]);var gp=Y("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const gl=()=>gp();var pp=Y('<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 _p=()=>pp();var mp=Y("<ul>"),yp=Y("<li>");const _i=e=>(()=>{var n=mp();return R(n,q(Oe,{get when(){return e.loading},get children(){return q(gl,{})}}),null),R(n,q(Oe,{get when(){var i;return Ze(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return q(_p,{})}}),null),R(n,q(Oe,{get when(){return e.children},get children(){return e.children}}),null),R(n,q(Oe,{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))??yp()})}}),null),Te(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=Ve(n,o,i.e),s!==i.t&&Ht(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Fr=[];let bp=0,mi=!1;function pl(e){if(e.key!=="Escape")return;const n=Fr[Fr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function vp(){mi||(window.addEventListener("keydown",pl,!0),mi=!0)}function Cp(){Fr.length===0&&mi&&(window.removeEventListener("keydown",pl,!0),mi=!1)}function xp(e){const n=bp++;return Fr.push({id:n,close:e}),vp(),()=>{const i=Fr.findIndex(o=>o.id===n);i>=0&&Fr.splice(i,1),Cp()}}var wp=Y('<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>'),$p=Y("<div class=button-container>");const Ln=e=>{let n=null;P0(()=>{if(!e.onClose)return;const d=xp(()=>{var g;(g=e.onClose)==null||g.call(e)});Sr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},o={};e.width!=null&&(o.width=`${e.width}px`,o["max-width"]=`${e.width}px`),e.height!=null&&(o.height=`${e.height}px`,o["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let v=d;for(;v;){const y=window.getComputedStyle(v);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&v.scrollHeight>v.clientHeight)return g>0?v.scrollTop+v.clientHeight<v.scrollHeight:v.scrollTop>0;v=v.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},c=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,v=n-g;n=g,s(d.target,v)||d.preventDefault()};return(()=>{var d=wp(),g=d.firstChild,v=g.firstChild,y=v.firstChild,b=v.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),R(v,()=>e.title,y),wn(y,"click",e.onClose,!0),R(b,()=>e.children),R(g,(()=>{var C=Ze(()=>!!(e.buttons&&e.buttons.length>0));return()=>C()&&(()=>{var L=$p();return R(L,()=>e.buttons.map(k=>q(sp,cs(k,{get children(){return k.children}})))),L})()})(),null),Te(C=>{var L=`inner${e.height!=null?" inner--fixed-height":""}`,k=o;return L!==C.e&&Ht(g,C.e=L),C.t=Ve(g,k,C.t),C},{e:void 0,t:void 0}),d})()};Dt(["click","touchstart","touchmove"]);var Lp=Y("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),Sp=Y("<div class=drop-down-container><ul>"),kp=Y("<li>");const x1=e=>{const[n,i]=Q(!1);return(()=>{var o=Lp(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",c=>{i(!1)}),o.$$click=c=>{i(f=>!f)},R(l,()=>e.value),R(o,(()=>{var c=Ze(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=Sp(),d=f.firstChild;return R(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var b=kp();return b.$$click=C=>{var L;C.stopPropagation(),e.value!==y&&((L=e.onSelected)==null||L.call(e,g)),i(!1)},R(b,y),b})()})),f})()})(),null),Te(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=Ve(o,f,c.e),d!==c.t&&Ht(o,c.t=d),c},{e:void 0,t:void 0}),o})()};Dt(["click"]);var Ap=Y("<span class=prefix>"),Mp=Y("<span class=suffix>"),Tp=Y("<div><input id=myInput class=value>");const[Pp,cD]=Q("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),_l=e=>{const n=cs({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=Q("normal"),l=c=>{c&&c.focus()};return Mt(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=Tp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},R(c,q(Oe,{get when(){return n.prefix},get children(){var g=Ap();return R(g,()=>n.prefix),g}}),f),wn(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,b;const v=g.target.value;if("precision"in n){let C;const L=Math.max(0,Math.floor(n.precision));L<=0?C=new RegExp(/^[1-9]\d*$/):C=new RegExp("^\\d+\\.?\\d{0,"+L+"}$"),(v===""||C.test(v)&&+v>=n.min&&+v<=n.max)&&((y=n.onChange)==null||y.call(n,v===""?v:+v))}else(b=n.onChange)==null||b.call(n,v)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?ii(d,f):i=f,R(c,q(Oe,{get when(){return n.suffix},get children(){var g=Mp();return R(g,()=>n.suffix),g}}),null),Te(g=>{var v=n.style,y=`${Pp()}${n.class??""}`,b=o(),C=n.placeholder??"",L=n.focus===!0?n.focus:!1;return g.e=Ve(c,v,g.e),y!==g.t&&Ht(c,g.t=y),b!==g.a&&Je(c,"data-status",g.a=b),C!==g.o&&Je(f,"placeholder",g.o=C),L!==g.i&&(f.autofocus=g.i=L),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>f.value=n.value),c})()};Dt(["click","keydown"]);var Ip=Y("<div><i class=thumb>");const zr=e=>(()=>{var n=Ip();return n.$$click=i=>{e.onChange&&e.onChange()},Te(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=Ve(n,o,i.e),s!==i.t&&Ht(n,i.t=s),i},{e:void 0,t:void 0}),n})();Dt(["click"]);const{min:Op,max:Ep}=Math,pr=(e,n=0,i=1)=>Op(Ep(n,e),i),J0=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=pr(e[n],0,255)):n===3&&(e[n]=pr(e[n],0,1));return e},ml={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])ml[`[object ${e}]`]=e.toLowerCase();function xe(e){return ml[Object.prototype.toString.call(e)]||"object"}const ye=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):xe(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Nr=e=>{if(e.length<2)return null;const n=e.length-1;return xe(e[n])=="string"?e[n].toLowerCase():null},{PI:yi,min:yl,max:bl}=Math,Xt=e=>Math.round(e*100)/100,eo=e=>Math.round(e*100)/100,Rn=yi*2,to=yi/3,Dp=yi/180,Rp=180/yi;function vl(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const pe={format:{},autodetect:[]};let G=class{constructor(...n){const i=this;if(xe(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let o=Nr(n),s=!1;if(!o){s=!0,pe.sorted||(pe.autodetect=pe.autodetect.sort((l,c)=>c.p-l.p),pe.sorted=!0);for(let l of pe.autodetect)if(o=l.test(...n),o)break}if(pe.format[o]){const l=pe.format[o].apply(null,s?n:n.slice(0,-1));i._rgb=J0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return xe(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Bp="3.2.0",ge=(...e)=>new G(...e);ge.version=Bp;const Kr={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"},Fp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,zp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Cl=e=>{if(e.match(Fp)){(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 n=parseInt(e,16),i=n>>16,o=n>>8&255,s=n&255;return[i,o,s,1]}if(e.match(zp)){(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 n=parseInt(e,16),i=n>>24&255,o=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:bi}=Math,xl=(...e)=>{let[n,i,o,s]=ye(e,"rgba"),l=Nr(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=bi(n),i=bi(i),o=bi(o);let f="000000"+(n<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let d="0"+bi(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};G.prototype.name=function(){const e=xl(this._rgb,"rgb");for(let n of Object.keys(Kr))if(Kr[n]===e)return n.toLowerCase();return e},pe.format.named=e=>{if(e=e.toLowerCase(),Kr[e])return Cl(Kr[e]);throw new Error("unknown color name: "+e)},pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&xe(e)==="string"&&Kr[e.toLowerCase()])return"named"}}),G.prototype.alpha=function(e,n=!1){return e!==void 0&&xe(e)==="number"?n?(this._rgb[3]=e,this):new G([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},G.prototype.clipped=function(){return this._rgb._clipped||!1};const Sn={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}},Np=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 Bn(e){const n=Np.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);Sn.labWhitePoint=e,Sn.Xn=n[0],Sn.Zn=n[1]}function w1(){return Sn.labWhitePoint}const no=(...e)=>{e=ye(e,"lab");const[n,i,o]=e,[s,l,c]=Kp(n,i,o),[f,d,g]=wl(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Kp=(e,n,i)=>{const{kE:o,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=Sn,g=(e+16)/116,v=.002*n+g,y=g-.005*i,b=v*v*v,C=y*y*y,L=b>o?b:(116*v-16)/s,k=e>l?Math.pow((e+16)/116,3):e/s,x=C>o?C:(116*y-16)/s,$=L*c,P=k*f,O=x*d;return[$,P,O]},ro=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},wl=(e,n,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=Sn,v=f*o.m00+d*o.m10+g*o.m20,y=f*o.m01+d*o.m11+g*o.m21,b=f*o.m02+d*o.m12+g*o.m22,C=c.X*o.m00+c.Y*o.m10+c.Z*o.m20,L=c.X*o.m01+c.Y*o.m11+c.Z*o.m21,k=c.X*o.m02+c.Y*o.m12+c.Z*o.m22,x=(e*o.m00+n*o.m10+i*o.m20)*(C/v),$=(e*o.m01+n*o.m11+i*o.m21)*(L/y),P=(e*o.m02+n*o.m12+i*o.m22)*(k/b),O=x*s.m00+$*s.m10+P*s.m20,T=x*s.m01+$*s.m11+P*s.m21,z=x*s.m02+$*s.m12+P*s.m22,H=ro(O*l.m00+T*l.m10+z*l.m20),U=ro(O*l.m01+T*l.m11+z*l.m21),I=ro(O*l.m02+T*l.m12+z*l.m22);return[H*255,U*255,I*255]},io=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),[l,c,f]=$l(n,i,o),[d,g,v]=Hp(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};function Hp(e,n,i){const{Xn:o,Yn:s,Zn:l,kE:c,kK:f}=Sn,d=e/o,g=n/s,v=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,b=g>c?Math.pow(g,1/3):(f*g+16)/116,C=v>c?Math.pow(v,1/3):(f*v+16)/116;return[116*b-16,500*(y-b),200*(b-C)]}function oo(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const $l=(e,n,i)=>{e=oo(e/255),n=oo(n/255),i=oo(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:v,Cs:y}=Sn;let b=e*o.m00+n*o.m10+i*o.m20,C=e*o.m01+n*o.m11+i*o.m21,L=e*o.m02+n*o.m12+i*o.m22;const k=c*s.m00+f*s.m10+d*s.m20,x=c*s.m01+f*s.m11+d*s.m21,$=c*s.m02+f*s.m12+d*s.m22;let P=b*s.m00+C*s.m10+L*s.m20,O=b*s.m01+C*s.m11+L*s.m21,T=b*s.m02+C*s.m12+L*s.m22;return P*=k/g,O*=x/v,T*=$/y,b=P*l.m00+O*l.m10+T*l.m20,C=P*l.m01+O*l.m11+T*l.m21,L=P*l.m02+O*l.m12+T*l.m22,[b,C,L]};G.prototype.lab=function(){return io(this._rgb)},Object.assign(ge,{lab:(...e)=>new G(...e,"lab"),getLabWhitePoint:w1,setLabWhitePoint:Bn}),pe.format.lab=no,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"lab"),xe(e)==="array"&&e.length===3)return"lab"}}),G.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=Sn.Kn*e,new G(i,"lab").alpha(n.alpha(),!0)},G.prototype.brighten=function(e=1){return this.darken(-e)},G.prototype.darker=G.prototype.darken,G.prototype.brighter=G.prototype.brighten,G.prototype.get=function(e){const[n,i]=e.split("."),o=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return o};const{pow:Wp}=Math,Up=1e-7,Zp=20;G.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&xe(e)==="number"){if(e===0)return new G([0,0,0,this._rgb[3]],"rgb");if(e===1)return new G([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=Zp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Up||!o--?d:g>e?s(c,d):s(d,f)},l=(i>e?s(new G([0,0,0]),this):s(this,new G([255,255,255]))).rgb();return new G([...l,this._rgb[3]])}return Yp(...this._rgb.slice(0,3))};const Yp=(e,n,i)=>(e=ao(e),n=ao(n),i=ao(i),.2126*e+.7152*n+.0722*i),ao=e=>(e/=255,e<=.03928?e/12.92:Wp((e+.055)/1.055,2.4)),Ct={},Hr=(e,n,i=.5,...o)=>{let s=o[0]||"lrgb";if(!Ct[s]&&!o.length&&(s=Object.keys(Ct)[0]),!Ct[s])throw new Error(`interpolation mode ${s} is not defined`);return xe(e)!=="object"&&(e=new G(e)),xe(n)!=="object"&&(n=new G(n)),Ct[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};G.prototype.mix=G.prototype.interpolate=function(e,n=.5,...i){return Hr(this,e,n,...i)},G.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new G([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:qp,cos:Gp}=Math,Ll=(...e)=>{let[n,i,o]=ye(e,"lch");return isNaN(o)&&(o=0),o=o*Dp,[n,Gp(o)*i,qp(o)*i]},so=(...e)=>{e=ye(e,"lch");const[n,i,o]=e,[s,l,c]=Ll(n,i,o),[f,d,g]=no(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Vp=(...e)=>{const n=vl(ye(e,"hcl"));return so(...n)},{sqrt:jp,atan2:Qp,round:Xp}=Math,Sl=(...e)=>{const[n,i,o]=ye(e,"lab"),s=jp(i*i+o*o);let l=(Qp(o,i)*Rp+360)%360;return Xp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},lo=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),[l,c,f]=io(n,i,o),[d,g,v]=Sl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};G.prototype.lch=function(){return lo(this._rgb)},G.prototype.hcl=function(){return vl(lo(this._rgb))},Object.assign(ge,{lch:(...e)=>new G(...e,"lch"),hcl:(...e)=>new G(...e,"hcl")}),pe.format.lch=so,pe.format.hcl=Vp,["lch","hcl"].forEach(e=>pe.autodetect.push({p:2,test:(...n)=>{if(n=ye(n,e),xe(n)==="array"&&n.length===3)return e}})),G.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=Sn.Kn*e,i[1]<0&&(i[1]=0),new G(i,"lch").alpha(n.alpha(),!0)},G.prototype.desaturate=function(e=1){return this.saturate(-e)},G.prototype.set=function(e,n,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const c=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(c>-1){if(xe(n)=="string")switch(n.charAt(0)){case"+":l[c]+=+n;break;case"-":l[c]+=+n;break;case"*":l[c]*=+n.substr(1);break;case"/":l[c]/=+n.substr(1);break;default:l[c]=+n}else if(xe(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new G(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},G.prototype.tint=function(e=.5,...n){return Hr(this,"white",e,...n)},G.prototype.shade=function(e=.5,...n){return Hr(this,"black",e,...n)};const Jp=(e,n,i)=>{const o=e._rgb,s=n._rgb;return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};Ct.rgb=Jp;const{sqrt:co,pow:Wr}=Math,e_=(e,n,i)=>{const[o,s,l]=e._rgb,[c,f,d]=n._rgb;return new G(co(Wr(o,2)*(1-i)+Wr(c,2)*i),co(Wr(s,2)*(1-i)+Wr(f,2)*i),co(Wr(l,2)*(1-i)+Wr(d,2)*i),"rgb")};Ct.lrgb=e_;const t_=(e,n,i)=>{const o=e.lab(),s=n.lab();return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};Ct.lab=t_;const Ur=(e,n,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=n.hsl()):o==="hsv"?(s=e.hsv(),l=n.hsv()):o==="hcg"?(s=e.hcg(),l=n.hcg()):o==="hsi"?(s=e.hsi(),l=n.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=n.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,v,y;(o.substr(0,1)==="h"||o==="oklch")&&([c,d,v]=s,[f,g,y]=l);let b,C,L,k;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?k=f-(c+360):f<c&&c-f>180?k=f+360-c:k=f-c,C=c+i*k):isNaN(c)?isNaN(f)?C=Number.NaN:(C=f,(v==1||v==0)&&o!="hsv"&&(b=g)):(C=c,(y==1||y==0)&&o!="hsv"&&(b=d)),b===void 0&&(b=d+i*(g-d)),L=v+i*(y-v),o==="oklch"?new G([L,b,C],o):new G([C,b,L],o)},kl=(e,n,i)=>Ur(e,n,i,"lch");Ct.lch=kl,Ct.hcl=kl;const n_=e=>{if(xe(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,o=e&255;return[n,i,o,1]}throw new Error("unknown num color: "+e)},r_=(...e)=>{const[n,i,o]=ye(e,"rgb");return(n<<16)+(i<<8)+o};G.prototype.num=function(){return r_(this._rgb)},Object.assign(ge,{num:(...e)=>new G(...e,"num")}),pe.format.num=n_,pe.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&xe(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const i_=(e,n,i)=>{const o=e.num(),s=n.num();return new G(o+i*(s-o),"num")};Ct.num=i_;const{floor:o_}=Math,a_=(...e)=>{e=ye(e,"hcg");let[n,i,o]=e,s,l,c;o=o*255;const f=i*255;if(i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=o_(n),g=n-d,v=o*(1-i),y=v+f*(1-g),b=v+f*g,C=v+f;switch(d){case 0:[s,l,c]=[C,b,v];break;case 1:[s,l,c]=[y,C,v];break;case 2:[s,l,c]=[v,C,b];break;case 3:[s,l,c]=[v,y,C];break;case 4:[s,l,c]=[b,v,C];break;case 5:[s,l,c]=[C,v,y];break}}return[s,l,c,e.length>3?e[3]:1]},s_=(...e)=>{const[n,i,o]=ye(e,"rgb"),s=yl(n,i,o),l=bl(n,i,o),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-o)/c),i===l&&(g=2+(o-n)/c),o===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};G.prototype.hcg=function(){return s_(this._rgb)};const l_=(...e)=>new G(...e,"hcg");ge.hcg=l_,pe.format.hcg=a_,pe.autodetect.push({p:1,test:(...e)=>{if(e=ye(e,"hcg"),xe(e)==="array"&&e.length===3)return"hcg"}});const c_=(e,n,i)=>Ur(e,n,i,"hcg");Ct.hcg=c_;const{cos:Zr}=Math,u_=(...e)=>{e=ye(e,"hsi");let[n,i,o]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Zr(Rn*n)/Zr(to-Rn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Zr(Rn*n)/Zr(to-Rn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Zr(Rn*n)/Zr(to-Rn*n))/3,s=1-(l+c)),s=pr(o*s*3),l=pr(o*l*3),c=pr(o*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:f_,sqrt:d_,acos:h_}=Math,g_=(...e)=>{let[n,i,o]=ye(e,"rgb");n/=255,i/=255,o/=255;let s;const l=f_(n,i,o),c=(n+i+o)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-o))/2,s/=d_((n-i)*(n-i)+(n-o)*(i-o)),s=h_(s),o>i&&(s=Rn-s),s/=Rn),[s*360,f,c]};G.prototype.hsi=function(){return g_(this._rgb)};const p_=(...e)=>new G(...e,"hsi");ge.hsi=p_,pe.format.hsi=u_,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"hsi"),xe(e)==="array"&&e.length===3)return"hsi"}});const __=(e,n,i)=>Ur(e,n,i,"hsi");Ct.hsi=__;const uo=(...e)=>{e=ye(e,"hsl");const[n,i,o]=e;let s,l,c;if(i===0)s=l=c=o*255;else{const f=[0,0,0],d=[0,0,0],g=o<.5?o*(1+i):o+i-o*i,v=2*o-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let b=0;b<3;b++)f[b]<0&&(f[b]+=1),f[b]>1&&(f[b]-=1),6*f[b]<1?d[b]=v+(g-v)*6*f[b]:2*f[b]<1?d[b]=g:3*f[b]<2?d[b]=v+(g-v)*(2/3-f[b])*6:d[b]=v;[s,l,c]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,c,e[3]]:[s,l,c,1]},Al=(...e)=>{e=ye(e,"rgba");let[n,i,o]=e;n/=255,i/=255,o/=255;const s=yl(n,i,o),l=bl(n,i,o),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-o)/(l-s):i==l?d=2+(o-n)/(l-s):o==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};G.prototype.hsl=function(){return Al(this._rgb)};const m_=(...e)=>new G(...e,"hsl");ge.hsl=m_,pe.format.hsl=uo,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"hsl"),xe(e)==="array"&&e.length===3)return"hsl"}});const y_=(e,n,i)=>Ur(e,n,i,"hsl");Ct.hsl=y_;const{floor:b_}=Math,v_=(...e)=>{e=ye(e,"hsv");let[n,i,o]=e,s,l,c;if(o*=255,i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=b_(n),d=n-f,g=o*(1-i),v=o*(1-i*d),y=o*(1-i*(1-d));switch(f){case 0:[s,l,c]=[o,y,g];break;case 1:[s,l,c]=[v,o,g];break;case 2:[s,l,c]=[g,o,y];break;case 3:[s,l,c]=[g,v,o];break;case 4:[s,l,c]=[y,g,o];break;case 5:[s,l,c]=[o,g,v];break}}return[s,l,c,e.length>3?e[3]:1]},{min:C_,max:x_}=Math,w_=(...e)=>{e=ye(e,"rgb");let[n,i,o]=e;const s=C_(n,i,o),l=x_(n,i,o),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-o)/c),i===l&&(f=2+(o-n)/c),o===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};G.prototype.hsv=function(){return w_(this._rgb)};const $_=(...e)=>new G(...e,"hsv");ge.hsv=$_,pe.format.hsv=v_,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"hsv"),xe(e)==="array"&&e.length===3)return"hsv"}});const L_=(e,n,i)=>Ur(e,n,i,"hsv");Ct.hsv=L_;function vi(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let o=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,v)=>d+g*(f[v]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),o===1?l.map(c=>c[0]):l}const fo=(...e)=>{e=ye(e,"lab");const[n,i,o,...s]=e,[l,c,f]=S_([n,i,o]),[d,g,v]=wl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};function S_(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=vi(i,e);return vi(n,o.map(s=>s**3))}const ho=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),l=$l(n,i,o);return[...k_(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function k_(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=vi(n,e);return vi(i,o.map(s=>Math.cbrt(s)))}G.prototype.oklab=function(){return ho(this._rgb)},Object.assign(ge,{oklab:(...e)=>new G(...e,"oklab")}),pe.format.oklab=fo,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"oklab"),xe(e)==="array"&&e.length===3)return"oklab"}});const A_=(e,n,i)=>{const o=e.oklab(),s=n.oklab();return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};Ct.oklab=A_;const M_=(e,n,i)=>Ur(e,n,i,"oklch");Ct.oklch=M_;const{pow:go,sqrt:po,PI:_o,cos:Ml,sin:Tl,atan2:T_}=Math,P_=(e,n="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(y,b){return y+b});if(i.forEach((y,b)=>{i[b]*=s}),e=e.map(y=>new G(y)),n==="lrgb")return I_(e,i);const l=e.shift(),c=l.get(n),f=[];let d=0,g=0;for(let y=0;y<c.length;y++)if(c[y]=(c[y]||0)*i[0],f.push(isNaN(c[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(c[y])){const b=c[y]/180*_o;d+=Ml(b)*i[0],g+=Tl(b)*i[0]}let v=l.alpha()*i[0];e.forEach((y,b)=>{const C=y.get(n);v+=y.alpha()*i[b+1];for(let L=0;L<c.length;L++)if(!isNaN(C[L]))if(f[L]+=i[b+1],n.charAt(L)==="h"){const k=C[L]/180*_o;d+=Ml(k)*i[b+1],g+=Tl(k)*i[b+1]}else c[L]+=C[L]*i[b+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let b=T_(g/f[y],d/f[y])/_o*180;for(;b<0;)b+=360;for(;b>=360;)b-=360;c[y]=b}else c[y]=c[y]/f[y];return v/=o,new G(c,n).alpha(v>.99999?1:v,!0)},I_=(e,n)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;o[0]+=go(f[0],2)*c,o[1]+=go(f[1],2)*c,o[2]+=go(f[2],2)*c,o[3]+=f[3]*c}return o[0]=po(o[0]),o[1]=po(o[1]),o[2]=po(o[2]),o[3]>.9999999&&(o[3]=1),new G(J0(o))},{pow:O_}=Math;function Ci(e){let n="rgb",i=ge("#ccc"),o=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],v=!1,y=0,b=1,C=!1,L={},k=!0,x=1;const $=function(I){if(I=I||["#fff","#000"],I&&xe(I)==="string"&&ge.brewer&&ge.brewer[I.toLowerCase()]&&(I=ge.brewer[I.toLowerCase()]),xe(I)==="array"){I.length===1&&(I=[I[0],I[0]]),I=I.slice(0);for(let D=0;D<I.length;D++)I[D]=ge(I[D]);c.length=0;for(let D=0;D<I.length;D++)c.push(D/(I.length-1))}return H(),g=I},P=function(I){if(d!=null){const D=d.length-1;let V=0;for(;V<D&&I>=d[V];)V++;return V-1}return 0};let O=I=>I,T=I=>I;const z=function(I,D){let V,j;if(D==null&&(D=!1),isNaN(I)||I===null)return i;D?j=I:d&&d.length>2?j=P(I)/(d.length-2):b!==y?j=(I-y)/(b-y):j=1,j=T(j),D||(j=O(j)),x!==1&&(j=O_(j,x)),j=f[0]+j*(1-f[0]-f[1]),j=pr(j,0,1);const te=Math.floor(j*1e4);if(k&&L[te])V=L[te];else{if(xe(g)==="array")for(let ne=0;ne<c.length;ne++){const Ie=c[ne];if(j<=Ie){V=g[ne];break}if(j>=Ie&&ne===c.length-1){V=g[ne];break}if(j>Ie&&j<c[ne+1]){j=(j-Ie)/(c[ne+1]-Ie),V=ge.interpolate(g[ne],g[ne+1],j,n);break}}else xe(g)==="function"&&(V=g(j));k&&(L[te]=V)}return V};var H=()=>L={};$(e);const U=function(I){const D=ge(z(I));return v&&D[v]?D[v]():D};return U.classes=function(I){if(I!=null){if(xe(I)==="array")d=I,s=[I[0],I[I.length-1]];else{const D=ge.analyze(s);I===0?d=[D.min,D.max]:d=ge.limits(D,"e",I)}return U}return d},U.domain=function(I){if(!arguments.length)return l;l=I.slice(0),y=I[0],b=I[I.length-1],c=[];const D=g.length;if(I.length===D&&y!==b)for(let V of Array.from(I))c.push((V-y)/(b-y));else{for(let V=0;V<D;V++)c.push(V/(D-1));if(I.length>2){const V=I.map((te,ne)=>ne/(I.length-1)),j=I.map(te=>(te-y)/(b-y));j.every((te,ne)=>V[ne]===te)||(T=te=>{if(te<=0||te>=1)return te;let ne=0;for(;te>=j[ne+1];)ne++;const Ie=(te-j[ne])/(j[ne+1]-j[ne]);return V[ne]+Ie*(V[ne+1]-V[ne])})}}return s=[y,b],U},U.mode=function(I){return arguments.length?(n=I,H(),U):n},U.range=function(I,D){return $(I),U},U.out=function(I){return v=I,U},U.spread=function(I){return arguments.length?(o=I,U):o},U.correctLightness=function(I){return I==null&&(I=!0),C=I,H(),C?O=function(D){const V=z(0,!0).lab()[0],j=z(1,!0).lab()[0],te=V>j;let ne=z(D,!0).lab()[0];const Ie=V+(j-V)*D;let ot=ne-Ie,xt=0,wt=1,Ye=20;for(;Math.abs(ot)>.01&&Ye-- >0;)(function(){return te&&(ot*=-1),ot<0?(xt=D,D+=(wt-D)*.5):(wt=D,D+=(xt-D)*.5),ne=z(D,!0).lab()[0],ot=ne-Ie})();return D}:O=D=>D,U},U.padding=function(I){return I!=null?(xe(I)==="number"&&(I=[I,I]),f=I,U):f},U.colors=function(I,D){arguments.length<2&&(D="hex");let V=[];if(arguments.length===0)V=g.slice(0);else if(I===1)V=[U(.5)];else if(I>1){const j=s[0],te=s[1]-j;V=E_(0,I,!1).map(ne=>U(j+ne/(I-1)*te))}else{e=[];let j=[];if(d&&d.length>2)for(let te=1,ne=d.length,Ie=1<=ne;Ie?te<ne:te>ne;Ie?te++:te--)j.push((d[te-1]+d[te])*.5);else j=s;V=j.map(te=>U(te))}return ge[D]&&(V=V.map(j=>j[D]())),V},U.cache=function(I){return I!=null?(k=I,U):k},U.gamma=function(I){return I!=null?(x=I,U):x},U.nodata=function(I){return I!=null?(i=ge(I),U):i},U}function E_(e,n,i){let o=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)o.push(c);return o}const D_=function(e){let n=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=n.length;s++)o[s]=(n[s]||0)+n[s-1];n=o}return n},R_=function(e){let n,i,o,s;if(e=e.map(l=>new G(l)),e.length===2)[i,o]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new G(c,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new G(c,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*o[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new G(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=D_(f),n=function(d){const g=1-d,v=[0,1,2].map(y=>l.reduce((b,C,L)=>b+c[L]*g**(f-L)*d**L*C[y],0));return new G(v,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},B_=e=>{const n=R_(e);return n.scale=()=>Ci(n),n},{round:Pl}=Math;G.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pl)},G.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:Pl(n):n)},Object.assign(ge,{rgb:(...e)=>new G(...e,"rgb")}),pe.format.rgb=(...e)=>{const n=ye(e,"rgba");return n[3]===void 0&&(n[3]=1),n},pe.autodetect.push({p:3,test:(...e)=>{if(e=ye(e,"rgba"),xe(e)==="array"&&(e.length===3||e.length===4&&xe(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const dn=(e,n,i)=>{if(!dn[i])throw new Error("unknown blend mode "+i);return dn[i](e,n)},Jn=e=>(n,i)=>{const o=ge(i).rgb(),s=ge(n).rgb();return ge.rgb(e(o,s))},er=e=>(n,i)=>{const o=[];return o[0]=e(n[0],i[0]),o[1]=e(n[1],i[1]),o[2]=e(n[2],i[2]),o},F_=e=>e,z_=(e,n)=>e*n/255,N_=(e,n)=>e>n?n:e,K_=(e,n)=>e>n?e:n,H_=(e,n)=>255*(1-(1-e/255)*(1-n/255)),W_=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),U_=(e,n)=>255*(1-(1-n/255)/(e/255)),Z_=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);dn.normal=Jn(er(F_)),dn.multiply=Jn(er(z_)),dn.screen=Jn(er(H_)),dn.overlay=Jn(er(W_)),dn.darken=Jn(er(N_)),dn.lighten=Jn(er(K_)),dn.dodge=Jn(er(Z_)),dn.burn=Jn(er(U_));const{pow:Y_,sin:q_,cos:G_}=Math;function V_(e=300,n=-1.5,i=1,o=1,s=[0,1]){let l=0,c;xe(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Rn*((e+120)/360+n*d),v=Y_(s[0]+c*d,o),b=(l!==0?i[0]+d*l:i)*v*(1-v)/2,C=G_(g),L=q_(g),k=v+b*(-.14861*C+1.78277*L),x=v+b*(-.29227*C-.90649*L),$=v+b*(1.97294*C);return ge(J0([k*255,x*255,$*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?o:(o=d,f)},f.hue=function(d){return d==null?i:(i=d,xe(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(xe(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>ge.scale(f),f.hue(i),f}const j_="0123456789abcdef",{floor:Q_,random:X_}=Math,J_=(e=X_)=>{let n="#";for(let i=0;i<6;i++)n+=j_.charAt(Q_(e()*16));return new G(n,"hex")},{log:Il,pow:em,floor:tm,abs:nm}=Math;function Ol(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return xe(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{n&&xe(o)==="object"&&(o=o[n]),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)=>El(i,o,s),i}function El(e,n="equal",i=7){xe(e)=="array"&&(e=Ol(e));const{min:o,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[o,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(o),c.push(s)),n.substr(0,1)==="e"){c.push(o);for(let f=1;f<i;f++)c.push(o+f/i*(s-o));c.push(s)}else if(n.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*Il(o),d=Math.LOG10E*Il(s);c.push(o);for(let g=1;g<i;g++)c.push(em(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(o);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=tm(d);if(g===d)c.push(l[g]);else{const v=d-g;c.push(l[g]*(1-v)+l[g+1]*v)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),v=new Array(i);let y=!0,b=0,C=null;C=[],C.push(o);for(let x=1;x<i;x++)C.push(o+x/i*(s-o));for(C.push(s);y;){for(let $=0;$<i;$++)v[$]=0;for(let $=0;$<d;$++){const P=l[$];let O=Number.MAX_VALUE,T;for(let z=0;z<i;z++){const H=nm(C[z]-P);H<O&&(O=H,T=z),v[T]++,g[$]=T}}const x=new Array(i);for(let $=0;$<i;$++)x[$]=null;for(let $=0;$<d;$++)f=g[$],x[f]===null?x[f]=l[$]:x[f]+=l[$];for(let $=0;$<i;$++)x[$]*=1/v[$];y=!1;for(let $=0;$<i;$++)if(x[$]!==C[$]){y=!0;break}C=x,b++,b>200&&(y=!1)}const L={};for(let x=0;x<i;x++)L[x]=[];for(let x=0;x<d;x++)f=g[x],L[f].push(l[x]);let k=[];for(let x=0;x<i;x++)k.push(L[x][0]),k.push(L[x][L[x].length-1]);k=k.sort((x,$)=>x-$),c.push(k[0]);for(let x=1;x<k.length;x+=2){const $=k[x];!isNaN($)&&c.indexOf($)===-1&&c.push($)}}return c}const rm=(e,n)=>{e=new G(e),n=new G(n);const i=e.luminance(),o=n.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
|
|
27
|
+
}`;var Ce=p2(function(){return De(_,re+"return "+Z).apply(i,w)});if(Ce.source=Z,Fa(Ce))throw Ce;return Ce}function iA(t){return Fe(t).toLowerCase()}function oA(t){return Fe(t).toUpperCase()}function aA(t,r,a){if(t=Fe(t),t&&(a||r===i))return w5(t);if(!t||!(r=Yt(r)))return t;var u=_n(t),h=_n(r),_=$5(u,h),w=L5(u,h)+1;return ur(u,_,w).join("")}function sA(t,r,a){if(t=Fe(t),t&&(a||r===i))return t.slice(0,k5(t)+1);if(!t||!(r=Yt(r)))return t;var u=_n(t),h=L5(u,_n(r))+1;return ur(u,0,h).join("")}function lA(t,r,a){if(t=Fe(t),t&&(a||r===i))return t.replace(Fo,"");if(!t||!(r=Yt(r)))return t;var u=_n(t),h=$5(u,_n(r));return ur(u,h).join("")}function cA(t,r){var a=j,u=ee;if(et(r)){var h="separator"in r?r.separator:h;a="length"in r?be(r.length):a,u="omission"in r?Yt(r.omission):u}t=Fe(t);var _=t.length;if(i1(t)){var w=_n(t);_=w.length}if(a>=_)return t;var S=a-o1(u);if(S<1)return u;var M=w?ur(w,0,S).join(""):t.slice(0,S);if(h===i)return M+u;if(w&&(S+=M.length-S),za(h)){if(t.slice(S).search(h)){var K,H=M;for(h.global||(h=ta(h.source,Fe(Z9.exec(h))+"g")),h.lastIndex=0;K=h.exec(H);)var Z=K.index;M=M.slice(0,Z===i?S:Z)}}else if(t.indexOf(Yt(h),S)!=S){var J=M.lastIndexOf(h);J>-1&&(M=M.slice(0,J))}return M+u}function uA(t){return t=Fe(t),t&&Fi.test(t)?t.replace(M1,Nx):t}var fA=d1(function(t,r,a){return t+(a?" ":"")+r.toUpperCase()}),Wa=pc("toUpperCase");function g2(t,r,a){return t=Fe(t),r=a?i:r,r===i?Dx(t)?Wx(t):Sx(t):t.match(r)||[]}var p2=we(function(t,r){try{return Wt(t,i,r)}catch(a){return Fa(a)?a:new he(a)}}),dA=Gn(function(t,r){return Ut(r,function(a){a=yn(a),An(t,a,Ra(t[a],t))}),t});function hA(t){var r=t==null?0:t.length,a=se();return t=r?Ve(t,function(u){if(typeof u[1]!="function")throw new nn(c);return[a(u[0]),u[1]]}):[],we(function(u){for(var h=-1;++h<r;){var _=t[h];if(Wt(_[0],this,u))return Wt(_[1],this,u)}})}function gA(t){return Nw(on(t,b))}function Ua(t){return function(){return t}}function pA(t,r){return t==null||t!==t?r:t}var _A=mc(),mA=mc(!0);function zt(t){return t}function Za(t){return q5(typeof t=="function"?t:on(t,b))}function yA(t){return V5(on(t,b))}function bA(t,r){return j5(t,on(r,b))}var vA=we(function(t,r){return function(a){return N1(a,t,r)}}),CA=we(function(t,r){return function(a){return N1(t,a,r)}});function Ya(t,r,a){var u=mt(r),h=d0(r,u);a==null&&!(et(r)&&(h.length||!u.length))&&(a=r,r=t,t=this,h=d0(r,mt(r)));var _=!(et(a)&&"chain"in a)||!!a.chain,w=jn(t);return Ut(h,function(S){var M=r[S];t[S]=M,w&&(t.prototype[S]=function(){var K=this.__chain__;if(_||K){var H=t(this.__wrapped__),Z=H.__actions__=Rt(this.__actions__);return Z.push({func:M,args:arguments,thisArg:t}),H.__chain__=K,H}return M.apply(t,ir([this.value()],arguments))})}),t}function xA(){return bt._===this&&(bt._=Vx),this}function qa(){}function wA(t){return t=be(t),we(function(r){return Q5(r,t)})}var $A=wa(Ve),LA=wa(y5),SA=wa(Go);function _2(t){return Ta(t)?Vo(yn(t)):r$(t)}function kA(t){return function(r){return t==null?i:xr(t,r)}}var AA=bc(),MA=bc(!0);function Ga(){return[]}function Va(){return!1}function TA(){return{}}function PA(){return""}function IA(){return!0}function OA(t,r){if(t=be(t),t<1||t>dt)return[];var a=Me,u=St(t,Me);r=se(r),t-=Me;for(var h=Xo(u,r);++a<t;)r(a);return h}function EA(t){return _e(t)?Ve(t,yn):qt(t)?[t]:Rt(Dc(Fe(t)))}function DA(t){var r=++qx;return Fe(t)+r}var RA=y0(function(t,r){return t+r},0),BA=$a("ceil"),FA=y0(function(t,r){return t/r},1),zA=$a("floor");function NA(t){return t&&t.length?f0(t,zt,ca):i}function KA(t,r){return t&&t.length?f0(t,se(r,2),ca):i}function HA(t){return C5(t,zt)}function WA(t,r){return C5(t,se(r,2))}function UA(t){return t&&t.length?f0(t,zt,ha):i}function ZA(t,r){return t&&t.length?f0(t,se(r,2),ha):i}var YA=y0(function(t,r){return t*r},1),qA=$a("round"),GA=y0(function(t,r){return t-r},0);function VA(t){return t&&t.length?Qo(t,zt):0}function jA(t,r){return t&&t.length?Qo(t,se(r,2)):0}return p.after=bS,p.ary=Yc,p.assign=ak,p.assignIn=a2,p.assignInWith=s2,p.assignWith=Na,p.at=sk,p.before=qc,p.bind=Ra,p.bindAll=dA,p.bindKey=Gc,p.castArray=PS,p.chain=Wc,p.chunk=N$,p.compact=K$,p.concat=H$,p.cond=hA,p.conforms=gA,p.constant=Ua,p.countBy=jL,p.create=lk,p.curry=Vc,p.curryRight=jc,p.debounce=Qc,p.defaults=ck,p.defaultsDeep=uk,p.defer=vS,p.delay=CS,p.difference=W$,p.differenceBy=U$,p.differenceWith=Z$,p.drop=Y$,p.dropRight=q$,p.dropRightWhile=G$,p.dropWhile=V$,p.fill=j$,p.filter=XL,p.flatMap=tS,p.flatMapDeep=nS,p.flatMapDepth=rS,p.flatten=zc,p.flattenDeep=Q$,p.flattenDepth=X$,p.flip=xS,p.flow=_A,p.flowRight=mA,p.fromPairs=J$,p.functions=mk,p.functionsIn=yk,p.groupBy=iS,p.initial=tL,p.intersection=nL,p.intersectionBy=rL,p.intersectionWith=iL,p.invert=vk,p.invertBy=Ck,p.invokeMap=aS,p.iteratee=Za,p.keyBy=sS,p.keys=mt,p.keysIn=Ft,p.map=L0,p.mapKeys=wk,p.mapValues=$k,p.matches=yA,p.matchesProperty=bA,p.memoize=k0,p.merge=Lk,p.mergeWith=l2,p.method=vA,p.methodOf=CA,p.mixin=Ya,p.negate=A0,p.nthArg=wA,p.omit=Sk,p.omitBy=kk,p.once=wS,p.orderBy=lS,p.over=$A,p.overArgs=$S,p.overEvery=LA,p.overSome=SA,p.partial=Ba,p.partialRight=Xc,p.partition=cS,p.pick=Ak,p.pickBy=c2,p.property=_2,p.propertyOf=kA,p.pull=lL,p.pullAll=Kc,p.pullAllBy=cL,p.pullAllWith=uL,p.pullAt=fL,p.range=AA,p.rangeRight=MA,p.rearg=LS,p.reject=dS,p.remove=dL,p.rest=SS,p.reverse=Ea,p.sampleSize=gS,p.set=Tk,p.setWith=Pk,p.shuffle=pS,p.slice=hL,p.sortBy=yS,p.sortedUniq=vL,p.sortedUniqBy=CL,p.split=eA,p.spread=kS,p.tail=xL,p.take=wL,p.takeRight=$L,p.takeRightWhile=LL,p.takeWhile=SL,p.tap=KL,p.throttle=AS,p.thru=$0,p.toArray=r2,p.toPairs=u2,p.toPairsIn=f2,p.toPath=EA,p.toPlainObject=o2,p.transform=Ik,p.unary=MS,p.union=kL,p.unionBy=AL,p.unionWith=ML,p.uniq=TL,p.uniqBy=PL,p.uniqWith=IL,p.unset=Ok,p.unzip=Da,p.unzipWith=Hc,p.update=Ek,p.updateWith=Dk,p.values=p1,p.valuesIn=Rk,p.without=OL,p.words=g2,p.wrap=TS,p.xor=EL,p.xorBy=DL,p.xorWith=RL,p.zip=BL,p.zipObject=FL,p.zipObjectDeep=zL,p.zipWith=NL,p.entries=u2,p.entriesIn=f2,p.extend=a2,p.extendWith=s2,Ya(p,p),p.add=RA,p.attempt=p2,p.camelCase=Nk,p.capitalize=d2,p.ceil=BA,p.clamp=Bk,p.clone=IS,p.cloneDeep=ES,p.cloneDeepWith=DS,p.cloneWith=OS,p.conformsTo=RS,p.deburr=h2,p.defaultTo=pA,p.divide=FA,p.endsWith=Kk,p.eq=bn,p.escape=Hk,p.escapeRegExp=Wk,p.every=QL,p.find=JL,p.findIndex=Bc,p.findKey=fk,p.findLast=eS,p.findLastIndex=Fc,p.findLastKey=dk,p.floor=zA,p.forEach=Uc,p.forEachRight=Zc,p.forIn=hk,p.forInRight=gk,p.forOwn=pk,p.forOwnRight=_k,p.get=Ka,p.gt=BS,p.gte=FS,p.has=bk,p.hasIn=Ha,p.head=Nc,p.identity=zt,p.includes=oS,p.indexOf=eL,p.inRange=Fk,p.invoke=xk,p.isArguments=Lr,p.isArray=_e,p.isArrayBuffer=zS,p.isArrayLike=Bt,p.isArrayLikeObject=ot,p.isBoolean=NS,p.isBuffer=fr,p.isDate=KS,p.isElement=HS,p.isEmpty=WS,p.isEqual=US,p.isEqualWith=ZS,p.isError=Fa,p.isFinite=YS,p.isFunction=jn,p.isInteger=Jc,p.isLength=M0,p.isMap=e2,p.isMatch=qS,p.isMatchWith=GS,p.isNaN=VS,p.isNative=jS,p.isNil=XS,p.isNull=QS,p.isNumber=t2,p.isObject=et,p.isObjectLike=nt,p.isPlainObject=Y1,p.isRegExp=za,p.isSafeInteger=JS,p.isSet=n2,p.isString=T0,p.isSymbol=qt,p.isTypedArray=g1,p.isUndefined=ek,p.isWeakMap=tk,p.isWeakSet=nk,p.join=oL,p.kebabCase=Uk,p.last=sn,p.lastIndexOf=aL,p.lowerCase=Zk,p.lowerFirst=Yk,p.lt=rk,p.lte=ik,p.max=NA,p.maxBy=KA,p.mean=HA,p.meanBy=WA,p.min=UA,p.minBy=ZA,p.stubArray=Ga,p.stubFalse=Va,p.stubObject=TA,p.stubString=PA,p.stubTrue=IA,p.multiply=YA,p.nth=sL,p.noConflict=xA,p.noop=qa,p.now=S0,p.pad=qk,p.padEnd=Gk,p.padStart=Vk,p.parseInt=jk,p.random=zk,p.reduce=uS,p.reduceRight=fS,p.repeat=Qk,p.replace=Xk,p.result=Mk,p.round=qA,p.runInContext=A,p.sample=hS,p.size=_S,p.snakeCase=Jk,p.some=mS,p.sortedIndex=gL,p.sortedIndexBy=pL,p.sortedIndexOf=_L,p.sortedLastIndex=mL,p.sortedLastIndexBy=yL,p.sortedLastIndexOf=bL,p.startCase=tA,p.startsWith=nA,p.subtract=GA,p.sum=VA,p.sumBy=jA,p.template=rA,p.times=OA,p.toFinite=Qn,p.toInteger=be,p.toLength=i2,p.toLower=iA,p.toNumber=ln,p.toSafeInteger=ok,p.toString=Fe,p.toUpper=oA,p.trim=aA,p.trimEnd=sA,p.trimStart=lA,p.truncate=cA,p.unescape=uA,p.uniqueId=DA,p.upperCase=fA,p.upperFirst=Wa,p.each=Uc,p.eachRight=Zc,p.first=Nc,Ya(p,function(){var t={};return Mn(p,function(r,a){Be.call(p.prototype,a)||(t[a]=r)}),t}(),{chain:!1}),p.VERSION=o,Ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Ut(["drop","take"],function(t,r){ke.prototype[t]=function(a){a=a===i?1:pt(be(a),0);var u=this.__filtered__&&!r?new ke(this):this.clone();return u.__filtered__?u.__takeCount__=St(a,u.__takeCount__):u.__views__.push({size:St(a,Me),type:t+(u.__dir__<0?"Right":"")}),u},ke.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Ut(["filter","map","takeWhile"],function(t,r){var a=r+1,u=a==it||a==$t;ke.prototype[t]=function(h){var _=this.clone();return _.__iteratees__.push({iteratee:se(h,3),type:a}),_.__filtered__=_.__filtered__||u,_}}),Ut(["head","last"],function(t,r){var a="take"+(r?"Right":"");ke.prototype[t]=function(){return this[a](1).value()[0]}}),Ut(["initial","tail"],function(t,r){var a="drop"+(r?"":"Right");ke.prototype[t]=function(){return this.__filtered__?new ke(this):this[a](1)}}),ke.prototype.compact=function(){return this.filter(zt)},ke.prototype.find=function(t){return this.filter(t).head()},ke.prototype.findLast=function(t){return this.reverse().find(t)},ke.prototype.invokeMap=we(function(t,r){return typeof t=="function"?new ke(this):this.map(function(a){return N1(a,t,r)})}),ke.prototype.reject=function(t){return this.filter(A0(se(t)))},ke.prototype.slice=function(t,r){t=be(t);var a=this;return a.__filtered__&&(t>0||r<0)?new ke(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),r!==i&&(r=be(r),a=r<0?a.dropRight(-r):a.take(r-t)),a)},ke.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ke.prototype.toArray=function(){return this.take(Me)},Mn(ke.prototype,function(t,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],_=u||/^find/.test(r);h&&(p.prototype[r]=function(){var w=this.__wrapped__,S=u?[1]:arguments,M=w instanceof ke,K=S[0],H=M||_e(w),Z=function(Se){var Ae=h.apply(p,ir([Se],S));return u&&J?Ae[0]:Ae};H&&a&&typeof K=="function"&&K.length!=1&&(M=H=!1);var J=this.__chain__,re=!!this.__actions__.length,le=_&&!J,Ce=M&&!re;if(!_&&H){w=Ce?w:new ke(this);var ae=t.apply(w,S);return ae.__actions__.push({func:$0,args:[Z],thisArg:i}),new rn(ae,J)}return le&&Ce?t.apply(this,S):(ae=this.thru(Z),le?u?ae.value()[0]:ae.value():ae)})}),Ut(["pop","push","shift","sort","splice","unshift"],function(t){var r=ji[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var _=this.value();return r.apply(_e(_)?_:[],h)}return this[a](function(w){return r.apply(_e(w)?w:[],h)})}}),Mn(ke.prototype,function(t,r){var a=p[r];if(a){var u=a.name+"";Be.call(c1,u)||(c1[u]=[]),c1[u].push({name:r,func:a})}}),c1[m0(i,P).name]=[{name:"wrapper",func:i}],ke.prototype.clone=fw,ke.prototype.reverse=dw,ke.prototype.value=hw,p.prototype.at=HL,p.prototype.chain=WL,p.prototype.commit=UL,p.prototype.next=ZL,p.prototype.plant=qL,p.prototype.reverse=GL,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=VL,p.prototype.first=p.prototype.head,O1&&(p.prototype[O1]=YL),p},a1=Ux();mr?((mr.exports=a1)._=a1,Uo._=a1):bt._=a1}).call(Pn)}(q1,q1.exports);var y2=q1.exports;const rt=I0(y2),b2=()=>{let e={};const n=()=>({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=fe.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 c=cn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=cn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=rt.merge({},e,i)},getProperties:()=>e}},v2=()=>{let e=new Map,n=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=ja(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,rt.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},C2=()=>{let e=new Map,n=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:n(o.id)}]:[],setProperties:(i,o)=>{e.set(o,rt.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},x2=()=>{let e={},n=()=>({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:n()}]}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=rt.merge({},e,o)},getProperties:()=>e}},w2=()=>{let e={},n=()=>({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:n()}],setProperties:i=>{e=rt.merge({},e,i)},getProperties:()=>e}},$2=()=>{let e={},n=()=>({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),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(v=>{const y=c*v;d.push({...o[0],r:y}),g.push({x:o[0].x,y:o[0].y+y+6,text:`${(v*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},L2=()=>{let e={};const n=()=>({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:c})=>{const f=[],d=[];if(o.length>1){let g=0;const v=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&v?g=v.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach($=>{g=Math.max(g,$.precision)});const y=o[1].x>o[0].x?o[0].x:o[1].x,b=[1,.786,.618,.5,.382,.236,0],C=o[0].y-o[1].y,L=s.points,k=L[0].value-L[1].value;b.forEach(x=>{const $=o[1].y+C*x,P=(L[1].value+k*x).toFixed(g.price);f.push({coordinates:[{x:o[0].x,y:$},{x:o[1].x,y:$}]}),d.push({x:y,y:$,text:`${P} (${(x*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},S2=()=>{let e={},n=()=>({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=ja(o[0],o[1])/Math.sqrt(24),c=o[1].x>o[0].x?0:1,f=fe.utils.getLinearSlopeIntercept(o[0],o[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:o[1].y>o[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=cn({x:o[0].x-l,y:o[0].y},o[0],d),v=cn({x:o[0].x-l,y:o[0].y-l},o[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{...v,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let b=o[0].x-l,C=o[0].y-l;for(let L=2;L<9;L++){const k=y[L-2].r+y[L-1].r;let x=0;switch(L%4){case 0:{x=d,b-=y[L-2].r;break}case 1:{x=d+Math.PI/2,C-=y[L-2].r;break}case 2:{x=d+Math.PI,b+=y[L-2].r;break}case 3:{x=d+Math.PI/2*3,C+=y[L-2].r;break}}const $=x+Math.PI/2,P=cn({x:b,y:C},o[0],d);y.push({...P,r:k,startAngle:x,endAngle:$})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:P0(o,s),styles:i()}]}return[]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},k2=()=>{let e={};const n=()=>({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 c=[];const f=[];if(o.length>1){const d=o[1].x>o[0].x?-38:4,g=o[1].y>o[0].y?-2:20,v=o[1].x-o[0].x,y=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(C=>{const L=o[1].x-v*C,k=o[1].y-y*C;l.push({coordinates:[{x:L,y:o[0].y},{x:L,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:k},{x:o[1].x,y:k}]}),c=c.concat(P0([o[0],{x:L,y:o[1].y}],s)),c=c.concat(P0([o[0],{x:o[1].x,y:k}],s)),f.unshift({x:o[0].x+d,y:k+10,text:`${C.toFixed(3)}`}),f.unshift({x:L-18,y:o[0].y+g,text:`${C.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},A2=()=>{let e={};const n=()=>({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:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let v=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?v=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(P=>{v=Math.max(v,P.precision)});const b=f.points,C=b[1].value-b[0].value,L=c[1].y-c[0].y,k=[0,.236,.382,.5,.618,.786,1],x=c[2].x>c[1].x?c[1].x:c[2].x;k.forEach($=>{const P=c[2].y+L*$,O=(b[2].value+C*$).toFixed(v.price);d.push({coordinates:[{x:c[1].x,y:P},{x:c[2].x,y:P}]}),g.push({x,y:P,text:`${O} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=rt.merge({},e,s)},getProperties:()=>e}},M2=()=>{let e={},n=()=>({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 c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*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}]}],g=[{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:n()},{type:"line",attrs:d,styles:o()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=rt.merge({},e,l)},getProperties:()=>e}},T2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},P2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},I2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},O2=()=>{let e={};const n=()=>({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,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=rt.merge({},e,o)},getProperties:()=>e}},E2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),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=[],c=[];const f=["A","B","C","D"],d=s.map((g,v)=>({...g,baseline:"bottom",text:`(${f[v]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:o()}]},setProperties:s=>{e=rt.merge({},e,s)},getProperties:()=>e}},D2=()=>{let e={},n=()=>({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:c})=>{const f=[],d=[],g=["X","A","B","C","D"],v=l.map((y,b)=>({...y,baseline:"bottom",text:`(${g[b]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.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]]}),d.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:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:v,styles:s()}]},setProperties:l=>{e=rt.merge({},e,l)},getProperties:()=>e}},R2=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const o=n.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:o})=>{n>=2&&i.push(o)},setProperties:n=>{e=rt.merge({},e,n)},getProperties:()=>e}},Qa="--klinecharts-pro-price-alert-line-color",Xa="#76808F";function B2(e){const n=e.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function Ja(e,n,i){if(typeof window>"u"||typeof window.getComputedStyle!="function")return i;const o=B2(e);if(!o)return i;const s=window.getComputedStyle(o).getPropertyValue(n).trim();return s||i}function Jn(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const O0=(e,n,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:n.paneId}).forEach(c=>{o.price=Math.max(o.price,c.precision)}),o},F2=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},es="#2ebd85",ts="#f6465d",z2="#2ebd85",N2="#f6465d",K2=e=>({style:"solid",size:1,color:e,dashedValue:[]}),ns=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),H2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),W2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),U2=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var Oe;const s=(Oe=o.points[0])==null?void 0:Oe.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,v=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*v:(s-g)*l.size*v,b=e.getSymbol(),C=(b==null?void 0:b.pricePrecision)??2,L=(b==null?void 0:b.volumePrecision)??4,k=Jn(l.size,L),x=`PNL ${y>=0?"+":""}${Jn(y,C)}`,$=l.side==="long"?es:ts,P=y>=0?z2:N2,O=W2($),T=H2(P),z=O.paddingLeft,W=O.paddingRight,U=fe.utils.calcTextWidth(k)+z+W,I=fe.utils.calcTextWidth(x)+z+W,R=16,V=-1,j=0,ee=R+I+V,te=ee+U+j;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(te,i.width),y:d},{x:i.width,y:d}]},styles:K2($),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:R,y:d,text:x,align:"left",baseline:"middle"},styles:T,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:ee,y:d,text:k,align:"left",baseline:"middle"},styles:O,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=n.extendData,f=O0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:ns("#888")};c.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,v=(s==null?void 0:s.isFromZero())??!1,y=Jn(l,f.price);return{type:"text",attrs:{x:v?0:o.width,y:g,text:y,align:v?"left":"right",baseline:"middle"},styles:ns("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function rs(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function Z2(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,o=rs(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=rs(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return o===void 0||s===void 0?null:{min:Math.min(o,s),max:Math.max(o,s)}}function _1(e,n){const i=Z2(e);return i?n>=i.min&&n<=i.max:!1}const E0="#f6465d",Y2=()=>({style:"dashed",size:1,color:E0,dashedValue:[4,4]}),G1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:E0,borderColor:E0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},q2={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},G2=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var P;const s=(P=o.points[0])==null?void 0:P.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!_1(e,s))return[];const c=l.timestamp,f=e.convertToPixel({timestamp:c,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${Jn(s,g)}`,b=G1.paddingLeft,C=G1.paddingRight,L=fe.utils.calcTextWidth(y)+b+C,k=16,x=2,$=k+L+x;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min($,i.width),y:f},{x:i.width,y:f}]},styles:Y2(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x:k,y:f,text:y,align:"left",baseline:"middle"},styles:G1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=O0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:G1};if(l===void 0||!Number.isFinite(l)||!_1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,v=(s==null?void 0:s.isFromZero())??!1,y=Jn(l,c.price);return{type:"text",attrs:{x:v?0:o.width,y:g,text:y,align:v?"left":"right",baseline:"middle"},styles:q2}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),is={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",alerts:"预警",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:"网格线显示",setting_sidebar_chart:"图表",setting_sidebar_candle:"蜡烛图",setting_sidebar_indicator:"指标",setting_sidebar_grid:"网格",setting_sidebar_x_axis:"X 轴",setting_sidebar_y_axis:"Y 轴",setting_sidebar_separator:"分隔线",setting_sidebar_crosshair:"十字光标",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",trading_display_price_alerts:"价格预警",alert_type_price_reach:"价格达到",alert_type_price_rise_to:"价格上涨至",alert_type_price_fall_to:"价格下跌至",alert_type_price_rise_pct_over:"价格涨幅超过",alert_type_price_fall_pct_over:"价格跌幅超过",alert_frequency_repeat:"重复提醒",alert_frequency_once:"仅提醒一次",alert_window_5m:"5分",alert_window_1h:"1小时",alert_window_4h:"4小时",alert_window_24h:"24小时",alert_add:"添加预警",alert_detail:"预警详情",alert_empty:"暂无预警",alert_delete:"删除",alert_optional:"可选",alert_submit:"提交",alert_submitting:"提交中...",alert_double_click_detail:"双击查看详情",alert_field_symbol:"标的",alert_field_type:"类型",alert_field_price:"价格",alert_field_window:"时间窗",alert_field_percent:"百分比",alert_field_frequency:"频率",alert_field_remark:"备注",alert_validation_price_gt_zero:"请输入大于 0 的价格",alert_validation_percent_range:"百分比需为 1-100 的整数",trade_buy:"买入",trade_sell:"卖出",order_id:"订单ID",order_price:"价格",order_quantity:"数量",order_fee:"手续费",order_realized_pnl:"已实现盈亏",order_filled_time:"成交时间",order_limit:"限价",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",alerts:"Alerts",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(Sentiment Index)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(Energy Index)",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",setting_sidebar_chart:"Chart",setting_sidebar_candle:"Candle",setting_sidebar_indicator:"Indicator",setting_sidebar_grid:"Grid",setting_sidebar_x_axis:"X-Axis",setting_sidebar_y_axis:"Y-Axis",setting_sidebar_separator:"Separator",setting_sidebar_crosshair:"Crosshair",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",trading_display_price_alerts:"Price alerts",alert_type_price_reach:"Price reaches",alert_type_price_rise_to:"Price rises to",alert_type_price_fall_to:"Price falls to",alert_type_price_rise_pct_over:"Price increase exceeds",alert_type_price_fall_pct_over:"Price decrease exceeds",alert_frequency_repeat:"Repeat reminder",alert_frequency_once:"Remind once",alert_window_5m:"5m",alert_window_1h:"1 hour",alert_window_4h:"4 hours",alert_window_24h:"24 hours",alert_add:"Add Alert",alert_detail:"Alert Detail",alert_empty:"No alerts",alert_delete:"Delete",alert_optional:"Optional",alert_submit:"Submit",alert_submitting:"Submitting...",alert_double_click_detail:"Double-click to view details",alert_field_symbol:"Symbol",alert_field_type:"Type",alert_field_price:"Price",alert_field_window:"Time Window",alert_field_percent:"Percent",alert_field_frequency:"Frequency",alert_field_remark:"Remark",alert_validation_price_gt_zero:"Please enter a price greater than 0",alert_validation_percent_range:"Percent must be an integer between 1 and 100",trade_buy:"Buy",trade_sell:"Sell",order_id:"Order ID",order_price:"Price",order_quantity:"Quantity",order_fee:"Fee",order_realized_pnl:"Realized PnL",order_filled_time:"Filled Time",order_limit:"Limit",restore_default:"Restore"}};function V2(e,n){is[e]=n}const m=(e,n)=>{var i;return((i=is[n])==null?void 0:i[e])??e},j2="#2ebd85",Q2="#f6465d";function os(e){return e?j2:Q2}const X2=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),J2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),e6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),as=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),t6=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var V,j;const s=(V=o.points[0])==null?void 0:V.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!c)return[];if(!_1(e,s))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const v=(g==null?void 0:g.volumePrecision)??4,y=((j=e.getLocale)==null?void 0:j.call(e))??"zh-CN",b=m("order_limit",y),C=Jn(l.size,v),L=os(l.isBuy),k=J2(L),x=e6(L),$=k.paddingLeft,P=k.paddingRight,O=fe.utils.calcTextWidth(b)+$+P,T=fe.utils.calcTextWidth(C)+$+P,z=16,W=-1,U=2,I=z+O+W,R=I+T+U;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(R,i.width),y:d},{x:i.width,y:d}]},styles:X2(L),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:z,y:d,text:b,align:"left",baseline:"middle"},styles:k,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:I,y:d,text:C,align:"left",baseline:"middle"},styles:x,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var C;const l=(C=n.points[0])==null?void 0:C.value,c=O0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:as("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!_1(e,l))return f;os(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const v=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,b=Jn(l,c.price);return{type:"text",attrs:{x:y?0:o.width,y:v,text:b,align:y?"left":"right",baseline:"middle"},styles:as("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),n6="#2ebd85",r6="#f6465d",i6=6,o6=14,ss=14,ls=18,a6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},s6=()=>({name:"hisOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const o=i.points[0],s=i.extendData;if(!o||!s||!Number.isFinite(o.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(T=>T.timestamp===o.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?n6:r6,v=s.isBuy?"B":"S",y=n[0].x,b=e.convertToPixel({timestamp:o.timestamp,value:f}).y??n[0].y,C=e.convertToPixel({timestamp:o.timestamp,value:d}).y??n[0].y,L=Math.max(0,s.stackIndex??0),k=Math.abs(C-b),x=Number.isFinite(k)&&k<ls?Math.max(0,ls-k)*.65:0,$=o6+x,P=s.isBuy?C+$+L*ss:b-$-L*ss;return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:P-.5,r:i6},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:P,text:v,align:"center",baseline:"middle"},styles:a6,ignoreEvent:!0}]},onMouseEnter:()=>!1,onMouseLeave:()=>!1,onRemoved:()=>!1,onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function jt(e,n){switch(e){case"price_reach":return m("alert_type_price_reach",n);case"price_rise_to":return m("alert_type_price_rise_to",n);case"price_fall_to":return m("alert_type_price_fall_to",n);case"price_rise_pct_over":return m("alert_type_price_rise_pct_over",n);default:return m("alert_type_price_fall_pct_over",n)}}function D0(e,n){return m(e==="repeat"?"alert_frequency_repeat":"alert_frequency_once",n)}function dr(e,n){switch(e){case"5m":return m("alert_window_5m",n);case"1h":return m("alert_window_1h",n);case"4h":return m("alert_window_4h",n);case"24h":return m("alert_window_24h",n);default:return e??"--"}}function l6(e,n){if(e.type==="price_reach")return`${jt(e.type,n)} ${e.price??"--"}`;if(e.type==="price_rise_to")return`${jt(e.type,n)} ${e.price??"--"}`;if(e.type==="price_fall_to")return`${jt(e.type,n)} ${e.price??"--"}`;const i=dr(e.window,n),o=`${e.percent??"--"}%`;return n==="zh-CN"?e.type==="price_rise_pct_over"?`价格${i}涨幅 ${o}`:`价格${i}跌幅 ${o}`:e.type==="price_rise_pct_over"?`Price ${i} increase ${o}`:`Price ${i} decrease ${o}`}function c6(e,n,i=2){const o=Number(e.price??0),s=Jn(Number.isFinite(o)?o:0,i);if(e.type==="price_reach")return`${jt(e.type,n)} ${s}`;if(e.type==="price_rise_to")return`${jt(e.type,n)} ${s}`;if(e.type==="price_fall_to")return`${jt(e.type,n)} ${s}`;const l=dr(e.window,n),c=`${e.percent??0}%`;return n==="zh-CN"?e.type==="price_rise_pct_over"?`价格${l}涨幅 ${c}`:`价格${l}跌幅 ${c}`:e.type==="price_rise_pct_over"?`Price ${l} increase ${c}`:`Price ${l} decrease ${c}`}const V1="klinecharts-pro-his-order-hover",m1="klinecharts-pro-alert-detail-open",u6=140,j1=new Map;function f6(e){const n=e.chart.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function d6(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(m1,{detail:e}))}function R0(e){const n=j1.get(e);n!=null&&(clearTimeout(n),j1.delete(e))}function h6(e,n){R0(n);const i=setTimeout(()=>{j1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},u6);j1.set(n,i)}function cs(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let Q1;function g6(e){Q1=e.onRemove}const p6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),_6=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var $,P,O;const s=($=o.points[0])==null?void 0:$.value,l=o.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!_1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=Ja(e,Qa,Xa),v=((P=e.getSymbol())==null?void 0:P.pricePrecision)??2,y=c6(c,((O=e.getLocale)==null?void 0:O.call(e))??"zh-CN",v),b=fe.utils.calcTextWidth(y),C=i.width,L=C-10,k=L-2,x=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:k,y:d}]},styles:p6(g),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:L,y:d-6},{x:C,y:d},{x:L,y:d+6}]},styles:{style:"fill",color:g},ignoreEvent:!1}];if(l!=null&&l.showInfo){const T=Math.max(120,b+28),z=Math.max(8,L-T-10);x.push({key:"alert-info-text",type:"text",attrs:{x:z+8,y:d,text:y,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:z+T-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return x},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var o;const n=(o=e.figure)==null?void 0:o.key;if(!cs(n))return!1;R0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return cs(n)&&h6(e.chart,e.overlay.id),!1},onRemoved:e=>(R0(e.overlay.id),!1),onSelected:e=>{var o;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((o=e.figure)==null?void 0:o.key)??"")==="alert-info-close"&&n.alert&&(Q1==null||Q1(n.alert)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="alert-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.alert&&d6({alert:n.alert,sourceContainer:f6(e)}),!1}}),m6=[b2(),R2(),v2(),C2(),w2(),x2(),$2(),L2(),S2(),k2(),A2(),M2(),T2(),P2(),I2(),O2(),E2(),D2(),U2(),G2(),t6(),s6(),_6()];class y6{constructor(n){Cn(this,"_apiKey");Cn(this,"_prevSymbolMarket");Cn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).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(n,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.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(n,i,o){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.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.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const b6=!1,v6=(e,n)=>e===n,B0=Symbol("solid-proxy"),C6=typeof Proxy=="function",x6=Symbol("solid-track"),X1={equals:v6};let us=ps;const In=1,J1=2,fs={owned:null,cleanups:null,context:null,owner:null},F0={};var Ne=null;let z0=null,w6=null,ze=null,Ct=null,On=null,ei=0;function ti(e,n){const i=ze,o=Ne,s=e.length===0,l=n===void 0?o:n,c=s?fs:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>un(()=>y1(c)));Ne=c,ze=null;try{return En(f,!0)}finally{ze=i,Ne=o}}function Q(e,n){n=n?Object.assign({},X1,n):X1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),gs(i,s));return[hs.bind(i),o]}function ds(e,n,i){const o=ni(e,n,!0,In);kr(o)}function Ie(e,n,i){const o=ni(e,n,!1,In);kr(o)}function Nt(e,n,i){us=P6;const o=ni(e,n,!1,In);(!i||!i.render)&&(o.user=!0),On?On.push(o):kr(o)}function Mt(e,n,i){i=i?Object.assign({},X1,i):X1;const o=ni(e,n,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,kr(o),hs.bind(o)}function $6(e){return e&&typeof e=="object"&&"then"in e}function L6(e,n,i){let o,s,l;typeof n=="function"?(o=e,s=n,l=i||{}):(o=!0,s=e,l=n||{});let c=null,f=F0,d=!1,g="initialValue"in l,v=typeof o=="function"&&Mt(o);const y=new Set,[b,C]=(l.storage||Q)(l.initialValue),[L,k]=Q(void 0),[x,$]=Q(void 0,{equals:!1}),[P,O]=Q(g?"ready":"unresolved");function T(R,V,j,ee){return c===R&&(c=null,ee!==void 0&&(g=!0),(R===f||V===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(ee,{value:V})),f=F0,z(V,j)),V}function z(R,V){En(()=>{V===void 0&&C(()=>R),O(V!==void 0?"errored":g?"ready":"unresolved"),k(V);for(const j of y.keys())j.decrement();y.clear()},!1)}function W(){const R=A6,V=b(),j=L();if(j!==void 0&&!c)throw j;return ze&&!ze.user&&R&&ds(()=>{x(),c&&(R.resolved||y.has(R)||(R.increment(),y.add(R)))}),V}function U(R=!0){if(R!==!1&&d)return;d=!1;const V=v?v():o;if(V==null||V===!1){T(c,un(b));return}let j;const ee=f!==F0?f:un(()=>{try{return s(V,{value:b(),refetching:R})}catch(te){j=te}});if(j!==void 0){T(c,void 0,oi(j),V);return}else if(!$6(ee))return T(c,ee,void 0,V),ee;return c=ee,"v"in ee?(ee.s===1?T(c,ee.v,void 0,V):T(c,void 0,oi(ee.v),V),ee):(d=!0,queueMicrotask(()=>d=!1),En(()=>{O(g?"refreshing":"pending"),$()},!1),ee.then(te=>T(ee,te,void 0,V),te=>T(ee,void 0,oi(te),V)))}Object.defineProperties(W,{state:{get:()=>P()},error:{get:()=>L()},loading:{get(){const R=P();return R==="pending"||R==="refreshing"}},latest:{get(){if(!g)return W();const R=L();if(R&&!c)throw R;return b()}}});let I=Ne;return v?ds(()=>(I=Ne,U(!1))):U(!1),[W,{refetch:R=>S6(I,()=>U(R)),mutate:C}]}function un(e){if(ze===null)return e();const n=ze;ze=null;try{return e()}finally{ze=n}}function N0(e){Nt(()=>un(e))}function Sr(e){return Ne===null||(Ne.cleanups===null?Ne.cleanups=[e]:Ne.cleanups.push(e)),e}function S6(e,n){const i=Ne,o=ze;Ne=e,ze=null;try{return En(n,!0)}catch(s){K0(s)}finally{Ne=i,ze=o}}function k6(e){const n=ze,i=Ne;return Promise.resolve().then(()=>{ze=n,Ne=i;let o;return En(e,!1),ze=Ne=null,o?o.done:void 0})}let A6;function hs(){if(this.sources&&this.state)if(this.state===In)kr(this);else{const e=Ct;Ct=null,En(()=>ii(this),!1),Ct=e}if(ze){const e=this.observers?this.observers.length:0;ze.sources?(ze.sources.push(this),ze.sourceSlots.push(e)):(ze.sources=[this],ze.sourceSlots=[e]),this.observers?(this.observers.push(ze),this.observerSlots.push(ze.sources.length-1)):(this.observers=[ze],this.observerSlots=[ze.sources.length-1])}return this.value}function gs(e,n,i){let o=e.value;return(!e.comparator||!e.comparator(o,n))&&(e.value=n,e.observers&&e.observers.length&&En(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],c=z0&&z0.running;c&&z0.disposed.has(l),(c?!l.tState:!l.state)&&(l.pure?Ct.push(l):On.push(l),l.observers&&_s(l)),c||(l.state=In)}if(Ct.length>1e6)throw Ct=[],new Error},!1)),n}function kr(e){if(!e.fn)return;y1(e);const n=ei;M6(e,e.value,n)}function M6(e,n,i){let o;const s=Ne,l=ze;ze=Ne=e;try{o=e.fn(n)}catch(c){return e.pure&&(e.state=In,e.owned&&e.owned.forEach(y1),e.owned=null),e.updatedAt=i+1,K0(c)}finally{ze=l,Ne=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?gs(e,o):e.value=o,e.updatedAt=i)}function ni(e,n,i,o=In,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:Ne,context:Ne?Ne.context:null,pure:i};return Ne===null||Ne!==fs&&(Ne.owned?Ne.owned.push(l):Ne.owned=[l]),l}function ri(e){if(e.state===0)return;if(e.state===J1)return ii(e);if(e.suspense&&un(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ei);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===In)kr(e);else if(e.state===J1){const o=Ct;Ct=null,En(()=>ii(e,n[0]),!1),Ct=o}}function En(e,n){if(Ct)return e();let i=!1;n||(Ct=[]),On?i=!0:On=[],ei++;try{const o=e();return T6(i),o}catch(o){i||(On=null),Ct=null,K0(o)}}function T6(e){if(Ct&&(ps(Ct),Ct=null),e)return;const n=On;On=null,n.length&&En(()=>us(n),!1)}function ps(e){for(let n=0;n<e.length;n++)ri(e[n])}function P6(e){let n,i=0;for(n=0;n<e.length;n++){const o=e[n];o.user?e[i++]=o:ri(o)}for(n=0;n<i;n++)ri(e[n])}function ii(e,n){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===In?o!==n&&(!o.updatedAt||o.updatedAt<ei)&&ri(o):s===J1&&ii(o,n)}}}function _s(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=J1,i.pure?Ct.push(i):On.push(i),i.observers&&_s(i))}}function y1(e){let n;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(),c=i.observerSlots.pop();o<s.length&&(l.sourceSlots[c]=o,s[o]=l,i.observerSlots[o]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)y1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)y1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function oi(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function K0(e,n=Ne){throw oi(e)}const I6=Symbol("fallback");function ms(e){for(let n=0;n<e.length;n++)e[n]()}function O6(e,n,i={}){let o=[],s=[],l=[],c=0,f=n.length>1?[]:null;return Sr(()=>ms(l)),()=>{let d=e()||[],g=d.length,v,y;return d[x6],un(()=>{let C,L,k,x,$,P,O,T,z;if(g===0)c!==0&&(ms(l),l=[],o=[],s=[],c=0,f&&(f=[])),i.fallback&&(o=[I6],s[0]=ti(W=>(l[0]=W,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)o[y]=d[y],s[y]=ti(b);c=g}else{for(k=new Array(g),x=new Array(g),f&&($=new Array(g)),P=0,O=Math.min(c,g);P<O&&o[P]===d[P];P++);for(O=c-1,T=g-1;O>=P&&T>=P&&o[O]===d[T];O--,T--)k[T]=s[O],x[T]=l[O],f&&($[T]=f[O]);for(C=new Map,L=new Array(T+1),y=T;y>=P;y--)z=d[y],v=C.get(z),L[y]=v===void 0?-1:v,C.set(z,y);for(v=P;v<=O;v++)z=o[v],y=C.get(z),y!==void 0&&y!==-1?(k[y]=s[v],x[y]=l[v],f&&($[y]=f[v]),y=L[y],C.set(z,y)):l[v]();for(y=P;y<g;y++)y in k?(s[y]=k[y],l[y]=x[y],f&&(f[y]=$[y],f[y](y))):s[y]=ti(b);s=s.slice(0,c=g),o=d.slice(0)}return s});function b(C){if(l[y]=C,f){const[L,k]=Q(y);return f[y]=k,n(d[y],L)}return n(d[y])}}}function q(e,n){return un(()=>e(n||{}))}function ai(){return!0}const E6={get(e,n,i){return n===B0?i:e.get(n)},has(e,n){return n===B0?!0:e.has(n)},set:ai,deleteProperty:ai,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:ai,deleteProperty:ai}},ownKeys(e){return e.keys()}};function H0(e){return(e=typeof e=="function"?e():e)?e:{}}function D6(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function ys(...e){let n=!1;for(let c=0;c<e.length;c++){const f=e[c];n=n||!!f&&B0 in f,e[c]=typeof f=="function"?(n=!0,Mt(f)):f}if(C6&&n)return new Proxy({get(c){for(let f=e.length-1;f>=0;f--){const d=H0(e[f])[c];if(d!==void 0)return d}},has(c){for(let f=e.length-1;f>=0;f--)if(c in H0(e[f]))return!0;return!1},keys(){const c=[];for(let f=0;f<e.length;f++)c.push(...Object.keys(H0(e[f])));return[...new Set(c)]}},E6);const i={},o=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const v=d[g];if(v==="__proto__"||v==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,v);if(!o[v])o[v]=y.get?{enumerable:!0,configurable:!0,get:D6.bind(i[v]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const b=i[v];b&&(y.get?b.push(y.get.bind(f)):y.value!==void 0&&b.push(()=>y.value))}}}const s={},l=Object.keys(o);for(let c=l.length-1;c>=0;c--){const f=l[c],d=o[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const R6=e=>`Stale read from <${e}>.`;function bs(e){const n="fallback"in e&&{fallback:()=>e.fallback};return Mt(O6(()=>e.each,e.children,n||void 0))}function Ee(e){const n=e.keyed,i=Mt(()=>e.when,void 0,void 0),o=n?i:Mt(i,void 0,{equals:(s,l)=>!s==!l});return Mt(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?un(()=>l(n?s:()=>{if(!un(o))throw R6("Show");return i()})):l}return e.fallback},void 0,void 0)}const Ye=e=>Mt(()=>e());function B6(e,n,i){let o=i.length,s=n.length,l=o,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const v=l<o?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],v)}else if(l===f)for(;c<s;)(!g||!g.has(n[c]))&&n[c].remove(),c++;else if(n[c]===i[l-1]&&i[f]===n[s-1]){const v=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],v),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const v=g.get(n[c]);if(v!=null)if(f<v&&v<l){let y=c,b=1,C;for(;++y<s&&y<l&&!((C=g.get(n[y]))==null||C!==v+b);)b++;if(b>v-f){const L=n[c];for(;f<v;)e.insertBefore(i[f++],L)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const vs="_$DX_DELEGATE";function F6(e,n,i,o={}){let s;return ti(l=>{s=l,n===document?e():B(n,e(),n.firstChild?null:void 0,i)},o.owner),()=>{s(),n.textContent=""}}function Y(e,n,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},c=n?()=>un(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return c.cloneNode=c,c}function Et(e,n=window.document){const i=n[vs]||(n[vs]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),n.addEventListener(l,z6))}}function tt(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Kt(e,n){n==null?e.removeAttribute("class"):e.className=n}function xn(e,n,i,o){if(o)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function je(e,n,i){if(!n)return i?tt(e,"style"):n;const o=e.style;if(typeof n=="string")return o.cssText=n;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&o.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Ar(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function si(e,n,i){return un(()=>e(n,i))}function B(e,n,i,o){if(i!==void 0&&!o&&(o=[]),typeof n!="function")return li(e,n,o,i);Ie(s=>li(e,n(),s,i),o)}function z6(e){let n=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(o)}function li(e,n,i,o,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=o!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=Mr(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=Mr(e,i,o);else{if(l==="function")return Ie(()=>{let f=n();for(;typeof f=="function";)f=f();i=li(e,f,i,o)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(W0(f,n,i,s))return Ie(()=>i=li(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=Mr(e,i,o),c)return i}else d?i.length===0?Cs(e,f,o):B6(e,i,f):(i&&Mr(e),Cs(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=Mr(e,i,o,n);Mr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function W0(e,n,i,o){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=W0(e,f,d)||s;else if(g==="function")if(o){for(;typeof f=="function";)f=f();s=W0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const v=String(f);d&&d.nodeType===3&&d.data===v?e.push(d):e.push(document.createTextNode(v))}}return s}function Cs(e,n,i=null){for(let o=0,s=n.length;o<s;o++)e.insertBefore(n[o],i)}function Mr(e,n,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function N6(){this.__data__=[],this.size=0}var K6=N6;function H6(e,n){return e===n||e!==e&&n!==n}var xs=H6,W6=xs;function U6(e,n){for(var i=e.length;i--;)if(W6(e[i][0],n))return i;return-1}var ci=U6,Z6=ci,Y6=Array.prototype,q6=Y6.splice;function G6(e){var n=this.__data__,i=Z6(n,e);if(i<0)return!1;var o=n.length-1;return i==o?n.pop():q6.call(n,i,1),--this.size,!0}var V6=G6,j6=ci;function Q6(e){var n=this.__data__,i=j6(n,e);return i<0?void 0:n[i][1]}var X6=Q6,J6=ci;function e3(e){return J6(this.__data__,e)>-1}var t3=e3,n3=ci;function r3(e,n){var i=this.__data__,o=n3(i,e);return o<0?(++this.size,i.push([e,n])):i[o][1]=n,this}var i3=r3,o3=K6,a3=V6,s3=X6,l3=t3,c3=i3;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Tr.prototype.clear=o3,Tr.prototype.delete=a3,Tr.prototype.get=s3,Tr.prototype.has=l3,Tr.prototype.set=c3;var ui=Tr,u3=ui;function f3(){this.__data__=new u3,this.size=0}var d3=f3;function h3(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var g3=h3;function p3(e){return this.__data__.get(e)}var _3=p3;function m3(e){return this.__data__.has(e)}var y3=m3,b3=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,ws=b3,v3=ws,C3=typeof self=="object"&&self&&self.Object===Object&&self,x3=v3||C3||Function("return this")(),wn=x3,w3=wn,$3=w3.Symbol,fi=$3,$s=fi,Ls=Object.prototype,L3=Ls.hasOwnProperty,S3=Ls.toString,b1=$s?$s.toStringTag:void 0;function k3(e){var n=L3.call(e,b1),i=e[b1];try{e[b1]=void 0;var o=!0}catch{}var s=S3.call(e);return o&&(n?e[b1]=i:delete e[b1]),s}var A3=k3,M3=Object.prototype,T3=M3.toString;function P3(e){return T3.call(e)}var I3=P3,Ss=fi,O3=A3,E3=I3,D3="[object Null]",R3="[object Undefined]",ks=Ss?Ss.toStringTag:void 0;function B3(e){return e==null?e===void 0?R3:D3:ks&&ks in Object(e)?O3(e):E3(e)}var v1=B3;function F3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Pr=F3,z3=v1,N3=Pr,K3="[object AsyncFunction]",H3="[object Function]",W3="[object GeneratorFunction]",U3="[object Proxy]";function Z3(e){if(!N3(e))return!1;var n=z3(e);return n==H3||n==W3||n==K3||n==U3}var As=Z3,Y3=wn,q3=Y3["__core-js_shared__"],G3=q3,U0=G3,Ms=function(){var e=/[^.]+$/.exec(U0&&U0.keys&&U0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function V3(e){return!!Ms&&Ms in e}var j3=V3,Q3=Function.prototype,X3=Q3.toString;function J3(e){if(e!=null){try{return X3.call(e)}catch{}try{return e+""}catch{}}return""}var Ts=J3,e8=As,t8=j3,n8=Pr,r8=Ts,i8=/[\\^$.*+?()[\]{}|]/g,o8=/^\[object .+?Constructor\]$/,a8=Function.prototype,s8=Object.prototype,l8=a8.toString,c8=s8.hasOwnProperty,u8=RegExp("^"+l8.call(c8).replace(i8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f8(e){if(!n8(e)||t8(e))return!1;var n=e8(e)?u8:o8;return n.test(r8(e))}var d8=f8;function h8(e,n){return e==null?void 0:e[n]}var g8=h8,p8=d8,_8=g8;function m8(e,n){var i=_8(e,n);return p8(i)?i:void 0}var hr=m8,y8=hr,b8=wn,v8=y8(b8,"Map"),Z0=v8,C8=hr,x8=C8(Object,"create"),di=x8,Ps=di;function w8(){this.__data__=Ps?Ps(null):{},this.size=0}var $8=w8;function L8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var S8=L8,k8=di,A8="__lodash_hash_undefined__",M8=Object.prototype,T8=M8.hasOwnProperty;function P8(e){var n=this.__data__;if(k8){var i=n[e];return i===A8?void 0:i}return T8.call(n,e)?n[e]:void 0}var I8=P8,O8=di,E8=Object.prototype,D8=E8.hasOwnProperty;function R8(e){var n=this.__data__;return O8?n[e]!==void 0:D8.call(n,e)}var B8=R8,F8=di,z8="__lodash_hash_undefined__";function N8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=F8&&n===void 0?z8:n,this}var K8=N8,H8=$8,W8=S8,U8=I8,Z8=B8,Y8=K8;function Ir(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Ir.prototype.clear=H8,Ir.prototype.delete=W8,Ir.prototype.get=U8,Ir.prototype.has=Z8,Ir.prototype.set=Y8;var q8=Ir,Is=q8,G8=ui,V8=Z0;function j8(){this.size=0,this.__data__={hash:new Is,map:new(V8||G8),string:new Is}}var Q8=j8;function X8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var J8=X8,e7=J8;function t7(e,n){var i=e.__data__;return e7(n)?i[typeof n=="string"?"string":"hash"]:i.map}var hi=t7,n7=hi;function r7(e){var n=n7(this,e).delete(e);return this.size-=n?1:0,n}var i7=r7,o7=hi;function a7(e){return o7(this,e).get(e)}var s7=a7,l7=hi;function c7(e){return l7(this,e).has(e)}var u7=c7,f7=hi;function d7(e,n){var i=f7(this,e),o=i.size;return i.set(e,n),this.size+=i.size==o?0:1,this}var h7=d7,g7=Q8,p7=i7,_7=s7,m7=u7,y7=h7;function Or(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Or.prototype.clear=g7,Or.prototype.delete=p7,Or.prototype.get=_7,Or.prototype.has=m7,Or.prototype.set=y7;var Os=Or,b7=ui,v7=Z0,C7=Os,x7=200;function w7(e,n){var i=this.__data__;if(i instanceof b7){var o=i.__data__;if(!v7||o.length<x7-1)return o.push([e,n]),this.size=++i.size,this;i=this.__data__=new C7(o)}return i.set(e,n),this.size=i.size,this}var $7=w7,L7=ui,S7=d3,k7=g3,A7=_3,M7=y3,T7=$7;function Er(e){var n=this.__data__=new L7(e);this.size=n.size}Er.prototype.clear=S7,Er.prototype.delete=k7,Er.prototype.get=A7,Er.prototype.has=M7,Er.prototype.set=T7;var P7=Er;function I7(e,n){for(var i=-1,o=e==null?0:e.length;++i<o&&n(e[i],i,e)!==!1;);return e}var O7=I7,E7=hr,D7=function(){try{var e=E7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),R7=D7,Es=R7;function B7(e,n,i){n=="__proto__"&&Es?Es(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var Ds=B7,F7=Ds,z7=xs,N7=Object.prototype,K7=N7.hasOwnProperty;function H7(e,n,i){var o=e[n];(!(K7.call(e,n)&&z7(o,i))||i===void 0&&!(n in e))&&F7(e,n,i)}var Y0=H7,W7=Y0,U7=Ds;function Z7(e,n,i,o){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=o?o(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?U7(i,f,d):W7(i,f,d)}return i}var gi=Z7;function Y7(e,n){for(var i=-1,o=Array(e);++i<e;)o[i]=n(i);return o}var q7=Y7;function G7(e){return e!=null&&typeof e=="object"}var Dr=G7,V7=v1,j7=Dr,Q7="[object Arguments]";function X7(e){return j7(e)&&V7(e)==Q7}var J7=X7,Rs=J7,eu=Dr,Bs=Object.prototype,tu=Bs.hasOwnProperty,nu=Bs.propertyIsEnumerable,ru=Rs(function(){return arguments}())?Rs:function(e){return eu(e)&&tu.call(e,"callee")&&!nu.call(e,"callee")},iu=ru,ou=Array.isArray,Rr=ou,pi={exports:{}};function au(){return!1}var su=au;pi.exports,function(e,n){var i=wn,o=su,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||o;e.exports=g}(pi,pi.exports);var Fs=pi.exports,lu=9007199254740991,cu=/^(?:0|[1-9]\d*)$/;function uu(e,n){var i=typeof e;return n=n??lu,!!n&&(i=="number"||i!="symbol"&&cu.test(e))&&e>-1&&e%1==0&&e<n}var zs=uu,fu=9007199254740991;function du(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fu}var Ns=du,hu=v1,gu=Ns,pu=Dr,_u="[object Arguments]",mu="[object Array]",yu="[object Boolean]",bu="[object Date]",vu="[object Error]",Cu="[object Function]",xu="[object Map]",wu="[object Number]",$u="[object Object]",Lu="[object RegExp]",Su="[object Set]",ku="[object String]",Au="[object WeakMap]",Mu="[object ArrayBuffer]",Tu="[object DataView]",Pu="[object Float32Array]",Iu="[object Float64Array]",Ou="[object Int8Array]",Eu="[object Int16Array]",Du="[object Int32Array]",Ru="[object Uint8Array]",Bu="[object Uint8ClampedArray]",Fu="[object Uint16Array]",zu="[object Uint32Array]",Ue={};Ue[Pu]=Ue[Iu]=Ue[Ou]=Ue[Eu]=Ue[Du]=Ue[Ru]=Ue[Bu]=Ue[Fu]=Ue[zu]=!0,Ue[_u]=Ue[mu]=Ue[Mu]=Ue[yu]=Ue[Tu]=Ue[bu]=Ue[vu]=Ue[Cu]=Ue[xu]=Ue[wu]=Ue[$u]=Ue[Lu]=Ue[Su]=Ue[ku]=Ue[Au]=!1;function Nu(e){return pu(e)&&gu(e.length)&&!!Ue[hu(e)]}var Ku=Nu;function Hu(e){return function(n){return e(n)}}var q0=Hu,_i={exports:{}};_i.exports,function(e,n){var i=ws,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(_i,_i.exports);var G0=_i.exports,Wu=Ku,Uu=q0,Ks=G0,Hs=Ks&&Ks.isTypedArray,Zu=Hs?Uu(Hs):Wu,Yu=Zu,qu=q7,Gu=iu,Vu=Rr,ju=Fs,Qu=zs,Xu=Yu,Ju=Object.prototype,e4=Ju.hasOwnProperty;function t4(e,n){var i=Vu(e),o=!i&&Gu(e),s=!i&&!o&&ju(e),l=!i&&!o&&!s&&Xu(e),c=i||o||s||l,f=c?qu(e.length,String):[],d=f.length;for(var g in e)(n||e4.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Qu(g,d)))&&f.push(g);return f}var Ws=t4,n4=Object.prototype;function r4(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||n4;return e===i}var V0=r4;function i4(e,n){return function(i){return e(n(i))}}var Us=i4,o4=Us,a4=o4(Object.keys,Object),s4=a4,l4=V0,c4=s4,u4=Object.prototype,f4=u4.hasOwnProperty;function d4(e){if(!l4(e))return c4(e);var n=[];for(var i in Object(e))f4.call(e,i)&&i!="constructor"&&n.push(i);return n}var h4=d4,g4=As,p4=Ns;function _4(e){return e!=null&&p4(e.length)&&!g4(e)}var Zs=_4,m4=Ws,y4=h4,b4=Zs;function v4(e){return b4(e)?m4(e):y4(e)}var j0=v4,C4=gi,x4=j0;function w4(e,n){return e&&C4(n,x4(n),e)}var $4=w4;function L4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var S4=L4,k4=Pr,A4=V0,M4=S4,T4=Object.prototype,P4=T4.hasOwnProperty;function I4(e){if(!k4(e))return M4(e);var n=A4(e),i=[];for(var o in e)o=="constructor"&&(n||!P4.call(e,o))||i.push(o);return i}var O4=I4,E4=Ws,D4=O4,R4=Zs;function B4(e){return R4(e)?E4(e,!0):D4(e)}var Q0=B4,F4=gi,z4=Q0;function N4(e,n){return e&&F4(n,z4(n),e)}var K4=N4,mi={exports:{}};mi.exports,function(e,n){var i=wn,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,v){if(v)return g.slice();var y=g.length,b=f?f(y):new g.constructor(y);return g.copy(b),b}e.exports=d}(mi,mi.exports);var H4=mi.exports;function W4(e,n){var i=-1,o=e.length;for(n||(n=Array(o));++i<o;)n[i]=e[i];return n}var U4=W4;function Z4(e,n){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var Y4=Z4;function q4(){return[]}var Ys=q4,G4=Y4,V4=Ys,j4=Object.prototype,Q4=j4.propertyIsEnumerable,qs=Object.getOwnPropertySymbols,X4=qs?function(e){return e==null?[]:(e=Object(e),G4(qs(e),function(n){return Q4.call(e,n)}))}:V4,X0=X4,J4=gi,ef=X0;function tf(e,n){return J4(e,ef(e),n)}var nf=tf;function rf(e,n){for(var i=-1,o=n.length,s=e.length;++i<o;)e[s+i]=n[i];return e}var Gs=rf,of=Us,af=of(Object.getPrototypeOf,Object),Vs=af,sf=Gs,lf=Vs,cf=X0,uf=Ys,ff=Object.getOwnPropertySymbols,df=ff?function(e){for(var n=[];e;)sf(n,cf(e)),e=lf(e);return n}:uf,js=df,hf=gi,gf=js;function pf(e,n){return hf(e,gf(e),n)}var _f=pf,mf=Gs,yf=Rr;function bf(e,n,i){var o=n(e);return yf(e)?o:mf(o,i(e))}var Qs=bf,vf=Qs,Cf=X0,xf=j0;function wf(e){return vf(e,xf,Cf)}var $f=wf,Lf=Qs,Sf=js,kf=Q0;function Af(e){return Lf(e,kf,Sf)}var Mf=Af,Tf=hr,Pf=wn,If=Tf(Pf,"DataView"),Of=If,Ef=hr,Df=wn,Rf=Ef(Df,"Promise"),Bf=Rf,Ff=hr,zf=wn,Nf=Ff(zf,"Set"),Kf=Nf,Hf=hr,Wf=wn,Uf=Hf(Wf,"WeakMap"),Zf=Uf,J0=Of,eo=Z0,to=Bf,no=Kf,ro=Zf,Xs=v1,Br=Ts,Js="[object Map]",Yf="[object Object]",el="[object Promise]",tl="[object Set]",nl="[object WeakMap]",rl="[object DataView]",qf=Br(J0),Gf=Br(eo),Vf=Br(to),jf=Br(no),Qf=Br(ro),gr=Xs;(J0&&gr(new J0(new ArrayBuffer(1)))!=rl||eo&&gr(new eo)!=Js||to&&gr(to.resolve())!=el||no&&gr(new no)!=tl||ro&&gr(new ro)!=nl)&&(gr=function(e){var n=Xs(e),i=n==Yf?e.constructor:void 0,o=i?Br(i):"";if(o)switch(o){case qf:return rl;case Gf:return Js;case Vf:return el;case jf:return tl;case Qf:return nl}return n});var io=gr,Xf=Object.prototype,Jf=Xf.hasOwnProperty;function ed(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Jf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var td=ed,nd=wn,rd=nd.Uint8Array,id=rd,il=id;function od(e){var n=new e.constructor(e.byteLength);return new il(n).set(new il(e)),n}var oo=od,ad=oo;function sd(e,n){var i=n?ad(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var ld=sd,cd=/\w*$/;function ud(e){var n=new e.constructor(e.source,cd.exec(e));return n.lastIndex=e.lastIndex,n}var fd=ud,ol=fi,al=ol?ol.prototype:void 0,sl=al?al.valueOf:void 0;function dd(e){return sl?Object(sl.call(e)):{}}var hd=dd,gd=oo;function pd(e,n){var i=n?gd(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var _d=pd,md=oo,yd=ld,bd=fd,vd=hd,Cd=_d,xd="[object Boolean]",wd="[object Date]",$d="[object Map]",Ld="[object Number]",Sd="[object RegExp]",kd="[object Set]",Ad="[object String]",Md="[object Symbol]",Td="[object ArrayBuffer]",Pd="[object DataView]",Id="[object Float32Array]",Od="[object Float64Array]",Ed="[object Int8Array]",Dd="[object Int16Array]",Rd="[object Int32Array]",Bd="[object Uint8Array]",Fd="[object Uint8ClampedArray]",zd="[object Uint16Array]",Nd="[object Uint32Array]";function Kd(e,n,i){var o=e.constructor;switch(n){case Td:return md(e);case xd:case wd:return new o(+e);case Pd:return yd(e,i);case Id:case Od:case Ed:case Dd:case Rd:case Bd:case Fd:case zd:case Nd:return Cd(e,i);case $d:return new o;case Ld:case Ad:return new o(e);case Sd:return bd(e);case kd:return new o;case Md:return vd(e)}}var Hd=Kd,Wd=Pr,ll=Object.create,Ud=function(){function e(){}return function(n){if(!Wd(n))return{};if(ll)return ll(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),Zd=Ud,Yd=Zd,qd=Vs,Gd=V0;function Vd(e){return typeof e.constructor=="function"&&!Gd(e)?Yd(qd(e)):{}}var jd=Vd,Qd=io,Xd=Dr,Jd="[object Map]";function eh(e){return Xd(e)&&Qd(e)==Jd}var th=eh,nh=th,rh=q0,cl=G0,ul=cl&&cl.isMap,ih=ul?rh(ul):nh,oh=ih,ah=io,sh=Dr,lh="[object Set]";function ch(e){return sh(e)&&ah(e)==lh}var uh=ch,fh=uh,dh=q0,fl=G0,dl=fl&&fl.isSet,hh=dl?dh(dl):fh,gh=hh,ph=P7,_h=O7,mh=Y0,yh=$4,bh=K4,vh=H4,Ch=U4,xh=nf,wh=_f,$h=$f,Lh=Mf,Sh=io,kh=td,Ah=Hd,Mh=jd,Th=Rr,Ph=Fs,Ih=oh,Oh=Pr,Eh=gh,Dh=j0,Rh=Q0,Bh=1,Fh=2,zh=4,hl="[object Arguments]",Nh="[object Array]",Kh="[object Boolean]",Hh="[object Date]",Wh="[object Error]",gl="[object Function]",Uh="[object GeneratorFunction]",Zh="[object Map]",Yh="[object Number]",pl="[object Object]",qh="[object RegExp]",Gh="[object Set]",Vh="[object String]",jh="[object Symbol]",Qh="[object WeakMap]",Xh="[object ArrayBuffer]",Jh="[object DataView]",eg="[object Float32Array]",tg="[object Float64Array]",ng="[object Int8Array]",rg="[object Int16Array]",ig="[object Int32Array]",og="[object Uint8Array]",ag="[object Uint8ClampedArray]",sg="[object Uint16Array]",lg="[object Uint32Array]",He={};He[hl]=He[Nh]=He[Xh]=He[Jh]=He[Kh]=He[Hh]=He[eg]=He[tg]=He[ng]=He[rg]=He[ig]=He[Zh]=He[Yh]=He[pl]=He[qh]=He[Gh]=He[Vh]=He[jh]=He[og]=He[ag]=He[sg]=He[lg]=!0,He[Wh]=He[gl]=He[Qh]=!1;function yi(e,n,i,o,s,l){var c,f=n&Bh,d=n&Fh,g=n&zh;if(i&&(c=s?i(e,o,s,l):i(e)),c!==void 0)return c;if(!Oh(e))return e;var v=Th(e);if(v){if(c=kh(e),!f)return Ch(e,c)}else{var y=Sh(e),b=y==gl||y==Uh;if(Ph(e))return vh(e,f);if(y==pl||y==hl||b&&!s){if(c=d||b?{}:Mh(e),!f)return d?wh(e,bh(c,e)):xh(e,yh(c,e))}else{if(!He[y])return s?e:{};c=Ah(e,y,f)}}l||(l=new ph);var C=l.get(e);if(C)return C;l.set(e,c),Eh(e)?e.forEach(function(x){c.add(yi(x,n,i,x,e,l))}):Ih(e)&&e.forEach(function(x,$){c.set($,yi(x,n,i,$,e,l))});var L=g?d?Lh:$h:d?Rh:Dh,k=v?void 0:L(e);return _h(k||e,function(x,$){k&&($=x,x=e[$]),mh(c,$,yi(x,n,i,$,e,l))}),c}var cg=yi,ug=cg,fg=1,dg=4;function hg(e){return ug(e,fg|dg)}var gg=hg;const pg=I0(gg);var _g=v1,mg=Dr,yg="[object Symbol]";function bg(e){return typeof e=="symbol"||mg(e)&&_g(e)==yg}var ao=bg,vg=Rr,Cg=ao,xg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wg=/^\w*$/;function $g(e,n){if(vg(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Cg(e)?!0:wg.test(e)||!xg.test(e)||n!=null&&e in Object(n)}var Lg=$g,_l=Os,Sg="Expected a function";function so(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Sg);var i=function(){var o=arguments,s=n?n.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(so.Cache||_l),i}so.Cache=_l;var kg=so,Ag=kg,Mg=500;function Tg(e){var n=Ag(e,function(o){return i.size===Mg&&i.clear(),o}),i=n.cache;return n}var Pg=Tg,Ig=Pg,Og=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eg=/\\(\\)?/g,Dg=Ig(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Og,function(i,o,s,l){n.push(s?l.replace(Eg,"$1"):o||i)}),n}),Rg=Dg;function Bg(e,n){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=n(e[i],i,e);return s}var Fg=Bg,ml=fi,zg=Fg,Ng=Rr,Kg=ao,Hg=1/0,yl=ml?ml.prototype:void 0,bl=yl?yl.toString:void 0;function vl(e){if(typeof e=="string")return e;if(Ng(e))return zg(e,vl)+"";if(Kg(e))return bl?bl.call(e):"";var n=e+"";return n=="0"&&1/e==-Hg?"-0":n}var Wg=vl,Ug=Wg;function Zg(e){return e==null?"":Ug(e)}var Yg=Zg,qg=Rr,Gg=Lg,Vg=Rg,jg=Yg;function Qg(e,n){return qg(e)?e:Gg(e,n)?[e]:Vg(jg(e))}var Xg=Qg,Jg=ao,ep=1/0;function tp(e){if(typeof e=="string"||Jg(e))return e;var n=e+"";return n=="0"&&1/e==-ep?"-0":n}var np=tp,rp=Y0,ip=Xg,op=zs,Cl=Pr,ap=np;function sp(e,n,i,o){if(!Cl(e))return e;n=ip(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=ap(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var v=f[d];g=o?o(v,d,f):void 0,g===void 0&&(g=Cl(v)?v:op(n[s+1])?[]:{})}rp(f,d,g),f=f[d]}return e}var lp=sp,cp=lp;function up(e,n,i){return e==null?e:cp(e,n,i)}var fp=up;const C1=I0(fp);var dp=Y("<button>");const hp=e=>(()=>{var n=dp();return xn(n,"click",e.onClick,!0),B(n,()=>e.children),Ie(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=je(n,o,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Et(["click"]);var gp=Y('<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">'),pp=Y('<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">'),_p=Y("<div>"),mp=Y("<span class=label>");const yp=()=>gp(),bp=()=>pp(),xl=e=>{const[n,i]=Q(e.checked??!1);return Nt(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=_p();return o.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},B(o,(()=>{var s=Ye(()=>!!n());return()=>s()?q(yp,{}):q(bp,{})})(),null),B(o,(()=>{var s=Ye(()=>!!e.label);return()=>s()&&(()=>{var l=mp();return B(l,()=>e.label),l})()})(),null),Ie(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=je(o,l,s.e),c!==s.t&&Kt(o,s.t=c),s},{e:void 0,t:void 0}),o})()};Et(["click"]);var vp=Y("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const wl=()=>vp();var Cp=Y('<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 xp=()=>Cp();var wp=Y("<ul>"),$p=Y("<li>");const bi=e=>(()=>{var n=wp();return B(n,q(Ee,{get when(){return e.loading},get children(){return q(wl,{})}}),null),B(n,q(Ee,{get when(){var i;return Ye(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return q(xp,{})}}),null),B(n,q(Ee,{get when(){return e.children},get children(){return e.children}}),null),B(n,q(Ee,{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))??$p()})}}),null),Ie(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=je(n,o,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Fr=[];let Lp=0,vi=!1;function $l(e){if(e.key!=="Escape")return;const n=Fr[Fr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function Sp(){vi||(window.addEventListener("keydown",$l,!0),vi=!0)}function kp(){Fr.length===0&&vi&&(window.removeEventListener("keydown",$l,!0),vi=!1)}function Ap(e){const n=Lp++;return Fr.push({id:n,close:e}),Sp(),()=>{const i=Fr.findIndex(o=>o.id===n);i>=0&&Fr.splice(i,1),kp()}}var Mp=Y('<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>'),Tp=Y("<div class=button-container>");const $n=e=>{let n=null;N0(()=>{if(!e.onClose)return;const d=Ap(()=>{var g;(g=e.onClose)==null||g.call(e)});Sr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},o={};e.width!=null&&(o.width=`${e.width}px`,o["max-width"]=`${e.width}px`),e.height!=null&&(o.height=`${e.height}px`,o["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let v=d;for(;v;){const y=window.getComputedStyle(v);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&v.scrollHeight>v.clientHeight)return g>0?v.scrollTop+v.clientHeight<v.scrollHeight:v.scrollTop>0;v=v.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},c=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,v=n-g;n=g,s(d.target,v)||d.preventDefault()};return(()=>{var d=Mp(),g=d.firstChild,v=g.firstChild,y=v.firstChild,b=v.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),B(v,()=>e.title,y),xn(y,"click",e.onClose,!0),B(b,()=>e.children),B(g,(()=>{var C=Ye(()=>!!(e.buttons&&e.buttons.length>0));return()=>C()&&(()=>{var L=Tp();return B(L,()=>e.buttons.map(k=>q(hp,ys(k,{get children(){return k.children}})))),L})()})(),null),Ie(C=>{var L=`inner${e.height!=null?" inner--fixed-height":""}`,k=o;return L!==C.e&&Kt(g,C.e=L),C.t=je(g,k,C.t),C},{e:void 0,t:void 0}),d})()};Et(["click","touchstart","touchmove"]);var Pp=Y("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),Ip=Y("<div class=drop-down-container><ul>"),Op=Y("<li>");const x1=e=>{const[n,i]=Q(!1);return(()=>{var o=Pp(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",c=>{i(!1)}),o.$$click=c=>{i(f=>!f)},B(l,()=>e.value),B(o,(()=>{var c=Ye(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=Ip(),d=f.firstChild;return B(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var b=Op();return b.$$click=C=>{var L;C.stopPropagation(),e.value!==y&&((L=e.onSelected)==null||L.call(e,g)),i(!1)},B(b,y),b})()})),f})()})(),null),Ie(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=je(o,f,c.e),d!==c.t&&Kt(o,c.t=d),c},{e:void 0,t:void 0}),o})()};Et(["click"]);var Ep=Y("<span class=prefix>"),Dp=Y("<span class=suffix>"),Rp=Y("<div><input id=myInput class=value>");const[Bp,cD]=Q("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),Ll=e=>{const n=ys({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=Q("normal"),l=c=>{c&&c.focus()};return Nt(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=Rp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},B(c,q(Ee,{get when(){return n.prefix},get children(){var g=Ep();return B(g,()=>n.prefix),g}}),f),xn(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,b;const v=g.target.value;if("precision"in n){let C;const L=Math.max(0,Math.floor(n.precision));L<=0?C=new RegExp(/^[1-9]\d*$/):C=new RegExp("^\\d+\\.?\\d{0,"+L+"}$"),(v===""||C.test(v)&&+v>=n.min&&+v<=n.max)&&((y=n.onChange)==null||y.call(n,v===""?v:+v))}else(b=n.onChange)==null||b.call(n,v)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?si(d,f):i=f,B(c,q(Ee,{get when(){return n.suffix},get children(){var g=Dp();return B(g,()=>n.suffix),g}}),null),Ie(g=>{var v=n.style,y=`${Bp()}${n.class??""}`,b=o(),C=n.placeholder??"",L=n.focus===!0?n.focus:!1;return g.e=je(c,v,g.e),y!==g.t&&Kt(c,g.t=y),b!==g.a&&tt(c,"data-status",g.a=b),C!==g.o&&tt(f,"placeholder",g.o=C),L!==g.i&&(f.autofocus=g.i=L),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Ie(()=>f.value=n.value),c})()};Et(["click","keydown"]);var Fp=Y("<div><i class=thumb>");const zr=e=>(()=>{var n=Fp();return n.$$click=i=>{e.onChange&&e.onChange()},Ie(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=je(n,o,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Et(["click"]);const{min:zp,max:Np}=Math,pr=(e,n=0,i=1)=>zp(Np(n,e),i),lo=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=pr(e[n],0,255)):n===3&&(e[n]=pr(e[n],0,1));return e},Sl={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Sl[`[object ${e}]`]=e.toLowerCase();function $e(e){return Sl[Object.prototype.toString.call(e)]||"object"}const me=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):$e(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Nr=e=>{if(e.length<2)return null;const n=e.length-1;return $e(e[n])=="string"?e[n].toLowerCase():null},{PI:Ci,min:kl,max:Al}=Math,Qt=e=>Math.round(e*100)/100,co=e=>Math.round(e*100)/100,Dn=Ci*2,uo=Ci/3,Kp=Ci/180,Hp=180/Ci;function Ml(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const pe={format:{},autodetect:[]};let G=class{constructor(...n){const i=this;if($e(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let o=Nr(n),s=!1;if(!o){s=!0,pe.sorted||(pe.autodetect=pe.autodetect.sort((l,c)=>c.p-l.p),pe.sorted=!0);for(let l of pe.autodetect)if(o=l.test(...n),o)break}if(pe.format[o]){const l=pe.format[o].apply(null,s?n:n.slice(0,-1));i._rgb=lo(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return $e(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Wp="3.2.0",ge=(...e)=>new G(...e);ge.version=Wp;const Kr={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"},Up=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Zp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Tl=e=>{if(e.match(Up)){(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 n=parseInt(e,16),i=n>>16,o=n>>8&255,s=n&255;return[i,o,s,1]}if(e.match(Zp)){(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 n=parseInt(e,16),i=n>>24&255,o=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:xi}=Math,Pl=(...e)=>{let[n,i,o,s]=me(e,"rgba"),l=Nr(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=xi(n),i=xi(i),o=xi(o);let f="000000"+(n<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let d="0"+xi(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};G.prototype.name=function(){const e=Pl(this._rgb,"rgb");for(let n of Object.keys(Kr))if(Kr[n]===e)return n.toLowerCase();return e},pe.format.named=e=>{if(e=e.toLowerCase(),Kr[e])return Tl(Kr[e]);throw new Error("unknown color name: "+e)},pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&$e(e)==="string"&&Kr[e.toLowerCase()])return"named"}}),G.prototype.alpha=function(e,n=!1){return e!==void 0&&$e(e)==="number"?n?(this._rgb[3]=e,this):new G([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},G.prototype.clipped=function(){return this._rgb._clipped||!1};const Ln={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}},Yp=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 Rn(e){const n=Yp.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);Ln.labWhitePoint=e,Ln.Xn=n[0],Ln.Zn=n[1]}function w1(){return Ln.labWhitePoint}const fo=(...e)=>{e=me(e,"lab");const[n,i,o]=e,[s,l,c]=qp(n,i,o),[f,d,g]=Il(s,l,c);return[f,d,g,e.length>3?e[3]:1]},qp=(e,n,i)=>{const{kE:o,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=Ln,g=(e+16)/116,v=.002*n+g,y=g-.005*i,b=v*v*v,C=y*y*y,L=b>o?b:(116*v-16)/s,k=e>l?Math.pow((e+16)/116,3):e/s,x=C>o?C:(116*y-16)/s,$=L*c,P=k*f,O=x*d;return[$,P,O]},ho=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},Il=(e,n,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=Ln,v=f*o.m00+d*o.m10+g*o.m20,y=f*o.m01+d*o.m11+g*o.m21,b=f*o.m02+d*o.m12+g*o.m22,C=c.X*o.m00+c.Y*o.m10+c.Z*o.m20,L=c.X*o.m01+c.Y*o.m11+c.Z*o.m21,k=c.X*o.m02+c.Y*o.m12+c.Z*o.m22,x=(e*o.m00+n*o.m10+i*o.m20)*(C/v),$=(e*o.m01+n*o.m11+i*o.m21)*(L/y),P=(e*o.m02+n*o.m12+i*o.m22)*(k/b),O=x*s.m00+$*s.m10+P*s.m20,T=x*s.m01+$*s.m11+P*s.m21,z=x*s.m02+$*s.m12+P*s.m22,W=ho(O*l.m00+T*l.m10+z*l.m20),U=ho(O*l.m01+T*l.m11+z*l.m21),I=ho(O*l.m02+T*l.m12+z*l.m22);return[W*255,U*255,I*255]},go=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),[l,c,f]=Ol(n,i,o),[d,g,v]=Gp(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};function Gp(e,n,i){const{Xn:o,Yn:s,Zn:l,kE:c,kK:f}=Ln,d=e/o,g=n/s,v=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,b=g>c?Math.pow(g,1/3):(f*g+16)/116,C=v>c?Math.pow(v,1/3):(f*v+16)/116;return[116*b-16,500*(y-b),200*(b-C)]}function po(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const Ol=(e,n,i)=>{e=po(e/255),n=po(n/255),i=po(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:v,Cs:y}=Ln;let b=e*o.m00+n*o.m10+i*o.m20,C=e*o.m01+n*o.m11+i*o.m21,L=e*o.m02+n*o.m12+i*o.m22;const k=c*s.m00+f*s.m10+d*s.m20,x=c*s.m01+f*s.m11+d*s.m21,$=c*s.m02+f*s.m12+d*s.m22;let P=b*s.m00+C*s.m10+L*s.m20,O=b*s.m01+C*s.m11+L*s.m21,T=b*s.m02+C*s.m12+L*s.m22;return P*=k/g,O*=x/v,T*=$/y,b=P*l.m00+O*l.m10+T*l.m20,C=P*l.m01+O*l.m11+T*l.m21,L=P*l.m02+O*l.m12+T*l.m22,[b,C,L]};G.prototype.lab=function(){return go(this._rgb)},Object.assign(ge,{lab:(...e)=>new G(...e,"lab"),getLabWhitePoint:w1,setLabWhitePoint:Rn}),pe.format.lab=fo,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),$e(e)==="array"&&e.length===3)return"lab"}}),G.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=Ln.Kn*e,new G(i,"lab").alpha(n.alpha(),!0)},G.prototype.brighten=function(e=1){return this.darken(-e)},G.prototype.darker=G.prototype.darken,G.prototype.brighter=G.prototype.brighten,G.prototype.get=function(e){const[n,i]=e.split("."),o=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return o};const{pow:Vp}=Math,jp=1e-7,Qp=20;G.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&$e(e)==="number"){if(e===0)return new G([0,0,0,this._rgb[3]],"rgb");if(e===1)return new G([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=Qp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<jp||!o--?d:g>e?s(c,d):s(d,f)},l=(i>e?s(new G([0,0,0]),this):s(this,new G([255,255,255]))).rgb();return new G([...l,this._rgb[3]])}return Xp(...this._rgb.slice(0,3))};const Xp=(e,n,i)=>(e=_o(e),n=_o(n),i=_o(i),.2126*e+.7152*n+.0722*i),_o=e=>(e/=255,e<=.03928?e/12.92:Vp((e+.055)/1.055,2.4)),xt={},Hr=(e,n,i=.5,...o)=>{let s=o[0]||"lrgb";if(!xt[s]&&!o.length&&(s=Object.keys(xt)[0]),!xt[s])throw new Error(`interpolation mode ${s} is not defined`);return $e(e)!=="object"&&(e=new G(e)),$e(n)!=="object"&&(n=new G(n)),xt[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};G.prototype.mix=G.prototype.interpolate=function(e,n=.5,...i){return Hr(this,e,n,...i)},G.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new G([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:Jp,cos:e_}=Math,El=(...e)=>{let[n,i,o]=me(e,"lch");return isNaN(o)&&(o=0),o=o*Kp,[n,e_(o)*i,Jp(o)*i]},mo=(...e)=>{e=me(e,"lch");const[n,i,o]=e,[s,l,c]=El(n,i,o),[f,d,g]=fo(s,l,c);return[f,d,g,e.length>3?e[3]:1]},t_=(...e)=>{const n=Ml(me(e,"hcl"));return mo(...n)},{sqrt:n_,atan2:r_,round:i_}=Math,Dl=(...e)=>{const[n,i,o]=me(e,"lab"),s=n_(i*i+o*o);let l=(r_(o,i)*Hp+360)%360;return i_(s*1e4)===0&&(l=Number.NaN),[n,s,l]},yo=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),[l,c,f]=go(n,i,o),[d,g,v]=Dl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};G.prototype.lch=function(){return yo(this._rgb)},G.prototype.hcl=function(){return Ml(yo(this._rgb))},Object.assign(ge,{lch:(...e)=>new G(...e,"lch"),hcl:(...e)=>new G(...e,"hcl")}),pe.format.lch=mo,pe.format.hcl=t_,["lch","hcl"].forEach(e=>pe.autodetect.push({p:2,test:(...n)=>{if(n=me(n,e),$e(n)==="array"&&n.length===3)return e}})),G.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=Ln.Kn*e,i[1]<0&&(i[1]=0),new G(i,"lch").alpha(n.alpha(),!0)},G.prototype.desaturate=function(e=1){return this.saturate(-e)},G.prototype.set=function(e,n,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const c=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(c>-1){if($e(n)=="string")switch(n.charAt(0)){case"+":l[c]+=+n;break;case"-":l[c]+=+n;break;case"*":l[c]*=+n.substr(1);break;case"/":l[c]/=+n.substr(1);break;default:l[c]=+n}else if($e(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new G(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},G.prototype.tint=function(e=.5,...n){return Hr(this,"white",e,...n)},G.prototype.shade=function(e=.5,...n){return Hr(this,"black",e,...n)};const o_=(e,n,i)=>{const o=e._rgb,s=n._rgb;return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};xt.rgb=o_;const{sqrt:bo,pow:Wr}=Math,a_=(e,n,i)=>{const[o,s,l]=e._rgb,[c,f,d]=n._rgb;return new G(bo(Wr(o,2)*(1-i)+Wr(c,2)*i),bo(Wr(s,2)*(1-i)+Wr(f,2)*i),bo(Wr(l,2)*(1-i)+Wr(d,2)*i),"rgb")};xt.lrgb=a_;const s_=(e,n,i)=>{const o=e.lab(),s=n.lab();return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};xt.lab=s_;const Ur=(e,n,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=n.hsl()):o==="hsv"?(s=e.hsv(),l=n.hsv()):o==="hcg"?(s=e.hcg(),l=n.hcg()):o==="hsi"?(s=e.hsi(),l=n.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=n.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,v,y;(o.substr(0,1)==="h"||o==="oklch")&&([c,d,v]=s,[f,g,y]=l);let b,C,L,k;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?k=f-(c+360):f<c&&c-f>180?k=f+360-c:k=f-c,C=c+i*k):isNaN(c)?isNaN(f)?C=Number.NaN:(C=f,(v==1||v==0)&&o!="hsv"&&(b=g)):(C=c,(y==1||y==0)&&o!="hsv"&&(b=d)),b===void 0&&(b=d+i*(g-d)),L=v+i*(y-v),o==="oklch"?new G([L,b,C],o):new G([C,b,L],o)},Rl=(e,n,i)=>Ur(e,n,i,"lch");xt.lch=Rl,xt.hcl=Rl;const l_=e=>{if($e(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,o=e&255;return[n,i,o,1]}throw new Error("unknown num color: "+e)},c_=(...e)=>{const[n,i,o]=me(e,"rgb");return(n<<16)+(i<<8)+o};G.prototype.num=function(){return c_(this._rgb)},Object.assign(ge,{num:(...e)=>new G(...e,"num")}),pe.format.num=l_,pe.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&$e(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const u_=(e,n,i)=>{const o=e.num(),s=n.num();return new G(o+i*(s-o),"num")};xt.num=u_;const{floor:f_}=Math,d_=(...e)=>{e=me(e,"hcg");let[n,i,o]=e,s,l,c;o=o*255;const f=i*255;if(i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=f_(n),g=n-d,v=o*(1-i),y=v+f*(1-g),b=v+f*g,C=v+f;switch(d){case 0:[s,l,c]=[C,b,v];break;case 1:[s,l,c]=[y,C,v];break;case 2:[s,l,c]=[v,C,b];break;case 3:[s,l,c]=[v,y,C];break;case 4:[s,l,c]=[b,v,C];break;case 5:[s,l,c]=[C,v,y];break}}return[s,l,c,e.length>3?e[3]:1]},h_=(...e)=>{const[n,i,o]=me(e,"rgb"),s=kl(n,i,o),l=Al(n,i,o),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-o)/c),i===l&&(g=2+(o-n)/c),o===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};G.prototype.hcg=function(){return h_(this._rgb)};const g_=(...e)=>new G(...e,"hcg");ge.hcg=g_,pe.format.hcg=d_,pe.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),$e(e)==="array"&&e.length===3)return"hcg"}});const p_=(e,n,i)=>Ur(e,n,i,"hcg");xt.hcg=p_;const{cos:Zr}=Math,__=(...e)=>{e=me(e,"hsi");let[n,i,o]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Zr(Dn*n)/Zr(uo-Dn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Zr(Dn*n)/Zr(uo-Dn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Zr(Dn*n)/Zr(uo-Dn*n))/3,s=1-(l+c)),s=pr(o*s*3),l=pr(o*l*3),c=pr(o*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:m_,sqrt:y_,acos:b_}=Math,v_=(...e)=>{let[n,i,o]=me(e,"rgb");n/=255,i/=255,o/=255;let s;const l=m_(n,i,o),c=(n+i+o)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-o))/2,s/=y_((n-i)*(n-i)+(n-o)*(i-o)),s=b_(s),o>i&&(s=Dn-s),s/=Dn),[s*360,f,c]};G.prototype.hsi=function(){return v_(this._rgb)};const C_=(...e)=>new G(...e,"hsi");ge.hsi=C_,pe.format.hsi=__,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),$e(e)==="array"&&e.length===3)return"hsi"}});const x_=(e,n,i)=>Ur(e,n,i,"hsi");xt.hsi=x_;const vo=(...e)=>{e=me(e,"hsl");const[n,i,o]=e;let s,l,c;if(i===0)s=l=c=o*255;else{const f=[0,0,0],d=[0,0,0],g=o<.5?o*(1+i):o+i-o*i,v=2*o-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let b=0;b<3;b++)f[b]<0&&(f[b]+=1),f[b]>1&&(f[b]-=1),6*f[b]<1?d[b]=v+(g-v)*6*f[b]:2*f[b]<1?d[b]=g:3*f[b]<2?d[b]=v+(g-v)*(2/3-f[b])*6:d[b]=v;[s,l,c]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,c,e[3]]:[s,l,c,1]},Bl=(...e)=>{e=me(e,"rgba");let[n,i,o]=e;n/=255,i/=255,o/=255;const s=kl(n,i,o),l=Al(n,i,o),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-o)/(l-s):i==l?d=2+(o-n)/(l-s):o==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};G.prototype.hsl=function(){return Bl(this._rgb)};const w_=(...e)=>new G(...e,"hsl");ge.hsl=w_,pe.format.hsl=vo,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),$e(e)==="array"&&e.length===3)return"hsl"}});const $_=(e,n,i)=>Ur(e,n,i,"hsl");xt.hsl=$_;const{floor:L_}=Math,S_=(...e)=>{e=me(e,"hsv");let[n,i,o]=e,s,l,c;if(o*=255,i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=L_(n),d=n-f,g=o*(1-i),v=o*(1-i*d),y=o*(1-i*(1-d));switch(f){case 0:[s,l,c]=[o,y,g];break;case 1:[s,l,c]=[v,o,g];break;case 2:[s,l,c]=[g,o,y];break;case 3:[s,l,c]=[g,v,o];break;case 4:[s,l,c]=[y,g,o];break;case 5:[s,l,c]=[o,g,v];break}}return[s,l,c,e.length>3?e[3]:1]},{min:k_,max:A_}=Math,M_=(...e)=>{e=me(e,"rgb");let[n,i,o]=e;const s=k_(n,i,o),l=A_(n,i,o),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-o)/c),i===l&&(f=2+(o-n)/c),o===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};G.prototype.hsv=function(){return M_(this._rgb)};const T_=(...e)=>new G(...e,"hsv");ge.hsv=T_,pe.format.hsv=S_,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),$e(e)==="array"&&e.length===3)return"hsv"}});const P_=(e,n,i)=>Ur(e,n,i,"hsv");xt.hsv=P_;function wi(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let o=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,v)=>d+g*(f[v]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),o===1?l.map(c=>c[0]):l}const Co=(...e)=>{e=me(e,"lab");const[n,i,o,...s]=e,[l,c,f]=I_([n,i,o]),[d,g,v]=Il(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};function I_(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=wi(i,e);return wi(n,o.map(s=>s**3))}const xo=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),l=Ol(n,i,o);return[...O_(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function O_(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=wi(n,e);return wi(i,o.map(s=>Math.cbrt(s)))}G.prototype.oklab=function(){return xo(this._rgb)},Object.assign(ge,{oklab:(...e)=>new G(...e,"oklab")}),pe.format.oklab=Co,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),$e(e)==="array"&&e.length===3)return"oklab"}});const E_=(e,n,i)=>{const o=e.oklab(),s=n.oklab();return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};xt.oklab=E_;const D_=(e,n,i)=>Ur(e,n,i,"oklch");xt.oklch=D_;const{pow:wo,sqrt:$o,PI:Lo,cos:Fl,sin:zl,atan2:R_}=Math,B_=(e,n="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(y,b){return y+b});if(i.forEach((y,b)=>{i[b]*=s}),e=e.map(y=>new G(y)),n==="lrgb")return F_(e,i);const l=e.shift(),c=l.get(n),f=[];let d=0,g=0;for(let y=0;y<c.length;y++)if(c[y]=(c[y]||0)*i[0],f.push(isNaN(c[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(c[y])){const b=c[y]/180*Lo;d+=Fl(b)*i[0],g+=zl(b)*i[0]}let v=l.alpha()*i[0];e.forEach((y,b)=>{const C=y.get(n);v+=y.alpha()*i[b+1];for(let L=0;L<c.length;L++)if(!isNaN(C[L]))if(f[L]+=i[b+1],n.charAt(L)==="h"){const k=C[L]/180*Lo;d+=Fl(k)*i[b+1],g+=zl(k)*i[b+1]}else c[L]+=C[L]*i[b+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let b=R_(g/f[y],d/f[y])/Lo*180;for(;b<0;)b+=360;for(;b>=360;)b-=360;c[y]=b}else c[y]=c[y]/f[y];return v/=o,new G(c,n).alpha(v>.99999?1:v,!0)},F_=(e,n)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;o[0]+=wo(f[0],2)*c,o[1]+=wo(f[1],2)*c,o[2]+=wo(f[2],2)*c,o[3]+=f[3]*c}return o[0]=$o(o[0]),o[1]=$o(o[1]),o[2]=$o(o[2]),o[3]>.9999999&&(o[3]=1),new G(lo(o))},{pow:z_}=Math;function $i(e){let n="rgb",i=ge("#ccc"),o=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],v=!1,y=0,b=1,C=!1,L={},k=!0,x=1;const $=function(I){if(I=I||["#fff","#000"],I&&$e(I)==="string"&&ge.brewer&&ge.brewer[I.toLowerCase()]&&(I=ge.brewer[I.toLowerCase()]),$e(I)==="array"){I.length===1&&(I=[I[0],I[0]]),I=I.slice(0);for(let R=0;R<I.length;R++)I[R]=ge(I[R]);c.length=0;for(let R=0;R<I.length;R++)c.push(R/(I.length-1))}return W(),g=I},P=function(I){if(d!=null){const R=d.length-1;let V=0;for(;V<R&&I>=d[V];)V++;return V-1}return 0};let O=I=>I,T=I=>I;const z=function(I,R){let V,j;if(R==null&&(R=!1),isNaN(I)||I===null)return i;R?j=I:d&&d.length>2?j=P(I)/(d.length-2):b!==y?j=(I-y)/(b-y):j=1,j=T(j),R||(j=O(j)),x!==1&&(j=z_(j,x)),j=f[0]+j*(1-f[0]-f[1]),j=pr(j,0,1);const ee=Math.floor(j*1e4);if(k&&L[ee])V=L[ee];else{if($e(g)==="array")for(let te=0;te<c.length;te++){const Oe=c[te];if(j<=Oe){V=g[te];break}if(j>=Oe&&te===c.length-1){V=g[te];break}if(j>Oe&&j<c[te+1]){j=(j-Oe)/(c[te+1]-Oe),V=ge.interpolate(g[te],g[te+1],j,n);break}}else $e(g)==="function"&&(V=g(j));k&&(L[ee]=V)}return V};var W=()=>L={};$(e);const U=function(I){const R=ge(z(I));return v&&R[v]?R[v]():R};return U.classes=function(I){if(I!=null){if($e(I)==="array")d=I,s=[I[0],I[I.length-1]];else{const R=ge.analyze(s);I===0?d=[R.min,R.max]:d=ge.limits(R,"e",I)}return U}return d},U.domain=function(I){if(!arguments.length)return l;l=I.slice(0),y=I[0],b=I[I.length-1],c=[];const R=g.length;if(I.length===R&&y!==b)for(let V of Array.from(I))c.push((V-y)/(b-y));else{for(let V=0;V<R;V++)c.push(V/(R-1));if(I.length>2){const V=I.map((ee,te)=>te/(I.length-1)),j=I.map(ee=>(ee-y)/(b-y));j.every((ee,te)=>V[te]===ee)||(T=ee=>{if(ee<=0||ee>=1)return ee;let te=0;for(;ee>=j[te+1];)te++;const Oe=(ee-j[te])/(j[te+1]-j[te]);return V[te]+Oe*(V[te+1]-V[te])})}}return s=[y,b],U},U.mode=function(I){return arguments.length?(n=I,W(),U):n},U.range=function(I,R){return $(I),U},U.out=function(I){return v=I,U},U.spread=function(I){return arguments.length?(o=I,U):o},U.correctLightness=function(I){return I==null&&(I=!0),C=I,W(),C?O=function(R){const V=z(0,!0).lab()[0],j=z(1,!0).lab()[0],ee=V>j;let te=z(R,!0).lab()[0];const Oe=V+(j-V)*R;let it=te-Oe,wt=0,$t=1,qe=20;for(;Math.abs(it)>.01&&qe-- >0;)(function(){return ee&&(it*=-1),it<0?(wt=R,R+=($t-R)*.5):($t=R,R+=(wt-R)*.5),te=z(R,!0).lab()[0],it=te-Oe})();return R}:O=R=>R,U},U.padding=function(I){return I!=null?($e(I)==="number"&&(I=[I,I]),f=I,U):f},U.colors=function(I,R){arguments.length<2&&(R="hex");let V=[];if(arguments.length===0)V=g.slice(0);else if(I===1)V=[U(.5)];else if(I>1){const j=s[0],ee=s[1]-j;V=N_(0,I,!1).map(te=>U(j+te/(I-1)*ee))}else{e=[];let j=[];if(d&&d.length>2)for(let ee=1,te=d.length,Oe=1<=te;Oe?ee<te:ee>te;Oe?ee++:ee--)j.push((d[ee-1]+d[ee])*.5);else j=s;V=j.map(ee=>U(ee))}return ge[R]&&(V=V.map(j=>j[R]())),V},U.cache=function(I){return I!=null?(k=I,U):k},U.gamma=function(I){return I!=null?(x=I,U):x},U.nodata=function(I){return I!=null?(i=ge(I),U):i},U}function N_(e,n,i){let o=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)o.push(c);return o}const K_=function(e){let n=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=n.length;s++)o[s]=(n[s]||0)+n[s-1];n=o}return n},H_=function(e){let n,i,o,s;if(e=e.map(l=>new G(l)),e.length===2)[i,o]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new G(c,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new G(c,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*o[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new G(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=K_(f),n=function(d){const g=1-d,v=[0,1,2].map(y=>l.reduce((b,C,L)=>b+c[L]*g**(f-L)*d**L*C[y],0));return new G(v,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},W_=e=>{const n=H_(e);return n.scale=()=>$i(n),n},{round:Nl}=Math;G.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Nl)},G.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:Nl(n):n)},Object.assign(ge,{rgb:(...e)=>new G(...e,"rgb")}),pe.format.rgb=(...e)=>{const n=me(e,"rgba");return n[3]===void 0&&(n[3]=1),n},pe.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),$e(e)==="array"&&(e.length===3||e.length===4&&$e(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const fn=(e,n,i)=>{if(!fn[i])throw new Error("unknown blend mode "+i);return fn[i](e,n)},er=e=>(n,i)=>{const o=ge(i).rgb(),s=ge(n).rgb();return ge.rgb(e(o,s))},tr=e=>(n,i)=>{const o=[];return o[0]=e(n[0],i[0]),o[1]=e(n[1],i[1]),o[2]=e(n[2],i[2]),o},U_=e=>e,Z_=(e,n)=>e*n/255,Y_=(e,n)=>e>n?n:e,q_=(e,n)=>e>n?e:n,G_=(e,n)=>255*(1-(1-e/255)*(1-n/255)),V_=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),j_=(e,n)=>255*(1-(1-n/255)/(e/255)),Q_=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);fn.normal=er(tr(U_)),fn.multiply=er(tr(Z_)),fn.screen=er(tr(G_)),fn.overlay=er(tr(V_)),fn.darken=er(tr(Y_)),fn.lighten=er(tr(q_)),fn.dodge=er(tr(Q_)),fn.burn=er(tr(j_));const{pow:X_,sin:J_,cos:em}=Math;function tm(e=300,n=-1.5,i=1,o=1,s=[0,1]){let l=0,c;$e(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Dn*((e+120)/360+n*d),v=X_(s[0]+c*d,o),b=(l!==0?i[0]+d*l:i)*v*(1-v)/2,C=em(g),L=J_(g),k=v+b*(-.14861*C+1.78277*L),x=v+b*(-.29227*C-.90649*L),$=v+b*(1.97294*C);return ge(lo([k*255,x*255,$*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?o:(o=d,f)},f.hue=function(d){return d==null?i:(i=d,$e(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:($e(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>ge.scale(f),f.hue(i),f}const nm="0123456789abcdef",{floor:rm,random:im}=Math,om=(e=im)=>{let n="#";for(let i=0;i<6;i++)n+=nm.charAt(rm(e()*16));return new G(n,"hex")},{log:Kl,pow:am,floor:sm,abs:lm}=Math;function Hl(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return $e(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{n&&$e(o)==="object"&&(o=o[n]),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)=>Wl(i,o,s),i}function Wl(e,n="equal",i=7){$e(e)=="array"&&(e=Hl(e));const{min:o,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[o,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(o),c.push(s)),n.substr(0,1)==="e"){c.push(o);for(let f=1;f<i;f++)c.push(o+f/i*(s-o));c.push(s)}else if(n.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*Kl(o),d=Math.LOG10E*Kl(s);c.push(o);for(let g=1;g<i;g++)c.push(am(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(o);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=sm(d);if(g===d)c.push(l[g]);else{const v=d-g;c.push(l[g]*(1-v)+l[g+1]*v)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),v=new Array(i);let y=!0,b=0,C=null;C=[],C.push(o);for(let x=1;x<i;x++)C.push(o+x/i*(s-o));for(C.push(s);y;){for(let $=0;$<i;$++)v[$]=0;for(let $=0;$<d;$++){const P=l[$];let O=Number.MAX_VALUE,T;for(let z=0;z<i;z++){const W=lm(C[z]-P);W<O&&(O=W,T=z),v[T]++,g[$]=T}}const x=new Array(i);for(let $=0;$<i;$++)x[$]=null;for(let $=0;$<d;$++)f=g[$],x[f]===null?x[f]=l[$]:x[f]+=l[$];for(let $=0;$<i;$++)x[$]*=1/v[$];y=!1;for(let $=0;$<i;$++)if(x[$]!==C[$]){y=!0;break}C=x,b++,b>200&&(y=!1)}const L={};for(let x=0;x<i;x++)L[x]=[];for(let x=0;x<d;x++)f=g[x],L[f].push(l[x]);let k=[];for(let x=0;x<i;x++)k.push(L[x][0]),k.push(L[x][L[x].length-1]);k=k.sort((x,$)=>x-$),c.push(k[0]);for(let x=1;x<k.length;x+=2){const $=k[x];!isNaN($)&&c.indexOf($)===-1&&c.push($)}}return c}const cm=(e,n)=>{e=new G(e),n=new G(n);const i=e.luminance(),o=n.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 Dl=.027,im=5e-4,om=.1,Rl=1.14,xi=.022,Bl=1.414,am=(e,n)=>{e=new G(e),n=new G(n),e.alpha()<1&&(e=Hr(n,e,e.alpha(),"rgb"));const i=Fl(...e.rgb()),o=Fl(...n.rgb()),s=i>=xi?i:i+Math.pow(xi-i,Bl),l=o>=xi?o:o+Math.pow(xi-o,Bl),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<im?0:s<l?c*Rl:f*Rl;return(Math.abs(d)<om?0:d>0?d-Dl:d+Dl)*100};function Fl(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Fn,pow:lt,min:sm,max:lm,atan2:zl,abs:Nl,cos:wi,sin:Kl,exp:cm,PI:Hl}=Math;function um(e,n,i=1,o=1,s=1){var l=function(dt){return 360*dt/(2*Hl)},c=function(dt){return 2*Hl*dt/360};e=new G(e),n=new G(n);const[f,d,g]=Array.from(e.lab()),[v,y,b]=Array.from(n.lab()),C=(f+v)/2,L=Fn(lt(d,2)+lt(g,2)),k=Fn(lt(y,2)+lt(b,2)),x=(L+k)/2,$=.5*(1-Fn(lt(x,7)/(lt(x,7)+lt(25,7)))),P=d*(1+$),O=y*(1+$),T=Fn(lt(P,2)+lt(g,2)),z=Fn(lt(O,2)+lt(b,2)),H=(T+z)/2,U=l(zl(g,P)),I=l(zl(b,O)),D=U>=0?U:U+360,V=I>=0?I:I+360,j=Nl(D-V)>180?(D+V+360)/2:(D+V)/2,te=1-.17*wi(c(j-30))+.24*wi(c(2*j))+.32*wi(c(3*j+6))-.2*wi(c(4*j-63));let ne=V-D;ne=Nl(ne)<=180?ne:V<=D?ne+360:ne-360,ne=2*Fn(T*z)*Kl(c(ne)/2);const Ie=v-f,ot=z-T,xt=1+.015*lt(C-50,2)/Fn(20+lt(C-50,2)),wt=1+.045*H,Ye=1+.015*H*te,ft=30*cm(-lt((j-275)/25,2)),oe=-(2*Fn(lt(H,7)/(lt(H,7)+lt(25,7))))*Kl(2*c(ft)),Ae=Fn(lt(Ie/(i*xt),2)+lt(ot/(o*wt),2)+lt(ne/(s*Ye),2)+oe*(ot/(o*wt))*(ne/(s*Ye)));return lm(0,sm(100,Ae))}function fm(e,n,i="lab"){e=new G(e),n=new G(n);const o=e.get(i),s=n.get(i);let l=0;for(let c in o){const f=(o[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const dm=(...e)=>{try{return new G(...e),!0}catch{return!1}},hm={cool(){return Ci([ge.hsl(180,1,.9),ge.hsl(250,.7,.4)])},hot(){return Ci(["#000","#f00","#ff0","#fff"]).mode("rgb")}},mo={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"]},Wl=Object.keys(mo),Ul=new Map(Wl.map(e=>[e.toLowerCase(),e])),gm=typeof Proxy=="function"?new Proxy(mo,{get(e,n){const i=n.toLowerCase();if(Ul.has(i))return e[Ul.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(Wl)}}):mo,pm=(...e)=>{e=ye(e,"cmyk");const[n,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:Zl}=Math,_m=(...e)=>{let[n,i,o]=ye(e,"rgb");n=n/255,i=i/255,o=o/255;const s=1-Zl(n,Zl(i,o)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-o-s)*l;return[c,f,d,s]};G.prototype.cmyk=function(){return _m(this._rgb)},Object.assign(ge,{cmyk:(...e)=>new G(...e,"cmyk")}),pe.format.cmyk=pm,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"cmyk"),xe(e)==="array"&&e.length===4)return"cmyk"}});const mm=(...e)=>{const n=ye(e,"hsla");let i=Nr(e)||"lsa";return n[0]=Xt(n[0]||0)+"deg",n[1]=Xt(n[1]*100)+"%",n[2]=Xt(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},ym=(...e)=>{const n=ye(e,"lab");let i=Nr(e)||"lab";return n[0]=Xt(n[0])+"%",n[1]=Xt(n[1]),n[2]=Xt(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},bm=(...e)=>{const n=ye(e,"lch");let i=Nr(e)||"lab";return n[0]=Xt(n[0])+"%",n[1]=Xt(n[1]),n[2]=isNaN(n[2])?"none":Xt(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},vm=(...e)=>{const n=ye(e,"lab");return n[0]=Xt(n[0]*100)+"%",n[1]=eo(n[1]),n[2]=eo(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},Yl=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),[l,c,f]=ho(n,i,o),[d,g,v]=Sl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]},Cm=(...e)=>{const n=ye(e,"lch");return n[0]=Xt(n[0]*100)+"%",n[1]=eo(n[1]),n[2]=isNaN(n[2])?"none":Xt(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:yo}=Math,xm=(...e)=>{const n=ye(e,"rgba");let i=Nr(e)||"rgb";if(i.substr(0,3)==="hsl")return mm(Al(n),i);if(i.substr(0,3)==="lab"){const o=w1();Bn("d50");const s=ym(io(n),i);return Bn(o),s}if(i.substr(0,3)==="lch"){const o=w1();Bn("d50");const s=bm(lo(n),i);return Bn(o),s}return i.substr(0,5)==="oklab"?vm(ho(n)):i.substr(0,5)==="oklch"?Cm(Yl(n)):(n[0]=yo(n[0]),n[1]=yo(n[1]),n[2]=yo(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},ql=(...e)=>{e=ye(e,"lch");const[n,i,o,...s]=e,[l,c,f]=Ll(n,i,o),[d,g,v]=fo(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]},zn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,hn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,$i=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Jt=/\s*/.source,Yr=/\s+/.source,bo=/\s*,\s*/.source,Li=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,qr=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Gl=new RegExp("^rgba?\\("+Jt+[zn,zn,zn].join(Yr)+qr+"\\)$"),Vl=new RegExp("^rgb\\("+Jt+[zn,zn,zn].join(bo)+Jt+"\\)$"),jl=new RegExp("^rgba\\("+Jt+[zn,zn,zn,hn].join(bo)+Jt+"\\)$"),Ql=new RegExp("^hsla?\\("+Jt+[Li,$i,$i].join(Yr)+qr+"\\)$"),Xl=new RegExp("^hsl?\\("+Jt+[Li,$i,$i].join(bo)+Jt+"\\)$"),Jl=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,e9=new RegExp("^lab\\("+Jt+[hn,hn,hn].join(Yr)+qr+"\\)$"),t9=new RegExp("^lch\\("+Jt+[hn,hn,Li].join(Yr)+qr+"\\)$"),n9=new RegExp("^oklab\\("+Jt+[hn,hn,hn].join(Yr)+qr+"\\)$"),r9=new RegExp("^oklch\\("+Jt+[hn,hn,Li].join(Yr)+qr+"\\)$"),{round:i9}=Math,Gr=e=>e.map((n,i)=>i<=2?pr(i9(n),0,255):n),ct=(e,n=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),Pt=(e,n)=>e==="none"?n:e,vo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(pe.format.named)try{return pe.format.named(e)}catch{}if((n=e.match(Gl))||(n=e.match(Vl))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+ct(Pt(i[s],0),0,255);i=Gr(i);const o=n[4]!==void 0?+ct(n[4],0,1):1;return i[3]=o,i}if(n=e.match(jl)){const i=n.slice(1,5);for(let o=0;o<4;o++)i[o]=+ct(i[o],0,255);return i}if((n=e.match(Ql))||(n=e.match(Xl))){const i=n.slice(1,4);i[0]=+Pt(i[0].replace("deg",""),0),i[1]=+ct(Pt(i[1],0),0,100)*.01,i[2]=+ct(Pt(i[2],0),0,100)*.01;const o=Gr(uo(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return o[3]=s,o}if(n=e.match(Jl)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const o=uo(i);for(let s=0;s<3;s++)o[s]=i9(o[s]);return o[3]=+n[4],o}if(n=e.match(e9)){const i=n.slice(1,4);i[0]=ct(Pt(i[0],0),0,100),i[1]=ct(Pt(i[1],0),-125,125,!0),i[2]=ct(Pt(i[2],0),-125,125,!0);const o=w1();Bn("d50");const s=Gr(no(i));Bn(o);const l=n[4]!==void 0?+ct(n[4],0,1):1;return s[3]=l,s}if(n=e.match(t9)){const i=n.slice(1,4);i[0]=ct(i[0],0,100),i[1]=ct(Pt(i[1],0),0,150,!1),i[2]=+Pt(i[2].replace("deg",""),0);const o=w1();Bn("d50");const s=Gr(so(i));Bn(o);const l=n[4]!==void 0?+ct(n[4],0,1):1;return s[3]=l,s}if(n=e.match(n9)){const i=n.slice(1,4);i[0]=ct(Pt(i[0],0),0,1),i[1]=ct(Pt(i[1],0),-.4,.4,!0),i[2]=ct(Pt(i[2],0),-.4,.4,!0);const o=Gr(fo(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return o[3]=s,o}if(n=e.match(r9)){const i=n.slice(1,4);i[0]=ct(Pt(i[0],0),0,1),i[1]=ct(Pt(i[1],0),0,.4,!1),i[2]=+Pt(i[2].replace("deg",""),0);const o=Gr(ql(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return o[3]=s,o}};vo.test=e=>Gl.test(e)||Ql.test(e)||e9.test(e)||t9.test(e)||n9.test(e)||r9.test(e)||Vl.test(e)||jl.test(e)||Xl.test(e)||Jl.test(e)||e==="transparent",G.prototype.css=function(e){return xm(this._rgb,e)};const wm=(...e)=>new G(...e,"css");ge.css=wm,pe.format.css=vo,pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&xe(e)==="string"&&vo.test(e))return"css"}}),pe.format.gl=(...e)=>{const n=ye(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const $m=(...e)=>new G(...e,"gl");ge.gl=$m,G.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},G.prototype.hex=function(e){return xl(this._rgb,e)};const Lm=(...e)=>new G(...e,"hex");ge.hex=Lm,pe.format.hex=Cl,pe.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&xe(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Si}=Math,o9=e=>{const n=e/100;let i,o,s;return n<66?(i=255,o=n<6?0:-155.25485562709179-.44596950469579133*(o=n-2)+104.49216199393888*Si(o),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*Si(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*Si(i),o=325.4494125711974+.07943456536662342*(o=n-50)-28.0852963507957*Si(o),s=255),[i,o,s,1]},{round:Sm}=Math,km=(...e)=>{const n=ye(e,"rgb"),i=n[0],o=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=o9(f);d[2]/d[0]>=o/i?l=f:s=f}return Sm(f)};G.prototype.temp=G.prototype.kelvin=G.prototype.temperature=function(){return km(this._rgb)};const Co=(...e)=>new G(...e,"temp");Object.assign(ge,{temp:Co,kelvin:Co,temperature:Co}),pe.format.temp=pe.format.kelvin=pe.format.temperature=o9,G.prototype.oklch=function(){return Yl(this._rgb)},Object.assign(ge,{oklch:(...e)=>new G(...e,"oklch")}),pe.format.oklch=ql,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"oklch"),xe(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(ge,{analyze:Ol,average:P_,bezier:B_,blend:dn,brewer:gm,Color:G,colors:Kr,contrast:rm,contrastAPCA:am,cubehelix:V_,deltaE:um,distance:fm,input:pe,interpolate:Hr,limits:El,mix:Hr,random:J_,scale:Ci,scales:hm,valid:dm});var Am=Y("<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"),Mm=Y("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),Tm=Y("<div class=each_line>"),Pm=Y("<div>"),Im=Y("<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)>+"),Om=Y('<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 Em=e=>{const n=String(e.value).includes("rgba")?ge(String(e.value)).alpha()*100:100,[i,o]=Q(!1),[s,l]=Q(n),[c,f]=Q(e.value),[d,g]=Q(e.value),[v,y]=Q(!1),[b,C]=Q(!1),[L,k]=Q(e.value??"#000000"),[x,$]=Q(0),[P,O]=Q(1),[T,z]=Q(.5),[H,U]=Q(!1),I=[["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)"]],D=ae=>{try{return ge(ae).hex()}catch{return String(ae||"#000000")}},V=ae=>{const Me=D(ae),[ue,Ee,ut]=ge(Me).hsl();$(Number.isFinite(ue)?Math.round(ue):0),O(Number.isFinite(Ee)?Ee:1),z(Number.isFinite(ut)?ut:.5),k(Me)},j=()=>{o(!1),C(!1)},te=()=>{var ae;f(e.value),g(e.value),(ae=e.onChange)==null||ae.call(e,e.value),j()},ne=ae=>{var Ee;f(ae);const Me=s()/100,ue=ge(ae).alpha(Me).css();g(ue),(e.reactiveChange??!0)&&((Ee=e.onChange)==null||Ee.call(e,ue))},Ie=()=>{var ue;const ae=s()/100,Me=ge(c()).alpha(ae).css();g(Me),(e.reactiveChange??!0)&&((ue=e.onChange)==null||ue.call(e,Me))},ot=ae=>{l(ae.target.value),Ie()},xt=()=>{const ae=c()??e.value??"#000000";V(String(ae)),C(!0),o(!0)},wt=ae=>{$(ae);const Me=ge.hsl(ae,P(),T()).hex();k(Me)},Ye=ae=>{let Me=ae.trim();Me.startsWith("#")||(Me="#"+Me);try{const ue=ge(Me).hex(),[Ee,ut,je]=ge(ue).hsl();$(Number.isFinite(Ee)?Math.round(Ee):x()),O(Number.isFinite(ut)?ut:P()),z(Number.isFinite(je)?je:T()),k(ue)}catch{k(ae)}},ft=ae=>{var Me,ue;(ue=(Me=ae.target).setPointerCapture)==null||ue.call(Me,ae.pointerId),U(!0),Ae(ae)},$e=ae=>{H()&&Ae(ae)},oe=ae=>{var Me,ue;try{(ue=(Me=ae.target).releasePointerCapture)==null||ue.call(Me,ae.pointerId)}catch{}U(!1)},Ae=ae=>{const ue=ae.currentTarget.getBoundingClientRect(),Ee=Math.min(Math.max(0,ae.clientX-ue.left),ue.width),ut=Math.min(Math.max(0,ae.clientY-ue.top),ue.height),je=ue.width?Ee/ue.width:0,$t=ue.height?1-ut/ue.height:.5;O(je),z($t);const gn=ge.hsl(x(),je,$t).hex();k(gn)},dt=()=>{try{const ae=D(L());I[0].unshift(ae),ne(ae),C(!1)}catch{}};return[Ze(()=>Ze(()=>!!i())()&&(()=>{var ae=Mm();return ae.$$click=()=>{te()},ae})()),(()=>{var ae=Am(),Me=ae.firstChild,ue=Me.nextSibling,Ee=ue.firstChild,ut=Ee.nextSibling,je=ut.firstChild,$t=je.nextSibling,gn=$t.firstChild,Rt=ut.nextSibling,pn=Rt.nextSibling,kn=pn.firstChild,_t=kn.nextSibling;return Me.$$click=Pe=>{o(!0)},R(ue,(()=>{var Pe=Ze(()=>!b());return()=>Pe()&&I.map(ht=>(()=>{var Qe=Tm();return R(Qe,()=>ht.map(Lt=>(()=>{var Bt=Pm();return Bt.$$click=qe=>{qe.preventDefault(),ne(Lt)},Te(qe=>{var et=`each_color ${Lt==c()?"selected":""}`,tn=`background-color: ${Lt}`;return et!==qe.e&&Ht(Bt,qe.e=et),qe.t=Ve(Bt,tn,qe.t),qe},{e:void 0,t:void 0}),Bt})())),Qe})())})(),Ee),R(ue,(()=>{var Pe=Ze(()=>!b());return()=>Pe()&&(()=>{var ht=Im(),Qe=ht.firstChild;return Qe.$$click=Lt=>{Lt.stopPropagation(),xt()},ht})()})(),Ee),R(ue,(()=>{var Pe=Ze(()=>!!b());return()=>Pe()&&(()=>{var ht=Om(),Qe=ht.firstChild,Lt=Qe.firstChild,Bt=Lt.nextSibling,qe=Qe.nextSibling,et=qe.firstChild,tn=et.nextSibling,tr=tn.nextSibling,nr=tr.nextSibling,_n=qe.nextSibling,B=_n.firstChild,W=B.nextSibling,de=_n.nextSibling,X=de.firstChild,we=X.nextSibling;return Bt.$$input=ee=>Ye(ee.currentTarget.value),qe.$$pointerup=ee=>oe(ee),qe.$$pointermove=ee=>$e(ee),qe.$$pointerdown=ee=>ft(ee),B.$$input=ee=>wt(Number(ee.currentTarget.value)),R(W,x),X.$$click=()=>C(!1),we.$$click=dt,Te(ee=>{var tt=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${L()}`,nt=`linear-gradient(to right, hsl(${x()}, 0%, 50%), hsl(${x()}, 100%, 50%))`,Wt=`${Math.round(P()*100)}%`,An=`${Math.round((1-T())*100)}%`,Wn=L();return ee.e=Ve(Lt,tt,ee.e),nt!==ee.t&&Ar(et,"background",ee.t=nt),Wt!==ee.a&&Ar(nr,"left",ee.a=Wt),An!==ee.o&&Ar(nr,"top",ee.o=An),Wn!==ee.i&&Ar(nr,"background",ee.i=Wn),ee},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>Bt.value=L()),Te(()=>B.value=x()),ht})()})(),Ee),je.addEventListener("blur",()=>{y(!1)}),je.addEventListener("focus",()=>{y(!0)}),je.$$input=Pe=>{Pe.preventDefault,ot(Pe)},R($t,s,gn),kn.$$click=te,_t.$$click=()=>{var Pe;e.reactiveChange===!1&&((Pe=e.onChange)==null||Pe.call(e,d())),j()},Te(Pe=>{var ht=`width: 120px; background-color: ${d()}`,Qe=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,Lt=`background-color: ${d()}; border: 1px solid ${c()}`;return Pe.e=Ve(ae,ht,Pe.e),Qe!==Pe.t&&Ht(ae,Pe.t=Qe),Pe.a=Ve(je,Lt,Pe.a),Pe},{e:void 0,t:void 0,a:void 0}),Te(()=>je.value=s()),ae})()]};Dt(["click","input","pointerdown","pointermove","pointerup"]);var Dm=Y("<div><div></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span>");const Vr={display:"flex","justify-content":"space-between",gap:"8px"},jr={"text-align":"right"},Rm=20;function Bm(e,n,i,o,s,l,c,f,d){const g=s+d,v=l+d,y=c-d,b=f-d;return e>=g&&n>=v&&e+i<=y&&n+o<=b}function Fm(e,n,i,o,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+o)),g=s-f,v=l-d;return g*g+v*v<c*c}function zm(e,n,i,o,s,l,c,f,d,g){const v=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-o},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-o}};for(const $ of v){const{left:P,top:O}=y[$];if(Bm(P,O,i,o,s,l,c,f,d))return{left:P,top:O}}const b=s+d,C=l+d,L=c-i-d,k=f-o-d,x=8;for(const $ of v){const P=y[$],O=Math.min(Math.max(b,P.left),Math.max(b,L)),T=Math.min(Math.max(C,P.top),Math.max(C,k));if(!Fm(O,T,i,o,e,n,x))return{left:O,top:T}}return{left:Math.min(Math.max(b,y.topRight.left),Math.max(b,L)),top:Math.min(Math.max(C,y.topRight.top),Math.max(C,k))}}const Nm=e=>{const n=()=>e.order.isBuy,[o,s]=Q(),[l,c]=Q({w:220,h:196});Mt(()=>{e.order,e.formattedTime;const y=o();if(!y)return;const b=()=>{const L=y.getBoundingClientRect();L.width>0&&L.height>0&&c({w:L.width,h:L.height})};b();const C=new ResizeObserver(b);C.observe(y),Sr(()=>C.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,v=Tt(()=>{var H;const y=l().w,b=l().h,C=(H=e.clipElement)==null?void 0:H.getBoundingClientRect(),L=(C==null?void 0:C.left)??0,k=(C==null?void 0:C.top)??0,x=(C==null?void 0:C.right)??d,$=(C==null?void 0:C.bottom)??g,P=typeof e.anchorX=="number"&&typeof e.anchorY=="number",O=P?e.anchorX:x-y-16,T=P?e.anchorY:k+84,z=P?zm(O,T,y,b,L,k,x,$,f,Rm):(()=>{const U=L+f,I=x-y-f,D=k+f,V=$-b-f,j=x-y-16,te=k+84;return{left:Math.min(Math.max(U,j),Math.max(U,I)),top:Math.min(Math.max(D,te),Math.max(D,V))}})();return{left:z.left,top:z.top,anchorX:O,anchorY:T,hasAnchor:P,w:y,h:b}});return Mt(()=>{v()}),(()=>{var y=Dm(),b=y.firstChild,C=b.nextSibling,L=C.firstChild,k=L.firstChild,x=L.nextSibling,$=C.nextSibling,P=$.firstChild,O=P.firstChild,T=P.nextSibling,z=$.nextSibling,H=z.firstChild,U=H.firstChild,I=H.nextSibling,D=z.nextSibling,V=D.firstChild,j=V.firstChild,te=V.nextSibling,ne=D.nextSibling,Ie=ne.firstChild,ot=Ie.firstChild,xt=Ie.nextSibling,wt=ne.nextSibling,Ye=wt.firstChild,ft=Ye.firstChild,$e=Ye.nextSibling;return ii(s,y),R(b,(()=>{var oe=Ze(()=>!!n());return()=>oe()?m("trade_buy",e.locale):m("trade_sell",e.locale)})()),R(L,()=>m("order_id",e.locale),k),R(x,()=>String(e.order.orderId??e.order.id??"-")),R(P,()=>m("order_price",e.locale),O),R(T,()=>String(e.order.price)),R(H,()=>m("order_quantity",e.locale),U),R(I,()=>String(e.order.size)),R(V,()=>m("order_fee",e.locale),j),R(te,()=>String(e.order.fee??"-")),R(Ie,()=>m("order_realized_pnl",e.locale),ot),R(xt,()=>String(e.order.pnl??"-")),R(Ye,()=>m("order_filled_time",e.locale),ft),R($e,()=>e.formattedTime),Te(oe=>{var Ae=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,dt=`${v().left}px`,ae=`${v().top}px`,Me=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,ue=Vr,Ee=jr,ut=Vr,je=jr,$t=Vr,gn=jr,Rt=Vr,pn=jr,kn=Vr,_t=jr,Pe=Vr,ht=jr;return Ae!==oe.e&&Ht(y,oe.e=Ae),dt!==oe.t&&Ar(y,"left",oe.t=dt),ae!==oe.a&&Ar(y,"top",oe.a=ae),Me!==oe.o&&Ht(b,oe.o=Me),oe.i=Ve(C,ue,oe.i),oe.n=Ve(x,Ee,oe.n),oe.s=Ve($,ut,oe.s),oe.h=Ve(T,je,oe.h),oe.r=Ve(z,$t,oe.r),oe.d=Ve(I,gn,oe.d),oe.l=Ve(D,Rt,oe.l),oe.u=Ve(te,pn,oe.u),oe.c=Ve(ne,kn,oe.c),oe.w=Ve(xt,_t,oe.w),oe.m=Ve(wt,Pe,oe.m),oe.f=Ve($e,ht,oe.f),oe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()};Q(!1),Q(!1),Q(!1),Q(!1),Q(!1),Q("");const[Km,Hm]=Q("");function a9(e){const n=Km();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function Wm(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Um(e){const n=a9(e),i=Wm();return!!(n&&i&&(n===i||n.contains(i)))}const[Zm,s9]=Q(!1),[$1,xo]=Q(null),[L1,l9]=Q(null);Q();const[_e,c9]=Q(null),[u9,f9]=Q(null),[Ym,qm]=Q([""]),[Gm,Vm]=Q({}),[yD,Nn]=Q(!1);Q("");const[wo,jm]=Q(!1);Q(1),Q();const[Qm,ki]=Q(null);var Xm=Y("<img alt=symbol>"),Jm=Y("<div class=symbol><span>"),ey=Y('<div class=klinecharts-pro-period-bar><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></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></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg></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></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></div><div class="item tools">'),ty=Y("<button type=button>"),ny=Y('<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>'),ry=Y('<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 iy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,o=()=>{jm(Um(n))},s=l=>{if(l.shiftKey)return;const c=l.currentTarget;if(c.scrollWidth<=c.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=c.clientWidth),f===0)return;const d=c.scrollWidth-c.clientWidth;f>0&&c.scrollLeft>=d-1||f<0&&c.scrollLeft<=0||(l.preventDefault(),c.scrollLeft+=f)};return P0(()=>{document.addEventListener("fullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Sr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var l=ey(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,v=g.nextSibling,y=v.nextSibling,b=y.nextSibling,C=b.nextSibling;return ii(L=>{const k=n;k&&k.removeEventListener("wheel",s),n=L,L&&L.addEventListener("wheel",s,{passive:!1})},l),wn(f,"click",e.onMenuClick,!0),R(l,q(Oe,{get when(){return e.symbol},get children(){var L=Jm(),k=L.firstChild;return wn(L,"click",e.onSymbolClick,!0),R(L,q(Oe,{get when(){return e.symbol.logo},get children(){var x=Xm();return Te(()=>Je(x,"src",e.symbol.logo)),x}}),k),R(k,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),L}}),d),R(l,()=>e.periods.map(L=>(()=>{var k=ty();return k.$$click=()=>{e.onPeriodChange(L)},R(k,()=>L.text),Te(()=>Ht(k,`item tools period ${i(L)?"selected":""}`)),k})()),d),wn(d,"click",e.onIndicatorClick,!0),wn(g,"click",e.onTimezoneClick,!0),wn(v,"click",e.onAlertClick,!0),wn(y,"click",e.onSettingClick,!0),wn(b,"click",e.onScreenshotClick,!0),C.$$click=()=>{if(wo())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const L=a9(n);L&&(L.requestFullscreen??L.webkitRequestFullscreen??L.mozRequestFullScreen??L.msRequestFullscreen).call(L)}},R(C,(()=>{var L=Ze(()=>!!wo());return()=>L()?ny():ry()})()),Te(L=>{var k=e.spread?"":"rotate",x=m("indicator",e.locale),$=m("timezone",e.locale),P=m("alerts",e.locale),O=m("setting",e.locale),T=m("screenshot",e.locale),z=wo()?m("exit_full_screen",e.locale):m("full_screen",e.locale);return k!==L.e&&Je(f,"class",L.e=k),x!==L.t&&Je(d,"title",L.t=x),$!==L.a&&Je(g,"title",L.a=$),P!==L.o&&Je(v,"title",L.o=P),O!==L.i&&Je(y,"title",L.i=O),T!==L.n&&Je(b,"title",L.n=T),z!==L.s&&Je(C,"title",L.s=z),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),l})()};Dt(["click"]);var oy=Y('<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 ay=()=>oy();var sy=Y('<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 ly=()=>sy();var cy=Y('<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 uy=()=>cy();var fy=Y('<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 dy=()=>fy();var hy=Y('<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 gy=()=>hy();var py=Y('<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=()=>py();var my=Y('<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 yy=()=>my();var by=Y('<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 vy=()=>by();var Cy=Y('<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 xy=()=>Cy();var wy=Y('<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 $y=()=>wy();var Ly=Y('<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 Sy=()=>Ly();var ky=Y('<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 Ay=()=>ky();var My=Y('<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 Ty=()=>My();var Py=Y('<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 Iy=()=>Py();var Oy=Y('<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 Ey=()=>Oy();var Dy=Y('<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 Ry=()=>Dy();var By=Y('<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 Fy=()=>By();var zy=Y('<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 Ny=()=>zy();var Ky=Y('<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=()=>Ky();var Wy=Y('<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 Uy=()=>Wy();var Zy=Y('<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 Yy=()=>Zy();var qy=Y('<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 Gy=()=>qy();var Vy=Y('<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 jy=()=>Vy();var Qy=Y('<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 Xy=()=>Qy();var Jy=Y('<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 eb=()=>Jy();var tb=Y('<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 nb=()=>tb();var rb=Y('<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 ib=()=>rb();var ob=Y('<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 ab=()=>ob();var sb=Y('<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 lb=()=>sb();var cb=Y('<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 ub=()=>cb();var fb=Y('<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 db=e=>(()=>{var n=fb();return Je(n,"class",`icon-overlay ${e??""}`),n})();var hb=Y('<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 gb=e=>(()=>{var n=hb();return Je(n,"class",`icon-overlay ${e??""}`),n})();var pb=Y('<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 _b=()=>pb();var mb=Y('<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 yb=()=>mb();var bb=Y('<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 vb=()=>bb();var Cb=Y('<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 xb=()=>Cb();var wb=Y('<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 $b=()=>wb();var Lb=Y('<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 Sb={horizontalStraightLine:ay,horizontalRayLine:ly,horizontalSegment:uy,verticalStraightLine:dy,verticalRayLine:gy,verticalSegment:_y,straightLine:yy,rayLine:vy,segment:xy,arrow:$y,priceLine:Sy,priceChannelLine:Ay,parallelStraightLine:Ty,fibonacciLine:Iy,fibonacciSegment:Ey,fibonacciCircle:Ry,fibonacciSpiral:Fy,fibonacciSpeedResistanceFan:Ny,fibonacciExtension:Hy,gannBox:Uy,circle:Yy,triangle:Gy,rect:jy,parallelogram:Xy,threeWaves:eb,fiveWaves:nb,eightWaves:ib,anyWaves:ab,abcd:lb,xabcd:ub,weak_magnet:db,strong_magnet:gb,lock:vb,unlock:xb,visible:_b,invisible:yb,remove:$b,brush:()=>Lb()};function kb(e){return[{key:"horizontalStraightLine",text:m("horizontal_straight_line",e)},{key:"horizontalRayLine",text:m("horizontal_ray_line",e)},{key:"horizontalSegment",text:m("horizontal_segment",e)},{key:"verticalStraightLine",text:m("vertical_straight_line",e)},{key:"verticalRayLine",text:m("vertical_ray_line",e)},{key:"verticalSegment",text:m("vertical_segment",e)},{key:"straightLine",text:m("straight_line",e)},{key:"rayLine",text:m("ray_line",e)},{key:"segment",text:m("segment",e)},{key:"arrow",text:m("arrow",e)},{key:"brush",text:m("brush",e)},{key:"priceLine",text:m("price_line",e)}]}function Ab(e){return[{key:"priceChannelLine",text:m("price_channel_line",e)},{key:"parallelStraightLine",text:m("parallel_straight_line",e)}]}function Mb(e){return[{key:"circle",text:m("circle",e)},{key:"rect",text:m("rect",e)},{key:"parallelogram",text:m("parallelogram",e)},{key:"triangle",text:m("triangle",e)}]}function Tb(e){return[{key:"fibonacciLine",text:m("fibonacci_line",e)},{key:"fibonacciSegment",text:m("fibonacci_segment",e)},{key:"fibonacciCircle",text:m("fibonacci_circle",e)},{key:"fibonacciSpiral",text:m("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:m("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:m("fibonacci_extension",e)},{key:"gannBox",text:m("gann_box",e)}]}function Pb(e){return[{key:"xabcd",text:m("xabcd",e)},{key:"abcd",text:m("abcd",e)},{key:"threeWaves",text:m("three_waves",e)},{key:"fiveWaves",text:m("five_waves",e)},{key:"eightWaves",text:m("eight_waves",e)},{key:"anyWaves",text:m("any_waves",e)}]}function Ib(e){return[{key:"weak_magnet",text:m("weak_magnet",e)},{key:"strong_magnet",text:m("strong_magnet",e)}]}const en=e=>Sb[e.name](e.class);var Ob=Y('<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>'),Eb=Y('<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>'),d9=Y("<li><span style=padding-left:8px>");const h9="drawing_tools",Db=e=>{const[n,i]=Q("horizontalStraightLine"),[o,s]=Q("priceChannelLine"),[l,c]=Q("circle"),[f,d]=Q("fibonacciLine"),[g,v]=Q("xabcd"),[y,b]=Q("weak_magnet"),[C,L]=Q("normal"),[k,x]=Q(!1),[$,P]=Q(!0),[O,T]=Q(""),z=Tt(()=>[{key:"singleLine",icon:n(),list:kb(e.locale),setter:i},{key:"moreLine",icon:o(),list:Ab(e.locale),setter:s},{key:"polygon",icon:l(),list:Mb(e.locale),setter:c},{key:"fibonacci",icon:f(),list:Tb(e.locale),setter:d},{key:"wave",icon:g(),list:Pb(e.locale),setter:v}]),H=Tt(()=>Ib(e.locale));return(()=>{var U=Ob(),I=U.firstChild,D=I.nextSibling,V=D.firstChild,j=V.nextSibling,te=j.firstChild,ne=D.nextSibling,Ie=ne.firstChild,ot=ne.nextSibling,xt=ot.firstChild,wt=ot.nextSibling,Ye=wt.nextSibling,ft=Ye.firstChild;return R(U,()=>z().map($e=>(()=>{var oe=Eb(),Ae=oe.firstChild,dt=Ae.nextSibling,ae=dt.firstChild;return oe.addEventListener("blur",()=>{T("")}),Ae.$$click=()=>{e.onDrawingItemClick({groupId:h9,name:$e.icon,visible:$(),lock:k(),mode:C()})},R(Ae,q(en,{get name(){return $e.icon}})),dt.$$click=()=>{$e.key===O()?T(""):T($e.key)},R(oe,(()=>{var Me=Ze(()=>$e.key===O());return()=>Me()&&q(_i,{class:"list",get children(){return $e.list.map(ue=>(()=>{var Ee=d9(),ut=Ee.firstChild;return Ee.$$click=()=>{$e.setter(ue.key),e.onDrawingItemClick({name:ue.key,lock:k(),mode:C()}),T("")},R(Ee,q(en,{get name(){return ue.key}}),ut),R(ut,()=>ue.text),Ee})())}})})(),null),Te(()=>Je(ae,"class",$e.key===O()?"rotate":"")),oe})()),I),D.addEventListener("blur",()=>{T("")}),V.$$click=()=>{let $e=y();C()!=="normal"&&($e="normal"),L($e),e.onModeChange($e)},R(V,(()=>{var $e=Ze(()=>y()==="weak_magnet");return()=>$e()?Ze(()=>C()==="weak_magnet")()?q(en,{name:"weak_magnet",class:"selected"}):q(en,{name:"weak_magnet"}):Ze(()=>C()==="strong_magnet")()?q(en,{name:"strong_magnet",class:"selected"}):q(en,{name:"strong_magnet"})})()),j.$$click=()=>{O()==="mode"?T(""):T("mode")},R(D,(()=>{var $e=Ze(()=>O()==="mode");return()=>$e()&&q(_i,{class:"list",get children(){return H().map(oe=>(()=>{var Ae=d9(),dt=Ae.firstChild;return Ae.$$click=()=>{b(oe.key),L(oe.key),e.onModeChange(oe.key),T("")},R(Ae,q(en,{get name(){return oe.key}}),dt),R(dt,()=>oe.text),Ae})())}})})(),null),Ie.$$click=()=>{const $e=!k();x($e),e.onLockChange($e)},R(Ie,(()=>{var $e=Ze(()=>!!k());return()=>$e()?q(en,{name:"lock"}):q(en,{name:"unlock"})})()),xt.$$click=()=>{const $e=!$();P($e),e.onVisibleChange($e)},R(xt,(()=>{var $e=Ze(()=>!!$());return()=>$e()?q(en,{name:"visible"}):q(en,{name:"invisible"})})()),ft.$$click=()=>{e.onRemoveClick(h9)},R(ft,q(en,{name:"remove"})),Te(()=>Je(te,"class",O()==="mode"?"rotate":"")),U})()};Dt(["click"]);var g9=Y("<li class=title>"),Rb=Y('<div style="padding:0 20px">'),p9=Y("<li class=row>");const Bb=e=>q(Ln,{get title(){return m("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=Rb();return R(n,q(_i,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=g9();return R(i,()=>m("main_indicator",e.locale)),i})(),Ze(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=p9();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},R(s,q(hl,{checked:o,get label(){return m(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=g9();return R(i,()=>m("sub_indicator",e.locale)),i})(),Ze(()=>["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=p9();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},R(s,q(hl,{checked:o,get label(){return m(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Dt(["click"]);function $o(e,n){switch(e){case"Etc/UTC":return m("utc",n);case"Pacific/Honolulu":return m("honolulu",n);case"America/Juneau":return m("juneau",n);case"America/Los_Angeles":return m("los_angeles",n);case"America/Chicago":return m("chicago",n);case"America/Toronto":return m("toronto",n);case"America/Sao_Paulo":return m("sao_paulo",n);case"Europe/London":return m("london",n);case"Europe/Berlin":return m("berlin",n);case"Asia/Bahrain":return m("bahrain",n);case"Asia/Dubai":return m("dubai",n);case"Asia/Ashkhabad":return m("ashkhabad",n);case"Asia/Almaty":return m("almaty",n);case"Asia/Bangkok":return m("bangkok",n);case"Asia/Shanghai":return m("shanghai",n);case"Asia/Tokyo":return m("tokyo",n);case"Australia/Sydney":return m("sydney",n);case"Pacific/Norfolk":return m("norfolk",n)}return e}function Fb(e){return[{key:"Etc/UTC",text:m("utc",e)},{key:"Pacific/Honolulu",text:m("honolulu",e)},{key:"America/Juneau",text:m("juneau",e)},{key:"America/Los_Angeles",text:m("los_angeles",e)},{key:"America/Chicago",text:m("chicago",e)},{key:"America/Toronto",text:m("toronto",e)},{key:"America/Sao_Paulo",text:m("sao_paulo",e)},{key:"Europe/London",text:m("london",e)},{key:"Europe/Berlin",text:m("berlin",e)},{key:"Asia/Bahrain",text:m("bahrain",e)},{key:"Asia/Dubai",text:m("dubai",e)},{key:"Asia/Ashkhabad",text:m("ashkhabad",e)},{key:"Asia/Almaty",text:m("almaty",e)},{key:"Asia/Bangkok",text:m("bangkok",e)},{key:"Asia/Shanghai",text:m("shanghai",e)},{key:"Asia/Tokyo",text:m("tokyo",e)},{key:"Australia/Sydney",text:m("sydney",e)},{key:"Pacific/Norfolk",text:m("norfolk",e)}]}var zb=Y('<div style="padding:20px 20px 0 20px">');const Nb=e=>{const[n,i]=Q(e.timezone),o=Tt(()=>Fb(e.locale));return q(Ln,{get title(){return m("timezone",e.locale)},width:320,get buttons(){return[{children:m("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=zb();return R(s,q(x1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},_r=e=>{const n=[{key:"solid",text:m("solid",e)},{key:"dashed",text:m("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:m("fill",e)},{key:"stroke",text:m("stroke",e)},{key:"stroke_fill",text:m("stroke_fill",e)}],c=[{key:"none",text:m("none",e)},{key:"always",text:m("always",e)},{key:"follow_cross",text:m("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}],d=[{key:"normal",text:m("Normal",e)}],g=[{key:"Helvetica Neue",text:m("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:c,true_false:o}},Kb=e=>{const{font_family:n,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=_r(e);return[{key:"candle.type",text:m("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:m("candle_solid",e)},{key:"candle_stroke",text:m("candle_stroke",e)},{key:"candle_up_stroke",text:m("candle_up_stroke",e)},{key:"candle_down_stroke",text:m("candle_down_stroke",e)},{key:"ohlc",text:m("ohlc",e)},{key:"area",text:m("area",e)},{key:"heikin_ashi",text:m("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:m("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:m("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:m("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:m("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:m("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:m("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:m("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:m("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:m("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:m("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:m("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:m("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:m("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:m("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:m("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:m("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:m("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:m("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:m("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:m("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:m("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:m("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:m("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:m("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:m("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:m("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:m("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:m("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:m("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:m("Pricemark last text style",e),component:"select",dataSource:c},{key:"candle.priceMark.last.text.size",text:m("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:m("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:m("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:m("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:m("Rect",e)},{key:"standard",text:m("Standard",e)}]},{key:"candle.tooltip.rect.position",text:m("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:m("Fixed",e)},{key:"pointer",text:m("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:m("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:m("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:m("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:m("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:m("Tooltip text color",e),component:"color"}]},Hb=e=>{const{fill_stroke:n,font_size:i,font_weight:o,none_always_followCross:s}=_r(e);return[{key:"indicator.ohlc.upColor",text:m("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:m("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:m("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:m("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:m("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:m("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:m("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:m("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:m("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:m("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:m("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:m("Standard",e)},{key:"rect",text:m("Rect",e)}]},{key:"indicator.tooltip.showName",text:m("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:m("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:m("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:m("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:m("Tooltip text color",e),component:"color"}]},Wb=e=>{const{font_size:n,size:i,font_weight:o}=_r(e);return[{key:"xAxis.show",text:m("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:m("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:m("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:m("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:m("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:m("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:m("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:m("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:m("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:m("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:m("Tick line color",e),component:"color"}]},Ub=e=>{const{size:n,font_weight:i,font_size:o}=_r(e);return[{key:"yAxis.show",text:m("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:m("Position",e),component:"select",dataSource:[{key:"right",text:m("Right",e)},{key:"left",text:m("Left",e)}]},{key:"yAxis.type",text:m("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:m("normal",e)},{key:"percentage",text:m("percentage",e)},{key:"log",text:m("log",e)}]},{key:"yAxis.inside",text:m("Inside",e),component:"switch"},{key:"yAxis.reverse",text:m("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:m("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:m("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:m("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:m("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:m("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:m("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:m("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:m("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:m("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:m("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:n}]},Zb=e=>{const{size:n}=_r(e);return[{key:"grid.show",text:m("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:m("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:m("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:m("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:m("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:m("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:m("Vertical color",e),component:"color"}]},Yb=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:c}=_r(e);return[{key:"crosshair.show",text:m("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:m("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:m("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:m("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:m("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:m("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:m("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:m("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:m("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:m("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:m("Horizontal text weight",e),component:"select",dataSource:c},{key:"crosshair.horizontal.text.color",text:m("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:m("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:m("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:m("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:m("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:m("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:m("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:m("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:m("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:m("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:m("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:m("Vertical text weight",e),component:"select",dataSource:c},{key:"crosshair.vertical.text.color",text:m("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:m("Vertical text background color",e),component:"color"}]};function Lo(e){const{size:n}=_r(e);return[...Kb(e),...Hb(e),...Wb(e),...Ub(e),...Zb(e),...Yb(e),{key:"separator.size",text:m("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:m("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:m("Background color",e),component:"color"}]}const Qr="chartstatedata",Xr={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1,showPriceAlerts:!1},_9="trading-display",qb=2,Gb=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Vb=["price_reach","price_rise_to","price_fall_to"];function jb(e){const n=e.price;if(n==null)return null;if(typeof n=="number"&&Number.isFinite(n))return n;if(typeof n=="string"&&n.trim()!==""){const i=Number(n.trim().replace(/,/g,""));return Number.isFinite(i)?i:null}return null}function Qb(e,n){var l,c,f;const i=(l=e.symbol)==null?void 0:l.trim();if(!i||i===n.ticker)return!0;const o=(c=n.name)==null?void 0:c.trim();if(o&&i===o)return!0;const s=(f=n.shortName)==null?void 0:f.trim();return!!(s&&i===s)}const Xb=y9(),m9=new WeakMap;function y9(){return{tradingConfig:{...Xr},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],alertsState:[],overlaySignatures:new Map}}function Jb(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function b9(e){return e||(_e()??null)}function Kn(e){const n=b9(e);if(!n)return Xb;const i=m9.get(n);if(i)return i;const o=y9();return m9.set(n,o),o}function v9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch(e){return Jb("Failed to parse chart state storage, using defaults.",e),{}}}function C9(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:Xr.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:Xr.showHisOrders,showPriceAlerts:typeof n.showPriceAlerts=="boolean"?n.showPriceAlerts:Xr.showPriceAlerts}}function x9(e){const n=C9(e.tradingDisplay);if(n)return n;const i=C9(e.trading);return i||{...Xr}}function w9(e){const n={...e,version:qb,tradingDisplay:x9(e)};delete n.trading,localStorage.setItem(Qr,JSON.stringify(n))}function ev(e){Kn(e),S1(e)}function S1(e){const n=Kn(e),i=v9();return n.tradingConfig=x9(i),w9(i),{...n.tradingConfig}}function tv(e,n){const i=Kn(n);i.tradingConfig={...e};const o=v9();o.tradingDisplay=i.tradingConfig,w9(o)}function Jr(e,n){tv(e,n),Hn(n)}function nv(e){Jr({...Xr},e)}function rv(e,n){const i=Kn(n);i.positionsState=e.slice(),Hn(n)}function iv(e,n){const i=Kn(n);i.liquidationPriceState=e,Hn(n)}function ov(e,n){const i=Kn(n);i.openOrdersState=e.slice(),Hn(n)}function $9(e,n){const i=Kn(n);i.alertsState=e.slice(),Hn(n)}function av(e,n){const i=Kn(n);i.hisOrdersState=e.slice(),Hn(n)}function sv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,o=e.length-1,s=-1;for(;i<=o;){const l=i+o>>1;e[l].timestamp<=n?(s=l,i=l+1):o=l-1}return s>=0?e[s].timestamp:null}function Ai(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function k1(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function L9(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function lv(e,n){const i=(e.getOverlays({id:n.id})??[]).length>0,o=n.name!=="priceAlertLine";if(!i){const l=e.createOverlay({id:n.id,name:n.name,groupId:_9,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return o&&L9(e,l),l}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),o&&L9(e,n.id),n.id}function cv(e,n){(e.getOverlays()??[]).filter(o=>!!o.id&&Gb.some(s=>o.id.startsWith(s))&&!n.has(o.id)).forEach(o=>e.removeOverlay({id:o.id}))}function uv(e,n,i,o,s){const l=[],c=e.tradingConfig.showPositions,f=e.tradingConfig.showLiquidation,d=e.tradingConfig.showOpenOrders,g=e.tradingConfig.showHisOrders,v=e.tradingConfig.showPriceAlerts,y=e.positionsState.filter(b=>b.size!==0&&Number.isFinite(b.avgPrice));if(c&&y.forEach((b,C)=>{const k=`trading-pos-${Ai(b.id??`idx${C}`)}`,x=[{timestamp:i,value:b.avgPrice}],$={side:b.side,size:b.size,multiplier:b.multiplier??1};l.push({id:k,name:"positionAvgLine",points:x,extendData:$,signature:k1("positionAvgLine",x,$)})}),f&&y.length>0){const b=e.liquidationPriceState;if(b!=null&&Number.isFinite(b)){const C=[{timestamp:i,value:b}],L={};l.push({id:"trading-liq",name:"liquidationLine",points:C,extendData:L,signature:k1("liquidationLine",C,L)})}}if(d&&e.openOrdersState.filter(C=>C.orderType!=="market"&&Number.isFinite(C.price)&&C.size!==0&&(C.side==="long"||C.side==="short")&&typeof C.isBuy=="boolean").forEach((C,L)=>{const x=`trading-order-${Ai(C.id??`idx${L}`)}`,$=[{timestamp:i,value:C.price}],P={isBuy:C.isBuy,size:C.size};l.push({id:x,name:"pendingOrderLine",points:$,extendData:P,signature:k1("pendingOrderLine",$,P)})}),g){const b=e.hisOrdersState.filter(k=>Number.isFinite(k.timestamp)&&Number.isFinite(k.price)&&Number.isFinite(k.size)&&k.size!==0&&typeof k.isBuy=="boolean"),C=new Map,L=new Map;n.forEach(k=>L.set(k.timestamp,{high:k.high,low:k.low})),b.forEach((k,x)=>{const $=sv(n,k.timestamp);if($==null)return;const P=`${$}_${k.isBuy?"B":"S"}`,O=C.get(P)??0;C.set(P,O+1);const T=L.get($),H=`trading-his-order-${Ai(k.id??String(k.orderId??`idx${x}`))}`,U=[{timestamp:$,value:k.price}],I={...k,stackIndex:O,barHigh:T==null?void 0:T.high,barLow:T==null?void 0:T.low};l.push({id:H,name:"hisOrderMark",points:U,extendData:I,signature:k1("hisOrderMark",U,I)})})}if(o&&v){const b=e.alertsState;for(let C=0;C<b.length;C++){const L=b[C];if(!Vb.includes(L.type))continue;const k=jb(L);if(k==null||!Qb(L,o))continue;const $=`alert-${Ai(L.id||`idx_${C}`)}`,P={...L,price:k},O=[{timestamp:i,value:k}],T={alert:P,showInfo:!1,themeKey:Ua(s,Ha,Wa)};l.push({id:$,name:"priceAlertLine",points:O,extendData:T,signature:k1("priceAlertLine",O,T)})}}return l}function fv(e){(e.getOverlays({groupId:"alert_overlays"})??[]).forEach(i=>{i.id&&e.removeOverlay({id:i.id})})}function Hn(e){var b;const n=b9(e),i=Kn(n);if(!n)return;const o=n;fv(o);const s=o.getDataList(),l=((b=s.at(-1))==null?void 0:b.timestamp)??Date.now(),c=$1()??null,f=uv(i,s,l,c,o),d=new Map(f.map(C=>[C.id,C])),g=o.getOverlays({groupId:_9})??[],v=new Set(g.map(C=>C.id).filter(C=>!!C));v.forEach(C=>{d.has(C)||o.removeOverlay({id:C})});const y=new Map;f.forEach(C=>{const L=i.overlaySignatures.get(C.id);if(!v.has(C.id)||L!==C.signature){const x=lv(o,C);y.set(x,C.signature);return}y.set(C.id,C.signature)}),i.overlaySignatures=y,cv(o,new Set(y.keys()))}var e1=Y("<div class=component><span>"),dv=Y("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),hv=Y("<button>");const gv=e=>{const[n,i]=Q(e.currentStyles),[o,s]=Q(Lo(e.locale)),[l,c]=Q("trading"),[f,d]=Q(S1());Mt(()=>{s(Lo(e.locale))}),Mt(()=>{l()==="trading"&&d(S1())});const g=(b,C)=>{const L=localStorage.getItem("chartstatedata");let k;L?(k=JSON.parse(L),k.styleObj=k.styleObj??{}):k={styleObj:{}};const x=b.key.indexOf(".");x===-1?b.key:b.key.slice(0,x)+""+b.key.slice(x),C1(k.styleObj,b.key,C),localStorage.setItem("chartstatedata",JSON.stringify(k)),Nn(!0);const $={};C1($,b.key,C),C1($,b.key,C);const P=fe.utils.clone(n());C1(P,b.key,C),i(P),s(o().map(O=>({...O}))),e.onChange($)},v=()=>{const b=localStorage.getItem("chartstatedata");let C;b&&(C=JSON.parse(b),C.styleObj&&(C.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(C))),nv(),i(e.currentStyles),s(Lo(e.locale)),d(S1()),e.onRestoreDefault(o())},y=[{text:m("setting_sidebar_chart",e.locale),key:"trading"},{text:m("setting_sidebar_candle",e.locale),key:"candle"},{text:m("setting_sidebar_indicator",e.locale),key:"indicator"},{text:m("setting_sidebar_grid",e.locale),key:"grid"},{text:m("setting_sidebar_x_axis",e.locale),key:"xAxis"},{text:m("setting_sidebar_y_axis",e.locale),key:"yAxis"},{text:m("setting_sidebar_separator",e.locale),key:"separator"},{text:m("setting_sidebar_crosshair",e.locale),key:"crosshair"}];return q(Ln,{get title(){return m("setting",e.locale)},width:640,height:560,get buttons(){return[{children:m("restore_default",e.locale),onClick:()=>{v()}}]},get onClose(){return e.onClose},get children(){var b=dv(),C=b.firstChild,L=C.nextSibling;return R(C,()=>y.map(k=>(()=>{var x=hv();return x.$$click=()=>c(k.key),R(x,()=>k.text),Te(()=>Ht(x,`${l()==k.key?"selected":""}`)),x})())),R(L,q(Oe,{get when(){return l()==="trading"},get fallback(){return q(us,{get each(){return o().filter(k=>k.key.includes(l()))},children:k=>{let x;const $=fe.utils.formatValue(n(),k.key);switch(k.component){case"select":{x=q(x1,{style:{width:"120px"},get value(){return m($,e.locale)},get dataSource(){return k.dataSource},onSelected:P=>{const O=P.key;g(k,O)}});break}case"switch":{const P=!!$;x=q(zr,{open:P,onChange:()=>{g(k,!P)}});break}case"color":{x=q(Em,{style:{width:"120px"},value:$,reactiveChange:!1,onChange:P=>{g(k,P)}});break}}return(()=>{var P=e1(),O=P.firstChild;return R(O,()=>k.text),R(P,x,null),P})()}})},get children(){return[(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_positions",e.locale)),R(k,q(zr,{get open(){return f().showPositions},onChange:()=>{const $={...f(),showPositions:!f().showPositions};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_liquidation",e.locale)),R(k,q(zr,{get open(){return f().showLiquidation},onChange:()=>{const $={...f(),showLiquidation:!f().showLiquidation};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_open_orders",e.locale)),R(k,q(zr,{get open(){return f().showOpenOrders},onChange:()=>{const $={...f(),showOpenOrders:!f().showOpenOrders};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_his_orders",e.locale)),R(k,q(zr,{get open(){return f().showHisOrders},onChange:()=>{const $={...f(),showHisOrders:!f().showHisOrders};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_price_alerts",e.locale)),R(k,q(zr,{get open(){return f().showPriceAlerts},onChange:()=>{const $={...f(),showPriceAlerts:!f().showPriceAlerts};d($),Jr($)}}),null),k})()]}})),b}})};Dt(["click"]);var pv=Y('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const _v=e=>q(Ln,{get title(){return m("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:m("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=pv(),i=n.firstChild;return Te(()=>Je(i,"src",e.url)),n}}),mv={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 yv=Y("<div class=klinecharts-pro-indicator-setting-modal-content>"),bv=Y("<div class=param-row><span>");const vv=e=>{const[n,i]=Q(fe.utils.clone(e.params.calcParams)),o=s=>mv[s];return q(Ln,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:m("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];fe.utils.clone(n()).forEach((c,f)=>{!fe.utils.isValid(c)||c===""?"default"in s[f]&&l.push(s[f].default):l.push(c)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=yv();return R(s,()=>o(e.params.indicatorName).map((l,c)=>(()=>{var f=bv(),d=f.firstChild;return R(d,()=>m(l.paramNameKey,e.locale)),R(f,q(_l,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const v=fe.utils.clone(n());v[c]=g,i(v)}}),null),f})())),s}})};var Cv=Y('<div style="margin:10px 20px 0 20px">'),xv=Y('<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">'),wv=Y("<img alt=symbol>"),$v=Y("<li><div><span>");const Lv=e=>{const[n,i]=Q(""),[o]=b6(n,e.datafeed.searchSymbols.bind(e.datafeed));return q(Ln,{get title(){return m("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=Cv();return R(s,q(_l,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return m("symbol_code",e.locale)},get suffix(){return xv()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),R(s,q(_i,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var c=$v(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},R(f,q(Oe,{get when(){return l.logo},get children(){var g=wv();return Te(()=>Je(g,"src",l.logo)),g}}),d),R(d,()=>l.shortName??l.ticker,null),R(d,()=>`${l.name?`(${l.name})`:""}`,null),R(c,()=>l.exchange??"",null),Te(()=>Je(d,"title",l.name??"")),c})()}),null),s}})};Dt(["click"]);var Sv=Y("<div class=row><span></span><input class=field-input type=number min=0 step=any>"),kv=Y("<div class=row><span>"),Av=Y("<div class=row><span></span><input class=field-input type=number min=1 max=100 step=1>"),Mv=Y("<div class=error-text>"),Tv=Y("<div class=klinecharts-pro-alert-add-modal><div class=row><span></span></div><div class=row><span></span></div><div class=row><span></span><input class=field-input type=text>");const Pv=e=>{const[n,i]=Q(!1),[o,s]=Q(""),[l,c]=Q({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=Tt(()=>{const b=l().type;return b==="price_reach"||b==="price_rise_to"||b==="price_fall_to"}),d=Tt(()=>[{key:"price_reach",text:Qt("price_reach",e.locale)},{key:"price_rise_to",text:Qt("price_rise_to",e.locale)},{key:"price_fall_to",text:Qt("price_fall_to",e.locale)},{key:"price_rise_pct_over",text:Qt("price_rise_pct_over",e.locale)},{key:"price_fall_pct_over",text:Qt("price_fall_pct_over",e.locale)}]),g=Tt(()=>[{key:"repeat",text:S0("repeat",e.locale)},{key:"once",text:S0("once",e.locale)}]),v=Tt(()=>[{key:"5m",text:dr("5m",e.locale)},{key:"1h",text:dr("1h",e.locale)},{key:"4h",text:dr("4h",e.locale)},{key:"24h",text:dr("24h",e.locale)}]),y=async()=>{if(n())return;const b=l(),C={type:b.type,frequency:b.frequency,remark:b.remark.trim()||void 0};if(f()){const L=Number(b.price);if(!Number.isFinite(L)||L<=0){s(m("alert_validation_price_gt_zero",e.locale));return}C.price=L}else{const L=Number(b.percent);if(!Number.isInteger(L)||L<1||L>100){s(m("alert_validation_percent_range",e.locale));return}C.window=b.window,C.percent=L}s(""),i(!0);try{await e.onSubmit(C)&&e.onClose()}finally{i(!1)}};return q(Ln,{get title(){return m("alert_add",e.locale)},width:360,get buttons(){return[{children:m("cancel",e.locale),type:"cancel",onClick:e.onClose},{children:n()?m("alert_submitting",e.locale):m("alert_submit",e.locale),onClick:y}]},get onClose(){return e.onClose},get children(){var b=Tv(),C=b.firstChild,L=C.firstChild,k=C.nextSibling,x=k.firstChild,$=k.nextSibling,P=$.firstChild,O=P.nextSibling;return R(L,()=>m("alert_field_type",e.locale)),R(C,q(x1,{style:{width:"220px"},get value(){var T;return(T=d().find(z=>z.key===l().type))==null?void 0:T.text},get dataSource(){return d()},onSelected:T=>{const z=T.key;c(H=>({...H,type:z}))}}),null),R(b,q(Oe,{get when(){return f()},get children(){var T=Sv(),z=T.firstChild,H=z.nextSibling;return R(z,()=>m("alert_field_price",e.locale)),H.$$input=U=>{c(I=>({...I,price:U.target.value}))},Te(()=>H.value=l().price),T}}),k),R(b,q(Oe,{get when(){return!f()},get children(){return[(()=>{var T=kv(),z=T.firstChild;return R(z,()=>m("alert_field_window",e.locale)),R(T,q(x1,{style:{width:"220px"},get value(){var H;return(H=v().find(U=>U.key===l().window))==null?void 0:H.text},get dataSource(){return v()},onSelected:H=>{const U=H.key;c(I=>({...I,window:U}))}}),null),T})(),(()=>{var T=Av(),z=T.firstChild,H=z.nextSibling;return R(z,()=>m("alert_field_percent",e.locale)),H.$$input=U=>{c(I=>({...I,percent:U.target.value}))},Te(()=>H.value=l().percent),T})()]}}),k),R(x,()=>m("alert_field_frequency",e.locale)),R(k,q(x1,{style:{width:"220px"},get value(){var T;return(T=g().find(z=>z.key===l().frequency))==null?void 0:T.text},get dataSource(){return g()},onSelected:T=>{const z=T.key;c(H=>({...H,frequency:z}))}}),null),R(P,()=>m("alert_field_remark",e.locale)),O.$$input=T=>{c(z=>({...z,remark:T.target.value}))},R(b,q(Oe,{get when(){return!!o()},get children(){var T=Mv();return R(T,o),T}}),null),Te(()=>Je(O,"placeholder",m("alert_optional",e.locale))),Te(()=>O.value=l().remark),b}})};Dt(["input"]);var Mi=Y("<dt>"),Ti=Y("<dd>"),Iv=Y("<dl class=alert-detail-grid><dt></dt><dd></dd><dt></dt><dd></dd><dt></dt><dd>");const S9=e=>(()=>{var n=Iv(),i=n.firstChild,o=i.nextSibling,s=o.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return R(n,q(Oe,{get when(){return!!e.alert.symbol},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_symbol",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>e.alert.symbol),d})()]}}),i),R(i,()=>m("alert_field_type",e.locale)),R(o,()=>Qt(e.alert.type,e.locale)),R(n,q(Oe,{get when(){return Ze(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_price",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>String(e.alert.price)),d})()]}}),s),R(n,q(Oe,{get when(){return e.alert.window!=null},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_window",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>dr(e.alert.window,e.locale)),d})()]}}),s),R(n,q(Oe,{get when(){return e.alert.percent!=null},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_percent",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>`${e.alert.percent}%`),d})()]}}),s),R(s,()=>m("alert_field_frequency",e.locale)),R(l,()=>S0(e.alert.frequency,e.locale)),R(c,()=>m("alert_field_remark",e.locale)),R(f,(()=>{var d=Ze(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var Ov=Y("<div class=alert-empty>"),Ev=Y("<div class=klinecharts-pro-alert-modal><div class=alert-list></div><div class=alert-add-btn-container><button type=button class=alert-add-btn>"),Dv=Y("<div class=alert-item><span class=alert-text></span><button type=button class=alert-delete>"),Rv=Y("<div class=klinecharts-pro-alert-detail>");const Bv=e=>{const[n,i]=Q(!1),[o,s]=Q(null);return q(Ln,{get title(){return m("alerts",e.locale)},width:480,get onClose(){return e.onClose},get children(){return[(()=>{var l=Ev(),c=l.firstChild,f=c.nextSibling,d=f.firstChild;return R(c,q(us,{get each(){return e.alerts},children:g=>(()=>{var v=Dv(),y=v.firstChild,b=y.nextSibling;return v.$$dblclick=()=>{s(g)},R(y,()=>n6(g,e.locale)),b.$$dblclick=C=>{C.stopPropagation()},b.$$click=async()=>{var C;await((C=e.onRemoveAlert)==null?void 0:C.call(e,g))},R(b,()=>m("alert_delete",e.locale)),Te(()=>Je(v,"title",m("alert_double_click_detail",e.locale))),v})()}),null),R(c,q(Oe,{get when(){return e.alerts.length===0},get children(){var g=Ov();return R(g,()=>m("alert_empty",e.locale)),g}}),null),d.$$click=()=>{i(!0)},R(d,()=>m("alert_add",e.locale)),l})(),q(Oe,{get when(){return n()},get children(){return q(Pv,{get locale(){return e.locale},onClose:()=>{i(!1)},onSubmit:async l=>{var c;return await((c=e.onAddAlert)==null?void 0:c.call(e,l))??!0}})}}),q(Oe,{get when(){return o()},children:l=>q(Ln,{get title(){return m("alert_detail",e.locale)},width:400,height:260,onClose:()=>{s(null)},get children(){var c=Rv();return R(c,q(S9,{get locale(){return e.locale},get alert(){return l()}})),c}})})]}})};Dt(["click","dblclick"]);class So{constructor(n,i){xn(this,"_chart");xn(this,"_charts",new Map);xn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const o=fe.init(n,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(n,i){return new So(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,o){return this._chart.createIndicator(n,i,o)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,o){return this._chart.zoomAtCoordinate(n,i,o)}zoomAtDataIndex(n,i,o){return this._chart.zoomAtDataIndex(n,i,o)}zoomAtTimestamp(n,i,o){return this._chart.zoomAtTimestamp(n,i,o)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,o){return this._chart.getConvertPictureUrl(n,i,o)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const k9=6,Fv=14,A9=14,M9=18;function zv(e,n){const i=n.points[0],o=n.extendData;if(!i||!o||!Number.isFinite(i.timestamp)||typeof o.isBuy!="boolean")return null;const l=e.getDataList().find($=>$.timestamp===i.timestamp);let c,f;if(l&&Number.isFinite(l.high)&&Number.isFinite(l.low)?(c=l.high,f=l.low):(c=typeof o.barHigh=="number"&&Number.isFinite(o.barHigh)?o.barHigh:void 0,f=typeof o.barLow=="number"&&Number.isFinite(o.barLow)?o.barLow:void 0),c===void 0||f===void 0)return null;const g=e.convertToPixel({timestamp:i.timestamp,value:i.value}).x,v=e.convertToPixel({timestamp:i.timestamp,value:c}).y,y=e.convertToPixel({timestamp:i.timestamp,value:f}).y;if(typeof g!="number"||typeof v!="number"||typeof y!="number")return null;const b=Math.max(0,o.stackIndex??0),C=Math.abs(y-v),L=Number.isFinite(C)&&C<M9?Math.max(0,M9-C)*.65:0,k=Fv+L,x=o.isBuy?y+k+b*A9:v-k-b*A9;return{cx:g,cy:x-.5}}function Nv(e,n,i){const o=e.getOverlays({name:"hisOrderMark",paneId:"candle_pane"})??[],s=e.getDom("candle_pane","main"),l=s==null?void 0:s.getBoundingClientRect(),c=k9*k9,f=[];for(const y of o){const b=y.id;if(!b)continue;const C=zv(e,y);if(!C)continue;const L=n-C.cx,k=i-C.cy,x=L*L+k*k;if(x>c)continue;const $=y.extendData,P=Math.max(0,$.stackIndex??0);f.push({overlayId:b,order:$,distSq:x,stackIndex:P,cx:C.cx,cy:C.cy})}if(f.length===0)return null;f.sort((y,b)=>y.distSq!==b.distSq?y.distSq-b.distSq:b.stackIndex-y.stackIndex);const d=f[0],g=l?l.left+d.cx:d.cx,v=l?l.top+d.cy:d.cy;return{overlayId:d.overlayId,order:d.order,anchorX:g,anchorY:v}}const T9={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function Kv(e){return{onIndicatorTooltipFeatureClick:l=>{const c=l,f=e.getApi();if(f)switch(c.feature.id){case"visible":e.setIndicatorVisible(c.indicator.name,c.paneId,!0,c.indicator.id);break;case"invisible":e.setIndicatorVisible(c.indicator.name,c.paneId,!1,c.indicator.id);break;case"setting":{const d=f.getIndicators({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:c.indicator.name,paneId:c.paneId,calcParams:d.calcParams});break}case"close":{if(c.paneId==="candle_pane"){const d=[...e.mainIndicators()];if(!e.popIndicator(c.indicator.name,c.paneId,c.indicator.id))break;d.splice(d.indexOf(c.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};if(!e.popIndicator(c.indicator.name,c.paneId,c.indicator.id))break;delete d[c.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f=[...e.mainIndicators()];if(l.added)e.createIndicator(c,l.name,!0,{id:"candle_pane"}),f.push(l.name);else{if(!e.popIndicator(l.name,"candle_pane"))return;f.splice(f.indexOf(l.name),1)}e.setMainIndicators(f)},onSubIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(c,l.name);d&&(f[l.name]=d)}else if(l.id){if(!e.popIndicator(l.name,void 0,l.id))return;delete f[l.name]}e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{if(!e.getApi())return;const f=e.indicatorSettingModalParams();e.modifyIndicator(f,l)}}}const Hv=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(o=>{delete i[o]}),i},Wv=e=>{const n=["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 n.forEach(o=>{delete i[o]}),i};function A1(){try{const e=localStorage.getItem("chartstatedata");if(!e)return{};const n=JSON.parse(e);return Array.isArray(n.indicators)&&(n.indicators=n.indicators.map(i=>qv(i)).filter(i=>i!==null)),n}catch{return{}}}function Pi(e){localStorage.setItem("chartstatedata",JSON.stringify(e))}function Uv(e){return!!e&&e!=="candle_pane"}function Zv(e,n){return{name:e.name,visible:e.visible??!0,calcParams:Array.isArray(e.calcParams)?[...e.calcParams]:[],isMainPane:(n==null?void 0:n.id)==="candle_pane"}}function Yv(e){return{name:e.name,visible:e.visible,calcParams:e.calcParams}}function qv(e){var i,o;if(!e||typeof e!="object")return null;const n=e;return typeof n.name=="string"&&typeof n.visible=="boolean"&&Array.isArray(n.calcParams)?{name:n.name,visible:n.visible,calcParams:n.calcParams.map(s=>Number(s)).filter(s=>Number.isFinite(s)),isMainPane:n.isMainPane===!0}:typeof((i=n.value)==null?void 0:i.name)=="string"?{name:n.value.name,visible:typeof n.value.visible=="boolean"?n.value.visible:!0,calcParams:Array.isArray(n.value.calcParams)?n.value.calcParams.map(s=>Number(s)).filter(s=>Number.isFinite(s)):[],isMainPane:((o=n.paneOptions)==null?void 0:o.id)==="candle_pane"}:null}const Gv=()=>{const e=(x,$,P)=>{const O=A1(),T=Zv(Hv(it.cloneDeep(x)),P);if(!O.indicators)O.indicators=[T];else{const z=O.indicators.findIndex(H=>H.name===T.name&&H.isMainPane===T.isMainPane);z>-1?O.indicators[z]=T:O.indicators.push(T)}return Pi(O),Nn(!0),!1},n=x=>{const $=localStorage.getItem("chartstatedata");let P;const O=Wv(it.cloneDeep(x));return $?(P=JSON.parse($),P.overlays?P.overlays.find(T=>{var z;return((z=T.value)==null?void 0:z.id)===O.id})?P.overlays=P.overlays.map(T=>{var z;return((z=T.value)==null?void 0:z.id)!==O.id?T:{value:O,paneId:x.paneId}}):P.overlays.push({value:O,paneId:x.paneId}):P.overlays=[{value:x,paneId:x.paneId}]):P={overlays:[{value:O,paneId:x.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(P)),Nn(!0),!1};function i(x,$,P,O,T=!1){const z=typeof $=="string"?$:$.name;z==="VOL"&&(O={axis:{gap:{bottom:2}},...O});const H=(O==null?void 0:O.id)==="candle_pane",U=typeof $=="string"?{name:$}:it.cloneDeep($),I=x.createIndicator({...U,name:z,createTooltipDataSource:D=>{const j=D.chart.getStyles().indicator.tooltip.features,te=[];return H&&te.push(D.indicator.visible?j[1]:j[0]),te.push(j[2]),te.push(j[3]),{features:te}}},P,O)??null;if(I&&T){const D=x==null?void 0:x.getIndicators({id:I,name:z})[0];if(D){const V=(O==null?void 0:O.id)==="candle_pane"?O:{...O??{},id:I};e(D,P,V)}}return I}const o=(x,$,P)=>{const O=A1(),T=O.indicators??[],z=Array.isArray(O.indicators),H=[],U={};if(z){const I=new Set;return T.forEach(D=>{if(!D.isMainPane&&I.has(D.name))return;const j=i(x,Yv(D),D.isMainPane,D.isMainPane?{id:"candle_pane"}:void 0);D.isMainPane?H.push(D.name):j&&(U[D.name]=j,I.add(D.name))}),{mainIndicators:H,subIndicators:U}}return $.forEach(I=>{i(x,I,!0,{id:"candle_pane"},!0),H.push(I)}),P.forEach(I=>{const D=i(x,I,!1,void 0,!0);D&&(U[I]=D)}),{mainIndicators:H,subIndicators:U}},s=(x,$,P=!1)=>{var H,U,I;const O=(H=_e())==null?void 0:H.createOverlay({...x,paneId:$});if(!O)return!1;const T=(U=_e())==null?void 0:U.getOverlays({id:O})[0],z=D=>(D.preventDefault&&D.preventDefault(),l(D.overlay.id),!0);T&&(x.properties&&T.setProperties(x.properties,O),(I=_e())==null||I.overrideOverlay({id:T.id,onDrawEnd:D=>["measure"].includes(T.name)?!1:n(D.overlay),onPressedMoveEnd:D=>["measure"].includes(T.name)?!1:n(D.overlay),onSelected:D=>ki(D.overlay),onDeselected:()=>ki(null),onRightClick:T.onRightClick?T.onRightClick:z,onDoubleClick:T.onDoubleClick?T.onDoubleClick:z}),P||n(T))},l=x=>{var P,O,T;const $=localStorage.getItem("chartstatedata");if($){let z=JSON.parse($);z.overlays=(P=z.overlays)==null?void 0:P.filter(H=>{var U;return((U=H.value)==null?void 0:U.id)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(z)),Nn(!0)}(O=_e())==null||O.removeOverlay({id:x}),((T=Qm())==null?void 0:T.id)===x&&ki(null)},c=(x,$)=>{var O,T;const P=localStorage.getItem("chartstatedata");if(P){let z=JSON.parse(P);z.overlays=(O=z.overlays)==null?void 0:O.map(H=>{var U;return((U=H.value)==null?void 0:U.id)===x&&(H.value={...H.value,...$},H.paneId=$.paneId??H.paneId),H}),localStorage.setItem("chartstatedata",JSON.stringify(z)),Nn(!0),(T=_e())==null||T.overrideOverlay({...$,id:x})}},f=(x,$)=>{var O,T;const P=localStorage.getItem("chartstatedata");if(P){let z=JSON.parse(P);z.overlays=(O=z.overlays)==null?void 0:O.map(U=>{var I;return((I=U.value)==null?void 0:I.id)===x&&(U.value.properties={...U.value.properties,...$}),U});const H=(T=_e())==null?void 0:T.getOverlayById(x);H&&H.setProperties($,x),localStorage.setItem("chartstatedata",JSON.stringify(z)),Nn(!0)}},d=x=>{const $=[...Ym()];x.added?(i(_e(),x.name,!0,{id:"candle_pane"},!0),$.push(x.name)):(b(x.name,"candle_pane"),$.splice($.indexOf(x.name),1)),qm($)},g=x=>{const $={...Gm()};if(x.added){const P=i(_e(),x.name,!1,void 0,!0);P&&($[x.name]=P)}else x.paneId&&(b(x.name,x.paneId),delete $[x.name]);Vm($)},v=(x,$)=>{var T,z;const P=A1(),O=x.paneId==="candle_pane";P.indicators=(T=P.indicators)==null?void 0:T.map(H=>(H.name===x.indicatorName&&H.isMainPane===O&&(H.calcParams=[...$]),H)),Pi(P),Nn(!0),(z=_e())==null||z.overrideIndicator({name:x.indicatorName,calcParams:$,paneId:x.paneId})},y=(x,$,P,O)=>{var H,U;const T=A1(),z=$==="candle_pane";T.indicators=(H=T.indicators)==null?void 0:H.map(I=>(I.name===x&&I.isMainPane===z&&(I.visible=P),I)),Pi(T),Nn(!0),(U=_e())==null||U.overrideIndicator({name:x,paneId:$,visible:P,id:O})},b=(x,$,P)=>{var H;const O=_e();if(!O)return!1;let T=!1;if($&&$!=="candle_pane"&&(T=O.removeIndicator({paneId:$,name:x})),!T&&P&&(T=O.removeIndicator({id:P})),!T&&$&&(T=O.removeIndicator({paneId:$,name:x})),!T)return!1;const z=A1();return z.indicators=(H=z.indicators)==null?void 0:H.filter(U=>Uv($)?U.name!==x||U.isMainPane:!(U.name===x&&U.isMainPane)),Pi(z),Nn(!0),!0},C=(x,$)=>{document.documentElement.style.setProperty(x,$,"important");const P=document.querySelector("[data-theme]");P&&P.style.setProperty(x,$,"important")},L=x=>{var $;x.background&&C("--klinecharts-pro-pane-background",x.background),x.backgroundGradientStartColor&&C("--klinecharts-pro-pane-background-gradient-start",x.backgroundGradientStartColor),x.backgroundGradientEndColor&&C("--klinecharts-pro-pane-background-gradient-end",x.backgroundGradientEndColor),($=x.separator)!=null&&$.color&&C("--klinecharts-pro-border-color",x.separator.color)};return{createIndicator:i,modifyIndicator:v,popIndicator:b,syncIndiObject:e,syncObject:n,pushOverlay:s,modifyOverlay:c,modifyOverlayProperties:f,popOverlay:l,pushMainIndicator:d,pushSubIndicator:g,restoreChartState:async x=>{const $=T=>{const z=JSON.parse(T);z.figures,z.overlays&&z.overlays.forEach(H=>{s(H.value,H.paneId,!0)})},P=localStorage.getItem("chartstatedata");P&&$(P);const O=JSON.parse(P)??{};x&&(L(x),O.styleObj||(O.styleObj=x,localStorage.setItem("chartstatedata",JSON.stringify(O)))),O.styleObj&&f9(O.styleObj)},restoreIndicators:o,setIndicatorVisible:y}};function Vv(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.span=="number"&&Number.isFinite(n.span)&&typeof n.type=="string"}function P9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch{return{}}}function jv(e){localStorage.setItem(Qr,JSON.stringify(e))}function Qv(e,n){return!e||!n?!1:e.span===n.span&&e.type===n.type}function ko(e,n){return n?e.find(i=>Qv(i,n))??null:null}function Xv(){const e=P9();return Vv(e.period)?{span:e.period.span,type:e.period.type,text:typeof e.period.text=="string"?e.period.text:""}:null}function I9(e){const n=P9();n.period={span:e.span,type:e.type,text:e.text},jv(n)}function Jv(e,n){const i=ko(e,Xv());if(i)return i;const o=ko(e,n);return o||(e[0]??n)}function O9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch{return{}}}function eC(e){localStorage.setItem(Qr,JSON.stringify(e))}function tC(){const e=O9();return typeof e.timezone=="string"&&e.timezone.length>0?e.timezone:null}function E9(e){const n=O9();n.timezone=e,eC(n)}function nC(e){return tC()??e}function rC(e,n){let i=null;const o=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:f=>{const g=f.detail;if(!!(g!=null&&g.visible)){o(),n({visible:!0,order:(g==null?void 0:g.order)??null,x:(g==null?void 0:g.anchorX)??null,y:(g==null?void 0:g.anchorY)??null});return}o(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:o,setExclusiveHover:f=>{o(),n({visible:!0,order:f.order,x:f.anchorX??null,y:f.anchorY??null})},resetHoverToHidden:()=>{o(),n({visible:!1,order:null,x:null,y:null})}}}function iC(e,n){const i=[];let o=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{o+=1;const c=o;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==o)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var oC=Y('<i class="icon-close klinecharts-pro-load-icon">'),aC=Y("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),sC=Y("<div class=klinecharts-pro-alert-detail>");const{createIndicator:lC,modifyIndicator:cC,pushOverlay:uC,popIndicator:fC,restoreChartState:dC,restoreIndicators:hC,setIndicatorVisible:gC}=Gv(),pC=[0,120,360,900],_C=120;function mC(e){return{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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const yC=e=>{let n,i=null,o;const[s,l]=Q(e.theme),[c,f]=Q(e.locale),[d,g]=Q(!1),[v,y]=Q([...e.mainIndicators]),[b,C]=Q({}),[L,k]=Q(!1),[x,$]=Q(!1),[P,O]=Q(!1),[T,z]=Q(),[H,U]=Q(""),[I,D]=Q(e.drawingBarVisible),[V,j]=Q([...e.alerts??[]]),[te,ne]=Q(null),[Ie,ot]=Q(!1),[xt,wt]=Q(!1),[Ye,ft]=Q(null),[$e,oe]=Q({x:null,y:null});let Ae=null,dt=!1,ae=null,Me=!1,ue;const[Ee,ut]=Q(T9),je=B=>{const W=ko(e.periods,B)??B;l9(W),I9(W)},$t=Jv(e.periods,e.period),gn=nC(e.timezone),[Rt,pn]=Q({key:gn,text:$o(gn,e.locale)}),kn=B=>{pn({key:B,text:$o(B,c())}),E9(B)},_t=async B=>{var W;return await((W=e.onRemoveAlert)==null?void 0:W.call(e,B))??!0};l6({onRemove:B=>{_t(B)}}),l9($t),I9($t),E9(gn),xo(e.symbol);const Pe=rC(_C,B=>{wt(B.visible),ft(B.order),oe({x:B.x,y:B.y})});let ht=null;const Qe=B=>{const W=B;if(!W)return;const de=_e(),X=n,we=X==null?void 0:X.closest(".klinecharts-pro");if(!de||!we||W.paneId!=="candle_pane"||typeof W.x!="number"||typeof W.y!="number")return;const ee=Nv(de,W.x,W.y);if(ee){if(ee.overlayId===ht)return;ht=ee.overlayId,Pe.setExclusiveHover({order:ee.order,anchorX:ee.anchorX,anchorY:ee.anchorY});return}ht!=null&&(ht=null,Pe.resetHoverToHidden())},Lt=iC(()=>Hn(_e()),pC),Bt=Kv({getApi:()=>_e(),mainIndicators:v,setMainIndicators:y,subIndicators:b,setSubIndicators:C,indicatorSettingModalParams:Ee,setIndicatorSettingModalParams:ut,createIndicator:(B,W,de,X)=>lC(B,W,de,X,!0),popIndicator:fC,setIndicatorVisible:gC,modifyIndicator:cC}),qe=B=>{const W=B.detail,de=(W==null?void 0:W.sourceContainer)??null,X=n==null?void 0:n.closest(".klinecharts-pro");X&&(de&&de!==X||W!=null&&W.alert&&ne(W.alert))},et=B=>{const W=B.detail,de=(W==null?void 0:W.sourceContainer)??null,X=n==null?void 0:n.closest(".klinecharts-pro");X&&(de&&de!==X||Pe.onEvent(B))},tn=()=>{if(dt)return;dt=!0;const B=i;B==null||B.unsubscribeAction("onCrosshairChange",Qe),ht=null,Pe.clear(),Lt.clear(),Ae!=null&&(window.cancelAnimationFrame(Ae),Ae=null);const W=n==null?void 0:n.closest(".klinecharts-pro");W==null||W.removeEventListener(Y1,et),W==null||W.removeEventListener(m1,qe),window.removeEventListener(Y1,et),window.removeEventListener(m1,qe),window.removeEventListener("resize",nr),n&&fe.dispose(n),_e()===B&&c9(null),i=null},tr={setTheme:l,getTheme:()=>s(),setStyles:f9,getStyles:()=>u9()??{},setLocale:f,getLocale:()=>c(),setTimezone:kn,getTimezone:()=>Rt().key,setSymbol:xo,getSymbol:()=>$1(),setPeriod:je,getPeriod:()=>L1(),getInstanceApi:()=>_e(),resize:()=>{var B;return(B=_e())==null?void 0:B.resize()},dispose:()=>{tn()},setPositions:B=>{rv(B,_e())},setLiqPrice:B=>{iv(B,_e())},setOpenOrders:B=>{ov(B,_e())},setHisOrders:B=>{av(B,_e())},setAlerts:B=>{j([...B]),$9(B,_e())}};e.ref(tr);const nr=()=>{Ae==null&&(Ae=window.requestAnimationFrame(()=>{var B;Ae=null,(B=_e())==null||B.resize()}))},_n=()=>{Lt.schedule()};return P0(()=>{const B=n==null?void 0:n.closest(".klinecharts-pro");B==null||B.addEventListener(Y1,et),B==null||B.addEventListener(m1,qe),window.addEventListener(Y1,et),window.addEventListener(m1,qe),window.addEventListener("resize",nr);const W=So.init(n,{formatter:{formatDate:X=>{switch(L1().type){case"minute":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"HH:mm"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm");case"hour":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"MM-DD HH:mm"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD");case"month":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD");case"year":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD")}return fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm")}}});if(i=W,c9(W),W){Hm(e.rootElementId);const X=W.getDom("candle_pane","main");if(X){let tt=document.createElement("div");if(tt.className="klinecharts-pro-watermark",fe.utils.isString(e.watermark)){const nt=e.watermark.replace(/(^\s*)|(\s*$)/g,"");tt.innerHTML=nt}else tt.appendChild(e.watermark);X.appendChild(tt)}const we=W.getDom("candle_pane","yAxis");o=document.createElement("span"),o.className="klinecharts-pro-price-unit",we==null||we.appendChild(o),W.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),W.setBarSpace(400),W.subscribeAction("onCrosshairFeatureClick",tt=>{}),W.subscribeAction("onIndicatorTooltipFeatureClick",Bt.onIndicatorTooltipFeatureClick),W.subscribeAction("onCandleTooltipFeatureClick",tt=>{}),W.subscribeAction("onZoom",tt=>{}),W.subscribeAction("onCrosshairChange",Qe),dC(e.overrides),ev(W),S1(W),$9(e.alerts??[],W);const ee=$1();ee!=null&&ee.priceCurrency?(o.innerHTML=ee==null?void 0:ee.priceCurrency.toLocaleUpperCase(),o.style.display="flex"):o.style.display="none",W.setSymbol({ticker:ee.ticker,pricePrecision:(ee==null?void 0:ee.pricePrecision)??2,volumePrecision:(ee==null?void 0:ee.volumePrecision)??0}),W.setPeriod(L1()),W.setDataLoader(e.dataloader)}const de=i;if(de){const X=hC(de,e.mainIndicators,e.subIndicators);y(X.mainIndicators),C(X.subIndicators)}}),Sr(()=>{tn()}),Mt(B=>{var Wt,An,Wn,t1,Ii,Oi,Ei;const W=$1(),de=L1(),X=_e();if(!W||!de)return{symbol:W,period:de};const we=B!==void 0&&(B.period.span!==de.span||B.period.type!==de.type||B.period.text!==de.text),ee=B!==void 0&&(((Wt=B.symbol)==null?void 0:Wt.ticker)!==W.ticker||(((An=B.symbol)==null?void 0:An.pricePrecision)??2)!==(W.pricePrecision??2)||(((Wn=B.symbol)==null?void 0:Wn.volumePrecision)??0)!==(W.volumePrecision??0)),tt=B!==void 0&&((t1=B.symbol)==null?void 0:t1.ticker)===W.ticker&&((((Ii=B.symbol)==null?void 0:Ii.pricePrecision)??2)!==(W.pricePrecision??2)||(((Oi=B.symbol)==null?void 0:Oi.volumePrecision)??0)!==(W.volumePrecision??0));return B!==void 0&&((Ei=B.symbol)==null?void 0:Ei.ticker)!==W.ticker&&ki(null),we&&(X==null||X.setPeriod(de),_n()),we&&!ee||(X==null||X.setSymbol({...W,pricePrecision:W.pricePrecision??2,volumePrecision:W.volumePrecision??0}),_n(),tt&&(X==null||X.resize())),Hn(_e()),{symbol:W,period:de}}),Mt(()=>{const B=_e();if(!B)return;const W=s();B.setStyles(W);const de=W==="dark"?"#929AA5":"#76808F";ae!==de&&(ae=de,B.setStyles(mC(de))),Hn(i??B)}),Mt(()=>{var B;(B=_e())==null||B.setLocale(c())}),Mt(()=>{const B=Rt(),W=$o(B.key,c());B.text!==W&&pn({...B,text:W})}),Mt(()=>{var B;(B=_e())==null||B.setTimezone(Rt().key)}),Mt(()=>{const B=_e();!B||Me||(z(cg(B.getStyles())),Me=!0)}),Mt(()=>{const B=_e();if(!B)return;const W=u9();!W||ue===W||(ue=W,B.setStyles(W))}),Mt(()=>{const B=n;if(!B||!x()&&!P()&&!te())return;const W=(ee,tt)=>{if(!ee||!(ee instanceof Element)||tt===0)return!1;let nt=ee;for(;nt;){const Wt=window.getComputedStyle(nt);if((Wt.overflowY==="auto"||Wt.overflowY==="scroll"||Wt.overflowY==="overlay")&&nt.scrollHeight>nt.clientHeight)return tt>0?nt.scrollTop+nt.clientHeight<nt.scrollHeight:nt.scrollTop>0;nt=nt.parentElement}return!1};let de=null;const X=ee=>{de=ee.touches.length>0?ee.touches[0].clientY:null},we=ee=>{if(ee instanceof WheelEvent){if(W(ee.target,ee.deltaY))return}else{if(ee.touches.length===0){ee.preventDefault(),ee.stopPropagation();return}const tt=ee.touches[0].clientY;if(de!=null){const nt=de-tt;if(W(ee.target,nt)){de=tt;return}}de=tt}ee.preventDefault(),ee.stopPropagation()};B.addEventListener("touchstart",X,{passive:!0}),B.addEventListener("wheel",we,{passive:!1}),B.addEventListener("touchmove",we,{passive:!1}),Sr(()=>{B.removeEventListener("touchstart",X),B.removeEventListener("wheel",we),B.removeEventListener("touchmove",we)})}),[oC(),q(Oe,{get when(){return Ie()},get children(){return q(Lv,{get locale(){return c()},get datafeed(){return e.dataloader},onSymbolSelected:B=>{xo(B)},onClose:()=>{ot(!1)}})}}),q(Oe,{get when(){return d()},get children(){return q(Bb,{get locale(){return c()},get mainIndicators(){return v()},get subIndicators(){return b()},onClose:()=>{g(!1)},get onMainIndicatorChange(){return Bt.onMainIndicatorChange},get onSubIndicatorChange(){return Bt.onSubIndicatorChange}})}}),q(Oe,{get when(){return L()},get children(){return q(Nb,{get locale(){return c()},get timezone(){return Rt()},onClose:()=>{k(!1)},onConfirm:B=>{kn(B.key)}})}}),q(Oe,{get when(){return P()},get children(){return q(Bv,{get locale(){return c()},get alerts(){return V()},onClose:()=>{O(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:_t})}}),q(Oe,{get when(){return te()},children:B=>q(Ln,{get title(){return m("alert_detail",c())},width:400,height:260,onClose:()=>{ne(null)},get children(){var W=sC();return R(W,q(S9,{get locale(){return c()},get alert(){return B()}})),W}})}),q(Oe,{get when(){return x()},get children(){return q(gv,{get locale(){return c()},get currentStyles(){return fe.utils.clone(_e().getStyles())},onClose:()=>{$(!1)},onChange:B=>{var W;(W=_e())==null||W.setStyles(B)},onRestoreDefault:B=>{var de;const W={};B.forEach(X=>{const we=X.key;C1(W,we,fe.utils.formatValue(T(),we))}),(de=_e())==null||de.setStyles(W)}})}}),q(Oe,{get when(){return H().length>0},get children(){return q(_v,{get locale(){return c()},get url(){return H()},onClose:()=>{U("")}})}}),q(Oe,{get when(){return Ee().visible},get children(){return q(vv,{get locale(){return c()},get params(){return Ee()},onClose:()=>{ut(T9)},get onConfirm(){return Bt.onIndicatorSettingConfirm}})}}),q(Oe,{get when(){return Ze(()=>!!xt())()&&!!Ye()},get children(){return q(Nm,{get locale(){return c()},get order(){return Ye()},get formattedTime(){return I2(Ye().timestamp,c(),Rt().key)},get anchorX(){return $e().x},get anchorY(){return $e().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),q(iy,{get locale(){return c()},get symbol(){return $1()},get spread(){return I()},get period(){return L1()},get periods(){return e.periods},onMenuClick:async()=>{var B;try{await C6(()=>D(!I())),(B=_e())==null||B.resize()}catch{}},onSymbolClick:()=>{ot(!Ie())},onPeriodChange:je,onIndicatorClick:()=>{g(B=>!B)},onTimezoneClick:()=>{k(B=>!B)},onAlertClick:()=>{O(!0)},onSettingClick:()=>{$(B=>!B)},onScreenshotClick:()=>{if(_e()){const B=_e().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");U(B)}}}),(()=>{var B=aC(),W=B.firstChild;R(B,q(Oe,{get when(){return Zm()},get children(){return q(gl,{})}}),W),R(B,q(Oe,{get when(){return I()},get children(){return q(Db,{get locale(){return c()},onDrawingItemClick:X=>{uC(X,"candle_pane")},onModeChange:X=>{var we;(we=_e())==null||we.overrideOverlay({groupId:"drawing_tools",mode:X})},onLockChange:X=>{var we;(we=_e())==null||we.overrideOverlay({groupId:"drawing_tools",lock:X})},onVisibleChange:X=>{var we;(we=_e())==null||we.overrideOverlay({groupId:"drawing_tools",visible:X})},onRemoveClick:X=>{var we;(we=_e())==null||we.removeOverlay({groupId:X})}})}}),W);var de=n;return typeof de=="function"?ii(de,W):n=W,Te(X=>{var we=e.overrides.backgroundType??"solid",ee=I();return we!==X.e&&Je(W,"data-pane-style",X.e=we),ee!==X.t&&Je(W,"data-drawing-bar-visible",X.t=ee),X},{e:void 0,t:void 0}),B})()]};class bC{constructor(n){xn(this,"_datafeed");xn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:o,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,s9(!0);const d=o??new Date().getTime();await(async()=>{const[v,y]=this.adjustFromTo(f,d,500),b=await this._datafeed.getHistoryKLineData(s,f,v,y);c(b,b.length>0),this._loading=!1,s9(!1)})()}subscribeBar(n){const{symbol:i,period:o,callback:s}=n;this._datafeed.subscribe(i,o,s)}unsubscribeBar(n){const{symbol:i,period:o}=n;this._datafeed.unsubscribe(i,o)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,o){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-o*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-o*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-o*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-o*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var vC=Y('<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 CC=vC();class xC{constructor(n){xn(this,"_container");xn(this,"_chartApi",null);if(fe.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new bC(n.datafeed);I6(()=>{const o=this;return q(yC,{ref:s=>{o._chartApi=s},get watermark(){return n.watermark??CC},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.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 n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??[]},get subIndicators(){return n.subIndicators??[]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get onAddAlert(){return n.onAddAlert??(()=>!0)},get onRemoveAlert(){return n.onRemoveAlert??(()=>!0)},get alerts(){return n.alerts??[]},get rootElementId(){var s;return n.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&fe.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return _e()}resize(){_e().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setAlerts(n){var i;(i=this._chartApi)==null||i.setAlerts(n)}}const vD="";console.log("[@wangliang139/klinecharts-pro] v0.2.28"),f6.forEach(e=>{fe.registerOverlay(e)}),At.DefaultDatafeed=d6,At.KLineChartPro=xC,At.loadLocales=W2,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})});
|
|
39
|
+
*/const Ul=.027,um=5e-4,fm=.1,Zl=1.14,Li=.022,Yl=1.414,dm=(e,n)=>{e=new G(e),n=new G(n),e.alpha()<1&&(e=Hr(n,e,e.alpha(),"rgb"));const i=ql(...e.rgb()),o=ql(...n.rgb()),s=i>=Li?i:i+Math.pow(Li-i,Yl),l=o>=Li?o:o+Math.pow(Li-o,Yl),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<um?0:s<l?c*Zl:f*Zl;return(Math.abs(d)<fm?0:d>0?d-Ul:d+Ul)*100};function ql(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Bn,pow:st,min:hm,max:gm,atan2:Gl,abs:Vl,cos:Si,sin:jl,exp:pm,PI:Ql}=Math;function _m(e,n,i=1,o=1,s=1){var l=function(ht){return 360*ht/(2*Ql)},c=function(ht){return 2*Ql*ht/360};e=new G(e),n=new G(n);const[f,d,g]=Array.from(e.lab()),[v,y,b]=Array.from(n.lab()),C=(f+v)/2,L=Bn(st(d,2)+st(g,2)),k=Bn(st(y,2)+st(b,2)),x=(L+k)/2,$=.5*(1-Bn(st(x,7)/(st(x,7)+st(25,7)))),P=d*(1+$),O=y*(1+$),T=Bn(st(P,2)+st(g,2)),z=Bn(st(O,2)+st(b,2)),W=(T+z)/2,U=l(Gl(g,P)),I=l(Gl(b,O)),R=U>=0?U:U+360,V=I>=0?I:I+360,j=Vl(R-V)>180?(R+V+360)/2:(R+V)/2,ee=1-.17*Si(c(j-30))+.24*Si(c(2*j))+.32*Si(c(3*j+6))-.2*Si(c(4*j-63));let te=V-R;te=Vl(te)<=180?te:V<=R?te+360:te-360,te=2*Bn(T*z)*jl(c(te)/2);const Oe=v-f,it=z-T,wt=1+.015*st(C-50,2)/Bn(20+st(C-50,2)),$t=1+.045*W,qe=1+.015*W*ee,dt=30*pm(-st((j-275)/25,2)),ie=-(2*Bn(st(W,7)/(st(W,7)+st(25,7))))*jl(2*c(dt)),Me=Bn(st(Oe/(i*wt),2)+st(it/(o*$t),2)+st(te/(s*qe),2)+ie*(it/(o*$t))*(te/(s*qe)));return gm(0,hm(100,Me))}function mm(e,n,i="lab"){e=new G(e),n=new G(n);const o=e.get(i),s=n.get(i);let l=0;for(let c in o){const f=(o[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const ym=(...e)=>{try{return new G(...e),!0}catch{return!1}},bm={cool(){return $i([ge.hsl(180,1,.9),ge.hsl(250,.7,.4)])},hot(){return $i(["#000","#f00","#ff0","#fff"]).mode("rgb")}},So={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"]},Xl=Object.keys(So),Jl=new Map(Xl.map(e=>[e.toLowerCase(),e])),vm=typeof Proxy=="function"?new Proxy(So,{get(e,n){const i=n.toLowerCase();if(Jl.has(i))return e[Jl.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(Xl)}}):So,Cm=(...e)=>{e=me(e,"cmyk");const[n,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:e9}=Math,xm=(...e)=>{let[n,i,o]=me(e,"rgb");n=n/255,i=i/255,o=o/255;const s=1-e9(n,e9(i,o)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-o-s)*l;return[c,f,d,s]};G.prototype.cmyk=function(){return xm(this._rgb)},Object.assign(ge,{cmyk:(...e)=>new G(...e,"cmyk")}),pe.format.cmyk=Cm,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),$e(e)==="array"&&e.length===4)return"cmyk"}});const wm=(...e)=>{const n=me(e,"hsla");let i=Nr(e)||"lsa";return n[0]=Qt(n[0]||0)+"deg",n[1]=Qt(n[1]*100)+"%",n[2]=Qt(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},$m=(...e)=>{const n=me(e,"lab");let i=Nr(e)||"lab";return n[0]=Qt(n[0])+"%",n[1]=Qt(n[1]),n[2]=Qt(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},Lm=(...e)=>{const n=me(e,"lch");let i=Nr(e)||"lab";return n[0]=Qt(n[0])+"%",n[1]=Qt(n[1]),n[2]=isNaN(n[2])?"none":Qt(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},Sm=(...e)=>{const n=me(e,"lab");return n[0]=Qt(n[0]*100)+"%",n[1]=co(n[1]),n[2]=co(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},t9=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),[l,c,f]=xo(n,i,o),[d,g,v]=Dl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]},km=(...e)=>{const n=me(e,"lch");return n[0]=Qt(n[0]*100)+"%",n[1]=co(n[1]),n[2]=isNaN(n[2])?"none":Qt(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:ko}=Math,Am=(...e)=>{const n=me(e,"rgba");let i=Nr(e)||"rgb";if(i.substr(0,3)==="hsl")return wm(Bl(n),i);if(i.substr(0,3)==="lab"){const o=w1();Rn("d50");const s=$m(go(n),i);return Rn(o),s}if(i.substr(0,3)==="lch"){const o=w1();Rn("d50");const s=Lm(yo(n),i);return Rn(o),s}return i.substr(0,5)==="oklab"?Sm(xo(n)):i.substr(0,5)==="oklch"?km(t9(n)):(n[0]=ko(n[0]),n[1]=ko(n[1]),n[2]=ko(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},n9=(...e)=>{e=me(e,"lch");const[n,i,o,...s]=e,[l,c,f]=El(n,i,o),[d,g,v]=Co(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]},Fn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,dn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,ki=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Xt=/\s*/.source,Yr=/\s+/.source,Ao=/\s*,\s*/.source,Ai=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,qr=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,r9=new RegExp("^rgba?\\("+Xt+[Fn,Fn,Fn].join(Yr)+qr+"\\)$"),i9=new RegExp("^rgb\\("+Xt+[Fn,Fn,Fn].join(Ao)+Xt+"\\)$"),o9=new RegExp("^rgba\\("+Xt+[Fn,Fn,Fn,dn].join(Ao)+Xt+"\\)$"),a9=new RegExp("^hsla?\\("+Xt+[Ai,ki,ki].join(Yr)+qr+"\\)$"),s9=new RegExp("^hsl?\\("+Xt+[Ai,ki,ki].join(Ao)+Xt+"\\)$"),l9=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,c9=new RegExp("^lab\\("+Xt+[dn,dn,dn].join(Yr)+qr+"\\)$"),u9=new RegExp("^lch\\("+Xt+[dn,dn,Ai].join(Yr)+qr+"\\)$"),f9=new RegExp("^oklab\\("+Xt+[dn,dn,dn].join(Yr)+qr+"\\)$"),d9=new RegExp("^oklch\\("+Xt+[dn,dn,Ai].join(Yr)+qr+"\\)$"),{round:h9}=Math,Gr=e=>e.map((n,i)=>i<=2?pr(h9(n),0,255):n),lt=(e,n=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),Tt=(e,n)=>e==="none"?n:e,Mo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(pe.format.named)try{return pe.format.named(e)}catch{}if((n=e.match(r9))||(n=e.match(i9))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+lt(Tt(i[s],0),0,255);i=Gr(i);const o=n[4]!==void 0?+lt(n[4],0,1):1;return i[3]=o,i}if(n=e.match(o9)){const i=n.slice(1,5);for(let o=0;o<4;o++)i[o]=+lt(i[o],0,255);return i}if((n=e.match(a9))||(n=e.match(s9))){const i=n.slice(1,4);i[0]=+Tt(i[0].replace("deg",""),0),i[1]=+lt(Tt(i[1],0),0,100)*.01,i[2]=+lt(Tt(i[2],0),0,100)*.01;const o=Gr(vo(i)),s=n[4]!==void 0?+lt(n[4],0,1):1;return o[3]=s,o}if(n=e.match(l9)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const o=vo(i);for(let s=0;s<3;s++)o[s]=h9(o[s]);return o[3]=+n[4],o}if(n=e.match(c9)){const i=n.slice(1,4);i[0]=lt(Tt(i[0],0),0,100),i[1]=lt(Tt(i[1],0),-125,125,!0),i[2]=lt(Tt(i[2],0),-125,125,!0);const o=w1();Rn("d50");const s=Gr(fo(i));Rn(o);const l=n[4]!==void 0?+lt(n[4],0,1):1;return s[3]=l,s}if(n=e.match(u9)){const i=n.slice(1,4);i[0]=lt(i[0],0,100),i[1]=lt(Tt(i[1],0),0,150,!1),i[2]=+Tt(i[2].replace("deg",""),0);const o=w1();Rn("d50");const s=Gr(mo(i));Rn(o);const l=n[4]!==void 0?+lt(n[4],0,1):1;return s[3]=l,s}if(n=e.match(f9)){const i=n.slice(1,4);i[0]=lt(Tt(i[0],0),0,1),i[1]=lt(Tt(i[1],0),-.4,.4,!0),i[2]=lt(Tt(i[2],0),-.4,.4,!0);const o=Gr(Co(i)),s=n[4]!==void 0?+lt(n[4],0,1):1;return o[3]=s,o}if(n=e.match(d9)){const i=n.slice(1,4);i[0]=lt(Tt(i[0],0),0,1),i[1]=lt(Tt(i[1],0),0,.4,!1),i[2]=+Tt(i[2].replace("deg",""),0);const o=Gr(n9(i)),s=n[4]!==void 0?+lt(n[4],0,1):1;return o[3]=s,o}};Mo.test=e=>r9.test(e)||a9.test(e)||c9.test(e)||u9.test(e)||f9.test(e)||d9.test(e)||i9.test(e)||o9.test(e)||s9.test(e)||l9.test(e)||e==="transparent",G.prototype.css=function(e){return Am(this._rgb,e)};const Mm=(...e)=>new G(...e,"css");ge.css=Mm,pe.format.css=Mo,pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&$e(e)==="string"&&Mo.test(e))return"css"}}),pe.format.gl=(...e)=>{const n=me(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const Tm=(...e)=>new G(...e,"gl");ge.gl=Tm,G.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},G.prototype.hex=function(e){return Pl(this._rgb,e)};const Pm=(...e)=>new G(...e,"hex");ge.hex=Pm,pe.format.hex=Tl,pe.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&$e(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Mi}=Math,g9=e=>{const n=e/100;let i,o,s;return n<66?(i=255,o=n<6?0:-155.25485562709179-.44596950469579133*(o=n-2)+104.49216199393888*Mi(o),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*Mi(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*Mi(i),o=325.4494125711974+.07943456536662342*(o=n-50)-28.0852963507957*Mi(o),s=255),[i,o,s,1]},{round:Im}=Math,Om=(...e)=>{const n=me(e,"rgb"),i=n[0],o=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=g9(f);d[2]/d[0]>=o/i?l=f:s=f}return Im(f)};G.prototype.temp=G.prototype.kelvin=G.prototype.temperature=function(){return Om(this._rgb)};const To=(...e)=>new G(...e,"temp");Object.assign(ge,{temp:To,kelvin:To,temperature:To}),pe.format.temp=pe.format.kelvin=pe.format.temperature=g9,G.prototype.oklch=function(){return t9(this._rgb)},Object.assign(ge,{oklch:(...e)=>new G(...e,"oklch")}),pe.format.oklch=n9,pe.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),$e(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(ge,{analyze:Hl,average:B_,bezier:W_,blend:fn,brewer:vm,Color:G,colors:Kr,contrast:cm,contrastAPCA:dm,cubehelix:tm,deltaE:_m,distance:mm,input:pe,interpolate:Hr,limits:Wl,mix:Hr,random:om,scale:$i,scales:bm,valid:ym});var Em=Y("<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"),Dm=Y("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),Rm=Y("<div class=each_line>"),Bm=Y("<div>"),Fm=Y("<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)>+"),zm=Y('<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 Nm=e=>{const n=String(e.value).includes("rgba")?ge(String(e.value)).alpha()*100:100,[i,o]=Q(!1),[s,l]=Q(n),[c,f]=Q(e.value),[d,g]=Q(e.value),[v,y]=Q(!1),[b,C]=Q(!1),[L,k]=Q(e.value??"#000000"),[x,$]=Q(0),[P,O]=Q(1),[T,z]=Q(.5),[W,U]=Q(!1),I=[["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)"]],R=oe=>{try{return ge(oe).hex()}catch{return String(oe||"#000000")}},V=oe=>{const Te=R(oe),[ce,Re,ct]=ge(Te).hsl();$(Number.isFinite(ce)?Math.round(ce):0),O(Number.isFinite(Re)?Re:1),z(Number.isFinite(ct)?ct:.5),k(Te)},j=()=>{o(!1),C(!1)},ee=()=>{var oe;f(e.value),g(e.value),(oe=e.onChange)==null||oe.call(e,e.value),j()},te=oe=>{var Re;f(oe);const Te=s()/100,ce=ge(oe).alpha(Te).css();g(ce),(e.reactiveChange??!0)&&((Re=e.onChange)==null||Re.call(e,ce))},Oe=()=>{var ce;const oe=s()/100,Te=ge(c()).alpha(oe).css();g(Te),(e.reactiveChange??!0)&&((ce=e.onChange)==null||ce.call(e,Te))},it=oe=>{l(oe.target.value),Oe()},wt=()=>{const oe=c()??e.value??"#000000";V(String(oe)),C(!0),o(!0)},$t=oe=>{$(oe);const Te=ge.hsl(oe,P(),T()).hex();k(Te)},qe=oe=>{let Te=oe.trim();Te.startsWith("#")||(Te="#"+Te);try{const ce=ge(Te).hex(),[Re,ct,Qe]=ge(ce).hsl();$(Number.isFinite(Re)?Math.round(Re):x()),O(Number.isFinite(ct)?ct:P()),z(Number.isFinite(Qe)?Qe:T()),k(ce)}catch{k(oe)}},dt=oe=>{var Te,ce;(ce=(Te=oe.target).setPointerCapture)==null||ce.call(Te,oe.pointerId),U(!0),Me(oe)},Le=oe=>{W()&&Me(oe)},ie=oe=>{var Te,ce;try{(ce=(Te=oe.target).releasePointerCapture)==null||ce.call(Te,oe.pointerId)}catch{}U(!1)},Me=oe=>{const ce=oe.currentTarget.getBoundingClientRect(),Re=Math.min(Math.max(0,oe.clientX-ce.left),ce.width),ct=Math.min(Math.max(0,oe.clientY-ce.top),ce.height),Qe=ce.width?Re/ce.width:0,yt=ce.height?1-ct/ce.height:.5;O(Qe),z(yt);const Ht=ge.hsl(x(),Qe,yt).hex();k(Ht)},ht=()=>{try{const oe=R(L());I[0].unshift(oe),te(oe),C(!1)}catch{}};return[Ye(()=>Ye(()=>!!i())()&&(()=>{var oe=Dm();return oe.$$click=()=>{ee()},oe})()),(()=>{var oe=Em(),Te=oe.firstChild,ce=Te.nextSibling,Re=ce.firstChild,ct=Re.nextSibling,Qe=ct.firstChild,yt=Qe.nextSibling,Ht=yt.firstChild,hn=ct.nextSibling,gn=hn.nextSibling,Sn=gn.firstChild,ut=Sn.nextSibling;return Te.$$click=Pe=>{o(!0)},B(ce,(()=>{var Pe=Ye(()=>!b());return()=>Pe()&&I.map(Lt=>(()=>{var Xe=Rm();return B(Xe,()=>Lt.map(_t=>(()=>{var Dt=Bm();return Dt.$$click=Ge=>{Ge.preventDefault(),te(_t)},Ie(Ge=>{var ft=`each_color ${_t==c()?"selected":""}`,pn=`background-color: ${_t}`;return ft!==Ge.e&&Kt(Dt,Ge.e=ft),Ge.t=je(Dt,pn,Ge.t),Ge},{e:void 0,t:void 0}),Dt})())),Xe})())})(),Re),B(ce,(()=>{var Pe=Ye(()=>!b());return()=>Pe()&&(()=>{var Lt=Fm(),Xe=Lt.firstChild;return Xe.$$click=_t=>{_t.stopPropagation(),wt()},Lt})()})(),Re),B(ce,(()=>{var Pe=Ye(()=>!!b());return()=>Pe()&&(()=>{var Lt=zm(),Xe=Lt.firstChild,_t=Xe.firstChild,Dt=_t.nextSibling,Ge=Xe.nextSibling,ft=Ge.firstChild,pn=ft.nextSibling,Hn=pn.nextSibling,nr=Hn.nextSibling,D=Ge.nextSibling,N=D.firstChild,de=N.nextSibling,X=D.nextSibling,xe=X.firstChild,ue=xe.nextSibling;return Dt.$$input=ye=>qe(ye.currentTarget.value),Ge.$$pointerup=ye=>ie(ye),Ge.$$pointermove=ye=>Le(ye),Ge.$$pointerdown=ye=>dt(ye),N.$$input=ye=>$t(Number(ye.currentTarget.value)),B(de,x),xe.$$click=()=>C(!1),ue.$$click=ht,Ie(ye=>{var Je=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${L()}`,en=`linear-gradient(to right, hsl(${x()}, 0%, 50%), hsl(${x()}, 100%, 50%))`,kn=`${Math.round(P()*100)}%`,Wn=`${Math.round((1-T())*100)}%`,Un=L();return ye.e=je(_t,Je,ye.e),en!==ye.t&&Ar(ft,"background",ye.t=en),kn!==ye.a&&Ar(nr,"left",ye.a=kn),Wn!==ye.o&&Ar(nr,"top",ye.o=Wn),Un!==ye.i&&Ar(nr,"background",ye.i=Un),ye},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Ie(()=>Dt.value=L()),Ie(()=>N.value=x()),Lt})()})(),Re),Qe.addEventListener("blur",()=>{y(!1)}),Qe.addEventListener("focus",()=>{y(!0)}),Qe.$$input=Pe=>{Pe.preventDefault,it(Pe)},B(yt,s,Ht),Sn.$$click=ee,ut.$$click=()=>{var Pe;e.reactiveChange===!1&&((Pe=e.onChange)==null||Pe.call(e,d())),j()},Ie(Pe=>{var Lt=`width: 120px; background-color: ${d()}`,Xe=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,_t=`background-color: ${d()}; border: 1px solid ${c()}`;return Pe.e=je(oe,Lt,Pe.e),Xe!==Pe.t&&Kt(oe,Pe.t=Xe),Pe.a=je(Qe,_t,Pe.a),Pe},{e:void 0,t:void 0,a:void 0}),Ie(()=>Qe.value=s()),oe})()]};Et(["click","input","pointerdown","pointermove","pointerup"]);var Km=Y("<div><div></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span>");const Vr={display:"flex","justify-content":"space-between",gap:"8px"},jr={"text-align":"right"},Hm=20;function Wm(e,n,i,o,s,l,c,f,d){const g=s+d,v=l+d,y=c-d,b=f-d;return e>=g&&n>=v&&e+i<=y&&n+o<=b}function Um(e,n,i,o,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+o)),g=s-f,v=l-d;return g*g+v*v<c*c}function Zm(e,n,i,o,s,l,c,f,d,g){const v=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-o},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-o}};for(const $ of v){const{left:P,top:O}=y[$];if(Wm(P,O,i,o,s,l,c,f,d))return{left:P,top:O}}const b=s+d,C=l+d,L=c-i-d,k=f-o-d,x=8;for(const $ of v){const P=y[$],O=Math.min(Math.max(b,P.left),Math.max(b,L)),T=Math.min(Math.max(C,P.top),Math.max(C,k));if(!Um(O,T,i,o,e,n,x))return{left:O,top:T}}return{left:Math.min(Math.max(b,y.topRight.left),Math.max(b,L)),top:Math.min(Math.max(C,y.topRight.top),Math.max(C,k))}}const Ym=e=>{const n=()=>e.order.isBuy,[o,s]=Q(),[l,c]=Q({w:220,h:196});Nt(()=>{e.order,e.formattedTime;const y=o();if(!y)return;const b=()=>{const L=y.getBoundingClientRect();L.width>0&&L.height>0&&c({w:L.width,h:L.height})};b();const C=new ResizeObserver(b);C.observe(y),Sr(()=>C.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,v=Mt(()=>{var W;const y=l().w,b=l().h,C=(W=e.clipElement)==null?void 0:W.getBoundingClientRect(),L=(C==null?void 0:C.left)??0,k=(C==null?void 0:C.top)??0,x=(C==null?void 0:C.right)??d,$=(C==null?void 0:C.bottom)??g,P=typeof e.anchorX=="number"&&typeof e.anchorY=="number",O=P?e.anchorX:x-y-16,T=P?e.anchorY:k+84,z=P?Zm(O,T,y,b,L,k,x,$,f,Hm):(()=>{const U=L+f,I=x-y-f,R=k+f,V=$-b-f,j=x-y-16,ee=k+84;return{left:Math.min(Math.max(U,j),Math.max(U,I)),top:Math.min(Math.max(R,ee),Math.max(R,V))}})();return{left:z.left,top:z.top,anchorX:O,anchorY:T,hasAnchor:P,w:y,h:b}});return Nt(()=>{v()}),(()=>{var y=Km(),b=y.firstChild,C=b.nextSibling,L=C.firstChild,k=L.firstChild,x=L.nextSibling,$=C.nextSibling,P=$.firstChild,O=P.firstChild,T=P.nextSibling,z=$.nextSibling,W=z.firstChild,U=W.firstChild,I=W.nextSibling,R=z.nextSibling,V=R.firstChild,j=V.firstChild,ee=V.nextSibling,te=R.nextSibling,Oe=te.firstChild,it=Oe.firstChild,wt=Oe.nextSibling,$t=te.nextSibling,qe=$t.firstChild,dt=qe.firstChild,Le=qe.nextSibling;return si(s,y),B(b,(()=>{var ie=Ye(()=>!!n());return()=>ie()?m("trade_buy",e.locale):m("trade_sell",e.locale)})()),B(L,()=>m("order_id",e.locale),k),B(x,()=>String(e.order.orderId??e.order.id??"-")),B(P,()=>m("order_price",e.locale),O),B(T,()=>String(e.order.price)),B(W,()=>m("order_quantity",e.locale),U),B(I,()=>String(e.order.size)),B(V,()=>m("order_fee",e.locale),j),B(ee,()=>String(e.order.fee??"-")),B(Oe,()=>m("order_realized_pnl",e.locale),it),B(wt,()=>String(e.order.pnl??"-")),B(qe,()=>m("order_filled_time",e.locale),dt),B(Le,()=>e.formattedTime),Ie(ie=>{var Me=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,ht=`${v().left}px`,oe=`${v().top}px`,Te=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,ce=Vr,Re=jr,ct=Vr,Qe=jr,yt=Vr,Ht=jr,hn=Vr,gn=jr,Sn=Vr,ut=jr,Pe=Vr,Lt=jr;return Me!==ie.e&&Kt(y,ie.e=Me),ht!==ie.t&&Ar(y,"left",ie.t=ht),oe!==ie.a&&Ar(y,"top",ie.a=oe),Te!==ie.o&&Kt(b,ie.o=Te),ie.i=je(C,ce,ie.i),ie.n=je(x,Re,ie.n),ie.s=je($,ct,ie.s),ie.h=je(T,Qe,ie.h),ie.r=je(z,yt,ie.r),ie.d=je(I,Ht,ie.d),ie.l=je(R,hn,ie.l),ie.u=je(ee,gn,ie.u),ie.c=je(te,Sn,ie.c),ie.w=je(wt,ut,ie.w),ie.m=je($t,Pe,ie.m),ie.f=je(Le,Lt,ie.f),ie},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()};Q(!1),Q(!1),Q(!1),Q(!1),Q(!1),Q("");const[qm,Gm]=Q("");function p9(e){const n=qm();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function Vm(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function jm(e){const n=p9(e),i=Vm();return!!(n&&i&&(n===i||n.contains(i)))}const[Qm,_9]=Q(!1),[$1,Po]=Q(null),[L1,m9]=Q(null);Q();const[ve,y9]=Q(null),[b9,v9]=Q(null),[Xm,Jm]=Q([""]),[ey,ty]=Q({}),[yD,zn]=Q(!1);Q("");const[Io,ny]=Q(!1);Q(1),Q();const[ry,Ti]=Q(null);var iy=Y("<img alt=symbol>"),oy=Y("<div class=symbol><span>"),ay=Y('<div class=klinecharts-pro-period-bar><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></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></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg></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></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></div><div class="item tools">'),sy=Y("<button type=button>"),ly=Y('<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>'),cy=Y('<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 uy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,o=()=>{ny(jm(n))},s=l=>{if(l.shiftKey)return;const c=l.currentTarget;if(c.scrollWidth<=c.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=c.clientWidth),f===0)return;const d=c.scrollWidth-c.clientWidth;f>0&&c.scrollLeft>=d-1||f<0&&c.scrollLeft<=0||(l.preventDefault(),c.scrollLeft+=f)};return N0(()=>{document.addEventListener("fullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Sr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var l=ay(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,v=g.nextSibling,y=v.nextSibling,b=y.nextSibling,C=b.nextSibling;return si(L=>{const k=n;k&&k.removeEventListener("wheel",s),n=L,L&&L.addEventListener("wheel",s,{passive:!1})},l),xn(f,"click",e.onMenuClick,!0),B(l,q(Ee,{get when(){return e.symbol},get children(){var L=oy(),k=L.firstChild;return xn(L,"click",e.onSymbolClick,!0),B(L,q(Ee,{get when(){return e.symbol.logo},get children(){var x=iy();return Ie(()=>tt(x,"src",e.symbol.logo)),x}}),k),B(k,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),L}}),d),B(l,()=>e.periods.map(L=>(()=>{var k=sy();return k.$$click=()=>{e.onPeriodChange(L)},B(k,()=>L.text),Ie(()=>Kt(k,`item tools period ${i(L)?"selected":""}`)),k})()),d),xn(d,"click",e.onIndicatorClick,!0),xn(g,"click",e.onTimezoneClick,!0),xn(v,"click",e.onAlertClick,!0),xn(y,"click",e.onSettingClick,!0),xn(b,"click",e.onScreenshotClick,!0),C.$$click=()=>{if(Io())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const L=p9(n);L&&(L.requestFullscreen??L.webkitRequestFullscreen??L.mozRequestFullScreen??L.msRequestFullscreen).call(L)}},B(C,(()=>{var L=Ye(()=>!!Io());return()=>L()?ly():cy()})()),Ie(L=>{var k=e.spread?"":"rotate",x=m("indicator",e.locale),$=m("timezone",e.locale),P=m("alerts",e.locale),O=m("setting",e.locale),T=m("screenshot",e.locale),z=Io()?m("exit_full_screen",e.locale):m("full_screen",e.locale);return k!==L.e&&tt(f,"class",L.e=k),x!==L.t&&tt(d,"title",L.t=x),$!==L.a&&tt(g,"title",L.a=$),P!==L.o&&tt(v,"title",L.o=P),O!==L.i&&tt(y,"title",L.i=O),T!==L.n&&tt(b,"title",L.n=T),z!==L.s&&tt(C,"title",L.s=z),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),l})()};Et(["click"]);var fy=Y('<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 dy=()=>fy();var hy=Y('<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 gy=()=>hy();var py=Y('<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=()=>py();var my=Y('<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 yy=()=>my();var by=Y('<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 vy=()=>by();var Cy=Y('<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 xy=()=>Cy();var wy=Y('<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=()=>wy();var Ly=Y('<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=()=>Ly();var ky=Y('<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 Ay=()=>ky();var My=Y('<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 Ty=()=>My();var Py=Y('<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 Iy=()=>Py();var Oy=Y('<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=()=>Oy();var Dy=Y('<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 By=Y('<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 Fy=()=>By();var zy=Y('<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 Ny=()=>zy();var Ky=Y('<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 Hy=()=>Ky();var Wy=Y('<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 Uy=()=>Wy();var Zy=Y('<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=()=>Zy();var qy=Y('<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 Gy=()=>qy();var Vy=Y('<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=()=>Vy();var Qy=Y('<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 Xy=()=>Qy();var Jy=Y('<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 eb=()=>Jy();var tb=Y('<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 nb=()=>tb();var rb=Y('<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 ib=()=>rb();var ob=Y('<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 ab=()=>ob();var sb=Y('<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 lb=()=>sb();var cb=Y('<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 ub=()=>cb();var fb=Y('<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 db=()=>fb();var hb=Y('<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 gb=()=>hb();var pb=Y('<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 _b=()=>pb();var mb=Y('<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 yb=e=>(()=>{var n=mb();return tt(n,"class",`icon-overlay ${e??""}`),n})();var bb=Y('<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 vb=e=>(()=>{var n=bb();return tt(n,"class",`icon-overlay ${e??""}`),n})();var Cb=Y('<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 xb=()=>Cb();var wb=Y('<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 $b=()=>wb();var Lb=Y('<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 Sb=()=>Lb();var kb=Y('<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 Ab=()=>kb();var Mb=Y('<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 Tb=()=>Mb();var Pb=Y('<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 Ib={horizontalStraightLine:dy,horizontalRayLine:gy,horizontalSegment:_y,verticalStraightLine:yy,verticalRayLine:vy,verticalSegment:xy,straightLine:$y,rayLine:Sy,segment:Ay,arrow:Ty,priceLine:Iy,priceChannelLine:Ey,parallelStraightLine:Ry,fibonacciLine:Fy,fibonacciSegment:Ny,fibonacciCircle:Hy,fibonacciSpiral:Uy,fibonacciSpeedResistanceFan:Yy,fibonacciExtension:Gy,gannBox:jy,circle:Xy,triangle:eb,rect:nb,parallelogram:ib,threeWaves:ab,fiveWaves:lb,eightWaves:ub,anyWaves:db,abcd:gb,xabcd:_b,weak_magnet:yb,strong_magnet:vb,lock:Sb,unlock:Ab,visible:xb,invisible:$b,remove:Tb,brush:()=>Pb()};function Ob(e){return[{key:"horizontalStraightLine",text:m("horizontal_straight_line",e)},{key:"horizontalRayLine",text:m("horizontal_ray_line",e)},{key:"horizontalSegment",text:m("horizontal_segment",e)},{key:"verticalStraightLine",text:m("vertical_straight_line",e)},{key:"verticalRayLine",text:m("vertical_ray_line",e)},{key:"verticalSegment",text:m("vertical_segment",e)},{key:"straightLine",text:m("straight_line",e)},{key:"rayLine",text:m("ray_line",e)},{key:"segment",text:m("segment",e)},{key:"arrow",text:m("arrow",e)},{key:"brush",text:m("brush",e)},{key:"priceLine",text:m("price_line",e)}]}function Eb(e){return[{key:"priceChannelLine",text:m("price_channel_line",e)},{key:"parallelStraightLine",text:m("parallel_straight_line",e)}]}function Db(e){return[{key:"circle",text:m("circle",e)},{key:"rect",text:m("rect",e)},{key:"parallelogram",text:m("parallelogram",e)},{key:"triangle",text:m("triangle",e)}]}function Rb(e){return[{key:"fibonacciLine",text:m("fibonacci_line",e)},{key:"fibonacciSegment",text:m("fibonacci_segment",e)},{key:"fibonacciCircle",text:m("fibonacci_circle",e)},{key:"fibonacciSpiral",text:m("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:m("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:m("fibonacci_extension",e)},{key:"gannBox",text:m("gann_box",e)}]}function Bb(e){return[{key:"xabcd",text:m("xabcd",e)},{key:"abcd",text:m("abcd",e)},{key:"threeWaves",text:m("three_waves",e)},{key:"fiveWaves",text:m("five_waves",e)},{key:"eightWaves",text:m("eight_waves",e)},{key:"anyWaves",text:m("any_waves",e)}]}function Fb(e){return[{key:"weak_magnet",text:m("weak_magnet",e)},{key:"strong_magnet",text:m("strong_magnet",e)}]}const Jt=e=>Ib[e.name](e.class);var zb=Y('<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>'),Nb=Y('<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>'),C9=Y("<li><span style=padding-left:8px>");const x9="drawing_tools",Kb=e=>{const[n,i]=Q("horizontalStraightLine"),[o,s]=Q("priceChannelLine"),[l,c]=Q("circle"),[f,d]=Q("fibonacciLine"),[g,v]=Q("xabcd"),[y,b]=Q("weak_magnet"),[C,L]=Q("normal"),[k,x]=Q(!1),[$,P]=Q(!0),[O,T]=Q(""),z=Mt(()=>[{key:"singleLine",icon:n(),list:Ob(e.locale),setter:i},{key:"moreLine",icon:o(),list:Eb(e.locale),setter:s},{key:"polygon",icon:l(),list:Db(e.locale),setter:c},{key:"fibonacci",icon:f(),list:Rb(e.locale),setter:d},{key:"wave",icon:g(),list:Bb(e.locale),setter:v}]),W=Mt(()=>Fb(e.locale));return(()=>{var U=zb(),I=U.firstChild,R=I.nextSibling,V=R.firstChild,j=V.nextSibling,ee=j.firstChild,te=R.nextSibling,Oe=te.firstChild,it=te.nextSibling,wt=it.firstChild,$t=it.nextSibling,qe=$t.nextSibling,dt=qe.firstChild;return B(U,()=>z().map(Le=>(()=>{var ie=Nb(),Me=ie.firstChild,ht=Me.nextSibling,oe=ht.firstChild;return ie.addEventListener("blur",()=>{T("")}),Me.$$click=()=>{e.onDrawingItemClick({groupId:x9,name:Le.icon,visible:$(),lock:k(),mode:C()})},B(Me,q(Jt,{get name(){return Le.icon}})),ht.$$click=()=>{Le.key===O()?T(""):T(Le.key)},B(ie,(()=>{var Te=Ye(()=>Le.key===O());return()=>Te()&&q(bi,{class:"list",get children(){return Le.list.map(ce=>(()=>{var Re=C9(),ct=Re.firstChild;return Re.$$click=()=>{Le.setter(ce.key),e.onDrawingItemClick({name:ce.key,lock:k(),mode:C()}),T("")},B(Re,q(Jt,{get name(){return ce.key}}),ct),B(ct,()=>ce.text),Re})())}})})(),null),Ie(()=>tt(oe,"class",Le.key===O()?"rotate":"")),ie})()),I),R.addEventListener("blur",()=>{T("")}),V.$$click=()=>{let Le=y();C()!=="normal"&&(Le="normal"),L(Le),e.onModeChange(Le)},B(V,(()=>{var Le=Ye(()=>y()==="weak_magnet");return()=>Le()?Ye(()=>C()==="weak_magnet")()?q(Jt,{name:"weak_magnet",class:"selected"}):q(Jt,{name:"weak_magnet"}):Ye(()=>C()==="strong_magnet")()?q(Jt,{name:"strong_magnet",class:"selected"}):q(Jt,{name:"strong_magnet"})})()),j.$$click=()=>{O()==="mode"?T(""):T("mode")},B(R,(()=>{var Le=Ye(()=>O()==="mode");return()=>Le()&&q(bi,{class:"list",get children(){return W().map(ie=>(()=>{var Me=C9(),ht=Me.firstChild;return Me.$$click=()=>{b(ie.key),L(ie.key),e.onModeChange(ie.key),T("")},B(Me,q(Jt,{get name(){return ie.key}}),ht),B(ht,()=>ie.text),Me})())}})})(),null),Oe.$$click=()=>{const Le=!k();x(Le),e.onLockChange(Le)},B(Oe,(()=>{var Le=Ye(()=>!!k());return()=>Le()?q(Jt,{name:"lock"}):q(Jt,{name:"unlock"})})()),wt.$$click=()=>{const Le=!$();P(Le),e.onVisibleChange(Le)},B(wt,(()=>{var Le=Ye(()=>!!$());return()=>Le()?q(Jt,{name:"visible"}):q(Jt,{name:"invisible"})})()),dt.$$click=()=>{e.onRemoveClick(x9)},B(dt,q(Jt,{name:"remove"})),Ie(()=>tt(ee,"class",O()==="mode"?"rotate":"")),U})()};Et(["click"]);var w9=Y("<li class=title>"),Hb=Y('<div style="padding:0 20px">'),$9=Y("<li class=row>");const Wb=e=>q($n,{get title(){return m("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=Hb();return B(n,q(bi,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=w9();return B(i,()=>m("main_indicator",e.locale)),i})(),Ye(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=$9();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},B(s,q(xl,{checked:o,get label(){return m(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=w9();return B(i,()=>m("sub_indicator",e.locale)),i})(),Ye(()=>["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=$9();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},B(s,q(xl,{checked:o,get label(){return m(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Et(["click"]);function Oo(e,n){switch(e){case"Etc/UTC":return m("utc",n);case"Pacific/Honolulu":return m("honolulu",n);case"America/Juneau":return m("juneau",n);case"America/Los_Angeles":return m("los_angeles",n);case"America/Chicago":return m("chicago",n);case"America/Toronto":return m("toronto",n);case"America/Sao_Paulo":return m("sao_paulo",n);case"Europe/London":return m("london",n);case"Europe/Berlin":return m("berlin",n);case"Asia/Bahrain":return m("bahrain",n);case"Asia/Dubai":return m("dubai",n);case"Asia/Ashkhabad":return m("ashkhabad",n);case"Asia/Almaty":return m("almaty",n);case"Asia/Bangkok":return m("bangkok",n);case"Asia/Shanghai":return m("shanghai",n);case"Asia/Tokyo":return m("tokyo",n);case"Australia/Sydney":return m("sydney",n);case"Pacific/Norfolk":return m("norfolk",n)}return e}function Ub(e){return[{key:"Etc/UTC",text:m("utc",e)},{key:"Pacific/Honolulu",text:m("honolulu",e)},{key:"America/Juneau",text:m("juneau",e)},{key:"America/Los_Angeles",text:m("los_angeles",e)},{key:"America/Chicago",text:m("chicago",e)},{key:"America/Toronto",text:m("toronto",e)},{key:"America/Sao_Paulo",text:m("sao_paulo",e)},{key:"Europe/London",text:m("london",e)},{key:"Europe/Berlin",text:m("berlin",e)},{key:"Asia/Bahrain",text:m("bahrain",e)},{key:"Asia/Dubai",text:m("dubai",e)},{key:"Asia/Ashkhabad",text:m("ashkhabad",e)},{key:"Asia/Almaty",text:m("almaty",e)},{key:"Asia/Bangkok",text:m("bangkok",e)},{key:"Asia/Shanghai",text:m("shanghai",e)},{key:"Asia/Tokyo",text:m("tokyo",e)},{key:"Australia/Sydney",text:m("sydney",e)},{key:"Pacific/Norfolk",text:m("norfolk",e)}]}var Zb=Y('<div style="padding:20px 20px 0 20px">');const Yb=e=>{const[n,i]=Q(e.timezone),o=Mt(()=>Ub(e.locale));return q($n,{get title(){return m("timezone",e.locale)},width:320,get buttons(){return[{children:m("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=Zb();return B(s,q(x1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},_r=e=>{const n=[{key:"solid",text:m("solid",e)},{key:"dashed",text:m("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:m("fill",e)},{key:"stroke",text:m("stroke",e)},{key:"stroke_fill",text:m("stroke_fill",e)}],c=[{key:"none",text:m("none",e)},{key:"always",text:m("always",e)},{key:"follow_cross",text:m("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}],d=[{key:"normal",text:m("Normal",e)}],g=[{key:"Helvetica Neue",text:m("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:c,true_false:o}},qb=e=>{const{font_family:n,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=_r(e);return[{key:"candle.type",text:m("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:m("candle_solid",e)},{key:"candle_stroke",text:m("candle_stroke",e)},{key:"candle_up_stroke",text:m("candle_up_stroke",e)},{key:"candle_down_stroke",text:m("candle_down_stroke",e)},{key:"ohlc",text:m("ohlc",e)},{key:"area",text:m("area",e)},{key:"heikin_ashi",text:m("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:m("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:m("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:m("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:m("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:m("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:m("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:m("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:m("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:m("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:m("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:m("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:m("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:m("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:m("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:m("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:m("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:m("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:m("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:m("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:m("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:m("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:m("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:m("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:m("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:m("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:m("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:m("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:m("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:m("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:m("Pricemark last text style",e),component:"select",dataSource:c},{key:"candle.priceMark.last.text.size",text:m("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:m("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:m("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:m("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:m("Rect",e)},{key:"standard",text:m("Standard",e)}]},{key:"candle.tooltip.rect.position",text:m("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:m("Fixed",e)},{key:"pointer",text:m("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:m("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:m("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:m("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:m("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:m("Tooltip text color",e),component:"color"}]},Gb=e=>{const{fill_stroke:n,font_size:i,font_weight:o,none_always_followCross:s}=_r(e);return[{key:"indicator.ohlc.upColor",text:m("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:m("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:m("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:m("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:m("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:m("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:m("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:m("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:m("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:m("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:m("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:m("Standard",e)},{key:"rect",text:m("Rect",e)}]},{key:"indicator.tooltip.showName",text:m("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:m("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:m("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:m("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:m("Tooltip text color",e),component:"color"}]},Vb=e=>{const{font_size:n,size:i,font_weight:o}=_r(e);return[{key:"xAxis.show",text:m("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:m("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:m("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:m("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:m("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:m("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:m("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:m("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:m("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:m("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:m("Tick line color",e),component:"color"}]},jb=e=>{const{size:n,font_weight:i,font_size:o}=_r(e);return[{key:"yAxis.show",text:m("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:m("Position",e),component:"select",dataSource:[{key:"right",text:m("Right",e)},{key:"left",text:m("Left",e)}]},{key:"yAxis.type",text:m("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:m("normal",e)},{key:"percentage",text:m("percentage",e)},{key:"log",text:m("log",e)}]},{key:"yAxis.inside",text:m("Inside",e),component:"switch"},{key:"yAxis.reverse",text:m("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:m("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:m("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:m("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:m("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:m("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:m("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:m("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:m("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:m("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:m("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:n}]},Qb=e=>{const{size:n}=_r(e);return[{key:"grid.show",text:m("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:m("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:m("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:m("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:m("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:m("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:m("Vertical color",e),component:"color"}]},Xb=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:c}=_r(e);return[{key:"crosshair.show",text:m("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:m("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:m("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:m("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:m("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:m("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:m("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:m("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:m("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:m("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:m("Horizontal text weight",e),component:"select",dataSource:c},{key:"crosshair.horizontal.text.color",text:m("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:m("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:m("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:m("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:m("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:m("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:m("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:m("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:m("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:m("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:m("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:m("Vertical text weight",e),component:"select",dataSource:c},{key:"crosshair.vertical.text.color",text:m("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:m("Vertical text background color",e),component:"color"}]};function Eo(e){const{size:n}=_r(e);return[...qb(e),...Gb(e),...Vb(e),...jb(e),...Qb(e),...Xb(e),{key:"separator.size",text:m("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:m("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:m("Background color",e),component:"color"}]}const Qr="chartstatedata",Xr={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1,showPriceAlerts:!1},L9="trading-display",Jb=2,ev=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],tv=["price_reach","price_rise_to","price_fall_to"];function nv(e){const n=e.price;if(n==null)return null;if(typeof n=="number"&&Number.isFinite(n))return n;if(typeof n=="string"&&n.trim()!==""){const i=Number(n.trim().replace(/,/g,""));return Number.isFinite(i)?i:null}return null}function rv(e,n){var l,c,f;const i=(l=e.symbol)==null?void 0:l.trim();if(!i||i===n.ticker)return!0;const o=(c=n.name)==null?void 0:c.trim();if(o&&i===o)return!0;const s=(f=n.shortName)==null?void 0:f.trim();return!!(s&&i===s)}const iv=k9(),S9=new WeakMap;function k9(){return{tradingConfig:{...Xr},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],alertsState:[],overlaySignatures:new Map}}function ov(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function A9(e){return e||(ve()??null)}function Nn(e){const n=A9(e);if(!n)return iv;const i=S9.get(n);if(i)return i;const o=k9();return S9.set(n,o),o}function M9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch(e){return ov("Failed to parse chart state storage, using defaults.",e),{}}}function T9(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:Xr.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:Xr.showHisOrders,showPriceAlerts:typeof n.showPriceAlerts=="boolean"?n.showPriceAlerts:Xr.showPriceAlerts}}function P9(e){const n=T9(e.tradingDisplay);if(n)return n;const i=T9(e.trading);return i||{...Xr}}function I9(e){const n={...e,version:Jb,tradingDisplay:P9(e)};delete n.trading,localStorage.setItem(Qr,JSON.stringify(n))}function av(e){Nn(e),S1(e)}function S1(e){const n=Nn(e),i=M9();return n.tradingConfig=P9(i),I9(i),{...n.tradingConfig}}function sv(e,n){const i=Nn(n);i.tradingConfig={...e};const o=M9();o.tradingDisplay=i.tradingConfig,I9(o)}function Jr(e,n){sv(e,n),Kn(n)}function lv(e){Jr({...Xr},e)}function cv(e,n){const i=Nn(n);i.positionsState=e.slice(),Kn(n)}function uv(e,n){const i=Nn(n);i.liquidationPriceState=e,Kn(n)}function fv(e,n){const i=Nn(n);i.openOrdersState=e.slice(),Kn(n)}function O9(e,n){const i=Nn(n);i.alertsState=e.slice(),Kn(n)}function dv(e,n){const i=Nn(n);i.hisOrdersState=e.slice(),Kn(n)}function hv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,o=e.length-1,s=-1;for(;i<=o;){const l=i+o>>1;e[l].timestamp<=n?(s=l,i=l+1):o=l-1}return s>=0?e[s].timestamp:null}function Pi(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function k1(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function E9(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function gv(e,n){const i=(e.getOverlays({id:n.id})??[]).length>0,o=n.name!=="priceAlertLine";if(!i){const l=e.createOverlay({id:n.id,name:n.name,groupId:L9,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return o&&E9(e,l),l}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),o&&E9(e,n.id),n.id}function pv(e,n){(e.getOverlays()??[]).filter(o=>!!o.id&&ev.some(s=>o.id.startsWith(s))&&!n.has(o.id)).forEach(o=>e.removeOverlay({id:o.id}))}function _v(e,n,i,o,s){const l=[],c=e.tradingConfig.showPositions,f=e.tradingConfig.showLiquidation,d=e.tradingConfig.showOpenOrders,g=e.tradingConfig.showHisOrders,v=e.tradingConfig.showPriceAlerts,y=e.positionsState.filter(b=>b.size!==0&&Number.isFinite(b.avgPrice));if(c&&y.forEach((b,C)=>{const k=`trading-pos-${Pi(b.id??`idx${C}`)}`,x=[{timestamp:i,value:b.avgPrice}],$={side:b.side,size:b.size,multiplier:b.multiplier??1};l.push({id:k,name:"positionAvgLine",points:x,extendData:$,signature:k1("positionAvgLine",x,$)})}),f&&y.length>0){const b=e.liquidationPriceState;if(b!=null&&Number.isFinite(b)){const C=[{timestamp:i,value:b}],L={};l.push({id:"trading-liq",name:"liquidationLine",points:C,extendData:L,signature:k1("liquidationLine",C,L)})}}if(d&&e.openOrdersState.filter(C=>C.orderType!=="market"&&Number.isFinite(C.price)&&C.size!==0&&(C.side==="long"||C.side==="short")&&typeof C.isBuy=="boolean").forEach((C,L)=>{const x=`trading-order-${Pi(C.id??`idx${L}`)}`,$=[{timestamp:i,value:C.price}],P={isBuy:C.isBuy,size:C.size};l.push({id:x,name:"pendingOrderLine",points:$,extendData:P,signature:k1("pendingOrderLine",$,P)})}),g){const b=e.hisOrdersState.filter(k=>Number.isFinite(k.timestamp)&&Number.isFinite(k.price)&&Number.isFinite(k.size)&&k.size!==0&&typeof k.isBuy=="boolean"),C=new Map,L=new Map;n.forEach(k=>L.set(k.timestamp,{high:k.high,low:k.low})),b.forEach((k,x)=>{const $=hv(n,k.timestamp);if($==null)return;const P=`${$}_${k.isBuy?"B":"S"}`,O=C.get(P)??0;C.set(P,O+1);const T=L.get($),W=`trading-his-order-${Pi(k.id??String(k.orderId??`idx${x}`))}`,U=[{timestamp:$,value:k.price}],I={...k,stackIndex:O,barHigh:T==null?void 0:T.high,barLow:T==null?void 0:T.low};l.push({id:W,name:"hisOrderMark",points:U,extendData:I,signature:k1("hisOrderMark",U,I)})})}if(o&&v){const b=e.alertsState;for(let C=0;C<b.length;C++){const L=b[C];if(!tv.includes(L.type))continue;const k=nv(L);if(k==null||!rv(L,o))continue;const $=`alert-${Pi(L.id||`idx_${C}`)}`,P={...L,price:k},O=[{timestamp:i,value:k}],T={alert:P,showInfo:!1,themeKey:Ja(s,Qa,Xa)};l.push({id:$,name:"priceAlertLine",points:O,extendData:T,signature:k1("priceAlertLine",O,T)})}}return l}function mv(e){(e.getOverlays({groupId:"alert_overlays"})??[]).forEach(i=>{i.id&&e.removeOverlay({id:i.id})})}function Kn(e){var b;const n=A9(e),i=Nn(n);if(!n)return;const o=n;mv(o);const s=o.getDataList(),l=((b=s.at(-1))==null?void 0:b.timestamp)??Date.now(),c=$1()??null,f=_v(i,s,l,c,o),d=new Map(f.map(C=>[C.id,C])),g=o.getOverlays({groupId:L9})??[],v=new Set(g.map(C=>C.id).filter(C=>!!C));v.forEach(C=>{d.has(C)||o.removeOverlay({id:C})});const y=new Map;f.forEach(C=>{const L=i.overlaySignatures.get(C.id);if(!v.has(C.id)||L!==C.signature){const x=gv(o,C);y.set(x,C.signature);return}y.set(C.id,C.signature)}),i.overlaySignatures=y,pv(o,new Set(y.keys()))}var e1=Y("<div class=component><span>"),yv=Y("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),bv=Y("<button>");const vv=e=>{const[n,i]=Q(e.currentStyles),[o,s]=Q(Eo(e.locale)),[l,c]=Q("trading"),[f,d]=Q(S1());Nt(()=>{s(Eo(e.locale))}),Nt(()=>{l()==="trading"&&d(S1())});const g=(b,C)=>{const L=localStorage.getItem("chartstatedata");let k;L?(k=JSON.parse(L),k.styleObj=k.styleObj??{}):k={styleObj:{}};const x=b.key.indexOf(".");x===-1?b.key:b.key.slice(0,x)+""+b.key.slice(x),C1(k.styleObj,b.key,C),localStorage.setItem("chartstatedata",JSON.stringify(k)),zn(!0);const $={};C1($,b.key,C),C1($,b.key,C);const P=fe.utils.clone(n());C1(P,b.key,C),i(P),s(o().map(O=>({...O}))),e.onChange($)},v=()=>{const b=localStorage.getItem("chartstatedata");let C;b&&(C=JSON.parse(b),C.styleObj&&(C.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(C))),lv(),i(e.currentStyles),s(Eo(e.locale)),d(S1()),e.onRestoreDefault(o())},y=[{text:m("setting_sidebar_chart",e.locale),key:"trading"},{text:m("setting_sidebar_candle",e.locale),key:"candle"},{text:m("setting_sidebar_indicator",e.locale),key:"indicator"},{text:m("setting_sidebar_grid",e.locale),key:"grid"},{text:m("setting_sidebar_x_axis",e.locale),key:"xAxis"},{text:m("setting_sidebar_y_axis",e.locale),key:"yAxis"},{text:m("setting_sidebar_separator",e.locale),key:"separator"},{text:m("setting_sidebar_crosshair",e.locale),key:"crosshair"}];return q($n,{get title(){return m("setting",e.locale)},width:640,height:560,get buttons(){return[{children:m("restore_default",e.locale),onClick:()=>{v()}}]},get onClose(){return e.onClose},get children(){var b=yv(),C=b.firstChild,L=C.nextSibling;return B(C,()=>y.map(k=>(()=>{var x=bv();return x.$$click=()=>c(k.key),B(x,()=>k.text),Ie(()=>Kt(x,`${l()==k.key?"selected":""}`)),x})())),B(L,q(Ee,{get when(){return l()==="trading"},get fallback(){return q(bs,{get each(){return o().filter(k=>k.key.includes(l()))},children:k=>{let x;const $=fe.utils.formatValue(n(),k.key);switch(k.component){case"select":{x=q(x1,{style:{width:"120px"},get value(){return m($,e.locale)},get dataSource(){return k.dataSource},onSelected:P=>{const O=P.key;g(k,O)}});break}case"switch":{const P=!!$;x=q(zr,{open:P,onChange:()=>{g(k,!P)}});break}case"color":{x=q(Nm,{style:{width:"120px"},value:$,reactiveChange:!1,onChange:P=>{g(k,P)}});break}}return(()=>{var P=e1(),O=P.firstChild;return B(O,()=>k.text),B(P,x,null),P})()}})},get children(){return[(()=>{var k=e1(),x=k.firstChild;return B(x,()=>m("trading_display_positions",e.locale)),B(k,q(zr,{get open(){return f().showPositions},onChange:()=>{const $={...f(),showPositions:!f().showPositions};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return B(x,()=>m("trading_display_liquidation",e.locale)),B(k,q(zr,{get open(){return f().showLiquidation},onChange:()=>{const $={...f(),showLiquidation:!f().showLiquidation};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return B(x,()=>m("trading_display_open_orders",e.locale)),B(k,q(zr,{get open(){return f().showOpenOrders},onChange:()=>{const $={...f(),showOpenOrders:!f().showOpenOrders};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return B(x,()=>m("trading_display_his_orders",e.locale)),B(k,q(zr,{get open(){return f().showHisOrders},onChange:()=>{const $={...f(),showHisOrders:!f().showHisOrders};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return B(x,()=>m("trading_display_price_alerts",e.locale)),B(k,q(zr,{get open(){return f().showPriceAlerts},onChange:()=>{const $={...f(),showPriceAlerts:!f().showPriceAlerts};d($),Jr($)}}),null),k})()]}})),b}})};Et(["click"]);var Cv=Y('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const xv=e=>q($n,{get title(){return m("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:m("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=Cv(),i=n.firstChild;return Ie(()=>tt(i,"src",e.url)),n}}),wv={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 $v=Y("<div class=klinecharts-pro-indicator-setting-modal-content>"),Lv=Y("<div class=param-row><span>");const Sv=e=>{const[n,i]=Q(fe.utils.clone(e.params.calcParams)),o=s=>wv[s];return q($n,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:m("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];fe.utils.clone(n()).forEach((c,f)=>{!fe.utils.isValid(c)||c===""?"default"in s[f]&&l.push(s[f].default):l.push(c)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=$v();return B(s,()=>o(e.params.indicatorName).map((l,c)=>(()=>{var f=Lv(),d=f.firstChild;return B(d,()=>m(l.paramNameKey,e.locale)),B(f,q(Ll,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const v=fe.utils.clone(n());v[c]=g,i(v)}}),null),f})())),s}})};var kv=Y('<div style="margin:10px 20px 0 20px">'),Av=Y('<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">'),Mv=Y("<img alt=symbol>"),Tv=Y("<li><div><span>");const Pv=e=>{const[n,i]=Q(""),[o]=L6(n,e.datafeed.searchSymbols.bind(e.datafeed));return q($n,{get title(){return m("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=kv();return B(s,q(Ll,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return m("symbol_code",e.locale)},get suffix(){return Av()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),B(s,q(bi,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var c=Tv(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},B(f,q(Ee,{get when(){return l.logo},get children(){var g=Mv();return Ie(()=>tt(g,"src",l.logo)),g}}),d),B(d,()=>l.shortName??l.ticker,null),B(d,()=>`${l.name?`(${l.name})`:""}`,null),B(c,()=>l.exchange??"",null),Ie(()=>tt(d,"title",l.name??"")),c})()}),null),s}})};Et(["click"]);var Iv=Y("<div class=row><span></span><input class=field-input type=number min=0 step=any>"),Ov=Y("<div class=row><span>"),Ev=Y("<div class=row><span></span><input class=field-input type=number min=1 max=100 step=1>"),Dv=Y("<div class=error-text>"),Rv=Y("<div class=klinecharts-pro-alert-add-modal><div class=row><span></span></div><div class=row><span></span></div><div class=row><span></span><input class=field-input type=text>");const Bv=e=>{const[n,i]=Q(!1),[o,s]=Q(""),[l,c]=Q({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=Mt(()=>{const b=l().type;return b==="price_reach"||b==="price_rise_to"||b==="price_fall_to"}),d=Mt(()=>[{key:"price_reach",text:jt("price_reach",e.locale)},{key:"price_rise_to",text:jt("price_rise_to",e.locale)},{key:"price_fall_to",text:jt("price_fall_to",e.locale)},{key:"price_rise_pct_over",text:jt("price_rise_pct_over",e.locale)},{key:"price_fall_pct_over",text:jt("price_fall_pct_over",e.locale)}]),g=Mt(()=>[{key:"repeat",text:D0("repeat",e.locale)},{key:"once",text:D0("once",e.locale)}]),v=Mt(()=>[{key:"5m",text:dr("5m",e.locale)},{key:"1h",text:dr("1h",e.locale)},{key:"4h",text:dr("4h",e.locale)},{key:"24h",text:dr("24h",e.locale)}]),y=async()=>{if(n())return;const b=l(),C={type:b.type,frequency:b.frequency,remark:b.remark.trim()||void 0};if(f()){const L=Number(b.price);if(!Number.isFinite(L)||L<=0){s(m("alert_validation_price_gt_zero",e.locale));return}C.price=L}else{const L=Number(b.percent);if(!Number.isInteger(L)||L<1||L>100){s(m("alert_validation_percent_range",e.locale));return}C.window=b.window,C.percent=L}s(""),i(!0);try{await e.onSubmit(C)&&e.onClose()}finally{i(!1)}};return q($n,{get title(){return m("alert_add",e.locale)},width:360,get buttons(){return[{children:m("cancel",e.locale),type:"cancel",onClick:e.onClose},{children:n()?m("alert_submitting",e.locale):m("alert_submit",e.locale),onClick:y}]},get onClose(){return e.onClose},get children(){var b=Rv(),C=b.firstChild,L=C.firstChild,k=C.nextSibling,x=k.firstChild,$=k.nextSibling,P=$.firstChild,O=P.nextSibling;return B(L,()=>m("alert_field_type",e.locale)),B(C,q(x1,{style:{width:"220px"},get value(){var T;return(T=d().find(z=>z.key===l().type))==null?void 0:T.text},get dataSource(){return d()},onSelected:T=>{const z=T.key;c(W=>({...W,type:z}))}}),null),B(b,q(Ee,{get when(){return f()},get children(){var T=Iv(),z=T.firstChild,W=z.nextSibling;return B(z,()=>m("alert_field_price",e.locale)),W.$$input=U=>{c(I=>({...I,price:U.target.value}))},Ie(()=>W.value=l().price),T}}),k),B(b,q(Ee,{get when(){return!f()},get children(){return[(()=>{var T=Ov(),z=T.firstChild;return B(z,()=>m("alert_field_window",e.locale)),B(T,q(x1,{style:{width:"220px"},get value(){var W;return(W=v().find(U=>U.key===l().window))==null?void 0:W.text},get dataSource(){return v()},onSelected:W=>{const U=W.key;c(I=>({...I,window:U}))}}),null),T})(),(()=>{var T=Ev(),z=T.firstChild,W=z.nextSibling;return B(z,()=>m("alert_field_percent",e.locale)),W.$$input=U=>{c(I=>({...I,percent:U.target.value}))},Ie(()=>W.value=l().percent),T})()]}}),k),B(x,()=>m("alert_field_frequency",e.locale)),B(k,q(x1,{style:{width:"220px"},get value(){var T;return(T=g().find(z=>z.key===l().frequency))==null?void 0:T.text},get dataSource(){return g()},onSelected:T=>{const z=T.key;c(W=>({...W,frequency:z}))}}),null),B(P,()=>m("alert_field_remark",e.locale)),O.$$input=T=>{c(z=>({...z,remark:T.target.value}))},B(b,q(Ee,{get when(){return!!o()},get children(){var T=Dv();return B(T,o),T}}),null),Ie(()=>tt(O,"placeholder",m("alert_optional",e.locale))),Ie(()=>O.value=l().remark),b}})};Et(["input"]);var Ii=Y("<dt>"),Oi=Y("<dd>"),Fv=Y("<dl class=alert-detail-grid><dt></dt><dd></dd><dt></dt><dd></dd><dt></dt><dd>");const D9=e=>(()=>{var n=Fv(),i=n.firstChild,o=i.nextSibling,s=o.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return B(n,q(Ee,{get when(){return!!e.alert.symbol},get children(){return[(()=>{var d=Ii();return B(d,()=>m("alert_field_symbol",e.locale)),d})(),(()=>{var d=Oi();return B(d,()=>e.alert.symbol),d})()]}}),i),B(i,()=>m("alert_field_type",e.locale)),B(o,()=>jt(e.alert.type,e.locale)),B(n,q(Ee,{get when(){return Ye(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[(()=>{var d=Ii();return B(d,()=>m("alert_field_price",e.locale)),d})(),(()=>{var d=Oi();return B(d,()=>String(e.alert.price)),d})()]}}),s),B(n,q(Ee,{get when(){return e.alert.window!=null},get children(){return[(()=>{var d=Ii();return B(d,()=>m("alert_field_window",e.locale)),d})(),(()=>{var d=Oi();return B(d,()=>dr(e.alert.window,e.locale)),d})()]}}),s),B(n,q(Ee,{get when(){return e.alert.percent!=null},get children(){return[(()=>{var d=Ii();return B(d,()=>m("alert_field_percent",e.locale)),d})(),(()=>{var d=Oi();return B(d,()=>`${e.alert.percent}%`),d})()]}}),s),B(s,()=>m("alert_field_frequency",e.locale)),B(l,()=>D0(e.alert.frequency,e.locale)),B(c,()=>m("alert_field_remark",e.locale)),B(f,(()=>{var d=Ye(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var zv=Y("<div class=alert-empty>"),Nv=Y("<div class=klinecharts-pro-alert-modal><div class=alert-list></div><div class=alert-add-btn-container><button type=button class=alert-add-btn>"),Kv=Y("<div class=alert-item><span class=alert-text></span><button type=button class=alert-delete>"),Hv=Y("<div class=klinecharts-pro-alert-detail>");const Wv=e=>{const[n,i]=Q(!1),[o,s]=Q(null);return q($n,{get title(){return m("alerts",e.locale)},width:480,get onClose(){return e.onClose},get children(){return[(()=>{var l=Nv(),c=l.firstChild,f=c.nextSibling,d=f.firstChild;return B(c,q(bs,{get each(){return e.alerts},children:g=>(()=>{var v=Kv(),y=v.firstChild,b=y.nextSibling;return v.$$dblclick=()=>{s(g)},B(y,()=>l6(g,e.locale)),b.$$dblclick=C=>{C.stopPropagation()},b.$$click=async()=>{var C;await((C=e.onRemoveAlert)==null?void 0:C.call(e,g))},B(b,()=>m("alert_delete",e.locale)),Ie(()=>tt(v,"title",m("alert_double_click_detail",e.locale))),v})()}),null),B(c,q(Ee,{get when(){return e.alerts.length===0},get children(){var g=zv();return B(g,()=>m("alert_empty",e.locale)),g}}),null),d.$$click=()=>{i(!0)},B(d,()=>m("alert_add",e.locale)),l})(),q(Ee,{get when(){return n()},get children(){return q(Bv,{get locale(){return e.locale},onClose:()=>{i(!1)},onSubmit:async l=>{var c;return await((c=e.onAddAlert)==null?void 0:c.call(e,l))??!0}})}}),q(Ee,{get when(){return o()},children:l=>q($n,{get title(){return m("alert_detail",e.locale)},width:400,height:260,onClose:()=>{s(null)},get children(){var c=Hv();return B(c,q(D9,{get locale(){return e.locale},get alert(){return l()}})),c}})})]}})};Et(["click","dblclick"]);class Do{constructor(n,i){Cn(this,"_chart");Cn(this,"_charts",new Map);Cn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const o=fe.init(n,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(n,i){return new Do(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,o){return this._chart.createIndicator(n,i,o)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,o){return this._chart.zoomAtCoordinate(n,i,o)}zoomAtDataIndex(n,i,o){return this._chart.zoomAtDataIndex(n,i,o)}zoomAtTimestamp(n,i,o){return this._chart.zoomAtTimestamp(n,i,o)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,o){return this._chart.getConvertPictureUrl(n,i,o)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const R9=6,Uv=14,B9=14,F9=18;function Zv(e,n){const i=n.points[0],o=n.extendData;if(!i||!o||!Number.isFinite(i.timestamp)||typeof o.isBuy!="boolean")return null;const l=e.getDataList().find($=>$.timestamp===i.timestamp);let c,f;if(l&&Number.isFinite(l.high)&&Number.isFinite(l.low)?(c=l.high,f=l.low):(c=typeof o.barHigh=="number"&&Number.isFinite(o.barHigh)?o.barHigh:void 0,f=typeof o.barLow=="number"&&Number.isFinite(o.barLow)?o.barLow:void 0),c===void 0||f===void 0)return null;const g=e.convertToPixel({timestamp:i.timestamp,value:i.value}).x,v=e.convertToPixel({timestamp:i.timestamp,value:c}).y,y=e.convertToPixel({timestamp:i.timestamp,value:f}).y;if(typeof g!="number"||typeof v!="number"||typeof y!="number")return null;const b=Math.max(0,o.stackIndex??0),C=Math.abs(y-v),L=Number.isFinite(C)&&C<F9?Math.max(0,F9-C)*.65:0,k=Uv+L,x=o.isBuy?y+k+b*B9:v-k-b*B9;return{cx:g,cy:x-.5}}function Yv(e,n,i){const o=e.getOverlays({name:"hisOrderMark",paneId:"candle_pane"})??[],s=e.getDom("candle_pane","main"),l=s==null?void 0:s.getBoundingClientRect(),c=R9*R9,f=[];for(const y of o){const b=y.id;if(!b)continue;const C=Zv(e,y);if(!C)continue;const L=n-C.cx,k=i-C.cy,x=L*L+k*k;if(x>c)continue;const $=y.extendData,P=Math.max(0,$.stackIndex??0);f.push({overlayId:b,order:$,distSq:x,stackIndex:P,cx:C.cx,cy:C.cy})}if(f.length===0)return null;f.sort((y,b)=>y.distSq!==b.distSq?y.distSq-b.distSq:b.stackIndex-y.stackIndex);const d=f[0],g=l?l.left+d.cx:d.cx,v=l?l.top+d.cy:d.cy;return{overlayId:d.overlayId,order:d.order,anchorX:g,anchorY:v}}const z9={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function qv(e){return{onIndicatorTooltipFeatureClick:l=>{const c=l,f=e.getApi();if(f)switch(c.feature.id){case"visible":e.setIndicatorVisible(c.indicator.name,c.paneId,!0,c.indicator.id);break;case"invisible":e.setIndicatorVisible(c.indicator.name,c.paneId,!1,c.indicator.id);break;case"setting":{const d=f.getIndicators({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:c.indicator.name,paneId:c.paneId,calcParams:d.calcParams});break}case"close":{if(c.paneId==="candle_pane"){const d=[...e.mainIndicators()];if(!e.popIndicator(c.indicator.name,c.paneId,c.indicator.id))break;d.splice(d.indexOf(c.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};if(!e.popIndicator(c.indicator.name,c.paneId,c.indicator.id))break;delete d[c.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f=[...e.mainIndicators()];if(l.added)e.createIndicator(c,l.name,!0,{id:"candle_pane"}),f.push(l.name);else{if(!e.popIndicator(l.name,"candle_pane"))return;f.splice(f.indexOf(l.name),1)}e.setMainIndicators(f)},onSubIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(c,l.name);d&&(f[l.name]=d)}else if(l.id){if(!e.popIndicator(l.name,void 0,l.id))return;delete f[l.name]}e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{if(!e.getApi())return;const f=e.indicatorSettingModalParams();e.modifyIndicator(f,l)}}}const Gv=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(o=>{delete i[o]}),i},Vv=e=>{const n=["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 n.forEach(o=>{delete i[o]}),i};function A1(){try{const e=localStorage.getItem("chartstatedata");if(!e)return{};const n=JSON.parse(e);return Array.isArray(n.indicators)&&(n.indicators=n.indicators.map(i=>Jv(i)).filter(i=>i!==null)),n}catch{return{}}}function Ei(e){localStorage.setItem("chartstatedata",JSON.stringify(e))}function jv(e){return!!e&&e!=="candle_pane"}function Qv(e,n){return{name:e.name,visible:e.visible??!0,calcParams:Array.isArray(e.calcParams)?[...e.calcParams]:[],isMainPane:(n==null?void 0:n.id)==="candle_pane"}}function Xv(e){return{name:e.name,visible:e.visible,calcParams:e.calcParams}}function Jv(e){var i,o;if(!e||typeof e!="object")return null;const n=e;return typeof n.name=="string"&&typeof n.visible=="boolean"&&Array.isArray(n.calcParams)?{name:n.name,visible:n.visible,calcParams:n.calcParams.map(s=>Number(s)).filter(s=>Number.isFinite(s)),isMainPane:n.isMainPane===!0}:typeof((i=n.value)==null?void 0:i.name)=="string"?{name:n.value.name,visible:typeof n.value.visible=="boolean"?n.value.visible:!0,calcParams:Array.isArray(n.value.calcParams)?n.value.calcParams.map(s=>Number(s)).filter(s=>Number.isFinite(s)):[],isMainPane:((o=n.paneOptions)==null?void 0:o.id)==="candle_pane"}:null}const eC=()=>{const e=(x,$,P)=>{const O=A1(),T=Qv(Gv(rt.cloneDeep(x)),P);if(!O.indicators)O.indicators=[T];else{const z=O.indicators.findIndex(W=>W.name===T.name&&W.isMainPane===T.isMainPane);z>-1?O.indicators[z]=T:O.indicators.push(T)}return Ei(O),zn(!0),!1},n=x=>{const $=localStorage.getItem("chartstatedata");let P;const O=Vv(rt.cloneDeep(x));return $?(P=JSON.parse($),P.overlays?P.overlays.find(T=>{var z;return((z=T.value)==null?void 0:z.id)===O.id})?P.overlays=P.overlays.map(T=>{var z;return((z=T.value)==null?void 0:z.id)!==O.id?T:{value:O,paneId:x.paneId}}):P.overlays.push({value:O,paneId:x.paneId}):P.overlays=[{value:x,paneId:x.paneId}]):P={overlays:[{value:O,paneId:x.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(P)),zn(!0),!1};function i(x,$,P,O,T=!1){const z=typeof $=="string"?$:$.name;z==="VOL"&&(O={axis:{gap:{bottom:2}},...O});const W=(O==null?void 0:O.id)==="candle_pane",U=typeof $=="string"?{name:$}:rt.cloneDeep($),I=x.createIndicator({...U,name:z,createTooltipDataSource:R=>{const j=R.chart.getStyles().indicator.tooltip.features,ee=[];return W&&ee.push(R.indicator.visible?j[1]:j[0]),ee.push(j[2]),ee.push(j[3]),{features:ee}}},P,O)??null;if(I&&T){const R=x==null?void 0:x.getIndicators({id:I,name:z})[0];if(R){const V=(O==null?void 0:O.id)==="candle_pane"?O:{...O??{},id:I};e(R,P,V)}}return I}const o=(x,$,P)=>{const O=A1(),T=O.indicators??[],z=Array.isArray(O.indicators),W=[],U={};if(z){const I=new Set;return T.forEach(R=>{if(!R.isMainPane&&I.has(R.name))return;const j=i(x,Xv(R),R.isMainPane,R.isMainPane?{id:"candle_pane"}:void 0);R.isMainPane?W.push(R.name):j&&(U[R.name]=j,I.add(R.name))}),{mainIndicators:W,subIndicators:U}}return $.forEach(I=>{i(x,I,!0,{id:"candle_pane"},!0),W.push(I)}),P.forEach(I=>{const R=i(x,I,!1,void 0,!0);R&&(U[I]=R)}),{mainIndicators:W,subIndicators:U}},s=(x,$,P=!1)=>{var W,U,I;const O=(W=ve())==null?void 0:W.createOverlay({...x,paneId:$});if(!O)return!1;const T=(U=ve())==null?void 0:U.getOverlays({id:O})[0],z=R=>(R.preventDefault&&R.preventDefault(),l(R.overlay.id),!0);T&&(x.properties&&T.setProperties(x.properties,O),(I=ve())==null||I.overrideOverlay({id:T.id,onDrawEnd:R=>["measure"].includes(T.name)?!1:n(R.overlay),onPressedMoveEnd:R=>["measure"].includes(T.name)?!1:n(R.overlay),onSelected:R=>Ti(R.overlay),onDeselected:()=>Ti(null),onRightClick:T.onRightClick?T.onRightClick:z,onDoubleClick:T.onDoubleClick?T.onDoubleClick:z}),P||n(T))},l=x=>{var P,O,T;const $=localStorage.getItem("chartstatedata");if($){let z=JSON.parse($);z.overlays=(P=z.overlays)==null?void 0:P.filter(W=>{var U;return((U=W.value)==null?void 0:U.id)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(z)),zn(!0)}(O=ve())==null||O.removeOverlay({id:x}),((T=ry())==null?void 0:T.id)===x&&Ti(null)},c=(x,$)=>{var O,T;const P=localStorage.getItem("chartstatedata");if(P){let z=JSON.parse(P);z.overlays=(O=z.overlays)==null?void 0:O.map(W=>{var U;return((U=W.value)==null?void 0:U.id)===x&&(W.value={...W.value,...$},W.paneId=$.paneId??W.paneId),W}),localStorage.setItem("chartstatedata",JSON.stringify(z)),zn(!0),(T=ve())==null||T.overrideOverlay({...$,id:x})}},f=(x,$)=>{var O,T;const P=localStorage.getItem("chartstatedata");if(P){let z=JSON.parse(P);z.overlays=(O=z.overlays)==null?void 0:O.map(U=>{var I;return((I=U.value)==null?void 0:I.id)===x&&(U.value.properties={...U.value.properties,...$}),U});const W=(T=ve())==null?void 0:T.getOverlayById(x);W&&W.setProperties($,x),localStorage.setItem("chartstatedata",JSON.stringify(z)),zn(!0)}},d=x=>{const $=[...Xm()];x.added?(i(ve(),x.name,!0,{id:"candle_pane"},!0),$.push(x.name)):(b(x.name,"candle_pane"),$.splice($.indexOf(x.name),1)),Jm($)},g=x=>{const $={...ey()};if(x.added){const P=i(ve(),x.name,!1,void 0,!0);P&&($[x.name]=P)}else x.paneId&&(b(x.name,x.paneId),delete $[x.name]);ty($)},v=(x,$)=>{var T,z;const P=A1(),O=x.paneId==="candle_pane";P.indicators=(T=P.indicators)==null?void 0:T.map(W=>(W.name===x.indicatorName&&W.isMainPane===O&&(W.calcParams=[...$]),W)),Ei(P),zn(!0),(z=ve())==null||z.overrideIndicator({name:x.indicatorName,calcParams:$,paneId:x.paneId})},y=(x,$,P,O)=>{var W,U;const T=A1(),z=$==="candle_pane";T.indicators=(W=T.indicators)==null?void 0:W.map(I=>(I.name===x&&I.isMainPane===z&&(I.visible=P),I)),Ei(T),zn(!0),(U=ve())==null||U.overrideIndicator({name:x,paneId:$,visible:P,id:O})},b=(x,$,P)=>{var W;const O=ve();if(!O)return!1;let T=!1;if($&&$!=="candle_pane"&&(T=O.removeIndicator({paneId:$,name:x})),!T&&P&&(T=O.removeIndicator({id:P})),!T&&$&&(T=O.removeIndicator({paneId:$,name:x})),!T)return!1;const z=A1();return z.indicators=(W=z.indicators)==null?void 0:W.filter(U=>jv($)?U.name!==x||U.isMainPane:!(U.name===x&&U.isMainPane)),Ei(z),zn(!0),!0},C=(x,$)=>{document.documentElement.style.setProperty(x,$,"important");const P=document.querySelector("[data-theme]");P&&P.style.setProperty(x,$,"important")},L=x=>{var $;x.background&&C("--klinecharts-pro-pane-background",x.background),x.backgroundGradientStartColor&&C("--klinecharts-pro-pane-background-gradient-start",x.backgroundGradientStartColor),x.backgroundGradientEndColor&&C("--klinecharts-pro-pane-background-gradient-end",x.backgroundGradientEndColor),($=x.separator)!=null&&$.color&&C("--klinecharts-pro-border-color",x.separator.color)};return{createIndicator:i,modifyIndicator:v,popIndicator:b,syncIndiObject:e,syncObject:n,pushOverlay:s,modifyOverlay:c,modifyOverlayProperties:f,popOverlay:l,pushMainIndicator:d,pushSubIndicator:g,restoreChartState:async x=>{const $=T=>{const z=JSON.parse(T);z.figures,z.overlays&&z.overlays.forEach(W=>{s(W.value,W.paneId,!0)})},P=localStorage.getItem("chartstatedata");P&&$(P);const O=JSON.parse(P)??{};x&&(L(x),O.styleObj||(O.styleObj=x,localStorage.setItem("chartstatedata",JSON.stringify(O)))),O.styleObj&&v9(O.styleObj)},restoreIndicators:o,setIndicatorVisible:y}};function tC(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.span=="number"&&Number.isFinite(n.span)&&typeof n.type=="string"}function N9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch{return{}}}function nC(e){localStorage.setItem(Qr,JSON.stringify(e))}function rC(e,n){return!e||!n?!1:e.span===n.span&&e.type===n.type}function Ro(e,n){return n?e.find(i=>rC(i,n))??null:null}function iC(){const e=N9();return tC(e.period)?{span:e.period.span,type:e.period.type,text:typeof e.period.text=="string"?e.period.text:""}:null}function K9(e){const n=N9();n.period={span:e.span,type:e.type,text:e.text},nC(n)}function oC(e,n){const i=Ro(e,iC());if(i)return i;const o=Ro(e,n);return o||(e[0]??n)}function H9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch{return{}}}function aC(e){localStorage.setItem(Qr,JSON.stringify(e))}function sC(){const e=H9();return typeof e.timezone=="string"&&e.timezone.length>0?e.timezone:null}function W9(e){const n=H9();n.timezone=e,aC(n)}function lC(e){return sC()??e}function cC(e,n){let i=null;const o=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:f=>{const g=f.detail;if(!!(g!=null&&g.visible)){o(),n({visible:!0,order:(g==null?void 0:g.order)??null,x:(g==null?void 0:g.anchorX)??null,y:(g==null?void 0:g.anchorY)??null});return}o(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:o,setExclusiveHover:f=>{o(),n({visible:!0,order:f.order,x:f.anchorX??null,y:f.anchorY??null})},resetHoverToHidden:()=>{o(),n({visible:!1,order:null,x:null,y:null})}}}function uC(e,n){const i=[];let o=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{o+=1;const c=o;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==o)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var fC=Y('<i class="icon-close klinecharts-pro-load-icon">'),dC=Y("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),hC=Y("<div class=klinecharts-pro-alert-detail>");const{createIndicator:gC,modifyIndicator:pC,pushOverlay:_C,popIndicator:mC,restoreChartState:yC,restoreIndicators:bC,setIndicatorVisible:vC}=eC(),CC=[0,120,360,900],xC=120;function wC(e){return{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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,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:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const $C=e=>{let n,i=null,o;const[s,l]=Q(e.theme),[c,f]=Q(e.locale),[d,g]=Q(!1),[v,y]=Q([...e.mainIndicators]),[b,C]=Q({}),[L,k]=Q(!1),[x,$]=Q(!1),[P,O]=Q(!1),[T,z]=Q(),[W,U]=Q(""),[I,R]=Q(e.drawingBarVisible),[V,j]=Q([...e.alerts??[]]),[ee,te]=Q(null),[Oe,it]=Q(!1),[wt,$t]=Q(!1),[qe,dt]=Q(null),[Le,ie]=Q({x:null,y:null});let Me=null,ht=!1,oe=null,Te;const[ce,Re]=Q(z9),ct=D=>{const N=Ro(e.periods,D)??D;m9(N),K9(N)},Qe=oC(e.periods,e.period),yt=lC(e.timezone),[Ht,hn]=Q({key:yt,text:Oo(yt,e.locale)}),gn=D=>{hn({key:D,text:Oo(D,c())}),W9(D)},Sn=async D=>{var N;return await((N=e.onRemoveAlert)==null?void 0:N.call(e,D))??!0};g6({onRemove:D=>{Sn(D)}}),m9(Qe),K9(Qe),W9(yt),Po(e.symbol);const ut=cC(xC,D=>{$t(D.visible),dt(D.order),ie({x:D.x,y:D.y})});let Pe=null;const Lt=D=>{const N=D;if(!N)return;const de=ve(),X=n,xe=X==null?void 0:X.closest(".klinecharts-pro");if(!de||!xe||N.paneId!=="candle_pane"||typeof N.x!="number"||typeof N.y!="number")return;const ue=Yv(de,N.x,N.y);if(ue){if(ue.overlayId===Pe)return;Pe=ue.overlayId,ut.setExclusiveHover({order:ue.order,anchorX:ue.anchorX,anchorY:ue.anchorY});return}Pe!=null&&(Pe=null,ut.resetHoverToHidden())},Xe=uC(()=>Kn(ve()),CC),_t=qv({getApi:()=>ve(),mainIndicators:v,setMainIndicators:y,subIndicators:b,setSubIndicators:C,indicatorSettingModalParams:ce,setIndicatorSettingModalParams:Re,createIndicator:(D,N,de,X)=>gC(D,N,de,X,!0),popIndicator:mC,setIndicatorVisible:vC,modifyIndicator:pC}),Dt=D=>{const N=D.detail,de=(N==null?void 0:N.sourceContainer)??null,X=n==null?void 0:n.closest(".klinecharts-pro");X&&(de&&de!==X||N!=null&&N.alert&&te(N.alert))},Ge=D=>{const N=D.detail,de=(N==null?void 0:N.sourceContainer)??null,X=n==null?void 0:n.closest(".klinecharts-pro");X&&(de&&de!==X||ut.onEvent(D))},ft=()=>{if(ht)return;ht=!0;const D=i;D==null||D.unsubscribeAction("onCrosshairChange",Lt),Pe=null,ut.clear(),Xe.clear(),Me!=null&&(window.cancelAnimationFrame(Me),Me=null);const N=n==null?void 0:n.closest(".klinecharts-pro");N==null||N.removeEventListener(V1,Ge),N==null||N.removeEventListener(m1,Dt),window.removeEventListener(V1,Ge),window.removeEventListener(m1,Dt),window.removeEventListener("resize",Hn),n&&fe.dispose(n),ve()===D&&y9(null),i=null},pn={setTheme:l,getTheme:()=>s(),setStyles:v9,getStyles:()=>b9()??{},setLocale:f,getLocale:()=>c(),setTimezone:gn,getTimezone:()=>Ht().key,setSymbol:Po,getSymbol:()=>$1(),setPeriod:ct,getPeriod:()=>L1(),getInstanceApi:()=>ve(),resize:()=>{var D;return(D=ve())==null?void 0:D.resize()},dispose:()=>{ft()},setPositions:D=>{cv(D,ve())},setLiqPrice:D=>{uv(D,ve())},setOpenOrders:D=>{fv(D,ve())},setHisOrders:D=>{dv(D,ve())},setAlerts:D=>{j([...D]),O9(D,ve())}};e.ref(pn);const Hn=()=>{Me==null&&(Me=window.requestAnimationFrame(()=>{var D;Me=null,(D=ve())==null||D.resize()}))},nr=()=>{Xe.schedule()};return N0(()=>{const D=n==null?void 0:n.closest(".klinecharts-pro");D==null||D.addEventListener(V1,Ge),D==null||D.addEventListener(m1,Dt),window.addEventListener(V1,Ge),window.addEventListener(m1,Dt),window.addEventListener("resize",Hn);const N=Do.init(n,{formatter:{formatDate:X=>{switch(L1().type){case"minute":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"HH:mm"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm");case"hour":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"MM-DD HH:mm"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD");case"month":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD");case"year":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD")}return fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm")}}});if(i=N,y9(N),N){Gm(e.rootElementId);const X=N.getDom("candle_pane","main");if(X){let ye=document.createElement("div");if(ye.className="klinecharts-pro-watermark",fe.utils.isString(e.watermark)){const Je=e.watermark.replace(/(^\s*)|(\s*$)/g,"");ye.innerHTML=Je}else ye.appendChild(e.watermark);X.appendChild(ye)}const xe=N.getDom("candle_pane","yAxis");o=document.createElement("span"),o.className="klinecharts-pro-price-unit",xe==null||xe.appendChild(o),N.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),N.setBarSpace(400),N.subscribeAction("onCrosshairFeatureClick",ye=>{}),N.subscribeAction("onIndicatorTooltipFeatureClick",_t.onIndicatorTooltipFeatureClick),N.subscribeAction("onCandleTooltipFeatureClick",ye=>{}),N.subscribeAction("onZoom",ye=>{}),N.subscribeAction("onCrosshairChange",Lt),yC(e.overrides),av(N),S1(N),O9(e.alerts??[],N);const ue=$1();ue!=null&&ue.priceCurrency?(o.innerHTML=ue==null?void 0:ue.priceCurrency.toLocaleUpperCase(),o.style.display="flex"):o.style.display="none",N.setSymbol({...ue,pricePrecision:(ue==null?void 0:ue.pricePrecision)??2,volumePrecision:(ue==null?void 0:ue.volumePrecision)??0}),N.setPeriod(L1()),N.setDataLoader(e.dataloader),nr()}const de=i;if(de){const X=bC(de,e.mainIndicators,e.subIndicators);y(X.mainIndicators),C(X.subIndicators)}N&&z(pg(N.getStyles()))}),Sr(()=>{ft()}),Nt(D=>{var kn,Wn,Un,t1,Di,Ri,Bi,M1,T1,Fi,zi,Ni,Ki,P1,Hi,Wi;const N=$1(),de=L1(),X=ve();if(!N||!de)return{symbol:N,period:de};const xe=D!==void 0&&(D.period.span!==de.span||D.period.type!==de.type||D.period.text!==de.text),ue=D!==void 0&&(((kn=D.symbol)==null?void 0:kn.ticker)!==N.ticker||(((Wn=D.symbol)==null?void 0:Wn.pricePrecision)??2)!==(N.pricePrecision??2)||(((Un=D.symbol)==null?void 0:Un.volumePrecision)??0)!==(N.volumePrecision??0)),ye=D!==void 0&&((t1=D.symbol)==null?void 0:t1.ticker)===N.ticker&&(((Di=D.symbol)==null?void 0:Di.name)!==N.name||((Ri=D.symbol)==null?void 0:Ri.shortName)!==N.shortName||((Bi=D.symbol)==null?void 0:Bi.exchange)!==N.exchange||((M1=D.symbol)==null?void 0:M1.market)!==N.market||((T1=D.symbol)==null?void 0:T1.priceCurrency)!==N.priceCurrency||((Fi=D.symbol)==null?void 0:Fi.type)!==N.type||((zi=D.symbol)==null?void 0:zi.logo)!==N.logo||((Ni=D.symbol)==null?void 0:Ni.dollarPerPip)!==N.dollarPerPip),Je=ue||ye,en=D!==void 0&&((Ki=D.symbol)==null?void 0:Ki.ticker)===N.ticker&&((((P1=D.symbol)==null?void 0:P1.pricePrecision)??2)!==(N.pricePrecision??2)||(((Hi=D.symbol)==null?void 0:Hi.volumePrecision)??0)!==(N.volumePrecision??0));return D!==void 0&&((Wi=D.symbol)==null?void 0:Wi.ticker)!==N.ticker&&Ti(null),xe&&(X==null||X.setPeriod(de)),Je&&(X==null||X.setSymbol({...N,pricePrecision:N.pricePrecision??2,volumePrecision:N.volumePrecision??0}),i&&N&&(N.priceCurrency?(o.innerHTML=N.priceCurrency.toLocaleUpperCase(),o.style.display="flex"):o.style.display="none")),(xe||Je)&&nr(),en&&(X==null||X.resize()),Kn(i??X),{symbol:N,period:de}}),Nt(()=>{const D=ve();if(!D)return;const N=s();D.setStyles(N);const de=N==="dark"?"#929AA5":"#76808F";oe!==de&&(oe=de,D.setStyles(wC(de))),Kn(i??D)}),Nt(()=>{const D=ve();D&&(D.setLocale(c()),D.setTimezone(Ht().key))}),Nt(()=>{const D=Ht(),N=Oo(D.key,c());D.text!==N&&hn({...D,text:N})}),Nt(()=>{const D=ve();if(!D)return;const N=b9();!N||Te===N||(Te=N,D.setStyles(N))}),Nt(()=>{const D=n;if(!D||!x()&&!P()&&!ee())return;const N=(ue,ye)=>{if(!ue||!(ue instanceof Element)||ye===0)return!1;let Je=ue;for(;Je;){const en=window.getComputedStyle(Je);if((en.overflowY==="auto"||en.overflowY==="scroll"||en.overflowY==="overlay")&&Je.scrollHeight>Je.clientHeight)return ye>0?Je.scrollTop+Je.clientHeight<Je.scrollHeight:Je.scrollTop>0;Je=Je.parentElement}return!1};let de=null;const X=ue=>{de=ue.touches.length>0?ue.touches[0].clientY:null},xe=ue=>{if(ue instanceof WheelEvent){if(N(ue.target,ue.deltaY))return}else{if(ue.touches.length===0){ue.preventDefault(),ue.stopPropagation();return}const ye=ue.touches[0].clientY;if(de!=null){const Je=de-ye;if(N(ue.target,Je)){de=ye;return}}de=ye}ue.preventDefault(),ue.stopPropagation()};D.addEventListener("touchstart",X,{passive:!0}),D.addEventListener("wheel",xe,{passive:!1}),D.addEventListener("touchmove",xe,{passive:!1}),Sr(()=>{D.removeEventListener("touchstart",X),D.removeEventListener("wheel",xe),D.removeEventListener("touchmove",xe)})}),[fC(),q(Ee,{get when(){return Oe()},get children(){return q(Pv,{get locale(){return c()},get datafeed(){return e.dataloader},onSymbolSelected:D=>{Po(D)},onClose:()=>{it(!1)}})}}),q(Ee,{get when(){return d()},get children(){return q(Wb,{get locale(){return c()},get mainIndicators(){return v()},get subIndicators(){return b()},onClose:()=>{g(!1)},get onMainIndicatorChange(){return _t.onMainIndicatorChange},get onSubIndicatorChange(){return _t.onSubIndicatorChange}})}}),q(Ee,{get when(){return L()},get children(){return q(Yb,{get locale(){return c()},get timezone(){return Ht()},onClose:()=>{k(!1)},onConfirm:D=>{gn(D.key)}})}}),q(Ee,{get when(){return P()},get children(){return q(Wv,{get locale(){return c()},get alerts(){return V()},onClose:()=>{O(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:Sn})}}),q(Ee,{get when(){return ee()},children:D=>q($n,{get title(){return m("alert_detail",c())},width:400,height:260,onClose:()=>{te(null)},get children(){var N=hC();return B(N,q(D9,{get locale(){return c()},get alert(){return D()}})),N}})}),q(Ee,{get when(){return x()},get children(){return q(vv,{get locale(){return c()},get currentStyles(){return fe.utils.clone(ve().getStyles())},onClose:()=>{$(!1)},onChange:D=>{var N;(N=ve())==null||N.setStyles(D)},onRestoreDefault:D=>{var de;const N={};D.forEach(X=>{const xe=X.key;C1(N,xe,fe.utils.formatValue(T(),xe))}),(de=ve())==null||de.setStyles(N)}})}}),q(Ee,{get when(){return W().length>0},get children(){return q(xv,{get locale(){return c()},get url(){return W()},onClose:()=>{U("")}})}}),q(Ee,{get when(){return ce().visible},get children(){return q(Sv,{get locale(){return c()},get params(){return ce()},onClose:()=>{Re(z9)},get onConfirm(){return _t.onIndicatorSettingConfirm}})}}),q(Ee,{get when(){return Ye(()=>!!wt())()&&!!qe()},get children(){return q(Ym,{get locale(){return c()},get order(){return qe()},get formattedTime(){return F2(qe().timestamp,c(),Ht().key)},get anchorX(){return Le().x},get anchorY(){return Le().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),q(uy,{get locale(){return c()},get symbol(){return $1()},get spread(){return I()},get period(){return L1()},get periods(){return e.periods},onMenuClick:async()=>{var D;try{await k6(()=>R(!I())),(D=ve())==null||D.resize()}catch{}},onSymbolClick:()=>{it(!Oe())},onPeriodChange:ct,onIndicatorClick:()=>{g(D=>!D)},onTimezoneClick:()=>{k(D=>!D)},onAlertClick:()=>{O(!0)},onSettingClick:()=>{$(D=>!D)},onScreenshotClick:()=>{if(ve()){const D=ve().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");U(D)}}}),(()=>{var D=dC(),N=D.firstChild;B(D,q(Ee,{get when(){return Qm()},get children(){return q(wl,{})}}),N),B(D,q(Ee,{get when(){return I()},get children(){return q(Kb,{get locale(){return c()},onDrawingItemClick:X=>{_C(X,"candle_pane")},onModeChange:X=>{var xe;(xe=ve())==null||xe.overrideOverlay({groupId:"drawing_tools",mode:X})},onLockChange:X=>{var xe;(xe=ve())==null||xe.overrideOverlay({groupId:"drawing_tools",lock:X})},onVisibleChange:X=>{var xe;(xe=ve())==null||xe.overrideOverlay({groupId:"drawing_tools",visible:X})},onRemoveClick:X=>{var xe;(xe=ve())==null||xe.removeOverlay({groupId:X})}})}}),N);var de=n;return typeof de=="function"?si(de,N):n=N,Ie(X=>{var xe=e.overrides.backgroundType??"solid",ue=I();return xe!==X.e&&tt(N,"data-pane-style",X.e=xe),ue!==X.t&&tt(N,"data-drawing-bar-visible",X.t=ue),X},{e:void 0,t:void 0}),D})()]};class LC{constructor(n){Cn(this,"_datafeed");Cn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:o,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,_9(!0);const d=o??new Date().getTime();await(async()=>{const[v,y]=this.adjustFromTo(f,d,500),b=await this._datafeed.getHistoryKLineData(s,f,v,y);c(b,b.length>0),this._loading=!1,_9(!1)})()}subscribeBar(n){const{symbol:i,period:o,callback:s}=n;this._datafeed.subscribe(i,o,s)}unsubscribeBar(n){const{symbol:i,period:o}=n;this._datafeed.unsubscribe(i,o)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,o){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-o*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-o*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-o*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-o*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var SC=Y('<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 kC=SC();class AC{constructor(n){Cn(this,"_container");Cn(this,"_chartApi",null);if(fe.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new LC(n.datafeed);F6(()=>{const o=this;return q($C,{ref:s=>{o._chartApi=s},get watermark(){return n.watermark??kC},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.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 n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??[]},get subIndicators(){return n.subIndicators??[]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get onAddAlert(){return n.onAddAlert??(()=>!0)},get onRemoveAlert(){return n.onRemoveAlert??(()=>!0)},get alerts(){return n.alerts??[]},get rootElementId(){var s;return n.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&fe.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return ve()}resize(){ve().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setAlerts(n){var i;(i=this._chartApi)==null||i.setAlerts(n)}}const vD="";console.log("[@wangliang139/klinecharts-pro] v0.2.29"),m6.forEach(e=>{fe.registerOverlay(e)}),At.DefaultDatafeed=y6,At.KLineChartPro=AC,At.loadLocales=V2,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})});
|
|
40
40
|
//# sourceMappingURL=klinecharts-pro.umd.js.map
|