@wangliang139/klinecharts-pro 0.2.2 → 0.2.4
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 +3615 -3590
- 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(pt,
|
|
1
|
+
(function(pt,ue){typeof exports=="object"&&typeof module<"u"?ue(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],ue):(pt=typeof globalThis<"u"?globalThis:pt||self,ue(pt.klinechartspro={},pt.klinecharts))})(this,function(pt,ue){"use strict";var WS=Object.defineProperty;var KS=(pt,ue,nn)=>ue in pt?WS(pt,ue,{enumerable:!0,configurable:!0,writable:!0,value:nn}):pt[ue]=nn;var Mt=(pt,ue,nn)=>(KS(pt,typeof ue!="symbol"?ue+"":ue,nn),nn);function nn(e,r,i){const o=(e.x-r.x)*Math.cos(i)-(e.y-r.y)*Math.sin(i)+r.x,s=(e.x-r.x)*Math.sin(i)+(e.y-r.y)*Math.cos(i)+r.y;return{x:o,y:s}}function ni(e,r){if(e.length>1){let i;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?i={x:e[0].x,y:r.height}:i={x:e[0].x,y:0}:e[0].x>e[1].x?i={x:0,y:ue.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:r.width,y:ue.utils.getLinearYFromCoordinates(e[0],e[1],{x:r.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function xa(e,r){const i=Math.abs(e.x-r.x),o=Math.abs(e.y-r.y);return Math.sqrt(i*i+o*o)}var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Br={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
|
-
*/Er.exports,function(e,r){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",y="__lodash_hash_undefined__",_=500,v="__lodash_placeholder__",L=1,M=2,w=4,T=1,A=2,C=1,I=2,R=4,$=8,Z=16,X=32,Q=64,O=128,z=256,G=512,q=30,U="...",H=800,D=16,ee=1,ge=2,de=3,he=1/0,Ie=9007199254740991,$e=17976931348623157e292,Ue=0/0,Ee=4294967295,ht=Ee-1,ae=Ee>>>1,ne=[["ary",O],["bind",C],["bindKey",I],["curry",$],["curryRight",Z],["flip",G],["partial",X],["partialRight",Q],["rearg",z]],oe="[object Arguments]",ye="[object Array]",Pe="[object AsyncFunction]",ve="[object Boolean]",_t="[object Date]",cn="[object DOMException]",un="[object Error]",Oe="[object Function]",bn="[object GeneratorFunction]",Ve="[object Map]",Fe="[object Number]",Et="[object Null]",tt="[object Object]",ut="[object Promise]",Dt="[object Proxy]",fe="[object RegExp]",Je="[object Set]",Bn="[object String]",Z1="[object Symbol]",mr="[object Undefined]",Vn="[object WeakMap]",yr="[object WeakSet]",u1="[object ArrayBuffer]",Qn="[object DataView]",W1="[object Float32Array]",vr="[object Float64Array]",Qe="[object Int8Array]",br="[object Int16Array]",K1="[object Int32Array]",U1="[object Uint8Array]",H1="[object Uint8ClampedArray]",j1="[object Uint16Array]",so="[object Uint32Array]",c_=/\b__p \+= '';/g,u_=/\b(__p \+=) '' \+/g,f_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y5=/&(?:amp|lt|gt|quot|#39);/g,V5=/[&<>"']/g,d_=RegExp(Y5.source),h_=RegExp(V5.source),g_=/<%-([\s\S]+?)%>/g,p_=/<%([\s\S]+?)%>/g,Q5=/<%=([\s\S]+?)%>/g,m_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y_=/^\w*$/,v_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lo=/[\\^$.*+?()[\]{}|]/g,b_=RegExp(lo.source),co=/^\s+/,__=/\s/,C_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,x_=/\{\n\/\* \[wrapped with (.+)\] \*/,w_=/,? & /,$_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G5=/[()=,{}\[\]\/\s]/,L_=/\\(\\)?/g,k_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,q5=/\w*$/,S_=/^[-+]0x[0-9a-f]+$/i,A_=/^0b[01]+$/i,M_=/^\[object .+?Constructor\]$/,T_=/^0o[0-7]+$/i,P_=/^(?:0|[1-9]\d*)$/,I_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,p0=/($^)/,O_=/['\n\r\u2028\u2029\\]/g,m0="\\ud800-\\udfff",B_="\\u0300-\\u036f",E_="\\ufe20-\\ufe2f",D_="\\u20d0-\\u20ff",X5=B_+E_+D_,J5="\\u2700-\\u27bf",e2="a-z\\xdf-\\xf6\\xf8-\\xff",R_="\\xac\\xb1\\xd7\\xf7",z_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",F_="\\u2000-\\u206f",N_=" \\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",t2="A-Z\\xc0-\\xd6\\xd8-\\xde",n2="\\ufe0e\\ufe0f",r2=R_+z_+F_+N_,uo="['’]",Z_="["+m0+"]",i2="["+r2+"]",y0="["+X5+"]",o2="\\d+",W_="["+J5+"]",a2="["+e2+"]",s2="[^"+m0+r2+o2+J5+e2+t2+"]",fo="\\ud83c[\\udffb-\\udfff]",K_="(?:"+y0+"|"+fo+")",l2="[^"+m0+"]",ho="(?:\\ud83c[\\udde6-\\uddff]){2}",go="[\\ud800-\\udbff][\\udc00-\\udfff]",Y1="["+t2+"]",c2="\\u200d",u2="(?:"+a2+"|"+s2+")",U_="(?:"+Y1+"|"+s2+")",f2="(?:"+uo+"(?:d|ll|m|re|s|t|ve))?",d2="(?:"+uo+"(?:D|LL|M|RE|S|T|VE))?",h2=K_+"?",g2="["+n2+"]?",H_="(?:"+c2+"(?:"+[l2,ho,go].join("|")+")"+g2+h2+")*",j_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Y_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",p2=g2+h2+H_,V_="(?:"+[W_,ho,go].join("|")+")"+p2,Q_="(?:"+[l2+y0+"?",y0,ho,go,Z_].join("|")+")",G_=RegExp(uo,"g"),q_=RegExp(y0,"g"),po=RegExp(fo+"(?="+fo+")|"+Q_+p2,"g"),X_=RegExp([Y1+"?"+a2+"+"+f2+"(?="+[i2,Y1,"$"].join("|")+")",U_+"+"+d2+"(?="+[i2,Y1+u2,"$"].join("|")+")",Y1+"?"+u2+"+"+f2,Y1+"+"+d2,Y_,j_,o2,V_].join("|"),"g"),J_=RegExp("["+c2+m0+X5+n2+"]"),eC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tC=["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"],nC=-1,Ge={};Ge[W1]=Ge[vr]=Ge[Qe]=Ge[br]=Ge[K1]=Ge[U1]=Ge[H1]=Ge[j1]=Ge[so]=!0,Ge[oe]=Ge[ye]=Ge[u1]=Ge[ve]=Ge[Qn]=Ge[_t]=Ge[un]=Ge[Oe]=Ge[Ve]=Ge[Fe]=Ge[tt]=Ge[fe]=Ge[Je]=Ge[Bn]=Ge[Vn]=!1;var He={};He[oe]=He[ye]=He[u1]=He[Qn]=He[ve]=He[_t]=He[W1]=He[vr]=He[Qe]=He[br]=He[K1]=He[Ve]=He[Fe]=He[tt]=He[fe]=He[Je]=He[Bn]=He[Z1]=He[U1]=He[H1]=He[j1]=He[so]=!0,He[un]=He[Oe]=He[Vn]=!1;var rC={À:"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"},iC={"&":"&","<":"<",">":">",'"':""","'":"'"},oC={"&":"&","<":"<",">":">",""":'"',"'":"'"},aC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sC=parseFloat,lC=parseInt,m2=typeof wn=="object"&&wn&&wn.Object===Object&&wn,cC=typeof self=="object"&&self&&self.Object===Object&&self,mt=m2||cC||Function("return this")(),mo=r&&!r.nodeType&&r,f1=mo&&!0&&e&&!e.nodeType&&e,y2=f1&&f1.exports===mo,yo=y2&&m2.process,Qt=function(){try{var k=f1&&f1.require&&f1.require("util").types;return k||yo&&yo.binding&&yo.binding("util")}catch{}}(),v2=Qt&&Qt.isArrayBuffer,b2=Qt&&Qt.isDate,_2=Qt&&Qt.isMap,C2=Qt&&Qt.isRegExp,x2=Qt&&Qt.isSet,w2=Qt&&Qt.isTypedArray;function Rt(k,E,P){switch(P.length){case 0:return k.call(E);case 1:return k.call(E,P[0]);case 2:return k.call(E,P[0],P[1]);case 3:return k.call(E,P[0],P[1],P[2])}return k.apply(E,P)}function uC(k,E,P,te){for(var pe=-1,Be=k==null?0:k.length;++pe<Be;){var ft=k[pe];E(te,ft,P(ft),k)}return te}function zt(k,E){for(var P=-1,te=k==null?0:k.length;++P<te&&E(k[P],P,k)!==!1;);return k}function fC(k,E){for(var P=k==null?0:k.length;P--&&E(k[P],P,k)!==!1;);return k}function $2(k,E){for(var P=-1,te=k==null?0:k.length;++P<te;)if(!E(k[P],P,k))return!1;return!0}function Gn(k,E){for(var P=-1,te=k==null?0:k.length,pe=0,Be=[];++P<te;){var ft=k[P];E(ft,P,k)&&(Be[pe++]=ft)}return Be}function v0(k,E){var P=k==null?0:k.length;return!!P&&V1(k,E,0)>-1}function vo(k,E,P){for(var te=-1,pe=k==null?0:k.length;++te<pe;)if(P(E,k[te]))return!0;return!1}function Xe(k,E){for(var P=-1,te=k==null?0:k.length,pe=Array(te);++P<te;)pe[P]=E(k[P],P,k);return pe}function qn(k,E){for(var P=-1,te=E.length,pe=k.length;++P<te;)k[pe+P]=E[P];return k}function bo(k,E,P,te){var pe=-1,Be=k==null?0:k.length;for(te&&Be&&(P=k[++pe]);++pe<Be;)P=E(P,k[pe],pe,k);return P}function dC(k,E,P,te){var pe=k==null?0:k.length;for(te&&pe&&(P=k[--pe]);pe--;)P=E(P,k[pe],pe,k);return P}function _o(k,E){for(var P=-1,te=k==null?0:k.length;++P<te;)if(E(k[P],P,k))return!0;return!1}var hC=Co("length");function gC(k){return k.split("")}function pC(k){return k.match($_)||[]}function L2(k,E,P){var te;return P(k,function(pe,Be,ft){if(E(pe,Be,ft))return te=Be,!1}),te}function b0(k,E,P,te){for(var pe=k.length,Be=P+(te?1:-1);te?Be--:++Be<pe;)if(E(k[Be],Be,k))return Be;return-1}function V1(k,E,P){return E===E?SC(k,E,P):b0(k,k2,P)}function mC(k,E,P,te){for(var pe=P-1,Be=k.length;++pe<Be;)if(te(k[pe],E))return pe;return-1}function k2(k){return k!==k}function S2(k,E){var P=k==null?0:k.length;return P?wo(k,E)/P:Ue}function Co(k){return function(E){return E==null?i:E[k]}}function xo(k){return function(E){return k==null?i:k[E]}}function A2(k,E,P,te,pe){return pe(k,function(Be,ft,Ze){P=te?(te=!1,Be):E(P,Be,ft,Ze)}),P}function yC(k,E){var P=k.length;for(k.sort(E);P--;)k[P]=k[P].value;return k}function wo(k,E){for(var P,te=-1,pe=k.length;++te<pe;){var Be=E(k[te]);Be!==i&&(P=P===i?Be:P+Be)}return P}function $o(k,E){for(var P=-1,te=Array(k);++P<k;)te[P]=E(P);return te}function vC(k,E){return Xe(E,function(P){return[P,k[P]]})}function M2(k){return k&&k.slice(0,O2(k)+1).replace(co,"")}function Ft(k){return function(E){return k(E)}}function Lo(k,E){return Xe(E,function(P){return k[P]})}function _r(k,E){return k.has(E)}function T2(k,E){for(var P=-1,te=k.length;++P<te&&V1(E,k[P],0)>-1;);return P}function P2(k,E){for(var P=k.length;P--&&V1(E,k[P],0)>-1;);return P}function bC(k,E){for(var P=k.length,te=0;P--;)k[P]===E&&++te;return te}var _C=xo(rC),CC=xo(iC);function xC(k){return"\\"+aC[k]}function wC(k,E){return k==null?i:k[E]}function Q1(k){return J_.test(k)}function $C(k){return eC.test(k)}function LC(k){for(var E,P=[];!(E=k.next()).done;)P.push(E.value);return P}function ko(k){var E=-1,P=Array(k.size);return k.forEach(function(te,pe){P[++E]=[pe,te]}),P}function I2(k,E){return function(P){return k(E(P))}}function Xn(k,E){for(var P=-1,te=k.length,pe=0,Be=[];++P<te;){var ft=k[P];(ft===E||ft===v)&&(k[P]=v,Be[pe++]=P)}return Be}function _0(k){var E=-1,P=Array(k.size);return k.forEach(function(te){P[++E]=te}),P}function kC(k){var E=-1,P=Array(k.size);return k.forEach(function(te){P[++E]=[te,te]}),P}function SC(k,E,P){for(var te=P-1,pe=k.length;++te<pe;)if(k[te]===E)return te;return-1}function AC(k,E,P){for(var te=P+1;te--;)if(k[te]===E)return te;return te}function G1(k){return Q1(k)?TC(k):hC(k)}function fn(k){return Q1(k)?PC(k):gC(k)}function O2(k){for(var E=k.length;E--&&__.test(k.charAt(E)););return E}var MC=xo(oC);function TC(k){for(var E=po.lastIndex=0;po.test(k);)++E;return E}function PC(k){return k.match(po)||[]}function IC(k){return k.match(X_)||[]}var OC=function k(E){E=E==null?mt:q1.defaults(mt.Object(),E,q1.pick(mt,tC));var P=E.Array,te=E.Date,pe=E.Error,Be=E.Function,ft=E.Math,Ze=E.Object,So=E.RegExp,BC=E.String,Gt=E.TypeError,C0=P.prototype,EC=Be.prototype,X1=Ze.prototype,x0=E["__core-js_shared__"],w0=EC.toString,De=X1.hasOwnProperty,DC=0,B2=function(){var t=/[^.]+$/.exec(x0&&x0.keys&&x0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),$0=X1.toString,RC=w0.call(Ze),zC=mt._,FC=So("^"+w0.call(De).replace(lo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L0=y2?E.Buffer:i,Jn=E.Symbol,k0=E.Uint8Array,E2=L0?L0.allocUnsafe:i,S0=I2(Ze.getPrototypeOf,Ze),D2=Ze.create,R2=X1.propertyIsEnumerable,A0=C0.splice,z2=Jn?Jn.isConcatSpreadable:i,Cr=Jn?Jn.iterator:i,d1=Jn?Jn.toStringTag:i,M0=function(){try{var t=y1(Ze,"defineProperty");return t({},"",{}),t}catch{}}(),NC=E.clearTimeout!==mt.clearTimeout&&E.clearTimeout,ZC=te&&te.now!==mt.Date.now&&te.now,WC=E.setTimeout!==mt.setTimeout&&E.setTimeout,T0=ft.ceil,P0=ft.floor,Ao=Ze.getOwnPropertySymbols,KC=L0?L0.isBuffer:i,F2=E.isFinite,UC=C0.join,HC=I2(Ze.keys,Ze),dt=ft.max,Ct=ft.min,jC=te.now,YC=E.parseInt,N2=ft.random,VC=C0.reverse,Mo=y1(E,"DataView"),xr=y1(E,"Map"),To=y1(E,"Promise"),J1=y1(E,"Set"),wr=y1(E,"WeakMap"),$r=y1(Ze,"create"),I0=wr&&new wr,er={},QC=v1(Mo),GC=v1(xr),qC=v1(To),XC=v1(J1),JC=v1(wr),O0=Jn?Jn.prototype:i,Lr=O0?O0.valueOf:i,Z2=O0?O0.toString:i;function g(t){if(nt(t)&&!_e(t)&&!(t instanceof Ae)){if(t instanceof qt)return t;if(De.call(t,"__wrapped__"))return W9(t)}return new qt(t)}var tr=function(){function t(){}return function(n){if(!et(n))return{};if(D2)return D2(n);t.prototype=n;var a=new t;return t.prototype=i,a}}();function B0(){}function qt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}g.templateSettings={escape:g_,evaluate:p_,interpolate:Q5,variable:"",imports:{_:g}},g.prototype=B0.prototype,g.prototype.constructor=g,qt.prototype=tr(B0.prototype),qt.prototype.constructor=qt;function Ae(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function ex(){var t=new Ae(this.__wrapped__);return t.__actions__=Tt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Tt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Tt(this.__views__),t}function tx(){if(this.__filtered__){var t=new Ae(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function nx(){var t=this.__wrapped__.value(),n=this.__dir__,a=_e(t),c=n<0,d=a?t.length:0,p=gw(0,d,this.__views__),b=p.start,x=p.end,S=x-b,F=c?x:b-1,N=this.__iteratees__,K=N.length,J=0,re=Ct(S,this.__takeCount__);if(!a||!c&&d==S&&re==S)return f9(t,this.__actions__);var ue=[];e:for(;S--&&J<re;){F+=n;for(var we=-1,se=t[F];++we<K;){var Se=N[we],Me=Se.iteratee,Wt=Se.type,At=Me(se);if(Wt==ge)se=At;else if(!At){if(Wt==ee)continue e;break e}}ue[J++]=se}return ue}Ae.prototype=tr(B0.prototype),Ae.prototype.constructor=Ae;function h1(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function rx(){this.__data__=$r?$r(null):{},this.size=0}function ix(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function ox(t){var n=this.__data__;if($r){var a=n[t];return a===y?i:a}return De.call(n,t)?n[t]:i}function ax(t){var n=this.__data__;return $r?n[t]!==i:De.call(n,t)}function sx(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=$r&&n===i?y:n,this}h1.prototype.clear=rx,h1.prototype.delete=ix,h1.prototype.get=ox,h1.prototype.has=ax,h1.prototype.set=sx;function En(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function lx(){this.__data__=[],this.size=0}function cx(t){var n=this.__data__,a=E0(n,t);if(a<0)return!1;var c=n.length-1;return a==c?n.pop():A0.call(n,a,1),--this.size,!0}function ux(t){var n=this.__data__,a=E0(n,t);return a<0?i:n[a][1]}function fx(t){return E0(this.__data__,t)>-1}function dx(t,n){var a=this.__data__,c=E0(a,t);return c<0?(++this.size,a.push([t,n])):a[c][1]=n,this}En.prototype.clear=lx,En.prototype.delete=cx,En.prototype.get=ux,En.prototype.has=fx,En.prototype.set=dx;function Dn(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function hx(){this.size=0,this.__data__={hash:new h1,map:new(xr||En),string:new h1}}function gx(t){var n=Y0(this,t).delete(t);return this.size-=n?1:0,n}function px(t){return Y0(this,t).get(t)}function mx(t){return Y0(this,t).has(t)}function yx(t,n){var a=Y0(this,t),c=a.size;return a.set(t,n),this.size+=a.size==c?0:1,this}Dn.prototype.clear=hx,Dn.prototype.delete=gx,Dn.prototype.get=px,Dn.prototype.has=mx,Dn.prototype.set=yx;function g1(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new Dn;++n<a;)this.add(t[n])}function vx(t){return this.__data__.set(t,y),this}function bx(t){return this.__data__.has(t)}g1.prototype.add=g1.prototype.push=vx,g1.prototype.has=bx;function dn(t){var n=this.__data__=new En(t);this.size=n.size}function _x(){this.__data__=new En,this.size=0}function Cx(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function xx(t){return this.__data__.get(t)}function wx(t){return this.__data__.has(t)}function $x(t,n){var a=this.__data__;if(a instanceof En){var c=a.__data__;if(!xr||c.length<s-1)return c.push([t,n]),this.size=++a.size,this;a=this.__data__=new Dn(c)}return a.set(t,n),this.size=a.size,this}dn.prototype.clear=_x,dn.prototype.delete=Cx,dn.prototype.get=xx,dn.prototype.has=wx,dn.prototype.set=$x;function W2(t,n){var a=_e(t),c=!a&&b1(t),d=!a&&!c&&i1(t),p=!a&&!c&&!d&&or(t),b=a||c||d||p,x=b?$o(t.length,BC):[],S=x.length;for(var F in t)(n||De.call(t,F))&&!(b&&(F=="length"||d&&(F=="offset"||F=="parent")||p&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||Fn(F,S)))&&x.push(F);return x}function K2(t){var n=t.length;return n?t[Zo(0,n-1)]:i}function Lx(t,n){return V0(Tt(t),p1(n,0,t.length))}function kx(t){return V0(Tt(t))}function Po(t,n,a){(a!==i&&!gn(t[n],a)||a===i&&!(n in t))&&_n(t,n,a)}function kr(t,n,a){var c=t[n];(!(De.call(t,n)&&gn(c,a))||a===i&&!(n in t))&&_n(t,n,a)}function E0(t,n){for(var a=t.length;a--;)if(gn(t[a][0],n))return a;return-1}function Sx(t,n,a,c){return e1(t,function(d,p,b){n(c,d,a(d),b)}),c}function U2(t,n){return t&&xn(n,gt(n),t)}function Ax(t,n){return t&&xn(n,It(n),t)}function _n(t,n,a){n=="__proto__"&&M0?M0(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function Io(t,n){for(var a=-1,c=n.length,d=P(c),p=t==null;++a<c;)d[a]=p?i:ha(t,n[a]);return d}function p1(t,n,a){return t===t&&(a!==i&&(t=t<=a?t:a),n!==i&&(t=t>=n?t:n)),t}function Xt(t,n,a,c,d,p){var b,x=n&L,S=n&M,F=n&w;if(a&&(b=d?a(t,c,d,p):a(t)),b!==i)return b;if(!et(t))return t;var N=_e(t);if(N){if(b=mw(t),!x)return Tt(t,b)}else{var K=xt(t),J=K==Oe||K==bn;if(i1(t))return g9(t,x);if(K==tt||K==oe||J&&!d){if(b=S||J?{}:O9(t),!x)return S?ow(t,Ax(b,t)):iw(t,U2(b,t))}else{if(!He[K])return d?t:{};b=yw(t,K,x)}}p||(p=new dn);var re=p.get(t);if(re)return re;p.set(t,b),ll(t)?t.forEach(function(se){b.add(Xt(se,n,a,se,t,p))}):al(t)&&t.forEach(function(se,Se){b.set(Se,Xt(se,n,a,Se,t,p))});var ue=F?S?Xo:qo:S?It:gt,we=N?i:ue(t);return zt(we||t,function(se,Se){we&&(Se=se,se=t[Se]),kr(b,Se,Xt(se,n,a,Se,t,p))}),b}function Mx(t){var n=gt(t);return function(a){return H2(a,t,n)}}function H2(t,n,a){var c=a.length;if(t==null)return!c;for(t=Ze(t);c--;){var d=a[c],p=n[d],b=t[d];if(b===i&&!(d in t)||!p(b))return!1}return!0}function j2(t,n,a){if(typeof t!="function")throw new Gt(u);return Or(function(){t.apply(i,a)},n)}function Sr(t,n,a,c){var d=-1,p=v0,b=!0,x=t.length,S=[],F=n.length;if(!x)return S;a&&(n=Xe(n,Ft(a))),c?(p=vo,b=!1):n.length>=s&&(p=_r,b=!1,n=new g1(n));e:for(;++d<x;){var N=t[d],K=a==null?N:a(N);if(N=c||N!==0?N:0,b&&K===K){for(var J=F;J--;)if(n[J]===K)continue e;S.push(N)}else p(n,K,c)||S.push(N)}return S}var e1=b9(Cn),Y2=b9(Bo,!0);function Tx(t,n){var a=!0;return e1(t,function(c,d,p){return a=!!n(c,d,p),a}),a}function D0(t,n,a){for(var c=-1,d=t.length;++c<d;){var p=t[c],b=n(p);if(b!=null&&(x===i?b===b&&!Zt(b):a(b,x)))var x=b,S=p}return S}function Px(t,n,a,c){var d=t.length;for(a=xe(a),a<0&&(a=-a>d?0:d+a),c=c===i||c>d?d:xe(c),c<0&&(c+=d),c=a>c?0:ul(c);a<c;)t[a++]=n;return t}function V2(t,n){var a=[];return e1(t,function(c,d,p){n(c,d,p)&&a.push(c)}),a}function yt(t,n,a,c,d){var p=-1,b=t.length;for(a||(a=bw),d||(d=[]);++p<b;){var x=t[p];n>0&&a(x)?n>1?yt(x,n-1,a,c,d):qn(d,x):c||(d[d.length]=x)}return d}var Oo=_9(),Q2=_9(!0);function Cn(t,n){return t&&Oo(t,n,gt)}function Bo(t,n){return t&&Q2(t,n,gt)}function R0(t,n){return Gn(n,function(a){return Nn(t[a])})}function m1(t,n){n=n1(n,t);for(var a=0,c=n.length;t!=null&&a<c;)t=t[hn(n[a++])];return a&&a==c?t:i}function G2(t,n,a){var c=n(t);return _e(t)?c:qn(c,a(t))}function kt(t){return t==null?t===i?mr:Et:d1&&d1 in Ze(t)?hw(t):kw(t)}function Eo(t,n){return t>n}function Ix(t,n){return t!=null&&De.call(t,n)}function Ox(t,n){return t!=null&&n in Ze(t)}function Bx(t,n,a){return t>=Ct(n,a)&&t<dt(n,a)}function Do(t,n,a){for(var c=a?vo:v0,d=t[0].length,p=t.length,b=p,x=P(p),S=1/0,F=[];b--;){var N=t[b];b&&n&&(N=Xe(N,Ft(n))),S=Ct(N.length,S),x[b]=!a&&(n||d>=120&&N.length>=120)?new g1(b&&N):i}N=t[0];var K=-1,J=x[0];e:for(;++K<d&&F.length<S;){var re=N[K],ue=n?n(re):re;if(re=a||re!==0?re:0,!(J?_r(J,ue):c(F,ue,a))){for(b=p;--b;){var we=x[b];if(!(we?_r(we,ue):c(t[b],ue,a)))continue e}J&&J.push(ue),F.push(re)}}return F}function Ex(t,n,a,c){return Cn(t,function(d,p,b){n(c,a(d),p,b)}),c}function Ar(t,n,a){n=n1(n,t),t=R9(t,n);var c=t==null?t:t[hn(en(n))];return c==null?i:Rt(c,t,a)}function q2(t){return nt(t)&&kt(t)==oe}function Dx(t){return nt(t)&&kt(t)==u1}function Rx(t){return nt(t)&&kt(t)==_t}function Mr(t,n,a,c,d){return t===n?!0:t==null||n==null||!nt(t)&&!nt(n)?t!==t&&n!==n:zx(t,n,a,c,Mr,d)}function zx(t,n,a,c,d,p){var b=_e(t),x=_e(n),S=b?ye:xt(t),F=x?ye:xt(n);S=S==oe?tt:S,F=F==oe?tt:F;var N=S==tt,K=F==tt,J=S==F;if(J&&i1(t)){if(!i1(n))return!1;b=!0,N=!1}if(J&&!N)return p||(p=new dn),b||or(t)?T9(t,n,a,c,d,p):fw(t,n,S,a,c,d,p);if(!(a&T)){var re=N&&De.call(t,"__wrapped__"),ue=K&&De.call(n,"__wrapped__");if(re||ue){var we=re?t.value():t,se=ue?n.value():n;return p||(p=new dn),d(we,se,a,c,p)}}return J?(p||(p=new dn),dw(t,n,a,c,d,p)):!1}function Fx(t){return nt(t)&&xt(t)==Ve}function Ro(t,n,a,c){var d=a.length,p=d,b=!c;if(t==null)return!p;for(t=Ze(t);d--;){var x=a[d];if(b&&x[2]?x[1]!==t[x[0]]:!(x[0]in t))return!1}for(;++d<p;){x=a[d];var S=x[0],F=t[S],N=x[1];if(b&&x[2]){if(F===i&&!(S in t))return!1}else{var K=new dn;if(c)var J=c(F,N,S,t,n,K);if(!(J===i?Mr(N,F,T|A,c,K):J))return!1}}return!0}function X2(t){if(!et(t)||Cw(t))return!1;var n=Nn(t)?FC:M_;return n.test(v1(t))}function Nx(t){return nt(t)&&kt(t)==fe}function Zx(t){return nt(t)&&xt(t)==Je}function Wx(t){return nt(t)&&ei(t.length)&&!!Ge[kt(t)]}function J2(t){return typeof t=="function"?t:t==null?Ot:typeof t=="object"?_e(t)?n9(t[0],t[1]):t9(t):xl(t)}function zo(t){if(!Ir(t))return HC(t);var n=[];for(var a in Ze(t))De.call(t,a)&&a!="constructor"&&n.push(a);return n}function Kx(t){if(!et(t))return Lw(t);var n=Ir(t),a=[];for(var c in t)c=="constructor"&&(n||!De.call(t,c))||a.push(c);return a}function Fo(t,n){return t<n}function e9(t,n){var a=-1,c=Pt(t)?P(t.length):[];return e1(t,function(d,p,b){c[++a]=n(d,p,b)}),c}function t9(t){var n=ea(t);return n.length==1&&n[0][2]?E9(n[0][0],n[0][1]):function(a){return a===t||Ro(a,t,n)}}function n9(t,n){return na(t)&&B9(n)?E9(hn(t),n):function(a){var c=ha(a,t);return c===i&&c===n?ga(a,t):Mr(n,c,T|A)}}function z0(t,n,a,c,d){t!==n&&Oo(n,function(p,b){if(d||(d=new dn),et(p))Ux(t,n,b,a,z0,c,d);else{var x=c?c(ia(t,b),p,b+"",t,n,d):i;x===i&&(x=p),Po(t,b,x)}},It)}function Ux(t,n,a,c,d,p,b){var x=ia(t,a),S=ia(n,a),F=b.get(S);if(F){Po(t,a,F);return}var N=p?p(x,S,a+"",t,n,b):i,K=N===i;if(K){var J=_e(S),re=!J&&i1(S),ue=!J&&!re&&or(S);N=S,J||re||ue?_e(x)?N=x:it(x)?N=Tt(x):re?(K=!1,N=g9(S,!0)):ue?(K=!1,N=p9(S,!0)):N=[]:Br(S)||b1(S)?(N=x,b1(x)?N=fl(x):(!et(x)||Nn(x))&&(N=O9(S))):K=!1}K&&(b.set(S,N),d(N,S,c,p,b),b.delete(S)),Po(t,a,N)}function r9(t,n){var a=t.length;if(a)return n+=n<0?a:0,Fn(n,a)?t[n]:i}function i9(t,n,a){n.length?n=Xe(n,function(p){return _e(p)?function(b){return m1(b,p.length===1?p[0]:p)}:p}):n=[Ot];var c=-1;n=Xe(n,Ft(le()));var d=e9(t,function(p,b,x){var S=Xe(n,function(F){return F(p)});return{criteria:S,index:++c,value:p}});return yC(d,function(p,b){return rw(p,b,a)})}function Hx(t,n){return o9(t,n,function(a,c){return ga(t,c)})}function o9(t,n,a){for(var c=-1,d=n.length,p={};++c<d;){var b=n[c],x=m1(t,b);a(x,b)&&Tr(p,n1(b,t),x)}return p}function jx(t){return function(n){return m1(n,t)}}function No(t,n,a,c){var d=c?mC:V1,p=-1,b=n.length,x=t;for(t===n&&(n=Tt(n)),a&&(x=Xe(t,Ft(a)));++p<b;)for(var S=0,F=n[p],N=a?a(F):F;(S=d(x,N,S,c))>-1;)x!==t&&A0.call(x,S,1),A0.call(t,S,1);return t}function a9(t,n){for(var a=t?n.length:0,c=a-1;a--;){var d=n[a];if(a==c||d!==p){var p=d;Fn(d)?A0.call(t,d,1):Uo(t,d)}}return t}function Zo(t,n){return t+P0(N2()*(n-t+1))}function Yx(t,n,a,c){for(var d=-1,p=dt(T0((n-t)/(a||1)),0),b=P(p);p--;)b[c?p:++d]=t,t+=a;return b}function Wo(t,n){var a="";if(!t||n<1||n>Ie)return a;do n%2&&(a+=t),n=P0(n/2),n&&(t+=t);while(n);return a}function Le(t,n){return oa(D9(t,n,Ot),t+"")}function Vx(t){return K2(ar(t))}function Qx(t,n){var a=ar(t);return V0(a,p1(n,0,a.length))}function Tr(t,n,a,c){if(!et(t))return t;n=n1(n,t);for(var d=-1,p=n.length,b=p-1,x=t;x!=null&&++d<p;){var S=hn(n[d]),F=a;if(S==="__proto__"||S==="constructor"||S==="prototype")return t;if(d!=b){var N=x[S];F=c?c(N,S,x):i,F===i&&(F=et(N)?N:Fn(n[d+1])?[]:{})}kr(x,S,F),x=x[S]}return t}var s9=I0?function(t,n){return I0.set(t,n),t}:Ot,Gx=M0?function(t,n){return M0(t,"toString",{configurable:!0,enumerable:!1,value:ma(n),writable:!0})}:Ot;function qx(t){return V0(ar(t))}function Jt(t,n,a){var c=-1,d=t.length;n<0&&(n=-n>d?0:d+n),a=a>d?d:a,a<0&&(a+=d),d=n>a?0:a-n>>>0,n>>>=0;for(var p=P(d);++c<d;)p[c]=t[c+n];return p}function Xx(t,n){var a;return e1(t,function(c,d,p){return a=n(c,d,p),!a}),!!a}function F0(t,n,a){var c=0,d=t==null?c:t.length;if(typeof n=="number"&&n===n&&d<=ae){for(;c<d;){var p=c+d>>>1,b=t[p];b!==null&&!Zt(b)&&(a?b<=n:b<n)?c=p+1:d=p}return d}return Ko(t,n,Ot,a)}function Ko(t,n,a,c){var d=0,p=t==null?0:t.length;if(p===0)return 0;n=a(n);for(var b=n!==n,x=n===null,S=Zt(n),F=n===i;d<p;){var N=P0((d+p)/2),K=a(t[N]),J=K!==i,re=K===null,ue=K===K,we=Zt(K);if(b)var se=c||ue;else F?se=ue&&(c||J):x?se=ue&&J&&(c||!re):S?se=ue&&J&&!re&&(c||!we):re||we?se=!1:se=c?K<=n:K<n;se?d=N+1:p=N}return Ct(p,ht)}function l9(t,n){for(var a=-1,c=t.length,d=0,p=[];++a<c;){var b=t[a],x=n?n(b):b;if(!a||!gn(x,S)){var S=x;p[d++]=b===0?0:b}}return p}function c9(t){return typeof t=="number"?t:Zt(t)?Ue:+t}function Nt(t){if(typeof t=="string")return t;if(_e(t))return Xe(t,Nt)+"";if(Zt(t))return Z2?Z2.call(t):"";var n=t+"";return n=="0"&&1/t==-he?"-0":n}function t1(t,n,a){var c=-1,d=v0,p=t.length,b=!0,x=[],S=x;if(a)b=!1,d=vo;else if(p>=s){var F=n?null:cw(t);if(F)return _0(F);b=!1,d=_r,S=new g1}else S=n?[]:x;e:for(;++c<p;){var N=t[c],K=n?n(N):N;if(N=a||N!==0?N:0,b&&K===K){for(var J=S.length;J--;)if(S[J]===K)continue e;n&&S.push(K),x.push(N)}else d(S,K,a)||(S!==x&&S.push(K),x.push(N))}return x}function Uo(t,n){n=n1(n,t);var a=-1,c=n.length;if(!c)return!0;for(;++a<c;){var d=hn(n[a]);if(d==="__proto__"&&!De.call(t,"__proto__")||(d==="constructor"||d==="prototype")&&a<c-1)return!1}var p=R9(t,n);return p==null||delete p[hn(en(n))]}function u9(t,n,a,c){return Tr(t,n,a(m1(t,n)),c)}function N0(t,n,a,c){for(var d=t.length,p=c?d:-1;(c?p--:++p<d)&&n(t[p],p,t););return a?Jt(t,c?0:p,c?p+1:d):Jt(t,c?p+1:0,c?d:p)}function f9(t,n){var a=t;return a instanceof Ae&&(a=a.value()),bo(n,function(c,d){return d.func.apply(d.thisArg,qn([c],d.args))},a)}function Ho(t,n,a){var c=t.length;if(c<2)return c?t1(t[0]):[];for(var d=-1,p=P(c);++d<c;)for(var b=t[d],x=-1;++x<c;)x!=d&&(p[d]=Sr(p[d]||b,t[x],n,a));return t1(yt(p,1),n,a)}function d9(t,n,a){for(var c=-1,d=t.length,p=n.length,b={};++c<d;){var x=c<p?n[c]:i;a(b,t[c],x)}return b}function jo(t){return it(t)?t:[]}function Yo(t){return typeof t=="function"?t:Ot}function n1(t,n){return _e(t)?t:na(t,n)?[t]:Z9(Re(t))}var Jx=Le;function r1(t,n,a){var c=t.length;return a=a===i?c:a,!n&&a>=c?t:Jt(t,n,a)}var h9=NC||function(t){return mt.clearTimeout(t)};function g9(t,n){if(n)return t.slice();var a=t.length,c=E2?E2(a):new t.constructor(a);return t.copy(c),c}function Vo(t){var n=new t.constructor(t.byteLength);return new k0(n).set(new k0(t)),n}function ew(t,n){var a=n?Vo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function tw(t){var n=new t.constructor(t.source,q5.exec(t));return n.lastIndex=t.lastIndex,n}function nw(t){return Lr?Ze(Lr.call(t)):{}}function p9(t,n){var a=n?Vo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function m9(t,n){if(t!==n){var a=t!==i,c=t===null,d=t===t,p=Zt(t),b=n!==i,x=n===null,S=n===n,F=Zt(n);if(!x&&!F&&!p&&t>n||p&&b&&S&&!x&&!F||c&&b&&S||!a&&S||!d)return 1;if(!c&&!p&&!F&&t<n||F&&a&&d&&!c&&!p||x&&a&&d||!b&&d||!S)return-1}return 0}function rw(t,n,a){for(var c=-1,d=t.criteria,p=n.criteria,b=d.length,x=a.length;++c<b;){var S=m9(d[c],p[c]);if(S){if(c>=x)return S;var F=a[c];return S*(F=="desc"?-1:1)}}return t.index-n.index}function y9(t,n,a,c){for(var d=-1,p=t.length,b=a.length,x=-1,S=n.length,F=dt(p-b,0),N=P(S+F),K=!c;++x<S;)N[x]=n[x];for(;++d<b;)(K||d<p)&&(N[a[d]]=t[d]);for(;F--;)N[x++]=t[d++];return N}function v9(t,n,a,c){for(var d=-1,p=t.length,b=-1,x=a.length,S=-1,F=n.length,N=dt(p-x,0),K=P(N+F),J=!c;++d<N;)K[d]=t[d];for(var re=d;++S<F;)K[re+S]=n[S];for(;++b<x;)(J||d<p)&&(K[re+a[b]]=t[d++]);return K}function Tt(t,n){var a=-1,c=t.length;for(n||(n=P(c));++a<c;)n[a]=t[a];return n}function xn(t,n,a,c){var d=!a;a||(a={});for(var p=-1,b=n.length;++p<b;){var x=n[p],S=c?c(a[x],t[x],x,a,t):i;S===i&&(S=t[x]),d?_n(a,x,S):kr(a,x,S)}return a}function iw(t,n){return xn(t,ta(t),n)}function ow(t,n){return xn(t,P9(t),n)}function Z0(t,n){return function(a,c){var d=_e(a)?uC:Sx,p=n?n():{};return d(a,t,le(c,2),p)}}function nr(t){return Le(function(n,a){var c=-1,d=a.length,p=d>1?a[d-1]:i,b=d>2?a[2]:i;for(p=t.length>3&&typeof p=="function"?(d--,p):i,b&&St(a[0],a[1],b)&&(p=d<3?i:p,d=1),n=Ze(n);++c<d;){var x=a[c];x&&t(n,x,c,p)}return n})}function b9(t,n){return function(a,c){if(a==null)return a;if(!Pt(a))return t(a,c);for(var d=a.length,p=n?d:-1,b=Ze(a);(n?p--:++p<d)&&c(b[p],p,b)!==!1;);return a}}function _9(t){return function(n,a,c){for(var d=-1,p=Ze(n),b=c(n),x=b.length;x--;){var S=b[t?x:++d];if(a(p[S],S,p)===!1)break}return n}}function aw(t,n,a){var c=n&C,d=Pr(t);function p(){var b=this&&this!==mt&&this instanceof p?d:t;return b.apply(c?a:this,arguments)}return p}function C9(t){return function(n){n=Re(n);var a=Q1(n)?fn(n):i,c=a?a[0]:n.charAt(0),d=a?r1(a,1).join(""):n.slice(1);return c[t]()+d}}function rr(t){return function(n){return bo(_l(bl(n).replace(G_,"")),t,"")}}function Pr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=tr(t.prototype),c=t.apply(a,n);return et(c)?c:a}}function sw(t,n,a){var c=Pr(t);function d(){for(var p=arguments.length,b=P(p),x=p,S=ir(d);x--;)b[x]=arguments[x];var F=p<3&&b[0]!==S&&b[p-1]!==S?[]:Xn(b,S);if(p-=F.length,p<a)return k9(t,n,W0,d.placeholder,i,b,F,i,i,a-p);var N=this&&this!==mt&&this instanceof d?c:t;return Rt(N,this,b)}return d}function x9(t){return function(n,a,c){var d=Ze(n);if(!Pt(n)){var p=le(a,3);n=gt(n),a=function(x){return p(d[x],x,d)}}var b=t(n,a,c);return b>-1?d[p?n[b]:b]:i}}function w9(t){return zn(function(n){var a=n.length,c=a,d=qt.prototype.thru;for(t&&n.reverse();c--;){var p=n[c];if(typeof p!="function")throw new Gt(u);if(d&&!b&&j0(p)=="wrapper")var b=new qt([],!0)}for(c=b?c:a;++c<a;){p=n[c];var x=j0(p),S=x=="wrapper"?Jo(p):i;S&&ra(S[0])&&S[1]==(O|$|X|z)&&!S[4].length&&S[9]==1?b=b[j0(S[0])].apply(b,S[3]):b=p.length==1&&ra(p)?b[x]():b.thru(p)}return function(){var F=arguments,N=F[0];if(b&&F.length==1&&_e(N))return b.plant(N).value();for(var K=0,J=a?n[K].apply(this,F):N;++K<a;)J=n[K].call(this,J);return J}})}function W0(t,n,a,c,d,p,b,x,S,F){var N=n&O,K=n&C,J=n&I,re=n&($|Z),ue=n&G,we=J?i:Pr(t);function se(){for(var Se=arguments.length,Me=P(Se),Wt=Se;Wt--;)Me[Wt]=arguments[Wt];if(re)var At=ir(se),Kt=bC(Me,At);if(c&&(Me=y9(Me,c,d,re)),p&&(Me=v9(Me,p,b,re)),Se-=Kt,re&&Se<F){var ot=Xn(Me,At);return k9(t,n,W0,se.placeholder,a,Me,ot,x,S,F-Se)}var pn=K?a:this,Wn=J?pn[t]:t;return Se=Me.length,x?Me=Sw(Me,x):ue&&Se>1&&Me.reverse(),N&&S<Se&&(Me.length=S),this&&this!==mt&&this instanceof se&&(Wn=we||Pr(Wn)),Wn.apply(pn,Me)}return se}function $9(t,n){return function(a,c){return Ex(a,t,n(c),{})}}function K0(t,n){return function(a,c){var d;if(a===i&&c===i)return n;if(a!==i&&(d=a),c!==i){if(d===i)return c;typeof a=="string"||typeof c=="string"?(a=Nt(a),c=Nt(c)):(a=c9(a),c=c9(c)),d=t(a,c)}return d}}function Qo(t){return zn(function(n){return n=Xe(n,Ft(le())),Le(function(a){var c=this;return t(n,function(d){return Rt(d,c,a)})})})}function U0(t,n){n=n===i?" ":Nt(n);var a=n.length;if(a<2)return a?Wo(n,t):n;var c=Wo(n,T0(t/G1(n)));return Q1(n)?r1(fn(c),0,t).join(""):c.slice(0,t)}function lw(t,n,a,c){var d=n&C,p=Pr(t);function b(){for(var x=-1,S=arguments.length,F=-1,N=c.length,K=P(N+S),J=this&&this!==mt&&this instanceof b?p:t;++F<N;)K[F]=c[F];for(;S--;)K[F++]=arguments[++x];return Rt(J,d?a:this,K)}return b}function L9(t){return function(n,a,c){return c&&typeof c!="number"&&St(n,a,c)&&(a=c=i),n=Zn(n),a===i?(a=n,n=0):a=Zn(a),c=c===i?n<a?1:-1:Zn(c),Yx(n,a,c,t)}}function H0(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=tn(n),a=tn(a)),t(n,a)}}function k9(t,n,a,c,d,p,b,x,S,F){var N=n&$,K=N?b:i,J=N?i:b,re=N?p:i,ue=N?i:p;n|=N?X:Q,n&=~(N?Q:X),n&R||(n&=~(C|I));var we=[t,n,d,re,K,ue,J,x,S,F],se=a.apply(i,we);return ra(t)&&z9(se,we),se.placeholder=c,F9(se,t,n)}function Go(t){var n=ft[t];return function(a,c){if(a=tn(a),c=c==null?0:Ct(xe(c),292),c&&F2(a)){var d=(Re(a)+"e").split("e"),p=n(d[0]+"e"+(+d[1]+c));return d=(Re(p)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return n(a)}}var cw=J1&&1/_0(new J1([,-0]))[1]==he?function(t){return new J1(t)}:ba;function S9(t){return function(n){var a=xt(n);return a==Ve?ko(n):a==Je?kC(n):vC(n,t(n))}}function Rn(t,n,a,c,d,p,b,x){var S=n&I;if(!S&&typeof t!="function")throw new Gt(u);var F=c?c.length:0;if(F||(n&=~(X|Q),c=d=i),b=b===i?b:dt(xe(b),0),x=x===i?x:xe(x),F-=d?d.length:0,n&Q){var N=c,K=d;c=d=i}var J=S?i:Jo(t),re=[t,n,a,c,d,N,K,p,b,x];if(J&&$w(re,J),t=re[0],n=re[1],a=re[2],c=re[3],d=re[4],x=re[9]=re[9]===i?S?0:t.length:dt(re[9]-F,0),!x&&n&($|Z)&&(n&=~($|Z)),!n||n==C)var ue=aw(t,n,a);else n==$||n==Z?ue=sw(t,n,x):(n==X||n==(C|X))&&!d.length?ue=lw(t,n,a,c):ue=W0.apply(i,re);var we=J?s9:z9;return F9(we(ue,re),t,n)}function A9(t,n,a,c){return t===i||gn(t,X1[a])&&!De.call(c,a)?n:t}function M9(t,n,a,c,d,p){return et(t)&&et(n)&&(p.set(n,t),z0(t,n,i,M9,p),p.delete(n)),t}function uw(t){return Br(t)?i:t}function T9(t,n,a,c,d,p){var b=a&T,x=t.length,S=n.length;if(x!=S&&!(b&&S>x))return!1;var F=p.get(t),N=p.get(n);if(F&&N)return F==n&&N==t;var K=-1,J=!0,re=a&A?new g1:i;for(p.set(t,n),p.set(n,t);++K<x;){var ue=t[K],we=n[K];if(c)var se=b?c(we,ue,K,n,t,p):c(ue,we,K,t,n,p);if(se!==i){if(se)continue;J=!1;break}if(re){if(!_o(n,function(Se,Me){if(!_r(re,Me)&&(ue===Se||d(ue,Se,a,c,p)))return re.push(Me)})){J=!1;break}}else if(!(ue===we||d(ue,we,a,c,p))){J=!1;break}}return p.delete(t),p.delete(n),J}function fw(t,n,a,c,d,p,b){switch(a){case Qn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case u1:return!(t.byteLength!=n.byteLength||!p(new k0(t),new k0(n)));case ve:case _t:case Fe:return gn(+t,+n);case un:return t.name==n.name&&t.message==n.message;case fe:case Bn:return t==n+"";case Ve:var x=ko;case Je:var S=c&T;if(x||(x=_0),t.size!=n.size&&!S)return!1;var F=b.get(t);if(F)return F==n;c|=A,b.set(t,n);var N=T9(x(t),x(n),c,d,p,b);return b.delete(t),N;case Z1:if(Lr)return Lr.call(t)==Lr.call(n)}return!1}function dw(t,n,a,c,d,p){var b=a&T,x=qo(t),S=x.length,F=qo(n),N=F.length;if(S!=N&&!b)return!1;for(var K=S;K--;){var J=x[K];if(!(b?J in n:De.call(n,J)))return!1}var re=p.get(t),ue=p.get(n);if(re&&ue)return re==n&&ue==t;var we=!0;p.set(t,n),p.set(n,t);for(var se=b;++K<S;){J=x[K];var Se=t[J],Me=n[J];if(c)var Wt=b?c(Me,Se,J,n,t,p):c(Se,Me,J,t,n,p);if(!(Wt===i?Se===Me||d(Se,Me,a,c,p):Wt)){we=!1;break}se||(se=J=="constructor")}if(we&&!se){var At=t.constructor,Kt=n.constructor;At!=Kt&&"constructor"in t&&"constructor"in n&&!(typeof At=="function"&&At instanceof At&&typeof Kt=="function"&&Kt instanceof Kt)&&(we=!1)}return p.delete(t),p.delete(n),we}function zn(t){return oa(D9(t,i,H9),t+"")}function qo(t){return G2(t,gt,ta)}function Xo(t){return G2(t,It,P9)}var Jo=I0?function(t){return I0.get(t)}:ba;function j0(t){for(var n=t.name+"",a=er[n],c=De.call(er,n)?a.length:0;c--;){var d=a[c],p=d.func;if(p==null||p==t)return d.name}return n}function ir(t){var n=De.call(g,"placeholder")?g:t;return n.placeholder}function le(){var t=g.iteratee||ya;return t=t===ya?J2:t,arguments.length?t(arguments[0],arguments[1]):t}function Y0(t,n){var a=t.__data__;return _w(n)?a[typeof n=="string"?"string":"hash"]:a.map}function ea(t){for(var n=gt(t),a=n.length;a--;){var c=n[a],d=t[c];n[a]=[c,d,B9(d)]}return n}function y1(t,n){var a=wC(t,n);return X2(a)?a:i}function hw(t){var n=De.call(t,d1),a=t[d1];try{t[d1]=i;var c=!0}catch{}var d=$0.call(t);return c&&(n?t[d1]=a:delete t[d1]),d}var ta=Ao?function(t){return t==null?[]:(t=Ze(t),Gn(Ao(t),function(n){return R2.call(t,n)}))}:_a,P9=Ao?function(t){for(var n=[];t;)qn(n,ta(t)),t=S0(t);return n}:_a,xt=kt;(Mo&&xt(new Mo(new ArrayBuffer(1)))!=Qn||xr&&xt(new xr)!=Ve||To&&xt(To.resolve())!=ut||J1&&xt(new J1)!=Je||wr&&xt(new wr)!=Vn)&&(xt=function(t){var n=kt(t),a=n==tt?t.constructor:i,c=a?v1(a):"";if(c)switch(c){case QC:return Qn;case GC:return Ve;case qC:return ut;case XC:return Je;case JC:return Vn}return n});function gw(t,n,a){for(var c=-1,d=a.length;++c<d;){var p=a[c],b=p.size;switch(p.type){case"drop":t+=b;break;case"dropRight":n-=b;break;case"take":n=Ct(n,t+b);break;case"takeRight":t=dt(t,n-b);break}}return{start:t,end:n}}function pw(t){var n=t.match(x_);return n?n[1].split(w_):[]}function I9(t,n,a){n=n1(n,t);for(var c=-1,d=n.length,p=!1;++c<d;){var b=hn(n[c]);if(!(p=t!=null&&a(t,b)))break;t=t[b]}return p||++c!=d?p:(d=t==null?0:t.length,!!d&&ei(d)&&Fn(b,d)&&(_e(t)||b1(t)))}function mw(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&De.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function O9(t){return typeof t.constructor=="function"&&!Ir(t)?tr(S0(t)):{}}function yw(t,n,a){var c=t.constructor;switch(n){case u1:return Vo(t);case ve:case _t:return new c(+t);case Qn:return ew(t,a);case W1:case vr:case Qe:case br:case K1:case U1:case H1:case j1:case so:return p9(t,a);case Ve:return new c;case Fe:case Bn:return new c(t);case fe:return tw(t);case Je:return new c;case Z1:return nw(t)}}function vw(t,n){var a=n.length;if(!a)return t;var c=a-1;return n[c]=(a>1?"& ":"")+n[c],n=n.join(a>2?", ":" "),t.replace(C_,`{
|
|
8
|
+
*/Br.exports,function(e,r){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",m="__lodash_hash_undefined__",_=500,v="__lodash_placeholder__",$=1,M=2,x=4,T=1,A=2,w=1,I=2,R=4,k=8,Z=16,G=32,V=64,O=128,z=256,Q=512,q=30,X="...",W=800,E=16,ee=1,ge=2,le=3,he=1/0,Ie=9007199254740991,$e=17976931348623157e292,Ue=0/0,Ee=4294967295,ht=Ee-1,ae=Ee>>>1,ne=[["ary",O],["bind",w],["bindKey",I],["curry",k],["curryRight",Z],["flip",Q],["partial",G],["partialRight",V],["rearg",z]],oe="[object Arguments]",ye="[object Array]",Pe="[object AsyncFunction]",ve="[object Boolean]",_t="[object Date]",cn="[object DOMException]",un="[object Error]",Oe="[object Function]",bn="[object GeneratorFunction]",Ve="[object Map]",Fe="[object Number]",Et="[object Null]",tt="[object Object]",ut="[object Promise]",Dt="[object Proxy]",de="[object RegExp]",Je="[object Set]",Bn="[object String]",Z1="[object Symbol]",pr="[object Undefined]",Vn="[object WeakMap]",mr="[object WeakSet]",u1="[object ArrayBuffer]",Qn="[object DataView]",W1="[object Float32Array]",yr="[object Float64Array]",Qe="[object Int8Array]",vr="[object Int16Array]",K1="[object Int32Array]",U1="[object Uint8Array]",H1="[object Uint8ClampedArray]",j1="[object Uint16Array]",so="[object Uint32Array]",f_=/\b__p \+= '';/g,d_=/\b(__p \+=) '' \+/g,h_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j5=/&(?:amp|lt|gt|quot|#39);/g,Y5=/[&<>"']/g,g_=RegExp(j5.source),p_=RegExp(Y5.source),m_=/<%-([\s\S]+?)%>/g,y_=/<%([\s\S]+?)%>/g,V5=/<%=([\s\S]+?)%>/g,v_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b_=/^\w*$/,__=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lo=/[\\^$.*+?()[\]{}|]/g,C_=RegExp(lo.source),co=/^\s+/,x_=/\s/,w_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$_=/\{\n\/\* \[wrapped with (.+)\] \*/,L_=/,? & /,k_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Q5=/[()=,{}\[\]\/\s]/,S_=/\\(\\)?/g,A_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,G5=/\w*$/,M_=/^[-+]0x[0-9a-f]+$/i,T_=/^0b[01]+$/i,P_=/^\[object .+?Constructor\]$/,I_=/^0o[0-7]+$/i,O_=/^(?:0|[1-9]\d*)$/,B_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,p0=/($^)/,E_=/['\n\r\u2028\u2029\\]/g,m0="\\ud800-\\udfff",D_="\\u0300-\\u036f",R_="\\ufe20-\\ufe2f",z_="\\u20d0-\\u20ff",q5=D_+R_+z_,X5="\\u2700-\\u27bf",J5="a-z\\xdf-\\xf6\\xf8-\\xff",F_="\\xac\\xb1\\xd7\\xf7",N_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Z_="\\u2000-\\u206f",W_=" \\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",e2="A-Z\\xc0-\\xd6\\xd8-\\xde",t2="\\ufe0e\\ufe0f",n2=F_+N_+Z_+W_,uo="['’]",K_="["+m0+"]",r2="["+n2+"]",y0="["+q5+"]",i2="\\d+",U_="["+X5+"]",o2="["+J5+"]",a2="[^"+m0+n2+i2+X5+J5+e2+"]",fo="\\ud83c[\\udffb-\\udfff]",H_="(?:"+y0+"|"+fo+")",s2="[^"+m0+"]",ho="(?:\\ud83c[\\udde6-\\uddff]){2}",go="[\\ud800-\\udbff][\\udc00-\\udfff]",Y1="["+e2+"]",l2="\\u200d",c2="(?:"+o2+"|"+a2+")",j_="(?:"+Y1+"|"+a2+")",u2="(?:"+uo+"(?:d|ll|m|re|s|t|ve))?",f2="(?:"+uo+"(?:D|LL|M|RE|S|T|VE))?",d2=H_+"?",h2="["+t2+"]?",Y_="(?:"+l2+"(?:"+[s2,ho,go].join("|")+")"+h2+d2+")*",V_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",g2=h2+d2+Y_,G_="(?:"+[U_,ho,go].join("|")+")"+g2,q_="(?:"+[s2+y0+"?",y0,ho,go,K_].join("|")+")",X_=RegExp(uo,"g"),J_=RegExp(y0,"g"),po=RegExp(fo+"(?="+fo+")|"+q_+g2,"g"),eC=RegExp([Y1+"?"+o2+"+"+u2+"(?="+[r2,Y1,"$"].join("|")+")",j_+"+"+f2+"(?="+[r2,Y1+c2,"$"].join("|")+")",Y1+"?"+c2+"+"+u2,Y1+"+"+f2,Q_,V_,i2,G_].join("|"),"g"),tC=RegExp("["+l2+m0+q5+t2+"]"),nC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rC=["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"],iC=-1,Ge={};Ge[W1]=Ge[yr]=Ge[Qe]=Ge[vr]=Ge[K1]=Ge[U1]=Ge[H1]=Ge[j1]=Ge[so]=!0,Ge[oe]=Ge[ye]=Ge[u1]=Ge[ve]=Ge[Qn]=Ge[_t]=Ge[un]=Ge[Oe]=Ge[Ve]=Ge[Fe]=Ge[tt]=Ge[de]=Ge[Je]=Ge[Bn]=Ge[Vn]=!1;var He={};He[oe]=He[ye]=He[u1]=He[Qn]=He[ve]=He[_t]=He[W1]=He[yr]=He[Qe]=He[vr]=He[K1]=He[Ve]=He[Fe]=He[tt]=He[de]=He[Je]=He[Bn]=He[Z1]=He[U1]=He[H1]=He[j1]=He[so]=!0,He[un]=He[Oe]=He[Vn]=!1;var oC={À:"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"},aC={"&":"&","<":"<",">":">",'"':""","'":"'"},sC={"&":"&","<":"<",">":">",""":'"',"'":"'"},lC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cC=parseFloat,uC=parseInt,p2=typeof wn=="object"&&wn&&wn.Object===Object&&wn,fC=typeof self=="object"&&self&&self.Object===Object&&self,mt=p2||fC||Function("return this")(),mo=r&&!r.nodeType&&r,f1=mo&&!0&&e&&!e.nodeType&&e,m2=f1&&f1.exports===mo,yo=m2&&p2.process,Qt=function(){try{var L=f1&&f1.require&&f1.require("util").types;return L||yo&&yo.binding&&yo.binding("util")}catch{}}(),y2=Qt&&Qt.isArrayBuffer,v2=Qt&&Qt.isDate,b2=Qt&&Qt.isMap,_2=Qt&&Qt.isRegExp,C2=Qt&&Qt.isSet,x2=Qt&&Qt.isTypedArray;function Rt(L,D,P){switch(P.length){case 0:return L.call(D);case 1:return L.call(D,P[0]);case 2:return L.call(D,P[0],P[1]);case 3:return L.call(D,P[0],P[1],P[2])}return L.apply(D,P)}function dC(L,D,P,te){for(var pe=-1,Be=L==null?0:L.length;++pe<Be;){var ft=L[pe];D(te,ft,P(ft),L)}return te}function zt(L,D){for(var P=-1,te=L==null?0:L.length;++P<te&&D(L[P],P,L)!==!1;);return L}function hC(L,D){for(var P=L==null?0:L.length;P--&&D(L[P],P,L)!==!1;);return L}function w2(L,D){for(var P=-1,te=L==null?0:L.length;++P<te;)if(!D(L[P],P,L))return!1;return!0}function Gn(L,D){for(var P=-1,te=L==null?0:L.length,pe=0,Be=[];++P<te;){var ft=L[P];D(ft,P,L)&&(Be[pe++]=ft)}return Be}function v0(L,D){var P=L==null?0:L.length;return!!P&&V1(L,D,0)>-1}function vo(L,D,P){for(var te=-1,pe=L==null?0:L.length;++te<pe;)if(P(D,L[te]))return!0;return!1}function Xe(L,D){for(var P=-1,te=L==null?0:L.length,pe=Array(te);++P<te;)pe[P]=D(L[P],P,L);return pe}function qn(L,D){for(var P=-1,te=D.length,pe=L.length;++P<te;)L[pe+P]=D[P];return L}function bo(L,D,P,te){var pe=-1,Be=L==null?0:L.length;for(te&&Be&&(P=L[++pe]);++pe<Be;)P=D(P,L[pe],pe,L);return P}function gC(L,D,P,te){var pe=L==null?0:L.length;for(te&&pe&&(P=L[--pe]);pe--;)P=D(P,L[pe],pe,L);return P}function _o(L,D){for(var P=-1,te=L==null?0:L.length;++P<te;)if(D(L[P],P,L))return!0;return!1}var pC=Co("length");function mC(L){return L.split("")}function yC(L){return L.match(k_)||[]}function $2(L,D,P){var te;return P(L,function(pe,Be,ft){if(D(pe,Be,ft))return te=Be,!1}),te}function b0(L,D,P,te){for(var pe=L.length,Be=P+(te?1:-1);te?Be--:++Be<pe;)if(D(L[Be],Be,L))return Be;return-1}function V1(L,D,P){return D===D?MC(L,D,P):b0(L,L2,P)}function vC(L,D,P,te){for(var pe=P-1,Be=L.length;++pe<Be;)if(te(L[pe],D))return pe;return-1}function L2(L){return L!==L}function k2(L,D){var P=L==null?0:L.length;return P?wo(L,D)/P:Ue}function Co(L){return function(D){return D==null?i:D[L]}}function xo(L){return function(D){return L==null?i:L[D]}}function S2(L,D,P,te,pe){return pe(L,function(Be,ft,Ze){P=te?(te=!1,Be):D(P,Be,ft,Ze)}),P}function bC(L,D){var P=L.length;for(L.sort(D);P--;)L[P]=L[P].value;return L}function wo(L,D){for(var P,te=-1,pe=L.length;++te<pe;){var Be=D(L[te]);Be!==i&&(P=P===i?Be:P+Be)}return P}function $o(L,D){for(var P=-1,te=Array(L);++P<L;)te[P]=D(P);return te}function _C(L,D){return Xe(D,function(P){return[P,L[P]]})}function A2(L){return L&&L.slice(0,I2(L)+1).replace(co,"")}function Ft(L){return function(D){return L(D)}}function Lo(L,D){return Xe(D,function(P){return L[P]})}function br(L,D){return L.has(D)}function M2(L,D){for(var P=-1,te=L.length;++P<te&&V1(D,L[P],0)>-1;);return P}function T2(L,D){for(var P=L.length;P--&&V1(D,L[P],0)>-1;);return P}function CC(L,D){for(var P=L.length,te=0;P--;)L[P]===D&&++te;return te}var xC=xo(oC),wC=xo(aC);function $C(L){return"\\"+lC[L]}function LC(L,D){return L==null?i:L[D]}function Q1(L){return tC.test(L)}function kC(L){return nC.test(L)}function SC(L){for(var D,P=[];!(D=L.next()).done;)P.push(D.value);return P}function ko(L){var D=-1,P=Array(L.size);return L.forEach(function(te,pe){P[++D]=[pe,te]}),P}function P2(L,D){return function(P){return L(D(P))}}function Xn(L,D){for(var P=-1,te=L.length,pe=0,Be=[];++P<te;){var ft=L[P];(ft===D||ft===v)&&(L[P]=v,Be[pe++]=P)}return Be}function _0(L){var D=-1,P=Array(L.size);return L.forEach(function(te){P[++D]=te}),P}function AC(L){var D=-1,P=Array(L.size);return L.forEach(function(te){P[++D]=[te,te]}),P}function MC(L,D,P){for(var te=P-1,pe=L.length;++te<pe;)if(L[te]===D)return te;return-1}function TC(L,D,P){for(var te=P+1;te--;)if(L[te]===D)return te;return te}function G1(L){return Q1(L)?IC(L):pC(L)}function fn(L){return Q1(L)?OC(L):mC(L)}function I2(L){for(var D=L.length;D--&&x_.test(L.charAt(D)););return D}var PC=xo(sC);function IC(L){for(var D=po.lastIndex=0;po.test(L);)++D;return D}function OC(L){return L.match(po)||[]}function BC(L){return L.match(eC)||[]}var EC=function L(D){D=D==null?mt:q1.defaults(mt.Object(),D,q1.pick(mt,rC));var P=D.Array,te=D.Date,pe=D.Error,Be=D.Function,ft=D.Math,Ze=D.Object,So=D.RegExp,DC=D.String,Gt=D.TypeError,C0=P.prototype,RC=Be.prototype,X1=Ze.prototype,x0=D["__core-js_shared__"],w0=RC.toString,De=X1.hasOwnProperty,zC=0,O2=function(){var t=/[^.]+$/.exec(x0&&x0.keys&&x0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),$0=X1.toString,FC=w0.call(Ze),NC=mt._,ZC=So("^"+w0.call(De).replace(lo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L0=m2?D.Buffer:i,Jn=D.Symbol,k0=D.Uint8Array,B2=L0?L0.allocUnsafe:i,S0=P2(Ze.getPrototypeOf,Ze),E2=Ze.create,D2=X1.propertyIsEnumerable,A0=C0.splice,R2=Jn?Jn.isConcatSpreadable:i,_r=Jn?Jn.iterator:i,d1=Jn?Jn.toStringTag:i,M0=function(){try{var t=y1(Ze,"defineProperty");return t({},"",{}),t}catch{}}(),WC=D.clearTimeout!==mt.clearTimeout&&D.clearTimeout,KC=te&&te.now!==mt.Date.now&&te.now,UC=D.setTimeout!==mt.setTimeout&&D.setTimeout,T0=ft.ceil,P0=ft.floor,Ao=Ze.getOwnPropertySymbols,HC=L0?L0.isBuffer:i,z2=D.isFinite,jC=C0.join,YC=P2(Ze.keys,Ze),dt=ft.max,Ct=ft.min,VC=te.now,QC=D.parseInt,F2=ft.random,GC=C0.reverse,Mo=y1(D,"DataView"),Cr=y1(D,"Map"),To=y1(D,"Promise"),J1=y1(D,"Set"),xr=y1(D,"WeakMap"),wr=y1(Ze,"create"),I0=xr&&new xr,er={},qC=v1(Mo),XC=v1(Cr),JC=v1(To),ex=v1(J1),tx=v1(xr),O0=Jn?Jn.prototype:i,$r=O0?O0.valueOf:i,N2=O0?O0.toString:i;function g(t){if(nt(t)&&!_e(t)&&!(t instanceof Ae)){if(t instanceof qt)return t;if(De.call(t,"__wrapped__"))return Z9(t)}return new qt(t)}var tr=function(){function t(){}return function(n){if(!et(n))return{};if(E2)return E2(n);t.prototype=n;var a=new t;return t.prototype=i,a}}();function B0(){}function qt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}g.templateSettings={escape:m_,evaluate:y_,interpolate:V5,variable:"",imports:{_:g}},g.prototype=B0.prototype,g.prototype.constructor=g,qt.prototype=tr(B0.prototype),qt.prototype.constructor=qt;function Ae(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function nx(){var t=new Ae(this.__wrapped__);return t.__actions__=Tt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Tt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Tt(this.__views__),t}function rx(){if(this.__filtered__){var t=new Ae(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function ix(){var t=this.__wrapped__.value(),n=this.__dir__,a=_e(t),c=n<0,d=a?t.length:0,p=mw(0,d,this.__views__),b=p.start,C=p.end,S=C-b,F=c?C:b-1,N=this.__iteratees__,U=N.length,J=0,re=Ct(S,this.__takeCount__);if(!a||!c&&d==S&&re==S)return u9(t,this.__actions__);var fe=[];e:for(;S--&&J<re;){F+=n;for(var we=-1,se=t[F];++we<U;){var Se=N[we],Me=Se.iteratee,Wt=Se.type,At=Me(se);if(Wt==ge)se=At;else if(!At){if(Wt==ee)continue e;break e}}fe[J++]=se}return fe}Ae.prototype=tr(B0.prototype),Ae.prototype.constructor=Ae;function h1(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function ox(){this.__data__=wr?wr(null):{},this.size=0}function ax(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function sx(t){var n=this.__data__;if(wr){var a=n[t];return a===m?i:a}return De.call(n,t)?n[t]:i}function lx(t){var n=this.__data__;return wr?n[t]!==i:De.call(n,t)}function cx(t,n){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=wr&&n===i?m:n,this}h1.prototype.clear=ox,h1.prototype.delete=ax,h1.prototype.get=sx,h1.prototype.has=lx,h1.prototype.set=cx;function En(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function ux(){this.__data__=[],this.size=0}function fx(t){var n=this.__data__,a=E0(n,t);if(a<0)return!1;var c=n.length-1;return a==c?n.pop():A0.call(n,a,1),--this.size,!0}function dx(t){var n=this.__data__,a=E0(n,t);return a<0?i:n[a][1]}function hx(t){return E0(this.__data__,t)>-1}function gx(t,n){var a=this.__data__,c=E0(a,t);return c<0?(++this.size,a.push([t,n])):a[c][1]=n,this}En.prototype.clear=ux,En.prototype.delete=fx,En.prototype.get=dx,En.prototype.has=hx,En.prototype.set=gx;function Dn(t){var n=-1,a=t==null?0:t.length;for(this.clear();++n<a;){var c=t[n];this.set(c[0],c[1])}}function px(){this.size=0,this.__data__={hash:new h1,map:new(Cr||En),string:new h1}}function mx(t){var n=Y0(this,t).delete(t);return this.size-=n?1:0,n}function yx(t){return Y0(this,t).get(t)}function vx(t){return Y0(this,t).has(t)}function bx(t,n){var a=Y0(this,t),c=a.size;return a.set(t,n),this.size+=a.size==c?0:1,this}Dn.prototype.clear=px,Dn.prototype.delete=mx,Dn.prototype.get=yx,Dn.prototype.has=vx,Dn.prototype.set=bx;function g1(t){var n=-1,a=t==null?0:t.length;for(this.__data__=new Dn;++n<a;)this.add(t[n])}function _x(t){return this.__data__.set(t,m),this}function Cx(t){return this.__data__.has(t)}g1.prototype.add=g1.prototype.push=_x,g1.prototype.has=Cx;function dn(t){var n=this.__data__=new En(t);this.size=n.size}function xx(){this.__data__=new En,this.size=0}function wx(t){var n=this.__data__,a=n.delete(t);return this.size=n.size,a}function $x(t){return this.__data__.get(t)}function Lx(t){return this.__data__.has(t)}function kx(t,n){var a=this.__data__;if(a instanceof En){var c=a.__data__;if(!Cr||c.length<s-1)return c.push([t,n]),this.size=++a.size,this;a=this.__data__=new Dn(c)}return a.set(t,n),this.size=a.size,this}dn.prototype.clear=xx,dn.prototype.delete=wx,dn.prototype.get=$x,dn.prototype.has=Lx,dn.prototype.set=kx;function Z2(t,n){var a=_e(t),c=!a&&b1(t),d=!a&&!c&&i1(t),p=!a&&!c&&!d&&or(t),b=a||c||d||p,C=b?$o(t.length,DC):[],S=C.length;for(var F in t)(n||De.call(t,F))&&!(b&&(F=="length"||d&&(F=="offset"||F=="parent")||p&&(F=="buffer"||F=="byteLength"||F=="byteOffset")||Fn(F,S)))&&C.push(F);return C}function W2(t){var n=t.length;return n?t[Zo(0,n-1)]:i}function Sx(t,n){return V0(Tt(t),p1(n,0,t.length))}function Ax(t){return V0(Tt(t))}function Po(t,n,a){(a!==i&&!gn(t[n],a)||a===i&&!(n in t))&&_n(t,n,a)}function Lr(t,n,a){var c=t[n];(!(De.call(t,n)&&gn(c,a))||a===i&&!(n in t))&&_n(t,n,a)}function E0(t,n){for(var a=t.length;a--;)if(gn(t[a][0],n))return a;return-1}function Mx(t,n,a,c){return e1(t,function(d,p,b){n(c,d,a(d),b)}),c}function K2(t,n){return t&&xn(n,gt(n),t)}function Tx(t,n){return t&&xn(n,It(n),t)}function _n(t,n,a){n=="__proto__"&&M0?M0(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[n]=a}function Io(t,n){for(var a=-1,c=n.length,d=P(c),p=t==null;++a<c;)d[a]=p?i:ha(t,n[a]);return d}function p1(t,n,a){return t===t&&(a!==i&&(t=t<=a?t:a),n!==i&&(t=t>=n?t:n)),t}function Xt(t,n,a,c,d,p){var b,C=n&$,S=n&M,F=n&x;if(a&&(b=d?a(t,c,d,p):a(t)),b!==i)return b;if(!et(t))return t;var N=_e(t);if(N){if(b=vw(t),!C)return Tt(t,b)}else{var U=xt(t),J=U==Oe||U==bn;if(i1(t))return h9(t,C);if(U==tt||U==oe||J&&!d){if(b=S||J?{}:I9(t),!C)return S?sw(t,Tx(b,t)):aw(t,K2(b,t))}else{if(!He[U])return d?t:{};b=bw(t,U,C)}}p||(p=new dn);var re=p.get(t);if(re)return re;p.set(t,b),sl(t)?t.forEach(function(se){b.add(Xt(se,n,a,se,t,p))}):ol(t)&&t.forEach(function(se,Se){b.set(Se,Xt(se,n,a,Se,t,p))});var fe=F?S?Xo:qo:S?It:gt,we=N?i:fe(t);return zt(we||t,function(se,Se){we&&(Se=se,se=t[Se]),Lr(b,Se,Xt(se,n,a,Se,t,p))}),b}function Px(t){var n=gt(t);return function(a){return U2(a,t,n)}}function U2(t,n,a){var c=a.length;if(t==null)return!c;for(t=Ze(t);c--;){var d=a[c],p=n[d],b=t[d];if(b===i&&!(d in t)||!p(b))return!1}return!0}function H2(t,n,a){if(typeof t!="function")throw new Gt(u);return Ir(function(){t.apply(i,a)},n)}function kr(t,n,a,c){var d=-1,p=v0,b=!0,C=t.length,S=[],F=n.length;if(!C)return S;a&&(n=Xe(n,Ft(a))),c?(p=vo,b=!1):n.length>=s&&(p=br,b=!1,n=new g1(n));e:for(;++d<C;){var N=t[d],U=a==null?N:a(N);if(N=c||N!==0?N:0,b&&U===U){for(var J=F;J--;)if(n[J]===U)continue e;S.push(N)}else p(n,U,c)||S.push(N)}return S}var e1=v9(Cn),j2=v9(Bo,!0);function Ix(t,n){var a=!0;return e1(t,function(c,d,p){return a=!!n(c,d,p),a}),a}function D0(t,n,a){for(var c=-1,d=t.length;++c<d;){var p=t[c],b=n(p);if(b!=null&&(C===i?b===b&&!Zt(b):a(b,C)))var C=b,S=p}return S}function Ox(t,n,a,c){var d=t.length;for(a=xe(a),a<0&&(a=-a>d?0:d+a),c=c===i||c>d?d:xe(c),c<0&&(c+=d),c=a>c?0:cl(c);a<c;)t[a++]=n;return t}function Y2(t,n){var a=[];return e1(t,function(c,d,p){n(c,d,p)&&a.push(c)}),a}function yt(t,n,a,c,d){var p=-1,b=t.length;for(a||(a=Cw),d||(d=[]);++p<b;){var C=t[p];n>0&&a(C)?n>1?yt(C,n-1,a,c,d):qn(d,C):c||(d[d.length]=C)}return d}var Oo=b9(),V2=b9(!0);function Cn(t,n){return t&&Oo(t,n,gt)}function Bo(t,n){return t&&V2(t,n,gt)}function R0(t,n){return Gn(n,function(a){return Nn(t[a])})}function m1(t,n){n=n1(n,t);for(var a=0,c=n.length;t!=null&&a<c;)t=t[hn(n[a++])];return a&&a==c?t:i}function Q2(t,n,a){var c=n(t);return _e(t)?c:qn(c,a(t))}function kt(t){return t==null?t===i?pr:Et:d1&&d1 in Ze(t)?pw(t):Aw(t)}function Eo(t,n){return t>n}function Bx(t,n){return t!=null&&De.call(t,n)}function Ex(t,n){return t!=null&&n in Ze(t)}function Dx(t,n,a){return t>=Ct(n,a)&&t<dt(n,a)}function Do(t,n,a){for(var c=a?vo:v0,d=t[0].length,p=t.length,b=p,C=P(p),S=1/0,F=[];b--;){var N=t[b];b&&n&&(N=Xe(N,Ft(n))),S=Ct(N.length,S),C[b]=!a&&(n||d>=120&&N.length>=120)?new g1(b&&N):i}N=t[0];var U=-1,J=C[0];e:for(;++U<d&&F.length<S;){var re=N[U],fe=n?n(re):re;if(re=a||re!==0?re:0,!(J?br(J,fe):c(F,fe,a))){for(b=p;--b;){var we=C[b];if(!(we?br(we,fe):c(t[b],fe,a)))continue e}J&&J.push(fe),F.push(re)}}return F}function Rx(t,n,a,c){return Cn(t,function(d,p,b){n(c,a(d),p,b)}),c}function Sr(t,n,a){n=n1(n,t),t=D9(t,n);var c=t==null?t:t[hn(en(n))];return c==null?i:Rt(c,t,a)}function G2(t){return nt(t)&&kt(t)==oe}function zx(t){return nt(t)&&kt(t)==u1}function Fx(t){return nt(t)&&kt(t)==_t}function Ar(t,n,a,c,d){return t===n?!0:t==null||n==null||!nt(t)&&!nt(n)?t!==t&&n!==n:Nx(t,n,a,c,Ar,d)}function Nx(t,n,a,c,d,p){var b=_e(t),C=_e(n),S=b?ye:xt(t),F=C?ye:xt(n);S=S==oe?tt:S,F=F==oe?tt:F;var N=S==tt,U=F==tt,J=S==F;if(J&&i1(t)){if(!i1(n))return!1;b=!0,N=!1}if(J&&!N)return p||(p=new dn),b||or(t)?M9(t,n,a,c,d,p):hw(t,n,S,a,c,d,p);if(!(a&T)){var re=N&&De.call(t,"__wrapped__"),fe=U&&De.call(n,"__wrapped__");if(re||fe){var we=re?t.value():t,se=fe?n.value():n;return p||(p=new dn),d(we,se,a,c,p)}}return J?(p||(p=new dn),gw(t,n,a,c,d,p)):!1}function Zx(t){return nt(t)&&xt(t)==Ve}function Ro(t,n,a,c){var d=a.length,p=d,b=!c;if(t==null)return!p;for(t=Ze(t);d--;){var C=a[d];if(b&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++d<p;){C=a[d];var S=C[0],F=t[S],N=C[1];if(b&&C[2]){if(F===i&&!(S in t))return!1}else{var U=new dn;if(c)var J=c(F,N,S,t,n,U);if(!(J===i?Ar(N,F,T|A,c,U):J))return!1}}return!0}function q2(t){if(!et(t)||ww(t))return!1;var n=Nn(t)?ZC:P_;return n.test(v1(t))}function Wx(t){return nt(t)&&kt(t)==de}function Kx(t){return nt(t)&&xt(t)==Je}function Ux(t){return nt(t)&&ei(t.length)&&!!Ge[kt(t)]}function X2(t){return typeof t=="function"?t:t==null?Ot:typeof t=="object"?_e(t)?t9(t[0],t[1]):e9(t):Cl(t)}function zo(t){if(!Pr(t))return YC(t);var n=[];for(var a in Ze(t))De.call(t,a)&&a!="constructor"&&n.push(a);return n}function Hx(t){if(!et(t))return Sw(t);var n=Pr(t),a=[];for(var c in t)c=="constructor"&&(n||!De.call(t,c))||a.push(c);return a}function Fo(t,n){return t<n}function J2(t,n){var a=-1,c=Pt(t)?P(t.length):[];return e1(t,function(d,p,b){c[++a]=n(d,p,b)}),c}function e9(t){var n=ea(t);return n.length==1&&n[0][2]?B9(n[0][0],n[0][1]):function(a){return a===t||Ro(a,t,n)}}function t9(t,n){return na(t)&&O9(n)?B9(hn(t),n):function(a){var c=ha(a,t);return c===i&&c===n?ga(a,t):Ar(n,c,T|A)}}function z0(t,n,a,c,d){t!==n&&Oo(n,function(p,b){if(d||(d=new dn),et(p))jx(t,n,b,a,z0,c,d);else{var C=c?c(ia(t,b),p,b+"",t,n,d):i;C===i&&(C=p),Po(t,b,C)}},It)}function jx(t,n,a,c,d,p,b){var C=ia(t,a),S=ia(n,a),F=b.get(S);if(F){Po(t,a,F);return}var N=p?p(C,S,a+"",t,n,b):i,U=N===i;if(U){var J=_e(S),re=!J&&i1(S),fe=!J&&!re&&or(S);N=S,J||re||fe?_e(C)?N=C:it(C)?N=Tt(C):re?(U=!1,N=h9(S,!0)):fe?(U=!1,N=g9(S,!0)):N=[]:Or(S)||b1(S)?(N=C,b1(C)?N=ul(C):(!et(C)||Nn(C))&&(N=I9(S))):U=!1}U&&(b.set(S,N),d(N,S,c,p,b),b.delete(S)),Po(t,a,N)}function n9(t,n){var a=t.length;if(a)return n+=n<0?a:0,Fn(n,a)?t[n]:i}function r9(t,n,a){n.length?n=Xe(n,function(p){return _e(p)?function(b){return m1(b,p.length===1?p[0]:p)}:p}):n=[Ot];var c=-1;n=Xe(n,Ft(ce()));var d=J2(t,function(p,b,C){var S=Xe(n,function(F){return F(p)});return{criteria:S,index:++c,value:p}});return bC(d,function(p,b){return ow(p,b,a)})}function Yx(t,n){return i9(t,n,function(a,c){return ga(t,c)})}function i9(t,n,a){for(var c=-1,d=n.length,p={};++c<d;){var b=n[c],C=m1(t,b);a(C,b)&&Mr(p,n1(b,t),C)}return p}function Vx(t){return function(n){return m1(n,t)}}function No(t,n,a,c){var d=c?vC:V1,p=-1,b=n.length,C=t;for(t===n&&(n=Tt(n)),a&&(C=Xe(t,Ft(a)));++p<b;)for(var S=0,F=n[p],N=a?a(F):F;(S=d(C,N,S,c))>-1;)C!==t&&A0.call(C,S,1),A0.call(t,S,1);return t}function o9(t,n){for(var a=t?n.length:0,c=a-1;a--;){var d=n[a];if(a==c||d!==p){var p=d;Fn(d)?A0.call(t,d,1):Uo(t,d)}}return t}function Zo(t,n){return t+P0(F2()*(n-t+1))}function Qx(t,n,a,c){for(var d=-1,p=dt(T0((n-t)/(a||1)),0),b=P(p);p--;)b[c?p:++d]=t,t+=a;return b}function Wo(t,n){var a="";if(!t||n<1||n>Ie)return a;do n%2&&(a+=t),n=P0(n/2),n&&(t+=t);while(n);return a}function Le(t,n){return oa(E9(t,n,Ot),t+"")}function Gx(t){return W2(ar(t))}function qx(t,n){var a=ar(t);return V0(a,p1(n,0,a.length))}function Mr(t,n,a,c){if(!et(t))return t;n=n1(n,t);for(var d=-1,p=n.length,b=p-1,C=t;C!=null&&++d<p;){var S=hn(n[d]),F=a;if(S==="__proto__"||S==="constructor"||S==="prototype")return t;if(d!=b){var N=C[S];F=c?c(N,S,C):i,F===i&&(F=et(N)?N:Fn(n[d+1])?[]:{})}Lr(C,S,F),C=C[S]}return t}var a9=I0?function(t,n){return I0.set(t,n),t}:Ot,Xx=M0?function(t,n){return M0(t,"toString",{configurable:!0,enumerable:!1,value:ma(n),writable:!0})}:Ot;function Jx(t){return V0(ar(t))}function Jt(t,n,a){var c=-1,d=t.length;n<0&&(n=-n>d?0:d+n),a=a>d?d:a,a<0&&(a+=d),d=n>a?0:a-n>>>0,n>>>=0;for(var p=P(d);++c<d;)p[c]=t[c+n];return p}function ew(t,n){var a;return e1(t,function(c,d,p){return a=n(c,d,p),!a}),!!a}function F0(t,n,a){var c=0,d=t==null?c:t.length;if(typeof n=="number"&&n===n&&d<=ae){for(;c<d;){var p=c+d>>>1,b=t[p];b!==null&&!Zt(b)&&(a?b<=n:b<n)?c=p+1:d=p}return d}return Ko(t,n,Ot,a)}function Ko(t,n,a,c){var d=0,p=t==null?0:t.length;if(p===0)return 0;n=a(n);for(var b=n!==n,C=n===null,S=Zt(n),F=n===i;d<p;){var N=P0((d+p)/2),U=a(t[N]),J=U!==i,re=U===null,fe=U===U,we=Zt(U);if(b)var se=c||fe;else F?se=fe&&(c||J):C?se=fe&&J&&(c||!re):S?se=fe&&J&&!re&&(c||!we):re||we?se=!1:se=c?U<=n:U<n;se?d=N+1:p=N}return Ct(p,ht)}function s9(t,n){for(var a=-1,c=t.length,d=0,p=[];++a<c;){var b=t[a],C=n?n(b):b;if(!a||!gn(C,S)){var S=C;p[d++]=b===0?0:b}}return p}function l9(t){return typeof t=="number"?t:Zt(t)?Ue:+t}function Nt(t){if(typeof t=="string")return t;if(_e(t))return Xe(t,Nt)+"";if(Zt(t))return N2?N2.call(t):"";var n=t+"";return n=="0"&&1/t==-he?"-0":n}function t1(t,n,a){var c=-1,d=v0,p=t.length,b=!0,C=[],S=C;if(a)b=!1,d=vo;else if(p>=s){var F=n?null:fw(t);if(F)return _0(F);b=!1,d=br,S=new g1}else S=n?[]:C;e:for(;++c<p;){var N=t[c],U=n?n(N):N;if(N=a||N!==0?N:0,b&&U===U){for(var J=S.length;J--;)if(S[J]===U)continue e;n&&S.push(U),C.push(N)}else d(S,U,a)||(S!==C&&S.push(U),C.push(N))}return C}function Uo(t,n){n=n1(n,t);var a=-1,c=n.length;if(!c)return!0;for(;++a<c;){var d=hn(n[a]);if(d==="__proto__"&&!De.call(t,"__proto__")||(d==="constructor"||d==="prototype")&&a<c-1)return!1}var p=D9(t,n);return p==null||delete p[hn(en(n))]}function c9(t,n,a,c){return Mr(t,n,a(m1(t,n)),c)}function N0(t,n,a,c){for(var d=t.length,p=c?d:-1;(c?p--:++p<d)&&n(t[p],p,t););return a?Jt(t,c?0:p,c?p+1:d):Jt(t,c?p+1:0,c?d:p)}function u9(t,n){var a=t;return a instanceof Ae&&(a=a.value()),bo(n,function(c,d){return d.func.apply(d.thisArg,qn([c],d.args))},a)}function Ho(t,n,a){var c=t.length;if(c<2)return c?t1(t[0]):[];for(var d=-1,p=P(c);++d<c;)for(var b=t[d],C=-1;++C<c;)C!=d&&(p[d]=kr(p[d]||b,t[C],n,a));return t1(yt(p,1),n,a)}function f9(t,n,a){for(var c=-1,d=t.length,p=n.length,b={};++c<d;){var C=c<p?n[c]:i;a(b,t[c],C)}return b}function jo(t){return it(t)?t:[]}function Yo(t){return typeof t=="function"?t:Ot}function n1(t,n){return _e(t)?t:na(t,n)?[t]:N9(Re(t))}var tw=Le;function r1(t,n,a){var c=t.length;return a=a===i?c:a,!n&&a>=c?t:Jt(t,n,a)}var d9=WC||function(t){return mt.clearTimeout(t)};function h9(t,n){if(n)return t.slice();var a=t.length,c=B2?B2(a):new t.constructor(a);return t.copy(c),c}function Vo(t){var n=new t.constructor(t.byteLength);return new k0(n).set(new k0(t)),n}function nw(t,n){var a=n?Vo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function rw(t){var n=new t.constructor(t.source,G5.exec(t));return n.lastIndex=t.lastIndex,n}function iw(t){return $r?Ze($r.call(t)):{}}function g9(t,n){var a=n?Vo(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function p9(t,n){if(t!==n){var a=t!==i,c=t===null,d=t===t,p=Zt(t),b=n!==i,C=n===null,S=n===n,F=Zt(n);if(!C&&!F&&!p&&t>n||p&&b&&S&&!C&&!F||c&&b&&S||!a&&S||!d)return 1;if(!c&&!p&&!F&&t<n||F&&a&&d&&!c&&!p||C&&a&&d||!b&&d||!S)return-1}return 0}function ow(t,n,a){for(var c=-1,d=t.criteria,p=n.criteria,b=d.length,C=a.length;++c<b;){var S=p9(d[c],p[c]);if(S){if(c>=C)return S;var F=a[c];return S*(F=="desc"?-1:1)}}return t.index-n.index}function m9(t,n,a,c){for(var d=-1,p=t.length,b=a.length,C=-1,S=n.length,F=dt(p-b,0),N=P(S+F),U=!c;++C<S;)N[C]=n[C];for(;++d<b;)(U||d<p)&&(N[a[d]]=t[d]);for(;F--;)N[C++]=t[d++];return N}function y9(t,n,a,c){for(var d=-1,p=t.length,b=-1,C=a.length,S=-1,F=n.length,N=dt(p-C,0),U=P(N+F),J=!c;++d<N;)U[d]=t[d];for(var re=d;++S<F;)U[re+S]=n[S];for(;++b<C;)(J||d<p)&&(U[re+a[b]]=t[d++]);return U}function Tt(t,n){var a=-1,c=t.length;for(n||(n=P(c));++a<c;)n[a]=t[a];return n}function xn(t,n,a,c){var d=!a;a||(a={});for(var p=-1,b=n.length;++p<b;){var C=n[p],S=c?c(a[C],t[C],C,a,t):i;S===i&&(S=t[C]),d?_n(a,C,S):Lr(a,C,S)}return a}function aw(t,n){return xn(t,ta(t),n)}function sw(t,n){return xn(t,T9(t),n)}function Z0(t,n){return function(a,c){var d=_e(a)?dC:Mx,p=n?n():{};return d(a,t,ce(c,2),p)}}function nr(t){return Le(function(n,a){var c=-1,d=a.length,p=d>1?a[d-1]:i,b=d>2?a[2]:i;for(p=t.length>3&&typeof p=="function"?(d--,p):i,b&&St(a[0],a[1],b)&&(p=d<3?i:p,d=1),n=Ze(n);++c<d;){var C=a[c];C&&t(n,C,c,p)}return n})}function v9(t,n){return function(a,c){if(a==null)return a;if(!Pt(a))return t(a,c);for(var d=a.length,p=n?d:-1,b=Ze(a);(n?p--:++p<d)&&c(b[p],p,b)!==!1;);return a}}function b9(t){return function(n,a,c){for(var d=-1,p=Ze(n),b=c(n),C=b.length;C--;){var S=b[t?C:++d];if(a(p[S],S,p)===!1)break}return n}}function lw(t,n,a){var c=n&w,d=Tr(t);function p(){var b=this&&this!==mt&&this instanceof p?d:t;return b.apply(c?a:this,arguments)}return p}function _9(t){return function(n){n=Re(n);var a=Q1(n)?fn(n):i,c=a?a[0]:n.charAt(0),d=a?r1(a,1).join(""):n.slice(1);return c[t]()+d}}function rr(t){return function(n){return bo(bl(vl(n).replace(X_,"")),t,"")}}function Tr(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var a=tr(t.prototype),c=t.apply(a,n);return et(c)?c:a}}function cw(t,n,a){var c=Tr(t);function d(){for(var p=arguments.length,b=P(p),C=p,S=ir(d);C--;)b[C]=arguments[C];var F=p<3&&b[0]!==S&&b[p-1]!==S?[]:Xn(b,S);if(p-=F.length,p<a)return L9(t,n,W0,d.placeholder,i,b,F,i,i,a-p);var N=this&&this!==mt&&this instanceof d?c:t;return Rt(N,this,b)}return d}function C9(t){return function(n,a,c){var d=Ze(n);if(!Pt(n)){var p=ce(a,3);n=gt(n),a=function(C){return p(d[C],C,d)}}var b=t(n,a,c);return b>-1?d[p?n[b]:b]:i}}function x9(t){return zn(function(n){var a=n.length,c=a,d=qt.prototype.thru;for(t&&n.reverse();c--;){var p=n[c];if(typeof p!="function")throw new Gt(u);if(d&&!b&&j0(p)=="wrapper")var b=new qt([],!0)}for(c=b?c:a;++c<a;){p=n[c];var C=j0(p),S=C=="wrapper"?Jo(p):i;S&&ra(S[0])&&S[1]==(O|k|G|z)&&!S[4].length&&S[9]==1?b=b[j0(S[0])].apply(b,S[3]):b=p.length==1&&ra(p)?b[C]():b.thru(p)}return function(){var F=arguments,N=F[0];if(b&&F.length==1&&_e(N))return b.plant(N).value();for(var U=0,J=a?n[U].apply(this,F):N;++U<a;)J=n[U].call(this,J);return J}})}function W0(t,n,a,c,d,p,b,C,S,F){var N=n&O,U=n&w,J=n&I,re=n&(k|Z),fe=n&Q,we=J?i:Tr(t);function se(){for(var Se=arguments.length,Me=P(Se),Wt=Se;Wt--;)Me[Wt]=arguments[Wt];if(re)var At=ir(se),Kt=CC(Me,At);if(c&&(Me=m9(Me,c,d,re)),p&&(Me=y9(Me,p,b,re)),Se-=Kt,re&&Se<F){var ot=Xn(Me,At);return L9(t,n,W0,se.placeholder,a,Me,ot,C,S,F-Se)}var pn=U?a:this,Wn=J?pn[t]:t;return Se=Me.length,C?Me=Mw(Me,C):fe&&Se>1&&Me.reverse(),N&&S<Se&&(Me.length=S),this&&this!==mt&&this instanceof se&&(Wn=we||Tr(Wn)),Wn.apply(pn,Me)}return se}function w9(t,n){return function(a,c){return Rx(a,t,n(c),{})}}function K0(t,n){return function(a,c){var d;if(a===i&&c===i)return n;if(a!==i&&(d=a),c!==i){if(d===i)return c;typeof a=="string"||typeof c=="string"?(a=Nt(a),c=Nt(c)):(a=l9(a),c=l9(c)),d=t(a,c)}return d}}function Qo(t){return zn(function(n){return n=Xe(n,Ft(ce())),Le(function(a){var c=this;return t(n,function(d){return Rt(d,c,a)})})})}function U0(t,n){n=n===i?" ":Nt(n);var a=n.length;if(a<2)return a?Wo(n,t):n;var c=Wo(n,T0(t/G1(n)));return Q1(n)?r1(fn(c),0,t).join(""):c.slice(0,t)}function uw(t,n,a,c){var d=n&w,p=Tr(t);function b(){for(var C=-1,S=arguments.length,F=-1,N=c.length,U=P(N+S),J=this&&this!==mt&&this instanceof b?p:t;++F<N;)U[F]=c[F];for(;S--;)U[F++]=arguments[++C];return Rt(J,d?a:this,U)}return b}function $9(t){return function(n,a,c){return c&&typeof c!="number"&&St(n,a,c)&&(a=c=i),n=Zn(n),a===i?(a=n,n=0):a=Zn(a),c=c===i?n<a?1:-1:Zn(c),Qx(n,a,c,t)}}function H0(t){return function(n,a){return typeof n=="string"&&typeof a=="string"||(n=tn(n),a=tn(a)),t(n,a)}}function L9(t,n,a,c,d,p,b,C,S,F){var N=n&k,U=N?b:i,J=N?i:b,re=N?p:i,fe=N?i:p;n|=N?G:V,n&=~(N?V:G),n&R||(n&=~(w|I));var we=[t,n,d,re,U,fe,J,C,S,F],se=a.apply(i,we);return ra(t)&&R9(se,we),se.placeholder=c,z9(se,t,n)}function Go(t){var n=ft[t];return function(a,c){if(a=tn(a),c=c==null?0:Ct(xe(c),292),c&&z2(a)){var d=(Re(a)+"e").split("e"),p=n(d[0]+"e"+(+d[1]+c));return d=(Re(p)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return n(a)}}var fw=J1&&1/_0(new J1([,-0]))[1]==he?function(t){return new J1(t)}:ba;function k9(t){return function(n){var a=xt(n);return a==Ve?ko(n):a==Je?AC(n):_C(n,t(n))}}function Rn(t,n,a,c,d,p,b,C){var S=n&I;if(!S&&typeof t!="function")throw new Gt(u);var F=c?c.length:0;if(F||(n&=~(G|V),c=d=i),b=b===i?b:dt(xe(b),0),C=C===i?C:xe(C),F-=d?d.length:0,n&V){var N=c,U=d;c=d=i}var J=S?i:Jo(t),re=[t,n,a,c,d,N,U,p,b,C];if(J&&kw(re,J),t=re[0],n=re[1],a=re[2],c=re[3],d=re[4],C=re[9]=re[9]===i?S?0:t.length:dt(re[9]-F,0),!C&&n&(k|Z)&&(n&=~(k|Z)),!n||n==w)var fe=lw(t,n,a);else n==k||n==Z?fe=cw(t,n,C):(n==G||n==(w|G))&&!d.length?fe=uw(t,n,a,c):fe=W0.apply(i,re);var we=J?a9:R9;return z9(we(fe,re),t,n)}function S9(t,n,a,c){return t===i||gn(t,X1[a])&&!De.call(c,a)?n:t}function A9(t,n,a,c,d,p){return et(t)&&et(n)&&(p.set(n,t),z0(t,n,i,A9,p),p.delete(n)),t}function dw(t){return Or(t)?i:t}function M9(t,n,a,c,d,p){var b=a&T,C=t.length,S=n.length;if(C!=S&&!(b&&S>C))return!1;var F=p.get(t),N=p.get(n);if(F&&N)return F==n&&N==t;var U=-1,J=!0,re=a&A?new g1:i;for(p.set(t,n),p.set(n,t);++U<C;){var fe=t[U],we=n[U];if(c)var se=b?c(we,fe,U,n,t,p):c(fe,we,U,t,n,p);if(se!==i){if(se)continue;J=!1;break}if(re){if(!_o(n,function(Se,Me){if(!br(re,Me)&&(fe===Se||d(fe,Se,a,c,p)))return re.push(Me)})){J=!1;break}}else if(!(fe===we||d(fe,we,a,c,p))){J=!1;break}}return p.delete(t),p.delete(n),J}function hw(t,n,a,c,d,p,b){switch(a){case Qn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case u1:return!(t.byteLength!=n.byteLength||!p(new k0(t),new k0(n)));case ve:case _t:case Fe:return gn(+t,+n);case un:return t.name==n.name&&t.message==n.message;case de:case Bn:return t==n+"";case Ve:var C=ko;case Je:var S=c&T;if(C||(C=_0),t.size!=n.size&&!S)return!1;var F=b.get(t);if(F)return F==n;c|=A,b.set(t,n);var N=M9(C(t),C(n),c,d,p,b);return b.delete(t),N;case Z1:if($r)return $r.call(t)==$r.call(n)}return!1}function gw(t,n,a,c,d,p){var b=a&T,C=qo(t),S=C.length,F=qo(n),N=F.length;if(S!=N&&!b)return!1;for(var U=S;U--;){var J=C[U];if(!(b?J in n:De.call(n,J)))return!1}var re=p.get(t),fe=p.get(n);if(re&&fe)return re==n&&fe==t;var we=!0;p.set(t,n),p.set(n,t);for(var se=b;++U<S;){J=C[U];var Se=t[J],Me=n[J];if(c)var Wt=b?c(Me,Se,J,n,t,p):c(Se,Me,J,t,n,p);if(!(Wt===i?Se===Me||d(Se,Me,a,c,p):Wt)){we=!1;break}se||(se=J=="constructor")}if(we&&!se){var At=t.constructor,Kt=n.constructor;At!=Kt&&"constructor"in t&&"constructor"in n&&!(typeof At=="function"&&At instanceof At&&typeof Kt=="function"&&Kt instanceof Kt)&&(we=!1)}return p.delete(t),p.delete(n),we}function zn(t){return oa(E9(t,i,U9),t+"")}function qo(t){return Q2(t,gt,ta)}function Xo(t){return Q2(t,It,T9)}var Jo=I0?function(t){return I0.get(t)}:ba;function j0(t){for(var n=t.name+"",a=er[n],c=De.call(er,n)?a.length:0;c--;){var d=a[c],p=d.func;if(p==null||p==t)return d.name}return n}function ir(t){var n=De.call(g,"placeholder")?g:t;return n.placeholder}function ce(){var t=g.iteratee||ya;return t=t===ya?X2:t,arguments.length?t(arguments[0],arguments[1]):t}function Y0(t,n){var a=t.__data__;return xw(n)?a[typeof n=="string"?"string":"hash"]:a.map}function ea(t){for(var n=gt(t),a=n.length;a--;){var c=n[a],d=t[c];n[a]=[c,d,O9(d)]}return n}function y1(t,n){var a=LC(t,n);return q2(a)?a:i}function pw(t){var n=De.call(t,d1),a=t[d1];try{t[d1]=i;var c=!0}catch{}var d=$0.call(t);return c&&(n?t[d1]=a:delete t[d1]),d}var ta=Ao?function(t){return t==null?[]:(t=Ze(t),Gn(Ao(t),function(n){return D2.call(t,n)}))}:_a,T9=Ao?function(t){for(var n=[];t;)qn(n,ta(t)),t=S0(t);return n}:_a,xt=kt;(Mo&&xt(new Mo(new ArrayBuffer(1)))!=Qn||Cr&&xt(new Cr)!=Ve||To&&xt(To.resolve())!=ut||J1&&xt(new J1)!=Je||xr&&xt(new xr)!=Vn)&&(xt=function(t){var n=kt(t),a=n==tt?t.constructor:i,c=a?v1(a):"";if(c)switch(c){case qC:return Qn;case XC:return Ve;case JC:return ut;case ex:return Je;case tx:return Vn}return n});function mw(t,n,a){for(var c=-1,d=a.length;++c<d;){var p=a[c],b=p.size;switch(p.type){case"drop":t+=b;break;case"dropRight":n-=b;break;case"take":n=Ct(n,t+b);break;case"takeRight":t=dt(t,n-b);break}}return{start:t,end:n}}function yw(t){var n=t.match($_);return n?n[1].split(L_):[]}function P9(t,n,a){n=n1(n,t);for(var c=-1,d=n.length,p=!1;++c<d;){var b=hn(n[c]);if(!(p=t!=null&&a(t,b)))break;t=t[b]}return p||++c!=d?p:(d=t==null?0:t.length,!!d&&ei(d)&&Fn(b,d)&&(_e(t)||b1(t)))}function vw(t){var n=t.length,a=new t.constructor(n);return n&&typeof t[0]=="string"&&De.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function I9(t){return typeof t.constructor=="function"&&!Pr(t)?tr(S0(t)):{}}function bw(t,n,a){var c=t.constructor;switch(n){case u1:return Vo(t);case ve:case _t:return new c(+t);case Qn:return nw(t,a);case W1:case yr:case Qe:case vr:case K1:case U1:case H1:case j1:case so:return g9(t,a);case Ve:return new c;case Fe:case Bn:return new c(t);case de:return rw(t);case Je:return new c;case Z1:return iw(t)}}function _w(t,n){var a=n.length;if(!a)return t;var c=a-1;return n[c]=(a>1?"& ":"")+n[c],n=n.join(a>2?", ":" "),t.replace(w_,`{
|
|
9
9
|
/* [wrapped with `+n+`] */
|
|
10
|
-
`)}function bw(t){return _e(t)||b1(t)||!!(z2&&t&&t[z2])}function Fn(t,n){var a=typeof t;return n=n??Ie,!!n&&(a=="number"||a!="symbol"&&P_.test(t))&&t>-1&&t%1==0&&t<n}function St(t,n,a){if(!et(a))return!1;var c=typeof n;return(c=="number"?Pt(a)&&Fn(n,a.length):c=="string"&&n in a)?gn(a[n],t):!1}function na(t,n){if(_e(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Zt(t)?!0:y_.test(t)||!m_.test(t)||n!=null&&t in Ze(n)}function _w(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function ra(t){var n=j0(t),a=g[n];if(typeof a!="function"||!(n in Ae.prototype))return!1;if(t===a)return!0;var c=Jo(a);return!!c&&t===c[0]}function Cw(t){return!!B2&&B2 in t}var xw=x0?Nn:Ca;function Ir(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||X1;return t===a}function B9(t){return t===t&&!et(t)}function E9(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==i||t in Ze(a))}}function ww(t){var n=X0(t,function(c){return a.size===_&&a.clear(),c}),a=n.cache;return n}function $w(t,n){var a=t[1],c=n[1],d=a|c,p=d<(C|I|O),b=c==O&&a==$||c==O&&a==z&&t[7].length<=n[8]||c==(O|z)&&n[7].length<=n[8]&&a==$;if(!(p||b))return t;c&C&&(t[2]=n[2],d|=a&C?0:R);var x=n[3];if(x){var S=t[3];t[3]=S?y9(S,x,n[4]):x,t[4]=S?Xn(t[3],v):n[4]}return x=n[5],x&&(S=t[5],t[5]=S?v9(S,x,n[6]):x,t[6]=S?Xn(t[5],v):n[6]),x=n[7],x&&(t[7]=x),c&O&&(t[8]=t[8]==null?n[8]:Ct(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=d,t}function Lw(t){var n=[];if(t!=null)for(var a in Ze(t))n.push(a);return n}function kw(t){return $0.call(t)}function D9(t,n,a){return n=dt(n===i?t.length-1:n,0),function(){for(var c=arguments,d=-1,p=dt(c.length-n,0),b=P(p);++d<p;)b[d]=c[n+d];d=-1;for(var x=P(n+1);++d<n;)x[d]=c[d];return x[n]=a(b),Rt(t,this,x)}}function R9(t,n){return n.length<2?t:m1(t,Jt(n,0,-1))}function Sw(t,n){for(var a=t.length,c=Ct(n.length,a),d=Tt(t);c--;){var p=n[c];t[c]=Fn(p,a)?d[p]:i}return t}function ia(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var z9=N9(s9),Or=WC||function(t,n){return mt.setTimeout(t,n)},oa=N9(Gx);function F9(t,n,a){var c=n+"";return oa(t,vw(c,Aw(pw(c),a)))}function N9(t){var n=0,a=0;return function(){var c=jC(),d=D-(c-a);if(a=c,d>0){if(++n>=H)return arguments[0]}else n=0;return t.apply(i,arguments)}}function V0(t,n){var a=-1,c=t.length,d=c-1;for(n=n===i?c:n;++a<n;){var p=Zo(a,d),b=t[p];t[p]=t[a],t[a]=b}return t.length=n,t}var Z9=ww(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(v_,function(a,c,d,p){n.push(d?p.replace(L_,"$1"):c||a)}),n});function hn(t){if(typeof t=="string"||Zt(t))return t;var n=t+"";return n=="0"&&1/t==-he?"-0":n}function v1(t){if(t!=null){try{return w0.call(t)}catch{}try{return t+""}catch{}}return""}function Aw(t,n){return zt(ne,function(a){var c="_."+a[0];n&a[1]&&!v0(t,c)&&t.push(c)}),t.sort()}function W9(t){if(t instanceof Ae)return t.clone();var n=new qt(t.__wrapped__,t.__chain__);return n.__actions__=Tt(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function Mw(t,n,a){(a?St(t,n,a):n===i)?n=1:n=dt(xe(n),0);var c=t==null?0:t.length;if(!c||n<1)return[];for(var d=0,p=0,b=P(T0(c/n));d<c;)b[p++]=Jt(t,d,d+=n);return b}function Tw(t){for(var n=-1,a=t==null?0:t.length,c=0,d=[];++n<a;){var p=t[n];p&&(d[c++]=p)}return d}function Pw(){var t=arguments.length;if(!t)return[];for(var n=P(t-1),a=arguments[0],c=t;c--;)n[c-1]=arguments[c];return qn(_e(a)?Tt(a):[a],yt(n,1))}var Iw=Le(function(t,n){return it(t)?Sr(t,yt(n,1,it,!0)):[]}),Ow=Le(function(t,n){var a=en(n);return it(a)&&(a=i),it(t)?Sr(t,yt(n,1,it,!0),le(a,2)):[]}),Bw=Le(function(t,n){var a=en(n);return it(a)&&(a=i),it(t)?Sr(t,yt(n,1,it,!0),i,a):[]});function Ew(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:xe(n),Jt(t,n<0?0:n,c)):[]}function Dw(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:xe(n),n=c-n,Jt(t,0,n<0?0:n)):[]}function Rw(t,n){return t&&t.length?N0(t,le(n,3),!0,!0):[]}function zw(t,n){return t&&t.length?N0(t,le(n,3),!0):[]}function Fw(t,n,a,c){var d=t==null?0:t.length;return d?(a&&typeof a!="number"&&St(t,n,a)&&(a=0,c=d),Px(t,n,a,c)):[]}function K9(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:xe(a);return d<0&&(d=dt(c+d,0)),b0(t,le(n,3),d)}function U9(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c-1;return a!==i&&(d=xe(a),d=a<0?dt(c+d,0):Ct(d,c-1)),b0(t,le(n,3),d,!0)}function H9(t){var n=t==null?0:t.length;return n?yt(t,1):[]}function Nw(t){var n=t==null?0:t.length;return n?yt(t,he):[]}function Zw(t,n){var a=t==null?0:t.length;return a?(n=n===i?1:xe(n),yt(t,n)):[]}function Ww(t){for(var n=-1,a=t==null?0:t.length,c={};++n<a;){var d=t[n];_n(c,d[0],d[1])}return c}function j9(t){return t&&t.length?t[0]:i}function Kw(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:xe(a);return d<0&&(d=dt(c+d,0)),V1(t,n,d)}function Uw(t){var n=t==null?0:t.length;return n?Jt(t,0,-1):[]}var Hw=Le(function(t){var n=Xe(t,jo);return n.length&&n[0]===t[0]?Do(n):[]}),jw=Le(function(t){var n=en(t),a=Xe(t,jo);return n===en(a)?n=i:a.pop(),a.length&&a[0]===t[0]?Do(a,le(n,2)):[]}),Yw=Le(function(t){var n=en(t),a=Xe(t,jo);return n=typeof n=="function"?n:i,n&&a.pop(),a.length&&a[0]===t[0]?Do(a,i,n):[]});function Vw(t,n){return t==null?"":UC.call(t,n)}function en(t){var n=t==null?0:t.length;return n?t[n-1]:i}function Qw(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c;return a!==i&&(d=xe(a),d=d<0?dt(c+d,0):Ct(d,c-1)),n===n?AC(t,n,d):b0(t,k2,d,!0)}function Gw(t,n){return t&&t.length?r9(t,xe(n)):i}var qw=Le(Y9);function Y9(t,n){return t&&t.length&&n&&n.length?No(t,n):t}function Xw(t,n,a){return t&&t.length&&n&&n.length?No(t,n,le(a,2)):t}function Jw(t,n,a){return t&&t.length&&n&&n.length?No(t,n,i,a):t}var e$=zn(function(t,n){var a=t==null?0:t.length,c=Io(t,n);return a9(t,Xe(n,function(d){return Fn(d,a)?+d:d}).sort(m9)),c});function t$(t,n){var a=[];if(!(t&&t.length))return a;var c=-1,d=[],p=t.length;for(n=le(n,3);++c<p;){var b=t[c];n(b,c,t)&&(a.push(b),d.push(c))}return a9(t,d),a}function aa(t){return t==null?t:VC.call(t)}function n$(t,n,a){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&St(t,n,a)?(n=0,a=c):(n=n==null?0:xe(n),a=a===i?c:xe(a)),Jt(t,n,a)):[]}function r$(t,n){return F0(t,n)}function i$(t,n,a){return Ko(t,n,le(a,2))}function o$(t,n){var a=t==null?0:t.length;if(a){var c=F0(t,n);if(c<a&&gn(t[c],n))return c}return-1}function a$(t,n){return F0(t,n,!0)}function s$(t,n,a){return Ko(t,n,le(a,2),!0)}function l$(t,n){var a=t==null?0:t.length;if(a){var c=F0(t,n,!0)-1;if(gn(t[c],n))return c}return-1}function c$(t){return t&&t.length?l9(t):[]}function u$(t,n){return t&&t.length?l9(t,le(n,2)):[]}function f$(t){var n=t==null?0:t.length;return n?Jt(t,1,n):[]}function d$(t,n,a){return t&&t.length?(n=a||n===i?1:xe(n),Jt(t,0,n<0?0:n)):[]}function h$(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:xe(n),n=c-n,Jt(t,n<0?0:n,c)):[]}function g$(t,n){return t&&t.length?N0(t,le(n,3),!1,!0):[]}function p$(t,n){return t&&t.length?N0(t,le(n,3)):[]}var m$=Le(function(t){return t1(yt(t,1,it,!0))}),y$=Le(function(t){var n=en(t);return it(n)&&(n=i),t1(yt(t,1,it,!0),le(n,2))}),v$=Le(function(t){var n=en(t);return n=typeof n=="function"?n:i,t1(yt(t,1,it,!0),i,n)});function b$(t){return t&&t.length?t1(t):[]}function _$(t,n){return t&&t.length?t1(t,le(n,2)):[]}function C$(t,n){return n=typeof n=="function"?n:i,t&&t.length?t1(t,i,n):[]}function sa(t){if(!(t&&t.length))return[];var n=0;return t=Gn(t,function(a){if(it(a))return n=dt(a.length,n),!0}),$o(n,function(a){return Xe(t,Co(a))})}function V9(t,n){if(!(t&&t.length))return[];var a=sa(t);return n==null?a:Xe(a,function(c){return Rt(n,i,c)})}var x$=Le(function(t,n){return it(t)?Sr(t,n):[]}),w$=Le(function(t){return Ho(Gn(t,it))}),$$=Le(function(t){var n=en(t);return it(n)&&(n=i),Ho(Gn(t,it),le(n,2))}),L$=Le(function(t){var n=en(t);return n=typeof n=="function"?n:i,Ho(Gn(t,it),i,n)}),k$=Le(sa);function S$(t,n){return d9(t||[],n||[],kr)}function A$(t,n){return d9(t||[],n||[],Tr)}var M$=Le(function(t){var n=t.length,a=n>1?t[n-1]:i;return a=typeof a=="function"?(t.pop(),a):i,V9(t,a)});function Q9(t){var n=g(t);return n.__chain__=!0,n}function T$(t,n){return n(t),t}function Q0(t,n){return n(t)}var P$=zn(function(t){var n=t.length,a=n?t[0]:0,c=this.__wrapped__,d=function(p){return Io(p,t)};return n>1||this.__actions__.length||!(c instanceof Ae)||!Fn(a)?this.thru(d):(c=c.slice(a,+a+(n?1:0)),c.__actions__.push({func:Q0,args:[d],thisArg:i}),new qt(c,this.__chain__).thru(function(p){return n&&!p.length&&p.push(i),p}))});function I$(){return Q9(this)}function O$(){return new qt(this.value(),this.__chain__)}function B$(){this.__values__===i&&(this.__values__=cl(this.value()));var t=this.__index__>=this.__values__.length,n=t?i:this.__values__[this.__index__++];return{done:t,value:n}}function E$(){return this}function D$(t){for(var n,a=this;a instanceof B0;){var c=W9(a);c.__index__=0,c.__values__=i,n?d.__wrapped__=c:n=c;var d=c;a=a.__wrapped__}return d.__wrapped__=t,n}function R$(){var t=this.__wrapped__;if(t instanceof Ae){var n=t;return this.__actions__.length&&(n=new Ae(this)),n=n.reverse(),n.__actions__.push({func:Q0,args:[aa],thisArg:i}),new qt(n,this.__chain__)}return this.thru(aa)}function z$(){return f9(this.__wrapped__,this.__actions__)}var F$=Z0(function(t,n,a){De.call(t,a)?++t[a]:_n(t,a,1)});function N$(t,n,a){var c=_e(t)?$2:Tx;return a&&St(t,n,a)&&(n=i),c(t,le(n,3))}function Z$(t,n){var a=_e(t)?Gn:V2;return a(t,le(n,3))}var W$=x9(K9),K$=x9(U9);function U$(t,n){return yt(G0(t,n),1)}function H$(t,n){return yt(G0(t,n),he)}function j$(t,n,a){return a=a===i?1:xe(a),yt(G0(t,n),a)}function G9(t,n){var a=_e(t)?zt:e1;return a(t,le(n,3))}function q9(t,n){var a=_e(t)?fC:Y2;return a(t,le(n,3))}var Y$=Z0(function(t,n,a){De.call(t,a)?t[a].push(n):_n(t,a,[n])});function V$(t,n,a,c){t=Pt(t)?t:ar(t),a=a&&!c?xe(a):0;var d=t.length;return a<0&&(a=dt(d+a,0)),ti(t)?a<=d&&t.indexOf(n,a)>-1:!!d&&V1(t,n,a)>-1}var Q$=Le(function(t,n,a){var c=-1,d=typeof n=="function",p=Pt(t)?P(t.length):[];return e1(t,function(b){p[++c]=d?Rt(n,b,a):Ar(b,n,a)}),p}),G$=Z0(function(t,n,a){_n(t,a,n)});function G0(t,n){var a=_e(t)?Xe:e9;return a(t,le(n,3))}function q$(t,n,a,c){return t==null?[]:(_e(n)||(n=n==null?[]:[n]),a=c?i:a,_e(a)||(a=a==null?[]:[a]),i9(t,n,a))}var X$=Z0(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function J$(t,n,a){var c=_e(t)?bo:A2,d=arguments.length<3;return c(t,le(n,4),a,d,e1)}function eL(t,n,a){var c=_e(t)?dC:A2,d=arguments.length<3;return c(t,le(n,4),a,d,Y2)}function tL(t,n){var a=_e(t)?Gn:V2;return a(t,J0(le(n,3)))}function nL(t){var n=_e(t)?K2:Vx;return n(t)}function rL(t,n,a){(a?St(t,n,a):n===i)?n=1:n=xe(n);var c=_e(t)?Lx:Qx;return c(t,n)}function iL(t){var n=_e(t)?kx:qx;return n(t)}function oL(t){if(t==null)return 0;if(Pt(t))return ti(t)?G1(t):t.length;var n=xt(t);return n==Ve||n==Je?t.size:zo(t).length}function aL(t,n,a){var c=_e(t)?_o:Xx;return a&&St(t,n,a)&&(n=i),c(t,le(n,3))}var sL=Le(function(t,n){if(t==null)return[];var a=n.length;return a>1&&St(t,n[0],n[1])?n=[]:a>2&&St(n[0],n[1],n[2])&&(n=[n[0]]),i9(t,yt(n,1),[])}),q0=ZC||function(){return mt.Date.now()};function lL(t,n){if(typeof n!="function")throw new Gt(u);return t=xe(t),function(){if(--t<1)return n.apply(this,arguments)}}function X9(t,n,a){return n=a?i:n,n=t&&n==null?t.length:n,Rn(t,O,i,i,i,i,n)}function J9(t,n){var a;if(typeof n!="function")throw new Gt(u);return t=xe(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=i),a}}var la=Le(function(t,n,a){var c=C;if(a.length){var d=Xn(a,ir(la));c|=X}return Rn(t,c,n,a,d)}),el=Le(function(t,n,a){var c=C|I;if(a.length){var d=Xn(a,ir(el));c|=X}return Rn(n,c,t,a,d)});function tl(t,n,a){n=a?i:n;var c=Rn(t,$,i,i,i,i,i,n);return c.placeholder=tl.placeholder,c}function nl(t,n,a){n=a?i:n;var c=Rn(t,Z,i,i,i,i,i,n);return c.placeholder=nl.placeholder,c}function rl(t,n,a){var c,d,p,b,x,S,F=0,N=!1,K=!1,J=!0;if(typeof t!="function")throw new Gt(u);n=tn(n)||0,et(a)&&(N=!!a.leading,K="maxWait"in a,p=K?dt(tn(a.maxWait)||0,n):p,J="trailing"in a?!!a.trailing:J);function re(ot){var pn=c,Wn=d;return c=d=i,F=ot,b=t.apply(Wn,pn),b}function ue(ot){return F=ot,x=Or(Se,n),N?re(ot):b}function we(ot){var pn=ot-S,Wn=ot-F,wl=n-pn;return K?Ct(wl,p-Wn):wl}function se(ot){var pn=ot-S,Wn=ot-F;return S===i||pn>=n||pn<0||K&&Wn>=p}function Se(){var ot=q0();if(se(ot))return Me(ot);x=Or(Se,we(ot))}function Me(ot){return x=i,J&&c?re(ot):(c=d=i,b)}function Wt(){x!==i&&h9(x),F=0,c=S=d=x=i}function At(){return x===i?b:Me(q0())}function Kt(){var ot=q0(),pn=se(ot);if(c=arguments,d=this,S=ot,pn){if(x===i)return ue(S);if(K)return h9(x),x=Or(Se,n),re(S)}return x===i&&(x=Or(Se,n)),b}return Kt.cancel=Wt,Kt.flush=At,Kt}var cL=Le(function(t,n){return j2(t,1,n)}),uL=Le(function(t,n,a){return j2(t,tn(n)||0,a)});function fL(t){return Rn(t,G)}function X0(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new Gt(u);var a=function(){var c=arguments,d=n?n.apply(this,c):c[0],p=a.cache;if(p.has(d))return p.get(d);var b=t.apply(this,c);return a.cache=p.set(d,b)||p,b};return a.cache=new(X0.Cache||Dn),a}X0.Cache=Dn;function J0(t){if(typeof t!="function")throw new Gt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function dL(t){return J9(2,t)}var hL=Jx(function(t,n){n=n.length==1&&_e(n[0])?Xe(n[0],Ft(le())):Xe(yt(n,1),Ft(le()));var a=n.length;return Le(function(c){for(var d=-1,p=Ct(c.length,a);++d<p;)c[d]=n[d].call(this,c[d]);return Rt(t,this,c)})}),ca=Le(function(t,n){var a=Xn(n,ir(ca));return Rn(t,X,i,n,a)}),il=Le(function(t,n){var a=Xn(n,ir(il));return Rn(t,Q,i,n,a)}),gL=zn(function(t,n){return Rn(t,z,i,i,i,n)});function pL(t,n){if(typeof t!="function")throw new Gt(u);return n=n===i?n:xe(n),Le(t,n)}function mL(t,n){if(typeof t!="function")throw new Gt(u);return n=n==null?0:dt(xe(n),0),Le(function(a){var c=a[n],d=r1(a,0,n);return c&&qn(d,c),Rt(t,this,d)})}function yL(t,n,a){var c=!0,d=!0;if(typeof t!="function")throw new Gt(u);return et(a)&&(c="leading"in a?!!a.leading:c,d="trailing"in a?!!a.trailing:d),rl(t,n,{leading:c,maxWait:n,trailing:d})}function vL(t){return X9(t,1)}function bL(t,n){return ca(Yo(n),t)}function _L(){if(!arguments.length)return[];var t=arguments[0];return _e(t)?t:[t]}function CL(t){return Xt(t,w)}function xL(t,n){return n=typeof n=="function"?n:i,Xt(t,w,n)}function wL(t){return Xt(t,L|w)}function $L(t,n){return n=typeof n=="function"?n:i,Xt(t,L|w,n)}function LL(t,n){return n==null||H2(t,n,gt(n))}function gn(t,n){return t===n||t!==t&&n!==n}var kL=H0(Eo),SL=H0(function(t,n){return t>=n}),b1=q2(function(){return arguments}())?q2:function(t){return nt(t)&&De.call(t,"callee")&&!R2.call(t,"callee")},_e=P.isArray,AL=v2?Ft(v2):Dx;function Pt(t){return t!=null&&ei(t.length)&&!Nn(t)}function it(t){return nt(t)&&Pt(t)}function ML(t){return t===!0||t===!1||nt(t)&&kt(t)==ve}var i1=KC||Ca,TL=b2?Ft(b2):Rx;function PL(t){return nt(t)&&t.nodeType===1&&!Br(t)}function IL(t){if(t==null)return!0;if(Pt(t)&&(_e(t)||typeof t=="string"||typeof t.splice=="function"||i1(t)||or(t)||b1(t)))return!t.length;var n=xt(t);if(n==Ve||n==Je)return!t.size;if(Ir(t))return!zo(t).length;for(var a in t)if(De.call(t,a))return!1;return!0}function OL(t,n){return Mr(t,n)}function BL(t,n,a){a=typeof a=="function"?a:i;var c=a?a(t,n):i;return c===i?Mr(t,n,i,a):!!c}function ua(t){if(!nt(t))return!1;var n=kt(t);return n==un||n==cn||typeof t.message=="string"&&typeof t.name=="string"&&!Br(t)}function EL(t){return typeof t=="number"&&F2(t)}function Nn(t){if(!et(t))return!1;var n=kt(t);return n==Oe||n==bn||n==Pe||n==Dt}function ol(t){return typeof t=="number"&&t==xe(t)}function ei(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ie}function et(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function nt(t){return t!=null&&typeof t=="object"}var al=_2?Ft(_2):Fx;function DL(t,n){return t===n||Ro(t,n,ea(n))}function RL(t,n,a){return a=typeof a=="function"?a:i,Ro(t,n,ea(n),a)}function zL(t){return sl(t)&&t!=+t}function FL(t){if(xw(t))throw new pe(l);return X2(t)}function NL(t){return t===null}function ZL(t){return t==null}function sl(t){return typeof t=="number"||nt(t)&&kt(t)==Fe}function Br(t){if(!nt(t)||kt(t)!=tt)return!1;var n=S0(t);if(n===null)return!0;var a=De.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&w0.call(a)==RC}var fa=C2?Ft(C2):Nx;function WL(t){return ol(t)&&t>=-Ie&&t<=Ie}var ll=x2?Ft(x2):Zx;function ti(t){return typeof t=="string"||!_e(t)&&nt(t)&&kt(t)==Bn}function Zt(t){return typeof t=="symbol"||nt(t)&&kt(t)==Z1}var or=w2?Ft(w2):Wx;function KL(t){return t===i}function UL(t){return nt(t)&&xt(t)==Vn}function HL(t){return nt(t)&&kt(t)==yr}var jL=H0(Fo),YL=H0(function(t,n){return t<=n});function cl(t){if(!t)return[];if(Pt(t))return ti(t)?fn(t):Tt(t);if(Cr&&t[Cr])return LC(t[Cr]());var n=xt(t),a=n==Ve?ko:n==Je?_0:ar;return a(t)}function Zn(t){if(!t)return t===0?t:0;if(t=tn(t),t===he||t===-he){var n=t<0?-1:1;return n*$e}return t===t?t:0}function xe(t){var n=Zn(t),a=n%1;return n===n?a?n-a:n:0}function ul(t){return t?p1(xe(t),0,Ee):0}function tn(t){if(typeof t=="number")return t;if(Zt(t))return Ue;if(et(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=et(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=M2(t);var a=A_.test(t);return a||T_.test(t)?lC(t.slice(2),a?2:8):S_.test(t)?Ue:+t}function fl(t){return xn(t,It(t))}function VL(t){return t?p1(xe(t),-Ie,Ie):t===0?t:0}function Re(t){return t==null?"":Nt(t)}var QL=nr(function(t,n){if(Ir(n)||Pt(n)){xn(n,gt(n),t);return}for(var a in n)De.call(n,a)&&kr(t,a,n[a])}),dl=nr(function(t,n){xn(n,It(n),t)}),hl=nr(function(t,n,a,c){xn(n,It(n),t,c)}),da=nr(function(t,n,a,c){xn(n,gt(n),t,c)}),GL=zn(Io);function qL(t,n){var a=tr(t);return n==null?a:U2(a,n)}var XL=Le(function(t,n){t=Ze(t);var a=-1,c=n.length,d=c>2?n[2]:i;for(d&&St(n[0],n[1],d)&&(c=1);++a<c;)for(var p=n[a],b=It(p),x=-1,S=b.length;++x<S;){var F=b[x],N=t[F];(N===i||gn(N,X1[F])&&!De.call(t,F))&&(t[F]=p[F])}return t}),JL=Le(function(t){return t.push(i,M9),Rt(gl,i,t)});function ek(t,n){return L2(t,le(n,3),Cn)}function tk(t,n){return L2(t,le(n,3),Bo)}function nk(t,n){return t==null?t:Oo(t,le(n,3),It)}function rk(t,n){return t==null?t:Q2(t,le(n,3),It)}function ik(t,n){return t&&Cn(t,le(n,3))}function ok(t,n){return t&&Bo(t,le(n,3))}function ak(t){return t==null?[]:R0(t,gt(t))}function sk(t){return t==null?[]:R0(t,It(t))}function ha(t,n,a){var c=t==null?i:m1(t,n);return c===i?a:c}function lk(t,n){return t!=null&&I9(t,n,Ix)}function ga(t,n){return t!=null&&I9(t,n,Ox)}var ck=$9(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=$0.call(n)),t[n]=a},ma(Ot)),uk=$9(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=$0.call(n)),De.call(t,n)?t[n].push(a):t[n]=[a]},le),fk=Le(Ar);function gt(t){return Pt(t)?W2(t):zo(t)}function It(t){return Pt(t)?W2(t,!0):Kx(t)}function dk(t,n){var a={};return n=le(n,3),Cn(t,function(c,d,p){_n(a,n(c,d,p),c)}),a}function hk(t,n){var a={};return n=le(n,3),Cn(t,function(c,d,p){_n(a,d,n(c,d,p))}),a}var gk=nr(function(t,n,a){z0(t,n,a)}),gl=nr(function(t,n,a,c){z0(t,n,a,c)}),pk=zn(function(t,n){var a={};if(t==null)return a;var c=!1;n=Xe(n,function(p){return p=n1(p,t),c||(c=p.length>1),p}),xn(t,Xo(t),a),c&&(a=Xt(a,L|M|w,uw));for(var d=n.length;d--;)Uo(a,n[d]);return a});function mk(t,n){return pl(t,J0(le(n)))}var yk=zn(function(t,n){return t==null?{}:Hx(t,n)});function pl(t,n){if(t==null)return{};var a=Xe(Xo(t),function(c){return[c]});return n=le(n),o9(t,a,function(c,d){return n(c,d[0])})}function vk(t,n,a){n=n1(n,t);var c=-1,d=n.length;for(d||(d=1,t=i);++c<d;){var p=t==null?i:t[hn(n[c])];p===i&&(c=d,p=a),t=Nn(p)?p.call(t):p}return t}function bk(t,n,a){return t==null?t:Tr(t,n,a)}function _k(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:Tr(t,n,a,c)}var ml=S9(gt),yl=S9(It);function Ck(t,n,a){var c=_e(t),d=c||i1(t)||or(t);if(n=le(n,4),a==null){var p=t&&t.constructor;d?a=c?new p:[]:et(t)?a=Nn(p)?tr(S0(t)):{}:a={}}return(d?zt:Cn)(t,function(b,x,S){return n(a,b,x,S)}),a}function xk(t,n){return t==null?!0:Uo(t,n)}function wk(t,n,a){return t==null?t:u9(t,n,Yo(a))}function $k(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:u9(t,n,Yo(a),c)}function ar(t){return t==null?[]:Lo(t,gt(t))}function Lk(t){return t==null?[]:Lo(t,It(t))}function kk(t,n,a){return a===i&&(a=n,n=i),a!==i&&(a=tn(a),a=a===a?a:0),n!==i&&(n=tn(n),n=n===n?n:0),p1(tn(t),n,a)}function Sk(t,n,a){return n=Zn(n),a===i?(a=n,n=0):a=Zn(a),t=tn(t),Bx(t,n,a)}function Ak(t,n,a){if(a&&typeof a!="boolean"&&St(t,n,a)&&(n=a=i),a===i&&(typeof n=="boolean"?(a=n,n=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&n===i?(t=0,n=1):(t=Zn(t),n===i?(n=t,t=0):n=Zn(n)),t>n){var c=t;t=n,n=c}if(a||t%1||n%1){var d=N2();return Ct(t+d*(n-t+sC("1e-"+((d+"").length-1))),n)}return Zo(t,n)}var Mk=rr(function(t,n,a){return n=n.toLowerCase(),t+(a?vl(n):n)});function vl(t){return pa(Re(t).toLowerCase())}function bl(t){return t=Re(t),t&&t.replace(I_,_C).replace(q_,"")}function Tk(t,n,a){t=Re(t),n=Nt(n);var c=t.length;a=a===i?c:p1(xe(a),0,c);var d=a;return a-=n.length,a>=0&&t.slice(a,d)==n}function Pk(t){return t=Re(t),t&&h_.test(t)?t.replace(V5,CC):t}function Ik(t){return t=Re(t),t&&b_.test(t)?t.replace(lo,"\\$&"):t}var Ok=rr(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),Bk=rr(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),Ek=C9("toLowerCase");function Dk(t,n,a){t=Re(t),n=xe(n);var c=n?G1(t):0;if(!n||c>=n)return t;var d=(n-c)/2;return U0(P0(d),a)+t+U0(T0(d),a)}function Rk(t,n,a){t=Re(t),n=xe(n);var c=n?G1(t):0;return n&&c<n?t+U0(n-c,a):t}function zk(t,n,a){t=Re(t),n=xe(n);var c=n?G1(t):0;return n&&c<n?U0(n-c,a)+t:t}function Fk(t,n,a){return a||n==null?n=0:n&&(n=+n),YC(Re(t).replace(co,""),n||0)}function Nk(t,n,a){return(a?St(t,n,a):n===i)?n=1:n=xe(n),Wo(Re(t),n)}function Zk(){var t=arguments,n=Re(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var Wk=rr(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function Kk(t,n,a){return a&&typeof a!="number"&&St(t,n,a)&&(n=a=i),a=a===i?Ee:a>>>0,a?(t=Re(t),t&&(typeof n=="string"||n!=null&&!fa(n))&&(n=Nt(n),!n&&Q1(t))?r1(fn(t),0,a):t.split(n,a)):[]}var Uk=rr(function(t,n,a){return t+(a?" ":"")+pa(n)});function Hk(t,n,a){return t=Re(t),a=a==null?0:p1(xe(a),0,t.length),n=Nt(n),t.slice(a,a+n.length)==n}function jk(t,n,a){var c=g.templateSettings;a&&St(t,n,a)&&(n=i),t=Re(t),n=da({},n,c,A9);var d=da({},n.imports,c.imports,A9),p=gt(d),b=Lo(d,p);zt(p,function(se){if(G5.test(se))throw new pe(h)});var x,S,F=0,N=n.interpolate||p0,K="__p += '",J=So((n.escape||p0).source+"|"+N.source+"|"+(N===Q5?k_:p0).source+"|"+(n.evaluate||p0).source+"|$","g"),re="//# sourceURL="+(De.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nC+"]")+`
|
|
11
|
-
`;t.replace(J,function(se,Se,Me,Wt,At,Kt){return Me||(Me=Wt),
|
|
10
|
+
`)}function Cw(t){return _e(t)||b1(t)||!!(R2&&t&&t[R2])}function Fn(t,n){var a=typeof t;return n=n??Ie,!!n&&(a=="number"||a!="symbol"&&O_.test(t))&&t>-1&&t%1==0&&t<n}function St(t,n,a){if(!et(a))return!1;var c=typeof n;return(c=="number"?Pt(a)&&Fn(n,a.length):c=="string"&&n in a)?gn(a[n],t):!1}function na(t,n){if(_e(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Zt(t)?!0:b_.test(t)||!v_.test(t)||n!=null&&t in Ze(n)}function xw(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function ra(t){var n=j0(t),a=g[n];if(typeof a!="function"||!(n in Ae.prototype))return!1;if(t===a)return!0;var c=Jo(a);return!!c&&t===c[0]}function ww(t){return!!O2&&O2 in t}var $w=x0?Nn:Ca;function Pr(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||X1;return t===a}function O9(t){return t===t&&!et(t)}function B9(t,n){return function(a){return a==null?!1:a[t]===n&&(n!==i||t in Ze(a))}}function Lw(t){var n=X0(t,function(c){return a.size===_&&a.clear(),c}),a=n.cache;return n}function kw(t,n){var a=t[1],c=n[1],d=a|c,p=d<(w|I|O),b=c==O&&a==k||c==O&&a==z&&t[7].length<=n[8]||c==(O|z)&&n[7].length<=n[8]&&a==k;if(!(p||b))return t;c&w&&(t[2]=n[2],d|=a&w?0:R);var C=n[3];if(C){var S=t[3];t[3]=S?m9(S,C,n[4]):C,t[4]=S?Xn(t[3],v):n[4]}return C=n[5],C&&(S=t[5],t[5]=S?y9(S,C,n[6]):C,t[6]=S?Xn(t[5],v):n[6]),C=n[7],C&&(t[7]=C),c&O&&(t[8]=t[8]==null?n[8]:Ct(t[8],n[8])),t[9]==null&&(t[9]=n[9]),t[0]=n[0],t[1]=d,t}function Sw(t){var n=[];if(t!=null)for(var a in Ze(t))n.push(a);return n}function Aw(t){return $0.call(t)}function E9(t,n,a){return n=dt(n===i?t.length-1:n,0),function(){for(var c=arguments,d=-1,p=dt(c.length-n,0),b=P(p);++d<p;)b[d]=c[n+d];d=-1;for(var C=P(n+1);++d<n;)C[d]=c[d];return C[n]=a(b),Rt(t,this,C)}}function D9(t,n){return n.length<2?t:m1(t,Jt(n,0,-1))}function Mw(t,n){for(var a=t.length,c=Ct(n.length,a),d=Tt(t);c--;){var p=n[c];t[c]=Fn(p,a)?d[p]:i}return t}function ia(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}var R9=F9(a9),Ir=UC||function(t,n){return mt.setTimeout(t,n)},oa=F9(Xx);function z9(t,n,a){var c=n+"";return oa(t,_w(c,Tw(yw(c),a)))}function F9(t){var n=0,a=0;return function(){var c=VC(),d=E-(c-a);if(a=c,d>0){if(++n>=W)return arguments[0]}else n=0;return t.apply(i,arguments)}}function V0(t,n){var a=-1,c=t.length,d=c-1;for(n=n===i?c:n;++a<n;){var p=Zo(a,d),b=t[p];t[p]=t[a],t[a]=b}return t.length=n,t}var N9=Lw(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(__,function(a,c,d,p){n.push(d?p.replace(S_,"$1"):c||a)}),n});function hn(t){if(typeof t=="string"||Zt(t))return t;var n=t+"";return n=="0"&&1/t==-he?"-0":n}function v1(t){if(t!=null){try{return w0.call(t)}catch{}try{return t+""}catch{}}return""}function Tw(t,n){return zt(ne,function(a){var c="_."+a[0];n&a[1]&&!v0(t,c)&&t.push(c)}),t.sort()}function Z9(t){if(t instanceof Ae)return t.clone();var n=new qt(t.__wrapped__,t.__chain__);return n.__actions__=Tt(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function Pw(t,n,a){(a?St(t,n,a):n===i)?n=1:n=dt(xe(n),0);var c=t==null?0:t.length;if(!c||n<1)return[];for(var d=0,p=0,b=P(T0(c/n));d<c;)b[p++]=Jt(t,d,d+=n);return b}function Iw(t){for(var n=-1,a=t==null?0:t.length,c=0,d=[];++n<a;){var p=t[n];p&&(d[c++]=p)}return d}function Ow(){var t=arguments.length;if(!t)return[];for(var n=P(t-1),a=arguments[0],c=t;c--;)n[c-1]=arguments[c];return qn(_e(a)?Tt(a):[a],yt(n,1))}var Bw=Le(function(t,n){return it(t)?kr(t,yt(n,1,it,!0)):[]}),Ew=Le(function(t,n){var a=en(n);return it(a)&&(a=i),it(t)?kr(t,yt(n,1,it,!0),ce(a,2)):[]}),Dw=Le(function(t,n){var a=en(n);return it(a)&&(a=i),it(t)?kr(t,yt(n,1,it,!0),i,a):[]});function Rw(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:xe(n),Jt(t,n<0?0:n,c)):[]}function zw(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:xe(n),n=c-n,Jt(t,0,n<0?0:n)):[]}function Fw(t,n){return t&&t.length?N0(t,ce(n,3),!0,!0):[]}function Nw(t,n){return t&&t.length?N0(t,ce(n,3),!0):[]}function Zw(t,n,a,c){var d=t==null?0:t.length;return d?(a&&typeof a!="number"&&St(t,n,a)&&(a=0,c=d),Ox(t,n,a,c)):[]}function W9(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:xe(a);return d<0&&(d=dt(c+d,0)),b0(t,ce(n,3),d)}function K9(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c-1;return a!==i&&(d=xe(a),d=a<0?dt(c+d,0):Ct(d,c-1)),b0(t,ce(n,3),d,!0)}function U9(t){var n=t==null?0:t.length;return n?yt(t,1):[]}function Ww(t){var n=t==null?0:t.length;return n?yt(t,he):[]}function Kw(t,n){var a=t==null?0:t.length;return a?(n=n===i?1:xe(n),yt(t,n)):[]}function Uw(t){for(var n=-1,a=t==null?0:t.length,c={};++n<a;){var d=t[n];_n(c,d[0],d[1])}return c}function H9(t){return t&&t.length?t[0]:i}function Hw(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=a==null?0:xe(a);return d<0&&(d=dt(c+d,0)),V1(t,n,d)}function jw(t){var n=t==null?0:t.length;return n?Jt(t,0,-1):[]}var Yw=Le(function(t){var n=Xe(t,jo);return n.length&&n[0]===t[0]?Do(n):[]}),Vw=Le(function(t){var n=en(t),a=Xe(t,jo);return n===en(a)?n=i:a.pop(),a.length&&a[0]===t[0]?Do(a,ce(n,2)):[]}),Qw=Le(function(t){var n=en(t),a=Xe(t,jo);return n=typeof n=="function"?n:i,n&&a.pop(),a.length&&a[0]===t[0]?Do(a,i,n):[]});function Gw(t,n){return t==null?"":jC.call(t,n)}function en(t){var n=t==null?0:t.length;return n?t[n-1]:i}function qw(t,n,a){var c=t==null?0:t.length;if(!c)return-1;var d=c;return a!==i&&(d=xe(a),d=d<0?dt(c+d,0):Ct(d,c-1)),n===n?TC(t,n,d):b0(t,L2,d,!0)}function Xw(t,n){return t&&t.length?n9(t,xe(n)):i}var Jw=Le(j9);function j9(t,n){return t&&t.length&&n&&n.length?No(t,n):t}function e$(t,n,a){return t&&t.length&&n&&n.length?No(t,n,ce(a,2)):t}function t$(t,n,a){return t&&t.length&&n&&n.length?No(t,n,i,a):t}var n$=zn(function(t,n){var a=t==null?0:t.length,c=Io(t,n);return o9(t,Xe(n,function(d){return Fn(d,a)?+d:d}).sort(p9)),c});function r$(t,n){var a=[];if(!(t&&t.length))return a;var c=-1,d=[],p=t.length;for(n=ce(n,3);++c<p;){var b=t[c];n(b,c,t)&&(a.push(b),d.push(c))}return o9(t,d),a}function aa(t){return t==null?t:GC.call(t)}function i$(t,n,a){var c=t==null?0:t.length;return c?(a&&typeof a!="number"&&St(t,n,a)?(n=0,a=c):(n=n==null?0:xe(n),a=a===i?c:xe(a)),Jt(t,n,a)):[]}function o$(t,n){return F0(t,n)}function a$(t,n,a){return Ko(t,n,ce(a,2))}function s$(t,n){var a=t==null?0:t.length;if(a){var c=F0(t,n);if(c<a&&gn(t[c],n))return c}return-1}function l$(t,n){return F0(t,n,!0)}function c$(t,n,a){return Ko(t,n,ce(a,2),!0)}function u$(t,n){var a=t==null?0:t.length;if(a){var c=F0(t,n,!0)-1;if(gn(t[c],n))return c}return-1}function f$(t){return t&&t.length?s9(t):[]}function d$(t,n){return t&&t.length?s9(t,ce(n,2)):[]}function h$(t){var n=t==null?0:t.length;return n?Jt(t,1,n):[]}function g$(t,n,a){return t&&t.length?(n=a||n===i?1:xe(n),Jt(t,0,n<0?0:n)):[]}function p$(t,n,a){var c=t==null?0:t.length;return c?(n=a||n===i?1:xe(n),n=c-n,Jt(t,n<0?0:n,c)):[]}function m$(t,n){return t&&t.length?N0(t,ce(n,3),!1,!0):[]}function y$(t,n){return t&&t.length?N0(t,ce(n,3)):[]}var v$=Le(function(t){return t1(yt(t,1,it,!0))}),b$=Le(function(t){var n=en(t);return it(n)&&(n=i),t1(yt(t,1,it,!0),ce(n,2))}),_$=Le(function(t){var n=en(t);return n=typeof n=="function"?n:i,t1(yt(t,1,it,!0),i,n)});function C$(t){return t&&t.length?t1(t):[]}function x$(t,n){return t&&t.length?t1(t,ce(n,2)):[]}function w$(t,n){return n=typeof n=="function"?n:i,t&&t.length?t1(t,i,n):[]}function sa(t){if(!(t&&t.length))return[];var n=0;return t=Gn(t,function(a){if(it(a))return n=dt(a.length,n),!0}),$o(n,function(a){return Xe(t,Co(a))})}function Y9(t,n){if(!(t&&t.length))return[];var a=sa(t);return n==null?a:Xe(a,function(c){return Rt(n,i,c)})}var $$=Le(function(t,n){return it(t)?kr(t,n):[]}),L$=Le(function(t){return Ho(Gn(t,it))}),k$=Le(function(t){var n=en(t);return it(n)&&(n=i),Ho(Gn(t,it),ce(n,2))}),S$=Le(function(t){var n=en(t);return n=typeof n=="function"?n:i,Ho(Gn(t,it),i,n)}),A$=Le(sa);function M$(t,n){return f9(t||[],n||[],Lr)}function T$(t,n){return f9(t||[],n||[],Mr)}var P$=Le(function(t){var n=t.length,a=n>1?t[n-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Y9(t,a)});function V9(t){var n=g(t);return n.__chain__=!0,n}function I$(t,n){return n(t),t}function Q0(t,n){return n(t)}var O$=zn(function(t){var n=t.length,a=n?t[0]:0,c=this.__wrapped__,d=function(p){return Io(p,t)};return n>1||this.__actions__.length||!(c instanceof Ae)||!Fn(a)?this.thru(d):(c=c.slice(a,+a+(n?1:0)),c.__actions__.push({func:Q0,args:[d],thisArg:i}),new qt(c,this.__chain__).thru(function(p){return n&&!p.length&&p.push(i),p}))});function B$(){return V9(this)}function E$(){return new qt(this.value(),this.__chain__)}function D$(){this.__values__===i&&(this.__values__=ll(this.value()));var t=this.__index__>=this.__values__.length,n=t?i:this.__values__[this.__index__++];return{done:t,value:n}}function R$(){return this}function z$(t){for(var n,a=this;a instanceof B0;){var c=Z9(a);c.__index__=0,c.__values__=i,n?d.__wrapped__=c:n=c;var d=c;a=a.__wrapped__}return d.__wrapped__=t,n}function F$(){var t=this.__wrapped__;if(t instanceof Ae){var n=t;return this.__actions__.length&&(n=new Ae(this)),n=n.reverse(),n.__actions__.push({func:Q0,args:[aa],thisArg:i}),new qt(n,this.__chain__)}return this.thru(aa)}function N$(){return u9(this.__wrapped__,this.__actions__)}var Z$=Z0(function(t,n,a){De.call(t,a)?++t[a]:_n(t,a,1)});function W$(t,n,a){var c=_e(t)?w2:Ix;return a&&St(t,n,a)&&(n=i),c(t,ce(n,3))}function K$(t,n){var a=_e(t)?Gn:Y2;return a(t,ce(n,3))}var U$=C9(W9),H$=C9(K9);function j$(t,n){return yt(G0(t,n),1)}function Y$(t,n){return yt(G0(t,n),he)}function V$(t,n,a){return a=a===i?1:xe(a),yt(G0(t,n),a)}function Q9(t,n){var a=_e(t)?zt:e1;return a(t,ce(n,3))}function G9(t,n){var a=_e(t)?hC:j2;return a(t,ce(n,3))}var Q$=Z0(function(t,n,a){De.call(t,a)?t[a].push(n):_n(t,a,[n])});function G$(t,n,a,c){t=Pt(t)?t:ar(t),a=a&&!c?xe(a):0;var d=t.length;return a<0&&(a=dt(d+a,0)),ti(t)?a<=d&&t.indexOf(n,a)>-1:!!d&&V1(t,n,a)>-1}var q$=Le(function(t,n,a){var c=-1,d=typeof n=="function",p=Pt(t)?P(t.length):[];return e1(t,function(b){p[++c]=d?Rt(n,b,a):Sr(b,n,a)}),p}),X$=Z0(function(t,n,a){_n(t,a,n)});function G0(t,n){var a=_e(t)?Xe:J2;return a(t,ce(n,3))}function J$(t,n,a,c){return t==null?[]:(_e(n)||(n=n==null?[]:[n]),a=c?i:a,_e(a)||(a=a==null?[]:[a]),r9(t,n,a))}var eL=Z0(function(t,n,a){t[a?0:1].push(n)},function(){return[[],[]]});function tL(t,n,a){var c=_e(t)?bo:S2,d=arguments.length<3;return c(t,ce(n,4),a,d,e1)}function nL(t,n,a){var c=_e(t)?gC:S2,d=arguments.length<3;return c(t,ce(n,4),a,d,j2)}function rL(t,n){var a=_e(t)?Gn:Y2;return a(t,J0(ce(n,3)))}function iL(t){var n=_e(t)?W2:Gx;return n(t)}function oL(t,n,a){(a?St(t,n,a):n===i)?n=1:n=xe(n);var c=_e(t)?Sx:qx;return c(t,n)}function aL(t){var n=_e(t)?Ax:Jx;return n(t)}function sL(t){if(t==null)return 0;if(Pt(t))return ti(t)?G1(t):t.length;var n=xt(t);return n==Ve||n==Je?t.size:zo(t).length}function lL(t,n,a){var c=_e(t)?_o:ew;return a&&St(t,n,a)&&(n=i),c(t,ce(n,3))}var cL=Le(function(t,n){if(t==null)return[];var a=n.length;return a>1&&St(t,n[0],n[1])?n=[]:a>2&&St(n[0],n[1],n[2])&&(n=[n[0]]),r9(t,yt(n,1),[])}),q0=KC||function(){return mt.Date.now()};function uL(t,n){if(typeof n!="function")throw new Gt(u);return t=xe(t),function(){if(--t<1)return n.apply(this,arguments)}}function q9(t,n,a){return n=a?i:n,n=t&&n==null?t.length:n,Rn(t,O,i,i,i,i,n)}function X9(t,n){var a;if(typeof n!="function")throw new Gt(u);return t=xe(t),function(){return--t>0&&(a=n.apply(this,arguments)),t<=1&&(n=i),a}}var la=Le(function(t,n,a){var c=w;if(a.length){var d=Xn(a,ir(la));c|=G}return Rn(t,c,n,a,d)}),J9=Le(function(t,n,a){var c=w|I;if(a.length){var d=Xn(a,ir(J9));c|=G}return Rn(n,c,t,a,d)});function el(t,n,a){n=a?i:n;var c=Rn(t,k,i,i,i,i,i,n);return c.placeholder=el.placeholder,c}function tl(t,n,a){n=a?i:n;var c=Rn(t,Z,i,i,i,i,i,n);return c.placeholder=tl.placeholder,c}function nl(t,n,a){var c,d,p,b,C,S,F=0,N=!1,U=!1,J=!0;if(typeof t!="function")throw new Gt(u);n=tn(n)||0,et(a)&&(N=!!a.leading,U="maxWait"in a,p=U?dt(tn(a.maxWait)||0,n):p,J="trailing"in a?!!a.trailing:J);function re(ot){var pn=c,Wn=d;return c=d=i,F=ot,b=t.apply(Wn,pn),b}function fe(ot){return F=ot,C=Ir(Se,n),N?re(ot):b}function we(ot){var pn=ot-S,Wn=ot-F,xl=n-pn;return U?Ct(xl,p-Wn):xl}function se(ot){var pn=ot-S,Wn=ot-F;return S===i||pn>=n||pn<0||U&&Wn>=p}function Se(){var ot=q0();if(se(ot))return Me(ot);C=Ir(Se,we(ot))}function Me(ot){return C=i,J&&c?re(ot):(c=d=i,b)}function Wt(){C!==i&&d9(C),F=0,c=S=d=C=i}function At(){return C===i?b:Me(q0())}function Kt(){var ot=q0(),pn=se(ot);if(c=arguments,d=this,S=ot,pn){if(C===i)return fe(S);if(U)return d9(C),C=Ir(Se,n),re(S)}return C===i&&(C=Ir(Se,n)),b}return Kt.cancel=Wt,Kt.flush=At,Kt}var fL=Le(function(t,n){return H2(t,1,n)}),dL=Le(function(t,n,a){return H2(t,tn(n)||0,a)});function hL(t){return Rn(t,Q)}function X0(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new Gt(u);var a=function(){var c=arguments,d=n?n.apply(this,c):c[0],p=a.cache;if(p.has(d))return p.get(d);var b=t.apply(this,c);return a.cache=p.set(d,b)||p,b};return a.cache=new(X0.Cache||Dn),a}X0.Cache=Dn;function J0(t){if(typeof t!="function")throw new Gt(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function gL(t){return X9(2,t)}var pL=tw(function(t,n){n=n.length==1&&_e(n[0])?Xe(n[0],Ft(ce())):Xe(yt(n,1),Ft(ce()));var a=n.length;return Le(function(c){for(var d=-1,p=Ct(c.length,a);++d<p;)c[d]=n[d].call(this,c[d]);return Rt(t,this,c)})}),ca=Le(function(t,n){var a=Xn(n,ir(ca));return Rn(t,G,i,n,a)}),rl=Le(function(t,n){var a=Xn(n,ir(rl));return Rn(t,V,i,n,a)}),mL=zn(function(t,n){return Rn(t,z,i,i,i,n)});function yL(t,n){if(typeof t!="function")throw new Gt(u);return n=n===i?n:xe(n),Le(t,n)}function vL(t,n){if(typeof t!="function")throw new Gt(u);return n=n==null?0:dt(xe(n),0),Le(function(a){var c=a[n],d=r1(a,0,n);return c&&qn(d,c),Rt(t,this,d)})}function bL(t,n,a){var c=!0,d=!0;if(typeof t!="function")throw new Gt(u);return et(a)&&(c="leading"in a?!!a.leading:c,d="trailing"in a?!!a.trailing:d),nl(t,n,{leading:c,maxWait:n,trailing:d})}function _L(t){return q9(t,1)}function CL(t,n){return ca(Yo(n),t)}function xL(){if(!arguments.length)return[];var t=arguments[0];return _e(t)?t:[t]}function wL(t){return Xt(t,x)}function $L(t,n){return n=typeof n=="function"?n:i,Xt(t,x,n)}function LL(t){return Xt(t,$|x)}function kL(t,n){return n=typeof n=="function"?n:i,Xt(t,$|x,n)}function SL(t,n){return n==null||U2(t,n,gt(n))}function gn(t,n){return t===n||t!==t&&n!==n}var AL=H0(Eo),ML=H0(function(t,n){return t>=n}),b1=G2(function(){return arguments}())?G2:function(t){return nt(t)&&De.call(t,"callee")&&!D2.call(t,"callee")},_e=P.isArray,TL=y2?Ft(y2):zx;function Pt(t){return t!=null&&ei(t.length)&&!Nn(t)}function it(t){return nt(t)&&Pt(t)}function PL(t){return t===!0||t===!1||nt(t)&&kt(t)==ve}var i1=HC||Ca,IL=v2?Ft(v2):Fx;function OL(t){return nt(t)&&t.nodeType===1&&!Or(t)}function BL(t){if(t==null)return!0;if(Pt(t)&&(_e(t)||typeof t=="string"||typeof t.splice=="function"||i1(t)||or(t)||b1(t)))return!t.length;var n=xt(t);if(n==Ve||n==Je)return!t.size;if(Pr(t))return!zo(t).length;for(var a in t)if(De.call(t,a))return!1;return!0}function EL(t,n){return Ar(t,n)}function DL(t,n,a){a=typeof a=="function"?a:i;var c=a?a(t,n):i;return c===i?Ar(t,n,i,a):!!c}function ua(t){if(!nt(t))return!1;var n=kt(t);return n==un||n==cn||typeof t.message=="string"&&typeof t.name=="string"&&!Or(t)}function RL(t){return typeof t=="number"&&z2(t)}function Nn(t){if(!et(t))return!1;var n=kt(t);return n==Oe||n==bn||n==Pe||n==Dt}function il(t){return typeof t=="number"&&t==xe(t)}function ei(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ie}function et(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function nt(t){return t!=null&&typeof t=="object"}var ol=b2?Ft(b2):Zx;function zL(t,n){return t===n||Ro(t,n,ea(n))}function FL(t,n,a){return a=typeof a=="function"?a:i,Ro(t,n,ea(n),a)}function NL(t){return al(t)&&t!=+t}function ZL(t){if($w(t))throw new pe(l);return q2(t)}function WL(t){return t===null}function KL(t){return t==null}function al(t){return typeof t=="number"||nt(t)&&kt(t)==Fe}function Or(t){if(!nt(t)||kt(t)!=tt)return!1;var n=S0(t);if(n===null)return!0;var a=De.call(n,"constructor")&&n.constructor;return typeof a=="function"&&a instanceof a&&w0.call(a)==FC}var fa=_2?Ft(_2):Wx;function UL(t){return il(t)&&t>=-Ie&&t<=Ie}var sl=C2?Ft(C2):Kx;function ti(t){return typeof t=="string"||!_e(t)&&nt(t)&&kt(t)==Bn}function Zt(t){return typeof t=="symbol"||nt(t)&&kt(t)==Z1}var or=x2?Ft(x2):Ux;function HL(t){return t===i}function jL(t){return nt(t)&&xt(t)==Vn}function YL(t){return nt(t)&&kt(t)==mr}var VL=H0(Fo),QL=H0(function(t,n){return t<=n});function ll(t){if(!t)return[];if(Pt(t))return ti(t)?fn(t):Tt(t);if(_r&&t[_r])return SC(t[_r]());var n=xt(t),a=n==Ve?ko:n==Je?_0:ar;return a(t)}function Zn(t){if(!t)return t===0?t:0;if(t=tn(t),t===he||t===-he){var n=t<0?-1:1;return n*$e}return t===t?t:0}function xe(t){var n=Zn(t),a=n%1;return n===n?a?n-a:n:0}function cl(t){return t?p1(xe(t),0,Ee):0}function tn(t){if(typeof t=="number")return t;if(Zt(t))return Ue;if(et(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=et(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=A2(t);var a=T_.test(t);return a||I_.test(t)?uC(t.slice(2),a?2:8):M_.test(t)?Ue:+t}function ul(t){return xn(t,It(t))}function GL(t){return t?p1(xe(t),-Ie,Ie):t===0?t:0}function Re(t){return t==null?"":Nt(t)}var qL=nr(function(t,n){if(Pr(n)||Pt(n)){xn(n,gt(n),t);return}for(var a in n)De.call(n,a)&&Lr(t,a,n[a])}),fl=nr(function(t,n){xn(n,It(n),t)}),dl=nr(function(t,n,a,c){xn(n,It(n),t,c)}),da=nr(function(t,n,a,c){xn(n,gt(n),t,c)}),XL=zn(Io);function JL(t,n){var a=tr(t);return n==null?a:K2(a,n)}var ek=Le(function(t,n){t=Ze(t);var a=-1,c=n.length,d=c>2?n[2]:i;for(d&&St(n[0],n[1],d)&&(c=1);++a<c;)for(var p=n[a],b=It(p),C=-1,S=b.length;++C<S;){var F=b[C],N=t[F];(N===i||gn(N,X1[F])&&!De.call(t,F))&&(t[F]=p[F])}return t}),tk=Le(function(t){return t.push(i,A9),Rt(hl,i,t)});function nk(t,n){return $2(t,ce(n,3),Cn)}function rk(t,n){return $2(t,ce(n,3),Bo)}function ik(t,n){return t==null?t:Oo(t,ce(n,3),It)}function ok(t,n){return t==null?t:V2(t,ce(n,3),It)}function ak(t,n){return t&&Cn(t,ce(n,3))}function sk(t,n){return t&&Bo(t,ce(n,3))}function lk(t){return t==null?[]:R0(t,gt(t))}function ck(t){return t==null?[]:R0(t,It(t))}function ha(t,n,a){var c=t==null?i:m1(t,n);return c===i?a:c}function uk(t,n){return t!=null&&P9(t,n,Bx)}function ga(t,n){return t!=null&&P9(t,n,Ex)}var fk=w9(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=$0.call(n)),t[n]=a},ma(Ot)),dk=w9(function(t,n,a){n!=null&&typeof n.toString!="function"&&(n=$0.call(n)),De.call(t,n)?t[n].push(a):t[n]=[a]},ce),hk=Le(Sr);function gt(t){return Pt(t)?Z2(t):zo(t)}function It(t){return Pt(t)?Z2(t,!0):Hx(t)}function gk(t,n){var a={};return n=ce(n,3),Cn(t,function(c,d,p){_n(a,n(c,d,p),c)}),a}function pk(t,n){var a={};return n=ce(n,3),Cn(t,function(c,d,p){_n(a,d,n(c,d,p))}),a}var mk=nr(function(t,n,a){z0(t,n,a)}),hl=nr(function(t,n,a,c){z0(t,n,a,c)}),yk=zn(function(t,n){var a={};if(t==null)return a;var c=!1;n=Xe(n,function(p){return p=n1(p,t),c||(c=p.length>1),p}),xn(t,Xo(t),a),c&&(a=Xt(a,$|M|x,dw));for(var d=n.length;d--;)Uo(a,n[d]);return a});function vk(t,n){return gl(t,J0(ce(n)))}var bk=zn(function(t,n){return t==null?{}:Yx(t,n)});function gl(t,n){if(t==null)return{};var a=Xe(Xo(t),function(c){return[c]});return n=ce(n),i9(t,a,function(c,d){return n(c,d[0])})}function _k(t,n,a){n=n1(n,t);var c=-1,d=n.length;for(d||(d=1,t=i);++c<d;){var p=t==null?i:t[hn(n[c])];p===i&&(c=d,p=a),t=Nn(p)?p.call(t):p}return t}function Ck(t,n,a){return t==null?t:Mr(t,n,a)}function xk(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:Mr(t,n,a,c)}var pl=k9(gt),ml=k9(It);function wk(t,n,a){var c=_e(t),d=c||i1(t)||or(t);if(n=ce(n,4),a==null){var p=t&&t.constructor;d?a=c?new p:[]:et(t)?a=Nn(p)?tr(S0(t)):{}:a={}}return(d?zt:Cn)(t,function(b,C,S){return n(a,b,C,S)}),a}function $k(t,n){return t==null?!0:Uo(t,n)}function Lk(t,n,a){return t==null?t:c9(t,n,Yo(a))}function kk(t,n,a,c){return c=typeof c=="function"?c:i,t==null?t:c9(t,n,Yo(a),c)}function ar(t){return t==null?[]:Lo(t,gt(t))}function Sk(t){return t==null?[]:Lo(t,It(t))}function Ak(t,n,a){return a===i&&(a=n,n=i),a!==i&&(a=tn(a),a=a===a?a:0),n!==i&&(n=tn(n),n=n===n?n:0),p1(tn(t),n,a)}function Mk(t,n,a){return n=Zn(n),a===i?(a=n,n=0):a=Zn(a),t=tn(t),Dx(t,n,a)}function Tk(t,n,a){if(a&&typeof a!="boolean"&&St(t,n,a)&&(n=a=i),a===i&&(typeof n=="boolean"?(a=n,n=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&n===i?(t=0,n=1):(t=Zn(t),n===i?(n=t,t=0):n=Zn(n)),t>n){var c=t;t=n,n=c}if(a||t%1||n%1){var d=F2();return Ct(t+d*(n-t+cC("1e-"+((d+"").length-1))),n)}return Zo(t,n)}var Pk=rr(function(t,n,a){return n=n.toLowerCase(),t+(a?yl(n):n)});function yl(t){return pa(Re(t).toLowerCase())}function vl(t){return t=Re(t),t&&t.replace(B_,xC).replace(J_,"")}function Ik(t,n,a){t=Re(t),n=Nt(n);var c=t.length;a=a===i?c:p1(xe(a),0,c);var d=a;return a-=n.length,a>=0&&t.slice(a,d)==n}function Ok(t){return t=Re(t),t&&p_.test(t)?t.replace(Y5,wC):t}function Bk(t){return t=Re(t),t&&C_.test(t)?t.replace(lo,"\\$&"):t}var Ek=rr(function(t,n,a){return t+(a?"-":"")+n.toLowerCase()}),Dk=rr(function(t,n,a){return t+(a?" ":"")+n.toLowerCase()}),Rk=_9("toLowerCase");function zk(t,n,a){t=Re(t),n=xe(n);var c=n?G1(t):0;if(!n||c>=n)return t;var d=(n-c)/2;return U0(P0(d),a)+t+U0(T0(d),a)}function Fk(t,n,a){t=Re(t),n=xe(n);var c=n?G1(t):0;return n&&c<n?t+U0(n-c,a):t}function Nk(t,n,a){t=Re(t),n=xe(n);var c=n?G1(t):0;return n&&c<n?U0(n-c,a)+t:t}function Zk(t,n,a){return a||n==null?n=0:n&&(n=+n),QC(Re(t).replace(co,""),n||0)}function Wk(t,n,a){return(a?St(t,n,a):n===i)?n=1:n=xe(n),Wo(Re(t),n)}function Kk(){var t=arguments,n=Re(t[0]);return t.length<3?n:n.replace(t[1],t[2])}var Uk=rr(function(t,n,a){return t+(a?"_":"")+n.toLowerCase()});function Hk(t,n,a){return a&&typeof a!="number"&&St(t,n,a)&&(n=a=i),a=a===i?Ee:a>>>0,a?(t=Re(t),t&&(typeof n=="string"||n!=null&&!fa(n))&&(n=Nt(n),!n&&Q1(t))?r1(fn(t),0,a):t.split(n,a)):[]}var jk=rr(function(t,n,a){return t+(a?" ":"")+pa(n)});function Yk(t,n,a){return t=Re(t),a=a==null?0:p1(xe(a),0,t.length),n=Nt(n),t.slice(a,a+n.length)==n}function Vk(t,n,a){var c=g.templateSettings;a&&St(t,n,a)&&(n=i),t=Re(t),n=da({},n,c,S9);var d=da({},n.imports,c.imports,S9),p=gt(d),b=Lo(d,p);zt(p,function(se){if(Q5.test(se))throw new pe(h)});var C,S,F=0,N=n.interpolate||p0,U="__p += '",J=So((n.escape||p0).source+"|"+N.source+"|"+(N===V5?A_:p0).source+"|"+(n.evaluate||p0).source+"|$","g"),re="//# sourceURL="+(De.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iC+"]")+`
|
|
11
|
+
`;t.replace(J,function(se,Se,Me,Wt,At,Kt){return Me||(Me=Wt),U+=t.slice(F,Kt).replace(E_,$C),Se&&(C=!0,U+=`' +
|
|
12
12
|
__e(`+Se+`) +
|
|
13
|
-
'`),At&&(S=!0,
|
|
13
|
+
'`),At&&(S=!0,U+=`';
|
|
14
14
|
`+At+`;
|
|
15
|
-
__p += '`),Me&&(
|
|
15
|
+
__p += '`),Me&&(U+=`' +
|
|
16
16
|
((__t = (`+Me+`)) == null ? '' : __t) +
|
|
17
|
-
'`),F=Kt+se.length,se}),
|
|
18
|
-
`;var
|
|
19
|
-
`+
|
|
17
|
+
'`),F=Kt+se.length,se}),U+=`';
|
|
18
|
+
`;var fe=De.call(n,"variable")&&n.variable;if(!fe)U=`with (obj) {
|
|
19
|
+
`+U+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
22
|
-
`+(
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
21
|
+
`;else if(Q5.test(fe))throw new pe(f);U=(S?U.replace(f_,""):U).replace(d_,"$1").replace(h_,"$1;"),U="function("+(fe||"obj")+`) {
|
|
22
|
+
`+(fe?"":`obj || (obj = {});
|
|
23
|
+
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(S?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
|
-
`)+
|
|
27
|
-
}`;var we=Cl(function(){return Be(p,re+"return "+K).apply(i,b)});if(we.source=K,ua(we))throw we;return we}function Yk(t){return Re(t).toLowerCase()}function Vk(t){return Re(t).toUpperCase()}function Qk(t,n,a){if(t=Re(t),t&&(a||n===i))return M2(t);if(!t||!(n=Nt(n)))return t;var c=fn(t),d=fn(n),p=T2(c,d),b=P2(c,d)+1;return r1(c,p,b).join("")}function Gk(t,n,a){if(t=Re(t),t&&(a||n===i))return t.slice(0,O2(t)+1);if(!t||!(n=Nt(n)))return t;var c=fn(t),d=P2(c,fn(n))+1;return r1(c,0,d).join("")}function qk(t,n,a){if(t=Re(t),t&&(a||n===i))return t.replace(co,"");if(!t||!(n=Nt(n)))return t;var c=fn(t),d=T2(c,fn(n));return r1(c,d).join("")}function Xk(t,n){var a=q,c=U;if(et(n)){var d="separator"in n?n.separator:d;a="length"in n?xe(n.length):a,c="omission"in n?Nt(n.omission):c}t=Re(t);var p=t.length;if(Q1(t)){var b=fn(t);p=b.length}if(a>=p)return t;var x=a-G1(c);if(x<1)return c;var S=b?r1(b,0,x).join(""):t.slice(0,x);if(d===i)return S+c;if(b&&(x+=S.length-x),fa(d)){if(t.slice(x).search(d)){var F,N=S;for(d.global||(d=So(d.source,Re(q5.exec(d))+"g")),d.lastIndex=0;F=d.exec(N);)var K=F.index;S=S.slice(0,K===i?x:K)}}else if(t.indexOf(Nt(d),x)!=x){var J=S.lastIndexOf(d);J>-1&&(S=S.slice(0,J))}return S+c}function Jk(t){return t=Re(t),t&&d_.test(t)?t.replace(Y5,MC):t}var eS=rr(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),pa=C9("toUpperCase");function _l(t,n,a){return t=Re(t),n=a?i:n,n===i?$C(t)?IC(t):pC(t):t.match(n)||[]}var Cl=Le(function(t,n){try{return Rt(t,i,n)}catch(a){return ua(a)?a:new pe(a)}}),tS=zn(function(t,n){return zt(n,function(a){a=hn(a),_n(t,a,la(t[a],t))}),t});function nS(t){var n=t==null?0:t.length,a=le();return t=n?Xe(t,function(c){if(typeof c[1]!="function")throw new Gt(u);return[a(c[0]),c[1]]}):[],Le(function(c){for(var d=-1;++d<n;){var p=t[d];if(Rt(p[0],this,c))return Rt(p[1],this,c)}})}function rS(t){return Mx(Xt(t,L))}function ma(t){return function(){return t}}function iS(t,n){return t==null||t!==t?n:t}var oS=w9(),aS=w9(!0);function Ot(t){return t}function ya(t){return J2(typeof t=="function"?t:Xt(t,L))}function sS(t){return t9(Xt(t,L))}function lS(t,n){return n9(t,Xt(n,L))}var cS=Le(function(t,n){return function(a){return Ar(a,t,n)}}),uS=Le(function(t,n){return function(a){return Ar(t,a,n)}});function va(t,n,a){var c=gt(n),d=R0(n,c);a==null&&!(et(n)&&(d.length||!c.length))&&(a=n,n=t,t=this,d=R0(n,gt(n)));var p=!(et(a)&&"chain"in a)||!!a.chain,b=Nn(t);return zt(d,function(x){var S=n[x];t[x]=S,b&&(t.prototype[x]=function(){var F=this.__chain__;if(p||F){var N=t(this.__wrapped__),K=N.__actions__=Tt(this.__actions__);return K.push({func:S,args:arguments,thisArg:t}),N.__chain__=F,N}return S.apply(t,qn([this.value()],arguments))})}),t}function fS(){return mt._===this&&(mt._=zC),this}function ba(){}function dS(t){return t=xe(t),Le(function(n){return r9(n,t)})}var hS=Qo(Xe),gS=Qo($2),pS=Qo(_o);function xl(t){return na(t)?Co(hn(t)):jx(t)}function mS(t){return function(n){return t==null?i:m1(t,n)}}var yS=L9(),vS=L9(!0);function _a(){return[]}function Ca(){return!1}function bS(){return{}}function _S(){return""}function CS(){return!0}function xS(t,n){if(t=xe(t),t<1||t>Ie)return[];var a=Ee,c=Ct(t,Ee);n=le(n),t-=Ee;for(var d=$o(c,n);++a<t;)n(a);return d}function wS(t){return _e(t)?Xe(t,hn):Zt(t)?[t]:Tt(Z9(Re(t)))}function $S(t){var n=++DC;return Re(t)+n}var LS=K0(function(t,n){return t+n},0),kS=Go("ceil"),SS=K0(function(t,n){return t/n},1),AS=Go("floor");function MS(t){return t&&t.length?D0(t,Ot,Eo):i}function TS(t,n){return t&&t.length?D0(t,le(n,2),Eo):i}function PS(t){return S2(t,Ot)}function IS(t,n){return S2(t,le(n,2))}function OS(t){return t&&t.length?D0(t,Ot,Fo):i}function BS(t,n){return t&&t.length?D0(t,le(n,2),Fo):i}var ES=K0(function(t,n){return t*n},1),DS=Go("round"),RS=K0(function(t,n){return t-n},0);function zS(t){return t&&t.length?wo(t,Ot):0}function FS(t,n){return t&&t.length?wo(t,le(n,2)):0}return g.after=lL,g.ary=X9,g.assign=QL,g.assignIn=dl,g.assignInWith=hl,g.assignWith=da,g.at=GL,g.before=J9,g.bind=la,g.bindAll=tS,g.bindKey=el,g.castArray=_L,g.chain=Q9,g.chunk=Mw,g.compact=Tw,g.concat=Pw,g.cond=nS,g.conforms=rS,g.constant=ma,g.countBy=F$,g.create=qL,g.curry=tl,g.curryRight=nl,g.debounce=rl,g.defaults=XL,g.defaultsDeep=JL,g.defer=cL,g.delay=uL,g.difference=Iw,g.differenceBy=Ow,g.differenceWith=Bw,g.drop=Ew,g.dropRight=Dw,g.dropRightWhile=Rw,g.dropWhile=zw,g.fill=Fw,g.filter=Z$,g.flatMap=U$,g.flatMapDeep=H$,g.flatMapDepth=j$,g.flatten=H9,g.flattenDeep=Nw,g.flattenDepth=Zw,g.flip=fL,g.flow=oS,g.flowRight=aS,g.fromPairs=Ww,g.functions=ak,g.functionsIn=sk,g.groupBy=Y$,g.initial=Uw,g.intersection=Hw,g.intersectionBy=jw,g.intersectionWith=Yw,g.invert=ck,g.invertBy=uk,g.invokeMap=Q$,g.iteratee=ya,g.keyBy=G$,g.keys=gt,g.keysIn=It,g.map=G0,g.mapKeys=dk,g.mapValues=hk,g.matches=sS,g.matchesProperty=lS,g.memoize=X0,g.merge=gk,g.mergeWith=gl,g.method=cS,g.methodOf=uS,g.mixin=va,g.negate=J0,g.nthArg=dS,g.omit=pk,g.omitBy=mk,g.once=dL,g.orderBy=q$,g.over=hS,g.overArgs=hL,g.overEvery=gS,g.overSome=pS,g.partial=ca,g.partialRight=il,g.partition=X$,g.pick=yk,g.pickBy=pl,g.property=xl,g.propertyOf=mS,g.pull=qw,g.pullAll=Y9,g.pullAllBy=Xw,g.pullAllWith=Jw,g.pullAt=e$,g.range=yS,g.rangeRight=vS,g.rearg=gL,g.reject=tL,g.remove=t$,g.rest=pL,g.reverse=aa,g.sampleSize=rL,g.set=bk,g.setWith=_k,g.shuffle=iL,g.slice=n$,g.sortBy=sL,g.sortedUniq=c$,g.sortedUniqBy=u$,g.split=Kk,g.spread=mL,g.tail=f$,g.take=d$,g.takeRight=h$,g.takeRightWhile=g$,g.takeWhile=p$,g.tap=T$,g.throttle=yL,g.thru=Q0,g.toArray=cl,g.toPairs=ml,g.toPairsIn=yl,g.toPath=wS,g.toPlainObject=fl,g.transform=Ck,g.unary=vL,g.union=m$,g.unionBy=y$,g.unionWith=v$,g.uniq=b$,g.uniqBy=_$,g.uniqWith=C$,g.unset=xk,g.unzip=sa,g.unzipWith=V9,g.update=wk,g.updateWith=$k,g.values=ar,g.valuesIn=Lk,g.without=x$,g.words=_l,g.wrap=bL,g.xor=w$,g.xorBy=$$,g.xorWith=L$,g.zip=k$,g.zipObject=S$,g.zipObjectDeep=A$,g.zipWith=M$,g.entries=ml,g.entriesIn=yl,g.extend=dl,g.extendWith=hl,va(g,g),g.add=LS,g.attempt=Cl,g.camelCase=Mk,g.capitalize=vl,g.ceil=kS,g.clamp=kk,g.clone=CL,g.cloneDeep=wL,g.cloneDeepWith=$L,g.cloneWith=xL,g.conformsTo=LL,g.deburr=bl,g.defaultTo=iS,g.divide=SS,g.endsWith=Tk,g.eq=gn,g.escape=Pk,g.escapeRegExp=Ik,g.every=N$,g.find=W$,g.findIndex=K9,g.findKey=ek,g.findLast=K$,g.findLastIndex=U9,g.findLastKey=tk,g.floor=AS,g.forEach=G9,g.forEachRight=q9,g.forIn=nk,g.forInRight=rk,g.forOwn=ik,g.forOwnRight=ok,g.get=ha,g.gt=kL,g.gte=SL,g.has=lk,g.hasIn=ga,g.head=j9,g.identity=Ot,g.includes=V$,g.indexOf=Kw,g.inRange=Sk,g.invoke=fk,g.isArguments=b1,g.isArray=_e,g.isArrayBuffer=AL,g.isArrayLike=Pt,g.isArrayLikeObject=it,g.isBoolean=ML,g.isBuffer=i1,g.isDate=TL,g.isElement=PL,g.isEmpty=IL,g.isEqual=OL,g.isEqualWith=BL,g.isError=ua,g.isFinite=EL,g.isFunction=Nn,g.isInteger=ol,g.isLength=ei,g.isMap=al,g.isMatch=DL,g.isMatchWith=RL,g.isNaN=zL,g.isNative=FL,g.isNil=ZL,g.isNull=NL,g.isNumber=sl,g.isObject=et,g.isObjectLike=nt,g.isPlainObject=Br,g.isRegExp=fa,g.isSafeInteger=WL,g.isSet=ll,g.isString=ti,g.isSymbol=Zt,g.isTypedArray=or,g.isUndefined=KL,g.isWeakMap=UL,g.isWeakSet=HL,g.join=Vw,g.kebabCase=Ok,g.last=en,g.lastIndexOf=Qw,g.lowerCase=Bk,g.lowerFirst=Ek,g.lt=jL,g.lte=YL,g.max=MS,g.maxBy=TS,g.mean=PS,g.meanBy=IS,g.min=OS,g.minBy=BS,g.stubArray=_a,g.stubFalse=Ca,g.stubObject=bS,g.stubString=_S,g.stubTrue=CS,g.multiply=ES,g.nth=Gw,g.noConflict=fS,g.noop=ba,g.now=q0,g.pad=Dk,g.padEnd=Rk,g.padStart=zk,g.parseInt=Fk,g.random=Ak,g.reduce=J$,g.reduceRight=eL,g.repeat=Nk,g.replace=Zk,g.result=vk,g.round=DS,g.runInContext=k,g.sample=nL,g.size=oL,g.snakeCase=Wk,g.some=aL,g.sortedIndex=r$,g.sortedIndexBy=i$,g.sortedIndexOf=o$,g.sortedLastIndex=a$,g.sortedLastIndexBy=s$,g.sortedLastIndexOf=l$,g.startCase=Uk,g.startsWith=Hk,g.subtract=RS,g.sum=zS,g.sumBy=FS,g.template=jk,g.times=xS,g.toFinite=Zn,g.toInteger=xe,g.toLength=ul,g.toLower=Yk,g.toNumber=tn,g.toSafeInteger=VL,g.toString=Re,g.toUpper=Vk,g.trim=Qk,g.trimEnd=Gk,g.trimStart=qk,g.truncate=Xk,g.unescape=Jk,g.uniqueId=$S,g.upperCase=eS,g.upperFirst=pa,g.each=G9,g.eachRight=q9,g.first=j9,va(g,function(){var t={};return Cn(g,function(n,a){De.call(g.prototype,a)||(t[a]=n)}),t}(),{chain:!1}),g.VERSION=o,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){g[t].placeholder=g}),zt(["drop","take"],function(t,n){Ae.prototype[t]=function(a){a=a===i?1:dt(xe(a),0);var c=this.__filtered__&&!n?new Ae(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(a,c.__takeCount__):c.__views__.push({size:Ct(a,Ee),type:t+(c.__dir__<0?"Right":"")}),c},Ae.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),zt(["filter","map","takeWhile"],function(t,n){var a=n+1,c=a==ee||a==de;Ae.prototype[t]=function(d){var p=this.clone();return p.__iteratees__.push({iteratee:le(d,3),type:a}),p.__filtered__=p.__filtered__||c,p}}),zt(["head","last"],function(t,n){var a="take"+(n?"Right":"");Ae.prototype[t]=function(){return this[a](1).value()[0]}}),zt(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");Ae.prototype[t]=function(){return this.__filtered__?new Ae(this):this[a](1)}}),Ae.prototype.compact=function(){return this.filter(Ot)},Ae.prototype.find=function(t){return this.filter(t).head()},Ae.prototype.findLast=function(t){return this.reverse().find(t)},Ae.prototype.invokeMap=Le(function(t,n){return typeof t=="function"?new Ae(this):this.map(function(a){return Ar(a,t,n)})}),Ae.prototype.reject=function(t){return this.filter(J0(le(t)))},Ae.prototype.slice=function(t,n){t=xe(t);var a=this;return a.__filtered__&&(t>0||n<0)?new Ae(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==i&&(n=xe(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},Ae.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ae.prototype.toArray=function(){return this.take(Ee)},Cn(Ae.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),c=/^(?:head|last)$/.test(n),d=g[c?"take"+(n=="last"?"Right":""):n],p=c||/^find/.test(n);d&&(g.prototype[n]=function(){var b=this.__wrapped__,x=c?[1]:arguments,S=b instanceof Ae,F=x[0],N=S||_e(b),K=function(Se){var Me=d.apply(g,qn([Se],x));return c&&J?Me[0]:Me};N&&a&&typeof F=="function"&&F.length!=1&&(S=N=!1);var J=this.__chain__,re=!!this.__actions__.length,ue=p&&!J,we=S&&!re;if(!p&&N){b=we?b:new Ae(this);var se=t.apply(b,x);return se.__actions__.push({func:Q0,args:[K],thisArg:i}),new qt(se,J)}return ue&&we?t.apply(this,x):(se=this.thru(K),ue?c?se.value()[0]:se.value():se)})}),zt(["pop","push","shift","sort","splice","unshift"],function(t){var n=C0[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);g.prototype[t]=function(){var d=arguments;if(c&&!this.__chain__){var p=this.value();return n.apply(_e(p)?p:[],d)}return this[a](function(b){return n.apply(_e(b)?b:[],d)})}}),Cn(Ae.prototype,function(t,n){var a=g[n];if(a){var c=a.name+"";De.call(er,c)||(er[c]=[]),er[c].push({name:n,func:a})}}),er[W0(i,I).name]=[{name:"wrapper",func:i}],Ae.prototype.clone=ex,Ae.prototype.reverse=tx,Ae.prototype.value=nx,g.prototype.at=P$,g.prototype.chain=I$,g.prototype.commit=O$,g.prototype.next=B$,g.prototype.plant=D$,g.prototype.reverse=R$,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=z$,g.prototype.first=g.prototype.head,Cr&&(g.prototype[Cr]=E$),g},q1=OC();f1?((f1.exports=q1)._=q1,mo._=q1):mt._=q1}).call(wn)}(Er,Er.exports);var sr=Er.exports;const at=ri(sr),$l=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=ce.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const u=nn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=nn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:r()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[u,i[1],f]},styles:r()}]}return[]},setProperties:i=>{e=at.merge({},e,i)},getProperties:()=>e}},Ll=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=xa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:r(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,at.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},kl=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:r(o.id)}]:[],setProperties:(i,o)=>{e.set(o,at.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},Sl=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:r()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Al=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:r()}],setProperties:i=>{e=at.merge({},e,i)},getProperties:()=>e}},Ml=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),u=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],h=[],y=[];return f.forEach(_=>{const v=u*_;h.push({...o[0],r:v}),y.push({x:o[0].x,y:o[0].y+v+6,text:`${(_*100).toFixed(1)}%`})}),[{type:"circle",attrs:h,styles:r()},{type:"text",ignoreEvent:!0,attrs:y,styles:i()}]}return[]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Tl=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:u})=>{const f=[],h=[];if(o.length>1){let y=0;const _=l.getSymbol();((u==null?void 0:u.isInCandle())??!0)&&_?y=_.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach(C=>{y=Math.max(y,C.precision)});const v=o[1].x>o[0].x?o[0].x:o[1].x,L=[1,.786,.618,.5,.382,.236,0],M=o[0].y-o[1].y,w=s.points,T=w[0].value-w[1].value;L.forEach(A=>{const C=o[1].y+M*A,I=(w[1].value+T*A).toFixed(y.price);f.push({coordinates:[{x:o[0].x,y:C},{x:o[1].x,y:C}]}),h.push({x:v,y:C,text:`${I} (${(A*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:r()},{type:"text",ignoreEvent:!0,attrs:h,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Pl=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=xa(o[0],o[1])/Math.sqrt(24),u=o[1].x>o[0].x?0:1,f=ce.utils.getLinearSlopeIntercept(o[0],o[1]);let h;f?h=Math.atan(f[0])+Math.PI*u:o[1].y>o[0].y?h=Math.PI/2:h=Math.PI/2*3;const y=nn({x:o[0].x-l,y:o[0].y},o[0],h),_=nn({x:o[0].x-l,y:o[0].y-l},o[0],h),v=[{...y,r:l,startAngle:h,endAngle:h+Math.PI/2},{..._,r:l*2,startAngle:h+Math.PI/2,endAngle:h+Math.PI}];let L=o[0].x-l,M=o[0].y-l;for(let w=2;w<9;w++){const T=v[w-2].r+v[w-1].r;let A=0;switch(w%4){case 0:{A=h,L-=v[w-2].r;break}case 1:{A=h+Math.PI/2,M-=v[w-2].r;break}case 2:{A=h+Math.PI,L+=v[w-2].r;break}case 3:{A=h+Math.PI/2*3,M+=v[w-2].r;break}}const C=A+Math.PI/2,I=nn({x:L,y:M},o[0],h);v.push({...I,r:T,startAngle:A,endAngle:C})}return[{type:"arc",attrs:v,styles:r()},{type:"line",attrs:ni(o,s),styles:i()}]}return[]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Il=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let u=[];const f=[];if(o.length>1){const h=o[1].x>o[0].x?-38:4,y=o[1].y>o[0].y?-2:20,_=o[1].x-o[0].x,v=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(M=>{const w=o[1].x-_*M,T=o[1].y-v*M;l.push({coordinates:[{x:w,y:o[0].y},{x:w,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:T},{x:o[1].x,y:T}]}),u=u.concat(ni([o[0],{x:w,y:o[1].y}],s)),u=u.concat(ni([o[0],{x:o[1].x,y:T}],s)),f.unshift({x:o[0].x+h,y:T+10,text:`${M.toFixed(3)}`}),f.unshift({x:w-18,y:o[0].y+y,text:`${M.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:r()},{type:"line",attrs:u,styles:r()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Ol=()=>{let e={};const r=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:u,overlay:f})=>{const h=[],y=[];if(u.length>2){let _=0;const v=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&v?_=v.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(I=>{_=Math.max(_,I.precision)});const L=f.points,M=L[1].value-L[0].value,w=u[1].y-u[0].y,T=[0,.236,.382,.5,.618,.786,1],A=u[2].x>u[1].x?u[1].x:u[2].x;T.forEach(C=>{const I=u[2].y+w*C,R=(L[2].value+M*C).toFixed(_.price);h.push({coordinates:[{x:u[1].x,y:I},{x:u[2].x,y:I}]}),y.push({x:A,y:I,text:`${R} (${(C*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:u},styles:r()},{type:"line",attrs:h,styles:i()},{type:"text",ignoreEvent:!0,attrs:y,styles:o()}]},setProperties:s=>{e=at.merge({},e,s)},getProperties:()=>e}},Bl=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const u=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,h=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-u}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-u*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],y=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:r()},{type:"line",attrs:h,styles:o()},{type:"line",attrs:y,styles:s()}]}return[]},setProperties:l=>{e=at.merge({},e,l)},getProperties:()=>e}},El=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Dl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Rl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},zl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Fl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...r(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],u=[];const f=["A","B","C","D"],h=s.map((y,_)=>({...y,baseline:"bottom",text:`(${f[_]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(u=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:r()},{type:"line",attrs:[{coordinates:l},{coordinates:u}],styles:i()},{type:"text",ignoreEvent:!0,attrs:h,styles:o()}]},setProperties:s=>{e=at.merge({},e,s)},getProperties:()=>e}},Nl=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:u})=>{const f=[],h=[],y=["X","A","B","C","D"],_=l.map((v,L)=>({...v,baseline:"bottom",text:`(${y[L]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),h.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]]}),h.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:h,styles:r()},{type:"text",ignoreEvent:!0,attrs:_,styles:s()}]},setProperties:l=>{e=at.merge({},e,l)},getProperties:()=>e}},o1=()=>({x:window.innerWidth,y:window.innerHeight}),Zl=(e,r,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:r.paneId}).forEach(u=>{o.price=Math.max(o.price,u.precision)}),o},ii=e=>({thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900})[e],st={lineStyle:{style:"dashed",size:1,color:"#00698b",dashedValue:[4,4]},labelStyle:{style:"stroke_fill",size:12,family:"Helvetica Neue",weight:"normal",paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,borderStyle:"solid",borderSize:1,borderDashedValue:[0,0],borderRadius:3,color:"#FFFFFF",borderColor:"#00698b",backgroundColor:"#00698b",show:!0}},lr=(e,r)=>{if(e){const{params:i,callback:o}=e;o(i,r)}},Wl=()=>{let e={isBodyVisible:!0,isCancelButtonVisible:!0,isQuantityVisible:!0,marginRight:10};const r=()=>({style:e.lineStyle??st.lineStyle.style,size:e.lineWidth??st.lineStyle.size,color:e.lineColor??st.lineStyle.color,dashedValue:e.lineDashedValue??st.lineStyle.dashedValue}),i=o=>({style:st.labelStyle.style,size:(o=="body"?e.bodySize:o=="quantity"?e.quantitySize:e.cancelButtonSize)??e.bodySize??st.labelStyle.size,weight:(o=="body"?e.bodyWeight:o=="quantity"?e.quantityWeight:e.cancelButtonWeight)??e.bodyWeight??st.labelStyle.weight,family:(o=="body"?e.bodyFont:o=="quantity"?e.quantityFont:"icomoon")??e.bodyFont??st.labelStyle.family,color:(o=="body"?e.bodyTextColor:o=="quantity"?e.quantityColor:e.cancelButtonIconColor)??e.bodyTextColor??st.labelStyle.color,backgroundColor:(o=="body"?e.bodyBackgroundColor:o=="quantity"?e.quantityBackgroundColor:e.cancelButtonBackgroundColor)??e.bodyBackgroundColor??st.labelStyle.backgroundColor,borderColor:(o=="body"?e.bodyBorderColor:o=="quantity"?e.quantityBorderColor:e.cancelButtonBorderColor)??e.bodyBorderColor??st.labelStyle.borderColor,borderStyle:e.borderStyle??st.labelStyle.borderStyle,borderSize:e.borderSize??st.labelStyle.borderSize,borderDashedValue:e.borderDashedValue??st.labelStyle.borderDashedValue,borderRadius:e.borderRadius??st.labelStyle.borderRadius,paddingLeft:(o=="body"?e.bodyPaddingLeft:o=="quantity"?e.quantityPaddingLeft:e.cancelButtonPaddingLeft)??e.bodyPaddingLeft??st.labelStyle.paddingLeft,paddingRight:(o=="body"?e.bodyPaddingRight:o=="quantity"?e.quantityPaddingRight:e.cancelButtonPaddingRight)??e.bodyPaddingRight??st.labelStyle.paddingRight,paddingTop:(o=="body"?e.bodyPaddingTop:o=="quantity"?e.quantityPaddingTop:e.cancelButtonPaddingTop)??e.bodyPaddingTop??st.labelStyle.paddingTop,paddingBottom:(o=="body"?e.bodyPaddingBottom:o=="quantity"?e.quantityPaddingBottom:e.cancelButtonPaddingBottom)??e.bodyPaddingBottom??st.labelStyle.paddingBottom});return{name:"orderLine",totalStep:2,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({chart:o,coordinates:s,bounding:l})=>{var A,C,I,R,$,Z,X;const u=i("body"),f=i("quantity"),h=i("cancel-button"),y="",_=(e.quantity??"Size").toString(),v=e.text??"Position Line",L=e.marginRight,M=ce.utils.calcTextWidth(y)+h.paddingLeft+h.paddingRight+L-(e.borderSize??st.labelStyle.borderSize),w=ce.utils.calcTextWidth(_.toString())+f.paddingLeft+f.paddingRight+M,T=ce.utils.calcTextWidth(v.toString())+u.paddingLeft+u.paddingRight+w;return[{key:"price-line",type:"line",attrs:{coordinates:[{x:0,y:e.price?o.convertToPixel({timestamp:(A=o.getDataList().at(o.getDataList().length-1))==null?void 0:A.timestamp,value:e.price}).y:s[0].y},{x:l.width-T,y:e.price?o.convertToPixel({timestamp:(C=o.getDataList().at(o.getDataList().length-1))==null?void 0:C.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"price-line-two",type:"line",attrs:{coordinates:[{x:l.width-L,y:e.price?o.convertToPixel({timestamp:(I=o.getDataList().at(o.getDataList().length-1))==null?void 0:I.timestamp,value:e.price}).y:s[0].y},{x:l.width,y:e.price?o.convertToPixel({timestamp:(R=o.getDataList().at(o.getDataList().length-1))==null?void 0:R.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"body",type:"text",attrs:{x:l.width-w,y:e.price?o.convertToPixel({timestamp:($=o.getDataList().at(o.getDataList().length-1))==null?void 0:$.timestamp,value:e.price}).y:s[0].y,text:v,align:"right",baseline:"middle"},styles:u},{key:"quantity",type:"text",attrs:{x:l.width-M,y:e.price?o.convertToPixel({timestamp:(Z=o.getDataList().at(o.getDataList().length-1))==null?void 0:Z.timestamp,value:e.price}).y:s[0].y,text:_,align:"right",baseline:"middle"},styles:f},{key:"cancel-button",type:"text",attrs:{x:l.width-L,y:e.price?o.convertToPixel({timestamp:(X=o.getDataList().at(o.getDataList().length-1))==null?void 0:X.timestamp,value:e.price}).y:s[0].y,text:y,align:"right",baseline:"middle"},styles:h}]},createYAxisFigures:({chart:o,overlay:s,coordinates:l,bounding:u,yAxis:f})=>{var M;const h=Zl(o,s,f),y=(f==null?void 0:f.isFromZero())??!1;let _,v;y?(_="left",v=0):(_="right",v=u.width);let L;return e.price!==void 0&&(s.points[0].value=e.price),ce.utils.isValid(s.extendData)&&(ce.utils.isFunction(s.extendData)?L=s.extendData(s):L=s.extendData??""),!ce.utils.isValid(L)&&s.points[0].value!==void 0&&(L=ce.utils.formatPrecision(s.points[0].value,h.price)),{type:"text",attrs:{x:v,y:e.price?o.convertToPixel({timestamp:(M=o.getDataList().at(o.getDataList().length-1))==null?void 0:M.timestamp,value:e.price}).y:l[0].y,text:L??"",align:_,baseline:"middle"},styles:i("body")}},onSelected:o=>(o.preventDefault&&o.preventDefault(),o.overlay.mode="normal",!1),onRightClick:o=>(o.preventDefault&&o.preventDefault(),!1),onPressedMoveStart:o=>(lr(e.onMoveStart,o),!1),onPressedMoving:o=>(e.price=o.chart.convertFromPixel([{y:o.y,x:o.x}],{paneId:"candle_pane"}).value,lr(e.onMove,o),!1),onPressedMoveEnd:o=>(lr(e.onMoveEnd,o),!1),onClick:o=>{var s;switch((s=o.figure)==null?void 0:s.key){case"cancel-button":lr(e.onCancel,o);break;case"quantity":lr(e.onModify,o);break}return!1},setPrice(o){return e.price=o,this},setText(o){return e.text=o,this},setQuantity(o){return e.quantity=o,this},setModifyTooltip(o){return e.modifyTooltip=o,this},setTooltip(o){return e.tooltip=o,this},setLineColor(o){return e.lineColor=o,this},setLineWidth(o){return e.lineWidth=o,this},setLineStyle(o){return e.lineStyle=o,this},setLineLength(o){return e.lineDashedValue=[o,o],this},setLineDashedValue(o){return e.lineDashedValue=o,this},setBodyFont(o){return e.bodyFont=o,this},setBodyFontWeight(o){return ce.utils.isString(o)&&(o=ii(o)),e.bodyWeight=o,this},setBodyTextColor(o){return e.bodyTextColor=o,this},setBodyBackgroundColor(o){return e.bodyBackgroundColor=o,this},setBodyBorderColor(o){return e.bodyBorderColor=o,this},setQuantityFont(o){return e.quantityFont=o,this},setQuantityFontWeight(o){return ce.utils.isString(o)&&(o=ii(o)),e.quantityWeight=o,this},setQuantityColor(o){return e.quantityColor=o,this},setQuantityBackgroundColor(o){return e.quantityBackgroundColor=o,this},setQuantityBorderColor(o){return e.quantityBorderColor=o,this},setCancelButtonFontWeight(o){return ce.utils.isString(o)&&(o=ii(o)),e.cancelButtonWeight=o,this},setCancelButtonIconColor(o){return e.cancelButtonIconColor=o,this},setCancelButtonBackgroundColor(o){return e.cancelButtonBackgroundColor=o,this},setCancelButtonBorderColor(o){return e.cancelButtonBorderColor=o,this},setBorderStyle(o){return e.borderStyle=o,this},setBorderSize(o){return e.borderSize=o,this},setBorderDashedValue(o){return e.borderDashedValue=o,this},setBorderRadius(o){return e.borderRadius=o,this},onMoveStart(o,s){return e.onMoveStart={params:o,callback:s},this},onMove(o,s){return e.onMove={params:o,callback:s},this},onMoveEnd(o,s){return e.onMoveEnd={params:o,callback:s},this},onCancel(o,s){return e.onCancel={params:o,callback:s},this},onModify(o,s){return e.onModify={params:o,callback:s},this}}},Kl=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:r})=>{const i=[];if(r.length>1){const o=r.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:r,points:i,performPoint:o})=>{r>=2&&i.push(o)},setProperties:r=>{e=at.merge({},e,r)},getProperties:()=>e}},Ul=[$l(),Kl(),Ll(),kl(),Al(),Sl(),Ml(),Tl(),Pl(),Il(),Ol(),Bl(),El(),Dl(),Rl(),zl(),Fl(),Nl(),Wl()];class Hl{constructor(r){Mt(this,"_apiKey");Mt(this,"_prevSymbolMarket");Mt(this,"_ws");this._apiKey=r}async searchSymbols(r){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${r??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(r,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${r.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(r,i,o){var s,l;this._prevSymbolMarket!==r.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${r.market}`),this._ws.onopen=()=>{var u;(u=this._ws)==null||u.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=u=>{var h;const f=JSON.parse(u.data);f[0].ev==="status"?f[0].status==="auth_success"&&((h=this._ws)==null||h.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`})),this._prevSymbolMarket=r.market}unsubscribe(r,i){}}class jl{constructor(r,i,o){Mt(this,"apikey");Mt(this,"apiurl");Mt(this,"testsesson_id");this.apiurl=r,this.apikey=i,this.testsesson_id=o}async retrieveOrder(r){const i=await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions/${r}`),o=await(i==null?void 0:i.json());return{entryPoint:o.data.entrypoint,stopLoss:o.data.stoploss,takeProfit:o.data.takeprofit,lotSize:o.data.lotsize,pl:o.data.pl,accountId:o.data.account_id,orderId:o.data.id,entryTime:o.data.entrytime,exitTime:o.data.exittime,exitPoint:o.data.exitpoint,action:o.data.action}}async retrieveOrders(r,i){try{return((await(await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions`)).json()).data||[]).map(l=>({entryPoint:l.entrypoint,stopLoss:l.stoploss,takeProfit:l.takeprofit,lotSize:l.lotsize,pl:l.pl,accountId:l.account_id,orderId:l.id,entryTime:l.entrytime,exitTime:l.exittime,exitPoint:l.exitpoint,action:l.action}))}catch{return[]}}async openOrder(r,i,o,s,l){const u=await this.makeFetchWithAuthAndBody("POST",`${this.apiurl}/positions`,{account_id:this.testsesson_id,action:r,entrypoint:o,stoploss:s,takeprofit:l}),f=await(u==null?void 0:u.json());return{orderId:f.id,accountId:f.account_id,action:f.action,entryPoint:f.entrypoint,exitPoint:f.exitpoint,stopLoss:f.stoploss,takeProfit:f.takeprofit,lotSize:f.lotsize,pips:f.pips,pl:f.pl,entryTime:f.entrytime,exitTime:f.exittime,exitType:f.exittype,partials:f.partials}}async closeOrder(r,i){try{const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}`);return await(o==null?void 0:o.json())}catch{return null}}async modifyOrder(r){const i=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r.id}`,r),o=await(i==null?void 0:i.json());return{orderId:o.id,accountId:o.account_id,action:o.action,entryPoint:o.entrypoint,exitPoint:o.exitpoint,stopLoss:o.stoploss,takeProfit:o.takeprofit,lotSize:o.lotsize,pips:o.pips,pl:o.pl,entryTime:o.entrytime,exitTime:o.exittime,exitType:o.exittype,partials:o.partials}}async unsetSlOrTP(r,i){const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}/unset/${i}`),s=await(o==null?void 0:o.json());return{orderId:s.id,accountId:s.account_id,action:s.action,entryPoint:s.entrypoint,exitPoint:s.exitpoint,stopLoss:s.stoploss,takeProfit:s.takeprofit,lotSize:s.lotsize,pips:s.pips,pl:s.pl,entryTime:s.entrytime,exitTime:s.exittime,exitType:s.exittype,partials:s.partials}}launchOrderModal(r,i,o){}async makeFetchWithAuthAndBody(r,i,o){const s={method:r,credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json",authorization:`Bearer ${this.apikey}`},body:o?JSON.stringify(o):null};try{return await fetch(`${i}`,s)}catch(l){return alert(l.message??"An error occured"),null}}}class Yl{constructor(r="dummy_order_controller"){Mt(this,"storage_name");this.storage_name=r}async retrieveOrder(r){return this.retrieveOrderFromLs(r)}async retrieveOrders(r,i){let o=this.retrieveOrdersFromLs();return r&&(o=o.filter((s,l)=>s.action==r)),i&&(o=o.filter(s=>s.accountId==i)),o}async openOrder(r,i,o,s,l){const u=this.retrieveOrdersFromLs(),f={orderId:u.length?u.at(u.length-1).orderId+1:0,action:r,entryPoint:o,exitPoint:void 0,stopLoss:s,takeProfit:l,lotSize:i,pips:0,pl:0,entryTime:new Date().getTime().toString(),exitTime:void 0,exitType:void 0,partials:void 0};return this.storeOrder(f,u),f}async closeOrder(r,i){try{const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return(!i||i>l.lotSize)&&(i=l.lotSize),l.lotSize-=i,this.storeOrder(l,o,s),l}catch{return null}}async modifyOrder(r){const i=this.retrieveOrdersFromLs(),o=i.findIndex(l=>l.orderId==r.id);if(o<0)return null;const s=i[o];return s.action=r.action??s.action,s.entryPoint=r.entrypoint??s.entryPoint,s.exitPoint=r.exitpoint??s.exitPoint,s.stopLoss=r.stoploss??s.stopLoss,s.takeProfit=r.takeprofit??s.takeProfit,s.lotSize=r.lotsize??s.lotSize,s.pips=r.pips??s.pips,s.pl=r.pl??s.pl,s.entryTime=["buy","sell"].includes(s.action)?new Date().getTime().toString():s.entryTime,s.exitTime=s.exitPoint&&s.exitTime?new Date().getTime().toString():s.exitTime,this.storeOrder(s,i,o),s}async unsetSlOrTP(r,i){const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return i=="sl"?l.stopLoss=void 0:l.takeProfit=void 0,this.storeOrder(l,o,s),l}launchOrderModal(r,i,o){}retrieveOrdersFromLs(){return JSON.parse(localStorage.getItem(this.storage_name)??"[]")}retrieveOrderFromLs(r){return this.retrieveOrdersFromLs().find(i=>i.orderId==r)??null}storeOrder(r,i,o){if(i||(i=this.retrieveOrdersFromLs()),o&&o>i.length)throw new Error("storeOrder: index cannot be greater than total order length");o?i[o]=r:i.push(r),localStorage.setItem(this.storage_name,JSON.stringify(i))}}const Vl=!1,Ql=(e,r)=>e===r,oi=Symbol("solid-proxy"),Gl=typeof Proxy=="function",ql=Symbol("solid-track"),Dr={equals:Ql};let wa=Aa;const $n=1,Rr=2,$a={owned:null,cleanups:null,context:null,owner:null},ai={};var Ne=null;let si=null,Xl=null,ze=null,vt=null,Ln=null,zr=0;function Fr(e,r){const i=ze,o=Ne,s=e.length===0,l=r===void 0?o:r,u=s?$a:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>on(()=>ur(u)));Ne=u,ze=null;try{return kn(f,!0)}finally{ze=i,Ne=o}}function Y(e,r){r=r?Object.assign({},Dr,r):Dr;const i={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),Sa(i,s));return[ka.bind(i),o]}function La(e,r,i){const o=Nr(e,r,!0,$n);_1(o)}function Te(e,r,i){const o=Nr(e,r,!1,$n);_1(o)}function rn(e,r,i){wa=a6;const o=Nr(e,r,!1,$n);(!i||!i.render)&&(o.user=!0),Ln?Ln.push(o):_1(o)}function mn(e,r,i){i=i?Object.assign({},Dr,i):Dr;const o=Nr(e,r,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,_1(o),ka.bind(o)}function Jl(e){return e&&typeof e=="object"&&"then"in e}function e6(e,r,i){let o,s,l;typeof r=="function"?(o=e,s=r,l=i||{}):(o=!0,s=e,l=r||{});let u=null,f=ai,h=!1,y="initialValue"in l,_=typeof o=="function"&&mn(o);const v=new Set,[L,M]=(l.storage||Y)(l.initialValue),[w,T]=Y(void 0),[A,C]=Y(void 0,{equals:!1}),[I,R]=Y(y?"ready":"unresolved");function $(z,G,q,U){return u===z&&(u=null,U!==void 0&&(y=!0),(z===f||G===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(U,{value:G})),f=ai,Z(G,q)),G}function Z(z,G){kn(()=>{G===void 0&&M(()=>z),R(G!==void 0?"errored":y?"ready":"unresolved"),T(G);for(const q of v.keys())q.decrement();v.clear()},!1)}function X(){const z=r6,G=L(),q=w();if(q!==void 0&&!u)throw q;return ze&&!ze.user&&z&&La(()=>{A(),u&&(z.resolved||v.has(z)||(z.increment(),v.add(z)))}),G}function Q(z=!0){if(z!==!1&&h)return;h=!1;const G=_?_():o;if(G==null||G===!1){$(u,on(L));return}let q;const U=f!==ai?f:on(()=>{try{return s(G,{value:L(),refetching:z})}catch(H){q=H}});if(q!==void 0){$(u,void 0,Kr(q),G);return}else if(!Jl(U))return $(u,U,void 0,G),U;return u=U,"v"in U?(U.s===1?$(u,U.v,void 0,G):$(u,void 0,Kr(U.v),G),U):(h=!0,queueMicrotask(()=>h=!1),kn(()=>{R(y?"refreshing":"pending"),C()},!1),U.then(H=>$(U,H,void 0,G),H=>$(U,void 0,Kr(H),G)))}Object.defineProperties(X,{state:{get:()=>I()},error:{get:()=>w()},loading:{get(){const z=I();return z==="pending"||z==="refreshing"}},latest:{get(){if(!y)return X();const z=w();if(z&&!u)throw z;return L()}}});let O=Ne;return _?La(()=>(O=Ne,Q(!1))):Q(!1),[X,{refetch:z=>t6(O,()=>Q(z)),mutate:M}]}function on(e){if(ze===null)return e();const r=ze;ze=null;try{return e()}finally{ze=r}}function li(e){rn(()=>on(e))}function cr(e){return Ne===null||(Ne.cleanups===null?Ne.cleanups=[e]:Ne.cleanups.push(e)),e}function t6(e,r){const i=Ne,o=ze;Ne=e,ze=null;try{return kn(r,!0)}catch(s){ci(s)}finally{Ne=i,ze=o}}function n6(e){const r=ze,i=Ne;return Promise.resolve().then(()=>{ze=r,Ne=i;let o;return kn(e,!1),ze=Ne=null,o?o.done:void 0})}let r6;function ka(){if(this.sources&&this.state)if(this.state===$n)_1(this);else{const e=vt;vt=null,kn(()=>Wr(this),!1),vt=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 Sa(e,r,i){let o=e.value;return(!e.comparator||!e.comparator(o,r))&&(e.value=r,e.observers&&e.observers.length&&kn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],u=si&&si.running;u&&si.disposed.has(l),(u?!l.tState:!l.state)&&(l.pure?vt.push(l):Ln.push(l),l.observers&&Ma(l)),u||(l.state=$n)}if(vt.length>1e6)throw vt=[],new Error},!1)),r}function _1(e){if(!e.fn)return;ur(e);const r=zr;i6(e,e.value,r)}function i6(e,r,i){let o;const s=Ne,l=ze;ze=Ne=e;try{o=e.fn(r)}catch(u){return e.pure&&(e.state=$n,e.owned&&e.owned.forEach(ur),e.owned=null),e.updatedAt=i+1,ci(u)}finally{ze=l,Ne=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Sa(e,o):e.value=o,e.updatedAt=i)}function Nr(e,r,i,o=$n,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:Ne,context:Ne?Ne.context:null,pure:i};return Ne===null||Ne!==$a&&(Ne.owned?Ne.owned.push(l):Ne.owned=[l]),l}function Zr(e){if(e.state===0)return;if(e.state===Rr)return Wr(e);if(e.suspense&&on(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<zr);)e.state&&r.push(e);for(let i=r.length-1;i>=0;i--)if(e=r[i],e.state===$n)_1(e);else if(e.state===Rr){const o=vt;vt=null,kn(()=>Wr(e,r[0]),!1),vt=o}}function kn(e,r){if(vt)return e();let i=!1;r||(vt=[]),Ln?i=!0:Ln=[],zr++;try{const o=e();return o6(i),o}catch(o){i||(Ln=null),vt=null,ci(o)}}function o6(e){if(vt&&(Aa(vt),vt=null),e)return;const r=Ln;Ln=null,r.length&&kn(()=>wa(r),!1)}function Aa(e){for(let r=0;r<e.length;r++)Zr(e[r])}function a6(e){let r,i=0;for(r=0;r<e.length;r++){const o=e[r];o.user?e[i++]=o:Zr(o)}for(r=0;r<i;r++)Zr(e[r])}function Wr(e,r){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===$n?o!==r&&(!o.updatedAt||o.updatedAt<zr)&&Zr(o):s===Rr&&Wr(o,r)}}}function Ma(e){for(let r=0;r<e.observers.length;r+=1){const i=e.observers[r];i.state||(i.state=Rr,i.pure?vt.push(i):Ln.push(i),i.observers&&Ma(i))}}function ur(e){let r;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),u=i.observerSlots.pop();o<s.length&&(l.sourceSlots[u]=o,s[o]=l,i.observerSlots[o]=u)}}if(e.tOwned){for(r=e.tOwned.length-1;r>=0;r--)ur(e.tOwned[r]);delete e.tOwned}if(e.owned){for(r=e.owned.length-1;r>=0;r--)ur(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0}function Kr(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ci(e,r=Ne){throw Kr(e)}const s6=Symbol("fallback");function Ta(e){for(let r=0;r<e.length;r++)e[r]()}function l6(e,r,i={}){let o=[],s=[],l=[],u=0,f=r.length>1?[]:null;return cr(()=>Ta(l)),()=>{let h=e()||[],y=h.length,_,v;return h[ql],on(()=>{let M,w,T,A,C,I,R,$,Z;if(y===0)u!==0&&(Ta(l),l=[],o=[],s=[],u=0,f&&(f=[])),i.fallback&&(o=[s6],s[0]=Fr(X=>(l[0]=X,i.fallback())),u=1);else if(u===0){for(s=new Array(y),v=0;v<y;v++)o[v]=h[v],s[v]=Fr(L);u=y}else{for(T=new Array(y),A=new Array(y),f&&(C=new Array(y)),I=0,R=Math.min(u,y);I<R&&o[I]===h[I];I++);for(R=u-1,$=y-1;R>=I&&$>=I&&o[R]===h[$];R--,$--)T[$]=s[R],A[$]=l[R],f&&(C[$]=f[R]);for(M=new Map,w=new Array($+1),v=$;v>=I;v--)Z=h[v],_=M.get(Z),w[v]=_===void 0?-1:_,M.set(Z,v);for(_=I;_<=R;_++)Z=o[_],v=M.get(Z),v!==void 0&&v!==-1?(T[v]=s[_],A[v]=l[_],f&&(C[v]=f[_]),v=w[v],M.set(Z,v)):l[_]();for(v=I;v<y;v++)v in T?(s[v]=T[v],l[v]=A[v],f&&(f[v]=C[v],f[v](v))):s[v]=Fr(L);s=s.slice(0,u=y),o=h.slice(0)}return s});function L(M){if(l[v]=M,f){const[w,T]=Y(v);return f[v]=T,r(h[v],w)}return r(h[v])}}}function j(e,r){return on(()=>e(r||{}))}function Ur(){return!0}const c6={get(e,r,i){return r===oi?i:e.get(r)},has(e,r){return r===oi?!0:e.has(r)},set:Ur,deleteProperty:Ur,getOwnPropertyDescriptor(e,r){return{configurable:!0,enumerable:!0,get(){return e.get(r)},set:Ur,deleteProperty:Ur}},ownKeys(e){return e.keys()}};function ui(e){return(e=typeof e=="function"?e():e)?e:{}}function u6(){for(let e=0,r=this.length;e<r;++e){const i=this[e]();if(i!==void 0)return i}}function Pa(...e){let r=!1;for(let u=0;u<e.length;u++){const f=e[u];r=r||!!f&&oi in f,e[u]=typeof f=="function"?(r=!0,mn(f)):f}if(Gl&&r)return new Proxy({get(u){for(let f=e.length-1;f>=0;f--){const h=ui(e[f])[u];if(h!==void 0)return h}},has(u){for(let f=e.length-1;f>=0;f--)if(u in ui(e[f]))return!0;return!1},keys(){const u=[];for(let f=0;f<e.length;f++)u.push(...Object.keys(ui(e[f])));return[...new Set(u)]}},c6);const i={},o=Object.create(null);for(let u=e.length-1;u>=0;u--){const f=e[u];if(!f)continue;const h=Object.getOwnPropertyNames(f);for(let y=h.length-1;y>=0;y--){const _=h[y];if(_==="__proto__"||_==="constructor")continue;const v=Object.getOwnPropertyDescriptor(f,_);if(!o[_])o[_]=v.get?{enumerable:!0,configurable:!0,get:u6.bind(i[_]=[v.get.bind(f)])}:v.value!==void 0?v:void 0;else{const L=i[_];L&&(v.get?L.push(v.get.bind(f)):v.value!==void 0&&L.push(()=>v.value))}}}const s={},l=Object.keys(o);for(let u=l.length-1;u>=0;u--){const f=l[u],h=o[f];h&&h.get?Object.defineProperty(s,f,h):s[f]=h?h.value:void 0}return s}const f6=e=>`Stale read from <${e}>.`;function fi(e){const r="fallback"in e&&{fallback:()=>e.fallback};return mn(l6(()=>e.each,e.children,r||void 0))}function We(e){const r=e.keyed,i=mn(()=>e.when,void 0,void 0),o=r?i:mn(i,void 0,{equals:(s,l)=>!s==!l});return mn(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?on(()=>l(r?s:()=>{if(!on(o))throw f6("Show");return i()})):l}return e.fallback},void 0,void 0)}const qe=e=>mn(()=>e());function d6(e,r,i){let o=i.length,s=r.length,l=o,u=0,f=0,h=r[s-1].nextSibling,y=null;for(;u<s||f<l;){if(r[u]===i[f]){u++,f++;continue}for(;r[s-1]===i[l-1];)s--,l--;if(s===u){const _=l<o?f?i[f-1].nextSibling:i[l-f]:h;for(;f<l;)e.insertBefore(i[f++],_)}else if(l===f)for(;u<s;)(!y||!y.has(r[u]))&&r[u].remove(),u++;else if(r[u]===i[l-1]&&i[f]===r[s-1]){const _=r[--s].nextSibling;e.insertBefore(i[f++],r[u++].nextSibling),e.insertBefore(i[--l],_),r[s]=i[l]}else{if(!y){y=new Map;let v=f;for(;v<l;)y.set(i[v],v++)}const _=y.get(r[u]);if(_!=null)if(f<_&&_<l){let v=u,L=1,M;for(;++v<s&&v<l&&!((M=y.get(r[v]))==null||M!==_+L);)L++;if(L>_-f){const w=r[u];for(;f<_;)e.insertBefore(i[f++],w)}else e.replaceChild(i[f++],r[u++])}else u++;else r[u++].remove()}}}const Ia="_$DX_DELEGATE";function h6(e,r,i,o={}){let s;return Fr(l=>{s=l,r===document?e():W(r,e(),r.firstChild?null:void 0,i)},o.owner),()=>{s(),r.textContent=""}}function B(e,r,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},u=r?()=>on(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return u.cloneNode=u,u}function wt(e,r=window.document){const i=r[Ia]||(r[Ia]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),r.addEventListener(l,g6))}}function rt(e,r,i){i==null?e.removeAttribute(r):e.setAttribute(r,i)}function an(e,r){r==null?e.removeAttribute("class"):e.className=r}function Kn(e,r,i,o){if(o)Array.isArray(i)?(e[`$$${r}`]=i[0],e[`$$${r}Data`]=i[1]):e[`$$${r}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(r,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(r,i,typeof i!="function"&&i)}function Ut(e,r,i){if(!r)return i?rt(e,"style"):r;const o=e.style;if(typeof r=="string")return o.cssText=r;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),r||(r={});let s,l;for(l in i)r[l]==null&&o.removeProperty(l),delete i[l];for(l in r)s=r[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Bt(e,r,i){i!=null?e.style.setProperty(r,i):e.style.removeProperty(r)}function fr(e,r,i){return on(()=>e(r,i))}function W(e,r,i,o){if(i!==void 0&&!o&&(o=[]),typeof r!="function")return Hr(e,r,o,i);Te(s=>Hr(e,r(),s,i),o)}function g6(e){let r=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=h=>Object.defineProperty(e,"target",{configurable:!0,value:h}),u=()=>{const h=r[i];if(h&&!r.disabled){const y=r[`${i}Data`];if(y!==void 0?h.call(r,y,e):h.call(r,e),e.cancelBubble)return}return r.host&&typeof r.host!="string"&&!r.host._$host&&r.contains(e.target)&&l(r.host),!0},f=()=>{for(;u()&&(r=r._$host||r.parentNode||r.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),e.composedPath){const h=e.composedPath();l(h[0]);for(let y=0;y<h.length-2&&(r=h[y],!!u());y++){if(r._$host){r=r._$host,f();break}if(r.parentNode===s)break}}else f();l(o)}function Hr(e,r,i,o,s){for(;typeof i=="function";)i=i();if(r===i)return i;const l=typeof r,u=o!==void 0;if(e=u&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(r=r.toString(),r===i))return i;if(u){let f=i[0];f&&f.nodeType===3?f.data!==r&&(f.data=r):f=document.createTextNode(r),i=C1(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=r:i=e.textContent=r}else if(r==null||l==="boolean")i=C1(e,i,o);else{if(l==="function")return Te(()=>{let f=r();for(;typeof f=="function";)f=f();i=Hr(e,f,i,o)}),()=>i;if(Array.isArray(r)){const f=[],h=i&&Array.isArray(i);if(di(f,r,i,s))return Te(()=>i=Hr(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=C1(e,i,o),u)return i}else h?i.length===0?Oa(e,f,o):d6(e,i,f):(i&&C1(e),Oa(e,f));i=f}else if(r.nodeType){if(Array.isArray(i)){if(u)return i=C1(e,i,o,r);C1(e,i,null,r)}else i==null||i===""||!e.firstChild?e.appendChild(r):e.replaceChild(r,e.firstChild);i=r}}return i}function di(e,r,i,o){let s=!1;for(let l=0,u=r.length;l<u;l++){let f=r[l],h=i&&i[e.length],y;if(!(f==null||f===!0||f===!1))if((y=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=di(e,f,h)||s;else if(y==="function")if(o){for(;typeof f=="function";)f=f();s=di(e,Array.isArray(f)?f:[f],Array.isArray(h)?h:[h])||s}else e.push(f),s=!0;else{const _=String(f);h&&h.nodeType===3&&h.data===_?e.push(h):e.push(document.createTextNode(_))}}return s}function Oa(e,r,i=null){for(let o=0,s=r.length;o<s;o++)e.insertBefore(r[o],i)}function C1(e,r,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(r.length){let l=!1;for(let u=r.length-1;u>=0;u--){const f=r[u];if(s!==f){const h=f.parentNode===e;!l&&!u?h?e.replaceChild(s,f):e.insertBefore(s,i):h&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function p6(){this.__data__=[],this.size=0}var m6=p6;function y6(e,r){return e===r||e!==e&&r!==r}var Ba=y6,v6=Ba;function b6(e,r){for(var i=e.length;i--;)if(v6(e[i][0],r))return i;return-1}var jr=b6,_6=jr,C6=Array.prototype,x6=C6.splice;function w6(e){var r=this.__data__,i=_6(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():x6.call(r,i,1),--this.size,!0}var $6=w6,L6=jr;function k6(e){var r=this.__data__,i=L6(r,e);return i<0?void 0:r[i][1]}var S6=k6,A6=jr;function M6(e){return A6(this.__data__,e)>-1}var T6=M6,P6=jr;function I6(e,r){var i=this.__data__,o=P6(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var O6=I6,B6=m6,E6=$6,D6=S6,R6=T6,z6=O6;function x1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}x1.prototype.clear=B6,x1.prototype.delete=E6,x1.prototype.get=D6,x1.prototype.has=R6,x1.prototype.set=z6;var Yr=x1,F6=Yr;function N6(){this.__data__=new F6,this.size=0}var Z6=N6;function W6(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var K6=W6;function U6(e){return this.__data__.get(e)}var H6=U6;function j6(e){return this.__data__.has(e)}var Y6=j6,V6=typeof wn=="object"&&wn&&wn.Object===Object&&wn,Ea=V6,Q6=Ea,G6=typeof self=="object"&&self&&self.Object===Object&&self,q6=Q6||G6||Function("return this")(),yn=q6,X6=yn,J6=X6.Symbol,Vr=J6,Da=Vr,Ra=Object.prototype,e3=Ra.hasOwnProperty,t3=Ra.toString,dr=Da?Da.toStringTag:void 0;function n3(e){var r=e3.call(e,dr),i=e[dr];try{e[dr]=void 0;var o=!0}catch{}var s=t3.call(e);return o&&(r?e[dr]=i:delete e[dr]),s}var r3=n3,i3=Object.prototype,o3=i3.toString;function a3(e){return o3.call(e)}var s3=a3,za=Vr,l3=r3,c3=s3,u3="[object Null]",f3="[object Undefined]",Fa=za?za.toStringTag:void 0;function d3(e){return e==null?e===void 0?f3:u3:Fa&&Fa in Object(e)?l3(e):c3(e)}var hr=d3;function h3(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var w1=h3,g3=hr,p3=w1,m3="[object AsyncFunction]",y3="[object Function]",v3="[object GeneratorFunction]",b3="[object Proxy]";function _3(e){if(!p3(e))return!1;var r=g3(e);return r==y3||r==v3||r==m3||r==b3}var Na=_3,C3=yn,x3=C3["__core-js_shared__"],w3=x3,hi=w3,Za=function(){var e=/[^.]+$/.exec(hi&&hi.keys&&hi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $3(e){return!!Za&&Za in e}var L3=$3,k3=Function.prototype,S3=k3.toString;function A3(e){if(e!=null){try{return S3.call(e)}catch{}try{return e+""}catch{}}return""}var Wa=A3,M3=Na,T3=L3,P3=w1,I3=Wa,O3=/[\\^$.*+?()[\]{}|]/g,B3=/^\[object .+?Constructor\]$/,E3=Function.prototype,D3=Object.prototype,R3=E3.toString,z3=D3.hasOwnProperty,F3=RegExp("^"+R3.call(z3).replace(O3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N3(e){if(!P3(e)||T3(e))return!1;var r=M3(e)?F3:B3;return r.test(I3(e))}var Z3=N3;function W3(e,r){return e==null?void 0:e[r]}var K3=W3,U3=Z3,H3=K3;function j3(e,r){var i=H3(e,r);return U3(i)?i:void 0}var a1=j3,Y3=a1,V3=yn,Q3=Y3(V3,"Map"),gi=Q3,G3=a1,q3=G3(Object,"create"),Qr=q3,Ka=Qr;function X3(){this.__data__=Ka?Ka(null):{},this.size=0}var J3=X3;function e8(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var t8=e8,n8=Qr,r8="__lodash_hash_undefined__",i8=Object.prototype,o8=i8.hasOwnProperty;function a8(e){var r=this.__data__;if(n8){var i=r[e];return i===r8?void 0:i}return o8.call(r,e)?r[e]:void 0}var s8=a8,l8=Qr,c8=Object.prototype,u8=c8.hasOwnProperty;function f8(e){var r=this.__data__;return l8?r[e]!==void 0:u8.call(r,e)}var d8=f8,h8=Qr,g8="__lodash_hash_undefined__";function p8(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=h8&&r===void 0?g8:r,this}var m8=p8,y8=J3,v8=t8,b8=s8,_8=d8,C8=m8;function $1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}$1.prototype.clear=y8,$1.prototype.delete=v8,$1.prototype.get=b8,$1.prototype.has=_8,$1.prototype.set=C8;var x8=$1,Ua=x8,w8=Yr,$8=gi;function L8(){this.size=0,this.__data__={hash:new Ua,map:new($8||w8),string:new Ua}}var k8=L8;function S8(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var A8=S8,M8=A8;function T8(e,r){var i=e.__data__;return M8(r)?i[typeof r=="string"?"string":"hash"]:i.map}var Gr=T8,P8=Gr;function I8(e){var r=P8(this,e).delete(e);return this.size-=r?1:0,r}var O8=I8,B8=Gr;function E8(e){return B8(this,e).get(e)}var D8=E8,R8=Gr;function z8(e){return R8(this,e).has(e)}var F8=z8,N8=Gr;function Z8(e,r){var i=N8(this,e),o=i.size;return i.set(e,r),this.size+=i.size==o?0:1,this}var W8=Z8,K8=k8,U8=O8,H8=D8,j8=F8,Y8=W8;function L1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}L1.prototype.clear=K8,L1.prototype.delete=U8,L1.prototype.get=H8,L1.prototype.has=j8,L1.prototype.set=Y8;var Ha=L1,V8=Yr,Q8=gi,G8=Ha,q8=200;function X8(e,r){var i=this.__data__;if(i instanceof V8){var o=i.__data__;if(!Q8||o.length<q8-1)return o.push([e,r]),this.size=++i.size,this;i=this.__data__=new G8(o)}return i.set(e,r),this.size=i.size,this}var J8=X8,ec=Yr,tc=Z6,nc=K6,rc=H6,ic=Y6,oc=J8;function k1(e){var r=this.__data__=new ec(e);this.size=r.size}k1.prototype.clear=tc,k1.prototype.delete=nc,k1.prototype.get=rc,k1.prototype.has=ic,k1.prototype.set=oc;var ac=k1;function sc(e,r){for(var i=-1,o=e==null?0:e.length;++i<o&&r(e[i],i,e)!==!1;);return e}var lc=sc,cc=a1,uc=function(){try{var e=cc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fc=uc,ja=fc;function dc(e,r,i){r=="__proto__"&&ja?ja(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}var Ya=dc,hc=Ya,gc=Ba,pc=Object.prototype,mc=pc.hasOwnProperty;function yc(e,r,i){var o=e[r];(!(mc.call(e,r)&&gc(o,i))||i===void 0&&!(r in e))&&hc(e,r,i)}var pi=yc,vc=pi,bc=Ya;function _c(e,r,i,o){var s=!i;i||(i={});for(var l=-1,u=r.length;++l<u;){var f=r[l],h=o?o(i[f],e[f],f,i,e):void 0;h===void 0&&(h=e[f]),s?bc(i,f,h):vc(i,f,h)}return i}var qr=_c;function Cc(e,r){for(var i=-1,o=Array(e);++i<e;)o[i]=r(i);return o}var xc=Cc;function wc(e){return e!=null&&typeof e=="object"}var S1=wc,$c=hr,Lc=S1,kc="[object Arguments]";function Sc(e){return Lc(e)&&$c(e)==kc}var Ac=Sc,Va=Ac,Mc=S1,Qa=Object.prototype,Tc=Qa.hasOwnProperty,Pc=Qa.propertyIsEnumerable,Ic=Va(function(){return arguments}())?Va:function(e){return Mc(e)&&Tc.call(e,"callee")&&!Pc.call(e,"callee")},Oc=Ic,Bc=Array.isArray,A1=Bc,Xr={exports:{}};function Ec(){return!1}var Dc=Ec;Xr.exports,function(e,r){var i=yn,o=Dc,s=r&&!r.nodeType&&r,l=s&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===s,f=u?i.Buffer:void 0,h=f?f.isBuffer:void 0,y=h||o;e.exports=y}(Xr,Xr.exports);var Ga=Xr.exports,Rc=9007199254740991,zc=/^(?:0|[1-9]\d*)$/;function Fc(e,r){var i=typeof e;return r=r??Rc,!!r&&(i=="number"||i!="symbol"&&zc.test(e))&&e>-1&&e%1==0&&e<r}var qa=Fc,Nc=9007199254740991;function Zc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nc}var Xa=Zc,Wc=hr,Kc=Xa,Uc=S1,Hc="[object Arguments]",jc="[object Array]",Yc="[object Boolean]",Vc="[object Date]",Qc="[object Error]",Gc="[object Function]",qc="[object Map]",Xc="[object Number]",Jc="[object Object]",e7="[object RegExp]",t7="[object Set]",n7="[object String]",r7="[object WeakMap]",i7="[object ArrayBuffer]",o7="[object DataView]",a7="[object Float32Array]",s7="[object Float64Array]",l7="[object Int8Array]",c7="[object Int16Array]",u7="[object Int32Array]",f7="[object Uint8Array]",d7="[object Uint8ClampedArray]",h7="[object Uint16Array]",g7="[object Uint32Array]",je={};je[a7]=je[s7]=je[l7]=je[c7]=je[u7]=je[f7]=je[d7]=je[h7]=je[g7]=!0,je[Hc]=je[jc]=je[i7]=je[Yc]=je[o7]=je[Vc]=je[Qc]=je[Gc]=je[qc]=je[Xc]=je[Jc]=je[e7]=je[t7]=je[n7]=je[r7]=!1;function p7(e){return Uc(e)&&Kc(e.length)&&!!je[Wc(e)]}var m7=p7;function y7(e){return function(r){return e(r)}}var mi=y7,Jr={exports:{}};Jr.exports,function(e,r){var i=Ea,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l&&i.process,f=function(){try{var h=s&&s.require&&s.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}}();e.exports=f}(Jr,Jr.exports);var yi=Jr.exports,v7=m7,b7=mi,Ja=yi,es=Ja&&Ja.isTypedArray,_7=es?b7(es):v7,C7=_7,x7=xc,w7=Oc,$7=A1,L7=Ga,k7=qa,S7=C7,A7=Object.prototype,M7=A7.hasOwnProperty;function T7(e,r){var i=$7(e),o=!i&&w7(e),s=!i&&!o&&L7(e),l=!i&&!o&&!s&&S7(e),u=i||o||s||l,f=u?x7(e.length,String):[],h=f.length;for(var y in e)(r||M7.call(e,y))&&!(u&&(y=="length"||s&&(y=="offset"||y=="parent")||l&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||k7(y,h)))&&f.push(y);return f}var ts=T7,P7=Object.prototype;function I7(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||P7;return e===i}var vi=I7;function O7(e,r){return function(i){return e(r(i))}}var ns=O7,B7=ns,E7=B7(Object.keys,Object),D7=E7,R7=vi,z7=D7,F7=Object.prototype,N7=F7.hasOwnProperty;function Z7(e){if(!R7(e))return z7(e);var r=[];for(var i in Object(e))N7.call(e,i)&&i!="constructor"&&r.push(i);return r}var W7=Z7,K7=Na,U7=Xa;function H7(e){return e!=null&&U7(e.length)&&!K7(e)}var rs=H7,j7=ts,Y7=W7,V7=rs;function Q7(e){return V7(e)?j7(e):Y7(e)}var bi=Q7,G7=qr,q7=bi;function X7(e,r){return e&&G7(r,q7(r),e)}var J7=X7;function e4(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var t4=e4,n4=w1,r4=vi,i4=t4,o4=Object.prototype,a4=o4.hasOwnProperty;function s4(e){if(!n4(e))return i4(e);var r=r4(e),i=[];for(var o in e)o=="constructor"&&(r||!a4.call(e,o))||i.push(o);return i}var l4=s4,c4=ts,u4=l4,f4=rs;function d4(e){return f4(e)?c4(e,!0):u4(e)}var _i=d4,h4=qr,g4=_i;function p4(e,r){return e&&h4(r,g4(r),e)}var m4=p4,e0={exports:{}};e0.exports,function(e,r){var i=yn,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l?i.Buffer:void 0,f=u?u.allocUnsafe:void 0;function h(y,_){if(_)return y.slice();var v=y.length,L=f?f(v):new y.constructor(v);return y.copy(L),L}e.exports=h}(e0,e0.exports);var y4=e0.exports;function v4(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i<o;)r[i]=e[i];return r}var b4=v4;function _4(e,r){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var u=e[i];r(u,i,e)&&(l[s++]=u)}return l}var C4=_4;function x4(){return[]}var is=x4,w4=C4,$4=is,L4=Object.prototype,k4=L4.propertyIsEnumerable,os=Object.getOwnPropertySymbols,S4=os?function(e){return e==null?[]:(e=Object(e),w4(os(e),function(r){return k4.call(e,r)}))}:$4,Ci=S4,A4=qr,M4=Ci;function T4(e,r){return A4(e,M4(e),r)}var P4=T4;function I4(e,r){for(var i=-1,o=r.length,s=e.length;++i<o;)e[s+i]=r[i];return e}var as=I4,O4=ns,B4=O4(Object.getPrototypeOf,Object),ss=B4,E4=as,D4=ss,R4=Ci,z4=is,F4=Object.getOwnPropertySymbols,N4=F4?function(e){for(var r=[];e;)E4(r,R4(e)),e=D4(e);return r}:z4,ls=N4,Z4=qr,W4=ls;function K4(e,r){return Z4(e,W4(e),r)}var U4=K4,H4=as,j4=A1;function Y4(e,r,i){var o=r(e);return j4(e)?o:H4(o,i(e))}var cs=Y4,V4=cs,Q4=Ci,G4=bi;function q4(e){return V4(e,G4,Q4)}var X4=q4,J4=cs,eu=ls,tu=_i;function nu(e){return J4(e,tu,eu)}var ru=nu,iu=a1,ou=yn,au=iu(ou,"DataView"),su=au,lu=a1,cu=yn,uu=lu(cu,"Promise"),fu=uu,du=a1,hu=yn,gu=du(hu,"Set"),pu=gu,mu=a1,yu=yn,vu=mu(yu,"WeakMap"),bu=vu,xi=su,wi=gi,$i=fu,Li=pu,ki=bu,us=hr,M1=Wa,fs="[object Map]",_u="[object Object]",ds="[object Promise]",hs="[object Set]",gs="[object WeakMap]",ps="[object DataView]",Cu=M1(xi),xu=M1(wi),wu=M1($i),$u=M1(Li),Lu=M1(ki),s1=us;(xi&&s1(new xi(new ArrayBuffer(1)))!=ps||wi&&s1(new wi)!=fs||$i&&s1($i.resolve())!=ds||Li&&s1(new Li)!=hs||ki&&s1(new ki)!=gs)&&(s1=function(e){var r=us(e),i=r==_u?e.constructor:void 0,o=i?M1(i):"";if(o)switch(o){case Cu:return ps;case xu:return fs;case wu:return ds;case $u:return hs;case Lu:return gs}return r});var Si=s1,ku=Object.prototype,Su=ku.hasOwnProperty;function Au(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&Su.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Mu=Au,Tu=yn,Pu=Tu.Uint8Array,Iu=Pu,ms=Iu;function Ou(e){var r=new e.constructor(e.byteLength);return new ms(r).set(new ms(e)),r}var Ai=Ou,Bu=Ai;function Eu(e,r){var i=r?Bu(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Du=Eu,Ru=/\w*$/;function zu(e){var r=new e.constructor(e.source,Ru.exec(e));return r.lastIndex=e.lastIndex,r}var Fu=zu,ys=Vr,vs=ys?ys.prototype:void 0,bs=vs?vs.valueOf:void 0;function Nu(e){return bs?Object(bs.call(e)):{}}var Zu=Nu,Wu=Ai;function Ku(e,r){var i=r?Wu(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Uu=Ku,Hu=Ai,ju=Du,Yu=Fu,Vu=Zu,Qu=Uu,Gu="[object Boolean]",qu="[object Date]",Xu="[object Map]",Ju="[object Number]",ef="[object RegExp]",tf="[object Set]",nf="[object String]",rf="[object Symbol]",of="[object ArrayBuffer]",af="[object DataView]",sf="[object Float32Array]",lf="[object Float64Array]",cf="[object Int8Array]",uf="[object Int16Array]",ff="[object Int32Array]",df="[object Uint8Array]",hf="[object Uint8ClampedArray]",gf="[object Uint16Array]",pf="[object Uint32Array]";function mf(e,r,i){var o=e.constructor;switch(r){case of:return Hu(e);case Gu:case qu:return new o(+e);case af:return ju(e,i);case sf:case lf:case cf:case uf:case ff:case df:case hf:case gf:case pf:return Qu(e,i);case Xu:return new o;case Ju:case nf:return new o(e);case ef:return Yu(e);case tf:return new o;case rf:return Vu(e)}}var yf=mf,vf=w1,_s=Object.create,bf=function(){function e(){}return function(r){if(!vf(r))return{};if(_s)return _s(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),_f=bf,Cf=_f,xf=ss,wf=vi;function $f(e){return typeof e.constructor=="function"&&!wf(e)?Cf(xf(e)):{}}var Lf=$f,kf=Si,Sf=S1,Af="[object Map]";function Mf(e){return Sf(e)&&kf(e)==Af}var Tf=Mf,Pf=Tf,If=mi,Cs=yi,xs=Cs&&Cs.isMap,Of=xs?If(xs):Pf,Bf=Of,Ef=Si,Df=S1,Rf="[object Set]";function zf(e){return Df(e)&&Ef(e)==Rf}var Ff=zf,Nf=Ff,Zf=mi,ws=yi,$s=ws&&ws.isSet,Wf=$s?Zf($s):Nf,Kf=Wf,Uf=ac,Hf=lc,jf=pi,Yf=J7,Vf=m4,Qf=y4,Gf=b4,qf=P4,Xf=U4,Jf=X4,ed=ru,td=Si,nd=Mu,rd=yf,id=Lf,od=A1,ad=Ga,sd=Bf,ld=w1,cd=Kf,ud=bi,fd=_i,dd=1,hd=2,gd=4,Ls="[object Arguments]",pd="[object Array]",md="[object Boolean]",yd="[object Date]",vd="[object Error]",ks="[object Function]",bd="[object GeneratorFunction]",_d="[object Map]",Cd="[object Number]",Ss="[object Object]",xd="[object RegExp]",wd="[object Set]",$d="[object String]",Ld="[object Symbol]",kd="[object WeakMap]",Sd="[object ArrayBuffer]",Ad="[object DataView]",Md="[object Float32Array]",Td="[object Float64Array]",Pd="[object Int8Array]",Id="[object Int16Array]",Od="[object Int32Array]",Bd="[object Uint8Array]",Ed="[object Uint8ClampedArray]",Dd="[object Uint16Array]",Rd="[object Uint32Array]",Ke={};Ke[Ls]=Ke[pd]=Ke[Sd]=Ke[Ad]=Ke[md]=Ke[yd]=Ke[Md]=Ke[Td]=Ke[Pd]=Ke[Id]=Ke[Od]=Ke[_d]=Ke[Cd]=Ke[Ss]=Ke[xd]=Ke[wd]=Ke[$d]=Ke[Ld]=Ke[Bd]=Ke[Ed]=Ke[Dd]=Ke[Rd]=!0,Ke[vd]=Ke[ks]=Ke[kd]=!1;function t0(e,r,i,o,s,l){var u,f=r&dd,h=r&hd,y=r&gd;if(i&&(u=s?i(e,o,s,l):i(e)),u!==void 0)return u;if(!ld(e))return e;var _=od(e);if(_){if(u=nd(e),!f)return Gf(e,u)}else{var v=td(e),L=v==ks||v==bd;if(ad(e))return Qf(e,f);if(v==Ss||v==Ls||L&&!s){if(u=h||L?{}:id(e),!f)return h?Xf(e,Vf(u,e)):qf(e,Yf(u,e))}else{if(!Ke[v])return s?e:{};u=rd(e,v,f)}}l||(l=new Uf);var M=l.get(e);if(M)return M;l.set(e,u),cd(e)?e.forEach(function(A){u.add(t0(A,r,i,A,e,l))}):sd(e)&&e.forEach(function(A,C){u.set(C,t0(A,r,i,C,e,l))});var w=y?h?ed:Jf:h?fd:ud,T=_?void 0:w(e);return Hf(T||e,function(A,C){T&&(C=A,A=e[C]),jf(u,C,t0(A,r,i,C,e,l))}),u}var zd=t0,Fd=zd,Nd=1,Zd=4;function Wd(e){return Fd(e,Nd|Zd)}var Kd=Wd;const Ud=ri(Kd);var Hd=hr,jd=S1,Yd="[object Symbol]";function Vd(e){return typeof e=="symbol"||jd(e)&&Hd(e)==Yd}var Mi=Vd,Qd=A1,Gd=Mi,qd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xd=/^\w*$/;function Jd(e,r){if(Qd(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Gd(e)?!0:Xd.test(e)||!qd.test(e)||r!=null&&e in Object(r)}var eh=Jd,As=Ha,th="Expected a function";function Ti(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(th);var i=function(){var o=arguments,s=r?r.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var u=e.apply(this,o);return i.cache=l.set(s,u)||l,u};return i.cache=new(Ti.Cache||As),i}Ti.Cache=As;var nh=Ti,rh=nh,ih=500;function oh(e){var r=rh(e,function(o){return i.size===ih&&i.clear(),o}),i=r.cache;return r}var ah=oh,sh=ah,lh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ch=/\\(\\)?/g,uh=sh(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(lh,function(i,o,s,l){r.push(s?l.replace(ch,"$1"):o||i)}),r}),fh=uh;function dh(e,r){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=r(e[i],i,e);return s}var hh=dh,Ms=Vr,gh=hh,ph=A1,mh=Mi,yh=1/0,Ts=Ms?Ms.prototype:void 0,Ps=Ts?Ts.toString:void 0;function Is(e){if(typeof e=="string")return e;if(ph(e))return gh(e,Is)+"";if(mh(e))return Ps?Ps.call(e):"";var r=e+"";return r=="0"&&1/e==-yh?"-0":r}var vh=Is,bh=vh;function _h(e){return e==null?"":bh(e)}var Ch=_h,xh=A1,wh=eh,$h=fh,Lh=Ch;function kh(e,r){return xh(e)?e:wh(e,r)?[e]:$h(Lh(e))}var Sh=kh,Ah=Mi,Mh=1/0;function Th(e){if(typeof e=="string"||Ah(e))return e;var r=e+"";return r=="0"&&1/e==-Mh?"-0":r}var Ph=Th,Ih=pi,Oh=Sh,Bh=qa,Os=w1,Eh=Ph;function Dh(e,r,i,o){if(!Os(e))return e;r=Oh(r,e);for(var s=-1,l=r.length,u=l-1,f=e;f!=null&&++s<l;){var h=Eh(r[s]),y=i;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(s!=u){var _=f[h];y=o?o(_,h,f):void 0,y===void 0&&(y=Os(_)?_:Bh(r[s+1])?[]:{})}Ih(f,h,y),f=f[h]}return e}var Rh=Dh,zh=Rh;function Fh(e,r,i){return e==null?e:zh(e,r,i)}var Nh=Fh;const T1=ri(Nh);var Zh=B("<button>");const Wh=e=>(()=>{var r=Zh();return Kn(r,"click",e.onClick,!0),W(r,()=>e.children),Te(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=Ut(r,o,i.e),s!==i.t&&an(r,i.t=s),i},{e:void 0,t:void 0}),r})();wt(["click"]);var Kh=B('<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">'),Uh=B('<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">'),Hh=B("<div>"),jh=B("<span class=label>");const Yh=()=>Kh(),Vh=()=>Uh(),Bs=e=>{const[r,i]=Y(e.checked??!1);return rn(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=Hh();return o.$$click=s=>{const l=!r();e.onChange&&e.onChange(l),i(l)},W(o,(()=>{var s=qe(()=>!!r());return()=>s()?j(Yh,{}):j(Vh,{})})(),null),W(o,(()=>{var s=qe(()=>!!e.label);return()=>s()&&(()=>{var l=jh();return W(l,()=>e.label),l})()})(),null),Te(s=>{var l=e.style,u=`klinecharts-pro-checkbox ${r()&&"checked"||""} ${e.class||""}`;return s.e=Ut(o,l,s.e),u!==s.t&&an(o,s.t=u),s},{e:void 0,t:void 0}),o})()};wt(["click"]);var Qh=B("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const Es=()=>Qh();var Gh=B('<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 qh=()=>Gh();var Xh=B("<ul>"),Jh=B("<li>");const n0=e=>(()=>{var r=Xh();return W(r,j(We,{get when(){return e.loading},get children(){return j(Es,{})}}),null),W(r,j(We,{get when(){var i;return qe(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return j(qh,{})}}),null),W(r,j(We,{get when(){return e.children},get children(){return e.children}}),null),W(r,j(We,{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))??Jh()})}}),null),Te(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=Ut(r,o,i.e),s!==i.t&&an(r,i.t=s),i},{e:void 0,t:void 0}),r})();var eg=B('<div class=klinecharts-pro-modal><div class=inner><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>'),tg=B("<div class=button-container>");const l1=e=>{const r=i=>{var o;i.target&&i.target.classList.contains("klinecharts-pro-modal")&&((o=e.onClose)==null||o.call(e))};return(()=>{var i=eg(),o=i.firstChild,s=o.firstChild,l=s.firstChild,u=s.nextSibling;return i.$$click=r,W(s,()=>e.title,l),Kn(l,"click",e.onClose,!0),W(u,()=>e.children),W(o,(()=>{var f=qe(()=>!!(e.buttons&&e.buttons.length>0));return()=>f()&&(()=>{var h=tg();return W(h,()=>e.buttons.map(y=>j(Wh,Pa(y,{get children(){return y.children}})))),h})()})(),null),i})()};wt(["click"]);var ng=B("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),rg=B("<div class=drop-down-container><ul>"),ig=B("<li>");const Pi=e=>{const[r,i]=Y(!1);return(()=>{var o=ng(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",u=>{i(!1)}),o.$$click=u=>{i(f=>!f)},W(l,()=>e.value),W(o,(()=>{var u=qe(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>u()&&(()=>{var f=rg(),h=f.firstChild;return W(h,()=>e.dataSource.map(y=>{const v=y[e.valueKey??"text"]??y;return(()=>{var L=ig();return L.$$click=M=>{var w;M.stopPropagation(),e.value!==v&&((w=e.onSelected)==null||w.call(e,y)),i(!1)},W(L,v),L})()})),f})()})(),null),Te(u=>{var f=e.style,h=`klinecharts-pro-select ${e.class??""} ${r()?"klinecharts-pro-select-show":""}`;return u.e=Ut(o,f,u.e),h!==u.t&&an(o,u.t=h),u},{e:void 0,t:void 0}),o})()};wt(["click"]);var og=B("<span class=prefix>"),ag=B("<span class=suffix>"),sg=B("<div><input id=myInput class=value>");const[lg,WS]=Y("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),gr=e=>{const r=Pa({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=Y("normal"),l=u=>{u&&u.focus()};return rn(()=>{l(document.querySelector("#myInput"))}),(()=>{var u=sg(),f=u.firstChild;u.$$click=()=>{i==null||i.focus()},W(u,j(We,{get when(){return r.prefix},get children(){var y=og();return W(y,()=>r.prefix),y}}),f),Kn(f,"keydown",r.onKeyDown,!0),f.addEventListener("change",y=>{var v,L;const _=y.target.value;if("precision"in r){let M;const w=Math.max(0,Math.floor(r.precision));w<=0?M=new RegExp(/^[1-9]\d*$/):M=new RegExp("^\\d+\\.?\\d{0,"+w+"}$"),(_===""||M.test(_)&&+_>=r.min&&+_<=r.max)&&((v=r.onChange)==null||v.call(r,_===""?_:+_))}else(L=r.onChange)==null||L.call(r,_)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var h=i;return typeof h=="function"?fr(h,f):i=f,W(u,j(We,{get when(){return r.suffix},get children(){var y=ag();return W(y,()=>r.suffix),y}}),null),Te(y=>{var _=r.style,v=`${lg()}${r.class??""}`,L=o(),M=r.placeholder??"",w=r.focus===!0?r.focus:!1;return y.e=Ut(u,_,y.e),v!==y.t&&an(u,y.t=v),L!==y.a&&rt(u,"data-status",y.a=L),M!==y.o&&rt(f,"placeholder",y.o=M),w!==y.i&&(f.autofocus=y.i=w),y},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>f.value=r.value),u})()};wt(["click","keydown"]);var cg=B("<div><i class=thumb>");const ug=e=>(()=>{var r=cg();return r.$$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=Ut(r,o,i.e),s!==i.t&&an(r,i.t=s),i},{e:void 0,t:void 0}),r})();wt(["click"]);const{min:fg,max:dg}=Math,c1=(e,r=0,i=1)=>fg(dg(r,e),i),Ii=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=c1(e[r],0,255)):r===3&&(e[r]=c1(e[r],0,1));return e},Ds={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Ds[`[object ${e}]`]=e.toLowerCase();function ke(e){return Ds[Object.prototype.toString.call(e)]||"object"}const Ce=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):ke(e[0])=="object"&&r?r.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),P1=e=>{if(e.length<2)return null;const r=e.length-1;return ke(e[r])=="string"?e[r].toLowerCase():null},{PI:r0,min:Rs,max:zs}=Math,Ht=e=>Math.round(e*100)/100,Oi=e=>Math.round(e*100)/100,Sn=r0*2,Bi=r0/3,hg=r0/180,gg=180/r0;function Fs(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const be={format:{},autodetect:[]};let V=class{constructor(...r){const i=this;if(ke(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=P1(r),s=!1;if(!o){s=!0,be.sorted||(be.autodetect=be.autodetect.sort((l,u)=>u.p-l.p),be.sorted=!0);for(let l of be.autodetect)if(o=l.test(...r),o)break}if(be.format[o]){const l=be.format[o].apply(null,s?r:r.slice(0,-1));i._rgb=Ii(l)}else throw new Error("unknown format: "+r);i._rgb.length===3&&i._rgb.push(1)}toString(){return ke(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const pg="3.2.0",me=(...e)=>new V(...e);me.version=pg;const I1={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"},mg=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,yg=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ns=e=>{if(e.match(mg)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),i=r>>16,o=r>>8&255,s=r&255;return[i,o,s,1]}if(e.match(yg)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),i=r>>24&255,o=r>>16&255,s=r>>8&255,l=Math.round((r&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:i0}=Math,Zs=(...e)=>{let[r,i,o,s]=Ce(e,"rgba"),l=P1(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),r=i0(r),i=i0(i),o=i0(o);let f="000000"+(r<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let h="0"+i0(s*255).toString(16);switch(h=h.substr(h.length-2),l.toLowerCase()){case"rgba":return`#${f}${h}`;case"argb":return`#${h}${f}`;default:return`#${f}`}};V.prototype.name=function(){const e=Zs(this._rgb,"rgb");for(let r of Object.keys(I1))if(I1[r]===e)return r.toLowerCase();return e},be.format.named=e=>{if(e=e.toLowerCase(),I1[e])return Ns(I1[e]);throw new Error("unknown color name: "+e)},be.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&ke(e)==="string"&&I1[e.toLowerCase()])return"named"}}),V.prototype.alpha=function(e,r=!1){return e!==void 0&&ke(e)==="number"?r?(this._rgb[3]=e,this):new V([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},V.prototype.clipped=function(){return this._rgb._clipped||!1};const vn={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}},vg=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 An(e){const r=vg.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);vn.labWhitePoint=e,vn.Xn=r[0],vn.Zn=r[1]}function pr(){return vn.labWhitePoint}const Ei=(...e)=>{e=Ce(e,"lab");const[r,i,o]=e,[s,l,u]=bg(r,i,o),[f,h,y]=Ws(s,l,u);return[f,h,y,e.length>3?e[3]:1]},bg=(e,r,i)=>{const{kE:o,kK:s,kKE:l,Xn:u,Yn:f,Zn:h}=vn,y=(e+16)/116,_=.002*r+y,v=y-.005*i,L=_*_*_,M=v*v*v,w=L>o?L:(116*_-16)/s,T=e>l?Math.pow((e+16)/116,3):e/s,A=M>o?M:(116*v-16)/s,C=w*u,I=T*f,R=A*h;return[C,I,R]},Di=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},Ws=(e,r,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:u,Xn:f,Yn:h,Zn:y}=vn,_=f*o.m00+h*o.m10+y*o.m20,v=f*o.m01+h*o.m11+y*o.m21,L=f*o.m02+h*o.m12+y*o.m22,M=u.X*o.m00+u.Y*o.m10+u.Z*o.m20,w=u.X*o.m01+u.Y*o.m11+u.Z*o.m21,T=u.X*o.m02+u.Y*o.m12+u.Z*o.m22,A=(e*o.m00+r*o.m10+i*o.m20)*(M/_),C=(e*o.m01+r*o.m11+i*o.m21)*(w/v),I=(e*o.m02+r*o.m12+i*o.m22)*(T/L),R=A*s.m00+C*s.m10+I*s.m20,$=A*s.m01+C*s.m11+I*s.m21,Z=A*s.m02+C*s.m12+I*s.m22,X=Di(R*l.m00+$*l.m10+Z*l.m20),Q=Di(R*l.m01+$*l.m11+Z*l.m21),O=Di(R*l.m02+$*l.m12+Z*l.m22);return[X*255,Q*255,O*255]},Ri=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),[l,u,f]=Ks(r,i,o),[h,y,_]=_g(l,u,f);return[h,y,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function _g(e,r,i){const{Xn:o,Yn:s,Zn:l,kE:u,kK:f}=vn,h=e/o,y=r/s,_=i/l,v=h>u?Math.pow(h,1/3):(f*h+16)/116,L=y>u?Math.pow(y,1/3):(f*y+16)/116,M=_>u?Math.pow(_,1/3):(f*_+16)/116;return[116*L-16,500*(v-L),200*(L-M)]}function zi(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Ks=(e,r,i)=>{e=zi(e/255),r=zi(r/255),i=zi(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:u,Yn:f,Zn:h,As:y,Bs:_,Cs:v}=vn;let L=e*o.m00+r*o.m10+i*o.m20,M=e*o.m01+r*o.m11+i*o.m21,w=e*o.m02+r*o.m12+i*o.m22;const T=u*s.m00+f*s.m10+h*s.m20,A=u*s.m01+f*s.m11+h*s.m21,C=u*s.m02+f*s.m12+h*s.m22;let I=L*s.m00+M*s.m10+w*s.m20,R=L*s.m01+M*s.m11+w*s.m21,$=L*s.m02+M*s.m12+w*s.m22;return I*=T/y,R*=A/_,$*=C/v,L=I*l.m00+R*l.m10+$*l.m20,M=I*l.m01+R*l.m11+$*l.m21,w=I*l.m02+R*l.m12+$*l.m22,[L,M,w]};V.prototype.lab=function(){return Ri(this._rgb)},Object.assign(me,{lab:(...e)=>new V(...e,"lab"),getLabWhitePoint:pr,setLabWhitePoint:An}),be.format.lab=Ei,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"lab"),ke(e)==="array"&&e.length===3)return"lab"}}),V.prototype.darken=function(e=1){const r=this,i=r.lab();return i[0]-=vn.Kn*e,new V(i,"lab").alpha(r.alpha(),!0)},V.prototype.brighten=function(e=1){return this.darken(-e)},V.prototype.darker=V.prototype.darken,V.prototype.brighter=V.prototype.brighten,V.prototype.get=function(e){const[r,i]=e.split("."),o=this[r]();if(i){const s=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${r}`)}else return o};const{pow:Cg}=Math,xg=1e-7,wg=20;V.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&ke(e)==="number"){if(e===0)return new V([0,0,0,this._rgb[3]],"rgb");if(e===1)return new V([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=wg;const s=(u,f)=>{const h=u.interpolate(f,.5,r),y=h.luminance();return Math.abs(e-y)<xg||!o--?h:y>e?s(u,h):s(h,f)},l=(i>e?s(new V([0,0,0]),this):s(this,new V([255,255,255]))).rgb();return new V([...l,this._rgb[3]])}return $g(...this._rgb.slice(0,3))};const $g=(e,r,i)=>(e=Fi(e),r=Fi(r),i=Fi(i),.2126*e+.7152*r+.0722*i),Fi=e=>(e/=255,e<=.03928?e/12.92:Cg((e+.055)/1.055,2.4)),bt={},O1=(e,r,i=.5,...o)=>{let s=o[0]||"lrgb";if(!bt[s]&&!o.length&&(s=Object.keys(bt)[0]),!bt[s])throw new Error(`interpolation mode ${s} is not defined`);return ke(e)!=="object"&&(e=new V(e)),ke(r)!=="object"&&(r=new V(r)),bt[s](e,r,i).alpha(e.alpha()+i*(r.alpha()-e.alpha()))};V.prototype.mix=V.prototype.interpolate=function(e,r=.5,...i){return O1(this,e,r,...i)},V.prototype.premultiply=function(e=!1){const r=this._rgb,i=r[3];return e?(this._rgb=[r[0]*i,r[1]*i,r[2]*i,i],this):new V([r[0]*i,r[1]*i,r[2]*i,i],"rgb")};const{sin:Lg,cos:kg}=Math,Us=(...e)=>{let[r,i,o]=Ce(e,"lch");return isNaN(o)&&(o=0),o=o*hg,[r,kg(o)*i,Lg(o)*i]},Ni=(...e)=>{e=Ce(e,"lch");const[r,i,o]=e,[s,l,u]=Us(r,i,o),[f,h,y]=Ei(s,l,u);return[f,h,y,e.length>3?e[3]:1]},Sg=(...e)=>{const r=Fs(Ce(e,"hcl"));return Ni(...r)},{sqrt:Ag,atan2:Mg,round:Tg}=Math,Hs=(...e)=>{const[r,i,o]=Ce(e,"lab"),s=Ag(i*i+o*o);let l=(Mg(o,i)*gg+360)%360;return Tg(s*1e4)===0&&(l=Number.NaN),[r,s,l]},Zi=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),[l,u,f]=Ri(r,i,o),[h,y,_]=Hs(l,u,f);return[h,y,_,...s.length>0&&s[0]<1?[s[0]]:[]]};V.prototype.lch=function(){return Zi(this._rgb)},V.prototype.hcl=function(){return Fs(Zi(this._rgb))},Object.assign(me,{lch:(...e)=>new V(...e,"lch"),hcl:(...e)=>new V(...e,"hcl")}),be.format.lch=Ni,be.format.hcl=Sg,["lch","hcl"].forEach(e=>be.autodetect.push({p:2,test:(...r)=>{if(r=Ce(r,e),ke(r)==="array"&&r.length===3)return e}})),V.prototype.saturate=function(e=1){const r=this,i=r.lch();return i[1]+=vn.Kn*e,i[1]<0&&(i[1]=0),new V(i,"lch").alpha(r.alpha(),!0)},V.prototype.desaturate=function(e=1){return this.saturate(-e)},V.prototype.set=function(e,r,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const u=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(u>-1){if(ke(r)=="string")switch(r.charAt(0)){case"+":l[u]+=+r;break;case"-":l[u]+=+r;break;case"*":l[u]*=+r.substr(1);break;case"/":l[u]/=+r.substr(1);break;default:l[u]=+r}else if(ke(r)==="number")l[u]=r;else throw new Error("unsupported value for Color.set");const f=new V(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},V.prototype.tint=function(e=.5,...r){return O1(this,"white",e,...r)},V.prototype.shade=function(e=.5,...r){return O1(this,"black",e,...r)};const Pg=(e,r,i)=>{const o=e._rgb,s=r._rgb;return new V(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};bt.rgb=Pg;const{sqrt:Wi,pow:B1}=Math,Ig=(e,r,i)=>{const[o,s,l]=e._rgb,[u,f,h]=r._rgb;return new V(Wi(B1(o,2)*(1-i)+B1(u,2)*i),Wi(B1(s,2)*(1-i)+B1(f,2)*i),Wi(B1(l,2)*(1-i)+B1(h,2)*i),"rgb")};bt.lrgb=Ig;const Og=(e,r,i)=>{const o=e.lab(),s=r.lab();return new V(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};bt.lab=Og;const E1=(e,r,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=r.hsl()):o==="hsv"?(s=e.hsv(),l=r.hsv()):o==="hcg"?(s=e.hcg(),l=r.hcg()):o==="hsi"?(s=e.hsi(),l=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=r.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=r.oklch().reverse());let u,f,h,y,_,v;(o.substr(0,1)==="h"||o==="oklch")&&([u,h,_]=s,[f,y,v]=l);let L,M,w,T;return!isNaN(u)&&!isNaN(f)?(f>u&&f-u>180?T=f-(u+360):f<u&&u-f>180?T=f+360-u:T=f-u,M=u+i*T):isNaN(u)?isNaN(f)?M=Number.NaN:(M=f,(_==1||_==0)&&o!="hsv"&&(L=y)):(M=u,(v==1||v==0)&&o!="hsv"&&(L=h)),L===void 0&&(L=h+i*(y-h)),w=_+i*(v-_),o==="oklch"?new V([w,L,M],o):new V([M,L,w],o)},js=(e,r,i)=>E1(e,r,i,"lch");bt.lch=js,bt.hcl=js;const Bg=e=>{if(ke(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,i=e>>8&255,o=e&255;return[r,i,o,1]}throw new Error("unknown num color: "+e)},Eg=(...e)=>{const[r,i,o]=Ce(e,"rgb");return(r<<16)+(i<<8)+o};V.prototype.num=function(){return Eg(this._rgb)},Object.assign(me,{num:(...e)=>new V(...e,"num")}),be.format.num=Bg,be.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&ke(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const Dg=(e,r,i)=>{const o=e.num(),s=r.num();return new V(o+i*(s-o),"num")};bt.num=Dg;const{floor:Rg}=Math,zg=(...e)=>{e=Ce(e,"hcg");let[r,i,o]=e,s,l,u;o=o*255;const f=i*255;if(i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const h=Rg(r),y=r-h,_=o*(1-i),v=_+f*(1-y),L=_+f*y,M=_+f;switch(h){case 0:[s,l,u]=[M,L,_];break;case 1:[s,l,u]=[v,M,_];break;case 2:[s,l,u]=[_,M,L];break;case 3:[s,l,u]=[_,v,M];break;case 4:[s,l,u]=[L,_,M];break;case 5:[s,l,u]=[M,_,v];break}}return[s,l,u,e.length>3?e[3]:1]},Fg=(...e)=>{const[r,i,o]=Ce(e,"rgb"),s=Rs(r,i,o),l=zs(r,i,o),u=l-s,f=u*100/255,h=s/(255-u)*100;let y;return u===0?y=Number.NaN:(r===l&&(y=(i-o)/u),i===l&&(y=2+(o-r)/u),o===l&&(y=4+(r-i)/u),y*=60,y<0&&(y+=360)),[y,f,h]};V.prototype.hcg=function(){return Fg(this._rgb)};const Ng=(...e)=>new V(...e,"hcg");me.hcg=Ng,be.format.hcg=zg,be.autodetect.push({p:1,test:(...e)=>{if(e=Ce(e,"hcg"),ke(e)==="array"&&e.length===3)return"hcg"}});const Zg=(e,r,i)=>E1(e,r,i,"hcg");bt.hcg=Zg;const{cos:D1}=Math,Wg=(...e)=>{e=Ce(e,"hsi");let[r,i,o]=e,s,l,u;return isNaN(r)&&(r=0),isNaN(i)&&(i=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(u=(1-i)/3,s=(1+i*D1(Sn*r)/D1(Bi-Sn*r))/3,l=1-(u+s)):r<2/3?(r-=1/3,s=(1-i)/3,l=(1+i*D1(Sn*r)/D1(Bi-Sn*r))/3,u=1-(s+l)):(r-=2/3,l=(1-i)/3,u=(1+i*D1(Sn*r)/D1(Bi-Sn*r))/3,s=1-(l+u)),s=c1(o*s*3),l=c1(o*l*3),u=c1(o*u*3),[s*255,l*255,u*255,e.length>3?e[3]:1]},{min:Kg,sqrt:Ug,acos:Hg}=Math,jg=(...e)=>{let[r,i,o]=Ce(e,"rgb");r/=255,i/=255,o/=255;let s;const l=Kg(r,i,o),u=(r+i+o)/3,f=u>0?1-l/u:0;return f===0?s=NaN:(s=(r-i+(r-o))/2,s/=Ug((r-i)*(r-i)+(r-o)*(i-o)),s=Hg(s),o>i&&(s=Sn-s),s/=Sn),[s*360,f,u]};V.prototype.hsi=function(){return jg(this._rgb)};const Yg=(...e)=>new V(...e,"hsi");me.hsi=Yg,be.format.hsi=Wg,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"hsi"),ke(e)==="array"&&e.length===3)return"hsi"}});const Vg=(e,r,i)=>E1(e,r,i,"hsi");bt.hsi=Vg;const Ki=(...e)=>{e=Ce(e,"hsl");const[r,i,o]=e;let s,l,u;if(i===0)s=l=u=o*255;else{const f=[0,0,0],h=[0,0,0],y=o<.5?o*(1+i):o+i-o*i,_=2*o-y,v=r/360;f[0]=v+1/3,f[1]=v,f[2]=v-1/3;for(let L=0;L<3;L++)f[L]<0&&(f[L]+=1),f[L]>1&&(f[L]-=1),6*f[L]<1?h[L]=_+(y-_)*6*f[L]:2*f[L]<1?h[L]=y:3*f[L]<2?h[L]=_+(y-_)*(2/3-f[L])*6:h[L]=_;[s,l,u]=[h[0]*255,h[1]*255,h[2]*255]}return e.length>3?[s,l,u,e[3]]:[s,l,u,1]},Ys=(...e)=>{e=Ce(e,"rgba");let[r,i,o]=e;r/=255,i/=255,o/=255;const s=Rs(r,i,o),l=zs(r,i,o),u=(l+s)/2;let f,h;return l===s?(f=0,h=Number.NaN):f=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),r==l?h=(i-o)/(l-s):i==l?h=2+(o-r)/(l-s):o==l&&(h=4+(r-i)/(l-s)),h*=60,h<0&&(h+=360),e.length>3&&e[3]!==void 0?[h,f,u,e[3]]:[h,f,u]};V.prototype.hsl=function(){return Ys(this._rgb)};const Qg=(...e)=>new V(...e,"hsl");me.hsl=Qg,be.format.hsl=Ki,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"hsl"),ke(e)==="array"&&e.length===3)return"hsl"}});const Gg=(e,r,i)=>E1(e,r,i,"hsl");bt.hsl=Gg;const{floor:qg}=Math,Xg=(...e)=>{e=Ce(e,"hsv");let[r,i,o]=e,s,l,u;if(o*=255,i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const f=qg(r),h=r-f,y=o*(1-i),_=o*(1-i*h),v=o*(1-i*(1-h));switch(f){case 0:[s,l,u]=[o,v,y];break;case 1:[s,l,u]=[_,o,y];break;case 2:[s,l,u]=[y,o,v];break;case 3:[s,l,u]=[y,_,o];break;case 4:[s,l,u]=[v,y,o];break;case 5:[s,l,u]=[o,y,_];break}}return[s,l,u,e.length>3?e[3]:1]},{min:Jg,max:ep}=Math,tp=(...e)=>{e=Ce(e,"rgb");let[r,i,o]=e;const s=Jg(r,i,o),l=ep(r,i,o),u=l-s;let f,h,y;return y=l/255,l===0?(f=Number.NaN,h=0):(h=u/l,r===l&&(f=(i-o)/u),i===l&&(f=2+(o-r)/u),o===l&&(f=4+(r-i)/u),f*=60,f<0&&(f+=360)),[f,h,y]};V.prototype.hsv=function(){return tp(this._rgb)};const np=(...e)=>new V(...e,"hsv");me.hsv=np,be.format.hsv=Xg,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"hsv"),ke(e)==="array"&&e.length===3)return"hsv"}});const rp=(e,r,i)=>E1(e,r,i,"hsv");bt.hsv=rp;function o0(e,r){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(u=>[u]));let o=r[0].length,s=r[0].map((u,f)=>r.map(h=>h[f])),l=e.map(u=>s.map(f=>Array.isArray(u)?u.reduce((h,y,_)=>h+y*(f[_]||0),0):f.reduce((h,y)=>h+y*u,0)));return i===1&&(l=l[0]),o===1?l.map(u=>u[0]):l}const Ui=(...e)=>{e=Ce(e,"lab");const[r,i,o,...s]=e,[l,u,f]=ip([r,i,o]),[h,y,_]=Ws(l,u,f);return[h,y,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function ip(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=o0(i,e);return o0(r,o.map(s=>s**3))}const Hi=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),l=Ks(r,i,o);return[...op(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function op(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=o0(r,e);return o0(i,o.map(s=>Math.cbrt(s)))}V.prototype.oklab=function(){return Hi(this._rgb)},Object.assign(me,{oklab:(...e)=>new V(...e,"oklab")}),be.format.oklab=Ui,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"oklab"),ke(e)==="array"&&e.length===3)return"oklab"}});const ap=(e,r,i)=>{const o=e.oklab(),s=r.oklab();return new V(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};bt.oklab=ap;const sp=(e,r,i)=>E1(e,r,i,"oklch");bt.oklch=sp;const{pow:ji,sqrt:Yi,PI:Vi,cos:Vs,sin:Qs,atan2:lp}=Math,cp=(e,r="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(v,L){return v+L});if(i.forEach((v,L)=>{i[L]*=s}),e=e.map(v=>new V(v)),r==="lrgb")return up(e,i);const l=e.shift(),u=l.get(r),f=[];let h=0,y=0;for(let v=0;v<u.length;v++)if(u[v]=(u[v]||0)*i[0],f.push(isNaN(u[v])?0:i[0]),r.charAt(v)==="h"&&!isNaN(u[v])){const L=u[v]/180*Vi;h+=Vs(L)*i[0],y+=Qs(L)*i[0]}let _=l.alpha()*i[0];e.forEach((v,L)=>{const M=v.get(r);_+=v.alpha()*i[L+1];for(let w=0;w<u.length;w++)if(!isNaN(M[w]))if(f[w]+=i[L+1],r.charAt(w)==="h"){const T=M[w]/180*Vi;h+=Vs(T)*i[L+1],y+=Qs(T)*i[L+1]}else u[w]+=M[w]*i[L+1]});for(let v=0;v<u.length;v++)if(r.charAt(v)==="h"){let L=lp(y/f[v],h/f[v])/Vi*180;for(;L<0;)L+=360;for(;L>=360;)L-=360;u[v]=L}else u[v]=u[v]/f[v];return _/=o,new V(u,r).alpha(_>.99999?1:_,!0)},up=(e,r)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],u=r[s]/i,f=l._rgb;o[0]+=ji(f[0],2)*u,o[1]+=ji(f[1],2)*u,o[2]+=ji(f[2],2)*u,o[3]+=f[3]*u}return o[0]=Yi(o[0]),o[1]=Yi(o[1]),o[2]=Yi(o[2]),o[3]>.9999999&&(o[3]=1),new V(Ii(o))},{pow:fp}=Math;function a0(e){let r="rgb",i=me("#ccc"),o=0,s=[0,1],l=[0,1],u=[],f=[0,0],h=!1,y=[],_=!1,v=0,L=1,M=!1,w={},T=!0,A=1;const C=function(O){if(O=O||["#fff","#000"],O&&ke(O)==="string"&&me.brewer&&me.brewer[O.toLowerCase()]&&(O=me.brewer[O.toLowerCase()]),ke(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(let z=0;z<O.length;z++)O[z]=me(O[z]);u.length=0;for(let z=0;z<O.length;z++)u.push(z/(O.length-1))}return X(),y=O},I=function(O){if(h!=null){const z=h.length-1;let G=0;for(;G<z&&O>=h[G];)G++;return G-1}return 0};let R=O=>O,$=O=>O;const Z=function(O,z){let G,q;if(z==null&&(z=!1),isNaN(O)||O===null)return i;z?q=O:h&&h.length>2?q=I(O)/(h.length-2):L!==v?q=(O-v)/(L-v):q=1,q=$(q),z||(q=R(q)),A!==1&&(q=fp(q,A)),q=f[0]+q*(1-f[0]-f[1]),q=c1(q,0,1);const U=Math.floor(q*1e4);if(T&&w[U])G=w[U];else{if(ke(y)==="array")for(let H=0;H<u.length;H++){const D=u[H];if(q<=D){G=y[H];break}if(q>=D&&H===u.length-1){G=y[H];break}if(q>D&&q<u[H+1]){q=(q-D)/(u[H+1]-D),G=me.interpolate(y[H],y[H+1],q,r);break}}else ke(y)==="function"&&(G=y(q));T&&(w[U]=G)}return G};var X=()=>w={};C(e);const Q=function(O){const z=me(Z(O));return _&&z[_]?z[_]():z};return Q.classes=function(O){if(O!=null){if(ke(O)==="array")h=O,s=[O[0],O[O.length-1]];else{const z=me.analyze(s);O===0?h=[z.min,z.max]:h=me.limits(z,"e",O)}return Q}return h},Q.domain=function(O){if(!arguments.length)return l;l=O.slice(0),v=O[0],L=O[O.length-1],u=[];const z=y.length;if(O.length===z&&v!==L)for(let G of Array.from(O))u.push((G-v)/(L-v));else{for(let G=0;G<z;G++)u.push(G/(z-1));if(O.length>2){const G=O.map((U,H)=>H/(O.length-1)),q=O.map(U=>(U-v)/(L-v));q.every((U,H)=>G[H]===U)||($=U=>{if(U<=0||U>=1)return U;let H=0;for(;U>=q[H+1];)H++;const D=(U-q[H])/(q[H+1]-q[H]);return G[H]+D*(G[H+1]-G[H])})}}return s=[v,L],Q},Q.mode=function(O){return arguments.length?(r=O,X(),Q):r},Q.range=function(O,z){return C(O),Q},Q.out=function(O){return _=O,Q},Q.spread=function(O){return arguments.length?(o=O,Q):o},Q.correctLightness=function(O){return O==null&&(O=!0),M=O,X(),M?R=function(z){const G=Z(0,!0).lab()[0],q=Z(1,!0).lab()[0],U=G>q;let H=Z(z,!0).lab()[0];const D=G+(q-G)*z;let ee=H-D,ge=0,de=1,he=20;for(;Math.abs(ee)>.01&&he-- >0;)(function(){return U&&(ee*=-1),ee<0?(ge=z,z+=(de-z)*.5):(de=z,z+=(ge-z)*.5),H=Z(z,!0).lab()[0],ee=H-D})();return z}:R=z=>z,Q},Q.padding=function(O){return O!=null?(ke(O)==="number"&&(O=[O,O]),f=O,Q):f},Q.colors=function(O,z){arguments.length<2&&(z="hex");let G=[];if(arguments.length===0)G=y.slice(0);else if(O===1)G=[Q(.5)];else if(O>1){const q=s[0],U=s[1]-q;G=dp(0,O,!1).map(H=>Q(q+H/(O-1)*U))}else{e=[];let q=[];if(h&&h.length>2)for(let U=1,H=h.length,D=1<=H;D?U<H:U>H;D?U++:U--)q.push((h[U-1]+h[U])*.5);else q=s;G=q.map(U=>Q(U))}return me[z]&&(G=G.map(q=>q[z]())),G},Q.cache=function(O){return O!=null?(T=O,Q):T},Q.gamma=function(O){return O!=null?(A=O,Q):A},Q.nodata=function(O){return O!=null?(i=me(O),Q):i},Q}function dp(e,r,i){let o=[],s=e<r,l=i?s?r+1:r-1:r;for(let u=e;s?u<l:u>l;s?u++:u--)o.push(u);return o}const hp=function(e){let r=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=r.length;s++)o[s]=(r[s]||0)+r[s-1];r=o}return r},gp=function(e){let r,i,o,s;if(e=e.map(l=>new V(l)),e.length===2)[i,o]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new V(u,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new V(u,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(u=>u.lab()),r=function(u){const f=[0,1,2].map(h=>(1-u)*(1-u)*(1-u)*i[h]+3*(1-u)*(1-u)*u*o[h]+3*(1-u)*u*u*s[h]+u*u*u*l[h]);return new V(f,"lab")}}else if(e.length>=5){let l,u,f;l=e.map(h=>h.lab()),f=e.length-1,u=hp(f),r=function(h){const y=1-h,_=[0,1,2].map(v=>l.reduce((L,M,w)=>L+u[w]*y**(f-w)*h**w*M[v],0));return new V(_,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},pp=e=>{const r=gp(e);return r.scale=()=>a0(r),r},{round:Gs}=Math;V.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Gs)},V.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,i)=>i<3?e===!1?r:Gs(r):r)},Object.assign(me,{rgb:(...e)=>new V(...e,"rgb")}),be.format.rgb=(...e)=>{const r=Ce(e,"rgba");return r[3]===void 0&&(r[3]=1),r},be.autodetect.push({p:3,test:(...e)=>{if(e=Ce(e,"rgba"),ke(e)==="array"&&(e.length===3||e.length===4&&ke(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const sn=(e,r,i)=>{if(!sn[i])throw new Error("unknown blend mode "+i);return sn[i](e,r)},Un=e=>(r,i)=>{const o=me(i).rgb(),s=me(r).rgb();return me.rgb(e(o,s))},Hn=e=>(r,i)=>{const o=[];return o[0]=e(r[0],i[0]),o[1]=e(r[1],i[1]),o[2]=e(r[2],i[2]),o},mp=e=>e,yp=(e,r)=>e*r/255,vp=(e,r)=>e>r?r:e,bp=(e,r)=>e>r?e:r,_p=(e,r)=>255*(1-(1-e/255)*(1-r/255)),Cp=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),xp=(e,r)=>255*(1-(1-r/255)/(e/255)),wp=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);sn.normal=Un(Hn(mp)),sn.multiply=Un(Hn(yp)),sn.screen=Un(Hn(_p)),sn.overlay=Un(Hn(Cp)),sn.darken=Un(Hn(vp)),sn.lighten=Un(Hn(bp)),sn.dodge=Un(Hn(wp)),sn.burn=Un(Hn(xp));const{pow:$p,sin:Lp,cos:kp}=Math;function Sp(e=300,r=-1.5,i=1,o=1,s=[0,1]){let l=0,u;ke(s)==="array"?u=s[1]-s[0]:(u=0,s=[s,s]);const f=function(h){const y=Sn*((e+120)/360+r*h),_=$p(s[0]+u*h,o),L=(l!==0?i[0]+h*l:i)*_*(1-_)/2,M=kp(y),w=Lp(y),T=_+L*(-.14861*M+1.78277*w),A=_+L*(-.29227*M-.90649*w),C=_+L*(1.97294*M);return me(Ii([T*255,A*255,C*255,1]))};return f.start=function(h){return h==null?e:(e=h,f)},f.rotations=function(h){return h==null?r:(r=h,f)},f.gamma=function(h){return h==null?o:(o=h,f)},f.hue=function(h){return h==null?i:(i=h,ke(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(h){return h==null?s:(ke(h)==="array"?(s=h,u=h[1]-h[0]):(s=[h,h],u=0),f)},f.scale=()=>me.scale(f),f.hue(i),f}const Ap="0123456789abcdef",{floor:Mp,random:Tp}=Math,Pp=(e=Tp)=>{let r="#";for(let i=0;i<6;i++)r+=Ap.charAt(Mp(e()*16));return new V(r,"hex")},{log:qs,pow:Ip,floor:Op,abs:Bp}=Math;function Xs(e,r=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ke(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&ke(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>Js(i,o,s),i}function Js(e,r="equal",i=7){ke(e)=="array"&&(e=Xs(e));const{min:o,max:s}=e,l=e.values.sort((f,h)=>f-h);if(i===1)return[o,s];const u=[];if(r.substr(0,1)==="c"&&(u.push(o),u.push(s)),r.substr(0,1)==="e"){u.push(o);for(let f=1;f<i;f++)u.push(o+f/i*(s-o));u.push(s)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*qs(o),h=Math.LOG10E*qs(s);u.push(o);for(let y=1;y<i;y++)u.push(Ip(10,f+y/i*(h-f)));u.push(s)}else if(r.substr(0,1)==="q"){u.push(o);for(let f=1;f<i;f++){const h=(l.length-1)*f/i,y=Op(h);if(y===h)u.push(l[y]);else{const _=h-y;u.push(l[y]*(1-_)+l[y+1]*_)}}u.push(s)}else if(r.substr(0,1)==="k"){let f;const h=l.length,y=new Array(h),_=new Array(i);let v=!0,L=0,M=null;M=[],M.push(o);for(let A=1;A<i;A++)M.push(o+A/i*(s-o));for(M.push(s);v;){for(let C=0;C<i;C++)_[C]=0;for(let C=0;C<h;C++){const I=l[C];let R=Number.MAX_VALUE,$;for(let Z=0;Z<i;Z++){const X=Bp(M[Z]-I);X<R&&(R=X,$=Z),_[$]++,y[C]=$}}const A=new Array(i);for(let C=0;C<i;C++)A[C]=null;for(let C=0;C<h;C++)f=y[C],A[f]===null?A[f]=l[C]:A[f]+=l[C];for(let C=0;C<i;C++)A[C]*=1/_[C];v=!1;for(let C=0;C<i;C++)if(A[C]!==M[C]){v=!0;break}M=A,L++,L>200&&(v=!1)}const w={};for(let A=0;A<i;A++)w[A]=[];for(let A=0;A<h;A++)f=y[A],w[f].push(l[A]);let T=[];for(let A=0;A<i;A++)T.push(w[A][0]),T.push(w[A][w[A].length-1]);T=T.sort((A,C)=>A-C),u.push(T[0]);for(let A=1;A<T.length;A+=2){const C=T[A];!isNaN(C)&&u.indexOf(C)===-1&&u.push(C)}}return u}const Ep=(e,r)=>{e=new V(e),r=new V(r);const i=e.luminance(),o=r.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
|
|
26
|
+
`)+U+`return __p
|
|
27
|
+
}`;var we=_l(function(){return Be(p,re+"return "+U).apply(i,b)});if(we.source=U,ua(we))throw we;return we}function Qk(t){return Re(t).toLowerCase()}function Gk(t){return Re(t).toUpperCase()}function qk(t,n,a){if(t=Re(t),t&&(a||n===i))return A2(t);if(!t||!(n=Nt(n)))return t;var c=fn(t),d=fn(n),p=M2(c,d),b=T2(c,d)+1;return r1(c,p,b).join("")}function Xk(t,n,a){if(t=Re(t),t&&(a||n===i))return t.slice(0,I2(t)+1);if(!t||!(n=Nt(n)))return t;var c=fn(t),d=T2(c,fn(n))+1;return r1(c,0,d).join("")}function Jk(t,n,a){if(t=Re(t),t&&(a||n===i))return t.replace(co,"");if(!t||!(n=Nt(n)))return t;var c=fn(t),d=M2(c,fn(n));return r1(c,d).join("")}function eS(t,n){var a=q,c=X;if(et(n)){var d="separator"in n?n.separator:d;a="length"in n?xe(n.length):a,c="omission"in n?Nt(n.omission):c}t=Re(t);var p=t.length;if(Q1(t)){var b=fn(t);p=b.length}if(a>=p)return t;var C=a-G1(c);if(C<1)return c;var S=b?r1(b,0,C).join(""):t.slice(0,C);if(d===i)return S+c;if(b&&(C+=S.length-C),fa(d)){if(t.slice(C).search(d)){var F,N=S;for(d.global||(d=So(d.source,Re(G5.exec(d))+"g")),d.lastIndex=0;F=d.exec(N);)var U=F.index;S=S.slice(0,U===i?C:U)}}else if(t.indexOf(Nt(d),C)!=C){var J=S.lastIndexOf(d);J>-1&&(S=S.slice(0,J))}return S+c}function tS(t){return t=Re(t),t&&g_.test(t)?t.replace(j5,PC):t}var nS=rr(function(t,n,a){return t+(a?" ":"")+n.toUpperCase()}),pa=_9("toUpperCase");function bl(t,n,a){return t=Re(t),n=a?i:n,n===i?kC(t)?BC(t):yC(t):t.match(n)||[]}var _l=Le(function(t,n){try{return Rt(t,i,n)}catch(a){return ua(a)?a:new pe(a)}}),rS=zn(function(t,n){return zt(n,function(a){a=hn(a),_n(t,a,la(t[a],t))}),t});function iS(t){var n=t==null?0:t.length,a=ce();return t=n?Xe(t,function(c){if(typeof c[1]!="function")throw new Gt(u);return[a(c[0]),c[1]]}):[],Le(function(c){for(var d=-1;++d<n;){var p=t[d];if(Rt(p[0],this,c))return Rt(p[1],this,c)}})}function oS(t){return Px(Xt(t,$))}function ma(t){return function(){return t}}function aS(t,n){return t==null||t!==t?n:t}var sS=x9(),lS=x9(!0);function Ot(t){return t}function ya(t){return X2(typeof t=="function"?t:Xt(t,$))}function cS(t){return e9(Xt(t,$))}function uS(t,n){return t9(t,Xt(n,$))}var fS=Le(function(t,n){return function(a){return Sr(a,t,n)}}),dS=Le(function(t,n){return function(a){return Sr(t,a,n)}});function va(t,n,a){var c=gt(n),d=R0(n,c);a==null&&!(et(n)&&(d.length||!c.length))&&(a=n,n=t,t=this,d=R0(n,gt(n)));var p=!(et(a)&&"chain"in a)||!!a.chain,b=Nn(t);return zt(d,function(C){var S=n[C];t[C]=S,b&&(t.prototype[C]=function(){var F=this.__chain__;if(p||F){var N=t(this.__wrapped__),U=N.__actions__=Tt(this.__actions__);return U.push({func:S,args:arguments,thisArg:t}),N.__chain__=F,N}return S.apply(t,qn([this.value()],arguments))})}),t}function hS(){return mt._===this&&(mt._=NC),this}function ba(){}function gS(t){return t=xe(t),Le(function(n){return n9(n,t)})}var pS=Qo(Xe),mS=Qo(w2),yS=Qo(_o);function Cl(t){return na(t)?Co(hn(t)):Vx(t)}function vS(t){return function(n){return t==null?i:m1(t,n)}}var bS=$9(),_S=$9(!0);function _a(){return[]}function Ca(){return!1}function CS(){return{}}function xS(){return""}function wS(){return!0}function $S(t,n){if(t=xe(t),t<1||t>Ie)return[];var a=Ee,c=Ct(t,Ee);n=ce(n),t-=Ee;for(var d=$o(c,n);++a<t;)n(a);return d}function LS(t){return _e(t)?Xe(t,hn):Zt(t)?[t]:Tt(N9(Re(t)))}function kS(t){var n=++zC;return Re(t)+n}var SS=K0(function(t,n){return t+n},0),AS=Go("ceil"),MS=K0(function(t,n){return t/n},1),TS=Go("floor");function PS(t){return t&&t.length?D0(t,Ot,Eo):i}function IS(t,n){return t&&t.length?D0(t,ce(n,2),Eo):i}function OS(t){return k2(t,Ot)}function BS(t,n){return k2(t,ce(n,2))}function ES(t){return t&&t.length?D0(t,Ot,Fo):i}function DS(t,n){return t&&t.length?D0(t,ce(n,2),Fo):i}var RS=K0(function(t,n){return t*n},1),zS=Go("round"),FS=K0(function(t,n){return t-n},0);function NS(t){return t&&t.length?wo(t,Ot):0}function ZS(t,n){return t&&t.length?wo(t,ce(n,2)):0}return g.after=uL,g.ary=q9,g.assign=qL,g.assignIn=fl,g.assignInWith=dl,g.assignWith=da,g.at=XL,g.before=X9,g.bind=la,g.bindAll=rS,g.bindKey=J9,g.castArray=xL,g.chain=V9,g.chunk=Pw,g.compact=Iw,g.concat=Ow,g.cond=iS,g.conforms=oS,g.constant=ma,g.countBy=Z$,g.create=JL,g.curry=el,g.curryRight=tl,g.debounce=nl,g.defaults=ek,g.defaultsDeep=tk,g.defer=fL,g.delay=dL,g.difference=Bw,g.differenceBy=Ew,g.differenceWith=Dw,g.drop=Rw,g.dropRight=zw,g.dropRightWhile=Fw,g.dropWhile=Nw,g.fill=Zw,g.filter=K$,g.flatMap=j$,g.flatMapDeep=Y$,g.flatMapDepth=V$,g.flatten=U9,g.flattenDeep=Ww,g.flattenDepth=Kw,g.flip=hL,g.flow=sS,g.flowRight=lS,g.fromPairs=Uw,g.functions=lk,g.functionsIn=ck,g.groupBy=Q$,g.initial=jw,g.intersection=Yw,g.intersectionBy=Vw,g.intersectionWith=Qw,g.invert=fk,g.invertBy=dk,g.invokeMap=q$,g.iteratee=ya,g.keyBy=X$,g.keys=gt,g.keysIn=It,g.map=G0,g.mapKeys=gk,g.mapValues=pk,g.matches=cS,g.matchesProperty=uS,g.memoize=X0,g.merge=mk,g.mergeWith=hl,g.method=fS,g.methodOf=dS,g.mixin=va,g.negate=J0,g.nthArg=gS,g.omit=yk,g.omitBy=vk,g.once=gL,g.orderBy=J$,g.over=pS,g.overArgs=pL,g.overEvery=mS,g.overSome=yS,g.partial=ca,g.partialRight=rl,g.partition=eL,g.pick=bk,g.pickBy=gl,g.property=Cl,g.propertyOf=vS,g.pull=Jw,g.pullAll=j9,g.pullAllBy=e$,g.pullAllWith=t$,g.pullAt=n$,g.range=bS,g.rangeRight=_S,g.rearg=mL,g.reject=rL,g.remove=r$,g.rest=yL,g.reverse=aa,g.sampleSize=oL,g.set=Ck,g.setWith=xk,g.shuffle=aL,g.slice=i$,g.sortBy=cL,g.sortedUniq=f$,g.sortedUniqBy=d$,g.split=Hk,g.spread=vL,g.tail=h$,g.take=g$,g.takeRight=p$,g.takeRightWhile=m$,g.takeWhile=y$,g.tap=I$,g.throttle=bL,g.thru=Q0,g.toArray=ll,g.toPairs=pl,g.toPairsIn=ml,g.toPath=LS,g.toPlainObject=ul,g.transform=wk,g.unary=_L,g.union=v$,g.unionBy=b$,g.unionWith=_$,g.uniq=C$,g.uniqBy=x$,g.uniqWith=w$,g.unset=$k,g.unzip=sa,g.unzipWith=Y9,g.update=Lk,g.updateWith=kk,g.values=ar,g.valuesIn=Sk,g.without=$$,g.words=bl,g.wrap=CL,g.xor=L$,g.xorBy=k$,g.xorWith=S$,g.zip=A$,g.zipObject=M$,g.zipObjectDeep=T$,g.zipWith=P$,g.entries=pl,g.entriesIn=ml,g.extend=fl,g.extendWith=dl,va(g,g),g.add=SS,g.attempt=_l,g.camelCase=Pk,g.capitalize=yl,g.ceil=AS,g.clamp=Ak,g.clone=wL,g.cloneDeep=LL,g.cloneDeepWith=kL,g.cloneWith=$L,g.conformsTo=SL,g.deburr=vl,g.defaultTo=aS,g.divide=MS,g.endsWith=Ik,g.eq=gn,g.escape=Ok,g.escapeRegExp=Bk,g.every=W$,g.find=U$,g.findIndex=W9,g.findKey=nk,g.findLast=H$,g.findLastIndex=K9,g.findLastKey=rk,g.floor=TS,g.forEach=Q9,g.forEachRight=G9,g.forIn=ik,g.forInRight=ok,g.forOwn=ak,g.forOwnRight=sk,g.get=ha,g.gt=AL,g.gte=ML,g.has=uk,g.hasIn=ga,g.head=H9,g.identity=Ot,g.includes=G$,g.indexOf=Hw,g.inRange=Mk,g.invoke=hk,g.isArguments=b1,g.isArray=_e,g.isArrayBuffer=TL,g.isArrayLike=Pt,g.isArrayLikeObject=it,g.isBoolean=PL,g.isBuffer=i1,g.isDate=IL,g.isElement=OL,g.isEmpty=BL,g.isEqual=EL,g.isEqualWith=DL,g.isError=ua,g.isFinite=RL,g.isFunction=Nn,g.isInteger=il,g.isLength=ei,g.isMap=ol,g.isMatch=zL,g.isMatchWith=FL,g.isNaN=NL,g.isNative=ZL,g.isNil=KL,g.isNull=WL,g.isNumber=al,g.isObject=et,g.isObjectLike=nt,g.isPlainObject=Or,g.isRegExp=fa,g.isSafeInteger=UL,g.isSet=sl,g.isString=ti,g.isSymbol=Zt,g.isTypedArray=or,g.isUndefined=HL,g.isWeakMap=jL,g.isWeakSet=YL,g.join=Gw,g.kebabCase=Ek,g.last=en,g.lastIndexOf=qw,g.lowerCase=Dk,g.lowerFirst=Rk,g.lt=VL,g.lte=QL,g.max=PS,g.maxBy=IS,g.mean=OS,g.meanBy=BS,g.min=ES,g.minBy=DS,g.stubArray=_a,g.stubFalse=Ca,g.stubObject=CS,g.stubString=xS,g.stubTrue=wS,g.multiply=RS,g.nth=Xw,g.noConflict=hS,g.noop=ba,g.now=q0,g.pad=zk,g.padEnd=Fk,g.padStart=Nk,g.parseInt=Zk,g.random=Tk,g.reduce=tL,g.reduceRight=nL,g.repeat=Wk,g.replace=Kk,g.result=_k,g.round=zS,g.runInContext=L,g.sample=iL,g.size=sL,g.snakeCase=Uk,g.some=lL,g.sortedIndex=o$,g.sortedIndexBy=a$,g.sortedIndexOf=s$,g.sortedLastIndex=l$,g.sortedLastIndexBy=c$,g.sortedLastIndexOf=u$,g.startCase=jk,g.startsWith=Yk,g.subtract=FS,g.sum=NS,g.sumBy=ZS,g.template=Vk,g.times=$S,g.toFinite=Zn,g.toInteger=xe,g.toLength=cl,g.toLower=Qk,g.toNumber=tn,g.toSafeInteger=GL,g.toString=Re,g.toUpper=Gk,g.trim=qk,g.trimEnd=Xk,g.trimStart=Jk,g.truncate=eS,g.unescape=tS,g.uniqueId=kS,g.upperCase=nS,g.upperFirst=pa,g.each=Q9,g.eachRight=G9,g.first=H9,va(g,function(){var t={};return Cn(g,function(n,a){De.call(g.prototype,a)||(t[a]=n)}),t}(),{chain:!1}),g.VERSION=o,zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){g[t].placeholder=g}),zt(["drop","take"],function(t,n){Ae.prototype[t]=function(a){a=a===i?1:dt(xe(a),0);var c=this.__filtered__&&!n?new Ae(this):this.clone();return c.__filtered__?c.__takeCount__=Ct(a,c.__takeCount__):c.__views__.push({size:Ct(a,Ee),type:t+(c.__dir__<0?"Right":"")}),c},Ae.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),zt(["filter","map","takeWhile"],function(t,n){var a=n+1,c=a==ee||a==le;Ae.prototype[t]=function(d){var p=this.clone();return p.__iteratees__.push({iteratee:ce(d,3),type:a}),p.__filtered__=p.__filtered__||c,p}}),zt(["head","last"],function(t,n){var a="take"+(n?"Right":"");Ae.prototype[t]=function(){return this[a](1).value()[0]}}),zt(["initial","tail"],function(t,n){var a="drop"+(n?"":"Right");Ae.prototype[t]=function(){return this.__filtered__?new Ae(this):this[a](1)}}),Ae.prototype.compact=function(){return this.filter(Ot)},Ae.prototype.find=function(t){return this.filter(t).head()},Ae.prototype.findLast=function(t){return this.reverse().find(t)},Ae.prototype.invokeMap=Le(function(t,n){return typeof t=="function"?new Ae(this):this.map(function(a){return Sr(a,t,n)})}),Ae.prototype.reject=function(t){return this.filter(J0(ce(t)))},Ae.prototype.slice=function(t,n){t=xe(t);var a=this;return a.__filtered__&&(t>0||n<0)?new Ae(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),n!==i&&(n=xe(n),a=n<0?a.dropRight(-n):a.take(n-t)),a)},Ae.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ae.prototype.toArray=function(){return this.take(Ee)},Cn(Ae.prototype,function(t,n){var a=/^(?:filter|find|map|reject)|While$/.test(n),c=/^(?:head|last)$/.test(n),d=g[c?"take"+(n=="last"?"Right":""):n],p=c||/^find/.test(n);d&&(g.prototype[n]=function(){var b=this.__wrapped__,C=c?[1]:arguments,S=b instanceof Ae,F=C[0],N=S||_e(b),U=function(Se){var Me=d.apply(g,qn([Se],C));return c&&J?Me[0]:Me};N&&a&&typeof F=="function"&&F.length!=1&&(S=N=!1);var J=this.__chain__,re=!!this.__actions__.length,fe=p&&!J,we=S&&!re;if(!p&&N){b=we?b:new Ae(this);var se=t.apply(b,C);return se.__actions__.push({func:Q0,args:[U],thisArg:i}),new qt(se,J)}return fe&&we?t.apply(this,C):(se=this.thru(U),fe?c?se.value()[0]:se.value():se)})}),zt(["pop","push","shift","sort","splice","unshift"],function(t){var n=C0[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);g.prototype[t]=function(){var d=arguments;if(c&&!this.__chain__){var p=this.value();return n.apply(_e(p)?p:[],d)}return this[a](function(b){return n.apply(_e(b)?b:[],d)})}}),Cn(Ae.prototype,function(t,n){var a=g[n];if(a){var c=a.name+"";De.call(er,c)||(er[c]=[]),er[c].push({name:n,func:a})}}),er[W0(i,I).name]=[{name:"wrapper",func:i}],Ae.prototype.clone=nx,Ae.prototype.reverse=rx,Ae.prototype.value=ix,g.prototype.at=O$,g.prototype.chain=B$,g.prototype.commit=E$,g.prototype.next=D$,g.prototype.plant=z$,g.prototype.reverse=F$,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=N$,g.prototype.first=g.prototype.head,_r&&(g.prototype[_r]=R$),g},q1=EC();f1?((f1.exports=q1)._=q1,mo._=q1):mt._=q1}).call(wn)}(Br,Br.exports);var Er=Br.exports;const at=ri(Er),wl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=ue.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const u=nn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=nn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:r()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[u,i[1],f]},styles:r()}]}return[]},setProperties:i=>{e=at.merge({},e,i)},getProperties:()=>e}},$l=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=xa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:r(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,at.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},Ll=()=>{let e=new Map,r=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:r(o.id)}]:[],setProperties:(i,o)=>{e.set(o,at.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},kl=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:r()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Sl=()=>{let e={},r=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:r()}],setProperties:i=>{e=at.merge({},e,i)},getProperties:()=>e}},Al=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),u=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],h=[],m=[];return f.forEach(_=>{const v=u*_;h.push({...o[0],r:v}),m.push({x:o[0].x,y:o[0].y+v+6,text:`${(_*100).toFixed(1)}%`})}),[{type:"circle",attrs:h,styles:r()},{type:"text",ignoreEvent:!0,attrs:m,styles:i()}]}return[]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Ml=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:u})=>{const f=[],h=[];if(o.length>1){let m=0;const _=l.getSymbol();((u==null?void 0:u.isInCandle())??!0)&&_?m=_.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach(w=>{m=Math.max(m,w.precision)});const v=o[1].x>o[0].x?o[0].x:o[1].x,$=[1,.786,.618,.5,.382,.236,0],M=o[0].y-o[1].y,x=s.points,T=x[0].value-x[1].value;$.forEach(A=>{const w=o[1].y+M*A,I=(x[1].value+T*A).toFixed(m.price);f.push({coordinates:[{x:o[0].x,y:w},{x:o[1].x,y:w}]}),h.push({x:v,y:w,text:`${I} (${(A*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:r()},{type:"text",ignoreEvent:!0,attrs:h,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Tl=()=>{let e={},r=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=xa(o[0],o[1])/Math.sqrt(24),u=o[1].x>o[0].x?0:1,f=ue.utils.getLinearSlopeIntercept(o[0],o[1]);let h;f?h=Math.atan(f[0])+Math.PI*u:o[1].y>o[0].y?h=Math.PI/2:h=Math.PI/2*3;const m=nn({x:o[0].x-l,y:o[0].y},o[0],h),_=nn({x:o[0].x-l,y:o[0].y-l},o[0],h),v=[{...m,r:l,startAngle:h,endAngle:h+Math.PI/2},{..._,r:l*2,startAngle:h+Math.PI/2,endAngle:h+Math.PI}];let $=o[0].x-l,M=o[0].y-l;for(let x=2;x<9;x++){const T=v[x-2].r+v[x-1].r;let A=0;switch(x%4){case 0:{A=h,$-=v[x-2].r;break}case 1:{A=h+Math.PI/2,M-=v[x-2].r;break}case 2:{A=h+Math.PI,$+=v[x-2].r;break}case 3:{A=h+Math.PI/2*3,M+=v[x-2].r;break}}const w=A+Math.PI/2,I=nn({x:$,y:M},o[0],h);v.push({...I,r:T,startAngle:A,endAngle:w})}return[{type:"arc",attrs:v,styles:r()},{type:"line",attrs:ni(o,s),styles:i()}]}return[]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Pl=()=>{let e={};const r=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let u=[];const f=[];if(o.length>1){const h=o[1].x>o[0].x?-38:4,m=o[1].y>o[0].y?-2:20,_=o[1].x-o[0].x,v=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(M=>{const x=o[1].x-_*M,T=o[1].y-v*M;l.push({coordinates:[{x,y:o[0].y},{x,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:T},{x:o[1].x,y:T}]}),u=u.concat(ni([o[0],{x,y:o[1].y}],s)),u=u.concat(ni([o[0],{x:o[1].x,y:T}],s)),f.unshift({x:o[0].x+h,y:T+10,text:`${M.toFixed(3)}`}),f.unshift({x:x-18,y:o[0].y+m,text:`${M.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:r()},{type:"line",attrs:u,styles:r()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Il=()=>{let e={};const r=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:u,overlay:f})=>{const h=[],m=[];if(u.length>2){let _=0;const v=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&v?_=v.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(I=>{_=Math.max(_,I.precision)});const $=f.points,M=$[1].value-$[0].value,x=u[1].y-u[0].y,T=[0,.236,.382,.5,.618,.786,1],A=u[2].x>u[1].x?u[1].x:u[2].x;T.forEach(w=>{const I=u[2].y+x*w,R=($[2].value+M*w).toFixed(_.price);h.push({coordinates:[{x:u[1].x,y:I},{x:u[2].x,y:I}]}),m.push({x:A,y:I,text:`${R} (${(w*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:u},styles:r()},{type:"line",attrs:h,styles:i()},{type:"text",ignoreEvent:!0,attrs:m,styles:o()}]},setProperties:s=>{e=at.merge({},e,s)},getProperties:()=>e}},Ol=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const u=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,h=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-u}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-u*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+u*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],m=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:r()},{type:"line",attrs:h,styles:o()},{type:"line",attrs:m,styles:s()}]}return[]},setProperties:l=>{e=at.merge({},e,l)},getProperties:()=>e}},Bl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},El=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Dl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},Rl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:r()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=at.merge({},e,o)},getProperties:()=>e}},zl=()=>{let e={};const r=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...r(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],u=[];const f=["A","B","C","D"],h=s.map((m,_)=>({...m,baseline:"bottom",text:`(${f[_]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(u=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:r()},{type:"line",attrs:[{coordinates:l},{coordinates:u}],styles:i()},{type:"text",ignoreEvent:!0,attrs:h,styles:o()}]},setProperties:s=>{e=at.merge({},e,s)},getProperties:()=>e}},Fl=()=>{let e={},r=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:u})=>{const f=[],h=[],m=["X","A","B","C","D"],_=l.map((v,$)=>({...v,baseline:"bottom",text:`(${m[$]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),h.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]]}),h.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:h,styles:r()},{type:"text",ignoreEvent:!0,attrs:_,styles:s()}]},setProperties:l=>{e=at.merge({},e,l)},getProperties:()=>e}},o1=()=>({x:window.innerWidth,y:window.innerHeight}),Nl=(e,r,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:r.paneId}).forEach(u=>{o.price=Math.max(o.price,u.precision)}),o},ii=e=>({thin:100,"extra-light":200,light:300,normal:400,medium:500,"semi-bold":600,bold:700,"extra-bold":800,black:900})[e],st={lineStyle:{style:"dashed",size:1,color:"#00698b",dashedValue:[4,4]},labelStyle:{style:"stroke_fill",size:12,family:"Helvetica Neue",weight:"normal",paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,borderStyle:"solid",borderSize:1,borderDashedValue:[0,0],borderRadius:3,color:"#FFFFFF",borderColor:"#00698b",backgroundColor:"#00698b",show:!0}},sr=(e,r)=>{if(e){const{params:i,callback:o}=e;o(i,r)}},Zl=()=>{let e={isBodyVisible:!0,isCancelButtonVisible:!0,isQuantityVisible:!0,marginRight:10};const r=()=>({style:e.lineStyle??st.lineStyle.style,size:e.lineWidth??st.lineStyle.size,color:e.lineColor??st.lineStyle.color,dashedValue:e.lineDashedValue??st.lineStyle.dashedValue}),i=o=>({style:st.labelStyle.style,size:(o=="body"?e.bodySize:o=="quantity"?e.quantitySize:e.cancelButtonSize)??e.bodySize??st.labelStyle.size,weight:(o=="body"?e.bodyWeight:o=="quantity"?e.quantityWeight:e.cancelButtonWeight)??e.bodyWeight??st.labelStyle.weight,family:(o=="body"?e.bodyFont:o=="quantity"?e.quantityFont:"icomoon")??e.bodyFont??st.labelStyle.family,color:(o=="body"?e.bodyTextColor:o=="quantity"?e.quantityColor:e.cancelButtonIconColor)??e.bodyTextColor??st.labelStyle.color,backgroundColor:(o=="body"?e.bodyBackgroundColor:o=="quantity"?e.quantityBackgroundColor:e.cancelButtonBackgroundColor)??e.bodyBackgroundColor??st.labelStyle.backgroundColor,borderColor:(o=="body"?e.bodyBorderColor:o=="quantity"?e.quantityBorderColor:e.cancelButtonBorderColor)??e.bodyBorderColor??st.labelStyle.borderColor,borderStyle:e.borderStyle??st.labelStyle.borderStyle,borderSize:e.borderSize??st.labelStyle.borderSize,borderDashedValue:e.borderDashedValue??st.labelStyle.borderDashedValue,borderRadius:e.borderRadius??st.labelStyle.borderRadius,paddingLeft:(o=="body"?e.bodyPaddingLeft:o=="quantity"?e.quantityPaddingLeft:e.cancelButtonPaddingLeft)??e.bodyPaddingLeft??st.labelStyle.paddingLeft,paddingRight:(o=="body"?e.bodyPaddingRight:o=="quantity"?e.quantityPaddingRight:e.cancelButtonPaddingRight)??e.bodyPaddingRight??st.labelStyle.paddingRight,paddingTop:(o=="body"?e.bodyPaddingTop:o=="quantity"?e.quantityPaddingTop:e.cancelButtonPaddingTop)??e.bodyPaddingTop??st.labelStyle.paddingTop,paddingBottom:(o=="body"?e.bodyPaddingBottom:o=="quantity"?e.quantityPaddingBottom:e.cancelButtonPaddingBottom)??e.bodyPaddingBottom??st.labelStyle.paddingBottom});return{name:"orderLine",totalStep:2,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({chart:o,coordinates:s,bounding:l})=>{var A,w,I,R,k,Z,G;const u=i("body"),f=i("quantity"),h=i("cancel-button"),m="",_=(e.quantity??"Size").toString(),v=e.text??"Position Line",$=e.marginRight,M=ue.utils.calcTextWidth(m)+h.paddingLeft+h.paddingRight+$-(e.borderSize??st.labelStyle.borderSize),x=ue.utils.calcTextWidth(_.toString())+f.paddingLeft+f.paddingRight+M,T=ue.utils.calcTextWidth(v.toString())+u.paddingLeft+u.paddingRight+x;return[{key:"price-line",type:"line",attrs:{coordinates:[{x:0,y:e.price?o.convertToPixel({timestamp:(A=o.getDataList().at(o.getDataList().length-1))==null?void 0:A.timestamp,value:e.price}).y:s[0].y},{x:l.width-T,y:e.price?o.convertToPixel({timestamp:(w=o.getDataList().at(o.getDataList().length-1))==null?void 0:w.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"price-line-two",type:"line",attrs:{coordinates:[{x:l.width-$,y:e.price?o.convertToPixel({timestamp:(I=o.getDataList().at(o.getDataList().length-1))==null?void 0:I.timestamp,value:e.price}).y:s[0].y},{x:l.width,y:e.price?o.convertToPixel({timestamp:(R=o.getDataList().at(o.getDataList().length-1))==null?void 0:R.timestamp,value:e.price}).y:s[0].y}]},styles:r(),ignoreEvent:!0},{key:"body",type:"text",attrs:{x:l.width-x,y:e.price?o.convertToPixel({timestamp:(k=o.getDataList().at(o.getDataList().length-1))==null?void 0:k.timestamp,value:e.price}).y:s[0].y,text:v,align:"right",baseline:"middle"},styles:u},{key:"quantity",type:"text",attrs:{x:l.width-M,y:e.price?o.convertToPixel({timestamp:(Z=o.getDataList().at(o.getDataList().length-1))==null?void 0:Z.timestamp,value:e.price}).y:s[0].y,text:_,align:"right",baseline:"middle"},styles:f},{key:"cancel-button",type:"text",attrs:{x:l.width-$,y:e.price?o.convertToPixel({timestamp:(G=o.getDataList().at(o.getDataList().length-1))==null?void 0:G.timestamp,value:e.price}).y:s[0].y,text:m,align:"right",baseline:"middle"},styles:h}]},createYAxisFigures:({chart:o,overlay:s,coordinates:l,bounding:u,yAxis:f})=>{var M;const h=Nl(o,s,f),m=(f==null?void 0:f.isFromZero())??!1;let _,v;m?(_="left",v=0):(_="right",v=u.width);let $;return e.price!==void 0&&(s.points[0].value=e.price),ue.utils.isValid(s.extendData)&&(ue.utils.isFunction(s.extendData)?$=s.extendData(s):$=s.extendData??""),!ue.utils.isValid($)&&s.points[0].value!==void 0&&($=ue.utils.formatPrecision(s.points[0].value,h.price)),{type:"text",attrs:{x:v,y:e.price?o.convertToPixel({timestamp:(M=o.getDataList().at(o.getDataList().length-1))==null?void 0:M.timestamp,value:e.price}).y:l[0].y,text:$??"",align:_,baseline:"middle"},styles:i("body")}},onSelected:o=>(o.preventDefault&&o.preventDefault(),o.overlay.mode="normal",!1),onRightClick:o=>(o.preventDefault&&o.preventDefault(),!1),onPressedMoveStart:o=>(sr(e.onMoveStart,o),!1),onPressedMoving:o=>(e.price=o.chart.convertFromPixel([{y:o.y,x:o.x}],{paneId:"candle_pane"}).value,sr(e.onMove,o),!1),onPressedMoveEnd:o=>(sr(e.onMoveEnd,o),!1),onClick:o=>{var s;switch((s=o.figure)==null?void 0:s.key){case"cancel-button":sr(e.onCancel,o);break;case"quantity":sr(e.onModify,o);break}return!1},setPrice(o){return e.price=o,this},setText(o){return e.text=o,this},setQuantity(o){return e.quantity=o,this},setModifyTooltip(o){return e.modifyTooltip=o,this},setTooltip(o){return e.tooltip=o,this},setLineColor(o){return e.lineColor=o,this},setLineWidth(o){return e.lineWidth=o,this},setLineStyle(o){return e.lineStyle=o,this},setLineLength(o){return e.lineDashedValue=[o,o],this},setLineDashedValue(o){return e.lineDashedValue=o,this},setBodyFont(o){return e.bodyFont=o,this},setBodyFontWeight(o){return ue.utils.isString(o)&&(o=ii(o)),e.bodyWeight=o,this},setBodyTextColor(o){return e.bodyTextColor=o,this},setBodyBackgroundColor(o){return e.bodyBackgroundColor=o,this},setBodyBorderColor(o){return e.bodyBorderColor=o,this},setQuantityFont(o){return e.quantityFont=o,this},setQuantityFontWeight(o){return ue.utils.isString(o)&&(o=ii(o)),e.quantityWeight=o,this},setQuantityColor(o){return e.quantityColor=o,this},setQuantityBackgroundColor(o){return e.quantityBackgroundColor=o,this},setQuantityBorderColor(o){return e.quantityBorderColor=o,this},setCancelButtonFontWeight(o){return ue.utils.isString(o)&&(o=ii(o)),e.cancelButtonWeight=o,this},setCancelButtonIconColor(o){return e.cancelButtonIconColor=o,this},setCancelButtonBackgroundColor(o){return e.cancelButtonBackgroundColor=o,this},setCancelButtonBorderColor(o){return e.cancelButtonBorderColor=o,this},setBorderStyle(o){return e.borderStyle=o,this},setBorderSize(o){return e.borderSize=o,this},setBorderDashedValue(o){return e.borderDashedValue=o,this},setBorderRadius(o){return e.borderRadius=o,this},onMoveStart(o,s){return e.onMoveStart={params:o,callback:s},this},onMove(o,s){return e.onMove={params:o,callback:s},this},onMoveEnd(o,s){return e.onMoveEnd={params:o,callback:s},this},onCancel(o,s){return e.onCancel={params:o,callback:s},this},onModify(o,s){return e.onModify={params:o,callback:s},this}}},Wl=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:r})=>{const i=[];if(r.length>1){const o=r.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:r,points:i,performPoint:o})=>{r>=2&&i.push(o)},setProperties:r=>{e=at.merge({},e,r)},getProperties:()=>e}},Kl=[wl(),Wl(),$l(),Ll(),Sl(),kl(),Al(),Ml(),Tl(),Pl(),Il(),Ol(),Bl(),El(),Dl(),Rl(),zl(),Fl(),Zl()];class Ul{constructor(r){Mt(this,"_apiKey");Mt(this,"_prevSymbolMarket");Mt(this,"_ws");this._apiKey=r}async searchSymbols(r){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${r??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(r,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${r.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(r,i,o){var s,l;this._prevSymbolMarket!==r.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${r.market}`),this._ws.onopen=()=>{var u;(u=this._ws)==null||u.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=u=>{var h;const f=JSON.parse(u.data);f[0].ev==="status"?f[0].status==="auth_success"&&((h=this._ws)==null||h.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${r.ticker}`})),this._prevSymbolMarket=r.market}unsubscribe(r,i){}}class Hl{constructor(r,i,o){Mt(this,"apikey");Mt(this,"apiurl");Mt(this,"testsesson_id");this.apiurl=r,this.apikey=i,this.testsesson_id=o}async retrieveOrder(r){const i=await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions/${r}`),o=await(i==null?void 0:i.json());return{entryPoint:o.data.entrypoint,stopLoss:o.data.stoploss,takeProfit:o.data.takeprofit,lotSize:o.data.lotsize,pl:o.data.pl,accountId:o.data.account_id,orderId:o.data.id,entryTime:o.data.entrytime,exitTime:o.data.exittime,exitPoint:o.data.exitpoint,action:o.data.action}}async retrieveOrders(r,i){try{return((await(await this.makeFetchWithAuthAndBody("GET",`${this.apiurl}/positions`)).json()).data||[]).map(l=>({entryPoint:l.entrypoint,stopLoss:l.stoploss,takeProfit:l.takeprofit,lotSize:l.lotsize,pl:l.pl,accountId:l.account_id,orderId:l.id,entryTime:l.entrytime,exitTime:l.exittime,exitPoint:l.exitpoint,action:l.action}))}catch{return[]}}async openOrder(r,i,o,s,l){const u=await this.makeFetchWithAuthAndBody("POST",`${this.apiurl}/positions`,{account_id:this.testsesson_id,action:r,entrypoint:o,stoploss:s,takeprofit:l}),f=await(u==null?void 0:u.json());return{orderId:f.id,accountId:f.account_id,action:f.action,entryPoint:f.entrypoint,exitPoint:f.exitpoint,stopLoss:f.stoploss,takeProfit:f.takeprofit,lotSize:f.lotsize,pips:f.pips,pl:f.pl,entryTime:f.entrytime,exitTime:f.exittime,exitType:f.exittype,partials:f.partials}}async closeOrder(r,i){try{const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}`);return await(o==null?void 0:o.json())}catch{return null}}async modifyOrder(r){const i=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r.id}`,r),o=await(i==null?void 0:i.json());return{orderId:o.id,accountId:o.account_id,action:o.action,entryPoint:o.entrypoint,exitPoint:o.exitpoint,stopLoss:o.stoploss,takeProfit:o.takeprofit,lotSize:o.lotsize,pips:o.pips,pl:o.pl,entryTime:o.entrytime,exitTime:o.exittime,exitType:o.exittype,partials:o.partials}}async unsetSlOrTP(r,i){const o=await this.makeFetchWithAuthAndBody("PUT",`${this.apiurl}/positions/${r}/unset/${i}`),s=await(o==null?void 0:o.json());return{orderId:s.id,accountId:s.account_id,action:s.action,entryPoint:s.entrypoint,exitPoint:s.exitpoint,stopLoss:s.stoploss,takeProfit:s.takeprofit,lotSize:s.lotsize,pips:s.pips,pl:s.pl,entryTime:s.entrytime,exitTime:s.exittime,exitType:s.exittype,partials:s.partials}}launchOrderModal(r,i,o){}async makeFetchWithAuthAndBody(r,i,o){const s={method:r,credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json",authorization:`Bearer ${this.apikey}`},body:o?JSON.stringify(o):null};try{return await fetch(`${i}`,s)}catch(l){return alert(l.message??"An error occured"),null}}}class jl{constructor(r="dummy_order_controller"){Mt(this,"storage_name");this.storage_name=r}async retrieveOrder(r){return this.retrieveOrderFromLs(r)}async retrieveOrders(r,i){let o=this.retrieveOrdersFromLs();return r&&(o=o.filter((s,l)=>s.action==r)),i&&(o=o.filter(s=>s.accountId==i)),o}async openOrder(r,i,o,s,l){const u=this.retrieveOrdersFromLs(),f={orderId:u.length?u.at(u.length-1).orderId+1:0,action:r,entryPoint:o,exitPoint:void 0,stopLoss:s,takeProfit:l,lotSize:i,pips:0,pl:0,entryTime:new Date().getTime().toString(),exitTime:void 0,exitType:void 0,partials:void 0};return this.storeOrder(f,u),f}async closeOrder(r,i){try{const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return(!i||i>l.lotSize)&&(i=l.lotSize),l.lotSize-=i,this.storeOrder(l,o,s),l}catch{return null}}async modifyOrder(r){const i=this.retrieveOrdersFromLs(),o=i.findIndex(l=>l.orderId==r.id);if(o<0)return null;const s=i[o];return s.action=r.action??s.action,s.entryPoint=r.entrypoint??s.entryPoint,s.exitPoint=r.exitpoint??s.exitPoint,s.stopLoss=r.stoploss??s.stopLoss,s.takeProfit=r.takeprofit??s.takeProfit,s.lotSize=r.lotsize??s.lotSize,s.pips=r.pips??s.pips,s.pl=r.pl??s.pl,s.entryTime=["buy","sell"].includes(s.action)?new Date().getTime().toString():s.entryTime,s.exitTime=s.exitPoint&&s.exitTime?new Date().getTime().toString():s.exitTime,this.storeOrder(s,i,o),s}async unsetSlOrTP(r,i){const o=this.retrieveOrdersFromLs(),s=o.findIndex(u=>u.orderId==r);if(s<0)return null;const l=o[s];return i=="sl"?l.stopLoss=void 0:l.takeProfit=void 0,this.storeOrder(l,o,s),l}launchOrderModal(r,i,o){}retrieveOrdersFromLs(){return JSON.parse(localStorage.getItem(this.storage_name)??"[]")}retrieveOrderFromLs(r){return this.retrieveOrdersFromLs().find(i=>i.orderId==r)??null}storeOrder(r,i,o){if(i||(i=this.retrieveOrdersFromLs()),o&&o>i.length)throw new Error("storeOrder: index cannot be greater than total order length");o?i[o]=r:i.push(r),localStorage.setItem(this.storage_name,JSON.stringify(i))}}const Yl=!1,Vl=(e,r)=>e===r,oi=Symbol("solid-proxy"),Ql=typeof Proxy=="function",Gl=Symbol("solid-track"),Dr={equals:Vl};let wa=Aa;const $n=1,Rr=2,$a={owned:null,cleanups:null,context:null,owner:null},ai={};var Ne=null;let si=null,ql=null,ze=null,vt=null,Ln=null,zr=0;function Fr(e,r){const i=ze,o=Ne,s=e.length===0,l=r===void 0?o:r,u=s?$a:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>on(()=>cr(u)));Ne=u,ze=null;try{return kn(f,!0)}finally{ze=i,Ne=o}}function j(e,r){r=r?Object.assign({},Dr,r):Dr;const i={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),Sa(i,s));return[ka.bind(i),o]}function La(e,r,i){const o=Nr(e,r,!0,$n);_1(o)}function Te(e,r,i){const o=Nr(e,r,!1,$n);_1(o)}function rn(e,r,i){wa=o6;const o=Nr(e,r,!1,$n);(!i||!i.render)&&(o.user=!0),Ln?Ln.push(o):_1(o)}function mn(e,r,i){i=i?Object.assign({},Dr,i):Dr;const o=Nr(e,r,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,_1(o),ka.bind(o)}function Xl(e){return e&&typeof e=="object"&&"then"in e}function Jl(e,r,i){let o,s,l;typeof r=="function"?(o=e,s=r,l=i||{}):(o=!0,s=e,l=r||{});let u=null,f=ai,h=!1,m="initialValue"in l,_=typeof o=="function"&&mn(o);const v=new Set,[$,M]=(l.storage||j)(l.initialValue),[x,T]=j(void 0),[A,w]=j(void 0,{equals:!1}),[I,R]=j(m?"ready":"unresolved");function k(z,Q,q,X){return u===z&&(u=null,X!==void 0&&(m=!0),(z===f||Q===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(X,{value:Q})),f=ai,Z(Q,q)),Q}function Z(z,Q){kn(()=>{Q===void 0&&M(()=>z),R(Q!==void 0?"errored":m?"ready":"unresolved"),T(Q);for(const q of v.keys())q.decrement();v.clear()},!1)}function G(){const z=n6,Q=$(),q=x();if(q!==void 0&&!u)throw q;return ze&&!ze.user&&z&&La(()=>{A(),u&&(z.resolved||v.has(z)||(z.increment(),v.add(z)))}),Q}function V(z=!0){if(z!==!1&&h)return;h=!1;const Q=_?_():o;if(Q==null||Q===!1){k(u,on($));return}let q;const X=f!==ai?f:on(()=>{try{return s(Q,{value:$(),refetching:z})}catch(W){q=W}});if(q!==void 0){k(u,void 0,Kr(q),Q);return}else if(!Xl(X))return k(u,X,void 0,Q),X;return u=X,"v"in X?(X.s===1?k(u,X.v,void 0,Q):k(u,void 0,Kr(X.v),Q),X):(h=!0,queueMicrotask(()=>h=!1),kn(()=>{R(m?"refreshing":"pending"),w()},!1),X.then(W=>k(X,W,void 0,Q),W=>k(X,void 0,Kr(W),Q)))}Object.defineProperties(G,{state:{get:()=>I()},error:{get:()=>x()},loading:{get(){const z=I();return z==="pending"||z==="refreshing"}},latest:{get(){if(!m)return G();const z=x();if(z&&!u)throw z;return $()}}});let O=Ne;return _?La(()=>(O=Ne,V(!1))):V(!1),[G,{refetch:z=>e6(O,()=>V(z)),mutate:M}]}function on(e){if(ze===null)return e();const r=ze;ze=null;try{return e()}finally{ze=r}}function li(e){rn(()=>on(e))}function lr(e){return Ne===null||(Ne.cleanups===null?Ne.cleanups=[e]:Ne.cleanups.push(e)),e}function e6(e,r){const i=Ne,o=ze;Ne=e,ze=null;try{return kn(r,!0)}catch(s){ci(s)}finally{Ne=i,ze=o}}function t6(e){const r=ze,i=Ne;return Promise.resolve().then(()=>{ze=r,Ne=i;let o;return kn(e,!1),ze=Ne=null,o?o.done:void 0})}let n6;function ka(){if(this.sources&&this.state)if(this.state===$n)_1(this);else{const e=vt;vt=null,kn(()=>Wr(this),!1),vt=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 Sa(e,r,i){let o=e.value;return(!e.comparator||!e.comparator(o,r))&&(e.value=r,e.observers&&e.observers.length&&kn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],u=si&&si.running;u&&si.disposed.has(l),(u?!l.tState:!l.state)&&(l.pure?vt.push(l):Ln.push(l),l.observers&&Ma(l)),u||(l.state=$n)}if(vt.length>1e6)throw vt=[],new Error},!1)),r}function _1(e){if(!e.fn)return;cr(e);const r=zr;r6(e,e.value,r)}function r6(e,r,i){let o;const s=Ne,l=ze;ze=Ne=e;try{o=e.fn(r)}catch(u){return e.pure&&(e.state=$n,e.owned&&e.owned.forEach(cr),e.owned=null),e.updatedAt=i+1,ci(u)}finally{ze=l,Ne=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Sa(e,o):e.value=o,e.updatedAt=i)}function Nr(e,r,i,o=$n,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:Ne,context:Ne?Ne.context:null,pure:i};return Ne===null||Ne!==$a&&(Ne.owned?Ne.owned.push(l):Ne.owned=[l]),l}function Zr(e){if(e.state===0)return;if(e.state===Rr)return Wr(e);if(e.suspense&&on(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<zr);)e.state&&r.push(e);for(let i=r.length-1;i>=0;i--)if(e=r[i],e.state===$n)_1(e);else if(e.state===Rr){const o=vt;vt=null,kn(()=>Wr(e,r[0]),!1),vt=o}}function kn(e,r){if(vt)return e();let i=!1;r||(vt=[]),Ln?i=!0:Ln=[],zr++;try{const o=e();return i6(i),o}catch(o){i||(Ln=null),vt=null,ci(o)}}function i6(e){if(vt&&(Aa(vt),vt=null),e)return;const r=Ln;Ln=null,r.length&&kn(()=>wa(r),!1)}function Aa(e){for(let r=0;r<e.length;r++)Zr(e[r])}function o6(e){let r,i=0;for(r=0;r<e.length;r++){const o=e[r];o.user?e[i++]=o:Zr(o)}for(r=0;r<i;r++)Zr(e[r])}function Wr(e,r){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===$n?o!==r&&(!o.updatedAt||o.updatedAt<zr)&&Zr(o):s===Rr&&Wr(o,r)}}}function Ma(e){for(let r=0;r<e.observers.length;r+=1){const i=e.observers[r];i.state||(i.state=Rr,i.pure?vt.push(i):Ln.push(i),i.observers&&Ma(i))}}function cr(e){let r;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),u=i.observerSlots.pop();o<s.length&&(l.sourceSlots[u]=o,s[o]=l,i.observerSlots[o]=u)}}if(e.tOwned){for(r=e.tOwned.length-1;r>=0;r--)cr(e.tOwned[r]);delete e.tOwned}if(e.owned){for(r=e.owned.length-1;r>=0;r--)cr(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0}function Kr(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ci(e,r=Ne){throw Kr(e)}const a6=Symbol("fallback");function Ta(e){for(let r=0;r<e.length;r++)e[r]()}function s6(e,r,i={}){let o=[],s=[],l=[],u=0,f=r.length>1?[]:null;return lr(()=>Ta(l)),()=>{let h=e()||[],m=h.length,_,v;return h[Gl],on(()=>{let M,x,T,A,w,I,R,k,Z;if(m===0)u!==0&&(Ta(l),l=[],o=[],s=[],u=0,f&&(f=[])),i.fallback&&(o=[a6],s[0]=Fr(G=>(l[0]=G,i.fallback())),u=1);else if(u===0){for(s=new Array(m),v=0;v<m;v++)o[v]=h[v],s[v]=Fr($);u=m}else{for(T=new Array(m),A=new Array(m),f&&(w=new Array(m)),I=0,R=Math.min(u,m);I<R&&o[I]===h[I];I++);for(R=u-1,k=m-1;R>=I&&k>=I&&o[R]===h[k];R--,k--)T[k]=s[R],A[k]=l[R],f&&(w[k]=f[R]);for(M=new Map,x=new Array(k+1),v=k;v>=I;v--)Z=h[v],_=M.get(Z),x[v]=_===void 0?-1:_,M.set(Z,v);for(_=I;_<=R;_++)Z=o[_],v=M.get(Z),v!==void 0&&v!==-1?(T[v]=s[_],A[v]=l[_],f&&(w[v]=f[_]),v=x[v],M.set(Z,v)):l[_]();for(v=I;v<m;v++)v in T?(s[v]=T[v],l[v]=A[v],f&&(f[v]=w[v],f[v](v))):s[v]=Fr($);s=s.slice(0,u=m),o=h.slice(0)}return s});function $(M){if(l[v]=M,f){const[x,T]=j(v);return f[v]=T,r(h[v],x)}return r(h[v])}}}function H(e,r){return on(()=>e(r||{}))}function Ur(){return!0}const l6={get(e,r,i){return r===oi?i:e.get(r)},has(e,r){return r===oi?!0:e.has(r)},set:Ur,deleteProperty:Ur,getOwnPropertyDescriptor(e,r){return{configurable:!0,enumerable:!0,get(){return e.get(r)},set:Ur,deleteProperty:Ur}},ownKeys(e){return e.keys()}};function ui(e){return(e=typeof e=="function"?e():e)?e:{}}function c6(){for(let e=0,r=this.length;e<r;++e){const i=this[e]();if(i!==void 0)return i}}function Pa(...e){let r=!1;for(let u=0;u<e.length;u++){const f=e[u];r=r||!!f&&oi in f,e[u]=typeof f=="function"?(r=!0,mn(f)):f}if(Ql&&r)return new Proxy({get(u){for(let f=e.length-1;f>=0;f--){const h=ui(e[f])[u];if(h!==void 0)return h}},has(u){for(let f=e.length-1;f>=0;f--)if(u in ui(e[f]))return!0;return!1},keys(){const u=[];for(let f=0;f<e.length;f++)u.push(...Object.keys(ui(e[f])));return[...new Set(u)]}},l6);const i={},o=Object.create(null);for(let u=e.length-1;u>=0;u--){const f=e[u];if(!f)continue;const h=Object.getOwnPropertyNames(f);for(let m=h.length-1;m>=0;m--){const _=h[m];if(_==="__proto__"||_==="constructor")continue;const v=Object.getOwnPropertyDescriptor(f,_);if(!o[_])o[_]=v.get?{enumerable:!0,configurable:!0,get:c6.bind(i[_]=[v.get.bind(f)])}:v.value!==void 0?v:void 0;else{const $=i[_];$&&(v.get?$.push(v.get.bind(f)):v.value!==void 0&&$.push(()=>v.value))}}}const s={},l=Object.keys(o);for(let u=l.length-1;u>=0;u--){const f=l[u],h=o[f];h&&h.get?Object.defineProperty(s,f,h):s[f]=h?h.value:void 0}return s}const u6=e=>`Stale read from <${e}>.`;function fi(e){const r="fallback"in e&&{fallback:()=>e.fallback};return mn(s6(()=>e.each,e.children,r||void 0))}function We(e){const r=e.keyed,i=mn(()=>e.when,void 0,void 0),o=r?i:mn(i,void 0,{equals:(s,l)=>!s==!l});return mn(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?on(()=>l(r?s:()=>{if(!on(o))throw u6("Show");return i()})):l}return e.fallback},void 0,void 0)}const qe=e=>mn(()=>e());function f6(e,r,i){let o=i.length,s=r.length,l=o,u=0,f=0,h=r[s-1].nextSibling,m=null;for(;u<s||f<l;){if(r[u]===i[f]){u++,f++;continue}for(;r[s-1]===i[l-1];)s--,l--;if(s===u){const _=l<o?f?i[f-1].nextSibling:i[l-f]:h;for(;f<l;)e.insertBefore(i[f++],_)}else if(l===f)for(;u<s;)(!m||!m.has(r[u]))&&r[u].remove(),u++;else if(r[u]===i[l-1]&&i[f]===r[s-1]){const _=r[--s].nextSibling;e.insertBefore(i[f++],r[u++].nextSibling),e.insertBefore(i[--l],_),r[s]=i[l]}else{if(!m){m=new Map;let v=f;for(;v<l;)m.set(i[v],v++)}const _=m.get(r[u]);if(_!=null)if(f<_&&_<l){let v=u,$=1,M;for(;++v<s&&v<l&&!((M=m.get(r[v]))==null||M!==_+$);)$++;if($>_-f){const x=r[u];for(;f<_;)e.insertBefore(i[f++],x)}else e.replaceChild(i[f++],r[u++])}else u++;else r[u++].remove()}}}const Ia="_$DX_DELEGATE";function d6(e,r,i,o={}){let s;return Fr(l=>{s=l,r===document?e():K(r,e(),r.firstChild?null:void 0,i)},o.owner),()=>{s(),r.textContent=""}}function B(e,r,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},u=r?()=>on(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return u.cloneNode=u,u}function wt(e,r=window.document){const i=r[Ia]||(r[Ia]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),r.addEventListener(l,h6))}}function rt(e,r,i){i==null?e.removeAttribute(r):e.setAttribute(r,i)}function an(e,r){r==null?e.removeAttribute("class"):e.className=r}function Kn(e,r,i,o){if(o)Array.isArray(i)?(e[`$$${r}`]=i[0],e[`$$${r}Data`]=i[1]):e[`$$${r}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(r,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(r,i,typeof i!="function"&&i)}function Ut(e,r,i){if(!r)return i?rt(e,"style"):r;const o=e.style;if(typeof r=="string")return o.cssText=r;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),r||(r={});let s,l;for(l in i)r[l]==null&&o.removeProperty(l),delete i[l];for(l in r)s=r[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Bt(e,r,i){i!=null?e.style.setProperty(r,i):e.style.removeProperty(r)}function ur(e,r,i){return on(()=>e(r,i))}function K(e,r,i,o){if(i!==void 0&&!o&&(o=[]),typeof r!="function")return Hr(e,r,o,i);Te(s=>Hr(e,r(),s,i),o)}function h6(e){let r=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=h=>Object.defineProperty(e,"target",{configurable:!0,value:h}),u=()=>{const h=r[i];if(h&&!r.disabled){const m=r[`${i}Data`];if(m!==void 0?h.call(r,m,e):h.call(r,e),e.cancelBubble)return}return r.host&&typeof r.host!="string"&&!r.host._$host&&r.contains(e.target)&&l(r.host),!0},f=()=>{for(;u()&&(r=r._$host||r.parentNode||r.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return r||document}}),e.composedPath){const h=e.composedPath();l(h[0]);for(let m=0;m<h.length-2&&(r=h[m],!!u());m++){if(r._$host){r=r._$host,f();break}if(r.parentNode===s)break}}else f();l(o)}function Hr(e,r,i,o,s){for(;typeof i=="function";)i=i();if(r===i)return i;const l=typeof r,u=o!==void 0;if(e=u&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(r=r.toString(),r===i))return i;if(u){let f=i[0];f&&f.nodeType===3?f.data!==r&&(f.data=r):f=document.createTextNode(r),i=C1(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=r:i=e.textContent=r}else if(r==null||l==="boolean")i=C1(e,i,o);else{if(l==="function")return Te(()=>{let f=r();for(;typeof f=="function";)f=f();i=Hr(e,f,i,o)}),()=>i;if(Array.isArray(r)){const f=[],h=i&&Array.isArray(i);if(di(f,r,i,s))return Te(()=>i=Hr(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=C1(e,i,o),u)return i}else h?i.length===0?Oa(e,f,o):f6(e,i,f):(i&&C1(e),Oa(e,f));i=f}else if(r.nodeType){if(Array.isArray(i)){if(u)return i=C1(e,i,o,r);C1(e,i,null,r)}else i==null||i===""||!e.firstChild?e.appendChild(r):e.replaceChild(r,e.firstChild);i=r}}return i}function di(e,r,i,o){let s=!1;for(let l=0,u=r.length;l<u;l++){let f=r[l],h=i&&i[e.length],m;if(!(f==null||f===!0||f===!1))if((m=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=di(e,f,h)||s;else if(m==="function")if(o){for(;typeof f=="function";)f=f();s=di(e,Array.isArray(f)?f:[f],Array.isArray(h)?h:[h])||s}else e.push(f),s=!0;else{const _=String(f);h&&h.nodeType===3&&h.data===_?e.push(h):e.push(document.createTextNode(_))}}return s}function Oa(e,r,i=null){for(let o=0,s=r.length;o<s;o++)e.insertBefore(r[o],i)}function C1(e,r,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(r.length){let l=!1;for(let u=r.length-1;u>=0;u--){const f=r[u];if(s!==f){const h=f.parentNode===e;!l&&!u?h?e.replaceChild(s,f):e.insertBefore(s,i):h&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function g6(){this.__data__=[],this.size=0}var p6=g6;function m6(e,r){return e===r||e!==e&&r!==r}var Ba=m6,y6=Ba;function v6(e,r){for(var i=e.length;i--;)if(y6(e[i][0],r))return i;return-1}var jr=v6,b6=jr,_6=Array.prototype,C6=_6.splice;function x6(e){var r=this.__data__,i=b6(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():C6.call(r,i,1),--this.size,!0}var w6=x6,$6=jr;function L6(e){var r=this.__data__,i=$6(r,e);return i<0?void 0:r[i][1]}var k6=L6,S6=jr;function A6(e){return S6(this.__data__,e)>-1}var M6=A6,T6=jr;function P6(e,r){var i=this.__data__,o=T6(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var I6=P6,O6=p6,B6=w6,E6=k6,D6=M6,R6=I6;function x1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}x1.prototype.clear=O6,x1.prototype.delete=B6,x1.prototype.get=E6,x1.prototype.has=D6,x1.prototype.set=R6;var Yr=x1,z6=Yr;function F6(){this.__data__=new z6,this.size=0}var N6=F6;function Z6(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var W6=Z6;function K6(e){return this.__data__.get(e)}var U6=K6;function H6(e){return this.__data__.has(e)}var j6=H6,Y6=typeof wn=="object"&&wn&&wn.Object===Object&&wn,Ea=Y6,V6=Ea,Q6=typeof self=="object"&&self&&self.Object===Object&&self,G6=V6||Q6||Function("return this")(),yn=G6,q6=yn,X6=q6.Symbol,Vr=X6,Da=Vr,Ra=Object.prototype,J6=Ra.hasOwnProperty,e3=Ra.toString,fr=Da?Da.toStringTag:void 0;function t3(e){var r=J6.call(e,fr),i=e[fr];try{e[fr]=void 0;var o=!0}catch{}var s=e3.call(e);return o&&(r?e[fr]=i:delete e[fr]),s}var n3=t3,r3=Object.prototype,i3=r3.toString;function o3(e){return i3.call(e)}var a3=o3,za=Vr,s3=n3,l3=a3,c3="[object Null]",u3="[object Undefined]",Fa=za?za.toStringTag:void 0;function f3(e){return e==null?e===void 0?u3:c3:Fa&&Fa in Object(e)?s3(e):l3(e)}var dr=f3;function d3(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var w1=d3,h3=dr,g3=w1,p3="[object AsyncFunction]",m3="[object Function]",y3="[object GeneratorFunction]",v3="[object Proxy]";function b3(e){if(!g3(e))return!1;var r=h3(e);return r==m3||r==y3||r==p3||r==v3}var Na=b3,_3=yn,C3=_3["__core-js_shared__"],x3=C3,hi=x3,Za=function(){var e=/[^.]+$/.exec(hi&&hi.keys&&hi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function w3(e){return!!Za&&Za in e}var $3=w3,L3=Function.prototype,k3=L3.toString;function S3(e){if(e!=null){try{return k3.call(e)}catch{}try{return e+""}catch{}}return""}var Wa=S3,A3=Na,M3=$3,T3=w1,P3=Wa,I3=/[\\^$.*+?()[\]{}|]/g,O3=/^\[object .+?Constructor\]$/,B3=Function.prototype,E3=Object.prototype,D3=B3.toString,R3=E3.hasOwnProperty,z3=RegExp("^"+D3.call(R3).replace(I3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F3(e){if(!T3(e)||M3(e))return!1;var r=A3(e)?z3:O3;return r.test(P3(e))}var N3=F3;function Z3(e,r){return e==null?void 0:e[r]}var W3=Z3,K3=N3,U3=W3;function H3(e,r){var i=U3(e,r);return K3(i)?i:void 0}var a1=H3,j3=a1,Y3=yn,V3=j3(Y3,"Map"),gi=V3,Q3=a1,G3=Q3(Object,"create"),Qr=G3,Ka=Qr;function q3(){this.__data__=Ka?Ka(null):{},this.size=0}var X3=q3;function J3(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var e8=J3,t8=Qr,n8="__lodash_hash_undefined__",r8=Object.prototype,i8=r8.hasOwnProperty;function o8(e){var r=this.__data__;if(t8){var i=r[e];return i===n8?void 0:i}return i8.call(r,e)?r[e]:void 0}var a8=o8,s8=Qr,l8=Object.prototype,c8=l8.hasOwnProperty;function u8(e){var r=this.__data__;return s8?r[e]!==void 0:c8.call(r,e)}var f8=u8,d8=Qr,h8="__lodash_hash_undefined__";function g8(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=d8&&r===void 0?h8:r,this}var p8=g8,m8=X3,y8=e8,v8=a8,b8=f8,_8=p8;function $1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}$1.prototype.clear=m8,$1.prototype.delete=y8,$1.prototype.get=v8,$1.prototype.has=b8,$1.prototype.set=_8;var C8=$1,Ua=C8,x8=Yr,w8=gi;function $8(){this.size=0,this.__data__={hash:new Ua,map:new(w8||x8),string:new Ua}}var L8=$8;function k8(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var S8=k8,A8=S8;function M8(e,r){var i=e.__data__;return A8(r)?i[typeof r=="string"?"string":"hash"]:i.map}var Gr=M8,T8=Gr;function P8(e){var r=T8(this,e).delete(e);return this.size-=r?1:0,r}var I8=P8,O8=Gr;function B8(e){return O8(this,e).get(e)}var E8=B8,D8=Gr;function R8(e){return D8(this,e).has(e)}var z8=R8,F8=Gr;function N8(e,r){var i=F8(this,e),o=i.size;return i.set(e,r),this.size+=i.size==o?0:1,this}var Z8=N8,W8=L8,K8=I8,U8=E8,H8=z8,j8=Z8;function L1(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var o=e[r];this.set(o[0],o[1])}}L1.prototype.clear=W8,L1.prototype.delete=K8,L1.prototype.get=U8,L1.prototype.has=H8,L1.prototype.set=j8;var Ha=L1,Y8=Yr,V8=gi,Q8=Ha,G8=200;function q8(e,r){var i=this.__data__;if(i instanceof Y8){var o=i.__data__;if(!V8||o.length<G8-1)return o.push([e,r]),this.size=++i.size,this;i=this.__data__=new Q8(o)}return i.set(e,r),this.size=i.size,this}var X8=q8,J8=Yr,ec=N6,tc=W6,nc=U6,rc=j6,ic=X8;function k1(e){var r=this.__data__=new J8(e);this.size=r.size}k1.prototype.clear=ec,k1.prototype.delete=tc,k1.prototype.get=nc,k1.prototype.has=rc,k1.prototype.set=ic;var oc=k1;function ac(e,r){for(var i=-1,o=e==null?0:e.length;++i<o&&r(e[i],i,e)!==!1;);return e}var sc=ac,lc=a1,cc=function(){try{var e=lc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),uc=cc,ja=uc;function fc(e,r,i){r=="__proto__"&&ja?ja(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}var Ya=fc,dc=Ya,hc=Ba,gc=Object.prototype,pc=gc.hasOwnProperty;function mc(e,r,i){var o=e[r];(!(pc.call(e,r)&&hc(o,i))||i===void 0&&!(r in e))&&dc(e,r,i)}var pi=mc,yc=pi,vc=Ya;function bc(e,r,i,o){var s=!i;i||(i={});for(var l=-1,u=r.length;++l<u;){var f=r[l],h=o?o(i[f],e[f],f,i,e):void 0;h===void 0&&(h=e[f]),s?vc(i,f,h):yc(i,f,h)}return i}var qr=bc;function _c(e,r){for(var i=-1,o=Array(e);++i<e;)o[i]=r(i);return o}var Cc=_c;function xc(e){return e!=null&&typeof e=="object"}var S1=xc,wc=dr,$c=S1,Lc="[object Arguments]";function kc(e){return $c(e)&&wc(e)==Lc}var Sc=kc,Va=Sc,Ac=S1,Qa=Object.prototype,Mc=Qa.hasOwnProperty,Tc=Qa.propertyIsEnumerable,Pc=Va(function(){return arguments}())?Va:function(e){return Ac(e)&&Mc.call(e,"callee")&&!Tc.call(e,"callee")},Ic=Pc,Oc=Array.isArray,A1=Oc,Xr={exports:{}};function Bc(){return!1}var Ec=Bc;Xr.exports,function(e,r){var i=yn,o=Ec,s=r&&!r.nodeType&&r,l=s&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===s,f=u?i.Buffer:void 0,h=f?f.isBuffer:void 0,m=h||o;e.exports=m}(Xr,Xr.exports);var Ga=Xr.exports,Dc=9007199254740991,Rc=/^(?:0|[1-9]\d*)$/;function zc(e,r){var i=typeof e;return r=r??Dc,!!r&&(i=="number"||i!="symbol"&&Rc.test(e))&&e>-1&&e%1==0&&e<r}var qa=zc,Fc=9007199254740991;function Nc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fc}var Xa=Nc,Zc=dr,Wc=Xa,Kc=S1,Uc="[object Arguments]",Hc="[object Array]",jc="[object Boolean]",Yc="[object Date]",Vc="[object Error]",Qc="[object Function]",Gc="[object Map]",qc="[object Number]",Xc="[object Object]",Jc="[object RegExp]",e7="[object Set]",t7="[object String]",n7="[object WeakMap]",r7="[object ArrayBuffer]",i7="[object DataView]",o7="[object Float32Array]",a7="[object Float64Array]",s7="[object Int8Array]",l7="[object Int16Array]",c7="[object Int32Array]",u7="[object Uint8Array]",f7="[object Uint8ClampedArray]",d7="[object Uint16Array]",h7="[object Uint32Array]",je={};je[o7]=je[a7]=je[s7]=je[l7]=je[c7]=je[u7]=je[f7]=je[d7]=je[h7]=!0,je[Uc]=je[Hc]=je[r7]=je[jc]=je[i7]=je[Yc]=je[Vc]=je[Qc]=je[Gc]=je[qc]=je[Xc]=je[Jc]=je[e7]=je[t7]=je[n7]=!1;function g7(e){return Kc(e)&&Wc(e.length)&&!!je[Zc(e)]}var p7=g7;function m7(e){return function(r){return e(r)}}var mi=m7,Jr={exports:{}};Jr.exports,function(e,r){var i=Ea,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l&&i.process,f=function(){try{var h=s&&s.require&&s.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}}();e.exports=f}(Jr,Jr.exports);var yi=Jr.exports,y7=p7,v7=mi,Ja=yi,es=Ja&&Ja.isTypedArray,b7=es?v7(es):y7,_7=b7,C7=Cc,x7=Ic,w7=A1,$7=Ga,L7=qa,k7=_7,S7=Object.prototype,A7=S7.hasOwnProperty;function M7(e,r){var i=w7(e),o=!i&&x7(e),s=!i&&!o&&$7(e),l=!i&&!o&&!s&&k7(e),u=i||o||s||l,f=u?C7(e.length,String):[],h=f.length;for(var m in e)(r||A7.call(e,m))&&!(u&&(m=="length"||s&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||L7(m,h)))&&f.push(m);return f}var ts=M7,T7=Object.prototype;function P7(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||T7;return e===i}var vi=P7;function I7(e,r){return function(i){return e(r(i))}}var ns=I7,O7=ns,B7=O7(Object.keys,Object),E7=B7,D7=vi,R7=E7,z7=Object.prototype,F7=z7.hasOwnProperty;function N7(e){if(!D7(e))return R7(e);var r=[];for(var i in Object(e))F7.call(e,i)&&i!="constructor"&&r.push(i);return r}var Z7=N7,W7=Na,K7=Xa;function U7(e){return e!=null&&K7(e.length)&&!W7(e)}var rs=U7,H7=ts,j7=Z7,Y7=rs;function V7(e){return Y7(e)?H7(e):j7(e)}var bi=V7,Q7=qr,G7=bi;function q7(e,r){return e&&Q7(r,G7(r),e)}var X7=q7;function J7(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var e4=J7,t4=w1,n4=vi,r4=e4,i4=Object.prototype,o4=i4.hasOwnProperty;function a4(e){if(!t4(e))return r4(e);var r=n4(e),i=[];for(var o in e)o=="constructor"&&(r||!o4.call(e,o))||i.push(o);return i}var s4=a4,l4=ts,c4=s4,u4=rs;function f4(e){return u4(e)?l4(e,!0):c4(e)}var _i=f4,d4=qr,h4=_i;function g4(e,r){return e&&d4(r,h4(r),e)}var p4=g4,e0={exports:{}};e0.exports,function(e,r){var i=yn,o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,u=l?i.Buffer:void 0,f=u?u.allocUnsafe:void 0;function h(m,_){if(_)return m.slice();var v=m.length,$=f?f(v):new m.constructor(v);return m.copy($),$}e.exports=h}(e0,e0.exports);var m4=e0.exports;function y4(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i<o;)r[i]=e[i];return r}var v4=y4;function b4(e,r){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var u=e[i];r(u,i,e)&&(l[s++]=u)}return l}var _4=b4;function C4(){return[]}var is=C4,x4=_4,w4=is,$4=Object.prototype,L4=$4.propertyIsEnumerable,os=Object.getOwnPropertySymbols,k4=os?function(e){return e==null?[]:(e=Object(e),x4(os(e),function(r){return L4.call(e,r)}))}:w4,Ci=k4,S4=qr,A4=Ci;function M4(e,r){return S4(e,A4(e),r)}var T4=M4;function P4(e,r){for(var i=-1,o=r.length,s=e.length;++i<o;)e[s+i]=r[i];return e}var as=P4,I4=ns,O4=I4(Object.getPrototypeOf,Object),ss=O4,B4=as,E4=ss,D4=Ci,R4=is,z4=Object.getOwnPropertySymbols,F4=z4?function(e){for(var r=[];e;)B4(r,D4(e)),e=E4(e);return r}:R4,ls=F4,N4=qr,Z4=ls;function W4(e,r){return N4(e,Z4(e),r)}var K4=W4,U4=as,H4=A1;function j4(e,r,i){var o=r(e);return H4(e)?o:U4(o,i(e))}var cs=j4,Y4=cs,V4=Ci,Q4=bi;function G4(e){return Y4(e,Q4,V4)}var q4=G4,X4=cs,J4=ls,eu=_i;function tu(e){return X4(e,eu,J4)}var nu=tu,ru=a1,iu=yn,ou=ru(iu,"DataView"),au=ou,su=a1,lu=yn,cu=su(lu,"Promise"),uu=cu,fu=a1,du=yn,hu=fu(du,"Set"),gu=hu,pu=a1,mu=yn,yu=pu(mu,"WeakMap"),vu=yu,xi=au,wi=gi,$i=uu,Li=gu,ki=vu,us=dr,M1=Wa,fs="[object Map]",bu="[object Object]",ds="[object Promise]",hs="[object Set]",gs="[object WeakMap]",ps="[object DataView]",_u=M1(xi),Cu=M1(wi),xu=M1($i),wu=M1(Li),$u=M1(ki),s1=us;(xi&&s1(new xi(new ArrayBuffer(1)))!=ps||wi&&s1(new wi)!=fs||$i&&s1($i.resolve())!=ds||Li&&s1(new Li)!=hs||ki&&s1(new ki)!=gs)&&(s1=function(e){var r=us(e),i=r==bu?e.constructor:void 0,o=i?M1(i):"";if(o)switch(o){case _u:return ps;case Cu:return fs;case xu:return ds;case wu:return hs;case $u:return gs}return r});var Si=s1,Lu=Object.prototype,ku=Lu.hasOwnProperty;function Su(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&ku.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Au=Su,Mu=yn,Tu=Mu.Uint8Array,Pu=Tu,ms=Pu;function Iu(e){var r=new e.constructor(e.byteLength);return new ms(r).set(new ms(e)),r}var Ai=Iu,Ou=Ai;function Bu(e,r){var i=r?Ou(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Eu=Bu,Du=/\w*$/;function Ru(e){var r=new e.constructor(e.source,Du.exec(e));return r.lastIndex=e.lastIndex,r}var zu=Ru,ys=Vr,vs=ys?ys.prototype:void 0,bs=vs?vs.valueOf:void 0;function Fu(e){return bs?Object(bs.call(e)):{}}var Nu=Fu,Zu=Ai;function Wu(e,r){var i=r?Zu(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Ku=Wu,Uu=Ai,Hu=Eu,ju=zu,Yu=Nu,Vu=Ku,Qu="[object Boolean]",Gu="[object Date]",qu="[object Map]",Xu="[object Number]",Ju="[object RegExp]",ef="[object Set]",tf="[object String]",nf="[object Symbol]",rf="[object ArrayBuffer]",of="[object DataView]",af="[object Float32Array]",sf="[object Float64Array]",lf="[object Int8Array]",cf="[object Int16Array]",uf="[object Int32Array]",ff="[object Uint8Array]",df="[object Uint8ClampedArray]",hf="[object Uint16Array]",gf="[object Uint32Array]";function pf(e,r,i){var o=e.constructor;switch(r){case rf:return Uu(e);case Qu:case Gu:return new o(+e);case of:return Hu(e,i);case af:case sf:case lf:case cf:case uf:case ff:case df:case hf:case gf:return Vu(e,i);case qu:return new o;case Xu:case tf:return new o(e);case Ju:return ju(e);case ef:return new o;case nf:return Yu(e)}}var mf=pf,yf=w1,_s=Object.create,vf=function(){function e(){}return function(r){if(!yf(r))return{};if(_s)return _s(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),bf=vf,_f=bf,Cf=ss,xf=vi;function wf(e){return typeof e.constructor=="function"&&!xf(e)?_f(Cf(e)):{}}var $f=wf,Lf=Si,kf=S1,Sf="[object Map]";function Af(e){return kf(e)&&Lf(e)==Sf}var Mf=Af,Tf=Mf,Pf=mi,Cs=yi,xs=Cs&&Cs.isMap,If=xs?Pf(xs):Tf,Of=If,Bf=Si,Ef=S1,Df="[object Set]";function Rf(e){return Ef(e)&&Bf(e)==Df}var zf=Rf,Ff=zf,Nf=mi,ws=yi,$s=ws&&ws.isSet,Zf=$s?Nf($s):Ff,Wf=Zf,Kf=oc,Uf=sc,Hf=pi,jf=X7,Yf=p4,Vf=m4,Qf=v4,Gf=T4,qf=K4,Xf=q4,Jf=nu,ed=Si,td=Au,nd=mf,rd=$f,id=A1,od=Ga,ad=Of,sd=w1,ld=Wf,cd=bi,ud=_i,fd=1,dd=2,hd=4,Ls="[object Arguments]",gd="[object Array]",pd="[object Boolean]",md="[object Date]",yd="[object Error]",ks="[object Function]",vd="[object GeneratorFunction]",bd="[object Map]",_d="[object Number]",Ss="[object Object]",Cd="[object RegExp]",xd="[object Set]",wd="[object String]",$d="[object Symbol]",Ld="[object WeakMap]",kd="[object ArrayBuffer]",Sd="[object DataView]",Ad="[object Float32Array]",Md="[object Float64Array]",Td="[object Int8Array]",Pd="[object Int16Array]",Id="[object Int32Array]",Od="[object Uint8Array]",Bd="[object Uint8ClampedArray]",Ed="[object Uint16Array]",Dd="[object Uint32Array]",Ke={};Ke[Ls]=Ke[gd]=Ke[kd]=Ke[Sd]=Ke[pd]=Ke[md]=Ke[Ad]=Ke[Md]=Ke[Td]=Ke[Pd]=Ke[Id]=Ke[bd]=Ke[_d]=Ke[Ss]=Ke[Cd]=Ke[xd]=Ke[wd]=Ke[$d]=Ke[Od]=Ke[Bd]=Ke[Ed]=Ke[Dd]=!0,Ke[yd]=Ke[ks]=Ke[Ld]=!1;function t0(e,r,i,o,s,l){var u,f=r&fd,h=r&dd,m=r&hd;if(i&&(u=s?i(e,o,s,l):i(e)),u!==void 0)return u;if(!sd(e))return e;var _=id(e);if(_){if(u=td(e),!f)return Qf(e,u)}else{var v=ed(e),$=v==ks||v==vd;if(od(e))return Vf(e,f);if(v==Ss||v==Ls||$&&!s){if(u=h||$?{}:rd(e),!f)return h?qf(e,Yf(u,e)):Gf(e,jf(u,e))}else{if(!Ke[v])return s?e:{};u=nd(e,v,f)}}l||(l=new Kf);var M=l.get(e);if(M)return M;l.set(e,u),ld(e)?e.forEach(function(A){u.add(t0(A,r,i,A,e,l))}):ad(e)&&e.forEach(function(A,w){u.set(w,t0(A,r,i,w,e,l))});var x=m?h?Jf:Xf:h?ud:cd,T=_?void 0:x(e);return Uf(T||e,function(A,w){T&&(w=A,A=e[w]),Hf(u,w,t0(A,r,i,w,e,l))}),u}var Rd=t0,zd=Rd,Fd=1,Nd=4;function Zd(e){return zd(e,Fd|Nd)}var Wd=Zd;const Kd=ri(Wd);var Ud=dr,Hd=S1,jd="[object Symbol]";function Yd(e){return typeof e=="symbol"||Hd(e)&&Ud(e)==jd}var Mi=Yd,Vd=A1,Qd=Mi,Gd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qd=/^\w*$/;function Xd(e,r){if(Vd(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Qd(e)?!0:qd.test(e)||!Gd.test(e)||r!=null&&e in Object(r)}var Jd=Xd,As=Ha,eh="Expected a function";function Ti(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(eh);var i=function(){var o=arguments,s=r?r.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var u=e.apply(this,o);return i.cache=l.set(s,u)||l,u};return i.cache=new(Ti.Cache||As),i}Ti.Cache=As;var th=Ti,nh=th,rh=500;function ih(e){var r=nh(e,function(o){return i.size===rh&&i.clear(),o}),i=r.cache;return r}var oh=ih,ah=oh,sh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lh=/\\(\\)?/g,ch=ah(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(sh,function(i,o,s,l){r.push(s?l.replace(lh,"$1"):o||i)}),r}),uh=ch;function fh(e,r){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=r(e[i],i,e);return s}var dh=fh,Ms=Vr,hh=dh,gh=A1,ph=Mi,mh=1/0,Ts=Ms?Ms.prototype:void 0,Ps=Ts?Ts.toString:void 0;function Is(e){if(typeof e=="string")return e;if(gh(e))return hh(e,Is)+"";if(ph(e))return Ps?Ps.call(e):"";var r=e+"";return r=="0"&&1/e==-mh?"-0":r}var yh=Is,vh=yh;function bh(e){return e==null?"":vh(e)}var _h=bh,Ch=A1,xh=Jd,wh=uh,$h=_h;function Lh(e,r){return Ch(e)?e:xh(e,r)?[e]:wh($h(e))}var kh=Lh,Sh=Mi,Ah=1/0;function Mh(e){if(typeof e=="string"||Sh(e))return e;var r=e+"";return r=="0"&&1/e==-Ah?"-0":r}var Th=Mh,Ph=pi,Ih=kh,Oh=qa,Os=w1,Bh=Th;function Eh(e,r,i,o){if(!Os(e))return e;r=Ih(r,e);for(var s=-1,l=r.length,u=l-1,f=e;f!=null&&++s<l;){var h=Bh(r[s]),m=i;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(s!=u){var _=f[h];m=o?o(_,h,f):void 0,m===void 0&&(m=Os(_)?_:Oh(r[s+1])?[]:{})}Ph(f,h,m),f=f[h]}return e}var Dh=Eh,Rh=Dh;function zh(e,r,i){return e==null?e:Rh(e,r,i)}var Fh=zh;const T1=ri(Fh);var Nh=B("<button>");const Zh=e=>(()=>{var r=Nh();return Kn(r,"click",e.onClick,!0),K(r,()=>e.children),Te(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=Ut(r,o,i.e),s!==i.t&&an(r,i.t=s),i},{e:void 0,t:void 0}),r})();wt(["click"]);var Wh=B('<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">'),Kh=B('<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">'),Uh=B("<div>"),Hh=B("<span class=label>");const jh=()=>Wh(),Yh=()=>Kh(),Bs=e=>{const[r,i]=j(e.checked??!1);return rn(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=Uh();return o.$$click=s=>{const l=!r();e.onChange&&e.onChange(l),i(l)},K(o,(()=>{var s=qe(()=>!!r());return()=>s()?H(jh,{}):H(Yh,{})})(),null),K(o,(()=>{var s=qe(()=>!!e.label);return()=>s()&&(()=>{var l=Hh();return K(l,()=>e.label),l})()})(),null),Te(s=>{var l=e.style,u=`klinecharts-pro-checkbox ${r()&&"checked"||""} ${e.class||""}`;return s.e=Ut(o,l,s.e),u!==s.t&&an(o,s.t=u),s},{e:void 0,t:void 0}),o})()};wt(["click"]);var Vh=B("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const Es=()=>Vh();var Qh=B('<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 Gh=()=>Qh();var qh=B("<ul>"),Xh=B("<li>");const n0=e=>(()=>{var r=qh();return K(r,H(We,{get when(){return e.loading},get children(){return H(Es,{})}}),null),K(r,H(We,{get when(){var i;return qe(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return H(Gh,{})}}),null),K(r,H(We,{get when(){return e.children},get children(){return e.children}}),null),K(r,H(We,{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))??Xh()})}}),null),Te(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=Ut(r,o,i.e),s!==i.t&&an(r,i.t=s),i},{e:void 0,t:void 0}),r})();var Jh=B('<div class=klinecharts-pro-modal><div class=inner><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>'),eg=B("<div class=button-container>");const l1=e=>{const r=i=>{var o;i.target&&i.target.classList.contains("klinecharts-pro-modal")&&((o=e.onClose)==null||o.call(e))};return(()=>{var i=Jh(),o=i.firstChild,s=o.firstChild,l=s.firstChild,u=s.nextSibling;return i.$$click=r,K(s,()=>e.title,l),Kn(l,"click",e.onClose,!0),K(u,()=>e.children),K(o,(()=>{var f=qe(()=>!!(e.buttons&&e.buttons.length>0));return()=>f()&&(()=>{var h=eg();return K(h,()=>e.buttons.map(m=>H(Zh,Pa(m,{get children(){return m.children}})))),h})()})(),null),i})()};wt(["click"]);var tg=B("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),ng=B("<div class=drop-down-container><ul>"),rg=B("<li>");const Pi=e=>{const[r,i]=j(!1);return(()=>{var o=tg(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",u=>{i(!1)}),o.$$click=u=>{i(f=>!f)},K(l,()=>e.value),K(o,(()=>{var u=qe(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>u()&&(()=>{var f=ng(),h=f.firstChild;return K(h,()=>e.dataSource.map(m=>{const v=m[e.valueKey??"text"]??m;return(()=>{var $=rg();return $.$$click=M=>{var x;M.stopPropagation(),e.value!==v&&((x=e.onSelected)==null||x.call(e,m)),i(!1)},K($,v),$})()})),f})()})(),null),Te(u=>{var f=e.style,h=`klinecharts-pro-select ${e.class??""} ${r()?"klinecharts-pro-select-show":""}`;return u.e=Ut(o,f,u.e),h!==u.t&&an(o,u.t=h),u},{e:void 0,t:void 0}),o})()};wt(["click"]);var ig=B("<span class=prefix>"),og=B("<span class=suffix>"),ag=B("<div><input id=myInput class=value>");const[sg,US]=j("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),hr=e=>{const r=Pa({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=j("normal"),l=u=>{u&&u.focus()};return rn(()=>{l(document.querySelector("#myInput"))}),(()=>{var u=ag(),f=u.firstChild;u.$$click=()=>{i==null||i.focus()},K(u,H(We,{get when(){return r.prefix},get children(){var m=ig();return K(m,()=>r.prefix),m}}),f),Kn(f,"keydown",r.onKeyDown,!0),f.addEventListener("change",m=>{var v,$;const _=m.target.value;if("precision"in r){let M;const x=Math.max(0,Math.floor(r.precision));x<=0?M=new RegExp(/^[1-9]\d*$/):M=new RegExp("^\\d+\\.?\\d{0,"+x+"}$"),(_===""||M.test(_)&&+_>=r.min&&+_<=r.max)&&((v=r.onChange)==null||v.call(r,_===""?_:+_))}else($=r.onChange)==null||$.call(r,_)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var h=i;return typeof h=="function"?ur(h,f):i=f,K(u,H(We,{get when(){return r.suffix},get children(){var m=og();return K(m,()=>r.suffix),m}}),null),Te(m=>{var _=r.style,v=`${sg()}${r.class??""}`,$=o(),M=r.placeholder??"",x=r.focus===!0?r.focus:!1;return m.e=Ut(u,_,m.e),v!==m.t&&an(u,m.t=v),$!==m.a&&rt(u,"data-status",m.a=$),M!==m.o&&rt(f,"placeholder",m.o=M),x!==m.i&&(f.autofocus=m.i=x),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>f.value=r.value),u})()};wt(["click","keydown"]);var lg=B("<div><i class=thumb>");const cg=e=>(()=>{var r=lg();return r.$$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=Ut(r,o,i.e),s!==i.t&&an(r,i.t=s),i},{e:void 0,t:void 0}),r})();wt(["click"]);const{min:ug,max:fg}=Math,c1=(e,r=0,i=1)=>ug(fg(r,e),i),Ii=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=c1(e[r],0,255)):r===3&&(e[r]=c1(e[r],0,1));return e},Ds={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Ds[`[object ${e}]`]=e.toLowerCase();function ke(e){return Ds[Object.prototype.toString.call(e)]||"object"}const Ce=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):ke(e[0])=="object"&&r?r.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),P1=e=>{if(e.length<2)return null;const r=e.length-1;return ke(e[r])=="string"?e[r].toLowerCase():null},{PI:r0,min:Rs,max:zs}=Math,Ht=e=>Math.round(e*100)/100,Oi=e=>Math.round(e*100)/100,Sn=r0*2,Bi=r0/3,dg=r0/180,hg=180/r0;function Fs(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const be={format:{},autodetect:[]};let Y=class{constructor(...r){const i=this;if(ke(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=P1(r),s=!1;if(!o){s=!0,be.sorted||(be.autodetect=be.autodetect.sort((l,u)=>u.p-l.p),be.sorted=!0);for(let l of be.autodetect)if(o=l.test(...r),o)break}if(be.format[o]){const l=be.format[o].apply(null,s?r:r.slice(0,-1));i._rgb=Ii(l)}else throw new Error("unknown format: "+r);i._rgb.length===3&&i._rgb.push(1)}toString(){return ke(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const gg="3.2.0",me=(...e)=>new Y(...e);me.version=gg;const I1={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"},pg=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,mg=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ns=e=>{if(e.match(pg)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),i=r>>16,o=r>>8&255,s=r&255;return[i,o,s,1]}if(e.match(mg)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),i=r>>24&255,o=r>>16&255,s=r>>8&255,l=Math.round((r&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:i0}=Math,Zs=(...e)=>{let[r,i,o,s]=Ce(e,"rgba"),l=P1(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),r=i0(r),i=i0(i),o=i0(o);let f="000000"+(r<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let h="0"+i0(s*255).toString(16);switch(h=h.substr(h.length-2),l.toLowerCase()){case"rgba":return`#${f}${h}`;case"argb":return`#${h}${f}`;default:return`#${f}`}};Y.prototype.name=function(){const e=Zs(this._rgb,"rgb");for(let r of Object.keys(I1))if(I1[r]===e)return r.toLowerCase();return e},be.format.named=e=>{if(e=e.toLowerCase(),I1[e])return Ns(I1[e]);throw new Error("unknown color name: "+e)},be.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&ke(e)==="string"&&I1[e.toLowerCase()])return"named"}}),Y.prototype.alpha=function(e,r=!1){return e!==void 0&&ke(e)==="number"?r?(this._rgb[3]=e,this):new Y([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Y.prototype.clipped=function(){return this._rgb._clipped||!1};const vn={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}},yg=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 An(e){const r=yg.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);vn.labWhitePoint=e,vn.Xn=r[0],vn.Zn=r[1]}function gr(){return vn.labWhitePoint}const Ei=(...e)=>{e=Ce(e,"lab");const[r,i,o]=e,[s,l,u]=vg(r,i,o),[f,h,m]=Ws(s,l,u);return[f,h,m,e.length>3?e[3]:1]},vg=(e,r,i)=>{const{kE:o,kK:s,kKE:l,Xn:u,Yn:f,Zn:h}=vn,m=(e+16)/116,_=.002*r+m,v=m-.005*i,$=_*_*_,M=v*v*v,x=$>o?$:(116*_-16)/s,T=e>l?Math.pow((e+16)/116,3):e/s,A=M>o?M:(116*v-16)/s,w=x*u,I=T*f,R=A*h;return[w,I,R]},Di=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},Ws=(e,r,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:u,Xn:f,Yn:h,Zn:m}=vn,_=f*o.m00+h*o.m10+m*o.m20,v=f*o.m01+h*o.m11+m*o.m21,$=f*o.m02+h*o.m12+m*o.m22,M=u.X*o.m00+u.Y*o.m10+u.Z*o.m20,x=u.X*o.m01+u.Y*o.m11+u.Z*o.m21,T=u.X*o.m02+u.Y*o.m12+u.Z*o.m22,A=(e*o.m00+r*o.m10+i*o.m20)*(M/_),w=(e*o.m01+r*o.m11+i*o.m21)*(x/v),I=(e*o.m02+r*o.m12+i*o.m22)*(T/$),R=A*s.m00+w*s.m10+I*s.m20,k=A*s.m01+w*s.m11+I*s.m21,Z=A*s.m02+w*s.m12+I*s.m22,G=Di(R*l.m00+k*l.m10+Z*l.m20),V=Di(R*l.m01+k*l.m11+Z*l.m21),O=Di(R*l.m02+k*l.m12+Z*l.m22);return[G*255,V*255,O*255]},Ri=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),[l,u,f]=Ks(r,i,o),[h,m,_]=bg(l,u,f);return[h,m,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function bg(e,r,i){const{Xn:o,Yn:s,Zn:l,kE:u,kK:f}=vn,h=e/o,m=r/s,_=i/l,v=h>u?Math.pow(h,1/3):(f*h+16)/116,$=m>u?Math.pow(m,1/3):(f*m+16)/116,M=_>u?Math.pow(_,1/3):(f*_+16)/116;return[116*$-16,500*(v-$),200*($-M)]}function zi(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const Ks=(e,r,i)=>{e=zi(e/255),r=zi(r/255),i=zi(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:u,Yn:f,Zn:h,As:m,Bs:_,Cs:v}=vn;let $=e*o.m00+r*o.m10+i*o.m20,M=e*o.m01+r*o.m11+i*o.m21,x=e*o.m02+r*o.m12+i*o.m22;const T=u*s.m00+f*s.m10+h*s.m20,A=u*s.m01+f*s.m11+h*s.m21,w=u*s.m02+f*s.m12+h*s.m22;let I=$*s.m00+M*s.m10+x*s.m20,R=$*s.m01+M*s.m11+x*s.m21,k=$*s.m02+M*s.m12+x*s.m22;return I*=T/m,R*=A/_,k*=w/v,$=I*l.m00+R*l.m10+k*l.m20,M=I*l.m01+R*l.m11+k*l.m21,x=I*l.m02+R*l.m12+k*l.m22,[$,M,x]};Y.prototype.lab=function(){return Ri(this._rgb)},Object.assign(me,{lab:(...e)=>new Y(...e,"lab"),getLabWhitePoint:gr,setLabWhitePoint:An}),be.format.lab=Ei,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"lab"),ke(e)==="array"&&e.length===3)return"lab"}}),Y.prototype.darken=function(e=1){const r=this,i=r.lab();return i[0]-=vn.Kn*e,new Y(i,"lab").alpha(r.alpha(),!0)},Y.prototype.brighten=function(e=1){return this.darken(-e)},Y.prototype.darker=Y.prototype.darken,Y.prototype.brighter=Y.prototype.brighten,Y.prototype.get=function(e){const[r,i]=e.split("."),o=this[r]();if(i){const s=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${r}`)}else return o};const{pow:_g}=Math,Cg=1e-7,xg=20;Y.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&ke(e)==="number"){if(e===0)return new Y([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Y([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=xg;const s=(u,f)=>{const h=u.interpolate(f,.5,r),m=h.luminance();return Math.abs(e-m)<Cg||!o--?h:m>e?s(u,h):s(h,f)},l=(i>e?s(new Y([0,0,0]),this):s(this,new Y([255,255,255]))).rgb();return new Y([...l,this._rgb[3]])}return wg(...this._rgb.slice(0,3))};const wg=(e,r,i)=>(e=Fi(e),r=Fi(r),i=Fi(i),.2126*e+.7152*r+.0722*i),Fi=e=>(e/=255,e<=.03928?e/12.92:_g((e+.055)/1.055,2.4)),bt={},O1=(e,r,i=.5,...o)=>{let s=o[0]||"lrgb";if(!bt[s]&&!o.length&&(s=Object.keys(bt)[0]),!bt[s])throw new Error(`interpolation mode ${s} is not defined`);return ke(e)!=="object"&&(e=new Y(e)),ke(r)!=="object"&&(r=new Y(r)),bt[s](e,r,i).alpha(e.alpha()+i*(r.alpha()-e.alpha()))};Y.prototype.mix=Y.prototype.interpolate=function(e,r=.5,...i){return O1(this,e,r,...i)},Y.prototype.premultiply=function(e=!1){const r=this._rgb,i=r[3];return e?(this._rgb=[r[0]*i,r[1]*i,r[2]*i,i],this):new Y([r[0]*i,r[1]*i,r[2]*i,i],"rgb")};const{sin:$g,cos:Lg}=Math,Us=(...e)=>{let[r,i,o]=Ce(e,"lch");return isNaN(o)&&(o=0),o=o*dg,[r,Lg(o)*i,$g(o)*i]},Ni=(...e)=>{e=Ce(e,"lch");const[r,i,o]=e,[s,l,u]=Us(r,i,o),[f,h,m]=Ei(s,l,u);return[f,h,m,e.length>3?e[3]:1]},kg=(...e)=>{const r=Fs(Ce(e,"hcl"));return Ni(...r)},{sqrt:Sg,atan2:Ag,round:Mg}=Math,Hs=(...e)=>{const[r,i,o]=Ce(e,"lab"),s=Sg(i*i+o*o);let l=(Ag(o,i)*hg+360)%360;return Mg(s*1e4)===0&&(l=Number.NaN),[r,s,l]},Zi=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),[l,u,f]=Ri(r,i,o),[h,m,_]=Hs(l,u,f);return[h,m,_,...s.length>0&&s[0]<1?[s[0]]:[]]};Y.prototype.lch=function(){return Zi(this._rgb)},Y.prototype.hcl=function(){return Fs(Zi(this._rgb))},Object.assign(me,{lch:(...e)=>new Y(...e,"lch"),hcl:(...e)=>new Y(...e,"hcl")}),be.format.lch=Ni,be.format.hcl=kg,["lch","hcl"].forEach(e=>be.autodetect.push({p:2,test:(...r)=>{if(r=Ce(r,e),ke(r)==="array"&&r.length===3)return e}})),Y.prototype.saturate=function(e=1){const r=this,i=r.lch();return i[1]+=vn.Kn*e,i[1]<0&&(i[1]=0),new Y(i,"lch").alpha(r.alpha(),!0)},Y.prototype.desaturate=function(e=1){return this.saturate(-e)},Y.prototype.set=function(e,r,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const u=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(u>-1){if(ke(r)=="string")switch(r.charAt(0)){case"+":l[u]+=+r;break;case"-":l[u]+=+r;break;case"*":l[u]*=+r.substr(1);break;case"/":l[u]/=+r.substr(1);break;default:l[u]=+r}else if(ke(r)==="number")l[u]=r;else throw new Error("unsupported value for Color.set");const f=new Y(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},Y.prototype.tint=function(e=.5,...r){return O1(this,"white",e,...r)},Y.prototype.shade=function(e=.5,...r){return O1(this,"black",e,...r)};const Tg=(e,r,i)=>{const o=e._rgb,s=r._rgb;return new Y(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};bt.rgb=Tg;const{sqrt:Wi,pow:B1}=Math,Pg=(e,r,i)=>{const[o,s,l]=e._rgb,[u,f,h]=r._rgb;return new Y(Wi(B1(o,2)*(1-i)+B1(u,2)*i),Wi(B1(s,2)*(1-i)+B1(f,2)*i),Wi(B1(l,2)*(1-i)+B1(h,2)*i),"rgb")};bt.lrgb=Pg;const Ig=(e,r,i)=>{const o=e.lab(),s=r.lab();return new Y(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};bt.lab=Ig;const E1=(e,r,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=r.hsl()):o==="hsv"?(s=e.hsv(),l=r.hsv()):o==="hcg"?(s=e.hcg(),l=r.hcg()):o==="hsi"?(s=e.hsi(),l=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=r.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=r.oklch().reverse());let u,f,h,m,_,v;(o.substr(0,1)==="h"||o==="oklch")&&([u,h,_]=s,[f,m,v]=l);let $,M,x,T;return!isNaN(u)&&!isNaN(f)?(f>u&&f-u>180?T=f-(u+360):f<u&&u-f>180?T=f+360-u:T=f-u,M=u+i*T):isNaN(u)?isNaN(f)?M=Number.NaN:(M=f,(_==1||_==0)&&o!="hsv"&&($=m)):(M=u,(v==1||v==0)&&o!="hsv"&&($=h)),$===void 0&&($=h+i*(m-h)),x=_+i*(v-_),o==="oklch"?new Y([x,$,M],o):new Y([M,$,x],o)},js=(e,r,i)=>E1(e,r,i,"lch");bt.lch=js,bt.hcl=js;const Og=e=>{if(ke(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,i=e>>8&255,o=e&255;return[r,i,o,1]}throw new Error("unknown num color: "+e)},Bg=(...e)=>{const[r,i,o]=Ce(e,"rgb");return(r<<16)+(i<<8)+o};Y.prototype.num=function(){return Bg(this._rgb)},Object.assign(me,{num:(...e)=>new Y(...e,"num")}),be.format.num=Og,be.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&ke(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const Eg=(e,r,i)=>{const o=e.num(),s=r.num();return new Y(o+i*(s-o),"num")};bt.num=Eg;const{floor:Dg}=Math,Rg=(...e)=>{e=Ce(e,"hcg");let[r,i,o]=e,s,l,u;o=o*255;const f=i*255;if(i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const h=Dg(r),m=r-h,_=o*(1-i),v=_+f*(1-m),$=_+f*m,M=_+f;switch(h){case 0:[s,l,u]=[M,$,_];break;case 1:[s,l,u]=[v,M,_];break;case 2:[s,l,u]=[_,M,$];break;case 3:[s,l,u]=[_,v,M];break;case 4:[s,l,u]=[$,_,M];break;case 5:[s,l,u]=[M,_,v];break}}return[s,l,u,e.length>3?e[3]:1]},zg=(...e)=>{const[r,i,o]=Ce(e,"rgb"),s=Rs(r,i,o),l=zs(r,i,o),u=l-s,f=u*100/255,h=s/(255-u)*100;let m;return u===0?m=Number.NaN:(r===l&&(m=(i-o)/u),i===l&&(m=2+(o-r)/u),o===l&&(m=4+(r-i)/u),m*=60,m<0&&(m+=360)),[m,f,h]};Y.prototype.hcg=function(){return zg(this._rgb)};const Fg=(...e)=>new Y(...e,"hcg");me.hcg=Fg,be.format.hcg=Rg,be.autodetect.push({p:1,test:(...e)=>{if(e=Ce(e,"hcg"),ke(e)==="array"&&e.length===3)return"hcg"}});const Ng=(e,r,i)=>E1(e,r,i,"hcg");bt.hcg=Ng;const{cos:D1}=Math,Zg=(...e)=>{e=Ce(e,"hsi");let[r,i,o]=e,s,l,u;return isNaN(r)&&(r=0),isNaN(i)&&(i=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(u=(1-i)/3,s=(1+i*D1(Sn*r)/D1(Bi-Sn*r))/3,l=1-(u+s)):r<2/3?(r-=1/3,s=(1-i)/3,l=(1+i*D1(Sn*r)/D1(Bi-Sn*r))/3,u=1-(s+l)):(r-=2/3,l=(1-i)/3,u=(1+i*D1(Sn*r)/D1(Bi-Sn*r))/3,s=1-(l+u)),s=c1(o*s*3),l=c1(o*l*3),u=c1(o*u*3),[s*255,l*255,u*255,e.length>3?e[3]:1]},{min:Wg,sqrt:Kg,acos:Ug}=Math,Hg=(...e)=>{let[r,i,o]=Ce(e,"rgb");r/=255,i/=255,o/=255;let s;const l=Wg(r,i,o),u=(r+i+o)/3,f=u>0?1-l/u:0;return f===0?s=NaN:(s=(r-i+(r-o))/2,s/=Kg((r-i)*(r-i)+(r-o)*(i-o)),s=Ug(s),o>i&&(s=Sn-s),s/=Sn),[s*360,f,u]};Y.prototype.hsi=function(){return Hg(this._rgb)};const jg=(...e)=>new Y(...e,"hsi");me.hsi=jg,be.format.hsi=Zg,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"hsi"),ke(e)==="array"&&e.length===3)return"hsi"}});const Yg=(e,r,i)=>E1(e,r,i,"hsi");bt.hsi=Yg;const Ki=(...e)=>{e=Ce(e,"hsl");const[r,i,o]=e;let s,l,u;if(i===0)s=l=u=o*255;else{const f=[0,0,0],h=[0,0,0],m=o<.5?o*(1+i):o+i-o*i,_=2*o-m,v=r/360;f[0]=v+1/3,f[1]=v,f[2]=v-1/3;for(let $=0;$<3;$++)f[$]<0&&(f[$]+=1),f[$]>1&&(f[$]-=1),6*f[$]<1?h[$]=_+(m-_)*6*f[$]:2*f[$]<1?h[$]=m:3*f[$]<2?h[$]=_+(m-_)*(2/3-f[$])*6:h[$]=_;[s,l,u]=[h[0]*255,h[1]*255,h[2]*255]}return e.length>3?[s,l,u,e[3]]:[s,l,u,1]},Ys=(...e)=>{e=Ce(e,"rgba");let[r,i,o]=e;r/=255,i/=255,o/=255;const s=Rs(r,i,o),l=zs(r,i,o),u=(l+s)/2;let f,h;return l===s?(f=0,h=Number.NaN):f=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),r==l?h=(i-o)/(l-s):i==l?h=2+(o-r)/(l-s):o==l&&(h=4+(r-i)/(l-s)),h*=60,h<0&&(h+=360),e.length>3&&e[3]!==void 0?[h,f,u,e[3]]:[h,f,u]};Y.prototype.hsl=function(){return Ys(this._rgb)};const Vg=(...e)=>new Y(...e,"hsl");me.hsl=Vg,be.format.hsl=Ki,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"hsl"),ke(e)==="array"&&e.length===3)return"hsl"}});const Qg=(e,r,i)=>E1(e,r,i,"hsl");bt.hsl=Qg;const{floor:Gg}=Math,qg=(...e)=>{e=Ce(e,"hsv");let[r,i,o]=e,s,l,u;if(o*=255,i===0)s=l=u=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const f=Gg(r),h=r-f,m=o*(1-i),_=o*(1-i*h),v=o*(1-i*(1-h));switch(f){case 0:[s,l,u]=[o,v,m];break;case 1:[s,l,u]=[_,o,m];break;case 2:[s,l,u]=[m,o,v];break;case 3:[s,l,u]=[m,_,o];break;case 4:[s,l,u]=[v,m,o];break;case 5:[s,l,u]=[o,m,_];break}}return[s,l,u,e.length>3?e[3]:1]},{min:Xg,max:Jg}=Math,ep=(...e)=>{e=Ce(e,"rgb");let[r,i,o]=e;const s=Xg(r,i,o),l=Jg(r,i,o),u=l-s;let f,h,m;return m=l/255,l===0?(f=Number.NaN,h=0):(h=u/l,r===l&&(f=(i-o)/u),i===l&&(f=2+(o-r)/u),o===l&&(f=4+(r-i)/u),f*=60,f<0&&(f+=360)),[f,h,m]};Y.prototype.hsv=function(){return ep(this._rgb)};const tp=(...e)=>new Y(...e,"hsv");me.hsv=tp,be.format.hsv=qg,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"hsv"),ke(e)==="array"&&e.length===3)return"hsv"}});const np=(e,r,i)=>E1(e,r,i,"hsv");bt.hsv=np;function o0(e,r){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(u=>[u]));let o=r[0].length,s=r[0].map((u,f)=>r.map(h=>h[f])),l=e.map(u=>s.map(f=>Array.isArray(u)?u.reduce((h,m,_)=>h+m*(f[_]||0),0):f.reduce((h,m)=>h+m*u,0)));return i===1&&(l=l[0]),o===1?l.map(u=>u[0]):l}const Ui=(...e)=>{e=Ce(e,"lab");const[r,i,o,...s]=e,[l,u,f]=rp([r,i,o]),[h,m,_]=Ws(l,u,f);return[h,m,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function rp(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=o0(i,e);return o0(r,o.map(s=>s**3))}const Hi=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),l=Ks(r,i,o);return[...ip(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function ip(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=o0(r,e);return o0(i,o.map(s=>Math.cbrt(s)))}Y.prototype.oklab=function(){return Hi(this._rgb)},Object.assign(me,{oklab:(...e)=>new Y(...e,"oklab")}),be.format.oklab=Ui,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"oklab"),ke(e)==="array"&&e.length===3)return"oklab"}});const op=(e,r,i)=>{const o=e.oklab(),s=r.oklab();return new Y(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};bt.oklab=op;const ap=(e,r,i)=>E1(e,r,i,"oklch");bt.oklch=ap;const{pow:ji,sqrt:Yi,PI:Vi,cos:Vs,sin:Qs,atan2:sp}=Math,lp=(e,r="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(v,$){return v+$});if(i.forEach((v,$)=>{i[$]*=s}),e=e.map(v=>new Y(v)),r==="lrgb")return cp(e,i);const l=e.shift(),u=l.get(r),f=[];let h=0,m=0;for(let v=0;v<u.length;v++)if(u[v]=(u[v]||0)*i[0],f.push(isNaN(u[v])?0:i[0]),r.charAt(v)==="h"&&!isNaN(u[v])){const $=u[v]/180*Vi;h+=Vs($)*i[0],m+=Qs($)*i[0]}let _=l.alpha()*i[0];e.forEach((v,$)=>{const M=v.get(r);_+=v.alpha()*i[$+1];for(let x=0;x<u.length;x++)if(!isNaN(M[x]))if(f[x]+=i[$+1],r.charAt(x)==="h"){const T=M[x]/180*Vi;h+=Vs(T)*i[$+1],m+=Qs(T)*i[$+1]}else u[x]+=M[x]*i[$+1]});for(let v=0;v<u.length;v++)if(r.charAt(v)==="h"){let $=sp(m/f[v],h/f[v])/Vi*180;for(;$<0;)$+=360;for(;$>=360;)$-=360;u[v]=$}else u[v]=u[v]/f[v];return _/=o,new Y(u,r).alpha(_>.99999?1:_,!0)},cp=(e,r)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],u=r[s]/i,f=l._rgb;o[0]+=ji(f[0],2)*u,o[1]+=ji(f[1],2)*u,o[2]+=ji(f[2],2)*u,o[3]+=f[3]*u}return o[0]=Yi(o[0]),o[1]=Yi(o[1]),o[2]=Yi(o[2]),o[3]>.9999999&&(o[3]=1),new Y(Ii(o))},{pow:up}=Math;function a0(e){let r="rgb",i=me("#ccc"),o=0,s=[0,1],l=[0,1],u=[],f=[0,0],h=!1,m=[],_=!1,v=0,$=1,M=!1,x={},T=!0,A=1;const w=function(O){if(O=O||["#fff","#000"],O&&ke(O)==="string"&&me.brewer&&me.brewer[O.toLowerCase()]&&(O=me.brewer[O.toLowerCase()]),ke(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(let z=0;z<O.length;z++)O[z]=me(O[z]);u.length=0;for(let z=0;z<O.length;z++)u.push(z/(O.length-1))}return G(),m=O},I=function(O){if(h!=null){const z=h.length-1;let Q=0;for(;Q<z&&O>=h[Q];)Q++;return Q-1}return 0};let R=O=>O,k=O=>O;const Z=function(O,z){let Q,q;if(z==null&&(z=!1),isNaN(O)||O===null)return i;z?q=O:h&&h.length>2?q=I(O)/(h.length-2):$!==v?q=(O-v)/($-v):q=1,q=k(q),z||(q=R(q)),A!==1&&(q=up(q,A)),q=f[0]+q*(1-f[0]-f[1]),q=c1(q,0,1);const X=Math.floor(q*1e4);if(T&&x[X])Q=x[X];else{if(ke(m)==="array")for(let W=0;W<u.length;W++){const E=u[W];if(q<=E){Q=m[W];break}if(q>=E&&W===u.length-1){Q=m[W];break}if(q>E&&q<u[W+1]){q=(q-E)/(u[W+1]-E),Q=me.interpolate(m[W],m[W+1],q,r);break}}else ke(m)==="function"&&(Q=m(q));T&&(x[X]=Q)}return Q};var G=()=>x={};w(e);const V=function(O){const z=me(Z(O));return _&&z[_]?z[_]():z};return V.classes=function(O){if(O!=null){if(ke(O)==="array")h=O,s=[O[0],O[O.length-1]];else{const z=me.analyze(s);O===0?h=[z.min,z.max]:h=me.limits(z,"e",O)}return V}return h},V.domain=function(O){if(!arguments.length)return l;l=O.slice(0),v=O[0],$=O[O.length-1],u=[];const z=m.length;if(O.length===z&&v!==$)for(let Q of Array.from(O))u.push((Q-v)/($-v));else{for(let Q=0;Q<z;Q++)u.push(Q/(z-1));if(O.length>2){const Q=O.map((X,W)=>W/(O.length-1)),q=O.map(X=>(X-v)/($-v));q.every((X,W)=>Q[W]===X)||(k=X=>{if(X<=0||X>=1)return X;let W=0;for(;X>=q[W+1];)W++;const E=(X-q[W])/(q[W+1]-q[W]);return Q[W]+E*(Q[W+1]-Q[W])})}}return s=[v,$],V},V.mode=function(O){return arguments.length?(r=O,G(),V):r},V.range=function(O,z){return w(O),V},V.out=function(O){return _=O,V},V.spread=function(O){return arguments.length?(o=O,V):o},V.correctLightness=function(O){return O==null&&(O=!0),M=O,G(),M?R=function(z){const Q=Z(0,!0).lab()[0],q=Z(1,!0).lab()[0],X=Q>q;let W=Z(z,!0).lab()[0];const E=Q+(q-Q)*z;let ee=W-E,ge=0,le=1,he=20;for(;Math.abs(ee)>.01&&he-- >0;)(function(){return X&&(ee*=-1),ee<0?(ge=z,z+=(le-z)*.5):(le=z,z+=(ge-z)*.5),W=Z(z,!0).lab()[0],ee=W-E})();return z}:R=z=>z,V},V.padding=function(O){return O!=null?(ke(O)==="number"&&(O=[O,O]),f=O,V):f},V.colors=function(O,z){arguments.length<2&&(z="hex");let Q=[];if(arguments.length===0)Q=m.slice(0);else if(O===1)Q=[V(.5)];else if(O>1){const q=s[0],X=s[1]-q;Q=fp(0,O,!1).map(W=>V(q+W/(O-1)*X))}else{e=[];let q=[];if(h&&h.length>2)for(let X=1,W=h.length,E=1<=W;E?X<W:X>W;E?X++:X--)q.push((h[X-1]+h[X])*.5);else q=s;Q=q.map(X=>V(X))}return me[z]&&(Q=Q.map(q=>q[z]())),Q},V.cache=function(O){return O!=null?(T=O,V):T},V.gamma=function(O){return O!=null?(A=O,V):A},V.nodata=function(O){return O!=null?(i=me(O),V):i},V}function fp(e,r,i){let o=[],s=e<r,l=i?s?r+1:r-1:r;for(let u=e;s?u<l:u>l;s?u++:u--)o.push(u);return o}const dp=function(e){let r=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=r.length;s++)o[s]=(r[s]||0)+r[s-1];r=o}return r},hp=function(e){let r,i,o,s;if(e=e.map(l=>new Y(l)),e.length===2)[i,o]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new Y(u,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),r=function(l){const u=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new Y(u,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(u=>u.lab()),r=function(u){const f=[0,1,2].map(h=>(1-u)*(1-u)*(1-u)*i[h]+3*(1-u)*(1-u)*u*o[h]+3*(1-u)*u*u*s[h]+u*u*u*l[h]);return new Y(f,"lab")}}else if(e.length>=5){let l,u,f;l=e.map(h=>h.lab()),f=e.length-1,u=dp(f),r=function(h){const m=1-h,_=[0,1,2].map(v=>l.reduce(($,M,x)=>$+u[x]*m**(f-x)*h**x*M[v],0));return new Y(_,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},gp=e=>{const r=hp(e);return r.scale=()=>a0(r),r},{round:Gs}=Math;Y.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Gs)},Y.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,i)=>i<3?e===!1?r:Gs(r):r)},Object.assign(me,{rgb:(...e)=>new Y(...e,"rgb")}),be.format.rgb=(...e)=>{const r=Ce(e,"rgba");return r[3]===void 0&&(r[3]=1),r},be.autodetect.push({p:3,test:(...e)=>{if(e=Ce(e,"rgba"),ke(e)==="array"&&(e.length===3||e.length===4&&ke(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const sn=(e,r,i)=>{if(!sn[i])throw new Error("unknown blend mode "+i);return sn[i](e,r)},Un=e=>(r,i)=>{const o=me(i).rgb(),s=me(r).rgb();return me.rgb(e(o,s))},Hn=e=>(r,i)=>{const o=[];return o[0]=e(r[0],i[0]),o[1]=e(r[1],i[1]),o[2]=e(r[2],i[2]),o},pp=e=>e,mp=(e,r)=>e*r/255,yp=(e,r)=>e>r?r:e,vp=(e,r)=>e>r?e:r,bp=(e,r)=>255*(1-(1-e/255)*(1-r/255)),_p=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),Cp=(e,r)=>255*(1-(1-r/255)/(e/255)),xp=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);sn.normal=Un(Hn(pp)),sn.multiply=Un(Hn(mp)),sn.screen=Un(Hn(bp)),sn.overlay=Un(Hn(_p)),sn.darken=Un(Hn(yp)),sn.lighten=Un(Hn(vp)),sn.dodge=Un(Hn(xp)),sn.burn=Un(Hn(Cp));const{pow:wp,sin:$p,cos:Lp}=Math;function kp(e=300,r=-1.5,i=1,o=1,s=[0,1]){let l=0,u;ke(s)==="array"?u=s[1]-s[0]:(u=0,s=[s,s]);const f=function(h){const m=Sn*((e+120)/360+r*h),_=wp(s[0]+u*h,o),$=(l!==0?i[0]+h*l:i)*_*(1-_)/2,M=Lp(m),x=$p(m),T=_+$*(-.14861*M+1.78277*x),A=_+$*(-.29227*M-.90649*x),w=_+$*(1.97294*M);return me(Ii([T*255,A*255,w*255,1]))};return f.start=function(h){return h==null?e:(e=h,f)},f.rotations=function(h){return h==null?r:(r=h,f)},f.gamma=function(h){return h==null?o:(o=h,f)},f.hue=function(h){return h==null?i:(i=h,ke(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(h){return h==null?s:(ke(h)==="array"?(s=h,u=h[1]-h[0]):(s=[h,h],u=0),f)},f.scale=()=>me.scale(f),f.hue(i),f}const Sp="0123456789abcdef",{floor:Ap,random:Mp}=Math,Tp=(e=Mp)=>{let r="#";for(let i=0;i<6;i++)r+=Sp.charAt(Ap(e()*16));return new Y(r,"hex")},{log:qs,pow:Pp,floor:Ip,abs:Op}=Math;function Xs(e,r=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return ke(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&ke(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>Js(i,o,s),i}function Js(e,r="equal",i=7){ke(e)=="array"&&(e=Xs(e));const{min:o,max:s}=e,l=e.values.sort((f,h)=>f-h);if(i===1)return[o,s];const u=[];if(r.substr(0,1)==="c"&&(u.push(o),u.push(s)),r.substr(0,1)==="e"){u.push(o);for(let f=1;f<i;f++)u.push(o+f/i*(s-o));u.push(s)}else if(r.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*qs(o),h=Math.LOG10E*qs(s);u.push(o);for(let m=1;m<i;m++)u.push(Pp(10,f+m/i*(h-f)));u.push(s)}else if(r.substr(0,1)==="q"){u.push(o);for(let f=1;f<i;f++){const h=(l.length-1)*f/i,m=Ip(h);if(m===h)u.push(l[m]);else{const _=h-m;u.push(l[m]*(1-_)+l[m+1]*_)}}u.push(s)}else if(r.substr(0,1)==="k"){let f;const h=l.length,m=new Array(h),_=new Array(i);let v=!0,$=0,M=null;M=[],M.push(o);for(let A=1;A<i;A++)M.push(o+A/i*(s-o));for(M.push(s);v;){for(let w=0;w<i;w++)_[w]=0;for(let w=0;w<h;w++){const I=l[w];let R=Number.MAX_VALUE,k;for(let Z=0;Z<i;Z++){const G=Op(M[Z]-I);G<R&&(R=G,k=Z),_[k]++,m[w]=k}}const A=new Array(i);for(let w=0;w<i;w++)A[w]=null;for(let w=0;w<h;w++)f=m[w],A[f]===null?A[f]=l[w]:A[f]+=l[w];for(let w=0;w<i;w++)A[w]*=1/_[w];v=!1;for(let w=0;w<i;w++)if(A[w]!==M[w]){v=!0;break}M=A,$++,$>200&&(v=!1)}const x={};for(let A=0;A<i;A++)x[A]=[];for(let A=0;A<h;A++)f=m[A],x[f].push(l[A]);let T=[];for(let A=0;A<i;A++)T.push(x[A][0]),T.push(x[A][x[A].length-1]);T=T.sort((A,w)=>A-w),u.push(T[0]);for(let A=1;A<T.length;A+=2){const w=T[A];!isNaN(w)&&u.indexOf(w)===-1&&u.push(w)}}return u}const Bp=(e,r)=>{e=new Y(e),r=new Y(r);const i=e.luminance(),o=r.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
|
|
28
28
|
* @license
|
|
29
29
|
*
|
|
30
30
|
* The APCA contrast prediction algorithm is based of the formulas published
|
|
@@ -36,5 +36,5 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
36
36
|
*
|
|
37
37
|
* You can read more about the APCA Readability Criterion at
|
|
38
38
|
* https://readtech.org/ARC/
|
|
39
|
-
*/const e5=.027,Dp=5e-4,Rp=.1,t5=1.14,s0=.022,n5=1.414,zp=(e,r)=>{e=new V(e),r=new V(r),e.alpha()<1&&(e=O1(r,e,e.alpha(),"rgb"));const i=r5(...e.rgb()),o=r5(...r.rgb()),s=i>=s0?i:i+Math.pow(s0-i,n5),l=o>=s0?o:o+Math.pow(s0-o,n5),u=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),h=Math.abs(l-s)<Dp?0:s<l?u*t5:f*t5;return(Math.abs(h)<Rp?0:h>0?h-e5:h+e5)*100};function r5(e,r,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Mn,pow:lt,min:Fp,max:Np,atan2:i5,abs:o5,cos:l0,sin:a5,exp:Zp,PI:s5}=Math;function Wp(e,r,i=1,o=1,s=1){var l=function(ht){return 360*ht/(2*s5)},u=function(ht){return 2*s5*ht/360};e=new V(e),r=new V(r);const[f,h,y]=Array.from(e.lab()),[_,v,L]=Array.from(r.lab()),M=(f+_)/2,w=Mn(lt(h,2)+lt(y,2)),T=Mn(lt(v,2)+lt(L,2)),A=(w+T)/2,C=.5*(1-Mn(lt(A,7)/(lt(A,7)+lt(25,7)))),I=h*(1+C),R=v*(1+C),$=Mn(lt(I,2)+lt(y,2)),Z=Mn(lt(R,2)+lt(L,2)),X=($+Z)/2,Q=l(i5(y,I)),O=l(i5(L,R)),z=Q>=0?Q:Q+360,G=O>=0?O:O+360,q=o5(z-G)>180?(z+G+360)/2:(z+G)/2,U=1-.17*l0(u(q-30))+.24*l0(u(2*q))+.32*l0(u(3*q+6))-.2*l0(u(4*q-63));let H=G-z;H=o5(H)<=180?H:G<=z?H+360:H-360,H=2*Mn($*Z)*a5(u(H)/2);const D=_-f,ee=Z-$,ge=1+.015*lt(M-50,2)/Mn(20+lt(M-50,2)),de=1+.045*X,he=1+.015*X*U,Ie=30*Zp(-lt((q-275)/25,2)),Ue=-(2*Mn(lt(X,7)/(lt(X,7)+lt(25,7))))*a5(2*u(Ie)),Ee=Mn(lt(D/(i*ge),2)+lt(ee/(o*de),2)+lt(H/(s*he),2)+Ue*(ee/(o*de))*(H/(s*he)));return Np(0,Fp(100,Ee))}function Kp(e,r,i="lab"){e=new V(e),r=new V(r);const o=e.get(i),s=r.get(i);let l=0;for(let u in o){const f=(o[u]||0)-(s[u]||0);l+=f*f}return Math.sqrt(l)}const Up=(...e)=>{try{return new V(...e),!0}catch{return!1}},Hp={cool(){return a0([me.hsl(180,1,.9),me.hsl(250,.7,.4)])},hot(){return a0(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Qi={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"]},l5=Object.keys(Qi),c5=new Map(l5.map(e=>[e.toLowerCase(),e])),jp=typeof Proxy=="function"?new Proxy(Qi,{get(e,r){const i=r.toLowerCase();if(c5.has(i))return e[c5.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(l5)}}):Qi,Yp=(...e)=>{e=Ce(e,"cmyk");const[r,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[r>=1?0:255*(1-r)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:u5}=Math,Vp=(...e)=>{let[r,i,o]=Ce(e,"rgb");r=r/255,i=i/255,o=o/255;const s=1-u5(r,u5(i,o)),l=s<1?1/(1-s):0,u=(1-r-s)*l,f=(1-i-s)*l,h=(1-o-s)*l;return[u,f,h,s]};V.prototype.cmyk=function(){return Vp(this._rgb)},Object.assign(me,{cmyk:(...e)=>new V(...e,"cmyk")}),be.format.cmyk=Yp,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"cmyk"),ke(e)==="array"&&e.length===4)return"cmyk"}});const Qp=(...e)=>{const r=Ce(e,"hsla");let i=P1(e)||"lsa";return r[0]=Ht(r[0]||0)+"deg",r[1]=Ht(r[1]*100)+"%",r[2]=Ht(r[2]*100)+"%",i==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),i="hsla"):r.length=3,`${i.substr(0,3)}(${r.join(" ")})`},Gp=(...e)=>{const r=Ce(e,"lab");let i=P1(e)||"lab";return r[0]=Ht(r[0])+"%",r[1]=Ht(r[1]),r[2]=Ht(r[2]),i==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},qp=(...e)=>{const r=Ce(e,"lch");let i=P1(e)||"lab";return r[0]=Ht(r[0])+"%",r[1]=Ht(r[1]),r[2]=isNaN(r[2])?"none":Ht(r[2])+"deg",i==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},Xp=(...e)=>{const r=Ce(e,"lab");return r[0]=Ht(r[0]*100)+"%",r[1]=Oi(r[1]),r[2]=Oi(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},f5=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),[l,u,f]=Hi(r,i,o),[h,y,_]=Hs(l,u,f);return[h,y,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Jp=(...e)=>{const r=Ce(e,"lch");return r[0]=Ht(r[0]*100)+"%",r[1]=Oi(r[1]),r[2]=isNaN(r[2])?"none":Ht(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:Gi}=Math,em=(...e)=>{const r=Ce(e,"rgba");let i=P1(e)||"rgb";if(i.substr(0,3)==="hsl")return Qp(Ys(r),i);if(i.substr(0,3)==="lab"){const o=pr();An("d50");const s=Gp(Ri(r),i);return An(o),s}if(i.substr(0,3)==="lch"){const o=pr();An("d50");const s=qp(Zi(r),i);return An(o),s}return i.substr(0,5)==="oklab"?Xp(Hi(r)):i.substr(0,5)==="oklch"?Jp(f5(r)):(r[0]=Gi(r[0]),r[1]=Gi(r[1]),r[2]=Gi(r[2]),(i==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),i="rgba"),`${i.substr(0,3)}(${r.slice(0,i==="rgb"?3:4).join(" ")})`)},d5=(...e)=>{e=Ce(e,"lch");const[r,i,o,...s]=e,[l,u,f]=Us(r,i,o),[h,y,_]=Ui(l,u,f);return[h,y,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Tn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,ln=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,c0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,jt=/\s*/.source,R1=/\s+/.source,qi=/\s*,\s*/.source,u0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,z1=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,h5=new RegExp("^rgba?\\("+jt+[Tn,Tn,Tn].join(R1)+z1+"\\)$"),g5=new RegExp("^rgb\\("+jt+[Tn,Tn,Tn].join(qi)+jt+"\\)$"),p5=new RegExp("^rgba\\("+jt+[Tn,Tn,Tn,ln].join(qi)+jt+"\\)$"),m5=new RegExp("^hsla?\\("+jt+[u0,c0,c0].join(R1)+z1+"\\)$"),y5=new RegExp("^hsl?\\("+jt+[u0,c0,c0].join(qi)+jt+"\\)$"),v5=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,b5=new RegExp("^lab\\("+jt+[ln,ln,ln].join(R1)+z1+"\\)$"),_5=new RegExp("^lch\\("+jt+[ln,ln,u0].join(R1)+z1+"\\)$"),C5=new RegExp("^oklab\\("+jt+[ln,ln,ln].join(R1)+z1+"\\)$"),x5=new RegExp("^oklch\\("+jt+[ln,ln,u0].join(R1)+z1+"\\)$"),{round:w5}=Math,F1=e=>e.map((r,i)=>i<=2?c1(w5(r),0,255):r),ct=(e,r=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(i-r):e=r+e*(i-r)),+e),$t=(e,r)=>e==="none"?r:e,Xi=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(be.format.named)try{return be.format.named(e)}catch{}if((r=e.match(h5))||(r=e.match(g5))){let i=r.slice(1,4);for(let s=0;s<3;s++)i[s]=+ct($t(i[s],0),0,255);i=F1(i);const o=r[4]!==void 0?+ct(r[4],0,1):1;return i[3]=o,i}if(r=e.match(p5)){const i=r.slice(1,5);for(let o=0;o<4;o++)i[o]=+ct(i[o],0,255);return i}if((r=e.match(m5))||(r=e.match(y5))){const i=r.slice(1,4);i[0]=+$t(i[0].replace("deg",""),0),i[1]=+ct($t(i[1],0),0,100)*.01,i[2]=+ct($t(i[2],0),0,100)*.01;const o=F1(Ki(i)),s=r[4]!==void 0?+ct(r[4],0,1):1;return o[3]=s,o}if(r=e.match(v5)){const i=r.slice(1,4);i[1]*=.01,i[2]*=.01;const o=Ki(i);for(let s=0;s<3;s++)o[s]=w5(o[s]);return o[3]=+r[4],o}if(r=e.match(b5)){const i=r.slice(1,4);i[0]=ct($t(i[0],0),0,100),i[1]=ct($t(i[1],0),-125,125,!0),i[2]=ct($t(i[2],0),-125,125,!0);const o=pr();An("d50");const s=F1(Ei(i));An(o);const l=r[4]!==void 0?+ct(r[4],0,1):1;return s[3]=l,s}if(r=e.match(_5)){const i=r.slice(1,4);i[0]=ct(i[0],0,100),i[1]=ct($t(i[1],0),0,150,!1),i[2]=+$t(i[2].replace("deg",""),0);const o=pr();An("d50");const s=F1(Ni(i));An(o);const l=r[4]!==void 0?+ct(r[4],0,1):1;return s[3]=l,s}if(r=e.match(C5)){const i=r.slice(1,4);i[0]=ct($t(i[0],0),0,1),i[1]=ct($t(i[1],0),-.4,.4,!0),i[2]=ct($t(i[2],0),-.4,.4,!0);const o=F1(Ui(i)),s=r[4]!==void 0?+ct(r[4],0,1):1;return o[3]=s,o}if(r=e.match(x5)){const i=r.slice(1,4);i[0]=ct($t(i[0],0),0,1),i[1]=ct($t(i[1],0),0,.4,!1),i[2]=+$t(i[2].replace("deg",""),0);const o=F1(d5(i)),s=r[4]!==void 0?+ct(r[4],0,1):1;return o[3]=s,o}};Xi.test=e=>h5.test(e)||m5.test(e)||b5.test(e)||_5.test(e)||C5.test(e)||x5.test(e)||g5.test(e)||p5.test(e)||y5.test(e)||v5.test(e)||e==="transparent",V.prototype.css=function(e){return em(this._rgb,e)};const tm=(...e)=>new V(...e,"css");me.css=tm,be.format.css=Xi,be.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&ke(e)==="string"&&Xi.test(e))return"css"}}),be.format.gl=(...e)=>{const r=Ce(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const nm=(...e)=>new V(...e,"gl");me.gl=nm,V.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},V.prototype.hex=function(e){return Zs(this._rgb,e)};const rm=(...e)=>new V(...e,"hex");me.hex=rm,be.format.hex=Ns,be.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&ke(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:f0}=Math,$5=e=>{const r=e/100;let i,o,s;return r<66?(i=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*f0(o),s=r<20?0:-254.76935184120902+.8274096064007395*(s=r-10)+115.67994401066147*f0(s)):(i=351.97690566805693+.114206453784165*(i=r-55)-40.25366309332127*f0(i),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*f0(o),s=255),[i,o,s,1]},{round:im}=Math,om=(...e)=>{const r=Ce(e,"rgb"),i=r[0],o=r[2];let s=1e3,l=4e4;const u=.4;let f;for(;l-s>u;){f=(l+s)*.5;const h=$5(f);h[2]/h[0]>=o/i?l=f:s=f}return im(f)};V.prototype.temp=V.prototype.kelvin=V.prototype.temperature=function(){return om(this._rgb)};const Ji=(...e)=>new V(...e,"temp");Object.assign(me,{temp:Ji,kelvin:Ji,temperature:Ji}),be.format.temp=be.format.kelvin=be.format.temperature=$5,V.prototype.oklch=function(){return f5(this._rgb)},Object.assign(me,{oklch:(...e)=>new V(...e,"oklch")}),be.format.oklch=d5,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"oklch"),ke(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(me,{analyze:Xs,average:cp,bezier:pp,blend:sn,brewer:jp,Color:V,colors:I1,contrast:Ep,contrastAPCA:zp,cubehelix:Sp,deltaE:Wp,distance:Kp,input:be,interpolate:O1,limits:Js,mix:O1,random:Pp,scale:a0,scales:Hp,valid:Up});var am=B("<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"),sm=B("<div class=each_line>"),lm=B("<div>"),cm=B("<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)>+"),um=B('<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 eo=e=>{const r=String(e.value).includes("rgba")?me(String(e.value)).alpha()*100:100,[i,o]=Y(!1),[s,l]=Y(r),[u,f]=Y(e.value),[h,y]=Y(e.value),[_,v]=Y(!1),[L,M]=Y(!1),[w,T]=Y(e.value??"#000000"),[A,C]=Y(0),[I,R]=Y(1),[$,Z]=Y(.5),[X,Q]=Y(!1),O=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],z=ae=>{try{return me(ae).hex()}catch{return String(ae||"#000000")}},G=ae=>{const ne=z(ae),[oe,ye,Pe]=me(ne).hsl();C(Number.isFinite(oe)?Math.round(oe):0),R(Number.isFinite(ye)?ye:1),Z(Number.isFinite(Pe)?Pe:.5),T(ne)},q=()=>{o(!1),M(!1)},U=()=>{var ae;f(e.value),y(e.value),(ae=e.onChange)==null||ae.call(e,e.value),q()},H=ae=>{var ye;f(ae);const ne=s()/100,oe=me(ae).alpha(ne).css();y(oe),(e.reactiveChange??!0)&&((ye=e.onChange)==null||ye.call(e,oe))},D=()=>{var oe;const ae=s()/100,ne=me(u()).alpha(ae).css();y(ne),(e.reactiveChange??!0)&&((oe=e.onChange)==null||oe.call(e,ne))},ee=ae=>{l(ae.target.value),D()},ge=()=>{const ae=u()??e.value??"#000000";G(String(ae)),M(!0),o(!0)},de=ae=>{C(ae);const ne=me.hsl(ae,I(),$()).hex();T(ne)},he=ae=>{let ne=ae.trim();ne.startsWith("#")||(ne="#"+ne);try{const oe=me(ne).hex(),[ye,Pe,ve]=me(oe).hsl();C(Number.isFinite(ye)?Math.round(ye):A()),R(Number.isFinite(Pe)?Pe:I()),Z(Number.isFinite(ve)?ve:$()),T(oe)}catch{T(ae)}},Ie=ae=>{var ne,oe;(oe=(ne=ae.target).setPointerCapture)==null||oe.call(ne,ae.pointerId),Q(!0),Ee(ae)},$e=ae=>{X()&&Ee(ae)},Ue=ae=>{var ne,oe;try{(oe=(ne=ae.target).releasePointerCapture)==null||oe.call(ne,ae.pointerId)}catch{}Q(!1)},Ee=ae=>{const oe=ae.currentTarget.getBoundingClientRect(),ye=Math.min(Math.max(0,ae.clientX-oe.left),oe.width),Pe=Math.min(Math.max(0,ae.clientY-oe.top),oe.height),ve=oe.width?ye/oe.width:0,_t=oe.height?1-Pe/oe.height:.5;R(ve),Z(_t);const cn=me.hsl(A(),ve,_t).hex();T(cn)},ht=()=>{try{const ae=z(w());O[0].unshift(ae),H(ae),M(!1)}catch{}};return(()=>{var ae=am(),ne=ae.firstChild,oe=ne.nextSibling,ye=oe.firstChild,Pe=ye.nextSibling,ve=Pe.firstChild,_t=ve.nextSibling,cn=_t.firstChild,un=Pe.nextSibling,Oe=un.nextSibling,bn=Oe.firstChild,Ve=bn.nextSibling;return ne.$$click=Fe=>{o(!0)},W(oe,(()=>{var Fe=qe(()=>!L());return()=>Fe()&&O.map(Et=>(()=>{var tt=sm();return W(tt,()=>Et.map(ut=>(()=>{var Dt=lm();return Dt.$$click=fe=>{fe.preventDefault(),H(ut)},Te(fe=>{var Je=`each_color ${ut==u()?"selected":""}`,Bn=`background-color: ${ut}`;return Je!==fe.e&&an(Dt,fe.e=Je),fe.t=Ut(Dt,Bn,fe.t),fe},{e:void 0,t:void 0}),Dt})())),tt})())})(),ye),W(oe,(()=>{var Fe=qe(()=>!L());return()=>Fe()&&(()=>{var Et=cm(),tt=Et.firstChild;return tt.$$click=ut=>{ut.stopPropagation(),ge()},Et})()})(),ye),W(oe,(()=>{var Fe=qe(()=>!!L());return()=>Fe()&&(()=>{var Et=um(),tt=Et.firstChild,ut=tt.firstChild,Dt=ut.nextSibling,fe=tt.nextSibling,Je=fe.firstChild,Bn=Je.nextSibling,Z1=Bn.nextSibling,mr=Z1.nextSibling,Vn=fe.nextSibling,yr=Vn.firstChild,u1=yr.nextSibling,Qn=Vn.nextSibling,W1=Qn.firstChild,vr=W1.nextSibling;return Dt.$$input=Qe=>he(Qe.currentTarget.value),fe.$$pointerup=Qe=>Ue(Qe),fe.$$pointermove=Qe=>$e(Qe),fe.$$pointerdown=Qe=>Ie(Qe),yr.$$input=Qe=>de(Number(Qe.currentTarget.value)),W(u1,A),W1.$$click=()=>M(!1),vr.$$click=ht,Te(Qe=>{var br=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${w()}`,K1=`linear-gradient(to right, hsl(${A()}, 0%, 50%), hsl(${A()}, 100%, 50%))`,U1=`${Math.round(I()*100)}%`,H1=`${Math.round((1-$())*100)}%`,j1=w();return Qe.e=Ut(ut,br,Qe.e),K1!==Qe.t&&Bt(Je,"background",Qe.t=K1),U1!==Qe.a&&Bt(mr,"left",Qe.a=U1),H1!==Qe.o&&Bt(mr,"top",Qe.o=H1),j1!==Qe.i&&Bt(mr,"background",Qe.i=j1),Qe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>Dt.value=w()),Te(()=>yr.value=A()),Et})()})(),ye),ve.addEventListener("blur",()=>{v(!1)}),ve.addEventListener("focus",()=>{v(!0)}),ve.$$input=Fe=>{Fe.preventDefault,ee(Fe)},W(_t,s,cn),bn.$$click=U,Ve.$$click=()=>{var Fe;e.reactiveChange===!1&&((Fe=e.onChange)==null||Fe.call(e,h())),q()},Te(Fe=>{var Et=`width: 120px; background-color: ${h()}`,tt=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,ut=`background-color: ${h()}; border: 1px solid ${u()}`;return Fe.e=Ut(ae,Et,Fe.e),tt!==Fe.t&&an(ae,Fe.t=tt),Fe.a=Ut(ve,ut,Fe.a),Fe},{e:void 0,t:void 0,a:void 0}),Te(()=>ve.value=s()),ae})()};wt(["click","input","pointerdown","pointermove","pointerup"]);const[fm,L5]=Y(!1),[k5,dm]=Y(0),[S5,hm]=Y(0),[Lt,A5]=Y(),[gm,pm]=Y();Y(!1);const[mm,to]=Y(!1);Y(!1),Y(!1),Y(!1);const ym=()=>{var e;return((e=Lt())==null?void 0:e.name)??"Object"},M5=()=>({openPopup:(i,o)=>{dm(o1().y-i.pageY>200?i.pageY:o1().y-200),hm(o1().x-i.pageX>200?i.pageX:o1().x-200),A5(i.overlay),pm(o),L5(!0)},closePopup:()=>{L5(!1)}});Y(!1),Y(!1);const[vm,qS]=Y(!1);Y(!1),Y(!1),Y(!1),Y(!1),Y("");const[no,bm]=Y(""),[_m,T5]=Y(!1),[jn,ro]=Y(null),[Pn,io]=Y(null);Y();const[ie,Cm]=Y(null),[oo,P5]=Y(null),[I5,O5]=Y([""]),[B5,E5]=Y({}),[XS,In]=Y(!1);Y("");const[D5,xm]=Y(!1);Y(1),Y();const[d0,R5]=Y(null),z5={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",restore_default:"恢复默认"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults"}};function wm(e,r){z5[e]=r}const m=(e,r)=>{var i;return((i=z5[r])==null?void 0:i[e])??e};Y("");const[$m,pI]=Y(!1);Y(""),Y();const Lm=e=>{const r=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return r.forEach(o=>{delete i[o]}),i},km=e=>{const r=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return r.forEach(o=>{delete i[o]}),i},On=()=>{const e=(w,T,A)=>{const C=localStorage.getItem("chartstatedata");let I;const R=Lm(at.cloneDeep(w));return C?(I=JSON.parse(C),I.indicators?I.indicators.find($=>{var Z,X;return((Z=$.value)==null?void 0:Z.name)===R.name&&((X=$.paneOptions)==null?void 0:X.id)===(A==null?void 0:A.id)})?I.indicators=I.indicators.map($=>{var Z;return((Z=$.value)==null?void 0:Z.id)!==R.id?$:{value:R,isStack:T,paneOptions:A}}):I.indicators.push({value:R,isStack:T,paneOptions:A}):I.indicators=[{value:R,isStack:T,paneOptions:A}]):I={indicators:[{value:R,isStack:T,paneOptions:A}]},localStorage.setItem("chartstatedata",JSON.stringify(I)),In(!0),!1},r=w=>{const T=localStorage.getItem("chartstatedata");let A;const C=km(at.cloneDeep(w));return T?(A=JSON.parse(T),A.overlays?A.overlays.find(I=>{var R;return((R=I.value)==null?void 0:R.id)===C.id})?A.overlays=A.overlays.map(I=>{var R;return((R=I.value)==null?void 0:R.id)!==C.id?I:{value:C,paneId:w.paneId}}):A.overlays.push({value:C,paneId:w.paneId}):A.overlays=[{value:w,paneId:w.paneId}]):A={overlays:[{value:C,paneId:w.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(A)),In(!0),!1};function i(w,T,A,C,I=!1){T==="VOL"&&(C={axis:{gap:{bottom:2}},...C});const R=(C==null?void 0:C.id)==="candle_pane",$=w.createIndicator({name:T,createTooltipDataSource:Z=>{const Q=Z.chart.getStyles().indicator.tooltip.features,O=[];return R&&O.push(Z.indicator.visible?Q[1]:Q[0]),O.push(Q[2]),O.push(Q[3]),{features:O}}},A,C)??null;if($&&I){const Z=w==null?void 0:w.getIndicators({id:$,name:T})[0];Z&&e(Z,A,{id:$})}return $}const o=(w,T,A=!1)=>{var $,Z,X;const C=($=ie())==null?void 0:$.createOverlay({...w,paneId:T});if(!C)return!1;const I=(Z=ie())==null?void 0:Z.getOverlays({id:C})[0],R=Q=>(Q.preventDefault&&Q.preventDefault(),console.info("on right click called",Q.preventDefault),$m()?(console.info("control key down"),s(Q.overlay.id),!0):(M5().openPopup(Q,{overlayType:Q.overlay.name}),!0));I&&(w.properties&&I.setProperties(w.properties,C),(X=ie())==null||X.overrideOverlay({id:I.id,onDrawEnd:Q=>(console.info("on draw end called"),["measure"].includes(I.name)?!1:r(Q.overlay)),onPressedMoveEnd:Q=>(console.info("on pressed move end called"),["measure"].includes(I.name)?!1:r(Q.overlay)),onSelected:Q=>R5(Q.overlay),onDeselected:()=>R5(null),onRightClick:I.onRightClick?I.onRightClick:R,onDoubleClick:I.onDoubleClick?I.onDoubleClick:R}),A||r(I))},s=w=>{var A,C;const T=localStorage.getItem("chartstatedata");if(T){let I=JSON.parse(T);I.overlays=(A=I.overlays)==null?void 0:A.filter(R=>{var $;return(($=R.value)==null?void 0:$.id)!==w}),localStorage.setItem("chartstatedata",JSON.stringify(I)),In(!0)}(C=ie())==null||C.removeOverlay({id:w})},l=(w,T)=>{var C,I;const A=localStorage.getItem("chartstatedata");if(A){let R=JSON.parse(A);R.overlays=(C=R.overlays)==null?void 0:C.map($=>{var Z;return((Z=$.value)==null?void 0:Z.id)===w&&($.value={...$.value,...T},$.paneId=T.paneId??$.paneId),$}),localStorage.setItem("chartstatedata",JSON.stringify(R)),In(!0),(I=ie())==null||I.overrideOverlay({...T,id:w})}},u=(w,T)=>{var C,I;const A=localStorage.getItem("chartstatedata");if(A){let R=JSON.parse(A);R.overlays=(C=R.overlays)==null?void 0:C.map(Z=>{var X;return((X=Z.value)==null?void 0:X.id)===w&&(Z.value.properties={...Z.value.properties,...T}),Z});const $=(I=ie())==null?void 0:I.getOverlayById(w);$&&$.setProperties(T,w),localStorage.setItem("chartstatedata",JSON.stringify(R)),In(!0)}},f=w=>{const T=[...I5()];w.added?(i(ie(),w.name,!0,{id:"candle_pane"},!0),T.push(w.name)):(_(w.name,"candle_pane"),T.splice(T.indexOf(w.name),1)),O5(T)},h=w=>{const T={...B5()};if(w.added){const A=i(ie(),w.name,!1,void 0,!0);A&&(T[w.name]=A)}else w.paneId&&(_(w.name,w.paneId),delete T[w.name]);E5(T)},y=(w,T)=>{var C,I;const A=localStorage.getItem("chartstatedata");if(A){let R=JSON.parse(A);R.indicators=(C=R.indicators)==null?void 0:C.map($=>{var Z;return((Z=$.value)==null?void 0:Z.name)===w.indicatorName&&($.value.name=w.indicatorName,$.value.calcParams=T,$.paneOptions.id=w.paneId),$}),localStorage.setItem("chartstatedata",JSON.stringify(R)),In(!0),(I=ie())==null||I.overrideIndicator({name:w.indicatorName,calcParams:T,paneId:w.paneId})}},_=(w,T,A)=>{var I,R;const C=localStorage.getItem("chartstatedata");if((I=ie())==null||I.removeIndicator({id:w,paneId:A,name:T}),C){let $=JSON.parse(C);$.indicators=(R=$.indicators)==null?void 0:R.filter(Z=>{var X,Q;return((X=Z.paneOptions)==null?void 0:X.id)!==A&&((Q=Z.value)==null?void 0:Q.name)!==T}),localStorage.setItem("chartstatedata",JSON.stringify($)),In(!0)}},v=(w,T)=>{document.documentElement.style.setProperty(w,T,"important");const A=document.querySelector("[data-theme]");A&&A.style.setProperty(w,T,"important")},L=w=>{var T;w.background&&v("--klinecharts-pro-pane-background",w.background),w.backgroundGradientStartColor&&v("--klinecharts-pro-pane-background-gradient-start",w.backgroundGradientStartColor),w.backgroundGradientEndColor&&v("--klinecharts-pro-pane-background-gradient-end",w.backgroundGradientEndColor),(T=w.separator)!=null&&T.color&&v("--klinecharts-pro-border-color",w.separator.color)};return{createIndicator:i,modifyIndicator:y,popIndicator:_,syncIndiObject:e,syncObject:r,pushOverlay:o,modifyOverlay:l,modifyOverlayProperties:u,popOverlay:s,pushMainIndicator:f,pushSubIndicator:h,restoreChartState:async w=>{const T=I=>{const R=JSON.parse(I);R.figures,R.overlays&&R.overlays.forEach($=>{o($.value,$.paneId,!0)}),R.indicators&&setTimeout(()=>{const $=[...I5()],Z={...B5};R.indicators.forEach(X=>{var Q,O,z;X.value&&((Q=ie())==null||Q.createIndicator(X.value,X.isStack,X.paneOptions),((O=X.paneOptions)==null?void 0:O.id)==="candle_pane"?$.push(X.value.name):Z[X.value.name]=(z=X.paneOptions)==null?void 0:z.id)}),O5($),E5(Z)},500)},A=localStorage.getItem("chartstatedata");A&&T(A);const C=JSON.parse(A)??{};w&&(L(w),C.styleObj||(C.styleObj=w,localStorage.setItem("chartstatedata",JSON.stringify(C)))),C.styleObj&&P5(C.styleObj)}}};var Sm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor d="m19.54 4.5 3.96 4.32-.74.68-3.96-4.32.74-.68ZM7.46 4.5 3.5 8.82l.74.68L8.2 5.18l-.74-.68ZM19.74 10.33A7.5 7.5 0 0 1 21 14.5v.5h1v-.5a8.5 8.5 0 1 0-8.5 8.5h.5v-1h-.5a7.5 7.5 0 1 1 6.24-11.67Z"></path><path fill=currentColor d="M13 9v5h-3v1h4V9h-1ZM19 20v-4h1v4h4v1h-4v4h-1v-4h-4v-1h4Z">');const Am=()=>Sm();var Mm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 10 16"width=10 height=16><path d="M.6 1.4l1.4-1.4 8 8-8 8-1.4-1.4 6.389-6.532-6.389-6.668z">');const Tm=e=>(()=>{var r=Mm();return rt(r,"class",e),r})();var Pm=B('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28><g fill=none fill-rule=evenodd stroke=currentColor><path d="M13.111 18.5H10.5a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-8.389z"></path><path d="M18.5 20v1.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1H8">');const Im=()=>Pm();var Om=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 8 12"width=8 height=12 fill=currentColor><rect width=2 height=2 rx=1></rect><rect width=2 height=2 rx=1 y=5></rect><rect width=2 height=2 rx=1 y=10></rect><rect width=2 height=2 rx=1 x=6></rect><rect width=2 height=2 rx=1 x=6 y=5></rect><rect width=2 height=2 rx=1 x=6 y=10>');const Bm=()=>Om();var Em=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 16 16"width=16 height=16><path fill=currentColor d="M10.62.72a2.47 2.47 0 0 1 3.5 0l1.16 1.16c.96.97.96 2.54 0 3.5l-.58.58-8.9 8.9-1 1-.14.14H0v-4.65l.14-.15 1-1 8.9-8.9.58-.58Zm2.8.7a1.48 1.48 0 0 0-2.1 0l-.23.23 3.26 3.26.23-.23c.58-.58.58-1.52 0-2.1l-1.16-1.16Zm.23 4.2-3.26-3.27-8.2 8.2 3.25 3.27 8.2-8.2Zm-8.9 8.9-3.27-3.26-.5.5V15h3.27l.5-.5Z">');const Dm=()=>Em();var Rm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"width=20 height=20 fill=none><path stroke=currentColor d="M13.5 6.5l-3-3-7 7 7.59 7.59a2 2 0 0 0 2.82 0l4.18-4.18a2 2 0 0 0 0-2.82L13.5 6.5zm0 0v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v6"></path><path fill=currentColor d="M0 16.5C0 15 2.5 12 2.5 12S5 15 5 16.5 4 19 2.5 19 0 18 0 16.5z"></path><circle fill=currentColor cx=9.5 cy=9.5 r=1.5>');const zm=()=>Rm();var Fm=B('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28><path fill=currentColor d="M18.15 7.02A9.05 9.05 0 0014 6c-3.45 0-6.08 2-7.8 3.92a18.18 18.18 0 00-2.64 3.84v.02h-.01L4 14l-.45-.21-.1.21.1.21L4 14l-.45.21.01.03a5.85 5.85 0 00.16.32c.11.2.28.51.5.87a18.18 18.18 0 002.4 3.12l.71-.71A17.18 17.18 0 014.56 14a10.05 10.05 0 01.52-.91c.41-.69 1.04-1.6 1.85-2.5C8.58 8.75 10.95 7 14 7a8 8 0 013.4.77l.75-.75zm-3.11 3.12a4 4 0 00-4.9 4.9l.86-.87V14a3 3 0 013.17-3l.87-.86zm1.96 3.7l.86-.88a4 4 0 01-4.9 4.9l.87-.86A3 3 0 0017 13.83zm-6.4 6.4A8 8 0 0014 21c3.05 0 5.42-1.76 7.07-3.58A17.18 17.18 0 0023.44 14a9.47 9.47 0 00-.52-.91 17.18 17.18 0 00-2.25-2.93l.7-.7a18.18 18.18 0 013.06 4.3l.02.02L24 14l.45.21-.01.03a7.03 7.03 0 01-.16.32c-.11.2-.28.51-.5.87-.44.72-1.1 1.69-1.97 2.65C20.08 20.01 17.45 22 14 22c-1.55 0-2.94-.4-4.15-1.02l.75-.75zM24 14l.45-.21.1.21-.1.21L24 14zM22.2 6.5L6.5 22.2l-.7-.7L21.5 5.8l.7.7z">');const Nm=()=>Fm();var Zm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28 fill=none><path fill=currentColor d="M25 17.225 14 24 3 17.357l.508-.867L14 22.873l10.498-6.51zM14 5c.171 0 .344.04.498.128l9.985 5.753a1 1 0 0 1-.016 1.741l-9.983 5.522a1 1 0 0 1-.968-.001l-9.984-5.545a1 1 0 0 1-.012-1.742l9.98-5.728A1 1 0 0 1 13.999 5m-9.982 6.724L14 17.269l9.982-5.522L14 5.994z">');const Wm=()=>Zm();var Km=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 18 4"width=18 height=4><rect width=18 height=1 fill=currentColor rx=2>');const Um=e=>(()=>{var r=Km();return rt(r,"class",e),r})();var Hm=B('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28><path fill=currentColor d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z">');const jm=()=>Hm();var Ym=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor d="M3 13h2v2H3v-2Zm5 0h2v2H8v-2Zm7 0h-2v2h2v-2Zm3 0h2v2h-2v-2Zm7 0h-2v2h2v-2Z">');const Vm=()=>Ym();var Qm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor fill-rule=evenodd d="M14 6a3 3 0 0 0-3 3v3h6V9a3 3 0 0 0-3-3zm4 6V9a4 4 0 0 0-8 0v3H8.5A2.5 2.5 0 0 0 6 14.5v7A2.5 2.5 0 0 0 8.5 24h11a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-2.5-2.5H18zm-5 5a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z">');const Gm=()=>Qm();var qm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor fill-rule=evenodd d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z">');const Xm=()=>qm();var Jm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28 fill=currentColor><path fill-rule=evenodd d="M18 14a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-1 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"></path><path fill-rule=evenodd d="M8.5 5h11l5 9-5 9h-11l-5-9 5-9Zm-3.86 9L9.1 6h9.82l4.45 8-4.45 8H9.1l-4.45-8Z">');const ey=()=>Jm();var ty=B('<svg xmlns=http://www.w3.org/2000/svg width=18 height=18 fill=none><path fill=currentColor fill-rule=evenodd clip-rule=evenodd d="M2.448 10.124a10.82 10.82 0 0 1-.336-.609L2.105 9.5l.007-.015a12.159 12.159 0 0 1 1.686-2.466C5.002 5.665 6.752 4.373 9.05 4.373c2.297 0 4.047 1.292 5.25 2.646a12.166 12.166 0 0 1 1.687 2.466l.007.015-.007.015a12.163 12.163 0 0 1-1.686 2.466c-1.204 1.354-2.954 2.646-5.251 2.646-2.298 0-4.048-1.292-5.252-2.646a12.16 12.16 0 0 1-1.35-1.857zm14.558-.827l-.456.203.456.203v.002l-.003.005-.006.015-.025.052a11.813 11.813 0 0 1-.461.857 13.163 13.163 0 0 1-1.463 2.011c-1.296 1.46-3.296 2.982-5.998 2.982-2.703 0-4.703-1.522-6-2.982a13.162 13.162 0 0 1-1.83-2.677 7.883 7.883 0 0 1-.118-.243l-.007-.015-.002-.005v-.001l.456-.204-.456-.203v-.002l.002-.005.007-.015a4.66 4.66 0 0 1 .119-.243 13.158 13.158 0 0 1 1.83-2.677c1.296-1.46 3.296-2.982 5.999-2.982 2.702 0 4.702 1.522 5.998 2.981a13.158 13.158 0 0 1 1.83 2.678 8.097 8.097 0 0 1 .119.243l.006.015.003.005v.001zm-.456.203l.456-.203.09.203-.09.203-.456-.203zM1.092 9.297l.457.203-.457.203-.09-.203.09-.203zm9.958.203c0 1.164-.917 2.07-2 2.07-1.084 0-2-.906-2-2.07 0-1.164.916-2.07 2-2.07 1.083 0 2 .906 2 2.07zm1 0c0 1.695-1.344 3.07-3 3.07-1.657 0-3-1.375-3-3.07 0-1.695 1.343-3.07 3-3.07 1.656 0 3 1.375 3 3.07z">');const ny=()=>ty();var ry=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28 fill=none stroke=currentColor><path stroke-linecap=round d="M15.5 18.5h6m-3 3v-6"></path><rect width=6 height=6 rx=1.5 x=6.5 y=6.5></rect><rect width=6 height=6 rx=1.5 x=15.5 y=6.5></rect><rect width=6 height=6 rx=1.5 x=6.5 y=15.5>');const iy=()=>ry();var oy=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 13 15"width=13 height=15 fill=none><path stroke=currentColor d="M4 14.5h2.5m2.5 0H6.5m0 0V.5m0 0h-5a1 1 0 0 0-1 1V4m6-3.5h5a1 1 0 0 1 1 1V4">');const ay=()=>oy();var sy=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor d="M18 7h5v1h-2.01l-1.33 14.64a1.5 1.5 0 0 1-1.5 1.36H9.84a1.5 1.5 0 0 1-1.49-1.36L7.01 8H5V7h5V6c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v1Zm-6-2a1 1 0 0 0-1 1v1h6V6a1 1 0 0 0-1-1h-4ZM8.02 8l1.32 14.54a.5.5 0 0 0 .5.46h8.33a.5.5 0 0 0 .5-.46L19.99 8H8.02Z">');const ly=()=>sy();var cy=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor fill-rule=evenodd d="M14 6a3 3 0 0 0-3 3v3h8.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 6 21.5v-7A2.5 2.5 0 0 1 8.5 12H10V9a4 4 0 0 1 8 0h-1a3 3 0 0 0-3-3zm-1 11a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z">');const uy={alert:Am,arrowRight:Tm,copy:Im,drag:Bm,edit:Dm,fill:zm,hide:Nm,layerStack:Wm,line:Um,lineDashed:jm,lineDotted:Vm,locked:Gm,unlocked:()=>cy(),more:Xm,settings:ey,show:ny,templates:iy,text:ay,trash:ly},Yt=e=>uy[e.name](e.class);var fy=B('<div style=display:flex;flex-direction:row;gap:1px><table class=overlay-menu role=menu><tbody><tr><td class=icon-cell></td><td class=label><div class="flex-row row-content"><span>Template</span><span class=inline-icon></span></div></td></tr><tr><td class=icon-cell></td><td class=label><div class="flex-row row-content"><span>Visual order</span><span class=inline-icon></span></div></td></tr><tr><td class=icon-cell></td><td class=label><div class="flex-row row-content"><span>Visibility on intervals</span><span class=inline-icon></span></div></td></tr><tr class=divider-after><td class=icon-cell></td><td class=label><div class="flex flex-row row-content"><span>Object Tree…</span></div></td></tr><tr><td class=icon-cell></td><td class=label><div class="flex flex-row row-content"><span>Clone</span><span class="shortcut-pill blurred"><span class=key>Ctrl</span><span class=plus>+</span><span class=key>Drag</span></span></div></td></tr><tr class=divider-after><td class=icon-cell></td><td class=label><div class="flex flex-row row-content"><span>Copy</span><span class="shortcut-pill blurred"><span class=key>Ctrl</span><span class=plus>+</span><span class=key>C</span></span></div></td></tr><tr><td class=icon-cell></td><td class=label><span></span></td></tr><tr><td class=icon-cell></td><td class=label><span></span></td></tr><tr class=divider-after><td class=icon-cell></td><td class=label><span>Remove</span><span class="shortcut-pill blurred"><span class=key>Del</span></span></td></tr><tr><td class=icon-cell></td><td class=label><span>Settings'),dy=B("<li>Bring to front"),hy=B("<li>Send to back"),gy=B("<li>Bring forward"),py=B("<li>Send backward"),my=B("<li>Save as…"),yy=B("<li>Apply default"),vy=B("<li>Current Interval and above"),by=B("<li>Current Interval and below"),_y=B("<li>Current Interval only"),Cy=B("<li>All intervals"),xy=B("<div class=submenu style=position:fixed><ul>");const Ye=()=>{M5().closePopup()},wy=e=>{e==="overlay"&&to(!0),Ye()},$y=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{zLevel:+e.zLevel+1}),Ye()},Ly=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{zLevel:+e.zLevel-1}),Ye()},ky=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{lock:!e.lock}),Ye()},Sy=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{visible:e.visible}),Ye()},Ay=()=>{const[e,r]=Y(null),[i,o]=Y(0);let s,l;const u=200,f=()=>{l&&(window.clearTimeout(l),l=void 0)},h=()=>{f(),l=window.setTimeout(()=>{r(null),l=void 0},u)},y=(v,L)=>{f();const M=v.currentTarget;if(!s||!M){r(L),o(0);return}const T=(M.offsetTop||0)+(M.offsetHeight||32)/2-12;o(T),r(L)},_=()=>{h()};return j(Ty,{open:!0,get top(){return k5()},get left(){return S5()},onClose:()=>Ye(),class:"overlay-options-popup",get children(){var v=fy(),L=v.firstChild,M=L.firstChild,w=M.firstChild,T=w.firstChild,A=T.nextSibling,C=A.firstChild,I=C.firstChild,R=I.nextSibling,$=w.nextSibling,Z=$.firstChild,X=Z.nextSibling,Q=X.firstChild,O=Q.firstChild,z=O.nextSibling,G=$.nextSibling,q=G.firstChild,U=q.nextSibling,H=U.firstChild,D=H.firstChild,ee=D.nextSibling,ge=G.nextSibling,de=ge.nextSibling,he=de.firstChild,Ie=de.nextSibling,$e=Ie.firstChild,Ue=Ie.nextSibling,Ee=Ue.firstChild,ht=Ee.nextSibling,ae=ht.firstChild,ne=Ue.nextSibling,oe=ne.firstChild,ye=oe.nextSibling,Pe=ye.firstChild,ve=ne.nextSibling,_t=ve.firstChild,cn=ve.nextSibling,un=cn.firstChild;return fr(Oe=>s=Oe,v),w.$$click=()=>{console.debug("template clicked"),Ye()},w.addEventListener("mouseleave",_),w.addEventListener("mouseenter",Oe=>y(Oe,"template")),W(R,j(Yt,{name:"arrowRight"})),$.$$click=()=>{console.debug("visual order clicked"),Ye()},$.addEventListener("mouseleave",_),$.addEventListener("mouseenter",Oe=>y(Oe,"visual")),W(Z,j(Yt,{name:"layerStack"})),W(z,j(Yt,{name:"arrowRight"})),G.$$click=()=>{console.debug("visibility intervals clicked"),Ye()},G.addEventListener("mouseleave",_),G.addEventListener("mouseenter",Oe=>y(Oe,"visibility")),W(ee,j(Yt,{name:"arrowRight"})),ge.$$click=()=>{console.debug("object tree clicked"),Ye()},de.$$click=()=>{console.debug("clone ctr+drag"),Ye()},W(he,j(Yt,{name:"copy"})),Ie.$$click=()=>{console.debug("copy ctr+c"),Ye()},W($e,j(Yt,{name:"copy"})),Ue.$$click=ky,W(Ee,j(Yt,{get name(){var Oe;return(Oe=Lt())!=null&&Oe.lock?"locked":"unlocked"}})),W(ae,()=>{var Oe;return(Oe=Lt())!=null&&Oe.lock?"Unlock":"Lock"}),ne.$$click=Sy,W(oe,j(Yt,{get name(){var Oe;return(Oe=Lt())!=null&&Oe.visible?"hide":"show"}})),W(Pe,()=>{var Oe;return(Oe=Lt())!=null&&Oe.visible?"Hide":"Show"}),ve.$$click=()=>{On().popOverlay(Lt().id),Ye()},W(_t,j(Yt,{name:"trash"})),cn.$$click=()=>wy("overlay"),W(un,j(Yt,{name:"settings"})),W(v,(()=>{var Oe=qe(()=>!!e());return()=>Oe()&&(()=>{const bn=S5()??0,Ve=k5()??0,Fe=s?s.getBoundingClientRect().width:(s==null?void 0:s.clientWidth)??220,Et=bn+Fe+8,tt=Ve+(i()??0);return(()=>{var ut=xy(),Dt=ut.firstChild;return ut.addEventListener("mouseleave",_),ut.addEventListener("mouseenter",()=>f()),Bt(ut,"left",`${Et}px`),Bt(ut,"top",`${tt}px`),W(Dt,j(We,{get when(){return e()==="visual"},get children(){return[(()=>{var fe=dy();return fe.$$click=()=>{var Je;(Je=On())==null||Je.modifyOverlay(Lt().id,{zLevel:99}),Ye()},fe})(),(()=>{var fe=hy();return fe.$$click=()=>{var Je;(Je=On())==null||Je.modifyOverlay(Lt().id,{zLevel:-9999}),Ye()},fe})(),(()=>{var fe=gy();return fe.$$click=()=>Ly(),fe})(),(()=>{var fe=py();return fe.$$click=()=>$y(),fe})()]}}),null),W(Dt,j(We,{get when(){return e()==="template"},get children(){return[(()=>{var fe=my();return fe.$$click=()=>{console.debug("save as"),Ye()},fe})(),(()=>{var fe=yy();return fe.$$click=()=>{console.debug("apply default"),Ye()},fe})()]}}),null),W(Dt,j(We,{get when(){return e()==="visibility"},get children(){return[(()=>{var fe=vy();return fe.$$click=()=>{console.debug("current and above"),Ye()},fe})(),(()=>{var fe=by();return fe.$$click=()=>{console.debug("current and below"),Ye()},fe})(),(()=>{var fe=_y();return fe.$$click=()=>{console.debug("current only"),Ye()},fe})(),(()=>{var fe=Cy();return fe.$$click=()=>{console.debug("all intervals"),Ye()},fe})()]}}),null),ut})()})()})(),null),v}})};wt(["click"]);var My=B("<div class=klinecharts-pro-popup_background><div>");const Ty=e=>{if(!e.open)return null;const r=8,i=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768;let s={...e.style??{},position:"absolute",overflow:"auto"};if(typeof e.top=="number"){console.log("props.top",e.top),s["max-height"]=`${o1().y-e.top-r}px`;const l=Math.max(r,Math.min(e.top,o-r-40));s.top=`${l}px`,s.transform=s.transform??void 0}else s["max-height"]="50%",s.top="50%",s.transform="translateY(-50%)";if(typeof e.left=="number"){s["max-width"]=`${e.left-r}px`;const l=Math.max(r,Math.min(e.left,i-r-40));s.left=`${l}px`,typeof e.top=="number"&&(s.transform=void 0)}else s["max-width"]="50%",s.left="50%",s.transform=s.transform?`${s.transform} translateX(-50%)`:"translateX(-50%)";return(()=>{var l=My(),u=l.firstChild;return l.addEventListener("mouseleave",f=>{var h;return(h=e.onMouseLeave)==null?void 0:h.call(e,f)}),l.$$mouseover=f=>{var h;return(h=e.onMouseEnter)==null?void 0:h.call(e,f)},l.$$click=f=>{var h;(h=e.onClose)==null||h.call(e)},u.$$click=f=>f.stopPropagation(),u.$$pointerdown=f=>f.stopPropagation(),W(u,()=>e.children),Te(f=>{var h=`popup ${e.class??""}`,y=s;return h!==f.e&&an(u,f.e=h),f.t=Ut(u,y,f.t),f},{e:void 0,t:void 0}),l})()};wt(["click","mouseover","pointerdown"]);var Py=B("<img alt=symbol>"),Iy=B("<div class=symbol><span>"),Oy=B('<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 period_home"><button class="item period"></button></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg><span></span></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg><span></span></div><div class="item tools">'),By=B("<div class=klinecharts-pro-popup_background><div class=period_list>"),Ey=B("<li>"),Dy=B('<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>'),F5=B("<span>"),Ry=B('<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 zy=e=>{const[r,i]=Y(!1),[o,s]=Y(!0);Y(0);const[l,u]=Y(0),f=()=>{i(!1),s(!0)},h=()=>{xm(_=>!_)},y=()=>{};return li(()=>{document.addEventListener("fullscreenchange",h),document.addEventListener("mozfullscreenchange",h),document.addEventListener("webkitfullscreenchange",h),document.addEventListener("msfullscreenchange",h)}),cr(()=>{document.removeEventListener("fullscreenchange",h),document.removeEventListener("mozfullscreenchange",h),document.removeEventListener("webkitfullscreenchange",h),document.removeEventListener("msfullscreenchange",h)}),(()=>{var _=Oy(),v=_.firstChild,L=v.firstChild,M=v.nextSibling,w=M.firstChild,T=M.nextSibling,A=T.firstChild,C=A.nextSibling,I=T.nextSibling,R=I.firstChild,$=R.nextSibling,Z=I.nextSibling,X=Z.firstChild,Q=X.nextSibling,O=Z.nextSibling,z=O.firstChild,G=z.nextSibling,q=O.nextSibling;return fr(U=>{},_),Kn(L,"click",e.onMenuClick,!0),W(_,j(We,{get when(){return e.symbol},get children(){var U=Iy(),H=U.firstChild;return U.$$click=y,W(U,j(We,{get when(){return e.symbol.logo},get children(){var D=Py();return Te(()=>rt(D,"src",e.symbol.logo)),D}}),H),W(H,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),U}}),M),w.$$click=U=>{r()||(f(),u(o1().x-U.pageX>200?U.pageX:o1().x-200)),s(!1),i(!r())},W(w,()=>e.period.text),W(M,(()=>{var U=qe(()=>!!r());return()=>U()&&(()=>{var H=By(),D=H.firstChild;return H.$$click=()=>{i(!1),s(!0)},W(D,()=>e.periods.map(ee=>(()=>{var ge=Ey();return ge.$$click=()=>{e.onPeriodChange(ee),i(!1),s(!0)},W(ge,()=>ee.text),ge})())),Te(ee=>Bt(D,"left",`${l()-50}px`)),H})()})(),null),Kn(T,"click",e.onIndicatorClick,!0),W(C,()=>m("indicator",e.locale)),Kn(I,"click",e.onTimezoneClick,!0),W($,()=>m("timezone",e.locale)),Kn(Z,"click",e.onSettingClick,!0),W(Q,()=>m("setting",e.locale)),Kn(O,"click",e.onScreenshotClick,!0),W(G,()=>m("screenshot",e.locale)),q.$$click=()=>{if(D5())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const U=sr.isString(no())?document.querySelector(`#${no()}`):no();U&&(U.requestFullscreen??U.webkitRequestFullscreen??U.mozRequestFullScreen??U.msRequestFullscreen).call(U)}},W(q,(()=>{var U=qe(()=>!!D5());return()=>U()?[Dy(),(()=>{var H=F5();return W(H,()=>m("exit_full_screen",e.locale)),H})()]:[Ry(),(()=>{var H=F5();return W(H,()=>m("full_screen",e.locale)),H})()]})()),Te(U=>{var H=`${o()?"overflow-x: auto;":""}`,D=e.spread?"":"rotate";return U.e=Ut(_,H,U.e),D!==U.t&&rt(L,"class",U.t=D),U},{e:void 0,t:void 0}),_})()};wt(["click"]);var Fy=B('<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 Ny=()=>Fy();var Zy=B('<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 Wy=()=>Zy();var Ky=B('<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=()=>Ky();var Hy=B('<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 jy=()=>Hy();var Yy=B('<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=()=>Yy();var Qy=B('<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 Gy=()=>Qy();var qy=B('<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 Xy=()=>qy();var Jy=B('<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 ev=()=>Jy();var tv=B('<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 nv=()=>tv();var rv=B('<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 iv=()=>rv();var ov=B('<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 av=()=>ov();var sv=B('<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 lv=()=>sv();var cv=B('<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 uv=()=>cv();var fv=B('<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 dv=()=>fv();var hv=B('<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 gv=()=>hv();var pv=B('<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 mv=()=>pv();var yv=B('<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 vv=()=>yv();var bv=B('<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 _v=()=>bv();var Cv=B('<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 xv=()=>Cv();var wv=B('<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 $v=()=>wv();var Lv=B('<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 kv=()=>Lv();var Sv=B('<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 Av=()=>Sv();var Mv=B('<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 Tv=()=>Mv();var Pv=B('<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 Iv=()=>Pv();var Ov=B('<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 Bv=()=>Ov();var Ev=B('<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 Dv=()=>Ev();var Rv=B('<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 zv=()=>Rv();var Fv=B('<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 Nv=()=>Fv();var Zv=B('<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 Wv=()=>Zv();var Kv=B('<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 Uv=()=>Kv();var Hv=B('<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 jv=e=>(()=>{var r=Hv();return rt(r,"class",`icon-overlay ${e??""}`),r})();var Yv=B('<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 Vv=e=>(()=>{var r=Yv();return rt(r,"class",`icon-overlay ${e??""}`),r})();var Qv=B('<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 Gv=()=>Qv();var qv=B('<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 Xv=()=>qv();var Jv=B('<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 eb=()=>Jv();var tb=B('<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 nb=()=>tb();var rb=B('<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 ib=()=>rb();var ob=B('<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 ab={horizontalStraightLine:Ny,horizontalRayLine:Wy,horizontalSegment:Uy,verticalStraightLine:jy,verticalRayLine:Vy,verticalSegment:Gy,straightLine:Xy,rayLine:ev,segment:nv,arrow:iv,priceLine:av,priceChannelLine:lv,parallelStraightLine:uv,fibonacciLine:dv,fibonacciSegment:gv,fibonacciCircle:mv,fibonacciSpiral:vv,fibonacciSpeedResistanceFan:_v,fibonacciExtension:xv,gannBox:$v,circle:kv,triangle:Av,rect:Tv,parallelogram:Iv,threeWaves:Bv,fiveWaves:Dv,eightWaves:zv,anyWaves:Nv,abcd:Wv,xabcd:Uv,weak_magnet:jv,strong_magnet:Vv,lock:eb,unlock:nb,visible:Gv,invisible:Xv,remove:ib,brush:()=>ob()};function sb(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 lb(e){return[{key:"priceChannelLine",text:m("price_channel_line",e)},{key:"parallelStraightLine",text:m("parallel_straight_line",e)}]}function cb(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 ub(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 fb(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 db(e){return[{key:"weak_magnet",text:m("weak_magnet",e)},{key:"strong_magnet",text:m("strong_magnet",e)}]}const Vt=e=>ab[e.name](e.class);var hb=B('<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>'),gb=B('<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>'),N5=B("<li><span style=padding-left:8px>");const Z5="drawing_tools",pb=e=>{const[r,i]=Y("horizontalStraightLine"),[o,s]=Y("priceChannelLine"),[l,u]=Y("circle"),[f,h]=Y("fibonacciLine"),[y,_]=Y("xabcd"),[v,L]=Y("weak_magnet"),[M,w]=Y("normal"),[T,A]=Y(!1),[C,I]=Y(!0),[R,$]=Y(""),Z=mn(()=>[{key:"singleLine",icon:r(),list:sb(e.locale),setter:i},{key:"moreLine",icon:o(),list:lb(e.locale),setter:s},{key:"polygon",icon:l(),list:cb(e.locale),setter:u},{key:"fibonacci",icon:f(),list:ub(e.locale),setter:h},{key:"wave",icon:y(),list:fb(e.locale),setter:_}]),X=mn(()=>db(e.locale));return(()=>{var Q=hb(),O=Q.firstChild,z=O.nextSibling,G=z.firstChild,q=G.nextSibling,U=q.firstChild,H=z.nextSibling,D=H.firstChild,ee=H.nextSibling,ge=ee.firstChild,de=ee.nextSibling,he=de.nextSibling,Ie=he.firstChild;return W(Q,()=>Z().map($e=>(()=>{var Ue=gb(),Ee=Ue.firstChild,ht=Ee.nextSibling,ae=ht.firstChild;return Ue.addEventListener("blur",()=>{$("")}),Ee.$$click=()=>{e.onDrawingItemClick({groupId:Z5,name:$e.icon,visible:C(),lock:T(),mode:M()})},W(Ee,j(Vt,{get name(){return $e.icon}})),ht.$$click=()=>{$e.key===R()?$(""):$($e.key)},W(Ue,(()=>{var ne=qe(()=>$e.key===R());return()=>ne()&&j(n0,{class:"list",get children(){return $e.list.map(oe=>(()=>{var ye=N5(),Pe=ye.firstChild;return ye.$$click=()=>{$e.setter(oe.key),e.onDrawingItemClick({name:oe.key,lock:T(),mode:M()}),$("")},W(ye,j(Vt,{get name(){return oe.key}}),Pe),W(Pe,()=>oe.text),ye})())}})})(),null),Te(()=>rt(ae,"class",$e.key===R()?"rotate":"")),Ue})()),O),z.addEventListener("blur",()=>{$("")}),G.$$click=()=>{let $e=v();M()!=="normal"&&($e="normal"),w($e),e.onModeChange($e)},W(G,(()=>{var $e=qe(()=>v()==="weak_magnet");return()=>$e()?qe(()=>M()==="weak_magnet")()?j(Vt,{name:"weak_magnet",class:"selected"}):j(Vt,{name:"weak_magnet"}):qe(()=>M()==="strong_magnet")()?j(Vt,{name:"strong_magnet",class:"selected"}):j(Vt,{name:"strong_magnet"})})()),q.$$click=()=>{R()==="mode"?$(""):$("mode")},W(z,(()=>{var $e=qe(()=>R()==="mode");return()=>$e()&&j(n0,{class:"list",get children(){return X().map(Ue=>(()=>{var Ee=N5(),ht=Ee.firstChild;return Ee.$$click=()=>{L(Ue.key),w(Ue.key),e.onModeChange(Ue.key),$("")},W(Ee,j(Vt,{get name(){return Ue.key}}),ht),W(ht,()=>Ue.text),Ee})())}})})(),null),D.$$click=()=>{const $e=!T();A($e),e.onLockChange($e)},W(D,(()=>{var $e=qe(()=>!!T());return()=>$e()?j(Vt,{name:"lock"}):j(Vt,{name:"unlock"})})()),ge.$$click=()=>{const $e=!C();I($e),e.onVisibleChange($e)},W(ge,(()=>{var $e=qe(()=>!!C());return()=>$e()?j(Vt,{name:"visible"}):j(Vt,{name:"invisible"})})()),Ie.$$click=()=>{e.onRemoveClick(Z5)},W(Ie,j(Vt,{name:"remove"})),Te(()=>rt(U,"class",R()==="mode"?"rotate":"")),Q})()};wt(["click"]);var W5=B("<li class=title>"),K5=B("<li class=row>");const mb=e=>j(l1,{get title(){return m("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){return j(n0,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var r=W5();return W(r,()=>m("main_indicator",e.locale)),r})(),qe(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(r=>{const i=e.mainIndicators.includes(r);return(()=>{var o=K5();return o.$$click=s=>{e.onMainIndicatorChange({name:r,id:"candle_pane",added:!i})},W(o,j(Bs,{checked:i,get label(){return m(r.toLowerCase(),e.locale)}})),o})()})),(()=>{var r=W5();return W(r,()=>m("sub_indicator",e.locale)),r})(),qe(()=>["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(r=>{const i=r in e.subIndicators;return(()=>{var o=K5();return o.$$click=s=>{e.onSubIndicatorChange({name:r,id:e.subIndicators[r]??"",added:!i})},W(o,j(Bs,{checked:i,get label(){return m(r.toLowerCase(),e.locale)}})),o})()}))]}})}});wt(["click"]);function U5(e,r){switch(e){case"Etc/UTC":return m("utc",r);case"Pacific/Honolulu":return m("honolulu",r);case"America/Juneau":return m("juneau",r);case"America/Los_Angeles":return m("los_angeles",r);case"America/Chicago":return m("chicago",r);case"America/Toronto":return m("toronto",r);case"America/Sao_Paulo":return m("sao_paulo",r);case"Europe/London":return m("london",r);case"Europe/Berlin":return m("berlin",r);case"Asia/Bahrain":return m("bahrain",r);case"Asia/Dubai":return m("dubai",r);case"Asia/Ashkhabad":return m("ashkhabad",r);case"Asia/Almaty":return m("almaty",r);case"Asia/Bangkok":return m("bangkok",r);case"Asia/Shanghai":return m("shanghai",r);case"Asia/Tokyo":return m("tokyo",r);case"Australia/Sydney":return m("sydney",r);case"Pacific/Norfolk":return m("norfolk",r)}return e}function yb(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)}]}const vb=e=>{const[r,i]=Y(e.timezone),o=mn(()=>yb(e.locale));return j(l1,{get title(){return m("timezone",e.locale)},width:320,get buttons(){return[{children:m("confirm",e.locale),onClick:()=>{e.onConfirm(r()),e.onClose()}}]},get onClose(){return e.onClose},get children(){return j(Pi,{style:{width:"100%","margin-top":"20px"},get value(){return r().text},onSelected:s=>{i(s)},get dataSource(){return o()}})}})},Yn=e=>{const r=[{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)}],u=[{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}],h=[{key:"normal",text:m("Normal",e)}],y=[{key:"Helvetica Neue",text:m("Helvetica Neue",e)}];return{solid_dashed:r,dashed_value:i,size:s,fill_stroke:l,font_family:y,font_size:f,font_weight:h,none_always_followCross:u,true_false:o}},bb=e=>{const{font_family:r,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:u,none_always_followCross:f}=Yn(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:r},{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:r},{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:u},{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"}]},_b=e=>{const{fill_stroke:r,font_size:i,font_weight:o,none_always_followCross:s}=Yn(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:r},{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"}]},Cb=e=>{const{font_size:r,size:i,font_weight:o}=Yn(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:r},{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"}]},xb=e=>{const{size:r,font_weight:i,font_size:o}=Yn(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:r},{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:r},{key:"yAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:r}]},wb=e=>{const{size:r}=Yn(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:r},{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:r},{key:"grid.vertical.color",text:m("Vertical color",e),component:"color"}]},$b=e=>{const{solid_dashed:r,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:u}=Yn(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:r},{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:u},{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:r},{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:u},{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 H5(e){const{size:r}=Yn(e);return[...bb(e),..._b(e),...Cb(e),...xb(e),...wb(e),...$b(e),{key:"separator.size",text:m("Seperator size",e),component:"select",dataSource:r},{key:"separator.fill",text:m("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:m("Background color",e),component:"color"}]}var Lb=B("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),kb=B("<button>"),Sb=B("<div class=component><span>");const Ab=e=>{const[r,i]=Y(e.currentStyles),[o,s]=Y(H5(e.locale)),[l,u]=Y("candle");rn(()=>{s(H5(e.locale))});const f=(_,v)=>{const L=localStorage.getItem("chartstatedata");let M;L?(M=JSON.parse(L),M.styleObj=M.styleObj??{}):M={styleObj:{}},console.info("update setting",_.key,v);const w=_.key.indexOf(".");w===-1?_.key:_.key.slice(0,w)+""+_.key.slice(w),T1(M.styleObj,_.key,v),localStorage.setItem("chartstatedata",JSON.stringify(M)),In(!0);const T={};T1(T,_.key,v),T1(T,_.key,v);const A=ce.utils.clone(r());T1(A,_.key,v),i(A),s(o().map(C=>({...C}))),e.onChange(T)},h=()=>{const _=localStorage.getItem("chartstatedata");let v;_&&(v=JSON.parse(_),v.styleObj&&(v.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(v))),e.onRestoreDefault(o()),e.onClose()},y=[{text:"Candle",key:"candle"},{text:"Indicator",key:"indicator"},{text:"Grid",key:"grid"},{text:"X-axis",key:"xAxis"},{text:"Y-axis",key:"yAxis"},{text:"Separator",key:"separator"},{text:"Crosshair",key:"crosshair"}];return j(l1,{get title(){return m("setting",e.locale)},get buttons(){return[{children:m("restore_default",e.locale),onClick:()=>{h()}}]},get onClose(){return e.onClose},get children(){var _=Lb(),v=_.firstChild,L=v.nextSibling;return W(v,()=>y.map(M=>(()=>{var w=kb();return w.$$click=()=>u(M.key),W(w,()=>M.text),Te(()=>an(w,`${l()==M.key?"selected":""}`)),w})())),W(L,j(fi,{get each(){return o().filter(M=>M.key.includes(l()))},children:M=>{let w;const T=ce.utils.formatValue(r(),M.key);switch(M.component){case"select":{w=j(Pi,{style:{width:"120px"},get value(){return m(T,e.locale)},get dataSource(){return M.dataSource},onSelected:A=>{const C=A.key;f(M,C)}});break}case"switch":{const A=!!T;w=j(ug,{open:A,onChange:()=>{f(M,!A)}});break}case"color":{w=j(eo,{style:{width:"120px"},value:T,reactiveChange:!1,onChange:A=>{f(M,A)}});break}}return(()=>{var A=Sb(),C=A.firstChild;return W(C,()=>M.text),W(A,w,null),A})()}})),_}})};wt(["click"]);var Mb=B("<img style=width:500px;margin-top:20px>");const Tb=e=>j(l1,{get title(){return m("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:m("save",e.locale),onClick:()=>{const r=document.createElement("a");r.download="screenshot",r.href=e.url,document.body.appendChild(r),r.click(),r.remove()}}]},get onClose(){return e.onClose},get children(){var r=Mb();return Te(()=>rt(r,"src",e.url)),r}}),Pb={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 Ib=B("<div class=klinecharts-pro-indicator-setting-modal-content>"),Ob=B("<span>");const Bb=e=>{const[r,i]=Y(ce.utils.clone(e.params.calcParams)),o=s=>Pb[s];return j(l1,{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=[];ce.utils.clone(r()).forEach((u,f)=>{!ce.utils.isValid(u)||u===""?"default"in s[f]&&l.push(s[f].default):l.push(u)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=Ib();return W(s,()=>o(e.params.indicatorName).map((l,u)=>[(()=>{var f=Ob();return W(f,()=>m(l.paramNameKey,e.locale)),f})(),j(gr,{style:{width:"200px"},get value(){return r()[u]??""},get precision(){return l.precision},get min(){return l.min},onChange:f=>{const h=ce.utils.clone(r());h[u]=f,i(h)}})])),s}})};var Eb=B('<svg viewBox="0 0 1024 1024"><path d="M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z">'),Db=B("<img alt=symbol>"),Rb=B("<li><div><span>");const zb=e=>{const[r,i]=Y(""),[o]=e6(r,e.datafeed.searchSymbols.bind(e.datafeed));return j(l1,{get title(){return m("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){return[j(gr,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return m("symbol_code",e.locale)},get suffix(){return Eb()},get value(){return r()},onChange:s=>{const l=`${s}`;i(l)}}),j(n0,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:s=>(()=>{var l=Rb(),u=l.firstChild,f=u.firstChild;return l.$$click=()=>{e.onSymbolSelected(s),e.onClose()},W(u,j(We,{get when(){return s.logo},get children(){var h=Db();return Te(()=>rt(h,"src",s.logo)),h}}),f),W(f,()=>s.shortName??s.ticker,null),W(f,()=>`${s.name?`(${s.name})`:""}`,null),W(l,()=>s.exchange??"",null),Te(()=>rt(f,"title",s.name??"")),l})()})]}})};wt(["click"]);const Fb=e=>{const{font_size:r,font_family:i,font_weight:o,fill_stroke:s,solid_dashed:l,size:u,true_false:f}=Yn(e),h=[{key:"activeBorderSize",text:m("active border size",e),component:"select",dataSource:r},{key:"borderSize",text:m("Border size",e),component:"select",dataSource:u},{key:"color",text:m("Color",e),component:"color"},{key:"activeColor",text:m("Color",e),component:"color"},{key:"activeBorderColor",text:m("Color",e),component:"color"},{key:"borderColor",text:m("Border color",e),component:"color"},{key:"activeRadius",text:m("Active radius",e),component:"input"},{key:"radius",text:m("Radius",e),component:"input"}],y=[{key:"style",text:m("Style",e),component:"select",dataSource:s},{key:"size",text:m("Font size",e),component:"select",dataSource:r},{key:"family",text:m("Font family",e),component:"select",dataSource:i},{key:"weight",text:m("Font weight",e),component:"select",dataSource:o},{key:"borderStyle",text:m("Border style",e),component:"select",dataSource:l},{key:"borderSize",text:m("Border size",e),component:"select",dataSource:u},{key:"color",text:m("Color",e),component:"color"},{key:"backgroundColor",text:m("Background color",e),component:"color"},{key:"borderColor",text:m("Border color",e),component:"color"},{key:"borderDashedValue",text:m("Border dashed value",e),component:"input"},{key:"borderRadius",text:m("Border radius",e),component:"input"},{key:"paddingLeft",text:m("Padding left",e),component:"input"},{key:"paddingRight",text:m("Padding right",e),component:"input"},{key:"paddingBottom",text:m("Padding bottom",e),component:"input"},{key:"paddingTop",text:m("Padding top",e),component:"input"}],_=[{key:"style",text:m("Style",e),component:"select",dataSource:l},{key:"size",text:m("Size",e),component:"select",dataSource:u},{key:"color",text:m("Color",e),component:"color"},{key:"dashedValue",text:m("Dashed Value",e),component:"input"}],v=[{key:"style",text:m("Style",e),component:"select",dataSource:s},{key:"color",text:m("Color",e),component:"color"},{key:"borderColor",text:m("Border color",e),component:"color"},{key:"borderSize",text:m("Active border size",e),component:"select",dataSource:u},{key:"borderStyle",text:m("Border style",e),component:"select",dataSource:l},{key:"borderDashedValue",text:m("Border dashed value",e),component:"input"}],L=_;L.push({key:"smooth",text:m("Smooth",e),component:"select",dataSource:f});const M=v;return M.push({key:"borderRadius",text:m("Border radius",e),component:"input"}),{point:h,text:y,line:L,rect:M,polygon:v,circle:v,arc:_}};var Nb=B("<div class=klinecharts-pro-overlay-setting-modal-content><div class=content>"),Zb=B("<div style=width:120px;display:flex;flex-direction:row;align-items:center;vertical-align:middle>"),Wb=B("<div class=component><span>");const Kb=e=>{const r=Fb(e.locale),i=(u,f)=>{var y,_;const h=Lt();if(f){if(h&&h.styles[f][u])return h.styles[f][u]}else if((y=Lt())!=null&&y.styles[u])return(_=Lt())==null?void 0:_.styles[u]},o=(u,f,h)=>{var v;const y=localStorage.getItem("chartstatedata");let _;y?(_=JSON.parse(y),_.orderStyles=_.orderStyles??{}):_={orderStyles:{}},(v=gm())==null||v.overlayType};let s=[],l=[];return s=Object.keys(r),j(l1,{get title(){return`Style ${ym()}`},onClose:()=>to(!1),get children(){var u=Nb(),f=u.firstChild;return W(f,j(fi,{each:l,children:h=>{if(s.includes(h))return j(fi,{get each(){return r[h]},children:y=>{let _;const v=i(y.key,h);if(v!==void 0){switch(y.component){case"select":{_=j(Pi,{style:{width:"120px"},get value(){return m(v,e.locale)},get dataSource(){return y.dataSource},onSelected:L=>{L.key,o()}});break}case"input":{_=[j(We,{get when(){return sr.isArray(v)},get children(){var L=Zb();return W(L,j(gr,{style:{width:"50px","margin-right":"10px"},get value(){return v[0]??"4"},onChange:M=>{let w=i(y.key,h);w[0]=Number(M),o()}}),null),W(L,j(gr,{style:{width:"50px","margin-left":"10px"},get value(){return v[1]??"4"},onChange:M=>{let w=i(y.key,h);w[1]=Number(M),o()}}),null),L}}),j(We,{get when(){return!sr.isArray(v)},get children(){return j(gr,{style:{width:"120px"},value:v??"4",onChange:L=>{o()}})}})];break}case"color":{_=j(eo,{style:{width:"120px"},value:v,onChange:L=>{o()}});break}}if(_)return(()=>{var L=Wb(),M=L.firstChild;return W(M,()=>y.text),W(L,_,null),L})()}}})}})),u}})};var Ub=B("<div style=position:fixed;touchAction:none><div class=cr-floating-inner><div class=drag-handle>"),Hb=B("<div class=cr-action-label>"),jb=B("<div class=cr-action><div class=cr-action-btn><div class=cr-action-icon>"),Yb=B("<div class=cr-editor>"),Vb=B("<input type=number>"),Qb=B("<select>"),Gb=B("<option>");const{popOverlay:qb,modifyOverlay:Xb,modifyOverlayProperties:j5}=On(),[N1,h0]=Y({x:0,y:0});function Jb(e){const[r,i]=Y(null);h0({x:N1().x??e.x??0,y:N1().y??e.y??0});const[o,s]=Y(!1);let l={mx:0,my:0,sx:0,sy:0};const[u,f]=Y(0),h=C=>{var I,R;return console.info("default actions called"),[{key:"group",title:"Group",icon:"templates",onClick:$=>console.debug("group",$)},{key:"border",title:"Line tool color",icon:"edit",editor:{type:"color",value:C.getProperties(C.id).lineColor??C.getProperties(C.id).borderColor??"#ffffff"},onClick:($,Z)=>{console.debug("set border color",$,Z),j5(C.id,{lineColor:Z})}},{key:"background",title:"Line tool background",icon:"fill",editor:{type:"color",value:C.getProperties(C.id).backgroundColor??"#000000"},onClick:($,Z)=>{console.debug("set background",$,Z),j5(C.id,{backgroundColor:Z})}},{key:"text",title:"Line tool text color",icon:"text",editor:{type:"color",value:C.getProperties(C.id).textColor??"#ffffff"},onClick:($,Z)=>console.debug("set text color",$,Z)},{key:"size",title:"Line tool width (px)",icon:"line",editor:{type:"number",value:C.getProperties(C.id).textFontSize??2,min:1,max:50,step:1},onClick:($,Z)=>console.debug("set size",$,Z)},{key:"line",title:"Line tool style",icon:(()=>{const $=C.getProperties(C.id).lineStyle??"solid";return $==="dashed"?"lineDashed":$==="dotted"?"lineDotted":"line"})(),editor:{type:"select",options:["solid","dashed"],value:((R=(I=C.styles)==null?void 0:I.line)==null?void 0:R.style)??"solid"},onClick:($,Z)=>console.debug("set line",$,Z)},{key:"settings",title:"Settings",icon:"settings",onClick:$=>{A5(C),to(!0)}},{key:"lock",title:C&&C.lock?"Unlock":"Lock",icon:C&&C.lock?"locked":"unlocked",onClick:$=>Xb($,{lock:!C.lock})},{key:"delete",title:"Delete",icon:"trash",onClick:$=>qb($)},{key:"more",title:"More",icon:"more",onClick:$=>console.debug("more",$)}]},y=()=>{u();const C=d0();return console.info("actions called, overlay:",C),e.actions??(C?h(C):[])};let _;const v=C=>{var R;const I=C.target;_&&(_.contains(I)||(R=e.onClose)==null||R.call(e))},L=C=>{if(!o())return;const I=l.sx+(C.clientX-l.mx),R=l.sy+(C.clientY-l.my),$=Math.max(0,window.innerWidth-((_==null?void 0:_.offsetWidth)??220)),Z=Math.max(0,window.innerHeight-((_==null?void 0:_.offsetHeight)??48)),X=Math.min(Math.max(0,I),$),Q=Math.min(Math.max(0,R),Z);h0({x:X,y:Q})},M=()=>{o()&&s(!1),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",M)};li(()=>{if(document.addEventListener("mousedown",v),typeof e.x!="number"||typeof e.y!="number"){const C=Math.max(500,window.innerWidth/2);h0({x:C,y:40})}}),cr(()=>{document.removeEventListener("mousedown",v),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",M)}),rn(()=>{typeof e.x=="number"&&typeof e.y=="number"&&h0({x:e.x,y:e.y})});const w=(C,I)=>{try{const R=localStorage.getItem("chartstatedata");let $;R?($=JSON.parse(R),$.styleObj=$.styleObj??{}):$={styleObj:{}};const Z=`overlay.${C}`;T1($.styleObj,Z,I),localStorage.setItem("chartstatedata",JSON.stringify($)),In(!0)}catch(R){console.warn("persistFallbackStyle error",R)}},T=(C,I)=>{var $;const R=($=d0())==null?void 0:$.id;if(C.onClick){R?C.onClick(R,I):C.onClick("unknown",I),f(u()+1);return}window.dispatchEvent(new CustomEvent("cr-overlay-setting",{detail:{overlayId:R,key:C.key,value:I}})),w(C.key,I),f(u()+1)},A=C=>{const I=C.target;I.closest(".cr-action-btn")||I.closest(".cr-editor")||I.tagName==="INPUT"||I.tagName==="SELECT"||(C.preventDefault(),l={mx:C.clientX,my:C.clientY,sx:N1().x,sy:N1().y},s(!0),document.addEventListener("mousemove",L),document.addEventListener("mouseup",M))};return(()=>{var C=Ub(),I=C.firstChild,R=I.firstChild;return C.$$mousedown=$=>A($),C.$$pointerdown=$=>{$.stopPropagation()},fr($=>_=$,C),W(R,j(Yt,{name:"drag"})),W(I,()=>y().map($=>(typeof $.visible=="function"?$.visible(d0()??void 0):$.visible??!0)?(()=>{var X=jb(),Q=X.firstChild,O=Q.firstChild;return Q.$$click=z=>{z.stopPropagation(),$.editor?i(r()===$.key?null:$.key):T($)},W(O,j(Yt,{get name(){return $.icon}})),W(Q,j(We,{get when(){var z;return((z=$.editor)==null?void 0:z.type)==="color"},get children(){var z=Hb();return Te(G=>{var q;return Bt(z,"background-color",(q=$.editor)==null?void 0:q.value)}),z}}),null),W(X,(()=>{var z=qe(()=>!!($.editor&&r()===$.key));return()=>z()&&(()=>{var G=Yb();return G.$$click=q=>q.stopPropagation(),W(G,(()=>{var q=qe(()=>$.editor.type==="color");return()=>q()&&j(eo,{style:{width:"120px"},get value(){return $.editor.value},reactiveChange:!1,onChange:U=>{T($,U)}})})(),null),W(G,(()=>{var q=qe(()=>$.editor.type==="number");return()=>q()&&(()=>{var U=Vb();return U.$$click=H=>H.stopPropagation(),U.$$input=H=>T($,Number(H.currentTarget.value)),Te(H=>{var D=$.editor.min,ee=$.editor.max,ge=$.editor.step;return D!==H.e&&rt(U,"min",H.e=D),ee!==H.t&&rt(U,"max",H.t=ee),ge!==H.a&&rt(U,"step",H.a=ge),H},{e:void 0,t:void 0,a:void 0}),Te(()=>U.value=String($.editor.value??"")),U})()})(),null),W(G,(()=>{var q=qe(()=>$.editor.type==="select");return()=>q()&&(()=>{var U=Qb();return U.$$click=H=>H.stopPropagation(),U.addEventListener("change",H=>T($,H.currentTarget.value)),W(U,()=>($.editor.options??[]).map(H=>(()=>{var D=Gb();return D.value=H,W(D,H),D})())),Te(()=>U.value=$.editor.value??""),U})()})(),null),G})()})(),null),Te(z=>{var H,D;var G=$.title??$.key,q=((H=$.editor)==null?void 0:H.type)==="color"?"16px":void 0,U=((D=$.editor)==null?void 0:D.type)==="color"?"16px":void 0;return G!==z.e&&rt(X,"title",z.e=G),q!==z.t&&Bt(O,"height",z.t=q),U!==z.a&&Bt(O,"width",z.a=U),z},{e:void 0,t:void 0,a:void 0}),X})():null),null),Te($=>{var Z=`cr-setting-floating ${e.class??""} ${o()?"dragging":""}`,X=`${N1().x}px`,Q=`${N1().y}px`,O=o()?"grabbing":"grab";return Z!==$.e&&an(C,$.e=Z),X!==$.t&&Bt(C,"left",$.t=X),Q!==$.a&&Bt(C,"top",$.a=Q),O!==$.o&&Bt(C,"cursor",$.o=O),$},{e:void 0,t:void 0,a:void 0,o:void 0}),C})()}wt(["pointerdown","mousedown","click","input"]);class ao{constructor(r,i){Mt(this,"_chart");Mt(this,"_charts",new Map);Mt(this,"id");const o=ce.init(r,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(r,i){return new ao(r,i)}getDom(r,i){return this._chart.getDom(r,i)}getSize(r,i){return this._chart.getSize(r,i)}createIndicator(r,i,o){return this._chart.createIndicator(r,i,o)}getIndicators(r){return this._chart.getIndicators(r)}createOverlay(r){return this._chart.createOverlay(r)}getOverlays(r){return this._chart.getOverlays(r)}setPaneOptions(r){return this._chart.setPaneOptions(r)}getPaneOptions(r){return this._chart.getPaneOptions(r)}scrollByDistance(r,i){return this._chart.scrollByDistance(r,i)}scrollToRealTime(r){return this._chart.scrollToRealTime(r)}scrollToDataIndex(r,i){return this._chart.scrollToDataIndex(r,i)}scrollToTimestamp(r,i){return this._chart.scrollToTimestamp(r,i)}zoomAtCoordinate(r,i,o){return this._chart.zoomAtCoordinate(r,i,o)}zoomAtDataIndex(r,i,o){return this._chart.zoomAtDataIndex(r,i,o)}zoomAtTimestamp(r,i,o){return this._chart.zoomAtTimestamp(r,i,o)}convertToPixel(r,i){return this._chart.convertToPixel(r,i)}convertFromPixel(r,i){return this._chart.convertFromPixel(r,i)}executeAction(r,i){return this._chart.executeAction(r,i)}subscribeAction(r,i){return this._chart.subscribeAction(r,i)}unsubscribeAction(r,i){return this._chart.unsubscribeAction(r,i)}getConvertPictureUrl(r,i,o){return this._chart.getConvertPictureUrl(r,i,o)}resize(){return this._chart.resize()}setStyles(r){return this._chart.setStyles(r)}getStyles(){return this._chart.getStyles()}setFormatter(r){return this._chart.setFormatter(r)}getFormatter(){return this._chart.getFormatter()}setLocale(r){return this._chart.setLocale(r)}getLocale(){return this._chart.getLocale()}setTimezone(r){return this._chart.setTimezone(r)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(r){return this._chart.setThousandsSeparator(r)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(r){return this._chart.setDecimalFold(r)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(r){return this._chart.setSymbol(r)}getSymbol(){return this._chart.getSymbol()}setPeriod(r){return this._chart.setPeriod(r)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(r){return this._chart.setOffsetRightDistance(r)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(r){return this._chart.setMaxOffsetLeftDistance(r)}setMaxOffsetRightDistance(r){return this._chart.setMaxOffsetRightDistance(r)}setLeftMinVisibleBarCount(r){return this._chart.setLeftMinVisibleBarCount(r)}setRightMinVisibleBarCount(r){return this._chart.setRightMinVisibleBarCount(r)}setBarSpace(r){return this._chart.setBarSpace(r)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(r){return this._chart.setDataLoader(r)}overrideIndicator(r){return this._chart.overrideIndicator(r)}removeIndicator(r){return this._chart.removeIndicator(r)}overrideOverlay(r){return this._chart.overrideOverlay(r)}removeOverlay(r){return this._chart.removeOverlay(r)}setZoomEnabled(r){return this._chart.setZoomEnabled(r)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(r){this._chart.setZoomAnchor(r)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(r){return this._chart.setScrollEnabled(r)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(r){const i=this._charts.get(r);return i&&(this._chart=i),this}chartById(r){return this._charts.get(r)}getOverlayById(r){return this._chart.getOverlays({id:r})[0]??null}createOrderLine(r){const i=this._chart.getDataList(),o=this._chart.createOverlay({name:"orderLine",paneId:"candle_pane",points:[{timestamp:i[i.length-40].timestamp,value:i[i.length-40].close}]});return o?this._chart.getOverlays({id:o,paneId:"candle_pane"})[0]:null}createOrderLines(r,i){const o=[],s=this._chart.getDataList(),l=Math.floor(s.length/(r+1));for(let h=1;h<=r;h++)o.push({timestamp:s[l*h].timestamp,value:s[l*h].close});const u={name:"orderLine",paneId:"candle_pane",points:o},f=this._chart.createOverlay(u);return!f||sr.isArray(f)&&f.length===0?[]:f.map(h=>this._chart.getOverlays({id:h,paneId:"canlde_pane"})[0])}}var e_=B('<i class="icon-close klinecharts-pro-load-icon">'),t_=B("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>");const{createIndicator:g0,pushOverlay:n_,restoreChartState:r_}=On(),i_=e=>{let r,i;const[o,s]=Y(e.theme),[l,u]=Y(e.locale),[f,h]=Y(!1),[y,_]=Y([...e.mainIndicators]),[v,L]=Y({}),[M,w]=Y(!1),[T,A]=Y({key:e.timezone,text:U5(e.timezone,e.locale)}),[C,I]=Y(!1),[R,$]=Y(),[Z,X]=Y(""),[Q,O]=Y(e.drawingBarVisible),[z,G]=Y(!1),[q,U]=Y({visible:!1,indicatorName:"",paneId:"",calcParams:[]});io(e.period),ro(e.symbol),e.ref({setTheme:s,getTheme:()=>o(),setStyles:P5,getStyles:()=>oo()??{},setLocale:u,getLocale:()=>l(),setTimezone:D=>{A({key:D,text:U5(e.timezone,l())})},getTimezone:()=>T().key,setSymbol:ro,getSymbol:()=>jn(),setPeriod:io,getPeriod:()=>Pn(),getInstanceApi:()=>ie(),resize:()=>{var D;return(D=ie())==null?void 0:D.resize()},dispose:()=>{}});const H=()=>{var D;(D=ie())==null||D.resize()};return li(()=>{var ee,ge,de,he,Ie,$e,Ue,Ee,ht,ae;if(window.addEventListener("resize",H),Cm(ao.init(r,{formatter:{formatDate:ne=>{switch(Pn().type){case"minute":return ne.type==="xAxis"?ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"HH:mm"):ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD HH:mm");case"hour":return ne.type==="xAxis"?ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"MM-DD HH:mm"):ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD");case"month":return ne.type==="xAxis"?ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM"):ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD");case"year":return ne.type==="xAxis"?ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY"):ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD")}return ce.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD HH:mm")}}})),ie()){bm(e.rootElementId),console.info("ChartPro widget initialized");const ne=ie().getDom("candle_pane","main");if(ne){let Pe=document.createElement("div");if(Pe.className="klinecharts-pro-watermark",ce.utils.isString(e.watermark)){const ve=e.watermark.replace(/(^\s*)|(\s*$)/g,"");Pe.innerHTML=ve}else Pe.appendChild(e.watermark);ne.appendChild(Pe)}const oe=ie().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",oe==null||oe.appendChild(i),(ee=ie())==null||ee.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),(ge=ie())==null||ge.setBarSpace(400),(de=ie())==null||de.subscribeAction("onCrosshairFeatureClick",Pe=>{console.info("onCrosshairFeatureClick",Pe)}),(he=ie())==null||he.subscribeAction("onIndicatorTooltipFeatureClick",Pe=>{var _t,cn,un,Oe,bn;console.info("onIndicatorTooltipFeatureClick",Pe);const ve=Pe;switch(ve.feature.id){case"visible":{(_t=ie())==null||_t.overrideIndicator({name:ve.indicator.name,visible:!0,paneId:ve.paneId});break}case"invisible":{(cn=ie())==null||cn.overrideIndicator({name:ve.indicator.name,visible:!1,paneId:ve.paneId});break}case"setting":{const Ve=(un=ie())==null?void 0:un.getIndicators({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}).at(0);if(!Ve)return;U({visible:!0,indicatorName:ve.indicator.name,paneId:ve.paneId,calcParams:Ve.calcParams});break}case"close":if(ve.paneId==="candle_pane"){const Ve=[...y()];(Oe=ie())==null||Oe.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),Ve.splice(Ve.indexOf(ve.indicator.name),1),_(Ve)}else{const Ve={...v()};(bn=ie())==null||bn.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),delete Ve[ve.indicator.name],L(Ve)}}}),(Ie=ie())==null||Ie.subscribeAction("onCandleTooltipFeatureClick",Pe=>{console.info("onCandleTooltipFeatureClick",Pe)}),($e=ie())==null||$e.subscribeAction("onZoom",Pe=>{console.info("chart zoomed: ",Pe)}),(Ue=ie())==null||Ue.subscribeAction("onCrosshairChange",Pe=>{}),r_(e.overrides);const ye=jn();ye!=null&&ye.priceCurrency?(i.innerHTML=ye==null?void 0:ye.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(Ee=ie())==null||Ee.setSymbol({ticker:ye.ticker,pricePrecision:(ye==null?void 0:ye.pricePrecision)??2,volumePrecision:(ye==null?void 0:ye.volumePrecision)??0}),(ht=ie())==null||ht.setPeriod(Pn()),(ae=ie())==null||ae.setDataLoader(e.dataloader)}const D=ie();if(D){y().forEach(oe=>{g0(D,oe,!0,{id:"candle_pane"})});const ne={};e.subIndicators.forEach(oe=>{const ye=g0(D,oe,!0);ye&&(ne[oe]=ye)}),L(ne)}}),cr(()=>{window.removeEventListener("resize",H),ce.dispose(r)}),rn(D=>{var ee,ge,de;if(console.info("symbol or period changed effect",jn(),Pn(),D),!e.dataloader.loading){console.info("setLoadingVisible false by effect");const he=jn(),Ie=Pn();return(D==null?void 0:D.period.span)!==Ie.span&&(D==null?void 0:D.period.type)!==Ie.type&&(console.info("period changed: set period",Ie),(ee=ie())==null||ee.setPeriod(Ie)),((ge=D==null?void 0:D.symbol)==null?void 0:ge.ticker)!==he.ticker&&console.info("ticker changed: set symbol",he),(de=ie())==null||de.setSymbol({ticker:he.ticker,pricePrecision:he.pricePrecision,volumePrecision:he.volumePrecision}),cr(()=>{}),{symbol:he,period:Ie}}return console.info("props.dataloader.loading is true, skip setLoadingVisible false"),D}),rn(()=>{var ge,de;const D=o();(ge=ie())==null||ge.setStyles(D);const ee=D==="dark"?"#929AA5":"#76808F";(de=ie())==null||de.setStyles({indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:8,marginTop:1,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:8,marginTop:1,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:1,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:1,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}})}),rn(()=>{var D;(D=ie())==null||D.setLocale(l())}),rn(()=>{var D;(D=ie())==null||D.setTimezone(T().key)}),rn(()=>{$(Ud(ie().getStyles()))}),rn(()=>{var D;oo()&&((D=ie())==null||D.setStyles(oo()))}),[e_(),j(We,{get when(){return fm()},get children(){return j(Ay,{})}}),j(We,{get when(){return mm()},get children(){return j(Kb,{get locale(){return e.locale}})}}),j(We,{get when(){return z()},get children(){return j(zb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:D=>{ro(D)},onClose:()=>{G(!1)}})}}),j(We,{get when(){return f()},get children(){return j(mb,{get locale(){return e.locale},get mainIndicators(){return y()},get subIndicators(){return v()},onClose:()=>{h(!1)},onMainIndicatorChange:D=>{var ge;const ee=[...y()];D.added?(g0(ie(),D.name,!0,{id:"candle_pane"}),ee.push(D.name)):((ge=ie())==null||ge.removeIndicator({name:D.name,paneId:"candle_pane",id:D.id??void 0}),ee.splice(ee.indexOf(D.name),1)),_(ee)},onSubIndicatorChange:D=>{var ge;console.info("onSubIndicatorChange",D);const ee={...v()};if(D.added){const de=g0(ie(),D.name);de&&(ee[D.name]=de)}else D.id&&((ge=ie())==null||ge.removeIndicator({name:D.name,id:D.id}),delete ee[D.name]);L(ee)}})}}),j(We,{get when(){return M()},get children(){return j(vb,{get locale(){return e.locale},get timezone(){return T()},onClose:()=>{w(!1)},onConfirm:A})}}),j(We,{get when(){return C()},get children(){return j(Ab,{get locale(){return e.locale},get currentStyles(){return ce.utils.clone(ie().getStyles())},onClose:()=>{I(!1)},onChange:D=>{var ee;(ee=ie())==null||ee.setStyles(D)},onRestoreDefault:D=>{var ge;const ee={};D.forEach(de=>{const he=de.key;T1(ee,he,ce.utils.formatValue(R(),he))}),(ge=ie())==null||ge.setStyles(ee)}})}}),j(We,{get when(){return Z().length>0},get children(){return j(Tb,{get locale(){return e.locale},get url(){return Z()},onClose:()=>{X("")}})}}),j(We,{get when(){return q().visible},get children(){return j(Bb,{get locale(){return e.locale},get params(){return q()},onClose:()=>{U({visible:!1,indicatorName:"",paneId:"",calcParams:[]})},onConfirm:D=>{var ge;const ee=q();(ge=ie())==null||ge.overrideIndicator({name:ee.indicatorName,calcParams:D,paneId:ee.paneId})}})}}),j(zy,{get locale(){return e.locale},get symbol(){return jn()},get spread(){return Q()},get period(){return Pn()},get periods(){return e.periods},onMenuClick:async()=>{var D;try{await n6(()=>O(!Q())),(D=ie())==null||D.resize()}catch{}},onSymbolClick:()=>{G(!z())},onPeriodChange:io,onIndicatorClick:()=>{h(D=>!D)},onTimezoneClick:()=>{w(D=>!D)},onSettingClick:()=>{I(D=>!D)},onScreenshotClick:()=>{if(ie()){const D=ie().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");X(D)}}}),(()=>{var D=t_(),ee=D.firstChild;W(D,j(We,{get when(){return _m()},get children(){return j(Es,{})}}),ee),W(D,j(We,{get when(){return Q()},get children(){return j(pb,{get locale(){return e.locale},onDrawingItemClick:de=>{n_(de)},onModeChange:de=>{var he;(he=ie())==null||he.overrideOverlay({mode:de})},onLockChange:de=>{var he;(he=ie())==null||he.overrideOverlay({lock:de})},onVisibleChange:de=>{var he;(he=ie())==null||he.overrideOverlay({visible:de})},onRemoveClick:de=>{var he;(he=ie())==null||he.removeOverlay({groupId:de})}})}}),ee),W(D,j(We,{get when(){return d0()},get children(){return j(Jb,{get locale(){return l()}})}}),ee);var ge=r;return typeof ge=="function"?fr(ge,ee):r=ee,Te(de=>{var he=vm(),Ie=e.overrides.backgroundType??"solid",$e=Q();return he!==de.e&&rt(D,"data-orders-pane-visible",de.e=he),Ie!==de.t&&rt(ee,"data-pane-style",de.t=Ie),$e!==de.a&&rt(ee,"data-drawing-bar-visible",de.a=$e),de},{e:void 0,t:void 0,a:void 0}),D})()]};class o_{constructor(r){Mt(this,"_datafeed");Mt(this,"_loading");console.info("ChartDataLoader initialized"),this._datafeed=r,this._loading=!1}async getBars(r){console.info("ChartDataLoader getBars",r);const{type:i,timestamp:o,symbol:s,period:l,callback:u}=r;if(i==="backward"||i==="update"){console.info("getBars: type is backward or update (no forward support yet)"),u([],!1);return}this._loading=!0,T5(!0);const f=o??new Date().getTime();await(async()=>{const y=Pn(),_=jn(),[v]=this.adjustFromTo(y,f,1),[L]=this.adjustFromTo(y,v,500),M=await this._datafeed.getHistoryKLineData(_,y,L,v);u(M,M.length>0),this._loading=!1,T5(!1)})()}subscribeBar(r){console.info("ChartDataLoader subscribeBar",r);const{symbol:i,period:o,callback:s}=r;this._datafeed.subscribe(jn(),Pn(),s)}unsubscribeBar(r){console.info("ChartDataLoader unsubscribeBar",r),this._datafeed.unsubscribe(jn(),Pn())}searchSymbols(r){return this._datafeed.searchSymbols(r)}get loading(){return this._loading}set loading(r){this._loading=r}adjustFromTo(r,i,o){let s=i,l=s;switch(r.type){case"minute":s-=s%(60*1e3),l=s-o*r.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*r.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*r.span*24*60*60*1e3;break;case"week":{const u=new Date(s),f=u.getDay()||7;u.setHours(0,0,0,0),s=u.getTime()-(f-1)*24*60*60*1e3,l=s-o*r.span*7*24*60*60*1e3;break}case"month":{const u=new Date(s);s=new Date(u.getFullYear(),u.getMonth(),1).getTime();const f=new Date(s-o*r.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const u=new Date(s);s=new Date(u.getFullYear(),0,1).getTime();const f=new Date(s-o*r.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var a_=B('<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 s_=a_();class l_{constructor(r){Mt(this,"_container");Mt(this,"_chartApi",null);if(ce.utils.isString(r.container)){if(this._container=document.getElementById(r.container),!this._container)throw new Error("Container is null")}else this._container=r.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",r.theme??"light");const i=new o_(r.datafeed);h6(()=>{const o=this;return j(i_,{ref:s=>{o._chartApi=s},get watermark(){return r.watermark??s_},get theme(){return r.theme??"light"},get locale(){return r.locale??"zh-CN"},get drawingBarVisible(){return r.drawingBarVisible??!0},get orderPanelVisible(){return r.orderPanelVisible??!1},get symbol(){return r.symbol},get period(){return r.period},get periods(){return r.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return r.overrides??{}},get timezone(){return r.timezone??"Etc/UTC"},get mainIndicators(){return r.mainIndicators??["MA"]},get subIndicators(){return r.subIndicators??["VOL"]},get dataTimestamp(){return r.dataTimestamp??new Date().getTime()},get rootElementId(){var s;return r.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&ce.dispose(this._container),this._container=null,this._chartApi=null}setTheme(r){var i;(i=this._container)==null||i.setAttribute("data-theme",r),this._chartApi.setTheme(r)}getTheme(){return this._chartApi.getTheme()}setStyles(r){this._chartApi.setStyles(r)}getStyles(){return this._chartApi.getStyles()}setLocale(r){this._chartApi.setLocale(r)}getLocale(){return this._chartApi.getLocale()}setTimezone(r){this._chartApi.setTimezone(r)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(r){this._chartApi.setSymbol(r)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(r){this._chartApi.setPeriod(r)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return ie()}resize(){ie().resize()}dispose(){this.destroy()}}const vI="";Ul.forEach(e=>{ce.registerOverlay(e)}),pt.DefaultDatafeed=Hl,pt.DefaultOrderController=jl,pt.DummyOrderController=Yl,pt.KLineChartPro=l_,pt.loadLocales=wm,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});
|
|
39
|
+
*/const e5=.027,Ep=5e-4,Dp=.1,t5=1.14,s0=.022,n5=1.414,Rp=(e,r)=>{e=new Y(e),r=new Y(r),e.alpha()<1&&(e=O1(r,e,e.alpha(),"rgb"));const i=r5(...e.rgb()),o=r5(...r.rgb()),s=i>=s0?i:i+Math.pow(s0-i,n5),l=o>=s0?o:o+Math.pow(s0-o,n5),u=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),h=Math.abs(l-s)<Ep?0:s<l?u*t5:f*t5;return(Math.abs(h)<Dp?0:h>0?h-e5:h+e5)*100};function r5(e,r,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Mn,pow:lt,min:zp,max:Fp,atan2:i5,abs:o5,cos:l0,sin:a5,exp:Np,PI:s5}=Math;function Zp(e,r,i=1,o=1,s=1){var l=function(ht){return 360*ht/(2*s5)},u=function(ht){return 2*s5*ht/360};e=new Y(e),r=new Y(r);const[f,h,m]=Array.from(e.lab()),[_,v,$]=Array.from(r.lab()),M=(f+_)/2,x=Mn(lt(h,2)+lt(m,2)),T=Mn(lt(v,2)+lt($,2)),A=(x+T)/2,w=.5*(1-Mn(lt(A,7)/(lt(A,7)+lt(25,7)))),I=h*(1+w),R=v*(1+w),k=Mn(lt(I,2)+lt(m,2)),Z=Mn(lt(R,2)+lt($,2)),G=(k+Z)/2,V=l(i5(m,I)),O=l(i5($,R)),z=V>=0?V:V+360,Q=O>=0?O:O+360,q=o5(z-Q)>180?(z+Q+360)/2:(z+Q)/2,X=1-.17*l0(u(q-30))+.24*l0(u(2*q))+.32*l0(u(3*q+6))-.2*l0(u(4*q-63));let W=Q-z;W=o5(W)<=180?W:Q<=z?W+360:W-360,W=2*Mn(k*Z)*a5(u(W)/2);const E=_-f,ee=Z-k,ge=1+.015*lt(M-50,2)/Mn(20+lt(M-50,2)),le=1+.045*G,he=1+.015*G*X,Ie=30*Np(-lt((q-275)/25,2)),Ue=-(2*Mn(lt(G,7)/(lt(G,7)+lt(25,7))))*a5(2*u(Ie)),Ee=Mn(lt(E/(i*ge),2)+lt(ee/(o*le),2)+lt(W/(s*he),2)+Ue*(ee/(o*le))*(W/(s*he)));return Fp(0,zp(100,Ee))}function Wp(e,r,i="lab"){e=new Y(e),r=new Y(r);const o=e.get(i),s=r.get(i);let l=0;for(let u in o){const f=(o[u]||0)-(s[u]||0);l+=f*f}return Math.sqrt(l)}const Kp=(...e)=>{try{return new Y(...e),!0}catch{return!1}},Up={cool(){return a0([me.hsl(180,1,.9),me.hsl(250,.7,.4)])},hot(){return a0(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Qi={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"]},l5=Object.keys(Qi),c5=new Map(l5.map(e=>[e.toLowerCase(),e])),Hp=typeof Proxy=="function"?new Proxy(Qi,{get(e,r){const i=r.toLowerCase();if(c5.has(i))return e[c5.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(l5)}}):Qi,jp=(...e)=>{e=Ce(e,"cmyk");const[r,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[r>=1?0:255*(1-r)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:u5}=Math,Yp=(...e)=>{let[r,i,o]=Ce(e,"rgb");r=r/255,i=i/255,o=o/255;const s=1-u5(r,u5(i,o)),l=s<1?1/(1-s):0,u=(1-r-s)*l,f=(1-i-s)*l,h=(1-o-s)*l;return[u,f,h,s]};Y.prototype.cmyk=function(){return Yp(this._rgb)},Object.assign(me,{cmyk:(...e)=>new Y(...e,"cmyk")}),be.format.cmyk=jp,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"cmyk"),ke(e)==="array"&&e.length===4)return"cmyk"}});const Vp=(...e)=>{const r=Ce(e,"hsla");let i=P1(e)||"lsa";return r[0]=Ht(r[0]||0)+"deg",r[1]=Ht(r[1]*100)+"%",r[2]=Ht(r[2]*100)+"%",i==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),i="hsla"):r.length=3,`${i.substr(0,3)}(${r.join(" ")})`},Qp=(...e)=>{const r=Ce(e,"lab");let i=P1(e)||"lab";return r[0]=Ht(r[0])+"%",r[1]=Ht(r[1]),r[2]=Ht(r[2]),i==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},Gp=(...e)=>{const r=Ce(e,"lch");let i=P1(e)||"lab";return r[0]=Ht(r[0])+"%",r[1]=Ht(r[1]),r[2]=isNaN(r[2])?"none":Ht(r[2])+"deg",i==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},qp=(...e)=>{const r=Ce(e,"lab");return r[0]=Ht(r[0]*100)+"%",r[1]=Oi(r[1]),r[2]=Oi(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},f5=(...e)=>{const[r,i,o,...s]=Ce(e,"rgb"),[l,u,f]=Hi(r,i,o),[h,m,_]=Hs(l,u,f);return[h,m,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Xp=(...e)=>{const r=Ce(e,"lch");return r[0]=Ht(r[0]*100)+"%",r[1]=Oi(r[1]),r[2]=isNaN(r[2])?"none":Ht(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:Gi}=Math,Jp=(...e)=>{const r=Ce(e,"rgba");let i=P1(e)||"rgb";if(i.substr(0,3)==="hsl")return Vp(Ys(r),i);if(i.substr(0,3)==="lab"){const o=gr();An("d50");const s=Qp(Ri(r),i);return An(o),s}if(i.substr(0,3)==="lch"){const o=gr();An("d50");const s=Gp(Zi(r),i);return An(o),s}return i.substr(0,5)==="oklab"?qp(Hi(r)):i.substr(0,5)==="oklch"?Xp(f5(r)):(r[0]=Gi(r[0]),r[1]=Gi(r[1]),r[2]=Gi(r[2]),(i==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),i="rgba"),`${i.substr(0,3)}(${r.slice(0,i==="rgb"?3:4).join(" ")})`)},d5=(...e)=>{e=Ce(e,"lch");const[r,i,o,...s]=e,[l,u,f]=Us(r,i,o),[h,m,_]=Ui(l,u,f);return[h,m,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Tn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,ln=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,c0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,jt=/\s*/.source,R1=/\s+/.source,qi=/\s*,\s*/.source,u0=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,z1=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,h5=new RegExp("^rgba?\\("+jt+[Tn,Tn,Tn].join(R1)+z1+"\\)$"),g5=new RegExp("^rgb\\("+jt+[Tn,Tn,Tn].join(qi)+jt+"\\)$"),p5=new RegExp("^rgba\\("+jt+[Tn,Tn,Tn,ln].join(qi)+jt+"\\)$"),m5=new RegExp("^hsla?\\("+jt+[u0,c0,c0].join(R1)+z1+"\\)$"),y5=new RegExp("^hsl?\\("+jt+[u0,c0,c0].join(qi)+jt+"\\)$"),v5=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,b5=new RegExp("^lab\\("+jt+[ln,ln,ln].join(R1)+z1+"\\)$"),_5=new RegExp("^lch\\("+jt+[ln,ln,u0].join(R1)+z1+"\\)$"),C5=new RegExp("^oklab\\("+jt+[ln,ln,ln].join(R1)+z1+"\\)$"),x5=new RegExp("^oklch\\("+jt+[ln,ln,u0].join(R1)+z1+"\\)$"),{round:w5}=Math,F1=e=>e.map((r,i)=>i<=2?c1(w5(r),0,255):r),ct=(e,r=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(i-r):e=r+e*(i-r)),+e),$t=(e,r)=>e==="none"?r:e,Xi=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(be.format.named)try{return be.format.named(e)}catch{}if((r=e.match(h5))||(r=e.match(g5))){let i=r.slice(1,4);for(let s=0;s<3;s++)i[s]=+ct($t(i[s],0),0,255);i=F1(i);const o=r[4]!==void 0?+ct(r[4],0,1):1;return i[3]=o,i}if(r=e.match(p5)){const i=r.slice(1,5);for(let o=0;o<4;o++)i[o]=+ct(i[o],0,255);return i}if((r=e.match(m5))||(r=e.match(y5))){const i=r.slice(1,4);i[0]=+$t(i[0].replace("deg",""),0),i[1]=+ct($t(i[1],0),0,100)*.01,i[2]=+ct($t(i[2],0),0,100)*.01;const o=F1(Ki(i)),s=r[4]!==void 0?+ct(r[4],0,1):1;return o[3]=s,o}if(r=e.match(v5)){const i=r.slice(1,4);i[1]*=.01,i[2]*=.01;const o=Ki(i);for(let s=0;s<3;s++)o[s]=w5(o[s]);return o[3]=+r[4],o}if(r=e.match(b5)){const i=r.slice(1,4);i[0]=ct($t(i[0],0),0,100),i[1]=ct($t(i[1],0),-125,125,!0),i[2]=ct($t(i[2],0),-125,125,!0);const o=gr();An("d50");const s=F1(Ei(i));An(o);const l=r[4]!==void 0?+ct(r[4],0,1):1;return s[3]=l,s}if(r=e.match(_5)){const i=r.slice(1,4);i[0]=ct(i[0],0,100),i[1]=ct($t(i[1],0),0,150,!1),i[2]=+$t(i[2].replace("deg",""),0);const o=gr();An("d50");const s=F1(Ni(i));An(o);const l=r[4]!==void 0?+ct(r[4],0,1):1;return s[3]=l,s}if(r=e.match(C5)){const i=r.slice(1,4);i[0]=ct($t(i[0],0),0,1),i[1]=ct($t(i[1],0),-.4,.4,!0),i[2]=ct($t(i[2],0),-.4,.4,!0);const o=F1(Ui(i)),s=r[4]!==void 0?+ct(r[4],0,1):1;return o[3]=s,o}if(r=e.match(x5)){const i=r.slice(1,4);i[0]=ct($t(i[0],0),0,1),i[1]=ct($t(i[1],0),0,.4,!1),i[2]=+$t(i[2].replace("deg",""),0);const o=F1(d5(i)),s=r[4]!==void 0?+ct(r[4],0,1):1;return o[3]=s,o}};Xi.test=e=>h5.test(e)||m5.test(e)||b5.test(e)||_5.test(e)||C5.test(e)||x5.test(e)||g5.test(e)||p5.test(e)||y5.test(e)||v5.test(e)||e==="transparent",Y.prototype.css=function(e){return Jp(this._rgb,e)};const em=(...e)=>new Y(...e,"css");me.css=em,be.format.css=Xi,be.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&ke(e)==="string"&&Xi.test(e))return"css"}}),be.format.gl=(...e)=>{const r=Ce(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const tm=(...e)=>new Y(...e,"gl");me.gl=tm,Y.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Y.prototype.hex=function(e){return Zs(this._rgb,e)};const nm=(...e)=>new Y(...e,"hex");me.hex=nm,be.format.hex=Ns,be.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&ke(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:f0}=Math,$5=e=>{const r=e/100;let i,o,s;return r<66?(i=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*f0(o),s=r<20?0:-254.76935184120902+.8274096064007395*(s=r-10)+115.67994401066147*f0(s)):(i=351.97690566805693+.114206453784165*(i=r-55)-40.25366309332127*f0(i),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*f0(o),s=255),[i,o,s,1]},{round:rm}=Math,im=(...e)=>{const r=Ce(e,"rgb"),i=r[0],o=r[2];let s=1e3,l=4e4;const u=.4;let f;for(;l-s>u;){f=(l+s)*.5;const h=$5(f);h[2]/h[0]>=o/i?l=f:s=f}return rm(f)};Y.prototype.temp=Y.prototype.kelvin=Y.prototype.temperature=function(){return im(this._rgb)};const Ji=(...e)=>new Y(...e,"temp");Object.assign(me,{temp:Ji,kelvin:Ji,temperature:Ji}),be.format.temp=be.format.kelvin=be.format.temperature=$5,Y.prototype.oklch=function(){return f5(this._rgb)},Object.assign(me,{oklch:(...e)=>new Y(...e,"oklch")}),be.format.oklch=d5,be.autodetect.push({p:2,test:(...e)=>{if(e=Ce(e,"oklch"),ke(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(me,{analyze:Xs,average:lp,bezier:gp,blend:sn,brewer:Hp,Color:Y,colors:I1,contrast:Bp,contrastAPCA:Rp,cubehelix:kp,deltaE:Zp,distance:Wp,input:be,interpolate:O1,limits:Js,mix:O1,random:Tp,scale:a0,scales:Up,valid:Kp});var om=B("<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"),am=B("<div class=each_line>"),sm=B("<div>"),lm=B("<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)>+"),cm=B('<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 eo=e=>{const r=String(e.value).includes("rgba")?me(String(e.value)).alpha()*100:100,[i,o]=j(!1),[s,l]=j(r),[u,f]=j(e.value),[h,m]=j(e.value),[_,v]=j(!1),[$,M]=j(!1),[x,T]=j(e.value??"#000000"),[A,w]=j(0),[I,R]=j(1),[k,Z]=j(.5),[G,V]=j(!1),O=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],z=ae=>{try{return me(ae).hex()}catch{return String(ae||"#000000")}},Q=ae=>{const ne=z(ae),[oe,ye,Pe]=me(ne).hsl();w(Number.isFinite(oe)?Math.round(oe):0),R(Number.isFinite(ye)?ye:1),Z(Number.isFinite(Pe)?Pe:.5),T(ne)},q=()=>{o(!1),M(!1)},X=()=>{var ae;f(e.value),m(e.value),(ae=e.onChange)==null||ae.call(e,e.value),q()},W=ae=>{var ye;f(ae);const ne=s()/100,oe=me(ae).alpha(ne).css();m(oe),(e.reactiveChange??!0)&&((ye=e.onChange)==null||ye.call(e,oe))},E=()=>{var oe;const ae=s()/100,ne=me(u()).alpha(ae).css();m(ne),(e.reactiveChange??!0)&&((oe=e.onChange)==null||oe.call(e,ne))},ee=ae=>{l(ae.target.value),E()},ge=()=>{const ae=u()??e.value??"#000000";Q(String(ae)),M(!0),o(!0)},le=ae=>{w(ae);const ne=me.hsl(ae,I(),k()).hex();T(ne)},he=ae=>{let ne=ae.trim();ne.startsWith("#")||(ne="#"+ne);try{const oe=me(ne).hex(),[ye,Pe,ve]=me(oe).hsl();w(Number.isFinite(ye)?Math.round(ye):A()),R(Number.isFinite(Pe)?Pe:I()),Z(Number.isFinite(ve)?ve:k()),T(oe)}catch{T(ae)}},Ie=ae=>{var ne,oe;(oe=(ne=ae.target).setPointerCapture)==null||oe.call(ne,ae.pointerId),V(!0),Ee(ae)},$e=ae=>{G()&&Ee(ae)},Ue=ae=>{var ne,oe;try{(oe=(ne=ae.target).releasePointerCapture)==null||oe.call(ne,ae.pointerId)}catch{}V(!1)},Ee=ae=>{const oe=ae.currentTarget.getBoundingClientRect(),ye=Math.min(Math.max(0,ae.clientX-oe.left),oe.width),Pe=Math.min(Math.max(0,ae.clientY-oe.top),oe.height),ve=oe.width?ye/oe.width:0,_t=oe.height?1-Pe/oe.height:.5;R(ve),Z(_t);const cn=me.hsl(A(),ve,_t).hex();T(cn)},ht=()=>{try{const ae=z(x());O[0].unshift(ae),W(ae),M(!1)}catch{}};return(()=>{var ae=om(),ne=ae.firstChild,oe=ne.nextSibling,ye=oe.firstChild,Pe=ye.nextSibling,ve=Pe.firstChild,_t=ve.nextSibling,cn=_t.firstChild,un=Pe.nextSibling,Oe=un.nextSibling,bn=Oe.firstChild,Ve=bn.nextSibling;return ne.$$click=Fe=>{o(!0)},K(oe,(()=>{var Fe=qe(()=>!$());return()=>Fe()&&O.map(Et=>(()=>{var tt=am();return K(tt,()=>Et.map(ut=>(()=>{var Dt=sm();return Dt.$$click=de=>{de.preventDefault(),W(ut)},Te(de=>{var Je=`each_color ${ut==u()?"selected":""}`,Bn=`background-color: ${ut}`;return Je!==de.e&&an(Dt,de.e=Je),de.t=Ut(Dt,Bn,de.t),de},{e:void 0,t:void 0}),Dt})())),tt})())})(),ye),K(oe,(()=>{var Fe=qe(()=>!$());return()=>Fe()&&(()=>{var Et=lm(),tt=Et.firstChild;return tt.$$click=ut=>{ut.stopPropagation(),ge()},Et})()})(),ye),K(oe,(()=>{var Fe=qe(()=>!!$());return()=>Fe()&&(()=>{var Et=cm(),tt=Et.firstChild,ut=tt.firstChild,Dt=ut.nextSibling,de=tt.nextSibling,Je=de.firstChild,Bn=Je.nextSibling,Z1=Bn.nextSibling,pr=Z1.nextSibling,Vn=de.nextSibling,mr=Vn.firstChild,u1=mr.nextSibling,Qn=Vn.nextSibling,W1=Qn.firstChild,yr=W1.nextSibling;return Dt.$$input=Qe=>he(Qe.currentTarget.value),de.$$pointerup=Qe=>Ue(Qe),de.$$pointermove=Qe=>$e(Qe),de.$$pointerdown=Qe=>Ie(Qe),mr.$$input=Qe=>le(Number(Qe.currentTarget.value)),K(u1,A),W1.$$click=()=>M(!1),yr.$$click=ht,Te(Qe=>{var vr=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${x()}`,K1=`linear-gradient(to right, hsl(${A()}, 0%, 50%), hsl(${A()}, 100%, 50%))`,U1=`${Math.round(I()*100)}%`,H1=`${Math.round((1-k())*100)}%`,j1=x();return Qe.e=Ut(ut,vr,Qe.e),K1!==Qe.t&&Bt(Je,"background",Qe.t=K1),U1!==Qe.a&&Bt(pr,"left",Qe.a=U1),H1!==Qe.o&&Bt(pr,"top",Qe.o=H1),j1!==Qe.i&&Bt(pr,"background",Qe.i=j1),Qe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>Dt.value=x()),Te(()=>mr.value=A()),Et})()})(),ye),ve.addEventListener("blur",()=>{v(!1)}),ve.addEventListener("focus",()=>{v(!0)}),ve.$$input=Fe=>{Fe.preventDefault,ee(Fe)},K(_t,s,cn),bn.$$click=X,Ve.$$click=()=>{var Fe;e.reactiveChange===!1&&((Fe=e.onChange)==null||Fe.call(e,h())),q()},Te(Fe=>{var Et=`width: 120px; background-color: ${h()}`,tt=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,ut=`background-color: ${h()}; border: 1px solid ${u()}`;return Fe.e=Ut(ae,Et,Fe.e),tt!==Fe.t&&an(ae,Fe.t=tt),Fe.a=Ut(ve,ut,Fe.a),Fe},{e:void 0,t:void 0,a:void 0}),Te(()=>ve.value=s()),ae})()};wt(["click","input","pointerdown","pointermove","pointerup"]);const[um,L5]=j(!1),[k5,fm]=j(0),[S5,dm]=j(0),[Lt,A5]=j(),[hm,gm]=j();j(!1);const[pm,to]=j(!1);j(!1),j(!1),j(!1);const mm=()=>{var e;return((e=Lt())==null?void 0:e.name)??"Object"},M5=()=>({openPopup:(i,o)=>{fm(o1().y-i.pageY>200?i.pageY:o1().y-200),dm(o1().x-i.pageX>200?i.pageX:o1().x-200),A5(i.overlay),gm(o),L5(!0)},closePopup:()=>{L5(!1)}});j(!1),j(!1);const[ym,JS]=j(!1);j(!1),j(!1),j(!1),j(!1),j("");const[vm,bm]=j("");function _m(e){const r=vm();if(r)return document.getElementById(r);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}const[Cm,T5]=j(!1),[jn,no]=j(null),[Pn,ro]=j(null);j();const[ie,xm]=j(null),[io,P5]=j(null),[I5,O5]=j([""]),[B5,E5]=j({}),[eA,In]=j(!1);j("");const[D5,wm]=j(!1);j(1),j();const[d0,oo]=j(null),R5={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",restore_default:"恢复默认"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults"}};function $m(e,r){R5[e]=r}const y=(e,r)=>{var i;return((i=R5[r])==null?void 0:i[e])??e};j("");const[Lm,yI]=j(!1);j(""),j();const km=e=>{const r=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return r.forEach(o=>{delete i[o]}),i},Sm=e=>{const r=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return r.forEach(o=>{delete i[o]}),i},On=()=>{const e=(x,T,A)=>{const w=localStorage.getItem("chartstatedata");let I;const R=km(at.cloneDeep(x));return w?(I=JSON.parse(w),I.indicators?I.indicators.find(k=>{var Z,G;return((Z=k.value)==null?void 0:Z.name)===R.name&&((G=k.paneOptions)==null?void 0:G.id)===(A==null?void 0:A.id)})?I.indicators=I.indicators.map(k=>{var Z;return((Z=k.value)==null?void 0:Z.id)!==R.id?k:{value:R,isStack:T,paneOptions:A}}):I.indicators.push({value:R,isStack:T,paneOptions:A}):I.indicators=[{value:R,isStack:T,paneOptions:A}]):I={indicators:[{value:R,isStack:T,paneOptions:A}]},localStorage.setItem("chartstatedata",JSON.stringify(I)),In(!0),!1},r=x=>{const T=localStorage.getItem("chartstatedata");let A;const w=Sm(at.cloneDeep(x));return T?(A=JSON.parse(T),A.overlays?A.overlays.find(I=>{var R;return((R=I.value)==null?void 0:R.id)===w.id})?A.overlays=A.overlays.map(I=>{var R;return((R=I.value)==null?void 0:R.id)!==w.id?I:{value:w,paneId:x.paneId}}):A.overlays.push({value:w,paneId:x.paneId}):A.overlays=[{value:x,paneId:x.paneId}]):A={overlays:[{value:w,paneId:x.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(A)),In(!0),!1};function i(x,T,A,w,I=!1){T==="VOL"&&(w={axis:{gap:{bottom:2}},...w});const R=(w==null?void 0:w.id)==="candle_pane",k=x.createIndicator({name:T,createTooltipDataSource:Z=>{const V=Z.chart.getStyles().indicator.tooltip.features,O=[];return R&&O.push(Z.indicator.visible?V[1]:V[0]),O.push(V[2]),O.push(V[3]),{features:O}}},A,w)??null;if(k&&I){const Z=x==null?void 0:x.getIndicators({id:k,name:T})[0];Z&&e(Z,A,{id:k})}return k}const o=(x,T,A=!1)=>{var k,Z,G;const w=(k=ie())==null?void 0:k.createOverlay({...x,paneId:T});if(!w)return!1;const I=(Z=ie())==null?void 0:Z.getOverlays({id:w})[0],R=V=>(V.preventDefault&&V.preventDefault(),console.info("on right click called",V.preventDefault),Lm()?(console.info("control key down"),s(V.overlay.id),!0):(M5().openPopup(V,{overlayType:V.overlay.name}),!0));I&&(x.properties&&I.setProperties(x.properties,w),(G=ie())==null||G.overrideOverlay({id:I.id,onDrawEnd:V=>(console.info("on draw end called"),["measure"].includes(I.name)?!1:r(V.overlay)),onPressedMoveEnd:V=>(console.info("on pressed move end called"),["measure"].includes(I.name)?!1:r(V.overlay)),onSelected:V=>oo(V.overlay),onDeselected:()=>oo(null),onRightClick:I.onRightClick?I.onRightClick:R,onDoubleClick:I.onDoubleClick?I.onDoubleClick:R}),A||r(I))},s=x=>{var A,w;const T=localStorage.getItem("chartstatedata");if(T){let I=JSON.parse(T);I.overlays=(A=I.overlays)==null?void 0:A.filter(R=>{var k;return((k=R.value)==null?void 0:k.id)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(I)),In(!0)}(w=ie())==null||w.removeOverlay({id:x})},l=(x,T)=>{var w,I;const A=localStorage.getItem("chartstatedata");if(A){let R=JSON.parse(A);R.overlays=(w=R.overlays)==null?void 0:w.map(k=>{var Z;return((Z=k.value)==null?void 0:Z.id)===x&&(k.value={...k.value,...T},k.paneId=T.paneId??k.paneId),k}),localStorage.setItem("chartstatedata",JSON.stringify(R)),In(!0),(I=ie())==null||I.overrideOverlay({...T,id:x})}},u=(x,T)=>{var w,I;const A=localStorage.getItem("chartstatedata");if(A){let R=JSON.parse(A);R.overlays=(w=R.overlays)==null?void 0:w.map(Z=>{var G;return((G=Z.value)==null?void 0:G.id)===x&&(Z.value.properties={...Z.value.properties,...T}),Z});const k=(I=ie())==null?void 0:I.getOverlayById(x);k&&k.setProperties(T,x),localStorage.setItem("chartstatedata",JSON.stringify(R)),In(!0)}},f=x=>{const T=[...I5()];x.added?(i(ie(),x.name,!0,{id:"candle_pane"},!0),T.push(x.name)):(_(x.name,"candle_pane"),T.splice(T.indexOf(x.name),1)),O5(T)},h=x=>{const T={...B5()};if(x.added){const A=i(ie(),x.name,!1,void 0,!0);A&&(T[x.name]=A)}else x.paneId&&(_(x.name,x.paneId),delete T[x.name]);E5(T)},m=(x,T)=>{var w,I;const A=localStorage.getItem("chartstatedata");if(A){let R=JSON.parse(A);R.indicators=(w=R.indicators)==null?void 0:w.map(k=>{var Z;return((Z=k.value)==null?void 0:Z.name)===x.indicatorName&&(k.value.name=x.indicatorName,k.value.calcParams=T,k.paneOptions.id=x.paneId),k}),localStorage.setItem("chartstatedata",JSON.stringify(R)),In(!0),(I=ie())==null||I.overrideIndicator({name:x.indicatorName,calcParams:T,paneId:x.paneId})}},_=(x,T,A)=>{var I,R;const w=localStorage.getItem("chartstatedata");if((I=ie())==null||I.removeIndicator({id:x,paneId:A,name:T}),w){let k=JSON.parse(w);k.indicators=(R=k.indicators)==null?void 0:R.filter(Z=>{var G,V;return((G=Z.paneOptions)==null?void 0:G.id)!==A&&((V=Z.value)==null?void 0:V.name)!==T}),localStorage.setItem("chartstatedata",JSON.stringify(k)),In(!0)}},v=(x,T)=>{document.documentElement.style.setProperty(x,T,"important");const A=document.querySelector("[data-theme]");A&&A.style.setProperty(x,T,"important")},$=x=>{var T;x.background&&v("--klinecharts-pro-pane-background",x.background),x.backgroundGradientStartColor&&v("--klinecharts-pro-pane-background-gradient-start",x.backgroundGradientStartColor),x.backgroundGradientEndColor&&v("--klinecharts-pro-pane-background-gradient-end",x.backgroundGradientEndColor),(T=x.separator)!=null&&T.color&&v("--klinecharts-pro-border-color",x.separator.color)};return{createIndicator:i,modifyIndicator:m,popIndicator:_,syncIndiObject:e,syncObject:r,pushOverlay:o,modifyOverlay:l,modifyOverlayProperties:u,popOverlay:s,pushMainIndicator:f,pushSubIndicator:h,restoreChartState:async x=>{const T=I=>{const R=JSON.parse(I);R.figures,R.overlays&&R.overlays.forEach(k=>{o(k.value,k.paneId,!0)}),R.indicators&&setTimeout(()=>{const k=[...I5()],Z={...B5};R.indicators.forEach(G=>{var V,O,z;G.value&&((V=ie())==null||V.createIndicator(G.value,G.isStack,G.paneOptions),((O=G.paneOptions)==null?void 0:O.id)==="candle_pane"?k.push(G.value.name):Z[G.value.name]=(z=G.paneOptions)==null?void 0:z.id)}),O5(k),E5(Z)},500)},A=localStorage.getItem("chartstatedata");A&&T(A);const w=JSON.parse(A)??{};x&&($(x),w.styleObj||(w.styleObj=x,localStorage.setItem("chartstatedata",JSON.stringify(w)))),w.styleObj&&P5(w.styleObj)}}};var Am=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor d="m19.54 4.5 3.96 4.32-.74.68-3.96-4.32.74-.68ZM7.46 4.5 3.5 8.82l.74.68L8.2 5.18l-.74-.68ZM19.74 10.33A7.5 7.5 0 0 1 21 14.5v.5h1v-.5a8.5 8.5 0 1 0-8.5 8.5h.5v-1h-.5a7.5 7.5 0 1 1 6.24-11.67Z"></path><path fill=currentColor d="M13 9v5h-3v1h4V9h-1ZM19 20v-4h1v4h4v1h-4v4h-1v-4h-4v-1h4Z">');const Mm=()=>Am();var Tm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 10 16"width=10 height=16><path d="M.6 1.4l1.4-1.4 8 8-8 8-1.4-1.4 6.389-6.532-6.389-6.668z">');const Pm=e=>(()=>{var r=Tm();return rt(r,"class",e),r})();var Im=B('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28><g fill=none fill-rule=evenodd stroke=currentColor><path d="M13.111 18.5H10.5a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-8.389z"></path><path d="M18.5 20v1.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1H8">');const Om=()=>Im();var Bm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 8 12"width=8 height=12 fill=currentColor><rect width=2 height=2 rx=1></rect><rect width=2 height=2 rx=1 y=5></rect><rect width=2 height=2 rx=1 y=10></rect><rect width=2 height=2 rx=1 x=6></rect><rect width=2 height=2 rx=1 x=6 y=5></rect><rect width=2 height=2 rx=1 x=6 y=10>');const Em=()=>Bm();var Dm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 16 16"width=16 height=16><path fill=currentColor d="M10.62.72a2.47 2.47 0 0 1 3.5 0l1.16 1.16c.96.97.96 2.54 0 3.5l-.58.58-8.9 8.9-1 1-.14.14H0v-4.65l.14-.15 1-1 8.9-8.9.58-.58Zm2.8.7a1.48 1.48 0 0 0-2.1 0l-.23.23 3.26 3.26.23-.23c.58-.58.58-1.52 0-2.1l-1.16-1.16Zm.23 4.2-3.26-3.27-8.2 8.2 3.25 3.27 8.2-8.2Zm-8.9 8.9-3.27-3.26-.5.5V15h3.27l.5-.5Z">');const Rm=()=>Dm();var zm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"width=20 height=20 fill=none><path stroke=currentColor d="M13.5 6.5l-3-3-7 7 7.59 7.59a2 2 0 0 0 2.82 0l4.18-4.18a2 2 0 0 0 0-2.82L13.5 6.5zm0 0v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v6"></path><path fill=currentColor d="M0 16.5C0 15 2.5 12 2.5 12S5 15 5 16.5 4 19 2.5 19 0 18 0 16.5z"></path><circle fill=currentColor cx=9.5 cy=9.5 r=1.5>');const Fm=()=>zm();var Nm=B('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28><path fill=currentColor d="M18.15 7.02A9.05 9.05 0 0014 6c-3.45 0-6.08 2-7.8 3.92a18.18 18.18 0 00-2.64 3.84v.02h-.01L4 14l-.45-.21-.1.21.1.21L4 14l-.45.21.01.03a5.85 5.85 0 00.16.32c.11.2.28.51.5.87a18.18 18.18 0 002.4 3.12l.71-.71A17.18 17.18 0 014.56 14a10.05 10.05 0 01.52-.91c.41-.69 1.04-1.6 1.85-2.5C8.58 8.75 10.95 7 14 7a8 8 0 013.4.77l.75-.75zm-3.11 3.12a4 4 0 00-4.9 4.9l.86-.87V14a3 3 0 013.17-3l.87-.86zm1.96 3.7l.86-.88a4 4 0 01-4.9 4.9l.87-.86A3 3 0 0017 13.83zm-6.4 6.4A8 8 0 0014 21c3.05 0 5.42-1.76 7.07-3.58A17.18 17.18 0 0023.44 14a9.47 9.47 0 00-.52-.91 17.18 17.18 0 00-2.25-2.93l.7-.7a18.18 18.18 0 013.06 4.3l.02.02L24 14l.45.21-.01.03a7.03 7.03 0 01-.16.32c-.11.2-.28.51-.5.87-.44.72-1.1 1.69-1.97 2.65C20.08 20.01 17.45 22 14 22c-1.55 0-2.94-.4-4.15-1.02l.75-.75zM24 14l.45-.21.1.21-.1.21L24 14zM22.2 6.5L6.5 22.2l-.7-.7L21.5 5.8l.7.7z">');const Zm=()=>Nm();var Wm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28 fill=none><path fill=currentColor d="M25 17.225 14 24 3 17.357l.508-.867L14 22.873l10.498-6.51zM14 5c.171 0 .344.04.498.128l9.985 5.753a1 1 0 0 1-.016 1.741l-9.983 5.522a1 1 0 0 1-.968-.001l-9.984-5.545a1 1 0 0 1-.012-1.742l9.98-5.728A1 1 0 0 1 13.999 5m-9.982 6.724L14 17.269l9.982-5.522L14 5.994z">');const Km=()=>Wm();var Um=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 18 4"width=18 height=4><rect width=18 height=1 fill=currentColor rx=2>');const Hm=e=>(()=>{var r=Um();return rt(r,"class",e),r})();var jm=B('<svg xmlns=http://www.w3.org/2000/svg width=28 height=28><path fill=currentColor d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z">');const Ym=()=>jm();var Vm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor d="M3 13h2v2H3v-2Zm5 0h2v2H8v-2Zm7 0h-2v2h2v-2Zm3 0h2v2h-2v-2Zm7 0h-2v2h2v-2Z">');const Qm=()=>Vm();var Gm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor fill-rule=evenodd d="M14 6a3 3 0 0 0-3 3v3h6V9a3 3 0 0 0-3-3zm4 6V9a4 4 0 0 0-8 0v3H8.5A2.5 2.5 0 0 0 6 14.5v7A2.5 2.5 0 0 0 8.5 24h11a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-2.5-2.5H18zm-5 5a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z">');const qm=()=>Gm();var Xm=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor fill-rule=evenodd d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z">');const Jm=()=>Xm();var ey=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28 fill=currentColor><path fill-rule=evenodd d="M18 14a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-1 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"></path><path fill-rule=evenodd d="M8.5 5h11l5 9-5 9h-11l-5-9 5-9Zm-3.86 9L9.1 6h9.82l4.45 8-4.45 8H9.1l-4.45-8Z">');const ty=()=>ey();var ny=B('<svg xmlns=http://www.w3.org/2000/svg width=18 height=18 fill=none><path fill=currentColor fill-rule=evenodd clip-rule=evenodd d="M2.448 10.124a10.82 10.82 0 0 1-.336-.609L2.105 9.5l.007-.015a12.159 12.159 0 0 1 1.686-2.466C5.002 5.665 6.752 4.373 9.05 4.373c2.297 0 4.047 1.292 5.25 2.646a12.166 12.166 0 0 1 1.687 2.466l.007.015-.007.015a12.163 12.163 0 0 1-1.686 2.466c-1.204 1.354-2.954 2.646-5.251 2.646-2.298 0-4.048-1.292-5.252-2.646a12.16 12.16 0 0 1-1.35-1.857zm14.558-.827l-.456.203.456.203v.002l-.003.005-.006.015-.025.052a11.813 11.813 0 0 1-.461.857 13.163 13.163 0 0 1-1.463 2.011c-1.296 1.46-3.296 2.982-5.998 2.982-2.703 0-4.703-1.522-6-2.982a13.162 13.162 0 0 1-1.83-2.677 7.883 7.883 0 0 1-.118-.243l-.007-.015-.002-.005v-.001l.456-.204-.456-.203v-.002l.002-.005.007-.015a4.66 4.66 0 0 1 .119-.243 13.158 13.158 0 0 1 1.83-2.677c1.296-1.46 3.296-2.982 5.999-2.982 2.702 0 4.702 1.522 5.998 2.981a13.158 13.158 0 0 1 1.83 2.678 8.097 8.097 0 0 1 .119.243l.006.015.003.005v.001zm-.456.203l.456-.203.09.203-.09.203-.456-.203zM1.092 9.297l.457.203-.457.203-.09-.203.09-.203zm9.958.203c0 1.164-.917 2.07-2 2.07-1.084 0-2-.906-2-2.07 0-1.164.916-2.07 2-2.07 1.083 0 2 .906 2 2.07zm1 0c0 1.695-1.344 3.07-3 3.07-1.657 0-3-1.375-3-3.07 0-1.695 1.343-3.07 3-3.07 1.656 0 3 1.375 3 3.07z">');const ry=()=>ny();var iy=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28 fill=none stroke=currentColor><path stroke-linecap=round d="M15.5 18.5h6m-3 3v-6"></path><rect width=6 height=6 rx=1.5 x=6.5 y=6.5></rect><rect width=6 height=6 rx=1.5 x=15.5 y=6.5></rect><rect width=6 height=6 rx=1.5 x=6.5 y=15.5>');const oy=()=>iy();var ay=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 13 15"width=13 height=15 fill=none><path stroke=currentColor d="M4 14.5h2.5m2.5 0H6.5m0 0V.5m0 0h-5a1 1 0 0 0-1 1V4m6-3.5h5a1 1 0 0 1 1 1V4">');const sy=()=>ay();var ly=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor d="M18 7h5v1h-2.01l-1.33 14.64a1.5 1.5 0 0 1-1.5 1.36H9.84a1.5 1.5 0 0 1-1.49-1.36L7.01 8H5V7h5V6c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v1Zm-6-2a1 1 0 0 0-1 1v1h6V6a1 1 0 0 0-1-1h-4ZM8.02 8l1.32 14.54a.5.5 0 0 0 .5.46h8.33a.5.5 0 0 0 .5-.46L19.99 8H8.02Z">');const cy=()=>ly();var uy=B('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 28 28"width=28 height=28><path fill=currentColor fill-rule=evenodd d="M14 6a3 3 0 0 0-3 3v3h8.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 6 21.5v-7A2.5 2.5 0 0 1 8.5 12H10V9a4 4 0 0 1 8 0h-1a3 3 0 0 0-3-3zm-1 11a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z">');const fy={alert:Mm,arrowRight:Pm,copy:Om,drag:Em,edit:Rm,fill:Fm,hide:Zm,layerStack:Km,line:Hm,lineDashed:Ym,lineDotted:Qm,locked:qm,unlocked:()=>uy(),more:Jm,settings:ty,show:ry,templates:oy,text:sy,trash:cy},Yt=e=>fy[e.name](e.class);var dy=B('<div style=display:flex;flex-direction:row;gap:1px><table class=overlay-menu role=menu><tbody><tr><td class=icon-cell></td><td class=label><div class="flex-row row-content"><span>Template</span><span class=inline-icon></span></div></td></tr><tr><td class=icon-cell></td><td class=label><div class="flex-row row-content"><span>Visual order</span><span class=inline-icon></span></div></td></tr><tr><td class=icon-cell></td><td class=label><div class="flex-row row-content"><span>Visibility on intervals</span><span class=inline-icon></span></div></td></tr><tr class=divider-after><td class=icon-cell></td><td class=label><div class="flex flex-row row-content"><span>Object Tree…</span></div></td></tr><tr><td class=icon-cell></td><td class=label><div class="flex flex-row row-content"><span>Clone</span><span class="shortcut-pill blurred"><span class=key>Ctrl</span><span class=plus>+</span><span class=key>Drag</span></span></div></td></tr><tr class=divider-after><td class=icon-cell></td><td class=label><div class="flex flex-row row-content"><span>Copy</span><span class="shortcut-pill blurred"><span class=key>Ctrl</span><span class=plus>+</span><span class=key>C</span></span></div></td></tr><tr><td class=icon-cell></td><td class=label><span></span></td></tr><tr><td class=icon-cell></td><td class=label><span></span></td></tr><tr class=divider-after><td class=icon-cell></td><td class=label><span>Remove</span><span class="shortcut-pill blurred"><span class=key>Del</span></span></td></tr><tr><td class=icon-cell></td><td class=label><span>Settings'),hy=B("<li>Bring to front"),gy=B("<li>Send to back"),py=B("<li>Bring forward"),my=B("<li>Send backward"),yy=B("<li>Save as…"),vy=B("<li>Apply default"),by=B("<li>Current Interval and above"),_y=B("<li>Current Interval and below"),Cy=B("<li>Current Interval only"),xy=B("<li>All intervals"),wy=B("<div class=submenu style=position:fixed><ul>");const Ye=()=>{M5().closePopup()},$y=e=>{e==="overlay"&&to(!0),Ye()},Ly=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{zLevel:+e.zLevel+1}),Ye()},ky=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{zLevel:+e.zLevel-1}),Ye()},Sy=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{lock:!e.lock}),Ye()},Ay=()=>{var r;const e=Lt();if(!e){Ye();return}(r=On())==null||r.modifyOverlay(e.id,{visible:e.visible}),Ye()},My=()=>{const[e,r]=j(null),[i,o]=j(0);let s,l;const u=200,f=()=>{l&&(window.clearTimeout(l),l=void 0)},h=()=>{f(),l=window.setTimeout(()=>{r(null),l=void 0},u)},m=(v,$)=>{f();const M=v.currentTarget;if(!s||!M){r($),o(0);return}const T=(M.offsetTop||0)+(M.offsetHeight||32)/2-12;o(T),r($)},_=()=>{h()};return H(Py,{open:!0,get top(){return k5()},get left(){return S5()},onClose:()=>Ye(),class:"overlay-options-popup",get children(){var v=dy(),$=v.firstChild,M=$.firstChild,x=M.firstChild,T=x.firstChild,A=T.nextSibling,w=A.firstChild,I=w.firstChild,R=I.nextSibling,k=x.nextSibling,Z=k.firstChild,G=Z.nextSibling,V=G.firstChild,O=V.firstChild,z=O.nextSibling,Q=k.nextSibling,q=Q.firstChild,X=q.nextSibling,W=X.firstChild,E=W.firstChild,ee=E.nextSibling,ge=Q.nextSibling,le=ge.nextSibling,he=le.firstChild,Ie=le.nextSibling,$e=Ie.firstChild,Ue=Ie.nextSibling,Ee=Ue.firstChild,ht=Ee.nextSibling,ae=ht.firstChild,ne=Ue.nextSibling,oe=ne.firstChild,ye=oe.nextSibling,Pe=ye.firstChild,ve=ne.nextSibling,_t=ve.firstChild,cn=ve.nextSibling,un=cn.firstChild;return ur(Oe=>s=Oe,v),x.$$click=()=>{console.debug("template clicked"),Ye()},x.addEventListener("mouseleave",_),x.addEventListener("mouseenter",Oe=>m(Oe,"template")),K(R,H(Yt,{name:"arrowRight"})),k.$$click=()=>{console.debug("visual order clicked"),Ye()},k.addEventListener("mouseleave",_),k.addEventListener("mouseenter",Oe=>m(Oe,"visual")),K(Z,H(Yt,{name:"layerStack"})),K(z,H(Yt,{name:"arrowRight"})),Q.$$click=()=>{console.debug("visibility intervals clicked"),Ye()},Q.addEventListener("mouseleave",_),Q.addEventListener("mouseenter",Oe=>m(Oe,"visibility")),K(ee,H(Yt,{name:"arrowRight"})),ge.$$click=()=>{console.debug("object tree clicked"),Ye()},le.$$click=()=>{console.debug("clone ctr+drag"),Ye()},K(he,H(Yt,{name:"copy"})),Ie.$$click=()=>{console.debug("copy ctr+c"),Ye()},K($e,H(Yt,{name:"copy"})),Ue.$$click=Sy,K(Ee,H(Yt,{get name(){var Oe;return(Oe=Lt())!=null&&Oe.lock?"locked":"unlocked"}})),K(ae,()=>{var Oe;return(Oe=Lt())!=null&&Oe.lock?"Unlock":"Lock"}),ne.$$click=Ay,K(oe,H(Yt,{get name(){var Oe;return(Oe=Lt())!=null&&Oe.visible?"hide":"show"}})),K(Pe,()=>{var Oe;return(Oe=Lt())!=null&&Oe.visible?"Hide":"Show"}),ve.$$click=()=>{On().popOverlay(Lt().id),Ye()},K(_t,H(Yt,{name:"trash"})),cn.$$click=()=>$y("overlay"),K(un,H(Yt,{name:"settings"})),K(v,(()=>{var Oe=qe(()=>!!e());return()=>Oe()&&(()=>{const bn=S5()??0,Ve=k5()??0,Fe=s?s.getBoundingClientRect().width:(s==null?void 0:s.clientWidth)??220,Et=bn+Fe+8,tt=Ve+(i()??0);return(()=>{var ut=wy(),Dt=ut.firstChild;return ut.addEventListener("mouseleave",_),ut.addEventListener("mouseenter",()=>f()),Bt(ut,"left",`${Et}px`),Bt(ut,"top",`${tt}px`),K(Dt,H(We,{get when(){return e()==="visual"},get children(){return[(()=>{var de=hy();return de.$$click=()=>{var Je;(Je=On())==null||Je.modifyOverlay(Lt().id,{zLevel:99}),Ye()},de})(),(()=>{var de=gy();return de.$$click=()=>{var Je;(Je=On())==null||Je.modifyOverlay(Lt().id,{zLevel:-9999}),Ye()},de})(),(()=>{var de=py();return de.$$click=()=>ky(),de})(),(()=>{var de=my();return de.$$click=()=>Ly(),de})()]}}),null),K(Dt,H(We,{get when(){return e()==="template"},get children(){return[(()=>{var de=yy();return de.$$click=()=>{console.debug("save as"),Ye()},de})(),(()=>{var de=vy();return de.$$click=()=>{console.debug("apply default"),Ye()},de})()]}}),null),K(Dt,H(We,{get when(){return e()==="visibility"},get children(){return[(()=>{var de=by();return de.$$click=()=>{console.debug("current and above"),Ye()},de})(),(()=>{var de=_y();return de.$$click=()=>{console.debug("current and below"),Ye()},de})(),(()=>{var de=Cy();return de.$$click=()=>{console.debug("current only"),Ye()},de})(),(()=>{var de=xy();return de.$$click=()=>{console.debug("all intervals"),Ye()},de})()]}}),null),ut})()})()})(),null),v}})};wt(["click"]);var Ty=B("<div class=klinecharts-pro-popup_background><div>");const Py=e=>{if(!e.open)return null;const r=8,i=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768;let s={...e.style??{},position:"absolute",overflow:"auto"};if(typeof e.top=="number"){console.log("props.top",e.top),s["max-height"]=`${o1().y-e.top-r}px`;const l=Math.max(r,Math.min(e.top,o-r-40));s.top=`${l}px`,s.transform=s.transform??void 0}else s["max-height"]="50%",s.top="50%",s.transform="translateY(-50%)";if(typeof e.left=="number"){s["max-width"]=`${e.left-r}px`;const l=Math.max(r,Math.min(e.left,i-r-40));s.left=`${l}px`,typeof e.top=="number"&&(s.transform=void 0)}else s["max-width"]="50%",s.left="50%",s.transform=s.transform?`${s.transform} translateX(-50%)`:"translateX(-50%)";return(()=>{var l=Ty(),u=l.firstChild;return l.addEventListener("mouseleave",f=>{var h;return(h=e.onMouseLeave)==null?void 0:h.call(e,f)}),l.$$mouseover=f=>{var h;return(h=e.onMouseEnter)==null?void 0:h.call(e,f)},l.$$click=f=>{var h;(h=e.onClose)==null||h.call(e)},u.$$click=f=>f.stopPropagation(),u.$$pointerdown=f=>f.stopPropagation(),K(u,()=>e.children),Te(f=>{var h=`popup ${e.class??""}`,m=s;return h!==f.e&&an(u,f.e=h),f.t=Ut(u,m,f.t),f},{e:void 0,t:void 0}),l})()};wt(["click","mouseover","pointerdown"]);var Iy=B("<img alt=symbol>"),Oy=B("<div class=symbol><span>"),By=B('<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 period_home"><button class="item period"></button></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg><span></span></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg><span></span></div><div class="item tools">'),Ey=B("<div class=klinecharts-pro-popup_background><div class=period_list>"),Dy=B("<li>"),Ry=B('<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>'),z5=B("<span>"),zy=B('<svg viewBox="0 0 20 20"><path d=M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z>');const Fy=e=>{let r;const[i,o]=j(!1),[s,l]=j(!0);j(0);const[u,f]=j(0),h=()=>{o(!1),l(!0)},m=()=>{wm(v=>!v)},_=()=>{};return li(()=>{document.addEventListener("fullscreenchange",m),document.addEventListener("mozfullscreenchange",m),document.addEventListener("webkitfullscreenchange",m),document.addEventListener("msfullscreenchange",m)}),lr(()=>{document.removeEventListener("fullscreenchange",m),document.removeEventListener("mozfullscreenchange",m),document.removeEventListener("webkitfullscreenchange",m),document.removeEventListener("msfullscreenchange",m)}),(()=>{var v=By(),$=v.firstChild,M=$.firstChild,x=$.nextSibling,T=x.firstChild,A=x.nextSibling,w=A.firstChild,I=w.nextSibling,R=A.nextSibling,k=R.firstChild,Z=k.nextSibling,G=R.nextSibling,V=G.firstChild,O=V.nextSibling,z=G.nextSibling,Q=z.firstChild,q=Q.nextSibling,X=z.nextSibling;return ur(W=>{r=W},v),Kn(M,"click",e.onMenuClick,!0),K(v,H(We,{get when(){return e.symbol},get children(){var W=Oy(),E=W.firstChild;return W.$$click=_,K(W,H(We,{get when(){return e.symbol.logo},get children(){var ee=Iy();return Te(()=>rt(ee,"src",e.symbol.logo)),ee}}),E),K(E,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),W}}),x),T.$$click=W=>{i()||(h(),f(o1().x-W.pageX>200?W.pageX:o1().x-200)),l(!1),o(!i())},K(T,()=>e.period.text),K(x,(()=>{var W=qe(()=>!!i());return()=>W()&&(()=>{var E=Ey(),ee=E.firstChild;return E.$$click=()=>{o(!1),l(!0)},K(ee,()=>e.periods.map(ge=>(()=>{var le=Dy();return le.$$click=()=>{e.onPeriodChange(ge),o(!1),l(!0)},K(le,()=>ge.text),le})())),Te(ge=>Bt(ee,"left",`${u()-50}px`)),E})()})(),null),Kn(A,"click",e.onIndicatorClick,!0),K(I,()=>y("indicator",e.locale)),Kn(R,"click",e.onTimezoneClick,!0),K(Z,()=>y("timezone",e.locale)),Kn(G,"click",e.onSettingClick,!0),K(O,()=>y("setting",e.locale)),Kn(z,"click",e.onScreenshotClick,!0),K(q,()=>y("screenshot",e.locale)),X.$$click=()=>{if(D5())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const W=_m(r);W&&(W.requestFullscreen??W.webkitRequestFullscreen??W.mozRequestFullScreen??W.msRequestFullscreen).call(W)}},K(X,(()=>{var W=qe(()=>!!D5());return()=>W()?[Ry(),(()=>{var E=z5();return K(E,()=>y("exit_full_screen",e.locale)),E})()]:[zy(),(()=>{var E=z5();return K(E,()=>y("full_screen",e.locale)),E})()]})()),Te(W=>{var E=`${s()?"overflow-x: auto;":""}`,ee=e.spread?"":"rotate";return W.e=Ut(v,E,W.e),ee!==W.t&&rt(M,"class",W.t=ee),W},{e:void 0,t:void 0}),v})()};wt(["click"]);var Ny=B('<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 Zy=()=>Ny();var Wy=B('<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 Ky=()=>Wy();var Uy=B('<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 Hy=()=>Uy();var jy=B('<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=()=>jy();var Vy=B('<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 Qy=()=>Vy();var Gy=B('<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 qy=()=>Gy();var Xy=B('<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 Jy=()=>Xy();var ev=B('<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 tv=()=>ev();var nv=B('<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 rv=()=>nv();var iv=B('<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 ov=()=>iv();var av=B('<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 sv=()=>av();var lv=B('<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 cv=()=>lv();var uv=B('<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 fv=()=>uv();var dv=B('<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 hv=()=>dv();var gv=B('<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 pv=()=>gv();var mv=B('<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 yv=()=>mv();var vv=B('<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 bv=()=>vv();var _v=B('<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 Cv=()=>_v();var xv=B('<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 wv=()=>xv();var $v=B('<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 Lv=()=>$v();var kv=B('<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 Sv=()=>kv();var Av=B('<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 Mv=()=>Av();var Tv=B('<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 Pv=()=>Tv();var Iv=B('<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 Ov=()=>Iv();var Bv=B('<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 Ev=()=>Bv();var Dv=B('<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 Rv=()=>Dv();var zv=B('<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 Fv=()=>zv();var Nv=B('<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 Zv=()=>Nv();var Wv=B('<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 Kv=()=>Wv();var Uv=B('<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 Hv=()=>Uv();var jv=B('<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 Yv=e=>(()=>{var r=jv();return rt(r,"class",`icon-overlay ${e??""}`),r})();var Vv=B('<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 Qv=e=>(()=>{var r=Vv();return rt(r,"class",`icon-overlay ${e??""}`),r})();var Gv=B('<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 qv=()=>Gv();var Xv=B('<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 Jv=()=>Xv();var eb=B('<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 tb=()=>eb();var nb=B('<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 rb=()=>nb();var ib=B('<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 ob=()=>ib();var ab=B('<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:Zy,horizontalRayLine:Ky,horizontalSegment:Hy,verticalStraightLine:Yy,verticalRayLine:Qy,verticalSegment:qy,straightLine:Jy,rayLine:tv,segment:rv,arrow:ov,priceLine:sv,priceChannelLine:cv,parallelStraightLine:fv,fibonacciLine:hv,fibonacciSegment:pv,fibonacciCircle:yv,fibonacciSpiral:bv,fibonacciSpeedResistanceFan:Cv,fibonacciExtension:wv,gannBox:Lv,circle:Sv,triangle:Mv,rect:Pv,parallelogram:Ov,threeWaves:Ev,fiveWaves:Rv,eightWaves:Fv,anyWaves:Zv,abcd:Kv,xabcd:Hv,weak_magnet:Yv,strong_magnet:Qv,lock:tb,unlock:rb,visible:qv,invisible:Jv,remove:ob,brush:()=>ab()};function lb(e){return[{key:"horizontalStraightLine",text:y("horizontal_straight_line",e)},{key:"horizontalRayLine",text:y("horizontal_ray_line",e)},{key:"horizontalSegment",text:y("horizontal_segment",e)},{key:"verticalStraightLine",text:y("vertical_straight_line",e)},{key:"verticalRayLine",text:y("vertical_ray_line",e)},{key:"verticalSegment",text:y("vertical_segment",e)},{key:"straightLine",text:y("straight_line",e)},{key:"rayLine",text:y("ray_line",e)},{key:"segment",text:y("segment",e)},{key:"arrow",text:y("arrow",e)},{key:"brush",text:y("brush",e)},{key:"priceLine",text:y("price_line",e)}]}function cb(e){return[{key:"priceChannelLine",text:y("price_channel_line",e)},{key:"parallelStraightLine",text:y("parallel_straight_line",e)}]}function ub(e){return[{key:"circle",text:y("circle",e)},{key:"rect",text:y("rect",e)},{key:"parallelogram",text:y("parallelogram",e)},{key:"triangle",text:y("triangle",e)}]}function fb(e){return[{key:"fibonacciLine",text:y("fibonacci_line",e)},{key:"fibonacciSegment",text:y("fibonacci_segment",e)},{key:"fibonacciCircle",text:y("fibonacci_circle",e)},{key:"fibonacciSpiral",text:y("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:y("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:y("fibonacci_extension",e)},{key:"gannBox",text:y("gann_box",e)}]}function db(e){return[{key:"xabcd",text:y("xabcd",e)},{key:"abcd",text:y("abcd",e)},{key:"threeWaves",text:y("three_waves",e)},{key:"fiveWaves",text:y("five_waves",e)},{key:"eightWaves",text:y("eight_waves",e)},{key:"anyWaves",text:y("any_waves",e)}]}function hb(e){return[{key:"weak_magnet",text:y("weak_magnet",e)},{key:"strong_magnet",text:y("strong_magnet",e)}]}const Vt=e=>sb[e.name](e.class);var gb=B('<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>'),pb=B('<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>'),F5=B("<li><span style=padding-left:8px>");const N5="drawing_tools",mb=e=>{const[r,i]=j("horizontalStraightLine"),[o,s]=j("priceChannelLine"),[l,u]=j("circle"),[f,h]=j("fibonacciLine"),[m,_]=j("xabcd"),[v,$]=j("weak_magnet"),[M,x]=j("normal"),[T,A]=j(!1),[w,I]=j(!0),[R,k]=j(""),Z=mn(()=>[{key:"singleLine",icon:r(),list:lb(e.locale),setter:i},{key:"moreLine",icon:o(),list:cb(e.locale),setter:s},{key:"polygon",icon:l(),list:ub(e.locale),setter:u},{key:"fibonacci",icon:f(),list:fb(e.locale),setter:h},{key:"wave",icon:m(),list:db(e.locale),setter:_}]),G=mn(()=>hb(e.locale));return(()=>{var V=gb(),O=V.firstChild,z=O.nextSibling,Q=z.firstChild,q=Q.nextSibling,X=q.firstChild,W=z.nextSibling,E=W.firstChild,ee=W.nextSibling,ge=ee.firstChild,le=ee.nextSibling,he=le.nextSibling,Ie=he.firstChild;return K(V,()=>Z().map($e=>(()=>{var Ue=pb(),Ee=Ue.firstChild,ht=Ee.nextSibling,ae=ht.firstChild;return Ue.addEventListener("blur",()=>{k("")}),Ee.$$click=()=>{e.onDrawingItemClick({groupId:N5,name:$e.icon,visible:w(),lock:T(),mode:M()})},K(Ee,H(Vt,{get name(){return $e.icon}})),ht.$$click=()=>{$e.key===R()?k(""):k($e.key)},K(Ue,(()=>{var ne=qe(()=>$e.key===R());return()=>ne()&&H(n0,{class:"list",get children(){return $e.list.map(oe=>(()=>{var ye=F5(),Pe=ye.firstChild;return ye.$$click=()=>{$e.setter(oe.key),e.onDrawingItemClick({name:oe.key,lock:T(),mode:M()}),k("")},K(ye,H(Vt,{get name(){return oe.key}}),Pe),K(Pe,()=>oe.text),ye})())}})})(),null),Te(()=>rt(ae,"class",$e.key===R()?"rotate":"")),Ue})()),O),z.addEventListener("blur",()=>{k("")}),Q.$$click=()=>{let $e=v();M()!=="normal"&&($e="normal"),x($e),e.onModeChange($e)},K(Q,(()=>{var $e=qe(()=>v()==="weak_magnet");return()=>$e()?qe(()=>M()==="weak_magnet")()?H(Vt,{name:"weak_magnet",class:"selected"}):H(Vt,{name:"weak_magnet"}):qe(()=>M()==="strong_magnet")()?H(Vt,{name:"strong_magnet",class:"selected"}):H(Vt,{name:"strong_magnet"})})()),q.$$click=()=>{R()==="mode"?k(""):k("mode")},K(z,(()=>{var $e=qe(()=>R()==="mode");return()=>$e()&&H(n0,{class:"list",get children(){return G().map(Ue=>(()=>{var Ee=F5(),ht=Ee.firstChild;return Ee.$$click=()=>{$(Ue.key),x(Ue.key),e.onModeChange(Ue.key),k("")},K(Ee,H(Vt,{get name(){return Ue.key}}),ht),K(ht,()=>Ue.text),Ee})())}})})(),null),E.$$click=()=>{const $e=!T();A($e),e.onLockChange($e)},K(E,(()=>{var $e=qe(()=>!!T());return()=>$e()?H(Vt,{name:"lock"}):H(Vt,{name:"unlock"})})()),ge.$$click=()=>{const $e=!w();I($e),e.onVisibleChange($e)},K(ge,(()=>{var $e=qe(()=>!!w());return()=>$e()?H(Vt,{name:"visible"}):H(Vt,{name:"invisible"})})()),Ie.$$click=()=>{e.onRemoveClick(N5)},K(Ie,H(Vt,{name:"remove"})),Te(()=>rt(X,"class",R()==="mode"?"rotate":"")),V})()};wt(["click"]);var Z5=B("<li class=title>"),W5=B("<li class=row>");const yb=e=>H(l1,{get title(){return y("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){return H(n0,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var r=Z5();return K(r,()=>y("main_indicator",e.locale)),r})(),qe(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(r=>{const i=e.mainIndicators.includes(r);return(()=>{var o=W5();return o.$$click=s=>{e.onMainIndicatorChange({name:r,id:"candle_pane",added:!i})},K(o,H(Bs,{checked:i,get label(){return y(r.toLowerCase(),e.locale)}})),o})()})),(()=>{var r=Z5();return K(r,()=>y("sub_indicator",e.locale)),r})(),qe(()=>["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(r=>{const i=r in e.subIndicators;return(()=>{var o=W5();return o.$$click=s=>{e.onSubIndicatorChange({name:r,id:e.subIndicators[r]??"",added:!i})},K(o,H(Bs,{checked:i,get label(){return y(r.toLowerCase(),e.locale)}})),o})()}))]}})}});wt(["click"]);function K5(e,r){switch(e){case"Etc/UTC":return y("utc",r);case"Pacific/Honolulu":return y("honolulu",r);case"America/Juneau":return y("juneau",r);case"America/Los_Angeles":return y("los_angeles",r);case"America/Chicago":return y("chicago",r);case"America/Toronto":return y("toronto",r);case"America/Sao_Paulo":return y("sao_paulo",r);case"Europe/London":return y("london",r);case"Europe/Berlin":return y("berlin",r);case"Asia/Bahrain":return y("bahrain",r);case"Asia/Dubai":return y("dubai",r);case"Asia/Ashkhabad":return y("ashkhabad",r);case"Asia/Almaty":return y("almaty",r);case"Asia/Bangkok":return y("bangkok",r);case"Asia/Shanghai":return y("shanghai",r);case"Asia/Tokyo":return y("tokyo",r);case"Australia/Sydney":return y("sydney",r);case"Pacific/Norfolk":return y("norfolk",r)}return e}function vb(e){return[{key:"Etc/UTC",text:y("utc",e)},{key:"Pacific/Honolulu",text:y("honolulu",e)},{key:"America/Juneau",text:y("juneau",e)},{key:"America/Los_Angeles",text:y("los_angeles",e)},{key:"America/Chicago",text:y("chicago",e)},{key:"America/Toronto",text:y("toronto",e)},{key:"America/Sao_Paulo",text:y("sao_paulo",e)},{key:"Europe/London",text:y("london",e)},{key:"Europe/Berlin",text:y("berlin",e)},{key:"Asia/Bahrain",text:y("bahrain",e)},{key:"Asia/Dubai",text:y("dubai",e)},{key:"Asia/Ashkhabad",text:y("ashkhabad",e)},{key:"Asia/Almaty",text:y("almaty",e)},{key:"Asia/Bangkok",text:y("bangkok",e)},{key:"Asia/Shanghai",text:y("shanghai",e)},{key:"Asia/Tokyo",text:y("tokyo",e)},{key:"Australia/Sydney",text:y("sydney",e)},{key:"Pacific/Norfolk",text:y("norfolk",e)}]}const bb=e=>{const[r,i]=j(e.timezone),o=mn(()=>vb(e.locale));return H(l1,{get title(){return y("timezone",e.locale)},width:320,get buttons(){return[{children:y("confirm",e.locale),onClick:()=>{e.onConfirm(r()),e.onClose()}}]},get onClose(){return e.onClose},get children(){return H(Pi,{style:{width:"100%","margin-top":"20px"},get value(){return r().text},onSelected:s=>{i(s)},get dataSource(){return o()}})}})},Yn=e=>{const r=[{key:"solid",text:y("solid",e)},{key:"dashed",text:y("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:y("fill",e)},{key:"stroke",text:y("stroke",e)},{key:"stroke_fill",text:y("stroke_fill",e)}],u=[{key:"none",text:y("none",e)},{key:"always",text:y("always",e)},{key:"follow_cross",text:y("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}],h=[{key:"normal",text:y("Normal",e)}],m=[{key:"Helvetica Neue",text:y("Helvetica Neue",e)}];return{solid_dashed:r,dashed_value:i,size:s,fill_stroke:l,font_family:m,font_size:f,font_weight:h,none_always_followCross:u,true_false:o}},_b=e=>{const{font_family:r,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:u,none_always_followCross:f}=Yn(e);return[{key:"candle.type",text:y("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:y("candle_solid",e)},{key:"candle_stroke",text:y("candle_stroke",e)},{key:"candle_up_stroke",text:y("candle_up_stroke",e)},{key:"candle_down_stroke",text:y("candle_down_stroke",e)},{key:"ohlc",text:y("ohlc",e)},{key:"area",text:y("area",e)},{key:"heikin_ashi",text:y("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:y("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:y("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:y("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:y("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:y("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:y("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:y("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:y("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:y("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:y("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:y("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:y("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:y("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:y("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:y("Pricemark High Font family",e),component:"select",dataSource:r},{key:"candle.priceMark.high.textWeight",text:y("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:y("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:y("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:y("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:y("Pricemark Low Font family",e),component:"select",dataSource:r},{key:"candle.priceMark.low.textWeight",text:y("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:y("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:y("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:y("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:y("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:y("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:y("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:y("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:y("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:y("Pricemark last text style",e),component:"select",dataSource:u},{key:"candle.priceMark.last.text.size",text:y("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:y("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:y("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:y("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:y("Rect",e)},{key:"standard",text:y("Standard",e)}]},{key:"candle.tooltip.rect.position",text:y("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:y("Fixed",e)},{key:"pointer",text:y("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:y("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:y("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:y("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:y("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:y("Tooltip text color",e),component:"color"}]},Cb=e=>{const{fill_stroke:r,font_size:i,font_weight:o,none_always_followCross:s}=Yn(e);return[{key:"indicator.ohlc.upColor",text:y("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:y("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:y("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:y("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:y("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:y("Last value mark text style",e),component:"select",dataSource:r},{key:"indicator.lastValueMark.text.size",text:y("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:y("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:y("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:y("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:y("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:y("Standard",e)},{key:"rect",text:y("Rect",e)}]},{key:"indicator.tooltip.showName",text:y("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:y("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:y("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:y("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:y("Tooltip text color",e),component:"color"}]},xb=e=>{const{font_size:r,size:i,font_weight:o}=Yn(e);return[{key:"xAxis.show",text:y("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:y("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:y("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:y("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:y("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:y("Tick text size",e),component:"select",dataSource:r},{key:"xAxis.tickText.weight",text:y("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:y("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:y("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:y("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:y("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:y("Tick line color",e),component:"color"}]},wb=e=>{const{size:r,font_weight:i,font_size:o}=Yn(e);return[{key:"yAxis.show",text:y("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:y("Position",e),component:"select",dataSource:[{key:"right",text:y("Right",e)},{key:"left",text:y("Left",e)}]},{key:"yAxis.type",text:y("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:y("normal",e)},{key:"percentage",text:y("percentage",e)},{key:"log",text:y("log",e)}]},{key:"yAxis.inside",text:y("Inside",e),component:"switch"},{key:"yAxis.reverse",text:y("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:y("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:y("Axis line size",e),component:"select",dataSource:r},{key:"yAxis.axisLine.color",text:y("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:y("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:y("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:y("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:y("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:y("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:y("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:y("Tick line size",e),component:"select",dataSource:r},{key:"yAxis.tickLine.length",text:y("Tick line length",e),component:"select",dataSource:r}]},$b=e=>{const{size:r}=Yn(e);return[{key:"grid.show",text:y("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:y("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:y("Horizontal size",e),component:"select",dataSource:r},{key:"grid.horizontal.color",text:y("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:y("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:y("Vertical size",e),component:"select",dataSource:r},{key:"grid.vertical.color",text:y("Vertical color",e),component:"color"}]},Lb=e=>{const{solid_dashed:r,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:u}=Yn(e);return[{key:"crosshair.show",text:y("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:y("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:y("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:y("Horizontal Line Style",e),component:"select",dataSource:r},{key:"crosshair.horizontal.line.dashed_value",text:y("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:y("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:y("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:y("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:y("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:y("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:y("Horizontal text weight",e),component:"select",dataSource:u},{key:"crosshair.horizontal.text.color",text:y("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:y("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:y("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:y("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:y("Vertical Line Style",e),component:"select",dataSource:r},{key:"crosshair.vertical.line.size",text:y("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:y("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:y("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:y("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:y("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:y("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:y("Vertical text weight",e),component:"select",dataSource:u},{key:"crosshair.vertical.text.color",text:y("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:y("Vertical text background color",e),component:"color"}]};function U5(e){const{size:r}=Yn(e);return[..._b(e),...Cb(e),...xb(e),...wb(e),...$b(e),...Lb(e),{key:"separator.size",text:y("Seperator size",e),component:"select",dataSource:r},{key:"separator.fill",text:y("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:y("Background color",e),component:"color"}]}var kb=B("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),Sb=B("<button>"),Ab=B("<div class=component><span>");const Mb=e=>{const[r,i]=j(e.currentStyles),[o,s]=j(U5(e.locale)),[l,u]=j("candle");rn(()=>{s(U5(e.locale))});const f=(_,v)=>{const $=localStorage.getItem("chartstatedata");let M;$?(M=JSON.parse($),M.styleObj=M.styleObj??{}):M={styleObj:{}},console.info("update setting",_.key,v);const x=_.key.indexOf(".");x===-1?_.key:_.key.slice(0,x)+""+_.key.slice(x),T1(M.styleObj,_.key,v),localStorage.setItem("chartstatedata",JSON.stringify(M)),In(!0);const T={};T1(T,_.key,v),T1(T,_.key,v);const A=ue.utils.clone(r());T1(A,_.key,v),i(A),s(o().map(w=>({...w}))),e.onChange(T)},h=()=>{const _=localStorage.getItem("chartstatedata");let v;_&&(v=JSON.parse(_),v.styleObj&&(v.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(v))),e.onRestoreDefault(o()),e.onClose()},m=[{text:"Candle",key:"candle"},{text:"Indicator",key:"indicator"},{text:"Grid",key:"grid"},{text:"X-axis",key:"xAxis"},{text:"Y-axis",key:"yAxis"},{text:"Separator",key:"separator"},{text:"Crosshair",key:"crosshair"}];return H(l1,{get title(){return y("setting",e.locale)},get buttons(){return[{children:y("restore_default",e.locale),onClick:()=>{h()}}]},get onClose(){return e.onClose},get children(){var _=kb(),v=_.firstChild,$=v.nextSibling;return K(v,()=>m.map(M=>(()=>{var x=Sb();return x.$$click=()=>u(M.key),K(x,()=>M.text),Te(()=>an(x,`${l()==M.key?"selected":""}`)),x})())),K($,H(fi,{get each(){return o().filter(M=>M.key.includes(l()))},children:M=>{let x;const T=ue.utils.formatValue(r(),M.key);switch(M.component){case"select":{x=H(Pi,{style:{width:"120px"},get value(){return y(T,e.locale)},get dataSource(){return M.dataSource},onSelected:A=>{const w=A.key;f(M,w)}});break}case"switch":{const A=!!T;x=H(cg,{open:A,onChange:()=>{f(M,!A)}});break}case"color":{x=H(eo,{style:{width:"120px"},value:T,reactiveChange:!1,onChange:A=>{f(M,A)}});break}}return(()=>{var A=Ab(),w=A.firstChild;return K(w,()=>M.text),K(A,x,null),A})()}})),_}})};wt(["click"]);var Tb=B("<img style=width:500px;margin-top:20px>");const Pb=e=>H(l1,{get title(){return y("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:y("save",e.locale),onClick:()=>{const r=document.createElement("a");r.download="screenshot",r.href=e.url,document.body.appendChild(r),r.click(),r.remove()}}]},get onClose(){return e.onClose},get children(){var r=Tb();return Te(()=>rt(r,"src",e.url)),r}}),Ib={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 Ob=B("<div class=klinecharts-pro-indicator-setting-modal-content>"),Bb=B("<span>");const Eb=e=>{const[r,i]=j(ue.utils.clone(e.params.calcParams)),o=s=>Ib[s];return H(l1,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:y("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];ue.utils.clone(r()).forEach((u,f)=>{!ue.utils.isValid(u)||u===""?"default"in s[f]&&l.push(s[f].default):l.push(u)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=Ob();return K(s,()=>o(e.params.indicatorName).map((l,u)=>[(()=>{var f=Bb();return K(f,()=>y(l.paramNameKey,e.locale)),f})(),H(hr,{style:{width:"200px"},get value(){return r()[u]??""},get precision(){return l.precision},get min(){return l.min},onChange:f=>{const h=ue.utils.clone(r());h[u]=f,i(h)}})])),s}})};var Db=B('<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">'),Rb=B("<img alt=symbol>"),zb=B("<li><div><span>");const Fb=e=>{const[r,i]=j(""),[o]=Jl(r,e.datafeed.searchSymbols.bind(e.datafeed));return H(l1,{get title(){return y("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){return[H(hr,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return y("symbol_code",e.locale)},get suffix(){return Db()},get value(){return r()},onChange:s=>{const l=`${s}`;i(l)}}),H(n0,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:s=>(()=>{var l=zb(),u=l.firstChild,f=u.firstChild;return l.$$click=()=>{e.onSymbolSelected(s),e.onClose()},K(u,H(We,{get when(){return s.logo},get children(){var h=Rb();return Te(()=>rt(h,"src",s.logo)),h}}),f),K(f,()=>s.shortName??s.ticker,null),K(f,()=>`${s.name?`(${s.name})`:""}`,null),K(l,()=>s.exchange??"",null),Te(()=>rt(f,"title",s.name??"")),l})()})]}})};wt(["click"]);const Nb=e=>{const{font_size:r,font_family:i,font_weight:o,fill_stroke:s,solid_dashed:l,size:u,true_false:f}=Yn(e),h=[{key:"activeBorderSize",text:y("active border size",e),component:"select",dataSource:r},{key:"borderSize",text:y("Border size",e),component:"select",dataSource:u},{key:"color",text:y("Color",e),component:"color"},{key:"activeColor",text:y("Color",e),component:"color"},{key:"activeBorderColor",text:y("Color",e),component:"color"},{key:"borderColor",text:y("Border color",e),component:"color"},{key:"activeRadius",text:y("Active radius",e),component:"input"},{key:"radius",text:y("Radius",e),component:"input"}],m=[{key:"style",text:y("Style",e),component:"select",dataSource:s},{key:"size",text:y("Font size",e),component:"select",dataSource:r},{key:"family",text:y("Font family",e),component:"select",dataSource:i},{key:"weight",text:y("Font weight",e),component:"select",dataSource:o},{key:"borderStyle",text:y("Border style",e),component:"select",dataSource:l},{key:"borderSize",text:y("Border size",e),component:"select",dataSource:u},{key:"color",text:y("Color",e),component:"color"},{key:"backgroundColor",text:y("Background color",e),component:"color"},{key:"borderColor",text:y("Border color",e),component:"color"},{key:"borderDashedValue",text:y("Border dashed value",e),component:"input"},{key:"borderRadius",text:y("Border radius",e),component:"input"},{key:"paddingLeft",text:y("Padding left",e),component:"input"},{key:"paddingRight",text:y("Padding right",e),component:"input"},{key:"paddingBottom",text:y("Padding bottom",e),component:"input"},{key:"paddingTop",text:y("Padding top",e),component:"input"}],_=[{key:"style",text:y("Style",e),component:"select",dataSource:l},{key:"size",text:y("Size",e),component:"select",dataSource:u},{key:"color",text:y("Color",e),component:"color"},{key:"dashedValue",text:y("Dashed Value",e),component:"input"}],v=[{key:"style",text:y("Style",e),component:"select",dataSource:s},{key:"color",text:y("Color",e),component:"color"},{key:"borderColor",text:y("Border color",e),component:"color"},{key:"borderSize",text:y("Active border size",e),component:"select",dataSource:u},{key:"borderStyle",text:y("Border style",e),component:"select",dataSource:l},{key:"borderDashedValue",text:y("Border dashed value",e),component:"input"}],$=_;$.push({key:"smooth",text:y("Smooth",e),component:"select",dataSource:f});const M=v;return M.push({key:"borderRadius",text:y("Border radius",e),component:"input"}),{point:h,text:m,line:$,rect:M,polygon:v,circle:v,arc:_}};var Zb=B("<div class=klinecharts-pro-overlay-setting-modal-content><div class=content>"),Wb=B("<div style=width:120px;display:flex;flex-direction:row;align-items:center;vertical-align:middle>"),Kb=B("<div class=component><span>");const Ub=e=>{const r=Nb(e.locale),i=(u,f)=>{var m,_;const h=Lt();if(f){if(h&&h.styles[f][u])return h.styles[f][u]}else if((m=Lt())!=null&&m.styles[u])return(_=Lt())==null?void 0:_.styles[u]},o=(u,f,h)=>{var v;const m=localStorage.getItem("chartstatedata");let _;m?(_=JSON.parse(m),_.orderStyles=_.orderStyles??{}):_={orderStyles:{}},(v=hm())==null||v.overlayType};let s=[],l=[];return s=Object.keys(r),H(l1,{get title(){return`Style ${mm()}`},onClose:()=>to(!1),get children(){var u=Zb(),f=u.firstChild;return K(f,H(fi,{each:l,children:h=>{if(s.includes(h))return H(fi,{get each(){return r[h]},children:m=>{let _;const v=i(m.key,h);if(v!==void 0){switch(m.component){case"select":{_=H(Pi,{style:{width:"120px"},get value(){return y(v,e.locale)},get dataSource(){return m.dataSource},onSelected:$=>{$.key,o()}});break}case"input":{_=[H(We,{get when(){return Er.isArray(v)},get children(){var $=Wb();return K($,H(hr,{style:{width:"50px","margin-right":"10px"},get value(){return v[0]??"4"},onChange:M=>{let x=i(m.key,h);x[0]=Number(M),o()}}),null),K($,H(hr,{style:{width:"50px","margin-left":"10px"},get value(){return v[1]??"4"},onChange:M=>{let x=i(m.key,h);x[1]=Number(M),o()}}),null),$}}),H(We,{get when(){return!Er.isArray(v)},get children(){return H(hr,{style:{width:"120px"},value:v??"4",onChange:$=>{o()}})}})];break}case"color":{_=H(eo,{style:{width:"120px"},value:v,onChange:$=>{o()}});break}}if(_)return(()=>{var $=Kb(),M=$.firstChild;return K(M,()=>m.text),K($,_,null),$})()}}})}})),u}})};var Hb=B("<div style=position:fixed;touchAction:none><div class=cr-floating-inner><div class=drag-handle>"),jb=B("<div class=cr-action-label>"),Yb=B("<div class=cr-action><div class=cr-action-btn><div class=cr-action-icon>"),Vb=B("<div class=cr-editor>"),Qb=B("<input type=number>"),Gb=B("<select>"),qb=B("<option>");function Xb(e){const r=e.getProperties;if(typeof r=="function")try{return r.call(e,e.id)??{}}catch{return{}}return{}}const{popOverlay:Jb,modifyOverlay:e_,modifyOverlayProperties:H5}=On(),[N1,h0]=j({x:0,y:0});function t_(e){const[r,i]=j(null);h0({x:N1().x??e.x??0,y:N1().y??e.y??0});const[o,s]=j(!1);let l={mx:0,my:0,sx:0,sy:0};const[u,f]=j(0),h=w=>{var R,k;const I=Xb(w);return console.info("default actions called"),[{key:"group",title:"Group",icon:"templates",onClick:Z=>console.debug("group",Z)},{key:"border",title:"Line tool color",icon:"edit",editor:{type:"color",value:I.lineColor??I.borderColor??"#ffffff"},onClick:(Z,G)=>{console.debug("set border color",Z,G),H5(w.id,{lineColor:G})}},{key:"background",title:"Line tool background",icon:"fill",editor:{type:"color",value:I.backgroundColor??"#000000"},onClick:(Z,G)=>{console.debug("set background",Z,G),H5(w.id,{backgroundColor:G})}},{key:"text",title:"Line tool text color",icon:"text",editor:{type:"color",value:I.textColor??"#ffffff"},onClick:(Z,G)=>console.debug("set text color",Z,G)},{key:"size",title:"Line tool width (px)",icon:"line",editor:{type:"number",value:I.textFontSize??2,min:1,max:50,step:1},onClick:(Z,G)=>console.debug("set size",Z,G)},{key:"line",title:"Line tool style",icon:(()=>{const Z=I.lineStyle??"solid";return Z==="dashed"?"lineDashed":Z==="dotted"?"lineDotted":"line"})(),editor:{type:"select",options:["solid","dashed"],value:((k=(R=w.styles)==null?void 0:R.line)==null?void 0:k.style)??"solid"},onClick:(Z,G)=>console.debug("set line",Z,G)},{key:"settings",title:"Settings",icon:"settings",onClick:Z=>{A5(w),to(!0)}},{key:"lock",title:w&&w.lock?"Unlock":"Lock",icon:w&&w.lock?"locked":"unlocked",onClick:Z=>e_(Z,{lock:!w.lock})},{key:"delete",title:"Delete",icon:"trash",onClick:Z=>Jb(Z)},{key:"more",title:"More",icon:"more",onClick:Z=>console.debug("more",Z)}]},m=()=>{u();const w=d0();return console.info("actions called, overlay:",w),e.actions??(w?h(w):[])};let _;const v=w=>{var R;const I=w.target;_&&(_.contains(I)||(R=e.onClose)==null||R.call(e))},$=w=>{if(!o())return;const I=l.sx+(w.clientX-l.mx),R=l.sy+(w.clientY-l.my),k=Math.max(0,window.innerWidth-((_==null?void 0:_.offsetWidth)??220)),Z=Math.max(0,window.innerHeight-((_==null?void 0:_.offsetHeight)??48)),G=Math.min(Math.max(0,I),k),V=Math.min(Math.max(0,R),Z);h0({x:G,y:V})},M=()=>{o()&&s(!1),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",M)};li(()=>{if(document.addEventListener("mousedown",v),typeof e.x!="number"||typeof e.y!="number"){const w=Math.max(500,window.innerWidth/2);h0({x:w,y:40})}}),lr(()=>{document.removeEventListener("mousedown",v),document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",M)}),rn(()=>{typeof e.x=="number"&&typeof e.y=="number"&&h0({x:e.x,y:e.y})});const x=(w,I)=>{try{const R=localStorage.getItem("chartstatedata");let k;R?(k=JSON.parse(R),k.styleObj=k.styleObj??{}):k={styleObj:{}};const Z=`overlay.${w}`;T1(k.styleObj,Z,I),localStorage.setItem("chartstatedata",JSON.stringify(k)),In(!0)}catch(R){console.warn("persistFallbackStyle error",R)}},T=(w,I)=>{var k;const R=(k=d0())==null?void 0:k.id;if(w.onClick){R?w.onClick(R,I):w.onClick("unknown",I),f(u()+1);return}window.dispatchEvent(new CustomEvent("cr-overlay-setting",{detail:{overlayId:R,key:w.key,value:I}})),x(w.key,I),f(u()+1)},A=w=>{const I=w.target;I.closest(".cr-action-btn")||I.closest(".cr-editor")||I.tagName==="INPUT"||I.tagName==="SELECT"||(w.preventDefault(),l={mx:w.clientX,my:w.clientY,sx:N1().x,sy:N1().y},s(!0),document.addEventListener("mousemove",$),document.addEventListener("mouseup",M))};return(()=>{var w=Hb(),I=w.firstChild,R=I.firstChild;return w.$$mousedown=k=>A(k),w.$$pointerdown=k=>{k.stopPropagation()},ur(k=>_=k,w),K(R,H(Yt,{name:"drag"})),K(I,()=>m().map(k=>(typeof k.visible=="function"?k.visible(d0()??void 0):k.visible??!0)?(()=>{var G=Yb(),V=G.firstChild,O=V.firstChild;return V.$$click=z=>{z.stopPropagation(),k.editor?i(r()===k.key?null:k.key):T(k)},K(O,H(Yt,{get name(){return k.icon}})),K(V,H(We,{get when(){var z;return((z=k.editor)==null?void 0:z.type)==="color"},get children(){var z=jb();return Te(Q=>{var q;return Bt(z,"background-color",(q=k.editor)==null?void 0:q.value)}),z}}),null),K(G,(()=>{var z=qe(()=>!!(k.editor&&r()===k.key));return()=>z()&&(()=>{var Q=Vb();return Q.$$click=q=>q.stopPropagation(),K(Q,(()=>{var q=qe(()=>k.editor.type==="color");return()=>q()&&H(eo,{style:{width:"120px"},get value(){return k.editor.value},reactiveChange:!1,onChange:X=>{T(k,X)}})})(),null),K(Q,(()=>{var q=qe(()=>k.editor.type==="number");return()=>q()&&(()=>{var X=Qb();return X.$$click=W=>W.stopPropagation(),X.$$input=W=>T(k,Number(W.currentTarget.value)),Te(W=>{var E=k.editor.min,ee=k.editor.max,ge=k.editor.step;return E!==W.e&&rt(X,"min",W.e=E),ee!==W.t&&rt(X,"max",W.t=ee),ge!==W.a&&rt(X,"step",W.a=ge),W},{e:void 0,t:void 0,a:void 0}),Te(()=>X.value=String(k.editor.value??"")),X})()})(),null),K(Q,(()=>{var q=qe(()=>k.editor.type==="select");return()=>q()&&(()=>{var X=Gb();return X.$$click=W=>W.stopPropagation(),X.addEventListener("change",W=>T(k,W.currentTarget.value)),K(X,()=>(k.editor.options??[]).map(W=>(()=>{var E=qb();return E.value=W,K(E,W),E})())),Te(()=>X.value=k.editor.value??""),X})()})(),null),Q})()})(),null),Te(z=>{var W,E;var Q=k.title??k.key,q=((W=k.editor)==null?void 0:W.type)==="color"?"16px":void 0,X=((E=k.editor)==null?void 0:E.type)==="color"?"16px":void 0;return Q!==z.e&&rt(G,"title",z.e=Q),q!==z.t&&Bt(O,"height",z.t=q),X!==z.a&&Bt(O,"width",z.a=X),z},{e:void 0,t:void 0,a:void 0}),G})():null),null),Te(k=>{var Z=`cr-setting-floating ${e.class??""} ${o()?"dragging":""}`,G=`${N1().x}px`,V=`${N1().y}px`,O=o()?"grabbing":"grab";return Z!==k.e&&an(w,k.e=Z),G!==k.t&&Bt(w,"left",k.t=G),V!==k.a&&Bt(w,"top",k.a=V),O!==k.o&&Bt(w,"cursor",k.o=O),k},{e:void 0,t:void 0,a:void 0,o:void 0}),w})()}wt(["pointerdown","mousedown","click","input"]);class ao{constructor(r,i){Mt(this,"_chart");Mt(this,"_charts",new Map);Mt(this,"id");const o=ue.init(r,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(r,i){return new ao(r,i)}getDom(r,i){return this._chart.getDom(r,i)}getSize(r,i){return this._chart.getSize(r,i)}createIndicator(r,i,o){return this._chart.createIndicator(r,i,o)}getIndicators(r){return this._chart.getIndicators(r)}createOverlay(r){return this._chart.createOverlay(r)}getOverlays(r){return this._chart.getOverlays(r)}setPaneOptions(r){return this._chart.setPaneOptions(r)}getPaneOptions(r){return this._chart.getPaneOptions(r)}scrollByDistance(r,i){return this._chart.scrollByDistance(r,i)}scrollToRealTime(r){return this._chart.scrollToRealTime(r)}scrollToDataIndex(r,i){return this._chart.scrollToDataIndex(r,i)}scrollToTimestamp(r,i){return this._chart.scrollToTimestamp(r,i)}zoomAtCoordinate(r,i,o){return this._chart.zoomAtCoordinate(r,i,o)}zoomAtDataIndex(r,i,o){return this._chart.zoomAtDataIndex(r,i,o)}zoomAtTimestamp(r,i,o){return this._chart.zoomAtTimestamp(r,i,o)}convertToPixel(r,i){return this._chart.convertToPixel(r,i)}convertFromPixel(r,i){return this._chart.convertFromPixel(r,i)}executeAction(r,i){return this._chart.executeAction(r,i)}subscribeAction(r,i){return this._chart.subscribeAction(r,i)}unsubscribeAction(r,i){return this._chart.unsubscribeAction(r,i)}getConvertPictureUrl(r,i,o){return this._chart.getConvertPictureUrl(r,i,o)}resize(){return this._chart.resize()}setStyles(r){return this._chart.setStyles(r)}getStyles(){return this._chart.getStyles()}setFormatter(r){return this._chart.setFormatter(r)}getFormatter(){return this._chart.getFormatter()}setLocale(r){return this._chart.setLocale(r)}getLocale(){return this._chart.getLocale()}setTimezone(r){return this._chart.setTimezone(r)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(r){return this._chart.setThousandsSeparator(r)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(r){return this._chart.setDecimalFold(r)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(r){return this._chart.setSymbol(r)}getSymbol(){return this._chart.getSymbol()}setPeriod(r){return this._chart.setPeriod(r)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(r){return this._chart.setOffsetRightDistance(r)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(r){return this._chart.setMaxOffsetLeftDistance(r)}setMaxOffsetRightDistance(r){return this._chart.setMaxOffsetRightDistance(r)}setLeftMinVisibleBarCount(r){return this._chart.setLeftMinVisibleBarCount(r)}setRightMinVisibleBarCount(r){return this._chart.setRightMinVisibleBarCount(r)}setBarSpace(r){return this._chart.setBarSpace(r)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(r){return this._chart.setDataLoader(r)}overrideIndicator(r){return this._chart.overrideIndicator(r)}removeIndicator(r){return this._chart.removeIndicator(r)}overrideOverlay(r){return this._chart.overrideOverlay(r)}removeOverlay(r){return this._chart.removeOverlay(r)}setZoomEnabled(r){return this._chart.setZoomEnabled(r)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(r){this._chart.setZoomAnchor(r)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(r){return this._chart.setScrollEnabled(r)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(r){const i=this._charts.get(r);return i&&(this._chart=i),this}chartById(r){return this._charts.get(r)}getOverlayById(r){return this._chart.getOverlays({id:r})[0]??null}createOrderLine(r){const i=this._chart.getDataList(),o=this._chart.createOverlay({name:"orderLine",paneId:"candle_pane",points:[{timestamp:i[i.length-40].timestamp,value:i[i.length-40].close}]});return o?this._chart.getOverlays({id:o,paneId:"candle_pane"})[0]:null}createOrderLines(r,i){const o=[],s=this._chart.getDataList(),l=Math.floor(s.length/(r+1));for(let h=1;h<=r;h++)o.push({timestamp:s[l*h].timestamp,value:s[l*h].close});const u={name:"orderLine",paneId:"candle_pane",points:o},f=this._chart.createOverlay(u);return!f||Er.isArray(f)&&f.length===0?[]:f.map(h=>this._chart.getOverlays({id:h,paneId:"canlde_pane"})[0])}}var n_=B('<i class="icon-close klinecharts-pro-load-icon">'),r_=B("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>");const{createIndicator:g0,pushOverlay:i_,restoreChartState:o_}=On(),a_=e=>{let r,i;const[o,s]=j(e.theme),[l,u]=j(e.locale),[f,h]=j(!1),[m,_]=j([...e.mainIndicators]),[v,$]=j({}),[M,x]=j(!1),[T,A]=j({key:e.timezone,text:K5(e.timezone,e.locale)}),[w,I]=j(!1),[R,k]=j(),[Z,G]=j(""),[V,O]=j(e.drawingBarVisible),[z,Q]=j(!1),[q,X]=j({visible:!1,indicatorName:"",paneId:"",calcParams:[]});ro(e.period),no(e.symbol),e.ref({setTheme:s,getTheme:()=>o(),setStyles:P5,getStyles:()=>io()??{},setLocale:u,getLocale:()=>l(),setTimezone:E=>{A({key:E,text:K5(e.timezone,l())})},getTimezone:()=>T().key,setSymbol:no,getSymbol:()=>jn(),setPeriod:ro,getPeriod:()=>Pn(),getInstanceApi:()=>ie(),resize:()=>{var E;return(E=ie())==null?void 0:E.resize()},dispose:()=>{}});const W=()=>{var E;(E=ie())==null||E.resize()};return li(()=>{var ee,ge,le,he,Ie,$e,Ue,Ee,ht,ae;if(window.addEventListener("resize",W),xm(ao.init(r,{formatter:{formatDate:ne=>{switch(Pn().type){case"minute":return ne.type==="xAxis"?ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"HH:mm"):ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD HH:mm");case"hour":return ne.type==="xAxis"?ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"MM-DD HH:mm"):ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD");case"month":return ne.type==="xAxis"?ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM"):ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD");case"year":return ne.type==="xAxis"?ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY"):ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD")}return ue.utils.formatDate(ne.dateTimeFormat,ne.timestamp,"YYYY-MM-DD HH:mm")}}})),ie()){bm(e.rootElementId),console.info("ChartPro widget initialized");const ne=ie().getDom("candle_pane","main");if(ne){let Pe=document.createElement("div");if(Pe.className="klinecharts-pro-watermark",ue.utils.isString(e.watermark)){const ve=e.watermark.replace(/(^\s*)|(\s*$)/g,"");Pe.innerHTML=ve}else Pe.appendChild(e.watermark);ne.appendChild(Pe)}const oe=ie().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",oe==null||oe.appendChild(i),(ee=ie())==null||ee.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),(ge=ie())==null||ge.setBarSpace(400),(le=ie())==null||le.subscribeAction("onCrosshairFeatureClick",Pe=>{console.info("onCrosshairFeatureClick",Pe)}),(he=ie())==null||he.subscribeAction("onIndicatorTooltipFeatureClick",Pe=>{var _t,cn,un,Oe,bn;console.info("onIndicatorTooltipFeatureClick",Pe);const ve=Pe;switch(ve.feature.id){case"visible":{(_t=ie())==null||_t.overrideIndicator({name:ve.indicator.name,visible:!0,paneId:ve.paneId});break}case"invisible":{(cn=ie())==null||cn.overrideIndicator({name:ve.indicator.name,visible:!1,paneId:ve.paneId});break}case"setting":{const Ve=(un=ie())==null?void 0:un.getIndicators({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}).at(0);if(!Ve)return;X({visible:!0,indicatorName:ve.indicator.name,paneId:ve.paneId,calcParams:Ve.calcParams});break}case"close":if(ve.paneId==="candle_pane"){const Ve=[...m()];(Oe=ie())==null||Oe.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),Ve.splice(Ve.indexOf(ve.indicator.name),1),_(Ve)}else{const Ve={...v()};(bn=ie())==null||bn.removeIndicator({paneId:ve.paneId,name:ve.indicator.name,id:ve.indicator.id}),delete Ve[ve.indicator.name],$(Ve)}}}),(Ie=ie())==null||Ie.subscribeAction("onCandleTooltipFeatureClick",Pe=>{console.info("onCandleTooltipFeatureClick",Pe)}),($e=ie())==null||$e.subscribeAction("onZoom",Pe=>{console.info("chart zoomed: ",Pe)}),(Ue=ie())==null||Ue.subscribeAction("onCrosshairChange",Pe=>{}),o_(e.overrides);const ye=jn();ye!=null&&ye.priceCurrency?(i.innerHTML=ye==null?void 0:ye.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(Ee=ie())==null||Ee.setSymbol({ticker:ye.ticker,pricePrecision:(ye==null?void 0:ye.pricePrecision)??2,volumePrecision:(ye==null?void 0:ye.volumePrecision)??0}),(ht=ie())==null||ht.setPeriod(Pn()),(ae=ie())==null||ae.setDataLoader(e.dataloader)}const E=ie();if(E){m().forEach(oe=>{g0(E,oe,!0,{id:"candle_pane"})});const ne={};e.subIndicators.forEach(oe=>{const ye=g0(E,oe,!0);ye&&(ne[oe]=ye)}),$(ne)}}),lr(()=>{window.removeEventListener("resize",W),ue.dispose(r)}),rn(E=>{var ee,ge,le;if(console.info("symbol or period changed effect",jn(),Pn(),E),!e.dataloader.loading){console.info("setLoadingVisible false by effect");const he=jn(),Ie=Pn();return(E==null?void 0:E.period.span)!==Ie.span&&(E==null?void 0:E.period.type)!==Ie.type&&(console.info("period changed: set period",Ie),(ee=ie())==null||ee.setPeriod(Ie)),E!==void 0&&((ge=E.symbol)==null?void 0:ge.ticker)!==he.ticker&&(console.info("ticker changed: set symbol",he),oo(null)),(le=ie())==null||le.setSymbol({ticker:he.ticker,pricePrecision:he.pricePrecision,volumePrecision:he.volumePrecision}),lr(()=>{}),{symbol:he,period:Ie}}return console.info("props.dataloader.loading is true, skip setLoadingVisible false"),E}),rn(()=>{var ge,le;const E=o();(ge=ie())==null||ge.setStyles(E);const ee=E==="dark"?"#929AA5":"#76808F";(le=ie())==null||le.setStyles({indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:8,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:8,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:ee,activeColor:ee,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}})}),rn(()=>{var E;(E=ie())==null||E.setLocale(l())}),rn(()=>{var E;(E=ie())==null||E.setTimezone(T().key)}),rn(()=>{k(Kd(ie().getStyles()))}),rn(()=>{var E;io()&&((E=ie())==null||E.setStyles(io()))}),[n_(),H(We,{get when(){return um()},get children(){return H(My,{})}}),H(We,{get when(){return pm()},get children(){return H(Ub,{get locale(){return e.locale}})}}),H(We,{get when(){return z()},get children(){return H(Fb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:E=>{no(E)},onClose:()=>{Q(!1)}})}}),H(We,{get when(){return f()},get children(){return H(yb,{get locale(){return e.locale},get mainIndicators(){return m()},get subIndicators(){return v()},onClose:()=>{h(!1)},onMainIndicatorChange:E=>{var ge;const ee=[...m()];E.added?(g0(ie(),E.name,!0,{id:"candle_pane"}),ee.push(E.name)):((ge=ie())==null||ge.removeIndicator({name:E.name,paneId:"candle_pane",id:E.id??void 0}),ee.splice(ee.indexOf(E.name),1)),_(ee)},onSubIndicatorChange:E=>{var ge;console.info("onSubIndicatorChange",E);const ee={...v()};if(E.added){const le=g0(ie(),E.name);le&&(ee[E.name]=le)}else E.id&&((ge=ie())==null||ge.removeIndicator({name:E.name,id:E.id}),delete ee[E.name]);$(ee)}})}}),H(We,{get when(){return M()},get children(){return H(bb,{get locale(){return e.locale},get timezone(){return T()},onClose:()=>{x(!1)},onConfirm:A})}}),H(We,{get when(){return w()},get children(){return H(Mb,{get locale(){return e.locale},get currentStyles(){return ue.utils.clone(ie().getStyles())},onClose:()=>{I(!1)},onChange:E=>{var ee;(ee=ie())==null||ee.setStyles(E)},onRestoreDefault:E=>{var ge;const ee={};E.forEach(le=>{const he=le.key;T1(ee,he,ue.utils.formatValue(R(),he))}),(ge=ie())==null||ge.setStyles(ee)}})}}),H(We,{get when(){return Z().length>0},get children(){return H(Pb,{get locale(){return e.locale},get url(){return Z()},onClose:()=>{G("")}})}}),H(We,{get when(){return q().visible},get children(){return H(Eb,{get locale(){return e.locale},get params(){return q()},onClose:()=>{X({visible:!1,indicatorName:"",paneId:"",calcParams:[]})},onConfirm:E=>{var ge;const ee=q();(ge=ie())==null||ge.overrideIndicator({name:ee.indicatorName,calcParams:E,paneId:ee.paneId})}})}}),H(Fy,{get locale(){return e.locale},get symbol(){return jn()},get spread(){return V()},get period(){return Pn()},get periods(){return e.periods},onMenuClick:async()=>{var E;try{await t6(()=>O(!V())),(E=ie())==null||E.resize()}catch{}},onSymbolClick:()=>{Q(!z())},onPeriodChange:ro,onIndicatorClick:()=>{h(E=>!E)},onTimezoneClick:()=>{x(E=>!E)},onSettingClick:()=>{I(E=>!E)},onScreenshotClick:()=>{if(ie()){const E=ie().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");G(E)}}}),(()=>{var E=r_(),ee=E.firstChild;K(E,H(We,{get when(){return Cm()},get children(){return H(Es,{})}}),ee),K(E,H(We,{get when(){return V()},get children(){return H(mb,{get locale(){return e.locale},onDrawingItemClick:le=>{i_(le)},onModeChange:le=>{var he;(he=ie())==null||he.overrideOverlay({mode:le})},onLockChange:le=>{var he;(he=ie())==null||he.overrideOverlay({lock:le})},onVisibleChange:le=>{var he;(he=ie())==null||he.overrideOverlay({visible:le})},onRemoveClick:le=>{var he;(he=ie())==null||he.removeOverlay({groupId:le})}})}}),ee),K(E,H(We,{get when(){return d0()},get children(){return H(t_,{get locale(){return l()}})}}),ee);var ge=r;return typeof ge=="function"?ur(ge,ee):r=ee,Te(le=>{var he=ym(),Ie=e.overrides.backgroundType??"solid",$e=V();return he!==le.e&&rt(E,"data-orders-pane-visible",le.e=he),Ie!==le.t&&rt(ee,"data-pane-style",le.t=Ie),$e!==le.a&&rt(ee,"data-drawing-bar-visible",le.a=$e),le},{e:void 0,t:void 0,a:void 0}),E})()]};class s_{constructor(r){Mt(this,"_datafeed");Mt(this,"_loading");console.info("ChartDataLoader initialized"),this._datafeed=r,this._loading=!1}async getBars(r){console.info("ChartDataLoader getBars",r);const{type:i,timestamp:o,symbol:s,period:l,callback:u}=r;if(i==="backward"||i==="update"){console.info("getBars: type is backward or update (no forward support yet)"),u([],!1);return}this._loading=!0,T5(!0);const f=o??new Date().getTime();await(async()=>{const m=Pn(),_=jn(),[v]=this.adjustFromTo(m,f,1),[$]=this.adjustFromTo(m,v,500),M=await this._datafeed.getHistoryKLineData(_,m,$,v);u(M,M.length>0),this._loading=!1,T5(!1)})()}subscribeBar(r){console.info("ChartDataLoader subscribeBar",r);const{symbol:i,period:o,callback:s}=r;this._datafeed.subscribe(jn(),Pn(),s)}unsubscribeBar(r){console.info("ChartDataLoader unsubscribeBar",r),this._datafeed.unsubscribe(jn(),Pn())}searchSymbols(r){return this._datafeed.searchSymbols(r)}get loading(){return this._loading}set loading(r){this._loading=r}adjustFromTo(r,i,o){let s=i,l=s;switch(r.type){case"minute":s-=s%(60*1e3),l=s-o*r.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*r.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*r.span*24*60*60*1e3;break;case"week":{const u=new Date(s),f=u.getDay()||7;u.setHours(0,0,0,0),s=u.getTime()-(f-1)*24*60*60*1e3,l=s-o*r.span*7*24*60*60*1e3;break}case"month":{const u=new Date(s);s=new Date(u.getFullYear(),u.getMonth(),1).getTime();const f=new Date(s-o*r.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const u=new Date(s);s=new Date(u.getFullYear(),0,1).getTime();const f=new Date(s-o*r.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var l_=B('<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 c_=l_();class u_{constructor(r){Mt(this,"_container");Mt(this,"_chartApi",null);if(ue.utils.isString(r.container)){if(this._container=document.getElementById(r.container),!this._container)throw new Error("Container is null")}else this._container=r.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",r.theme??"light");const i=new s_(r.datafeed);d6(()=>{const o=this;return H(a_,{ref:s=>{o._chartApi=s},get watermark(){return r.watermark??c_},get theme(){return r.theme??"light"},get locale(){return r.locale??"zh-CN"},get drawingBarVisible(){return r.drawingBarVisible??!0},get orderPanelVisible(){return r.orderPanelVisible??!1},get symbol(){return r.symbol},get period(){return r.period},get periods(){return r.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return r.overrides??{}},get timezone(){return r.timezone??"Etc/UTC"},get mainIndicators(){return r.mainIndicators??["MA"]},get subIndicators(){return r.subIndicators??["VOL"]},get dataTimestamp(){return r.dataTimestamp??new Date().getTime()},get rootElementId(){var s;return r.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&ue.dispose(this._container),this._container=null,this._chartApi=null}setTheme(r){var i;(i=this._container)==null||i.setAttribute("data-theme",r),this._chartApi.setTheme(r)}getTheme(){return this._chartApi.getTheme()}setStyles(r){this._chartApi.setStyles(r)}getStyles(){return this._chartApi.getStyles()}setLocale(r){this._chartApi.setLocale(r)}getLocale(){return this._chartApi.getLocale()}setTimezone(r){this._chartApi.setTimezone(r)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(r){this._chartApi.setSymbol(r)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(r){this._chartApi.setPeriod(r)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return ie()}resize(){ie().resize()}dispose(){this.destroy()}}const _I="";Kl.forEach(e=>{ue.registerOverlay(e)}),pt.DefaultDatafeed=Ul,pt.DefaultOrderController=Hl,pt.DummyOrderController=jl,pt.KLineChartPro=u_,pt.loadLocales=$m,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});
|
|
40
40
|
//# sourceMappingURL=klinecharts-pro.umd.js.map
|