@wangliang139/klinecharts-pro 0.2.17 → 0.2.19
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/index.d.ts +15 -14
- package/dist/klinecharts-pro.css +1 -1
- package/dist/klinecharts-pro.js +4909 -4810
- package/dist/klinecharts-pro.js.map +1 -1
- package/dist/klinecharts-pro.umd.js +10 -10
- package/dist/klinecharts-pro.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(kt,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],fe):(kt=typeof globalThis<"u"?globalThis:kt||self,fe(kt.klinechartspro={},kt.klinecharts))})(this,function(kt,fe){"use strict";var bA=Object.defineProperty;var CA=(kt,fe,fn)=>fe in kt?bA(kt,fe,{enumerable:!0,configurable:!0,writable:!0,value:fn}):kt[fe]=fn;var Cn=(kt,fe,fn)=>(CA(kt,typeof fe!="symbol"?fe+"":fe,fn),fn);function fn(e,n,i){const a=(e.x-n.x)*Math.cos(i)-(e.y-n.y)*Math.sin(i)+n.x,s=(e.x-n.x)*Math.sin(i)+(e.y-n.y)*Math.cos(i)+n.y;return{x:a,y:s}}function f0(e,n){if(e.length>1){let i;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?i={x:e[0].x,y:n.height}:i={x:e[0].x,y:0}:e[0].x>e[1].x?i={x:0,y:fe.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:n.width,y:fe.utils.getLinearYFromCoordinates(e[0],e[1],{x:n.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function Pa(e,n){const i=Math.abs(e.x-n.x),a=Math.abs(e.y-n.y);return Math.sqrt(i*i+a*a)}var Pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E1={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
|
-
*/E1.exports,function(e,n){(function(){var i,a="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`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",_=500,y="__lodash_placeholder__",b=1,M=2,w=4,x=1,$=2,S=1,I=2,D=4,R=8,H=16,G=32,U=64,O=128,W=256,Q=512,X=30,re="...",J=800,Pe=16,et=1,pt=2,At=3,rt=1/0,qe=9007199254740991,Le=17976931348623157e292,He=0/0,Be=4294967295,tt=Be-1,ae=Be>>>1,ne=[["ary",O],["bind",S],["bindKey",I],["curry",R],["curryRight",H],["flip",Q],["partial",G],["partialRight",U],["rearg",W]],ue="[object Arguments]",Me="[object Array]",it="[object AsyncFunction]",Xe="[object Boolean]",Mt="[object Date]",Jt="[object DOMException]",mn="[object Error]",en="[object Function]",Mn="[object GeneratorFunction]",ut="[object Map]",Te="[object Number]",wt="[object Null]",Ge="[object Object]",mt="[object Promise]",tn="[object Proxy]",E="[object RegExp]",j="[object Set]",$e="[object String]",Ce="[object Symbol]",Ie="[object Undefined]",dt="[object WeakMap]",yn="[object WeakSet]",Dt="[object ArrayBuffer]",Ne="[object DataView]",Rt="[object Float32Array]",nn="[object Float64Array]",te="[object Int8Array]",ft="[object Int16Array]",Ee="[object Int32Array]",yt="[object Uint8Array]",Jn="[object Uint8ClampedArray]",Yr="[object Uint16Array]",mo="[object Uint32Array]",zb=/\b__p \+= '';/g,Nb=/\b(__p \+=) '' \+/g,Wb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,S5=/&(?:amp|lt|gt|quot|#39);/g,k5=/[&<>"']/g,Kb=RegExp(S5.source),Ub=RegExp(k5.source),Zb=/<%-([\s\S]+?)%>/g,Hb=/<%([\s\S]+?)%>/g,A5=/<%=([\s\S]+?)%>/g,Yb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gb=/^\w*$/,Vb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yo=/[\\^$.*+?()[\]{}|]/g,Qb=RegExp(yo.source),_o=/^\s+/,jb=/\s/,qb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xb=/\{\n\/\* \[wrapped with (.+)\] \*/,Jb=/,? & /,eC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,M5=/[()=,{}\[\]\/\s]/,tC=/\\(\\)?/g,nC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,T5=/\w*$/,rC=/^[-+]0x[0-9a-f]+$/i,iC=/^0b[01]+$/i,oC=/^\[object .+?Constructor\]$/,aC=/^0o[0-7]+$/i,sC=/^(?:0|[1-9]\d*)$/,lC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wi=/($^)/,cC=/['\n\r\u2028\u2029\\]/g,Li="\\ud800-\\udfff",uC="\\u0300-\\u036f",fC="\\ufe20-\\ufe2f",dC="\\u20d0-\\u20ff",I5=uC+fC+dC,O5="\\u2700-\\u27bf",P5="a-z\\xdf-\\xf6\\xf8-\\xff",hC="\\xac\\xb1\\xd7\\xf7",gC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pC="\\u2000-\\u206f",mC=" \\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",E5="A-Z\\xc0-\\xd6\\xd8-\\xde",D5="\\ufe0e\\ufe0f",R5=hC+gC+pC+mC,vo="['’]",yC="["+Li+"]",B5="["+R5+"]",$i="["+I5+"]",F5="\\d+",_C="["+O5+"]",z5="["+P5+"]",N5="[^"+Li+R5+F5+O5+P5+E5+"]",bo="\\ud83c[\\udffb-\\udfff]",vC="(?:"+$i+"|"+bo+")",W5="[^"+Li+"]",Co="(?:\\ud83c[\\udde6-\\uddff]){2}",xo="[\\ud800-\\udbff][\\udc00-\\udfff]",Gr="["+E5+"]",K5="\\u200d",U5="(?:"+z5+"|"+N5+")",bC="(?:"+Gr+"|"+N5+")",Z5="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",H5="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",Y5=vC+"?",G5="["+D5+"]?",CC="(?:"+K5+"(?:"+[W5,Co,xo].join("|")+")"+G5+Y5+")*",xC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",V5=G5+Y5+CC,LC="(?:"+[_C,Co,xo].join("|")+")"+V5,$C="(?:"+[W5+$i+"?",$i,Co,xo,yC].join("|")+")",SC=RegExp(vo,"g"),kC=RegExp($i,"g"),wo=RegExp(bo+"(?="+bo+")|"+$C+V5,"g"),AC=RegExp([Gr+"?"+z5+"+"+Z5+"(?="+[B5,Gr,"$"].join("|")+")",bC+"+"+H5+"(?="+[B5,Gr+U5,"$"].join("|")+")",Gr+"?"+U5+"+"+Z5,Gr+"+"+H5,wC,xC,F5,LC].join("|"),"g"),MC=RegExp("["+K5+Li+I5+D5+"]"),TC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,IC=["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"],OC=-1,Ye={};Ye[Rt]=Ye[nn]=Ye[te]=Ye[ft]=Ye[Ee]=Ye[yt]=Ye[Jn]=Ye[Yr]=Ye[mo]=!0,Ye[ue]=Ye[Me]=Ye[Dt]=Ye[Xe]=Ye[Ne]=Ye[Mt]=Ye[mn]=Ye[en]=Ye[ut]=Ye[Te]=Ye[Ge]=Ye[E]=Ye[j]=Ye[$e]=Ye[dt]=!1;var Ue={};Ue[ue]=Ue[Me]=Ue[Dt]=Ue[Ne]=Ue[Xe]=Ue[Mt]=Ue[Rt]=Ue[nn]=Ue[te]=Ue[ft]=Ue[Ee]=Ue[ut]=Ue[Te]=Ue[Ge]=Ue[E]=Ue[j]=Ue[$e]=Ue[Ce]=Ue[yt]=Ue[Jn]=Ue[Yr]=Ue[mo]=!0,Ue[mn]=Ue[en]=Ue[dt]=!1;var PC={À:"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"},EC={"&":"&","<":"<",">":">",'"':""","'":"'"},DC={"&":"&","<":"<",">":">",""":'"',"'":"'"},RC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},BC=parseFloat,FC=parseInt,Q5=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,zC=typeof self=="object"&&self&&self.Object===Object&&self,vt=Q5||zC||Function("return this")(),Lo=n&&!n.nodeType&&n,gr=Lo&&!0&&e&&!e.nodeType&&e,j5=gr&&gr.exports===Lo,$o=j5&&Q5.process,rn=function(){try{var k=gr&&gr.require&&gr.require("util").types;return k||$o&&$o.binding&&$o.binding("util")}catch{}}(),q5=rn&&rn.isArrayBuffer,X5=rn&&rn.isDate,J5=rn&&rn.isMap,e2=rn&&rn.isRegExp,t2=rn&&rn.isSet,n2=rn&&rn.isTypedArray;function Ut(k,P,T){switch(T.length){case 0:return k.call(P);case 1:return k.call(P,T[0]);case 2:return k.call(P,T[0],T[1]);case 3:return k.call(P,T[0],T[1],T[2])}return k.apply(P,T)}function NC(k,P,T,ee){for(var de=-1,Oe=k==null?0:k.length;++de<Oe;){var ht=k[de];P(ee,ht,T(ht),k)}return ee}function Zt(k,P){for(var T=-1,ee=k==null?0:k.length;++T<ee&&P(k[T],T,k)!==!1;);return k}function WC(k,P){for(var T=k==null?0:k.length;T--&&P(k[T],T,k)!==!1;);return k}function r2(k,P){for(var T=-1,ee=k==null?0:k.length;++T<ee;)if(!P(k[T],T,k))return!1;return!0}function er(k,P){for(var T=-1,ee=k==null?0:k.length,de=0,Oe=[];++T<ee;){var ht=k[T];P(ht,T,k)&&(Oe[de++]=ht)}return Oe}function Si(k,P){var T=k==null?0:k.length;return!!T&&Vr(k,P,0)>-1}function So(k,P,T){for(var ee=-1,de=k==null?0:k.length;++ee<de;)if(T(P,k[ee]))return!0;return!1}function Ve(k,P){for(var T=-1,ee=k==null?0:k.length,de=Array(ee);++T<ee;)de[T]=P(k[T],T,k);return de}function tr(k,P){for(var T=-1,ee=P.length,de=k.length;++T<ee;)k[de+T]=P[T];return k}function ko(k,P,T,ee){var de=-1,Oe=k==null?0:k.length;for(ee&&Oe&&(T=k[++de]);++de<Oe;)T=P(T,k[de],de,k);return T}function KC(k,P,T,ee){var de=k==null?0:k.length;for(ee&&de&&(T=k[--de]);de--;)T=P(T,k[de],de,k);return T}function Ao(k,P){for(var T=-1,ee=k==null?0:k.length;++T<ee;)if(P(k[T],T,k))return!0;return!1}var UC=Mo("length");function ZC(k){return k.split("")}function HC(k){return k.match(eC)||[]}function i2(k,P,T){var ee;return T(k,function(de,Oe,ht){if(P(de,Oe,ht))return ee=Oe,!1}),ee}function ki(k,P,T,ee){for(var de=k.length,Oe=T+(ee?1:-1);ee?Oe--:++Oe<de;)if(P(k[Oe],Oe,k))return Oe;return-1}function Vr(k,P,T){return P===P?rx(k,P,T):ki(k,o2,T)}function YC(k,P,T,ee){for(var de=T-1,Oe=k.length;++de<Oe;)if(ee(k[de],P))return de;return-1}function o2(k){return k!==k}function a2(k,P){var T=k==null?0:k.length;return T?Io(k,P)/T:He}function Mo(k){return function(P){return P==null?i:P[k]}}function To(k){return function(P){return k==null?i:k[P]}}function s2(k,P,T,ee,de){return de(k,function(Oe,ht,We){T=ee?(ee=!1,Oe):P(T,Oe,ht,We)}),T}function GC(k,P){var T=k.length;for(k.sort(P);T--;)k[T]=k[T].value;return k}function Io(k,P){for(var T,ee=-1,de=k.length;++ee<de;){var Oe=P(k[ee]);Oe!==i&&(T=T===i?Oe:T+Oe)}return T}function Oo(k,P){for(var T=-1,ee=Array(k);++T<k;)ee[T]=P(T);return ee}function VC(k,P){return Ve(P,function(T){return[T,k[T]]})}function l2(k){return k&&k.slice(0,d2(k)+1).replace(_o,"")}function Ht(k){return function(P){return k(P)}}function Po(k,P){return Ve(P,function(T){return k[T]})}function v1(k,P){return k.has(P)}function c2(k,P){for(var T=-1,ee=k.length;++T<ee&&Vr(P,k[T],0)>-1;);return T}function u2(k,P){for(var T=k.length;T--&&Vr(P,k[T],0)>-1;);return T}function QC(k,P){for(var T=k.length,ee=0;T--;)k[T]===P&&++ee;return ee}var jC=To(PC),qC=To(EC);function XC(k){return"\\"+RC[k]}function JC(k,P){return k==null?i:k[P]}function Qr(k){return MC.test(k)}function ex(k){return TC.test(k)}function tx(k){for(var P,T=[];!(P=k.next()).done;)T.push(P.value);return T}function Eo(k){var P=-1,T=Array(k.size);return k.forEach(function(ee,de){T[++P]=[de,ee]}),T}function f2(k,P){return function(T){return k(P(T))}}function nr(k,P){for(var T=-1,ee=k.length,de=0,Oe=[];++T<ee;){var ht=k[T];(ht===P||ht===y)&&(k[T]=y,Oe[de++]=T)}return Oe}function Ai(k){var P=-1,T=Array(k.size);return k.forEach(function(ee){T[++P]=ee}),T}function nx(k){var P=-1,T=Array(k.size);return k.forEach(function(ee){T[++P]=[ee,ee]}),T}function rx(k,P,T){for(var ee=T-1,de=k.length;++ee<de;)if(k[ee]===P)return ee;return-1}function ix(k,P,T){for(var ee=T+1;ee--;)if(k[ee]===P)return ee;return ee}function jr(k){return Qr(k)?ax(k):UC(k)}function _n(k){return Qr(k)?sx(k):ZC(k)}function d2(k){for(var P=k.length;P--&&jb.test(k.charAt(P)););return P}var ox=To(DC);function ax(k){for(var P=wo.lastIndex=0;wo.test(k);)++P;return P}function sx(k){return k.match(wo)||[]}function lx(k){return k.match(AC)||[]}var cx=function k(P){P=P==null?vt:qr.defaults(vt.Object(),P,qr.pick(vt,IC));var T=P.Array,ee=P.Date,de=P.Error,Oe=P.Function,ht=P.Math,We=P.Object,Do=P.RegExp,ux=P.String,on=P.TypeError,Mi=T.prototype,fx=Oe.prototype,Xr=We.prototype,Ti=P["__core-js_shared__"],Ii=fx.toString,De=Xr.hasOwnProperty,dx=0,h2=function(){var t=/[^.]+$/.exec(Ti&&Ti.keys&&Ti.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Oi=Xr.toString,hx=Ii.call(We),gx=vt._,px=Do("^"+Ii.call(De).replace(yo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pi=j5?P.Buffer:i,rr=P.Symbol,Ei=P.Uint8Array,g2=Pi?Pi.allocUnsafe:i,Di=f2(We.getPrototypeOf,We),p2=We.create,m2=Xr.propertyIsEnumerable,Ri=Mi.splice,y2=rr?rr.isConcatSpreadable:i,b1=rr?rr.iterator:i,pr=rr?rr.toStringTag:i,Bi=function(){try{var t=br(We,"defineProperty");return t({},"",{}),t}catch{}}(),mx=P.clearTimeout!==vt.clearTimeout&&P.clearTimeout,yx=ee&&ee.now!==vt.Date.now&&ee.now,_x=P.setTimeout!==vt.setTimeout&&P.setTimeout,Fi=ht.ceil,zi=ht.floor,Ro=We.getOwnPropertySymbols,vx=Pi?Pi.isBuffer:i,_2=P.isFinite,bx=Mi.join,Cx=f2(We.keys,We),gt=ht.max,Lt=ht.min,xx=ee.now,wx=P.parseInt,v2=ht.random,Lx=Mi.reverse,Bo=br(P,"DataView"),C1=br(P,"Map"),Fo=br(P,"Promise"),Jr=br(P,"Set"),x1=br(P,"WeakMap"),w1=br(We,"create"),Ni=x1&&new x1,e1={},$x=Cr(Bo),Sx=Cr(C1),kx=Cr(Fo),Ax=Cr(Jr),Mx=Cr(x1),Wi=rr?rr.prototype:i,L1=Wi?Wi.valueOf:i,b2=Wi?Wi.toString:i;function p(t){if(nt(t)&&!pe(t)&&!(t instanceof we)){if(t instanceof an)return t;if(De.call(t,"__wrapped__"))return Cl(t)}return new an(t)}var t1=function(){function t(){}return function(r){if(!Je(r))return{};if(p2)return p2(r);t.prototype=r;var o=new t;return t.prototype=i,o}}();function Ki(){}function an(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:Zb,evaluate:Hb,interpolate:A5,variable:"",imports:{_:p}},p.prototype=Ki.prototype,p.prototype.constructor=p,an.prototype=t1(Ki.prototype),an.prototype.constructor=an;function we(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Be,this.__views__=[]}function Tx(){var t=new we(this.__wrapped__);return t.__actions__=Bt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Bt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Bt(this.__views__),t}function Ix(){if(this.__filtered__){var t=new we(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ox(){var t=this.__wrapped__.value(),r=this.__dir__,o=pe(t),c=r<0,h=o?t.length:0,m=Zw(0,h,this.__views__),C=m.start,L=m.end,A=L-C,B=c?L:C-1,F=this.__iteratees__,K=F.length,q=0,ie=Lt(A,this.__takeCount__);if(!o||!c&&h==A&&ie==A)return Z2(t,this.__actions__);var ce=[];e:for(;A--&&q<ie;){B+=r;for(var _e=-1,se=t[B];++_e<K;){var xe=F[_e],Se=xe.iteratee,Vt=xe.type,Ot=Se(se);if(Vt==pt)se=Ot;else if(!Ot){if(Vt==et)continue e;break e}}ce[q++]=se}return ce}we.prototype=t1(Ki.prototype),we.prototype.constructor=we;function mr(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var c=t[r];this.set(c[0],c[1])}}function Px(){this.__data__=w1?w1(null):{},this.size=0}function Ex(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Dx(t){var r=this.__data__;if(w1){var o=r[t];return o===g?i:o}return De.call(r,t)?r[t]:i}function Rx(t){var r=this.__data__;return w1?r[t]!==i:De.call(r,t)}function Bx(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=w1&&r===i?g:r,this}mr.prototype.clear=Px,mr.prototype.delete=Ex,mr.prototype.get=Dx,mr.prototype.has=Rx,mr.prototype.set=Bx;function Wn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var c=t[r];this.set(c[0],c[1])}}function Fx(){this.__data__=[],this.size=0}function zx(t){var r=this.__data__,o=Ui(r,t);if(o<0)return!1;var c=r.length-1;return o==c?r.pop():Ri.call(r,o,1),--this.size,!0}function Nx(t){var r=this.__data__,o=Ui(r,t);return o<0?i:r[o][1]}function Wx(t){return Ui(this.__data__,t)>-1}function Kx(t,r){var o=this.__data__,c=Ui(o,t);return c<0?(++this.size,o.push([t,r])):o[c][1]=r,this}Wn.prototype.clear=Fx,Wn.prototype.delete=zx,Wn.prototype.get=Nx,Wn.prototype.has=Wx,Wn.prototype.set=Kx;function Kn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var c=t[r];this.set(c[0],c[1])}}function Ux(){this.size=0,this.__data__={hash:new mr,map:new(C1||Wn),string:new mr}}function Zx(t){var r=t0(this,t).delete(t);return this.size-=r?1:0,r}function Hx(t){return t0(this,t).get(t)}function Yx(t){return t0(this,t).has(t)}function Gx(t,r){var o=t0(this,t),c=o.size;return o.set(t,r),this.size+=o.size==c?0:1,this}Kn.prototype.clear=Ux,Kn.prototype.delete=Zx,Kn.prototype.get=Hx,Kn.prototype.has=Yx,Kn.prototype.set=Gx;function yr(t){var r=-1,o=t==null?0:t.length;for(this.__data__=new Kn;++r<o;)this.add(t[r])}function Vx(t){return this.__data__.set(t,g),this}function Qx(t){return this.__data__.has(t)}yr.prototype.add=yr.prototype.push=Vx,yr.prototype.has=Qx;function vn(t){var r=this.__data__=new Wn(t);this.size=r.size}function jx(){this.__data__=new Wn,this.size=0}function qx(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}function Xx(t){return this.__data__.get(t)}function Jx(t){return this.__data__.has(t)}function ew(t,r){var o=this.__data__;if(o instanceof Wn){var c=o.__data__;if(!C1||c.length<s-1)return c.push([t,r]),this.size=++o.size,this;o=this.__data__=new Kn(c)}return o.set(t,r),this.size=o.size,this}vn.prototype.clear=jx,vn.prototype.delete=qx,vn.prototype.get=Xx,vn.prototype.has=Jx,vn.prototype.set=ew;function C2(t,r){var o=pe(t),c=!o&&xr(t),h=!o&&!c&&lr(t),m=!o&&!c&&!h&&o1(t),C=o||c||h||m,L=C?Oo(t.length,ux):[],A=L.length;for(var B in t)(r||De.call(t,B))&&!(C&&(B=="length"||h&&(B=="offset"||B=="parent")||m&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Hn(B,A)))&&L.push(B);return L}function x2(t){var r=t.length;return r?t[Qo(0,r-1)]:i}function tw(t,r){return n0(Bt(t),_r(r,0,t.length))}function nw(t){return n0(Bt(t))}function zo(t,r,o){(o!==i&&!Cn(t[r],o)||o===i&&!(r in t))&&Tn(t,r,o)}function $1(t,r,o){var c=t[r];(!(De.call(t,r)&&Cn(c,o))||o===i&&!(r in t))&&Tn(t,r,o)}function Ui(t,r){for(var o=t.length;o--;)if(Cn(t[o][0],r))return o;return-1}function rw(t,r,o,c){return ir(t,function(h,m,C){r(c,h,o(h),C)}),c}function w2(t,r){return t&&On(r,_t(r),t)}function iw(t,r){return t&&On(r,zt(r),t)}function Tn(t,r,o){r=="__proto__"&&Bi?Bi(t,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[r]=o}function No(t,r){for(var o=-1,c=r.length,h=T(c),m=t==null;++o<c;)h[o]=m?i:Ca(t,r[o]);return h}function _r(t,r,o){return t===t&&(o!==i&&(t=t<=o?t:o),r!==i&&(t=t>=r?t:r)),t}function sn(t,r,o,c,h,m){var C,L=r&b,A=r&M,B=r&w;if(o&&(C=h?o(t,c,h,m):o(t)),C!==i)return C;if(!Je(t))return t;var F=pe(t);if(F){if(C=Yw(t),!L)return Bt(t,C)}else{var K=$t(t),q=K==en||K==Mn;if(lr(t))return G2(t,L);if(K==Ge||K==ue||q&&!h){if(C=A||q?{}:dl(t),!L)return A?Dw(t,iw(C,t)):Ew(t,w2(C,t))}else{if(!Ue[K])return h?t:{};C=Gw(t,K,L)}}m||(m=new vn);var ie=m.get(t);if(ie)return ie;m.set(t,C),Wl(t)?t.forEach(function(se){C.add(sn(se,r,o,se,t,m))}):zl(t)&&t.forEach(function(se,xe){C.set(xe,sn(se,r,o,xe,t,m))});var ce=B?A?aa:oa:A?zt:_t,_e=F?i:ce(t);return Zt(_e||t,function(se,xe){_e&&(xe=se,se=t[xe]),$1(C,xe,sn(se,r,o,xe,t,m))}),C}function ow(t){var r=_t(t);return function(o){return L2(o,t,r)}}function L2(t,r,o){var c=o.length;if(t==null)return!c;for(t=We(t);c--;){var h=o[c],m=r[h],C=t[h];if(C===i&&!(h in t)||!m(C))return!1}return!0}function $2(t,r,o){if(typeof t!="function")throw new on(u);return O1(function(){t.apply(i,o)},r)}function S1(t,r,o,c){var h=-1,m=Si,C=!0,L=t.length,A=[],B=r.length;if(!L)return A;o&&(r=Ve(r,Ht(o))),c?(m=So,C=!1):r.length>=s&&(m=v1,C=!1,r=new yr(r));e:for(;++h<L;){var F=t[h],K=o==null?F:o(F);if(F=c||F!==0?F:0,C&&K===K){for(var q=B;q--;)if(r[q]===K)continue e;A.push(F)}else m(r,K,c)||A.push(F)}return A}var ir=X2(In),S2=X2(Ko,!0);function aw(t,r){var o=!0;return ir(t,function(c,h,m){return o=!!r(c,h,m),o}),o}function Zi(t,r,o){for(var c=-1,h=t.length;++c<h;){var m=t[c],C=r(m);if(C!=null&&(L===i?C===C&&!Gt(C):o(C,L)))var L=C,A=m}return A}function sw(t,r,o,c){var h=t.length;for(o=ye(o),o<0&&(o=-o>h?0:h+o),c=c===i||c>h?h:ye(c),c<0&&(c+=h),c=o>c?0:Ul(c);o<c;)t[o++]=r;return t}function k2(t,r){var o=[];return ir(t,function(c,h,m){r(c,h,m)&&o.push(c)}),o}function bt(t,r,o,c,h){var m=-1,C=t.length;for(o||(o=Qw),h||(h=[]);++m<C;){var L=t[m];r>0&&o(L)?r>1?bt(L,r-1,o,c,h):tr(h,L):c||(h[h.length]=L)}return h}var Wo=J2(),A2=J2(!0);function In(t,r){return t&&Wo(t,r,_t)}function Ko(t,r){return t&&A2(t,r,_t)}function Hi(t,r){return er(r,function(o){return Yn(t[o])})}function vr(t,r){r=ar(r,t);for(var o=0,c=r.length;t!=null&&o<c;)t=t[bn(r[o++])];return o&&o==c?t:i}function M2(t,r,o){var c=r(t);return pe(t)?c:tr(c,o(t))}function Tt(t){return t==null?t===i?Ie:wt:pr&&pr in We(t)?Uw(t):nL(t)}function Uo(t,r){return t>r}function lw(t,r){return t!=null&&De.call(t,r)}function cw(t,r){return t!=null&&r in We(t)}function uw(t,r,o){return t>=Lt(r,o)&&t<gt(r,o)}function Zo(t,r,o){for(var c=o?So:Si,h=t[0].length,m=t.length,C=m,L=T(m),A=1/0,B=[];C--;){var F=t[C];C&&r&&(F=Ve(F,Ht(r))),A=Lt(F.length,A),L[C]=!o&&(r||h>=120&&F.length>=120)?new yr(C&&F):i}F=t[0];var K=-1,q=L[0];e:for(;++K<h&&B.length<A;){var ie=F[K],ce=r?r(ie):ie;if(ie=o||ie!==0?ie:0,!(q?v1(q,ce):c(B,ce,o))){for(C=m;--C;){var _e=L[C];if(!(_e?v1(_e,ce):c(t[C],ce,o)))continue e}q&&q.push(ce),B.push(ie)}}return B}function fw(t,r,o,c){return In(t,function(h,m,C){r(c,o(h),m,C)}),c}function k1(t,r,o){r=ar(r,t),t=ml(t,r);var c=t==null?t:t[bn(cn(r))];return c==null?i:Ut(c,t,o)}function T2(t){return nt(t)&&Tt(t)==ue}function dw(t){return nt(t)&&Tt(t)==Dt}function hw(t){return nt(t)&&Tt(t)==Mt}function A1(t,r,o,c,h){return t===r?!0:t==null||r==null||!nt(t)&&!nt(r)?t!==t&&r!==r:gw(t,r,o,c,A1,h)}function gw(t,r,o,c,h,m){var C=pe(t),L=pe(r),A=C?Me:$t(t),B=L?Me:$t(r);A=A==ue?Ge:A,B=B==ue?Ge:B;var F=A==Ge,K=B==Ge,q=A==B;if(q&&lr(t)){if(!lr(r))return!1;C=!0,F=!1}if(q&&!F)return m||(m=new vn),C||o1(t)?cl(t,r,o,c,h,m):Ww(t,r,A,o,c,h,m);if(!(o&x)){var ie=F&&De.call(t,"__wrapped__"),ce=K&&De.call(r,"__wrapped__");if(ie||ce){var _e=ie?t.value():t,se=ce?r.value():r;return m||(m=new vn),h(_e,se,o,c,m)}}return q?(m||(m=new vn),Kw(t,r,o,c,h,m)):!1}function pw(t){return nt(t)&&$t(t)==ut}function Ho(t,r,o,c){var h=o.length,m=h,C=!c;if(t==null)return!m;for(t=We(t);h--;){var L=o[h];if(C&&L[2]?L[1]!==t[L[0]]:!(L[0]in t))return!1}for(;++h<m;){L=o[h];var A=L[0],B=t[A],F=L[1];if(C&&L[2]){if(B===i&&!(A in t))return!1}else{var K=new vn;if(c)var q=c(B,F,A,t,r,K);if(!(q===i?A1(F,B,x|$,c,K):q))return!1}}return!0}function I2(t){if(!Je(t)||qw(t))return!1;var r=Yn(t)?px:oC;return r.test(Cr(t))}function mw(t){return nt(t)&&Tt(t)==E}function yw(t){return nt(t)&&$t(t)==j}function _w(t){return nt(t)&&l0(t.length)&&!!Ye[Tt(t)]}function O2(t){return typeof t=="function"?t:t==null?Nt:typeof t=="object"?pe(t)?D2(t[0],t[1]):E2(t):t6(t)}function Yo(t){if(!I1(t))return Cx(t);var r=[];for(var o in We(t))De.call(t,o)&&o!="constructor"&&r.push(o);return r}function vw(t){if(!Je(t))return tL(t);var r=I1(t),o=[];for(var c in t)c=="constructor"&&(r||!De.call(t,c))||o.push(c);return o}function Go(t,r){return t<r}function P2(t,r){var o=-1,c=Ft(t)?T(t.length):[];return ir(t,function(h,m,C){c[++o]=r(h,m,C)}),c}function E2(t){var r=la(t);return r.length==1&&r[0][2]?gl(r[0][0],r[0][1]):function(o){return o===t||Ho(o,t,r)}}function D2(t,r){return ua(t)&&hl(r)?gl(bn(t),r):function(o){var c=Ca(o,t);return c===i&&c===r?xa(o,t):A1(r,c,x|$)}}function Yi(t,r,o,c,h){t!==r&&Wo(r,function(m,C){if(h||(h=new vn),Je(m))bw(t,r,C,o,Yi,c,h);else{var L=c?c(da(t,C),m,C+"",t,r,h):i;L===i&&(L=m),zo(t,C,L)}},zt)}function bw(t,r,o,c,h,m,C){var L=da(t,o),A=da(r,o),B=C.get(A);if(B){zo(t,o,B);return}var F=m?m(L,A,o+"",t,r,C):i,K=F===i;if(K){var q=pe(A),ie=!q&&lr(A),ce=!q&&!ie&&o1(A);F=A,q||ie||ce?pe(L)?F=L:ot(L)?F=Bt(L):ie?(K=!1,F=G2(A,!0)):ce?(K=!1,F=V2(A,!0)):F=[]:P1(A)||xr(A)?(F=L,xr(L)?F=Zl(L):(!Je(L)||Yn(L))&&(F=dl(A))):K=!1}K&&(C.set(A,F),h(F,A,c,m,C),C.delete(A)),zo(t,o,F)}function R2(t,r){var o=t.length;if(o)return r+=r<0?o:0,Hn(r,o)?t[r]:i}function B2(t,r,o){r.length?r=Ve(r,function(m){return pe(m)?function(C){return vr(C,m.length===1?m[0]:m)}:m}):r=[Nt];var c=-1;r=Ve(r,Ht(le()));var h=P2(t,function(m,C,L){var A=Ve(r,function(B){return B(m)});return{criteria:A,index:++c,value:m}});return GC(h,function(m,C){return Pw(m,C,o)})}function Cw(t,r){return F2(t,r,function(o,c){return xa(t,c)})}function F2(t,r,o){for(var c=-1,h=r.length,m={};++c<h;){var C=r[c],L=vr(t,C);o(L,C)&&M1(m,ar(C,t),L)}return m}function xw(t){return function(r){return vr(r,t)}}function Vo(t,r,o,c){var h=c?YC:Vr,m=-1,C=r.length,L=t;for(t===r&&(r=Bt(r)),o&&(L=Ve(t,Ht(o)));++m<C;)for(var A=0,B=r[m],F=o?o(B):B;(A=h(L,F,A,c))>-1;)L!==t&&Ri.call(L,A,1),Ri.call(t,A,1);return t}function z2(t,r){for(var o=t?r.length:0,c=o-1;o--;){var h=r[o];if(o==c||h!==m){var m=h;Hn(h)?Ri.call(t,h,1):Xo(t,h)}}return t}function Qo(t,r){return t+zi(v2()*(r-t+1))}function ww(t,r,o,c){for(var h=-1,m=gt(Fi((r-t)/(o||1)),0),C=T(m);m--;)C[c?m:++h]=t,t+=o;return C}function jo(t,r){var o="";if(!t||r<1||r>qe)return o;do r%2&&(o+=t),r=zi(r/2),r&&(t+=t);while(r);return o}function ve(t,r){return ha(pl(t,r,Nt),t+"")}function Lw(t){return x2(a1(t))}function $w(t,r){var o=a1(t);return n0(o,_r(r,0,o.length))}function M1(t,r,o,c){if(!Je(t))return t;r=ar(r,t);for(var h=-1,m=r.length,C=m-1,L=t;L!=null&&++h<m;){var A=bn(r[h]),B=o;if(A==="__proto__"||A==="constructor"||A==="prototype")return t;if(h!=C){var F=L[A];B=c?c(F,A,L):i,B===i&&(B=Je(F)?F:Hn(r[h+1])?[]:{})}$1(L,A,B),L=L[A]}return t}var N2=Ni?function(t,r){return Ni.set(t,r),t}:Nt,Sw=Bi?function(t,r){return Bi(t,"toString",{configurable:!0,enumerable:!1,value:La(r),writable:!0})}:Nt;function kw(t){return n0(a1(t))}function ln(t,r,o){var c=-1,h=t.length;r<0&&(r=-r>h?0:h+r),o=o>h?h:o,o<0&&(o+=h),h=r>o?0:o-r>>>0,r>>>=0;for(var m=T(h);++c<h;)m[c]=t[c+r];return m}function Aw(t,r){var o;return ir(t,function(c,h,m){return o=r(c,h,m),!o}),!!o}function Gi(t,r,o){var c=0,h=t==null?c:t.length;if(typeof r=="number"&&r===r&&h<=ae){for(;c<h;){var m=c+h>>>1,C=t[m];C!==null&&!Gt(C)&&(o?C<=r:C<r)?c=m+1:h=m}return h}return qo(t,r,Nt,o)}function qo(t,r,o,c){var h=0,m=t==null?0:t.length;if(m===0)return 0;r=o(r);for(var C=r!==r,L=r===null,A=Gt(r),B=r===i;h<m;){var F=zi((h+m)/2),K=o(t[F]),q=K!==i,ie=K===null,ce=K===K,_e=Gt(K);if(C)var se=c||ce;else B?se=ce&&(c||q):L?se=ce&&q&&(c||!ie):A?se=ce&&q&&!ie&&(c||!_e):ie||_e?se=!1:se=c?K<=r:K<r;se?h=F+1:m=F}return Lt(m,tt)}function W2(t,r){for(var o=-1,c=t.length,h=0,m=[];++o<c;){var C=t[o],L=r?r(C):C;if(!o||!Cn(L,A)){var A=L;m[h++]=C===0?0:C}}return m}function K2(t){return typeof t=="number"?t:Gt(t)?He:+t}function Yt(t){if(typeof t=="string")return t;if(pe(t))return Ve(t,Yt)+"";if(Gt(t))return b2?b2.call(t):"";var r=t+"";return r=="0"&&1/t==-rt?"-0":r}function or(t,r,o){var c=-1,h=Si,m=t.length,C=!0,L=[],A=L;if(o)C=!1,h=So;else if(m>=s){var B=r?null:zw(t);if(B)return Ai(B);C=!1,h=v1,A=new yr}else A=r?[]:L;e:for(;++c<m;){var F=t[c],K=r?r(F):F;if(F=o||F!==0?F:0,C&&K===K){for(var q=A.length;q--;)if(A[q]===K)continue e;r&&A.push(K),L.push(F)}else h(A,K,o)||(A!==L&&A.push(K),L.push(F))}return L}function Xo(t,r){r=ar(r,t);var o=-1,c=r.length;if(!c)return!0;for(;++o<c;){var h=bn(r[o]);if(h==="__proto__"&&!De.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&o<c-1)return!1}var m=ml(t,r);return m==null||delete m[bn(cn(r))]}function U2(t,r,o,c){return M1(t,r,o(vr(t,r)),c)}function Vi(t,r,o,c){for(var h=t.length,m=c?h:-1;(c?m--:++m<h)&&r(t[m],m,t););return o?ln(t,c?0:m,c?m+1:h):ln(t,c?m+1:0,c?h:m)}function Z2(t,r){var o=t;return o instanceof we&&(o=o.value()),ko(r,function(c,h){return h.func.apply(h.thisArg,tr([c],h.args))},o)}function Jo(t,r,o){var c=t.length;if(c<2)return c?or(t[0]):[];for(var h=-1,m=T(c);++h<c;)for(var C=t[h],L=-1;++L<c;)L!=h&&(m[h]=S1(m[h]||C,t[L],r,o));return or(bt(m,1),r,o)}function H2(t,r,o){for(var c=-1,h=t.length,m=r.length,C={};++c<h;){var L=c<m?r[c]:i;o(C,t[c],L)}return C}function ea(t){return ot(t)?t:[]}function ta(t){return typeof t=="function"?t:Nt}function ar(t,r){return pe(t)?t:ua(t,r)?[t]:bl(Re(t))}var Mw=ve;function sr(t,r,o){var c=t.length;return o=o===i?c:o,!r&&o>=c?t:ln(t,r,o)}var Y2=mx||function(t){return vt.clearTimeout(t)};function G2(t,r){if(r)return t.slice();var o=t.length,c=g2?g2(o):new t.constructor(o);return t.copy(c),c}function na(t){var r=new t.constructor(t.byteLength);return new Ei(r).set(new Ei(t)),r}function Tw(t,r){var o=r?na(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function Iw(t){var r=new t.constructor(t.source,T5.exec(t));return r.lastIndex=t.lastIndex,r}function Ow(t){return L1?We(L1.call(t)):{}}function V2(t,r){var o=r?na(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function Q2(t,r){if(t!==r){var o=t!==i,c=t===null,h=t===t,m=Gt(t),C=r!==i,L=r===null,A=r===r,B=Gt(r);if(!L&&!B&&!m&&t>r||m&&C&&A&&!L&&!B||c&&C&&A||!o&&A||!h)return 1;if(!c&&!m&&!B&&t<r||B&&o&&h&&!c&&!m||L&&o&&h||!C&&h||!A)return-1}return 0}function Pw(t,r,o){for(var c=-1,h=t.criteria,m=r.criteria,C=h.length,L=o.length;++c<C;){var A=Q2(h[c],m[c]);if(A){if(c>=L)return A;var B=o[c];return A*(B=="desc"?-1:1)}}return t.index-r.index}function j2(t,r,o,c){for(var h=-1,m=t.length,C=o.length,L=-1,A=r.length,B=gt(m-C,0),F=T(A+B),K=!c;++L<A;)F[L]=r[L];for(;++h<C;)(K||h<m)&&(F[o[h]]=t[h]);for(;B--;)F[L++]=t[h++];return F}function q2(t,r,o,c){for(var h=-1,m=t.length,C=-1,L=o.length,A=-1,B=r.length,F=gt(m-L,0),K=T(F+B),q=!c;++h<F;)K[h]=t[h];for(var ie=h;++A<B;)K[ie+A]=r[A];for(;++C<L;)(q||h<m)&&(K[ie+o[C]]=t[h++]);return K}function Bt(t,r){var o=-1,c=t.length;for(r||(r=T(c));++o<c;)r[o]=t[o];return r}function On(t,r,o,c){var h=!o;o||(o={});for(var m=-1,C=r.length;++m<C;){var L=r[m],A=c?c(o[L],t[L],L,o,t):i;A===i&&(A=t[L]),h?Tn(o,L,A):$1(o,L,A)}return o}function Ew(t,r){return On(t,ca(t),r)}function Dw(t,r){return On(t,ul(t),r)}function Qi(t,r){return function(o,c){var h=pe(o)?NC:rw,m=r?r():{};return h(o,t,le(c,2),m)}}function n1(t){return ve(function(r,o){var c=-1,h=o.length,m=h>1?o[h-1]:i,C=h>2?o[2]:i;for(m=t.length>3&&typeof m=="function"?(h--,m):i,C&&It(o[0],o[1],C)&&(m=h<3?i:m,h=1),r=We(r);++c<h;){var L=o[c];L&&t(r,L,c,m)}return r})}function X2(t,r){return function(o,c){if(o==null)return o;if(!Ft(o))return t(o,c);for(var h=o.length,m=r?h:-1,C=We(o);(r?m--:++m<h)&&c(C[m],m,C)!==!1;);return o}}function J2(t){return function(r,o,c){for(var h=-1,m=We(r),C=c(r),L=C.length;L--;){var A=C[t?L:++h];if(o(m[A],A,m)===!1)break}return r}}function Rw(t,r,o){var c=r&S,h=T1(t);function m(){var C=this&&this!==vt&&this instanceof m?h:t;return C.apply(c?o:this,arguments)}return m}function el(t){return function(r){r=Re(r);var o=Qr(r)?_n(r):i,c=o?o[0]:r.charAt(0),h=o?sr(o,1).join(""):r.slice(1);return c[t]()+h}}function r1(t){return function(r){return ko(Jl(Xl(r).replace(SC,"")),t,"")}}function T1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=t1(t.prototype),c=t.apply(o,r);return Je(c)?c:o}}function Bw(t,r,o){var c=T1(t);function h(){for(var m=arguments.length,C=T(m),L=m,A=i1(h);L--;)C[L]=arguments[L];var B=m<3&&C[0]!==A&&C[m-1]!==A?[]:nr(C,A);if(m-=B.length,m<o)return ol(t,r,ji,h.placeholder,i,C,B,i,i,o-m);var F=this&&this!==vt&&this instanceof h?c:t;return Ut(F,this,C)}return h}function tl(t){return function(r,o,c){var h=We(r);if(!Ft(r)){var m=le(o,3);r=_t(r),o=function(L){return m(h[L],L,h)}}var C=t(r,o,c);return C>-1?h[m?r[C]:C]:i}}function nl(t){return Zn(function(r){var o=r.length,c=o,h=an.prototype.thru;for(t&&r.reverse();c--;){var m=r[c];if(typeof m!="function")throw new on(u);if(h&&!C&&e0(m)=="wrapper")var C=new an([],!0)}for(c=C?c:o;++c<o;){m=r[c];var L=e0(m),A=L=="wrapper"?sa(m):i;A&&fa(A[0])&&A[1]==(O|R|G|W)&&!A[4].length&&A[9]==1?C=C[e0(A[0])].apply(C,A[3]):C=m.length==1&&fa(m)?C[L]():C.thru(m)}return function(){var B=arguments,F=B[0];if(C&&B.length==1&&pe(F))return C.plant(F).value();for(var K=0,q=o?r[K].apply(this,B):F;++K<o;)q=r[K].call(this,q);return q}})}function ji(t,r,o,c,h,m,C,L,A,B){var F=r&O,K=r&S,q=r&I,ie=r&(R|H),ce=r&Q,_e=q?i:T1(t);function se(){for(var xe=arguments.length,Se=T(xe),Vt=xe;Vt--;)Se[Vt]=arguments[Vt];if(ie)var Ot=i1(se),Qt=QC(Se,Ot);if(c&&(Se=j2(Se,c,h,ie)),m&&(Se=q2(Se,m,C,ie)),xe-=Qt,ie&&xe<B){var at=nr(Se,Ot);return ol(t,r,ji,se.placeholder,o,Se,at,L,A,B-xe)}var xn=K?o:this,Vn=q?xn[t]:t;return xe=Se.length,L?Se=rL(Se,L):ce&&xe>1&&Se.reverse(),F&&A<xe&&(Se.length=A),this&&this!==vt&&this instanceof se&&(Vn=_e||T1(Vn)),Vn.apply(xn,Se)}return se}function rl(t,r){return function(o,c){return fw(o,t,r(c),{})}}function qi(t,r){return function(o,c){var h;if(o===i&&c===i)return r;if(o!==i&&(h=o),c!==i){if(h===i)return c;typeof o=="string"||typeof c=="string"?(o=Yt(o),c=Yt(c)):(o=K2(o),c=K2(c)),h=t(o,c)}return h}}function ra(t){return Zn(function(r){return r=Ve(r,Ht(le())),ve(function(o){var c=this;return t(r,function(h){return Ut(h,c,o)})})})}function Xi(t,r){r=r===i?" ":Yt(r);var o=r.length;if(o<2)return o?jo(r,t):r;var c=jo(r,Fi(t/jr(r)));return Qr(r)?sr(_n(c),0,t).join(""):c.slice(0,t)}function Fw(t,r,o,c){var h=r&S,m=T1(t);function C(){for(var L=-1,A=arguments.length,B=-1,F=c.length,K=T(F+A),q=this&&this!==vt&&this instanceof C?m:t;++B<F;)K[B]=c[B];for(;A--;)K[B++]=arguments[++L];return Ut(q,h?o:this,K)}return C}function il(t){return function(r,o,c){return c&&typeof c!="number"&&It(r,o,c)&&(o=c=i),r=Gn(r),o===i?(o=r,r=0):o=Gn(o),c=c===i?r<o?1:-1:Gn(c),ww(r,o,c,t)}}function Ji(t){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=un(r),o=un(o)),t(r,o)}}function ol(t,r,o,c,h,m,C,L,A,B){var F=r&R,K=F?C:i,q=F?i:C,ie=F?m:i,ce=F?i:m;r|=F?G:U,r&=~(F?U:G),r&D||(r&=~(S|I));var _e=[t,r,h,ie,K,ce,q,L,A,B],se=o.apply(i,_e);return fa(t)&&yl(se,_e),se.placeholder=c,_l(se,t,r)}function ia(t){var r=ht[t];return function(o,c){if(o=un(o),c=c==null?0:Lt(ye(c),292),c&&_2(o)){var h=(Re(o)+"e").split("e"),m=r(h[0]+"e"+(+h[1]+c));return h=(Re(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-c))}return r(o)}}var zw=Jr&&1/Ai(new Jr([,-0]))[1]==rt?function(t){return new Jr(t)}:ka;function al(t){return function(r){var o=$t(r);return o==ut?Eo(r):o==j?nx(r):VC(r,t(r))}}function Un(t,r,o,c,h,m,C,L){var A=r&I;if(!A&&typeof t!="function")throw new on(u);var B=c?c.length:0;if(B||(r&=~(G|U),c=h=i),C=C===i?C:gt(ye(C),0),L=L===i?L:ye(L),B-=h?h.length:0,r&U){var F=c,K=h;c=h=i}var q=A?i:sa(t),ie=[t,r,o,c,h,F,K,m,C,L];if(q&&eL(ie,q),t=ie[0],r=ie[1],o=ie[2],c=ie[3],h=ie[4],L=ie[9]=ie[9]===i?A?0:t.length:gt(ie[9]-B,0),!L&&r&(R|H)&&(r&=~(R|H)),!r||r==S)var ce=Rw(t,r,o);else r==R||r==H?ce=Bw(t,r,L):(r==G||r==(S|G))&&!h.length?ce=Fw(t,r,o,c):ce=ji.apply(i,ie);var _e=q?N2:yl;return _l(_e(ce,ie),t,r)}function sl(t,r,o,c){return t===i||Cn(t,Xr[o])&&!De.call(c,o)?r:t}function ll(t,r,o,c,h,m){return Je(t)&&Je(r)&&(m.set(r,t),Yi(t,r,i,ll,m),m.delete(r)),t}function Nw(t){return P1(t)?i:t}function cl(t,r,o,c,h,m){var C=o&x,L=t.length,A=r.length;if(L!=A&&!(C&&A>L))return!1;var B=m.get(t),F=m.get(r);if(B&&F)return B==r&&F==t;var K=-1,q=!0,ie=o&$?new yr:i;for(m.set(t,r),m.set(r,t);++K<L;){var ce=t[K],_e=r[K];if(c)var se=C?c(_e,ce,K,r,t,m):c(ce,_e,K,t,r,m);if(se!==i){if(se)continue;q=!1;break}if(ie){if(!Ao(r,function(xe,Se){if(!v1(ie,Se)&&(ce===xe||h(ce,xe,o,c,m)))return ie.push(Se)})){q=!1;break}}else if(!(ce===_e||h(ce,_e,o,c,m))){q=!1;break}}return m.delete(t),m.delete(r),q}function Ww(t,r,o,c,h,m,C){switch(o){case Ne:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Dt:return!(t.byteLength!=r.byteLength||!m(new Ei(t),new Ei(r)));case Xe:case Mt:case Te:return Cn(+t,+r);case mn:return t.name==r.name&&t.message==r.message;case E:case $e:return t==r+"";case ut:var L=Eo;case j:var A=c&x;if(L||(L=Ai),t.size!=r.size&&!A)return!1;var B=C.get(t);if(B)return B==r;c|=$,C.set(t,r);var F=cl(L(t),L(r),c,h,m,C);return C.delete(t),F;case Ce:if(L1)return L1.call(t)==L1.call(r)}return!1}function Kw(t,r,o,c,h,m){var C=o&x,L=oa(t),A=L.length,B=oa(r),F=B.length;if(A!=F&&!C)return!1;for(var K=A;K--;){var q=L[K];if(!(C?q in r:De.call(r,q)))return!1}var ie=m.get(t),ce=m.get(r);if(ie&&ce)return ie==r&&ce==t;var _e=!0;m.set(t,r),m.set(r,t);for(var se=C;++K<A;){q=L[K];var xe=t[q],Se=r[q];if(c)var Vt=C?c(Se,xe,q,r,t,m):c(xe,Se,q,t,r,m);if(!(Vt===i?xe===Se||h(xe,Se,o,c,m):Vt)){_e=!1;break}se||(se=q=="constructor")}if(_e&&!se){var Ot=t.constructor,Qt=r.constructor;Ot!=Qt&&"constructor"in t&&"constructor"in r&&!(typeof Ot=="function"&&Ot instanceof Ot&&typeof Qt=="function"&&Qt instanceof Qt)&&(_e=!1)}return m.delete(t),m.delete(r),_e}function Zn(t){return ha(pl(t,i,Ll),t+"")}function oa(t){return M2(t,_t,ca)}function aa(t){return M2(t,zt,ul)}var sa=Ni?function(t){return Ni.get(t)}:ka;function e0(t){for(var r=t.name+"",o=e1[r],c=De.call(e1,r)?o.length:0;c--;){var h=o[c],m=h.func;if(m==null||m==t)return h.name}return r}function i1(t){var r=De.call(p,"placeholder")?p:t;return r.placeholder}function le(){var t=p.iteratee||$a;return t=t===$a?O2:t,arguments.length?t(arguments[0],arguments[1]):t}function t0(t,r){var o=t.__data__;return jw(r)?o[typeof r=="string"?"string":"hash"]:o.map}function la(t){for(var r=_t(t),o=r.length;o--;){var c=r[o],h=t[c];r[o]=[c,h,hl(h)]}return r}function br(t,r){var o=JC(t,r);return I2(o)?o:i}function Uw(t){var r=De.call(t,pr),o=t[pr];try{t[pr]=i;var c=!0}catch{}var h=Oi.call(t);return c&&(r?t[pr]=o:delete t[pr]),h}var ca=Ro?function(t){return t==null?[]:(t=We(t),er(Ro(t),function(r){return m2.call(t,r)}))}:Aa,ul=Ro?function(t){for(var r=[];t;)tr(r,ca(t)),t=Di(t);return r}:Aa,$t=Tt;(Bo&&$t(new Bo(new ArrayBuffer(1)))!=Ne||C1&&$t(new C1)!=ut||Fo&&$t(Fo.resolve())!=mt||Jr&&$t(new Jr)!=j||x1&&$t(new x1)!=dt)&&($t=function(t){var r=Tt(t),o=r==Ge?t.constructor:i,c=o?Cr(o):"";if(c)switch(c){case $x:return Ne;case Sx:return ut;case kx:return mt;case Ax:return j;case Mx:return dt}return r});function Zw(t,r,o){for(var c=-1,h=o.length;++c<h;){var m=o[c],C=m.size;switch(m.type){case"drop":t+=C;break;case"dropRight":r-=C;break;case"take":r=Lt(r,t+C);break;case"takeRight":t=gt(t,r-C);break}}return{start:t,end:r}}function Hw(t){var r=t.match(Xb);return r?r[1].split(Jb):[]}function fl(t,r,o){r=ar(r,t);for(var c=-1,h=r.length,m=!1;++c<h;){var C=bn(r[c]);if(!(m=t!=null&&o(t,C)))break;t=t[C]}return m||++c!=h?m:(h=t==null?0:t.length,!!h&&l0(h)&&Hn(C,h)&&(pe(t)||xr(t)))}function Yw(t){var r=t.length,o=new t.constructor(r);return r&&typeof t[0]=="string"&&De.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function dl(t){return typeof t.constructor=="function"&&!I1(t)?t1(Di(t)):{}}function Gw(t,r,o){var c=t.constructor;switch(r){case Dt:return na(t);case Xe:case Mt:return new c(+t);case Ne:return Tw(t,o);case Rt:case nn:case te:case ft:case Ee:case yt:case Jn:case Yr:case mo:return V2(t,o);case ut:return new c;case Te:case $e:return new c(t);case E:return Iw(t);case j:return new c;case Ce:return Ow(t)}}function Vw(t,r){var o=r.length;if(!o)return t;var c=o-1;return r[c]=(o>1?"& ":"")+r[c],r=r.join(o>2?", ":" "),t.replace(qb,`{
|
|
8
|
+
*/E1.exports,function(e,n){(function(){var i,a="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",_=500,y="__lodash_placeholder__",b=1,k=2,v=4,w=1,L=2,$=1,T=2,O=4,E=8,U=16,X=32,Y=64,I=128,z=256,V=512,Q=30,ne="...",ee=800,Te=16,ae=1,_t=2,wt=3,rt=1/0,Je=9007199254740991,Le=17976931348623157e292,Ge=0/0,ze=4294967295,et=ze-1,oe=ze>>>1,ke=[["ary",I],["bind",$],["bindKey",T],["curry",E],["curryRight",U],["flip",V],["partial",X],["partialRight",Y],["rearg",z]],ue="[object Arguments]",Ie="[object Array]",it="[object AsyncFunction]",qe="[object Boolean]",Tt="[object Date]",en="[object DOMException]",zn="[object Error]",kn="[object Function]",Xn="[object GeneratorFunction]",pt="[object Map]",Be="[object Number]",Dt="[object Null]",tt="[object Object]",Lt="[object Promise]",tn="[object Proxy]",R="[object RegExp]",j="[object Set]",$e="[object String]",Ce="[object Symbol]",Pe="[object Undefined]",dt="[object WeakMap]",pn="[object WeakSet]",Rt="[object ArrayBuffer]",We="[object DataView]",Bt="[object Float32Array]",nn="[object Float64Array]",te="[object Int8Array]",ft="[object Int16Array]",Ee="[object Int32Array]",mt="[object Uint8Array]",Jn="[object Uint8ClampedArray]",Gr="[object Uint16Array]",yo="[object Uint32Array]",Ub=/\b__p \+= '';/g,Zb=/\b(__p \+=) '' \+/g,Hb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L5=/&(?:amp|lt|gt|quot|#39);/g,$5=/[&<>"']/g,Yb=RegExp(L5.source),Gb=RegExp($5.source),Vb=/<%-([\s\S]+?)%>/g,Qb=/<%([\s\S]+?)%>/g,S5=/<%=([\s\S]+?)%>/g,jb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qb=/^\w*$/,Xb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_o=/[\\^$.*+?()[\]{}|]/g,Jb=RegExp(_o.source),vo=/^\s+/,eC=/\s/,tC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nC=/\{\n\/\* \[wrapped with (.+)\] \*/,rC=/,? & /,iC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,k5=/[()=,{}\[\]\/\s]/,oC=/\\(\\)?/g,aC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,A5=/\w*$/,sC=/^[-+]0x[0-9a-f]+$/i,lC=/^0b[01]+$/i,cC=/^\[object .+?Constructor\]$/,uC=/^0o[0-7]+$/i,fC=/^(?:0|[1-9]\d*)$/,dC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Li=/($^)/,hC=/['\n\r\u2028\u2029\\]/g,$i="\\ud800-\\udfff",gC="\\u0300-\\u036f",pC="\\ufe20-\\ufe2f",mC="\\u20d0-\\u20ff",M5=gC+pC+mC,T5="\\u2700-\\u27bf",P5="a-z\\xdf-\\xf6\\xf8-\\xff",yC="\\xac\\xb1\\xd7\\xf7",_C="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vC="\\u2000-\\u206f",bC=" \\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",O5="A-Z\\xc0-\\xd6\\xd8-\\xde",I5="\\ufe0e\\ufe0f",E5=yC+_C+vC+bC,bo="['’]",CC="["+$i+"]",D5="["+E5+"]",Si="["+M5+"]",R5="\\d+",xC="["+T5+"]",B5="["+P5+"]",F5="[^"+$i+E5+R5+T5+P5+O5+"]",Co="\\ud83c[\\udffb-\\udfff]",wC="(?:"+Si+"|"+Co+")",z5="[^"+$i+"]",xo="(?:\\ud83c[\\udde6-\\uddff]){2}",wo="[\\ud800-\\udbff][\\udc00-\\udfff]",Vr="["+O5+"]",N5="\\u200d",W5="(?:"+B5+"|"+F5+")",LC="(?:"+Vr+"|"+F5+")",K5="(?:"+bo+"(?:d|ll|m|re|s|t|ve))?",U5="(?:"+bo+"(?:D|LL|M|RE|S|T|VE))?",Z5=wC+"?",H5="["+I5+"]?",$C="(?:"+N5+"(?:"+[z5,xo,wo].join("|")+")"+H5+Z5+")*",SC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Y5=H5+Z5+$C,AC="(?:"+[xC,xo,wo].join("|")+")"+Y5,MC="(?:"+[z5+Si+"?",Si,xo,wo,CC].join("|")+")",TC=RegExp(bo,"g"),PC=RegExp(Si,"g"),Lo=RegExp(Co+"(?="+Co+")|"+MC+Y5,"g"),OC=RegExp([Vr+"?"+B5+"+"+K5+"(?="+[D5,Vr,"$"].join("|")+")",LC+"+"+U5+"(?="+[D5,Vr+W5,"$"].join("|")+")",Vr+"?"+W5+"+"+K5,Vr+"+"+U5,kC,SC,R5,AC].join("|"),"g"),IC=RegExp("["+N5+$i+M5+I5+"]"),EC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,DC=["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"],RC=-1,Ye={};Ye[Bt]=Ye[nn]=Ye[te]=Ye[ft]=Ye[Ee]=Ye[mt]=Ye[Jn]=Ye[Gr]=Ye[yo]=!0,Ye[ue]=Ye[Ie]=Ye[Rt]=Ye[qe]=Ye[We]=Ye[Tt]=Ye[zn]=Ye[kn]=Ye[pt]=Ye[Be]=Ye[tt]=Ye[R]=Ye[j]=Ye[$e]=Ye[dt]=!1;var Ze={};Ze[ue]=Ze[Ie]=Ze[Rt]=Ze[We]=Ze[qe]=Ze[Tt]=Ze[Bt]=Ze[nn]=Ze[te]=Ze[ft]=Ze[Ee]=Ze[pt]=Ze[Be]=Ze[tt]=Ze[R]=Ze[j]=Ze[$e]=Ze[Ce]=Ze[mt]=Ze[Jn]=Ze[Gr]=Ze[yo]=!0,Ze[zn]=Ze[kn]=Ze[dt]=!1;var BC={À:"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"},FC={"&":"&","<":"<",">":">",'"':""","'":"'"},zC={"&":"&","<":"<",">":">",""":'"',"'":"'"},NC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WC=parseFloat,KC=parseInt,G5=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,UC=typeof self=="object"&&self&&self.Object===Object&&self,vt=G5||UC||Function("return this")(),$o=n&&!n.nodeType&&n,gr=$o&&!0&&e&&!e.nodeType&&e,V5=gr&&gr.exports===$o,So=V5&&G5.process,rn=function(){try{var A=gr&&gr.require&&gr.require("util").types;return A||So&&So.binding&&So.binding("util")}catch{}}(),Q5=rn&&rn.isArrayBuffer,j5=rn&&rn.isDate,q5=rn&&rn.isMap,X5=rn&&rn.isRegExp,J5=rn&&rn.isSet,e2=rn&&rn.isTypedArray;function Ut(A,D,P){switch(P.length){case 0:return A.call(D);case 1:return A.call(D,P[0]);case 2:return A.call(D,P[0],P[1]);case 3:return A.call(D,P[0],P[1],P[2])}return A.apply(D,P)}function ZC(A,D,P,J){for(var de=-1,Oe=A==null?0:A.length;++de<Oe;){var ht=A[de];D(J,ht,P(ht),A)}return J}function Zt(A,D){for(var P=-1,J=A==null?0:A.length;++P<J&&D(A[P],P,A)!==!1;);return A}function HC(A,D){for(var P=A==null?0:A.length;P--&&D(A[P],P,A)!==!1;);return A}function t2(A,D){for(var P=-1,J=A==null?0:A.length;++P<J;)if(!D(A[P],P,A))return!1;return!0}function er(A,D){for(var P=-1,J=A==null?0:A.length,de=0,Oe=[];++P<J;){var ht=A[P];D(ht,P,A)&&(Oe[de++]=ht)}return Oe}function ki(A,D){var P=A==null?0:A.length;return!!P&&Qr(A,D,0)>-1}function ko(A,D,P){for(var J=-1,de=A==null?0:A.length;++J<de;)if(P(D,A[J]))return!0;return!1}function Ve(A,D){for(var P=-1,J=A==null?0:A.length,de=Array(J);++P<J;)de[P]=D(A[P],P,A);return de}function tr(A,D){for(var P=-1,J=D.length,de=A.length;++P<J;)A[de+P]=D[P];return A}function Ao(A,D,P,J){var de=-1,Oe=A==null?0:A.length;for(J&&Oe&&(P=A[++de]);++de<Oe;)P=D(P,A[de],de,A);return P}function YC(A,D,P,J){var de=A==null?0:A.length;for(J&&de&&(P=A[--de]);de--;)P=D(P,A[de],de,A);return P}function Mo(A,D){for(var P=-1,J=A==null?0:A.length;++P<J;)if(D(A[P],P,A))return!0;return!1}var GC=To("length");function VC(A){return A.split("")}function QC(A){return A.match(iC)||[]}function n2(A,D,P){var J;return P(A,function(de,Oe,ht){if(D(de,Oe,ht))return J=Oe,!1}),J}function Ai(A,D,P,J){for(var de=A.length,Oe=P+(J?1:-1);J?Oe--:++Oe<de;)if(D(A[Oe],Oe,A))return Oe;return-1}function Qr(A,D,P){return D===D?sx(A,D,P):Ai(A,r2,P)}function jC(A,D,P,J){for(var de=P-1,Oe=A.length;++de<Oe;)if(J(A[de],D))return de;return-1}function r2(A){return A!==A}function i2(A,D){var P=A==null?0:A.length;return P?Oo(A,D)/P:Ge}function To(A){return function(D){return D==null?i:D[A]}}function Po(A){return function(D){return A==null?i:A[D]}}function o2(A,D,P,J,de){return de(A,function(Oe,ht,Ke){P=J?(J=!1,Oe):D(P,Oe,ht,Ke)}),P}function qC(A,D){var P=A.length;for(A.sort(D);P--;)A[P]=A[P].value;return A}function Oo(A,D){for(var P,J=-1,de=A.length;++J<de;){var Oe=D(A[J]);Oe!==i&&(P=P===i?Oe:P+Oe)}return P}function Io(A,D){for(var P=-1,J=Array(A);++P<A;)J[P]=D(P);return J}function XC(A,D){return Ve(D,function(P){return[P,A[P]]})}function a2(A){return A&&A.slice(0,u2(A)+1).replace(vo,"")}function Ht(A){return function(D){return A(D)}}function Eo(A,D){return Ve(D,function(P){return A[P]})}function v1(A,D){return A.has(D)}function s2(A,D){for(var P=-1,J=A.length;++P<J&&Qr(D,A[P],0)>-1;);return P}function l2(A,D){for(var P=A.length;P--&&Qr(D,A[P],0)>-1;);return P}function JC(A,D){for(var P=A.length,J=0;P--;)A[P]===D&&++J;return J}var ex=Po(BC),tx=Po(FC);function nx(A){return"\\"+NC[A]}function rx(A,D){return A==null?i:A[D]}function jr(A){return IC.test(A)}function ix(A){return EC.test(A)}function ox(A){for(var D,P=[];!(D=A.next()).done;)P.push(D.value);return P}function Do(A){var D=-1,P=Array(A.size);return A.forEach(function(J,de){P[++D]=[de,J]}),P}function c2(A,D){return function(P){return A(D(P))}}function nr(A,D){for(var P=-1,J=A.length,de=0,Oe=[];++P<J;){var ht=A[P];(ht===D||ht===y)&&(A[P]=y,Oe[de++]=P)}return Oe}function Mi(A){var D=-1,P=Array(A.size);return A.forEach(function(J){P[++D]=J}),P}function ax(A){var D=-1,P=Array(A.size);return A.forEach(function(J){P[++D]=[J,J]}),P}function sx(A,D,P){for(var J=P-1,de=A.length;++J<de;)if(A[J]===D)return J;return-1}function lx(A,D,P){for(var J=P+1;J--;)if(A[J]===D)return J;return J}function qr(A){return jr(A)?ux(A):GC(A)}function mn(A){return jr(A)?fx(A):VC(A)}function u2(A){for(var D=A.length;D--&&eC.test(A.charAt(D)););return D}var cx=Po(zC);function ux(A){for(var D=Lo.lastIndex=0;Lo.test(A);)++D;return D}function fx(A){return A.match(Lo)||[]}function dx(A){return A.match(OC)||[]}var hx=function A(D){D=D==null?vt:Xr.defaults(vt.Object(),D,Xr.pick(vt,DC));var P=D.Array,J=D.Date,de=D.Error,Oe=D.Function,ht=D.Math,Ke=D.Object,Ro=D.RegExp,gx=D.String,on=D.TypeError,Ti=P.prototype,px=Oe.prototype,Jr=Ke.prototype,Pi=D["__core-js_shared__"],Oi=px.toString,De=Jr.hasOwnProperty,mx=0,f2=function(){var t=/[^.]+$/.exec(Pi&&Pi.keys&&Pi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ii=Jr.toString,yx=Oi.call(Ke),_x=vt._,vx=Ro("^"+Oi.call(De).replace(_o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ei=V5?D.Buffer:i,rr=D.Symbol,Di=D.Uint8Array,d2=Ei?Ei.allocUnsafe:i,Ri=c2(Ke.getPrototypeOf,Ke),h2=Ke.create,g2=Jr.propertyIsEnumerable,Bi=Ti.splice,p2=rr?rr.isConcatSpreadable:i,b1=rr?rr.iterator:i,pr=rr?rr.toStringTag:i,Fi=function(){try{var t=br(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),bx=D.clearTimeout!==vt.clearTimeout&&D.clearTimeout,Cx=J&&J.now!==vt.Date.now&&J.now,xx=D.setTimeout!==vt.setTimeout&&D.setTimeout,zi=ht.ceil,Ni=ht.floor,Bo=Ke.getOwnPropertySymbols,wx=Ei?Ei.isBuffer:i,m2=D.isFinite,Lx=Ti.join,$x=c2(Ke.keys,Ke),gt=ht.max,$t=ht.min,Sx=J.now,kx=D.parseInt,y2=ht.random,Ax=Ti.reverse,Fo=br(D,"DataView"),C1=br(D,"Map"),zo=br(D,"Promise"),e1=br(D,"Set"),x1=br(D,"WeakMap"),w1=br(Ke,"create"),Wi=x1&&new x1,t1={},Mx=Cr(Fo),Tx=Cr(C1),Px=Cr(zo),Ox=Cr(e1),Ix=Cr(x1),Ki=rr?rr.prototype:i,L1=Ki?Ki.valueOf:i,_2=Ki?Ki.toString:i;function p(t){if(nt(t)&&!pe(t)&&!(t instanceof we)){if(t instanceof an)return t;if(De.call(t,"__wrapped__"))return vl(t)}return new an(t)}var n1=function(){function t(){}return function(r){if(!Xe(r))return{};if(h2)return h2(r);t.prototype=r;var o=new t;return t.prototype=i,o}}();function Ui(){}function an(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:Vb,evaluate:Qb,interpolate:S5,variable:"",imports:{_:p}},p.prototype=Ui.prototype,p.prototype.constructor=p,an.prototype=n1(Ui.prototype),an.prototype.constructor=an;function we(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ze,this.__views__=[]}function Ex(){var t=new we(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function Dx(){if(this.__filtered__){var t=new we(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Rx(){var t=this.__wrapped__.value(),r=this.__dir__,o=pe(t),u=r<0,h=o?t.length:0,m=Vw(0,h,this.__views__),x=m.start,S=m.end,M=S-x,B=u?S:x-1,F=this.__iteratees__,K=F.length,q=0,re=$t(M,this.__takeCount__);if(!o||!u&&h==M&&re==M)return K2(t,this.__actions__);var ce=[];e:for(;M--&&q<re;){B+=r;for(var _e=-1,se=t[B];++_e<K;){var xe=F[_e],Se=xe.iteratee,Vt=xe.type,It=Se(se);if(Vt==_t)se=It;else if(!It){if(Vt==ae)continue e;break e}}ce[q++]=se}return ce}we.prototype=n1(Ui.prototype),we.prototype.constructor=we;function mr(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function Bx(){this.__data__=w1?w1(null):{},this.size=0}function Fx(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function zx(t){var r=this.__data__;if(w1){var o=r[t];return o===g?i:o}return De.call(r,t)?r[t]:i}function Nx(t){var r=this.__data__;return w1?r[t]!==i:De.call(r,t)}function Wx(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=w1&&r===i?g:r,this}mr.prototype.clear=Bx,mr.prototype.delete=Fx,mr.prototype.get=zx,mr.prototype.has=Nx,mr.prototype.set=Wx;function Nn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function Kx(){this.__data__=[],this.size=0}function Ux(t){var r=this.__data__,o=Zi(r,t);if(o<0)return!1;var u=r.length-1;return o==u?r.pop():Bi.call(r,o,1),--this.size,!0}function Zx(t){var r=this.__data__,o=Zi(r,t);return o<0?i:r[o][1]}function Hx(t){return Zi(this.__data__,t)>-1}function Yx(t,r){var o=this.__data__,u=Zi(o,t);return u<0?(++this.size,o.push([t,r])):o[u][1]=r,this}Nn.prototype.clear=Kx,Nn.prototype.delete=Ux,Nn.prototype.get=Zx,Nn.prototype.has=Hx,Nn.prototype.set=Yx;function Wn(t){var r=-1,o=t==null?0:t.length;for(this.clear();++r<o;){var u=t[r];this.set(u[0],u[1])}}function Gx(){this.size=0,this.__data__={hash:new mr,map:new(C1||Nn),string:new mr}}function Vx(t){var r=n0(this,t).delete(t);return this.size-=r?1:0,r}function Qx(t){return n0(this,t).get(t)}function jx(t){return n0(this,t).has(t)}function qx(t,r){var o=n0(this,t),u=o.size;return o.set(t,r),this.size+=o.size==u?0:1,this}Wn.prototype.clear=Gx,Wn.prototype.delete=Vx,Wn.prototype.get=Qx,Wn.prototype.has=jx,Wn.prototype.set=qx;function yr(t){var r=-1,o=t==null?0:t.length;for(this.__data__=new Wn;++r<o;)this.add(t[r])}function Xx(t){return this.__data__.set(t,g),this}function Jx(t){return this.__data__.has(t)}yr.prototype.add=yr.prototype.push=Xx,yr.prototype.has=Jx;function yn(t){var r=this.__data__=new Nn(t);this.size=r.size}function ew(){this.__data__=new Nn,this.size=0}function tw(t){var r=this.__data__,o=r.delete(t);return this.size=r.size,o}function nw(t){return this.__data__.get(t)}function rw(t){return this.__data__.has(t)}function iw(t,r){var o=this.__data__;if(o instanceof Nn){var u=o.__data__;if(!C1||u.length<s-1)return u.push([t,r]),this.size=++o.size,this;o=this.__data__=new Wn(u)}return o.set(t,r),this.size=o.size,this}yn.prototype.clear=ew,yn.prototype.delete=tw,yn.prototype.get=nw,yn.prototype.has=rw,yn.prototype.set=iw;function v2(t,r){var o=pe(t),u=!o&&xr(t),h=!o&&!u&&lr(t),m=!o&&!u&&!h&&a1(t),x=o||u||h||m,S=x?Io(t.length,gx):[],M=S.length;for(var B in t)(r||De.call(t,B))&&!(x&&(B=="length"||h&&(B=="offset"||B=="parent")||m&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Zn(B,M)))&&S.push(B);return S}function b2(t){var r=t.length;return r?t[jo(0,r-1)]:i}function ow(t,r){return r0(Ft(t),_r(r,0,t.length))}function aw(t){return r0(Ft(t))}function No(t,r,o){(o!==i&&!vn(t[r],o)||o===i&&!(r in t))&&An(t,r,o)}function $1(t,r,o){var u=t[r];(!(De.call(t,r)&&vn(u,o))||o===i&&!(r in t))&&An(t,r,o)}function Zi(t,r){for(var o=t.length;o--;)if(vn(t[o][0],r))return o;return-1}function sw(t,r,o,u){return ir(t,function(h,m,x){r(u,h,o(h),x)}),u}function C2(t,r){return t&&Tn(r,yt(r),t)}function lw(t,r){return t&&Tn(r,Nt(r),t)}function An(t,r,o){r=="__proto__"&&Fi?Fi(t,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[r]=o}function Wo(t,r){for(var o=-1,u=r.length,h=P(u),m=t==null;++o<u;)h[o]=m?i:xa(t,r[o]);return h}function _r(t,r,o){return t===t&&(o!==i&&(t=t<=o?t:o),r!==i&&(t=t>=r?t:r)),t}function sn(t,r,o,u,h,m){var x,S=r&b,M=r&k,B=r&v;if(o&&(x=h?o(t,u,h,m):o(t)),x!==i)return x;if(!Xe(t))return t;var F=pe(t);if(F){if(x=jw(t),!S)return Ft(t,x)}else{var K=St(t),q=K==kn||K==Xn;if(lr(t))return H2(t,S);if(K==tt||K==ue||q&&!h){if(x=M||q?{}:ul(t),!S)return M?zw(t,lw(x,t)):Fw(t,C2(x,t))}else{if(!Ze[K])return h?t:{};x=qw(t,K,S)}}m||(m=new yn);var re=m.get(t);if(re)return re;m.set(t,x),zl(t)?t.forEach(function(se){x.add(sn(se,r,o,se,t,m))}):Bl(t)&&t.forEach(function(se,xe){x.set(xe,sn(se,r,o,xe,t,m))});var ce=B?M?sa:aa:M?Nt:yt,_e=F?i:ce(t);return Zt(_e||t,function(se,xe){_e&&(xe=se,se=t[xe]),$1(x,xe,sn(se,r,o,xe,t,m))}),x}function cw(t){var r=yt(t);return function(o){return x2(o,t,r)}}function x2(t,r,o){var u=o.length;if(t==null)return!u;for(t=Ke(t);u--;){var h=o[u],m=r[h],x=t[h];if(x===i&&!(h in t)||!m(x))return!1}return!0}function w2(t,r,o){if(typeof t!="function")throw new on(c);return O1(function(){t.apply(i,o)},r)}function S1(t,r,o,u){var h=-1,m=ki,x=!0,S=t.length,M=[],B=r.length;if(!S)return M;o&&(r=Ve(r,Ht(o))),u?(m=ko,x=!1):r.length>=s&&(m=v1,x=!1,r=new yr(r));e:for(;++h<S;){var F=t[h],K=o==null?F:o(F);if(F=u||F!==0?F:0,x&&K===K){for(var q=B;q--;)if(r[q]===K)continue e;M.push(F)}else m(r,K,u)||M.push(F)}return M}var ir=j2(Mn),L2=j2(Uo,!0);function uw(t,r){var o=!0;return ir(t,function(u,h,m){return o=!!r(u,h,m),o}),o}function Hi(t,r,o){for(var u=-1,h=t.length;++u<h;){var m=t[u],x=r(m);if(x!=null&&(S===i?x===x&&!Gt(x):o(x,S)))var S=x,M=m}return M}function fw(t,r,o,u){var h=t.length;for(o=ye(o),o<0&&(o=-o>h?0:h+o),u=u===i||u>h?h:ye(u),u<0&&(u+=h),u=o>u?0:Wl(u);o<u;)t[o++]=r;return t}function $2(t,r){var o=[];return ir(t,function(u,h,m){r(u,h,m)&&o.push(u)}),o}function bt(t,r,o,u,h){var m=-1,x=t.length;for(o||(o=Jw),h||(h=[]);++m<x;){var S=t[m];r>0&&o(S)?r>1?bt(S,r-1,o,u,h):tr(h,S):u||(h[h.length]=S)}return h}var Ko=q2(),S2=q2(!0);function Mn(t,r){return t&&Ko(t,r,yt)}function Uo(t,r){return t&&S2(t,r,yt)}function Yi(t,r){return er(r,function(o){return Hn(t[o])})}function vr(t,r){r=ar(r,t);for(var o=0,u=r.length;t!=null&&o<u;)t=t[_n(r[o++])];return o&&o==u?t:i}function k2(t,r,o){var u=r(t);return pe(t)?u:tr(u,o(t))}function Pt(t){return t==null?t===i?Pe:Dt:pr&&pr in Ke(t)?Gw(t):aL(t)}function Zo(t,r){return t>r}function dw(t,r){return t!=null&&De.call(t,r)}function hw(t,r){return t!=null&&r in Ke(t)}function gw(t,r,o){return t>=$t(r,o)&&t<gt(r,o)}function Ho(t,r,o){for(var u=o?ko:ki,h=t[0].length,m=t.length,x=m,S=P(m),M=1/0,B=[];x--;){var F=t[x];x&&r&&(F=Ve(F,Ht(r))),M=$t(F.length,M),S[x]=!o&&(r||h>=120&&F.length>=120)?new yr(x&&F):i}F=t[0];var K=-1,q=S[0];e:for(;++K<h&&B.length<M;){var re=F[K],ce=r?r(re):re;if(re=o||re!==0?re:0,!(q?v1(q,ce):u(B,ce,o))){for(x=m;--x;){var _e=S[x];if(!(_e?v1(_e,ce):u(t[x],ce,o)))continue e}q&&q.push(ce),B.push(re)}}return B}function pw(t,r,o,u){return Mn(t,function(h,m,x){r(u,o(h),m,x)}),u}function k1(t,r,o){r=ar(r,t),t=gl(t,r);var u=t==null?t:t[_n(cn(r))];return u==null?i:Ut(u,t,o)}function A2(t){return nt(t)&&Pt(t)==ue}function mw(t){return nt(t)&&Pt(t)==Rt}function yw(t){return nt(t)&&Pt(t)==Tt}function A1(t,r,o,u,h){return t===r?!0:t==null||r==null||!nt(t)&&!nt(r)?t!==t&&r!==r:_w(t,r,o,u,A1,h)}function _w(t,r,o,u,h,m){var x=pe(t),S=pe(r),M=x?Ie:St(t),B=S?Ie:St(r);M=M==ue?tt:M,B=B==ue?tt:B;var F=M==tt,K=B==tt,q=M==B;if(q&&lr(t)){if(!lr(r))return!1;x=!0,F=!1}if(q&&!F)return m||(m=new yn),x||a1(t)?sl(t,r,o,u,h,m):Hw(t,r,M,o,u,h,m);if(!(o&w)){var re=F&&De.call(t,"__wrapped__"),ce=K&&De.call(r,"__wrapped__");if(re||ce){var _e=re?t.value():t,se=ce?r.value():r;return m||(m=new yn),h(_e,se,o,u,m)}}return q?(m||(m=new yn),Yw(t,r,o,u,h,m)):!1}function vw(t){return nt(t)&&St(t)==pt}function Yo(t,r,o,u){var h=o.length,m=h,x=!u;if(t==null)return!m;for(t=Ke(t);h--;){var S=o[h];if(x&&S[2]?S[1]!==t[S[0]]:!(S[0]in t))return!1}for(;++h<m;){S=o[h];var M=S[0],B=t[M],F=S[1];if(x&&S[2]){if(B===i&&!(M in t))return!1}else{var K=new yn;if(u)var q=u(B,F,M,t,r,K);if(!(q===i?A1(F,B,w|L,u,K):q))return!1}}return!0}function M2(t){if(!Xe(t)||tL(t))return!1;var r=Hn(t)?vx:cC;return r.test(Cr(t))}function bw(t){return nt(t)&&Pt(t)==R}function Cw(t){return nt(t)&&St(t)==j}function xw(t){return nt(t)&&c0(t.length)&&!!Ye[Pt(t)]}function T2(t){return typeof t=="function"?t:t==null?Wt:typeof t=="object"?pe(t)?I2(t[0],t[1]):O2(t):Jl(t)}function Go(t){if(!P1(t))return $x(t);var r=[];for(var o in Ke(t))De.call(t,o)&&o!="constructor"&&r.push(o);return r}function ww(t){if(!Xe(t))return oL(t);var r=P1(t),o=[];for(var u in t)u=="constructor"&&(r||!De.call(t,u))||o.push(u);return o}function Vo(t,r){return t<r}function P2(t,r){var o=-1,u=zt(t)?P(t.length):[];return ir(t,function(h,m,x){u[++o]=r(h,m,x)}),u}function O2(t){var r=ca(t);return r.length==1&&r[0][2]?dl(r[0][0],r[0][1]):function(o){return o===t||Yo(o,t,r)}}function I2(t,r){return fa(t)&&fl(r)?dl(_n(t),r):function(o){var u=xa(o,t);return u===i&&u===r?wa(o,t):A1(r,u,w|L)}}function Gi(t,r,o,u,h){t!==r&&Ko(r,function(m,x){if(h||(h=new yn),Xe(m))Lw(t,r,x,o,Gi,u,h);else{var S=u?u(ha(t,x),m,x+"",t,r,h):i;S===i&&(S=m),No(t,x,S)}},Nt)}function Lw(t,r,o,u,h,m,x){var S=ha(t,o),M=ha(r,o),B=x.get(M);if(B){No(t,o,B);return}var F=m?m(S,M,o+"",t,r,x):i,K=F===i;if(K){var q=pe(M),re=!q&&lr(M),ce=!q&&!re&&a1(M);F=M,q||re||ce?pe(S)?F=S:ot(S)?F=Ft(S):re?(K=!1,F=H2(M,!0)):ce?(K=!1,F=Y2(M,!0)):F=[]:I1(M)||xr(M)?(F=S,xr(S)?F=Kl(S):(!Xe(S)||Hn(S))&&(F=ul(M))):K=!1}K&&(x.set(M,F),h(F,M,u,m,x),x.delete(M)),No(t,o,F)}function E2(t,r){var o=t.length;if(o)return r+=r<0?o:0,Zn(r,o)?t[r]:i}function D2(t,r,o){r.length?r=Ve(r,function(m){return pe(m)?function(x){return vr(x,m.length===1?m[0]:m)}:m}):r=[Wt];var u=-1;r=Ve(r,Ht(le()));var h=P2(t,function(m,x,S){var M=Ve(r,function(B){return B(m)});return{criteria:M,index:++u,value:m}});return qC(h,function(m,x){return Bw(m,x,o)})}function $w(t,r){return R2(t,r,function(o,u){return wa(t,u)})}function R2(t,r,o){for(var u=-1,h=r.length,m={};++u<h;){var x=r[u],S=vr(t,x);o(S,x)&&M1(m,ar(x,t),S)}return m}function Sw(t){return function(r){return vr(r,t)}}function Qo(t,r,o,u){var h=u?jC:Qr,m=-1,x=r.length,S=t;for(t===r&&(r=Ft(r)),o&&(S=Ve(t,Ht(o)));++m<x;)for(var M=0,B=r[m],F=o?o(B):B;(M=h(S,F,M,u))>-1;)S!==t&&Bi.call(S,M,1),Bi.call(t,M,1);return t}function B2(t,r){for(var o=t?r.length:0,u=o-1;o--;){var h=r[o];if(o==u||h!==m){var m=h;Zn(h)?Bi.call(t,h,1):Jo(t,h)}}return t}function jo(t,r){return t+Ni(y2()*(r-t+1))}function kw(t,r,o,u){for(var h=-1,m=gt(zi((r-t)/(o||1)),0),x=P(m);m--;)x[u?m:++h]=t,t+=o;return x}function qo(t,r){var o="";if(!t||r<1||r>Je)return o;do r%2&&(o+=t),r=Ni(r/2),r&&(t+=t);while(r);return o}function ve(t,r){return ga(hl(t,r,Wt),t+"")}function Aw(t){return b2(s1(t))}function Mw(t,r){var o=s1(t);return r0(o,_r(r,0,o.length))}function M1(t,r,o,u){if(!Xe(t))return t;r=ar(r,t);for(var h=-1,m=r.length,x=m-1,S=t;S!=null&&++h<m;){var M=_n(r[h]),B=o;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=x){var F=S[M];B=u?u(F,M,S):i,B===i&&(B=Xe(F)?F:Zn(r[h+1])?[]:{})}$1(S,M,B),S=S[M]}return t}var F2=Wi?function(t,r){return Wi.set(t,r),t}:Wt,Tw=Fi?function(t,r){return Fi(t,"toString",{configurable:!0,enumerable:!1,value:$a(r),writable:!0})}:Wt;function Pw(t){return r0(s1(t))}function ln(t,r,o){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),o=o>h?h:o,o<0&&(o+=h),h=r>o?0:o-r>>>0,r>>>=0;for(var m=P(h);++u<h;)m[u]=t[u+r];return m}function Ow(t,r){var o;return ir(t,function(u,h,m){return o=r(u,h,m),!o}),!!o}function Vi(t,r,o){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=oe){for(;u<h;){var m=u+h>>>1,x=t[m];x!==null&&!Gt(x)&&(o?x<=r:x<r)?u=m+1:h=m}return h}return Xo(t,r,Wt,o)}function Xo(t,r,o,u){var h=0,m=t==null?0:t.length;if(m===0)return 0;r=o(r);for(var x=r!==r,S=r===null,M=Gt(r),B=r===i;h<m;){var F=Ni((h+m)/2),K=o(t[F]),q=K!==i,re=K===null,ce=K===K,_e=Gt(K);if(x)var se=u||ce;else B?se=ce&&(u||q):S?se=ce&&q&&(u||!re):M?se=ce&&q&&!re&&(u||!_e):re||_e?se=!1:se=u?K<=r:K<r;se?h=F+1:m=F}return $t(m,et)}function z2(t,r){for(var o=-1,u=t.length,h=0,m=[];++o<u;){var x=t[o],S=r?r(x):x;if(!o||!vn(S,M)){var M=S;m[h++]=x===0?0:x}}return m}function N2(t){return typeof t=="number"?t:Gt(t)?Ge:+t}function Yt(t){if(typeof t=="string")return t;if(pe(t))return Ve(t,Yt)+"";if(Gt(t))return _2?_2.call(t):"";var r=t+"";return r=="0"&&1/t==-rt?"-0":r}function or(t,r,o){var u=-1,h=ki,m=t.length,x=!0,S=[],M=S;if(o)x=!1,h=ko;else if(m>=s){var B=r?null:Uw(t);if(B)return Mi(B);x=!1,h=v1,M=new yr}else M=r?[]:S;e:for(;++u<m;){var F=t[u],K=r?r(F):F;if(F=o||F!==0?F:0,x&&K===K){for(var q=M.length;q--;)if(M[q]===K)continue e;r&&M.push(K),S.push(F)}else h(M,K,o)||(M!==S&&M.push(K),S.push(F))}return S}function Jo(t,r){r=ar(r,t);var o=-1,u=r.length;if(!u)return!0;for(;++o<u;){var h=_n(r[o]);if(h==="__proto__"&&!De.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&o<u-1)return!1}var m=gl(t,r);return m==null||delete m[_n(cn(r))]}function W2(t,r,o,u){return M1(t,r,o(vr(t,r)),u)}function Qi(t,r,o,u){for(var h=t.length,m=u?h:-1;(u?m--:++m<h)&&r(t[m],m,t););return o?ln(t,u?0:m,u?m+1:h):ln(t,u?m+1:0,u?h:m)}function K2(t,r){var o=t;return o instanceof we&&(o=o.value()),Ao(r,function(u,h){return h.func.apply(h.thisArg,tr([u],h.args))},o)}function ea(t,r,o){var u=t.length;if(u<2)return u?or(t[0]):[];for(var h=-1,m=P(u);++h<u;)for(var x=t[h],S=-1;++S<u;)S!=h&&(m[h]=S1(m[h]||x,t[S],r,o));return or(bt(m,1),r,o)}function U2(t,r,o){for(var u=-1,h=t.length,m=r.length,x={};++u<h;){var S=u<m?r[u]:i;o(x,t[u],S)}return x}function ta(t){return ot(t)?t:[]}function na(t){return typeof t=="function"?t:Wt}function ar(t,r){return pe(t)?t:fa(t,r)?[t]:_l(Re(t))}var Iw=ve;function sr(t,r,o){var u=t.length;return o=o===i?u:o,!r&&o>=u?t:ln(t,r,o)}var Z2=bx||function(t){return vt.clearTimeout(t)};function H2(t,r){if(r)return t.slice();var o=t.length,u=d2?d2(o):new t.constructor(o);return t.copy(u),u}function ra(t){var r=new t.constructor(t.byteLength);return new Di(r).set(new Di(t)),r}function Ew(t,r){var o=r?ra(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function Dw(t){var r=new t.constructor(t.source,A5.exec(t));return r.lastIndex=t.lastIndex,r}function Rw(t){return L1?Ke(L1.call(t)):{}}function Y2(t,r){var o=r?ra(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function G2(t,r){if(t!==r){var o=t!==i,u=t===null,h=t===t,m=Gt(t),x=r!==i,S=r===null,M=r===r,B=Gt(r);if(!S&&!B&&!m&&t>r||m&&x&&M&&!S&&!B||u&&x&&M||!o&&M||!h)return 1;if(!u&&!m&&!B&&t<r||B&&o&&h&&!u&&!m||S&&o&&h||!x&&h||!M)return-1}return 0}function Bw(t,r,o){for(var u=-1,h=t.criteria,m=r.criteria,x=h.length,S=o.length;++u<x;){var M=G2(h[u],m[u]);if(M){if(u>=S)return M;var B=o[u];return M*(B=="desc"?-1:1)}}return t.index-r.index}function V2(t,r,o,u){for(var h=-1,m=t.length,x=o.length,S=-1,M=r.length,B=gt(m-x,0),F=P(M+B),K=!u;++S<M;)F[S]=r[S];for(;++h<x;)(K||h<m)&&(F[o[h]]=t[h]);for(;B--;)F[S++]=t[h++];return F}function Q2(t,r,o,u){for(var h=-1,m=t.length,x=-1,S=o.length,M=-1,B=r.length,F=gt(m-S,0),K=P(F+B),q=!u;++h<F;)K[h]=t[h];for(var re=h;++M<B;)K[re+M]=r[M];for(;++x<S;)(q||h<m)&&(K[re+o[x]]=t[h++]);return K}function Ft(t,r){var o=-1,u=t.length;for(r||(r=P(u));++o<u;)r[o]=t[o];return r}function Tn(t,r,o,u){var h=!o;o||(o={});for(var m=-1,x=r.length;++m<x;){var S=r[m],M=u?u(o[S],t[S],S,o,t):i;M===i&&(M=t[S]),h?An(o,S,M):$1(o,S,M)}return o}function Fw(t,r){return Tn(t,ua(t),r)}function zw(t,r){return Tn(t,ll(t),r)}function ji(t,r){return function(o,u){var h=pe(o)?ZC:sw,m=r?r():{};return h(o,t,le(u,2),m)}}function r1(t){return ve(function(r,o){var u=-1,h=o.length,m=h>1?o[h-1]:i,x=h>2?o[2]:i;for(m=t.length>3&&typeof m=="function"?(h--,m):i,x&&Ot(o[0],o[1],x)&&(m=h<3?i:m,h=1),r=Ke(r);++u<h;){var S=o[u];S&&t(r,S,u,m)}return r})}function j2(t,r){return function(o,u){if(o==null)return o;if(!zt(o))return t(o,u);for(var h=o.length,m=r?h:-1,x=Ke(o);(r?m--:++m<h)&&u(x[m],m,x)!==!1;);return o}}function q2(t){return function(r,o,u){for(var h=-1,m=Ke(r),x=u(r),S=x.length;S--;){var M=x[t?S:++h];if(o(m[M],M,m)===!1)break}return r}}function Nw(t,r,o){var u=r&$,h=T1(t);function m(){var x=this&&this!==vt&&this instanceof m?h:t;return x.apply(u?o:this,arguments)}return m}function X2(t){return function(r){r=Re(r);var o=jr(r)?mn(r):i,u=o?o[0]:r.charAt(0),h=o?sr(o,1).join(""):r.slice(1);return u[t]()+h}}function i1(t){return function(r){return Ao(ql(jl(r).replace(TC,"")),t,"")}}function T1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var o=n1(t.prototype),u=t.apply(o,r);return Xe(u)?u:o}}function Ww(t,r,o){var u=T1(t);function h(){for(var m=arguments.length,x=P(m),S=m,M=o1(h);S--;)x[S]=arguments[S];var B=m<3&&x[0]!==M&&x[m-1]!==M?[]:nr(x,M);if(m-=B.length,m<o)return rl(t,r,qi,h.placeholder,i,x,B,i,i,o-m);var F=this&&this!==vt&&this instanceof h?u:t;return Ut(F,this,x)}return h}function J2(t){return function(r,o,u){var h=Ke(r);if(!zt(r)){var m=le(o,3);r=yt(r),o=function(S){return m(h[S],S,h)}}var x=t(r,o,u);return x>-1?h[m?r[x]:x]:i}}function el(t){return Un(function(r){var o=r.length,u=o,h=an.prototype.thru;for(t&&r.reverse();u--;){var m=r[u];if(typeof m!="function")throw new on(c);if(h&&!x&&t0(m)=="wrapper")var x=new an([],!0)}for(u=x?u:o;++u<o;){m=r[u];var S=t0(m),M=S=="wrapper"?la(m):i;M&&da(M[0])&&M[1]==(I|E|X|z)&&!M[4].length&&M[9]==1?x=x[t0(M[0])].apply(x,M[3]):x=m.length==1&&da(m)?x[S]():x.thru(m)}return function(){var B=arguments,F=B[0];if(x&&B.length==1&&pe(F))return x.plant(F).value();for(var K=0,q=o?r[K].apply(this,B):F;++K<o;)q=r[K].call(this,q);return q}})}function qi(t,r,o,u,h,m,x,S,M,B){var F=r&I,K=r&$,q=r&T,re=r&(E|U),ce=r&V,_e=q?i:T1(t);function se(){for(var xe=arguments.length,Se=P(xe),Vt=xe;Vt--;)Se[Vt]=arguments[Vt];if(re)var It=o1(se),Qt=JC(Se,It);if(u&&(Se=V2(Se,u,h,re)),m&&(Se=Q2(Se,m,x,re)),xe-=Qt,re&&xe<B){var at=nr(Se,It);return rl(t,r,qi,se.placeholder,o,Se,at,S,M,B-xe)}var bn=K?o:this,Gn=q?bn[t]:t;return xe=Se.length,S?Se=sL(Se,S):ce&&xe>1&&Se.reverse(),F&&M<xe&&(Se.length=M),this&&this!==vt&&this instanceof se&&(Gn=_e||T1(Gn)),Gn.apply(bn,Se)}return se}function tl(t,r){return function(o,u){return pw(o,t,r(u),{})}}function Xi(t,r){return function(o,u){var h;if(o===i&&u===i)return r;if(o!==i&&(h=o),u!==i){if(h===i)return u;typeof o=="string"||typeof u=="string"?(o=Yt(o),u=Yt(u)):(o=N2(o),u=N2(u)),h=t(o,u)}return h}}function ia(t){return Un(function(r){return r=Ve(r,Ht(le())),ve(function(o){var u=this;return t(r,function(h){return Ut(h,u,o)})})})}function Ji(t,r){r=r===i?" ":Yt(r);var o=r.length;if(o<2)return o?qo(r,t):r;var u=qo(r,zi(t/qr(r)));return jr(r)?sr(mn(u),0,t).join(""):u.slice(0,t)}function Kw(t,r,o,u){var h=r&$,m=T1(t);function x(){for(var S=-1,M=arguments.length,B=-1,F=u.length,K=P(F+M),q=this&&this!==vt&&this instanceof x?m:t;++B<F;)K[B]=u[B];for(;M--;)K[B++]=arguments[++S];return Ut(q,h?o:this,K)}return x}function nl(t){return function(r,o,u){return u&&typeof u!="number"&&Ot(r,o,u)&&(o=u=i),r=Yn(r),o===i?(o=r,r=0):o=Yn(o),u=u===i?r<o?1:-1:Yn(u),kw(r,o,u,t)}}function e0(t){return function(r,o){return typeof r=="string"&&typeof o=="string"||(r=un(r),o=un(o)),t(r,o)}}function rl(t,r,o,u,h,m,x,S,M,B){var F=r&E,K=F?x:i,q=F?i:x,re=F?m:i,ce=F?i:m;r|=F?X:Y,r&=~(F?Y:X),r&O||(r&=~($|T));var _e=[t,r,h,re,K,ce,q,S,M,B],se=o.apply(i,_e);return da(t)&&pl(se,_e),se.placeholder=u,ml(se,t,r)}function oa(t){var r=ht[t];return function(o,u){if(o=un(o),u=u==null?0:$t(ye(u),292),u&&m2(o)){var h=(Re(o)+"e").split("e"),m=r(h[0]+"e"+(+h[1]+u));return h=(Re(m)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(o)}}var Uw=e1&&1/Mi(new e1([,-0]))[1]==rt?function(t){return new e1(t)}:Aa;function il(t){return function(r){var o=St(r);return o==pt?Do(r):o==j?ax(r):XC(r,t(r))}}function Kn(t,r,o,u,h,m,x,S){var M=r&T;if(!M&&typeof t!="function")throw new on(c);var B=u?u.length:0;if(B||(r&=~(X|Y),u=h=i),x=x===i?x:gt(ye(x),0),S=S===i?S:ye(S),B-=h?h.length:0,r&Y){var F=u,K=h;u=h=i}var q=M?i:la(t),re=[t,r,o,u,h,F,K,m,x,S];if(q&&iL(re,q),t=re[0],r=re[1],o=re[2],u=re[3],h=re[4],S=re[9]=re[9]===i?M?0:t.length:gt(re[9]-B,0),!S&&r&(E|U)&&(r&=~(E|U)),!r||r==$)var ce=Nw(t,r,o);else r==E||r==U?ce=Ww(t,r,S):(r==X||r==($|X))&&!h.length?ce=Kw(t,r,o,u):ce=qi.apply(i,re);var _e=q?F2:pl;return ml(_e(ce,re),t,r)}function ol(t,r,o,u){return t===i||vn(t,Jr[o])&&!De.call(u,o)?r:t}function al(t,r,o,u,h,m){return Xe(t)&&Xe(r)&&(m.set(r,t),Gi(t,r,i,al,m),m.delete(r)),t}function Zw(t){return I1(t)?i:t}function sl(t,r,o,u,h,m){var x=o&w,S=t.length,M=r.length;if(S!=M&&!(x&&M>S))return!1;var B=m.get(t),F=m.get(r);if(B&&F)return B==r&&F==t;var K=-1,q=!0,re=o&L?new yr:i;for(m.set(t,r),m.set(r,t);++K<S;){var ce=t[K],_e=r[K];if(u)var se=x?u(_e,ce,K,r,t,m):u(ce,_e,K,t,r,m);if(se!==i){if(se)continue;q=!1;break}if(re){if(!Mo(r,function(xe,Se){if(!v1(re,Se)&&(ce===xe||h(ce,xe,o,u,m)))return re.push(Se)})){q=!1;break}}else if(!(ce===_e||h(ce,_e,o,u,m))){q=!1;break}}return m.delete(t),m.delete(r),q}function Hw(t,r,o,u,h,m,x){switch(o){case We:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case Rt:return!(t.byteLength!=r.byteLength||!m(new Di(t),new Di(r)));case qe:case Tt:case Be:return vn(+t,+r);case zn:return t.name==r.name&&t.message==r.message;case R:case $e:return t==r+"";case pt:var S=Do;case j:var M=u&w;if(S||(S=Mi),t.size!=r.size&&!M)return!1;var B=x.get(t);if(B)return B==r;u|=L,x.set(t,r);var F=sl(S(t),S(r),u,h,m,x);return x.delete(t),F;case Ce:if(L1)return L1.call(t)==L1.call(r)}return!1}function Yw(t,r,o,u,h,m){var x=o&w,S=aa(t),M=S.length,B=aa(r),F=B.length;if(M!=F&&!x)return!1;for(var K=M;K--;){var q=S[K];if(!(x?q in r:De.call(r,q)))return!1}var re=m.get(t),ce=m.get(r);if(re&&ce)return re==r&&ce==t;var _e=!0;m.set(t,r),m.set(r,t);for(var se=x;++K<M;){q=S[K];var xe=t[q],Se=r[q];if(u)var Vt=x?u(Se,xe,q,r,t,m):u(xe,Se,q,t,r,m);if(!(Vt===i?xe===Se||h(xe,Se,o,u,m):Vt)){_e=!1;break}se||(se=q=="constructor")}if(_e&&!se){var It=t.constructor,Qt=r.constructor;It!=Qt&&"constructor"in t&&"constructor"in r&&!(typeof It=="function"&&It instanceof It&&typeof Qt=="function"&&Qt instanceof Qt)&&(_e=!1)}return m.delete(t),m.delete(r),_e}function Un(t){return ga(hl(t,i,xl),t+"")}function aa(t){return k2(t,yt,ua)}function sa(t){return k2(t,Nt,ll)}var la=Wi?function(t){return Wi.get(t)}:Aa;function t0(t){for(var r=t.name+"",o=t1[r],u=De.call(t1,r)?o.length:0;u--;){var h=o[u],m=h.func;if(m==null||m==t)return h.name}return r}function o1(t){var r=De.call(p,"placeholder")?p:t;return r.placeholder}function le(){var t=p.iteratee||Sa;return t=t===Sa?T2:t,arguments.length?t(arguments[0],arguments[1]):t}function n0(t,r){var o=t.__data__;return eL(r)?o[typeof r=="string"?"string":"hash"]:o.map}function ca(t){for(var r=yt(t),o=r.length;o--;){var u=r[o],h=t[u];r[o]=[u,h,fl(h)]}return r}function br(t,r){var o=rx(t,r);return M2(o)?o:i}function Gw(t){var r=De.call(t,pr),o=t[pr];try{t[pr]=i;var u=!0}catch{}var h=Ii.call(t);return u&&(r?t[pr]=o:delete t[pr]),h}var ua=Bo?function(t){return t==null?[]:(t=Ke(t),er(Bo(t),function(r){return g2.call(t,r)}))}:Ma,ll=Bo?function(t){for(var r=[];t;)tr(r,ua(t)),t=Ri(t);return r}:Ma,St=Pt;(Fo&&St(new Fo(new ArrayBuffer(1)))!=We||C1&&St(new C1)!=pt||zo&&St(zo.resolve())!=Lt||e1&&St(new e1)!=j||x1&&St(new x1)!=dt)&&(St=function(t){var r=Pt(t),o=r==tt?t.constructor:i,u=o?Cr(o):"";if(u)switch(u){case Mx:return We;case Tx:return pt;case Px:return Lt;case Ox:return j;case Ix:return dt}return r});function Vw(t,r,o){for(var u=-1,h=o.length;++u<h;){var m=o[u],x=m.size;switch(m.type){case"drop":t+=x;break;case"dropRight":r-=x;break;case"take":r=$t(r,t+x);break;case"takeRight":t=gt(t,r-x);break}}return{start:t,end:r}}function Qw(t){var r=t.match(nC);return r?r[1].split(rC):[]}function cl(t,r,o){r=ar(r,t);for(var u=-1,h=r.length,m=!1;++u<h;){var x=_n(r[u]);if(!(m=t!=null&&o(t,x)))break;t=t[x]}return m||++u!=h?m:(h=t==null?0:t.length,!!h&&c0(h)&&Zn(x,h)&&(pe(t)||xr(t)))}function jw(t){var r=t.length,o=new t.constructor(r);return r&&typeof t[0]=="string"&&De.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function ul(t){return typeof t.constructor=="function"&&!P1(t)?n1(Ri(t)):{}}function qw(t,r,o){var u=t.constructor;switch(r){case Rt:return ra(t);case qe:case Tt:return new u(+t);case We:return Ew(t,o);case Bt:case nn:case te:case ft:case Ee:case mt:case Jn:case Gr:case yo:return Y2(t,o);case pt:return new u;case Be:case $e:return new u(t);case R:return Dw(t);case j:return new u;case Ce:return Rw(t)}}function Xw(t,r){var o=r.length;if(!o)return t;var u=o-1;return r[u]=(o>1?"& ":"")+r[u],r=r.join(o>2?", ":" "),t.replace(tC,`{
|
|
9
9
|
/* [wrapped with `+r+`] */
|
|
10
|
-
`)}function Qw(t){return pe(t)||xr(t)||!!(y2&&t&&t[y2])}function Hn(t,r){var o=typeof t;return r=r??qe,!!r&&(o=="number"||o!="symbol"&&sC.test(t))&&t>-1&&t%1==0&&t<r}function It(t,r,o){if(!Je(o))return!1;var c=typeof r;return(c=="number"?Ft(o)&&Hn(r,o.length):c=="string"&&r in o)?Cn(o[r],t):!1}function ua(t,r){if(pe(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Gt(t)?!0:Gb.test(t)||!Yb.test(t)||r!=null&&t in We(r)}function jw(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function fa(t){var r=e0(t),o=p[r];if(typeof o!="function"||!(r in we.prototype))return!1;if(t===o)return!0;var c=sa(o);return!!c&&t===c[0]}function qw(t){return!!h2&&h2 in t}var Xw=Ti?Yn:Ma;function I1(t){var r=t&&t.constructor,o=typeof r=="function"&&r.prototype||Xr;return t===o}function hl(t){return t===t&&!Je(t)}function gl(t,r){return function(o){return o==null?!1:o[t]===r&&(r!==i||t in We(o))}}function Jw(t){var r=a0(t,function(c){return o.size===_&&o.clear(),c}),o=r.cache;return r}function eL(t,r){var o=t[1],c=r[1],h=o|c,m=h<(S|I|O),C=c==O&&o==R||c==O&&o==W&&t[7].length<=r[8]||c==(O|W)&&r[7].length<=r[8]&&o==R;if(!(m||C))return t;c&S&&(t[2]=r[2],h|=o&S?0:D);var L=r[3];if(L){var A=t[3];t[3]=A?j2(A,L,r[4]):L,t[4]=A?nr(t[3],y):r[4]}return L=r[5],L&&(A=t[5],t[5]=A?q2(A,L,r[6]):L,t[6]=A?nr(t[5],y):r[6]),L=r[7],L&&(t[7]=L),c&O&&(t[8]=t[8]==null?r[8]:Lt(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function tL(t){var r=[];if(t!=null)for(var o in We(t))r.push(o);return r}function nL(t){return Oi.call(t)}function pl(t,r,o){return r=gt(r===i?t.length-1:r,0),function(){for(var c=arguments,h=-1,m=gt(c.length-r,0),C=T(m);++h<m;)C[h]=c[r+h];h=-1;for(var L=T(r+1);++h<r;)L[h]=c[h];return L[r]=o(C),Ut(t,this,L)}}function ml(t,r){return r.length<2?t:vr(t,ln(r,0,-1))}function rL(t,r){for(var o=t.length,c=Lt(r.length,o),h=Bt(t);c--;){var m=r[c];t[c]=Hn(m,o)?h[m]:i}return t}function da(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var yl=vl(N2),O1=_x||function(t,r){return vt.setTimeout(t,r)},ha=vl(Sw);function _l(t,r,o){var c=r+"";return ha(t,Vw(c,iL(Hw(c),o)))}function vl(t){var r=0,o=0;return function(){var c=xx(),h=Pe-(c-o);if(o=c,h>0){if(++r>=J)return arguments[0]}else r=0;return t.apply(i,arguments)}}function n0(t,r){var o=-1,c=t.length,h=c-1;for(r=r===i?c:r;++o<r;){var m=Qo(o,h),C=t[m];t[m]=t[o],t[o]=C}return t.length=r,t}var bl=Jw(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(Vb,function(o,c,h,m){r.push(h?m.replace(tC,"$1"):c||o)}),r});function bn(t){if(typeof t=="string"||Gt(t))return t;var r=t+"";return r=="0"&&1/t==-rt?"-0":r}function Cr(t){if(t!=null){try{return Ii.call(t)}catch{}try{return t+""}catch{}}return""}function iL(t,r){return Zt(ne,function(o){var c="_."+o[0];r&o[1]&&!Si(t,c)&&t.push(c)}),t.sort()}function Cl(t){if(t instanceof we)return t.clone();var r=new an(t.__wrapped__,t.__chain__);return r.__actions__=Bt(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function oL(t,r,o){(o?It(t,r,o):r===i)?r=1:r=gt(ye(r),0);var c=t==null?0:t.length;if(!c||r<1)return[];for(var h=0,m=0,C=T(Fi(c/r));h<c;)C[m++]=ln(t,h,h+=r);return C}function aL(t){for(var r=-1,o=t==null?0:t.length,c=0,h=[];++r<o;){var m=t[r];m&&(h[c++]=m)}return h}function sL(){var t=arguments.length;if(!t)return[];for(var r=T(t-1),o=arguments[0],c=t;c--;)r[c-1]=arguments[c];return tr(pe(o)?Bt(o):[o],bt(r,1))}var lL=ve(function(t,r){return ot(t)?S1(t,bt(r,1,ot,!0)):[]}),cL=ve(function(t,r){var o=cn(r);return ot(o)&&(o=i),ot(t)?S1(t,bt(r,1,ot,!0),le(o,2)):[]}),uL=ve(function(t,r){var o=cn(r);return ot(o)&&(o=i),ot(t)?S1(t,bt(r,1,ot,!0),i,o):[]});function fL(t,r,o){var c=t==null?0:t.length;return c?(r=o||r===i?1:ye(r),ln(t,r<0?0:r,c)):[]}function dL(t,r,o){var c=t==null?0:t.length;return c?(r=o||r===i?1:ye(r),r=c-r,ln(t,0,r<0?0:r)):[]}function hL(t,r){return t&&t.length?Vi(t,le(r,3),!0,!0):[]}function gL(t,r){return t&&t.length?Vi(t,le(r,3),!0):[]}function pL(t,r,o,c){var h=t==null?0:t.length;return h?(o&&typeof o!="number"&&It(t,r,o)&&(o=0,c=h),sw(t,r,o,c)):[]}function xl(t,r,o){var c=t==null?0:t.length;if(!c)return-1;var h=o==null?0:ye(o);return h<0&&(h=gt(c+h,0)),ki(t,le(r,3),h)}function wl(t,r,o){var c=t==null?0:t.length;if(!c)return-1;var h=c-1;return o!==i&&(h=ye(o),h=o<0?gt(c+h,0):Lt(h,c-1)),ki(t,le(r,3),h,!0)}function Ll(t){var r=t==null?0:t.length;return r?bt(t,1):[]}function mL(t){var r=t==null?0:t.length;return r?bt(t,rt):[]}function yL(t,r){var o=t==null?0:t.length;return o?(r=r===i?1:ye(r),bt(t,r)):[]}function _L(t){for(var r=-1,o=t==null?0:t.length,c={};++r<o;){var h=t[r];Tn(c,h[0],h[1])}return c}function $l(t){return t&&t.length?t[0]:i}function vL(t,r,o){var c=t==null?0:t.length;if(!c)return-1;var h=o==null?0:ye(o);return h<0&&(h=gt(c+h,0)),Vr(t,r,h)}function bL(t){var r=t==null?0:t.length;return r?ln(t,0,-1):[]}var CL=ve(function(t){var r=Ve(t,ea);return r.length&&r[0]===t[0]?Zo(r):[]}),xL=ve(function(t){var r=cn(t),o=Ve(t,ea);return r===cn(o)?r=i:o.pop(),o.length&&o[0]===t[0]?Zo(o,le(r,2)):[]}),wL=ve(function(t){var r=cn(t),o=Ve(t,ea);return r=typeof r=="function"?r:i,r&&o.pop(),o.length&&o[0]===t[0]?Zo(o,i,r):[]});function LL(t,r){return t==null?"":bx.call(t,r)}function cn(t){var r=t==null?0:t.length;return r?t[r-1]:i}function $L(t,r,o){var c=t==null?0:t.length;if(!c)return-1;var h=c;return o!==i&&(h=ye(o),h=h<0?gt(c+h,0):Lt(h,c-1)),r===r?ix(t,r,h):ki(t,o2,h,!0)}function SL(t,r){return t&&t.length?R2(t,ye(r)):i}var kL=ve(Sl);function Sl(t,r){return t&&t.length&&r&&r.length?Vo(t,r):t}function AL(t,r,o){return t&&t.length&&r&&r.length?Vo(t,r,le(o,2)):t}function ML(t,r,o){return t&&t.length&&r&&r.length?Vo(t,r,i,o):t}var TL=Zn(function(t,r){var o=t==null?0:t.length,c=No(t,r);return z2(t,Ve(r,function(h){return Hn(h,o)?+h:h}).sort(Q2)),c});function IL(t,r){var o=[];if(!(t&&t.length))return o;var c=-1,h=[],m=t.length;for(r=le(r,3);++c<m;){var C=t[c];r(C,c,t)&&(o.push(C),h.push(c))}return z2(t,h),o}function ga(t){return t==null?t:Lx.call(t)}function OL(t,r,o){var c=t==null?0:t.length;return c?(o&&typeof o!="number"&&It(t,r,o)?(r=0,o=c):(r=r==null?0:ye(r),o=o===i?c:ye(o)),ln(t,r,o)):[]}function PL(t,r){return Gi(t,r)}function EL(t,r,o){return qo(t,r,le(o,2))}function DL(t,r){var o=t==null?0:t.length;if(o){var c=Gi(t,r);if(c<o&&Cn(t[c],r))return c}return-1}function RL(t,r){return Gi(t,r,!0)}function BL(t,r,o){return qo(t,r,le(o,2),!0)}function FL(t,r){var o=t==null?0:t.length;if(o){var c=Gi(t,r,!0)-1;if(Cn(t[c],r))return c}return-1}function zL(t){return t&&t.length?W2(t):[]}function NL(t,r){return t&&t.length?W2(t,le(r,2)):[]}function WL(t){var r=t==null?0:t.length;return r?ln(t,1,r):[]}function KL(t,r,o){return t&&t.length?(r=o||r===i?1:ye(r),ln(t,0,r<0?0:r)):[]}function UL(t,r,o){var c=t==null?0:t.length;return c?(r=o||r===i?1:ye(r),r=c-r,ln(t,r<0?0:r,c)):[]}function ZL(t,r){return t&&t.length?Vi(t,le(r,3),!1,!0):[]}function HL(t,r){return t&&t.length?Vi(t,le(r,3)):[]}var YL=ve(function(t){return or(bt(t,1,ot,!0))}),GL=ve(function(t){var r=cn(t);return ot(r)&&(r=i),or(bt(t,1,ot,!0),le(r,2))}),VL=ve(function(t){var r=cn(t);return r=typeof r=="function"?r:i,or(bt(t,1,ot,!0),i,r)});function QL(t){return t&&t.length?or(t):[]}function jL(t,r){return t&&t.length?or(t,le(r,2)):[]}function qL(t,r){return r=typeof r=="function"?r:i,t&&t.length?or(t,i,r):[]}function pa(t){if(!(t&&t.length))return[];var r=0;return t=er(t,function(o){if(ot(o))return r=gt(o.length,r),!0}),Oo(r,function(o){return Ve(t,Mo(o))})}function kl(t,r){if(!(t&&t.length))return[];var o=pa(t);return r==null?o:Ve(o,function(c){return Ut(r,i,c)})}var XL=ve(function(t,r){return ot(t)?S1(t,r):[]}),JL=ve(function(t){return Jo(er(t,ot))}),e$=ve(function(t){var r=cn(t);return ot(r)&&(r=i),Jo(er(t,ot),le(r,2))}),t$=ve(function(t){var r=cn(t);return r=typeof r=="function"?r:i,Jo(er(t,ot),i,r)}),n$=ve(pa);function r$(t,r){return H2(t||[],r||[],$1)}function i$(t,r){return H2(t||[],r||[],M1)}var o$=ve(function(t){var r=t.length,o=r>1?t[r-1]:i;return o=typeof o=="function"?(t.pop(),o):i,kl(t,o)});function Al(t){var r=p(t);return r.__chain__=!0,r}function a$(t,r){return r(t),t}function r0(t,r){return r(t)}var s$=Zn(function(t){var r=t.length,o=r?t[0]:0,c=this.__wrapped__,h=function(m){return No(m,t)};return r>1||this.__actions__.length||!(c instanceof we)||!Hn(o)?this.thru(h):(c=c.slice(o,+o+(r?1:0)),c.__actions__.push({func:r0,args:[h],thisArg:i}),new an(c,this.__chain__).thru(function(m){return r&&!m.length&&m.push(i),m}))});function l$(){return Al(this)}function c$(){return new an(this.value(),this.__chain__)}function u$(){this.__values__===i&&(this.__values__=Kl(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function f$(){return this}function d$(t){for(var r,o=this;o instanceof Ki;){var c=Cl(o);c.__index__=0,c.__values__=i,r?h.__wrapped__=c:r=c;var h=c;o=o.__wrapped__}return h.__wrapped__=t,r}function h$(){var t=this.__wrapped__;if(t instanceof we){var r=t;return this.__actions__.length&&(r=new we(this)),r=r.reverse(),r.__actions__.push({func:r0,args:[ga],thisArg:i}),new an(r,this.__chain__)}return this.thru(ga)}function g$(){return Z2(this.__wrapped__,this.__actions__)}var p$=Qi(function(t,r,o){De.call(t,o)?++t[o]:Tn(t,o,1)});function m$(t,r,o){var c=pe(t)?r2:aw;return o&&It(t,r,o)&&(r=i),c(t,le(r,3))}function y$(t,r){var o=pe(t)?er:k2;return o(t,le(r,3))}var _$=tl(xl),v$=tl(wl);function b$(t,r){return bt(i0(t,r),1)}function C$(t,r){return bt(i0(t,r),rt)}function x$(t,r,o){return o=o===i?1:ye(o),bt(i0(t,r),o)}function Ml(t,r){var o=pe(t)?Zt:ir;return o(t,le(r,3))}function Tl(t,r){var o=pe(t)?WC:S2;return o(t,le(r,3))}var w$=Qi(function(t,r,o){De.call(t,o)?t[o].push(r):Tn(t,o,[r])});function L$(t,r,o,c){t=Ft(t)?t:a1(t),o=o&&!c?ye(o):0;var h=t.length;return o<0&&(o=gt(h+o,0)),c0(t)?o<=h&&t.indexOf(r,o)>-1:!!h&&Vr(t,r,o)>-1}var $$=ve(function(t,r,o){var c=-1,h=typeof r=="function",m=Ft(t)?T(t.length):[];return ir(t,function(C){m[++c]=h?Ut(r,C,o):k1(C,r,o)}),m}),S$=Qi(function(t,r,o){Tn(t,o,r)});function i0(t,r){var o=pe(t)?Ve:P2;return o(t,le(r,3))}function k$(t,r,o,c){return t==null?[]:(pe(r)||(r=r==null?[]:[r]),o=c?i:o,pe(o)||(o=o==null?[]:[o]),B2(t,r,o))}var A$=Qi(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function M$(t,r,o){var c=pe(t)?ko:s2,h=arguments.length<3;return c(t,le(r,4),o,h,ir)}function T$(t,r,o){var c=pe(t)?KC:s2,h=arguments.length<3;return c(t,le(r,4),o,h,S2)}function I$(t,r){var o=pe(t)?er:k2;return o(t,s0(le(r,3)))}function O$(t){var r=pe(t)?x2:Lw;return r(t)}function P$(t,r,o){(o?It(t,r,o):r===i)?r=1:r=ye(r);var c=pe(t)?tw:$w;return c(t,r)}function E$(t){var r=pe(t)?nw:kw;return r(t)}function D$(t){if(t==null)return 0;if(Ft(t))return c0(t)?jr(t):t.length;var r=$t(t);return r==ut||r==j?t.size:Yo(t).length}function R$(t,r,o){var c=pe(t)?Ao:Aw;return o&&It(t,r,o)&&(r=i),c(t,le(r,3))}var B$=ve(function(t,r){if(t==null)return[];var o=r.length;return o>1&&It(t,r[0],r[1])?r=[]:o>2&&It(r[0],r[1],r[2])&&(r=[r[0]]),B2(t,bt(r,1),[])}),o0=yx||function(){return vt.Date.now()};function F$(t,r){if(typeof r!="function")throw new on(u);return t=ye(t),function(){if(--t<1)return r.apply(this,arguments)}}function Il(t,r,o){return r=o?i:r,r=t&&r==null?t.length:r,Un(t,O,i,i,i,i,r)}function Ol(t,r){var o;if(typeof r!="function")throw new on(u);return t=ye(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=i),o}}var ma=ve(function(t,r,o){var c=S;if(o.length){var h=nr(o,i1(ma));c|=G}return Un(t,c,r,o,h)}),Pl=ve(function(t,r,o){var c=S|I;if(o.length){var h=nr(o,i1(Pl));c|=G}return Un(r,c,t,o,h)});function El(t,r,o){r=o?i:r;var c=Un(t,R,i,i,i,i,i,r);return c.placeholder=El.placeholder,c}function Dl(t,r,o){r=o?i:r;var c=Un(t,H,i,i,i,i,i,r);return c.placeholder=Dl.placeholder,c}function Rl(t,r,o){var c,h,m,C,L,A,B=0,F=!1,K=!1,q=!0;if(typeof t!="function")throw new on(u);r=un(r)||0,Je(o)&&(F=!!o.leading,K="maxWait"in o,m=K?gt(un(o.maxWait)||0,r):m,q="trailing"in o?!!o.trailing:q);function ie(at){var xn=c,Vn=h;return c=h=i,B=at,C=t.apply(Vn,xn),C}function ce(at){return B=at,L=O1(xe,r),F?ie(at):C}function _e(at){var xn=at-A,Vn=at-B,n6=r-xn;return K?Lt(n6,m-Vn):n6}function se(at){var xn=at-A,Vn=at-B;return A===i||xn>=r||xn<0||K&&Vn>=m}function xe(){var at=o0();if(se(at))return Se(at);L=O1(xe,_e(at))}function Se(at){return L=i,q&&c?ie(at):(c=h=i,C)}function Vt(){L!==i&&Y2(L),B=0,c=A=h=L=i}function Ot(){return L===i?C:Se(o0())}function Qt(){var at=o0(),xn=se(at);if(c=arguments,h=this,A=at,xn){if(L===i)return ce(A);if(K)return Y2(L),L=O1(xe,r),ie(A)}return L===i&&(L=O1(xe,r)),C}return Qt.cancel=Vt,Qt.flush=Ot,Qt}var z$=ve(function(t,r){return $2(t,1,r)}),N$=ve(function(t,r,o){return $2(t,un(r)||0,o)});function W$(t){return Un(t,Q)}function a0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new on(u);var o=function(){var c=arguments,h=r?r.apply(this,c):c[0],m=o.cache;if(m.has(h))return m.get(h);var C=t.apply(this,c);return o.cache=m.set(h,C)||m,C};return o.cache=new(a0.Cache||Kn),o}a0.Cache=Kn;function s0(t){if(typeof t!="function")throw new on(u);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function K$(t){return Ol(2,t)}var U$=Mw(function(t,r){r=r.length==1&&pe(r[0])?Ve(r[0],Ht(le())):Ve(bt(r,1),Ht(le()));var o=r.length;return ve(function(c){for(var h=-1,m=Lt(c.length,o);++h<m;)c[h]=r[h].call(this,c[h]);return Ut(t,this,c)})}),ya=ve(function(t,r){var o=nr(r,i1(ya));return Un(t,G,i,r,o)}),Bl=ve(function(t,r){var o=nr(r,i1(Bl));return Un(t,U,i,r,o)}),Z$=Zn(function(t,r){return Un(t,W,i,i,i,r)});function H$(t,r){if(typeof t!="function")throw new on(u);return r=r===i?r:ye(r),ve(t,r)}function Y$(t,r){if(typeof t!="function")throw new on(u);return r=r==null?0:gt(ye(r),0),ve(function(o){var c=o[r],h=sr(o,0,r);return c&&tr(h,c),Ut(t,this,h)})}function G$(t,r,o){var c=!0,h=!0;if(typeof t!="function")throw new on(u);return Je(o)&&(c="leading"in o?!!o.leading:c,h="trailing"in o?!!o.trailing:h),Rl(t,r,{leading:c,maxWait:r,trailing:h})}function V$(t){return Il(t,1)}function Q$(t,r){return ya(ta(r),t)}function j$(){if(!arguments.length)return[];var t=arguments[0];return pe(t)?t:[t]}function q$(t){return sn(t,w)}function X$(t,r){return r=typeof r=="function"?r:i,sn(t,w,r)}function J$(t){return sn(t,b|w)}function eS(t,r){return r=typeof r=="function"?r:i,sn(t,b|w,r)}function tS(t,r){return r==null||L2(t,r,_t(r))}function Cn(t,r){return t===r||t!==t&&r!==r}var nS=Ji(Uo),rS=Ji(function(t,r){return t>=r}),xr=T2(function(){return arguments}())?T2:function(t){return nt(t)&&De.call(t,"callee")&&!m2.call(t,"callee")},pe=T.isArray,iS=q5?Ht(q5):dw;function Ft(t){return t!=null&&l0(t.length)&&!Yn(t)}function ot(t){return nt(t)&&Ft(t)}function oS(t){return t===!0||t===!1||nt(t)&&Tt(t)==Xe}var lr=vx||Ma,aS=X5?Ht(X5):hw;function sS(t){return nt(t)&&t.nodeType===1&&!P1(t)}function lS(t){if(t==null)return!0;if(Ft(t)&&(pe(t)||typeof t=="string"||typeof t.splice=="function"||lr(t)||o1(t)||xr(t)))return!t.length;var r=$t(t);if(r==ut||r==j)return!t.size;if(I1(t))return!Yo(t).length;for(var o in t)if(De.call(t,o))return!1;return!0}function cS(t,r){return A1(t,r)}function uS(t,r,o){o=typeof o=="function"?o:i;var c=o?o(t,r):i;return c===i?A1(t,r,i,o):!!c}function _a(t){if(!nt(t))return!1;var r=Tt(t);return r==mn||r==Jt||typeof t.message=="string"&&typeof t.name=="string"&&!P1(t)}function fS(t){return typeof t=="number"&&_2(t)}function Yn(t){if(!Je(t))return!1;var r=Tt(t);return r==en||r==Mn||r==it||r==tn}function Fl(t){return typeof t=="number"&&t==ye(t)}function l0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=qe}function Je(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function nt(t){return t!=null&&typeof t=="object"}var zl=J5?Ht(J5):pw;function dS(t,r){return t===r||Ho(t,r,la(r))}function hS(t,r,o){return o=typeof o=="function"?o:i,Ho(t,r,la(r),o)}function gS(t){return Nl(t)&&t!=+t}function pS(t){if(Xw(t))throw new de(l);return I2(t)}function mS(t){return t===null}function yS(t){return t==null}function Nl(t){return typeof t=="number"||nt(t)&&Tt(t)==Te}function P1(t){if(!nt(t)||Tt(t)!=Ge)return!1;var r=Di(t);if(r===null)return!0;var o=De.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&Ii.call(o)==hx}var va=e2?Ht(e2):mw;function _S(t){return Fl(t)&&t>=-qe&&t<=qe}var Wl=t2?Ht(t2):yw;function c0(t){return typeof t=="string"||!pe(t)&&nt(t)&&Tt(t)==$e}function Gt(t){return typeof t=="symbol"||nt(t)&&Tt(t)==Ce}var o1=n2?Ht(n2):_w;function vS(t){return t===i}function bS(t){return nt(t)&&$t(t)==dt}function CS(t){return nt(t)&&Tt(t)==yn}var xS=Ji(Go),wS=Ji(function(t,r){return t<=r});function Kl(t){if(!t)return[];if(Ft(t))return c0(t)?_n(t):Bt(t);if(b1&&t[b1])return tx(t[b1]());var r=$t(t),o=r==ut?Eo:r==j?Ai:a1;return o(t)}function Gn(t){if(!t)return t===0?t:0;if(t=un(t),t===rt||t===-rt){var r=t<0?-1:1;return r*Le}return t===t?t:0}function ye(t){var r=Gn(t),o=r%1;return r===r?o?r-o:r:0}function Ul(t){return t?_r(ye(t),0,Be):0}function un(t){if(typeof t=="number")return t;if(Gt(t))return He;if(Je(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=Je(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=l2(t);var o=iC.test(t);return o||aC.test(t)?FC(t.slice(2),o?2:8):rC.test(t)?He:+t}function Zl(t){return On(t,zt(t))}function LS(t){return t?_r(ye(t),-qe,qe):t===0?t:0}function Re(t){return t==null?"":Yt(t)}var $S=n1(function(t,r){if(I1(r)||Ft(r)){On(r,_t(r),t);return}for(var o in r)De.call(r,o)&&$1(t,o,r[o])}),Hl=n1(function(t,r){On(r,zt(r),t)}),Yl=n1(function(t,r,o,c){On(r,zt(r),t,c)}),ba=n1(function(t,r,o,c){On(r,_t(r),t,c)}),SS=Zn(No);function kS(t,r){var o=t1(t);return r==null?o:w2(o,r)}var AS=ve(function(t,r){t=We(t);var o=-1,c=r.length,h=c>2?r[2]:i;for(h&&It(r[0],r[1],h)&&(c=1);++o<c;)for(var m=r[o],C=zt(m),L=-1,A=C.length;++L<A;){var B=C[L],F=t[B];(F===i||Cn(F,Xr[B])&&!De.call(t,B))&&(t[B]=m[B])}return t}),MS=ve(function(t){return t.push(i,ll),Ut(Gl,i,t)});function TS(t,r){return i2(t,le(r,3),In)}function IS(t,r){return i2(t,le(r,3),Ko)}function OS(t,r){return t==null?t:Wo(t,le(r,3),zt)}function PS(t,r){return t==null?t:A2(t,le(r,3),zt)}function ES(t,r){return t&&In(t,le(r,3))}function DS(t,r){return t&&Ko(t,le(r,3))}function RS(t){return t==null?[]:Hi(t,_t(t))}function BS(t){return t==null?[]:Hi(t,zt(t))}function Ca(t,r,o){var c=t==null?i:vr(t,r);return c===i?o:c}function FS(t,r){return t!=null&&fl(t,r,lw)}function xa(t,r){return t!=null&&fl(t,r,cw)}var zS=rl(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=Oi.call(r)),t[r]=o},La(Nt)),NS=rl(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=Oi.call(r)),De.call(t,r)?t[r].push(o):t[r]=[o]},le),WS=ve(k1);function _t(t){return Ft(t)?C2(t):Yo(t)}function zt(t){return Ft(t)?C2(t,!0):vw(t)}function KS(t,r){var o={};return r=le(r,3),In(t,function(c,h,m){Tn(o,r(c,h,m),c)}),o}function US(t,r){var o={};return r=le(r,3),In(t,function(c,h,m){Tn(o,h,r(c,h,m))}),o}var ZS=n1(function(t,r,o){Yi(t,r,o)}),Gl=n1(function(t,r,o,c){Yi(t,r,o,c)}),HS=Zn(function(t,r){var o={};if(t==null)return o;var c=!1;r=Ve(r,function(m){return m=ar(m,t),c||(c=m.length>1),m}),On(t,aa(t),o),c&&(o=sn(o,b|M|w,Nw));for(var h=r.length;h--;)Xo(o,r[h]);return o});function YS(t,r){return Vl(t,s0(le(r)))}var GS=Zn(function(t,r){return t==null?{}:Cw(t,r)});function Vl(t,r){if(t==null)return{};var o=Ve(aa(t),function(c){return[c]});return r=le(r),F2(t,o,function(c,h){return r(c,h[0])})}function VS(t,r,o){r=ar(r,t);var c=-1,h=r.length;for(h||(h=1,t=i);++c<h;){var m=t==null?i:t[bn(r[c])];m===i&&(c=h,m=o),t=Yn(m)?m.call(t):m}return t}function QS(t,r,o){return t==null?t:M1(t,r,o)}function jS(t,r,o,c){return c=typeof c=="function"?c:i,t==null?t:M1(t,r,o,c)}var Ql=al(_t),jl=al(zt);function qS(t,r,o){var c=pe(t),h=c||lr(t)||o1(t);if(r=le(r,4),o==null){var m=t&&t.constructor;h?o=c?new m:[]:Je(t)?o=Yn(m)?t1(Di(t)):{}:o={}}return(h?Zt:In)(t,function(C,L,A){return r(o,C,L,A)}),o}function XS(t,r){return t==null?!0:Xo(t,r)}function JS(t,r,o){return t==null?t:U2(t,r,ta(o))}function ek(t,r,o,c){return c=typeof c=="function"?c:i,t==null?t:U2(t,r,ta(o),c)}function a1(t){return t==null?[]:Po(t,_t(t))}function tk(t){return t==null?[]:Po(t,zt(t))}function nk(t,r,o){return o===i&&(o=r,r=i),o!==i&&(o=un(o),o=o===o?o:0),r!==i&&(r=un(r),r=r===r?r:0),_r(un(t),r,o)}function rk(t,r,o){return r=Gn(r),o===i?(o=r,r=0):o=Gn(o),t=un(t),uw(t,r,o)}function ik(t,r,o){if(o&&typeof o!="boolean"&&It(t,r,o)&&(r=o=i),o===i&&(typeof r=="boolean"?(o=r,r=i):typeof t=="boolean"&&(o=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Gn(t),r===i?(r=t,t=0):r=Gn(r)),t>r){var c=t;t=r,r=c}if(o||t%1||r%1){var h=v2();return Lt(t+h*(r-t+BC("1e-"+((h+"").length-1))),r)}return Qo(t,r)}var ok=r1(function(t,r,o){return r=r.toLowerCase(),t+(o?ql(r):r)});function ql(t){return wa(Re(t).toLowerCase())}function Xl(t){return t=Re(t),t&&t.replace(lC,jC).replace(kC,"")}function ak(t,r,o){t=Re(t),r=Yt(r);var c=t.length;o=o===i?c:_r(ye(o),0,c);var h=o;return o-=r.length,o>=0&&t.slice(o,h)==r}function sk(t){return t=Re(t),t&&Ub.test(t)?t.replace(k5,qC):t}function lk(t){return t=Re(t),t&&Qb.test(t)?t.replace(yo,"\\$&"):t}var ck=r1(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),uk=r1(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),fk=el("toLowerCase");function dk(t,r,o){t=Re(t),r=ye(r);var c=r?jr(t):0;if(!r||c>=r)return t;var h=(r-c)/2;return Xi(zi(h),o)+t+Xi(Fi(h),o)}function hk(t,r,o){t=Re(t),r=ye(r);var c=r?jr(t):0;return r&&c<r?t+Xi(r-c,o):t}function gk(t,r,o){t=Re(t),r=ye(r);var c=r?jr(t):0;return r&&c<r?Xi(r-c,o)+t:t}function pk(t,r,o){return o||r==null?r=0:r&&(r=+r),wx(Re(t).replace(_o,""),r||0)}function mk(t,r,o){return(o?It(t,r,o):r===i)?r=1:r=ye(r),jo(Re(t),r)}function yk(){var t=arguments,r=Re(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var _k=r1(function(t,r,o){return t+(o?"_":"")+r.toLowerCase()});function vk(t,r,o){return o&&typeof o!="number"&&It(t,r,o)&&(r=o=i),o=o===i?Be:o>>>0,o?(t=Re(t),t&&(typeof r=="string"||r!=null&&!va(r))&&(r=Yt(r),!r&&Qr(t))?sr(_n(t),0,o):t.split(r,o)):[]}var bk=r1(function(t,r,o){return t+(o?" ":"")+wa(r)});function Ck(t,r,o){return t=Re(t),o=o==null?0:_r(ye(o),0,t.length),r=Yt(r),t.slice(o,o+r.length)==r}function xk(t,r,o){var c=p.templateSettings;o&&It(t,r,o)&&(r=i),t=Re(t),r=ba({},r,c,sl);var h=ba({},r.imports,c.imports,sl),m=_t(h),C=Po(h,m);Zt(m,function(se){if(M5.test(se))throw new de(d)});var L,A,B=0,F=r.interpolate||wi,K="__p += '",q=Do((r.escape||wi).source+"|"+F.source+"|"+(F===A5?nC:wi).source+"|"+(r.evaluate||wi).source+"|$","g"),ie="//# sourceURL="+(De.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++OC+"]")+`
|
|
11
|
-
`;t.replace(q,function(se,xe,Se,Vt,
|
|
10
|
+
`)}function Jw(t){return pe(t)||xr(t)||!!(p2&&t&&t[p2])}function Zn(t,r){var o=typeof t;return r=r??Je,!!r&&(o=="number"||o!="symbol"&&fC.test(t))&&t>-1&&t%1==0&&t<r}function Ot(t,r,o){if(!Xe(o))return!1;var u=typeof r;return(u=="number"?zt(o)&&Zn(r,o.length):u=="string"&&r in o)?vn(o[r],t):!1}function fa(t,r){if(pe(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Gt(t)?!0:qb.test(t)||!jb.test(t)||r!=null&&t in Ke(r)}function eL(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function da(t){var r=t0(t),o=p[r];if(typeof o!="function"||!(r in we.prototype))return!1;if(t===o)return!0;var u=la(o);return!!u&&t===u[0]}function tL(t){return!!f2&&f2 in t}var nL=Pi?Hn:Ta;function P1(t){var r=t&&t.constructor,o=typeof r=="function"&&r.prototype||Jr;return t===o}function fl(t){return t===t&&!Xe(t)}function dl(t,r){return function(o){return o==null?!1:o[t]===r&&(r!==i||t in Ke(o))}}function rL(t){var r=s0(t,function(u){return o.size===_&&o.clear(),u}),o=r.cache;return r}function iL(t,r){var o=t[1],u=r[1],h=o|u,m=h<($|T|I),x=u==I&&o==E||u==I&&o==z&&t[7].length<=r[8]||u==(I|z)&&r[7].length<=r[8]&&o==E;if(!(m||x))return t;u&$&&(t[2]=r[2],h|=o&$?0:O);var S=r[3];if(S){var M=t[3];t[3]=M?V2(M,S,r[4]):S,t[4]=M?nr(t[3],y):r[4]}return S=r[5],S&&(M=t[5],t[5]=M?Q2(M,S,r[6]):S,t[6]=M?nr(t[5],y):r[6]),S=r[7],S&&(t[7]=S),u&I&&(t[8]=t[8]==null?r[8]:$t(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function oL(t){var r=[];if(t!=null)for(var o in Ke(t))r.push(o);return r}function aL(t){return Ii.call(t)}function hl(t,r,o){return r=gt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,m=gt(u.length-r,0),x=P(m);++h<m;)x[h]=u[r+h];h=-1;for(var S=P(r+1);++h<r;)S[h]=u[h];return S[r]=o(x),Ut(t,this,S)}}function gl(t,r){return r.length<2?t:vr(t,ln(r,0,-1))}function sL(t,r){for(var o=t.length,u=$t(r.length,o),h=Ft(t);u--;){var m=r[u];t[u]=Zn(m,o)?h[m]:i}return t}function ha(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var pl=yl(F2),O1=xx||function(t,r){return vt.setTimeout(t,r)},ga=yl(Tw);function ml(t,r,o){var u=r+"";return ga(t,Xw(u,lL(Qw(u),o)))}function yl(t){var r=0,o=0;return function(){var u=Sx(),h=Te-(u-o);if(o=u,h>0){if(++r>=ee)return arguments[0]}else r=0;return t.apply(i,arguments)}}function r0(t,r){var o=-1,u=t.length,h=u-1;for(r=r===i?u:r;++o<r;){var m=jo(o,h),x=t[m];t[m]=t[o],t[o]=x}return t.length=r,t}var _l=rL(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(Xb,function(o,u,h,m){r.push(h?m.replace(oC,"$1"):u||o)}),r});function _n(t){if(typeof t=="string"||Gt(t))return t;var r=t+"";return r=="0"&&1/t==-rt?"-0":r}function Cr(t){if(t!=null){try{return Oi.call(t)}catch{}try{return t+""}catch{}}return""}function lL(t,r){return Zt(ke,function(o){var u="_."+o[0];r&o[1]&&!ki(t,u)&&t.push(u)}),t.sort()}function vl(t){if(t instanceof we)return t.clone();var r=new an(t.__wrapped__,t.__chain__);return r.__actions__=Ft(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function cL(t,r,o){(o?Ot(t,r,o):r===i)?r=1:r=gt(ye(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,m=0,x=P(zi(u/r));h<u;)x[m++]=ln(t,h,h+=r);return x}function uL(t){for(var r=-1,o=t==null?0:t.length,u=0,h=[];++r<o;){var m=t[r];m&&(h[u++]=m)}return h}function fL(){var t=arguments.length;if(!t)return[];for(var r=P(t-1),o=arguments[0],u=t;u--;)r[u-1]=arguments[u];return tr(pe(o)?Ft(o):[o],bt(r,1))}var dL=ve(function(t,r){return ot(t)?S1(t,bt(r,1,ot,!0)):[]}),hL=ve(function(t,r){var o=cn(r);return ot(o)&&(o=i),ot(t)?S1(t,bt(r,1,ot,!0),le(o,2)):[]}),gL=ve(function(t,r){var o=cn(r);return ot(o)&&(o=i),ot(t)?S1(t,bt(r,1,ot,!0),i,o):[]});function pL(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:ye(r),ln(t,r<0?0:r,u)):[]}function mL(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:ye(r),r=u-r,ln(t,0,r<0?0:r)):[]}function yL(t,r){return t&&t.length?Qi(t,le(r,3),!0,!0):[]}function _L(t,r){return t&&t.length?Qi(t,le(r,3),!0):[]}function vL(t,r,o,u){var h=t==null?0:t.length;return h?(o&&typeof o!="number"&&Ot(t,r,o)&&(o=0,u=h),fw(t,r,o,u)):[]}function bl(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=o==null?0:ye(o);return h<0&&(h=gt(u+h,0)),Ai(t,le(r,3),h)}function Cl(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return o!==i&&(h=ye(o),h=o<0?gt(u+h,0):$t(h,u-1)),Ai(t,le(r,3),h,!0)}function xl(t){var r=t==null?0:t.length;return r?bt(t,1):[]}function bL(t){var r=t==null?0:t.length;return r?bt(t,rt):[]}function CL(t,r){var o=t==null?0:t.length;return o?(r=r===i?1:ye(r),bt(t,r)):[]}function xL(t){for(var r=-1,o=t==null?0:t.length,u={};++r<o;){var h=t[r];An(u,h[0],h[1])}return u}function wl(t){return t&&t.length?t[0]:i}function wL(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=o==null?0:ye(o);return h<0&&(h=gt(u+h,0)),Qr(t,r,h)}function LL(t){var r=t==null?0:t.length;return r?ln(t,0,-1):[]}var $L=ve(function(t){var r=Ve(t,ta);return r.length&&r[0]===t[0]?Ho(r):[]}),SL=ve(function(t){var r=cn(t),o=Ve(t,ta);return r===cn(o)?r=i:o.pop(),o.length&&o[0]===t[0]?Ho(o,le(r,2)):[]}),kL=ve(function(t){var r=cn(t),o=Ve(t,ta);return r=typeof r=="function"?r:i,r&&o.pop(),o.length&&o[0]===t[0]?Ho(o,i,r):[]});function AL(t,r){return t==null?"":Lx.call(t,r)}function cn(t){var r=t==null?0:t.length;return r?t[r-1]:i}function ML(t,r,o){var u=t==null?0:t.length;if(!u)return-1;var h=u;return o!==i&&(h=ye(o),h=h<0?gt(u+h,0):$t(h,u-1)),r===r?lx(t,r,h):Ai(t,r2,h,!0)}function TL(t,r){return t&&t.length?E2(t,ye(r)):i}var PL=ve(Ll);function Ll(t,r){return t&&t.length&&r&&r.length?Qo(t,r):t}function OL(t,r,o){return t&&t.length&&r&&r.length?Qo(t,r,le(o,2)):t}function IL(t,r,o){return t&&t.length&&r&&r.length?Qo(t,r,i,o):t}var EL=Un(function(t,r){var o=t==null?0:t.length,u=Wo(t,r);return B2(t,Ve(r,function(h){return Zn(h,o)?+h:h}).sort(G2)),u});function DL(t,r){var o=[];if(!(t&&t.length))return o;var u=-1,h=[],m=t.length;for(r=le(r,3);++u<m;){var x=t[u];r(x,u,t)&&(o.push(x),h.push(u))}return B2(t,h),o}function pa(t){return t==null?t:Ax.call(t)}function RL(t,r,o){var u=t==null?0:t.length;return u?(o&&typeof o!="number"&&Ot(t,r,o)?(r=0,o=u):(r=r==null?0:ye(r),o=o===i?u:ye(o)),ln(t,r,o)):[]}function BL(t,r){return Vi(t,r)}function FL(t,r,o){return Xo(t,r,le(o,2))}function zL(t,r){var o=t==null?0:t.length;if(o){var u=Vi(t,r);if(u<o&&vn(t[u],r))return u}return-1}function NL(t,r){return Vi(t,r,!0)}function WL(t,r,o){return Xo(t,r,le(o,2),!0)}function KL(t,r){var o=t==null?0:t.length;if(o){var u=Vi(t,r,!0)-1;if(vn(t[u],r))return u}return-1}function UL(t){return t&&t.length?z2(t):[]}function ZL(t,r){return t&&t.length?z2(t,le(r,2)):[]}function HL(t){var r=t==null?0:t.length;return r?ln(t,1,r):[]}function YL(t,r,o){return t&&t.length?(r=o||r===i?1:ye(r),ln(t,0,r<0?0:r)):[]}function GL(t,r,o){var u=t==null?0:t.length;return u?(r=o||r===i?1:ye(r),r=u-r,ln(t,r<0?0:r,u)):[]}function VL(t,r){return t&&t.length?Qi(t,le(r,3),!1,!0):[]}function QL(t,r){return t&&t.length?Qi(t,le(r,3)):[]}var jL=ve(function(t){return or(bt(t,1,ot,!0))}),qL=ve(function(t){var r=cn(t);return ot(r)&&(r=i),or(bt(t,1,ot,!0),le(r,2))}),XL=ve(function(t){var r=cn(t);return r=typeof r=="function"?r:i,or(bt(t,1,ot,!0),i,r)});function JL(t){return t&&t.length?or(t):[]}function e$(t,r){return t&&t.length?or(t,le(r,2)):[]}function t$(t,r){return r=typeof r=="function"?r:i,t&&t.length?or(t,i,r):[]}function ma(t){if(!(t&&t.length))return[];var r=0;return t=er(t,function(o){if(ot(o))return r=gt(o.length,r),!0}),Io(r,function(o){return Ve(t,To(o))})}function $l(t,r){if(!(t&&t.length))return[];var o=ma(t);return r==null?o:Ve(o,function(u){return Ut(r,i,u)})}var n$=ve(function(t,r){return ot(t)?S1(t,r):[]}),r$=ve(function(t){return ea(er(t,ot))}),i$=ve(function(t){var r=cn(t);return ot(r)&&(r=i),ea(er(t,ot),le(r,2))}),o$=ve(function(t){var r=cn(t);return r=typeof r=="function"?r:i,ea(er(t,ot),i,r)}),a$=ve(ma);function s$(t,r){return U2(t||[],r||[],$1)}function l$(t,r){return U2(t||[],r||[],M1)}var c$=ve(function(t){var r=t.length,o=r>1?t[r-1]:i;return o=typeof o=="function"?(t.pop(),o):i,$l(t,o)});function Sl(t){var r=p(t);return r.__chain__=!0,r}function u$(t,r){return r(t),t}function i0(t,r){return r(t)}var f$=Un(function(t){var r=t.length,o=r?t[0]:0,u=this.__wrapped__,h=function(m){return Wo(m,t)};return r>1||this.__actions__.length||!(u instanceof we)||!Zn(o)?this.thru(h):(u=u.slice(o,+o+(r?1:0)),u.__actions__.push({func:i0,args:[h],thisArg:i}),new an(u,this.__chain__).thru(function(m){return r&&!m.length&&m.push(i),m}))});function d$(){return Sl(this)}function h$(){return new an(this.value(),this.__chain__)}function g$(){this.__values__===i&&(this.__values__=Nl(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function p$(){return this}function m$(t){for(var r,o=this;o instanceof Ui;){var u=vl(o);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;o=o.__wrapped__}return h.__wrapped__=t,r}function y$(){var t=this.__wrapped__;if(t instanceof we){var r=t;return this.__actions__.length&&(r=new we(this)),r=r.reverse(),r.__actions__.push({func:i0,args:[pa],thisArg:i}),new an(r,this.__chain__)}return this.thru(pa)}function _$(){return K2(this.__wrapped__,this.__actions__)}var v$=ji(function(t,r,o){De.call(t,o)?++t[o]:An(t,o,1)});function b$(t,r,o){var u=pe(t)?t2:uw;return o&&Ot(t,r,o)&&(r=i),u(t,le(r,3))}function C$(t,r){var o=pe(t)?er:$2;return o(t,le(r,3))}var x$=J2(bl),w$=J2(Cl);function L$(t,r){return bt(o0(t,r),1)}function $$(t,r){return bt(o0(t,r),rt)}function S$(t,r,o){return o=o===i?1:ye(o),bt(o0(t,r),o)}function kl(t,r){var o=pe(t)?Zt:ir;return o(t,le(r,3))}function Al(t,r){var o=pe(t)?HC:L2;return o(t,le(r,3))}var k$=ji(function(t,r,o){De.call(t,o)?t[o].push(r):An(t,o,[r])});function A$(t,r,o,u){t=zt(t)?t:s1(t),o=o&&!u?ye(o):0;var h=t.length;return o<0&&(o=gt(h+o,0)),u0(t)?o<=h&&t.indexOf(r,o)>-1:!!h&&Qr(t,r,o)>-1}var M$=ve(function(t,r,o){var u=-1,h=typeof r=="function",m=zt(t)?P(t.length):[];return ir(t,function(x){m[++u]=h?Ut(r,x,o):k1(x,r,o)}),m}),T$=ji(function(t,r,o){An(t,o,r)});function o0(t,r){var o=pe(t)?Ve:P2;return o(t,le(r,3))}function P$(t,r,o,u){return t==null?[]:(pe(r)||(r=r==null?[]:[r]),o=u?i:o,pe(o)||(o=o==null?[]:[o]),D2(t,r,o))}var O$=ji(function(t,r,o){t[o?0:1].push(r)},function(){return[[],[]]});function I$(t,r,o){var u=pe(t)?Ao:o2,h=arguments.length<3;return u(t,le(r,4),o,h,ir)}function E$(t,r,o){var u=pe(t)?YC:o2,h=arguments.length<3;return u(t,le(r,4),o,h,L2)}function D$(t,r){var o=pe(t)?er:$2;return o(t,l0(le(r,3)))}function R$(t){var r=pe(t)?b2:Aw;return r(t)}function B$(t,r,o){(o?Ot(t,r,o):r===i)?r=1:r=ye(r);var u=pe(t)?ow:Mw;return u(t,r)}function F$(t){var r=pe(t)?aw:Pw;return r(t)}function z$(t){if(t==null)return 0;if(zt(t))return u0(t)?qr(t):t.length;var r=St(t);return r==pt||r==j?t.size:Go(t).length}function N$(t,r,o){var u=pe(t)?Mo:Ow;return o&&Ot(t,r,o)&&(r=i),u(t,le(r,3))}var W$=ve(function(t,r){if(t==null)return[];var o=r.length;return o>1&&Ot(t,r[0],r[1])?r=[]:o>2&&Ot(r[0],r[1],r[2])&&(r=[r[0]]),D2(t,bt(r,1),[])}),a0=Cx||function(){return vt.Date.now()};function K$(t,r){if(typeof r!="function")throw new on(c);return t=ye(t),function(){if(--t<1)return r.apply(this,arguments)}}function Ml(t,r,o){return r=o?i:r,r=t&&r==null?t.length:r,Kn(t,I,i,i,i,i,r)}function Tl(t,r){var o;if(typeof r!="function")throw new on(c);return t=ye(t),function(){return--t>0&&(o=r.apply(this,arguments)),t<=1&&(r=i),o}}var ya=ve(function(t,r,o){var u=$;if(o.length){var h=nr(o,o1(ya));u|=X}return Kn(t,u,r,o,h)}),Pl=ve(function(t,r,o){var u=$|T;if(o.length){var h=nr(o,o1(Pl));u|=X}return Kn(r,u,t,o,h)});function Ol(t,r,o){r=o?i:r;var u=Kn(t,E,i,i,i,i,i,r);return u.placeholder=Ol.placeholder,u}function Il(t,r,o){r=o?i:r;var u=Kn(t,U,i,i,i,i,i,r);return u.placeholder=Il.placeholder,u}function El(t,r,o){var u,h,m,x,S,M,B=0,F=!1,K=!1,q=!0;if(typeof t!="function")throw new on(c);r=un(r)||0,Xe(o)&&(F=!!o.leading,K="maxWait"in o,m=K?gt(un(o.maxWait)||0,r):m,q="trailing"in o?!!o.trailing:q);function re(at){var bn=u,Gn=h;return u=h=i,B=at,x=t.apply(Gn,bn),x}function ce(at){return B=at,S=O1(xe,r),F?re(at):x}function _e(at){var bn=at-M,Gn=at-B,e6=r-bn;return K?$t(e6,m-Gn):e6}function se(at){var bn=at-M,Gn=at-B;return M===i||bn>=r||bn<0||K&&Gn>=m}function xe(){var at=a0();if(se(at))return Se(at);S=O1(xe,_e(at))}function Se(at){return S=i,q&&u?re(at):(u=h=i,x)}function Vt(){S!==i&&Z2(S),B=0,u=M=h=S=i}function It(){return S===i?x:Se(a0())}function Qt(){var at=a0(),bn=se(at);if(u=arguments,h=this,M=at,bn){if(S===i)return ce(M);if(K)return Z2(S),S=O1(xe,r),re(M)}return S===i&&(S=O1(xe,r)),x}return Qt.cancel=Vt,Qt.flush=It,Qt}var U$=ve(function(t,r){return w2(t,1,r)}),Z$=ve(function(t,r,o){return w2(t,un(r)||0,o)});function H$(t){return Kn(t,V)}function s0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new on(c);var o=function(){var u=arguments,h=r?r.apply(this,u):u[0],m=o.cache;if(m.has(h))return m.get(h);var x=t.apply(this,u);return o.cache=m.set(h,x)||m,x};return o.cache=new(s0.Cache||Wn),o}s0.Cache=Wn;function l0(t){if(typeof t!="function")throw new on(c);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function Y$(t){return Tl(2,t)}var G$=Iw(function(t,r){r=r.length==1&&pe(r[0])?Ve(r[0],Ht(le())):Ve(bt(r,1),Ht(le()));var o=r.length;return ve(function(u){for(var h=-1,m=$t(u.length,o);++h<m;)u[h]=r[h].call(this,u[h]);return Ut(t,this,u)})}),_a=ve(function(t,r){var o=nr(r,o1(_a));return Kn(t,X,i,r,o)}),Dl=ve(function(t,r){var o=nr(r,o1(Dl));return Kn(t,Y,i,r,o)}),V$=Un(function(t,r){return Kn(t,z,i,i,i,r)});function Q$(t,r){if(typeof t!="function")throw new on(c);return r=r===i?r:ye(r),ve(t,r)}function j$(t,r){if(typeof t!="function")throw new on(c);return r=r==null?0:gt(ye(r),0),ve(function(o){var u=o[r],h=sr(o,0,r);return u&&tr(h,u),Ut(t,this,h)})}function q$(t,r,o){var u=!0,h=!0;if(typeof t!="function")throw new on(c);return Xe(o)&&(u="leading"in o?!!o.leading:u,h="trailing"in o?!!o.trailing:h),El(t,r,{leading:u,maxWait:r,trailing:h})}function X$(t){return Ml(t,1)}function J$(t,r){return _a(na(r),t)}function eS(){if(!arguments.length)return[];var t=arguments[0];return pe(t)?t:[t]}function tS(t){return sn(t,v)}function nS(t,r){return r=typeof r=="function"?r:i,sn(t,v,r)}function rS(t){return sn(t,b|v)}function iS(t,r){return r=typeof r=="function"?r:i,sn(t,b|v,r)}function oS(t,r){return r==null||x2(t,r,yt(r))}function vn(t,r){return t===r||t!==t&&r!==r}var aS=e0(Zo),sS=e0(function(t,r){return t>=r}),xr=A2(function(){return arguments}())?A2:function(t){return nt(t)&&De.call(t,"callee")&&!g2.call(t,"callee")},pe=P.isArray,lS=Q5?Ht(Q5):mw;function zt(t){return t!=null&&c0(t.length)&&!Hn(t)}function ot(t){return nt(t)&&zt(t)}function cS(t){return t===!0||t===!1||nt(t)&&Pt(t)==qe}var lr=wx||Ta,uS=j5?Ht(j5):yw;function fS(t){return nt(t)&&t.nodeType===1&&!I1(t)}function dS(t){if(t==null)return!0;if(zt(t)&&(pe(t)||typeof t=="string"||typeof t.splice=="function"||lr(t)||a1(t)||xr(t)))return!t.length;var r=St(t);if(r==pt||r==j)return!t.size;if(P1(t))return!Go(t).length;for(var o in t)if(De.call(t,o))return!1;return!0}function hS(t,r){return A1(t,r)}function gS(t,r,o){o=typeof o=="function"?o:i;var u=o?o(t,r):i;return u===i?A1(t,r,i,o):!!u}function va(t){if(!nt(t))return!1;var r=Pt(t);return r==zn||r==en||typeof t.message=="string"&&typeof t.name=="string"&&!I1(t)}function pS(t){return typeof t=="number"&&m2(t)}function Hn(t){if(!Xe(t))return!1;var r=Pt(t);return r==kn||r==Xn||r==it||r==tn}function Rl(t){return typeof t=="number"&&t==ye(t)}function c0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Je}function Xe(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function nt(t){return t!=null&&typeof t=="object"}var Bl=q5?Ht(q5):vw;function mS(t,r){return t===r||Yo(t,r,ca(r))}function yS(t,r,o){return o=typeof o=="function"?o:i,Yo(t,r,ca(r),o)}function _S(t){return Fl(t)&&t!=+t}function vS(t){if(nL(t))throw new de(l);return M2(t)}function bS(t){return t===null}function CS(t){return t==null}function Fl(t){return typeof t=="number"||nt(t)&&Pt(t)==Be}function I1(t){if(!nt(t)||Pt(t)!=tt)return!1;var r=Ri(t);if(r===null)return!0;var o=De.call(r,"constructor")&&r.constructor;return typeof o=="function"&&o instanceof o&&Oi.call(o)==yx}var ba=X5?Ht(X5):bw;function xS(t){return Rl(t)&&t>=-Je&&t<=Je}var zl=J5?Ht(J5):Cw;function u0(t){return typeof t=="string"||!pe(t)&&nt(t)&&Pt(t)==$e}function Gt(t){return typeof t=="symbol"||nt(t)&&Pt(t)==Ce}var a1=e2?Ht(e2):xw;function wS(t){return t===i}function LS(t){return nt(t)&&St(t)==dt}function $S(t){return nt(t)&&Pt(t)==pn}var SS=e0(Vo),kS=e0(function(t,r){return t<=r});function Nl(t){if(!t)return[];if(zt(t))return u0(t)?mn(t):Ft(t);if(b1&&t[b1])return ox(t[b1]());var r=St(t),o=r==pt?Do:r==j?Mi:s1;return o(t)}function Yn(t){if(!t)return t===0?t:0;if(t=un(t),t===rt||t===-rt){var r=t<0?-1:1;return r*Le}return t===t?t:0}function ye(t){var r=Yn(t),o=r%1;return r===r?o?r-o:r:0}function Wl(t){return t?_r(ye(t),0,ze):0}function un(t){if(typeof t=="number")return t;if(Gt(t))return Ge;if(Xe(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=Xe(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=a2(t);var o=lC.test(t);return o||uC.test(t)?KC(t.slice(2),o?2:8):sC.test(t)?Ge:+t}function Kl(t){return Tn(t,Nt(t))}function AS(t){return t?_r(ye(t),-Je,Je):t===0?t:0}function Re(t){return t==null?"":Yt(t)}var MS=r1(function(t,r){if(P1(r)||zt(r)){Tn(r,yt(r),t);return}for(var o in r)De.call(r,o)&&$1(t,o,r[o])}),Ul=r1(function(t,r){Tn(r,Nt(r),t)}),Zl=r1(function(t,r,o,u){Tn(r,Nt(r),t,u)}),Ca=r1(function(t,r,o,u){Tn(r,yt(r),t,u)}),TS=Un(Wo);function PS(t,r){var o=n1(t);return r==null?o:C2(o,r)}var OS=ve(function(t,r){t=Ke(t);var o=-1,u=r.length,h=u>2?r[2]:i;for(h&&Ot(r[0],r[1],h)&&(u=1);++o<u;)for(var m=r[o],x=Nt(m),S=-1,M=x.length;++S<M;){var B=x[S],F=t[B];(F===i||vn(F,Jr[B])&&!De.call(t,B))&&(t[B]=m[B])}return t}),IS=ve(function(t){return t.push(i,al),Ut(Hl,i,t)});function ES(t,r){return n2(t,le(r,3),Mn)}function DS(t,r){return n2(t,le(r,3),Uo)}function RS(t,r){return t==null?t:Ko(t,le(r,3),Nt)}function BS(t,r){return t==null?t:S2(t,le(r,3),Nt)}function FS(t,r){return t&&Mn(t,le(r,3))}function zS(t,r){return t&&Uo(t,le(r,3))}function NS(t){return t==null?[]:Yi(t,yt(t))}function WS(t){return t==null?[]:Yi(t,Nt(t))}function xa(t,r,o){var u=t==null?i:vr(t,r);return u===i?o:u}function KS(t,r){return t!=null&&cl(t,r,dw)}function wa(t,r){return t!=null&&cl(t,r,hw)}var US=tl(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=Ii.call(r)),t[r]=o},$a(Wt)),ZS=tl(function(t,r,o){r!=null&&typeof r.toString!="function"&&(r=Ii.call(r)),De.call(t,r)?t[r].push(o):t[r]=[o]},le),HS=ve(k1);function yt(t){return zt(t)?v2(t):Go(t)}function Nt(t){return zt(t)?v2(t,!0):ww(t)}function YS(t,r){var o={};return r=le(r,3),Mn(t,function(u,h,m){An(o,r(u,h,m),u)}),o}function GS(t,r){var o={};return r=le(r,3),Mn(t,function(u,h,m){An(o,h,r(u,h,m))}),o}var VS=r1(function(t,r,o){Gi(t,r,o)}),Hl=r1(function(t,r,o,u){Gi(t,r,o,u)}),QS=Un(function(t,r){var o={};if(t==null)return o;var u=!1;r=Ve(r,function(m){return m=ar(m,t),u||(u=m.length>1),m}),Tn(t,sa(t),o),u&&(o=sn(o,b|k|v,Zw));for(var h=r.length;h--;)Jo(o,r[h]);return o});function jS(t,r){return Yl(t,l0(le(r)))}var qS=Un(function(t,r){return t==null?{}:$w(t,r)});function Yl(t,r){if(t==null)return{};var o=Ve(sa(t),function(u){return[u]});return r=le(r),R2(t,o,function(u,h){return r(u,h[0])})}function XS(t,r,o){r=ar(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var m=t==null?i:t[_n(r[u])];m===i&&(u=h,m=o),t=Hn(m)?m.call(t):m}return t}function JS(t,r,o){return t==null?t:M1(t,r,o)}function ek(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:M1(t,r,o,u)}var Gl=il(yt),Vl=il(Nt);function tk(t,r,o){var u=pe(t),h=u||lr(t)||a1(t);if(r=le(r,4),o==null){var m=t&&t.constructor;h?o=u?new m:[]:Xe(t)?o=Hn(m)?n1(Ri(t)):{}:o={}}return(h?Zt:Mn)(t,function(x,S,M){return r(o,x,S,M)}),o}function nk(t,r){return t==null?!0:Jo(t,r)}function rk(t,r,o){return t==null?t:W2(t,r,na(o))}function ik(t,r,o,u){return u=typeof u=="function"?u:i,t==null?t:W2(t,r,na(o),u)}function s1(t){return t==null?[]:Eo(t,yt(t))}function ok(t){return t==null?[]:Eo(t,Nt(t))}function ak(t,r,o){return o===i&&(o=r,r=i),o!==i&&(o=un(o),o=o===o?o:0),r!==i&&(r=un(r),r=r===r?r:0),_r(un(t),r,o)}function sk(t,r,o){return r=Yn(r),o===i?(o=r,r=0):o=Yn(o),t=un(t),gw(t,r,o)}function lk(t,r,o){if(o&&typeof o!="boolean"&&Ot(t,r,o)&&(r=o=i),o===i&&(typeof r=="boolean"?(o=r,r=i):typeof t=="boolean"&&(o=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Yn(t),r===i?(r=t,t=0):r=Yn(r)),t>r){var u=t;t=r,r=u}if(o||t%1||r%1){var h=y2();return $t(t+h*(r-t+WC("1e-"+((h+"").length-1))),r)}return jo(t,r)}var ck=i1(function(t,r,o){return r=r.toLowerCase(),t+(o?Ql(r):r)});function Ql(t){return La(Re(t).toLowerCase())}function jl(t){return t=Re(t),t&&t.replace(dC,ex).replace(PC,"")}function uk(t,r,o){t=Re(t),r=Yt(r);var u=t.length;o=o===i?u:_r(ye(o),0,u);var h=o;return o-=r.length,o>=0&&t.slice(o,h)==r}function fk(t){return t=Re(t),t&&Gb.test(t)?t.replace($5,tx):t}function dk(t){return t=Re(t),t&&Jb.test(t)?t.replace(_o,"\\$&"):t}var hk=i1(function(t,r,o){return t+(o?"-":"")+r.toLowerCase()}),gk=i1(function(t,r,o){return t+(o?" ":"")+r.toLowerCase()}),pk=X2("toLowerCase");function mk(t,r,o){t=Re(t),r=ye(r);var u=r?qr(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return Ji(Ni(h),o)+t+Ji(zi(h),o)}function yk(t,r,o){t=Re(t),r=ye(r);var u=r?qr(t):0;return r&&u<r?t+Ji(r-u,o):t}function _k(t,r,o){t=Re(t),r=ye(r);var u=r?qr(t):0;return r&&u<r?Ji(r-u,o)+t:t}function vk(t,r,o){return o||r==null?r=0:r&&(r=+r),kx(Re(t).replace(vo,""),r||0)}function bk(t,r,o){return(o?Ot(t,r,o):r===i)?r=1:r=ye(r),qo(Re(t),r)}function Ck(){var t=arguments,r=Re(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var xk=i1(function(t,r,o){return t+(o?"_":"")+r.toLowerCase()});function wk(t,r,o){return o&&typeof o!="number"&&Ot(t,r,o)&&(r=o=i),o=o===i?ze:o>>>0,o?(t=Re(t),t&&(typeof r=="string"||r!=null&&!ba(r))&&(r=Yt(r),!r&&jr(t))?sr(mn(t),0,o):t.split(r,o)):[]}var Lk=i1(function(t,r,o){return t+(o?" ":"")+La(r)});function $k(t,r,o){return t=Re(t),o=o==null?0:_r(ye(o),0,t.length),r=Yt(r),t.slice(o,o+r.length)==r}function Sk(t,r,o){var u=p.templateSettings;o&&Ot(t,r,o)&&(r=i),t=Re(t),r=Ca({},r,u,ol);var h=Ca({},r.imports,u.imports,ol),m=yt(h),x=Eo(h,m);Zt(m,function(se){if(k5.test(se))throw new de(d)});var S,M,B=0,F=r.interpolate||Li,K="__p += '",q=Ro((r.escape||Li).source+"|"+F.source+"|"+(F===S5?aC:Li).source+"|"+(r.evaluate||Li).source+"|$","g"),re="//# sourceURL="+(De.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RC+"]")+`
|
|
11
|
+
`;t.replace(q,function(se,xe,Se,Vt,It,Qt){return Se||(Se=Vt),K+=t.slice(B,Qt).replace(hC,nx),xe&&(S=!0,K+=`' +
|
|
12
12
|
__e(`+xe+`) +
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
13
|
+
'`),It&&(M=!0,K+=`';
|
|
14
|
+
`+It+`;
|
|
15
15
|
__p += '`),Se&&(K+=`' +
|
|
16
16
|
((__t = (`+Se+`)) == null ? '' : __t) +
|
|
17
17
|
'`),B=Qt+se.length,se}),K+=`';
|
|
18
18
|
`;var ce=De.call(r,"variable")&&r.variable;if(!ce)K=`with (obj) {
|
|
19
19
|
`+K+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
21
|
+
`;else if(k5.test(ce))throw new de(f);K=(M?K.replace(Ub,""):K).replace(Zb,"$1").replace(Hb,"$1;"),K="function("+(ce||"obj")+`) {
|
|
22
22
|
`+(ce?"":`obj || (obj = {});
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
23
|
+
`)+"var __t, __p = ''"+(S?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+K+`return __p
|
|
27
|
-
}`;var _e=e6(function(){return Oe(m,ie+"return "+K).apply(i,C)});if(_e.source=K,_a(_e))throw _e;return _e}function wk(t){return Re(t).toLowerCase()}function Lk(t){return Re(t).toUpperCase()}function $k(t,r,o){if(t=Re(t),t&&(o||r===i))return l2(t);if(!t||!(r=Yt(r)))return t;var c=_n(t),h=_n(r),m=c2(c,h),C=u2(c,h)+1;return sr(c,m,C).join("")}function Sk(t,r,o){if(t=Re(t),t&&(o||r===i))return t.slice(0,d2(t)+1);if(!t||!(r=Yt(r)))return t;var c=_n(t),h=u2(c,_n(r))+1;return sr(c,0,h).join("")}function kk(t,r,o){if(t=Re(t),t&&(o||r===i))return t.replace(_o,"");if(!t||!(r=Yt(r)))return t;var c=_n(t),h=c2(c,_n(r));return sr(c,h).join("")}function Ak(t,r){var o=X,c=re;if(Je(r)){var h="separator"in r?r.separator:h;o="length"in r?ye(r.length):o,c="omission"in r?Yt(r.omission):c}t=Re(t);var m=t.length;if(Qr(t)){var C=_n(t);m=C.length}if(o>=m)return t;var L=o-jr(c);if(L<1)return c;var A=C?sr(C,0,L).join(""):t.slice(0,L);if(h===i)return A+c;if(C&&(L+=A.length-L),va(h)){if(t.slice(L).search(h)){var B,F=A;for(h.global||(h=Do(h.source,Re(T5.exec(h))+"g")),h.lastIndex=0;B=h.exec(F);)var K=B.index;A=A.slice(0,K===i?L:K)}}else if(t.indexOf(Yt(h),L)!=L){var q=A.lastIndexOf(h);q>-1&&(A=A.slice(0,q))}return A+c}function Mk(t){return t=Re(t),t&&Kb.test(t)?t.replace(S5,ox):t}var Tk=r1(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),wa=el("toUpperCase");function Jl(t,r,o){return t=Re(t),r=o?i:r,r===i?ex(t)?lx(t):HC(t):t.match(r)||[]}var e6=ve(function(t,r){try{return Ut(t,i,r)}catch(o){return _a(o)?o:new de(o)}}),Ik=Zn(function(t,r){return Zt(r,function(o){o=bn(o),Tn(t,o,ma(t[o],t))}),t});function Ok(t){var r=t==null?0:t.length,o=le();return t=r?Ve(t,function(c){if(typeof c[1]!="function")throw new on(u);return[o(c[0]),c[1]]}):[],ve(function(c){for(var h=-1;++h<r;){var m=t[h];if(Ut(m[0],this,c))return Ut(m[1],this,c)}})}function Pk(t){return ow(sn(t,b))}function La(t){return function(){return t}}function Ek(t,r){return t==null||t!==t?r:t}var Dk=nl(),Rk=nl(!0);function Nt(t){return t}function $a(t){return O2(typeof t=="function"?t:sn(t,b))}function Bk(t){return E2(sn(t,b))}function Fk(t,r){return D2(t,sn(r,b))}var zk=ve(function(t,r){return function(o){return k1(o,t,r)}}),Nk=ve(function(t,r){return function(o){return k1(t,o,r)}});function Sa(t,r,o){var c=_t(r),h=Hi(r,c);o==null&&!(Je(r)&&(h.length||!c.length))&&(o=r,r=t,t=this,h=Hi(r,_t(r)));var m=!(Je(o)&&"chain"in o)||!!o.chain,C=Yn(t);return Zt(h,function(L){var A=r[L];t[L]=A,C&&(t.prototype[L]=function(){var B=this.__chain__;if(m||B){var F=t(this.__wrapped__),K=F.__actions__=Bt(this.__actions__);return K.push({func:A,args:arguments,thisArg:t}),F.__chain__=B,F}return A.apply(t,tr([this.value()],arguments))})}),t}function Wk(){return vt._===this&&(vt._=gx),this}function ka(){}function Kk(t){return t=ye(t),ve(function(r){return R2(r,t)})}var Uk=ra(Ve),Zk=ra(r2),Hk=ra(Ao);function t6(t){return ua(t)?Mo(bn(t)):xw(t)}function Yk(t){return function(r){return t==null?i:vr(t,r)}}var Gk=il(),Vk=il(!0);function Aa(){return[]}function Ma(){return!1}function Qk(){return{}}function jk(){return""}function qk(){return!0}function Xk(t,r){if(t=ye(t),t<1||t>qe)return[];var o=Be,c=Lt(t,Be);r=le(r),t-=Be;for(var h=Oo(c,r);++o<t;)r(o);return h}function Jk(t){return pe(t)?Ve(t,bn):Gt(t)?[t]:Bt(bl(Re(t)))}function eA(t){var r=++dx;return Re(t)+r}var tA=qi(function(t,r){return t+r},0),nA=ia("ceil"),rA=qi(function(t,r){return t/r},1),iA=ia("floor");function oA(t){return t&&t.length?Zi(t,Nt,Uo):i}function aA(t,r){return t&&t.length?Zi(t,le(r,2),Uo):i}function sA(t){return a2(t,Nt)}function lA(t,r){return a2(t,le(r,2))}function cA(t){return t&&t.length?Zi(t,Nt,Go):i}function uA(t,r){return t&&t.length?Zi(t,le(r,2),Go):i}var fA=qi(function(t,r){return t*r},1),dA=ia("round"),hA=qi(function(t,r){return t-r},0);function gA(t){return t&&t.length?Io(t,Nt):0}function pA(t,r){return t&&t.length?Io(t,le(r,2)):0}return p.after=F$,p.ary=Il,p.assign=$S,p.assignIn=Hl,p.assignInWith=Yl,p.assignWith=ba,p.at=SS,p.before=Ol,p.bind=ma,p.bindAll=Ik,p.bindKey=Pl,p.castArray=j$,p.chain=Al,p.chunk=oL,p.compact=aL,p.concat=sL,p.cond=Ok,p.conforms=Pk,p.constant=La,p.countBy=p$,p.create=kS,p.curry=El,p.curryRight=Dl,p.debounce=Rl,p.defaults=AS,p.defaultsDeep=MS,p.defer=z$,p.delay=N$,p.difference=lL,p.differenceBy=cL,p.differenceWith=uL,p.drop=fL,p.dropRight=dL,p.dropRightWhile=hL,p.dropWhile=gL,p.fill=pL,p.filter=y$,p.flatMap=b$,p.flatMapDeep=C$,p.flatMapDepth=x$,p.flatten=Ll,p.flattenDeep=mL,p.flattenDepth=yL,p.flip=W$,p.flow=Dk,p.flowRight=Rk,p.fromPairs=_L,p.functions=RS,p.functionsIn=BS,p.groupBy=w$,p.initial=bL,p.intersection=CL,p.intersectionBy=xL,p.intersectionWith=wL,p.invert=zS,p.invertBy=NS,p.invokeMap=$$,p.iteratee=$a,p.keyBy=S$,p.keys=_t,p.keysIn=zt,p.map=i0,p.mapKeys=KS,p.mapValues=US,p.matches=Bk,p.matchesProperty=Fk,p.memoize=a0,p.merge=ZS,p.mergeWith=Gl,p.method=zk,p.methodOf=Nk,p.mixin=Sa,p.negate=s0,p.nthArg=Kk,p.omit=HS,p.omitBy=YS,p.once=K$,p.orderBy=k$,p.over=Uk,p.overArgs=U$,p.overEvery=Zk,p.overSome=Hk,p.partial=ya,p.partialRight=Bl,p.partition=A$,p.pick=GS,p.pickBy=Vl,p.property=t6,p.propertyOf=Yk,p.pull=kL,p.pullAll=Sl,p.pullAllBy=AL,p.pullAllWith=ML,p.pullAt=TL,p.range=Gk,p.rangeRight=Vk,p.rearg=Z$,p.reject=I$,p.remove=IL,p.rest=H$,p.reverse=ga,p.sampleSize=P$,p.set=QS,p.setWith=jS,p.shuffle=E$,p.slice=OL,p.sortBy=B$,p.sortedUniq=zL,p.sortedUniqBy=NL,p.split=vk,p.spread=Y$,p.tail=WL,p.take=KL,p.takeRight=UL,p.takeRightWhile=ZL,p.takeWhile=HL,p.tap=a$,p.throttle=G$,p.thru=r0,p.toArray=Kl,p.toPairs=Ql,p.toPairsIn=jl,p.toPath=Jk,p.toPlainObject=Zl,p.transform=qS,p.unary=V$,p.union=YL,p.unionBy=GL,p.unionWith=VL,p.uniq=QL,p.uniqBy=jL,p.uniqWith=qL,p.unset=XS,p.unzip=pa,p.unzipWith=kl,p.update=JS,p.updateWith=ek,p.values=a1,p.valuesIn=tk,p.without=XL,p.words=Jl,p.wrap=Q$,p.xor=JL,p.xorBy=e$,p.xorWith=t$,p.zip=n$,p.zipObject=r$,p.zipObjectDeep=i$,p.zipWith=o$,p.entries=Ql,p.entriesIn=jl,p.extend=Hl,p.extendWith=Yl,Sa(p,p),p.add=tA,p.attempt=e6,p.camelCase=ok,p.capitalize=ql,p.ceil=nA,p.clamp=nk,p.clone=q$,p.cloneDeep=J$,p.cloneDeepWith=eS,p.cloneWith=X$,p.conformsTo=tS,p.deburr=Xl,p.defaultTo=Ek,p.divide=rA,p.endsWith=ak,p.eq=Cn,p.escape=sk,p.escapeRegExp=lk,p.every=m$,p.find=_$,p.findIndex=xl,p.findKey=TS,p.findLast=v$,p.findLastIndex=wl,p.findLastKey=IS,p.floor=iA,p.forEach=Ml,p.forEachRight=Tl,p.forIn=OS,p.forInRight=PS,p.forOwn=ES,p.forOwnRight=DS,p.get=Ca,p.gt=nS,p.gte=rS,p.has=FS,p.hasIn=xa,p.head=$l,p.identity=Nt,p.includes=L$,p.indexOf=vL,p.inRange=rk,p.invoke=WS,p.isArguments=xr,p.isArray=pe,p.isArrayBuffer=iS,p.isArrayLike=Ft,p.isArrayLikeObject=ot,p.isBoolean=oS,p.isBuffer=lr,p.isDate=aS,p.isElement=sS,p.isEmpty=lS,p.isEqual=cS,p.isEqualWith=uS,p.isError=_a,p.isFinite=fS,p.isFunction=Yn,p.isInteger=Fl,p.isLength=l0,p.isMap=zl,p.isMatch=dS,p.isMatchWith=hS,p.isNaN=gS,p.isNative=pS,p.isNil=yS,p.isNull=mS,p.isNumber=Nl,p.isObject=Je,p.isObjectLike=nt,p.isPlainObject=P1,p.isRegExp=va,p.isSafeInteger=_S,p.isSet=Wl,p.isString=c0,p.isSymbol=Gt,p.isTypedArray=o1,p.isUndefined=vS,p.isWeakMap=bS,p.isWeakSet=CS,p.join=LL,p.kebabCase=ck,p.last=cn,p.lastIndexOf=$L,p.lowerCase=uk,p.lowerFirst=fk,p.lt=xS,p.lte=wS,p.max=oA,p.maxBy=aA,p.mean=sA,p.meanBy=lA,p.min=cA,p.minBy=uA,p.stubArray=Aa,p.stubFalse=Ma,p.stubObject=Qk,p.stubString=jk,p.stubTrue=qk,p.multiply=fA,p.nth=SL,p.noConflict=Wk,p.noop=ka,p.now=o0,p.pad=dk,p.padEnd=hk,p.padStart=gk,p.parseInt=pk,p.random=ik,p.reduce=M$,p.reduceRight=T$,p.repeat=mk,p.replace=yk,p.result=VS,p.round=dA,p.runInContext=k,p.sample=O$,p.size=D$,p.snakeCase=_k,p.some=R$,p.sortedIndex=PL,p.sortedIndexBy=EL,p.sortedIndexOf=DL,p.sortedLastIndex=RL,p.sortedLastIndexBy=BL,p.sortedLastIndexOf=FL,p.startCase=bk,p.startsWith=Ck,p.subtract=hA,p.sum=gA,p.sumBy=pA,p.template=xk,p.times=Xk,p.toFinite=Gn,p.toInteger=ye,p.toLength=Ul,p.toLower=wk,p.toNumber=un,p.toSafeInteger=LS,p.toString=Re,p.toUpper=Lk,p.trim=$k,p.trimEnd=Sk,p.trimStart=kk,p.truncate=Ak,p.unescape=Mk,p.uniqueId=eA,p.upperCase=Tk,p.upperFirst=wa,p.each=Ml,p.eachRight=Tl,p.first=$l,Sa(p,function(){var t={};return In(p,function(r,o){De.call(p.prototype,o)||(t[o]=r)}),t}(),{chain:!1}),p.VERSION=a,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Zt(["drop","take"],function(t,r){we.prototype[t]=function(o){o=o===i?1:gt(ye(o),0);var c=this.__filtered__&&!r?new we(this):this.clone();return c.__filtered__?c.__takeCount__=Lt(o,c.__takeCount__):c.__views__.push({size:Lt(o,Be),type:t+(c.__dir__<0?"Right":"")}),c},we.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Zt(["filter","map","takeWhile"],function(t,r){var o=r+1,c=o==et||o==At;we.prototype[t]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:le(h,3),type:o}),m.__filtered__=m.__filtered__||c,m}}),Zt(["head","last"],function(t,r){var o="take"+(r?"Right":"");we.prototype[t]=function(){return this[o](1).value()[0]}}),Zt(["initial","tail"],function(t,r){var o="drop"+(r?"":"Right");we.prototype[t]=function(){return this.__filtered__?new we(this):this[o](1)}}),we.prototype.compact=function(){return this.filter(Nt)},we.prototype.find=function(t){return this.filter(t).head()},we.prototype.findLast=function(t){return this.reverse().find(t)},we.prototype.invokeMap=ve(function(t,r){return typeof t=="function"?new we(this):this.map(function(o){return k1(o,t,r)})}),we.prototype.reject=function(t){return this.filter(s0(le(t)))},we.prototype.slice=function(t,r){t=ye(t);var o=this;return o.__filtered__&&(t>0||r<0)?new we(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==i&&(r=ye(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},we.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},we.prototype.toArray=function(){return this.take(Be)},In(we.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),c=/^(?:head|last)$/.test(r),h=p[c?"take"+(r=="last"?"Right":""):r],m=c||/^find/.test(r);h&&(p.prototype[r]=function(){var C=this.__wrapped__,L=c?[1]:arguments,A=C instanceof we,B=L[0],F=A||pe(C),K=function(xe){var Se=h.apply(p,tr([xe],L));return c&&q?Se[0]:Se};F&&o&&typeof B=="function"&&B.length!=1&&(A=F=!1);var q=this.__chain__,ie=!!this.__actions__.length,ce=m&&!q,_e=A&&!ie;if(!m&&F){C=_e?C:new we(this);var se=t.apply(C,L);return se.__actions__.push({func:r0,args:[K],thisArg:i}),new an(se,q)}return ce&&_e?t.apply(this,L):(se=this.thru(K),ce?c?se.value()[0]:se.value():se)})}),Zt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Mi[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(c&&!this.__chain__){var m=this.value();return r.apply(pe(m)?m:[],h)}return this[o](function(C){return r.apply(pe(C)?C:[],h)})}}),In(we.prototype,function(t,r){var o=p[r];if(o){var c=o.name+"";De.call(e1,c)||(e1[c]=[]),e1[c].push({name:r,func:o})}}),e1[ji(i,I).name]=[{name:"wrapper",func:i}],we.prototype.clone=Tx,we.prototype.reverse=Ix,we.prototype.value=Ox,p.prototype.at=s$,p.prototype.chain=l$,p.prototype.commit=c$,p.prototype.next=u$,p.prototype.plant=d$,p.prototype.reverse=h$,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=g$,p.prototype.first=p.prototype.head,b1&&(p.prototype[b1]=f$),p},qr=cx();gr?((gr.exports=qr)._=qr,Lo._=qr):vt._=qr}).call(Pn)}(E1,E1.exports);var r6=E1.exports;const st=f0(r6),i6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const a=i[1].x>i[0].x?0:1,s=fe.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*a:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const u=fn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=fn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[u,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=st.merge({},e,i)},getProperties:()=>e}},o6=()=>{let e=new Map,n=i=>{const a=e.get(i);return{style:(a==null?void 0:a.style)??"stroke_fill",color:(a==null?void 0:a.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(a==null?void 0:a.lineColor)??(a==null?void 0:a.borderColor),borderSize:a==null?void 0:a.borderWidth,borderStyle:(a==null?void 0:a.borderStyle)??(a==null?void 0:a.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:a})=>{if(i.length>1){const s=Ta(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(a.id)}}return[]},setProperties:(i,a)=>{e.set(a,st.merge({},e.get(a),i))},getProperties:i=>e.get(i)??{}}},a6=()=>{let e=new Map,n=i=>{const a=e.get(i);return{style:a.style??"stroke_fill",color:a.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:a.lineColor??a.borderColor,borderSize:a.borderWidth,borderStyle:a.borderStyle??a.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:a})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:n(a.id)}]:[],setProperties:(i,a)=>{e.set(a,st.merge({},e.get(a),i))},getProperties:i=>e.get(i)??{}}},s6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{if(a.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:a},styles:i()}];if(a.length===3){const s={x:a[0].x+(a[2].x-a[1].x),y:a[2].y};return[{type:"polygon",attrs:{coordinates:[a[0],a[1],a[2],s]},styles:n()}]}return[]},performEventPressedMove:({points:a,performPointIndex:s,performPoint:l})=>{s<2&&(a[0].value=l.value,a[1].value=l.value)},performEventMoveForDrawing:({currentStep:a,points:s,performPoint:l})=>{a===2&&(s[0].value=l.value)},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},l6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:n()}],setProperties:i=>{e=st.merge({},e,i)},getProperties:()=>e}},c6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{if(a.length>1){const s=Math.abs(a[0].x-a[1].x),l=Math.abs(a[0].y-a[1].y),u=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(_=>{const y=u*_;d.push({...a[0],r:y}),g.push({x:a[0].x,y:a[0].y+y+6,text:`${(_*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},u6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,overlay:s,chart:l,yAxis:u})=>{const f=[],d=[];if(a.length>1){let g=0;const _=l.getSymbol();((u==null?void 0:u.isInCandle())??!0)&&_?g=_.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach(S=>{g=Math.max(g,S.precision)});const y=a[1].x>a[0].x?a[0].x:a[1].x,b=[1,.786,.618,.5,.382,.236,0],M=a[0].y-a[1].y,w=s.points,x=w[0].value-w[1].value;b.forEach($=>{const S=a[1].y+M*$,I=(w[1].value+x*$).toFixed(g.price);f.push({coordinates:[{x:a[0].x,y:S},{x:a[1].x,y:S}]}),d.push({x:y,y:S,text:`${I} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},f6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,bounding:s})=>{if(a.length>1){const l=Ta(a[0],a[1])/Math.sqrt(24),u=a[1].x>a[0].x?0:1,f=fe.utils.getLinearSlopeIntercept(a[0],a[1]);let d;f?d=Math.atan(f[0])+Math.PI*u:a[1].y>a[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=fn({x:a[0].x-l,y:a[0].y},a[0],d),_=fn({x:a[0].x-l,y:a[0].y-l},a[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{..._,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let b=a[0].x-l,M=a[0].y-l;for(let w=2;w<9;w++){const x=y[w-2].r+y[w-1].r;let $=0;switch(w%4){case 0:{$=d,b-=y[w-2].r;break}case 1:{$=d+Math.PI/2,M-=y[w-2].r;break}case 2:{$=d+Math.PI,b+=y[w-2].r;break}case 3:{$=d+Math.PI/2*3,M+=y[w-2].r;break}}const S=$+Math.PI/2,I=fn({x:b,y:M},a[0],d);y.push({...I,r:x,startAngle:$,endAngle:S})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:u0(a,s),styles:i()}]}return[]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},d6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,bounding:s})=>{const l=[];let u=[];const f=[];if(a.length>1){const d=a[1].x>a[0].x?-38:4,g=a[1].y>a[0].y?-2:20,_=a[1].x-a[0].x,y=a[1].y-a[0].y;[1,.75,.618,.5,.382,.25,0].forEach(M=>{const w=a[1].x-_*M,x=a[1].y-y*M;l.push({coordinates:[{x:w,y:a[0].y},{x:w,y:a[1].y}]}),l.push({coordinates:[{x:a[0].x,y:x},{x:a[1].x,y:x}]}),u=u.concat(u0([a[0],{x:w,y:a[1].y}],s)),u=u.concat(u0([a[0],{x:a[1].x,y:x}],s)),f.unshift({x:a[0].x+d,y:x+10,text:`${M.toFixed(3)}`}),f.unshift({x:w-18,y:a[0].y+g,text:`${M.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:u,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},h6=()=>{let e={};const n=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({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 d=[],g=[];if(u.length>2){let _=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?_=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(I=>{_=Math.max(_,I.precision)});const b=f.points,M=b[1].value-b[0].value,w=u[1].y-u[0].y,x=[0,.236,.382,.5,.618,.786,1],$=u[2].x>u[1].x?u[1].x:u[2].x;x.forEach(S=>{const I=u[2].y+w*S,D=(b[2].value+M*S).toFixed(_.price);d.push({coordinates:[{x:u[1].x,y:I},{x:u[2].x,y:I}]}),g.push({x:$,y:I,text:`${D} (${(S*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:u},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:a()}]},setProperties:s=>{e=st.merge({},e,s)},getProperties:()=>e}},g6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({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,d=[{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}]}],g=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:n()},{type:"line",attrs:d,styles:a()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=st.merge({},e,l)},getProperties:()=>e}},p6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},m6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},y6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},_6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,u)=>({...l,text:`(${u})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},v6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),style:"dashed"}),a=()=>({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"],d=s.map((g,_)=>({...g,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:n()},{type:"line",attrs:[{coordinates:l},{coordinates:u}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:a()}]},setProperties:s=>{e=st.merge({},e,s)},getProperties:()=>e}},b6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({...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=[],d=[],g=["X","A","B","C","D"],_=l.map((y,b)=>({...y,baseline:"bottom",text:`(${g[b]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),d.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:a()},{type:"polygon",ignoreEvent:!0,attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:_,styles:s()}]},setProperties:l=>{e=st.merge({},e,l)},getProperties:()=>e}},C6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const a=n.filter((s,l)=>l!==1);i.push({coordinates:a})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:a})=>{n>=2&&i.push(a)},setProperties:n=>{e=st.merge({},e,n)},getProperties:()=>e}};function Ln(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const d0=(e,n,i)=>{const a={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(a.price=s.pricePrecision,a.volume=s.volumePrecision):e.getIndicators({paneId:n.paneId}).forEach(u=>{a.price=Math.max(a.price,u.precision)}),a},x6=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},Ia="#2ebd85",Oa="#f6465d",w6="#2ebd85",L6="#f6465d",$6=e=>({style:"solid",size:1,color:e,dashedValue:[]}),Pa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),S6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),k6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),A6=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var Pe;const s=(Pe=a.points[0])==null?void 0:Pe.value,l=a.extendData,u=e.getDataList().at(-1);if(s===void 0||!l||!u||!Number.isFinite(u.close))return[];const f=u.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=u.close,_=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*_:(s-g)*l.size*_,b=e.getSymbol(),M=(b==null?void 0:b.pricePrecision)??2,w=(b==null?void 0:b.volumePrecision)??4,x=Ln(l.size,w),$=`PNL ${y>=0?"+":""}${Ln(y,M)}`,S=l.side==="long"?Ia:Oa,I=y>=0?w6:L6,D=k6(S),R=S6(I),H=D.paddingLeft,G=D.paddingRight,U=fe.utils.calcTextWidth(x)+H+G,O=fe.utils.calcTextWidth($)+H+G,W=16,Q=-1,X=0,re=W+O+Q,J=re+U+X;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(J,i.width),y:d},{x:i.width,y:d}]},styles:$6(S),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:W,y:d,text:$,align:"left",baseline:"middle"},styles:R,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:re,y:d,text:x,align:"left",baseline:"middle"},styles:D,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,u=n.extendData,f=d0(e,n,s);if(l===void 0||!u)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Pa("#888")};u.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=Ln(l,f.price);return{type:"text",attrs:{x:_?0:a.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:Pa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Ea(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function M6(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,a=Ea(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Ea(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return a===void 0||s===void 0?null:{min:Math.min(a,s),max:Math.max(a,s)}}function s1(e,n){const i=M6(e);return i?n>=i.min&&n<=i.max:!1}const h0="#f6465d",T6=()=>({style:"dashed",size:1,color:h0,dashedValue:[4,4]}),D1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:h0,borderColor:h0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},I6={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},O6=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var I;const s=(I=a.points[0])==null?void 0:I.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!s1(e,s))return[];const u=l.timestamp,f=e.convertToPixel({timestamp:u,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${Ln(s,g)}`,b=D1.paddingLeft,M=D1.paddingRight,w=fe.utils.calcTextWidth(y)+b+M,x=16,$=2,S=x+w+$;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min(S,i.width),y:f},{x:i.width,y:f}]},styles:T6(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x,y:f,text:y,align:"left",baseline:"middle"},styles:D1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,u=d0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:D1};if(l===void 0||!Number.isFinite(l)||!s1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=Ln(l,u.price);return{type:"text",attrs:{x:_?0:a.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:I6}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),P6="#2ebd85",E6="#f6465d";function Da(e){return e?P6:E6}const D6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),R6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),B6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),Ra=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),F6=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var W;const s=(W=a.points[0])==null?void 0:W.value,l=a.extendData,u=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!u)return[];if(!s1(e,s))return[];const f=u.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const _=(g==null?void 0:g.volumePrecision)??4,y="限价",b=Ln(l.size,_),M=Da(l.isBuy),w=R6(M),x=B6(M),$=w.paddingLeft,S=w.paddingRight,I=fe.utils.calcTextWidth(y)+$+S,D=fe.utils.calcTextWidth(b)+$+S,R=16,H=-1,G=2,U=R+I+H,O=U+D+G;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(O,i.width),y:d},{x:i.width,y:d}]},styles:D6(M),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:R,y:d,text:y,align:"left",baseline:"middle"},styles:w,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:U,y:d,text:b,align:"left",baseline:"middle"},styles:x,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var M;const l=(M=n.points[0])==null?void 0:M.value,u=d0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Ra("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!s1(e,l))return f;Da(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const _=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,b=Ln(l,u.price);return{type:"text",attrs:{x:y?0:a.width,y:_,text:b,align:y?"left":"right",baseline:"middle"},styles:Ra("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),R1="klinecharts-pro-his-order-hover",g0="klinecharts-pro-warning-detail-open",z6="#2ebd85",N6="#f6465d",W6=6,Ba=14,Fa=14,B1=new Map,K6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},U6=()=>({name:"historicalOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const a=i.points[0],s=i.extendData;if(!a||!s||!Number.isFinite(a.timestamp)||typeof s.isBuy!="boolean")return[];const l=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,u=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0;if(l===void 0||u===void 0)return[];const f=s.isBuy?z6:N6,d=s.isBuy?"B":"S",g=n[0].x,_=e.convertToPixel({timestamp:a.timestamp,value:l}).y??n[0].y,y=e.convertToPixel({timestamp:a.timestamp,value:u}).y??n[0].y,b=Math.max(0,s.stackIndex??0),M=s.isBuy?y+Ba+b*Fa:_-Ba-b*Fa;if(i.id){const x=e.getDom("candle_pane","main");if(x){const $=x.getBoundingClientRect();B1.set(i.id,{x:$.left+g,y:$.top+M})}}return[{key:"his-order-dot",type:"circle",attrs:{x:g,y:M-.5,r:W6},styles:{color:f},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:g,y:M,text:d,align:"center",baseline:"middle"},styles:K6,ignoreEvent:!1}]},onMouseEnter:e=>{var u,f,d,g;const n=e,i=e.overlay.id?B1.get(e.overlay.id):void 0,a=(i==null?void 0:i.x)??((u=n.event)==null?void 0:u.clientX)??((f=n.mouseEvent)==null?void 0:f.clientX)??null,s=(i==null?void 0:i.y)??((d=n.event)==null?void 0:d.clientY)??((g=n.mouseEvent)==null?void 0:g.clientY)??null,l=e.overlay.extendData;return l&&window.dispatchEvent(new CustomEvent(R1,{detail:{visible:!0,order:l,anchorX:a,anchorY:s}})),!1},onMouseLeave:e=>(e.overlay.id&&B1.delete(e.overlay.id),window.dispatchEvent(new CustomEvent(R1,{detail:{visible:!1,order:null,anchorX:null,anchorY:null}})),!1),onRemoved:e=>(e.overlay.id&&B1.delete(e.overlay.id),!1),onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),Z6="#bfbfbf",H6=140,F1=new Map;function p0(e){const n=F1.get(e);n!=null&&(clearTimeout(n),F1.delete(e))}function Y6(e,n){p0(n);const i=setTimeout(()=>{F1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},H6);F1.set(n,i)}function za(e){return e==="warning-triangle"||e==="warning-info-text"||e==="warning-info-close"}let z1;function G6(e){z1=e.onRemove}const V6=()=>({style:"dashed",size:1,color:"rgba(255, 255, 255, 1)",dashedValue:[4,4]});function Q6(e,n=2){return e.type==="price_reach"?`价格达到 ${Ln(e.price??0,n)}`:e.type==="price_rise_to"?`价格涨到 ${Ln(e.price??0,n)}`:e.type==="price_fall_to"?`价格跌到 ${Ln(e.price??0,n)}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??0}%`:`价格${e.window??"5m"}跌幅 ${e.percent??0}%`}const j6=()=>({name:"priceWarningLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var $,S;const s=($=a.points[0])==null?void 0:$.value,l=a.extendData,u=l==null?void 0:l.warning,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!u||!f)return[];if(!s1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=((S=e.getSymbol())==null?void 0:S.pricePrecision)??2,_=Q6(u,g),y=fe.utils.calcTextWidth(_),b=i.width,M=b-10,w=M-2,x=[{key:"warning-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:w,y:d}]},styles:V6(),ignoreEvent:!0},{key:"warning-triangle",type:"polygon",attrs:{coordinates:[{x:M,y:d-6},{x:b,y:d},{x:M,y:d+6}]},styles:{style:"fill",color:Z6},ignoreEvent:!1}];if(l!=null&&l.showInfo){const I=Math.max(120,y+28),D=Math.max(8,M-I-10);x.push({key:"warning-info-text",type:"text",attrs:{x:D+8,y:d,text:_,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"warning-info-close",type:"text",attrs:{x:D+I-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return x},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var a;const n=(a=e.figure)==null?void 0:a.key;if(!za(n))return!1;p0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return za(n)&&Y6(e.chart,e.overlay.id),!1},onRemoved:e=>(p0(e.overlay.id),!1),onSelected:e=>{var a;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((a=e.figure)==null?void 0:a.key)??"")==="warning-info-close"&&n.warning&&(z1==null||z1(n.warning)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="warning-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.warning&&window.dispatchEvent(new CustomEvent(g0,{detail:{warning:n.warning}})),!1}}),Na=[i6(),C6(),o6(),a6(),l6(),s6(),c6(),u6(),f6(),d6(),h6(),g6(),p6(),m6(),y6(),_6(),v6(),b6(),A6(),O6(),F6(),U6(),j6()];class q6{constructor(n){wn(this,"_apiKey");wn(this,"_prevSymbolMarket");wn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(n,i,a,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.ticker}/range/${i.span}/${i.type}/${a}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(n,i,a){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var u;(u=this._ws)==null||u.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=u=>{var d;const f=JSON.parse(u.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`}))):"sym"in f&&a({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const X6=!1,J6=(e,n)=>e===n,m0=Symbol("solid-proxy"),e3=typeof Proxy=="function",t3=Symbol("solid-track"),N1={equals:J6};let Wa=Ya;const En=1,W1=2,Ka={owned:null,cleanups:null,context:null,owner:null},y0={};var ze=null;let _0=null,n3=null,Fe=null,Ct=null,Dn=null,K1=0;function U1(e,n){const i=Fe,a=ze,s=e.length===0,l=n===void 0?a:n,u=s?Ka:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>hn(()=>c1(u)));ze=u,Fe=null;try{return Rn(f,!0)}finally{Fe=i,ze=a}}function V(e,n){n=n?Object.assign({},N1,n):N1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},a=s=>(typeof s=="function"&&(s=s(i.value)),Ha(i,s));return[Za.bind(i),a]}function Ua(e,n,i){const a=Z1(e,n,!0,En);wr(a)}function ke(e,n,i){const a=Z1(e,n,!1,En);wr(a)}function Wt(e,n,i){Wa=u3;const a=Z1(e,n,!1,En);(!i||!i.render)&&(a.user=!0),Dn?Dn.push(a):wr(a)}function dn(e,n,i){i=i?Object.assign({},N1,i):N1;const a=Z1(e,n,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=i.equals||void 0,wr(a),Za.bind(a)}function r3(e){return e&&typeof e=="object"&&"then"in e}function i3(e,n,i){let a,s,l;typeof n=="function"?(a=e,s=n,l=i||{}):(a=!0,s=e,l=n||{});let u=null,f=y0,d=!1,g="initialValue"in l,_=typeof a=="function"&&dn(a);const y=new Set,[b,M]=(l.storage||V)(l.initialValue),[w,x]=V(void 0),[$,S]=V(void 0,{equals:!1}),[I,D]=V(g?"ready":"unresolved");function R(W,Q,X,re){return u===W&&(u=null,re!==void 0&&(g=!0),(W===f||Q===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(re,{value:Q})),f=y0,H(Q,X)),Q}function H(W,Q){Rn(()=>{Q===void 0&&M(()=>W),D(Q!==void 0?"errored":g?"ready":"unresolved"),x(Q);for(const X of y.keys())X.decrement();y.clear()},!1)}function G(){const W=s3,Q=b(),X=w();if(X!==void 0&&!u)throw X;return Fe&&!Fe.user&&W&&Ua(()=>{$(),u&&(W.resolved||y.has(W)||(W.increment(),y.add(W)))}),Q}function U(W=!0){if(W!==!1&&d)return;d=!1;const Q=_?_():a;if(Q==null||Q===!1){R(u,hn(b));return}let X;const re=f!==y0?f:hn(()=>{try{return s(Q,{value:b(),refetching:W})}catch(J){X=J}});if(X!==void 0){R(u,void 0,G1(X),Q);return}else if(!r3(re))return R(u,re,void 0,Q),re;return u=re,"v"in re?(re.s===1?R(u,re.v,void 0,Q):R(u,void 0,G1(re.v),Q),re):(d=!0,queueMicrotask(()=>d=!1),Rn(()=>{D(g?"refreshing":"pending"),S()},!1),re.then(J=>R(re,J,void 0,Q),J=>R(re,void 0,G1(J),Q)))}Object.defineProperties(G,{state:{get:()=>I()},error:{get:()=>w()},loading:{get(){const W=I();return W==="pending"||W==="refreshing"}},latest:{get(){if(!g)return G();const W=w();if(W&&!u)throw W;return b()}}});let O=ze;return _?Ua(()=>(O=ze,U(!1))):U(!1),[G,{refetch:W=>o3(O,()=>U(W)),mutate:M}]}function hn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function v0(e){Wt(()=>hn(e))}function l1(e){return ze===null||(ze.cleanups===null?ze.cleanups=[e]:ze.cleanups.push(e)),e}function o3(e,n){const i=ze,a=Fe;ze=e,Fe=null;try{return Rn(n,!0)}catch(s){b0(s)}finally{ze=i,Fe=a}}function a3(e){const n=Fe,i=ze;return Promise.resolve().then(()=>{Fe=n,ze=i;let a;return Rn(e,!1),Fe=ze=null,a?a.done:void 0})}let s3;function Za(){if(this.sources&&this.state)if(this.state===En)wr(this);else{const e=Ct;Ct=null,Rn(()=>Y1(this),!1),Ct=e}if(Fe){const e=this.observers?this.observers.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(e)):(Fe.sources=[this],Fe.sourceSlots=[e]),this.observers?(this.observers.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}return this.value}function Ha(e,n,i){let a=e.value;return(!e.comparator||!e.comparator(a,n))&&(e.value=n,e.observers&&e.observers.length&&Rn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],u=_0&&_0.running;u&&_0.disposed.has(l),(u?!l.tState:!l.state)&&(l.pure?Ct.push(l):Dn.push(l),l.observers&&Ga(l)),u||(l.state=En)}if(Ct.length>1e6)throw Ct=[],new Error},!1)),n}function wr(e){if(!e.fn)return;c1(e);const n=K1;l3(e,e.value,n)}function l3(e,n,i){let a;const s=ze,l=Fe;Fe=ze=e;try{a=e.fn(n)}catch(u){return e.pure&&(e.state=En,e.owned&&e.owned.forEach(c1),e.owned=null),e.updatedAt=i+1,b0(u)}finally{Fe=l,ze=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Ha(e,a):e.value=a,e.updatedAt=i)}function Z1(e,n,i,a=En,s){const l={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:ze,context:ze?ze.context:null,pure:i};return ze===null||ze!==Ka&&(ze.owned?ze.owned.push(l):ze.owned=[l]),l}function H1(e){if(e.state===0)return;if(e.state===W1)return Y1(e);if(e.suspense&&hn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<K1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===En)wr(e);else if(e.state===W1){const a=Ct;Ct=null,Rn(()=>Y1(e,n[0]),!1),Ct=a}}function Rn(e,n){if(Ct)return e();let i=!1;n||(Ct=[]),Dn?i=!0:Dn=[],K1++;try{const a=e();return c3(i),a}catch(a){i||(Dn=null),Ct=null,b0(a)}}function c3(e){if(Ct&&(Ya(Ct),Ct=null),e)return;const n=Dn;Dn=null,n.length&&Rn(()=>Wa(n),!1)}function Ya(e){for(let n=0;n<e.length;n++)H1(e[n])}function u3(e){let n,i=0;for(n=0;n<e.length;n++){const a=e[n];a.user?e[i++]=a:H1(a)}for(n=0;n<i;n++)H1(e[n])}function Y1(e,n){e.state=0;for(let i=0;i<e.sources.length;i+=1){const a=e.sources[i];if(a.sources){const s=a.state;s===En?a!==n&&(!a.updatedAt||a.updatedAt<K1)&&H1(a):s===W1&&Y1(a,n)}}}function Ga(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=W1,i.pure?Ct.push(i):Dn.push(i),i.observers&&Ga(i))}}function c1(e){let n;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),a=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),u=i.observerSlots.pop();a<s.length&&(l.sourceSlots[u]=a,s[a]=l,i.observerSlots[a]=u)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)c1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)c1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function G1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function b0(e,n=ze){throw G1(e)}const f3=Symbol("fallback");function Va(e){for(let n=0;n<e.length;n++)e[n]()}function d3(e,n,i={}){let a=[],s=[],l=[],u=0,f=n.length>1?[]:null;return l1(()=>Va(l)),()=>{let d=e()||[],g=d.length,_,y;return d[t3],hn(()=>{let M,w,x,$,S,I,D,R,H;if(g===0)u!==0&&(Va(l),l=[],a=[],s=[],u=0,f&&(f=[])),i.fallback&&(a=[f3],s[0]=U1(G=>(l[0]=G,i.fallback())),u=1);else if(u===0){for(s=new Array(g),y=0;y<g;y++)a[y]=d[y],s[y]=U1(b);u=g}else{for(x=new Array(g),$=new Array(g),f&&(S=new Array(g)),I=0,D=Math.min(u,g);I<D&&a[I]===d[I];I++);for(D=u-1,R=g-1;D>=I&&R>=I&&a[D]===d[R];D--,R--)x[R]=s[D],$[R]=l[D],f&&(S[R]=f[D]);for(M=new Map,w=new Array(R+1),y=R;y>=I;y--)H=d[y],_=M.get(H),w[y]=_===void 0?-1:_,M.set(H,y);for(_=I;_<=D;_++)H=a[_],y=M.get(H),y!==void 0&&y!==-1?(x[y]=s[_],$[y]=l[_],f&&(S[y]=f[_]),y=w[y],M.set(H,y)):l[_]();for(y=I;y<g;y++)y in x?(s[y]=x[y],l[y]=$[y],f&&(f[y]=S[y],f[y](y))):s[y]=U1(b);s=s.slice(0,u=g),a=d.slice(0)}return s});function b(M){if(l[y]=M,f){const[w,x]=V(y);return f[y]=x,n(d[y],w)}return n(d[y])}}}function Z(e,n){return hn(()=>e(n||{}))}function V1(){return!0}const h3={get(e,n,i){return n===m0?i:e.get(n)},has(e,n){return n===m0?!0:e.has(n)},set:V1,deleteProperty:V1,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:V1,deleteProperty:V1}},ownKeys(e){return e.keys()}};function C0(e){return(e=typeof e=="function"?e():e)?e:{}}function g3(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function Qa(...e){let n=!1;for(let u=0;u<e.length;u++){const f=e[u];n=n||!!f&&m0 in f,e[u]=typeof f=="function"?(n=!0,dn(f)):f}if(e3&&n)return new Proxy({get(u){for(let f=e.length-1;f>=0;f--){const d=C0(e[f])[u];if(d!==void 0)return d}},has(u){for(let f=e.length-1;f>=0;f--)if(u in C0(e[f]))return!0;return!1},keys(){const u=[];for(let f=0;f<e.length;f++)u.push(...Object.keys(C0(e[f])));return[...new Set(u)]}},h3);const i={},a=Object.create(null);for(let u=e.length-1;u>=0;u--){const f=e[u];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const _=d[g];if(_==="__proto__"||_==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,_);if(!a[_])a[_]=y.get?{enumerable:!0,configurable:!0,get:g3.bind(i[_]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const b=i[_];b&&(y.get?b.push(y.get.bind(f)):y.value!==void 0&&b.push(()=>y.value))}}}const s={},l=Object.keys(a);for(let u=l.length-1;u>=0;u--){const f=l[u],d=a[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const p3=e=>`Stale read from <${e}>.`;function ja(e){const n="fallback"in e&&{fallback:()=>e.fallback};return dn(d3(()=>e.each,e.children,n||void 0))}function Ae(e){const n=e.keyed,i=dn(()=>e.when,void 0,void 0),a=n?i:dn(i,void 0,{equals:(s,l)=>!s==!l});return dn(()=>{const s=a();if(s){const l=e.children;return typeof l=="function"&&l.length>0?hn(()=>l(n?s:()=>{if(!hn(a))throw p3("Show");return i()})):l}return e.fallback},void 0,void 0)}const Qe=e=>dn(()=>e());function m3(e,n,i){let a=i.length,s=n.length,l=a,u=0,f=0,d=n[s-1].nextSibling,g=null;for(;u<s||f<l;){if(n[u]===i[f]){u++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===u){const _=l<a?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],_)}else if(l===f)for(;u<s;)(!g||!g.has(n[u]))&&n[u].remove(),u++;else if(n[u]===i[l-1]&&i[f]===n[s-1]){const _=n[--s].nextSibling;e.insertBefore(i[f++],n[u++].nextSibling),e.insertBefore(i[--l],_),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const _=g.get(n[u]);if(_!=null)if(f<_&&_<l){let y=u,b=1,M;for(;++y<s&&y<l&&!((M=g.get(n[y]))==null||M!==_+b);)b++;if(b>_-f){const w=n[u];for(;f<_;)e.insertBefore(i[f++],w)}else e.replaceChild(i[f++],n[u++])}else u++;else n[u++].remove()}}}const qa="_$DX_DELEGATE";function y3(e,n,i,a={}){let s;return U1(l=>{s=l,n===document?e():z(n,e(),n.firstChild?null:void 0,i)},a.owner),()=>{s(),n.textContent=""}}function N(e,n,i,a){let s;const l=()=>{const f=a?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:a?f.firstChild:f.content.firstChild},u=n?()=>hn(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return u.cloneNode=u,u}function Pt(e,n=window.document){const i=n[qa]||(n[qa]=new Set);for(let a=0,s=e.length;a<s;a++){const l=e[a];i.has(l)||(i.add(l),n.addEventListener(l,_3))}}function Et(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Kt(e,n){n==null?e.removeAttribute("class"):e.className=n}function $n(e,n,i,a){if(a)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function je(e,n,i){if(!n)return i?Et(e,"style"):n;const a=e.style;if(typeof n=="string")return a.cssText=n;typeof i=="string"&&(a.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&a.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(a.setProperty(l,s),i[l]=s);return i}function Lr(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function x0(e,n,i){return hn(()=>e(n,i))}function z(e,n,i,a){if(i!==void 0&&!a&&(a=[]),typeof n!="function")return Q1(e,n,a,i);ke(s=>Q1(e,n(),s,i),a)}function _3(e){let n=e.target;const i=`$$${e.type}`,a=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),u=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;u()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!u());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(a)}function Q1(e,n,i,a,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,u=a!==void 0;if(e=u&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(u){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=$r(e,i,a,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=$r(e,i,a);else{if(l==="function")return ke(()=>{let f=n();for(;typeof f=="function";)f=f();i=Q1(e,f,i,a)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(w0(f,n,i,s))return ke(()=>i=Q1(e,f,i,a,!0)),()=>i;if(f.length===0){if(i=$r(e,i,a),u)return i}else d?i.length===0?Xa(e,f,a):m3(e,i,f):(i&&$r(e),Xa(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(u)return i=$r(e,i,a,n);$r(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function w0(e,n,i,a){let s=!1;for(let l=0,u=n.length;l<u;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=w0(e,f,d)||s;else if(g==="function")if(a){for(;typeof f=="function";)f=f();s=w0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const _=String(f);d&&d.nodeType===3&&d.data===_?e.push(d):e.push(document.createTextNode(_))}}return s}function Xa(e,n,i=null){for(let a=0,s=n.length;a<s;a++)e.insertBefore(n[a],i)}function $r(e,n,i,a){if(i===void 0)return e.textContent="";const s=a||document.createTextNode("");if(n.length){let l=!1;for(let u=n.length-1;u>=0;u--){const f=n[u];if(s!==f){const d=f.parentNode===e;!l&&!u?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function v3(){this.__data__=[],this.size=0}var b3=v3;function C3(e,n){return e===n||e!==e&&n!==n}var Ja=C3,x3=Ja;function w3(e,n){for(var i=e.length;i--;)if(x3(e[i][0],n))return i;return-1}var j1=w3,L3=j1,$3=Array.prototype,S3=$3.splice;function k3(e){var n=this.__data__,i=L3(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():S3.call(n,i,1),--this.size,!0}var A3=k3,M3=j1;function T3(e){var n=this.__data__,i=M3(n,e);return i<0?void 0:n[i][1]}var I3=T3,O3=j1;function P3(e){return O3(this.__data__,e)>-1}var E3=P3,D3=j1;function R3(e,n){var i=this.__data__,a=D3(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}var B3=R3,F3=b3,z3=A3,N3=I3,W3=E3,K3=B3;function Sr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Sr.prototype.clear=F3,Sr.prototype.delete=z3,Sr.prototype.get=N3,Sr.prototype.has=W3,Sr.prototype.set=K3;var q1=Sr,U3=q1;function Z3(){this.__data__=new U3,this.size=0}var H3=Z3;function Y3(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var G3=Y3;function V3(e){return this.__data__.get(e)}var Q3=V3;function j3(e){return this.__data__.has(e)}var q3=j3,X3=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,es=X3,J3=es,ec=typeof self=="object"&&self&&self.Object===Object&&self,tc=J3||ec||Function("return this")(),Sn=tc,nc=Sn,rc=nc.Symbol,X1=rc,ts=X1,ns=Object.prototype,ic=ns.hasOwnProperty,oc=ns.toString,u1=ts?ts.toStringTag:void 0;function ac(e){var n=ic.call(e,u1),i=e[u1];try{e[u1]=void 0;var a=!0}catch{}var s=oc.call(e);return a&&(n?e[u1]=i:delete e[u1]),s}var sc=ac,lc=Object.prototype,cc=lc.toString;function uc(e){return cc.call(e)}var fc=uc,rs=X1,dc=sc,hc=fc,gc="[object Null]",pc="[object Undefined]",is=rs?rs.toStringTag:void 0;function mc(e){return e==null?e===void 0?pc:gc:is&&is in Object(e)?dc(e):hc(e)}var f1=mc;function yc(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var kr=yc,_c=f1,vc=kr,bc="[object AsyncFunction]",Cc="[object Function]",xc="[object GeneratorFunction]",wc="[object Proxy]";function Lc(e){if(!vc(e))return!1;var n=_c(e);return n==Cc||n==xc||n==bc||n==wc}var os=Lc,$c=Sn,Sc=$c["__core-js_shared__"],kc=Sc,L0=kc,as=function(){var e=/[^.]+$/.exec(L0&&L0.keys&&L0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ac(e){return!!as&&as in e}var Mc=Ac,Tc=Function.prototype,Ic=Tc.toString;function Oc(e){if(e!=null){try{return Ic.call(e)}catch{}try{return e+""}catch{}}return""}var ss=Oc,Pc=os,Ec=Mc,Dc=kr,Rc=ss,Bc=/[\\^$.*+?()[\]{}|]/g,Fc=/^\[object .+?Constructor\]$/,zc=Function.prototype,Nc=Object.prototype,Wc=zc.toString,Kc=Nc.hasOwnProperty,Uc=RegExp("^"+Wc.call(Kc).replace(Bc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zc(e){if(!Dc(e)||Ec(e))return!1;var n=Pc(e)?Uc:Fc;return n.test(Rc(e))}var Hc=Zc;function Yc(e,n){return e==null?void 0:e[n]}var Gc=Yc,Vc=Hc,Qc=Gc;function jc(e,n){var i=Qc(e,n);return Vc(i)?i:void 0}var cr=jc,qc=cr,Xc=Sn,Jc=qc(Xc,"Map"),$0=Jc,e8=cr,t8=e8(Object,"create"),J1=t8,ls=J1;function n8(){this.__data__=ls?ls(null):{},this.size=0}var r8=n8;function i8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var o8=i8,a8=J1,s8="__lodash_hash_undefined__",l8=Object.prototype,c8=l8.hasOwnProperty;function u8(e){var n=this.__data__;if(a8){var i=n[e];return i===s8?void 0:i}return c8.call(n,e)?n[e]:void 0}var f8=u8,d8=J1,h8=Object.prototype,g8=h8.hasOwnProperty;function p8(e){var n=this.__data__;return d8?n[e]!==void 0:g8.call(n,e)}var m8=p8,y8=J1,_8="__lodash_hash_undefined__";function v8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=y8&&n===void 0?_8:n,this}var b8=v8,C8=r8,x8=o8,w8=f8,L8=m8,$8=b8;function Ar(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Ar.prototype.clear=C8,Ar.prototype.delete=x8,Ar.prototype.get=w8,Ar.prototype.has=L8,Ar.prototype.set=$8;var S8=Ar,cs=S8,k8=q1,A8=$0;function M8(){this.size=0,this.__data__={hash:new cs,map:new(A8||k8),string:new cs}}var T8=M8;function I8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var O8=I8,P8=O8;function E8(e,n){var i=e.__data__;return P8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ei=E8,D8=ei;function R8(e){var n=D8(this,e).delete(e);return this.size-=n?1:0,n}var B8=R8,F8=ei;function z8(e){return F8(this,e).get(e)}var N8=z8,W8=ei;function K8(e){return W8(this,e).has(e)}var U8=K8,Z8=ei;function H8(e,n){var i=Z8(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}var Y8=H8,G8=T8,V8=B8,Q8=N8,j8=U8,q8=Y8;function Mr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Mr.prototype.clear=G8,Mr.prototype.delete=V8,Mr.prototype.get=Q8,Mr.prototype.has=j8,Mr.prototype.set=q8;var us=Mr,X8=q1,J8=$0,e7=us,t7=200;function n7(e,n){var i=this.__data__;if(i instanceof X8){var a=i.__data__;if(!J8||a.length<t7-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new e7(a)}return i.set(e,n),this.size=i.size,this}var r7=n7,i7=q1,o7=H3,a7=G3,s7=Q3,l7=q3,c7=r7;function Tr(e){var n=this.__data__=new i7(e);this.size=n.size}Tr.prototype.clear=o7,Tr.prototype.delete=a7,Tr.prototype.get=s7,Tr.prototype.has=l7,Tr.prototype.set=c7;var u7=Tr;function f7(e,n){for(var i=-1,a=e==null?0:e.length;++i<a&&n(e[i],i,e)!==!1;);return e}var d7=f7,h7=cr,g7=function(){try{var e=h7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p7=g7,fs=p7;function m7(e,n,i){n=="__proto__"&&fs?fs(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var ds=m7,y7=ds,_7=Ja,v7=Object.prototype,b7=v7.hasOwnProperty;function C7(e,n,i){var a=e[n];(!(b7.call(e,n)&&_7(a,i))||i===void 0&&!(n in e))&&y7(e,n,i)}var S0=C7,x7=S0,w7=ds;function L7(e,n,i,a){var s=!i;i||(i={});for(var l=-1,u=n.length;++l<u;){var f=n[l],d=a?a(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?w7(i,f,d):x7(i,f,d)}return i}var ti=L7;function $7(e,n){for(var i=-1,a=Array(e);++i<e;)a[i]=n(i);return a}var S7=$7;function k7(e){return e!=null&&typeof e=="object"}var Ir=k7,A7=f1,M7=Ir,T7="[object Arguments]";function I7(e){return M7(e)&&A7(e)==T7}var O7=I7,hs=O7,P7=Ir,gs=Object.prototype,E7=gs.hasOwnProperty,D7=gs.propertyIsEnumerable,R7=hs(function(){return arguments}())?hs:function(e){return P7(e)&&E7.call(e,"callee")&&!D7.call(e,"callee")},B7=R7,F7=Array.isArray,Or=F7,ni={exports:{}};function z7(){return!1}var N7=z7;ni.exports,function(e,n){var i=Sn,a=N7,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===s,f=u?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||a;e.exports=g}(ni,ni.exports);var ps=ni.exports,W7=9007199254740991,K7=/^(?:0|[1-9]\d*)$/;function U7(e,n){var i=typeof e;return n=n??W7,!!n&&(i=="number"||i!="symbol"&&K7.test(e))&&e>-1&&e%1==0&&e<n}var ms=U7,Z7=9007199254740991;function H7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Z7}var ys=H7,Y7=f1,G7=ys,V7=Ir,Q7="[object Arguments]",j7="[object Array]",q7="[object Boolean]",X7="[object Date]",J7="[object Error]",eu="[object Function]",tu="[object Map]",nu="[object Number]",ru="[object Object]",iu="[object RegExp]",ou="[object Set]",au="[object String]",su="[object WeakMap]",lu="[object ArrayBuffer]",cu="[object DataView]",uu="[object Float32Array]",fu="[object Float64Array]",du="[object Int8Array]",hu="[object Int16Array]",gu="[object Int32Array]",pu="[object Uint8Array]",mu="[object Uint8ClampedArray]",yu="[object Uint16Array]",_u="[object Uint32Array]",Ze={};Ze[uu]=Ze[fu]=Ze[du]=Ze[hu]=Ze[gu]=Ze[pu]=Ze[mu]=Ze[yu]=Ze[_u]=!0,Ze[Q7]=Ze[j7]=Ze[lu]=Ze[q7]=Ze[cu]=Ze[X7]=Ze[J7]=Ze[eu]=Ze[tu]=Ze[nu]=Ze[ru]=Ze[iu]=Ze[ou]=Ze[au]=Ze[su]=!1;function vu(e){return V7(e)&&G7(e.length)&&!!Ze[Y7(e)]}var bu=vu;function Cu(e){return function(n){return e(n)}}var k0=Cu,ri={exports:{}};ri.exports,function(e,n){var i=es,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,u=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||u&&u.binding&&u.binding("util")}catch{}}();e.exports=f}(ri,ri.exports);var A0=ri.exports,xu=bu,wu=k0,_s=A0,vs=_s&&_s.isTypedArray,Lu=vs?wu(vs):xu,$u=Lu,Su=S7,ku=B7,Au=Or,Mu=ps,Tu=ms,Iu=$u,Ou=Object.prototype,Pu=Ou.hasOwnProperty;function Eu(e,n){var i=Au(e),a=!i&&ku(e),s=!i&&!a&&Mu(e),l=!i&&!a&&!s&&Iu(e),u=i||a||s||l,f=u?Su(e.length,String):[],d=f.length;for(var g in e)(n||Pu.call(e,g))&&!(u&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Tu(g,d)))&&f.push(g);return f}var bs=Eu,Du=Object.prototype;function Ru(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||Du;return e===i}var M0=Ru;function Bu(e,n){return function(i){return e(n(i))}}var Cs=Bu,Fu=Cs,zu=Fu(Object.keys,Object),Nu=zu,Wu=M0,Ku=Nu,Uu=Object.prototype,Zu=Uu.hasOwnProperty;function Hu(e){if(!Wu(e))return Ku(e);var n=[];for(var i in Object(e))Zu.call(e,i)&&i!="constructor"&&n.push(i);return n}var Yu=Hu,Gu=os,Vu=ys;function Qu(e){return e!=null&&Vu(e.length)&&!Gu(e)}var xs=Qu,ju=bs,qu=Yu,Xu=xs;function Ju(e){return Xu(e)?ju(e):qu(e)}var T0=Ju,e4=ti,t4=T0;function n4(e,n){return e&&e4(n,t4(n),e)}var r4=n4;function i4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var o4=i4,a4=kr,s4=M0,l4=o4,c4=Object.prototype,u4=c4.hasOwnProperty;function f4(e){if(!a4(e))return l4(e);var n=s4(e),i=[];for(var a in e)a=="constructor"&&(n||!u4.call(e,a))||i.push(a);return i}var d4=f4,h4=bs,g4=d4,p4=xs;function m4(e){return p4(e)?h4(e,!0):g4(e)}var I0=m4,y4=ti,_4=I0;function v4(e,n){return e&&y4(n,_4(n),e)}var b4=v4,ii={exports:{}};ii.exports,function(e,n){var i=Sn,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,u=l?i.Buffer:void 0,f=u?u.allocUnsafe:void 0;function d(g,_){if(_)return g.slice();var y=g.length,b=f?f(y):new g.constructor(y);return g.copy(b),b}e.exports=d}(ii,ii.exports);var C4=ii.exports;function x4(e,n){var i=-1,a=e.length;for(n||(n=Array(a));++i<a;)n[i]=e[i];return n}var w4=x4;function L4(e,n){for(var i=-1,a=e==null?0:e.length,s=0,l=[];++i<a;){var u=e[i];n(u,i,e)&&(l[s++]=u)}return l}var $4=L4;function S4(){return[]}var ws=S4,k4=$4,A4=ws,M4=Object.prototype,T4=M4.propertyIsEnumerable,Ls=Object.getOwnPropertySymbols,I4=Ls?function(e){return e==null?[]:(e=Object(e),k4(Ls(e),function(n){return T4.call(e,n)}))}:A4,O0=I4,O4=ti,P4=O0;function E4(e,n){return O4(e,P4(e),n)}var D4=E4;function R4(e,n){for(var i=-1,a=n.length,s=e.length;++i<a;)e[s+i]=n[i];return e}var $s=R4,B4=Cs,F4=B4(Object.getPrototypeOf,Object),Ss=F4,z4=$s,N4=Ss,W4=O0,K4=ws,U4=Object.getOwnPropertySymbols,Z4=U4?function(e){for(var n=[];e;)z4(n,W4(e)),e=N4(e);return n}:K4,ks=Z4,H4=ti,Y4=ks;function G4(e,n){return H4(e,Y4(e),n)}var V4=G4,Q4=$s,j4=Or;function q4(e,n,i){var a=n(e);return j4(e)?a:Q4(a,i(e))}var As=q4,X4=As,J4=O0,ef=T0;function tf(e){return X4(e,ef,J4)}var nf=tf,rf=As,of=ks,af=I0;function sf(e){return rf(e,af,of)}var lf=sf,cf=cr,uf=Sn,ff=cf(uf,"DataView"),df=ff,hf=cr,gf=Sn,pf=hf(gf,"Promise"),mf=pf,yf=cr,_f=Sn,vf=yf(_f,"Set"),bf=vf,Cf=cr,xf=Sn,wf=Cf(xf,"WeakMap"),Lf=wf,P0=df,E0=$0,D0=mf,R0=bf,B0=Lf,Ms=f1,Pr=ss,Ts="[object Map]",$f="[object Object]",Is="[object Promise]",Os="[object Set]",Ps="[object WeakMap]",Es="[object DataView]",Sf=Pr(P0),kf=Pr(E0),Af=Pr(D0),Mf=Pr(R0),Tf=Pr(B0),ur=Ms;(P0&&ur(new P0(new ArrayBuffer(1)))!=Es||E0&&ur(new E0)!=Ts||D0&&ur(D0.resolve())!=Is||R0&&ur(new R0)!=Os||B0&&ur(new B0)!=Ps)&&(ur=function(e){var n=Ms(e),i=n==$f?e.constructor:void 0,a=i?Pr(i):"";if(a)switch(a){case Sf:return Es;case kf:return Ts;case Af:return Is;case Mf:return Os;case Tf:return Ps}return n});var F0=ur,If=Object.prototype,Of=If.hasOwnProperty;function Pf(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Of.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Ef=Pf,Df=Sn,Rf=Df.Uint8Array,Bf=Rf,Ds=Bf;function Ff(e){var n=new e.constructor(e.byteLength);return new Ds(n).set(new Ds(e)),n}var z0=Ff,zf=z0;function Nf(e,n){var i=n?zf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Wf=Nf,Kf=/\w*$/;function Uf(e){var n=new e.constructor(e.source,Kf.exec(e));return n.lastIndex=e.lastIndex,n}var Zf=Uf,Rs=X1,Bs=Rs?Rs.prototype:void 0,Fs=Bs?Bs.valueOf:void 0;function Hf(e){return Fs?Object(Fs.call(e)):{}}var Yf=Hf,Gf=z0;function Vf(e,n){var i=n?Gf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Qf=Vf,jf=z0,qf=Wf,Xf=Zf,Jf=Yf,ed=Qf,td="[object Boolean]",nd="[object Date]",rd="[object Map]",id="[object Number]",od="[object RegExp]",ad="[object Set]",sd="[object String]",ld="[object Symbol]",cd="[object ArrayBuffer]",ud="[object DataView]",fd="[object Float32Array]",dd="[object Float64Array]",hd="[object Int8Array]",gd="[object Int16Array]",pd="[object Int32Array]",md="[object Uint8Array]",yd="[object Uint8ClampedArray]",_d="[object Uint16Array]",vd="[object Uint32Array]";function bd(e,n,i){var a=e.constructor;switch(n){case cd:return jf(e);case td:case nd:return new a(+e);case ud:return qf(e,i);case fd:case dd:case hd:case gd:case pd:case md:case yd:case _d:case vd:return ed(e,i);case rd:return new a;case id:case sd:return new a(e);case od:return Xf(e);case ad:return new a;case ld:return Jf(e)}}var Cd=bd,xd=kr,zs=Object.create,wd=function(){function e(){}return function(n){if(!xd(n))return{};if(zs)return zs(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),Ld=wd,$d=Ld,Sd=Ss,kd=M0;function Ad(e){return typeof e.constructor=="function"&&!kd(e)?$d(Sd(e)):{}}var Md=Ad,Td=F0,Id=Ir,Od="[object Map]";function Pd(e){return Id(e)&&Td(e)==Od}var Ed=Pd,Dd=Ed,Rd=k0,Ns=A0,Ws=Ns&&Ns.isMap,Bd=Ws?Rd(Ws):Dd,Fd=Bd,zd=F0,Nd=Ir,Wd="[object Set]";function Kd(e){return Nd(e)&&zd(e)==Wd}var Ud=Kd,Zd=Ud,Hd=k0,Ks=A0,Us=Ks&&Ks.isSet,Yd=Us?Hd(Us):Zd,Gd=Yd,Vd=u7,Qd=d7,jd=S0,qd=r4,Xd=b4,Jd=C4,eh=w4,th=D4,nh=V4,rh=nf,ih=lf,oh=F0,ah=Ef,sh=Cd,lh=Md,ch=Or,uh=ps,fh=Fd,dh=kr,hh=Gd,gh=T0,ph=I0,mh=1,yh=2,_h=4,Zs="[object Arguments]",vh="[object Array]",bh="[object Boolean]",Ch="[object Date]",xh="[object Error]",Hs="[object Function]",wh="[object GeneratorFunction]",Lh="[object Map]",$h="[object Number]",Ys="[object Object]",Sh="[object RegExp]",kh="[object Set]",Ah="[object String]",Mh="[object Symbol]",Th="[object WeakMap]",Ih="[object ArrayBuffer]",Oh="[object DataView]",Ph="[object Float32Array]",Eh="[object Float64Array]",Dh="[object Int8Array]",Rh="[object Int16Array]",Bh="[object Int32Array]",Fh="[object Uint8Array]",zh="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Wh="[object Uint32Array]",Ke={};Ke[Zs]=Ke[vh]=Ke[Ih]=Ke[Oh]=Ke[bh]=Ke[Ch]=Ke[Ph]=Ke[Eh]=Ke[Dh]=Ke[Rh]=Ke[Bh]=Ke[Lh]=Ke[$h]=Ke[Ys]=Ke[Sh]=Ke[kh]=Ke[Ah]=Ke[Mh]=Ke[Fh]=Ke[zh]=Ke[Nh]=Ke[Wh]=!0,Ke[xh]=Ke[Hs]=Ke[Th]=!1;function oi(e,n,i,a,s,l){var u,f=n&mh,d=n&yh,g=n&_h;if(i&&(u=s?i(e,a,s,l):i(e)),u!==void 0)return u;if(!dh(e))return e;var _=ch(e);if(_){if(u=ah(e),!f)return eh(e,u)}else{var y=oh(e),b=y==Hs||y==wh;if(uh(e))return Jd(e,f);if(y==Ys||y==Zs||b&&!s){if(u=d||b?{}:lh(e),!f)return d?nh(e,Xd(u,e)):th(e,qd(u,e))}else{if(!Ke[y])return s?e:{};u=sh(e,y,f)}}l||(l=new Vd);var M=l.get(e);if(M)return M;l.set(e,u),hh(e)?e.forEach(function($){u.add(oi($,n,i,$,e,l))}):fh(e)&&e.forEach(function($,S){u.set(S,oi($,n,i,S,e,l))});var w=g?d?ih:rh:d?ph:gh,x=_?void 0:w(e);return Qd(x||e,function($,S){x&&(S=$,$=e[S]),jd(u,S,oi($,n,i,S,e,l))}),u}var Kh=oi,Uh=Kh,Zh=1,Hh=4;function Yh(e){return Uh(e,Zh|Hh)}var Gh=Yh;const Vh=f0(Gh);var Qh=f1,jh=Ir,qh="[object Symbol]";function Xh(e){return typeof e=="symbol"||jh(e)&&Qh(e)==qh}var N0=Xh,Jh=Or,eg=N0,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ng=/^\w*$/;function rg(e,n){if(Jh(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||eg(e)?!0:ng.test(e)||!tg.test(e)||n!=null&&e in Object(n)}var ig=rg,Gs=us,og="Expected a function";function W0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(og);var i=function(){var a=arguments,s=n?n.apply(this,a):a[0],l=i.cache;if(l.has(s))return l.get(s);var u=e.apply(this,a);return i.cache=l.set(s,u)||l,u};return i.cache=new(W0.Cache||Gs),i}W0.Cache=Gs;var ag=W0,sg=ag,lg=500;function cg(e){var n=sg(e,function(a){return i.size===lg&&i.clear(),a}),i=n.cache;return n}var ug=cg,fg=ug,dg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hg=/\\(\\)?/g,gg=fg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(dg,function(i,a,s,l){n.push(s?l.replace(hg,"$1"):a||i)}),n}),pg=gg;function mg(e,n){for(var i=-1,a=e==null?0:e.length,s=Array(a);++i<a;)s[i]=n(e[i],i,e);return s}var yg=mg,Vs=X1,_g=yg,vg=Or,bg=N0,Cg=1/0,Qs=Vs?Vs.prototype:void 0,js=Qs?Qs.toString:void 0;function qs(e){if(typeof e=="string")return e;if(vg(e))return _g(e,qs)+"";if(bg(e))return js?js.call(e):"";var n=e+"";return n=="0"&&1/e==-Cg?"-0":n}var xg=qs,wg=xg;function Lg(e){return e==null?"":wg(e)}var $g=Lg,Sg=Or,kg=ig,Ag=pg,Mg=$g;function Tg(e,n){return Sg(e)?e:kg(e,n)?[e]:Ag(Mg(e))}var Ig=Tg,Og=N0,Pg=1/0;function Eg(e){if(typeof e=="string"||Og(e))return e;var n=e+"";return n=="0"&&1/e==-Pg?"-0":n}var Dg=Eg,Rg=S0,Bg=Ig,Fg=ms,Xs=kr,zg=Dg;function Ng(e,n,i,a){if(!Xs(e))return e;n=Bg(n,e);for(var s=-1,l=n.length,u=l-1,f=e;f!=null&&++s<l;){var d=zg(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=u){var _=f[d];g=a?a(_,d,f):void 0,g===void 0&&(g=Xs(_)?_:Fg(n[s+1])?[]:{})}Rg(f,d,g),f=f[d]}return e}var Wg=Ng,Kg=Wg;function Ug(e,n,i){return e==null?e:Kg(e,n,i)}var Zg=Ug;const d1=f0(Zg);var Hg=N("<button>");const Yg=e=>(()=>{var n=Hg();return $n(n,"click",e.onClick,!0),z(n,()=>e.children),ke(i=>{var a=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=je(n,a,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Pt(["click"]);var Gg=N('<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">'),Vg=N('<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">'),Qg=N("<div>"),jg=N("<span class=label>");const qg=()=>Gg(),Xg=()=>Vg(),Js=e=>{const[n,i]=V(e.checked??!1);return Wt(()=>{"checked"in e&&i(e.checked)}),(()=>{var a=Qg();return a.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},z(a,(()=>{var s=Qe(()=>!!n());return()=>s()?Z(qg,{}):Z(Xg,{})})(),null),z(a,(()=>{var s=Qe(()=>!!e.label);return()=>s()&&(()=>{var l=jg();return z(l,()=>e.label),l})()})(),null),ke(s=>{var l=e.style,u=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=je(a,l,s.e),u!==s.t&&Kt(a,s.t=u),s},{e:void 0,t:void 0}),a})()};Pt(["click"]);var Jg=N("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const e9=()=>Jg();var ep=N('<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 tp=()=>ep();var np=N("<ul>"),rp=N("<li>");const ai=e=>(()=>{var n=np();return z(n,Z(Ae,{get when(){return e.loading},get children(){return Z(e9,{})}}),null),z(n,Z(Ae,{get when(){var i;return Qe(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return Z(tp,{})}}),null),z(n,Z(Ae,{get when(){return e.children},get children(){return e.children}}),null),z(n,Z(Ae,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(a=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,a))??rp()})}}),null),ke(i=>{var a=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=je(n,a,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Er=[];let ip=0,si=!1;function t9(e){if(e.key!=="Escape")return;const n=Er[Er.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function op(){si||(window.addEventListener("keydown",t9,!0),si=!0)}function ap(){Er.length===0&&si&&(window.removeEventListener("keydown",t9,!0),si=!1)}function sp(e){const n=ip++;return Er.push({id:n,close:e}),op(),()=>{const i=Er.findIndex(a=>a.id===n);i>=0&&Er.splice(i,1),ap()}}var lp=N('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),cp=N("<div class=button-container>");const kn=e=>{let n=null;v0(()=>{if(!e.onClose)return;const d=sp(()=>{var g;(g=e.onClose)==null||g.call(e)});l1(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},a={};e.width!=null&&(a.width=`${e.width}px`,a["max-width"]=`${e.width}px`),e.height!=null&&(a.height=`${e.height}px`,a["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let _=d;for(;_;){const y=window.getComputedStyle(_);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&_.scrollHeight>_.clientHeight)return g>0?_.scrollTop+_.clientHeight<_.scrollHeight:_.scrollTop>0;_=_.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},u=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,_=n-g;n=g,s(d.target,_)||d.preventDefault()};return(()=>{var d=lp(),g=d.firstChild,_=g.firstChild,y=_.firstChild,b=_.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=u,g.addEventListener("wheel",l),z(_,()=>e.title,y),$n(y,"click",e.onClose,!0),z(b,()=>e.children),z(g,(()=>{var M=Qe(()=>!!(e.buttons&&e.buttons.length>0));return()=>M()&&(()=>{var w=cp();return z(w,()=>e.buttons.map(x=>Z(Yg,Qa(x,{get children(){return x.children}})))),w})()})(),null),ke(M=>{var w=`inner${e.height!=null?" inner--fixed-height":""}`,x=a;return w!==M.e&&Kt(g,M.e=w),M.t=je(g,x,M.t),M},{e:void 0,t:void 0}),d})()};Pt(["click","touchstart","touchmove"]);var up=N("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),fp=N("<div class=drop-down-container><ul>"),dp=N("<li>");const h1=e=>{const[n,i]=V(!1);return(()=>{var a=up(),s=a.firstChild,l=s.firstChild;return a.addEventListener("blur",u=>{i(!1)}),a.$$click=u=>{i(f=>!f)},z(l,()=>e.value),z(a,(()=>{var u=Qe(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>u()&&(()=>{var f=fp(),d=f.firstChild;return z(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var b=dp();return b.$$click=M=>{var w;M.stopPropagation(),e.value!==y&&((w=e.onSelected)==null||w.call(e,g)),i(!1)},z(b,y),b})()})),f})()})(),null),ke(u=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return u.e=je(a,f,u.e),d!==u.t&&Kt(a,u.t=d),u},{e:void 0,t:void 0}),a})()};Pt(["click"]);var hp=N("<span class=prefix>"),gp=N("<span class=suffix>"),pp=N("<div><input id=myInput class=value>");const[mp,_A]=V("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),n9=e=>{const n=Qa({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[a,s]=V("normal"),l=u=>{u&&u.focus()};return Wt(()=>{l(document.querySelector("#myInput"))}),(()=>{var u=pp(),f=u.firstChild;u.$$click=()=>{i==null||i.focus()},z(u,Z(Ae,{get when(){return n.prefix},get children(){var g=hp();return z(g,()=>n.prefix),g}}),f),$n(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,b;const _=g.target.value;if("precision"in n){let M;const w=Math.max(0,Math.floor(n.precision));w<=0?M=new RegExp(/^[1-9]\d*$/):M=new RegExp("^\\d+\\.?\\d{0,"+w+"}$"),(_===""||M.test(_)&&+_>=n.min&&+_<=n.max)&&((y=n.onChange)==null||y.call(n,_===""?_:+_))}else(b=n.onChange)==null||b.call(n,_)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?x0(d,f):i=f,z(u,Z(Ae,{get when(){return n.suffix},get children(){var g=gp();return z(g,()=>n.suffix),g}}),null),ke(g=>{var _=n.style,y=`${mp()}${n.class??""}`,b=a(),M=n.placeholder??"",w=n.focus===!0?n.focus:!1;return g.e=je(u,_,g.e),y!==g.t&&Kt(u,g.t=y),b!==g.a&&Et(u,"data-status",g.a=b),M!==g.o&&Et(f,"placeholder",g.o=M),w!==g.i&&(f.autofocus=g.i=w),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),ke(()=>f.value=n.value),u})()};Pt(["click","keydown"]);var yp=N("<div><i class=thumb>");const g1=e=>(()=>{var n=yp();return n.$$click=i=>{e.onChange&&e.onChange()},ke(i=>{var a=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=je(n,a,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Pt(["click"]);const{min:_p,max:vp}=Math,fr=(e,n=0,i=1)=>_p(vp(n,e),i),K0=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=fr(e[n],0,255)):n===3&&(e[n]=fr(e[n],0,1));return e},r9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])r9[`[object ${e}]`]=e.toLowerCase();function be(e){return r9[Object.prototype.toString.call(e)]||"object"}const me=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):be(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Dr=e=>{if(e.length<2)return null;const n=e.length-1;return be(e[n])=="string"?e[n].toLowerCase():null},{PI:li,min:i9,max:o9}=Math,jt=e=>Math.round(e*100)/100,U0=e=>Math.round(e*100)/100,Bn=li*2,Z0=li/3,bp=li/180,Cp=180/li;function a9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const ge={format:{},autodetect:[]};let Y=class{constructor(...n){const i=this;if(be(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let a=Dr(n),s=!1;if(!a){s=!0,ge.sorted||(ge.autodetect=ge.autodetect.sort((l,u)=>u.p-l.p),ge.sorted=!0);for(let l of ge.autodetect)if(a=l.test(...n),a)break}if(ge.format[a]){const l=ge.format[a].apply(null,s?n:n.slice(0,-1));i._rgb=K0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return be(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const xp="3.2.0",he=(...e)=>new Y(...e);he.version=xp;const Rr={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"},wp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Lp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,s9=e=>{if(e.match(wp)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e,16),i=n>>16,a=n>>8&255,s=n&255;return[i,a,s,1]}if(e.match(Lp)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e,16),i=n>>24&255,a=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,a,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:ci}=Math,l9=(...e)=>{let[n,i,a,s]=me(e,"rgba"),l=Dr(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=ci(n),i=ci(i),a=ci(a);let f="000000"+(n<<16|i<<8|a).toString(16);f=f.substr(f.length-6);let d="0"+ci(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};Y.prototype.name=function(){const e=l9(this._rgb,"rgb");for(let n of Object.keys(Rr))if(Rr[n]===e)return n.toLowerCase();return e},ge.format.named=e=>{if(e=e.toLowerCase(),Rr[e])return s9(Rr[e]);throw new Error("unknown color name: "+e)},ge.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&be(e)==="string"&&Rr[e.toLowerCase()])return"named"}}),Y.prototype.alpha=function(e,n=!1){return e!==void 0&&be(e)==="number"?n?(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 An={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}},$p=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 Fn(e){const n=$p.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);An.labWhitePoint=e,An.Xn=n[0],An.Zn=n[1]}function p1(){return An.labWhitePoint}const H0=(...e)=>{e=me(e,"lab");const[n,i,a]=e,[s,l,u]=Sp(n,i,a),[f,d,g]=c9(s,l,u);return[f,d,g,e.length>3?e[3]:1]},Sp=(e,n,i)=>{const{kE:a,kK:s,kKE:l,Xn:u,Yn:f,Zn:d}=An,g=(e+16)/116,_=.002*n+g,y=g-.005*i,b=_*_*_,M=y*y*y,w=b>a?b:(116*_-16)/s,x=e>l?Math.pow((e+16)/116,3):e/s,$=M>a?M:(116*y-16)/s,S=w*u,I=x*f,D=$*d;return[S,I,D]},Y0=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},c9=(e,n,i)=>{const{MtxAdaptMa:a,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:u,Xn:f,Yn:d,Zn:g}=An,_=f*a.m00+d*a.m10+g*a.m20,y=f*a.m01+d*a.m11+g*a.m21,b=f*a.m02+d*a.m12+g*a.m22,M=u.X*a.m00+u.Y*a.m10+u.Z*a.m20,w=u.X*a.m01+u.Y*a.m11+u.Z*a.m21,x=u.X*a.m02+u.Y*a.m12+u.Z*a.m22,$=(e*a.m00+n*a.m10+i*a.m20)*(M/_),S=(e*a.m01+n*a.m11+i*a.m21)*(w/y),I=(e*a.m02+n*a.m12+i*a.m22)*(x/b),D=$*s.m00+S*s.m10+I*s.m20,R=$*s.m01+S*s.m11+I*s.m21,H=$*s.m02+S*s.m12+I*s.m22,G=Y0(D*l.m00+R*l.m10+H*l.m20),U=Y0(D*l.m01+R*l.m11+H*l.m21),O=Y0(D*l.m02+R*l.m12+H*l.m22);return[G*255,U*255,O*255]},G0=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,u,f]=u9(n,i,a),[d,g,_]=kp(l,u,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function kp(e,n,i){const{Xn:a,Yn:s,Zn:l,kE:u,kK:f}=An,d=e/a,g=n/s,_=i/l,y=d>u?Math.pow(d,1/3):(f*d+16)/116,b=g>u?Math.pow(g,1/3):(f*g+16)/116,M=_>u?Math.pow(_,1/3):(f*_+16)/116;return[116*b-16,500*(y-b),200*(b-M)]}function V0(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const u9=(e,n,i)=>{e=V0(e/255),n=V0(n/255),i=V0(i/255);const{MtxRGB2XYZ:a,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:u,Yn:f,Zn:d,As:g,Bs:_,Cs:y}=An;let b=e*a.m00+n*a.m10+i*a.m20,M=e*a.m01+n*a.m11+i*a.m21,w=e*a.m02+n*a.m12+i*a.m22;const x=u*s.m00+f*s.m10+d*s.m20,$=u*s.m01+f*s.m11+d*s.m21,S=u*s.m02+f*s.m12+d*s.m22;let I=b*s.m00+M*s.m10+w*s.m20,D=b*s.m01+M*s.m11+w*s.m21,R=b*s.m02+M*s.m12+w*s.m22;return I*=x/g,D*=$/_,R*=S/y,b=I*l.m00+D*l.m10+R*l.m20,M=I*l.m01+D*l.m11+R*l.m21,w=I*l.m02+D*l.m12+R*l.m22,[b,M,w]};Y.prototype.lab=function(){return G0(this._rgb)},Object.assign(he,{lab:(...e)=>new Y(...e,"lab"),getLabWhitePoint:p1,setLabWhitePoint:Fn}),ge.format.lab=H0,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),be(e)==="array"&&e.length===3)return"lab"}}),Y.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=An.Kn*e,new Y(i,"lab").alpha(n.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[n,i]=e.split("."),a=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return a[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return a};const{pow:Ap}=Math,Mp=1e-7,Tp=20;Y.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&be(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(),a=Tp;const s=(u,f)=>{const d=u.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Mp||!a--?d:g>e?s(u,d):s(d,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 Ip(...this._rgb.slice(0,3))};const Ip=(e,n,i)=>(e=Q0(e),n=Q0(n),i=Q0(i),.2126*e+.7152*n+.0722*i),Q0=e=>(e/=255,e<=.03928?e/12.92:Ap((e+.055)/1.055,2.4)),xt={},Br=(e,n,i=.5,...a)=>{let s=a[0]||"lrgb";if(!xt[s]&&!a.length&&(s=Object.keys(xt)[0]),!xt[s])throw new Error(`interpolation mode ${s} is not defined`);return be(e)!=="object"&&(e=new Y(e)),be(n)!=="object"&&(n=new Y(n)),xt[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};Y.prototype.mix=Y.prototype.interpolate=function(e,n=.5,...i){return Br(this,e,n,...i)},Y.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new Y([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:Op,cos:Pp}=Math,f9=(...e)=>{let[n,i,a]=me(e,"lch");return isNaN(a)&&(a=0),a=a*bp,[n,Pp(a)*i,Op(a)*i]},j0=(...e)=>{e=me(e,"lch");const[n,i,a]=e,[s,l,u]=f9(n,i,a),[f,d,g]=H0(s,l,u);return[f,d,g,e.length>3?e[3]:1]},Ep=(...e)=>{const n=a9(me(e,"hcl"));return j0(...n)},{sqrt:Dp,atan2:Rp,round:Bp}=Math,d9=(...e)=>{const[n,i,a]=me(e,"lab"),s=Dp(i*i+a*a);let l=(Rp(a,i)*Cp+360)%360;return Bp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},q0=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,u,f]=G0(n,i,a),[d,g,_]=d9(l,u,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};Y.prototype.lch=function(){return q0(this._rgb)},Y.prototype.hcl=function(){return a9(q0(this._rgb))},Object.assign(he,{lch:(...e)=>new Y(...e,"lch"),hcl:(...e)=>new Y(...e,"hcl")}),ge.format.lch=j0,ge.format.hcl=Ep,["lch","hcl"].forEach(e=>ge.autodetect.push({p:2,test:(...n)=>{if(n=me(n,e),be(n)==="array"&&n.length===3)return e}})),Y.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=An.Kn*e,i[1]<0&&(i[1]=0),new Y(i,"lch").alpha(n.alpha(),!0)},Y.prototype.desaturate=function(e=1){return this.saturate(-e)},Y.prototype.set=function(e,n,i=!1){const[a,s]=e.split("."),l=this[a]();if(s){const u=a.indexOf(s)-(a.substr(0,2)==="ok"?2:0);if(u>-1){if(be(n)=="string")switch(n.charAt(0)){case"+":l[u]+=+n;break;case"-":l[u]+=+n;break;case"*":l[u]*=+n.substr(1);break;case"/":l[u]/=+n.substr(1);break;default:l[u]=+n}else if(be(n)==="number")l[u]=n;else throw new Error("unsupported value for Color.set");const f=new Y(l,a);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${a}`)}else return l},Y.prototype.tint=function(e=.5,...n){return Br(this,"white",e,...n)},Y.prototype.shade=function(e=.5,...n){return Br(this,"black",e,...n)};const Fp=(e,n,i)=>{const a=e._rgb,s=n._rgb;return new Y(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"rgb")};xt.rgb=Fp;const{sqrt:X0,pow:Fr}=Math,zp=(e,n,i)=>{const[a,s,l]=e._rgb,[u,f,d]=n._rgb;return new Y(X0(Fr(a,2)*(1-i)+Fr(u,2)*i),X0(Fr(s,2)*(1-i)+Fr(f,2)*i),X0(Fr(l,2)*(1-i)+Fr(d,2)*i),"rgb")};xt.lrgb=zp;const Np=(e,n,i)=>{const a=e.lab(),s=n.lab();return new Y(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"lab")};xt.lab=Np;const zr=(e,n,i,a)=>{let s,l;a==="hsl"?(s=e.hsl(),l=n.hsl()):a==="hsv"?(s=e.hsv(),l=n.hsv()):a==="hcg"?(s=e.hcg(),l=n.hcg()):a==="hsi"?(s=e.hsi(),l=n.hsi()):a==="lch"||a==="hcl"?(a="hcl",s=e.hcl(),l=n.hcl()):a==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let u,f,d,g,_,y;(a.substr(0,1)==="h"||a==="oklch")&&([u,d,_]=s,[f,g,y]=l);let b,M,w,x;return!isNaN(u)&&!isNaN(f)?(f>u&&f-u>180?x=f-(u+360):f<u&&u-f>180?x=f+360-u:x=f-u,M=u+i*x):isNaN(u)?isNaN(f)?M=Number.NaN:(M=f,(_==1||_==0)&&a!="hsv"&&(b=g)):(M=u,(y==1||y==0)&&a!="hsv"&&(b=d)),b===void 0&&(b=d+i*(g-d)),w=_+i*(y-_),a==="oklch"?new Y([w,b,M],a):new Y([M,b,w],a)},h9=(e,n,i)=>zr(e,n,i,"lch");xt.lch=h9,xt.hcl=h9;const Wp=e=>{if(be(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,a=e&255;return[n,i,a,1]}throw new Error("unknown num color: "+e)},Kp=(...e)=>{const[n,i,a]=me(e,"rgb");return(n<<16)+(i<<8)+a};Y.prototype.num=function(){return Kp(this._rgb)},Object.assign(he,{num:(...e)=>new Y(...e,"num")}),ge.format.num=Wp,ge.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&be(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const Up=(e,n,i)=>{const a=e.num(),s=n.num();return new Y(a+i*(s-a),"num")};xt.num=Up;const{floor:Zp}=Math,Hp=(...e)=>{e=me(e,"hcg");let[n,i,a]=e,s,l,u;a=a*255;const f=i*255;if(i===0)s=l=u=a;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=Zp(n),g=n-d,_=a*(1-i),y=_+f*(1-g),b=_+f*g,M=_+f;switch(d){case 0:[s,l,u]=[M,b,_];break;case 1:[s,l,u]=[y,M,_];break;case 2:[s,l,u]=[_,M,b];break;case 3:[s,l,u]=[_,y,M];break;case 4:[s,l,u]=[b,_,M];break;case 5:[s,l,u]=[M,_,y];break}}return[s,l,u,e.length>3?e[3]:1]},Yp=(...e)=>{const[n,i,a]=me(e,"rgb"),s=i9(n,i,a),l=o9(n,i,a),u=l-s,f=u*100/255,d=s/(255-u)*100;let g;return u===0?g=Number.NaN:(n===l&&(g=(i-a)/u),i===l&&(g=2+(a-n)/u),a===l&&(g=4+(n-i)/u),g*=60,g<0&&(g+=360)),[g,f,d]};Y.prototype.hcg=function(){return Yp(this._rgb)};const Gp=(...e)=>new Y(...e,"hcg");he.hcg=Gp,ge.format.hcg=Hp,ge.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),be(e)==="array"&&e.length===3)return"hcg"}});const Vp=(e,n,i)=>zr(e,n,i,"hcg");xt.hcg=Vp;const{cos:Nr}=Math,Qp=(...e)=>{e=me(e,"hsi");let[n,i,a]=e,s,l,u;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(u=(1-i)/3,s=(1+i*Nr(Bn*n)/Nr(Z0-Bn*n))/3,l=1-(u+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Nr(Bn*n)/Nr(Z0-Bn*n))/3,u=1-(s+l)):(n-=2/3,l=(1-i)/3,u=(1+i*Nr(Bn*n)/Nr(Z0-Bn*n))/3,s=1-(l+u)),s=fr(a*s*3),l=fr(a*l*3),u=fr(a*u*3),[s*255,l*255,u*255,e.length>3?e[3]:1]},{min:jp,sqrt:qp,acos:Xp}=Math,Jp=(...e)=>{let[n,i,a]=me(e,"rgb");n/=255,i/=255,a/=255;let s;const l=jp(n,i,a),u=(n+i+a)/3,f=u>0?1-l/u:0;return f===0?s=NaN:(s=(n-i+(n-a))/2,s/=qp((n-i)*(n-i)+(n-a)*(i-a)),s=Xp(s),a>i&&(s=Bn-s),s/=Bn),[s*360,f,u]};Y.prototype.hsi=function(){return Jp(this._rgb)};const em=(...e)=>new Y(...e,"hsi");he.hsi=em,ge.format.hsi=Qp,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),be(e)==="array"&&e.length===3)return"hsi"}});const tm=(e,n,i)=>zr(e,n,i,"hsi");xt.hsi=tm;const J0=(...e)=>{e=me(e,"hsl");const[n,i,a]=e;let s,l,u;if(i===0)s=l=u=a*255;else{const f=[0,0,0],d=[0,0,0],g=a<.5?a*(1+i):a+i-a*i,_=2*a-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let b=0;b<3;b++)f[b]<0&&(f[b]+=1),f[b]>1&&(f[b]-=1),6*f[b]<1?d[b]=_+(g-_)*6*f[b]:2*f[b]<1?d[b]=g:3*f[b]<2?d[b]=_+(g-_)*(2/3-f[b])*6:d[b]=_;[s,l,u]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,u,e[3]]:[s,l,u,1]},g9=(...e)=>{e=me(e,"rgba");let[n,i,a]=e;n/=255,i/=255,a/=255;const s=i9(n,i,a),l=o9(n,i,a),u=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-a)/(l-s):i==l?d=2+(a-n)/(l-s):a==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,u,e[3]]:[d,f,u]};Y.prototype.hsl=function(){return g9(this._rgb)};const nm=(...e)=>new Y(...e,"hsl");he.hsl=nm,ge.format.hsl=J0,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),be(e)==="array"&&e.length===3)return"hsl"}});const rm=(e,n,i)=>zr(e,n,i,"hsl");xt.hsl=rm;const{floor:im}=Math,om=(...e)=>{e=me(e,"hsv");let[n,i,a]=e,s,l,u;if(a*=255,i===0)s=l=u=a;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=im(n),d=n-f,g=a*(1-i),_=a*(1-i*d),y=a*(1-i*(1-d));switch(f){case 0:[s,l,u]=[a,y,g];break;case 1:[s,l,u]=[_,a,g];break;case 2:[s,l,u]=[g,a,y];break;case 3:[s,l,u]=[g,_,a];break;case 4:[s,l,u]=[y,g,a];break;case 5:[s,l,u]=[a,g,_];break}}return[s,l,u,e.length>3?e[3]:1]},{min:am,max:sm}=Math,lm=(...e)=>{e=me(e,"rgb");let[n,i,a]=e;const s=am(n,i,a),l=sm(n,i,a),u=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=u/l,n===l&&(f=(i-a)/u),i===l&&(f=2+(a-n)/u),a===l&&(f=4+(n-i)/u),f*=60,f<0&&(f+=360)),[f,d,g]};Y.prototype.hsv=function(){return lm(this._rgb)};const cm=(...e)=>new Y(...e,"hsv");he.hsv=cm,ge.format.hsv=om,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),be(e)==="array"&&e.length===3)return"hsv"}});const um=(e,n,i)=>zr(e,n,i,"hsv");xt.hsv=um;function ui(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(u=>[u]));let a=n[0].length,s=n[0].map((u,f)=>n.map(d=>d[f])),l=e.map(u=>s.map(f=>Array.isArray(u)?u.reduce((d,g,_)=>d+g*(f[_]||0),0):f.reduce((d,g)=>d+g*u,0)));return i===1&&(l=l[0]),a===1?l.map(u=>u[0]):l}const eo=(...e)=>{e=me(e,"lab");const[n,i,a,...s]=e,[l,u,f]=fm([n,i,a]),[d,g,_]=c9(l,u,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function fm(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],a=ui(i,e);return ui(n,a.map(s=>s**3))}const to=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),l=u9(n,i,a);return[...dm(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function dm(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],a=ui(n,e);return ui(i,a.map(s=>Math.cbrt(s)))}Y.prototype.oklab=function(){return to(this._rgb)},Object.assign(he,{oklab:(...e)=>new Y(...e,"oklab")}),ge.format.oklab=eo,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),be(e)==="array"&&e.length===3)return"oklab"}});const hm=(e,n,i)=>{const a=e.oklab(),s=n.oklab();return new Y(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"oklab")};xt.oklab=hm;const gm=(e,n,i)=>zr(e,n,i,"oklch");xt.oklch=gm;const{pow:no,sqrt:ro,PI:io,cos:p9,sin:m9,atan2:pm}=Math,mm=(e,n="lrgb",i=null)=>{const a=e.length;i||(i=Array.from(new Array(a)).map(()=>1));const s=a/i.reduce(function(y,b){return y+b});if(i.forEach((y,b)=>{i[b]*=s}),e=e.map(y=>new Y(y)),n==="lrgb")return ym(e,i);const l=e.shift(),u=l.get(n),f=[];let d=0,g=0;for(let y=0;y<u.length;y++)if(u[y]=(u[y]||0)*i[0],f.push(isNaN(u[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(u[y])){const b=u[y]/180*io;d+=p9(b)*i[0],g+=m9(b)*i[0]}let _=l.alpha()*i[0];e.forEach((y,b)=>{const M=y.get(n);_+=y.alpha()*i[b+1];for(let w=0;w<u.length;w++)if(!isNaN(M[w]))if(f[w]+=i[b+1],n.charAt(w)==="h"){const x=M[w]/180*io;d+=p9(x)*i[b+1],g+=m9(x)*i[b+1]}else u[w]+=M[w]*i[b+1]});for(let y=0;y<u.length;y++)if(n.charAt(y)==="h"){let b=pm(g/f[y],d/f[y])/io*180;for(;b<0;)b+=360;for(;b>=360;)b-=360;u[y]=b}else u[y]=u[y]/f[y];return _/=a,new Y(u,n).alpha(_>.99999?1:_,!0)},ym=(e,n)=>{const i=e.length,a=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],u=n[s]/i,f=l._rgb;a[0]+=no(f[0],2)*u,a[1]+=no(f[1],2)*u,a[2]+=no(f[2],2)*u,a[3]+=f[3]*u}return a[0]=ro(a[0]),a[1]=ro(a[1]),a[2]=ro(a[2]),a[3]>.9999999&&(a[3]=1),new Y(K0(a))},{pow:_m}=Math;function fi(e){let n="rgb",i=he("#ccc"),a=0,s=[0,1],l=[0,1],u=[],f=[0,0],d=!1,g=[],_=!1,y=0,b=1,M=!1,w={},x=!0,$=1;const S=function(O){if(O=O||["#fff","#000"],O&&be(O)==="string"&&he.brewer&&he.brewer[O.toLowerCase()]&&(O=he.brewer[O.toLowerCase()]),be(O)==="array"){O.length===1&&(O=[O[0],O[0]]),O=O.slice(0);for(let W=0;W<O.length;W++)O[W]=he(O[W]);u.length=0;for(let W=0;W<O.length;W++)u.push(W/(O.length-1))}return G(),g=O},I=function(O){if(d!=null){const W=d.length-1;let Q=0;for(;Q<W&&O>=d[Q];)Q++;return Q-1}return 0};let D=O=>O,R=O=>O;const H=function(O,W){let Q,X;if(W==null&&(W=!1),isNaN(O)||O===null)return i;W?X=O:d&&d.length>2?X=I(O)/(d.length-2):b!==y?X=(O-y)/(b-y):X=1,X=R(X),W||(X=D(X)),$!==1&&(X=_m(X,$)),X=f[0]+X*(1-f[0]-f[1]),X=fr(X,0,1);const re=Math.floor(X*1e4);if(x&&w[re])Q=w[re];else{if(be(g)==="array")for(let J=0;J<u.length;J++){const Pe=u[J];if(X<=Pe){Q=g[J];break}if(X>=Pe&&J===u.length-1){Q=g[J];break}if(X>Pe&&X<u[J+1]){X=(X-Pe)/(u[J+1]-Pe),Q=he.interpolate(g[J],g[J+1],X,n);break}}else be(g)==="function"&&(Q=g(X));x&&(w[re]=Q)}return Q};var G=()=>w={};S(e);const U=function(O){const W=he(H(O));return _&&W[_]?W[_]():W};return U.classes=function(O){if(O!=null){if(be(O)==="array")d=O,s=[O[0],O[O.length-1]];else{const W=he.analyze(s);O===0?d=[W.min,W.max]:d=he.limits(W,"e",O)}return U}return d},U.domain=function(O){if(!arguments.length)return l;l=O.slice(0),y=O[0],b=O[O.length-1],u=[];const W=g.length;if(O.length===W&&y!==b)for(let Q of Array.from(O))u.push((Q-y)/(b-y));else{for(let Q=0;Q<W;Q++)u.push(Q/(W-1));if(O.length>2){const Q=O.map((re,J)=>J/(O.length-1)),X=O.map(re=>(re-y)/(b-y));X.every((re,J)=>Q[J]===re)||(R=re=>{if(re<=0||re>=1)return re;let J=0;for(;re>=X[J+1];)J++;const Pe=(re-X[J])/(X[J+1]-X[J]);return Q[J]+Pe*(Q[J+1]-Q[J])})}}return s=[y,b],U},U.mode=function(O){return arguments.length?(n=O,G(),U):n},U.range=function(O,W){return S(O),U},U.out=function(O){return _=O,U},U.spread=function(O){return arguments.length?(a=O,U):a},U.correctLightness=function(O){return O==null&&(O=!0),M=O,G(),M?D=function(W){const Q=H(0,!0).lab()[0],X=H(1,!0).lab()[0],re=Q>X;let J=H(W,!0).lab()[0];const Pe=Q+(X-Q)*W;let et=J-Pe,pt=0,At=1,rt=20;for(;Math.abs(et)>.01&&rt-- >0;)(function(){return re&&(et*=-1),et<0?(pt=W,W+=(At-W)*.5):(At=W,W+=(pt-W)*.5),J=H(W,!0).lab()[0],et=J-Pe})();return W}:D=W=>W,U},U.padding=function(O){return O!=null?(be(O)==="number"&&(O=[O,O]),f=O,U):f},U.colors=function(O,W){arguments.length<2&&(W="hex");let Q=[];if(arguments.length===0)Q=g.slice(0);else if(O===1)Q=[U(.5)];else if(O>1){const X=s[0],re=s[1]-X;Q=vm(0,O,!1).map(J=>U(X+J/(O-1)*re))}else{e=[];let X=[];if(d&&d.length>2)for(let re=1,J=d.length,Pe=1<=J;Pe?re<J:re>J;Pe?re++:re--)X.push((d[re-1]+d[re])*.5);else X=s;Q=X.map(re=>U(re))}return he[W]&&(Q=Q.map(X=>X[W]())),Q},U.cache=function(O){return O!=null?(x=O,U):x},U.gamma=function(O){return O!=null?($=O,U):$},U.nodata=function(O){return O!=null?(i=he(O),U):i},U}function vm(e,n,i){let a=[],s=e<n,l=i?s?n+1:n-1:n;for(let u=e;s?u<l:u>l;s?u++:u--)a.push(u);return a}const bm=function(e){let n=[1,1];for(let i=1;i<e;i++){let a=[1];for(let s=1;s<=n.length;s++)a[s]=(n[s]||0)+n[s-1];n=a}return n},Cm=function(e){let n,i,a,s;if(e=e.map(l=>new Y(l)),e.length===2)[i,a]=e.map(l=>l.lab()),n=function(l){const u=[0,1,2].map(f=>i[f]+l*(a[f]-i[f]));return new Y(u,"lab")};else if(e.length===3)[i,a,s]=e.map(l=>l.lab()),n=function(l){const u=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*a[f]+l*l*s[f]);return new Y(u,"lab")};else if(e.length===4){let l;[i,a,s,l]=e.map(u=>u.lab()),n=function(u){const f=[0,1,2].map(d=>(1-u)*(1-u)*(1-u)*i[d]+3*(1-u)*(1-u)*u*a[d]+3*(1-u)*u*u*s[d]+u*u*u*l[d]);return new Y(f,"lab")}}else if(e.length>=5){let l,u,f;l=e.map(d=>d.lab()),f=e.length-1,u=bm(f),n=function(d){const g=1-d,_=[0,1,2].map(y=>l.reduce((b,M,w)=>b+u[w]*g**(f-w)*d**w*M[y],0));return new Y(_,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},xm=e=>{const n=Cm(e);return n.scale=()=>fi(n),n},{round:y9}=Math;Y.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(y9)},Y.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:y9(n):n)},Object.assign(he,{rgb:(...e)=>new Y(...e,"rgb")}),ge.format.rgb=(...e)=>{const n=me(e,"rgba");return n[3]===void 0&&(n[3]=1),n},ge.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),be(e)==="array"&&(e.length===3||e.length===4&&be(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const gn=(e,n,i)=>{if(!gn[i])throw new Error("unknown blend mode "+i);return gn[i](e,n)},Qn=e=>(n,i)=>{const a=he(i).rgb(),s=he(n).rgb();return he.rgb(e(a,s))},jn=e=>(n,i)=>{const a=[];return a[0]=e(n[0],i[0]),a[1]=e(n[1],i[1]),a[2]=e(n[2],i[2]),a},wm=e=>e,Lm=(e,n)=>e*n/255,$m=(e,n)=>e>n?n:e,Sm=(e,n)=>e>n?e:n,km=(e,n)=>255*(1-(1-e/255)*(1-n/255)),Am=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),Mm=(e,n)=>255*(1-(1-n/255)/(e/255)),Tm=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);gn.normal=Qn(jn(wm)),gn.multiply=Qn(jn(Lm)),gn.screen=Qn(jn(km)),gn.overlay=Qn(jn(Am)),gn.darken=Qn(jn($m)),gn.lighten=Qn(jn(Sm)),gn.dodge=Qn(jn(Tm)),gn.burn=Qn(jn(Mm));const{pow:Im,sin:Om,cos:Pm}=Math;function Em(e=300,n=-1.5,i=1,a=1,s=[0,1]){let l=0,u;be(s)==="array"?u=s[1]-s[0]:(u=0,s=[s,s]);const f=function(d){const g=Bn*((e+120)/360+n*d),_=Im(s[0]+u*d,a),b=(l!==0?i[0]+d*l:i)*_*(1-_)/2,M=Pm(g),w=Om(g),x=_+b*(-.14861*M+1.78277*w),$=_+b*(-.29227*M-.90649*w),S=_+b*(1.97294*M);return he(K0([x*255,$*255,S*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?a:(a=d,f)},f.hue=function(d){return d==null?i:(i=d,be(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(be(d)==="array"?(s=d,u=d[1]-d[0]):(s=[d,d],u=0),f)},f.scale=()=>he.scale(f),f.hue(i),f}const Dm="0123456789abcdef",{floor:Rm,random:Bm}=Math,Fm=(e=Bm)=>{let n="#";for(let i=0;i<6;i++)n+=Dm.charAt(Rm(e()*16));return new Y(n,"hex")},{log:_9,pow:zm,floor:Nm,abs:Wm}=Math;function v9(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return be(e)==="object"&&(e=Object.values(e)),e.forEach(a=>{n&&be(a)==="object"&&(a=a[n]),a!=null&&!isNaN(a)&&(i.values.push(a),i.sum+=a,a<i.min&&(i.min=a),a>i.max&&(i.max=a),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(a,s)=>b9(i,a,s),i}function b9(e,n="equal",i=7){be(e)=="array"&&(e=v9(e));const{min:a,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[a,s];const u=[];if(n.substr(0,1)==="c"&&(u.push(a),u.push(s)),n.substr(0,1)==="e"){u.push(a);for(let f=1;f<i;f++)u.push(a+f/i*(s-a));u.push(s)}else if(n.substr(0,1)==="l"){if(a<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*_9(a),d=Math.LOG10E*_9(s);u.push(a);for(let g=1;g<i;g++)u.push(zm(10,f+g/i*(d-f)));u.push(s)}else if(n.substr(0,1)==="q"){u.push(a);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=Nm(d);if(g===d)u.push(l[g]);else{const _=d-g;u.push(l[g]*(1-_)+l[g+1]*_)}}u.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),_=new Array(i);let y=!0,b=0,M=null;M=[],M.push(a);for(let $=1;$<i;$++)M.push(a+$/i*(s-a));for(M.push(s);y;){for(let S=0;S<i;S++)_[S]=0;for(let S=0;S<d;S++){const I=l[S];let D=Number.MAX_VALUE,R;for(let H=0;H<i;H++){const G=Wm(M[H]-I);G<D&&(D=G,R=H),_[R]++,g[S]=R}}const $=new Array(i);for(let S=0;S<i;S++)$[S]=null;for(let S=0;S<d;S++)f=g[S],$[f]===null?$[f]=l[S]:$[f]+=l[S];for(let S=0;S<i;S++)$[S]*=1/_[S];y=!1;for(let S=0;S<i;S++)if($[S]!==M[S]){y=!0;break}M=$,b++,b>200&&(y=!1)}const w={};for(let $=0;$<i;$++)w[$]=[];for(let $=0;$<d;$++)f=g[$],w[f].push(l[$]);let x=[];for(let $=0;$<i;$++)x.push(w[$][0]),x.push(w[$][w[$].length-1]);x=x.sort(($,S)=>$-S),u.push(x[0]);for(let $=1;$<x.length;$+=2){const S=x[$];!isNaN(S)&&u.indexOf(S)===-1&&u.push(S)}}return u}const Km=(e,n)=>{e=new Y(e),n=new Y(n);const i=e.luminance(),a=n.luminance();return i>a?(i+.05)/(a+.05):(a+.05)/(i+.05)};/**
|
|
27
|
+
}`;var _e=Xl(function(){return Oe(m,re+"return "+K).apply(i,x)});if(_e.source=K,va(_e))throw _e;return _e}function kk(t){return Re(t).toLowerCase()}function Ak(t){return Re(t).toUpperCase()}function Mk(t,r,o){if(t=Re(t),t&&(o||r===i))return a2(t);if(!t||!(r=Yt(r)))return t;var u=mn(t),h=mn(r),m=s2(u,h),x=l2(u,h)+1;return sr(u,m,x).join("")}function Tk(t,r,o){if(t=Re(t),t&&(o||r===i))return t.slice(0,u2(t)+1);if(!t||!(r=Yt(r)))return t;var u=mn(t),h=l2(u,mn(r))+1;return sr(u,0,h).join("")}function Pk(t,r,o){if(t=Re(t),t&&(o||r===i))return t.replace(vo,"");if(!t||!(r=Yt(r)))return t;var u=mn(t),h=s2(u,mn(r));return sr(u,h).join("")}function Ok(t,r){var o=Q,u=ne;if(Xe(r)){var h="separator"in r?r.separator:h;o="length"in r?ye(r.length):o,u="omission"in r?Yt(r.omission):u}t=Re(t);var m=t.length;if(jr(t)){var x=mn(t);m=x.length}if(o>=m)return t;var S=o-qr(u);if(S<1)return u;var M=x?sr(x,0,S).join(""):t.slice(0,S);if(h===i)return M+u;if(x&&(S+=M.length-S),ba(h)){if(t.slice(S).search(h)){var B,F=M;for(h.global||(h=Ro(h.source,Re(A5.exec(h))+"g")),h.lastIndex=0;B=h.exec(F);)var K=B.index;M=M.slice(0,K===i?S:K)}}else if(t.indexOf(Yt(h),S)!=S){var q=M.lastIndexOf(h);q>-1&&(M=M.slice(0,q))}return M+u}function Ik(t){return t=Re(t),t&&Yb.test(t)?t.replace(L5,cx):t}var Ek=i1(function(t,r,o){return t+(o?" ":"")+r.toUpperCase()}),La=X2("toUpperCase");function ql(t,r,o){return t=Re(t),r=o?i:r,r===i?ix(t)?dx(t):QC(t):t.match(r)||[]}var Xl=ve(function(t,r){try{return Ut(t,i,r)}catch(o){return va(o)?o:new de(o)}}),Dk=Un(function(t,r){return Zt(r,function(o){o=_n(o),An(t,o,ya(t[o],t))}),t});function Rk(t){var r=t==null?0:t.length,o=le();return t=r?Ve(t,function(u){if(typeof u[1]!="function")throw new on(c);return[o(u[0]),u[1]]}):[],ve(function(u){for(var h=-1;++h<r;){var m=t[h];if(Ut(m[0],this,u))return Ut(m[1],this,u)}})}function Bk(t){return cw(sn(t,b))}function $a(t){return function(){return t}}function Fk(t,r){return t==null||t!==t?r:t}var zk=el(),Nk=el(!0);function Wt(t){return t}function Sa(t){return T2(typeof t=="function"?t:sn(t,b))}function Wk(t){return O2(sn(t,b))}function Kk(t,r){return I2(t,sn(r,b))}var Uk=ve(function(t,r){return function(o){return k1(o,t,r)}}),Zk=ve(function(t,r){return function(o){return k1(t,o,r)}});function ka(t,r,o){var u=yt(r),h=Yi(r,u);o==null&&!(Xe(r)&&(h.length||!u.length))&&(o=r,r=t,t=this,h=Yi(r,yt(r)));var m=!(Xe(o)&&"chain"in o)||!!o.chain,x=Hn(t);return Zt(h,function(S){var M=r[S];t[S]=M,x&&(t.prototype[S]=function(){var B=this.__chain__;if(m||B){var F=t(this.__wrapped__),K=F.__actions__=Ft(this.__actions__);return K.push({func:M,args:arguments,thisArg:t}),F.__chain__=B,F}return M.apply(t,tr([this.value()],arguments))})}),t}function Hk(){return vt._===this&&(vt._=_x),this}function Aa(){}function Yk(t){return t=ye(t),ve(function(r){return E2(r,t)})}var Gk=ia(Ve),Vk=ia(t2),Qk=ia(Mo);function Jl(t){return fa(t)?To(_n(t)):Sw(t)}function jk(t){return function(r){return t==null?i:vr(t,r)}}var qk=nl(),Xk=nl(!0);function Ma(){return[]}function Ta(){return!1}function Jk(){return{}}function eA(){return""}function tA(){return!0}function nA(t,r){if(t=ye(t),t<1||t>Je)return[];var o=ze,u=$t(t,ze);r=le(r),t-=ze;for(var h=Io(u,r);++o<t;)r(o);return h}function rA(t){return pe(t)?Ve(t,_n):Gt(t)?[t]:Ft(_l(Re(t)))}function iA(t){var r=++mx;return Re(t)+r}var oA=Xi(function(t,r){return t+r},0),aA=oa("ceil"),sA=Xi(function(t,r){return t/r},1),lA=oa("floor");function cA(t){return t&&t.length?Hi(t,Wt,Zo):i}function uA(t,r){return t&&t.length?Hi(t,le(r,2),Zo):i}function fA(t){return i2(t,Wt)}function dA(t,r){return i2(t,le(r,2))}function hA(t){return t&&t.length?Hi(t,Wt,Vo):i}function gA(t,r){return t&&t.length?Hi(t,le(r,2),Vo):i}var pA=Xi(function(t,r){return t*r},1),mA=oa("round"),yA=Xi(function(t,r){return t-r},0);function _A(t){return t&&t.length?Oo(t,Wt):0}function vA(t,r){return t&&t.length?Oo(t,le(r,2)):0}return p.after=K$,p.ary=Ml,p.assign=MS,p.assignIn=Ul,p.assignInWith=Zl,p.assignWith=Ca,p.at=TS,p.before=Tl,p.bind=ya,p.bindAll=Dk,p.bindKey=Pl,p.castArray=eS,p.chain=Sl,p.chunk=cL,p.compact=uL,p.concat=fL,p.cond=Rk,p.conforms=Bk,p.constant=$a,p.countBy=v$,p.create=PS,p.curry=Ol,p.curryRight=Il,p.debounce=El,p.defaults=OS,p.defaultsDeep=IS,p.defer=U$,p.delay=Z$,p.difference=dL,p.differenceBy=hL,p.differenceWith=gL,p.drop=pL,p.dropRight=mL,p.dropRightWhile=yL,p.dropWhile=_L,p.fill=vL,p.filter=C$,p.flatMap=L$,p.flatMapDeep=$$,p.flatMapDepth=S$,p.flatten=xl,p.flattenDeep=bL,p.flattenDepth=CL,p.flip=H$,p.flow=zk,p.flowRight=Nk,p.fromPairs=xL,p.functions=NS,p.functionsIn=WS,p.groupBy=k$,p.initial=LL,p.intersection=$L,p.intersectionBy=SL,p.intersectionWith=kL,p.invert=US,p.invertBy=ZS,p.invokeMap=M$,p.iteratee=Sa,p.keyBy=T$,p.keys=yt,p.keysIn=Nt,p.map=o0,p.mapKeys=YS,p.mapValues=GS,p.matches=Wk,p.matchesProperty=Kk,p.memoize=s0,p.merge=VS,p.mergeWith=Hl,p.method=Uk,p.methodOf=Zk,p.mixin=ka,p.negate=l0,p.nthArg=Yk,p.omit=QS,p.omitBy=jS,p.once=Y$,p.orderBy=P$,p.over=Gk,p.overArgs=G$,p.overEvery=Vk,p.overSome=Qk,p.partial=_a,p.partialRight=Dl,p.partition=O$,p.pick=qS,p.pickBy=Yl,p.property=Jl,p.propertyOf=jk,p.pull=PL,p.pullAll=Ll,p.pullAllBy=OL,p.pullAllWith=IL,p.pullAt=EL,p.range=qk,p.rangeRight=Xk,p.rearg=V$,p.reject=D$,p.remove=DL,p.rest=Q$,p.reverse=pa,p.sampleSize=B$,p.set=JS,p.setWith=ek,p.shuffle=F$,p.slice=RL,p.sortBy=W$,p.sortedUniq=UL,p.sortedUniqBy=ZL,p.split=wk,p.spread=j$,p.tail=HL,p.take=YL,p.takeRight=GL,p.takeRightWhile=VL,p.takeWhile=QL,p.tap=u$,p.throttle=q$,p.thru=i0,p.toArray=Nl,p.toPairs=Gl,p.toPairsIn=Vl,p.toPath=rA,p.toPlainObject=Kl,p.transform=tk,p.unary=X$,p.union=jL,p.unionBy=qL,p.unionWith=XL,p.uniq=JL,p.uniqBy=e$,p.uniqWith=t$,p.unset=nk,p.unzip=ma,p.unzipWith=$l,p.update=rk,p.updateWith=ik,p.values=s1,p.valuesIn=ok,p.without=n$,p.words=ql,p.wrap=J$,p.xor=r$,p.xorBy=i$,p.xorWith=o$,p.zip=a$,p.zipObject=s$,p.zipObjectDeep=l$,p.zipWith=c$,p.entries=Gl,p.entriesIn=Vl,p.extend=Ul,p.extendWith=Zl,ka(p,p),p.add=oA,p.attempt=Xl,p.camelCase=ck,p.capitalize=Ql,p.ceil=aA,p.clamp=ak,p.clone=tS,p.cloneDeep=rS,p.cloneDeepWith=iS,p.cloneWith=nS,p.conformsTo=oS,p.deburr=jl,p.defaultTo=Fk,p.divide=sA,p.endsWith=uk,p.eq=vn,p.escape=fk,p.escapeRegExp=dk,p.every=b$,p.find=x$,p.findIndex=bl,p.findKey=ES,p.findLast=w$,p.findLastIndex=Cl,p.findLastKey=DS,p.floor=lA,p.forEach=kl,p.forEachRight=Al,p.forIn=RS,p.forInRight=BS,p.forOwn=FS,p.forOwnRight=zS,p.get=xa,p.gt=aS,p.gte=sS,p.has=KS,p.hasIn=wa,p.head=wl,p.identity=Wt,p.includes=A$,p.indexOf=wL,p.inRange=sk,p.invoke=HS,p.isArguments=xr,p.isArray=pe,p.isArrayBuffer=lS,p.isArrayLike=zt,p.isArrayLikeObject=ot,p.isBoolean=cS,p.isBuffer=lr,p.isDate=uS,p.isElement=fS,p.isEmpty=dS,p.isEqual=hS,p.isEqualWith=gS,p.isError=va,p.isFinite=pS,p.isFunction=Hn,p.isInteger=Rl,p.isLength=c0,p.isMap=Bl,p.isMatch=mS,p.isMatchWith=yS,p.isNaN=_S,p.isNative=vS,p.isNil=CS,p.isNull=bS,p.isNumber=Fl,p.isObject=Xe,p.isObjectLike=nt,p.isPlainObject=I1,p.isRegExp=ba,p.isSafeInteger=xS,p.isSet=zl,p.isString=u0,p.isSymbol=Gt,p.isTypedArray=a1,p.isUndefined=wS,p.isWeakMap=LS,p.isWeakSet=$S,p.join=AL,p.kebabCase=hk,p.last=cn,p.lastIndexOf=ML,p.lowerCase=gk,p.lowerFirst=pk,p.lt=SS,p.lte=kS,p.max=cA,p.maxBy=uA,p.mean=fA,p.meanBy=dA,p.min=hA,p.minBy=gA,p.stubArray=Ma,p.stubFalse=Ta,p.stubObject=Jk,p.stubString=eA,p.stubTrue=tA,p.multiply=pA,p.nth=TL,p.noConflict=Hk,p.noop=Aa,p.now=a0,p.pad=mk,p.padEnd=yk,p.padStart=_k,p.parseInt=vk,p.random=lk,p.reduce=I$,p.reduceRight=E$,p.repeat=bk,p.replace=Ck,p.result=XS,p.round=mA,p.runInContext=A,p.sample=R$,p.size=z$,p.snakeCase=xk,p.some=N$,p.sortedIndex=BL,p.sortedIndexBy=FL,p.sortedIndexOf=zL,p.sortedLastIndex=NL,p.sortedLastIndexBy=WL,p.sortedLastIndexOf=KL,p.startCase=Lk,p.startsWith=$k,p.subtract=yA,p.sum=_A,p.sumBy=vA,p.template=Sk,p.times=nA,p.toFinite=Yn,p.toInteger=ye,p.toLength=Wl,p.toLower=kk,p.toNumber=un,p.toSafeInteger=AS,p.toString=Re,p.toUpper=Ak,p.trim=Mk,p.trimEnd=Tk,p.trimStart=Pk,p.truncate=Ok,p.unescape=Ik,p.uniqueId=iA,p.upperCase=Ek,p.upperFirst=La,p.each=kl,p.eachRight=Al,p.first=wl,ka(p,function(){var t={};return Mn(p,function(r,o){De.call(p.prototype,o)||(t[o]=r)}),t}(),{chain:!1}),p.VERSION=a,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Zt(["drop","take"],function(t,r){we.prototype[t]=function(o){o=o===i?1:gt(ye(o),0);var u=this.__filtered__&&!r?new we(this):this.clone();return u.__filtered__?u.__takeCount__=$t(o,u.__takeCount__):u.__views__.push({size:$t(o,ze),type:t+(u.__dir__<0?"Right":"")}),u},we.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Zt(["filter","map","takeWhile"],function(t,r){var o=r+1,u=o==ae||o==wt;we.prototype[t]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:le(h,3),type:o}),m.__filtered__=m.__filtered__||u,m}}),Zt(["head","last"],function(t,r){var o="take"+(r?"Right":"");we.prototype[t]=function(){return this[o](1).value()[0]}}),Zt(["initial","tail"],function(t,r){var o="drop"+(r?"":"Right");we.prototype[t]=function(){return this.__filtered__?new we(this):this[o](1)}}),we.prototype.compact=function(){return this.filter(Wt)},we.prototype.find=function(t){return this.filter(t).head()},we.prototype.findLast=function(t){return this.reverse().find(t)},we.prototype.invokeMap=ve(function(t,r){return typeof t=="function"?new we(this):this.map(function(o){return k1(o,t,r)})}),we.prototype.reject=function(t){return this.filter(l0(le(t)))},we.prototype.slice=function(t,r){t=ye(t);var o=this;return o.__filtered__&&(t>0||r<0)?new we(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),r!==i&&(r=ye(r),o=r<0?o.dropRight(-r):o.take(r-t)),o)},we.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},we.prototype.toArray=function(){return this.take(ze)},Mn(we.prototype,function(t,r){var o=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],m=u||/^find/.test(r);h&&(p.prototype[r]=function(){var x=this.__wrapped__,S=u?[1]:arguments,M=x instanceof we,B=S[0],F=M||pe(x),K=function(xe){var Se=h.apply(p,tr([xe],S));return u&&q?Se[0]:Se};F&&o&&typeof B=="function"&&B.length!=1&&(M=F=!1);var q=this.__chain__,re=!!this.__actions__.length,ce=m&&!q,_e=M&&!re;if(!m&&F){x=_e?x:new we(this);var se=t.apply(x,S);return se.__actions__.push({func:i0,args:[K],thisArg:i}),new an(se,q)}return ce&&_e?t.apply(this,S):(se=this.thru(K),ce?u?se.value()[0]:se.value():se)})}),Zt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ti[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var m=this.value();return r.apply(pe(m)?m:[],h)}return this[o](function(x){return r.apply(pe(x)?x:[],h)})}}),Mn(we.prototype,function(t,r){var o=p[r];if(o){var u=o.name+"";De.call(t1,u)||(t1[u]=[]),t1[u].push({name:r,func:o})}}),t1[qi(i,T).name]=[{name:"wrapper",func:i}],we.prototype.clone=Ex,we.prototype.reverse=Dx,we.prototype.value=Rx,p.prototype.at=f$,p.prototype.chain=d$,p.prototype.commit=h$,p.prototype.next=g$,p.prototype.plant=m$,p.prototype.reverse=y$,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=_$,p.prototype.first=p.prototype.head,b1&&(p.prototype[b1]=p$),p},Xr=hx();gr?((gr.exports=Xr)._=Xr,$o._=Xr):vt._=Xr}).call(Pn)}(E1,E1.exports);var t6=E1.exports;const st=d0(t6),n6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const a=i[1].x>i[0].x?0:1,s=fe.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*a:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const c=fn({x:i[1].x-8,y:i[1].y+4},i[1],l),f=fn({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=st.merge({},e,i)},getProperties:()=>e}},r6=()=>{let e=new Map,n=i=>{const a=e.get(i);return{style:(a==null?void 0:a.style)??"stroke_fill",color:(a==null?void 0:a.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(a==null?void 0:a.lineColor)??(a==null?void 0:a.borderColor),borderSize:a==null?void 0:a.borderWidth,borderStyle:(a==null?void 0:a.borderStyle)??(a==null?void 0:a.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:a})=>{if(i.length>1){const s=Pa(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(a.id)}}return[]},setProperties:(i,a)=>{e.set(a,st.merge({},e.get(a),i))},getProperties:i=>e.get(i)??{}}},i6=()=>{let e=new Map,n=i=>{const a=e.get(i);return{style:a.style??"stroke_fill",color:a.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:a.lineColor??a.borderColor,borderSize:a.borderWidth,borderStyle:a.borderStyle??a.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:a})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:n(a.id)}]:[],setProperties:(i,a)=>{e.set(a,st.merge({},e.get(a),i))},getProperties:i=>e.get(i)??{}}},o6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{if(a.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:a},styles:i()}];if(a.length===3){const s={x:a[0].x+(a[2].x-a[1].x),y:a[2].y};return[{type:"polygon",attrs:{coordinates:[a[0],a[1],a[2],s]},styles:n()}]}return[]},performEventPressedMove:({points:a,performPointIndex:s,performPoint:l})=>{s<2&&(a[0].value=l.value,a[1].value=l.value)},performEventMoveForDrawing:({currentStep:a,points:s,performPoint:l})=>{a===2&&(s[0].value=l.value)},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},a6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:n()}],setProperties:i=>{e=st.merge({},e,i)},getProperties:()=>e}},s6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{if(a.length>1){const s=Math.abs(a[0].x-a[1].x),l=Math.abs(a[0].y-a[1].y),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(_=>{const y=c*_;d.push({...a[0],r:y}),g.push({x:a[0].x,y:a[0].y+y+6,text:`${(_*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},l6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,overlay:s,chart:l,yAxis:c})=>{const f=[],d=[];if(a.length>1){let g=0;const _=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&_?g=_.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach($=>{g=Math.max(g,$.precision)});const y=a[1].x>a[0].x?a[0].x:a[1].x,b=[1,.786,.618,.5,.382,.236,0],k=a[0].y-a[1].y,v=s.points,w=v[0].value-v[1].value;b.forEach(L=>{const $=a[1].y+k*L,T=(v[1].value+w*L).toFixed(g.price);f.push({coordinates:[{x:a[0].x,y:$},{x:a[1].x,y:$}]}),d.push({x:y,y:$,text:`${T} (${(L*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},c6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,bounding:s})=>{if(a.length>1){const l=Pa(a[0],a[1])/Math.sqrt(24),c=a[1].x>a[0].x?0:1,f=fe.utils.getLinearSlopeIntercept(a[0],a[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:a[1].y>a[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=fn({x:a[0].x-l,y:a[0].y},a[0],d),_=fn({x:a[0].x-l,y:a[0].y-l},a[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{..._,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let b=a[0].x-l,k=a[0].y-l;for(let v=2;v<9;v++){const w=y[v-2].r+y[v-1].r;let L=0;switch(v%4){case 0:{L=d,b-=y[v-2].r;break}case 1:{L=d+Math.PI/2,k-=y[v-2].r;break}case 2:{L=d+Math.PI,b+=y[v-2].r;break}case 3:{L=d+Math.PI/2*3,k+=y[v-2].r;break}}const $=L+Math.PI/2,T=fn({x:b,y:k},a[0],d);y.push({...T,r:w,startAngle:L,endAngle:$})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:f0(a,s),styles:i()}]}return[]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},u6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a,bounding:s})=>{const l=[];let c=[];const f=[];if(a.length>1){const d=a[1].x>a[0].x?-38:4,g=a[1].y>a[0].y?-2:20,_=a[1].x-a[0].x,y=a[1].y-a[0].y;[1,.75,.618,.5,.382,.25,0].forEach(k=>{const v=a[1].x-_*k,w=a[1].y-y*k;l.push({coordinates:[{x:v,y:a[0].y},{x:v,y:a[1].y}]}),l.push({coordinates:[{x:a[0].x,y:w},{x:a[1].x,y:w}]}),c=c.concat(f0([a[0],{x:v,y:a[1].y}],s)),c=c.concat(f0([a[0],{x:a[1].x,y:w}],s)),f.unshift({x:a[0].x+d,y:w+10,text:`${k.toFixed(3)}`}),f.unshift({x:v-18,y:a[0].y+g,text:`${k.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},f6=()=>{let e={};const n=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let _=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?_=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(T=>{_=Math.max(_,T.precision)});const b=f.points,k=b[1].value-b[0].value,v=c[1].y-c[0].y,w=[0,.236,.382,.5,.618,.786,1],L=c[2].x>c[1].x?c[1].x:c[2].x;w.forEach($=>{const T=c[2].y+v*$,O=(b[2].value+k*$).toFixed(_.price);d.push({coordinates:[{x:c[1].x,y:T},{x:c[2].x,y:T}]}),g.push({x:L,y:T,text:`${O} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:a()}]},setProperties:s=>{e=st.merge({},e,s)},getProperties:()=>e}},d6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],g=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:n()},{type:"line",attrs:d,styles:a()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=st.merge({},e,l)},getProperties:()=>e}},h6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},g6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},p6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},m6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:a})=>{const s=a.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:a},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:a=>{e=st.merge({},e,a)},getProperties:()=>e}},y6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),style:"dashed"}),a=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],c=[];const f=["A","B","C","D"],d=s.map((g,_)=>({...g,baseline:"bottom",text:`(${f[_]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:a()}]},setProperties:s=>{e=st.merge({},e,s)},getProperties:()=>e}},_6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),a=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:c})=>{const f=[],d=[],g=["X","A","B","C","D"],_=l.map((y,b)=>({...y,baseline:"bottom",text:`(${g[b]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),d.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:a()},{type:"polygon",ignoreEvent:!0,attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:_,styles:s()}]},setProperties:l=>{e=st.merge({},e,l)},getProperties:()=>e}},v6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const a=n.filter((s,l)=>l!==1);i.push({coordinates:a})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:a})=>{n>=2&&i.push(a)},setProperties:n=>{e=st.merge({},e,n)},getProperties:()=>e}};function xn(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const h0=(e,n,i)=>{const a={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(a.price=s.pricePrecision,a.volume=s.volumePrecision):e.getIndicators({paneId:n.paneId}).forEach(c=>{a.price=Math.max(a.price,c.precision)}),a},b6=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},Oa="#2ebd85",Ia="#f6465d",C6="#2ebd85",x6="#f6465d",w6=e=>({style:"solid",size:1,color:e,dashedValue:[]}),Ea=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),L6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),$6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),S6=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var Te;const s=(Te=a.points[0])==null?void 0:Te.value,l=a.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,_=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*_:(s-g)*l.size*_,b=e.getSymbol(),k=(b==null?void 0:b.pricePrecision)??2,v=(b==null?void 0:b.volumePrecision)??4,w=xn(l.size,v),L=`PNL ${y>=0?"+":""}${xn(y,k)}`,$=l.side==="long"?Oa:Ia,T=y>=0?C6:x6,O=$6($),E=L6(T),U=O.paddingLeft,X=O.paddingRight,Y=fe.utils.calcTextWidth(w)+U+X,I=fe.utils.calcTextWidth(L)+U+X,z=16,V=-1,Q=0,ne=z+I+V,ee=ne+Y+Q;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(ee,i.width),y:d},{x:i.width,y:d}]},styles:w6($),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:z,y:d,text:L,align:"left",baseline:"middle"},styles:E,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:ne,y:d,text:w,align:"left",baseline:"middle"},styles:O,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=n.extendData,f=h0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Ea("#888")};c.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=xn(l,f.price);return{type:"text",attrs:{x:_?0:a.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:Ea("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Da(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function k6(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,a=Da(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Da(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return a===void 0||s===void 0?null:{min:Math.min(a,s),max:Math.max(a,s)}}function l1(e,n){const i=k6(e);return i?n>=i.min&&n<=i.max:!1}const g0="#f6465d",A6=()=>({style:"dashed",size:1,color:g0,dashedValue:[4,4]}),D1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:g0,borderColor:g0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},M6={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},T6=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var T;const s=(T=a.points[0])==null?void 0:T.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!l1(e,s))return[];const c=l.timestamp,f=e.convertToPixel({timestamp:c,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${xn(s,g)}`,b=D1.paddingLeft,k=D1.paddingRight,v=fe.utils.calcTextWidth(y)+b+k,w=16,L=2,$=w+v+L;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min($,i.width),y:f},{x:i.width,y:f}]},styles:A6(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x:w,y:f,text:y,align:"left",baseline:"middle"},styles:D1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=h0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:D1};if(l===void 0||!Number.isFinite(l)||!l1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,_=(s==null?void 0:s.isFromZero())??!1,y=xn(l,c.price);return{type:"text",attrs:{x:_?0:a.width,y:g,text:y,align:_?"left":"right",baseline:"middle"},styles:M6}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),P6="#2ebd85",O6="#f6465d";function Ra(e){return e?P6:O6}const I6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),E6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),D6=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),Ba=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),R6=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var z;const s=(z=a.points[0])==null?void 0:z.value,l=a.extendData,c=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!c)return[];if(!l1(e,s))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const _=(g==null?void 0:g.volumePrecision)??4,y="限价",b=xn(l.size,_),k=Ra(l.isBuy),v=E6(k),w=D6(k),L=v.paddingLeft,$=v.paddingRight,T=fe.utils.calcTextWidth(y)+L+$,O=fe.utils.calcTextWidth(b)+L+$,E=16,U=-1,X=2,Y=E+T+U,I=Y+O+X;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(I,i.width),y:d},{x:i.width,y:d}]},styles:I6(k),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:E,y:d,text:y,align:"left",baseline:"middle"},styles:v,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:Y,y:d,text:b,align:"left",baseline:"middle"},styles:w,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:a,yAxis:s})=>{var k;const l=(k=n.points[0])==null?void 0:k.value,c=h0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Ba("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!l1(e,l))return f;Ra(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const _=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,b=xn(l,c.price);return{type:"text",attrs:{x:y?0:a.width,y:_,text:b,align:y?"left":"right",baseline:"middle"},styles:Ba("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),R1="klinecharts-pro-his-order-hover",p0="klinecharts-pro-alert-detail-open",B6="#2ebd85",F6="#f6465d",z6=6,N6=14,Fa=14,za=18,B1=new Map,W6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},K6=()=>({name:"historicalOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const a=i.points[0],s=i.extendData;if(!a||!s||!Number.isFinite(a.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(E=>E.timestamp===a.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?B6:F6,_=s.isBuy?"B":"S",y=n[0].x,b=e.convertToPixel({timestamp:a.timestamp,value:f}).y??n[0].y,k=e.convertToPixel({timestamp:a.timestamp,value:d}).y??n[0].y,v=Math.max(0,s.stackIndex??0),w=Math.abs(k-b),L=Number.isFinite(w)&&w<za?Math.max(0,za-w)*.65:0,$=N6+L,T=s.isBuy?k+$+v*Fa:b-$-v*Fa;if(i.id){const E=e.getDom("candle_pane","main");if(E){const U=E.getBoundingClientRect();B1.set(i.id,{x:U.left+y,y:U.top+T})}}return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:T-.5,r:z6},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:T,text:_,align:"center",baseline:"middle"},styles:W6,ignoreEvent:!1}]},onMouseEnter:e=>{var c,f,d,g;const n=e,i=e.overlay.id?B1.get(e.overlay.id):void 0,a=(i==null?void 0:i.x)??((c=n.event)==null?void 0:c.clientX)??((f=n.mouseEvent)==null?void 0:f.clientX)??null,s=(i==null?void 0:i.y)??((d=n.event)==null?void 0:d.clientY)??((g=n.mouseEvent)==null?void 0:g.clientY)??null,l=e.overlay.extendData;return l&&window.dispatchEvent(new CustomEvent(R1,{detail:{visible:!0,order:l,anchorX:a,anchorY:s}})),!1},onMouseLeave:e=>(e.overlay.id&&B1.delete(e.overlay.id),window.dispatchEvent(new CustomEvent(R1,{detail:{visible:!1,order:null,anchorX:null,anchorY:null}})),!1),onRemoved:e=>(e.overlay.id&&B1.delete(e.overlay.id),!1),onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),U6="#bfbfbf",Z6=140,F1=new Map;function m0(e){const n=F1.get(e);n!=null&&(clearTimeout(n),F1.delete(e))}function H6(e,n){m0(n);const i=setTimeout(()=>{F1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},Z6);F1.set(n,i)}function Na(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let z1;function Y6(e){z1=e.onRemove}const G6=()=>({style:"dashed",size:1,color:"rgba(255, 255, 255, 1)",dashedValue:[4,4]});function V6(e,n=2){return e.type==="price_reach"?`价格达到 ${xn(e.price??0,n)}`:e.type==="price_rise_to"?`价格涨到 ${xn(e.price??0,n)}`:e.type==="price_fall_to"?`价格跌到 ${xn(e.price??0,n)}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??0}%`:`价格${e.window??"5m"}跌幅 ${e.percent??0}%`}const Q6=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:a})=>{var L,$;const s=(L=a.points[0])==null?void 0:L.value,l=a.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!l1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=(($=e.getSymbol())==null?void 0:$.pricePrecision)??2,_=V6(c,g),y=fe.utils.calcTextWidth(_),b=i.width,k=b-10,v=k-2,w=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:v,y:d}]},styles:G6(),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:k,y:d-6},{x:b,y:d},{x:k,y:d+6}]},styles:{style:"fill",color:U6},ignoreEvent:!1}];if(l!=null&&l.showInfo){const T=Math.max(120,y+28),O=Math.max(8,k-T-10);w.push({key:"alert-info-text",type:"text",attrs:{x:O+8,y:d,text:_,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:O+T-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return w},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var a;const n=(a=e.figure)==null?void 0:a.key;if(!Na(n))return!1;m0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return Na(n)&&H6(e.chart,e.overlay.id),!1},onRemoved:e=>(m0(e.overlay.id),!1),onSelected:e=>{var a;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((a=e.figure)==null?void 0:a.key)??"")==="alert-info-close"&&n.alert&&(z1==null||z1(n.alert)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="alert-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.alert&&window.dispatchEvent(new CustomEvent(p0,{detail:{alert:n.alert}})),!1}}),j6=[n6(),v6(),r6(),i6(),a6(),o6(),s6(),l6(),c6(),u6(),f6(),d6(),h6(),g6(),p6(),m6(),y6(),_6(),S6(),T6(),R6(),K6(),Q6()];class q6{constructor(n){Cn(this,"_apiKey");Cn(this,"_prevSymbolMarket");Cn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(n,i,a,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.ticker}/range/${i.span}/${i.type}/${a}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(n,i,a){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`}))):"sym"in f&&a({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const X6=!1,J6=(e,n)=>e===n,y0=Symbol("solid-proxy"),ec=typeof Proxy=="function",tc=Symbol("solid-track"),N1={equals:J6};let Wa=Ya;const On=1,W1=2,Ka={owned:null,cleanups:null,context:null,owner:null},_0={};var Ne=null;let v0=null,nc=null,Fe=null,Ct=null,In=null,K1=0;function U1(e,n){const i=Fe,a=Ne,s=e.length===0,l=n===void 0?a:n,c=s?Ka:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>dn(()=>c1(c)));Ne=c,Fe=null;try{return En(f,!0)}finally{Fe=i,Ne=a}}function G(e,n){n=n?Object.assign({},N1,n):N1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},a=s=>(typeof s=="function"&&(s=s(i.value)),Ha(i,s));return[Za.bind(i),a]}function Ua(e,n,i){const a=Z1(e,n,!0,On);Lr(a)}function Ae(e,n,i){const a=Z1(e,n,!1,On);Lr(a)}function At(e,n,i){Wa=uc;const a=Z1(e,n,!1,On);(!i||!i.render)&&(a.user=!0),In?In.push(a):Lr(a)}function jt(e,n,i){i=i?Object.assign({},N1,i):N1;const a=Z1(e,n,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=i.equals||void 0,Lr(a),Za.bind(a)}function rc(e){return e&&typeof e=="object"&&"then"in e}function ic(e,n,i){let a,s,l;typeof n=="function"?(a=e,s=n,l=i||{}):(a=!0,s=e,l=n||{});let c=null,f=_0,d=!1,g="initialValue"in l,_=typeof a=="function"&&jt(a);const y=new Set,[b,k]=(l.storage||G)(l.initialValue),[v,w]=G(void 0),[L,$]=G(void 0,{equals:!1}),[T,O]=G(g?"ready":"unresolved");function E(z,V,Q,ne){return c===z&&(c=null,ne!==void 0&&(g=!0),(z===f||V===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(ne,{value:V})),f=_0,U(V,Q)),V}function U(z,V){En(()=>{V===void 0&&k(()=>z),O(V!==void 0?"errored":g?"ready":"unresolved"),w(V);for(const Q of y.keys())Q.decrement();y.clear()},!1)}function X(){const z=sc,V=b(),Q=v();if(Q!==void 0&&!c)throw Q;return Fe&&!Fe.user&&z&&Ua(()=>{L(),c&&(z.resolved||y.has(z)||(z.increment(),y.add(z)))}),V}function Y(z=!0){if(z!==!1&&d)return;d=!1;const V=_?_():a;if(V==null||V===!1){E(c,dn(b));return}let Q;const ne=f!==_0?f:dn(()=>{try{return s(V,{value:b(),refetching:z})}catch(ee){Q=ee}});if(Q!==void 0){E(c,void 0,G1(Q),V);return}else if(!rc(ne))return E(c,ne,void 0,V),ne;return c=ne,"v"in ne?(ne.s===1?E(c,ne.v,void 0,V):E(c,void 0,G1(ne.v),V),ne):(d=!0,queueMicrotask(()=>d=!1),En(()=>{O(g?"refreshing":"pending"),$()},!1),ne.then(ee=>E(ne,ee,void 0,V),ee=>E(ne,void 0,G1(ee),V)))}Object.defineProperties(X,{state:{get:()=>T()},error:{get:()=>v()},loading:{get(){const z=T();return z==="pending"||z==="refreshing"}},latest:{get(){if(!g)return X();const z=v();if(z&&!c)throw z;return b()}}});let I=Ne;return _?Ua(()=>(I=Ne,Y(!1))):Y(!1),[X,{refetch:z=>oc(I,()=>Y(z)),mutate:k}]}function dn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function b0(e){At(()=>dn(e))}function wr(e){return Ne===null||(Ne.cleanups===null?Ne.cleanups=[e]:Ne.cleanups.push(e)),e}function oc(e,n){const i=Ne,a=Fe;Ne=e,Fe=null;try{return En(n,!0)}catch(s){C0(s)}finally{Ne=i,Fe=a}}function ac(e){const n=Fe,i=Ne;return Promise.resolve().then(()=>{Fe=n,Ne=i;let a;return En(e,!1),Fe=Ne=null,a?a.done:void 0})}let sc;function Za(){if(this.sources&&this.state)if(this.state===On)Lr(this);else{const e=Ct;Ct=null,En(()=>Y1(this),!1),Ct=e}if(Fe){const e=this.observers?this.observers.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(e)):(Fe.sources=[this],Fe.sourceSlots=[e]),this.observers?(this.observers.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}return this.value}function Ha(e,n,i){let a=e.value;return(!e.comparator||!e.comparator(a,n))&&(e.value=n,e.observers&&e.observers.length&&En(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],c=v0&&v0.running;c&&v0.disposed.has(l),(c?!l.tState:!l.state)&&(l.pure?Ct.push(l):In.push(l),l.observers&&Ga(l)),c||(l.state=On)}if(Ct.length>1e6)throw Ct=[],new Error},!1)),n}function Lr(e){if(!e.fn)return;c1(e);const n=K1;lc(e,e.value,n)}function lc(e,n,i){let a;const s=Ne,l=Fe;Fe=Ne=e;try{a=e.fn(n)}catch(c){return e.pure&&(e.state=On,e.owned&&e.owned.forEach(c1),e.owned=null),e.updatedAt=i+1,C0(c)}finally{Fe=l,Ne=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Ha(e,a):e.value=a,e.updatedAt=i)}function Z1(e,n,i,a=On,s){const l={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:Ne,context:Ne?Ne.context:null,pure:i};return Ne===null||Ne!==Ka&&(Ne.owned?Ne.owned.push(l):Ne.owned=[l]),l}function H1(e){if(e.state===0)return;if(e.state===W1)return Y1(e);if(e.suspense&&dn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<K1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===On)Lr(e);else if(e.state===W1){const a=Ct;Ct=null,En(()=>Y1(e,n[0]),!1),Ct=a}}function En(e,n){if(Ct)return e();let i=!1;n||(Ct=[]),In?i=!0:In=[],K1++;try{const a=e();return cc(i),a}catch(a){i||(In=null),Ct=null,C0(a)}}function cc(e){if(Ct&&(Ya(Ct),Ct=null),e)return;const n=In;In=null,n.length&&En(()=>Wa(n),!1)}function Ya(e){for(let n=0;n<e.length;n++)H1(e[n])}function uc(e){let n,i=0;for(n=0;n<e.length;n++){const a=e[n];a.user?e[i++]=a:H1(a)}for(n=0;n<i;n++)H1(e[n])}function Y1(e,n){e.state=0;for(let i=0;i<e.sources.length;i+=1){const a=e.sources[i];if(a.sources){const s=a.state;s===On?a!==n&&(!a.updatedAt||a.updatedAt<K1)&&H1(a):s===W1&&Y1(a,n)}}}function Ga(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=W1,i.pure?Ct.push(i):In.push(i),i.observers&&Ga(i))}}function c1(e){let n;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),a=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),c=i.observerSlots.pop();a<s.length&&(l.sourceSlots[c]=a,s[a]=l,i.observerSlots[a]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)c1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)c1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function G1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function C0(e,n=Ne){throw G1(e)}const fc=Symbol("fallback");function Va(e){for(let n=0;n<e.length;n++)e[n]()}function dc(e,n,i={}){let a=[],s=[],l=[],c=0,f=n.length>1?[]:null;return wr(()=>Va(l)),()=>{let d=e()||[],g=d.length,_,y;return d[tc],dn(()=>{let k,v,w,L,$,T,O,E,U;if(g===0)c!==0&&(Va(l),l=[],a=[],s=[],c=0,f&&(f=[])),i.fallback&&(a=[fc],s[0]=U1(X=>(l[0]=X,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)a[y]=d[y],s[y]=U1(b);c=g}else{for(w=new Array(g),L=new Array(g),f&&($=new Array(g)),T=0,O=Math.min(c,g);T<O&&a[T]===d[T];T++);for(O=c-1,E=g-1;O>=T&&E>=T&&a[O]===d[E];O--,E--)w[E]=s[O],L[E]=l[O],f&&($[E]=f[O]);for(k=new Map,v=new Array(E+1),y=E;y>=T;y--)U=d[y],_=k.get(U),v[y]=_===void 0?-1:_,k.set(U,y);for(_=T;_<=O;_++)U=a[_],y=k.get(U),y!==void 0&&y!==-1?(w[y]=s[_],L[y]=l[_],f&&($[y]=f[_]),y=v[y],k.set(U,y)):l[_]();for(y=T;y<g;y++)y in w?(s[y]=w[y],l[y]=L[y],f&&(f[y]=$[y],f[y](y))):s[y]=U1(b);s=s.slice(0,c=g),a=d.slice(0)}return s});function b(k){if(l[y]=k,f){const[v,w]=G(y);return f[y]=w,n(d[y],v)}return n(d[y])}}}function Z(e,n){return dn(()=>e(n||{}))}function V1(){return!0}const hc={get(e,n,i){return n===y0?i:e.get(n)},has(e,n){return n===y0?!0:e.has(n)},set:V1,deleteProperty:V1,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:V1,deleteProperty:V1}},ownKeys(e){return e.keys()}};function x0(e){return(e=typeof e=="function"?e():e)?e:{}}function gc(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function Qa(...e){let n=!1;for(let c=0;c<e.length;c++){const f=e[c];n=n||!!f&&y0 in f,e[c]=typeof f=="function"?(n=!0,jt(f)):f}if(ec&&n)return new Proxy({get(c){for(let f=e.length-1;f>=0;f--){const d=x0(e[f])[c];if(d!==void 0)return d}},has(c){for(let f=e.length-1;f>=0;f--)if(c in x0(e[f]))return!0;return!1},keys(){const c=[];for(let f=0;f<e.length;f++)c.push(...Object.keys(x0(e[f])));return[...new Set(c)]}},hc);const i={},a=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const _=d[g];if(_==="__proto__"||_==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,_);if(!a[_])a[_]=y.get?{enumerable:!0,configurable:!0,get:gc.bind(i[_]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const b=i[_];b&&(y.get?b.push(y.get.bind(f)):y.value!==void 0&&b.push(()=>y.value))}}}const s={},l=Object.keys(a);for(let c=l.length-1;c>=0;c--){const f=l[c],d=a[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const pc=e=>`Stale read from <${e}>.`;function ja(e){const n="fallback"in e&&{fallback:()=>e.fallback};return jt(dc(()=>e.each,e.children,n||void 0))}function Me(e){const n=e.keyed,i=jt(()=>e.when,void 0,void 0),a=n?i:jt(i,void 0,{equals:(s,l)=>!s==!l});return jt(()=>{const s=a();if(s){const l=e.children;return typeof l=="function"&&l.length>0?dn(()=>l(n?s:()=>{if(!dn(a))throw pc("Show");return i()})):l}return e.fallback},void 0,void 0)}const Qe=e=>jt(()=>e());function mc(e,n,i){let a=i.length,s=n.length,l=a,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const _=l<a?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],_)}else if(l===f)for(;c<s;)(!g||!g.has(n[c]))&&n[c].remove(),c++;else if(n[c]===i[l-1]&&i[f]===n[s-1]){const _=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],_),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const _=g.get(n[c]);if(_!=null)if(f<_&&_<l){let y=c,b=1,k;for(;++y<s&&y<l&&!((k=g.get(n[y]))==null||k!==_+b);)b++;if(b>_-f){const v=n[c];for(;f<_;)e.insertBefore(i[f++],v)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const qa="_$DX_DELEGATE";function yc(e,n,i,a={}){let s;return U1(l=>{s=l,n===document?e():W(n,e(),n.firstChild?null:void 0,i)},a.owner),()=>{s(),n.textContent=""}}function N(e,n,i,a){let s;const l=()=>{const f=a?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:a?f.firstChild:f.content.firstChild},c=n?()=>dn(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return c.cloneNode=c,c}function Et(e,n=window.document){const i=n[qa]||(n[qa]=new Set);for(let a=0,s=e.length;a<s;a++){const l=e[a];i.has(l)||(i.add(l),n.addEventListener(l,_c))}}function lt(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Kt(e,n){n==null?e.removeAttribute("class"):e.className=n}function wn(e,n,i,a){if(a)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function je(e,n,i){if(!n)return i?lt(e,"style"):n;const a=e.style;if(typeof n=="string")return a.cssText=n;typeof i=="string"&&(a.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&a.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(a.setProperty(l,s),i[l]=s);return i}function $r(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function Q1(e,n,i){return dn(()=>e(n,i))}function W(e,n,i,a){if(i!==void 0&&!a&&(a=[]),typeof n!="function")return j1(e,n,a,i);Ae(s=>j1(e,n(),s,i),a)}function _c(e){let n=e.target;const i=`$$${e.type}`,a=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(a)}function j1(e,n,i,a,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=a!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=Sr(e,i,a,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=Sr(e,i,a);else{if(l==="function")return Ae(()=>{let f=n();for(;typeof f=="function";)f=f();i=j1(e,f,i,a)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(w0(f,n,i,s))return Ae(()=>i=j1(e,f,i,a,!0)),()=>i;if(f.length===0){if(i=Sr(e,i,a),c)return i}else d?i.length===0?Xa(e,f,a):mc(e,i,f):(i&&Sr(e),Xa(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=Sr(e,i,a,n);Sr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function w0(e,n,i,a){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=w0(e,f,d)||s;else if(g==="function")if(a){for(;typeof f=="function";)f=f();s=w0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const _=String(f);d&&d.nodeType===3&&d.data===_?e.push(d):e.push(document.createTextNode(_))}}return s}function Xa(e,n,i=null){for(let a=0,s=n.length;a<s;a++)e.insertBefore(n[a],i)}function Sr(e,n,i,a){if(i===void 0)return e.textContent="";const s=a||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function vc(){this.__data__=[],this.size=0}var bc=vc;function Cc(e,n){return e===n||e!==e&&n!==n}var Ja=Cc,xc=Ja;function wc(e,n){for(var i=e.length;i--;)if(xc(e[i][0],n))return i;return-1}var q1=wc,Lc=q1,$c=Array.prototype,Sc=$c.splice;function kc(e){var n=this.__data__,i=Lc(n,e);if(i<0)return!1;var a=n.length-1;return i==a?n.pop():Sc.call(n,i,1),--this.size,!0}var Ac=kc,Mc=q1;function Tc(e){var n=this.__data__,i=Mc(n,e);return i<0?void 0:n[i][1]}var Pc=Tc,Oc=q1;function Ic(e){return Oc(this.__data__,e)>-1}var Ec=Ic,Dc=q1;function Rc(e,n){var i=this.__data__,a=Dc(i,e);return a<0?(++this.size,i.push([e,n])):i[a][1]=n,this}var Bc=Rc,Fc=bc,zc=Ac,Nc=Pc,Wc=Ec,Kc=Bc;function kr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}kr.prototype.clear=Fc,kr.prototype.delete=zc,kr.prototype.get=Nc,kr.prototype.has=Wc,kr.prototype.set=Kc;var X1=kr,Uc=X1;function Zc(){this.__data__=new Uc,this.size=0}var Hc=Zc;function Yc(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var Gc=Yc;function Vc(e){return this.__data__.get(e)}var Qc=Vc;function jc(e){return this.__data__.has(e)}var qc=jc,Xc=typeof Pn=="object"&&Pn&&Pn.Object===Object&&Pn,es=Xc,Jc=es,e3=typeof self=="object"&&self&&self.Object===Object&&self,t3=Jc||e3||Function("return this")(),Ln=t3,n3=Ln,r3=n3.Symbol,J1=r3,ts=J1,ns=Object.prototype,i3=ns.hasOwnProperty,o3=ns.toString,u1=ts?ts.toStringTag:void 0;function a3(e){var n=i3.call(e,u1),i=e[u1];try{e[u1]=void 0;var a=!0}catch{}var s=o3.call(e);return a&&(n?e[u1]=i:delete e[u1]),s}var s3=a3,l3=Object.prototype,c3=l3.toString;function u3(e){return c3.call(e)}var f3=u3,rs=J1,d3=s3,h3=f3,g3="[object Null]",p3="[object Undefined]",is=rs?rs.toStringTag:void 0;function m3(e){return e==null?e===void 0?p3:g3:is&&is in Object(e)?d3(e):h3(e)}var f1=m3;function y3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Ar=y3,_3=f1,v3=Ar,b3="[object AsyncFunction]",C3="[object Function]",x3="[object GeneratorFunction]",w3="[object Proxy]";function L3(e){if(!v3(e))return!1;var n=_3(e);return n==C3||n==x3||n==b3||n==w3}var os=L3,$3=Ln,S3=$3["__core-js_shared__"],k3=S3,L0=k3,as=function(){var e=/[^.]+$/.exec(L0&&L0.keys&&L0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function A3(e){return!!as&&as in e}var M3=A3,T3=Function.prototype,P3=T3.toString;function O3(e){if(e!=null){try{return P3.call(e)}catch{}try{return e+""}catch{}}return""}var ss=O3,I3=os,E3=M3,D3=Ar,R3=ss,B3=/[\\^$.*+?()[\]{}|]/g,F3=/^\[object .+?Constructor\]$/,z3=Function.prototype,N3=Object.prototype,W3=z3.toString,K3=N3.hasOwnProperty,U3=RegExp("^"+W3.call(K3).replace(B3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Z3(e){if(!D3(e)||E3(e))return!1;var n=I3(e)?U3:F3;return n.test(R3(e))}var H3=Z3;function Y3(e,n){return e==null?void 0:e[n]}var G3=Y3,V3=H3,Q3=G3;function j3(e,n){var i=Q3(e,n);return V3(i)?i:void 0}var cr=j3,q3=cr,X3=Ln,J3=q3(X3,"Map"),$0=J3,e8=cr,t8=e8(Object,"create"),ei=t8,ls=ei;function n8(){this.__data__=ls?ls(null):{},this.size=0}var r8=n8;function i8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var o8=i8,a8=ei,s8="__lodash_hash_undefined__",l8=Object.prototype,c8=l8.hasOwnProperty;function u8(e){var n=this.__data__;if(a8){var i=n[e];return i===s8?void 0:i}return c8.call(n,e)?n[e]:void 0}var f8=u8,d8=ei,h8=Object.prototype,g8=h8.hasOwnProperty;function p8(e){var n=this.__data__;return d8?n[e]!==void 0:g8.call(n,e)}var m8=p8,y8=ei,_8="__lodash_hash_undefined__";function v8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=y8&&n===void 0?_8:n,this}var b8=v8,C8=r8,x8=o8,w8=f8,L8=m8,$8=b8;function Mr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Mr.prototype.clear=C8,Mr.prototype.delete=x8,Mr.prototype.get=w8,Mr.prototype.has=L8,Mr.prototype.set=$8;var S8=Mr,cs=S8,k8=X1,A8=$0;function M8(){this.size=0,this.__data__={hash:new cs,map:new(A8||k8),string:new cs}}var T8=M8;function P8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var O8=P8,I8=O8;function E8(e,n){var i=e.__data__;return I8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ti=E8,D8=ti;function R8(e){var n=D8(this,e).delete(e);return this.size-=n?1:0,n}var B8=R8,F8=ti;function z8(e){return F8(this,e).get(e)}var N8=z8,W8=ti;function K8(e){return W8(this,e).has(e)}var U8=K8,Z8=ti;function H8(e,n){var i=Z8(this,e),a=i.size;return i.set(e,n),this.size+=i.size==a?0:1,this}var Y8=H8,G8=T8,V8=B8,Q8=N8,j8=U8,q8=Y8;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var a=e[n];this.set(a[0],a[1])}}Tr.prototype.clear=G8,Tr.prototype.delete=V8,Tr.prototype.get=Q8,Tr.prototype.has=j8,Tr.prototype.set=q8;var us=Tr,X8=X1,J8=$0,e7=us,t7=200;function n7(e,n){var i=this.__data__;if(i instanceof X8){var a=i.__data__;if(!J8||a.length<t7-1)return a.push([e,n]),this.size=++i.size,this;i=this.__data__=new e7(a)}return i.set(e,n),this.size=i.size,this}var r7=n7,i7=X1,o7=Hc,a7=Gc,s7=Qc,l7=qc,c7=r7;function Pr(e){var n=this.__data__=new i7(e);this.size=n.size}Pr.prototype.clear=o7,Pr.prototype.delete=a7,Pr.prototype.get=s7,Pr.prototype.has=l7,Pr.prototype.set=c7;var u7=Pr;function f7(e,n){for(var i=-1,a=e==null?0:e.length;++i<a&&n(e[i],i,e)!==!1;);return e}var d7=f7,h7=cr,g7=function(){try{var e=h7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),p7=g7,fs=p7;function m7(e,n,i){n=="__proto__"&&fs?fs(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var ds=m7,y7=ds,_7=Ja,v7=Object.prototype,b7=v7.hasOwnProperty;function C7(e,n,i){var a=e[n];(!(b7.call(e,n)&&_7(a,i))||i===void 0&&!(n in e))&&y7(e,n,i)}var S0=C7,x7=S0,w7=ds;function L7(e,n,i,a){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=a?a(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?w7(i,f,d):x7(i,f,d)}return i}var ni=L7;function $7(e,n){for(var i=-1,a=Array(e);++i<e;)a[i]=n(i);return a}var S7=$7;function k7(e){return e!=null&&typeof e=="object"}var Or=k7,A7=f1,M7=Or,T7="[object Arguments]";function P7(e){return M7(e)&&A7(e)==T7}var O7=P7,hs=O7,I7=Or,gs=Object.prototype,E7=gs.hasOwnProperty,D7=gs.propertyIsEnumerable,R7=hs(function(){return arguments}())?hs:function(e){return I7(e)&&E7.call(e,"callee")&&!D7.call(e,"callee")},B7=R7,F7=Array.isArray,Ir=F7,ri={exports:{}};function z7(){return!1}var N7=z7;ri.exports,function(e,n){var i=Ln,a=N7,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||a;e.exports=g}(ri,ri.exports);var ps=ri.exports,W7=9007199254740991,K7=/^(?:0|[1-9]\d*)$/;function U7(e,n){var i=typeof e;return n=n??W7,!!n&&(i=="number"||i!="symbol"&&K7.test(e))&&e>-1&&e%1==0&&e<n}var ms=U7,Z7=9007199254740991;function H7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Z7}var ys=H7,Y7=f1,G7=ys,V7=Or,Q7="[object Arguments]",j7="[object Array]",q7="[object Boolean]",X7="[object Date]",J7="[object Error]",eu="[object Function]",tu="[object Map]",nu="[object Number]",ru="[object Object]",iu="[object RegExp]",ou="[object Set]",au="[object String]",su="[object WeakMap]",lu="[object ArrayBuffer]",cu="[object DataView]",uu="[object Float32Array]",fu="[object Float64Array]",du="[object Int8Array]",hu="[object Int16Array]",gu="[object Int32Array]",pu="[object Uint8Array]",mu="[object Uint8ClampedArray]",yu="[object Uint16Array]",_u="[object Uint32Array]",He={};He[uu]=He[fu]=He[du]=He[hu]=He[gu]=He[pu]=He[mu]=He[yu]=He[_u]=!0,He[Q7]=He[j7]=He[lu]=He[q7]=He[cu]=He[X7]=He[J7]=He[eu]=He[tu]=He[nu]=He[ru]=He[iu]=He[ou]=He[au]=He[su]=!1;function vu(e){return V7(e)&&G7(e.length)&&!!He[Y7(e)]}var bu=vu;function Cu(e){return function(n){return e(n)}}var k0=Cu,ii={exports:{}};ii.exports,function(e,n){var i=es,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(ii,ii.exports);var A0=ii.exports,xu=bu,wu=k0,_s=A0,vs=_s&&_s.isTypedArray,Lu=vs?wu(vs):xu,$u=Lu,Su=S7,ku=B7,Au=Ir,Mu=ps,Tu=ms,Pu=$u,Ou=Object.prototype,Iu=Ou.hasOwnProperty;function Eu(e,n){var i=Au(e),a=!i&&ku(e),s=!i&&!a&&Mu(e),l=!i&&!a&&!s&&Pu(e),c=i||a||s||l,f=c?Su(e.length,String):[],d=f.length;for(var g in e)(n||Iu.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Tu(g,d)))&&f.push(g);return f}var bs=Eu,Du=Object.prototype;function Ru(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||Du;return e===i}var M0=Ru;function Bu(e,n){return function(i){return e(n(i))}}var Cs=Bu,Fu=Cs,zu=Fu(Object.keys,Object),Nu=zu,Wu=M0,Ku=Nu,Uu=Object.prototype,Zu=Uu.hasOwnProperty;function Hu(e){if(!Wu(e))return Ku(e);var n=[];for(var i in Object(e))Zu.call(e,i)&&i!="constructor"&&n.push(i);return n}var Yu=Hu,Gu=os,Vu=ys;function Qu(e){return e!=null&&Vu(e.length)&&!Gu(e)}var xs=Qu,ju=bs,qu=Yu,Xu=xs;function Ju(e){return Xu(e)?ju(e):qu(e)}var T0=Ju,e4=ni,t4=T0;function n4(e,n){return e&&e4(n,t4(n),e)}var r4=n4;function i4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var o4=i4,a4=Ar,s4=M0,l4=o4,c4=Object.prototype,u4=c4.hasOwnProperty;function f4(e){if(!a4(e))return l4(e);var n=s4(e),i=[];for(var a in e)a=="constructor"&&(n||!u4.call(e,a))||i.push(a);return i}var d4=f4,h4=bs,g4=d4,p4=xs;function m4(e){return p4(e)?h4(e,!0):g4(e)}var P0=m4,y4=ni,_4=P0;function v4(e,n){return e&&y4(n,_4(n),e)}var b4=v4,oi={exports:{}};oi.exports,function(e,n){var i=Ln,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,_){if(_)return g.slice();var y=g.length,b=f?f(y):new g.constructor(y);return g.copy(b),b}e.exports=d}(oi,oi.exports);var C4=oi.exports;function x4(e,n){var i=-1,a=e.length;for(n||(n=Array(a));++i<a;)n[i]=e[i];return n}var w4=x4;function L4(e,n){for(var i=-1,a=e==null?0:e.length,s=0,l=[];++i<a;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var $4=L4;function S4(){return[]}var ws=S4,k4=$4,A4=ws,M4=Object.prototype,T4=M4.propertyIsEnumerable,Ls=Object.getOwnPropertySymbols,P4=Ls?function(e){return e==null?[]:(e=Object(e),k4(Ls(e),function(n){return T4.call(e,n)}))}:A4,O0=P4,O4=ni,I4=O0;function E4(e,n){return O4(e,I4(e),n)}var D4=E4;function R4(e,n){for(var i=-1,a=n.length,s=e.length;++i<a;)e[s+i]=n[i];return e}var $s=R4,B4=Cs,F4=B4(Object.getPrototypeOf,Object),Ss=F4,z4=$s,N4=Ss,W4=O0,K4=ws,U4=Object.getOwnPropertySymbols,Z4=U4?function(e){for(var n=[];e;)z4(n,W4(e)),e=N4(e);return n}:K4,ks=Z4,H4=ni,Y4=ks;function G4(e,n){return H4(e,Y4(e),n)}var V4=G4,Q4=$s,j4=Ir;function q4(e,n,i){var a=n(e);return j4(e)?a:Q4(a,i(e))}var As=q4,X4=As,J4=O0,ef=T0;function tf(e){return X4(e,ef,J4)}var nf=tf,rf=As,of=ks,af=P0;function sf(e){return rf(e,af,of)}var lf=sf,cf=cr,uf=Ln,ff=cf(uf,"DataView"),df=ff,hf=cr,gf=Ln,pf=hf(gf,"Promise"),mf=pf,yf=cr,_f=Ln,vf=yf(_f,"Set"),bf=vf,Cf=cr,xf=Ln,wf=Cf(xf,"WeakMap"),Lf=wf,I0=df,E0=$0,D0=mf,R0=bf,B0=Lf,Ms=f1,Er=ss,Ts="[object Map]",$f="[object Object]",Ps="[object Promise]",Os="[object Set]",Is="[object WeakMap]",Es="[object DataView]",Sf=Er(I0),kf=Er(E0),Af=Er(D0),Mf=Er(R0),Tf=Er(B0),ur=Ms;(I0&&ur(new I0(new ArrayBuffer(1)))!=Es||E0&&ur(new E0)!=Ts||D0&&ur(D0.resolve())!=Ps||R0&&ur(new R0)!=Os||B0&&ur(new B0)!=Is)&&(ur=function(e){var n=Ms(e),i=n==$f?e.constructor:void 0,a=i?Er(i):"";if(a)switch(a){case Sf:return Es;case kf:return Ts;case Af:return Ps;case Mf:return Os;case Tf:return Is}return n});var F0=ur,Pf=Object.prototype,Of=Pf.hasOwnProperty;function If(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&Of.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Ef=If,Df=Ln,Rf=Df.Uint8Array,Bf=Rf,Ds=Bf;function Ff(e){var n=new e.constructor(e.byteLength);return new Ds(n).set(new Ds(e)),n}var z0=Ff,zf=z0;function Nf(e,n){var i=n?zf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Wf=Nf,Kf=/\w*$/;function Uf(e){var n=new e.constructor(e.source,Kf.exec(e));return n.lastIndex=e.lastIndex,n}var Zf=Uf,Rs=J1,Bs=Rs?Rs.prototype:void 0,Fs=Bs?Bs.valueOf:void 0;function Hf(e){return Fs?Object(Fs.call(e)):{}}var Yf=Hf,Gf=z0;function Vf(e,n){var i=n?Gf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Qf=Vf,jf=z0,qf=Wf,Xf=Zf,Jf=Yf,ed=Qf,td="[object Boolean]",nd="[object Date]",rd="[object Map]",id="[object Number]",od="[object RegExp]",ad="[object Set]",sd="[object String]",ld="[object Symbol]",cd="[object ArrayBuffer]",ud="[object DataView]",fd="[object Float32Array]",dd="[object Float64Array]",hd="[object Int8Array]",gd="[object Int16Array]",pd="[object Int32Array]",md="[object Uint8Array]",yd="[object Uint8ClampedArray]",_d="[object Uint16Array]",vd="[object Uint32Array]";function bd(e,n,i){var a=e.constructor;switch(n){case cd:return jf(e);case td:case nd:return new a(+e);case ud:return qf(e,i);case fd:case dd:case hd:case gd:case pd:case md:case yd:case _d:case vd:return ed(e,i);case rd:return new a;case id:case sd:return new a(e);case od:return Xf(e);case ad:return new a;case ld:return Jf(e)}}var Cd=bd,xd=Ar,zs=Object.create,wd=function(){function e(){}return function(n){if(!xd(n))return{};if(zs)return zs(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),Ld=wd,$d=Ld,Sd=Ss,kd=M0;function Ad(e){return typeof e.constructor=="function"&&!kd(e)?$d(Sd(e)):{}}var Md=Ad,Td=F0,Pd=Or,Od="[object Map]";function Id(e){return Pd(e)&&Td(e)==Od}var Ed=Id,Dd=Ed,Rd=k0,Ns=A0,Ws=Ns&&Ns.isMap,Bd=Ws?Rd(Ws):Dd,Fd=Bd,zd=F0,Nd=Or,Wd="[object Set]";function Kd(e){return Nd(e)&&zd(e)==Wd}var Ud=Kd,Zd=Ud,Hd=k0,Ks=A0,Us=Ks&&Ks.isSet,Yd=Us?Hd(Us):Zd,Gd=Yd,Vd=u7,Qd=d7,jd=S0,qd=r4,Xd=b4,Jd=C4,eh=w4,th=D4,nh=V4,rh=nf,ih=lf,oh=F0,ah=Ef,sh=Cd,lh=Md,ch=Ir,uh=ps,fh=Fd,dh=Ar,hh=Gd,gh=T0,ph=P0,mh=1,yh=2,_h=4,Zs="[object Arguments]",vh="[object Array]",bh="[object Boolean]",Ch="[object Date]",xh="[object Error]",Hs="[object Function]",wh="[object GeneratorFunction]",Lh="[object Map]",$h="[object Number]",Ys="[object Object]",Sh="[object RegExp]",kh="[object Set]",Ah="[object String]",Mh="[object Symbol]",Th="[object WeakMap]",Ph="[object ArrayBuffer]",Oh="[object DataView]",Ih="[object Float32Array]",Eh="[object Float64Array]",Dh="[object Int8Array]",Rh="[object Int16Array]",Bh="[object Int32Array]",Fh="[object Uint8Array]",zh="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Wh="[object Uint32Array]",Ue={};Ue[Zs]=Ue[vh]=Ue[Ph]=Ue[Oh]=Ue[bh]=Ue[Ch]=Ue[Ih]=Ue[Eh]=Ue[Dh]=Ue[Rh]=Ue[Bh]=Ue[Lh]=Ue[$h]=Ue[Ys]=Ue[Sh]=Ue[kh]=Ue[Ah]=Ue[Mh]=Ue[Fh]=Ue[zh]=Ue[Nh]=Ue[Wh]=!0,Ue[xh]=Ue[Hs]=Ue[Th]=!1;function ai(e,n,i,a,s,l){var c,f=n&mh,d=n&yh,g=n&_h;if(i&&(c=s?i(e,a,s,l):i(e)),c!==void 0)return c;if(!dh(e))return e;var _=ch(e);if(_){if(c=ah(e),!f)return eh(e,c)}else{var y=oh(e),b=y==Hs||y==wh;if(uh(e))return Jd(e,f);if(y==Ys||y==Zs||b&&!s){if(c=d||b?{}:lh(e),!f)return d?nh(e,Xd(c,e)):th(e,qd(c,e))}else{if(!Ue[y])return s?e:{};c=sh(e,y,f)}}l||(l=new Vd);var k=l.get(e);if(k)return k;l.set(e,c),hh(e)?e.forEach(function(L){c.add(ai(L,n,i,L,e,l))}):fh(e)&&e.forEach(function(L,$){c.set($,ai(L,n,i,$,e,l))});var v=g?d?ih:rh:d?ph:gh,w=_?void 0:v(e);return Qd(w||e,function(L,$){w&&($=L,L=e[$]),jd(c,$,ai(L,n,i,$,e,l))}),c}var Kh=ai,Uh=Kh,Zh=1,Hh=4;function Yh(e){return Uh(e,Zh|Hh)}var Gh=Yh;const Vh=d0(Gh);var Qh=f1,jh=Or,qh="[object Symbol]";function Xh(e){return typeof e=="symbol"||jh(e)&&Qh(e)==qh}var N0=Xh,Jh=Ir,eg=N0,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ng=/^\w*$/;function rg(e,n){if(Jh(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||eg(e)?!0:ng.test(e)||!tg.test(e)||n!=null&&e in Object(n)}var ig=rg,Gs=us,og="Expected a function";function W0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(og);var i=function(){var a=arguments,s=n?n.apply(this,a):a[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,a);return i.cache=l.set(s,c)||l,c};return i.cache=new(W0.Cache||Gs),i}W0.Cache=Gs;var ag=W0,sg=ag,lg=500;function cg(e){var n=sg(e,function(a){return i.size===lg&&i.clear(),a}),i=n.cache;return n}var ug=cg,fg=ug,dg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hg=/\\(\\)?/g,gg=fg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(dg,function(i,a,s,l){n.push(s?l.replace(hg,"$1"):a||i)}),n}),pg=gg;function mg(e,n){for(var i=-1,a=e==null?0:e.length,s=Array(a);++i<a;)s[i]=n(e[i],i,e);return s}var yg=mg,Vs=J1,_g=yg,vg=Ir,bg=N0,Cg=1/0,Qs=Vs?Vs.prototype:void 0,js=Qs?Qs.toString:void 0;function qs(e){if(typeof e=="string")return e;if(vg(e))return _g(e,qs)+"";if(bg(e))return js?js.call(e):"";var n=e+"";return n=="0"&&1/e==-Cg?"-0":n}var xg=qs,wg=xg;function Lg(e){return e==null?"":wg(e)}var $g=Lg,Sg=Ir,kg=ig,Ag=pg,Mg=$g;function Tg(e,n){return Sg(e)?e:kg(e,n)?[e]:Ag(Mg(e))}var Pg=Tg,Og=N0,Ig=1/0;function Eg(e){if(typeof e=="string"||Og(e))return e;var n=e+"";return n=="0"&&1/e==-Ig?"-0":n}var Dg=Eg,Rg=S0,Bg=Pg,Fg=ms,Xs=Ar,zg=Dg;function Ng(e,n,i,a){if(!Xs(e))return e;n=Bg(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=zg(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var _=f[d];g=a?a(_,d,f):void 0,g===void 0&&(g=Xs(_)?_:Fg(n[s+1])?[]:{})}Rg(f,d,g),f=f[d]}return e}var Wg=Ng,Kg=Wg;function Ug(e,n,i){return e==null?e:Kg(e,n,i)}var Zg=Ug;const d1=d0(Zg);var Hg=N("<button>");const Yg=e=>(()=>{var n=Hg();return wn(n,"click",e.onClick,!0),W(n,()=>e.children),Ae(i=>{var a=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=je(n,a,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Et(["click"]);var Gg=N('<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">'),Vg=N('<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">'),Qg=N("<div>"),jg=N("<span class=label>");const qg=()=>Gg(),Xg=()=>Vg(),Js=e=>{const[n,i]=G(e.checked??!1);return At(()=>{"checked"in e&&i(e.checked)}),(()=>{var a=Qg();return a.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},W(a,(()=>{var s=Qe(()=>!!n());return()=>s()?Z(qg,{}):Z(Xg,{})})(),null),W(a,(()=>{var s=Qe(()=>!!e.label);return()=>s()&&(()=>{var l=jg();return W(l,()=>e.label),l})()})(),null),Ae(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=je(a,l,s.e),c!==s.t&&Kt(a,s.t=c),s},{e:void 0,t:void 0}),a})()};Et(["click"]);var Jg=N("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const e9=()=>Jg();var ep=N('<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 tp=()=>ep();var np=N("<ul>"),rp=N("<li>");const si=e=>(()=>{var n=np();return W(n,Z(Me,{get when(){return e.loading},get children(){return Z(e9,{})}}),null),W(n,Z(Me,{get when(){var i;return Qe(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return Z(tp,{})}}),null),W(n,Z(Me,{get when(){return e.children},get children(){return e.children}}),null),W(n,Z(Me,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(a=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,a))??rp()})}}),null),Ae(i=>{var a=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=je(n,a,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Dr=[];let ip=0,li=!1;function t9(e){if(e.key!=="Escape")return;const n=Dr[Dr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function op(){li||(window.addEventListener("keydown",t9,!0),li=!0)}function ap(){Dr.length===0&&li&&(window.removeEventListener("keydown",t9,!0),li=!1)}function sp(e){const n=ip++;return Dr.push({id:n,close:e}),op(),()=>{const i=Dr.findIndex(a=>a.id===n);i>=0&&Dr.splice(i,1),ap()}}var lp=N('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),cp=N("<div class=button-container>");const $n=e=>{let n=null;b0(()=>{if(!e.onClose)return;const d=sp(()=>{var g;(g=e.onClose)==null||g.call(e)});wr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},a={};e.width!=null&&(a.width=`${e.width}px`,a["max-width"]=`${e.width}px`),e.height!=null&&(a.height=`${e.height}px`,a["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let _=d;for(;_;){const y=window.getComputedStyle(_);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&_.scrollHeight>_.clientHeight)return g>0?_.scrollTop+_.clientHeight<_.scrollHeight:_.scrollTop>0;_=_.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},c=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,_=n-g;n=g,s(d.target,_)||d.preventDefault()};return(()=>{var d=lp(),g=d.firstChild,_=g.firstChild,y=_.firstChild,b=_.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),W(_,()=>e.title,y),wn(y,"click",e.onClose,!0),W(b,()=>e.children),W(g,(()=>{var k=Qe(()=>!!(e.buttons&&e.buttons.length>0));return()=>k()&&(()=>{var v=cp();return W(v,()=>e.buttons.map(w=>Z(Yg,Qa(w,{get children(){return w.children}})))),v})()})(),null),Ae(k=>{var v=`inner${e.height!=null?" inner--fixed-height":""}`,w=a;return v!==k.e&&Kt(g,k.e=v),k.t=je(g,w,k.t),k},{e:void 0,t:void 0}),d})()};Et(["click","touchstart","touchmove"]);var up=N("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),fp=N("<div class=drop-down-container><ul>"),dp=N("<li>");const h1=e=>{const[n,i]=G(!1);return(()=>{var a=up(),s=a.firstChild,l=s.firstChild;return a.addEventListener("blur",c=>{i(!1)}),a.$$click=c=>{i(f=>!f)},W(l,()=>e.value),W(a,(()=>{var c=Qe(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=fp(),d=f.firstChild;return W(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var b=dp();return b.$$click=k=>{var v;k.stopPropagation(),e.value!==y&&((v=e.onSelected)==null||v.call(e,g)),i(!1)},W(b,y),b})()})),f})()})(),null),Ae(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=je(a,f,c.e),d!==c.t&&Kt(a,c.t=d),c},{e:void 0,t:void 0}),a})()};Et(["click"]);var hp=N("<span class=prefix>"),gp=N("<span class=suffix>"),pp=N("<div><input id=myInput class=value>");const[mp,xA]=G("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),n9=e=>{const n=Qa({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[a,s]=G("normal"),l=c=>{c&&c.focus()};return At(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=pp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},W(c,Z(Me,{get when(){return n.prefix},get children(){var g=hp();return W(g,()=>n.prefix),g}}),f),wn(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,b;const _=g.target.value;if("precision"in n){let k;const v=Math.max(0,Math.floor(n.precision));v<=0?k=new RegExp(/^[1-9]\d*$/):k=new RegExp("^\\d+\\.?\\d{0,"+v+"}$"),(_===""||k.test(_)&&+_>=n.min&&+_<=n.max)&&((y=n.onChange)==null||y.call(n,_===""?_:+_))}else(b=n.onChange)==null||b.call(n,_)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?Q1(d,f):i=f,W(c,Z(Me,{get when(){return n.suffix},get children(){var g=gp();return W(g,()=>n.suffix),g}}),null),Ae(g=>{var _=n.style,y=`${mp()}${n.class??""}`,b=a(),k=n.placeholder??"",v=n.focus===!0?n.focus:!1;return g.e=je(c,_,g.e),y!==g.t&&Kt(c,g.t=y),b!==g.a&<(c,"data-status",g.a=b),k!==g.o&<(f,"placeholder",g.o=k),v!==g.i&&(f.autofocus=g.i=v),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Ae(()=>f.value=n.value),c})()};Et(["click","keydown"]);var yp=N("<div><i class=thumb>");const g1=e=>(()=>{var n=yp();return n.$$click=i=>{e.onChange&&e.onChange()},Ae(i=>{var a=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=je(n,a,i.e),s!==i.t&&Kt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Et(["click"]);const{min:_p,max:vp}=Math,fr=(e,n=0,i=1)=>_p(vp(n,e),i),K0=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=fr(e[n],0,255)):n===3&&(e[n]=fr(e[n],0,1));return e},r9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])r9[`[object ${e}]`]=e.toLowerCase();function be(e){return r9[Object.prototype.toString.call(e)]||"object"}const me=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):be(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Rr=e=>{if(e.length<2)return null;const n=e.length-1;return be(e[n])=="string"?e[n].toLowerCase():null},{PI:ci,min:i9,max:o9}=Math,qt=e=>Math.round(e*100)/100,U0=e=>Math.round(e*100)/100,Dn=ci*2,Z0=ci/3,bp=ci/180,Cp=180/ci;function a9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const ge={format:{},autodetect:[]};let H=class{constructor(...n){const i=this;if(be(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let a=Rr(n),s=!1;if(!a){s=!0,ge.sorted||(ge.autodetect=ge.autodetect.sort((l,c)=>c.p-l.p),ge.sorted=!0);for(let l of ge.autodetect)if(a=l.test(...n),a)break}if(ge.format[a]){const l=ge.format[a].apply(null,s?n:n.slice(0,-1));i._rgb=K0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return be(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const xp="3.2.0",he=(...e)=>new H(...e);he.version=xp;const Br={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"},wp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Lp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,s9=e=>{if(e.match(wp)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e,16),i=n>>16,a=n>>8&255,s=n&255;return[i,a,s,1]}if(e.match(Lp)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e,16),i=n>>24&255,a=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,a,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:ui}=Math,l9=(...e)=>{let[n,i,a,s]=me(e,"rgba"),l=Rr(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=ui(n),i=ui(i),a=ui(a);let f="000000"+(n<<16|i<<8|a).toString(16);f=f.substr(f.length-6);let d="0"+ui(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};H.prototype.name=function(){const e=l9(this._rgb,"rgb");for(let n of Object.keys(Br))if(Br[n]===e)return n.toLowerCase();return e},ge.format.named=e=>{if(e=e.toLowerCase(),Br[e])return s9(Br[e]);throw new Error("unknown color name: "+e)},ge.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&be(e)==="string"&&Br[e.toLowerCase()])return"named"}}),H.prototype.alpha=function(e,n=!1){return e!==void 0&&be(e)==="number"?n?(this._rgb[3]=e,this):new H([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},H.prototype.clipped=function(){return this._rgb._clipped||!1};const Sn={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},$p=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Rn(e){const n=$p.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);Sn.labWhitePoint=e,Sn.Xn=n[0],Sn.Zn=n[1]}function p1(){return Sn.labWhitePoint}const H0=(...e)=>{e=me(e,"lab");const[n,i,a]=e,[s,l,c]=Sp(n,i,a),[f,d,g]=c9(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Sp=(e,n,i)=>{const{kE:a,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=Sn,g=(e+16)/116,_=.002*n+g,y=g-.005*i,b=_*_*_,k=y*y*y,v=b>a?b:(116*_-16)/s,w=e>l?Math.pow((e+16)/116,3):e/s,L=k>a?k:(116*y-16)/s,$=v*c,T=w*f,O=L*d;return[$,T,O]},Y0=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},c9=(e,n,i)=>{const{MtxAdaptMa:a,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=Sn,_=f*a.m00+d*a.m10+g*a.m20,y=f*a.m01+d*a.m11+g*a.m21,b=f*a.m02+d*a.m12+g*a.m22,k=c.X*a.m00+c.Y*a.m10+c.Z*a.m20,v=c.X*a.m01+c.Y*a.m11+c.Z*a.m21,w=c.X*a.m02+c.Y*a.m12+c.Z*a.m22,L=(e*a.m00+n*a.m10+i*a.m20)*(k/_),$=(e*a.m01+n*a.m11+i*a.m21)*(v/y),T=(e*a.m02+n*a.m12+i*a.m22)*(w/b),O=L*s.m00+$*s.m10+T*s.m20,E=L*s.m01+$*s.m11+T*s.m21,U=L*s.m02+$*s.m12+T*s.m22,X=Y0(O*l.m00+E*l.m10+U*l.m20),Y=Y0(O*l.m01+E*l.m11+U*l.m21),I=Y0(O*l.m02+E*l.m12+U*l.m22);return[X*255,Y*255,I*255]},G0=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,c,f]=u9(n,i,a),[d,g,_]=kp(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function kp(e,n,i){const{Xn:a,Yn:s,Zn:l,kE:c,kK:f}=Sn,d=e/a,g=n/s,_=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,b=g>c?Math.pow(g,1/3):(f*g+16)/116,k=_>c?Math.pow(_,1/3):(f*_+16)/116;return[116*b-16,500*(y-b),200*(b-k)]}function V0(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const u9=(e,n,i)=>{e=V0(e/255),n=V0(n/255),i=V0(i/255);const{MtxRGB2XYZ:a,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:_,Cs:y}=Sn;let b=e*a.m00+n*a.m10+i*a.m20,k=e*a.m01+n*a.m11+i*a.m21,v=e*a.m02+n*a.m12+i*a.m22;const w=c*s.m00+f*s.m10+d*s.m20,L=c*s.m01+f*s.m11+d*s.m21,$=c*s.m02+f*s.m12+d*s.m22;let T=b*s.m00+k*s.m10+v*s.m20,O=b*s.m01+k*s.m11+v*s.m21,E=b*s.m02+k*s.m12+v*s.m22;return T*=w/g,O*=L/_,E*=$/y,b=T*l.m00+O*l.m10+E*l.m20,k=T*l.m01+O*l.m11+E*l.m21,v=T*l.m02+O*l.m12+E*l.m22,[b,k,v]};H.prototype.lab=function(){return G0(this._rgb)},Object.assign(he,{lab:(...e)=>new H(...e,"lab"),getLabWhitePoint:p1,setLabWhitePoint:Rn}),ge.format.lab=H0,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),be(e)==="array"&&e.length===3)return"lab"}}),H.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=Sn.Kn*e,new H(i,"lab").alpha(n.alpha(),!0)},H.prototype.brighten=function(e=1){return this.darken(-e)},H.prototype.darker=H.prototype.darken,H.prototype.brighter=H.prototype.brighten,H.prototype.get=function(e){const[n,i]=e.split("."),a=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return a[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return a};const{pow:Ap}=Math,Mp=1e-7,Tp=20;H.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&be(e)==="number"){if(e===0)return new H([0,0,0,this._rgb[3]],"rgb");if(e===1)return new H([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),a=Tp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Mp||!a--?d:g>e?s(c,d):s(d,f)},l=(i>e?s(new H([0,0,0]),this):s(this,new H([255,255,255]))).rgb();return new H([...l,this._rgb[3]])}return Pp(...this._rgb.slice(0,3))};const Pp=(e,n,i)=>(e=Q0(e),n=Q0(n),i=Q0(i),.2126*e+.7152*n+.0722*i),Q0=e=>(e/=255,e<=.03928?e/12.92:Ap((e+.055)/1.055,2.4)),xt={},Fr=(e,n,i=.5,...a)=>{let s=a[0]||"lrgb";if(!xt[s]&&!a.length&&(s=Object.keys(xt)[0]),!xt[s])throw new Error(`interpolation mode ${s} is not defined`);return be(e)!=="object"&&(e=new H(e)),be(n)!=="object"&&(n=new H(n)),xt[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};H.prototype.mix=H.prototype.interpolate=function(e,n=.5,...i){return Fr(this,e,n,...i)},H.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new H([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:Op,cos:Ip}=Math,f9=(...e)=>{let[n,i,a]=me(e,"lch");return isNaN(a)&&(a=0),a=a*bp,[n,Ip(a)*i,Op(a)*i]},j0=(...e)=>{e=me(e,"lch");const[n,i,a]=e,[s,l,c]=f9(n,i,a),[f,d,g]=H0(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Ep=(...e)=>{const n=a9(me(e,"hcl"));return j0(...n)},{sqrt:Dp,atan2:Rp,round:Bp}=Math,d9=(...e)=>{const[n,i,a]=me(e,"lab"),s=Dp(i*i+a*a);let l=(Rp(a,i)*Cp+360)%360;return Bp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},q0=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,c,f]=G0(n,i,a),[d,g,_]=d9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};H.prototype.lch=function(){return q0(this._rgb)},H.prototype.hcl=function(){return a9(q0(this._rgb))},Object.assign(he,{lch:(...e)=>new H(...e,"lch"),hcl:(...e)=>new H(...e,"hcl")}),ge.format.lch=j0,ge.format.hcl=Ep,["lch","hcl"].forEach(e=>ge.autodetect.push({p:2,test:(...n)=>{if(n=me(n,e),be(n)==="array"&&n.length===3)return e}})),H.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=Sn.Kn*e,i[1]<0&&(i[1]=0),new H(i,"lch").alpha(n.alpha(),!0)},H.prototype.desaturate=function(e=1){return this.saturate(-e)},H.prototype.set=function(e,n,i=!1){const[a,s]=e.split("."),l=this[a]();if(s){const c=a.indexOf(s)-(a.substr(0,2)==="ok"?2:0);if(c>-1){if(be(n)=="string")switch(n.charAt(0)){case"+":l[c]+=+n;break;case"-":l[c]+=+n;break;case"*":l[c]*=+n.substr(1);break;case"/":l[c]/=+n.substr(1);break;default:l[c]=+n}else if(be(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new H(l,a);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${a}`)}else return l},H.prototype.tint=function(e=.5,...n){return Fr(this,"white",e,...n)},H.prototype.shade=function(e=.5,...n){return Fr(this,"black",e,...n)};const Fp=(e,n,i)=>{const a=e._rgb,s=n._rgb;return new H(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"rgb")};xt.rgb=Fp;const{sqrt:X0,pow:zr}=Math,zp=(e,n,i)=>{const[a,s,l]=e._rgb,[c,f,d]=n._rgb;return new H(X0(zr(a,2)*(1-i)+zr(c,2)*i),X0(zr(s,2)*(1-i)+zr(f,2)*i),X0(zr(l,2)*(1-i)+zr(d,2)*i),"rgb")};xt.lrgb=zp;const Np=(e,n,i)=>{const a=e.lab(),s=n.lab();return new H(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"lab")};xt.lab=Np;const Nr=(e,n,i,a)=>{let s,l;a==="hsl"?(s=e.hsl(),l=n.hsl()):a==="hsv"?(s=e.hsv(),l=n.hsv()):a==="hcg"?(s=e.hcg(),l=n.hcg()):a==="hsi"?(s=e.hsi(),l=n.hsi()):a==="lch"||a==="hcl"?(a="hcl",s=e.hcl(),l=n.hcl()):a==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,_,y;(a.substr(0,1)==="h"||a==="oklch")&&([c,d,_]=s,[f,g,y]=l);let b,k,v,w;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?w=f-(c+360):f<c&&c-f>180?w=f+360-c:w=f-c,k=c+i*w):isNaN(c)?isNaN(f)?k=Number.NaN:(k=f,(_==1||_==0)&&a!="hsv"&&(b=g)):(k=c,(y==1||y==0)&&a!="hsv"&&(b=d)),b===void 0&&(b=d+i*(g-d)),v=_+i*(y-_),a==="oklch"?new H([v,b,k],a):new H([k,b,v],a)},h9=(e,n,i)=>Nr(e,n,i,"lch");xt.lch=h9,xt.hcl=h9;const Wp=e=>{if(be(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,a=e&255;return[n,i,a,1]}throw new Error("unknown num color: "+e)},Kp=(...e)=>{const[n,i,a]=me(e,"rgb");return(n<<16)+(i<<8)+a};H.prototype.num=function(){return Kp(this._rgb)},Object.assign(he,{num:(...e)=>new H(...e,"num")}),ge.format.num=Wp,ge.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&be(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const Up=(e,n,i)=>{const a=e.num(),s=n.num();return new H(a+i*(s-a),"num")};xt.num=Up;const{floor:Zp}=Math,Hp=(...e)=>{e=me(e,"hcg");let[n,i,a]=e,s,l,c;a=a*255;const f=i*255;if(i===0)s=l=c=a;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=Zp(n),g=n-d,_=a*(1-i),y=_+f*(1-g),b=_+f*g,k=_+f;switch(d){case 0:[s,l,c]=[k,b,_];break;case 1:[s,l,c]=[y,k,_];break;case 2:[s,l,c]=[_,k,b];break;case 3:[s,l,c]=[_,y,k];break;case 4:[s,l,c]=[b,_,k];break;case 5:[s,l,c]=[k,_,y];break}}return[s,l,c,e.length>3?e[3]:1]},Yp=(...e)=>{const[n,i,a]=me(e,"rgb"),s=i9(n,i,a),l=o9(n,i,a),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-a)/c),i===l&&(g=2+(a-n)/c),a===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};H.prototype.hcg=function(){return Yp(this._rgb)};const Gp=(...e)=>new H(...e,"hcg");he.hcg=Gp,ge.format.hcg=Hp,ge.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),be(e)==="array"&&e.length===3)return"hcg"}});const Vp=(e,n,i)=>Nr(e,n,i,"hcg");xt.hcg=Vp;const{cos:Wr}=Math,Qp=(...e)=>{e=me(e,"hsi");let[n,i,a]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Wr(Dn*n)/Wr(Z0-Dn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Wr(Dn*n)/Wr(Z0-Dn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Wr(Dn*n)/Wr(Z0-Dn*n))/3,s=1-(l+c)),s=fr(a*s*3),l=fr(a*l*3),c=fr(a*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:jp,sqrt:qp,acos:Xp}=Math,Jp=(...e)=>{let[n,i,a]=me(e,"rgb");n/=255,i/=255,a/=255;let s;const l=jp(n,i,a),c=(n+i+a)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-a))/2,s/=qp((n-i)*(n-i)+(n-a)*(i-a)),s=Xp(s),a>i&&(s=Dn-s),s/=Dn),[s*360,f,c]};H.prototype.hsi=function(){return Jp(this._rgb)};const em=(...e)=>new H(...e,"hsi");he.hsi=em,ge.format.hsi=Qp,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),be(e)==="array"&&e.length===3)return"hsi"}});const tm=(e,n,i)=>Nr(e,n,i,"hsi");xt.hsi=tm;const J0=(...e)=>{e=me(e,"hsl");const[n,i,a]=e;let s,l,c;if(i===0)s=l=c=a*255;else{const f=[0,0,0],d=[0,0,0],g=a<.5?a*(1+i):a+i-a*i,_=2*a-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let b=0;b<3;b++)f[b]<0&&(f[b]+=1),f[b]>1&&(f[b]-=1),6*f[b]<1?d[b]=_+(g-_)*6*f[b]:2*f[b]<1?d[b]=g:3*f[b]<2?d[b]=_+(g-_)*(2/3-f[b])*6:d[b]=_;[s,l,c]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,c,e[3]]:[s,l,c,1]},g9=(...e)=>{e=me(e,"rgba");let[n,i,a]=e;n/=255,i/=255,a/=255;const s=i9(n,i,a),l=o9(n,i,a),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-a)/(l-s):i==l?d=2+(a-n)/(l-s):a==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};H.prototype.hsl=function(){return g9(this._rgb)};const nm=(...e)=>new H(...e,"hsl");he.hsl=nm,ge.format.hsl=J0,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),be(e)==="array"&&e.length===3)return"hsl"}});const rm=(e,n,i)=>Nr(e,n,i,"hsl");xt.hsl=rm;const{floor:im}=Math,om=(...e)=>{e=me(e,"hsv");let[n,i,a]=e,s,l,c;if(a*=255,i===0)s=l=c=a;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=im(n),d=n-f,g=a*(1-i),_=a*(1-i*d),y=a*(1-i*(1-d));switch(f){case 0:[s,l,c]=[a,y,g];break;case 1:[s,l,c]=[_,a,g];break;case 2:[s,l,c]=[g,a,y];break;case 3:[s,l,c]=[g,_,a];break;case 4:[s,l,c]=[y,g,a];break;case 5:[s,l,c]=[a,g,_];break}}return[s,l,c,e.length>3?e[3]:1]},{min:am,max:sm}=Math,lm=(...e)=>{e=me(e,"rgb");let[n,i,a]=e;const s=am(n,i,a),l=sm(n,i,a),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-a)/c),i===l&&(f=2+(a-n)/c),a===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};H.prototype.hsv=function(){return lm(this._rgb)};const cm=(...e)=>new H(...e,"hsv");he.hsv=cm,ge.format.hsv=om,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),be(e)==="array"&&e.length===3)return"hsv"}});const um=(e,n,i)=>Nr(e,n,i,"hsv");xt.hsv=um;function fi(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let a=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,_)=>d+g*(f[_]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),a===1?l.map(c=>c[0]):l}const eo=(...e)=>{e=me(e,"lab");const[n,i,a,...s]=e,[l,c,f]=fm([n,i,a]),[d,g,_]=c9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]};function fm(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],a=fi(i,e);return fi(n,a.map(s=>s**3))}const to=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),l=u9(n,i,a);return[...dm(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function dm(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],a=fi(n,e);return fi(i,a.map(s=>Math.cbrt(s)))}H.prototype.oklab=function(){return to(this._rgb)},Object.assign(he,{oklab:(...e)=>new H(...e,"oklab")}),ge.format.oklab=eo,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),be(e)==="array"&&e.length===3)return"oklab"}});const hm=(e,n,i)=>{const a=e.oklab(),s=n.oklab();return new H(a[0]+i*(s[0]-a[0]),a[1]+i*(s[1]-a[1]),a[2]+i*(s[2]-a[2]),"oklab")};xt.oklab=hm;const gm=(e,n,i)=>Nr(e,n,i,"oklch");xt.oklch=gm;const{pow:no,sqrt:ro,PI:io,cos:p9,sin:m9,atan2:pm}=Math,mm=(e,n="lrgb",i=null)=>{const a=e.length;i||(i=Array.from(new Array(a)).map(()=>1));const s=a/i.reduce(function(y,b){return y+b});if(i.forEach((y,b)=>{i[b]*=s}),e=e.map(y=>new H(y)),n==="lrgb")return ym(e,i);const l=e.shift(),c=l.get(n),f=[];let d=0,g=0;for(let y=0;y<c.length;y++)if(c[y]=(c[y]||0)*i[0],f.push(isNaN(c[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(c[y])){const b=c[y]/180*io;d+=p9(b)*i[0],g+=m9(b)*i[0]}let _=l.alpha()*i[0];e.forEach((y,b)=>{const k=y.get(n);_+=y.alpha()*i[b+1];for(let v=0;v<c.length;v++)if(!isNaN(k[v]))if(f[v]+=i[b+1],n.charAt(v)==="h"){const w=k[v]/180*io;d+=p9(w)*i[b+1],g+=m9(w)*i[b+1]}else c[v]+=k[v]*i[b+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let b=pm(g/f[y],d/f[y])/io*180;for(;b<0;)b+=360;for(;b>=360;)b-=360;c[y]=b}else c[y]=c[y]/f[y];return _/=a,new H(c,n).alpha(_>.99999?1:_,!0)},ym=(e,n)=>{const i=e.length,a=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;a[0]+=no(f[0],2)*c,a[1]+=no(f[1],2)*c,a[2]+=no(f[2],2)*c,a[3]+=f[3]*c}return a[0]=ro(a[0]),a[1]=ro(a[1]),a[2]=ro(a[2]),a[3]>.9999999&&(a[3]=1),new H(K0(a))},{pow:_m}=Math;function di(e){let n="rgb",i=he("#ccc"),a=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],_=!1,y=0,b=1,k=!1,v={},w=!0,L=1;const $=function(I){if(I=I||["#fff","#000"],I&&be(I)==="string"&&he.brewer&&he.brewer[I.toLowerCase()]&&(I=he.brewer[I.toLowerCase()]),be(I)==="array"){I.length===1&&(I=[I[0],I[0]]),I=I.slice(0);for(let z=0;z<I.length;z++)I[z]=he(I[z]);c.length=0;for(let z=0;z<I.length;z++)c.push(z/(I.length-1))}return X(),g=I},T=function(I){if(d!=null){const z=d.length-1;let V=0;for(;V<z&&I>=d[V];)V++;return V-1}return 0};let O=I=>I,E=I=>I;const U=function(I,z){let V,Q;if(z==null&&(z=!1),isNaN(I)||I===null)return i;z?Q=I:d&&d.length>2?Q=T(I)/(d.length-2):b!==y?Q=(I-y)/(b-y):Q=1,Q=E(Q),z||(Q=O(Q)),L!==1&&(Q=_m(Q,L)),Q=f[0]+Q*(1-f[0]-f[1]),Q=fr(Q,0,1);const ne=Math.floor(Q*1e4);if(w&&v[ne])V=v[ne];else{if(be(g)==="array")for(let ee=0;ee<c.length;ee++){const Te=c[ee];if(Q<=Te){V=g[ee];break}if(Q>=Te&&ee===c.length-1){V=g[ee];break}if(Q>Te&&Q<c[ee+1]){Q=(Q-Te)/(c[ee+1]-Te),V=he.interpolate(g[ee],g[ee+1],Q,n);break}}else be(g)==="function"&&(V=g(Q));w&&(v[ne]=V)}return V};var X=()=>v={};$(e);const Y=function(I){const z=he(U(I));return _&&z[_]?z[_]():z};return Y.classes=function(I){if(I!=null){if(be(I)==="array")d=I,s=[I[0],I[I.length-1]];else{const z=he.analyze(s);I===0?d=[z.min,z.max]:d=he.limits(z,"e",I)}return Y}return d},Y.domain=function(I){if(!arguments.length)return l;l=I.slice(0),y=I[0],b=I[I.length-1],c=[];const z=g.length;if(I.length===z&&y!==b)for(let V of Array.from(I))c.push((V-y)/(b-y));else{for(let V=0;V<z;V++)c.push(V/(z-1));if(I.length>2){const V=I.map((ne,ee)=>ee/(I.length-1)),Q=I.map(ne=>(ne-y)/(b-y));Q.every((ne,ee)=>V[ee]===ne)||(E=ne=>{if(ne<=0||ne>=1)return ne;let ee=0;for(;ne>=Q[ee+1];)ee++;const Te=(ne-Q[ee])/(Q[ee+1]-Q[ee]);return V[ee]+Te*(V[ee+1]-V[ee])})}}return s=[y,b],Y},Y.mode=function(I){return arguments.length?(n=I,X(),Y):n},Y.range=function(I,z){return $(I),Y},Y.out=function(I){return _=I,Y},Y.spread=function(I){return arguments.length?(a=I,Y):a},Y.correctLightness=function(I){return I==null&&(I=!0),k=I,X(),k?O=function(z){const V=U(0,!0).lab()[0],Q=U(1,!0).lab()[0],ne=V>Q;let ee=U(z,!0).lab()[0];const Te=V+(Q-V)*z;let ae=ee-Te,_t=0,wt=1,rt=20;for(;Math.abs(ae)>.01&&rt-- >0;)(function(){return ne&&(ae*=-1),ae<0?(_t=z,z+=(wt-z)*.5):(wt=z,z+=(_t-z)*.5),ee=U(z,!0).lab()[0],ae=ee-Te})();return z}:O=z=>z,Y},Y.padding=function(I){return I!=null?(be(I)==="number"&&(I=[I,I]),f=I,Y):f},Y.colors=function(I,z){arguments.length<2&&(z="hex");let V=[];if(arguments.length===0)V=g.slice(0);else if(I===1)V=[Y(.5)];else if(I>1){const Q=s[0],ne=s[1]-Q;V=vm(0,I,!1).map(ee=>Y(Q+ee/(I-1)*ne))}else{e=[];let Q=[];if(d&&d.length>2)for(let ne=1,ee=d.length,Te=1<=ee;Te?ne<ee:ne>ee;Te?ne++:ne--)Q.push((d[ne-1]+d[ne])*.5);else Q=s;V=Q.map(ne=>Y(ne))}return he[z]&&(V=V.map(Q=>Q[z]())),V},Y.cache=function(I){return I!=null?(w=I,Y):w},Y.gamma=function(I){return I!=null?(L=I,Y):L},Y.nodata=function(I){return I!=null?(i=he(I),Y):i},Y}function vm(e,n,i){let a=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)a.push(c);return a}const bm=function(e){let n=[1,1];for(let i=1;i<e;i++){let a=[1];for(let s=1;s<=n.length;s++)a[s]=(n[s]||0)+n[s-1];n=a}return n},Cm=function(e){let n,i,a,s;if(e=e.map(l=>new H(l)),e.length===2)[i,a]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(a[f]-i[f]));return new H(c,"lab")};else if(e.length===3)[i,a,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*a[f]+l*l*s[f]);return new H(c,"lab")};else if(e.length===4){let l;[i,a,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*a[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new H(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=bm(f),n=function(d){const g=1-d,_=[0,1,2].map(y=>l.reduce((b,k,v)=>b+c[v]*g**(f-v)*d**v*k[y],0));return new H(_,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},xm=e=>{const n=Cm(e);return n.scale=()=>di(n),n},{round:y9}=Math;H.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(y9)},H.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:y9(n):n)},Object.assign(he,{rgb:(...e)=>new H(...e,"rgb")}),ge.format.rgb=(...e)=>{const n=me(e,"rgba");return n[3]===void 0&&(n[3]=1),n},ge.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),be(e)==="array"&&(e.length===3||e.length===4&&be(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const hn=(e,n,i)=>{if(!hn[i])throw new Error("unknown blend mode "+i);return hn[i](e,n)},Vn=e=>(n,i)=>{const a=he(i).rgb(),s=he(n).rgb();return he.rgb(e(a,s))},Qn=e=>(n,i)=>{const a=[];return a[0]=e(n[0],i[0]),a[1]=e(n[1],i[1]),a[2]=e(n[2],i[2]),a},wm=e=>e,Lm=(e,n)=>e*n/255,$m=(e,n)=>e>n?n:e,Sm=(e,n)=>e>n?e:n,km=(e,n)=>255*(1-(1-e/255)*(1-n/255)),Am=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),Mm=(e,n)=>255*(1-(1-n/255)/(e/255)),Tm=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);hn.normal=Vn(Qn(wm)),hn.multiply=Vn(Qn(Lm)),hn.screen=Vn(Qn(km)),hn.overlay=Vn(Qn(Am)),hn.darken=Vn(Qn($m)),hn.lighten=Vn(Qn(Sm)),hn.dodge=Vn(Qn(Tm)),hn.burn=Vn(Qn(Mm));const{pow:Pm,sin:Om,cos:Im}=Math;function Em(e=300,n=-1.5,i=1,a=1,s=[0,1]){let l=0,c;be(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Dn*((e+120)/360+n*d),_=Pm(s[0]+c*d,a),b=(l!==0?i[0]+d*l:i)*_*(1-_)/2,k=Im(g),v=Om(g),w=_+b*(-.14861*k+1.78277*v),L=_+b*(-.29227*k-.90649*v),$=_+b*(1.97294*k);return he(K0([w*255,L*255,$*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?a:(a=d,f)},f.hue=function(d){return d==null?i:(i=d,be(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(be(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>he.scale(f),f.hue(i),f}const Dm="0123456789abcdef",{floor:Rm,random:Bm}=Math,Fm=(e=Bm)=>{let n="#";for(let i=0;i<6;i++)n+=Dm.charAt(Rm(e()*16));return new H(n,"hex")},{log:_9,pow:zm,floor:Nm,abs:Wm}=Math;function v9(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return be(e)==="object"&&(e=Object.values(e)),e.forEach(a=>{n&&be(a)==="object"&&(a=a[n]),a!=null&&!isNaN(a)&&(i.values.push(a),i.sum+=a,a<i.min&&(i.min=a),a>i.max&&(i.max=a),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(a,s)=>b9(i,a,s),i}function b9(e,n="equal",i=7){be(e)=="array"&&(e=v9(e));const{min:a,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[a,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(a),c.push(s)),n.substr(0,1)==="e"){c.push(a);for(let f=1;f<i;f++)c.push(a+f/i*(s-a));c.push(s)}else if(n.substr(0,1)==="l"){if(a<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*_9(a),d=Math.LOG10E*_9(s);c.push(a);for(let g=1;g<i;g++)c.push(zm(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(a);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=Nm(d);if(g===d)c.push(l[g]);else{const _=d-g;c.push(l[g]*(1-_)+l[g+1]*_)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),_=new Array(i);let y=!0,b=0,k=null;k=[],k.push(a);for(let L=1;L<i;L++)k.push(a+L/i*(s-a));for(k.push(s);y;){for(let $=0;$<i;$++)_[$]=0;for(let $=0;$<d;$++){const T=l[$];let O=Number.MAX_VALUE,E;for(let U=0;U<i;U++){const X=Wm(k[U]-T);X<O&&(O=X,E=U),_[E]++,g[$]=E}}const L=new Array(i);for(let $=0;$<i;$++)L[$]=null;for(let $=0;$<d;$++)f=g[$],L[f]===null?L[f]=l[$]:L[f]+=l[$];for(let $=0;$<i;$++)L[$]*=1/_[$];y=!1;for(let $=0;$<i;$++)if(L[$]!==k[$]){y=!0;break}k=L,b++,b>200&&(y=!1)}const v={};for(let L=0;L<i;L++)v[L]=[];for(let L=0;L<d;L++)f=g[L],v[f].push(l[L]);let w=[];for(let L=0;L<i;L++)w.push(v[L][0]),w.push(v[L][v[L].length-1]);w=w.sort((L,$)=>L-$),c.push(w[0]);for(let L=1;L<w.length;L+=2){const $=w[L];!isNaN($)&&c.indexOf($)===-1&&c.push($)}}return c}const Km=(e,n)=>{e=new H(e),n=new H(n);const i=e.luminance(),a=n.luminance();return i>a?(i+.05)/(a+.05):(a+.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 C9=.027,Um=5e-4,Zm=.1,x9=1.14,di=.022,w9=1.414,Hm=(e,n)=>{e=new Y(e),n=new Y(n),e.alpha()<1&&(e=Br(n,e,e.alpha(),"rgb"));const i=L9(...e.rgb()),a=L9(...n.rgb()),s=i>=di?i:i+Math.pow(di-i,w9),l=a>=di?a:a+Math.pow(di-a,w9),u=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<Um?0:s<l?u*x9:f*x9;return(Math.abs(d)<Zm?0:d>0?d-C9:d+C9)*100};function L9(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:zn,pow:lt,min:Ym,max:Gm,atan2:$9,abs:S9,cos:hi,sin:k9,exp:Vm,PI:A9}=Math;function Qm(e,n,i=1,a=1,s=1){var l=function(tt){return 360*tt/(2*A9)},u=function(tt){return 2*A9*tt/360};e=new Y(e),n=new Y(n);const[f,d,g]=Array.from(e.lab()),[_,y,b]=Array.from(n.lab()),M=(f+_)/2,w=zn(lt(d,2)+lt(g,2)),x=zn(lt(y,2)+lt(b,2)),$=(w+x)/2,S=.5*(1-zn(lt($,7)/(lt($,7)+lt(25,7)))),I=d*(1+S),D=y*(1+S),R=zn(lt(I,2)+lt(g,2)),H=zn(lt(D,2)+lt(b,2)),G=(R+H)/2,U=l($9(g,I)),O=l($9(b,D)),W=U>=0?U:U+360,Q=O>=0?O:O+360,X=S9(W-Q)>180?(W+Q+360)/2:(W+Q)/2,re=1-.17*hi(u(X-30))+.24*hi(u(2*X))+.32*hi(u(3*X+6))-.2*hi(u(4*X-63));let J=Q-W;J=S9(J)<=180?J:Q<=W?J+360:J-360,J=2*zn(R*H)*k9(u(J)/2);const Pe=_-f,et=H-R,pt=1+.015*lt(M-50,2)/zn(20+lt(M-50,2)),At=1+.045*G,rt=1+.015*G*re,qe=30*Vm(-lt((X-275)/25,2)),He=-(2*zn(lt(G,7)/(lt(G,7)+lt(25,7))))*k9(2*u(qe)),Be=zn(lt(Pe/(i*pt),2)+lt(et/(a*At),2)+lt(J/(s*rt),2)+He*(et/(a*At))*(J/(s*rt)));return Gm(0,Ym(100,Be))}function jm(e,n,i="lab"){e=new Y(e),n=new Y(n);const a=e.get(i),s=n.get(i);let l=0;for(let u in a){const f=(a[u]||0)-(s[u]||0);l+=f*f}return Math.sqrt(l)}const qm=(...e)=>{try{return new Y(...e),!0}catch{return!1}},Xm={cool(){return fi([he.hsl(180,1,.9),he.hsl(250,.7,.4)])},hot(){return fi(["#000","#f00","#ff0","#fff"]).mode("rgb")}},oo={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"]},M9=Object.keys(oo),T9=new Map(M9.map(e=>[e.toLowerCase(),e])),Jm=typeof Proxy=="function"?new Proxy(oo,{get(e,n){const i=n.toLowerCase();if(T9.has(i))return e[T9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(M9)}}):oo,ey=(...e)=>{e=me(e,"cmyk");const[n,i,a,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),a>=1?0:255*(1-a)*(1-s),l]},{max:I9}=Math,ty=(...e)=>{let[n,i,a]=me(e,"rgb");n=n/255,i=i/255,a=a/255;const s=1-I9(n,I9(i,a)),l=s<1?1/(1-s):0,u=(1-n-s)*l,f=(1-i-s)*l,d=(1-a-s)*l;return[u,f,d,s]};Y.prototype.cmyk=function(){return ty(this._rgb)},Object.assign(he,{cmyk:(...e)=>new Y(...e,"cmyk")}),ge.format.cmyk=ey,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),be(e)==="array"&&e.length===4)return"cmyk"}});const ny=(...e)=>{const n=me(e,"hsla");let i=Dr(e)||"lsa";return n[0]=jt(n[0]||0)+"deg",n[1]=jt(n[1]*100)+"%",n[2]=jt(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},ry=(...e)=>{const n=me(e,"lab");let i=Dr(e)||"lab";return n[0]=jt(n[0])+"%",n[1]=jt(n[1]),n[2]=jt(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},iy=(...e)=>{const n=me(e,"lch");let i=Dr(e)||"lab";return n[0]=jt(n[0])+"%",n[1]=jt(n[1]),n[2]=isNaN(n[2])?"none":jt(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},oy=(...e)=>{const n=me(e,"lab");return n[0]=jt(n[0]*100)+"%",n[1]=U0(n[1]),n[2]=U0(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},O9=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,u,f]=to(n,i,a),[d,g,_]=d9(l,u,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},ay=(...e)=>{const n=me(e,"lch");return n[0]=jt(n[0]*100)+"%",n[1]=U0(n[1]),n[2]=isNaN(n[2])?"none":jt(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:ao}=Math,sy=(...e)=>{const n=me(e,"rgba");let i=Dr(e)||"rgb";if(i.substr(0,3)==="hsl")return ny(g9(n),i);if(i.substr(0,3)==="lab"){const a=p1();Fn("d50");const s=ry(G0(n),i);return Fn(a),s}if(i.substr(0,3)==="lch"){const a=p1();Fn("d50");const s=iy(q0(n),i);return Fn(a),s}return i.substr(0,5)==="oklab"?oy(to(n)):i.substr(0,5)==="oklch"?ay(O9(n)):(n[0]=ao(n[0]),n[1]=ao(n[1]),n[2]=ao(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},P9=(...e)=>{e=me(e,"lch");const[n,i,a,...s]=e,[l,u,f]=f9(n,i,a),[d,g,_]=eo(l,u,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Nn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,pn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,gi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,qt=/\s*/.source,Wr=/\s+/.source,so=/\s*,\s*/.source,pi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Kr=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,E9=new RegExp("^rgba?\\("+qt+[Nn,Nn,Nn].join(Wr)+Kr+"\\)$"),D9=new RegExp("^rgb\\("+qt+[Nn,Nn,Nn].join(so)+qt+"\\)$"),R9=new RegExp("^rgba\\("+qt+[Nn,Nn,Nn,pn].join(so)+qt+"\\)$"),B9=new RegExp("^hsla?\\("+qt+[pi,gi,gi].join(Wr)+Kr+"\\)$"),F9=new RegExp("^hsl?\\("+qt+[pi,gi,gi].join(so)+qt+"\\)$"),z9=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,N9=new RegExp("^lab\\("+qt+[pn,pn,pn].join(Wr)+Kr+"\\)$"),W9=new RegExp("^lch\\("+qt+[pn,pn,pi].join(Wr)+Kr+"\\)$"),K9=new RegExp("^oklab\\("+qt+[pn,pn,pn].join(Wr)+Kr+"\\)$"),U9=new RegExp("^oklch\\("+qt+[pn,pn,pi].join(Wr)+Kr+"\\)$"),{round:Z9}=Math,Ur=e=>e.map((n,i)=>i<=2?fr(Z9(n),0,255):n),ct=(e,n=0,i=100,a=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,a?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),kt=(e,n)=>e==="none"?n:e,lo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(ge.format.named)try{return ge.format.named(e)}catch{}if((n=e.match(E9))||(n=e.match(D9))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+ct(kt(i[s],0),0,255);i=Ur(i);const a=n[4]!==void 0?+ct(n[4],0,1):1;return i[3]=a,i}if(n=e.match(R9)){const i=n.slice(1,5);for(let a=0;a<4;a++)i[a]=+ct(i[a],0,255);return i}if((n=e.match(B9))||(n=e.match(F9))){const i=n.slice(1,4);i[0]=+kt(i[0].replace("deg",""),0),i[1]=+ct(kt(i[1],0),0,100)*.01,i[2]=+ct(kt(i[2],0),0,100)*.01;const a=Ur(J0(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return a[3]=s,a}if(n=e.match(z9)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const a=J0(i);for(let s=0;s<3;s++)a[s]=Z9(a[s]);return a[3]=+n[4],a}if(n=e.match(N9)){const i=n.slice(1,4);i[0]=ct(kt(i[0],0),0,100),i[1]=ct(kt(i[1],0),-125,125,!0),i[2]=ct(kt(i[2],0),-125,125,!0);const a=p1();Fn("d50");const s=Ur(H0(i));Fn(a);const l=n[4]!==void 0?+ct(n[4],0,1):1;return s[3]=l,s}if(n=e.match(W9)){const i=n.slice(1,4);i[0]=ct(i[0],0,100),i[1]=ct(kt(i[1],0),0,150,!1),i[2]=+kt(i[2].replace("deg",""),0);const a=p1();Fn("d50");const s=Ur(j0(i));Fn(a);const l=n[4]!==void 0?+ct(n[4],0,1):1;return s[3]=l,s}if(n=e.match(K9)){const i=n.slice(1,4);i[0]=ct(kt(i[0],0),0,1),i[1]=ct(kt(i[1],0),-.4,.4,!0),i[2]=ct(kt(i[2],0),-.4,.4,!0);const a=Ur(eo(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return a[3]=s,a}if(n=e.match(U9)){const i=n.slice(1,4);i[0]=ct(kt(i[0],0),0,1),i[1]=ct(kt(i[1],0),0,.4,!1),i[2]=+kt(i[2].replace("deg",""),0);const a=Ur(P9(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return a[3]=s,a}};lo.test=e=>E9.test(e)||B9.test(e)||N9.test(e)||W9.test(e)||K9.test(e)||U9.test(e)||D9.test(e)||R9.test(e)||F9.test(e)||z9.test(e)||e==="transparent",Y.prototype.css=function(e){return sy(this._rgb,e)};const ly=(...e)=>new Y(...e,"css");he.css=ly,ge.format.css=lo,ge.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&be(e)==="string"&&lo.test(e))return"css"}}),ge.format.gl=(...e)=>{const n=me(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const cy=(...e)=>new Y(...e,"gl");he.gl=cy,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 l9(this._rgb,e)};const uy=(...e)=>new Y(...e,"hex");he.hex=uy,ge.format.hex=s9,ge.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&be(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:mi}=Math,H9=e=>{const n=e/100;let i,a,s;return n<66?(i=255,a=n<6?0:-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*mi(a),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*mi(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*mi(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*mi(a),s=255),[i,a,s,1]},{round:fy}=Math,dy=(...e)=>{const n=me(e,"rgb"),i=n[0],a=n[2];let s=1e3,l=4e4;const u=.4;let f;for(;l-s>u;){f=(l+s)*.5;const d=H9(f);d[2]/d[0]>=a/i?l=f:s=f}return fy(f)};Y.prototype.temp=Y.prototype.kelvin=Y.prototype.temperature=function(){return dy(this._rgb)};const co=(...e)=>new Y(...e,"temp");Object.assign(he,{temp:co,kelvin:co,temperature:co}),ge.format.temp=ge.format.kelvin=ge.format.temperature=H9,Y.prototype.oklch=function(){return O9(this._rgb)},Object.assign(he,{oklch:(...e)=>new Y(...e,"oklch")}),ge.format.oklch=P9,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),be(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(he,{analyze:v9,average:mm,bezier:xm,blend:gn,brewer:Jm,Color:Y,colors:Rr,contrast:Km,contrastAPCA:Hm,cubehelix:Em,deltaE:Qm,distance:jm,input:ge,interpolate:Br,limits:b9,mix:Br,random:Fm,scale:fi,scales:Xm,valid:qm});var hy=N("<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"),gy=N("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),py=N("<div class=each_line>"),my=N("<div>"),yy=N("<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)>+"),_y=N('<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 vy=e=>{const n=String(e.value).includes("rgba")?he(String(e.value)).alpha()*100:100,[i,a]=V(!1),[s,l]=V(n),[u,f]=V(e.value),[d,g]=V(e.value),[_,y]=V(!1),[b,M]=V(!1),[w,x]=V(e.value??"#000000"),[$,S]=V(0),[I,D]=V(1),[R,H]=V(.5),[G,U]=V(!1),O=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],W=ae=>{try{return he(ae).hex()}catch{return String(ae||"#000000")}},Q=ae=>{const ne=W(ae),[ue,Me,it]=he(ne).hsl();S(Number.isFinite(ue)?Math.round(ue):0),D(Number.isFinite(Me)?Me:1),H(Number.isFinite(it)?it:.5),x(ne)},X=()=>{a(!1),M(!1)},re=()=>{var ae;f(e.value),g(e.value),(ae=e.onChange)==null||ae.call(e,e.value),X()},J=ae=>{var Me;f(ae);const ne=s()/100,ue=he(ae).alpha(ne).css();g(ue),(e.reactiveChange??!0)&&((Me=e.onChange)==null||Me.call(e,ue))},Pe=()=>{var ue;const ae=s()/100,ne=he(u()).alpha(ae).css();g(ne),(e.reactiveChange??!0)&&((ue=e.onChange)==null||ue.call(e,ne))},et=ae=>{l(ae.target.value),Pe()},pt=()=>{const ae=u()??e.value??"#000000";Q(String(ae)),M(!0),a(!0)},At=ae=>{S(ae);const ne=he.hsl(ae,I(),R()).hex();x(ne)},rt=ae=>{let ne=ae.trim();ne.startsWith("#")||(ne="#"+ne);try{const ue=he(ne).hex(),[Me,it,Xe]=he(ue).hsl();S(Number.isFinite(Me)?Math.round(Me):$()),D(Number.isFinite(it)?it:I()),H(Number.isFinite(Xe)?Xe:R()),x(ue)}catch{x(ae)}},qe=ae=>{var ne,ue;(ue=(ne=ae.target).setPointerCapture)==null||ue.call(ne,ae.pointerId),U(!0),Be(ae)},Le=ae=>{G()&&Be(ae)},He=ae=>{var ne,ue;try{(ue=(ne=ae.target).releasePointerCapture)==null||ue.call(ne,ae.pointerId)}catch{}U(!1)},Be=ae=>{const ue=ae.currentTarget.getBoundingClientRect(),Me=Math.min(Math.max(0,ae.clientX-ue.left),ue.width),it=Math.min(Math.max(0,ae.clientY-ue.top),ue.height),Xe=ue.width?Me/ue.width:0,Mt=ue.height?1-it/ue.height:.5;D(Xe),H(Mt);const Jt=he.hsl($(),Xe,Mt).hex();x(Jt)},tt=()=>{try{const ae=W(w());O[0].unshift(ae),J(ae),M(!1)}catch{}};return[Qe(()=>Qe(()=>!!i())()&&(()=>{var ae=gy();return ae.$$click=()=>{re()},ae})()),(()=>{var ae=hy(),ne=ae.firstChild,ue=ne.nextSibling,Me=ue.firstChild,it=Me.nextSibling,Xe=it.firstChild,Mt=Xe.nextSibling,Jt=Mt.firstChild,mn=it.nextSibling,en=mn.nextSibling,Mn=en.firstChild,ut=Mn.nextSibling;return ne.$$click=Te=>{a(!0)},z(ue,(()=>{var Te=Qe(()=>!b());return()=>Te()&&O.map(wt=>(()=>{var Ge=py();return z(Ge,()=>wt.map(mt=>(()=>{var tn=my();return tn.$$click=E=>{E.preventDefault(),J(mt)},ke(E=>{var j=`each_color ${mt==u()?"selected":""}`,$e=`background-color: ${mt}`;return j!==E.e&&Kt(tn,E.e=j),E.t=je(tn,$e,E.t),E},{e:void 0,t:void 0}),tn})())),Ge})())})(),Me),z(ue,(()=>{var Te=Qe(()=>!b());return()=>Te()&&(()=>{var wt=yy(),Ge=wt.firstChild;return Ge.$$click=mt=>{mt.stopPropagation(),pt()},wt})()})(),Me),z(ue,(()=>{var Te=Qe(()=>!!b());return()=>Te()&&(()=>{var wt=_y(),Ge=wt.firstChild,mt=Ge.firstChild,tn=mt.nextSibling,E=Ge.nextSibling,j=E.firstChild,$e=j.nextSibling,Ce=$e.nextSibling,Ie=Ce.nextSibling,dt=E.nextSibling,yn=dt.firstChild,Dt=yn.nextSibling,Ne=dt.nextSibling,Rt=Ne.firstChild,nn=Rt.nextSibling;return tn.$$input=te=>rt(te.currentTarget.value),E.$$pointerup=te=>He(te),E.$$pointermove=te=>Le(te),E.$$pointerdown=te=>qe(te),yn.$$input=te=>At(Number(te.currentTarget.value)),z(Dt,$),Rt.$$click=()=>M(!1),nn.$$click=tt,ke(te=>{var ft=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${w()}`,Ee=`linear-gradient(to right, hsl(${$()}, 0%, 50%), hsl(${$()}, 100%, 50%))`,yt=`${Math.round(I()*100)}%`,Jn=`${Math.round((1-R())*100)}%`,Yr=w();return te.e=je(mt,ft,te.e),Ee!==te.t&&Lr(j,"background",te.t=Ee),yt!==te.a&&Lr(Ie,"left",te.a=yt),Jn!==te.o&&Lr(Ie,"top",te.o=Jn),Yr!==te.i&&Lr(Ie,"background",te.i=Yr),te},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),ke(()=>tn.value=w()),ke(()=>yn.value=$()),wt})()})(),Me),Xe.addEventListener("blur",()=>{y(!1)}),Xe.addEventListener("focus",()=>{y(!0)}),Xe.$$input=Te=>{Te.preventDefault,et(Te)},z(Mt,s,Jt),Mn.$$click=re,ut.$$click=()=>{var Te;e.reactiveChange===!1&&((Te=e.onChange)==null||Te.call(e,d())),X()},ke(Te=>{var wt=`width: 120px; background-color: ${d()}`,Ge=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,mt=`background-color: ${d()}; border: 1px solid ${u()}`;return Te.e=je(ae,wt,Te.e),Ge!==Te.t&&Kt(ae,Te.t=Ge),Te.a=je(Xe,mt,Te.a),Te},{e:void 0,t:void 0,a:void 0}),ke(()=>Xe.value=s()),ae})()]};Pt(["click","input","pointerdown","pointermove","pointerup"]);var by=N("<div><div></div><div><strong>订单ID:</strong><span></span></div><div><strong>价格:</strong><span></span></div><div><strong>数量:</strong><span></span></div><div><strong>手续费:</strong><span></span></div><div><strong>已实现盈亏:</strong><span></span></div><div><strong>成交时间:</strong><span>");const Zr={display:"flex","justify-content":"space-between",gap:"8px"},Hr={"text-align":"right"},Cy=e=>{const n=()=>e.order.isBuy,u=typeof window<"u"?window.innerWidth:1024,f=typeof window<"u"?window.innerHeight:768,d=typeof e.anchorX=="number"&&typeof e.anchorY=="number",g=d?e.anchorX:u-220-16,_=d?e.anchorY:84,y=u-g-12,b=g-12,M=f-_-12,w=_-12,x=y>=220+12||y>=b,$=M>=196+12||M>=w,S=x?g+12:g-220-12,I=$?_+12:_-196-12,D=Math.min(Math.max(12,S),u-220-12),R=Math.min(Math.max(12,I),f-196-12);return(()=>{var H=by(),G=H.firstChild,U=G.nextSibling,O=U.firstChild,W=O.nextSibling,Q=U.nextSibling,X=Q.firstChild,re=X.nextSibling,J=Q.nextSibling,Pe=J.firstChild,et=Pe.nextSibling,pt=J.nextSibling,At=pt.firstChild,rt=At.nextSibling,qe=pt.nextSibling,Le=qe.firstChild,He=Le.nextSibling,Be=qe.nextSibling,tt=Be.firstChild,ae=tt.nextSibling;return Lr(H,"left",`${D}px`),Lr(H,"top",`${R}px`),z(G,()=>n()?"买入":"卖出"),z(W,()=>String(e.order.orderId??e.order.id??"-")),z(re,()=>String(e.order.price)),z(et,()=>String(e.order.size)),z(rt,()=>String(e.order.fee??"-")),z(He,()=>String(e.order.pnl??"-")),z(ae,()=>e.formattedTime),ke(ne=>{var ue=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,Me=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,it=Zr,Xe=Hr,Mt=Zr,Jt=Hr,mn=Zr,en=Hr,Mn=Zr,ut=Hr,Te=Zr,wt=Hr,Ge=Zr,mt=Hr;return ue!==ne.e&&Kt(H,ne.e=ue),Me!==ne.t&&Kt(G,ne.t=Me),ne.a=je(U,it,ne.a),ne.o=je(W,Xe,ne.o),ne.i=je(Q,Mt,ne.i),ne.n=je(re,Jt,ne.n),ne.s=je(J,mn,ne.s),ne.h=je(et,en,ne.h),ne.r=je(pt,Mn,ne.r),ne.d=je(rt,ut,ne.d),ne.l=je(qe,Te,ne.l),ne.u=je(He,wt,ne.u),ne.c=je(Be,Ge,ne.c),ne.w=je(ae,mt,ne.w),ne},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0}),H})()},Y9={"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:"网格线显示",setting_sidebar_trading:"交易",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",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",setting_sidebar_trading:"Trading",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",restore_default:"Restore Defaults"}};function xy(e,n){Y9[e]=n}const v=(e,n)=>{var i;return((i=Y9[n])==null?void 0:i[e])??e};V(!1),V(!1),V(!1),V(!1),V(!1),V("");const[wy,Ly]=V("");function G9(e){const n=wy();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function $y(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Sy(e){const n=G9(e),i=$y();return!!(n&&i&&(n===i||n.contains(i)))}const[ky,V9]=V(!1),[m1,uo]=V(null),[y1,fo]=V(null);V();const[oe,Ay]=V(null),[Q9,j9]=V(null),[q9,X9]=V([""]),[J9,e5]=V({}),[JO,qn]=V(!1);V("");const[t5,My]=V(!1);V(1),V();const[Ty,yi]=V(null);var Iy=N("<img alt=symbol>"),Oy=N("<div class=symbol><span>"),Py=N('<div class=klinecharts-pro-period-bar><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg><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="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg><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=N("<button type=button>"),Dy=N('<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>'),n5=N("<span>"),Ry=N('<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 By=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,a=()=>{My(Sy(n))},s=l=>{if(l.shiftKey)return;const u=l.currentTarget;if(u.scrollWidth<=u.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=u.clientWidth),f===0)return;const d=u.scrollWidth-u.clientWidth;f>0&&u.scrollLeft>=d-1||f<0&&u.scrollLeft<=0||(l.preventDefault(),u.scrollLeft+=f)};return v0(()=>{document.addEventListener("fullscreenchange",a),document.addEventListener("mozfullscreenchange",a),document.addEventListener("webkitfullscreenchange",a),document.addEventListener("msfullscreenchange",a)}),l1(()=>{document.removeEventListener("fullscreenchange",a),document.removeEventListener("mozfullscreenchange",a),document.removeEventListener("webkitfullscreenchange",a),document.removeEventListener("msfullscreenchange",a)}),(()=>{var l=Py(),u=l.firstChild,f=u.firstChild,d=u.nextSibling,g=d.firstChild,_=g.nextSibling,y=d.nextSibling,b=y.firstChild,M=b.nextSibling,w=y.nextSibling,x=w.nextSibling,$=x.firstChild,S=$.nextSibling,I=x.nextSibling,D=I.firstChild,R=D.nextSibling,H=I.nextSibling;return x0(G=>{const U=n;U&&U.removeEventListener("wheel",s),n=G,G&&G.addEventListener("wheel",s,{passive:!1})},l),$n(f,"click",e.onMenuClick,!0),z(l,Z(Ae,{get when(){return e.symbol},get children(){var G=Oy(),U=G.firstChild;return $n(G,"click",e.onSymbolClick,!0),z(G,Z(Ae,{get when(){return e.symbol.logo},get children(){var O=Iy();return ke(()=>Et(O,"src",e.symbol.logo)),O}}),U),z(U,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),G}}),d),z(l,()=>e.periods.map(G=>(()=>{var U=Ey();return U.$$click=()=>{e.onPeriodChange(G)},z(U,()=>G.text),ke(()=>Kt(U,`item tools period ${i(G)?"selected":""}`)),U})()),d),$n(d,"click",e.onIndicatorClick,!0),z(_,()=>v("indicator",e.locale)),$n(y,"click",e.onTimezoneClick,!0),z(M,()=>v("timezone",e.locale)),$n(w,"click",e.onWarningClick,!0),$n(x,"click",e.onSettingClick,!0),z(S,()=>v("setting",e.locale)),$n(I,"click",e.onScreenshotClick,!0),z(R,()=>v("screenshot",e.locale)),H.$$click=()=>{if(t5())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const G=G9(n);G&&(G.requestFullscreen??G.webkitRequestFullscreen??G.mozRequestFullScreen??G.msRequestFullscreen).call(G)}},z(H,(()=>{var G=Qe(()=>!!t5());return()=>G()?[Dy(),(()=>{var U=n5();return z(U,()=>v("exit_full_screen",e.locale)),U})()]:[Ry(),(()=>{var U=n5();return z(U,()=>v("full_screen",e.locale)),U})()]})()),ke(()=>Et(f,"class",e.spread?"":"rotate")),l})()};Pt(["click"]);var Fy=N('<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=()=>Fy();var Ny=N('<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=()=>Ny();var Ky=N('<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 Zy=N('<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 Hy=()=>Zy();var Yy=N('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z stroke-opacity=0 stroke=none>');const Gy=()=>Yy();var Vy=N('<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=()=>Vy();var jy=N('<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 qy=()=>jy();var Xy=N('<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 Jy=()=>Xy();var e_=N('<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 t_=()=>e_();var n_=N('<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 r_=()=>n_();var i_=N('<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 o_=()=>i_();var a_=N('<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 s_=()=>a_();var l_=N('<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 c_=()=>l_();var u_=N('<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 f_=()=>u_();var d_=N('<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 h_=()=>d_();var g_=N('<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 p_=()=>g_();var m_=N('<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 y_=()=>m_();var __=N('<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_=()=>__();var b_=N('<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 C_=()=>b_();var x_=N('<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 w_=()=>x_();var L_=N('<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 $_=()=>L_();var S_=N('<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 k_=()=>S_();var A_=N('<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 M_=()=>A_();var T_=N('<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 I_=()=>T_();var O_=N('<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 P_=()=>O_();var E_=N('<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 D_=()=>E_();var R_=N('<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 B_=()=>R_();var F_=N('<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 z_=()=>F_();var N_=N('<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 W_=()=>N_();var K_=N('<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 U_=()=>K_();var Z_=N('<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 H_=e=>(()=>{var n=Z_();return Et(n,"class",`icon-overlay ${e??""}`),n})();var Y_=N('<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 G_=e=>(()=>{var n=Y_();return Et(n,"class",`icon-overlay ${e??""}`),n})();var V_=N('<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 Q_=()=>V_();var j_=N('<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 q_=()=>j_();var X_=N('<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 J_=()=>X_();var ev=N('<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 tv=()=>ev();var nv=N('<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 rv=()=>nv();var iv=N('<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={horizontalStraightLine:zy,horizontalRayLine:Wy,horizontalSegment:Uy,verticalStraightLine:Hy,verticalRayLine:Gy,verticalSegment:Qy,straightLine:qy,rayLine:Jy,segment:t_,arrow:r_,priceLine:o_,priceChannelLine:s_,parallelStraightLine:c_,fibonacciLine:f_,fibonacciSegment:h_,fibonacciCircle:p_,fibonacciSpiral:y_,fibonacciSpeedResistanceFan:v_,fibonacciExtension:C_,gannBox:w_,circle:$_,triangle:k_,rect:M_,parallelogram:I_,threeWaves:P_,fiveWaves:D_,eightWaves:B_,anyWaves:z_,abcd:W_,xabcd:U_,weak_magnet:H_,strong_magnet:G_,lock:J_,unlock:tv,visible:Q_,invisible:q_,remove:rv,brush:()=>iv()};function av(e){return[{key:"horizontalStraightLine",text:v("horizontal_straight_line",e)},{key:"horizontalRayLine",text:v("horizontal_ray_line",e)},{key:"horizontalSegment",text:v("horizontal_segment",e)},{key:"verticalStraightLine",text:v("vertical_straight_line",e)},{key:"verticalRayLine",text:v("vertical_ray_line",e)},{key:"verticalSegment",text:v("vertical_segment",e)},{key:"straightLine",text:v("straight_line",e)},{key:"rayLine",text:v("ray_line",e)},{key:"segment",text:v("segment",e)},{key:"arrow",text:v("arrow",e)},{key:"brush",text:v("brush",e)},{key:"priceLine",text:v("price_line",e)}]}function sv(e){return[{key:"priceChannelLine",text:v("price_channel_line",e)},{key:"parallelStraightLine",text:v("parallel_straight_line",e)}]}function lv(e){return[{key:"circle",text:v("circle",e)},{key:"rect",text:v("rect",e)},{key:"parallelogram",text:v("parallelogram",e)},{key:"triangle",text:v("triangle",e)}]}function cv(e){return[{key:"fibonacciLine",text:v("fibonacci_line",e)},{key:"fibonacciSegment",text:v("fibonacci_segment",e)},{key:"fibonacciCircle",text:v("fibonacci_circle",e)},{key:"fibonacciSpiral",text:v("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:v("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:v("fibonacci_extension",e)},{key:"gannBox",text:v("gann_box",e)}]}function uv(e){return[{key:"xabcd",text:v("xabcd",e)},{key:"abcd",text:v("abcd",e)},{key:"threeWaves",text:v("three_waves",e)},{key:"fiveWaves",text:v("five_waves",e)},{key:"eightWaves",text:v("eight_waves",e)},{key:"anyWaves",text:v("any_waves",e)}]}function fv(e){return[{key:"weak_magnet",text:v("weak_magnet",e)},{key:"strong_magnet",text:v("strong_magnet",e)}]}const Xt=e=>ov[e.name](e.class);var dv=N('<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>'),hv=N('<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>'),r5=N("<li><span style=padding-left:8px>");const i5="drawing_tools",gv=e=>{const[n,i]=V("horizontalStraightLine"),[a,s]=V("priceChannelLine"),[l,u]=V("circle"),[f,d]=V("fibonacciLine"),[g,_]=V("xabcd"),[y,b]=V("weak_magnet"),[M,w]=V("normal"),[x,$]=V(!1),[S,I]=V(!0),[D,R]=V(""),H=dn(()=>[{key:"singleLine",icon:n(),list:av(e.locale),setter:i},{key:"moreLine",icon:a(),list:sv(e.locale),setter:s},{key:"polygon",icon:l(),list:lv(e.locale),setter:u},{key:"fibonacci",icon:f(),list:cv(e.locale),setter:d},{key:"wave",icon:g(),list:uv(e.locale),setter:_}]),G=dn(()=>fv(e.locale));return(()=>{var U=dv(),O=U.firstChild,W=O.nextSibling,Q=W.firstChild,X=Q.nextSibling,re=X.firstChild,J=W.nextSibling,Pe=J.firstChild,et=J.nextSibling,pt=et.firstChild,At=et.nextSibling,rt=At.nextSibling,qe=rt.firstChild;return z(U,()=>H().map(Le=>(()=>{var He=hv(),Be=He.firstChild,tt=Be.nextSibling,ae=tt.firstChild;return He.addEventListener("blur",()=>{R("")}),Be.$$click=()=>{e.onDrawingItemClick({groupId:i5,name:Le.icon,visible:S(),lock:x(),mode:M()})},z(Be,Z(Xt,{get name(){return Le.icon}})),tt.$$click=()=>{Le.key===D()?R(""):R(Le.key)},z(He,(()=>{var ne=Qe(()=>Le.key===D());return()=>ne()&&Z(ai,{class:"list",get children(){return Le.list.map(ue=>(()=>{var Me=r5(),it=Me.firstChild;return Me.$$click=()=>{Le.setter(ue.key),e.onDrawingItemClick({name:ue.key,lock:x(),mode:M()}),R("")},z(Me,Z(Xt,{get name(){return ue.key}}),it),z(it,()=>ue.text),Me})())}})})(),null),ke(()=>Et(ae,"class",Le.key===D()?"rotate":"")),He})()),O),W.addEventListener("blur",()=>{R("")}),Q.$$click=()=>{let Le=y();M()!=="normal"&&(Le="normal"),w(Le),e.onModeChange(Le)},z(Q,(()=>{var Le=Qe(()=>y()==="weak_magnet");return()=>Le()?Qe(()=>M()==="weak_magnet")()?Z(Xt,{name:"weak_magnet",class:"selected"}):Z(Xt,{name:"weak_magnet"}):Qe(()=>M()==="strong_magnet")()?Z(Xt,{name:"strong_magnet",class:"selected"}):Z(Xt,{name:"strong_magnet"})})()),X.$$click=()=>{D()==="mode"?R(""):R("mode")},z(W,(()=>{var Le=Qe(()=>D()==="mode");return()=>Le()&&Z(ai,{class:"list",get children(){return G().map(He=>(()=>{var Be=r5(),tt=Be.firstChild;return Be.$$click=()=>{b(He.key),w(He.key),e.onModeChange(He.key),R("")},z(Be,Z(Xt,{get name(){return He.key}}),tt),z(tt,()=>He.text),Be})())}})})(),null),Pe.$$click=()=>{const Le=!x();$(Le),e.onLockChange(Le)},z(Pe,(()=>{var Le=Qe(()=>!!x());return()=>Le()?Z(Xt,{name:"lock"}):Z(Xt,{name:"unlock"})})()),pt.$$click=()=>{const Le=!S();I(Le),e.onVisibleChange(Le)},z(pt,(()=>{var Le=Qe(()=>!!S());return()=>Le()?Z(Xt,{name:"visible"}):Z(Xt,{name:"invisible"})})()),qe.$$click=()=>{e.onRemoveClick(i5)},z(qe,Z(Xt,{name:"remove"})),ke(()=>Et(re,"class",D()==="mode"?"rotate":"")),U})()};Pt(["click"]);var o5=N("<li class=title>"),pv=N('<div style="padding:0 20px">'),a5=N("<li class=row>");const mv=e=>Z(kn,{get title(){return v("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=pv();return z(n,Z(ai,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=o5();return z(i,()=>v("main_indicator",e.locale)),i})(),Qe(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const a=e.mainIndicators.includes(i);return(()=>{var s=a5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!a})},z(s,Z(Js,{checked:a,get label(){return v(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=o5();return z(i,()=>v("sub_indicator",e.locale)),i})(),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(i=>{const a=i in e.subIndicators;return(()=>{var s=a5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!a})},z(s,Z(Js,{checked:a,get label(){return v(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Pt(["click"]);function s5(e,n){switch(e){case"Etc/UTC":return v("utc",n);case"Pacific/Honolulu":return v("honolulu",n);case"America/Juneau":return v("juneau",n);case"America/Los_Angeles":return v("los_angeles",n);case"America/Chicago":return v("chicago",n);case"America/Toronto":return v("toronto",n);case"America/Sao_Paulo":return v("sao_paulo",n);case"Europe/London":return v("london",n);case"Europe/Berlin":return v("berlin",n);case"Asia/Bahrain":return v("bahrain",n);case"Asia/Dubai":return v("dubai",n);case"Asia/Ashkhabad":return v("ashkhabad",n);case"Asia/Almaty":return v("almaty",n);case"Asia/Bangkok":return v("bangkok",n);case"Asia/Shanghai":return v("shanghai",n);case"Asia/Tokyo":return v("tokyo",n);case"Australia/Sydney":return v("sydney",n);case"Pacific/Norfolk":return v("norfolk",n)}return e}function yv(e){return[{key:"Etc/UTC",text:v("utc",e)},{key:"Pacific/Honolulu",text:v("honolulu",e)},{key:"America/Juneau",text:v("juneau",e)},{key:"America/Los_Angeles",text:v("los_angeles",e)},{key:"America/Chicago",text:v("chicago",e)},{key:"America/Toronto",text:v("toronto",e)},{key:"America/Sao_Paulo",text:v("sao_paulo",e)},{key:"Europe/London",text:v("london",e)},{key:"Europe/Berlin",text:v("berlin",e)},{key:"Asia/Bahrain",text:v("bahrain",e)},{key:"Asia/Dubai",text:v("dubai",e)},{key:"Asia/Ashkhabad",text:v("ashkhabad",e)},{key:"Asia/Almaty",text:v("almaty",e)},{key:"Asia/Bangkok",text:v("bangkok",e)},{key:"Asia/Shanghai",text:v("shanghai",e)},{key:"Asia/Tokyo",text:v("tokyo",e)},{key:"Australia/Sydney",text:v("sydney",e)},{key:"Pacific/Norfolk",text:v("norfolk",e)}]}var _v=N('<div style="padding:20px 20px 0 20px">');const vv=e=>{const[n,i]=V(e.timezone),a=dn(()=>yv(e.locale));return Z(kn,{get title(){return v("timezone",e.locale)},width:320,get buttons(){return[{children:v("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=_v();return z(s,Z(h1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return a()}})),s}})},dr=e=>{const n=[{key:"solid",text:v("solid",e)},{key:"dashed",text:v("dashed",e)}],i=[{key:[4,4]}],a=[{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:v("fill",e)},{key:"stroke",text:v("stroke",e)},{key:"stroke_fill",text:v("stroke_fill",e)}],u=[{key:"none",text:v("none",e)},{key:"always",text:v("always",e)},{key:"follow_cross",text:v("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],d=[{key:"normal",text:v("Normal",e)}],g=[{key:"Helvetica Neue",text:v("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:u,true_false:a}},bv=e=>{const{font_family:n,font_size:i,font_weight:a,size:s,solid_dashed:l,fill_stroke:u,none_always_followCross:f}=dr(e);return[{key:"candle.type",text:v("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:v("candle_solid",e)},{key:"candle_stroke",text:v("candle_stroke",e)},{key:"candle_up_stroke",text:v("candle_up_stroke",e)},{key:"candle_down_stroke",text:v("candle_down_stroke",e)},{key:"ohlc",text:v("ohlc",e)},{key:"area",text:v("area",e)},{key:"heikin_ashi",text:v("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:v("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:v("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:v("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:v("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:v("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:v("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:v("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:v("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:v("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:v("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:v("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:v("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:v("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:v("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:v("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:v("Pricemark High Font Weight",e),component:"select",dataSource:a},{key:"candle.priceMark.low.show",text:v("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:v("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:v("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:v("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:v("Pricemark Low Font Weight",e),component:"select",dataSource:a},{key:"candle.priceMark.last.show",text:v("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:v("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:v("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:v("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:v("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:v("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:v("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:v("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:v("Pricemark last text style",e),component:"select",dataSource:u},{key:"candle.priceMark.last.text.size",text:v("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:v("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:v("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:v("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:v("Rect",e)},{key:"standard",text:v("Standard",e)}]},{key:"candle.tooltip.rect.position",text:v("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:v("Fixed",e)},{key:"pointer",text:v("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:v("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:v("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:v("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:v("Tooltip text weight",e),component:"select",dataSource:a},{key:"candle.tooltip.text.color",text:v("Tooltip text color",e),component:"color"}]},Cv=e=>{const{fill_stroke:n,font_size:i,font_weight:a,none_always_followCross:s}=dr(e);return[{key:"indicator.ohlc.upColor",text:v("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:v("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:v("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:v("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:v("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:v("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:v("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:v("Last value mark text Weight",e),component:"select",dataSource:a},{key:"indicator.lastValueMark.text.color",text:v("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:v("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:v("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:v("Standard",e)},{key:"rect",text:v("Rect",e)}]},{key:"indicator.tooltip.showName",text:v("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:v("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:v("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:v("Tooltip text Weight",e),component:"select",dataSource:a},{key:"indicator.tooltip.text.color",text:v("Tooltip text color",e),component:"color"}]},xv=e=>{const{font_size:n,size:i,font_weight:a}=dr(e);return[{key:"xAxis.show",text:v("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:v("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:v("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:v("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:v("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:v("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:v("Tick text Weight",e),component:"select",dataSource:a},{key:"xAxis.tickText.color",text:v("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:v("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:v("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:v("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:v("Tick line color",e),component:"color"}]},wv=e=>{const{size:n,font_weight:i,font_size:a}=dr(e);return[{key:"yAxis.show",text:v("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:v("Position",e),component:"select",dataSource:[{key:"right",text:v("Right",e)},{key:"left",text:v("Left",e)}]},{key:"yAxis.type",text:v("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:v("normal",e)},{key:"percentage",text:v("percentage",e)},{key:"log",text:v("log",e)}]},{key:"yAxis.inside",text:v("Inside",e),component:"switch"},{key:"yAxis.reverse",text:v("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:v("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:v("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:v("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:v("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:v("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:v("Tick text size",e),component:"select",dataSource:a},{key:"yAxis.tickText.weight",text:v("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:v("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:v("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:v("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:v("Tick line length",e),component:"select",dataSource:n}]},Lv=e=>{const{size:n}=dr(e);return[{key:"grid.show",text:v("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:v("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:v("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:v("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:v("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:v("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:v("Vertical color",e),component:"color"}]},$v=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:a,size:s,font_size:l,font_weight:u}=dr(e);return[{key:"crosshair.show",text:v("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:v("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:v("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:v("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:v("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:v("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:v("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:v("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:v("Horizontal text Style",e),component:"select",dataSource:a},{key:"crosshair.horizontal.text.size",text:v("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:v("Horizontal text weight",e),component:"select",dataSource:u},{key:"crosshair.horizontal.text.color",text:v("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:v("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:v("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:v("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:v("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:v("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:v("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:v("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:v("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:v("Vertical text Style",e),component:"select",dataSource:a},{key:"crosshair.vertical.text.size",text:v("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:v("Vertical text weight",e),component:"select",dataSource:u},{key:"crosshair.vertical.text.color",text:v("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:v("Vertical text background color",e),component:"color"}]};function l5(e){const{size:n}=dr(e);return[...bv(e),...Cv(e),...xv(e),...wv(e),...Lv(e),...$v(e),{key:"separator.size",text:v("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:v("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:v("Background color",e),component:"color"}]}const c5="chartstatedata",_i={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1},u5="trading-display",Sv=2,kv=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Av=d5(),f5=new WeakMap;function d5(){return{tradingConfig:{..._i},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],overlaySignatures:new Map}}function Mv(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function h5(e){return e||(oe()??null)}function Xn(e){const n=h5(e);if(!n)return Av;const i=f5.get(n);if(i)return i;const a=d5();return f5.set(n,a),a}function g5(){try{const e=localStorage.getItem(c5);return e?JSON.parse(e):{}}catch(e){return Mv("Failed to parse chart state storage, using defaults.",e),{}}}function p5(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:_i.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:_i.showHisOrders}}function m5(e){const n=p5(e.tradingDisplay);if(n)return n;const i=p5(e.trading);return i||{..._i}}function y5(e){const n={...e,version:Sv,tradingDisplay:m5(e)};delete n.trading,localStorage.setItem(c5,JSON.stringify(n))}function Tv(e){Xn(e),vi(e)}function vi(e){const n=Xn(e),i=g5();return n.tradingConfig=m5(i),y5(i),{...n.tradingConfig}}function _5(e,n){const i=Xn(n);i.tradingConfig={...e};const a=g5();a.tradingDisplay=i.tradingConfig,y5(a)}function bi(e,n){_5(e,n),hr(n)}function Iv(e,n){const i=Xn(n);i.positionsState=e.slice(),hr(n)}function Ov(e,n){const i=Xn(n);i.liquidationPriceState=e,e!=null&&Number.isFinite(e)&&_5({...i.tradingConfig,showLiquidation:!0},n),hr(n)}function Pv(e,n){const i=Xn(n);i.openOrdersState=e.slice(),hr(n)}function Ev(e,n){const i=Xn(n);i.hisOrdersState=e.slice(),hr(n)}function Dv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,a=e.length-1,s=-1;for(;i<=a;){const l=i+a>>1;e[l].timestamp<=n?(s=l,i=l+1):a=l-1}return s>=0?e[s].timestamp:null}function ho(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ci(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function v5(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function Rv(e,n){if(!((e.getOverlays({id:n.id})??[]).length>0)){const s=e.createOverlay({id:n.id,name:n.name,groupId:u5,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return v5(e,s),s}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),v5(e,n.id),n.id}function Bv(e,n){(e.getOverlays()??[]).filter(a=>!!a.id&&kv.some(s=>a.id.startsWith(s))&&!n.has(a.id)).forEach(a=>e.removeOverlay({id:a.id}))}function Fv(e,n,i){const a=[],s=e.tradingConfig.showPositions,l=e.tradingConfig.showLiquidation,u=e.tradingConfig.showOpenOrders,f=e.tradingConfig.showHisOrders,d=e.positionsState.filter(g=>g.size!==0&&Number.isFinite(g.avgPrice));if(s&&d.forEach((g,_)=>{const b=`trading-pos-${ho(g.id??`idx${_}`)}`,M=[{timestamp:i,value:g.avgPrice}],w={side:g.side,size:g.size,multiplier:g.multiplier??1};a.push({id:b,name:"positionAvgLine",points:M,extendData:w,signature:Ci("positionAvgLine",M,w)})}),l&&d.length>0){const g=e.liquidationPriceState;if(g!=null&&Number.isFinite(g)){const _=[{timestamp:i,value:g}],y={};a.push({id:"trading-liq",name:"liquidationLine",points:_,extendData:y,signature:Ci("liquidationLine",_,y)})}}if(u&&e.openOrdersState.filter(_=>_.orderType!=="market"&&Number.isFinite(_.price)&&_.size!==0&&(_.side==="long"||_.side==="short")&&typeof _.isBuy=="boolean").forEach((_,y)=>{const M=`trading-order-${ho(_.id??`idx${y}`)}`,w=[{timestamp:i,value:_.price}],x={isBuy:_.isBuy,size:_.size};a.push({id:M,name:"pendingOrderLine",points:w,extendData:x,signature:Ci("pendingOrderLine",w,x)})}),f){const g=e.hisOrdersState.filter(b=>Number.isFinite(b.timestamp)&&Number.isFinite(b.price)&&Number.isFinite(b.size)&&b.size!==0&&typeof b.isBuy=="boolean"),_=new Map,y=new Map;n.forEach(b=>y.set(b.timestamp,{high:b.high,low:b.low})),g.forEach((b,M)=>{const w=Dv(n,b.timestamp);if(w==null)return;const x=`${w}_${b.isBuy?"B":"S"}`,$=_.get(x)??0;_.set(x,$+1);const S=y.get(w),D=`trading-his-order-${ho(b.id??String(b.orderId??`idx${M}`))}`,R=[{timestamp:w,value:b.price}],H={...b,stackIndex:$,barHigh:S==null?void 0:S.high,barLow:S==null?void 0:S.low};a.push({id:D,name:"historicalOrderMark",points:R,extendData:H,signature:Ci("historicalOrderMark",R,H)})})}return a}function hr(e){var y;const n=h5(e),i=Xn(n);if(!n)return;const a=n,s=a.getDataList(),l=((y=s.at(-1))==null?void 0:y.timestamp)??Date.now(),u=Fv(i,s,l),f=new Map(u.map(b=>[b.id,b])),d=a.getOverlays({groupId:u5})??[],g=new Set(d.map(b=>b.id).filter(b=>!!b));g.forEach(b=>{f.has(b)||a.removeOverlay({id:b})});const _=new Map;u.forEach(b=>{const M=i.overlaySignatures.get(b.id);if(!g.has(b.id)||M!==b.signature){const x=Rv(a,b);_.set(x,b.signature);return}_.set(b.id,b.signature)}),i.overlaySignatures=_,Bv(a,new Set(_.keys()))}var _1=N("<div class=component><span>"),zv=N("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),Nv=N("<button>");const Wv=e=>{const[n,i]=V(e.currentStyles),[a,s]=V(l5(e.locale)),[l,u]=V("trading"),[f,d]=V(vi());Wt(()=>{s(l5(e.locale))}),Wt(()=>{l()==="trading"&&d(vi())});const g=(b,M)=>{const w=localStorage.getItem("chartstatedata");let x;w?(x=JSON.parse(w),x.styleObj=x.styleObj??{}):x={styleObj:{}};const $=b.key.indexOf(".");$===-1?b.key:b.key.slice(0,$)+""+b.key.slice($),d1(x.styleObj,b.key,M),localStorage.setItem("chartstatedata",JSON.stringify(x)),qn(!0);const S={};d1(S,b.key,M),d1(S,b.key,M);const I=fe.utils.clone(n());d1(I,b.key,M),i(I),s(a().map(D=>({...D}))),e.onChange(S)},_=()=>{const b=localStorage.getItem("chartstatedata");let M;b&&(M=JSON.parse(b),M.styleObj&&(M.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(M))),e.onRestoreDefault(a()),e.onClose()},y=[{text:v("setting_sidebar_trading",e.locale),key:"trading"},{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 Z(kn,{get title(){return v("setting",e.locale)},width:640,height:560,get buttons(){return[{children:v("restore_default",e.locale),onClick:()=>{_()}}]},get onClose(){return e.onClose},get children(){var b=zv(),M=b.firstChild,w=M.nextSibling;return z(M,()=>y.map(x=>(()=>{var $=Nv();return $.$$click=()=>u(x.key),z($,()=>x.text),ke(()=>Kt($,`${l()==x.key?"selected":""}`)),$})())),z(w,Z(Ae,{get when(){return l()==="trading"},get fallback(){return Z(ja,{get each(){return a().filter(x=>x.key.includes(l()))},children:x=>{let $;const S=fe.utils.formatValue(n(),x.key);switch(x.component){case"select":{$=Z(h1,{style:{width:"120px"},get value(){return v(S,e.locale)},get dataSource(){return x.dataSource},onSelected:I=>{const D=I.key;g(x,D)}});break}case"switch":{const I=!!S;$=Z(g1,{open:I,onChange:()=>{g(x,!I)}});break}case"color":{$=Z(vy,{style:{width:"120px"},value:S,reactiveChange:!1,onChange:I=>{g(x,I)}});break}}return(()=>{var I=_1(),D=I.firstChild;return z(D,()=>x.text),z(I,$,null),I})()}})},get children(){return[(()=>{var x=_1(),$=x.firstChild;return z($,()=>v("trading_display_positions",e.locale)),z(x,Z(g1,{get open(){return f().showPositions},onChange:()=>{const S={...f(),showPositions:!f().showPositions};d(S),bi(S)}}),null),x})(),(()=>{var x=_1(),$=x.firstChild;return z($,()=>v("trading_display_liquidation",e.locale)),z(x,Z(g1,{get open(){return f().showLiquidation},onChange:()=>{const S={...f(),showLiquidation:!f().showLiquidation};d(S),bi(S)}}),null),x})(),(()=>{var x=_1(),$=x.firstChild;return z($,()=>v("trading_display_open_orders",e.locale)),z(x,Z(g1,{get open(){return f().showOpenOrders},onChange:()=>{const S={...f(),showOpenOrders:!f().showOpenOrders};d(S),bi(S)}}),null),x})(),(()=>{var x=_1(),$=x.firstChild;return z($,()=>v("trading_display_his_orders",e.locale)),z(x,Z(g1,{get open(){return f().showHisOrders},onChange:()=>{const S={...f(),showHisOrders:!f().showHisOrders};d(S),bi(S)}}),null),x})()]}})),b}})};Pt(["click"]);var Kv=N('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const Uv=e=>Z(kn,{get title(){return v("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:v("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=Kv(),i=n.firstChild;return ke(()=>Et(i,"src",e.url)),n}}),Zv={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 Hv=N("<div class=klinecharts-pro-indicator-setting-modal-content>"),Yv=N("<div class=param-row><span>");const Gv=e=>{const[n,i]=V(fe.utils.clone(e.params.calcParams)),a=s=>Zv[s];return Z(kn,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:v("confirm",e.locale),onClick:()=>{const s=a(e.params.indicatorName),l=[];fe.utils.clone(n()).forEach((u,f)=>{!fe.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=Hv();return z(s,()=>a(e.params.indicatorName).map((l,u)=>(()=>{var f=Yv(),d=f.firstChild;return z(d,()=>v(l.paramNameKey,e.locale)),z(f,Z(n9,{style:{width:"200px"},get value(){return n()[u]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const _=fe.utils.clone(n());_[u]=g,i(_)}}),null),f})())),s}})};var Vv=N('<div style="margin:10px 20px 0 20px">'),Qv=N('<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">'),jv=N("<img alt=symbol>"),qv=N("<li><div><span>");const Xv=e=>{const[n,i]=V(""),[a]=i3(n,e.datafeed.searchSymbols.bind(e.datafeed));return Z(kn,{get title(){return v("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=Vv();return z(s,Z(n9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return v("symbol_code",e.locale)},get suffix(){return Qv()},get value(){return n()},onChange:l=>{const u=`${l}`;i(u)}}),null),z(s,Z(ai,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return a.loading},get dataSource(){return a()??[]},renderItem:l=>(()=>{var u=qv(),f=u.firstChild,d=f.firstChild;return u.$$click=()=>{e.onSymbolSelected(l),e.onClose()},z(f,Z(Ae,{get when(){return l.logo},get children(){var g=jv();return ke(()=>Et(g,"src",l.logo)),g}}),d),z(d,()=>l.shortName??l.ticker,null),z(d,()=>`${l.name?`(${l.name})`:""}`,null),z(u,()=>l.exchange??"",null),ke(()=>Et(d,"title",l.name??"")),u})()}),null),s}})};Pt(["click"]);var Jv=N("<div class=row><span>价格</span><input class=field-input type=number min=0 step=any>"),eb=N("<div class=row><span>分钟"),tb=N("<div class=row><span>百分比</span><input class=field-input type=number min=1 max=100 step=1>"),nb=N("<div class=error-text>"),rb=N("<div class=klinecharts-pro-warning-add-modal><div class=row><span>类型</span></div><div class=row><span>频率</span></div><div class=row><span>备注</span><input class=field-input type=text placeholder=可选>");const b5=[{key:"price_reach",text:"价格达到"},{key:"price_rise_to",text:"价格上涨至"},{key:"price_fall_to",text:"价格下跌至"},{key:"price_rise_pct_over",text:"价格涨幅超过"},{key:"price_fall_pct_over",text:"价格跌幅超过"}],C5=[{key:"repeat",text:"重复提醒"},{key:"once",text:"仅提醒一次"}],x5=[{key:"5m",text:"5分"},{key:"1h",text:"1小时"},{key:"4h",text:"4小时"},{key:"24h",text:"24小时"}],ib=e=>{const[n,i]=V(!1),[a,s]=V(""),[l,u]=V({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=dn(()=>{const g=l().type;return g==="price_reach"||g==="price_rise_to"||g==="price_fall_to"}),d=async()=>{if(n())return;const g=l(),_={type:g.type,frequency:g.frequency,remark:g.remark.trim()||void 0};if(f()){const y=Number(g.price);if(!Number.isFinite(y)||y<=0){s("请输入大于 0 的价格");return}_.price=y}else{const y=Number(g.percent);if(!Number.isInteger(y)||y<1||y>100){s("百分比需为 1-100 的整数");return}_.window=g.window,_.percent=y}s(""),i(!0);try{await e.onSubmit(_),e.onClose()}finally{i(!1)}};return Z(kn,{title:"添加预警",width:360,get buttons(){return[{children:"取消",type:"cancel",onClick:e.onClose},{children:n()?"提交中...":"提交",onClick:d}]},get onClose(){return e.onClose},get children(){var g=rb(),_=g.firstChild;_.firstChild;var y=_.nextSibling;y.firstChild;var b=y.nextSibling,M=b.firstChild,w=M.nextSibling;return z(_,Z(h1,{style:{width:"220px"},get value(){var x;return(x=b5.find($=>$.key===l().type))==null?void 0:x.text},dataSource:b5,onSelected:x=>{const $=x.key;u(S=>({...S,type:$}))}}),null),z(g,Z(Ae,{get when(){return f()},get children(){var x=Jv(),$=x.firstChild,S=$.nextSibling;return S.$$input=I=>{u(D=>({...D,price:I.target.value}))},ke(()=>S.value=l().price),x}}),y),z(g,Z(Ae,{get when(){return!f()},get children(){return[(()=>{var x=eb();return x.firstChild,z(x,Z(h1,{style:{width:"220px"},get value(){var $;return($=x5.find(S=>S.key===l().window))==null?void 0:$.text},dataSource:x5,onSelected:$=>{const S=$.key;u(I=>({...I,window:S}))}}),null),x})(),(()=>{var x=tb(),$=x.firstChild,S=$.nextSibling;return S.$$input=I=>{u(D=>({...D,percent:I.target.value}))},ke(()=>S.value=l().percent),x})()]}}),y),z(y,Z(h1,{style:{width:"220px"},get value(){var x;return(x=C5.find($=>$.key===l().frequency))==null?void 0:x.text},dataSource:C5,onSelected:x=>{const $=x.key;u(S=>({...S,frequency:$}))}}),null),w.$$input=x=>{u($=>({...$,remark:x.target.value}))},z(g,Z(Ae,{get when(){return!!a()},get children(){var x=nb();return z(x,a),x}}),null),ke(()=>w.value=l().remark),g}})};Pt(["input"]);var ob=N("<dt>标的"),xi=N("<dd>"),ab=N("<dt>价格"),sb=N("<dt>时间窗口"),lb=N("<dt>百分比"),cb=N("<dl class=warning-detail-grid><dt>类型</dt><dd></dd><dt>频率</dt><dd></dd><dt>备注</dt><dd>");function ub(e){switch(e){case"price_reach":return"价格达到";case"price_rise_to":return"价格上涨至";case"price_fall_to":return"价格下跌至";case"price_rise_pct_over":return"价格涨幅超过";case"price_fall_pct_over":return"价格跌幅超过"}}function fb(e){return e==="repeat"?"重复提醒":"仅提醒一次"}function db(e){switch(e){case"5m":return"5分";case"1h":return"1小时";case"4h":return"4小时";case"24h":return"24小时";default:return"—"}}const w5=e=>(()=>{var n=cb(),i=n.firstChild,a=i.nextSibling,s=a.nextSibling,l=s.nextSibling,u=l.nextSibling,f=u.nextSibling;return z(n,Z(Ae,{get when(){return!!e.warning.symbol},get children(){return[ob(),(()=>{var d=xi();return z(d,()=>e.warning.symbol),d})()]}}),i),z(a,()=>ub(e.warning.type)),z(n,Z(Ae,{get when(){return Qe(()=>e.warning.price!=null)()&&Number.isFinite(e.warning.price)},get children(){return[ab(),(()=>{var d=xi();return z(d,()=>String(e.warning.price)),d})()]}}),s),z(n,Z(Ae,{get when(){return e.warning.window!=null},get children(){return[sb(),(()=>{var d=xi();return z(d,()=>db(e.warning.window)),d})()]}}),s),z(n,Z(Ae,{get when(){return e.warning.percent!=null},get children(){return[lb(),(()=>{var d=xi();return z(d,()=>`${e.warning.percent}%`),d})()]}}),s),z(l,()=>fb(e.warning.frequency)),z(f,(()=>{var d=Qe(()=>{var g;return!!((g=e.warning.remark)!=null&&g.trim())});return()=>d()?e.warning.remark:"—"})()),n})();var hb=N("<div class=warning-empty>暂无预警"),gb=N("<div class=klinecharts-pro-warning-modal><div class=warning-list><button type=button class=warning-add-btn>添加"),pb=N("<div class=warning-item title=双击查看详情><span class=warning-text></span><button type=button class=warning-delete>删除"),mb=N("<div class=klinecharts-pro-warning-detail>");function yb(e){return e.type==="price_reach"?`价格达到 ${e.price??"--"}`:e.type==="price_rise_to"?`价格上涨至 ${e.price??"--"}`:e.type==="price_fall_to"?`价格下跌至 ${e.price??"--"}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??"--"}%`:`价格${e.window??"5m"}跌幅 ${e.percent??"--"}%`}const _b=e=>{const[n,i]=V(!1),[a,s]=V(null);return Z(kn,{title:"预警",width:480,height:420,get onClose(){return e.onClose},get children(){return[(()=>{var l=gb(),u=l.firstChild,f=u.firstChild;return z(u,Z(ja,{get each(){return e.warnings},children:d=>(()=>{var g=pb(),_=g.firstChild,y=_.nextSibling;return g.$$dblclick=()=>{s(d)},z(_,()=>yb(d)),y.$$dblclick=b=>{b.stopPropagation()},y.$$click=()=>{var b;(b=e.onRemoveWarning)==null||b.call(e,d)},g})()}),f),z(u,Z(Ae,{get when(){return e.warnings.length===0},get children(){return hb()}}),f),f.$$click=()=>{i(!0)},l})(),Z(Ae,{get when(){return n()},get children(){return Z(ib,{onClose:()=>{i(!1)},onSubmit:async l=>{var u;await((u=e.onAddWarning)==null?void 0:u.call(e,l))}})}}),Z(Ae,{get when(){return a()},children:l=>Z(kn,{title:"预警详情",width:400,height:260,onClose:()=>{s(null)},get children(){var u=mb();return z(u,Z(w5,{get warning(){return l()}})),u}})})]}})};Pt(["click","dblclick"]);class go{constructor(n,i){wn(this,"_chart");wn(this,"_charts",new Map);wn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const a=fe.init(n,i);if(!a)throw new Error("Failed to initialize chart");this._chart=a,this.id=a.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(n,i){return new go(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,a){return this._chart.createIndicator(n,i,a)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,a){return this._chart.zoomAtCoordinate(n,i,a)}zoomAtDataIndex(n,i,a){return this._chart.zoomAtDataIndex(n,i,a)}zoomAtTimestamp(n,i,a){return this._chart.zoomAtTimestamp(n,i,a)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,a){return this._chart.getConvertPictureUrl(n,i,a)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const L5={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function vb(e){return{onIndicatorTooltipFeatureClick:l=>{const u=l,f=e.getApi();if(f)switch(u.feature.id){case"visible":f.overrideIndicator({name:u.indicator.name,visible:!0,paneId:u.paneId});break;case"invisible":f.overrideIndicator({name:u.indicator.name,visible:!1,paneId:u.paneId});break;case"setting":{const d=f.getIndicators({paneId:u.paneId,name:u.indicator.name,id:u.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:u.indicator.name,paneId:u.paneId,calcParams:d.calcParams});break}case"close":{if(u.paneId==="candle_pane"){const d=[...e.mainIndicators()];f.removeIndicator({paneId:u.paneId,name:u.indicator.name,id:u.indicator.id}),d.splice(d.indexOf(u.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};f.removeIndicator({paneId:u.paneId,name:u.indicator.name,id:u.indicator.id}),delete d[u.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const u=e.getApi();if(!u)return;const f=[...e.mainIndicators()];l.added?(e.createIndicator(u,l.name,!0,{id:"candle_pane"}),f.push(l.name)):(u.removeIndicator({name:l.name,paneId:"candle_pane",id:l.id??void 0}),f.splice(f.indexOf(l.name),1)),e.setMainIndicators(f)},onSubIndicatorChange:l=>{const u=e.getApi();if(!u)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(u,l.name);d&&(f[l.name]=d)}else l.id&&(u.removeIndicator({name:l.name,id:l.id}),delete f[l.name]);e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{const u=e.getApi();if(!u)return;const f=e.indicatorSettingModalParams();u.overrideIndicator({name:f.indicatorName,calcParams:l,paneId:f.paneId})}}}const bb=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(a=>{delete i[a]}),i},Cb=e=>{const n=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return n.forEach(a=>{delete i[a]}),i},xb=()=>{const e=(w,x,$)=>{const S=localStorage.getItem("chartstatedata");let I;const D=bb(st.cloneDeep(w));return S?(I=JSON.parse(S),I.indicators?I.indicators.find(R=>{var H,G;return((H=R.value)==null?void 0:H.name)===D.name&&((G=R.paneOptions)==null?void 0:G.id)===($==null?void 0:$.id)})?I.indicators=I.indicators.map(R=>{var H;return((H=R.value)==null?void 0:H.id)!==D.id?R:{value:D,isStack:x,paneOptions:$}}):I.indicators.push({value:D,isStack:x,paneOptions:$}):I.indicators=[{value:D,isStack:x,paneOptions:$}]):I={indicators:[{value:D,isStack:x,paneOptions:$}]},localStorage.setItem("chartstatedata",JSON.stringify(I)),qn(!0),!1},n=w=>{const x=localStorage.getItem("chartstatedata");let $;const S=Cb(st.cloneDeep(w));return x?($=JSON.parse(x),$.overlays?$.overlays.find(I=>{var D;return((D=I.value)==null?void 0:D.id)===S.id})?$.overlays=$.overlays.map(I=>{var D;return((D=I.value)==null?void 0:D.id)!==S.id?I:{value:S,paneId:w.paneId}}):$.overlays.push({value:S,paneId:w.paneId}):$.overlays=[{value:w,paneId:w.paneId}]):$={overlays:[{value:S,paneId:w.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify($)),qn(!0),!1};function i(w,x,$,S,I=!1){x==="VOL"&&(S={axis:{gap:{bottom:2}},...S});const D=(S==null?void 0:S.id)==="candle_pane",R=w.createIndicator({name:x,createTooltipDataSource:H=>{const U=H.chart.getStyles().indicator.tooltip.features,O=[];return D&&O.push(H.indicator.visible?U[1]:U[0]),O.push(U[2]),O.push(U[3]),{features:O}}},$,S)??null;if(R&&I){const H=w==null?void 0:w.getIndicators({id:R,name:x})[0];H&&e(H,$,{id:R})}return R}const a=(w,x,$=!1)=>{var R,H,G;const S=(R=oe())==null?void 0:R.createOverlay({...w,paneId:x});if(!S)return!1;const I=(H=oe())==null?void 0:H.getOverlays({id:S})[0],D=U=>(U.preventDefault&&U.preventDefault(),s(U.overlay.id),!0);I&&(w.properties&&I.setProperties(w.properties,S),(G=oe())==null||G.overrideOverlay({id:I.id,onDrawEnd:U=>["measure"].includes(I.name)?!1:n(U.overlay),onPressedMoveEnd:U=>["measure"].includes(I.name)?!1:n(U.overlay),onSelected:U=>yi(U.overlay),onDeselected:()=>yi(null),onRightClick:I.onRightClick?I.onRightClick:D,onDoubleClick:I.onDoubleClick?I.onDoubleClick:D}),$||n(I))},s=w=>{var $,S,I;const x=localStorage.getItem("chartstatedata");if(x){let D=JSON.parse(x);D.overlays=($=D.overlays)==null?void 0:$.filter(R=>{var H;return((H=R.value)==null?void 0:H.id)!==w}),localStorage.setItem("chartstatedata",JSON.stringify(D)),qn(!0)}(S=oe())==null||S.removeOverlay({id:w}),((I=Ty())==null?void 0:I.id)===w&&yi(null)},l=(w,x)=>{var S,I;const $=localStorage.getItem("chartstatedata");if($){let D=JSON.parse($);D.overlays=(S=D.overlays)==null?void 0:S.map(R=>{var H;return((H=R.value)==null?void 0:H.id)===w&&(R.value={...R.value,...x},R.paneId=x.paneId??R.paneId),R}),localStorage.setItem("chartstatedata",JSON.stringify(D)),qn(!0),(I=oe())==null||I.overrideOverlay({...x,id:w})}},u=(w,x)=>{var S,I;const $=localStorage.getItem("chartstatedata");if($){let D=JSON.parse($);D.overlays=(S=D.overlays)==null?void 0:S.map(H=>{var G;return((G=H.value)==null?void 0:G.id)===w&&(H.value.properties={...H.value.properties,...x}),H});const R=(I=oe())==null?void 0:I.getOverlayById(w);R&&R.setProperties(x,w),localStorage.setItem("chartstatedata",JSON.stringify(D)),qn(!0)}},f=w=>{const x=[...q9()];w.added?(i(oe(),w.name,!0,{id:"candle_pane"},!0),x.push(w.name)):(_(w.name,"candle_pane"),x.splice(x.indexOf(w.name),1)),X9(x)},d=w=>{const x={...J9()};if(w.added){const $=i(oe(),w.name,!1,void 0,!0);$&&(x[w.name]=$)}else w.paneId&&(_(w.name,w.paneId),delete x[w.name]);e5(x)},g=(w,x)=>{var S,I;const $=localStorage.getItem("chartstatedata");if($){let D=JSON.parse($);D.indicators=(S=D.indicators)==null?void 0:S.map(R=>{var H;return((H=R.value)==null?void 0:H.name)===w.indicatorName&&(R.value.name=w.indicatorName,R.value.calcParams=x,R.paneOptions.id=w.paneId),R}),localStorage.setItem("chartstatedata",JSON.stringify(D)),qn(!0),(I=oe())==null||I.overrideIndicator({name:w.indicatorName,calcParams:x,paneId:w.paneId})}},_=(w,x,$)=>{var I,D;const S=localStorage.getItem("chartstatedata");if((I=oe())==null||I.removeIndicator({id:w,paneId:$,name:x}),S){let R=JSON.parse(S);R.indicators=(D=R.indicators)==null?void 0:D.filter(H=>{var G,U;return((G=H.paneOptions)==null?void 0:G.id)!==$&&((U=H.value)==null?void 0:U.name)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(R)),qn(!0)}},y=(w,x)=>{document.documentElement.style.setProperty(w,x,"important");const $=document.querySelector("[data-theme]");$&&$.style.setProperty(w,x,"important")},b=w=>{var x;w.background&&y("--klinecharts-pro-pane-background",w.background),w.backgroundGradientStartColor&&y("--klinecharts-pro-pane-background-gradient-start",w.backgroundGradientStartColor),w.backgroundGradientEndColor&&y("--klinecharts-pro-pane-background-gradient-end",w.backgroundGradientEndColor),(x=w.separator)!=null&&x.color&&y("--klinecharts-pro-border-color",w.separator.color)};return{createIndicator:i,modifyIndicator:g,popIndicator:_,syncIndiObject:e,syncObject:n,pushOverlay:a,modifyOverlay:l,modifyOverlayProperties:u,popOverlay:s,pushMainIndicator:f,pushSubIndicator:d,restoreChartState:async w=>{const x=I=>{const D=JSON.parse(I);D.figures,D.overlays&&D.overlays.forEach(R=>{a(R.value,R.paneId,!0)}),D.indicators&&setTimeout(()=>{const R=[...q9()],H={...J9};D.indicators.forEach(G=>{var U,O,W;G.value&&((U=oe())==null||U.createIndicator(G.value,G.isStack,G.paneOptions),((O=G.paneOptions)==null?void 0:O.id)==="candle_pane"?R.push(G.value.name):H[G.value.name]=(W=G.paneOptions)==null?void 0:W.id)}),X9(R),e5(H)},500)},$=localStorage.getItem("chartstatedata");$&&x($);const S=JSON.parse($)??{};w&&(b(w),S.styleObj||(S.styleObj=w,localStorage.setItem("chartstatedata",JSON.stringify(S)))),S.styleObj&&j9(S.styleObj)}}};function wb(e,n){let i=null;const a=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:l=>{const f=l.detail;if(!!(f!=null&&f.visible)){a(),n({visible:!0,order:(f==null?void 0:f.order)??null,x:(f==null?void 0:f.anchorX)??null,y:(f==null?void 0:f.anchorY)??null});return}a(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:a}}function Lb(e,n){const i=[];let a=0;const s=()=>{for(;i.length>0;){const u=i.pop();u!=null&&globalThis.clearTimeout(u)}};return{schedule:()=>{a+=1;const u=a;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(u!==a)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var $b=N('<i class="icon-close klinecharts-pro-load-icon">'),Sb=N("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),kb=N("<div class=klinecharts-pro-warning-detail>");const{createIndicator:po,pushOverlay:Ab,restoreChartState:Mb}=xb(),Tb=[0,120,360,900],Ib=120,$5="warning_overlays",Ob=["price_reach","price_rise_to","price_fall_to"];function Pb(e){return{indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const Eb=e=>{let n,i;const[a,s]=V(e.theme),[l,u]=V(e.locale),[f,d]=V(!1),[g,_]=V([...e.mainIndicators]),[y,b]=V({}),[M,w]=V(!1),[x,$]=V({key:e.timezone,text:s5(e.timezone,e.locale)}),[S,I]=V(!1),[D,R]=V(!1),[H,G]=V(),[U,O]=V(""),[W,Q]=V(e.drawingBarVisible),[X,re]=V([...e.warnings??[]]),[J,Pe]=V(null),[et,pt]=V(!1),[At,rt]=V(!1),[qe,Le]=V(null),[He,Be]=V({x:null,y:null});let tt=null,ae=!1,ne=null,ue=!1,Me;const[it,Xe]=V(L5),Mt=E=>E.replace(/[^a-zA-Z0-9_-]/g,"_"),Jt=()=>{var Dt;const E=oe(),j=m1();if(!E||!j)return;const $e=((Dt=E.getDataList().at(-1))==null?void 0:Dt.timestamp)??Date.now(),Ie=X().filter(Ne=>!(!Ob.includes(Ne.type)||!Number.isFinite(Ne.price)||Ne.symbol&&Ne.symbol!==j.ticker)),dt=new Set;Ie.forEach((Ne,Rt)=>{const te=`warning-${Mt(Ne.id||`idx_${Rt}`)}`;dt.add(te);const ft=(E.getOverlays({id:te})??[]).length>0,Ee={id:te,name:"priceWarningLine",groupId:$5,paneId:"candle_pane",mode:"normal",points:[{timestamp:$e,value:Ne.price}],extendData:{warning:Ne,showInfo:!1}};ft?E.overrideOverlay({id:te,points:Ee.points,extendData:Ee.extendData}):E.createOverlay(Ee)}),(E.getOverlays({groupId:$5})??[]).forEach(Ne=>{Ne.id&&!dt.has(Ne.id)&&E.removeOverlay({id:Ne.id})})},mn=async E=>{var j;await((j=e.onRemoveWarning)==null?void 0:j.call(e,E))};G6({onRemove:E=>{mn(E)}}),fo(e.period),uo(e.symbol);const en=wb(Ib,E=>{rt(E.visible),Le(E.order),Be({x:E.x,y:E.y})}),Mn=Lb(()=>hr(oe()),Tb),ut=vb({getApi:()=>oe(),mainIndicators:g,setMainIndicators:_,subIndicators:y,setSubIndicators:b,indicatorSettingModalParams:it,setIndicatorSettingModalParams:Xe,createIndicator:po}),Te=E=>{const j=E.detail;j!=null&&j.warning&&Pe(j.warning)},wt=()=>{ae||(ae=!0,en.clear(),Mn.clear(),tt!=null&&(window.cancelAnimationFrame(tt),tt=null),window.removeEventListener(R1,en.onEvent),window.removeEventListener(g0,Te),window.removeEventListener("resize",mt),n&&fe.dispose(n))},Ge={setTheme:s,getTheme:()=>a(),setStyles:j9,getStyles:()=>Q9()??{},setLocale:u,getLocale:()=>l(),setTimezone:E=>{$({key:E,text:s5(e.timezone,l())})},getTimezone:()=>x().key,setSymbol:uo,getSymbol:()=>m1(),setPeriod:fo,getPeriod:()=>y1(),getInstanceApi:()=>oe(),resize:()=>{var E;return(E=oe())==null?void 0:E.resize()},dispose:()=>{wt()},setPositions:E=>{Iv(E,oe())},setLiqPrice:E=>{Ov(E,oe())},setOpenOrders:E=>{Pv(E,oe())},setHisOrders:E=>{Ev(E,oe())},setWarnings:E=>{re([...E]),Jt()}};e.ref(Ge);const mt=()=>{tt==null&&(tt=window.requestAnimationFrame(()=>{var E;tt=null,(E=oe())==null||E.resize()}))},tn=()=>{Mn.schedule()};return v0(()=>{var j,$e,Ce,Ie,dt,yn,Dt,Ne,Rt,nn;if(window.addEventListener(R1,en.onEvent),window.addEventListener(g0,Te),window.addEventListener("resize",mt),Ay(go.init(n,{formatter:{formatDate:te=>{switch(y1().type){case"minute":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"HH:mm"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"hour":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"MM-DD HH:mm"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"month":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"year":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD")}return fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm")}}})),oe()){Ly(e.rootElementId);const te=oe().getDom("candle_pane","main");if(te){let yt=document.createElement("div");if(yt.className="klinecharts-pro-watermark",fe.utils.isString(e.watermark)){const Jn=e.watermark.replace(/(^\s*)|(\s*$)/g,"");yt.innerHTML=Jn}else yt.appendChild(e.watermark);te.appendChild(yt)}const ft=oe().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",ft==null||ft.appendChild(i),(j=oe())==null||j.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),($e=oe())==null||$e.setBarSpace(400),(Ce=oe())==null||Ce.subscribeAction("onCrosshairFeatureClick",yt=>{}),(Ie=oe())==null||Ie.subscribeAction("onIndicatorTooltipFeatureClick",ut.onIndicatorTooltipFeatureClick),(dt=oe())==null||dt.subscribeAction("onCandleTooltipFeatureClick",yt=>{}),(yn=oe())==null||yn.subscribeAction("onZoom",yt=>{}),(Dt=oe())==null||Dt.subscribeAction("onCrosshairChange",yt=>{}),Mb(e.overrides),Tv(oe()),vi(oe()),hr(oe()),Jt();const Ee=m1();Ee!=null&&Ee.priceCurrency?(i.innerHTML=Ee==null?void 0:Ee.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(Ne=oe())==null||Ne.setSymbol({ticker:Ee.ticker,pricePrecision:(Ee==null?void 0:Ee.pricePrecision)??2,volumePrecision:(Ee==null?void 0:Ee.volumePrecision)??0}),(Rt=oe())==null||Rt.setPeriod(y1()),(nn=oe())==null||nn.setDataLoader(e.dataloader)}const E=oe();if(E){g().forEach(ft=>{po(E,ft,!0,{id:"candle_pane"})});const te={};e.subIndicators.forEach(ft=>{const Ee=po(E,ft,!0);Ee&&(te[ft]=Ee)}),b(te)}}),l1(()=>{wt()}),Wt(E=>{var Ne,Rt,nn,te,ft,Ee,yt;const j=m1(),$e=y1(),Ce=oe();if(!j||!$e)return{symbol:j,period:$e};const Ie=E!==void 0&&(E.period.span!==$e.span||E.period.type!==$e.type||E.period.text!==$e.text),dt=E!==void 0&&(((Ne=E.symbol)==null?void 0:Ne.ticker)!==j.ticker||(((Rt=E.symbol)==null?void 0:Rt.pricePrecision)??2)!==(j.pricePrecision??2)||(((nn=E.symbol)==null?void 0:nn.volumePrecision)??0)!==(j.volumePrecision??0)),yn=E!==void 0&&((te=E.symbol)==null?void 0:te.ticker)===j.ticker&&((((ft=E.symbol)==null?void 0:ft.pricePrecision)??2)!==(j.pricePrecision??2)||(((Ee=E.symbol)==null?void 0:Ee.volumePrecision)??0)!==(j.volumePrecision??0));return E!==void 0&&((yt=E.symbol)==null?void 0:yt.ticker)!==j.ticker&&yi(null),Ie&&(Ce==null||Ce.setPeriod($e),tn()),Ie&&!dt||(Ce==null||Ce.setSymbol({...j,pricePrecision:j.pricePrecision??2,volumePrecision:j.volumePrecision??0}),tn(),yn&&(Ce==null||Ce.resize())),Jt(),{symbol:j,period:$e}}),Wt(()=>{const E=oe();if(!E)return;const j=a();E.setStyles(j);const $e=j==="dark"?"#929AA5":"#76808F";ne!==$e&&(ne=$e,E.setStyles(Pb($e)))}),Wt(()=>{var E;(E=oe())==null||E.setLocale(l())}),Wt(()=>{var E;(E=oe())==null||E.setTimezone(x().key)}),Wt(()=>{const E=oe();!E||ue||(G(Vh(E.getStyles())),ue=!0)}),Wt(()=>{const E=oe();if(!E)return;const j=Q9();!j||Me===j||(Me=j,E.setStyles(j))}),Wt(()=>{X(),Jt()}),Wt(()=>{const E=n;if(!E||!S()&&!D()&&!J())return;const j=$e=>{$e.preventDefault(),$e.stopPropagation()};E.addEventListener("wheel",j,{passive:!1}),E.addEventListener("touchmove",j,{passive:!1}),l1(()=>{E.removeEventListener("wheel",j),E.removeEventListener("touchmove",j)})}),[$b(),Z(Ae,{get when(){return et()},get children(){return Z(Xv,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:E=>{uo(E)},onClose:()=>{pt(!1)}})}}),Z(Ae,{get when(){return f()},get children(){return Z(mv,{get locale(){return e.locale},get mainIndicators(){return g()},get subIndicators(){return y()},onClose:()=>{d(!1)},get onMainIndicatorChange(){return ut.onMainIndicatorChange},get onSubIndicatorChange(){return ut.onSubIndicatorChange}})}}),Z(Ae,{get when(){return M()},get children(){return Z(vv,{get locale(){return e.locale},get timezone(){return x()},onClose:()=>{w(!1)},onConfirm:$})}}),Z(Ae,{get when(){return D()},get children(){return Z(_b,{get warnings(){return X()},onClose:()=>{R(!1)},get onAddWarning(){return e.onAddWarning},onRemoveWarning:mn})}}),Z(Ae,{get when(){return J()},children:E=>Z(kn,{title:"预警详情",width:400,height:260,onClose:()=>{Pe(null)},get children(){var j=kb();return z(j,Z(w5,{get warning(){return E()}})),j}})}),Z(Ae,{get when(){return S()},get children(){return Z(Wv,{get locale(){return e.locale},get currentStyles(){return fe.utils.clone(oe().getStyles())},onClose:()=>{I(!1)},onChange:E=>{var j;(j=oe())==null||j.setStyles(E)},onRestoreDefault:E=>{var $e;const j={};E.forEach(Ce=>{const Ie=Ce.key;d1(j,Ie,fe.utils.formatValue(H(),Ie))}),($e=oe())==null||$e.setStyles(j)}})}}),Z(Ae,{get when(){return U().length>0},get children(){return Z(Uv,{get locale(){return e.locale},get url(){return U()},onClose:()=>{O("")}})}}),Z(Ae,{get when(){return it().visible},get children(){return Z(Gv,{get locale(){return e.locale},get params(){return it()},onClose:()=>{Xe(L5)},get onConfirm(){return ut.onIndicatorSettingConfirm}})}}),Z(Ae,{get when(){return Qe(()=>!!At())()&&!!qe()},get children(){return Z(Cy,{get order(){return qe()},get formattedTime(){return x6(qe().timestamp,e.locale,x().key)},get anchorX(){return He().x},get anchorY(){return He().y}})}}),Z(By,{get locale(){return e.locale},get symbol(){return m1()},get spread(){return W()},get period(){return y1()},get periods(){return e.periods},onMenuClick:async()=>{var E;try{await a3(()=>Q(!W())),(E=oe())==null||E.resize()}catch{}},onSymbolClick:()=>{pt(!et())},onPeriodChange:fo,onIndicatorClick:()=>{d(E=>!E)},onTimezoneClick:()=>{w(E=>!E)},onWarningClick:()=>{R(!0)},onSettingClick:()=>{I(E=>!E)},onScreenshotClick:()=>{if(oe()){const E=oe().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");O(E)}}}),(()=>{var E=Sb(),j=E.firstChild;z(E,Z(Ae,{get when(){return ky()},get children(){return Z(e9,{})}}),j),z(E,Z(Ae,{get when(){return W()},get children(){return Z(gv,{get locale(){return e.locale},onDrawingItemClick:Ce=>{Ab(Ce,"candle_pane")},onModeChange:Ce=>{var Ie;(Ie=oe())==null||Ie.overrideOverlay({groupId:"drawing_tools",mode:Ce})},onLockChange:Ce=>{var Ie;(Ie=oe())==null||Ie.overrideOverlay({groupId:"drawing_tools",lock:Ce})},onVisibleChange:Ce=>{var Ie;(Ie=oe())==null||Ie.overrideOverlay({groupId:"drawing_tools",visible:Ce})},onRemoveClick:Ce=>{var Ie;(Ie=oe())==null||Ie.removeOverlay({groupId:Ce})}})}}),j);var $e=n;return typeof $e=="function"?x0($e,j):n=j,ke(Ce=>{var Ie=e.overrides.backgroundType??"solid",dt=W();return Ie!==Ce.e&&Et(j,"data-pane-style",Ce.e=Ie),dt!==Ce.t&&Et(j,"data-drawing-bar-visible",Ce.t=dt),Ce},{e:void 0,t:void 0}),E})()]};class Db{constructor(n){wn(this,"_datafeed");wn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:a,symbol:s,period:l,callback:u}=n,f=l;if(i==="backward"||i==="update"){u([],!1);return}this._loading=!0,V9(!0);const d=a??new Date().getTime();await(async()=>{const[_,y]=this.adjustFromTo(f,d,500),b=await this._datafeed.getHistoryKLineData(s,f,_,y);u(b,b.length>0),this._loading=!1,V9(!1)})()}subscribeBar(n){const{symbol:i,period:a,callback:s}=n;this._datafeed.subscribe(i,a,s)}unsubscribeBar(n){const{symbol:i,period:a}=n;this._datafeed.unsubscribe(i,a)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,a){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-a*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-a*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-a*n.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-a*n.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-a*n.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-a*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var Rb=N('<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 Bb=Rb();class Fb{constructor(n){wn(this,"_container");wn(this,"_chartApi",null);if(fe.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new Db(n.datafeed);y3(()=>{const a=this;return Z(Eb,{ref:s=>{a._chartApi=s},get watermark(){return n.watermark??Bb},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??["MA"]},get subIndicators(){return n.subIndicators??["VOL"]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get warnings(){return n.warnings??[]},get onAddWarning(){return n.onAddWarning??(()=>{})},get onRemoveWarning(){return n.onRemoveWarning??(()=>{})},get rootElementId(){var s;return n.rootElementId??((s=a._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&fe.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return oe()}resize(){oe().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setWarnings(n){var i;(i=this._chartApi)==null||i.setWarnings(n)}}const tP="";console.log("[@wangliang139/klinecharts-pro] v0.2.17"),console.log("overlays:",Na),Na.forEach(e=>{fe.registerOverlay(e)}),St.DefaultDatafeed=q6,St.KLineChartPro=Fb,St.loadLocales=xy,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})});
|
|
39
|
+
*/const C9=.027,Um=5e-4,Zm=.1,x9=1.14,hi=.022,w9=1.414,Hm=(e,n)=>{e=new H(e),n=new H(n),e.alpha()<1&&(e=Fr(n,e,e.alpha(),"rgb"));const i=L9(...e.rgb()),a=L9(...n.rgb()),s=i>=hi?i:i+Math.pow(hi-i,w9),l=a>=hi?a:a+Math.pow(hi-a,w9),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<Um?0:s<l?c*x9:f*x9;return(Math.abs(d)<Zm?0:d>0?d-C9:d+C9)*100};function L9(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Bn,pow:ct,min:Ym,max:Gm,atan2:$9,abs:S9,cos:gi,sin:k9,exp:Vm,PI:A9}=Math;function Qm(e,n,i=1,a=1,s=1){var l=function(et){return 360*et/(2*A9)},c=function(et){return 2*A9*et/360};e=new H(e),n=new H(n);const[f,d,g]=Array.from(e.lab()),[_,y,b]=Array.from(n.lab()),k=(f+_)/2,v=Bn(ct(d,2)+ct(g,2)),w=Bn(ct(y,2)+ct(b,2)),L=(v+w)/2,$=.5*(1-Bn(ct(L,7)/(ct(L,7)+ct(25,7)))),T=d*(1+$),O=y*(1+$),E=Bn(ct(T,2)+ct(g,2)),U=Bn(ct(O,2)+ct(b,2)),X=(E+U)/2,Y=l($9(g,T)),I=l($9(b,O)),z=Y>=0?Y:Y+360,V=I>=0?I:I+360,Q=S9(z-V)>180?(z+V+360)/2:(z+V)/2,ne=1-.17*gi(c(Q-30))+.24*gi(c(2*Q))+.32*gi(c(3*Q+6))-.2*gi(c(4*Q-63));let ee=V-z;ee=S9(ee)<=180?ee:V<=z?ee+360:ee-360,ee=2*Bn(E*U)*k9(c(ee)/2);const Te=_-f,ae=U-E,_t=1+.015*ct(k-50,2)/Bn(20+ct(k-50,2)),wt=1+.045*X,rt=1+.015*X*ne,Je=30*Vm(-ct((Q-275)/25,2)),Ge=-(2*Bn(ct(X,7)/(ct(X,7)+ct(25,7))))*k9(2*c(Je)),ze=Bn(ct(Te/(i*_t),2)+ct(ae/(a*wt),2)+ct(ee/(s*rt),2)+Ge*(ae/(a*wt))*(ee/(s*rt)));return Gm(0,Ym(100,ze))}function jm(e,n,i="lab"){e=new H(e),n=new H(n);const a=e.get(i),s=n.get(i);let l=0;for(let c in a){const f=(a[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const qm=(...e)=>{try{return new H(...e),!0}catch{return!1}},Xm={cool(){return di([he.hsl(180,1,.9),he.hsl(250,.7,.4)])},hot(){return di(["#000","#f00","#ff0","#fff"]).mode("rgb")}},oo={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"]},M9=Object.keys(oo),T9=new Map(M9.map(e=>[e.toLowerCase(),e])),Jm=typeof Proxy=="function"?new Proxy(oo,{get(e,n){const i=n.toLowerCase();if(T9.has(i))return e[T9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(M9)}}):oo,ey=(...e)=>{e=me(e,"cmyk");const[n,i,a,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),a>=1?0:255*(1-a)*(1-s),l]},{max:P9}=Math,ty=(...e)=>{let[n,i,a]=me(e,"rgb");n=n/255,i=i/255,a=a/255;const s=1-P9(n,P9(i,a)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-a-s)*l;return[c,f,d,s]};H.prototype.cmyk=function(){return ty(this._rgb)},Object.assign(he,{cmyk:(...e)=>new H(...e,"cmyk")}),ge.format.cmyk=ey,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),be(e)==="array"&&e.length===4)return"cmyk"}});const ny=(...e)=>{const n=me(e,"hsla");let i=Rr(e)||"lsa";return n[0]=qt(n[0]||0)+"deg",n[1]=qt(n[1]*100)+"%",n[2]=qt(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},ry=(...e)=>{const n=me(e,"lab");let i=Rr(e)||"lab";return n[0]=qt(n[0])+"%",n[1]=qt(n[1]),n[2]=qt(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},iy=(...e)=>{const n=me(e,"lch");let i=Rr(e)||"lab";return n[0]=qt(n[0])+"%",n[1]=qt(n[1]),n[2]=isNaN(n[2])?"none":qt(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},oy=(...e)=>{const n=me(e,"lab");return n[0]=qt(n[0]*100)+"%",n[1]=U0(n[1]),n[2]=U0(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},O9=(...e)=>{const[n,i,a,...s]=me(e,"rgb"),[l,c,f]=to(n,i,a),[d,g,_]=d9(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},ay=(...e)=>{const n=me(e,"lch");return n[0]=qt(n[0]*100)+"%",n[1]=U0(n[1]),n[2]=isNaN(n[2])?"none":qt(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:ao}=Math,sy=(...e)=>{const n=me(e,"rgba");let i=Rr(e)||"rgb";if(i.substr(0,3)==="hsl")return ny(g9(n),i);if(i.substr(0,3)==="lab"){const a=p1();Rn("d50");const s=ry(G0(n),i);return Rn(a),s}if(i.substr(0,3)==="lch"){const a=p1();Rn("d50");const s=iy(q0(n),i);return Rn(a),s}return i.substr(0,5)==="oklab"?oy(to(n)):i.substr(0,5)==="oklch"?ay(O9(n)):(n[0]=ao(n[0]),n[1]=ao(n[1]),n[2]=ao(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},I9=(...e)=>{e=me(e,"lch");const[n,i,a,...s]=e,[l,c,f]=f9(n,i,a),[d,g,_]=eo(l,c,f);return[d,g,_,...s.length>0&&s[0]<1?[s[0]]:[]]},Fn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,gn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,pi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Xt=/\s*/.source,Kr=/\s+/.source,so=/\s*,\s*/.source,mi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Ur=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,E9=new RegExp("^rgba?\\("+Xt+[Fn,Fn,Fn].join(Kr)+Ur+"\\)$"),D9=new RegExp("^rgb\\("+Xt+[Fn,Fn,Fn].join(so)+Xt+"\\)$"),R9=new RegExp("^rgba\\("+Xt+[Fn,Fn,Fn,gn].join(so)+Xt+"\\)$"),B9=new RegExp("^hsla?\\("+Xt+[mi,pi,pi].join(Kr)+Ur+"\\)$"),F9=new RegExp("^hsl?\\("+Xt+[mi,pi,pi].join(so)+Xt+"\\)$"),z9=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,N9=new RegExp("^lab\\("+Xt+[gn,gn,gn].join(Kr)+Ur+"\\)$"),W9=new RegExp("^lch\\("+Xt+[gn,gn,mi].join(Kr)+Ur+"\\)$"),K9=new RegExp("^oklab\\("+Xt+[gn,gn,gn].join(Kr)+Ur+"\\)$"),U9=new RegExp("^oklch\\("+Xt+[gn,gn,mi].join(Kr)+Ur+"\\)$"),{round:Z9}=Math,Zr=e=>e.map((n,i)=>i<=2?fr(Z9(n),0,255):n),ut=(e,n=0,i=100,a=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,a?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),Mt=(e,n)=>e==="none"?n:e,lo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(ge.format.named)try{return ge.format.named(e)}catch{}if((n=e.match(E9))||(n=e.match(D9))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+ut(Mt(i[s],0),0,255);i=Zr(i);const a=n[4]!==void 0?+ut(n[4],0,1):1;return i[3]=a,i}if(n=e.match(R9)){const i=n.slice(1,5);for(let a=0;a<4;a++)i[a]=+ut(i[a],0,255);return i}if((n=e.match(B9))||(n=e.match(F9))){const i=n.slice(1,4);i[0]=+Mt(i[0].replace("deg",""),0),i[1]=+ut(Mt(i[1],0),0,100)*.01,i[2]=+ut(Mt(i[2],0),0,100)*.01;const a=Zr(J0(i)),s=n[4]!==void 0?+ut(n[4],0,1):1;return a[3]=s,a}if(n=e.match(z9)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const a=J0(i);for(let s=0;s<3;s++)a[s]=Z9(a[s]);return a[3]=+n[4],a}if(n=e.match(N9)){const i=n.slice(1,4);i[0]=ut(Mt(i[0],0),0,100),i[1]=ut(Mt(i[1],0),-125,125,!0),i[2]=ut(Mt(i[2],0),-125,125,!0);const a=p1();Rn("d50");const s=Zr(H0(i));Rn(a);const l=n[4]!==void 0?+ut(n[4],0,1):1;return s[3]=l,s}if(n=e.match(W9)){const i=n.slice(1,4);i[0]=ut(i[0],0,100),i[1]=ut(Mt(i[1],0),0,150,!1),i[2]=+Mt(i[2].replace("deg",""),0);const a=p1();Rn("d50");const s=Zr(j0(i));Rn(a);const l=n[4]!==void 0?+ut(n[4],0,1):1;return s[3]=l,s}if(n=e.match(K9)){const i=n.slice(1,4);i[0]=ut(Mt(i[0],0),0,1),i[1]=ut(Mt(i[1],0),-.4,.4,!0),i[2]=ut(Mt(i[2],0),-.4,.4,!0);const a=Zr(eo(i)),s=n[4]!==void 0?+ut(n[4],0,1):1;return a[3]=s,a}if(n=e.match(U9)){const i=n.slice(1,4);i[0]=ut(Mt(i[0],0),0,1),i[1]=ut(Mt(i[1],0),0,.4,!1),i[2]=+Mt(i[2].replace("deg",""),0);const a=Zr(I9(i)),s=n[4]!==void 0?+ut(n[4],0,1):1;return a[3]=s,a}};lo.test=e=>E9.test(e)||B9.test(e)||N9.test(e)||W9.test(e)||K9.test(e)||U9.test(e)||D9.test(e)||R9.test(e)||F9.test(e)||z9.test(e)||e==="transparent",H.prototype.css=function(e){return sy(this._rgb,e)};const ly=(...e)=>new H(...e,"css");he.css=ly,ge.format.css=lo,ge.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&be(e)==="string"&&lo.test(e))return"css"}}),ge.format.gl=(...e)=>{const n=me(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const cy=(...e)=>new H(...e,"gl");he.gl=cy,H.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},H.prototype.hex=function(e){return l9(this._rgb,e)};const uy=(...e)=>new H(...e,"hex");he.hex=uy,ge.format.hex=s9,ge.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&be(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:yi}=Math,H9=e=>{const n=e/100;let i,a,s;return n<66?(i=255,a=n<6?0:-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*yi(a),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*yi(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*yi(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*yi(a),s=255),[i,a,s,1]},{round:fy}=Math,dy=(...e)=>{const n=me(e,"rgb"),i=n[0],a=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=H9(f);d[2]/d[0]>=a/i?l=f:s=f}return fy(f)};H.prototype.temp=H.prototype.kelvin=H.prototype.temperature=function(){return dy(this._rgb)};const co=(...e)=>new H(...e,"temp");Object.assign(he,{temp:co,kelvin:co,temperature:co}),ge.format.temp=ge.format.kelvin=ge.format.temperature=H9,H.prototype.oklch=function(){return O9(this._rgb)},Object.assign(he,{oklch:(...e)=>new H(...e,"oklch")}),ge.format.oklch=I9,ge.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),be(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(he,{analyze:v9,average:mm,bezier:xm,blend:hn,brewer:Jm,Color:H,colors:Br,contrast:Km,contrastAPCA:Hm,cubehelix:Em,deltaE:Qm,distance:jm,input:ge,interpolate:Fr,limits:b9,mix:Fr,random:Fm,scale:di,scales:Xm,valid:qm});var hy=N("<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"),gy=N("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),py=N("<div class=each_line>"),my=N("<div>"),yy=N("<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)>+"),_y=N('<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 vy=e=>{const n=String(e.value).includes("rgba")?he(String(e.value)).alpha()*100:100,[i,a]=G(!1),[s,l]=G(n),[c,f]=G(e.value),[d,g]=G(e.value),[_,y]=G(!1),[b,k]=G(!1),[v,w]=G(e.value??"#000000"),[L,$]=G(0),[T,O]=G(1),[E,U]=G(.5),[X,Y]=G(!1),I=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],z=oe=>{try{return he(oe).hex()}catch{return String(oe||"#000000")}},V=oe=>{const ke=z(oe),[ue,Ie,it]=he(ke).hsl();$(Number.isFinite(ue)?Math.round(ue):0),O(Number.isFinite(Ie)?Ie:1),U(Number.isFinite(it)?it:.5),w(ke)},Q=()=>{a(!1),k(!1)},ne=()=>{var oe;f(e.value),g(e.value),(oe=e.onChange)==null||oe.call(e,e.value),Q()},ee=oe=>{var Ie;f(oe);const ke=s()/100,ue=he(oe).alpha(ke).css();g(ue),(e.reactiveChange??!0)&&((Ie=e.onChange)==null||Ie.call(e,ue))},Te=()=>{var ue;const oe=s()/100,ke=he(c()).alpha(oe).css();g(ke),(e.reactiveChange??!0)&&((ue=e.onChange)==null||ue.call(e,ke))},ae=oe=>{l(oe.target.value),Te()},_t=()=>{const oe=c()??e.value??"#000000";V(String(oe)),k(!0),a(!0)},wt=oe=>{$(oe);const ke=he.hsl(oe,T(),E()).hex();w(ke)},rt=oe=>{let ke=oe.trim();ke.startsWith("#")||(ke="#"+ke);try{const ue=he(ke).hex(),[Ie,it,qe]=he(ue).hsl();$(Number.isFinite(Ie)?Math.round(Ie):L()),O(Number.isFinite(it)?it:T()),U(Number.isFinite(qe)?qe:E()),w(ue)}catch{w(oe)}},Je=oe=>{var ke,ue;(ue=(ke=oe.target).setPointerCapture)==null||ue.call(ke,oe.pointerId),Y(!0),ze(oe)},Le=oe=>{X()&&ze(oe)},Ge=oe=>{var ke,ue;try{(ue=(ke=oe.target).releasePointerCapture)==null||ue.call(ke,oe.pointerId)}catch{}Y(!1)},ze=oe=>{const ue=oe.currentTarget.getBoundingClientRect(),Ie=Math.min(Math.max(0,oe.clientX-ue.left),ue.width),it=Math.min(Math.max(0,oe.clientY-ue.top),ue.height),qe=ue.width?Ie/ue.width:0,Tt=ue.height?1-it/ue.height:.5;O(qe),U(Tt);const en=he.hsl(L(),qe,Tt).hex();w(en)},et=()=>{try{const oe=z(v());I[0].unshift(oe),ee(oe),k(!1)}catch{}};return[Qe(()=>Qe(()=>!!i())()&&(()=>{var oe=gy();return oe.$$click=()=>{ne()},oe})()),(()=>{var oe=hy(),ke=oe.firstChild,ue=ke.nextSibling,Ie=ue.firstChild,it=Ie.nextSibling,qe=it.firstChild,Tt=qe.nextSibling,en=Tt.firstChild,zn=it.nextSibling,kn=zn.nextSibling,Xn=kn.firstChild,pt=Xn.nextSibling;return ke.$$click=Be=>{a(!0)},W(ue,(()=>{var Be=Qe(()=>!b());return()=>Be()&&I.map(Dt=>(()=>{var tt=py();return W(tt,()=>Dt.map(Lt=>(()=>{var tn=my();return tn.$$click=R=>{R.preventDefault(),ee(Lt)},Ae(R=>{var j=`each_color ${Lt==c()?"selected":""}`,$e=`background-color: ${Lt}`;return j!==R.e&&Kt(tn,R.e=j),R.t=je(tn,$e,R.t),R},{e:void 0,t:void 0}),tn})())),tt})())})(),Ie),W(ue,(()=>{var Be=Qe(()=>!b());return()=>Be()&&(()=>{var Dt=yy(),tt=Dt.firstChild;return tt.$$click=Lt=>{Lt.stopPropagation(),_t()},Dt})()})(),Ie),W(ue,(()=>{var Be=Qe(()=>!!b());return()=>Be()&&(()=>{var Dt=_y(),tt=Dt.firstChild,Lt=tt.firstChild,tn=Lt.nextSibling,R=tt.nextSibling,j=R.firstChild,$e=j.nextSibling,Ce=$e.nextSibling,Pe=Ce.nextSibling,dt=R.nextSibling,pn=dt.firstChild,Rt=pn.nextSibling,We=dt.nextSibling,Bt=We.firstChild,nn=Bt.nextSibling;return tn.$$input=te=>rt(te.currentTarget.value),R.$$pointerup=te=>Ge(te),R.$$pointermove=te=>Le(te),R.$$pointerdown=te=>Je(te),pn.$$input=te=>wt(Number(te.currentTarget.value)),W(Rt,L),Bt.$$click=()=>k(!1),nn.$$click=et,Ae(te=>{var ft=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${v()}`,Ee=`linear-gradient(to right, hsl(${L()}, 0%, 50%), hsl(${L()}, 100%, 50%))`,mt=`${Math.round(T()*100)}%`,Jn=`${Math.round((1-E())*100)}%`,Gr=v();return te.e=je(Lt,ft,te.e),Ee!==te.t&&$r(j,"background",te.t=Ee),mt!==te.a&&$r(Pe,"left",te.a=mt),Jn!==te.o&&$r(Pe,"top",te.o=Jn),Gr!==te.i&&$r(Pe,"background",te.i=Gr),te},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Ae(()=>tn.value=v()),Ae(()=>pn.value=L()),Dt})()})(),Ie),qe.addEventListener("blur",()=>{y(!1)}),qe.addEventListener("focus",()=>{y(!0)}),qe.$$input=Be=>{Be.preventDefault,ae(Be)},W(Tt,s,en),Xn.$$click=ne,pt.$$click=()=>{var Be;e.reactiveChange===!1&&((Be=e.onChange)==null||Be.call(e,d())),Q()},Ae(Be=>{var Dt=`width: 120px; background-color: ${d()}`,tt=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,Lt=`background-color: ${d()}; border: 1px solid ${c()}`;return Be.e=je(oe,Dt,Be.e),tt!==Be.t&&Kt(oe,Be.t=tt),Be.a=je(qe,Lt,Be.a),Be},{e:void 0,t:void 0,a:void 0}),Ae(()=>qe.value=s()),oe})()]};Et(["click","input","pointerdown","pointermove","pointerup"]);var by=N("<div><div></div><div><strong>订单ID:</strong><span></span></div><div><strong>价格:</strong><span></span></div><div><strong>数量:</strong><span></span></div><div><strong>手续费:</strong><span></span></div><div><strong>已实现盈亏:</strong><span></span></div><div><strong>成交时间:</strong><span>");const Hr={display:"flex","justify-content":"space-between",gap:"8px"},Yr={"text-align":"right"},Cy=20;function xy(e,n,i,a,s,l,c,f,d){const g=s+d,_=l+d,y=c-d,b=f-d;return e>=g&&n>=_&&e+i<=y&&n+a<=b}function wy(e,n,i,a,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+a)),g=s-f,_=l-d;return g*g+_*_<c*c}function Ly(e,n,i,a,s,l,c,f,d,g){const _=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-a},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-a}};for(const $ of _){const{left:T,top:O}=y[$];if(xy(T,O,i,a,s,l,c,f,d))return{left:T,top:O}}const b=s+d,k=l+d,v=c-i-d,w=f-a-d,L=8;for(const $ of _){const T=y[$],O=Math.min(Math.max(b,T.left),Math.max(b,v)),E=Math.min(Math.max(k,T.top),Math.max(k,w));if(!wy(O,E,i,a,e,n,L))return{left:O,top:E}}return{left:Math.min(Math.max(b,y.topRight.left),Math.max(b,v)),top:Math.min(Math.max(k,y.topRight.top),Math.max(k,w))}}const $y=e=>{const n=()=>e.order.isBuy,[a,s]=G(),[l,c]=G({w:220,h:196});At(()=>{e.order,e.formattedTime;const y=a();if(!y)return;const b=()=>{const v=y.getBoundingClientRect();v.width>0&&v.height>0&&c({w:v.width,h:v.height})};b();const k=new ResizeObserver(b);k.observe(y),wr(()=>k.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,_=jt(()=>{var X;const y=l().w,b=l().h,k=(X=e.clipElement)==null?void 0:X.getBoundingClientRect(),v=(k==null?void 0:k.left)??0,w=(k==null?void 0:k.top)??0,L=(k==null?void 0:k.right)??d,$=(k==null?void 0:k.bottom)??g,T=typeof e.anchorX=="number"&&typeof e.anchorY=="number",O=T?e.anchorX:L-y-16,E=T?e.anchorY:w+84,U=T?Ly(O,E,y,b,v,w,L,$,f,Cy):(()=>{const Y=v+f,I=L-y-f,z=w+f,V=$-b-f,Q=L-y-16,ne=w+84;return{left:Math.min(Math.max(Y,Q),Math.max(Y,I)),top:Math.min(Math.max(z,ne),Math.max(z,V))}})();return{left:U.left,top:U.top,anchorX:O,anchorY:E,hasAnchor:T,w:y,h:b}});return At(()=>{const y=_();console.log("[HisOrderHover]",{orderId:e.order.orderId??e.order.id,hover:{x:y.anchorX,y:y.anchorY,hasAnchor:y.hasAnchor},popupSize:{width:y.w,height:y.h},popupPosition:{left:y.left,top:y.top}})}),(()=>{var y=by(),b=y.firstChild,k=b.nextSibling,v=k.firstChild,w=v.nextSibling,L=k.nextSibling,$=L.firstChild,T=$.nextSibling,O=L.nextSibling,E=O.firstChild,U=E.nextSibling,X=O.nextSibling,Y=X.firstChild,I=Y.nextSibling,z=X.nextSibling,V=z.firstChild,Q=V.nextSibling,ne=z.nextSibling,ee=ne.firstChild,Te=ee.nextSibling;return Q1(s,y),W(b,()=>n()?"买入":"卖出"),W(w,()=>String(e.order.orderId??e.order.id??"-")),W(T,()=>String(e.order.price)),W(U,()=>String(e.order.size)),W(I,()=>String(e.order.fee??"-")),W(Q,()=>String(e.order.pnl??"-")),W(Te,()=>e.formattedTime),Ae(ae=>{var _t=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,wt=`${_().left}px`,rt=`${_().top}px`,Je=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,Le=Hr,Ge=Yr,ze=Hr,et=Yr,oe=Hr,ke=Yr,ue=Hr,Ie=Yr,it=Hr,qe=Yr,Tt=Hr,en=Yr;return _t!==ae.e&&Kt(y,ae.e=_t),wt!==ae.t&&$r(y,"left",ae.t=wt),rt!==ae.a&&$r(y,"top",ae.a=rt),Je!==ae.o&&Kt(b,ae.o=Je),ae.i=je(k,Le,ae.i),ae.n=je(w,Ge,ae.n),ae.s=je(L,ze,ae.s),ae.h=je(T,et,ae.h),ae.r=je(O,oe,ae.r),ae.d=je(U,ke,ae.d),ae.l=je(X,ue,ae.l),ae.u=je(I,Ie,ae.u),ae.c=je(z,it,ae.c),ae.w=je(Q,qe,ae.w),ae.m=je(ne,Tt,ae.m),ae.f=je(Te,en,ae.f),ae},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()},Y9={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",alerts:"预警",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",setting_sidebar_trading:"交易",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",alerts:"Alerts",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",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",setting_sidebar_trading:"Trading",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",restore_default:"Restore Defaults"}};function Sy(e,n){Y9[e]=n}const C=(e,n)=>{var i;return((i=Y9[n])==null?void 0:i[e])??e};G(!1),G(!1),G(!1),G(!1),G(!1),G("");const[ky,Ay]=G("");function G9(e){const n=ky();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function My(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Ty(e){const n=G9(e),i=My();return!!(n&&i&&(n===i||n.contains(i)))}const[Py,V9]=G(!1),[m1,uo]=G(null),[y1,fo]=G(null);G();const[ie,Oy]=G(null),[Q9,j9]=G(null),[q9,X9]=G([""]),[J9,e5]=G({}),[oI,jn]=G(!1);G("");const[ho,Iy]=G(!1);G(1),G();const[Ey,_i]=G(null);var Dy=N("<img alt=symbol>"),Ry=N("<div class=symbol><span>"),By=N('<div class=klinecharts-pro-period-bar><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg></div><div class="item tools">'),Fy=N("<button type=button>"),zy=N('<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>'),Ny=N('<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 Wy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,a=()=>{Iy(Ty(n))},s=l=>{if(l.shiftKey)return;const c=l.currentTarget;if(c.scrollWidth<=c.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=c.clientWidth),f===0)return;const d=c.scrollWidth-c.clientWidth;f>0&&c.scrollLeft>=d-1||f<0&&c.scrollLeft<=0||(l.preventDefault(),c.scrollLeft+=f)};return b0(()=>{document.addEventListener("fullscreenchange",a),document.addEventListener("mozfullscreenchange",a),document.addEventListener("webkitfullscreenchange",a),document.addEventListener("msfullscreenchange",a)}),wr(()=>{document.removeEventListener("fullscreenchange",a),document.removeEventListener("mozfullscreenchange",a),document.removeEventListener("webkitfullscreenchange",a),document.removeEventListener("msfullscreenchange",a)}),(()=>{var l=By(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,_=g.nextSibling,y=_.nextSibling,b=y.nextSibling,k=b.nextSibling;return Q1(v=>{const w=n;w&&w.removeEventListener("wheel",s),n=v,v&&v.addEventListener("wheel",s,{passive:!1})},l),wn(f,"click",e.onMenuClick,!0),W(l,Z(Me,{get when(){return e.symbol},get children(){var v=Ry(),w=v.firstChild;return wn(v,"click",e.onSymbolClick,!0),W(v,Z(Me,{get when(){return e.symbol.logo},get children(){var L=Dy();return Ae(()=>lt(L,"src",e.symbol.logo)),L}}),w),W(w,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),v}}),d),W(l,()=>e.periods.map(v=>(()=>{var w=Fy();return w.$$click=()=>{e.onPeriodChange(v)},W(w,()=>v.text),Ae(()=>Kt(w,`item tools period ${i(v)?"selected":""}`)),w})()),d),wn(d,"click",e.onIndicatorClick,!0),wn(g,"click",e.onTimezoneClick,!0),wn(_,"click",e.onAlertClick,!0),wn(y,"click",e.onSettingClick,!0),wn(b,"click",e.onScreenshotClick,!0),k.$$click=()=>{if(ho())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const v=G9(n);v&&(v.requestFullscreen??v.webkitRequestFullscreen??v.mozRequestFullScreen??v.msRequestFullscreen).call(v)}},W(k,(()=>{var v=Qe(()=>!!ho());return()=>v()?zy():Ny()})()),Ae(v=>{var w=e.spread?"":"rotate",L=C("indicator",e.locale),$=C("timezone",e.locale),T=C("alerts",e.locale),O=C("setting",e.locale),E=C("screenshot",e.locale),U=ho()?C("exit_full_screen",e.locale):C("full_screen",e.locale);return w!==v.e&<(f,"class",v.e=w),L!==v.t&<(d,"title",v.t=L),$!==v.a&<(g,"title",v.a=$),T!==v.o&<(_,"title",v.o=T),O!==v.i&<(y,"title",v.i=O),E!==v.n&<(b,"title",v.n=E),U!==v.s&<(k,"title",v.s=U),v},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),l})()};Et(["click"]);var Ky=N('<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 Uy=()=>Ky();var Zy=N('<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 Hy=()=>Zy();var Yy=N('<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 Gy=()=>Yy();var Vy=N('<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 Qy=()=>Vy();var jy=N('<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=()=>jy();var Xy=N('<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 Jy=()=>Xy();var e_=N('<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 t_=()=>e_();var n_=N('<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 r_=()=>n_();var i_=N('<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 o_=()=>i_();var a_=N('<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 s_=()=>a_();var l_=N('<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 c_=()=>l_();var u_=N('<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 f_=()=>u_();var d_=N('<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 h_=()=>d_();var g_=N('<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 p_=()=>g_();var m_=N('<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 y_=()=>m_();var __=N('<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 v_=()=>__();var b_=N('<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 C_=()=>b_();var x_=N('<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 w_=()=>x_();var L_=N('<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 $_=()=>L_();var S_=N('<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 k_=()=>S_();var A_=N('<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 M_=()=>A_();var T_=N('<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 P_=()=>T_();var O_=N('<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 I_=()=>O_();var E_=N('<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 D_=()=>E_();var R_=N('<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 B_=()=>R_();var F_=N('<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 z_=()=>F_();var N_=N('<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 W_=()=>N_();var K_=N('<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 U_=()=>K_();var Z_=N('<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 H_=()=>Z_();var Y_=N('<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 G_=()=>Y_();var V_=N('<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 Q_=e=>(()=>{var n=V_();return lt(n,"class",`icon-overlay ${e??""}`),n})();var j_=N('<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 q_=e=>(()=>{var n=j_();return lt(n,"class",`icon-overlay ${e??""}`),n})();var X_=N('<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 J_=()=>X_();var ev=N('<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 tv=()=>ev();var nv=N('<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 rv=()=>nv();var iv=N('<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 ov=()=>iv();var av=N('<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 sv=()=>av();var lv=N('<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 cv={horizontalStraightLine:Uy,horizontalRayLine:Hy,horizontalSegment:Gy,verticalStraightLine:Qy,verticalRayLine:qy,verticalSegment:Jy,straightLine:t_,rayLine:r_,segment:o_,arrow:s_,priceLine:c_,priceChannelLine:f_,parallelStraightLine:h_,fibonacciLine:p_,fibonacciSegment:y_,fibonacciCircle:v_,fibonacciSpiral:C_,fibonacciSpeedResistanceFan:w_,fibonacciExtension:$_,gannBox:k_,circle:M_,triangle:P_,rect:I_,parallelogram:D_,threeWaves:B_,fiveWaves:z_,eightWaves:W_,anyWaves:U_,abcd:H_,xabcd:G_,weak_magnet:Q_,strong_magnet:q_,lock:rv,unlock:ov,visible:J_,invisible:tv,remove:sv,brush:()=>lv()};function uv(e){return[{key:"horizontalStraightLine",text:C("horizontal_straight_line",e)},{key:"horizontalRayLine",text:C("horizontal_ray_line",e)},{key:"horizontalSegment",text:C("horizontal_segment",e)},{key:"verticalStraightLine",text:C("vertical_straight_line",e)},{key:"verticalRayLine",text:C("vertical_ray_line",e)},{key:"verticalSegment",text:C("vertical_segment",e)},{key:"straightLine",text:C("straight_line",e)},{key:"rayLine",text:C("ray_line",e)},{key:"segment",text:C("segment",e)},{key:"arrow",text:C("arrow",e)},{key:"brush",text:C("brush",e)},{key:"priceLine",text:C("price_line",e)}]}function fv(e){return[{key:"priceChannelLine",text:C("price_channel_line",e)},{key:"parallelStraightLine",text:C("parallel_straight_line",e)}]}function dv(e){return[{key:"circle",text:C("circle",e)},{key:"rect",text:C("rect",e)},{key:"parallelogram",text:C("parallelogram",e)},{key:"triangle",text:C("triangle",e)}]}function hv(e){return[{key:"fibonacciLine",text:C("fibonacci_line",e)},{key:"fibonacciSegment",text:C("fibonacci_segment",e)},{key:"fibonacciCircle",text:C("fibonacci_circle",e)},{key:"fibonacciSpiral",text:C("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:C("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:C("fibonacci_extension",e)},{key:"gannBox",text:C("gann_box",e)}]}function gv(e){return[{key:"xabcd",text:C("xabcd",e)},{key:"abcd",text:C("abcd",e)},{key:"threeWaves",text:C("three_waves",e)},{key:"fiveWaves",text:C("five_waves",e)},{key:"eightWaves",text:C("eight_waves",e)},{key:"anyWaves",text:C("any_waves",e)}]}function pv(e){return[{key:"weak_magnet",text:C("weak_magnet",e)},{key:"strong_magnet",text:C("strong_magnet",e)}]}const Jt=e=>cv[e.name](e.class);var mv=N('<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>'),yv=N('<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>'),t5=N("<li><span style=padding-left:8px>");const n5="drawing_tools",_v=e=>{const[n,i]=G("horizontalStraightLine"),[a,s]=G("priceChannelLine"),[l,c]=G("circle"),[f,d]=G("fibonacciLine"),[g,_]=G("xabcd"),[y,b]=G("weak_magnet"),[k,v]=G("normal"),[w,L]=G(!1),[$,T]=G(!0),[O,E]=G(""),U=jt(()=>[{key:"singleLine",icon:n(),list:uv(e.locale),setter:i},{key:"moreLine",icon:a(),list:fv(e.locale),setter:s},{key:"polygon",icon:l(),list:dv(e.locale),setter:c},{key:"fibonacci",icon:f(),list:hv(e.locale),setter:d},{key:"wave",icon:g(),list:gv(e.locale),setter:_}]),X=jt(()=>pv(e.locale));return(()=>{var Y=mv(),I=Y.firstChild,z=I.nextSibling,V=z.firstChild,Q=V.nextSibling,ne=Q.firstChild,ee=z.nextSibling,Te=ee.firstChild,ae=ee.nextSibling,_t=ae.firstChild,wt=ae.nextSibling,rt=wt.nextSibling,Je=rt.firstChild;return W(Y,()=>U().map(Le=>(()=>{var Ge=yv(),ze=Ge.firstChild,et=ze.nextSibling,oe=et.firstChild;return Ge.addEventListener("blur",()=>{E("")}),ze.$$click=()=>{e.onDrawingItemClick({groupId:n5,name:Le.icon,visible:$(),lock:w(),mode:k()})},W(ze,Z(Jt,{get name(){return Le.icon}})),et.$$click=()=>{Le.key===O()?E(""):E(Le.key)},W(Ge,(()=>{var ke=Qe(()=>Le.key===O());return()=>ke()&&Z(si,{class:"list",get children(){return Le.list.map(ue=>(()=>{var Ie=t5(),it=Ie.firstChild;return Ie.$$click=()=>{Le.setter(ue.key),e.onDrawingItemClick({name:ue.key,lock:w(),mode:k()}),E("")},W(Ie,Z(Jt,{get name(){return ue.key}}),it),W(it,()=>ue.text),Ie})())}})})(),null),Ae(()=>lt(oe,"class",Le.key===O()?"rotate":"")),Ge})()),I),z.addEventListener("blur",()=>{E("")}),V.$$click=()=>{let Le=y();k()!=="normal"&&(Le="normal"),v(Le),e.onModeChange(Le)},W(V,(()=>{var Le=Qe(()=>y()==="weak_magnet");return()=>Le()?Qe(()=>k()==="weak_magnet")()?Z(Jt,{name:"weak_magnet",class:"selected"}):Z(Jt,{name:"weak_magnet"}):Qe(()=>k()==="strong_magnet")()?Z(Jt,{name:"strong_magnet",class:"selected"}):Z(Jt,{name:"strong_magnet"})})()),Q.$$click=()=>{O()==="mode"?E(""):E("mode")},W(z,(()=>{var Le=Qe(()=>O()==="mode");return()=>Le()&&Z(si,{class:"list",get children(){return X().map(Ge=>(()=>{var ze=t5(),et=ze.firstChild;return ze.$$click=()=>{b(Ge.key),v(Ge.key),e.onModeChange(Ge.key),E("")},W(ze,Z(Jt,{get name(){return Ge.key}}),et),W(et,()=>Ge.text),ze})())}})})(),null),Te.$$click=()=>{const Le=!w();L(Le),e.onLockChange(Le)},W(Te,(()=>{var Le=Qe(()=>!!w());return()=>Le()?Z(Jt,{name:"lock"}):Z(Jt,{name:"unlock"})})()),_t.$$click=()=>{const Le=!$();T(Le),e.onVisibleChange(Le)},W(_t,(()=>{var Le=Qe(()=>!!$());return()=>Le()?Z(Jt,{name:"visible"}):Z(Jt,{name:"invisible"})})()),Je.$$click=()=>{e.onRemoveClick(n5)},W(Je,Z(Jt,{name:"remove"})),Ae(()=>lt(ne,"class",O()==="mode"?"rotate":"")),Y})()};Et(["click"]);var r5=N("<li class=title>"),vv=N('<div style="padding:0 20px">'),i5=N("<li class=row>");const bv=e=>Z($n,{get title(){return C("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=vv();return W(n,Z(si,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=r5();return W(i,()=>C("main_indicator",e.locale)),i})(),Qe(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const a=e.mainIndicators.includes(i);return(()=>{var s=i5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!a})},W(s,Z(Js,{checked:a,get label(){return C(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=r5();return W(i,()=>C("sub_indicator",e.locale)),i})(),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(i=>{const a=i in e.subIndicators;return(()=>{var s=i5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!a})},W(s,Z(Js,{checked:a,get label(){return C(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Et(["click"]);function o5(e,n){switch(e){case"Etc/UTC":return C("utc",n);case"Pacific/Honolulu":return C("honolulu",n);case"America/Juneau":return C("juneau",n);case"America/Los_Angeles":return C("los_angeles",n);case"America/Chicago":return C("chicago",n);case"America/Toronto":return C("toronto",n);case"America/Sao_Paulo":return C("sao_paulo",n);case"Europe/London":return C("london",n);case"Europe/Berlin":return C("berlin",n);case"Asia/Bahrain":return C("bahrain",n);case"Asia/Dubai":return C("dubai",n);case"Asia/Ashkhabad":return C("ashkhabad",n);case"Asia/Almaty":return C("almaty",n);case"Asia/Bangkok":return C("bangkok",n);case"Asia/Shanghai":return C("shanghai",n);case"Asia/Tokyo":return C("tokyo",n);case"Australia/Sydney":return C("sydney",n);case"Pacific/Norfolk":return C("norfolk",n)}return e}function Cv(e){return[{key:"Etc/UTC",text:C("utc",e)},{key:"Pacific/Honolulu",text:C("honolulu",e)},{key:"America/Juneau",text:C("juneau",e)},{key:"America/Los_Angeles",text:C("los_angeles",e)},{key:"America/Chicago",text:C("chicago",e)},{key:"America/Toronto",text:C("toronto",e)},{key:"America/Sao_Paulo",text:C("sao_paulo",e)},{key:"Europe/London",text:C("london",e)},{key:"Europe/Berlin",text:C("berlin",e)},{key:"Asia/Bahrain",text:C("bahrain",e)},{key:"Asia/Dubai",text:C("dubai",e)},{key:"Asia/Ashkhabad",text:C("ashkhabad",e)},{key:"Asia/Almaty",text:C("almaty",e)},{key:"Asia/Bangkok",text:C("bangkok",e)},{key:"Asia/Shanghai",text:C("shanghai",e)},{key:"Asia/Tokyo",text:C("tokyo",e)},{key:"Australia/Sydney",text:C("sydney",e)},{key:"Pacific/Norfolk",text:C("norfolk",e)}]}var xv=N('<div style="padding:20px 20px 0 20px">');const wv=e=>{const[n,i]=G(e.timezone),a=jt(()=>Cv(e.locale));return Z($n,{get title(){return C("timezone",e.locale)},width:320,get buttons(){return[{children:C("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=xv();return W(s,Z(h1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return a()}})),s}})},dr=e=>{const n=[{key:"solid",text:C("solid",e)},{key:"dashed",text:C("dashed",e)}],i=[{key:[4,4]}],a=[{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:C("fill",e)},{key:"stroke",text:C("stroke",e)},{key:"stroke_fill",text:C("stroke_fill",e)}],c=[{key:"none",text:C("none",e)},{key:"always",text:C("always",e)},{key:"follow_cross",text:C("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],d=[{key:"normal",text:C("Normal",e)}],g=[{key:"Helvetica Neue",text:C("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:c,true_false:a}},Lv=e=>{const{font_family:n,font_size:i,font_weight:a,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=dr(e);return[{key:"candle.type",text:C("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:C("candle_solid",e)},{key:"candle_stroke",text:C("candle_stroke",e)},{key:"candle_up_stroke",text:C("candle_up_stroke",e)},{key:"candle_down_stroke",text:C("candle_down_stroke",e)},{key:"ohlc",text:C("ohlc",e)},{key:"area",text:C("area",e)},{key:"heikin_ashi",text:C("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:C("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:C("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:C("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:C("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:C("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:C("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:C("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:C("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:C("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:C("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:C("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:C("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:C("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:C("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:C("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:C("Pricemark High Font Weight",e),component:"select",dataSource:a},{key:"candle.priceMark.low.show",text:C("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:C("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:C("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:C("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:C("Pricemark Low Font Weight",e),component:"select",dataSource:a},{key:"candle.priceMark.last.show",text:C("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:C("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:C("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:C("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:C("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:C("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:C("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:C("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:C("Pricemark last text style",e),component:"select",dataSource:c},{key:"candle.priceMark.last.text.size",text:C("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:C("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:C("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:C("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:C("Rect",e)},{key:"standard",text:C("Standard",e)}]},{key:"candle.tooltip.rect.position",text:C("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:C("Fixed",e)},{key:"pointer",text:C("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:C("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:C("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:C("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:C("Tooltip text weight",e),component:"select",dataSource:a},{key:"candle.tooltip.text.color",text:C("Tooltip text color",e),component:"color"}]},$v=e=>{const{fill_stroke:n,font_size:i,font_weight:a,none_always_followCross:s}=dr(e);return[{key:"indicator.ohlc.upColor",text:C("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:C("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:C("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:C("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:C("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:C("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:C("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:C("Last value mark text Weight",e),component:"select",dataSource:a},{key:"indicator.lastValueMark.text.color",text:C("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:C("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:C("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:C("Standard",e)},{key:"rect",text:C("Rect",e)}]},{key:"indicator.tooltip.showName",text:C("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:C("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:C("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:C("Tooltip text Weight",e),component:"select",dataSource:a},{key:"indicator.tooltip.text.color",text:C("Tooltip text color",e),component:"color"}]},Sv=e=>{const{font_size:n,size:i,font_weight:a}=dr(e);return[{key:"xAxis.show",text:C("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:C("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:C("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:C("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:C("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:C("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:C("Tick text Weight",e),component:"select",dataSource:a},{key:"xAxis.tickText.color",text:C("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:C("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:C("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:C("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:C("Tick line color",e),component:"color"}]},kv=e=>{const{size:n,font_weight:i,font_size:a}=dr(e);return[{key:"yAxis.show",text:C("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:C("Position",e),component:"select",dataSource:[{key:"right",text:C("Right",e)},{key:"left",text:C("Left",e)}]},{key:"yAxis.type",text:C("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:C("normal",e)},{key:"percentage",text:C("percentage",e)},{key:"log",text:C("log",e)}]},{key:"yAxis.inside",text:C("Inside",e),component:"switch"},{key:"yAxis.reverse",text:C("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:C("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:C("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:C("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:C("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:C("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:C("Tick text size",e),component:"select",dataSource:a},{key:"yAxis.tickText.weight",text:C("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:C("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:C("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:C("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:C("Tick line length",e),component:"select",dataSource:n}]},Av=e=>{const{size:n}=dr(e);return[{key:"grid.show",text:C("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:C("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:C("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:C("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:C("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:C("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:C("Vertical color",e),component:"color"}]},Mv=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:a,size:s,font_size:l,font_weight:c}=dr(e);return[{key:"crosshair.show",text:C("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:C("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:C("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:C("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:C("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:C("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:C("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:C("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:C("Horizontal text Style",e),component:"select",dataSource:a},{key:"crosshair.horizontal.text.size",text:C("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:C("Horizontal text weight",e),component:"select",dataSource:c},{key:"crosshair.horizontal.text.color",text:C("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:C("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:C("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:C("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:C("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:C("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:C("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:C("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:C("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:C("Vertical text Style",e),component:"select",dataSource:a},{key:"crosshair.vertical.text.size",text:C("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:C("Vertical text weight",e),component:"select",dataSource:c},{key:"crosshair.vertical.text.color",text:C("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:C("Vertical text background color",e),component:"color"}]};function a5(e){const{size:n}=dr(e);return[...Lv(e),...$v(e),...Sv(e),...kv(e),...Av(e),...Mv(e),{key:"separator.size",text:C("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:C("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:C("Background color",e),component:"color"}]}const s5="chartstatedata",vi={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1},l5="trading-display",Tv=2,Pv=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Ov=u5(),c5=new WeakMap;function u5(){return{tradingConfig:{...vi},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],overlaySignatures:new Map}}function Iv(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function f5(e){return e||(ie()??null)}function qn(e){const n=f5(e);if(!n)return Ov;const i=c5.get(n);if(i)return i;const a=u5();return c5.set(n,a),a}function d5(){try{const e=localStorage.getItem(s5);return e?JSON.parse(e):{}}catch(e){return Iv("Failed to parse chart state storage, using defaults.",e),{}}}function h5(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:vi.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:vi.showHisOrders}}function g5(e){const n=h5(e.tradingDisplay);if(n)return n;const i=h5(e.trading);return i||{...vi}}function p5(e){const n={...e,version:Tv,tradingDisplay:g5(e)};delete n.trading,localStorage.setItem(s5,JSON.stringify(n))}function Ev(e){qn(e),bi(e)}function bi(e){const n=qn(e),i=d5();return n.tradingConfig=g5(i),p5(i),{...n.tradingConfig}}function m5(e,n){const i=qn(n);i.tradingConfig={...e};const a=d5();a.tradingDisplay=i.tradingConfig,p5(a)}function Ci(e,n){m5(e,n),hr(n)}function Dv(e,n){const i=qn(n);i.positionsState=e.slice(),hr(n)}function Rv(e,n){const i=qn(n);i.liquidationPriceState=e,e!=null&&Number.isFinite(e)&&m5({...i.tradingConfig,showLiquidation:!0},n),hr(n)}function Bv(e,n){const i=qn(n);i.openOrdersState=e.slice(),hr(n)}function Fv(e,n){const i=qn(n);i.hisOrdersState=e.slice(),hr(n)}function zv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,a=e.length-1,s=-1;for(;i<=a;){const l=i+a>>1;e[l].timestamp<=n?(s=l,i=l+1):a=l-1}return s>=0?e[s].timestamp:null}function go(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function xi(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function y5(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function Nv(e,n){if(!((e.getOverlays({id:n.id})??[]).length>0)){const s=e.createOverlay({id:n.id,name:n.name,groupId:l5,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return y5(e,s),s}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),y5(e,n.id),n.id}function Wv(e,n){(e.getOverlays()??[]).filter(a=>!!a.id&&Pv.some(s=>a.id.startsWith(s))&&!n.has(a.id)).forEach(a=>e.removeOverlay({id:a.id}))}function Kv(e,n,i){const a=[],s=e.tradingConfig.showPositions,l=e.tradingConfig.showLiquidation,c=e.tradingConfig.showOpenOrders,f=e.tradingConfig.showHisOrders,d=e.positionsState.filter(g=>g.size!==0&&Number.isFinite(g.avgPrice));if(s&&d.forEach((g,_)=>{const b=`trading-pos-${go(g.id??`idx${_}`)}`,k=[{timestamp:i,value:g.avgPrice}],v={side:g.side,size:g.size,multiplier:g.multiplier??1};a.push({id:b,name:"positionAvgLine",points:k,extendData:v,signature:xi("positionAvgLine",k,v)})}),l&&d.length>0){const g=e.liquidationPriceState;if(g!=null&&Number.isFinite(g)){const _=[{timestamp:i,value:g}],y={};a.push({id:"trading-liq",name:"liquidationLine",points:_,extendData:y,signature:xi("liquidationLine",_,y)})}}if(c&&e.openOrdersState.filter(_=>_.orderType!=="market"&&Number.isFinite(_.price)&&_.size!==0&&(_.side==="long"||_.side==="short")&&typeof _.isBuy=="boolean").forEach((_,y)=>{const k=`trading-order-${go(_.id??`idx${y}`)}`,v=[{timestamp:i,value:_.price}],w={isBuy:_.isBuy,size:_.size};a.push({id:k,name:"pendingOrderLine",points:v,extendData:w,signature:xi("pendingOrderLine",v,w)})}),f){const g=e.hisOrdersState.filter(b=>Number.isFinite(b.timestamp)&&Number.isFinite(b.price)&&Number.isFinite(b.size)&&b.size!==0&&typeof b.isBuy=="boolean"),_=new Map,y=new Map;n.forEach(b=>y.set(b.timestamp,{high:b.high,low:b.low})),g.forEach((b,k)=>{const v=zv(n,b.timestamp);if(v==null)return;const w=`${v}_${b.isBuy?"B":"S"}`,L=_.get(w)??0;_.set(w,L+1);const $=y.get(v),O=`trading-his-order-${go(b.id??String(b.orderId??`idx${k}`))}`,E=[{timestamp:v,value:b.price}],U={...b,stackIndex:L,barHigh:$==null?void 0:$.high,barLow:$==null?void 0:$.low};a.push({id:O,name:"historicalOrderMark",points:E,extendData:U,signature:xi("historicalOrderMark",E,U)})})}return a}function hr(e){var y;const n=f5(e),i=qn(n);if(!n)return;const a=n,s=a.getDataList(),l=((y=s.at(-1))==null?void 0:y.timestamp)??Date.now(),c=Kv(i,s,l),f=new Map(c.map(b=>[b.id,b])),d=a.getOverlays({groupId:l5})??[],g=new Set(d.map(b=>b.id).filter(b=>!!b));g.forEach(b=>{f.has(b)||a.removeOverlay({id:b})});const _=new Map;c.forEach(b=>{const k=i.overlaySignatures.get(b.id);if(!g.has(b.id)||k!==b.signature){const w=Nv(a,b);_.set(w,b.signature);return}_.set(b.id,b.signature)}),i.overlaySignatures=_,Wv(a,new Set(_.keys()))}var _1=N("<div class=component><span>"),Uv=N("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),Zv=N("<button>");const Hv=e=>{const[n,i]=G(e.currentStyles),[a,s]=G(a5(e.locale)),[l,c]=G("trading"),[f,d]=G(bi());At(()=>{s(a5(e.locale))}),At(()=>{l()==="trading"&&d(bi())});const g=(b,k)=>{const v=localStorage.getItem("chartstatedata");let w;v?(w=JSON.parse(v),w.styleObj=w.styleObj??{}):w={styleObj:{}};const L=b.key.indexOf(".");L===-1?b.key:b.key.slice(0,L)+""+b.key.slice(L),d1(w.styleObj,b.key,k),localStorage.setItem("chartstatedata",JSON.stringify(w)),jn(!0);const $={};d1($,b.key,k),d1($,b.key,k);const T=fe.utils.clone(n());d1(T,b.key,k),i(T),s(a().map(O=>({...O}))),e.onChange($)},_=()=>{const b=localStorage.getItem("chartstatedata");let k;b&&(k=JSON.parse(b),k.styleObj&&(k.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(k))),e.onRestoreDefault(a()),e.onClose()},y=[{text:C("setting_sidebar_trading",e.locale),key:"trading"},{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 Z($n,{get title(){return C("setting",e.locale)},width:640,height:560,get buttons(){return[{children:C("restore_default",e.locale),onClick:()=>{_()}}]},get onClose(){return e.onClose},get children(){var b=Uv(),k=b.firstChild,v=k.nextSibling;return W(k,()=>y.map(w=>(()=>{var L=Zv();return L.$$click=()=>c(w.key),W(L,()=>w.text),Ae(()=>Kt(L,`${l()==w.key?"selected":""}`)),L})())),W(v,Z(Me,{get when(){return l()==="trading"},get fallback(){return Z(ja,{get each(){return a().filter(w=>w.key.includes(l()))},children:w=>{let L;const $=fe.utils.formatValue(n(),w.key);switch(w.component){case"select":{L=Z(h1,{style:{width:"120px"},get value(){return C($,e.locale)},get dataSource(){return w.dataSource},onSelected:T=>{const O=T.key;g(w,O)}});break}case"switch":{const T=!!$;L=Z(g1,{open:T,onChange:()=>{g(w,!T)}});break}case"color":{L=Z(vy,{style:{width:"120px"},value:$,reactiveChange:!1,onChange:T=>{g(w,T)}});break}}return(()=>{var T=_1(),O=T.firstChild;return W(O,()=>w.text),W(T,L,null),T})()}})},get children(){return[(()=>{var w=_1(),L=w.firstChild;return W(L,()=>C("trading_display_positions",e.locale)),W(w,Z(g1,{get open(){return f().showPositions},onChange:()=>{const $={...f(),showPositions:!f().showPositions};d($),Ci($)}}),null),w})(),(()=>{var w=_1(),L=w.firstChild;return W(L,()=>C("trading_display_liquidation",e.locale)),W(w,Z(g1,{get open(){return f().showLiquidation},onChange:()=>{const $={...f(),showLiquidation:!f().showLiquidation};d($),Ci($)}}),null),w})(),(()=>{var w=_1(),L=w.firstChild;return W(L,()=>C("trading_display_open_orders",e.locale)),W(w,Z(g1,{get open(){return f().showOpenOrders},onChange:()=>{const $={...f(),showOpenOrders:!f().showOpenOrders};d($),Ci($)}}),null),w})(),(()=>{var w=_1(),L=w.firstChild;return W(L,()=>C("trading_display_his_orders",e.locale)),W(w,Z(g1,{get open(){return f().showHisOrders},onChange:()=>{const $={...f(),showHisOrders:!f().showHisOrders};d($),Ci($)}}),null),w})()]}})),b}})};Et(["click"]);var Yv=N('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const Gv=e=>Z($n,{get title(){return C("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:C("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=Yv(),i=n.firstChild;return Ae(()=>lt(i,"src",e.url)),n}}),Vv={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 Qv=N("<div class=klinecharts-pro-indicator-setting-modal-content>"),jv=N("<div class=param-row><span>");const qv=e=>{const[n,i]=G(fe.utils.clone(e.params.calcParams)),a=s=>Vv[s];return Z($n,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:C("confirm",e.locale),onClick:()=>{const s=a(e.params.indicatorName),l=[];fe.utils.clone(n()).forEach((c,f)=>{!fe.utils.isValid(c)||c===""?"default"in s[f]&&l.push(s[f].default):l.push(c)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=Qv();return W(s,()=>a(e.params.indicatorName).map((l,c)=>(()=>{var f=jv(),d=f.firstChild;return W(d,()=>C(l.paramNameKey,e.locale)),W(f,Z(n9,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const _=fe.utils.clone(n());_[c]=g,i(_)}}),null),f})())),s}})};var Xv=N('<div style="margin:10px 20px 0 20px">'),Jv=N('<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">'),eb=N("<img alt=symbol>"),tb=N("<li><div><span>");const nb=e=>{const[n,i]=G(""),[a]=ic(n,e.datafeed.searchSymbols.bind(e.datafeed));return Z($n,{get title(){return C("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=Xv();return W(s,Z(n9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return C("symbol_code",e.locale)},get suffix(){return Jv()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),W(s,Z(si,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return a.loading},get dataSource(){return a()??[]},renderItem:l=>(()=>{var c=tb(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},W(f,Z(Me,{get when(){return l.logo},get children(){var g=eb();return Ae(()=>lt(g,"src",l.logo)),g}}),d),W(d,()=>l.shortName??l.ticker,null),W(d,()=>`${l.name?`(${l.name})`:""}`,null),W(c,()=>l.exchange??"",null),Ae(()=>lt(d,"title",l.name??"")),c})()}),null),s}})};Et(["click"]);var rb=N("<div class=row><span>价格</span><input class=field-input type=number min=0 step=any>"),ib=N("<div class=row><span>分钟"),ob=N("<div class=row><span>百分比</span><input class=field-input type=number min=1 max=100 step=1>"),ab=N("<div class=error-text>"),sb=N("<div class=klinecharts-pro-alert-add-modal><div class=row><span>类型</span></div><div class=row><span>频率</span></div><div class=row><span>备注</span><input class=field-input type=text placeholder=可选>");const _5=[{key:"price_reach",text:"价格达到"},{key:"price_rise_to",text:"价格上涨至"},{key:"price_fall_to",text:"价格下跌至"},{key:"price_rise_pct_over",text:"价格涨幅超过"},{key:"price_fall_pct_over",text:"价格跌幅超过"}],v5=[{key:"repeat",text:"重复提醒"},{key:"once",text:"仅提醒一次"}],b5=[{key:"5m",text:"5分"},{key:"1h",text:"1小时"},{key:"4h",text:"4小时"},{key:"24h",text:"24小时"}],lb=e=>{const[n,i]=G(!1),[a,s]=G(""),[l,c]=G({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=jt(()=>{const g=l().type;return g==="price_reach"||g==="price_rise_to"||g==="price_fall_to"}),d=async()=>{if(n())return;const g=l(),_={type:g.type,frequency:g.frequency,remark:g.remark.trim()||void 0};if(f()){const y=Number(g.price);if(!Number.isFinite(y)||y<=0){s("请输入大于 0 的价格");return}_.price=y}else{const y=Number(g.percent);if(!Number.isInteger(y)||y<1||y>100){s("百分比需为 1-100 的整数");return}_.window=g.window,_.percent=y}s(""),i(!0);try{await e.onSubmit(_),e.onClose()}finally{i(!1)}};return Z($n,{title:"添加预警",width:360,get buttons(){return[{children:"取消",type:"cancel",onClick:e.onClose},{children:n()?"提交中...":"提交",onClick:d}]},get onClose(){return e.onClose},get children(){var g=sb(),_=g.firstChild;_.firstChild;var y=_.nextSibling;y.firstChild;var b=y.nextSibling,k=b.firstChild,v=k.nextSibling;return W(_,Z(h1,{style:{width:"220px"},get value(){var w;return(w=_5.find(L=>L.key===l().type))==null?void 0:w.text},dataSource:_5,onSelected:w=>{const L=w.key;c($=>({...$,type:L}))}}),null),W(g,Z(Me,{get when(){return f()},get children(){var w=rb(),L=w.firstChild,$=L.nextSibling;return $.$$input=T=>{c(O=>({...O,price:T.target.value}))},Ae(()=>$.value=l().price),w}}),y),W(g,Z(Me,{get when(){return!f()},get children(){return[(()=>{var w=ib();return w.firstChild,W(w,Z(h1,{style:{width:"220px"},get value(){var L;return(L=b5.find($=>$.key===l().window))==null?void 0:L.text},dataSource:b5,onSelected:L=>{const $=L.key;c(T=>({...T,window:$}))}}),null),w})(),(()=>{var w=ob(),L=w.firstChild,$=L.nextSibling;return $.$$input=T=>{c(O=>({...O,percent:T.target.value}))},Ae(()=>$.value=l().percent),w})()]}}),y),W(y,Z(h1,{style:{width:"220px"},get value(){var w;return(w=v5.find(L=>L.key===l().frequency))==null?void 0:w.text},dataSource:v5,onSelected:w=>{const L=w.key;c($=>({...$,frequency:L}))}}),null),v.$$input=w=>{c(L=>({...L,remark:w.target.value}))},W(g,Z(Me,{get when(){return!!a()},get children(){var w=ab();return W(w,a),w}}),null),Ae(()=>v.value=l().remark),g}})};Et(["input"]);var cb=N("<dt>标的"),wi=N("<dd>"),ub=N("<dt>价格"),fb=N("<dt>时间窗"),db=N("<dt>百分比"),hb=N("<dl class=alert-detail-grid><dt>类型</dt><dd></dd><dt>频率</dt><dd></dd><dt>备注</dt><dd>");function gb(e){return e==="price_reach"?"价格达到":e==="price_rise_to"?"价格上涨至":e==="price_fall_to"?"价格下跌至":e==="price_rise_pct_over"?"价格涨幅超过":"价格跌幅超过"}function pb(e){return e==="repeat"?"重复提醒":"仅提醒一次"}function mb(e){return e==="5m"?"5分":e==="1h"?"1小时":e==="4h"?"4小时":e==="24h"?"24小时":e??"—"}const C5=e=>(()=>{var n=hb(),i=n.firstChild,a=i.nextSibling,s=a.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return W(n,Z(Me,{get when(){return!!e.alert.symbol},get children(){return[cb(),(()=>{var d=wi();return W(d,()=>e.alert.symbol),d})()]}}),i),W(a,()=>gb(e.alert.type)),W(n,Z(Me,{get when(){return Qe(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[ub(),(()=>{var d=wi();return W(d,()=>String(e.alert.price)),d})()]}}),s),W(n,Z(Me,{get when(){return e.alert.window!=null},get children(){return[fb(),(()=>{var d=wi();return W(d,()=>mb(e.alert.window)),d})()]}}),s),W(n,Z(Me,{get when(){return e.alert.percent!=null},get children(){return[db(),(()=>{var d=wi();return W(d,()=>`${e.alert.percent}%`),d})()]}}),s),W(l,()=>pb(e.alert.frequency)),W(f,(()=>{var d=Qe(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var yb=N("<div class=alert-empty>暂无预警"),_b=N("<div class=klinecharts-pro-alert-modal><div class=alert-list><button type=button class=alert-add-btn>添加"),vb=N("<div class=alert-item title=双击查看详情><span class=alert-text></span><button type=button class=alert-delete>删除"),bb=N("<div class=klinecharts-pro-alert-detail>");function Cb(e){return e.type==="price_reach"?`价格达到 ${e.price??"--"}`:e.type==="price_rise_to"?`价格上涨至 ${e.price??"--"}`:e.type==="price_fall_to"?`价格下跌至 ${e.price??"--"}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??"--"}%`:`价格${e.window??"5m"}跌幅 ${e.percent??"--"}%`}const xb=e=>{const[n,i]=G(!1),[a,s]=G(null);return Z($n,{title:"预警",width:480,height:420,get onClose(){return e.onClose},get children(){return[(()=>{var l=_b(),c=l.firstChild,f=c.firstChild;return W(c,Z(ja,{get each(){return e.alerts},children:d=>(()=>{var g=vb(),_=g.firstChild,y=_.nextSibling;return g.$$dblclick=()=>{s(d)},W(_,()=>Cb(d)),y.$$dblclick=b=>{b.stopPropagation()},y.$$click=()=>{var b;(b=e.onRemoveAlert)==null||b.call(e,d)},g})()}),f),W(c,Z(Me,{get when(){return e.alerts.length===0},get children(){return yb()}}),f),f.$$click=()=>{i(!0)},l})(),Z(Me,{get when(){return n()},get children(){return Z(lb,{onClose:()=>{i(!1)},onSubmit:async l=>{var c;await((c=e.onAddAlert)==null?void 0:c.call(e,l))}})}}),Z(Me,{get when(){return a()},children:l=>Z($n,{title:"预警详情",width:400,height:260,onClose:()=>{s(null)},get children(){var c=bb();return W(c,Z(C5,{get alert(){return l()}})),c}})})]}})};Et(["click","dblclick"]);class po{constructor(n,i){Cn(this,"_chart");Cn(this,"_charts",new Map);Cn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const a=fe.init(n,i);if(!a)throw new Error("Failed to initialize chart");this._chart=a,this.id=a.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(n,i){return new po(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,a){return this._chart.createIndicator(n,i,a)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,a){return this._chart.zoomAtCoordinate(n,i,a)}zoomAtDataIndex(n,i,a){return this._chart.zoomAtDataIndex(n,i,a)}zoomAtTimestamp(n,i,a){return this._chart.zoomAtTimestamp(n,i,a)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,a){return this._chart.getConvertPictureUrl(n,i,a)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const x5={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function wb(e){return{onIndicatorTooltipFeatureClick:l=>{const c=l,f=e.getApi();if(f)switch(c.feature.id){case"visible":f.overrideIndicator({name:c.indicator.name,visible:!0,paneId:c.paneId});break;case"invisible":f.overrideIndicator({name:c.indicator.name,visible:!1,paneId:c.paneId});break;case"setting":{const d=f.getIndicators({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:c.indicator.name,paneId:c.paneId,calcParams:d.calcParams});break}case"close":{if(c.paneId==="candle_pane"){const d=[...e.mainIndicators()];f.removeIndicator({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}),d.splice(d.indexOf(c.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};f.removeIndicator({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}),delete d[c.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f=[...e.mainIndicators()];l.added?(e.createIndicator(c,l.name,!0,{id:"candle_pane"}),f.push(l.name)):(c.removeIndicator({name:l.name,paneId:"candle_pane",id:l.id??void 0}),f.splice(f.indexOf(l.name),1)),e.setMainIndicators(f)},onSubIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(c,l.name);d&&(f[l.name]=d)}else l.id&&(c.removeIndicator({name:l.name,id:l.id}),delete f[l.name]);e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{const c=e.getApi();if(!c)return;const f=e.indicatorSettingModalParams();c.overrideIndicator({name:f.indicatorName,calcParams:l,paneId:f.paneId})}}}const Lb=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(a=>{delete i[a]}),i},$b=e=>{const n=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return n.forEach(a=>{delete i[a]}),i},Sb=()=>{const e=(v,w,L)=>{const $=localStorage.getItem("chartstatedata");let T;const O=Lb(st.cloneDeep(v));return $?(T=JSON.parse($),T.indicators?T.indicators.find(E=>{var U,X;return((U=E.value)==null?void 0:U.name)===O.name&&((X=E.paneOptions)==null?void 0:X.id)===(L==null?void 0:L.id)})?T.indicators=T.indicators.map(E=>{var U;return((U=E.value)==null?void 0:U.id)!==O.id?E:{value:O,isStack:w,paneOptions:L}}):T.indicators.push({value:O,isStack:w,paneOptions:L}):T.indicators=[{value:O,isStack:w,paneOptions:L}]):T={indicators:[{value:O,isStack:w,paneOptions:L}]},localStorage.setItem("chartstatedata",JSON.stringify(T)),jn(!0),!1},n=v=>{const w=localStorage.getItem("chartstatedata");let L;const $=$b(st.cloneDeep(v));return w?(L=JSON.parse(w),L.overlays?L.overlays.find(T=>{var O;return((O=T.value)==null?void 0:O.id)===$.id})?L.overlays=L.overlays.map(T=>{var O;return((O=T.value)==null?void 0:O.id)!==$.id?T:{value:$,paneId:v.paneId}}):L.overlays.push({value:$,paneId:v.paneId}):L.overlays=[{value:v,paneId:v.paneId}]):L={overlays:[{value:$,paneId:v.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(L)),jn(!0),!1};function i(v,w,L,$,T=!1){w==="VOL"&&($={axis:{gap:{bottom:2}},...$});const O=($==null?void 0:$.id)==="candle_pane",E=v.createIndicator({name:w,createTooltipDataSource:U=>{const Y=U.chart.getStyles().indicator.tooltip.features,I=[];return O&&I.push(U.indicator.visible?Y[1]:Y[0]),I.push(Y[2]),I.push(Y[3]),{features:I}}},L,$)??null;if(E&&T){const U=v==null?void 0:v.getIndicators({id:E,name:w})[0];U&&e(U,L,{id:E})}return E}const a=(v,w,L=!1)=>{var E,U,X;const $=(E=ie())==null?void 0:E.createOverlay({...v,paneId:w});if(!$)return!1;const T=(U=ie())==null?void 0:U.getOverlays({id:$})[0],O=Y=>(Y.preventDefault&&Y.preventDefault(),s(Y.overlay.id),!0);T&&(v.properties&&T.setProperties(v.properties,$),(X=ie())==null||X.overrideOverlay({id:T.id,onDrawEnd:Y=>["measure"].includes(T.name)?!1:n(Y.overlay),onPressedMoveEnd:Y=>["measure"].includes(T.name)?!1:n(Y.overlay),onSelected:Y=>_i(Y.overlay),onDeselected:()=>_i(null),onRightClick:T.onRightClick?T.onRightClick:O,onDoubleClick:T.onDoubleClick?T.onDoubleClick:O}),L||n(T))},s=v=>{var L,$,T;const w=localStorage.getItem("chartstatedata");if(w){let O=JSON.parse(w);O.overlays=(L=O.overlays)==null?void 0:L.filter(E=>{var U;return((U=E.value)==null?void 0:U.id)!==v}),localStorage.setItem("chartstatedata",JSON.stringify(O)),jn(!0)}($=ie())==null||$.removeOverlay({id:v}),((T=Ey())==null?void 0:T.id)===v&&_i(null)},l=(v,w)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let O=JSON.parse(L);O.overlays=($=O.overlays)==null?void 0:$.map(E=>{var U;return((U=E.value)==null?void 0:U.id)===v&&(E.value={...E.value,...w},E.paneId=w.paneId??E.paneId),E}),localStorage.setItem("chartstatedata",JSON.stringify(O)),jn(!0),(T=ie())==null||T.overrideOverlay({...w,id:v})}},c=(v,w)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let O=JSON.parse(L);O.overlays=($=O.overlays)==null?void 0:$.map(U=>{var X;return((X=U.value)==null?void 0:X.id)===v&&(U.value.properties={...U.value.properties,...w}),U});const E=(T=ie())==null?void 0:T.getOverlayById(v);E&&E.setProperties(w,v),localStorage.setItem("chartstatedata",JSON.stringify(O)),jn(!0)}},f=v=>{const w=[...q9()];v.added?(i(ie(),v.name,!0,{id:"candle_pane"},!0),w.push(v.name)):(_(v.name,"candle_pane"),w.splice(w.indexOf(v.name),1)),X9(w)},d=v=>{const w={...J9()};if(v.added){const L=i(ie(),v.name,!1,void 0,!0);L&&(w[v.name]=L)}else v.paneId&&(_(v.name,v.paneId),delete w[v.name]);e5(w)},g=(v,w)=>{var $,T;const L=localStorage.getItem("chartstatedata");if(L){let O=JSON.parse(L);O.indicators=($=O.indicators)==null?void 0:$.map(E=>{var U;return((U=E.value)==null?void 0:U.name)===v.indicatorName&&(E.value.name=v.indicatorName,E.value.calcParams=w,E.paneOptions.id=v.paneId),E}),localStorage.setItem("chartstatedata",JSON.stringify(O)),jn(!0),(T=ie())==null||T.overrideIndicator({name:v.indicatorName,calcParams:w,paneId:v.paneId})}},_=(v,w,L)=>{var T,O;const $=localStorage.getItem("chartstatedata");if((T=ie())==null||T.removeIndicator({id:v,paneId:L,name:w}),$){let E=JSON.parse($);E.indicators=(O=E.indicators)==null?void 0:O.filter(U=>{var X,Y;return((X=U.paneOptions)==null?void 0:X.id)!==L&&((Y=U.value)==null?void 0:Y.name)!==w}),localStorage.setItem("chartstatedata",JSON.stringify(E)),jn(!0)}},y=(v,w)=>{document.documentElement.style.setProperty(v,w,"important");const L=document.querySelector("[data-theme]");L&&L.style.setProperty(v,w,"important")},b=v=>{var w;v.background&&y("--klinecharts-pro-pane-background",v.background),v.backgroundGradientStartColor&&y("--klinecharts-pro-pane-background-gradient-start",v.backgroundGradientStartColor),v.backgroundGradientEndColor&&y("--klinecharts-pro-pane-background-gradient-end",v.backgroundGradientEndColor),(w=v.separator)!=null&&w.color&&y("--klinecharts-pro-border-color",v.separator.color)};return{createIndicator:i,modifyIndicator:g,popIndicator:_,syncIndiObject:e,syncObject:n,pushOverlay:a,modifyOverlay:l,modifyOverlayProperties:c,popOverlay:s,pushMainIndicator:f,pushSubIndicator:d,restoreChartState:async v=>{const w=T=>{const O=JSON.parse(T);O.figures,O.overlays&&O.overlays.forEach(E=>{a(E.value,E.paneId,!0)}),O.indicators&&setTimeout(()=>{const E=[...q9()],U={...J9};O.indicators.forEach(X=>{var Y,I,z;X.value&&((Y=ie())==null||Y.createIndicator(X.value,X.isStack,X.paneOptions),((I=X.paneOptions)==null?void 0:I.id)==="candle_pane"?E.push(X.value.name):U[X.value.name]=(z=X.paneOptions)==null?void 0:z.id)}),X9(E),e5(U)},500)},L=localStorage.getItem("chartstatedata");L&&w(L);const $=JSON.parse(L)??{};v&&(b(v),$.styleObj||($.styleObj=v,localStorage.setItem("chartstatedata",JSON.stringify($)))),$.styleObj&&j9($.styleObj)}}};function kb(e,n){let i=null;const a=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:l=>{const f=l.detail;if(!!(f!=null&&f.visible)){a(),n({visible:!0,order:(f==null?void 0:f.order)??null,x:(f==null?void 0:f.anchorX)??null,y:(f==null?void 0:f.anchorY)??null});return}a(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:a}}function Ab(e,n){const i=[];let a=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{a+=1;const c=a;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==a)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var Mb=N('<i class="icon-close klinecharts-pro-load-icon">'),Tb=N("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),Pb=N("<div class=klinecharts-pro-alert-detail>");const{createIndicator:mo,pushOverlay:Ob,restoreChartState:Ib}=Sb(),Eb=[0,120,360,900],Db=120,w5="alert_overlays",Rb=["price_reach","price_rise_to","price_fall_to"];function Bb(e){return{indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const Fb=e=>{let n,i;const[a,s]=G(e.theme),[l,c]=G(e.locale),[f,d]=G(!1),[g,_]=G([...e.mainIndicators]),[y,b]=G({}),[k,v]=G(!1),[w,L]=G({key:e.timezone,text:o5(e.timezone,e.locale)}),[$,T]=G(!1),[O,E]=G(!1),[U,X]=G(),[Y,I]=G(""),[z,V]=G(e.drawingBarVisible),[Q,ne]=G([...e.alerts??[]]),[ee,Te]=G(null),[ae,_t]=G(!1),[wt,rt]=G(!1),[Je,Le]=G(null),[Ge,ze]=G({x:null,y:null});let et=null,oe=!1,ke=null,ue=!1,Ie;const[it,qe]=G(x5),Tt=R=>R.replace(/[^a-zA-Z0-9_-]/g,"_"),en=()=>{var Rt;const R=ie(),j=m1();if(!R||!j)return;const $e=((Rt=R.getDataList().at(-1))==null?void 0:Rt.timestamp)??Date.now(),Pe=Q().filter(We=>!(!Rb.includes(We.type)||!Number.isFinite(We.price)||We.symbol&&We.symbol!==j.ticker)),dt=new Set;Pe.forEach((We,Bt)=>{const te=`alert-${Tt(We.id||`idx_${Bt}`)}`;dt.add(te);const ft=(R.getOverlays({id:te})??[]).length>0,Ee={id:te,name:"priceAlertLine",groupId:w5,paneId:"candle_pane",mode:"normal",points:[{timestamp:$e,value:We.price}],extendData:{alert:We,showInfo:!1}};ft?R.overrideOverlay({id:te,points:Ee.points,extendData:Ee.extendData}):R.createOverlay(Ee)}),(R.getOverlays({groupId:w5})??[]).forEach(We=>{We.id&&!dt.has(We.id)&&R.removeOverlay({id:We.id})})},zn=async R=>{var j;await((j=e.onRemoveAlert)==null?void 0:j.call(e,R))};Y6({onRemove:R=>{zn(R)}}),fo(e.period),uo(e.symbol);const kn=kb(Db,R=>{rt(R.visible),Le(R.order),ze({x:R.x,y:R.y})}),Xn=Ab(()=>hr(ie()),Eb),pt=wb({getApi:()=>ie(),mainIndicators:g,setMainIndicators:_,subIndicators:y,setSubIndicators:b,indicatorSettingModalParams:it,setIndicatorSettingModalParams:qe,createIndicator:mo}),Be=R=>{const j=R.detail;j!=null&&j.alert&&Te(j.alert)},Dt=()=>{oe||(oe=!0,kn.clear(),Xn.clear(),et!=null&&(window.cancelAnimationFrame(et),et=null),window.removeEventListener(R1,kn.onEvent),window.removeEventListener(p0,Be),window.removeEventListener("resize",Lt),n&&fe.dispose(n))},tt={setTheme:s,getTheme:()=>a(),setStyles:j9,getStyles:()=>Q9()??{},setLocale:c,getLocale:()=>l(),setTimezone:R=>{L({key:R,text:o5(e.timezone,l())})},getTimezone:()=>w().key,setSymbol:uo,getSymbol:()=>m1(),setPeriod:fo,getPeriod:()=>y1(),getInstanceApi:()=>ie(),resize:()=>{var R;return(R=ie())==null?void 0:R.resize()},dispose:()=>{Dt()},setPositions:R=>{Dv(R,ie())},setLiqPrice:R=>{Rv(R,ie())},setOpenOrders:R=>{Bv(R,ie())},setHisOrders:R=>{Fv(R,ie())},setAlerts:R=>{ne([...R]),en()}};e.ref(tt);const Lt=()=>{et==null&&(et=window.requestAnimationFrame(()=>{var R;et=null,(R=ie())==null||R.resize()}))},tn=()=>{Xn.schedule()};return b0(()=>{var j,$e,Ce,Pe,dt,pn,Rt,We,Bt,nn;if(window.addEventListener(R1,kn.onEvent),window.addEventListener(p0,Be),window.addEventListener("resize",Lt),Oy(po.init(n,{formatter:{formatDate:te=>{switch(y1().type){case"minute":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"HH:mm"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"hour":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"MM-DD HH:mm"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"month":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD");case"year":return te.type==="xAxis"?fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY"):fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD")}return fe.utils.formatDate(te.dateTimeFormat,te.timestamp,"YYYY-MM-DD HH:mm")}}})),ie()){Ay(e.rootElementId);const te=ie().getDom("candle_pane","main");if(te){let mt=document.createElement("div");if(mt.className="klinecharts-pro-watermark",fe.utils.isString(e.watermark)){const Jn=e.watermark.replace(/(^\s*)|(\s*$)/g,"");mt.innerHTML=Jn}else mt.appendChild(e.watermark);te.appendChild(mt)}const ft=ie().getDom("candle_pane","yAxis");i=document.createElement("span"),i.className="klinecharts-pro-price-unit",ft==null||ft.appendChild(i),(j=ie())==null||j.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),($e=ie())==null||$e.setBarSpace(400),(Ce=ie())==null||Ce.subscribeAction("onCrosshairFeatureClick",mt=>{}),(Pe=ie())==null||Pe.subscribeAction("onIndicatorTooltipFeatureClick",pt.onIndicatorTooltipFeatureClick),(dt=ie())==null||dt.subscribeAction("onCandleTooltipFeatureClick",mt=>{}),(pn=ie())==null||pn.subscribeAction("onZoom",mt=>{}),(Rt=ie())==null||Rt.subscribeAction("onCrosshairChange",mt=>{}),Ib(e.overrides),Ev(ie()),bi(ie()),hr(ie()),en();const Ee=m1();Ee!=null&&Ee.priceCurrency?(i.innerHTML=Ee==null?void 0:Ee.priceCurrency.toLocaleUpperCase(),i.style.display="flex"):i.style.display="none",(We=ie())==null||We.setSymbol({ticker:Ee.ticker,pricePrecision:(Ee==null?void 0:Ee.pricePrecision)??2,volumePrecision:(Ee==null?void 0:Ee.volumePrecision)??0}),(Bt=ie())==null||Bt.setPeriod(y1()),(nn=ie())==null||nn.setDataLoader(e.dataloader)}const R=ie();if(R){g().forEach(ft=>{mo(R,ft,!0,{id:"candle_pane"})});const te={};e.subIndicators.forEach(ft=>{const Ee=mo(R,ft,!0);Ee&&(te[ft]=Ee)}),b(te)}}),wr(()=>{Dt()}),At(R=>{var We,Bt,nn,te,ft,Ee,mt;const j=m1(),$e=y1(),Ce=ie();if(!j||!$e)return{symbol:j,period:$e};const Pe=R!==void 0&&(R.period.span!==$e.span||R.period.type!==$e.type||R.period.text!==$e.text),dt=R!==void 0&&(((We=R.symbol)==null?void 0:We.ticker)!==j.ticker||(((Bt=R.symbol)==null?void 0:Bt.pricePrecision)??2)!==(j.pricePrecision??2)||(((nn=R.symbol)==null?void 0:nn.volumePrecision)??0)!==(j.volumePrecision??0)),pn=R!==void 0&&((te=R.symbol)==null?void 0:te.ticker)===j.ticker&&((((ft=R.symbol)==null?void 0:ft.pricePrecision)??2)!==(j.pricePrecision??2)||(((Ee=R.symbol)==null?void 0:Ee.volumePrecision)??0)!==(j.volumePrecision??0));return R!==void 0&&((mt=R.symbol)==null?void 0:mt.ticker)!==j.ticker&&_i(null),Pe&&(Ce==null||Ce.setPeriod($e),tn()),Pe&&!dt||(Ce==null||Ce.setSymbol({...j,pricePrecision:j.pricePrecision??2,volumePrecision:j.volumePrecision??0}),tn(),pn&&(Ce==null||Ce.resize())),en(),{symbol:j,period:$e}}),At(()=>{const R=ie();if(!R)return;const j=a();R.setStyles(j);const $e=j==="dark"?"#929AA5":"#76808F";ke!==$e&&(ke=$e,R.setStyles(Bb($e)))}),At(()=>{var R;(R=ie())==null||R.setLocale(l())}),At(()=>{var R;(R=ie())==null||R.setTimezone(w().key)}),At(()=>{const R=ie();!R||ue||(X(Vh(R.getStyles())),ue=!0)}),At(()=>{const R=ie();if(!R)return;const j=Q9();!j||Ie===j||(Ie=j,R.setStyles(j))}),At(()=>{Q(),en()}),At(()=>{const R=n;if(!R||!$()&&!O()&&!ee())return;const j=$e=>{$e.preventDefault(),$e.stopPropagation()};R.addEventListener("wheel",j,{passive:!1}),R.addEventListener("touchmove",j,{passive:!1}),wr(()=>{R.removeEventListener("wheel",j),R.removeEventListener("touchmove",j)})}),[Mb(),Z(Me,{get when(){return ae()},get children(){return Z(nb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:R=>{uo(R)},onClose:()=>{_t(!1)}})}}),Z(Me,{get when(){return f()},get children(){return Z(bv,{get locale(){return e.locale},get mainIndicators(){return g()},get subIndicators(){return y()},onClose:()=>{d(!1)},get onMainIndicatorChange(){return pt.onMainIndicatorChange},get onSubIndicatorChange(){return pt.onSubIndicatorChange}})}}),Z(Me,{get when(){return k()},get children(){return Z(wv,{get locale(){return e.locale},get timezone(){return w()},onClose:()=>{v(!1)},onConfirm:L})}}),Z(Me,{get when(){return O()},get children(){return Z(xb,{get alerts(){return Q()},onClose:()=>{E(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:zn})}}),Z(Me,{get when(){return ee()},children:R=>Z($n,{title:"预警详情",width:400,height:260,onClose:()=>{Te(null)},get children(){var j=Pb();return W(j,Z(C5,{get alert(){return R()}})),j}})}),Z(Me,{get when(){return $()},get children(){return Z(Hv,{get locale(){return e.locale},get currentStyles(){return fe.utils.clone(ie().getStyles())},onClose:()=>{T(!1)},onChange:R=>{var j;(j=ie())==null||j.setStyles(R)},onRestoreDefault:R=>{var $e;const j={};R.forEach(Ce=>{const Pe=Ce.key;d1(j,Pe,fe.utils.formatValue(U(),Pe))}),($e=ie())==null||$e.setStyles(j)}})}}),Z(Me,{get when(){return Y().length>0},get children(){return Z(Gv,{get locale(){return e.locale},get url(){return Y()},onClose:()=>{I("")}})}}),Z(Me,{get when(){return it().visible},get children(){return Z(qv,{get locale(){return e.locale},get params(){return it()},onClose:()=>{qe(x5)},get onConfirm(){return pt.onIndicatorSettingConfirm}})}}),Z(Me,{get when(){return Qe(()=>!!wt())()&&!!Je()},get children(){return Z($y,{get order(){return Je()},get formattedTime(){return b6(Je().timestamp,e.locale,w().key)},get anchorX(){return Ge().x},get anchorY(){return Ge().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),Z(Wy,{get locale(){return e.locale},get symbol(){return m1()},get spread(){return z()},get period(){return y1()},get periods(){return e.periods},onMenuClick:async()=>{var R;try{await ac(()=>V(!z())),(R=ie())==null||R.resize()}catch{}},onSymbolClick:()=>{_t(!ae())},onPeriodChange:fo,onIndicatorClick:()=>{d(R=>!R)},onTimezoneClick:()=>{v(R=>!R)},onAlertClick:()=>{E(!0)},onSettingClick:()=>{T(R=>!R)},onScreenshotClick:()=>{if(ie()){const R=ie().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");I(R)}}}),(()=>{var R=Tb(),j=R.firstChild;W(R,Z(Me,{get when(){return Py()},get children(){return Z(e9,{})}}),j),W(R,Z(Me,{get when(){return z()},get children(){return Z(_v,{get locale(){return e.locale},onDrawingItemClick:Ce=>{Ob(Ce,"candle_pane")},onModeChange:Ce=>{var Pe;(Pe=ie())==null||Pe.overrideOverlay({groupId:"drawing_tools",mode:Ce})},onLockChange:Ce=>{var Pe;(Pe=ie())==null||Pe.overrideOverlay({groupId:"drawing_tools",lock:Ce})},onVisibleChange:Ce=>{var Pe;(Pe=ie())==null||Pe.overrideOverlay({groupId:"drawing_tools",visible:Ce})},onRemoveClick:Ce=>{var Pe;(Pe=ie())==null||Pe.removeOverlay({groupId:Ce})}})}}),j);var $e=n;return typeof $e=="function"?Q1($e,j):n=j,Ae(Ce=>{var Pe=e.overrides.backgroundType??"solid",dt=z();return Pe!==Ce.e&<(j,"data-pane-style",Ce.e=Pe),dt!==Ce.t&<(j,"data-drawing-bar-visible",Ce.t=dt),Ce},{e:void 0,t:void 0}),R})()]};class zb{constructor(n){Cn(this,"_datafeed");Cn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:a,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,V9(!0);const d=a??new Date().getTime();await(async()=>{const[_,y]=this.adjustFromTo(f,d,500),b=await this._datafeed.getHistoryKLineData(s,f,_,y);c(b,b.length>0),this._loading=!1,V9(!1)})()}subscribeBar(n){const{symbol:i,period:a,callback:s}=n;this._datafeed.subscribe(i,a,s)}unsubscribeBar(n){const{symbol:i,period:a}=n;this._datafeed.unsubscribe(i,a)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,a){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-a*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-a*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-a*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-a*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-a*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-a*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var Nb=N('<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 Wb=Nb();class Kb{constructor(n){Cn(this,"_container");Cn(this,"_chartApi",null);if(fe.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new zb(n.datafeed);yc(()=>{const a=this;return Z(Fb,{ref:s=>{a._chartApi=s},get watermark(){return n.watermark??Wb},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??["MA"]},get subIndicators(){return n.subIndicators??["VOL"]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get alerts(){return n.alerts??[]},get onAddAlert(){return n.onAddAlert??(()=>{})},get onRemoveAlert(){return n.onRemoveAlert??(()=>{})},get rootElementId(){var s;return n.rootElementId??((s=a._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&fe.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return ie()}resize(){ie().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setAlerts(n){var i;(i=this._chartApi)==null||i.setAlerts(n)}}const sI="";console.log("[@wangliang139/klinecharts-pro] v0.2.19"),j6.forEach(e=>{fe.registerOverlay(e)}),kt.DefaultDatafeed=q6,kt.KLineChartPro=Kb,kt.loadLocales=Sy,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});
|
|
40
40
|
//# sourceMappingURL=klinecharts-pro.umd.js.map
|