@wangliang139/klinecharts-pro 0.2.27 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- (function(At,ue){typeof exports=="object"&&typeof module<"u"?ue(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],ue):(At=typeof globalThis<"u"?globalThis:At||self,ue(At.klinechartspro={},At.klinecharts))})(this,function(At,ue){"use strict";var IA=Object.defineProperty;var EA=(At,ue,an)=>ue in At?IA(At,ue,{enumerable:!0,configurable:!0,writable:!0,value:an}):At[ue]=an;var yn=(At,ue,an)=>(EA(At,typeof ue!="symbol"?ue+"":ue,an),an);function an(e,n,i){const o=(e.x-n.x)*Math.cos(i)-(e.y-n.y)*Math.sin(i)+n.x,s=(e.x-n.x)*Math.sin(i)+(e.y-n.y)*Math.cos(i)+n.y;return{x:o,y:s}}function d0(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:ue.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:i={x:n.width,y:ue.utils.getLinearYFromCoordinates(e[0],e[1],{x:n.width,y:e[0].y})},{coordinates:[e[0],i]}}return[]}function Ta(e,n){const i=Math.abs(e.x-n.x),o=Math.abs(e.y-n.y);return Math.sqrt(i*i+o*o)}var kn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R1={exports:{}};/**
1
+ (function(At,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],fe):(At=typeof globalThis<"u"?globalThis:At||self,fe(At.klinechartspro={},At.klinecharts))})(this,function(At,fe){"use strict";var QA=Object.defineProperty;var XA=(At,fe,un)=>fe in At?QA(At,fe,{enumerable:!0,configurable:!0,writable:!0,value:un}):At[fe]=un;var xn=(At,fe,un)=>(XA(At,typeof fe!="symbol"?fe+"":fe,un),un);function un(e,n,i){const o=(e.x-n.x)*Math.cos(i)-(e.y-n.y)*Math.sin(i)+n.x,s=(e.x-n.x)*Math.sin(i)+(e.y-n.y)*Math.cos(i)+n.y;return{x:o,y:s}}function x0(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 Ka(e,n){const i=Math.abs(e.x-n.x),o=Math.abs(e.y-n.y);return Math.sqrt(i*i+o*o)}var In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U1={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
- */R1.exports,function(e,n){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",b=500,y="__lodash_placeholder__",v=1,$=2,_=4,x=1,L=2,S=1,T=2,P=4,E=8,Z=16,J=32,G=64,I=128,N=256,Q=512,q=30,ne="...",te=800,Pe=16,oe=1,pt=2,mt=3,tt=1/0,lt=9007199254740991,we=17976931348623157e292,qe=0/0,Be=4294967295,yt=Be-1,re=Be>>>1,Ae=[["ary",I],["bind",S],["bindKey",T],["curry",E],["curryRight",Z],["flip",Q],["partial",J],["partialRight",G],["rearg",N]],ce="[object Arguments]",Ee="[object Array]",ct="[object AsyncFunction]",Ge="[object Boolean]",xt="[object Date]",wn="[object DOMException]",un="[object Error]",qt="[object Function]",Jn="[object GeneratorFunction]",wt="[object Map]",Oe="[object Number]",Lt="[object Null]",Ze="[object Object]",$t="[object Promise]",fn="[object Proxy]",Je="[object RegExp]",ut="[object Set]",R="[object String]",W="[object Symbol]",ve="[object Undefined]",j="[object WeakMap]",xe="[object WeakSet]",$e="[object ArrayBuffer]",ht="[object DataView]",Bn="[object Float32Array]",er="[object Float64Array]",Ne="[object Int8Array]",tr="[object Int16Array]",Fn="[object Int32Array]",Nn="[object Uint8Array]",zn="[object Uint8ClampedArray]",Kn="[object Uint16Array]",mo="[object Uint32Array]",nC=/\b__p \+= '';/g,rC=/\b(__p \+=) '' \+/g,iC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,T5=/&(?:amp|lt|gt|quot|#39);/g,P5=/[&<>"']/g,oC=RegExp(T5.source),aC=RegExp(P5.source),sC=/<%-([\s\S]+?)%>/g,lC=/<%([\s\S]+?)%>/g,O5=/<%=([\s\S]+?)%>/g,cC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uC=/^\w*$/,fC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yo=/[\\^$.*+?()[\]{}|]/g,dC=RegExp(yo.source),_o=/^\s+/,hC=/\s/,gC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pC=/\{\n\/\* \[wrapped with (.+)\] \*/,mC=/,? & /,yC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,I5=/[()=,{}\[\]\/\s]/,_C=/\\(\\)?/g,vC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,E5=/\w*$/,bC=/^[-+]0x[0-9a-f]+$/i,CC=/^0b[01]+$/i,xC=/^\[object .+?Constructor\]$/,wC=/^0o[0-7]+$/i,LC=/^(?:0|[1-9]\d*)$/,$C=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$i=/($^)/,SC=/['\n\r\u2028\u2029\\]/g,Si="\\ud800-\\udfff",kC="\\u0300-\\u036f",AC="\\ufe20-\\ufe2f",MC="\\u20d0-\\u20ff",D5=kC+AC+MC,R5="\\u2700-\\u27bf",B5="a-z\\xdf-\\xf6\\xf8-\\xff",TC="\\xac\\xb1\\xd7\\xf7",PC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",OC="\\u2000-\\u206f",IC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",F5="A-Z\\xc0-\\xd6\\xd8-\\xde",N5="\\ufe0e\\ufe0f",z5=TC+PC+OC+IC,vo="['’]",EC="["+Si+"]",K5="["+z5+"]",ki="["+D5+"]",H5="\\d+",DC="["+R5+"]",W5="["+B5+"]",U5="[^"+Si+z5+H5+R5+B5+F5+"]",bo="\\ud83c[\\udffb-\\udfff]",RC="(?:"+ki+"|"+bo+")",Z5="[^"+Si+"]",Co="(?:\\ud83c[\\udde6-\\uddff]){2}",xo="[\\ud800-\\udbff][\\udc00-\\udfff]",Vr="["+F5+"]",Y5="\\u200d",G5="(?:"+W5+"|"+U5+")",BC="(?:"+Vr+"|"+U5+")",V5="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",Q5="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",j5=RC+"?",q5="["+N5+"]?",FC="(?:"+Y5+"(?:"+[Z5,Co,xo].join("|")+")"+q5+j5+")*",NC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",X5=q5+j5+FC,KC="(?:"+[DC,Co,xo].join("|")+")"+X5,HC="(?:"+[Z5+ki+"?",ki,Co,xo,EC].join("|")+")",WC=RegExp(vo,"g"),UC=RegExp(ki,"g"),wo=RegExp(bo+"(?="+bo+")|"+HC+X5,"g"),ZC=RegExp([Vr+"?"+W5+"+"+V5+"(?="+[K5,Vr,"$"].join("|")+")",BC+"+"+Q5+"(?="+[K5,Vr+G5,"$"].join("|")+")",Vr+"?"+G5+"+"+V5,Vr+"+"+Q5,zC,NC,H5,KC].join("|"),"g"),YC=RegExp("["+Y5+Si+D5+N5+"]"),GC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,VC=["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"],QC=-1,Ye={};Ye[Bn]=Ye[er]=Ye[Ne]=Ye[tr]=Ye[Fn]=Ye[Nn]=Ye[zn]=Ye[Kn]=Ye[mo]=!0,Ye[ce]=Ye[Ee]=Ye[$e]=Ye[Ge]=Ye[ht]=Ye[xt]=Ye[un]=Ye[qt]=Ye[wt]=Ye[Oe]=Ye[Ze]=Ye[Je]=Ye[ut]=Ye[R]=Ye[j]=!1;var We={};We[ce]=We[Ee]=We[$e]=We[ht]=We[Ge]=We[xt]=We[Bn]=We[er]=We[Ne]=We[tr]=We[Fn]=We[wt]=We[Oe]=We[Ze]=We[Je]=We[ut]=We[R]=We[W]=We[Nn]=We[zn]=We[Kn]=We[mo]=!0,We[un]=We[qt]=We[j]=!1;var jC={À:"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"},qC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},XC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},JC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ex=parseFloat,tx=parseInt,J5=typeof kn=="object"&&kn&&kn.Object===Object&&kn,nx=typeof self=="object"&&self&&self.Object===Object&&self,_t=J5||nx||Function("return this")(),Lo=n&&!n.nodeType&&n,pr=Lo&&!0&&e&&!e.nodeType&&e,el=pr&&pr.exports===Lo,$o=el&&J5.process,Xt=function(){try{var A=pr&&pr.require&&pr.require("util").types;return A||$o&&$o.binding&&$o.binding("util")}catch{}}(),tl=Xt&&Xt.isArrayBuffer,nl=Xt&&Xt.isDate,rl=Xt&&Xt.isMap,il=Xt&&Xt.isRegExp,ol=Xt&&Xt.isSet,al=Xt&&Xt.isTypedArray;function zt(A,D,O){switch(O.length){case 0:return A.call(D);case 1:return A.call(D,O[0]);case 2:return A.call(D,O[0],O[1]);case 3:return A.call(D,O[0],O[1],O[2])}return A.apply(D,O)}function rx(A,D,O,ee){for(var fe=-1,Ie=A==null?0:A.length;++fe<Ie;){var ft=A[fe];D(ee,ft,O(ft),A)}return ee}function Kt(A,D){for(var O=-1,ee=A==null?0:A.length;++O<ee&&D(A[O],O,A)!==!1;);return A}function ix(A,D){for(var O=A==null?0:A.length;O--&&D(A[O],O,A)!==!1;);return A}function sl(A,D){for(var O=-1,ee=A==null?0:A.length;++O<ee;)if(!D(A[O],O,A))return!1;return!0}function nr(A,D){for(var O=-1,ee=A==null?0:A.length,fe=0,Ie=[];++O<ee;){var ft=A[O];D(ft,O,A)&&(Ie[fe++]=ft)}return Ie}function Ai(A,D){var O=A==null?0:A.length;return!!O&&Qr(A,D,0)>-1}function So(A,D,O){for(var ee=-1,fe=A==null?0:A.length;++ee<fe;)if(O(D,A[ee]))return!0;return!1}function Ve(A,D){for(var O=-1,ee=A==null?0:A.length,fe=Array(ee);++O<ee;)fe[O]=D(A[O],O,A);return fe}function rr(A,D){for(var O=-1,ee=D.length,fe=A.length;++O<ee;)A[fe+O]=D[O];return A}function ko(A,D,O,ee){var fe=-1,Ie=A==null?0:A.length;for(ee&&Ie&&(O=A[++fe]);++fe<Ie;)O=D(O,A[fe],fe,A);return O}function ox(A,D,O,ee){var fe=A==null?0:A.length;for(ee&&fe&&(O=A[--fe]);fe--;)O=D(O,A[fe],fe,A);return O}function Ao(A,D){for(var O=-1,ee=A==null?0:A.length;++O<ee;)if(D(A[O],O,A))return!0;return!1}var ax=Mo("length");function sx(A){return A.split("")}function lx(A){return A.match(yC)||[]}function ll(A,D,O){var ee;return O(A,function(fe,Ie,ft){if(D(fe,Ie,ft))return ee=Ie,!1}),ee}function Mi(A,D,O,ee){for(var fe=A.length,Ie=O+(ee?1:-1);ee?Ie--:++Ie<fe;)if(D(A[Ie],Ie,A))return Ie;return-1}function Qr(A,D,O){return D===D?bx(A,D,O):Mi(A,cl,O)}function cx(A,D,O,ee){for(var fe=O-1,Ie=A.length;++fe<Ie;)if(ee(A[fe],D))return fe;return-1}function cl(A){return A!==A}function ul(A,D){var O=A==null?0:A.length;return O?Po(A,D)/O:qe}function Mo(A){return function(D){return D==null?i:D[A]}}function To(A){return function(D){return A==null?i:A[D]}}function fl(A,D,O,ee,fe){return fe(A,function(Ie,ft,Ke){O=ee?(ee=!1,Ie):D(O,Ie,ft,Ke)}),O}function ux(A,D){var O=A.length;for(A.sort(D);O--;)A[O]=A[O].value;return A}function Po(A,D){for(var O,ee=-1,fe=A.length;++ee<fe;){var Ie=D(A[ee]);Ie!==i&&(O=O===i?Ie:O+Ie)}return O}function Oo(A,D){for(var O=-1,ee=Array(A);++O<A;)ee[O]=D(O);return ee}function fx(A,D){return Ve(D,function(O){return[O,A[O]]})}function dl(A){return A&&A.slice(0,ml(A)+1).replace(_o,"")}function Ht(A){return function(D){return A(D)}}function Io(A,D){return Ve(D,function(O){return A[O]})}function C1(A,D){return A.has(D)}function hl(A,D){for(var O=-1,ee=A.length;++O<ee&&Qr(D,A[O],0)>-1;);return O}function gl(A,D){for(var O=A.length;O--&&Qr(D,A[O],0)>-1;);return O}function dx(A,D){for(var O=A.length,ee=0;O--;)A[O]===D&&++ee;return ee}var hx=To(jC),gx=To(qC);function px(A){return"\\"+JC[A]}function mx(A,D){return A==null?i:A[D]}function jr(A){return YC.test(A)}function yx(A){return GC.test(A)}function _x(A){for(var D,O=[];!(D=A.next()).done;)O.push(D.value);return O}function Eo(A){var D=-1,O=Array(A.size);return A.forEach(function(ee,fe){O[++D]=[fe,ee]}),O}function pl(A,D){return function(O){return A(D(O))}}function ir(A,D){for(var O=-1,ee=A.length,fe=0,Ie=[];++O<ee;){var ft=A[O];(ft===D||ft===y)&&(A[O]=y,Ie[fe++]=O)}return Ie}function Ti(A){var D=-1,O=Array(A.size);return A.forEach(function(ee){O[++D]=ee}),O}function vx(A){var D=-1,O=Array(A.size);return A.forEach(function(ee){O[++D]=[ee,ee]}),O}function bx(A,D,O){for(var ee=O-1,fe=A.length;++ee<fe;)if(A[ee]===D)return ee;return-1}function Cx(A,D,O){for(var ee=O+1;ee--;)if(A[ee]===D)return ee;return ee}function qr(A){return jr(A)?wx(A):ax(A)}function dn(A){return jr(A)?Lx(A):sx(A)}function ml(A){for(var D=A.length;D--&&hC.test(A.charAt(D)););return D}var xx=To(XC);function wx(A){for(var D=wo.lastIndex=0;wo.test(A);)++D;return D}function Lx(A){return A.match(wo)||[]}function $x(A){return A.match(ZC)||[]}var Sx=function A(D){D=D==null?_t:Xr.defaults(_t.Object(),D,Xr.pick(_t,VC));var O=D.Array,ee=D.Date,fe=D.Error,Ie=D.Function,ft=D.Math,Ke=D.Object,Do=D.RegExp,kx=D.String,Jt=D.TypeError,Pi=O.prototype,Ax=Ie.prototype,Jr=Ke.prototype,Oi=D["__core-js_shared__"],Ii=Ax.toString,De=Jr.hasOwnProperty,Mx=0,yl=function(){var t=/[^.]+$/.exec(Oi&&Oi.keys&&Oi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ei=Jr.toString,Tx=Ii.call(Ke),Px=_t._,Ox=Do("^"+Ii.call(De).replace(yo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Di=el?D.Buffer:i,or=D.Symbol,Ri=D.Uint8Array,_l=Di?Di.allocUnsafe:i,Bi=pl(Ke.getPrototypeOf,Ke),vl=Ke.create,bl=Jr.propertyIsEnumerable,Fi=Pi.splice,Cl=or?or.isConcatSpreadable:i,x1=or?or.iterator:i,mr=or?or.toStringTag:i,Ni=function(){try{var t=Cr(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),Ix=D.clearTimeout!==_t.clearTimeout&&D.clearTimeout,Ex=ee&&ee.now!==_t.Date.now&&ee.now,Dx=D.setTimeout!==_t.setTimeout&&D.setTimeout,zi=ft.ceil,Ki=ft.floor,Ro=Ke.getOwnPropertySymbols,Rx=Di?Di.isBuffer:i,xl=D.isFinite,Bx=Pi.join,Fx=pl(Ke.keys,Ke),dt=ft.max,St=ft.min,Nx=ee.now,zx=D.parseInt,wl=ft.random,Kx=Pi.reverse,Bo=Cr(D,"DataView"),w1=Cr(D,"Map"),Fo=Cr(D,"Promise"),e1=Cr(D,"Set"),L1=Cr(D,"WeakMap"),$1=Cr(Ke,"create"),Hi=L1&&new L1,t1={},Hx=xr(Bo),Wx=xr(w1),Ux=xr(Fo),Zx=xr(e1),Yx=xr(L1),Wi=or?or.prototype:i,S1=Wi?Wi.valueOf:i,Ll=Wi?Wi.toString:i;function p(t){if(et(t)&&!pe(t)&&!(t instanceof Se)){if(t instanceof en)return t;if(De.call(t,"__wrapped__"))return $2(t)}return new en(t)}var n1=function(){function t(){}return function(r){if(!Xe(r))return{};if(vl)return vl(r);t.prototype=r;var a=new t;return t.prototype=i,a}}();function Ui(){}function en(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:sC,evaluate:lC,interpolate:O5,variable:"",imports:{_:p}},p.prototype=Ui.prototype,p.prototype.constructor=p,en.prototype=n1(Ui.prototype),en.prototype.constructor=en;function Se(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Be,this.__views__=[]}function Gx(){var t=new Se(this.__wrapped__);return t.__actions__=Dt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Dt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Dt(this.__views__),t}function Vx(){if(this.__filtered__){var t=new Se(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Qx(){var t=this.__wrapped__.value(),r=this.__dir__,a=pe(t),u=r<0,h=a?t.length:0,m=sL(0,h,this.__views__),w=m.start,k=m.end,M=k-w,B=u?k:w-1,F=this.__iteratees__,H=F.length,X=0,ie=St(M,this.__takeCount__);if(!a||!u&&h==M&&ie==M)return Vl(t,this.__actions__);var le=[];e:for(;M--&&X<ie;){B+=r;for(var _e=-1,ae=t[B];++_e<H;){var Le=F[_e],ke=Le.iteratee,Zt=Le.type,Ot=ke(ae);if(Zt==pt)ae=Ot;else if(!Ot){if(Zt==oe)continue e;break e}}le[X++]=ae}return le}Se.prototype=n1(Ui.prototype),Se.prototype.constructor=Se;function yr(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function jx(){this.__data__=$1?$1(null):{},this.size=0}function qx(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function Xx(t){var r=this.__data__;if($1){var a=r[t];return a===g?i:a}return De.call(r,t)?r[t]:i}function Jx(t){var r=this.__data__;return $1?r[t]!==i:De.call(r,t)}function ew(t,r){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=$1&&r===i?g:r,this}yr.prototype.clear=jx,yr.prototype.delete=qx,yr.prototype.get=Xx,yr.prototype.has=Jx,yr.prototype.set=ew;function Hn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function tw(){this.__data__=[],this.size=0}function nw(t){var r=this.__data__,a=Zi(r,t);if(a<0)return!1;var u=r.length-1;return a==u?r.pop():Fi.call(r,a,1),--this.size,!0}function rw(t){var r=this.__data__,a=Zi(r,t);return a<0?i:r[a][1]}function iw(t){return Zi(this.__data__,t)>-1}function ow(t,r){var a=this.__data__,u=Zi(a,t);return u<0?(++this.size,a.push([t,r])):a[u][1]=r,this}Hn.prototype.clear=tw,Hn.prototype.delete=nw,Hn.prototype.get=rw,Hn.prototype.has=iw,Hn.prototype.set=ow;function Wn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function aw(){this.size=0,this.__data__={hash:new yr,map:new(w1||Hn),string:new yr}}function sw(t){var r=r0(this,t).delete(t);return this.size-=r?1:0,r}function lw(t){return r0(this,t).get(t)}function cw(t){return r0(this,t).has(t)}function uw(t,r){var a=r0(this,t),u=a.size;return a.set(t,r),this.size+=a.size==u?0:1,this}Wn.prototype.clear=aw,Wn.prototype.delete=sw,Wn.prototype.get=lw,Wn.prototype.has=cw,Wn.prototype.set=uw;function _r(t){var r=-1,a=t==null?0:t.length;for(this.__data__=new Wn;++r<a;)this.add(t[r])}function fw(t){return this.__data__.set(t,g),this}function dw(t){return this.__data__.has(t)}_r.prototype.add=_r.prototype.push=fw,_r.prototype.has=dw;function hn(t){var r=this.__data__=new Hn(t);this.size=r.size}function hw(){this.__data__=new Hn,this.size=0}function gw(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}function pw(t){return this.__data__.get(t)}function mw(t){return this.__data__.has(t)}function yw(t,r){var a=this.__data__;if(a instanceof Hn){var u=a.__data__;if(!w1||u.length<s-1)return u.push([t,r]),this.size=++a.size,this;a=this.__data__=new Wn(u)}return a.set(t,r),this.size=a.size,this}hn.prototype.clear=hw,hn.prototype.delete=gw,hn.prototype.get=pw,hn.prototype.has=mw,hn.prototype.set=yw;function $l(t,r){var a=pe(t),u=!a&&wr(t),h=!a&&!u&&ur(t),m=!a&&!u&&!h&&a1(t),w=a||u||h||m,k=w?Oo(t.length,kx):[],M=k.length;for(var B in t)(r||De.call(t,B))&&!(w&&(B=="length"||h&&(B=="offset"||B=="parent")||m&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Yn(B,M)))&&k.push(B);return k}function Sl(t){var r=t.length;return r?t[Qo(0,r-1)]:i}function _w(t,r){return i0(Dt(t),vr(r,0,t.length))}function vw(t){return i0(Dt(t))}function No(t,r,a){(a!==i&&!pn(t[r],a)||a===i&&!(r in t))&&Ln(t,r,a)}function k1(t,r,a){var u=t[r];(!(De.call(t,r)&&pn(u,a))||a===i&&!(r in t))&&Ln(t,r,a)}function Zi(t,r){for(var a=t.length;a--;)if(pn(t[a][0],r))return a;return-1}function bw(t,r,a,u){return ar(t,function(h,m,w){r(u,h,a(h),w)}),u}function kl(t,r){return t&&Sn(r,gt(r),t)}function Cw(t,r){return t&&Sn(r,Bt(r),t)}function Ln(t,r,a){r=="__proto__"&&Ni?Ni(t,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[r]=a}function zo(t,r){for(var a=-1,u=r.length,h=O(u),m=t==null;++a<u;)h[a]=m?i:Ca(t,r[a]);return h}function vr(t,r,a){return t===t&&(a!==i&&(t=t<=a?t:a),r!==i&&(t=t>=r?t:r)),t}function tn(t,r,a,u,h,m){var w,k=r&v,M=r&$,B=r&_;if(a&&(w=h?a(t,u,h,m):a(t)),w!==i)return w;if(!Xe(t))return t;var F=pe(t);if(F){if(w=cL(t),!k)return Dt(t,w)}else{var H=kt(t),X=H==qt||H==Jn;if(ur(t))return ql(t,k);if(H==Ze||H==ce||X&&!h){if(w=M||X?{}:m2(t),!k)return M?Xw(t,Cw(w,t)):qw(t,kl(w,t))}else{if(!We[H])return h?t:{};w=uL(t,H,k)}}m||(m=new hn);var ie=m.get(t);if(ie)return ie;m.set(t,w),Z2(t)?t.forEach(function(ae){w.add(tn(ae,r,a,ae,t,m))}):W2(t)&&t.forEach(function(ae,Le){w.set(Le,tn(ae,r,a,Le,t,m))});var le=B?M?aa:oa:M?Bt:gt,_e=F?i:le(t);return Kt(_e||t,function(ae,Le){_e&&(Le=ae,ae=t[Le]),k1(w,Le,tn(ae,r,a,Le,t,m))}),w}function xw(t){var r=gt(t);return function(a){return Al(a,t,r)}}function Al(t,r,a){var u=a.length;if(t==null)return!u;for(t=Ke(t);u--;){var h=a[u],m=r[h],w=t[h];if(w===i&&!(h in t)||!m(w))return!1}return!0}function Ml(t,r,a){if(typeof t!="function")throw new Jt(c);return E1(function(){t.apply(i,a)},r)}function A1(t,r,a,u){var h=-1,m=Ai,w=!0,k=t.length,M=[],B=r.length;if(!k)return M;a&&(r=Ve(r,Ht(a))),u?(m=So,w=!1):r.length>=s&&(m=C1,w=!1,r=new _r(r));e:for(;++h<k;){var F=t[h],H=a==null?F:a(F);if(F=u||F!==0?F:0,w&&H===H){for(var X=B;X--;)if(r[X]===H)continue e;M.push(F)}else m(r,H,u)||M.push(F)}return M}var ar=n2($n),Tl=n2(Ho,!0);function ww(t,r){var a=!0;return ar(t,function(u,h,m){return a=!!r(u,h,m),a}),a}function Yi(t,r,a){for(var u=-1,h=t.length;++u<h;){var m=t[u],w=r(m);if(w!=null&&(k===i?w===w&&!Ut(w):a(w,k)))var k=w,M=m}return M}function Lw(t,r,a,u){var h=t.length;for(a=ye(a),a<0&&(a=-a>h?0:h+a),u=u===i||u>h?h:ye(u),u<0&&(u+=h),u=a>u?0:G2(u);a<u;)t[a++]=r;return t}function Pl(t,r){var a=[];return ar(t,function(u,h,m){r(u,h,m)&&a.push(u)}),a}function vt(t,r,a,u,h){var m=-1,w=t.length;for(a||(a=dL),h||(h=[]);++m<w;){var k=t[m];r>0&&a(k)?r>1?vt(k,r-1,a,u,h):rr(h,k):u||(h[h.length]=k)}return h}var Ko=r2(),Ol=r2(!0);function $n(t,r){return t&&Ko(t,r,gt)}function Ho(t,r){return t&&Ol(t,r,gt)}function Gi(t,r){return nr(r,function(a){return Gn(t[a])})}function br(t,r){r=lr(r,t);for(var a=0,u=r.length;t!=null&&a<u;)t=t[gn(r[a++])];return a&&a==u?t:i}function Il(t,r,a){var u=r(t);return pe(t)?u:rr(u,a(t))}function Tt(t){return t==null?t===i?ve:Lt:mr&&mr in Ke(t)?aL(t):vL(t)}function Wo(t,r){return t>r}function $w(t,r){return t!=null&&De.call(t,r)}function Sw(t,r){return t!=null&&r in Ke(t)}function kw(t,r,a){return t>=St(r,a)&&t<dt(r,a)}function Uo(t,r,a){for(var u=a?So:Ai,h=t[0].length,m=t.length,w=m,k=O(m),M=1/0,B=[];w--;){var F=t[w];w&&r&&(F=Ve(F,Ht(r))),M=St(F.length,M),k[w]=!a&&(r||h>=120&&F.length>=120)?new _r(w&&F):i}F=t[0];var H=-1,X=k[0];e:for(;++H<h&&B.length<M;){var ie=F[H],le=r?r(ie):ie;if(ie=a||ie!==0?ie:0,!(X?C1(X,le):u(B,le,a))){for(w=m;--w;){var _e=k[w];if(!(_e?C1(_e,le):u(t[w],le,a)))continue e}X&&X.push(le),B.push(ie)}}return B}function Aw(t,r,a,u){return $n(t,function(h,m,w){r(u,a(h),m,w)}),u}function M1(t,r,a){r=lr(r,t),t=b2(t,r);var u=t==null?t:t[gn(rn(r))];return u==null?i:zt(u,t,a)}function El(t){return et(t)&&Tt(t)==ce}function Mw(t){return et(t)&&Tt(t)==$e}function Tw(t){return et(t)&&Tt(t)==xt}function T1(t,r,a,u,h){return t===r?!0:t==null||r==null||!et(t)&&!et(r)?t!==t&&r!==r:Pw(t,r,a,u,T1,h)}function Pw(t,r,a,u,h,m){var w=pe(t),k=pe(r),M=w?Ee:kt(t),B=k?Ee:kt(r);M=M==ce?Ze:M,B=B==ce?Ze:B;var F=M==Ze,H=B==Ze,X=M==B;if(X&&ur(t)){if(!ur(r))return!1;w=!0,F=!1}if(X&&!F)return m||(m=new hn),w||a1(t)?h2(t,r,a,u,h,m):iL(t,r,M,a,u,h,m);if(!(a&x)){var ie=F&&De.call(t,"__wrapped__"),le=H&&De.call(r,"__wrapped__");if(ie||le){var _e=ie?t.value():t,ae=le?r.value():r;return m||(m=new hn),h(_e,ae,a,u,m)}}return X?(m||(m=new hn),oL(t,r,a,u,h,m)):!1}function Ow(t){return et(t)&&kt(t)==wt}function Zo(t,r,a,u){var h=a.length,m=h,w=!u;if(t==null)return!m;for(t=Ke(t);h--;){var k=a[h];if(w&&k[2]?k[1]!==t[k[0]]:!(k[0]in t))return!1}for(;++h<m;){k=a[h];var M=k[0],B=t[M],F=k[1];if(w&&k[2]){if(B===i&&!(M in t))return!1}else{var H=new hn;if(u)var X=u(B,F,M,t,r,H);if(!(X===i?T1(F,B,x|L,u,H):X))return!1}}return!0}function Dl(t){if(!Xe(t)||gL(t))return!1;var r=Gn(t)?Ox:xC;return r.test(xr(t))}function Iw(t){return et(t)&&Tt(t)==Je}function Ew(t){return et(t)&&kt(t)==ut}function Dw(t){return et(t)&&u0(t.length)&&!!Ye[Tt(t)]}function Rl(t){return typeof t=="function"?t:t==null?Ft:typeof t=="object"?pe(t)?Nl(t[0],t[1]):Fl(t):o6(t)}function Yo(t){if(!I1(t))return Fx(t);var r=[];for(var a in Ke(t))De.call(t,a)&&a!="constructor"&&r.push(a);return r}function Rw(t){if(!Xe(t))return _L(t);var r=I1(t),a=[];for(var u in t)u=="constructor"&&(r||!De.call(t,u))||a.push(u);return a}function Go(t,r){return t<r}function Bl(t,r){var a=-1,u=Rt(t)?O(t.length):[];return ar(t,function(h,m,w){u[++a]=r(h,m,w)}),u}function Fl(t){var r=la(t);return r.length==1&&r[0][2]?_2(r[0][0],r[0][1]):function(a){return a===t||Zo(a,t,r)}}function Nl(t,r){return ua(t)&&y2(r)?_2(gn(t),r):function(a){var u=Ca(a,t);return u===i&&u===r?xa(a,t):T1(r,u,x|L)}}function Vi(t,r,a,u,h){t!==r&&Ko(r,function(m,w){if(h||(h=new hn),Xe(m))Bw(t,r,w,a,Vi,u,h);else{var k=u?u(da(t,w),m,w+"",t,r,h):i;k===i&&(k=m),No(t,w,k)}},Bt)}function Bw(t,r,a,u,h,m,w){var k=da(t,a),M=da(r,a),B=w.get(M);if(B){No(t,a,B);return}var F=m?m(k,M,a+"",t,r,w):i,H=F===i;if(H){var X=pe(M),ie=!X&&ur(M),le=!X&&!ie&&a1(M);F=M,X||ie||le?pe(k)?F=k:nt(k)?F=Dt(k):ie?(H=!1,F=ql(M,!0)):le?(H=!1,F=Xl(M,!0)):F=[]:D1(M)||wr(M)?(F=k,wr(k)?F=V2(k):(!Xe(k)||Gn(k))&&(F=m2(M))):H=!1}H&&(w.set(M,F),h(F,M,u,m,w),w.delete(M)),No(t,a,F)}function zl(t,r){var a=t.length;if(a)return r+=r<0?a:0,Yn(r,a)?t[r]:i}function Kl(t,r,a){r.length?r=Ve(r,function(m){return pe(m)?function(w){return br(w,m.length===1?m[0]:m)}:m}):r=[Ft];var u=-1;r=Ve(r,Ht(se()));var h=Bl(t,function(m,w,k){var M=Ve(r,function(B){return B(m)});return{criteria:M,index:++u,value:m}});return ux(h,function(m,w){return jw(m,w,a)})}function Fw(t,r){return Hl(t,r,function(a,u){return xa(t,u)})}function Hl(t,r,a){for(var u=-1,h=r.length,m={};++u<h;){var w=r[u],k=br(t,w);a(k,w)&&P1(m,lr(w,t),k)}return m}function Nw(t){return function(r){return br(r,t)}}function Vo(t,r,a,u){var h=u?cx:Qr,m=-1,w=r.length,k=t;for(t===r&&(r=Dt(r)),a&&(k=Ve(t,Ht(a)));++m<w;)for(var M=0,B=r[m],F=a?a(B):B;(M=h(k,F,M,u))>-1;)k!==t&&Fi.call(k,M,1),Fi.call(t,M,1);return t}function Wl(t,r){for(var a=t?r.length:0,u=a-1;a--;){var h=r[a];if(a==u||h!==m){var m=h;Yn(h)?Fi.call(t,h,1):Xo(t,h)}}return t}function Qo(t,r){return t+Ki(wl()*(r-t+1))}function zw(t,r,a,u){for(var h=-1,m=dt(zi((r-t)/(a||1)),0),w=O(m);m--;)w[u?m:++h]=t,t+=a;return w}function jo(t,r){var a="";if(!t||r<1||r>lt)return a;do r%2&&(a+=t),r=Ki(r/2),r&&(t+=t);while(r);return a}function be(t,r){return ha(v2(t,r,Ft),t+"")}function Kw(t){return Sl(s1(t))}function Hw(t,r){var a=s1(t);return i0(a,vr(r,0,a.length))}function P1(t,r,a,u){if(!Xe(t))return t;r=lr(r,t);for(var h=-1,m=r.length,w=m-1,k=t;k!=null&&++h<m;){var M=gn(r[h]),B=a;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=w){var F=k[M];B=u?u(F,M,k):i,B===i&&(B=Xe(F)?F:Yn(r[h+1])?[]:{})}k1(k,M,B),k=k[M]}return t}var Ul=Hi?function(t,r){return Hi.set(t,r),t}:Ft,Ww=Ni?function(t,r){return Ni(t,"toString",{configurable:!0,enumerable:!1,value:La(r),writable:!0})}:Ft;function Uw(t){return i0(s1(t))}function nn(t,r,a){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var m=O(h);++u<h;)m[u]=t[u+r];return m}function Zw(t,r){var a;return ar(t,function(u,h,m){return a=r(u,h,m),!a}),!!a}function Qi(t,r,a){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=re){for(;u<h;){var m=u+h>>>1,w=t[m];w!==null&&!Ut(w)&&(a?w<=r:w<r)?u=m+1:h=m}return h}return qo(t,r,Ft,a)}function qo(t,r,a,u){var h=0,m=t==null?0:t.length;if(m===0)return 0;r=a(r);for(var w=r!==r,k=r===null,M=Ut(r),B=r===i;h<m;){var F=Ki((h+m)/2),H=a(t[F]),X=H!==i,ie=H===null,le=H===H,_e=Ut(H);if(w)var ae=u||le;else B?ae=le&&(u||X):k?ae=le&&X&&(u||!ie):M?ae=le&&X&&!ie&&(u||!_e):ie||_e?ae=!1:ae=u?H<=r:H<r;ae?h=F+1:m=F}return St(m,yt)}function Zl(t,r){for(var a=-1,u=t.length,h=0,m=[];++a<u;){var w=t[a],k=r?r(w):w;if(!a||!pn(k,M)){var M=k;m[h++]=w===0?0:w}}return m}function Yl(t){return typeof t=="number"?t:Ut(t)?qe:+t}function Wt(t){if(typeof t=="string")return t;if(pe(t))return Ve(t,Wt)+"";if(Ut(t))return Ll?Ll.call(t):"";var r=t+"";return r=="0"&&1/t==-tt?"-0":r}function sr(t,r,a){var u=-1,h=Ai,m=t.length,w=!0,k=[],M=k;if(a)w=!1,h=So;else if(m>=s){var B=r?null:nL(t);if(B)return Ti(B);w=!1,h=C1,M=new _r}else M=r?[]:k;e:for(;++u<m;){var F=t[u],H=r?r(F):F;if(F=a||F!==0?F:0,w&&H===H){for(var X=M.length;X--;)if(M[X]===H)continue e;r&&M.push(H),k.push(F)}else h(M,H,a)||(M!==k&&M.push(H),k.push(F))}return k}function Xo(t,r){r=lr(r,t);var a=-1,u=r.length;if(!u)return!0;for(;++a<u;){var h=gn(r[a]);if(h==="__proto__"&&!De.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&a<u-1)return!1}var m=b2(t,r);return m==null||delete m[gn(rn(r))]}function Gl(t,r,a,u){return P1(t,r,a(br(t,r)),u)}function ji(t,r,a,u){for(var h=t.length,m=u?h:-1;(u?m--:++m<h)&&r(t[m],m,t););return a?nn(t,u?0:m,u?m+1:h):nn(t,u?m+1:0,u?h:m)}function Vl(t,r){var a=t;return a instanceof Se&&(a=a.value()),ko(r,function(u,h){return h.func.apply(h.thisArg,rr([u],h.args))},a)}function Jo(t,r,a){var u=t.length;if(u<2)return u?sr(t[0]):[];for(var h=-1,m=O(u);++h<u;)for(var w=t[h],k=-1;++k<u;)k!=h&&(m[h]=A1(m[h]||w,t[k],r,a));return sr(vt(m,1),r,a)}function Ql(t,r,a){for(var u=-1,h=t.length,m=r.length,w={};++u<h;){var k=u<m?r[u]:i;a(w,t[u],k)}return w}function ea(t){return nt(t)?t:[]}function ta(t){return typeof t=="function"?t:Ft}function lr(t,r){return pe(t)?t:ua(t,r)?[t]:L2(Re(t))}var Yw=be;function cr(t,r,a){var u=t.length;return a=a===i?u:a,!r&&a>=u?t:nn(t,r,a)}var jl=Ix||function(t){return _t.clearTimeout(t)};function ql(t,r){if(r)return t.slice();var a=t.length,u=_l?_l(a):new t.constructor(a);return t.copy(u),u}function na(t){var r=new t.constructor(t.byteLength);return new Ri(r).set(new Ri(t)),r}function Gw(t,r){var a=r?na(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function Vw(t){var r=new t.constructor(t.source,E5.exec(t));return r.lastIndex=t.lastIndex,r}function Qw(t){return S1?Ke(S1.call(t)):{}}function Xl(t,r){var a=r?na(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function Jl(t,r){if(t!==r){var a=t!==i,u=t===null,h=t===t,m=Ut(t),w=r!==i,k=r===null,M=r===r,B=Ut(r);if(!k&&!B&&!m&&t>r||m&&w&&M&&!k&&!B||u&&w&&M||!a&&M||!h)return 1;if(!u&&!m&&!B&&t<r||B&&a&&h&&!u&&!m||k&&a&&h||!w&&h||!M)return-1}return 0}function jw(t,r,a){for(var u=-1,h=t.criteria,m=r.criteria,w=h.length,k=a.length;++u<w;){var M=Jl(h[u],m[u]);if(M){if(u>=k)return M;var B=a[u];return M*(B=="desc"?-1:1)}}return t.index-r.index}function e2(t,r,a,u){for(var h=-1,m=t.length,w=a.length,k=-1,M=r.length,B=dt(m-w,0),F=O(M+B),H=!u;++k<M;)F[k]=r[k];for(;++h<w;)(H||h<m)&&(F[a[h]]=t[h]);for(;B--;)F[k++]=t[h++];return F}function t2(t,r,a,u){for(var h=-1,m=t.length,w=-1,k=a.length,M=-1,B=r.length,F=dt(m-k,0),H=O(F+B),X=!u;++h<F;)H[h]=t[h];for(var ie=h;++M<B;)H[ie+M]=r[M];for(;++w<k;)(X||h<m)&&(H[ie+a[w]]=t[h++]);return H}function Dt(t,r){var a=-1,u=t.length;for(r||(r=O(u));++a<u;)r[a]=t[a];return r}function Sn(t,r,a,u){var h=!a;a||(a={});for(var m=-1,w=r.length;++m<w;){var k=r[m],M=u?u(a[k],t[k],k,a,t):i;M===i&&(M=t[k]),h?Ln(a,k,M):k1(a,k,M)}return a}function qw(t,r){return Sn(t,ca(t),r)}function Xw(t,r){return Sn(t,g2(t),r)}function qi(t,r){return function(a,u){var h=pe(a)?rx:bw,m=r?r():{};return h(a,t,se(u,2),m)}}function r1(t){return be(function(r,a){var u=-1,h=a.length,m=h>1?a[h-1]:i,w=h>2?a[2]:i;for(m=t.length>3&&typeof m=="function"?(h--,m):i,w&&Pt(a[0],a[1],w)&&(m=h<3?i:m,h=1),r=Ke(r);++u<h;){var k=a[u];k&&t(r,k,u,m)}return r})}function n2(t,r){return function(a,u){if(a==null)return a;if(!Rt(a))return t(a,u);for(var h=a.length,m=r?h:-1,w=Ke(a);(r?m--:++m<h)&&u(w[m],m,w)!==!1;);return a}}function r2(t){return function(r,a,u){for(var h=-1,m=Ke(r),w=u(r),k=w.length;k--;){var M=w[t?k:++h];if(a(m[M],M,m)===!1)break}return r}}function Jw(t,r,a){var u=r&S,h=O1(t);function m(){var w=this&&this!==_t&&this instanceof m?h:t;return w.apply(u?a:this,arguments)}return m}function i2(t){return function(r){r=Re(r);var a=jr(r)?dn(r):i,u=a?a[0]:r.charAt(0),h=a?cr(a,1).join(""):r.slice(1);return u[t]()+h}}function i1(t){return function(r){return ko(r6(n6(r).replace(WC,"")),t,"")}}function O1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=n1(t.prototype),u=t.apply(a,r);return Xe(u)?u:a}}function eL(t,r,a){var u=O1(t);function h(){for(var m=arguments.length,w=O(m),k=m,M=o1(h);k--;)w[k]=arguments[k];var B=m<3&&w[0]!==M&&w[m-1]!==M?[]:ir(w,M);if(m-=B.length,m<a)return c2(t,r,Xi,h.placeholder,i,w,B,i,i,a-m);var F=this&&this!==_t&&this instanceof h?u:t;return zt(F,this,w)}return h}function o2(t){return function(r,a,u){var h=Ke(r);if(!Rt(r)){var m=se(a,3);r=gt(r),a=function(k){return m(h[k],k,h)}}var w=t(r,a,u);return w>-1?h[m?r[w]:w]:i}}function a2(t){return Zn(function(r){var a=r.length,u=a,h=en.prototype.thru;for(t&&r.reverse();u--;){var m=r[u];if(typeof m!="function")throw new Jt(c);if(h&&!w&&n0(m)=="wrapper")var w=new en([],!0)}for(u=w?u:a;++u<a;){m=r[u];var k=n0(m),M=k=="wrapper"?sa(m):i;M&&fa(M[0])&&M[1]==(I|E|J|N)&&!M[4].length&&M[9]==1?w=w[n0(M[0])].apply(w,M[3]):w=m.length==1&&fa(m)?w[k]():w.thru(m)}return function(){var B=arguments,F=B[0];if(w&&B.length==1&&pe(F))return w.plant(F).value();for(var H=0,X=a?r[H].apply(this,B):F;++H<a;)X=r[H].call(this,X);return X}})}function Xi(t,r,a,u,h,m,w,k,M,B){var F=r&I,H=r&S,X=r&T,ie=r&(E|Z),le=r&Q,_e=X?i:O1(t);function ae(){for(var Le=arguments.length,ke=O(Le),Zt=Le;Zt--;)ke[Zt]=arguments[Zt];if(ie)var Ot=o1(ae),Yt=dx(ke,Ot);if(u&&(ke=e2(ke,u,h,ie)),m&&(ke=t2(ke,m,w,ie)),Le-=Yt,ie&&Le<B){var rt=ir(ke,Ot);return c2(t,r,Xi,ae.placeholder,a,ke,rt,k,M,B-Le)}var mn=H?a:this,Qn=X?mn[t]:t;return Le=ke.length,k?ke=bL(ke,k):le&&Le>1&&ke.reverse(),F&&M<Le&&(ke.length=M),this&&this!==_t&&this instanceof ae&&(Qn=_e||O1(Qn)),Qn.apply(mn,ke)}return ae}function s2(t,r){return function(a,u){return Aw(a,t,r(u),{})}}function Ji(t,r){return function(a,u){var h;if(a===i&&u===i)return r;if(a!==i&&(h=a),u!==i){if(h===i)return u;typeof a=="string"||typeof u=="string"?(a=Wt(a),u=Wt(u)):(a=Yl(a),u=Yl(u)),h=t(a,u)}return h}}function ra(t){return Zn(function(r){return r=Ve(r,Ht(se())),be(function(a){var u=this;return t(r,function(h){return zt(h,u,a)})})})}function e0(t,r){r=r===i?" ":Wt(r);var a=r.length;if(a<2)return a?jo(r,t):r;var u=jo(r,zi(t/qr(r)));return jr(r)?cr(dn(u),0,t).join(""):u.slice(0,t)}function tL(t,r,a,u){var h=r&S,m=O1(t);function w(){for(var k=-1,M=arguments.length,B=-1,F=u.length,H=O(F+M),X=this&&this!==_t&&this instanceof w?m:t;++B<F;)H[B]=u[B];for(;M--;)H[B++]=arguments[++k];return zt(X,h?a:this,H)}return w}function l2(t){return function(r,a,u){return u&&typeof u!="number"&&Pt(r,a,u)&&(a=u=i),r=Vn(r),a===i?(a=r,r=0):a=Vn(a),u=u===i?r<a?1:-1:Vn(u),zw(r,a,u,t)}}function t0(t){return function(r,a){return typeof r=="string"&&typeof a=="string"||(r=on(r),a=on(a)),t(r,a)}}function c2(t,r,a,u,h,m,w,k,M,B){var F=r&E,H=F?w:i,X=F?i:w,ie=F?m:i,le=F?i:m;r|=F?J:G,r&=~(F?G:J),r&P||(r&=~(S|T));var _e=[t,r,h,ie,H,le,X,k,M,B],ae=a.apply(i,_e);return fa(t)&&C2(ae,_e),ae.placeholder=u,x2(ae,t,r)}function ia(t){var r=ft[t];return function(a,u){if(a=on(a),u=u==null?0:St(ye(u),292),u&&xl(a)){var h=(Re(a)+"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(a)}}var nL=e1&&1/Ti(new e1([,-0]))[1]==tt?function(t){return new e1(t)}:ka;function u2(t){return function(r){var a=kt(r);return a==wt?Eo(r):a==ut?vx(r):fx(r,t(r))}}function Un(t,r,a,u,h,m,w,k){var M=r&T;if(!M&&typeof t!="function")throw new Jt(c);var B=u?u.length:0;if(B||(r&=~(J|G),u=h=i),w=w===i?w:dt(ye(w),0),k=k===i?k:ye(k),B-=h?h.length:0,r&G){var F=u,H=h;u=h=i}var X=M?i:sa(t),ie=[t,r,a,u,h,F,H,m,w,k];if(X&&yL(ie,X),t=ie[0],r=ie[1],a=ie[2],u=ie[3],h=ie[4],k=ie[9]=ie[9]===i?M?0:t.length:dt(ie[9]-B,0),!k&&r&(E|Z)&&(r&=~(E|Z)),!r||r==S)var le=Jw(t,r,a);else r==E||r==Z?le=eL(t,r,k):(r==J||r==(S|J))&&!h.length?le=tL(t,r,a,u):le=Xi.apply(i,ie);var _e=X?Ul:C2;return x2(_e(le,ie),t,r)}function f2(t,r,a,u){return t===i||pn(t,Jr[a])&&!De.call(u,a)?r:t}function d2(t,r,a,u,h,m){return Xe(t)&&Xe(r)&&(m.set(r,t),Vi(t,r,i,d2,m),m.delete(r)),t}function rL(t){return D1(t)?i:t}function h2(t,r,a,u,h,m){var w=a&x,k=t.length,M=r.length;if(k!=M&&!(w&&M>k))return!1;var B=m.get(t),F=m.get(r);if(B&&F)return B==r&&F==t;var H=-1,X=!0,ie=a&L?new _r:i;for(m.set(t,r),m.set(r,t);++H<k;){var le=t[H],_e=r[H];if(u)var ae=w?u(_e,le,H,r,t,m):u(le,_e,H,t,r,m);if(ae!==i){if(ae)continue;X=!1;break}if(ie){if(!Ao(r,function(Le,ke){if(!C1(ie,ke)&&(le===Le||h(le,Le,a,u,m)))return ie.push(ke)})){X=!1;break}}else if(!(le===_e||h(le,_e,a,u,m))){X=!1;break}}return m.delete(t),m.delete(r),X}function iL(t,r,a,u,h,m,w){switch(a){case ht:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case $e:return!(t.byteLength!=r.byteLength||!m(new Ri(t),new Ri(r)));case Ge:case xt:case Oe:return pn(+t,+r);case un:return t.name==r.name&&t.message==r.message;case Je:case R:return t==r+"";case wt:var k=Eo;case ut:var M=u&x;if(k||(k=Ti),t.size!=r.size&&!M)return!1;var B=w.get(t);if(B)return B==r;u|=L,w.set(t,r);var F=h2(k(t),k(r),u,h,m,w);return w.delete(t),F;case W:if(S1)return S1.call(t)==S1.call(r)}return!1}function oL(t,r,a,u,h,m){var w=a&x,k=oa(t),M=k.length,B=oa(r),F=B.length;if(M!=F&&!w)return!1;for(var H=M;H--;){var X=k[H];if(!(w?X in r:De.call(r,X)))return!1}var ie=m.get(t),le=m.get(r);if(ie&&le)return ie==r&&le==t;var _e=!0;m.set(t,r),m.set(r,t);for(var ae=w;++H<M;){X=k[H];var Le=t[X],ke=r[X];if(u)var Zt=w?u(ke,Le,X,r,t,m):u(Le,ke,X,t,r,m);if(!(Zt===i?Le===ke||h(Le,ke,a,u,m):Zt)){_e=!1;break}ae||(ae=X=="constructor")}if(_e&&!ae){var Ot=t.constructor,Yt=r.constructor;Ot!=Yt&&"constructor"in t&&"constructor"in r&&!(typeof Ot=="function"&&Ot instanceof Ot&&typeof Yt=="function"&&Yt instanceof Yt)&&(_e=!1)}return m.delete(t),m.delete(r),_e}function Zn(t){return ha(v2(t,i,A2),t+"")}function oa(t){return Il(t,gt,ca)}function aa(t){return Il(t,Bt,g2)}var sa=Hi?function(t){return Hi.get(t)}:ka;function n0(t){for(var r=t.name+"",a=t1[r],u=De.call(t1,r)?a.length:0;u--;){var h=a[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 se(){var t=p.iteratee||$a;return t=t===$a?Rl:t,arguments.length?t(arguments[0],arguments[1]):t}function r0(t,r){var a=t.__data__;return hL(r)?a[typeof r=="string"?"string":"hash"]:a.map}function la(t){for(var r=gt(t),a=r.length;a--;){var u=r[a],h=t[u];r[a]=[u,h,y2(h)]}return r}function Cr(t,r){var a=mx(t,r);return Dl(a)?a:i}function aL(t){var r=De.call(t,mr),a=t[mr];try{t[mr]=i;var u=!0}catch{}var h=Ei.call(t);return u&&(r?t[mr]=a:delete t[mr]),h}var ca=Ro?function(t){return t==null?[]:(t=Ke(t),nr(Ro(t),function(r){return bl.call(t,r)}))}:Aa,g2=Ro?function(t){for(var r=[];t;)rr(r,ca(t)),t=Bi(t);return r}:Aa,kt=Tt;(Bo&&kt(new Bo(new ArrayBuffer(1)))!=ht||w1&&kt(new w1)!=wt||Fo&&kt(Fo.resolve())!=$t||e1&&kt(new e1)!=ut||L1&&kt(new L1)!=j)&&(kt=function(t){var r=Tt(t),a=r==Ze?t.constructor:i,u=a?xr(a):"";if(u)switch(u){case Hx:return ht;case Wx:return wt;case Ux:return $t;case Zx:return ut;case Yx:return j}return r});function sL(t,r,a){for(var u=-1,h=a.length;++u<h;){var m=a[u],w=m.size;switch(m.type){case"drop":t+=w;break;case"dropRight":r-=w;break;case"take":r=St(r,t+w);break;case"takeRight":t=dt(t,r-w);break}}return{start:t,end:r}}function lL(t){var r=t.match(pC);return r?r[1].split(mC):[]}function p2(t,r,a){r=lr(r,t);for(var u=-1,h=r.length,m=!1;++u<h;){var w=gn(r[u]);if(!(m=t!=null&&a(t,w)))break;t=t[w]}return m||++u!=h?m:(h=t==null?0:t.length,!!h&&u0(h)&&Yn(w,h)&&(pe(t)||wr(t)))}function cL(t){var r=t.length,a=new t.constructor(r);return r&&typeof t[0]=="string"&&De.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function m2(t){return typeof t.constructor=="function"&&!I1(t)?n1(Bi(t)):{}}function uL(t,r,a){var u=t.constructor;switch(r){case $e:return na(t);case Ge:case xt:return new u(+t);case ht:return Gw(t,a);case Bn:case er:case Ne:case tr:case Fn:case Nn:case zn:case Kn:case mo:return Xl(t,a);case wt:return new u;case Oe:case R:return new u(t);case Je:return Vw(t);case ut:return new u;case W:return Qw(t)}}function fL(t,r){var a=r.length;if(!a)return t;var u=a-1;return r[u]=(a>1?"& ":"")+r[u],r=r.join(a>2?", ":" "),t.replace(gC,`{
8
+ */U1.exports,function(e,n){(function(){var i,o="4.18.1",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",d="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",v=500,y="__lodash_placeholder__",b=1,C=2,L=4,k=1,x=2,$=1,P=2,O=4,T=8,z=16,H=32,U=64,I=128,D=256,V=512,j=30,te="...",ne=800,Ie=16,ot=1,xt=2,wt=3,Ye=1/0,ft=9007199254740991,$e=17976931348623157e292,oe=0/0,Ae=4294967295,dt=Ae-1,ae=Ae>>>1,Me=[["ary",I],["bind",$],["bindKey",P],["curry",T],["curryRight",z],["flip",V],["partial",H],["partialRight",U],["rearg",D]],ue="[object Arguments]",Ee="[object Array]",ut="[object AsyncFunction]",je="[object Boolean]",$t="[object Date]",gn="[object DOMException]",Rt="[object Error]",pn="[object Function]",kn="[object GeneratorFunction]",_t="[object Map]",Pe="[object Number]",ht="[object Null]",Qe="[object Object]",Lt="[object Promise]",Bt="[object Proxy]",qe="[object RegExp]",et="[object Set]",tn="[object String]",tr="[object Symbol]",nr="[object Undefined]",_n="[object WeakMap]",B="[object WeakSet]",W="[object ArrayBuffer]",de="[object DataView]",X="[object Float32Array]",we="[object Float64Array]",ee="[object Int8Array]",tt="[object Int16Array]",nt="[object Int32Array]",Wt="[object Uint8Array]",An="[object Uint8ClampedArray]",Wn="[object Uint16Array]",t1="[object Uint32Array]",Ii=/\b__p \+= '';/g,Oi=/\b(__p \+=) '' \+/g,Ei=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D9=/&(?:amp|lt|gt|quot|#39);/g,R9=/[&<>"']/g,wC=RegExp(D9.source),$C=RegExp(R9.source),LC=/<%-([\s\S]+?)%>/g,SC=/<%([\s\S]+?)%>/g,B9=/<%=([\s\S]+?)%>/g,kC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AC=/^\w*$/,MC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ao=/[\\^$.*+?()[\]{}|]/g,TC=RegExp(Ao.source),Mo=/^\s+/,PC=/\s/,IC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OC=/\{\n\/\* \[wrapped with (.+)\] \*/,EC=/,? & /,DC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,F9=/[()=,{}\[\]\/\s]/,RC=/\\(\\)?/g,BC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z9=/\w*$/,FC=/^[-+]0x[0-9a-f]+$/i,zC=/^0b[01]+$/i,NC=/^\[object .+?Constructor\]$/,KC=/^0o[0-7]+$/i,HC=/^(?:0|[1-9]\d*)$/,WC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Di=/($^)/,UC=/['\n\r\u2028\u2029\\]/g,Ri="\\ud800-\\udfff",ZC="\\u0300-\\u036f",YC="\\ufe20-\\ufe2f",qC="\\u20d0-\\u20ff",N9=ZC+YC+qC,K9="\\u2700-\\u27bf",H9="a-z\\xdf-\\xf6\\xf8-\\xff",GC="\\xac\\xb1\\xd7\\xf7",VC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jC="\\u2000-\\u206f",QC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",W9="A-Z\\xc0-\\xd6\\xd8-\\xde",U9="\\ufe0e\\ufe0f",Z9=GC+VC+jC+QC,To="['’]",XC="["+Ri+"]",Y9="["+Z9+"]",Bi="["+N9+"]",q9="\\d+",JC="["+K9+"]",G9="["+H9+"]",V9="[^"+Ri+Z9+q9+K9+H9+W9+"]",Po="\\ud83c[\\udffb-\\udfff]",ex="(?:"+Bi+"|"+Po+")",j9="[^"+Ri+"]",Io="(?:\\ud83c[\\udde6-\\uddff]){2}",Oo="[\\ud800-\\udbff][\\udc00-\\udfff]",n1="["+W9+"]",Q9="\\u200d",X9="(?:"+G9+"|"+V9+")",tx="(?:"+n1+"|"+V9+")",J9="(?:"+To+"(?:d|ll|m|re|s|t|ve))?",e5="(?:"+To+"(?:D|LL|M|RE|S|T|VE))?",t5=ex+"?",n5="["+U9+"]?",nx="(?:"+Q9+"(?:"+[j9,Io,Oo].join("|")+")"+n5+t5+")*",rx="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ix="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",r5=n5+t5+nx,ox="(?:"+[JC,Io,Oo].join("|")+")"+r5,ax="(?:"+[j9+Bi+"?",Bi,Io,Oo,XC].join("|")+")",sx=RegExp(To,"g"),lx=RegExp(Bi,"g"),Eo=RegExp(Po+"(?="+Po+")|"+ax+r5,"g"),cx=RegExp([n1+"?"+G9+"+"+J9+"(?="+[Y9,n1,"$"].join("|")+")",tx+"+"+e5+"(?="+[Y9,n1+X9,"$"].join("|")+")",n1+"?"+X9+"+"+J9,n1+"+"+e5,ix,rx,q9,ox].join("|"),"g"),ux=RegExp("["+Q9+Ri+N9+U9+"]"),fx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hx=-1,Ue={};Ue[X]=Ue[we]=Ue[ee]=Ue[tt]=Ue[nt]=Ue[Wt]=Ue[An]=Ue[Wn]=Ue[t1]=!0,Ue[ue]=Ue[Ee]=Ue[W]=Ue[je]=Ue[de]=Ue[$t]=Ue[Rt]=Ue[pn]=Ue[_t]=Ue[Pe]=Ue[Qe]=Ue[qe]=Ue[et]=Ue[tn]=Ue[_n]=!1;var He={};He[ue]=He[Ee]=He[W]=He[de]=He[je]=He[$t]=He[X]=He[we]=He[ee]=He[tt]=He[nt]=He[_t]=He[Pe]=He[Qe]=He[qe]=He[et]=He[tn]=He[tr]=He[Wt]=He[An]=He[Wn]=He[t1]=!0,He[Rt]=He[pn]=He[_n]=!1;var gx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},px={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_x={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},mx={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yx=parseFloat,bx=parseInt,i5=typeof In=="object"&&In&&In.Object===Object&&In,vx=typeof self=="object"&&self&&self.Object===Object&&self,yt=i5||vx||Function("return this")(),Do=n&&!n.nodeType&&n,mr=Do&&!0&&e&&!e.nodeType&&e,o5=mr&&mr.exports===Do,Ro=o5&&i5.process,nn=function(){try{var A=mr&&mr.require&&mr.require("util").types;return A||Ro&&Ro.binding&&Ro.binding("util")}catch{}}(),a5=nn&&nn.isArrayBuffer,s5=nn&&nn.isDate,l5=nn&&nn.isMap,c5=nn&&nn.isRegExp,u5=nn&&nn.isSet,f5=nn&&nn.isTypedArray;function Ut(A,F,E){switch(E.length){case 0:return A.call(F);case 1:return A.call(F,E[0]);case 2:return A.call(F,E[0],E[1]);case 3:return A.call(F,E[0],E[1],E[2])}return A.apply(F,E)}function Cx(A,F,E,re){for(var he=-1,De=A==null?0:A.length;++he<De;){var gt=A[he];F(re,gt,E(gt),A)}return re}function Zt(A,F){for(var E=-1,re=A==null?0:A.length;++E<re&&F(A[E],E,A)!==!1;);return A}function xx(A,F){for(var E=A==null?0:A.length;E--&&F(A[E],E,A)!==!1;);return A}function d5(A,F){for(var E=-1,re=A==null?0:A.length;++E<re;)if(!F(A[E],E,A))return!1;return!0}function rr(A,F){for(var E=-1,re=A==null?0:A.length,he=0,De=[];++E<re;){var gt=A[E];F(gt,E,A)&&(De[he++]=gt)}return De}function Fi(A,F){var E=A==null?0:A.length;return!!E&&r1(A,F,0)>-1}function Bo(A,F,E){for(var re=-1,he=A==null?0:A.length;++re<he;)if(E(F,A[re]))return!0;return!1}function Ge(A,F){for(var E=-1,re=A==null?0:A.length,he=Array(re);++E<re;)he[E]=F(A[E],E,A);return he}function ir(A,F){for(var E=-1,re=F.length,he=A.length;++E<re;)A[he+E]=F[E];return A}function Fo(A,F,E,re){var he=-1,De=A==null?0:A.length;for(re&&De&&(E=A[++he]);++he<De;)E=F(E,A[he],he,A);return E}function wx(A,F,E,re){var he=A==null?0:A.length;for(re&&he&&(E=A[--he]);he--;)E=F(E,A[he],he,A);return E}function zo(A,F){for(var E=-1,re=A==null?0:A.length;++E<re;)if(F(A[E],E,A))return!0;return!1}var $x=No("length");function Lx(A){return A.split("")}function Sx(A){return A.match(DC)||[]}function h5(A,F,E){var re;return E(A,function(he,De,gt){if(F(he,De,gt))return re=De,!1}),re}function zi(A,F,E,re){for(var he=A.length,De=E+(re?1:-1);re?De--:++De<he;)if(F(A[De],De,A))return De;return-1}function r1(A,F,E){return F===F?Fx(A,F,E):zi(A,g5,E)}function kx(A,F,E,re){for(var he=E-1,De=A.length;++he<De;)if(re(A[he],F))return he;return-1}function g5(A){return A!==A}function p5(A,F){var E=A==null?0:A.length;return E?Ho(A,F)/E:oe}function No(A){return function(F){return F==null?i:F[A]}}function Ko(A){return function(F){return A==null?i:A[F]}}function _5(A,F,E,re,he){return he(A,function(De,gt,Ne){E=re?(re=!1,De):F(E,De,gt,Ne)}),E}function Ax(A,F){var E=A.length;for(A.sort(F);E--;)A[E]=A[E].value;return A}function Ho(A,F){for(var E,re=-1,he=A.length;++re<he;){var De=F(A[re]);De!==i&&(E=E===i?De:E+De)}return E}function Wo(A,F){for(var E=-1,re=Array(A);++E<A;)re[E]=F(E);return re}function Mx(A,F){return Ge(F,function(E){return[E,A[E]]})}function m5(A){return A&&A.slice(0,C5(A)+1).replace(Mo,"")}function Yt(A){return function(F){return A(F)}}function Uo(A,F){return Ge(F,function(E){return A[E]})}function M1(A,F){return A.has(F)}function y5(A,F){for(var E=-1,re=A.length;++E<re&&r1(F,A[E],0)>-1;);return E}function b5(A,F){for(var E=A.length;E--&&r1(F,A[E],0)>-1;);return E}function Tx(A,F){for(var E=A.length,re=0;E--;)A[E]===F&&++re;return re}var Px=Ko(gx),Ix=Ko(px);function Ox(A){return"\\"+mx[A]}function Ex(A,F){return A==null?i:A[F]}function i1(A){return ux.test(A)}function Dx(A){return fx.test(A)}function Rx(A){for(var F,E=[];!(F=A.next()).done;)E.push(F.value);return E}function Zo(A){var F=-1,E=Array(A.size);return A.forEach(function(re,he){E[++F]=[he,re]}),E}function v5(A,F){return function(E){return A(F(E))}}function or(A,F){for(var E=-1,re=A.length,he=0,De=[];++E<re;){var gt=A[E];(gt===F||gt===y)&&(A[E]=y,De[he++]=E)}return De}function Ni(A){var F=-1,E=Array(A.size);return A.forEach(function(re){E[++F]=re}),E}function Bx(A){var F=-1,E=Array(A.size);return A.forEach(function(re){E[++F]=[re,re]}),E}function Fx(A,F,E){for(var re=E-1,he=A.length;++re<he;)if(A[re]===F)return re;return-1}function zx(A,F,E){for(var re=E+1;re--;)if(A[re]===F)return re;return re}function o1(A){return i1(A)?Kx(A):$x(A)}function mn(A){return i1(A)?Hx(A):Lx(A)}function C5(A){for(var F=A.length;F--&&PC.test(A.charAt(F)););return F}var Nx=Ko(_x);function Kx(A){for(var F=Eo.lastIndex=0;Eo.test(A);)++F;return F}function Hx(A){return A.match(Eo)||[]}function Wx(A){return A.match(cx)||[]}var Ux=function A(F){F=F==null?yt:a1.defaults(yt.Object(),F,a1.pick(yt,dx));var E=F.Array,re=F.Date,he=F.Error,De=F.Function,gt=F.Math,Ne=F.Object,Yo=F.RegExp,Zx=F.String,rn=F.TypeError,Ki=E.prototype,Yx=De.prototype,s1=Ne.prototype,Hi=F["__core-js_shared__"],Wi=Yx.toString,Re=s1.hasOwnProperty,qx=0,x5=function(){var t=/[^.]+$/.exec(Hi&&Hi.keys&&Hi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ui=s1.toString,Gx=Wi.call(Ne),Vx=yt._,jx=Yo("^"+Wi.call(Re).replace(Ao,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zi=o5?F.Buffer:i,ar=F.Symbol,Yi=F.Uint8Array,w5=Zi?Zi.allocUnsafe:i,qi=v5(Ne.getPrototypeOf,Ne),$5=Ne.create,L5=s1.propertyIsEnumerable,Gi=Ki.splice,S5=ar?ar.isConcatSpreadable:i,T1=ar?ar.iterator:i,yr=ar?ar.toStringTag:i,Vi=function(){try{var t=wr(Ne,"defineProperty");return t({},"",{}),t}catch{}}(),Qx=F.clearTimeout!==yt.clearTimeout&&F.clearTimeout,Xx=re&&re.now!==yt.Date.now&&re.now,Jx=F.setTimeout!==yt.setTimeout&&F.setTimeout,ji=gt.ceil,Qi=gt.floor,qo=Ne.getOwnPropertySymbols,ew=Zi?Zi.isBuffer:i,k5=F.isFinite,tw=Ki.join,nw=v5(Ne.keys,Ne),pt=gt.max,St=gt.min,rw=re.now,iw=F.parseInt,A5=gt.random,ow=Ki.reverse,Go=wr(F,"DataView"),P1=wr(F,"Map"),Vo=wr(F,"Promise"),l1=wr(F,"Set"),I1=wr(F,"WeakMap"),O1=wr(Ne,"create"),Xi=I1&&new I1,c1={},aw=$r(Go),sw=$r(P1),lw=$r(Vo),cw=$r(l1),uw=$r(I1),Ji=ar?ar.prototype:i,E1=Ji?Ji.valueOf:i,M5=Ji?Ji.toString:i;function p(t){if(rt(t)&&!me(t)&&!(t instanceof Se)){if(t instanceof on)return t;if(Re.call(t,"__wrapped__"))return Tc(t)}return new on(t)}var u1=function(){function t(){}return function(r){if(!Xe(r))return{};if($5)return $5(r);t.prototype=r;var a=new t;return t.prototype=i,a}}();function e0(){}function on(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=i}p.templateSettings={escape:LC,evaluate:SC,interpolate:B9,variable:"",imports:{_:p}},p.prototype=e0.prototype,p.prototype.constructor=p,on.prototype=u1(e0.prototype),on.prototype.constructor=on;function Se(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ae,this.__views__=[]}function fw(){var t=new Se(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function dw(){if(this.__filtered__){var t=new Se(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function hw(){var t=this.__wrapped__.value(),r=this.__dir__,a=me(t),u=r<0,h=a?t.length:0,_=L$(0,h,this.__views__),w=_.start,S=_.end,M=S-w,N=u?S:w-1,K=this.__iteratees__,Z=K.length,J=0,ie=St(M,this.__takeCount__);if(!a||!u&&h==M&&ie==M)return J5(t,this.__actions__);var ce=[];e:for(;M--&&J<ie;){N+=r;for(var ve=-1,se=t[N];++ve<Z;){var Le=K[ve],ke=Le.iteratee,Vt=Le.type,Et=ke(se);if(Vt==xt)se=Et;else if(!Et){if(Vt==ot)continue e;break e}}ce[J++]=se}return ce}Se.prototype=u1(e0.prototype),Se.prototype.constructor=Se;function br(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function gw(){this.__data__=O1?O1(null):{},this.size=0}function pw(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}function _w(t){var r=this.__data__;if(O1){var a=r[t];return a===g?i:a}return Re.call(r,t)?r[t]:i}function mw(t){var r=this.__data__;return O1?r[t]!==i:Re.call(r,t)}function yw(t,r){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=O1&&r===i?g:r,this}br.prototype.clear=gw,br.prototype.delete=pw,br.prototype.get=_w,br.prototype.has=mw,br.prototype.set=yw;function Un(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function bw(){this.__data__=[],this.size=0}function vw(t){var r=this.__data__,a=t0(r,t);if(a<0)return!1;var u=r.length-1;return a==u?r.pop():Gi.call(r,a,1),--this.size,!0}function Cw(t){var r=this.__data__,a=t0(r,t);return a<0?i:r[a][1]}function xw(t){return t0(this.__data__,t)>-1}function ww(t,r){var a=this.__data__,u=t0(a,t);return u<0?(++this.size,a.push([t,r])):a[u][1]=r,this}Un.prototype.clear=bw,Un.prototype.delete=vw,Un.prototype.get=Cw,Un.prototype.has=xw,Un.prototype.set=ww;function Zn(t){var r=-1,a=t==null?0:t.length;for(this.clear();++r<a;){var u=t[r];this.set(u[0],u[1])}}function $w(){this.size=0,this.__data__={hash:new br,map:new(P1||Un),string:new br}}function Lw(t){var r=h0(this,t).delete(t);return this.size-=r?1:0,r}function Sw(t){return h0(this,t).get(t)}function kw(t){return h0(this,t).has(t)}function Aw(t,r){var a=h0(this,t),u=a.size;return a.set(t,r),this.size+=a.size==u?0:1,this}Zn.prototype.clear=$w,Zn.prototype.delete=Lw,Zn.prototype.get=Sw,Zn.prototype.has=kw,Zn.prototype.set=Aw;function vr(t){var r=-1,a=t==null?0:t.length;for(this.__data__=new Zn;++r<a;)this.add(t[r])}function Mw(t){return this.__data__.set(t,g),this}function Tw(t){return this.__data__.has(t)}vr.prototype.add=vr.prototype.push=Mw,vr.prototype.has=Tw;function yn(t){var r=this.__data__=new Un(t);this.size=r.size}function Pw(){this.__data__=new Un,this.size=0}function Iw(t){var r=this.__data__,a=r.delete(t);return this.size=r.size,a}function Ow(t){return this.__data__.get(t)}function Ew(t){return this.__data__.has(t)}function Dw(t,r){var a=this.__data__;if(a instanceof Un){var u=a.__data__;if(!P1||u.length<s-1)return u.push([t,r]),this.size=++a.size,this;a=this.__data__=new Zn(u)}return a.set(t,r),this.size=a.size,this}yn.prototype.clear=Pw,yn.prototype.delete=Iw,yn.prototype.get=Ow,yn.prototype.has=Ew,yn.prototype.set=Dw;function T5(t,r){var a=me(t),u=!a&&Lr(t),h=!a&&!u&&fr(t),_=!a&&!u&&!h&&g1(t),w=a||u||h||_,S=w?Wo(t.length,Zx):[],M=S.length;for(var N in t)(r||Re.call(t,N))&&!(w&&(N=="length"||h&&(N=="offset"||N=="parent")||_&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||Gn(N,M)))&&S.push(N);return S}function P5(t){var r=t.length;return r?t[aa(0,r-1)]:i}function Rw(t,r){return g0(Ft(t),Cr(r,0,t.length))}function Bw(t){return g0(Ft(t))}function jo(t,r,a){(a!==i&&!vn(t[r],a)||a===i&&!(r in t))&&Mn(t,r,a)}function D1(t,r,a){var u=t[r];(!(Re.call(t,r)&&vn(u,a))||a===i&&!(r in t))&&Mn(t,r,a)}function t0(t,r){for(var a=t.length;a--;)if(vn(t[a][0],r))return a;return-1}function Fw(t,r,a,u){return sr(t,function(h,_,w){r(u,h,a(h),w)}),u}function I5(t,r){return t&&Pn(r,mt(r),t)}function zw(t,r){return t&&Pn(r,Nt(r),t)}function Mn(t,r,a){r=="__proto__"&&Vi?Vi(t,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):t[r]=a}function Qo(t,r){for(var a=-1,u=r.length,h=E(u),_=t==null;++a<u;)h[a]=_?i:Ia(t,r[a]);return h}function Cr(t,r,a){return t===t&&(a!==i&&(t=t<=a?t:a),r!==i&&(t=t>=r?t:r)),t}function an(t,r,a,u,h,_){var w,S=r&b,M=r&C,N=r&L;if(a&&(w=h?a(t,u,h,_):a(t)),w!==i)return w;if(!Xe(t))return t;var K=me(t);if(K){if(w=k$(t),!S)return Ft(t,w)}else{var Z=kt(t),J=Z==pn||Z==kn;if(fr(t))return nc(t,S);if(Z==Qe||Z==ue||J&&!h){if(w=M||J?{}:Cc(t),!S)return M?_$(t,zw(w,t)):p$(t,I5(w,t))}else{if(!He[Z])return h?t:{};w=A$(t,Z,S)}}_||(_=new yn);var ie=_.get(t);if(ie)return ie;_.set(t,w),jc(t)?t.forEach(function(se){w.add(an(se,r,a,se,t,_))}):Gc(t)&&t.forEach(function(se,Le){w.set(Le,an(se,r,a,Le,t,_))});var ce=N?M?ma:_a:M?Nt:mt,ve=K?i:ce(t);return Zt(ve||t,function(se,Le){ve&&(Le=se,se=t[Le]),D1(w,Le,an(se,r,a,Le,t,_))}),w}function Nw(t){var r=mt(t);return function(a){return O5(a,t,r)}}function O5(t,r,a){var u=a.length;if(t==null)return!u;for(t=Ne(t);u--;){var h=a[u],_=r[h],w=t[h];if(w===i&&!(h in t)||!_(w))return!1}return!0}function E5(t,r,a){if(typeof t!="function")throw new rn(c);return H1(function(){t.apply(i,a)},r)}function R1(t,r,a,u){var h=-1,_=Fi,w=!0,S=t.length,M=[],N=r.length;if(!S)return M;a&&(r=Ge(r,Yt(a))),u?(_=Bo,w=!1):r.length>=s&&(_=M1,w=!1,r=new vr(r));e:for(;++h<S;){var K=t[h],Z=a==null?K:a(K);if(K=u||K!==0?K:0,w&&Z===Z){for(var J=N;J--;)if(r[J]===Z)continue e;M.push(K)}else _(r,Z,u)||M.push(K)}return M}var sr=sc(Tn),D5=sc(Jo,!0);function Kw(t,r){var a=!0;return sr(t,function(u,h,_){return a=!!r(u,h,_),a}),a}function n0(t,r,a){for(var u=-1,h=t.length;++u<h;){var _=t[u],w=r(_);if(w!=null&&(S===i?w===w&&!Gt(w):a(w,S)))var S=w,M=_}return M}function Hw(t,r,a,u){var h=t.length;for(a=be(a),a<0&&(a=-a>h?0:h+a),u=u===i||u>h?h:be(u),u<0&&(u+=h),u=a>u?0:Xc(u);a<u;)t[a++]=r;return t}function R5(t,r){var a=[];return sr(t,function(u,h,_){r(u,h,_)&&a.push(u)}),a}function bt(t,r,a,u,h){var _=-1,w=t.length;for(a||(a=T$),h||(h=[]);++_<w;){var S=t[_];r>0&&a(S)?r>1?bt(S,r-1,a,u,h):ir(h,S):u||(h[h.length]=S)}return h}var Xo=lc(),B5=lc(!0);function Tn(t,r){return t&&Xo(t,r,mt)}function Jo(t,r){return t&&B5(t,r,mt)}function r0(t,r){return rr(r,function(a){return Vn(t[a])})}function xr(t,r){r=cr(r,t);for(var a=0,u=r.length;t!=null&&a<u;)t=t[bn(r[a++])];return a&&a==u?t:i}function F5(t,r,a){var u=r(t);return me(t)?u:ir(u,a(t))}function It(t){return t==null?t===i?nr:ht:yr&&yr in Ne(t)?$$(t):B$(t)}function ea(t,r){return t>r}function Ww(t,r){return t!=null&&Re.call(t,r)}function Uw(t,r){return t!=null&&r in Ne(t)}function Zw(t,r,a){return t>=St(r,a)&&t<pt(r,a)}function ta(t,r,a){for(var u=a?Bo:Fi,h=t[0].length,_=t.length,w=_,S=E(_),M=1/0,N=[];w--;){var K=t[w];w&&r&&(K=Ge(K,Yt(r))),M=St(K.length,M),S[w]=!a&&(r||h>=120&&K.length>=120)?new vr(w&&K):i}K=t[0];var Z=-1,J=S[0];e:for(;++Z<h&&N.length<M;){var ie=K[Z],ce=r?r(ie):ie;if(ie=a||ie!==0?ie:0,!(J?M1(J,ce):u(N,ce,a))){for(w=_;--w;){var ve=S[w];if(!(ve?M1(ve,ce):u(t[w],ce,a)))continue e}J&&J.push(ce),N.push(ie)}}return N}function Yw(t,r,a,u){return Tn(t,function(h,_,w){r(u,a(h),_,w)}),u}function B1(t,r,a){r=cr(r,t),t=Lc(t,r);var u=t==null?t:t[bn(ln(r))];return u==null?i:Ut(u,t,a)}function z5(t){return rt(t)&&It(t)==ue}function qw(t){return rt(t)&&It(t)==W}function Gw(t){return rt(t)&&It(t)==$t}function F1(t,r,a,u,h){return t===r?!0:t==null||r==null||!rt(t)&&!rt(r)?t!==t&&r!==r:Vw(t,r,a,u,F1,h)}function Vw(t,r,a,u,h,_){var w=me(t),S=me(r),M=w?Ee:kt(t),N=S?Ee:kt(r);M=M==ue?Qe:M,N=N==ue?Qe:N;var K=M==Qe,Z=N==Qe,J=M==N;if(J&&fr(t)){if(!fr(r))return!1;w=!0,K=!1}if(J&&!K)return _||(_=new yn),w||g1(t)?yc(t,r,a,u,h,_):x$(t,r,M,a,u,h,_);if(!(a&k)){var ie=K&&Re.call(t,"__wrapped__"),ce=Z&&Re.call(r,"__wrapped__");if(ie||ce){var ve=ie?t.value():t,se=ce?r.value():r;return _||(_=new yn),h(ve,se,a,u,_)}}return J?(_||(_=new yn),w$(t,r,a,u,h,_)):!1}function jw(t){return rt(t)&&kt(t)==_t}function na(t,r,a,u){var h=a.length,_=h,w=!u;if(t==null)return!_;for(t=Ne(t);h--;){var S=a[h];if(w&&S[2]?S[1]!==t[S[0]]:!(S[0]in t))return!1}for(;++h<_;){S=a[h];var M=S[0],N=t[M],K=S[1];if(w&&S[2]){if(N===i&&!(M in t))return!1}else{var Z=new yn;if(u)var J=u(N,K,M,t,r,Z);if(!(J===i?F1(K,N,k|x,u,Z):J))return!1}}return!0}function N5(t){if(!Xe(t)||I$(t))return!1;var r=Vn(t)?jx:NC;return r.test($r(t))}function Qw(t){return rt(t)&&It(t)==qe}function Xw(t){return rt(t)&&kt(t)==et}function Jw(t){return rt(t)&&v0(t.length)&&!!Ue[It(t)]}function K5(t){return typeof t=="function"?t:t==null?Kt:typeof t=="object"?me(t)?U5(t[0],t[1]):W5(t):u2(t)}function ra(t){if(!K1(t))return nw(t);var r=[];for(var a in Ne(t))Re.call(t,a)&&a!="constructor"&&r.push(a);return r}function e$(t){if(!Xe(t))return R$(t);var r=K1(t),a=[];for(var u in t)u=="constructor"&&(r||!Re.call(t,u))||a.push(u);return a}function ia(t,r){return t<r}function H5(t,r){var a=-1,u=zt(t)?E(t.length):[];return sr(t,function(h,_,w){u[++a]=r(h,_,w)}),u}function W5(t){var r=ba(t);return r.length==1&&r[0][2]?wc(r[0][0],r[0][1]):function(a){return a===t||na(a,t,r)}}function U5(t,r){return Ca(t)&&xc(r)?wc(bn(t),r):function(a){var u=Ia(a,t);return u===i&&u===r?Oa(a,t):F1(r,u,k|x)}}function i0(t,r,a,u,h){t!==r&&Xo(r,function(_,w){if(h||(h=new yn),Xe(_))t$(t,r,w,a,i0,u,h);else{var S=u?u(wa(t,w),_,w+"",t,r,h):i;S===i&&(S=_),jo(t,w,S)}},Nt)}function t$(t,r,a,u,h,_,w){var S=wa(t,a),M=wa(r,a),N=w.get(M);if(N){jo(t,a,N);return}var K=_?_(S,M,a+"",t,r,w):i,Z=K===i;if(Z){var J=me(M),ie=!J&&fr(M),ce=!J&&!ie&&g1(M);K=M,J||ie||ce?me(S)?K=S:at(S)?K=Ft(S):ie?(Z=!1,K=nc(M,!0)):ce?(Z=!1,K=rc(M,!0)):K=[]:W1(M)||Lr(M)?(K=S,Lr(S)?K=Jc(S):(!Xe(S)||Vn(S))&&(K=Cc(M))):Z=!1}Z&&(w.set(M,K),h(K,M,u,_,w),w.delete(M)),jo(t,a,K)}function Z5(t,r){var a=t.length;if(a)return r+=r<0?a:0,Gn(r,a)?t[r]:i}function Y5(t,r,a){r.length?r=Ge(r,function(_){return me(_)?function(w){return xr(w,_.length===1?_[0]:_)}:_}):r=[Kt];var u=-1;r=Ge(r,Yt(le()));var h=H5(t,function(_,w,S){var M=Ge(r,function(N){return N(_)});return{criteria:M,index:++u,value:_}});return Ax(h,function(_,w){return g$(_,w,a)})}function n$(t,r){return q5(t,r,function(a,u){return Oa(t,u)})}function q5(t,r,a){for(var u=-1,h=r.length,_={};++u<h;){var w=r[u],S=xr(t,w);a(S,w)&&z1(_,cr(w,t),S)}return _}function r$(t){return function(r){return xr(r,t)}}function oa(t,r,a,u){var h=u?kx:r1,_=-1,w=r.length,S=t;for(t===r&&(r=Ft(r)),a&&(S=Ge(t,Yt(a)));++_<w;)for(var M=0,N=r[_],K=a?a(N):N;(M=h(S,K,M,u))>-1;)S!==t&&Gi.call(S,M,1),Gi.call(t,M,1);return t}function G5(t,r){for(var a=t?r.length:0,u=a-1;a--;){var h=r[a];if(a==u||h!==_){var _=h;Gn(h)?Gi.call(t,h,1):ca(t,h)}}return t}function aa(t,r){return t+Qi(A5()*(r-t+1))}function i$(t,r,a,u){for(var h=-1,_=pt(ji((r-t)/(a||1)),0),w=E(_);_--;)w[u?_:++h]=t,t+=a;return w}function sa(t,r){var a="";if(!t||r<1||r>ft)return a;do r%2&&(a+=t),r=Qi(r/2),r&&(t+=t);while(r);return a}function Ce(t,r){return $a($c(t,r,Kt),t+"")}function o$(t){return P5(p1(t))}function a$(t,r){var a=p1(t);return g0(a,Cr(r,0,a.length))}function z1(t,r,a,u){if(!Xe(t))return t;r=cr(r,t);for(var h=-1,_=r.length,w=_-1,S=t;S!=null&&++h<_;){var M=bn(r[h]),N=a;if(M==="__proto__"||M==="constructor"||M==="prototype")return t;if(h!=w){var K=S[M];N=u?u(K,M,S):i,N===i&&(N=Xe(K)?K:Gn(r[h+1])?[]:{})}D1(S,M,N),S=S[M]}return t}var V5=Xi?function(t,r){return Xi.set(t,r),t}:Kt,s$=Vi?function(t,r){return Vi(t,"toString",{configurable:!0,enumerable:!1,value:Da(r),writable:!0})}:Kt;function l$(t){return g0(p1(t))}function sn(t,r,a){var u=-1,h=t.length;r<0&&(r=-r>h?0:h+r),a=a>h?h:a,a<0&&(a+=h),h=r>a?0:a-r>>>0,r>>>=0;for(var _=E(h);++u<h;)_[u]=t[u+r];return _}function c$(t,r){var a;return sr(t,function(u,h,_){return a=r(u,h,_),!a}),!!a}function o0(t,r,a){var u=0,h=t==null?u:t.length;if(typeof r=="number"&&r===r&&h<=ae){for(;u<h;){var _=u+h>>>1,w=t[_];w!==null&&!Gt(w)&&(a?w<=r:w<r)?u=_+1:h=_}return h}return la(t,r,Kt,a)}function la(t,r,a,u){var h=0,_=t==null?0:t.length;if(_===0)return 0;r=a(r);for(var w=r!==r,S=r===null,M=Gt(r),N=r===i;h<_;){var K=Qi((h+_)/2),Z=a(t[K]),J=Z!==i,ie=Z===null,ce=Z===Z,ve=Gt(Z);if(w)var se=u||ce;else N?se=ce&&(u||J):S?se=ce&&J&&(u||!ie):M?se=ce&&J&&!ie&&(u||!ve):ie||ve?se=!1:se=u?Z<=r:Z<r;se?h=K+1:_=K}return St(_,dt)}function j5(t,r){for(var a=-1,u=t.length,h=0,_=[];++a<u;){var w=t[a],S=r?r(w):w;if(!a||!vn(S,M)){var M=S;_[h++]=w===0?0:w}}return _}function Q5(t){return typeof t=="number"?t:Gt(t)?oe:+t}function qt(t){if(typeof t=="string")return t;if(me(t))return Ge(t,qt)+"";if(Gt(t))return M5?M5.call(t):"";var r=t+"";return r=="0"&&1/t==-Ye?"-0":r}function lr(t,r,a){var u=-1,h=Fi,_=t.length,w=!0,S=[],M=S;if(a)w=!1,h=Bo;else if(_>=s){var N=r?null:v$(t);if(N)return Ni(N);w=!1,h=M1,M=new vr}else M=r?[]:S;e:for(;++u<_;){var K=t[u],Z=r?r(K):K;if(K=a||K!==0?K:0,w&&Z===Z){for(var J=M.length;J--;)if(M[J]===Z)continue e;r&&M.push(Z),S.push(K)}else h(M,Z,a)||(M!==S&&M.push(Z),S.push(K))}return S}function ca(t,r){r=cr(r,t);var a=-1,u=r.length;if(!u)return!0;for(;++a<u;){var h=bn(r[a]);if(h==="__proto__"&&!Re.call(t,"__proto__")||(h==="constructor"||h==="prototype")&&a<u-1)return!1}var _=Lc(t,r);return _==null||delete _[bn(ln(r))]}function X5(t,r,a,u){return z1(t,r,a(xr(t,r)),u)}function a0(t,r,a,u){for(var h=t.length,_=u?h:-1;(u?_--:++_<h)&&r(t[_],_,t););return a?sn(t,u?0:_,u?_+1:h):sn(t,u?_+1:0,u?h:_)}function J5(t,r){var a=t;return a instanceof Se&&(a=a.value()),Fo(r,function(u,h){return h.func.apply(h.thisArg,ir([u],h.args))},a)}function ua(t,r,a){var u=t.length;if(u<2)return u?lr(t[0]):[];for(var h=-1,_=E(u);++h<u;)for(var w=t[h],S=-1;++S<u;)S!=h&&(_[h]=R1(_[h]||w,t[S],r,a));return lr(bt(_,1),r,a)}function ec(t,r,a){for(var u=-1,h=t.length,_=r.length,w={};++u<h;){var S=u<_?r[u]:i;a(w,t[u],S)}return w}function fa(t){return at(t)?t:[]}function da(t){return typeof t=="function"?t:Kt}function cr(t,r){return me(t)?t:Ca(t,r)?[t]:Mc(Be(t))}var u$=Ce;function ur(t,r,a){var u=t.length;return a=a===i?u:a,!r&&a>=u?t:sn(t,r,a)}var tc=Qx||function(t){return yt.clearTimeout(t)};function nc(t,r){if(r)return t.slice();var a=t.length,u=w5?w5(a):new t.constructor(a);return t.copy(u),u}function ha(t){var r=new t.constructor(t.byteLength);return new Yi(r).set(new Yi(t)),r}function f$(t,r){var a=r?ha(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.byteLength)}function d$(t){var r=new t.constructor(t.source,z9.exec(t));return r.lastIndex=t.lastIndex,r}function h$(t){return E1?Ne(E1.call(t)):{}}function rc(t,r){var a=r?ha(t.buffer):t.buffer;return new t.constructor(a,t.byteOffset,t.length)}function ic(t,r){if(t!==r){var a=t!==i,u=t===null,h=t===t,_=Gt(t),w=r!==i,S=r===null,M=r===r,N=Gt(r);if(!S&&!N&&!_&&t>r||_&&w&&M&&!S&&!N||u&&w&&M||!a&&M||!h)return 1;if(!u&&!_&&!N&&t<r||N&&a&&h&&!u&&!_||S&&a&&h||!w&&h||!M)return-1}return 0}function g$(t,r,a){for(var u=-1,h=t.criteria,_=r.criteria,w=h.length,S=a.length;++u<w;){var M=ic(h[u],_[u]);if(M){if(u>=S)return M;var N=a[u];return M*(N=="desc"?-1:1)}}return t.index-r.index}function oc(t,r,a,u){for(var h=-1,_=t.length,w=a.length,S=-1,M=r.length,N=pt(_-w,0),K=E(M+N),Z=!u;++S<M;)K[S]=r[S];for(;++h<w;)(Z||h<_)&&(K[a[h]]=t[h]);for(;N--;)K[S++]=t[h++];return K}function ac(t,r,a,u){for(var h=-1,_=t.length,w=-1,S=a.length,M=-1,N=r.length,K=pt(_-S,0),Z=E(K+N),J=!u;++h<K;)Z[h]=t[h];for(var ie=h;++M<N;)Z[ie+M]=r[M];for(;++w<S;)(J||h<_)&&(Z[ie+a[w]]=t[h++]);return Z}function Ft(t,r){var a=-1,u=t.length;for(r||(r=E(u));++a<u;)r[a]=t[a];return r}function Pn(t,r,a,u){var h=!a;a||(a={});for(var _=-1,w=r.length;++_<w;){var S=r[_],M=u?u(a[S],t[S],S,a,t):i;M===i&&(M=t[S]),h?Mn(a,S,M):D1(a,S,M)}return a}function p$(t,r){return Pn(t,va(t),r)}function _$(t,r){return Pn(t,bc(t),r)}function s0(t,r){return function(a,u){var h=me(a)?Cx:Fw,_=r?r():{};return h(a,t,le(u,2),_)}}function f1(t){return Ce(function(r,a){var u=-1,h=a.length,_=h>1?a[h-1]:i,w=h>2?a[2]:i;for(_=t.length>3&&typeof _=="function"?(h--,_):i,w&&Ot(a[0],a[1],w)&&(_=h<3?i:_,h=1),r=Ne(r);++u<h;){var S=a[u];S&&t(r,S,u,_)}return r})}function sc(t,r){return function(a,u){if(a==null)return a;if(!zt(a))return t(a,u);for(var h=a.length,_=r?h:-1,w=Ne(a);(r?_--:++_<h)&&u(w[_],_,w)!==!1;);return a}}function lc(t){return function(r,a,u){for(var h=-1,_=Ne(r),w=u(r),S=w.length;S--;){var M=w[t?S:++h];if(a(_[M],M,_)===!1)break}return r}}function m$(t,r,a){var u=r&$,h=N1(t);function _(){var w=this&&this!==yt&&this instanceof _?h:t;return w.apply(u?a:this,arguments)}return _}function cc(t){return function(r){r=Be(r);var a=i1(r)?mn(r):i,u=a?a[0]:r.charAt(0),h=a?ur(a,1).join(""):r.slice(1);return u[t]()+h}}function d1(t){return function(r){return Fo(l2(s2(r).replace(sx,"")),t,"")}}function N1(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var a=u1(t.prototype),u=t.apply(a,r);return Xe(u)?u:a}}function y$(t,r,a){var u=N1(t);function h(){for(var _=arguments.length,w=E(_),S=_,M=h1(h);S--;)w[S]=arguments[S];var N=_<3&&w[0]!==M&&w[_-1]!==M?[]:or(w,M);if(_-=N.length,_<a)return gc(t,r,l0,h.placeholder,i,w,N,i,i,a-_);var K=this&&this!==yt&&this instanceof h?u:t;return Ut(K,this,w)}return h}function uc(t){return function(r,a,u){var h=Ne(r);if(!zt(r)){var _=le(a,3);r=mt(r),a=function(S){return _(h[S],S,h)}}var w=t(r,a,u);return w>-1?h[_?r[w]:w]:i}}function fc(t){return qn(function(r){var a=r.length,u=a,h=on.prototype.thru;for(t&&r.reverse();u--;){var _=r[u];if(typeof _!="function")throw new rn(c);if(h&&!w&&d0(_)=="wrapper")var w=new on([],!0)}for(u=w?u:a;++u<a;){_=r[u];var S=d0(_),M=S=="wrapper"?ya(_):i;M&&xa(M[0])&&M[1]==(I|T|H|D)&&!M[4].length&&M[9]==1?w=w[d0(M[0])].apply(w,M[3]):w=_.length==1&&xa(_)?w[S]():w.thru(_)}return function(){var N=arguments,K=N[0];if(w&&N.length==1&&me(K))return w.plant(K).value();for(var Z=0,J=a?r[Z].apply(this,N):K;++Z<a;)J=r[Z].call(this,J);return J}})}function l0(t,r,a,u,h,_,w,S,M,N){var K=r&I,Z=r&$,J=r&P,ie=r&(T|z),ce=r&V,ve=J?i:N1(t);function se(){for(var Le=arguments.length,ke=E(Le),Vt=Le;Vt--;)ke[Vt]=arguments[Vt];if(ie)var Et=h1(se),jt=Tx(ke,Et);if(u&&(ke=oc(ke,u,h,ie)),_&&(ke=ac(ke,_,w,ie)),Le-=jt,ie&&Le<N){var st=or(ke,Et);return gc(t,r,l0,se.placeholder,a,ke,st,S,M,N-Le)}var Cn=Z?a:this,Qn=J?Cn[t]:t;return Le=ke.length,S?ke=F$(ke,S):ce&&Le>1&&ke.reverse(),K&&M<Le&&(ke.length=M),this&&this!==yt&&this instanceof se&&(Qn=ve||N1(Qn)),Qn.apply(Cn,ke)}return se}function dc(t,r){return function(a,u){return Yw(a,t,r(u),{})}}function c0(t,r){return function(a,u){var h;if(a===i&&u===i)return r;if(a!==i&&(h=a),u!==i){if(h===i)return u;typeof a=="string"||typeof u=="string"?(a=qt(a),u=qt(u)):(a=Q5(a),u=Q5(u)),h=t(a,u)}return h}}function ga(t){return qn(function(r){return r=Ge(r,Yt(le())),Ce(function(a){var u=this;return t(r,function(h){return Ut(h,u,a)})})})}function u0(t,r){r=r===i?" ":qt(r);var a=r.length;if(a<2)return a?sa(r,t):r;var u=sa(r,ji(t/o1(r)));return i1(r)?ur(mn(u),0,t).join(""):u.slice(0,t)}function b$(t,r,a,u){var h=r&$,_=N1(t);function w(){for(var S=-1,M=arguments.length,N=-1,K=u.length,Z=E(K+M),J=this&&this!==yt&&this instanceof w?_:t;++N<K;)Z[N]=u[N];for(;M--;)Z[N++]=arguments[++S];return Ut(J,h?a:this,Z)}return w}function hc(t){return function(r,a,u){return u&&typeof u!="number"&&Ot(r,a,u)&&(a=u=i),r=jn(r),a===i?(a=r,r=0):a=jn(a),u=u===i?r<a?1:-1:jn(u),i$(r,a,u,t)}}function f0(t){return function(r,a){return typeof r=="string"&&typeof a=="string"||(r=cn(r),a=cn(a)),t(r,a)}}function gc(t,r,a,u,h,_,w,S,M,N){var K=r&T,Z=K?w:i,J=K?i:w,ie=K?_:i,ce=K?i:_;r|=K?H:U,r&=~(K?U:H),r&O||(r&=~($|P));var ve=[t,r,h,ie,Z,ce,J,S,M,N],se=a.apply(i,ve);return xa(t)&&Sc(se,ve),se.placeholder=u,kc(se,t,r)}function pa(t){var r=gt[t];return function(a,u){if(a=cn(a),u=u==null?0:St(be(u),292),u&&k5(a)){var h=(Be(a)+"e").split("e"),_=r(h[0]+"e"+(+h[1]+u));return h=(Be(_)+"e").split("e"),+(h[0]+"e"+(+h[1]-u))}return r(a)}}var v$=l1&&1/Ni(new l1([,-0]))[1]==Ye?function(t){return new l1(t)}:Fa;function pc(t){return function(r){var a=kt(r);return a==_t?Zo(r):a==et?Bx(r):Mx(r,t(r))}}function Yn(t,r,a,u,h,_,w,S){var M=r&P;if(!M&&typeof t!="function")throw new rn(c);var N=u?u.length:0;if(N||(r&=~(H|U),u=h=i),w=w===i?w:pt(be(w),0),S=S===i?S:be(S),N-=h?h.length:0,r&U){var K=u,Z=h;u=h=i}var J=M?i:ya(t),ie=[t,r,a,u,h,K,Z,_,w,S];if(J&&D$(ie,J),t=ie[0],r=ie[1],a=ie[2],u=ie[3],h=ie[4],S=ie[9]=ie[9]===i?M?0:t.length:pt(ie[9]-N,0),!S&&r&(T|z)&&(r&=~(T|z)),!r||r==$)var ce=m$(t,r,a);else r==T||r==z?ce=y$(t,r,S):(r==H||r==($|H))&&!h.length?ce=b$(t,r,a,u):ce=l0.apply(i,ie);var ve=J?V5:Sc;return kc(ve(ce,ie),t,r)}function _c(t,r,a,u){return t===i||vn(t,s1[a])&&!Re.call(u,a)?r:t}function mc(t,r,a,u,h,_){return Xe(t)&&Xe(r)&&(_.set(r,t),i0(t,r,i,mc,_),_.delete(r)),t}function C$(t){return W1(t)?i:t}function yc(t,r,a,u,h,_){var w=a&k,S=t.length,M=r.length;if(S!=M&&!(w&&M>S))return!1;var N=_.get(t),K=_.get(r);if(N&&K)return N==r&&K==t;var Z=-1,J=!0,ie=a&x?new vr:i;for(_.set(t,r),_.set(r,t);++Z<S;){var ce=t[Z],ve=r[Z];if(u)var se=w?u(ve,ce,Z,r,t,_):u(ce,ve,Z,t,r,_);if(se!==i){if(se)continue;J=!1;break}if(ie){if(!zo(r,function(Le,ke){if(!M1(ie,ke)&&(ce===Le||h(ce,Le,a,u,_)))return ie.push(ke)})){J=!1;break}}else if(!(ce===ve||h(ce,ve,a,u,_))){J=!1;break}}return _.delete(t),_.delete(r),J}function x$(t,r,a,u,h,_,w){switch(a){case de:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case W:return!(t.byteLength!=r.byteLength||!_(new Yi(t),new Yi(r)));case je:case $t:case Pe:return vn(+t,+r);case Rt:return t.name==r.name&&t.message==r.message;case qe:case tn:return t==r+"";case _t:var S=Zo;case et:var M=u&k;if(S||(S=Ni),t.size!=r.size&&!M)return!1;var N=w.get(t);if(N)return N==r;u|=x,w.set(t,r);var K=yc(S(t),S(r),u,h,_,w);return w.delete(t),K;case tr:if(E1)return E1.call(t)==E1.call(r)}return!1}function w$(t,r,a,u,h,_){var w=a&k,S=_a(t),M=S.length,N=_a(r),K=N.length;if(M!=K&&!w)return!1;for(var Z=M;Z--;){var J=S[Z];if(!(w?J in r:Re.call(r,J)))return!1}var ie=_.get(t),ce=_.get(r);if(ie&&ce)return ie==r&&ce==t;var ve=!0;_.set(t,r),_.set(r,t);for(var se=w;++Z<M;){J=S[Z];var Le=t[J],ke=r[J];if(u)var Vt=w?u(ke,Le,J,r,t,_):u(Le,ke,J,t,r,_);if(!(Vt===i?Le===ke||h(Le,ke,a,u,_):Vt)){ve=!1;break}se||(se=J=="constructor")}if(ve&&!se){var Et=t.constructor,jt=r.constructor;Et!=jt&&"constructor"in t&&"constructor"in r&&!(typeof Et=="function"&&Et instanceof Et&&typeof jt=="function"&&jt instanceof jt)&&(ve=!1)}return _.delete(t),_.delete(r),ve}function qn(t){return $a($c(t,i,Oc),t+"")}function _a(t){return F5(t,mt,va)}function ma(t){return F5(t,Nt,bc)}var ya=Xi?function(t){return Xi.get(t)}:Fa;function d0(t){for(var r=t.name+"",a=c1[r],u=Re.call(c1,r)?a.length:0;u--;){var h=a[u],_=h.func;if(_==null||_==t)return h.name}return r}function h1(t){var r=Re.call(p,"placeholder")?p:t;return r.placeholder}function le(){var t=p.iteratee||Ra;return t=t===Ra?K5:t,arguments.length?t(arguments[0],arguments[1]):t}function h0(t,r){var a=t.__data__;return P$(r)?a[typeof r=="string"?"string":"hash"]:a.map}function ba(t){for(var r=mt(t),a=r.length;a--;){var u=r[a],h=t[u];r[a]=[u,h,xc(h)]}return r}function wr(t,r){var a=Ex(t,r);return N5(a)?a:i}function $$(t){var r=Re.call(t,yr),a=t[yr];try{t[yr]=i;var u=!0}catch{}var h=Ui.call(t);return u&&(r?t[yr]=a:delete t[yr]),h}var va=qo?function(t){return t==null?[]:(t=Ne(t),rr(qo(t),function(r){return L5.call(t,r)}))}:za,bc=qo?function(t){for(var r=[];t;)ir(r,va(t)),t=qi(t);return r}:za,kt=It;(Go&&kt(new Go(new ArrayBuffer(1)))!=de||P1&&kt(new P1)!=_t||Vo&&kt(Vo.resolve())!=Lt||l1&&kt(new l1)!=et||I1&&kt(new I1)!=_n)&&(kt=function(t){var r=It(t),a=r==Qe?t.constructor:i,u=a?$r(a):"";if(u)switch(u){case aw:return de;case sw:return _t;case lw:return Lt;case cw:return et;case uw:return _n}return r});function L$(t,r,a){for(var u=-1,h=a.length;++u<h;){var _=a[u],w=_.size;switch(_.type){case"drop":t+=w;break;case"dropRight":r-=w;break;case"take":r=St(r,t+w);break;case"takeRight":t=pt(t,r-w);break}}return{start:t,end:r}}function S$(t){var r=t.match(OC);return r?r[1].split(EC):[]}function vc(t,r,a){r=cr(r,t);for(var u=-1,h=r.length,_=!1;++u<h;){var w=bn(r[u]);if(!(_=t!=null&&a(t,w)))break;t=t[w]}return _||++u!=h?_:(h=t==null?0:t.length,!!h&&v0(h)&&Gn(w,h)&&(me(t)||Lr(t)))}function k$(t){var r=t.length,a=new t.constructor(r);return r&&typeof t[0]=="string"&&Re.call(t,"index")&&(a.index=t.index,a.input=t.input),a}function Cc(t){return typeof t.constructor=="function"&&!K1(t)?u1(qi(t)):{}}function A$(t,r,a){var u=t.constructor;switch(r){case W:return ha(t);case je:case $t:return new u(+t);case de:return f$(t,a);case X:case we:case ee:case tt:case nt:case Wt:case An:case Wn:case t1:return rc(t,a);case _t:return new u;case Pe:case tn:return new u(t);case qe:return d$(t);case et:return new u;case tr:return h$(t)}}function M$(t,r){var a=r.length;if(!a)return t;var u=a-1;return r[u]=(a>1?"& ":"")+r[u],r=r.join(a>2?", ":" "),t.replace(IC,`{
9
9
  /* [wrapped with `+r+`] */
10
- `)}function dL(t){return pe(t)||wr(t)||!!(Cl&&t&&t[Cl])}function Yn(t,r){var a=typeof t;return r=r??lt,!!r&&(a=="number"||a!="symbol"&&LC.test(t))&&t>-1&&t%1==0&&t<r}function Pt(t,r,a){if(!Xe(a))return!1;var u=typeof r;return(u=="number"?Rt(a)&&Yn(r,a.length):u=="string"&&r in a)?pn(a[r],t):!1}function ua(t,r){if(pe(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Ut(t)?!0:uC.test(t)||!cC.test(t)||r!=null&&t in Ke(r)}function hL(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function fa(t){var r=n0(t),a=p[r];if(typeof a!="function"||!(r in Se.prototype))return!1;if(t===a)return!0;var u=sa(a);return!!u&&t===u[0]}function gL(t){return!!yl&&yl in t}var pL=Oi?Gn:Ma;function I1(t){var r=t&&t.constructor,a=typeof r=="function"&&r.prototype||Jr;return t===a}function y2(t){return t===t&&!Xe(t)}function _2(t,r){return function(a){return a==null?!1:a[t]===r&&(r!==i||t in Ke(a))}}function mL(t){var r=l0(t,function(u){return a.size===b&&a.clear(),u}),a=r.cache;return r}function yL(t,r){var a=t[1],u=r[1],h=a|u,m=h<(S|T|I),w=u==I&&a==E||u==I&&a==N&&t[7].length<=r[8]||u==(I|N)&&r[7].length<=r[8]&&a==E;if(!(m||w))return t;u&S&&(t[2]=r[2],h|=a&S?0:P);var k=r[3];if(k){var M=t[3];t[3]=M?e2(M,k,r[4]):k,t[4]=M?ir(t[3],y):r[4]}return k=r[5],k&&(M=t[5],t[5]=M?t2(M,k,r[6]):k,t[6]=M?ir(t[5],y):r[6]),k=r[7],k&&(t[7]=k),u&I&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function _L(t){var r=[];if(t!=null)for(var a in Ke(t))r.push(a);return r}function vL(t){return Ei.call(t)}function v2(t,r,a){return r=dt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,m=dt(u.length-r,0),w=O(m);++h<m;)w[h]=u[r+h];h=-1;for(var k=O(r+1);++h<r;)k[h]=u[h];return k[r]=a(w),zt(t,this,k)}}function b2(t,r){return r.length<2?t:br(t,nn(r,0,-1))}function bL(t,r){for(var a=t.length,u=St(r.length,a),h=Dt(t);u--;){var m=r[u];t[u]=Yn(m,a)?h[m]:i}return t}function da(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var C2=w2(Ul),E1=Dx||function(t,r){return _t.setTimeout(t,r)},ha=w2(Ww);function x2(t,r,a){var u=r+"";return ha(t,fL(u,CL(lL(u),a)))}function w2(t){var r=0,a=0;return function(){var u=Nx(),h=Pe-(u-a);if(a=u,h>0){if(++r>=te)return arguments[0]}else r=0;return t.apply(i,arguments)}}function i0(t,r){var a=-1,u=t.length,h=u-1;for(r=r===i?u:r;++a<r;){var m=Qo(a,h),w=t[m];t[m]=t[a],t[a]=w}return t.length=r,t}var L2=mL(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(fC,function(a,u,h,m){r.push(h?m.replace(_C,"$1"):u||a)}),r});function gn(t){if(typeof t=="string"||Ut(t))return t;var r=t+"";return r=="0"&&1/t==-tt?"-0":r}function xr(t){if(t!=null){try{return Ii.call(t)}catch{}try{return t+""}catch{}}return""}function CL(t,r){return Kt(Ae,function(a){var u="_."+a[0];r&a[1]&&!Ai(t,u)&&t.push(u)}),t.sort()}function $2(t){if(t instanceof Se)return t.clone();var r=new en(t.__wrapped__,t.__chain__);return r.__actions__=Dt(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function xL(t,r,a){(a?Pt(t,r,a):r===i)?r=1:r=dt(ye(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,m=0,w=O(zi(u/r));h<u;)w[m++]=nn(t,h,h+=r);return w}function wL(t){for(var r=-1,a=t==null?0:t.length,u=0,h=[];++r<a;){var m=t[r];m&&(h[u++]=m)}return h}function LL(){var t=arguments.length;if(!t)return[];for(var r=O(t-1),a=arguments[0],u=t;u--;)r[u-1]=arguments[u];return rr(pe(a)?Dt(a):[a],vt(r,1))}var $L=be(function(t,r){return nt(t)?A1(t,vt(r,1,nt,!0)):[]}),SL=be(function(t,r){var a=rn(r);return nt(a)&&(a=i),nt(t)?A1(t,vt(r,1,nt,!0),se(a,2)):[]}),kL=be(function(t,r){var a=rn(r);return nt(a)&&(a=i),nt(t)?A1(t,vt(r,1,nt,!0),i,a):[]});function AL(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:ye(r),nn(t,r<0?0:r,u)):[]}function ML(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:ye(r),r=u-r,nn(t,0,r<0?0:r)):[]}function TL(t,r){return t&&t.length?ji(t,se(r,3),!0,!0):[]}function PL(t,r){return t&&t.length?ji(t,se(r,3),!0):[]}function OL(t,r,a,u){var h=t==null?0:t.length;return h?(a&&typeof a!="number"&&Pt(t,r,a)&&(a=0,u=h),Lw(t,r,a,u)):[]}function S2(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:ye(a);return h<0&&(h=dt(u+h,0)),Mi(t,se(r,3),h)}function k2(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return a!==i&&(h=ye(a),h=a<0?dt(u+h,0):St(h,u-1)),Mi(t,se(r,3),h,!0)}function A2(t){var r=t==null?0:t.length;return r?vt(t,1):[]}function IL(t){var r=t==null?0:t.length;return r?vt(t,tt):[]}function EL(t,r){var a=t==null?0:t.length;return a?(r=r===i?1:ye(r),vt(t,r)):[]}function DL(t){for(var r=-1,a=t==null?0:t.length,u={};++r<a;){var h=t[r];Ln(u,h[0],h[1])}return u}function M2(t){return t&&t.length?t[0]:i}function RL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:ye(a);return h<0&&(h=dt(u+h,0)),Qr(t,r,h)}function BL(t){var r=t==null?0:t.length;return r?nn(t,0,-1):[]}var FL=be(function(t){var r=Ve(t,ea);return r.length&&r[0]===t[0]?Uo(r):[]}),NL=be(function(t){var r=rn(t),a=Ve(t,ea);return r===rn(a)?r=i:a.pop(),a.length&&a[0]===t[0]?Uo(a,se(r,2)):[]}),zL=be(function(t){var r=rn(t),a=Ve(t,ea);return r=typeof r=="function"?r:i,r&&a.pop(),a.length&&a[0]===t[0]?Uo(a,i,r):[]});function KL(t,r){return t==null?"":Bx.call(t,r)}function rn(t){var r=t==null?0:t.length;return r?t[r-1]:i}function HL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u;return a!==i&&(h=ye(a),h=h<0?dt(u+h,0):St(h,u-1)),r===r?Cx(t,r,h):Mi(t,cl,h,!0)}function WL(t,r){return t&&t.length?zl(t,ye(r)):i}var UL=be(T2);function T2(t,r){return t&&t.length&&r&&r.length?Vo(t,r):t}function ZL(t,r,a){return t&&t.length&&r&&r.length?Vo(t,r,se(a,2)):t}function YL(t,r,a){return t&&t.length&&r&&r.length?Vo(t,r,i,a):t}var GL=Zn(function(t,r){var a=t==null?0:t.length,u=zo(t,r);return Wl(t,Ve(r,function(h){return Yn(h,a)?+h:h}).sort(Jl)),u});function VL(t,r){var a=[];if(!(t&&t.length))return a;var u=-1,h=[],m=t.length;for(r=se(r,3);++u<m;){var w=t[u];r(w,u,t)&&(a.push(w),h.push(u))}return Wl(t,h),a}function ga(t){return t==null?t:Kx.call(t)}function QL(t,r,a){var u=t==null?0:t.length;return u?(a&&typeof a!="number"&&Pt(t,r,a)?(r=0,a=u):(r=r==null?0:ye(r),a=a===i?u:ye(a)),nn(t,r,a)):[]}function jL(t,r){return Qi(t,r)}function qL(t,r,a){return qo(t,r,se(a,2))}function XL(t,r){var a=t==null?0:t.length;if(a){var u=Qi(t,r);if(u<a&&pn(t[u],r))return u}return-1}function JL(t,r){return Qi(t,r,!0)}function e$(t,r,a){return qo(t,r,se(a,2),!0)}function t$(t,r){var a=t==null?0:t.length;if(a){var u=Qi(t,r,!0)-1;if(pn(t[u],r))return u}return-1}function n$(t){return t&&t.length?Zl(t):[]}function r$(t,r){return t&&t.length?Zl(t,se(r,2)):[]}function i$(t){var r=t==null?0:t.length;return r?nn(t,1,r):[]}function o$(t,r,a){return t&&t.length?(r=a||r===i?1:ye(r),nn(t,0,r<0?0:r)):[]}function a$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:ye(r),r=u-r,nn(t,r<0?0:r,u)):[]}function s$(t,r){return t&&t.length?ji(t,se(r,3),!1,!0):[]}function l$(t,r){return t&&t.length?ji(t,se(r,3)):[]}var c$=be(function(t){return sr(vt(t,1,nt,!0))}),u$=be(function(t){var r=rn(t);return nt(r)&&(r=i),sr(vt(t,1,nt,!0),se(r,2))}),f$=be(function(t){var r=rn(t);return r=typeof r=="function"?r:i,sr(vt(t,1,nt,!0),i,r)});function d$(t){return t&&t.length?sr(t):[]}function h$(t,r){return t&&t.length?sr(t,se(r,2)):[]}function g$(t,r){return r=typeof r=="function"?r:i,t&&t.length?sr(t,i,r):[]}function pa(t){if(!(t&&t.length))return[];var r=0;return t=nr(t,function(a){if(nt(a))return r=dt(a.length,r),!0}),Oo(r,function(a){return Ve(t,Mo(a))})}function P2(t,r){if(!(t&&t.length))return[];var a=pa(t);return r==null?a:Ve(a,function(u){return zt(r,i,u)})}var p$=be(function(t,r){return nt(t)?A1(t,r):[]}),m$=be(function(t){return Jo(nr(t,nt))}),y$=be(function(t){var r=rn(t);return nt(r)&&(r=i),Jo(nr(t,nt),se(r,2))}),_$=be(function(t){var r=rn(t);return r=typeof r=="function"?r:i,Jo(nr(t,nt),i,r)}),v$=be(pa);function b$(t,r){return Ql(t||[],r||[],k1)}function C$(t,r){return Ql(t||[],r||[],P1)}var x$=be(function(t){var r=t.length,a=r>1?t[r-1]:i;return a=typeof a=="function"?(t.pop(),a):i,P2(t,a)});function O2(t){var r=p(t);return r.__chain__=!0,r}function w$(t,r){return r(t),t}function o0(t,r){return r(t)}var L$=Zn(function(t){var r=t.length,a=r?t[0]:0,u=this.__wrapped__,h=function(m){return zo(m,t)};return r>1||this.__actions__.length||!(u instanceof Se)||!Yn(a)?this.thru(h):(u=u.slice(a,+a+(r?1:0)),u.__actions__.push({func:o0,args:[h],thisArg:i}),new en(u,this.__chain__).thru(function(m){return r&&!m.length&&m.push(i),m}))});function $$(){return O2(this)}function S$(){return new en(this.value(),this.__chain__)}function k$(){this.__values__===i&&(this.__values__=Y2(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function A$(){return this}function M$(t){for(var r,a=this;a instanceof Ui;){var u=$2(a);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;a=a.__wrapped__}return h.__wrapped__=t,r}function T$(){var t=this.__wrapped__;if(t instanceof Se){var r=t;return this.__actions__.length&&(r=new Se(this)),r=r.reverse(),r.__actions__.push({func:o0,args:[ga],thisArg:i}),new en(r,this.__chain__)}return this.thru(ga)}function P$(){return Vl(this.__wrapped__,this.__actions__)}var O$=qi(function(t,r,a){De.call(t,a)?++t[a]:Ln(t,a,1)});function I$(t,r,a){var u=pe(t)?sl:ww;return a&&Pt(t,r,a)&&(r=i),u(t,se(r,3))}function E$(t,r){var a=pe(t)?nr:Pl;return a(t,se(r,3))}var D$=o2(S2),R$=o2(k2);function B$(t,r){return vt(a0(t,r),1)}function F$(t,r){return vt(a0(t,r),tt)}function N$(t,r,a){return a=a===i?1:ye(a),vt(a0(t,r),a)}function I2(t,r){var a=pe(t)?Kt:ar;return a(t,se(r,3))}function E2(t,r){var a=pe(t)?ix:Tl;return a(t,se(r,3))}var z$=qi(function(t,r,a){De.call(t,a)?t[a].push(r):Ln(t,a,[r])});function K$(t,r,a,u){t=Rt(t)?t:s1(t),a=a&&!u?ye(a):0;var h=t.length;return a<0&&(a=dt(h+a,0)),f0(t)?a<=h&&t.indexOf(r,a)>-1:!!h&&Qr(t,r,a)>-1}var H$=be(function(t,r,a){var u=-1,h=typeof r=="function",m=Rt(t)?O(t.length):[];return ar(t,function(w){m[++u]=h?zt(r,w,a):M1(w,r,a)}),m}),W$=qi(function(t,r,a){Ln(t,a,r)});function a0(t,r){var a=pe(t)?Ve:Bl;return a(t,se(r,3))}function U$(t,r,a,u){return t==null?[]:(pe(r)||(r=r==null?[]:[r]),a=u?i:a,pe(a)||(a=a==null?[]:[a]),Kl(t,r,a))}var Z$=qi(function(t,r,a){t[a?0:1].push(r)},function(){return[[],[]]});function Y$(t,r,a){var u=pe(t)?ko:fl,h=arguments.length<3;return u(t,se(r,4),a,h,ar)}function G$(t,r,a){var u=pe(t)?ox:fl,h=arguments.length<3;return u(t,se(r,4),a,h,Tl)}function V$(t,r){var a=pe(t)?nr:Pl;return a(t,c0(se(r,3)))}function Q$(t){var r=pe(t)?Sl:Kw;return r(t)}function j$(t,r,a){(a?Pt(t,r,a):r===i)?r=1:r=ye(r);var u=pe(t)?_w:Hw;return u(t,r)}function q$(t){var r=pe(t)?vw:Uw;return r(t)}function X$(t){if(t==null)return 0;if(Rt(t))return f0(t)?qr(t):t.length;var r=kt(t);return r==wt||r==ut?t.size:Yo(t).length}function J$(t,r,a){var u=pe(t)?Ao:Zw;return a&&Pt(t,r,a)&&(r=i),u(t,se(r,3))}var eS=be(function(t,r){if(t==null)return[];var a=r.length;return a>1&&Pt(t,r[0],r[1])?r=[]:a>2&&Pt(r[0],r[1],r[2])&&(r=[r[0]]),Kl(t,vt(r,1),[])}),s0=Ex||function(){return _t.Date.now()};function tS(t,r){if(typeof r!="function")throw new Jt(c);return t=ye(t),function(){if(--t<1)return r.apply(this,arguments)}}function D2(t,r,a){return r=a?i:r,r=t&&r==null?t.length:r,Un(t,I,i,i,i,i,r)}function R2(t,r){var a;if(typeof r!="function")throw new Jt(c);return t=ye(t),function(){return--t>0&&(a=r.apply(this,arguments)),t<=1&&(r=i),a}}var ma=be(function(t,r,a){var u=S;if(a.length){var h=ir(a,o1(ma));u|=J}return Un(t,u,r,a,h)}),B2=be(function(t,r,a){var u=S|T;if(a.length){var h=ir(a,o1(B2));u|=J}return Un(r,u,t,a,h)});function F2(t,r,a){r=a?i:r;var u=Un(t,E,i,i,i,i,i,r);return u.placeholder=F2.placeholder,u}function N2(t,r,a){r=a?i:r;var u=Un(t,Z,i,i,i,i,i,r);return u.placeholder=N2.placeholder,u}function z2(t,r,a){var u,h,m,w,k,M,B=0,F=!1,H=!1,X=!0;if(typeof t!="function")throw new Jt(c);r=on(r)||0,Xe(a)&&(F=!!a.leading,H="maxWait"in a,m=H?dt(on(a.maxWait)||0,r):m,X="trailing"in a?!!a.trailing:X);function ie(rt){var mn=u,Qn=h;return u=h=i,B=rt,w=t.apply(Qn,mn),w}function le(rt){return B=rt,k=E1(Le,r),F?ie(rt):w}function _e(rt){var mn=rt-M,Qn=rt-B,a6=r-mn;return H?St(a6,m-Qn):a6}function ae(rt){var mn=rt-M,Qn=rt-B;return M===i||mn>=r||mn<0||H&&Qn>=m}function Le(){var rt=s0();if(ae(rt))return ke(rt);k=E1(Le,_e(rt))}function ke(rt){return k=i,X&&u?ie(rt):(u=h=i,w)}function Zt(){k!==i&&jl(k),B=0,u=M=h=k=i}function Ot(){return k===i?w:ke(s0())}function Yt(){var rt=s0(),mn=ae(rt);if(u=arguments,h=this,M=rt,mn){if(k===i)return le(M);if(H)return jl(k),k=E1(Le,r),ie(M)}return k===i&&(k=E1(Le,r)),w}return Yt.cancel=Zt,Yt.flush=Ot,Yt}var nS=be(function(t,r){return Ml(t,1,r)}),rS=be(function(t,r,a){return Ml(t,on(r)||0,a)});function iS(t){return Un(t,Q)}function l0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new Jt(c);var a=function(){var u=arguments,h=r?r.apply(this,u):u[0],m=a.cache;if(m.has(h))return m.get(h);var w=t.apply(this,u);return a.cache=m.set(h,w)||m,w};return a.cache=new(l0.Cache||Wn),a}l0.Cache=Wn;function c0(t){if(typeof t!="function")throw new Jt(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 oS(t){return R2(2,t)}var aS=Yw(function(t,r){r=r.length==1&&pe(r[0])?Ve(r[0],Ht(se())):Ve(vt(r,1),Ht(se()));var a=r.length;return be(function(u){for(var h=-1,m=St(u.length,a);++h<m;)u[h]=r[h].call(this,u[h]);return zt(t,this,u)})}),ya=be(function(t,r){var a=ir(r,o1(ya));return Un(t,J,i,r,a)}),K2=be(function(t,r){var a=ir(r,o1(K2));return Un(t,G,i,r,a)}),sS=Zn(function(t,r){return Un(t,N,i,i,i,r)});function lS(t,r){if(typeof t!="function")throw new Jt(c);return r=r===i?r:ye(r),be(t,r)}function cS(t,r){if(typeof t!="function")throw new Jt(c);return r=r==null?0:dt(ye(r),0),be(function(a){var u=a[r],h=cr(a,0,r);return u&&rr(h,u),zt(t,this,h)})}function uS(t,r,a){var u=!0,h=!0;if(typeof t!="function")throw new Jt(c);return Xe(a)&&(u="leading"in a?!!a.leading:u,h="trailing"in a?!!a.trailing:h),z2(t,r,{leading:u,maxWait:r,trailing:h})}function fS(t){return D2(t,1)}function dS(t,r){return ya(ta(r),t)}function hS(){if(!arguments.length)return[];var t=arguments[0];return pe(t)?t:[t]}function gS(t){return tn(t,_)}function pS(t,r){return r=typeof r=="function"?r:i,tn(t,_,r)}function mS(t){return tn(t,v|_)}function yS(t,r){return r=typeof r=="function"?r:i,tn(t,v|_,r)}function _S(t,r){return r==null||Al(t,r,gt(r))}function pn(t,r){return t===r||t!==t&&r!==r}var vS=t0(Wo),bS=t0(function(t,r){return t>=r}),wr=El(function(){return arguments}())?El:function(t){return et(t)&&De.call(t,"callee")&&!bl.call(t,"callee")},pe=O.isArray,CS=tl?Ht(tl):Mw;function Rt(t){return t!=null&&u0(t.length)&&!Gn(t)}function nt(t){return et(t)&&Rt(t)}function xS(t){return t===!0||t===!1||et(t)&&Tt(t)==Ge}var ur=Rx||Ma,wS=nl?Ht(nl):Tw;function LS(t){return et(t)&&t.nodeType===1&&!D1(t)}function $S(t){if(t==null)return!0;if(Rt(t)&&(pe(t)||typeof t=="string"||typeof t.splice=="function"||ur(t)||a1(t)||wr(t)))return!t.length;var r=kt(t);if(r==wt||r==ut)return!t.size;if(I1(t))return!Yo(t).length;for(var a in t)if(De.call(t,a))return!1;return!0}function SS(t,r){return T1(t,r)}function kS(t,r,a){a=typeof a=="function"?a:i;var u=a?a(t,r):i;return u===i?T1(t,r,i,a):!!u}function _a(t){if(!et(t))return!1;var r=Tt(t);return r==un||r==wn||typeof t.message=="string"&&typeof t.name=="string"&&!D1(t)}function AS(t){return typeof t=="number"&&xl(t)}function Gn(t){if(!Xe(t))return!1;var r=Tt(t);return r==qt||r==Jn||r==ct||r==fn}function H2(t){return typeof t=="number"&&t==ye(t)}function u0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=lt}function Xe(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function et(t){return t!=null&&typeof t=="object"}var W2=rl?Ht(rl):Ow;function MS(t,r){return t===r||Zo(t,r,la(r))}function TS(t,r,a){return a=typeof a=="function"?a:i,Zo(t,r,la(r),a)}function PS(t){return U2(t)&&t!=+t}function OS(t){if(pL(t))throw new fe(l);return Dl(t)}function IS(t){return t===null}function ES(t){return t==null}function U2(t){return typeof t=="number"||et(t)&&Tt(t)==Oe}function D1(t){if(!et(t)||Tt(t)!=Ze)return!1;var r=Bi(t);if(r===null)return!0;var a=De.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Ii.call(a)==Tx}var va=il?Ht(il):Iw;function DS(t){return H2(t)&&t>=-lt&&t<=lt}var Z2=ol?Ht(ol):Ew;function f0(t){return typeof t=="string"||!pe(t)&&et(t)&&Tt(t)==R}function Ut(t){return typeof t=="symbol"||et(t)&&Tt(t)==W}var a1=al?Ht(al):Dw;function RS(t){return t===i}function BS(t){return et(t)&&kt(t)==j}function FS(t){return et(t)&&Tt(t)==xe}var NS=t0(Go),zS=t0(function(t,r){return t<=r});function Y2(t){if(!t)return[];if(Rt(t))return f0(t)?dn(t):Dt(t);if(x1&&t[x1])return _x(t[x1]());var r=kt(t),a=r==wt?Eo:r==ut?Ti:s1;return a(t)}function Vn(t){if(!t)return t===0?t:0;if(t=on(t),t===tt||t===-tt){var r=t<0?-1:1;return r*we}return t===t?t:0}function ye(t){var r=Vn(t),a=r%1;return r===r?a?r-a:r:0}function G2(t){return t?vr(ye(t),0,Be):0}function on(t){if(typeof t=="number")return t;if(Ut(t))return qe;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=dl(t);var a=CC.test(t);return a||wC.test(t)?tx(t.slice(2),a?2:8):bC.test(t)?qe:+t}function V2(t){return Sn(t,Bt(t))}function KS(t){return t?vr(ye(t),-lt,lt):t===0?t:0}function Re(t){return t==null?"":Wt(t)}var HS=r1(function(t,r){if(I1(r)||Rt(r)){Sn(r,gt(r),t);return}for(var a in r)De.call(r,a)&&k1(t,a,r[a])}),Q2=r1(function(t,r){Sn(r,Bt(r),t)}),j2=r1(function(t,r,a,u){Sn(r,Bt(r),t,u)}),ba=r1(function(t,r,a,u){Sn(r,gt(r),t,u)}),WS=Zn(zo);function US(t,r){var a=n1(t);return r==null?a:kl(a,r)}var ZS=be(function(t,r){t=Ke(t);var a=-1,u=r.length,h=u>2?r[2]:i;for(h&&Pt(r[0],r[1],h)&&(u=1);++a<u;)for(var m=r[a],w=Bt(m),k=-1,M=w.length;++k<M;){var B=w[k],F=t[B];(F===i||pn(F,Jr[B])&&!De.call(t,B))&&(t[B]=m[B])}return t}),YS=be(function(t){return t.push(i,d2),zt(q2,i,t)});function GS(t,r){return ll(t,se(r,3),$n)}function VS(t,r){return ll(t,se(r,3),Ho)}function QS(t,r){return t==null?t:Ko(t,se(r,3),Bt)}function jS(t,r){return t==null?t:Ol(t,se(r,3),Bt)}function qS(t,r){return t&&$n(t,se(r,3))}function XS(t,r){return t&&Ho(t,se(r,3))}function JS(t){return t==null?[]:Gi(t,gt(t))}function ek(t){return t==null?[]:Gi(t,Bt(t))}function Ca(t,r,a){var u=t==null?i:br(t,r);return u===i?a:u}function tk(t,r){return t!=null&&p2(t,r,$w)}function xa(t,r){return t!=null&&p2(t,r,Sw)}var nk=s2(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ei.call(r)),t[r]=a},La(Ft)),rk=s2(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ei.call(r)),De.call(t,r)?t[r].push(a):t[r]=[a]},se),ik=be(M1);function gt(t){return Rt(t)?$l(t):Yo(t)}function Bt(t){return Rt(t)?$l(t,!0):Rw(t)}function ok(t,r){var a={};return r=se(r,3),$n(t,function(u,h,m){Ln(a,r(u,h,m),u)}),a}function ak(t,r){var a={};return r=se(r,3),$n(t,function(u,h,m){Ln(a,h,r(u,h,m))}),a}var sk=r1(function(t,r,a){Vi(t,r,a)}),q2=r1(function(t,r,a,u){Vi(t,r,a,u)}),lk=Zn(function(t,r){var a={};if(t==null)return a;var u=!1;r=Ve(r,function(m){return m=lr(m,t),u||(u=m.length>1),m}),Sn(t,aa(t),a),u&&(a=tn(a,v|$|_,rL));for(var h=r.length;h--;)Xo(a,r[h]);return a});function ck(t,r){return X2(t,c0(se(r)))}var uk=Zn(function(t,r){return t==null?{}:Fw(t,r)});function X2(t,r){if(t==null)return{};var a=Ve(aa(t),function(u){return[u]});return r=se(r),Hl(t,a,function(u,h){return r(u,h[0])})}function fk(t,r,a){r=lr(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var m=t==null?i:t[gn(r[u])];m===i&&(u=h,m=a),t=Gn(m)?m.call(t):m}return t}function dk(t,r,a){return t==null?t:P1(t,r,a)}function hk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:P1(t,r,a,u)}var J2=u2(gt),e6=u2(Bt);function gk(t,r,a){var u=pe(t),h=u||ur(t)||a1(t);if(r=se(r,4),a==null){var m=t&&t.constructor;h?a=u?new m:[]:Xe(t)?a=Gn(m)?n1(Bi(t)):{}:a={}}return(h?Kt:$n)(t,function(w,k,M){return r(a,w,k,M)}),a}function pk(t,r){return t==null?!0:Xo(t,r)}function mk(t,r,a){return t==null?t:Gl(t,r,ta(a))}function yk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:Gl(t,r,ta(a),u)}function s1(t){return t==null?[]:Io(t,gt(t))}function _k(t){return t==null?[]:Io(t,Bt(t))}function vk(t,r,a){return a===i&&(a=r,r=i),a!==i&&(a=on(a),a=a===a?a:0),r!==i&&(r=on(r),r=r===r?r:0),vr(on(t),r,a)}function bk(t,r,a){return r=Vn(r),a===i?(a=r,r=0):a=Vn(a),t=on(t),kw(t,r,a)}function Ck(t,r,a){if(a&&typeof a!="boolean"&&Pt(t,r,a)&&(r=a=i),a===i&&(typeof r=="boolean"?(a=r,r=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&r===i?(t=0,r=1):(t=Vn(t),r===i?(r=t,t=0):r=Vn(r)),t>r){var u=t;t=r,r=u}if(a||t%1||r%1){var h=wl();return St(t+h*(r-t+ex("1e-"+((h+"").length-1))),r)}return Qo(t,r)}var xk=i1(function(t,r,a){return r=r.toLowerCase(),t+(a?t6(r):r)});function t6(t){return wa(Re(t).toLowerCase())}function n6(t){return t=Re(t),t&&t.replace($C,hx).replace(UC,"")}function wk(t,r,a){t=Re(t),r=Wt(r);var u=t.length;a=a===i?u:vr(ye(a),0,u);var h=a;return a-=r.length,a>=0&&t.slice(a,h)==r}function Lk(t){return t=Re(t),t&&aC.test(t)?t.replace(P5,gx):t}function $k(t){return t=Re(t),t&&dC.test(t)?t.replace(yo,"\\$&"):t}var Sk=i1(function(t,r,a){return t+(a?"-":"")+r.toLowerCase()}),kk=i1(function(t,r,a){return t+(a?" ":"")+r.toLowerCase()}),Ak=i2("toLowerCase");function Mk(t,r,a){t=Re(t),r=ye(r);var u=r?qr(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return e0(Ki(h),a)+t+e0(zi(h),a)}function Tk(t,r,a){t=Re(t),r=ye(r);var u=r?qr(t):0;return r&&u<r?t+e0(r-u,a):t}function Pk(t,r,a){t=Re(t),r=ye(r);var u=r?qr(t):0;return r&&u<r?e0(r-u,a)+t:t}function Ok(t,r,a){return a||r==null?r=0:r&&(r=+r),zx(Re(t).replace(_o,""),r||0)}function Ik(t,r,a){return(a?Pt(t,r,a):r===i)?r=1:r=ye(r),jo(Re(t),r)}function Ek(){var t=arguments,r=Re(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var Dk=i1(function(t,r,a){return t+(a?"_":"")+r.toLowerCase()});function Rk(t,r,a){return a&&typeof a!="number"&&Pt(t,r,a)&&(r=a=i),a=a===i?Be:a>>>0,a?(t=Re(t),t&&(typeof r=="string"||r!=null&&!va(r))&&(r=Wt(r),!r&&jr(t))?cr(dn(t),0,a):t.split(r,a)):[]}var Bk=i1(function(t,r,a){return t+(a?" ":"")+wa(r)});function Fk(t,r,a){return t=Re(t),a=a==null?0:vr(ye(a),0,t.length),r=Wt(r),t.slice(a,a+r.length)==r}function Nk(t,r,a){var u=p.templateSettings;a&&Pt(t,r,a)&&(r=i),t=Re(t),r=ba({},r,u,f2);var h=ba({},r.imports,u.imports,f2),m=gt(h),w=Io(h,m);Kt(m,function(ae){if(I5.test(ae))throw new fe(d)});var k,M,B=0,F=r.interpolate||$i,H="__p += '",X=Do((r.escape||$i).source+"|"+F.source+"|"+(F===O5?vC:$i).source+"|"+(r.evaluate||$i).source+"|$","g"),ie="//# sourceURL="+(De.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++QC+"]")+`
11
- `;t.replace(X,function(ae,Le,ke,Zt,Ot,Yt){return ke||(ke=Zt),H+=t.slice(B,Yt).replace(SC,px),Le&&(k=!0,H+=`' +
10
+ `)}function T$(t){return me(t)||Lr(t)||!!(S5&&t&&t[S5])}function Gn(t,r){var a=typeof t;return r=r??ft,!!r&&(a=="number"||a!="symbol"&&HC.test(t))&&t>-1&&t%1==0&&t<r}function Ot(t,r,a){if(!Xe(a))return!1;var u=typeof r;return(u=="number"?zt(a)&&Gn(r,a.length):u=="string"&&r in a)?vn(a[r],t):!1}function Ca(t,r){if(me(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||Gt(t)?!0:AC.test(t)||!kC.test(t)||r!=null&&t in Ne(r)}function P$(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function xa(t){var r=d0(t),a=p[r];if(typeof a!="function"||!(r in Se.prototype))return!1;if(t===a)return!0;var u=ya(a);return!!u&&t===u[0]}function I$(t){return!!x5&&x5 in t}var O$=Hi?Vn:Na;function K1(t){var r=t&&t.constructor,a=typeof r=="function"&&r.prototype||s1;return t===a}function xc(t){return t===t&&!Xe(t)}function wc(t,r){return function(a){return a==null?!1:a[t]===r&&(r!==i||t in Ne(a))}}function E$(t){var r=y0(t,function(u){return a.size===v&&a.clear(),u}),a=r.cache;return r}function D$(t,r){var a=t[1],u=r[1],h=a|u,_=h<($|P|I),w=u==I&&a==T||u==I&&a==D&&t[7].length<=r[8]||u==(I|D)&&r[7].length<=r[8]&&a==T;if(!(_||w))return t;u&$&&(t[2]=r[2],h|=a&$?0:O);var S=r[3];if(S){var M=t[3];t[3]=M?oc(M,S,r[4]):S,t[4]=M?or(t[3],y):r[4]}return S=r[5],S&&(M=t[5],t[5]=M?ac(M,S,r[6]):S,t[6]=M?or(t[5],y):r[6]),S=r[7],S&&(t[7]=S),u&I&&(t[8]=t[8]==null?r[8]:St(t[8],r[8])),t[9]==null&&(t[9]=r[9]),t[0]=r[0],t[1]=h,t}function R$(t){var r=[];if(t!=null)for(var a in Ne(t))r.push(a);return r}function B$(t){return Ui.call(t)}function $c(t,r,a){return r=pt(r===i?t.length-1:r,0),function(){for(var u=arguments,h=-1,_=pt(u.length-r,0),w=E(_);++h<_;)w[h]=u[r+h];h=-1;for(var S=E(r+1);++h<r;)S[h]=u[h];return S[r]=a(w),Ut(t,this,S)}}function Lc(t,r){return r.length<2?t:xr(t,sn(r,0,-1))}function F$(t,r){for(var a=t.length,u=St(r.length,a),h=Ft(t);u--;){var _=r[u];t[u]=Gn(_,a)?h[_]:i}return t}function wa(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var Sc=Ac(V5),H1=Jx||function(t,r){return yt.setTimeout(t,r)},$a=Ac(s$);function kc(t,r,a){var u=r+"";return $a(t,M$(u,z$(S$(u),a)))}function Ac(t){var r=0,a=0;return function(){var u=rw(),h=Ie-(u-a);if(a=u,h>0){if(++r>=ne)return arguments[0]}else r=0;return t.apply(i,arguments)}}function g0(t,r){var a=-1,u=t.length,h=u-1;for(r=r===i?u:r;++a<r;){var _=aa(a,h),w=t[_];t[_]=t[a],t[a]=w}return t.length=r,t}var Mc=E$(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(MC,function(a,u,h,_){r.push(h?_.replace(RC,"$1"):u||a)}),r});function bn(t){if(typeof t=="string"||Gt(t))return t;var r=t+"";return r=="0"&&1/t==-Ye?"-0":r}function $r(t){if(t!=null){try{return Wi.call(t)}catch{}try{return t+""}catch{}}return""}function z$(t,r){return Zt(Me,function(a){var u="_."+a[0];r&a[1]&&!Fi(t,u)&&t.push(u)}),t.sort()}function Tc(t){if(t instanceof Se)return t.clone();var r=new on(t.__wrapped__,t.__chain__);return r.__actions__=Ft(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}function N$(t,r,a){(a?Ot(t,r,a):r===i)?r=1:r=pt(be(r),0);var u=t==null?0:t.length;if(!u||r<1)return[];for(var h=0,_=0,w=E(ji(u/r));h<u;)w[_++]=sn(t,h,h+=r);return w}function K$(t){for(var r=-1,a=t==null?0:t.length,u=0,h=[];++r<a;){var _=t[r];_&&(h[u++]=_)}return h}function H$(){var t=arguments.length;if(!t)return[];for(var r=E(t-1),a=arguments[0],u=t;u--;)r[u-1]=arguments[u];return ir(me(a)?Ft(a):[a],bt(r,1))}var W$=Ce(function(t,r){return at(t)?R1(t,bt(r,1,at,!0)):[]}),U$=Ce(function(t,r){var a=ln(r);return at(a)&&(a=i),at(t)?R1(t,bt(r,1,at,!0),le(a,2)):[]}),Z$=Ce(function(t,r){var a=ln(r);return at(a)&&(a=i),at(t)?R1(t,bt(r,1,at,!0),i,a):[]});function Y$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),sn(t,r<0?0:r,u)):[]}function q$(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,sn(t,0,r<0?0:r)):[]}function G$(t,r){return t&&t.length?a0(t,le(r,3),!0,!0):[]}function V$(t,r){return t&&t.length?a0(t,le(r,3),!0):[]}function j$(t,r,a,u){var h=t==null?0:t.length;return h?(a&&typeof a!="number"&&Ot(t,r,a)&&(a=0,u=h),Hw(t,r,a,u)):[]}function Pc(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=pt(u+h,0)),zi(t,le(r,3),h)}function Ic(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u-1;return a!==i&&(h=be(a),h=a<0?pt(u+h,0):St(h,u-1)),zi(t,le(r,3),h,!0)}function Oc(t){var r=t==null?0:t.length;return r?bt(t,1):[]}function Q$(t){var r=t==null?0:t.length;return r?bt(t,Ye):[]}function X$(t,r){var a=t==null?0:t.length;return a?(r=r===i?1:be(r),bt(t,r)):[]}function J$(t){for(var r=-1,a=t==null?0:t.length,u={};++r<a;){var h=t[r];Mn(u,h[0],h[1])}return u}function Ec(t){return t&&t.length?t[0]:i}function eL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=a==null?0:be(a);return h<0&&(h=pt(u+h,0)),r1(t,r,h)}function tL(t){var r=t==null?0:t.length;return r?sn(t,0,-1):[]}var nL=Ce(function(t){var r=Ge(t,fa);return r.length&&r[0]===t[0]?ta(r):[]}),rL=Ce(function(t){var r=ln(t),a=Ge(t,fa);return r===ln(a)?r=i:a.pop(),a.length&&a[0]===t[0]?ta(a,le(r,2)):[]}),iL=Ce(function(t){var r=ln(t),a=Ge(t,fa);return r=typeof r=="function"?r:i,r&&a.pop(),a.length&&a[0]===t[0]?ta(a,i,r):[]});function oL(t,r){return t==null?"":tw.call(t,r)}function ln(t){var r=t==null?0:t.length;return r?t[r-1]:i}function aL(t,r,a){var u=t==null?0:t.length;if(!u)return-1;var h=u;return a!==i&&(h=be(a),h=h<0?pt(u+h,0):St(h,u-1)),r===r?zx(t,r,h):zi(t,g5,h,!0)}function sL(t,r){return t&&t.length?Z5(t,be(r)):i}var lL=Ce(Dc);function Dc(t,r){return t&&t.length&&r&&r.length?oa(t,r):t}function cL(t,r,a){return t&&t.length&&r&&r.length?oa(t,r,le(a,2)):t}function uL(t,r,a){return t&&t.length&&r&&r.length?oa(t,r,i,a):t}var fL=qn(function(t,r){var a=t==null?0:t.length,u=Qo(t,r);return G5(t,Ge(r,function(h){return Gn(h,a)?+h:h}).sort(ic)),u});function dL(t,r){var a=[];if(!(t&&t.length))return a;var u=-1,h=[],_=t.length;for(r=le(r,3);++u<_;){var w=t[u];r(w,u,t)&&(a.push(w),h.push(u))}return G5(t,h),a}function La(t){return t==null?t:ow.call(t)}function hL(t,r,a){var u=t==null?0:t.length;return u?(a&&typeof a!="number"&&Ot(t,r,a)?(r=0,a=u):(r=r==null?0:be(r),a=a===i?u:be(a)),sn(t,r,a)):[]}function gL(t,r){return o0(t,r)}function pL(t,r,a){return la(t,r,le(a,2))}function _L(t,r){var a=t==null?0:t.length;if(a){var u=o0(t,r);if(u<a&&vn(t[u],r))return u}return-1}function mL(t,r){return o0(t,r,!0)}function yL(t,r,a){return la(t,r,le(a,2),!0)}function bL(t,r){var a=t==null?0:t.length;if(a){var u=o0(t,r,!0)-1;if(vn(t[u],r))return u}return-1}function vL(t){return t&&t.length?j5(t):[]}function CL(t,r){return t&&t.length?j5(t,le(r,2)):[]}function xL(t){var r=t==null?0:t.length;return r?sn(t,1,r):[]}function wL(t,r,a){return t&&t.length?(r=a||r===i?1:be(r),sn(t,0,r<0?0:r)):[]}function $L(t,r,a){var u=t==null?0:t.length;return u?(r=a||r===i?1:be(r),r=u-r,sn(t,r<0?0:r,u)):[]}function LL(t,r){return t&&t.length?a0(t,le(r,3),!1,!0):[]}function SL(t,r){return t&&t.length?a0(t,le(r,3)):[]}var kL=Ce(function(t){return lr(bt(t,1,at,!0))}),AL=Ce(function(t){var r=ln(t);return at(r)&&(r=i),lr(bt(t,1,at,!0),le(r,2))}),ML=Ce(function(t){var r=ln(t);return r=typeof r=="function"?r:i,lr(bt(t,1,at,!0),i,r)});function TL(t){return t&&t.length?lr(t):[]}function PL(t,r){return t&&t.length?lr(t,le(r,2)):[]}function IL(t,r){return r=typeof r=="function"?r:i,t&&t.length?lr(t,i,r):[]}function Sa(t){if(!(t&&t.length))return[];var r=0;return t=rr(t,function(a){if(at(a))return r=pt(a.length,r),!0}),Wo(r,function(a){return Ge(t,No(a))})}function Rc(t,r){if(!(t&&t.length))return[];var a=Sa(t);return r==null?a:Ge(a,function(u){return Ut(r,i,u)})}var OL=Ce(function(t,r){return at(t)?R1(t,r):[]}),EL=Ce(function(t){return ua(rr(t,at))}),DL=Ce(function(t){var r=ln(t);return at(r)&&(r=i),ua(rr(t,at),le(r,2))}),RL=Ce(function(t){var r=ln(t);return r=typeof r=="function"?r:i,ua(rr(t,at),i,r)}),BL=Ce(Sa);function FL(t,r){return ec(t||[],r||[],D1)}function zL(t,r){return ec(t||[],r||[],z1)}var NL=Ce(function(t){var r=t.length,a=r>1?t[r-1]:i;return a=typeof a=="function"?(t.pop(),a):i,Rc(t,a)});function Bc(t){var r=p(t);return r.__chain__=!0,r}function KL(t,r){return r(t),t}function p0(t,r){return r(t)}var HL=qn(function(t){var r=t.length,a=r?t[0]:0,u=this.__wrapped__,h=function(_){return Qo(_,t)};return r>1||this.__actions__.length||!(u instanceof Se)||!Gn(a)?this.thru(h):(u=u.slice(a,+a+(r?1:0)),u.__actions__.push({func:p0,args:[h],thisArg:i}),new on(u,this.__chain__).thru(function(_){return r&&!_.length&&_.push(i),_}))});function WL(){return Bc(this)}function UL(){return new on(this.value(),this.__chain__)}function ZL(){this.__values__===i&&(this.__values__=Qc(this.value()));var t=this.__index__>=this.__values__.length,r=t?i:this.__values__[this.__index__++];return{done:t,value:r}}function YL(){return this}function qL(t){for(var r,a=this;a instanceof e0;){var u=Tc(a);u.__index__=0,u.__values__=i,r?h.__wrapped__=u:r=u;var h=u;a=a.__wrapped__}return h.__wrapped__=t,r}function GL(){var t=this.__wrapped__;if(t instanceof Se){var r=t;return this.__actions__.length&&(r=new Se(this)),r=r.reverse(),r.__actions__.push({func:p0,args:[La],thisArg:i}),new on(r,this.__chain__)}return this.thru(La)}function VL(){return J5(this.__wrapped__,this.__actions__)}var jL=s0(function(t,r,a){Re.call(t,a)?++t[a]:Mn(t,a,1)});function QL(t,r,a){var u=me(t)?d5:Kw;return a&&Ot(t,r,a)&&(r=i),u(t,le(r,3))}function XL(t,r){var a=me(t)?rr:R5;return a(t,le(r,3))}var JL=uc(Pc),eS=uc(Ic);function tS(t,r){return bt(_0(t,r),1)}function nS(t,r){return bt(_0(t,r),Ye)}function rS(t,r,a){return a=a===i?1:be(a),bt(_0(t,r),a)}function Fc(t,r){var a=me(t)?Zt:sr;return a(t,le(r,3))}function zc(t,r){var a=me(t)?xx:D5;return a(t,le(r,3))}var iS=s0(function(t,r,a){Re.call(t,a)?t[a].push(r):Mn(t,a,[r])});function oS(t,r,a,u){t=zt(t)?t:p1(t),a=a&&!u?be(a):0;var h=t.length;return a<0&&(a=pt(h+a,0)),C0(t)?a<=h&&t.indexOf(r,a)>-1:!!h&&r1(t,r,a)>-1}var aS=Ce(function(t,r,a){var u=-1,h=typeof r=="function",_=zt(t)?E(t.length):[];return sr(t,function(w){_[++u]=h?Ut(r,w,a):B1(w,r,a)}),_}),sS=s0(function(t,r,a){Mn(t,a,r)});function _0(t,r){var a=me(t)?Ge:H5;return a(t,le(r,3))}function lS(t,r,a,u){return t==null?[]:(me(r)||(r=r==null?[]:[r]),a=u?i:a,me(a)||(a=a==null?[]:[a]),Y5(t,r,a))}var cS=s0(function(t,r,a){t[a?0:1].push(r)},function(){return[[],[]]});function uS(t,r,a){var u=me(t)?Fo:_5,h=arguments.length<3;return u(t,le(r,4),a,h,sr)}function fS(t,r,a){var u=me(t)?wx:_5,h=arguments.length<3;return u(t,le(r,4),a,h,D5)}function dS(t,r){var a=me(t)?rr:R5;return a(t,b0(le(r,3)))}function hS(t){var r=me(t)?P5:o$;return r(t)}function gS(t,r,a){(a?Ot(t,r,a):r===i)?r=1:r=be(r);var u=me(t)?Rw:a$;return u(t,r)}function pS(t){var r=me(t)?Bw:l$;return r(t)}function _S(t){if(t==null)return 0;if(zt(t))return C0(t)?o1(t):t.length;var r=kt(t);return r==_t||r==et?t.size:ra(t).length}function mS(t,r,a){var u=me(t)?zo:c$;return a&&Ot(t,r,a)&&(r=i),u(t,le(r,3))}var yS=Ce(function(t,r){if(t==null)return[];var a=r.length;return a>1&&Ot(t,r[0],r[1])?r=[]:a>2&&Ot(r[0],r[1],r[2])&&(r=[r[0]]),Y5(t,bt(r,1),[])}),m0=Xx||function(){return yt.Date.now()};function bS(t,r){if(typeof r!="function")throw new rn(c);return t=be(t),function(){if(--t<1)return r.apply(this,arguments)}}function Nc(t,r,a){return r=a?i:r,r=t&&r==null?t.length:r,Yn(t,I,i,i,i,i,r)}function Kc(t,r){var a;if(typeof r!="function")throw new rn(c);return t=be(t),function(){return--t>0&&(a=r.apply(this,arguments)),t<=1&&(r=i),a}}var ka=Ce(function(t,r,a){var u=$;if(a.length){var h=or(a,h1(ka));u|=H}return Yn(t,u,r,a,h)}),Hc=Ce(function(t,r,a){var u=$|P;if(a.length){var h=or(a,h1(Hc));u|=H}return Yn(r,u,t,a,h)});function Wc(t,r,a){r=a?i:r;var u=Yn(t,T,i,i,i,i,i,r);return u.placeholder=Wc.placeholder,u}function Uc(t,r,a){r=a?i:r;var u=Yn(t,z,i,i,i,i,i,r);return u.placeholder=Uc.placeholder,u}function Zc(t,r,a){var u,h,_,w,S,M,N=0,K=!1,Z=!1,J=!0;if(typeof t!="function")throw new rn(c);r=cn(r)||0,Xe(a)&&(K=!!a.leading,Z="maxWait"in a,_=Z?pt(cn(a.maxWait)||0,r):_,J="trailing"in a?!!a.trailing:J);function ie(st){var Cn=u,Qn=h;return u=h=i,N=st,w=t.apply(Qn,Cn),w}function ce(st){return N=st,S=H1(Le,r),K?ie(st):w}function ve(st){var Cn=st-M,Qn=st-N,f2=r-Cn;return Z?St(f2,_-Qn):f2}function se(st){var Cn=st-M,Qn=st-N;return M===i||Cn>=r||Cn<0||Z&&Qn>=_}function Le(){var st=m0();if(se(st))return ke(st);S=H1(Le,ve(st))}function ke(st){return S=i,J&&u?ie(st):(u=h=i,w)}function Vt(){S!==i&&tc(S),N=0,u=M=h=S=i}function Et(){return S===i?w:ke(m0())}function jt(){var st=m0(),Cn=se(st);if(u=arguments,h=this,M=st,Cn){if(S===i)return ce(M);if(Z)return tc(S),S=H1(Le,r),ie(M)}return S===i&&(S=H1(Le,r)),w}return jt.cancel=Vt,jt.flush=Et,jt}var vS=Ce(function(t,r){return E5(t,1,r)}),CS=Ce(function(t,r,a){return E5(t,cn(r)||0,a)});function xS(t){return Yn(t,V)}function y0(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new rn(c);var a=function(){var u=arguments,h=r?r.apply(this,u):u[0],_=a.cache;if(_.has(h))return _.get(h);var w=t.apply(this,u);return a.cache=_.set(h,w)||_,w};return a.cache=new(y0.Cache||Zn),a}y0.Cache=Zn;function b0(t){if(typeof t!="function")throw new rn(c);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}function wS(t){return Kc(2,t)}var $S=u$(function(t,r){r=r.length==1&&me(r[0])?Ge(r[0],Yt(le())):Ge(bt(r,1),Yt(le()));var a=r.length;return Ce(function(u){for(var h=-1,_=St(u.length,a);++h<_;)u[h]=r[h].call(this,u[h]);return Ut(t,this,u)})}),Aa=Ce(function(t,r){var a=or(r,h1(Aa));return Yn(t,H,i,r,a)}),Yc=Ce(function(t,r){var a=or(r,h1(Yc));return Yn(t,U,i,r,a)}),LS=qn(function(t,r){return Yn(t,D,i,i,i,r)});function SS(t,r){if(typeof t!="function")throw new rn(c);return r=r===i?r:be(r),Ce(t,r)}function kS(t,r){if(typeof t!="function")throw new rn(c);return r=r==null?0:pt(be(r),0),Ce(function(a){var u=a[r],h=ur(a,0,r);return u&&ir(h,u),Ut(t,this,h)})}function AS(t,r,a){var u=!0,h=!0;if(typeof t!="function")throw new rn(c);return Xe(a)&&(u="leading"in a?!!a.leading:u,h="trailing"in a?!!a.trailing:h),Zc(t,r,{leading:u,maxWait:r,trailing:h})}function MS(t){return Nc(t,1)}function TS(t,r){return Aa(da(r),t)}function PS(){if(!arguments.length)return[];var t=arguments[0];return me(t)?t:[t]}function IS(t){return an(t,L)}function OS(t,r){return r=typeof r=="function"?r:i,an(t,L,r)}function ES(t){return an(t,b|L)}function DS(t,r){return r=typeof r=="function"?r:i,an(t,b|L,r)}function RS(t,r){return r==null||O5(t,r,mt(r))}function vn(t,r){return t===r||t!==t&&r!==r}var BS=f0(ea),FS=f0(function(t,r){return t>=r}),Lr=z5(function(){return arguments}())?z5:function(t){return rt(t)&&Re.call(t,"callee")&&!L5.call(t,"callee")},me=E.isArray,zS=a5?Yt(a5):qw;function zt(t){return t!=null&&v0(t.length)&&!Vn(t)}function at(t){return rt(t)&&zt(t)}function NS(t){return t===!0||t===!1||rt(t)&&It(t)==je}var fr=ew||Na,KS=s5?Yt(s5):Gw;function HS(t){return rt(t)&&t.nodeType===1&&!W1(t)}function WS(t){if(t==null)return!0;if(zt(t)&&(me(t)||typeof t=="string"||typeof t.splice=="function"||fr(t)||g1(t)||Lr(t)))return!t.length;var r=kt(t);if(r==_t||r==et)return!t.size;if(K1(t))return!ra(t).length;for(var a in t)if(Re.call(t,a))return!1;return!0}function US(t,r){return F1(t,r)}function ZS(t,r,a){a=typeof a=="function"?a:i;var u=a?a(t,r):i;return u===i?F1(t,r,i,a):!!u}function Ma(t){if(!rt(t))return!1;var r=It(t);return r==Rt||r==gn||typeof t.message=="string"&&typeof t.name=="string"&&!W1(t)}function YS(t){return typeof t=="number"&&k5(t)}function Vn(t){if(!Xe(t))return!1;var r=It(t);return r==pn||r==kn||r==ut||r==Bt}function qc(t){return typeof t=="number"&&t==be(t)}function v0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ft}function Xe(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function rt(t){return t!=null&&typeof t=="object"}var Gc=l5?Yt(l5):jw;function qS(t,r){return t===r||na(t,r,ba(r))}function GS(t,r,a){return a=typeof a=="function"?a:i,na(t,r,ba(r),a)}function VS(t){return Vc(t)&&t!=+t}function jS(t){if(O$(t))throw new he(l);return N5(t)}function QS(t){return t===null}function XS(t){return t==null}function Vc(t){return typeof t=="number"||rt(t)&&It(t)==Pe}function W1(t){if(!rt(t)||It(t)!=Qe)return!1;var r=qi(t);if(r===null)return!0;var a=Re.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Wi.call(a)==Gx}var Ta=c5?Yt(c5):Qw;function JS(t){return qc(t)&&t>=-ft&&t<=ft}var jc=u5?Yt(u5):Xw;function C0(t){return typeof t=="string"||!me(t)&&rt(t)&&It(t)==tn}function Gt(t){return typeof t=="symbol"||rt(t)&&It(t)==tr}var g1=f5?Yt(f5):Jw;function ek(t){return t===i}function tk(t){return rt(t)&&kt(t)==_n}function nk(t){return rt(t)&&It(t)==B}var rk=f0(ia),ik=f0(function(t,r){return t<=r});function Qc(t){if(!t)return[];if(zt(t))return C0(t)?mn(t):Ft(t);if(T1&&t[T1])return Rx(t[T1]());var r=kt(t),a=r==_t?Zo:r==et?Ni:p1;return a(t)}function jn(t){if(!t)return t===0?t:0;if(t=cn(t),t===Ye||t===-Ye){var r=t<0?-1:1;return r*$e}return t===t?t:0}function be(t){var r=jn(t),a=r%1;return r===r?a?r-a:r:0}function Xc(t){return t?Cr(be(t),0,Ae):0}function cn(t){if(typeof t=="number")return t;if(Gt(t))return oe;if(Xe(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=Xe(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=m5(t);var a=zC.test(t);return a||KC.test(t)?bx(t.slice(2),a?2:8):FC.test(t)?oe:+t}function Jc(t){return Pn(t,Nt(t))}function ok(t){return t?Cr(be(t),-ft,ft):t===0?t:0}function Be(t){return t==null?"":qt(t)}var ak=f1(function(t,r){if(K1(r)||zt(r)){Pn(r,mt(r),t);return}for(var a in r)Re.call(r,a)&&D1(t,a,r[a])}),e2=f1(function(t,r){Pn(r,Nt(r),t)}),t2=f1(function(t,r,a,u){Pn(r,Nt(r),t,u)}),Pa=f1(function(t,r,a,u){Pn(r,mt(r),t,u)}),sk=qn(Qo);function lk(t,r){var a=u1(t);return r==null?a:I5(a,r)}var ck=Ce(function(t,r){t=Ne(t);var a=-1,u=r.length,h=u>2?r[2]:i;for(h&&Ot(r[0],r[1],h)&&(u=1);++a<u;)for(var _=r[a],w=Nt(_),S=-1,M=w.length;++S<M;){var N=w[S],K=t[N];(K===i||vn(K,s1[N])&&!Re.call(t,N))&&(t[N]=_[N])}return t}),uk=Ce(function(t){return t.push(i,mc),Ut(n2,i,t)});function fk(t,r){return h5(t,le(r,3),Tn)}function dk(t,r){return h5(t,le(r,3),Jo)}function hk(t,r){return t==null?t:Xo(t,le(r,3),Nt)}function gk(t,r){return t==null?t:B5(t,le(r,3),Nt)}function pk(t,r){return t&&Tn(t,le(r,3))}function _k(t,r){return t&&Jo(t,le(r,3))}function mk(t){return t==null?[]:r0(t,mt(t))}function yk(t){return t==null?[]:r0(t,Nt(t))}function Ia(t,r,a){var u=t==null?i:xr(t,r);return u===i?a:u}function bk(t,r){return t!=null&&vc(t,r,Ww)}function Oa(t,r){return t!=null&&vc(t,r,Uw)}var vk=dc(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ui.call(r)),t[r]=a},Da(Kt)),Ck=dc(function(t,r,a){r!=null&&typeof r.toString!="function"&&(r=Ui.call(r)),Re.call(t,r)?t[r].push(a):t[r]=[a]},le),xk=Ce(B1);function mt(t){return zt(t)?T5(t):ra(t)}function Nt(t){return zt(t)?T5(t,!0):e$(t)}function wk(t,r){var a={};return r=le(r,3),Tn(t,function(u,h,_){Mn(a,r(u,h,_),u)}),a}function $k(t,r){var a={};return r=le(r,3),Tn(t,function(u,h,_){Mn(a,h,r(u,h,_))}),a}var Lk=f1(function(t,r,a){i0(t,r,a)}),n2=f1(function(t,r,a,u){i0(t,r,a,u)}),Sk=qn(function(t,r){var a={};if(t==null)return a;var u=!1;r=Ge(r,function(_){return _=cr(_,t),u||(u=_.length>1),_}),Pn(t,ma(t),a),u&&(a=an(a,b|C|L,C$));for(var h=r.length;h--;)ca(a,r[h]);return a});function kk(t,r){return r2(t,b0(le(r)))}var Ak=qn(function(t,r){return t==null?{}:n$(t,r)});function r2(t,r){if(t==null)return{};var a=Ge(ma(t),function(u){return[u]});return r=le(r),q5(t,a,function(u,h){return r(u,h[0])})}function Mk(t,r,a){r=cr(r,t);var u=-1,h=r.length;for(h||(h=1,t=i);++u<h;){var _=t==null?i:t[bn(r[u])];_===i&&(u=h,_=a),t=Vn(_)?_.call(t):_}return t}function Tk(t,r,a){return t==null?t:z1(t,r,a)}function Pk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:z1(t,r,a,u)}var i2=pc(mt),o2=pc(Nt);function Ik(t,r,a){var u=me(t),h=u||fr(t)||g1(t);if(r=le(r,4),a==null){var _=t&&t.constructor;h?a=u?new _:[]:Xe(t)?a=Vn(_)?u1(qi(t)):{}:a={}}return(h?Zt:Tn)(t,function(w,S,M){return r(a,w,S,M)}),a}function Ok(t,r){return t==null?!0:ca(t,r)}function Ek(t,r,a){return t==null?t:X5(t,r,da(a))}function Dk(t,r,a,u){return u=typeof u=="function"?u:i,t==null?t:X5(t,r,da(a),u)}function p1(t){return t==null?[]:Uo(t,mt(t))}function Rk(t){return t==null?[]:Uo(t,Nt(t))}function Bk(t,r,a){return a===i&&(a=r,r=i),a!==i&&(a=cn(a),a=a===a?a:0),r!==i&&(r=cn(r),r=r===r?r:0),Cr(cn(t),r,a)}function Fk(t,r,a){return r=jn(r),a===i?(a=r,r=0):a=jn(a),t=cn(t),Zw(t,r,a)}function zk(t,r,a){if(a&&typeof a!="boolean"&&Ot(t,r,a)&&(r=a=i),a===i&&(typeof r=="boolean"?(a=r,r=i):typeof t=="boolean"&&(a=t,t=i)),t===i&&r===i?(t=0,r=1):(t=jn(t),r===i?(r=t,t=0):r=jn(r)),t>r){var u=t;t=r,r=u}if(a||t%1||r%1){var h=A5();return St(t+h*(r-t+yx("1e-"+((h+"").length-1))),r)}return aa(t,r)}var Nk=d1(function(t,r,a){return r=r.toLowerCase(),t+(a?a2(r):r)});function a2(t){return Ea(Be(t).toLowerCase())}function s2(t){return t=Be(t),t&&t.replace(WC,Px).replace(lx,"")}function Kk(t,r,a){t=Be(t),r=qt(r);var u=t.length;a=a===i?u:Cr(be(a),0,u);var h=a;return a-=r.length,a>=0&&t.slice(a,h)==r}function Hk(t){return t=Be(t),t&&$C.test(t)?t.replace(R9,Ix):t}function Wk(t){return t=Be(t),t&&TC.test(t)?t.replace(Ao,"\\$&"):t}var Uk=d1(function(t,r,a){return t+(a?"-":"")+r.toLowerCase()}),Zk=d1(function(t,r,a){return t+(a?" ":"")+r.toLowerCase()}),Yk=cc("toLowerCase");function qk(t,r,a){t=Be(t),r=be(r);var u=r?o1(t):0;if(!r||u>=r)return t;var h=(r-u)/2;return u0(Qi(h),a)+t+u0(ji(h),a)}function Gk(t,r,a){t=Be(t),r=be(r);var u=r?o1(t):0;return r&&u<r?t+u0(r-u,a):t}function Vk(t,r,a){t=Be(t),r=be(r);var u=r?o1(t):0;return r&&u<r?u0(r-u,a)+t:t}function jk(t,r,a){return a||r==null?r=0:r&&(r=+r),iw(Be(t).replace(Mo,""),r||0)}function Qk(t,r,a){return(a?Ot(t,r,a):r===i)?r=1:r=be(r),sa(Be(t),r)}function Xk(){var t=arguments,r=Be(t[0]);return t.length<3?r:r.replace(t[1],t[2])}var Jk=d1(function(t,r,a){return t+(a?"_":"")+r.toLowerCase()});function eA(t,r,a){return a&&typeof a!="number"&&Ot(t,r,a)&&(r=a=i),a=a===i?Ae:a>>>0,a?(t=Be(t),t&&(typeof r=="string"||r!=null&&!Ta(r))&&(r=qt(r),!r&&i1(t))?ur(mn(t),0,a):t.split(r,a)):[]}var tA=d1(function(t,r,a){return t+(a?" ":"")+Ea(r)});function nA(t,r,a){return t=Be(t),a=a==null?0:Cr(be(a),0,t.length),r=qt(r),t.slice(a,a+r.length)==r}function rA(t,r,a){var u=p.templateSettings;a&&Ot(t,r,a)&&(r=i),t=Be(t),r=Pa({},r,u,_c);var h=Pa({},r.imports,u.imports,_c),_=mt(h),w=Uo(h,_);Zt(_,function(se){if(F9.test(se))throw new he(d)});var S,M,N=0,K=r.interpolate||Di,Z="__p += '",J=Yo((r.escape||Di).source+"|"+K.source+"|"+(K===B9?BC:Di).source+"|"+(r.evaluate||Di).source+"|$","g"),ie="//# sourceURL="+(Re.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hx+"]")+`
11
+ `;t.replace(J,function(se,Le,ke,Vt,Et,jt){return ke||(ke=Vt),Z+=t.slice(N,jt).replace(UC,Ox),Le&&(S=!0,Z+=`' +
12
12
  __e(`+Le+`) +
13
- '`),Ot&&(M=!0,H+=`';
14
- `+Ot+`;
15
- __p += '`),ke&&(H+=`' +
13
+ '`),Et&&(M=!0,Z+=`';
14
+ `+Et+`;
15
+ __p += '`),ke&&(Z+=`' +
16
16
  ((__t = (`+ke+`)) == null ? '' : __t) +
17
- '`),B=Yt+ae.length,ae}),H+=`';
18
- `;var le=De.call(r,"variable")&&r.variable;if(!le)H=`with (obj) {
19
- `+H+`
17
+ '`),N=jt+se.length,se}),Z+=`';
18
+ `;var ce=Re.call(r,"variable")&&r.variable;if(!ce)Z=`with (obj) {
19
+ `+Z+`
20
20
  }
21
- `;else if(I5.test(le))throw new fe(f);H=(M?H.replace(nC,""):H).replace(rC,"$1").replace(iC,"$1;"),H="function("+(le||"obj")+`) {
22
- `+(le?"":`obj || (obj = {});
23
- `)+"var __t, __p = ''"+(k?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
21
+ `;else if(F9.test(ce))throw new he(f);Z=(M?Z.replace(Ii,""):Z).replace(Oi,"$1").replace(Ei,"$1;"),Z="function("+(ce||"obj")+`) {
22
+ `+(ce?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(S?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
- `)+H+`return __p
27
- }`;var _e=i6(function(){return Ie(m,ie+"return "+H).apply(i,w)});if(_e.source=H,_a(_e))throw _e;return _e}function zk(t){return Re(t).toLowerCase()}function Kk(t){return Re(t).toUpperCase()}function Hk(t,r,a){if(t=Re(t),t&&(a||r===i))return dl(t);if(!t||!(r=Wt(r)))return t;var u=dn(t),h=dn(r),m=hl(u,h),w=gl(u,h)+1;return cr(u,m,w).join("")}function Wk(t,r,a){if(t=Re(t),t&&(a||r===i))return t.slice(0,ml(t)+1);if(!t||!(r=Wt(r)))return t;var u=dn(t),h=gl(u,dn(r))+1;return cr(u,0,h).join("")}function Uk(t,r,a){if(t=Re(t),t&&(a||r===i))return t.replace(_o,"");if(!t||!(r=Wt(r)))return t;var u=dn(t),h=hl(u,dn(r));return cr(u,h).join("")}function Zk(t,r){var a=q,u=ne;if(Xe(r)){var h="separator"in r?r.separator:h;a="length"in r?ye(r.length):a,u="omission"in r?Wt(r.omission):u}t=Re(t);var m=t.length;if(jr(t)){var w=dn(t);m=w.length}if(a>=m)return t;var k=a-qr(u);if(k<1)return u;var M=w?cr(w,0,k).join(""):t.slice(0,k);if(h===i)return M+u;if(w&&(k+=M.length-k),va(h)){if(t.slice(k).search(h)){var B,F=M;for(h.global||(h=Do(h.source,Re(E5.exec(h))+"g")),h.lastIndex=0;B=h.exec(F);)var H=B.index;M=M.slice(0,H===i?k:H)}}else if(t.indexOf(Wt(h),k)!=k){var X=M.lastIndexOf(h);X>-1&&(M=M.slice(0,X))}return M+u}function Yk(t){return t=Re(t),t&&oC.test(t)?t.replace(T5,xx):t}var Gk=i1(function(t,r,a){return t+(a?" ":"")+r.toUpperCase()}),wa=i2("toUpperCase");function r6(t,r,a){return t=Re(t),r=a?i:r,r===i?yx(t)?$x(t):lx(t):t.match(r)||[]}var i6=be(function(t,r){try{return zt(t,i,r)}catch(a){return _a(a)?a:new fe(a)}}),Vk=Zn(function(t,r){return Kt(r,function(a){a=gn(a),Ln(t,a,ma(t[a],t))}),t});function Qk(t){var r=t==null?0:t.length,a=se();return t=r?Ve(t,function(u){if(typeof u[1]!="function")throw new Jt(c);return[a(u[0]),u[1]]}):[],be(function(u){for(var h=-1;++h<r;){var m=t[h];if(zt(m[0],this,u))return zt(m[1],this,u)}})}function jk(t){return xw(tn(t,v))}function La(t){return function(){return t}}function qk(t,r){return t==null||t!==t?r:t}var Xk=a2(),Jk=a2(!0);function Ft(t){return t}function $a(t){return Rl(typeof t=="function"?t:tn(t,v))}function eA(t){return Fl(tn(t,v))}function tA(t,r){return Nl(t,tn(r,v))}var nA=be(function(t,r){return function(a){return M1(a,t,r)}}),rA=be(function(t,r){return function(a){return M1(t,a,r)}});function Sa(t,r,a){var u=gt(r),h=Gi(r,u);a==null&&!(Xe(r)&&(h.length||!u.length))&&(a=r,r=t,t=this,h=Gi(r,gt(r)));var m=!(Xe(a)&&"chain"in a)||!!a.chain,w=Gn(t);return Kt(h,function(k){var M=r[k];t[k]=M,w&&(t.prototype[k]=function(){var B=this.__chain__;if(m||B){var F=t(this.__wrapped__),H=F.__actions__=Dt(this.__actions__);return H.push({func:M,args:arguments,thisArg:t}),F.__chain__=B,F}return M.apply(t,rr([this.value()],arguments))})}),t}function iA(){return _t._===this&&(_t._=Px),this}function ka(){}function oA(t){return t=ye(t),be(function(r){return zl(r,t)})}var aA=ra(Ve),sA=ra(sl),lA=ra(Ao);function o6(t){return ua(t)?Mo(gn(t)):Nw(t)}function cA(t){return function(r){return t==null?i:br(t,r)}}var uA=l2(),fA=l2(!0);function Aa(){return[]}function Ma(){return!1}function dA(){return{}}function hA(){return""}function gA(){return!0}function pA(t,r){if(t=ye(t),t<1||t>lt)return[];var a=Be,u=St(t,Be);r=se(r),t-=Be;for(var h=Oo(u,r);++a<t;)r(a);return h}function mA(t){return pe(t)?Ve(t,gn):Ut(t)?[t]:Dt(L2(Re(t)))}function yA(t){var r=++Mx;return Re(t)+r}var _A=Ji(function(t,r){return t+r},0),vA=ia("ceil"),bA=Ji(function(t,r){return t/r},1),CA=ia("floor");function xA(t){return t&&t.length?Yi(t,Ft,Wo):i}function wA(t,r){return t&&t.length?Yi(t,se(r,2),Wo):i}function LA(t){return ul(t,Ft)}function $A(t,r){return ul(t,se(r,2))}function SA(t){return t&&t.length?Yi(t,Ft,Go):i}function kA(t,r){return t&&t.length?Yi(t,se(r,2),Go):i}var AA=Ji(function(t,r){return t*r},1),MA=ia("round"),TA=Ji(function(t,r){return t-r},0);function PA(t){return t&&t.length?Po(t,Ft):0}function OA(t,r){return t&&t.length?Po(t,se(r,2)):0}return p.after=tS,p.ary=D2,p.assign=HS,p.assignIn=Q2,p.assignInWith=j2,p.assignWith=ba,p.at=WS,p.before=R2,p.bind=ma,p.bindAll=Vk,p.bindKey=B2,p.castArray=hS,p.chain=O2,p.chunk=xL,p.compact=wL,p.concat=LL,p.cond=Qk,p.conforms=jk,p.constant=La,p.countBy=O$,p.create=US,p.curry=F2,p.curryRight=N2,p.debounce=z2,p.defaults=ZS,p.defaultsDeep=YS,p.defer=nS,p.delay=rS,p.difference=$L,p.differenceBy=SL,p.differenceWith=kL,p.drop=AL,p.dropRight=ML,p.dropRightWhile=TL,p.dropWhile=PL,p.fill=OL,p.filter=E$,p.flatMap=B$,p.flatMapDeep=F$,p.flatMapDepth=N$,p.flatten=A2,p.flattenDeep=IL,p.flattenDepth=EL,p.flip=iS,p.flow=Xk,p.flowRight=Jk,p.fromPairs=DL,p.functions=JS,p.functionsIn=ek,p.groupBy=z$,p.initial=BL,p.intersection=FL,p.intersectionBy=NL,p.intersectionWith=zL,p.invert=nk,p.invertBy=rk,p.invokeMap=H$,p.iteratee=$a,p.keyBy=W$,p.keys=gt,p.keysIn=Bt,p.map=a0,p.mapKeys=ok,p.mapValues=ak,p.matches=eA,p.matchesProperty=tA,p.memoize=l0,p.merge=sk,p.mergeWith=q2,p.method=nA,p.methodOf=rA,p.mixin=Sa,p.negate=c0,p.nthArg=oA,p.omit=lk,p.omitBy=ck,p.once=oS,p.orderBy=U$,p.over=aA,p.overArgs=aS,p.overEvery=sA,p.overSome=lA,p.partial=ya,p.partialRight=K2,p.partition=Z$,p.pick=uk,p.pickBy=X2,p.property=o6,p.propertyOf=cA,p.pull=UL,p.pullAll=T2,p.pullAllBy=ZL,p.pullAllWith=YL,p.pullAt=GL,p.range=uA,p.rangeRight=fA,p.rearg=sS,p.reject=V$,p.remove=VL,p.rest=lS,p.reverse=ga,p.sampleSize=j$,p.set=dk,p.setWith=hk,p.shuffle=q$,p.slice=QL,p.sortBy=eS,p.sortedUniq=n$,p.sortedUniqBy=r$,p.split=Rk,p.spread=cS,p.tail=i$,p.take=o$,p.takeRight=a$,p.takeRightWhile=s$,p.takeWhile=l$,p.tap=w$,p.throttle=uS,p.thru=o0,p.toArray=Y2,p.toPairs=J2,p.toPairsIn=e6,p.toPath=mA,p.toPlainObject=V2,p.transform=gk,p.unary=fS,p.union=c$,p.unionBy=u$,p.unionWith=f$,p.uniq=d$,p.uniqBy=h$,p.uniqWith=g$,p.unset=pk,p.unzip=pa,p.unzipWith=P2,p.update=mk,p.updateWith=yk,p.values=s1,p.valuesIn=_k,p.without=p$,p.words=r6,p.wrap=dS,p.xor=m$,p.xorBy=y$,p.xorWith=_$,p.zip=v$,p.zipObject=b$,p.zipObjectDeep=C$,p.zipWith=x$,p.entries=J2,p.entriesIn=e6,p.extend=Q2,p.extendWith=j2,Sa(p,p),p.add=_A,p.attempt=i6,p.camelCase=xk,p.capitalize=t6,p.ceil=vA,p.clamp=vk,p.clone=gS,p.cloneDeep=mS,p.cloneDeepWith=yS,p.cloneWith=pS,p.conformsTo=_S,p.deburr=n6,p.defaultTo=qk,p.divide=bA,p.endsWith=wk,p.eq=pn,p.escape=Lk,p.escapeRegExp=$k,p.every=I$,p.find=D$,p.findIndex=S2,p.findKey=GS,p.findLast=R$,p.findLastIndex=k2,p.findLastKey=VS,p.floor=CA,p.forEach=I2,p.forEachRight=E2,p.forIn=QS,p.forInRight=jS,p.forOwn=qS,p.forOwnRight=XS,p.get=Ca,p.gt=vS,p.gte=bS,p.has=tk,p.hasIn=xa,p.head=M2,p.identity=Ft,p.includes=K$,p.indexOf=RL,p.inRange=bk,p.invoke=ik,p.isArguments=wr,p.isArray=pe,p.isArrayBuffer=CS,p.isArrayLike=Rt,p.isArrayLikeObject=nt,p.isBoolean=xS,p.isBuffer=ur,p.isDate=wS,p.isElement=LS,p.isEmpty=$S,p.isEqual=SS,p.isEqualWith=kS,p.isError=_a,p.isFinite=AS,p.isFunction=Gn,p.isInteger=H2,p.isLength=u0,p.isMap=W2,p.isMatch=MS,p.isMatchWith=TS,p.isNaN=PS,p.isNative=OS,p.isNil=ES,p.isNull=IS,p.isNumber=U2,p.isObject=Xe,p.isObjectLike=et,p.isPlainObject=D1,p.isRegExp=va,p.isSafeInteger=DS,p.isSet=Z2,p.isString=f0,p.isSymbol=Ut,p.isTypedArray=a1,p.isUndefined=RS,p.isWeakMap=BS,p.isWeakSet=FS,p.join=KL,p.kebabCase=Sk,p.last=rn,p.lastIndexOf=HL,p.lowerCase=kk,p.lowerFirst=Ak,p.lt=NS,p.lte=zS,p.max=xA,p.maxBy=wA,p.mean=LA,p.meanBy=$A,p.min=SA,p.minBy=kA,p.stubArray=Aa,p.stubFalse=Ma,p.stubObject=dA,p.stubString=hA,p.stubTrue=gA,p.multiply=AA,p.nth=WL,p.noConflict=iA,p.noop=ka,p.now=s0,p.pad=Mk,p.padEnd=Tk,p.padStart=Pk,p.parseInt=Ok,p.random=Ck,p.reduce=Y$,p.reduceRight=G$,p.repeat=Ik,p.replace=Ek,p.result=fk,p.round=MA,p.runInContext=A,p.sample=Q$,p.size=X$,p.snakeCase=Dk,p.some=J$,p.sortedIndex=jL,p.sortedIndexBy=qL,p.sortedIndexOf=XL,p.sortedLastIndex=JL,p.sortedLastIndexBy=e$,p.sortedLastIndexOf=t$,p.startCase=Bk,p.startsWith=Fk,p.subtract=TA,p.sum=PA,p.sumBy=OA,p.template=Nk,p.times=pA,p.toFinite=Vn,p.toInteger=ye,p.toLength=G2,p.toLower=zk,p.toNumber=on,p.toSafeInteger=KS,p.toString=Re,p.toUpper=Kk,p.trim=Hk,p.trimEnd=Wk,p.trimStart=Uk,p.truncate=Zk,p.unescape=Yk,p.uniqueId=yA,p.upperCase=Gk,p.upperFirst=wa,p.each=I2,p.eachRight=E2,p.first=M2,Sa(p,function(){var t={};return $n(p,function(r,a){De.call(p.prototype,a)||(t[a]=r)}),t}(),{chain:!1}),p.VERSION=o,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Kt(["drop","take"],function(t,r){Se.prototype[t]=function(a){a=a===i?1:dt(ye(a),0);var u=this.__filtered__&&!r?new Se(this):this.clone();return u.__filtered__?u.__takeCount__=St(a,u.__takeCount__):u.__views__.push({size:St(a,Be),type:t+(u.__dir__<0?"Right":"")}),u},Se.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Kt(["filter","map","takeWhile"],function(t,r){var a=r+1,u=a==oe||a==mt;Se.prototype[t]=function(h){var m=this.clone();return m.__iteratees__.push({iteratee:se(h,3),type:a}),m.__filtered__=m.__filtered__||u,m}}),Kt(["head","last"],function(t,r){var a="take"+(r?"Right":"");Se.prototype[t]=function(){return this[a](1).value()[0]}}),Kt(["initial","tail"],function(t,r){var a="drop"+(r?"":"Right");Se.prototype[t]=function(){return this.__filtered__?new Se(this):this[a](1)}}),Se.prototype.compact=function(){return this.filter(Ft)},Se.prototype.find=function(t){return this.filter(t).head()},Se.prototype.findLast=function(t){return this.reverse().find(t)},Se.prototype.invokeMap=be(function(t,r){return typeof t=="function"?new Se(this):this.map(function(a){return M1(a,t,r)})}),Se.prototype.reject=function(t){return this.filter(c0(se(t)))},Se.prototype.slice=function(t,r){t=ye(t);var a=this;return a.__filtered__&&(t>0||r<0)?new Se(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),r!==i&&(r=ye(r),a=r<0?a.dropRight(-r):a.take(r-t)),a)},Se.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Se.prototype.toArray=function(){return this.take(Be)},$n(Se.prototype,function(t,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],m=u||/^find/.test(r);h&&(p.prototype[r]=function(){var w=this.__wrapped__,k=u?[1]:arguments,M=w instanceof Se,B=k[0],F=M||pe(w),H=function(Le){var ke=h.apply(p,rr([Le],k));return u&&X?ke[0]:ke};F&&a&&typeof B=="function"&&B.length!=1&&(M=F=!1);var X=this.__chain__,ie=!!this.__actions__.length,le=m&&!X,_e=M&&!ie;if(!m&&F){w=_e?w:new Se(this);var ae=t.apply(w,k);return ae.__actions__.push({func:o0,args:[H],thisArg:i}),new en(ae,X)}return le&&_e?t.apply(this,k):(ae=this.thru(H),le?u?ae.value()[0]:ae.value():ae)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Pi[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var m=this.value();return r.apply(pe(m)?m:[],h)}return this[a](function(w){return r.apply(pe(w)?w:[],h)})}}),$n(Se.prototype,function(t,r){var a=p[r];if(a){var u=a.name+"";De.call(t1,u)||(t1[u]=[]),t1[u].push({name:r,func:a})}}),t1[Xi(i,T).name]=[{name:"wrapper",func:i}],Se.prototype.clone=Gx,Se.prototype.reverse=Vx,Se.prototype.value=Qx,p.prototype.at=L$,p.prototype.chain=$$,p.prototype.commit=S$,p.prototype.next=k$,p.prototype.plant=M$,p.prototype.reverse=T$,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=P$,p.prototype.first=p.prototype.head,x1&&(p.prototype[x1]=A$),p},Xr=Sx();pr?((pr.exports=Xr)._=Xr,Lo._=Xr):_t._=Xr}).call(kn)}(R1,R1.exports);var s6=R1.exports;const it=h0(s6),l6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=ue.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const c=an({x:i[1].x-8,y:i[1].y+4},i[1],l),f=an({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=it.merge({},e,i)},getProperties:()=>e}},c6=()=>{let e=new Map,n=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=Ta(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,it.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},u6=()=>{let e=new Map,n=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:n(o.id)}]:[],setProperties:(i,o)=>{e.set(o,it.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},f6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:n()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},d6=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:n()}],setProperties:i=>{e=it.merge({},e,i)},getProperties:()=>e}},h6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(b=>{const y=c*b;d.push({...o[0],r:y}),g.push({x:o[0].x,y:o[0].y+y+6,text:`${(b*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},g6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:c})=>{const f=[],d=[];if(o.length>1){let g=0;const b=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&b?g=b.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach(S=>{g=Math.max(g,S.precision)});const y=o[1].x>o[0].x?o[0].x:o[1].x,v=[1,.786,.618,.5,.382,.236,0],$=o[0].y-o[1].y,_=s.points,x=_[0].value-_[1].value;v.forEach(L=>{const S=o[1].y+$*L,T=(_[1].value+x*L).toFixed(g.price);f.push({coordinates:[{x:o[0].x,y:S},{x:o[1].x,y:S}]}),d.push({x:y,y:S,text:`${T} (${(L*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},p6=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=Ta(o[0],o[1])/Math.sqrt(24),c=o[1].x>o[0].x?0:1,f=ue.utils.getLinearSlopeIntercept(o[0],o[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:o[1].y>o[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=an({x:o[0].x-l,y:o[0].y},o[0],d),b=an({x:o[0].x-l,y:o[0].y-l},o[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{...b,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let v=o[0].x-l,$=o[0].y-l;for(let _=2;_<9;_++){const x=y[_-2].r+y[_-1].r;let L=0;switch(_%4){case 0:{L=d,v-=y[_-2].r;break}case 1:{L=d+Math.PI/2,$-=y[_-2].r;break}case 2:{L=d+Math.PI,v+=y[_-2].r;break}case 3:{L=d+Math.PI/2*3,$+=y[_-2].r;break}}const S=L+Math.PI/2,T=an({x:v,y:$},o[0],d);y.push({...T,r:x,startAngle:L,endAngle:S})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:d0(o,s),styles:i()}]}return[]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},m6=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let c=[];const f=[];if(o.length>1){const d=o[1].x>o[0].x?-38:4,g=o[1].y>o[0].y?-2:20,b=o[1].x-o[0].x,y=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach($=>{const _=o[1].x-b*$,x=o[1].y-y*$;l.push({coordinates:[{x:_,y:o[0].y},{x:_,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:x},{x:o[1].x,y:x}]}),c=c.concat(d0([o[0],{x:_,y:o[1].y}],s)),c=c.concat(d0([o[0],{x:o[1].x,y:x}],s)),f.unshift({x:o[0].x+d,y:x+10,text:`${$.toFixed(3)}`}),f.unshift({x:_-18,y:o[0].y+g,text:`${$.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},y6=()=>{let e={};const n=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let b=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?b=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(T=>{b=Math.max(b,T.precision)});const v=f.points,$=v[1].value-v[0].value,_=c[1].y-c[0].y,x=[0,.236,.382,.5,.618,.786,1],L=c[2].x>c[1].x?c[1].x:c[2].x;x.forEach(S=>{const T=c[2].y+_*S,P=(v[2].value+$*S).toFixed(b.price);d.push({coordinates:[{x:c[1].x,y:T},{x:c[2].x,y:T}]}),g.push({x:L,y:T,text:`${P} (${(S*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=it.merge({},e,s)},getProperties:()=>e}},_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}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],g=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:n()},{type:"line",attrs:d,styles:o()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=it.merge({},e,l)},getProperties:()=>e}},v6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},b6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},C6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},x6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},w6=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],c=[];const f=["A","B","C","D"],d=s.map((g,b)=>({...g,baseline:"bottom",text:`(${f[b]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:o()}]},setProperties:s=>{e=it.merge({},e,s)},getProperties:()=>e}},L6=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:c})=>{const f=[],d=[],g=["X","A","B","C","D"],b=l.map((y,v)=>({...y,baseline:"bottom",text:`(${g[v]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),d.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:o()},{type:"polygon",ignoreEvent:!0,attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:b,styles:s()}]},setProperties:l=>{e=it.merge({},e,l)},getProperties:()=>e}},$6=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const o=n.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:o})=>{n>=2&&i.push(o)},setProperties:n=>{e=it.merge({},e,n)},getProperties:()=>e}},Pa="--klinecharts-pro-price-alert-line-color",Oa="#76808F";function S6(e){const n=e.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function Ia(e,n,i){if(typeof window>"u"||typeof window.getComputedStyle!="function")return i;const o=S6(e);if(!o)return i;const s=window.getComputedStyle(o).getPropertyValue(n).trim();return s||i}function _n(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const g0=(e,n,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:n.paneId}).forEach(c=>{o.price=Math.max(o.price,c.precision)}),o},k6=(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)}},Ea="#2ebd85",Da="#f6465d",A6="#2ebd85",M6="#f6465d",T6=e=>({style:"solid",size:1,color:e,dashedValue:[]}),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}),P6=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}),O6=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}),I6=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var Pe;const s=(Pe=o.points[0])==null?void 0:Pe.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,b=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*b:(s-g)*l.size*b,v=e.getSymbol(),$=(v==null?void 0:v.pricePrecision)??2,_=(v==null?void 0:v.volumePrecision)??4,x=_n(l.size,_),L=`PNL ${y>=0?"+":""}${_n(y,$)}`,S=l.side==="long"?Ea:Da,T=y>=0?A6:M6,P=O6(S),E=P6(T),Z=P.paddingLeft,J=P.paddingRight,G=ue.utils.calcTextWidth(x)+Z+J,I=ue.utils.calcTextWidth(L)+Z+J,N=16,Q=-1,q=0,ne=N+I+Q,te=ne+G+q;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(te,i.width),y:d},{x:i.width,y:d}]},styles:T6(S),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:N,y:d,text:L,align:"left",baseline:"middle"},styles:E,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:ne,y:d,text:x,align:"left",baseline:"middle"},styles:P,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var v;const l=(v=n.points[0])==null?void 0:v.value,c=n.extendData,f=g0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Ra("#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,b=(s==null?void 0:s.isFromZero())??!1,y=_n(l,f.price);return{type:"text",attrs:{x:b?0:o.width,y:g,text:y,align:b?"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)});function Ba(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 E6(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,o=Ba(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Ba(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return o===void 0||s===void 0?null:{min:Math.min(o,s),max:Math.max(o,s)}}function l1(e,n){const i=E6(e);return i?n>=i.min&&n<=i.max:!1}const p0="#f6465d",D6=()=>({style:"dashed",size:1,color:p0,dashedValue:[4,4]}),B1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:p0,borderColor:p0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},R6={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},B6=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var T;const s=(T=o.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: ${_n(s,g)}`,v=B1.paddingLeft,$=B1.paddingRight,_=ue.utils.calcTextWidth(y)+v+$,x=16,L=2,S=x+_+L;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min(S,i.width),y:f},{x:i.width,y:f}]},styles:D6(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x,y:f,text:y,align:"left",baseline:"middle"},styles:B1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var v;const l=(v=n.points[0])==null?void 0:v.value,c=g0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:B1};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,b=(s==null?void 0:s.isFromZero())??!1,y=_n(l,c.price);return{type:"text",attrs:{x:b?0:o.width,y:g,text:y,align:b?"left":"right",baseline:"middle"},styles:R6}},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)}),F6="#2ebd85",N6="#f6465d";function Fa(e){return e?F6:N6}const z6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),K6=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}),H6=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}),Na=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}),W6=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var N;const s=(N=o.points[0])==null?void 0:N.value,l=o.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 b=(g==null?void 0:g.volumePrecision)??4,y="限价",v=_n(l.size,b),$=Fa(l.isBuy),_=K6($),x=H6($),L=_.paddingLeft,S=_.paddingRight,T=ue.utils.calcTextWidth(y)+L+S,P=ue.utils.calcTextWidth(v)+L+S,E=16,Z=-1,J=2,G=E+T+Z,I=G+P+J;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(I,i.width),y:d},{x:i.width,y:d}]},styles:z6($),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:E,y:d,text:y,align:"left",baseline:"middle"},styles:_,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:G,y:d,text:v,align:"left",baseline:"middle"},styles:x,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var $;const l=($=n.points[0])==null?void 0:$.value,c=g0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Na("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!l1(e,l))return f;Fa(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const b=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,v=_n(l,c.price);return{type:"text",attrs:{x:y?0:o.width,y:b,text:v,align:y?"left":"right",baseline:"middle"},styles:Na("#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)}),U6="#2ebd85",Z6="#f6465d",Y6=6,G6=14,za=14,Ka=18,V6={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},Q6=()=>({name:"hisOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const o=i.points[0],s=i.extendData;if(!o||!s||!Number.isFinite(o.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(E=>E.timestamp===o.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?U6:Z6,b=s.isBuy?"B":"S",y=n[0].x,v=e.convertToPixel({timestamp:o.timestamp,value:f}).y??n[0].y,$=e.convertToPixel({timestamp:o.timestamp,value:d}).y??n[0].y,_=Math.max(0,s.stackIndex??0),x=Math.abs($-v),L=Number.isFinite(x)&&x<Ka?Math.max(0,Ka-x)*.65:0,S=G6+L,T=s.isBuy?$+S+_*za:v-S-_*za;return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:T-.5,r:Y6},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:T,text:b,align:"center",baseline:"middle"},styles:V6,ignoreEvent:!0}]},onMouseEnter:()=>!1,onMouseLeave:()=>!1,onRemoved:()=>!1,onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),F1="klinecharts-pro-his-order-hover",c1="klinecharts-pro-alert-detail-open",j6=140,N1=new Map;function q6(e){const n=e.chart.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function X6(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(c1,{detail:e}))}function m0(e){const n=N1.get(e);n!=null&&(clearTimeout(n),N1.delete(e))}function J6(e,n){m0(n);const i=setTimeout(()=>{N1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},j6);N1.set(n,i)}function Ha(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let z1;function ec(e){z1=e.onRemove}const tc=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]});function nc(e,n=2){const i=Number(e.price??0),o=Number.isFinite(i)?i:0;return e.type==="price_reach"?`价格达到 ${_n(o,n)}`:e.type==="price_rise_to"?`价格涨到 ${_n(o,n)}`:e.type==="price_fall_to"?`价格跌到 ${_n(o,n)}`:e.type==="price_rise_pct_over"?`价格${e.window??"5m"}涨幅 ${e.percent??0}%`:`价格${e.window??"5m"}跌幅 ${e.percent??0}%`}const rc=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var S,T;const s=(S=o.points[0])==null?void 0:S.value,l=o.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!l1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=Ia(e,Pa,Oa),b=((T=e.getSymbol())==null?void 0:T.pricePrecision)??2,y=nc(c,b),v=ue.utils.calcTextWidth(y),$=i.width,_=$-10,x=_-2,L=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x,y:d}]},styles:tc(g),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:_,y:d-6},{x:$,y:d},{x:_,y:d+6}]},styles:{style:"fill",color:g},ignoreEvent:!1}];if(l!=null&&l.showInfo){const P=Math.max(120,v+28),E=Math.max(8,_-P-10);L.push({key:"alert-info-text",type:"text",attrs:{x:E+8,y:d,text:y,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:E+P-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 L},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var o;const n=(o=e.figure)==null?void 0:o.key;if(!Ha(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 Ha(n)&&J6(e.chart,e.overlay.id),!1},onRemoved:e=>(m0(e.overlay.id),!1),onSelected:e=>{var o;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((o=e.figure)==null?void 0:o.key)??"")==="alert-info-close"&&n.alert&&(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&&X6({alert:n.alert,sourceContainer:q6(e)}),!1}}),ic=[l6(),$6(),c6(),u6(),d6(),f6(),h6(),g6(),p6(),m6(),y6(),_6(),v6(),b6(),C6(),x6(),w6(),L6(),I6(),B6(),W6(),Q6(),rc()];class oc{constructor(n){yn(this,"_apiKey");yn(this,"_prevSymbolMarket");yn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(n,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(n,i,o){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const ac=!1,sc=(e,n)=>e===n,y0=Symbol("solid-proxy"),lc=typeof Proxy=="function",cc=Symbol("solid-track"),K1={equals:sc};let Wa=Va;const An=1,H1=2,Ua={owned:null,cleanups:null,context:null,owner:null},_0={};var ze=null;let v0=null,uc=null,Fe=null,bt=null,Mn=null,W1=0;function U1(e,n){const i=Fe,o=ze,s=e.length===0,l=n===void 0?o:n,c=s?Ua:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>sn(()=>u1(c)));ze=c,Fe=null;try{return Tn(f,!0)}finally{Fe=i,ze=o}}function V(e,n){n=n?Object.assign({},K1,n):K1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),Ga(i,s));return[Ya.bind(i),o]}function Za(e,n,i){const o=Z1(e,n,!0,An);$r(o)}function Me(e,n,i){const o=Z1(e,n,!1,An);$r(o)}function It(e,n,i){Wa=_c;const o=Z1(e,n,!1,An);(!i||!i.render)&&(o.user=!0),Mn?Mn.push(o):$r(o)}function Gt(e,n,i){i=i?Object.assign({},K1,i):K1;const o=Z1(e,n,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,$r(o),Ya.bind(o)}function fc(e){return e&&typeof e=="object"&&"then"in e}function dc(e,n,i){let o,s,l;typeof n=="function"?(o=e,s=n,l=i||{}):(o=!0,s=e,l=n||{});let c=null,f=_0,d=!1,g="initialValue"in l,b=typeof o=="function"&&Gt(o);const y=new Set,[v,$]=(l.storage||V)(l.initialValue),[_,x]=V(void 0),[L,S]=V(void 0,{equals:!1}),[T,P]=V(g?"ready":"unresolved");function E(N,Q,q,ne){return c===N&&(c=null,ne!==void 0&&(g=!0),(N===f||Q===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(ne,{value:Q})),f=_0,Z(Q,q)),Q}function Z(N,Q){Tn(()=>{Q===void 0&&$(()=>N),P(Q!==void 0?"errored":g?"ready":"unresolved"),x(Q);for(const q of y.keys())q.decrement();y.clear()},!1)}function J(){const N=pc,Q=v(),q=_();if(q!==void 0&&!c)throw q;return Fe&&!Fe.user&&N&&Za(()=>{L(),c&&(N.resolved||y.has(N)||(N.increment(),y.add(N)))}),Q}function G(N=!0){if(N!==!1&&d)return;d=!1;const Q=b?b():o;if(Q==null||Q===!1){E(c,sn(v));return}let q;const ne=f!==_0?f:sn(()=>{try{return s(Q,{value:v(),refetching:N})}catch(te){q=te}});if(q!==void 0){E(c,void 0,V1(q),Q);return}else if(!fc(ne))return E(c,ne,void 0,Q),ne;return c=ne,"v"in ne?(ne.s===1?E(c,ne.v,void 0,Q):E(c,void 0,V1(ne.v),Q),ne):(d=!0,queueMicrotask(()=>d=!1),Tn(()=>{P(g?"refreshing":"pending"),S()},!1),ne.then(te=>E(ne,te,void 0,Q),te=>E(ne,void 0,V1(te),Q)))}Object.defineProperties(J,{state:{get:()=>T()},error:{get:()=>_()},loading:{get(){const N=T();return N==="pending"||N==="refreshing"}},latest:{get(){if(!g)return J();const N=_();if(N&&!c)throw N;return v()}}});let I=ze;return b?Za(()=>(I=ze,G(!1))):G(!1),[J,{refetch:N=>hc(I,()=>G(N)),mutate:$}]}function sn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function b0(e){It(()=>sn(e))}function Lr(e){return ze===null||(ze.cleanups===null?ze.cleanups=[e]:ze.cleanups.push(e)),e}function hc(e,n){const i=ze,o=Fe;ze=e,Fe=null;try{return Tn(n,!0)}catch(s){C0(s)}finally{ze=i,Fe=o}}function gc(e){const n=Fe,i=ze;return Promise.resolve().then(()=>{Fe=n,ze=i;let o;return Tn(e,!1),Fe=ze=null,o?o.done:void 0})}let pc;function Ya(){if(this.sources&&this.state)if(this.state===An)$r(this);else{const e=bt;bt=null,Tn(()=>G1(this),!1),bt=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 Ga(e,n,i){let o=e.value;return(!e.comparator||!e.comparator(o,n))&&(e.value=n,e.observers&&e.observers.length&&Tn(()=>{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?bt.push(l):Mn.push(l),l.observers&&Qa(l)),c||(l.state=An)}if(bt.length>1e6)throw bt=[],new Error},!1)),n}function $r(e){if(!e.fn)return;u1(e);const n=W1;mc(e,e.value,n)}function mc(e,n,i){let o;const s=ze,l=Fe;Fe=ze=e;try{o=e.fn(n)}catch(c){return e.pure&&(e.state=An,e.owned&&e.owned.forEach(u1),e.owned=null),e.updatedAt=i+1,C0(c)}finally{Fe=l,ze=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?Ga(e,o):e.value=o,e.updatedAt=i)}function Z1(e,n,i,o=An,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:ze,context:ze?ze.context:null,pure:i};return ze===null||ze!==Ua&&(ze.owned?ze.owned.push(l):ze.owned=[l]),l}function Y1(e){if(e.state===0)return;if(e.state===H1)return G1(e);if(e.suspense&&sn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<W1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===An)$r(e);else if(e.state===H1){const o=bt;bt=null,Tn(()=>G1(e,n[0]),!1),bt=o}}function Tn(e,n){if(bt)return e();let i=!1;n||(bt=[]),Mn?i=!0:Mn=[],W1++;try{const o=e();return yc(i),o}catch(o){i||(Mn=null),bt=null,C0(o)}}function yc(e){if(bt&&(Va(bt),bt=null),e)return;const n=Mn;Mn=null,n.length&&Tn(()=>Wa(n),!1)}function Va(e){for(let n=0;n<e.length;n++)Y1(e[n])}function _c(e){let n,i=0;for(n=0;n<e.length;n++){const o=e[n];o.user?e[i++]=o:Y1(o)}for(n=0;n<i;n++)Y1(e[n])}function G1(e,n){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===An?o!==n&&(!o.updatedAt||o.updatedAt<W1)&&Y1(o):s===H1&&G1(o,n)}}}function Qa(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=H1,i.pure?bt.push(i):Mn.push(i),i.observers&&Qa(i))}}function u1(e){let n;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),c=i.observerSlots.pop();o<s.length&&(l.sourceSlots[c]=o,s[o]=l,i.observerSlots[o]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)u1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)u1(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 V1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function C0(e,n=ze){throw V1(e)}const vc=Symbol("fallback");function ja(e){for(let n=0;n<e.length;n++)e[n]()}function bc(e,n,i={}){let o=[],s=[],l=[],c=0,f=n.length>1?[]:null;return Lr(()=>ja(l)),()=>{let d=e()||[],g=d.length,b,y;return d[cc],sn(()=>{let $,_,x,L,S,T,P,E,Z;if(g===0)c!==0&&(ja(l),l=[],o=[],s=[],c=0,f&&(f=[])),i.fallback&&(o=[vc],s[0]=U1(J=>(l[0]=J,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)o[y]=d[y],s[y]=U1(v);c=g}else{for(x=new Array(g),L=new Array(g),f&&(S=new Array(g)),T=0,P=Math.min(c,g);T<P&&o[T]===d[T];T++);for(P=c-1,E=g-1;P>=T&&E>=T&&o[P]===d[E];P--,E--)x[E]=s[P],L[E]=l[P],f&&(S[E]=f[P]);for($=new Map,_=new Array(E+1),y=E;y>=T;y--)Z=d[y],b=$.get(Z),_[y]=b===void 0?-1:b,$.set(Z,y);for(b=T;b<=P;b++)Z=o[b],y=$.get(Z),y!==void 0&&y!==-1?(x[y]=s[b],L[y]=l[b],f&&(S[y]=f[b]),y=_[y],$.set(Z,y)):l[b]();for(y=T;y<g;y++)y in x?(s[y]=x[y],l[y]=L[y],f&&(f[y]=S[y],f[y](y))):s[y]=U1(v);s=s.slice(0,c=g),o=d.slice(0)}return s});function v($){if(l[y]=$,f){const[_,x]=V(y);return f[y]=x,n(d[y],_)}return n(d[y])}}}function U(e,n){return sn(()=>e(n||{}))}function Q1(){return!0}const Cc={get(e,n,i){return n===y0?i:e.get(n)},has(e,n){return n===y0?!0:e.has(n)},set:Q1,deleteProperty:Q1,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:Q1,deleteProperty:Q1}},ownKeys(e){return e.keys()}};function x0(e){return(e=typeof e=="function"?e():e)?e:{}}function xc(){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,Gt(f)):f}if(lc&&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)]}},Cc);const i={},o=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const b=d[g];if(b==="__proto__"||b==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,b);if(!o[b])o[b]=y.get?{enumerable:!0,configurable:!0,get:xc.bind(i[b]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const v=i[b];v&&(y.get?v.push(y.get.bind(f)):y.value!==void 0&&v.push(()=>y.value))}}}const s={},l=Object.keys(o);for(let c=l.length-1;c>=0;c--){const f=l[c],d=o[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const wc=e=>`Stale read from <${e}>.`;function Xa(e){const n="fallback"in e&&{fallback:()=>e.fallback};return Gt(bc(()=>e.each,e.children,n||void 0))}function Te(e){const n=e.keyed,i=Gt(()=>e.when,void 0,void 0),o=n?i:Gt(i,void 0,{equals:(s,l)=>!s==!l});return Gt(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?sn(()=>l(n?s:()=>{if(!sn(o))throw wc("Show");return i()})):l}return e.fallback},void 0,void 0)}const Qe=e=>Gt(()=>e());function Lc(e,n,i){let o=i.length,s=n.length,l=o,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const b=l<o?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],b)}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 b=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],b),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const b=g.get(n[c]);if(b!=null)if(f<b&&b<l){let y=c,v=1,$;for(;++y<s&&y<l&&!(($=g.get(n[y]))==null||$!==b+v);)v++;if(v>b-f){const _=n[c];for(;f<b;)e.insertBefore(i[f++],_)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const Ja="_$DX_DELEGATE";function $c(e,n,i,o={}){let s;return U1(l=>{s=l,n===document?e():K(n,e(),n.firstChild?null:void 0,i)},o.owner),()=>{s(),n.textContent=""}}function z(e,n,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},c=n?()=>sn(()=>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[Ja]||(n[Ja]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),n.addEventListener(l,Sc))}}function ot(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Nt(e,n){n==null?e.removeAttribute("class"):e.className=n}function vn(e,n,i,o){if(o)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function je(e,n,i){if(!n)return i?ot(e,"style"):n;const o=e.style;if(typeof n=="string")return o.cssText=n;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&o.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Sr(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function j1(e,n,i){return sn(()=>e(n,i))}function K(e,n,i,o){if(i!==void 0&&!o&&(o=[]),typeof n!="function")return q1(e,n,o,i);Me(s=>q1(e,n(),s,i),o)}function Sc(e){let n=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(o)}function q1(e,n,i,o,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=o!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=kr(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=kr(e,i,o);else{if(l==="function")return Me(()=>{let f=n();for(;typeof f=="function";)f=f();i=q1(e,f,i,o)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(w0(f,n,i,s))return Me(()=>i=q1(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=kr(e,i,o),c)return i}else d?i.length===0?es(e,f,o):Lc(e,i,f):(i&&kr(e),es(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=kr(e,i,o,n);kr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function w0(e,n,i,o){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=w0(e,f,d)||s;else if(g==="function")if(o){for(;typeof f=="function";)f=f();s=w0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const b=String(f);d&&d.nodeType===3&&d.data===b?e.push(d):e.push(document.createTextNode(b))}}return s}function es(e,n,i=null){for(let o=0,s=n.length;o<s;o++)e.insertBefore(n[o],i)}function kr(e,n,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function kc(){this.__data__=[],this.size=0}var Ac=kc;function Mc(e,n){return e===n||e!==e&&n!==n}var ts=Mc,Tc=ts;function Pc(e,n){for(var i=e.length;i--;)if(Tc(e[i][0],n))return i;return-1}var X1=Pc,Oc=X1,Ic=Array.prototype,Ec=Ic.splice;function Dc(e){var n=this.__data__,i=Oc(n,e);if(i<0)return!1;var o=n.length-1;return i==o?n.pop():Ec.call(n,i,1),--this.size,!0}var Rc=Dc,Bc=X1;function Fc(e){var n=this.__data__,i=Bc(n,e);return i<0?void 0:n[i][1]}var Nc=Fc,zc=X1;function Kc(e){return zc(this.__data__,e)>-1}var Hc=Kc,Wc=X1;function Uc(e,n){var i=this.__data__,o=Wc(i,e);return o<0?(++this.size,i.push([e,n])):i[o][1]=n,this}var Zc=Uc,Yc=Ac,Gc=Rc,Vc=Nc,Qc=Hc,jc=Zc;function Ar(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Ar.prototype.clear=Yc,Ar.prototype.delete=Gc,Ar.prototype.get=Vc,Ar.prototype.has=Qc,Ar.prototype.set=jc;var J1=Ar,qc=J1;function Xc(){this.__data__=new qc,this.size=0}var Jc=Xc;function e3(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var t3=e3;function n3(e){return this.__data__.get(e)}var r3=n3;function i3(e){return this.__data__.has(e)}var o3=i3,a3=typeof kn=="object"&&kn&&kn.Object===Object&&kn,ns=a3,s3=ns,l3=typeof self=="object"&&self&&self.Object===Object&&self,c3=s3||l3||Function("return this")(),bn=c3,u3=bn,f3=u3.Symbol,ei=f3,rs=ei,is=Object.prototype,d3=is.hasOwnProperty,h3=is.toString,f1=rs?rs.toStringTag:void 0;function g3(e){var n=d3.call(e,f1),i=e[f1];try{e[f1]=void 0;var o=!0}catch{}var s=h3.call(e);return o&&(n?e[f1]=i:delete e[f1]),s}var p3=g3,m3=Object.prototype,y3=m3.toString;function _3(e){return y3.call(e)}var v3=_3,os=ei,b3=p3,C3=v3,x3="[object Null]",w3="[object Undefined]",as=os?os.toStringTag:void 0;function L3(e){return e==null?e===void 0?w3:x3:as&&as in Object(e)?b3(e):C3(e)}var d1=L3;function $3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Mr=$3,S3=d1,k3=Mr,A3="[object AsyncFunction]",M3="[object Function]",T3="[object GeneratorFunction]",P3="[object Proxy]";function O3(e){if(!k3(e))return!1;var n=S3(e);return n==M3||n==T3||n==A3||n==P3}var ss=O3,I3=bn,E3=I3["__core-js_shared__"],D3=E3,L0=D3,ls=function(){var e=/[^.]+$/.exec(L0&&L0.keys&&L0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function R3(e){return!!ls&&ls in e}var B3=R3,F3=Function.prototype,N3=F3.toString;function z3(e){if(e!=null){try{return N3.call(e)}catch{}try{return e+""}catch{}}return""}var cs=z3,K3=ss,H3=B3,W3=Mr,U3=cs,Z3=/[\\^$.*+?()[\]{}|]/g,Y3=/^\[object .+?Constructor\]$/,G3=Function.prototype,V3=Object.prototype,Q3=G3.toString,j3=V3.hasOwnProperty,q3=RegExp("^"+Q3.call(j3).replace(Z3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X3(e){if(!W3(e)||H3(e))return!1;var n=K3(e)?q3:Y3;return n.test(U3(e))}var J3=X3;function e8(e,n){return e==null?void 0:e[n]}var t8=e8,n8=J3,r8=t8;function i8(e,n){var i=r8(e,n);return n8(i)?i:void 0}var fr=i8,o8=fr,a8=bn,s8=o8(a8,"Map"),$0=s8,l8=fr,c8=l8(Object,"create"),ti=c8,us=ti;function u8(){this.__data__=us?us(null):{},this.size=0}var f8=u8;function d8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var h8=d8,g8=ti,p8="__lodash_hash_undefined__",m8=Object.prototype,y8=m8.hasOwnProperty;function _8(e){var n=this.__data__;if(g8){var i=n[e];return i===p8?void 0:i}return y8.call(n,e)?n[e]:void 0}var v8=_8,b8=ti,C8=Object.prototype,x8=C8.hasOwnProperty;function w8(e){var n=this.__data__;return b8?n[e]!==void 0:x8.call(n,e)}var L8=w8,$8=ti,S8="__lodash_hash_undefined__";function k8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=$8&&n===void 0?S8:n,this}var A8=k8,M8=f8,T8=h8,P8=v8,O8=L8,I8=A8;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Tr.prototype.clear=M8,Tr.prototype.delete=T8,Tr.prototype.get=P8,Tr.prototype.has=O8,Tr.prototype.set=I8;var E8=Tr,fs=E8,D8=J1,R8=$0;function B8(){this.size=0,this.__data__={hash:new fs,map:new(R8||D8),string:new fs}}var F8=B8;function N8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var z8=N8,K8=z8;function H8(e,n){var i=e.__data__;return K8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ni=H8,W8=ni;function U8(e){var n=W8(this,e).delete(e);return this.size-=n?1:0,n}var Z8=U8,Y8=ni;function G8(e){return Y8(this,e).get(e)}var V8=G8,Q8=ni;function j8(e){return Q8(this,e).has(e)}var q8=j8,X8=ni;function J8(e,n){var i=X8(this,e),o=i.size;return i.set(e,n),this.size+=i.size==o?0:1,this}var e7=J8,t7=F8,n7=Z8,r7=V8,i7=q8,o7=e7;function Pr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Pr.prototype.clear=t7,Pr.prototype.delete=n7,Pr.prototype.get=r7,Pr.prototype.has=i7,Pr.prototype.set=o7;var ds=Pr,a7=J1,s7=$0,l7=ds,c7=200;function u7(e,n){var i=this.__data__;if(i instanceof a7){var o=i.__data__;if(!s7||o.length<c7-1)return o.push([e,n]),this.size=++i.size,this;i=this.__data__=new l7(o)}return i.set(e,n),this.size=i.size,this}var f7=u7,d7=J1,h7=Jc,g7=t3,p7=r3,m7=o3,y7=f7;function Or(e){var n=this.__data__=new d7(e);this.size=n.size}Or.prototype.clear=h7,Or.prototype.delete=g7,Or.prototype.get=p7,Or.prototype.has=m7,Or.prototype.set=y7;var _7=Or;function v7(e,n){for(var i=-1,o=e==null?0:e.length;++i<o&&n(e[i],i,e)!==!1;);return e}var b7=v7,C7=fr,x7=function(){try{var e=C7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),w7=x7,hs=w7;function L7(e,n,i){n=="__proto__"&&hs?hs(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var gs=L7,$7=gs,S7=ts,k7=Object.prototype,A7=k7.hasOwnProperty;function M7(e,n,i){var o=e[n];(!(A7.call(e,n)&&S7(o,i))||i===void 0&&!(n in e))&&$7(e,n,i)}var S0=M7,T7=S0,P7=gs;function O7(e,n,i,o){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=o?o(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?P7(i,f,d):T7(i,f,d)}return i}var ri=O7;function I7(e,n){for(var i=-1,o=Array(e);++i<e;)o[i]=n(i);return o}var E7=I7;function D7(e){return e!=null&&typeof e=="object"}var Ir=D7,R7=d1,B7=Ir,F7="[object Arguments]";function N7(e){return B7(e)&&R7(e)==F7}var z7=N7,ps=z7,K7=Ir,ms=Object.prototype,H7=ms.hasOwnProperty,W7=ms.propertyIsEnumerable,U7=ps(function(){return arguments}())?ps:function(e){return K7(e)&&H7.call(e,"callee")&&!W7.call(e,"callee")},Z7=U7,Y7=Array.isArray,Er=Y7,ii={exports:{}};function G7(){return!1}var V7=G7;ii.exports,function(e,n){var i=bn,o=V7,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||o;e.exports=g}(ii,ii.exports);var ys=ii.exports,Q7=9007199254740991,j7=/^(?:0|[1-9]\d*)$/;function q7(e,n){var i=typeof e;return n=n??Q7,!!n&&(i=="number"||i!="symbol"&&j7.test(e))&&e>-1&&e%1==0&&e<n}var _s=q7,X7=9007199254740991;function J7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=X7}var vs=J7,eu=d1,tu=vs,nu=Ir,ru="[object Arguments]",iu="[object Array]",ou="[object Boolean]",au="[object Date]",su="[object Error]",lu="[object Function]",cu="[object Map]",uu="[object Number]",fu="[object Object]",du="[object RegExp]",hu="[object Set]",gu="[object String]",pu="[object WeakMap]",mu="[object ArrayBuffer]",yu="[object DataView]",_u="[object Float32Array]",vu="[object Float64Array]",bu="[object Int8Array]",Cu="[object Int16Array]",xu="[object Int32Array]",wu="[object Uint8Array]",Lu="[object Uint8ClampedArray]",$u="[object Uint16Array]",Su="[object Uint32Array]",Ue={};Ue[_u]=Ue[vu]=Ue[bu]=Ue[Cu]=Ue[xu]=Ue[wu]=Ue[Lu]=Ue[$u]=Ue[Su]=!0,Ue[ru]=Ue[iu]=Ue[mu]=Ue[ou]=Ue[yu]=Ue[au]=Ue[su]=Ue[lu]=Ue[cu]=Ue[uu]=Ue[fu]=Ue[du]=Ue[hu]=Ue[gu]=Ue[pu]=!1;function ku(e){return nu(e)&&tu(e.length)&&!!Ue[eu(e)]}var Au=ku;function Mu(e){return function(n){return e(n)}}var k0=Mu,oi={exports:{}};oi.exports,function(e,n){var i=ns,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(oi,oi.exports);var A0=oi.exports,Tu=Au,Pu=k0,bs=A0,Cs=bs&&bs.isTypedArray,Ou=Cs?Pu(Cs):Tu,Iu=Ou,Eu=E7,Du=Z7,Ru=Er,Bu=ys,Fu=_s,Nu=Iu,zu=Object.prototype,Ku=zu.hasOwnProperty;function Hu(e,n){var i=Ru(e),o=!i&&Du(e),s=!i&&!o&&Bu(e),l=!i&&!o&&!s&&Nu(e),c=i||o||s||l,f=c?Eu(e.length,String):[],d=f.length;for(var g in e)(n||Ku.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Fu(g,d)))&&f.push(g);return f}var xs=Hu,Wu=Object.prototype;function Uu(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||Wu;return e===i}var M0=Uu;function Zu(e,n){return function(i){return e(n(i))}}var ws=Zu,Yu=ws,Gu=Yu(Object.keys,Object),Vu=Gu,Qu=M0,ju=Vu,qu=Object.prototype,Xu=qu.hasOwnProperty;function Ju(e){if(!Qu(e))return ju(e);var n=[];for(var i in Object(e))Xu.call(e,i)&&i!="constructor"&&n.push(i);return n}var e4=Ju,t4=ss,n4=vs;function r4(e){return e!=null&&n4(e.length)&&!t4(e)}var Ls=r4,i4=xs,o4=e4,a4=Ls;function s4(e){return a4(e)?i4(e):o4(e)}var T0=s4,l4=ri,c4=T0;function u4(e,n){return e&&l4(n,c4(n),e)}var f4=u4;function d4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var h4=d4,g4=Mr,p4=M0,m4=h4,y4=Object.prototype,_4=y4.hasOwnProperty;function v4(e){if(!g4(e))return m4(e);var n=p4(e),i=[];for(var o in e)o=="constructor"&&(n||!_4.call(e,o))||i.push(o);return i}var b4=v4,C4=xs,x4=b4,w4=Ls;function L4(e){return w4(e)?C4(e,!0):x4(e)}var P0=L4,$4=ri,S4=P0;function k4(e,n){return e&&$4(n,S4(n),e)}var A4=k4,ai={exports:{}};ai.exports,function(e,n){var i=bn,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,b){if(b)return g.slice();var y=g.length,v=f?f(y):new g.constructor(y);return g.copy(v),v}e.exports=d}(ai,ai.exports);var M4=ai.exports;function T4(e,n){var i=-1,o=e.length;for(n||(n=Array(o));++i<o;)n[i]=e[i];return n}var P4=T4;function O4(e,n){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var I4=O4;function E4(){return[]}var $s=E4,D4=I4,R4=$s,B4=Object.prototype,F4=B4.propertyIsEnumerable,Ss=Object.getOwnPropertySymbols,N4=Ss?function(e){return e==null?[]:(e=Object(e),D4(Ss(e),function(n){return F4.call(e,n)}))}:R4,O0=N4,z4=ri,K4=O0;function H4(e,n){return z4(e,K4(e),n)}var W4=H4;function U4(e,n){for(var i=-1,o=n.length,s=e.length;++i<o;)e[s+i]=n[i];return e}var ks=U4,Z4=ws,Y4=Z4(Object.getPrototypeOf,Object),As=Y4,G4=ks,V4=As,Q4=O0,j4=$s,q4=Object.getOwnPropertySymbols,X4=q4?function(e){for(var n=[];e;)G4(n,Q4(e)),e=V4(e);return n}:j4,Ms=X4,J4=ri,ef=Ms;function tf(e,n){return J4(e,ef(e),n)}var nf=tf,rf=ks,of=Er;function af(e,n,i){var o=n(e);return of(e)?o:rf(o,i(e))}var Ts=af,sf=Ts,lf=O0,cf=T0;function uf(e){return sf(e,cf,lf)}var ff=uf,df=Ts,hf=Ms,gf=P0;function pf(e){return df(e,gf,hf)}var mf=pf,yf=fr,_f=bn,vf=yf(_f,"DataView"),bf=vf,Cf=fr,xf=bn,wf=Cf(xf,"Promise"),Lf=wf,$f=fr,Sf=bn,kf=$f(Sf,"Set"),Af=kf,Mf=fr,Tf=bn,Pf=Mf(Tf,"WeakMap"),Of=Pf,I0=bf,E0=$0,D0=Lf,R0=Af,B0=Of,Ps=d1,Dr=cs,Os="[object Map]",If="[object Object]",Is="[object Promise]",Es="[object Set]",Ds="[object WeakMap]",Rs="[object DataView]",Ef=Dr(I0),Df=Dr(E0),Rf=Dr(D0),Bf=Dr(R0),Ff=Dr(B0),dr=Ps;(I0&&dr(new I0(new ArrayBuffer(1)))!=Rs||E0&&dr(new E0)!=Os||D0&&dr(D0.resolve())!=Is||R0&&dr(new R0)!=Es||B0&&dr(new B0)!=Ds)&&(dr=function(e){var n=Ps(e),i=n==If?e.constructor:void 0,o=i?Dr(i):"";if(o)switch(o){case Ef:return Rs;case Df:return Os;case Rf:return Is;case Bf:return Es;case Ff:return Ds}return n});var F0=dr,Nf=Object.prototype,zf=Nf.hasOwnProperty;function Kf(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&zf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Hf=Kf,Wf=bn,Uf=Wf.Uint8Array,Zf=Uf,Bs=Zf;function Yf(e){var n=new e.constructor(e.byteLength);return new Bs(n).set(new Bs(e)),n}var N0=Yf,Gf=N0;function Vf(e,n){var i=n?Gf(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Qf=Vf,jf=/\w*$/;function qf(e){var n=new e.constructor(e.source,jf.exec(e));return n.lastIndex=e.lastIndex,n}var Xf=qf,Fs=ei,Ns=Fs?Fs.prototype:void 0,zs=Ns?Ns.valueOf:void 0;function Jf(e){return zs?Object(zs.call(e)):{}}var ed=Jf,td=N0;function nd(e,n){var i=n?td(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var rd=nd,id=N0,od=Qf,ad=Xf,sd=ed,ld=rd,cd="[object Boolean]",ud="[object Date]",fd="[object Map]",dd="[object Number]",hd="[object RegExp]",gd="[object Set]",pd="[object String]",md="[object Symbol]",yd="[object ArrayBuffer]",_d="[object DataView]",vd="[object Float32Array]",bd="[object Float64Array]",Cd="[object Int8Array]",xd="[object Int16Array]",wd="[object Int32Array]",Ld="[object Uint8Array]",$d="[object Uint8ClampedArray]",Sd="[object Uint16Array]",kd="[object Uint32Array]";function Ad(e,n,i){var o=e.constructor;switch(n){case yd:return id(e);case cd:case ud:return new o(+e);case _d:return od(e,i);case vd:case bd:case Cd:case xd:case wd:case Ld:case $d:case Sd:case kd:return ld(e,i);case fd:return new o;case dd:case pd:return new o(e);case hd:return ad(e);case gd:return new o;case md:return sd(e)}}var Md=Ad,Td=Mr,Ks=Object.create,Pd=function(){function e(){}return function(n){if(!Td(n))return{};if(Ks)return Ks(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),Od=Pd,Id=Od,Ed=As,Dd=M0;function Rd(e){return typeof e.constructor=="function"&&!Dd(e)?Id(Ed(e)):{}}var Bd=Rd,Fd=F0,Nd=Ir,zd="[object Map]";function Kd(e){return Nd(e)&&Fd(e)==zd}var Hd=Kd,Wd=Hd,Ud=k0,Hs=A0,Ws=Hs&&Hs.isMap,Zd=Ws?Ud(Ws):Wd,Yd=Zd,Gd=F0,Vd=Ir,Qd="[object Set]";function jd(e){return Vd(e)&&Gd(e)==Qd}var qd=jd,Xd=qd,Jd=k0,Us=A0,Zs=Us&&Us.isSet,eh=Zs?Jd(Zs):Xd,th=eh,nh=_7,rh=b7,ih=S0,oh=f4,ah=A4,sh=M4,lh=P4,ch=W4,uh=nf,fh=ff,dh=mf,hh=F0,gh=Hf,ph=Md,mh=Bd,yh=Er,_h=ys,vh=Yd,bh=Mr,Ch=th,xh=T0,wh=P0,Lh=1,$h=2,Sh=4,Ys="[object Arguments]",kh="[object Array]",Ah="[object Boolean]",Mh="[object Date]",Th="[object Error]",Gs="[object Function]",Ph="[object GeneratorFunction]",Oh="[object Map]",Ih="[object Number]",Vs="[object Object]",Eh="[object RegExp]",Dh="[object Set]",Rh="[object String]",Bh="[object Symbol]",Fh="[object WeakMap]",Nh="[object ArrayBuffer]",zh="[object DataView]",Kh="[object Float32Array]",Hh="[object Float64Array]",Wh="[object Int8Array]",Uh="[object Int16Array]",Zh="[object Int32Array]",Yh="[object Uint8Array]",Gh="[object Uint8ClampedArray]",Vh="[object Uint16Array]",Qh="[object Uint32Array]",He={};He[Ys]=He[kh]=He[Nh]=He[zh]=He[Ah]=He[Mh]=He[Kh]=He[Hh]=He[Wh]=He[Uh]=He[Zh]=He[Oh]=He[Ih]=He[Vs]=He[Eh]=He[Dh]=He[Rh]=He[Bh]=He[Yh]=He[Gh]=He[Vh]=He[Qh]=!0,He[Th]=He[Gs]=He[Fh]=!1;function si(e,n,i,o,s,l){var c,f=n&Lh,d=n&$h,g=n&Sh;if(i&&(c=s?i(e,o,s,l):i(e)),c!==void 0)return c;if(!bh(e))return e;var b=yh(e);if(b){if(c=gh(e),!f)return lh(e,c)}else{var y=hh(e),v=y==Gs||y==Ph;if(_h(e))return sh(e,f);if(y==Vs||y==Ys||v&&!s){if(c=d||v?{}:mh(e),!f)return d?uh(e,ah(c,e)):ch(e,oh(c,e))}else{if(!He[y])return s?e:{};c=ph(e,y,f)}}l||(l=new nh);var $=l.get(e);if($)return $;l.set(e,c),Ch(e)?e.forEach(function(L){c.add(si(L,n,i,L,e,l))}):vh(e)&&e.forEach(function(L,S){c.set(S,si(L,n,i,S,e,l))});var _=g?d?dh:fh:d?wh:xh,x=b?void 0:_(e);return rh(x||e,function(L,S){x&&(S=L,L=e[S]),ih(c,S,si(L,n,i,S,e,l))}),c}var jh=si,qh=jh,Xh=1,Jh=4;function eg(e){return qh(e,Xh|Jh)}var tg=eg;const ng=h0(tg);var rg=d1,ig=Ir,og="[object Symbol]";function ag(e){return typeof e=="symbol"||ig(e)&&rg(e)==og}var z0=ag,sg=Er,lg=z0,cg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ug=/^\w*$/;function fg(e,n){if(sg(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||lg(e)?!0:ug.test(e)||!cg.test(e)||n!=null&&e in Object(n)}var dg=fg,Qs=ds,hg="Expected a function";function K0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(hg);var i=function(){var o=arguments,s=n?n.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(K0.Cache||Qs),i}K0.Cache=Qs;var gg=K0,pg=gg,mg=500;function yg(e){var n=pg(e,function(o){return i.size===mg&&i.clear(),o}),i=n.cache;return n}var _g=yg,vg=_g,bg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cg=/\\(\\)?/g,xg=vg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(bg,function(i,o,s,l){n.push(s?l.replace(Cg,"$1"):o||i)}),n}),wg=xg;function Lg(e,n){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=n(e[i],i,e);return s}var $g=Lg,js=ei,Sg=$g,kg=Er,Ag=z0,Mg=1/0,qs=js?js.prototype:void 0,Xs=qs?qs.toString:void 0;function Js(e){if(typeof e=="string")return e;if(kg(e))return Sg(e,Js)+"";if(Ag(e))return Xs?Xs.call(e):"";var n=e+"";return n=="0"&&1/e==-Mg?"-0":n}var Tg=Js,Pg=Tg;function Og(e){return e==null?"":Pg(e)}var Ig=Og,Eg=Er,Dg=dg,Rg=wg,Bg=Ig;function Fg(e,n){return Eg(e)?e:Dg(e,n)?[e]:Rg(Bg(e))}var Ng=Fg,zg=z0,Kg=1/0;function Hg(e){if(typeof e=="string"||zg(e))return e;var n=e+"";return n=="0"&&1/e==-Kg?"-0":n}var Wg=Hg,Ug=S0,Zg=Ng,Yg=_s,e9=Mr,Gg=Wg;function Vg(e,n,i,o){if(!e9(e))return e;n=Zg(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=Gg(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var b=f[d];g=o?o(b,d,f):void 0,g===void 0&&(g=e9(b)?b:Yg(n[s+1])?[]:{})}Ug(f,d,g),f=f[d]}return e}var Qg=Vg,jg=Qg;function qg(e,n,i){return e==null?e:jg(e,n,i)}var Xg=qg;const h1=h0(Xg);var Jg=z("<button>");const ep=e=>(()=>{var n=Jg();return vn(n,"click",e.onClick,!0),K(n,()=>e.children),Me(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=je(n,o,i.e),s!==i.t&&Nt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Et(["click"]);var tp=z('<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">'),np=z('<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">'),rp=z("<div>"),ip=z("<span class=label>");const op=()=>tp(),ap=()=>np(),t9=e=>{const[n,i]=V(e.checked??!1);return It(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=rp();return o.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},K(o,(()=>{var s=Qe(()=>!!n());return()=>s()?U(op,{}):U(ap,{})})(),null),K(o,(()=>{var s=Qe(()=>!!e.label);return()=>s()&&(()=>{var l=ip();return K(l,()=>e.label),l})()})(),null),Me(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=je(o,l,s.e),c!==s.t&&Nt(o,s.t=c),s},{e:void 0,t:void 0}),o})()};Et(["click"]);var sp=z("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const n9=()=>sp();var lp=z('<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 cp=()=>lp();var up=z("<ul>"),fp=z("<li>");const li=e=>(()=>{var n=up();return K(n,U(Te,{get when(){return e.loading},get children(){return U(n9,{})}}),null),K(n,U(Te,{get when(){var i;return Qe(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return U(cp,{})}}),null),K(n,U(Te,{get when(){return e.children},get children(){return e.children}}),null),K(n,U(Te,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(o=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,o))??fp()})}}),null),Me(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=je(n,o,i.e),s!==i.t&&Nt(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Rr=[];let dp=0,ci=!1;function r9(e){if(e.key!=="Escape")return;const n=Rr[Rr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function hp(){ci||(window.addEventListener("keydown",r9,!0),ci=!0)}function gp(){Rr.length===0&&ci&&(window.removeEventListener("keydown",r9,!0),ci=!1)}function pp(e){const n=dp++;return Rr.push({id:n,close:e}),hp(),()=>{const i=Rr.findIndex(o=>o.id===n);i>=0&&Rr.splice(i,1),gp()}}var mp=z('<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>'),yp=z("<div class=button-container>");const Cn=e=>{let n=null;b0(()=>{if(!e.onClose)return;const d=pp(()=>{var g;(g=e.onClose)==null||g.call(e)});Lr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},o={};e.width!=null&&(o.width=`${e.width}px`,o["max-width"]=`${e.width}px`),e.height!=null&&(o.height=`${e.height}px`,o["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let b=d;for(;b;){const y=window.getComputedStyle(b);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&b.scrollHeight>b.clientHeight)return g>0?b.scrollTop+b.clientHeight<b.scrollHeight:b.scrollTop>0;b=b.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,b=n-g;n=g,s(d.target,b)||d.preventDefault()};return(()=>{var d=mp(),g=d.firstChild,b=g.firstChild,y=b.firstChild,v=b.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),K(b,()=>e.title,y),vn(y,"click",e.onClose,!0),K(v,()=>e.children),K(g,(()=>{var $=Qe(()=>!!(e.buttons&&e.buttons.length>0));return()=>$()&&(()=>{var _=yp();return K(_,()=>e.buttons.map(x=>U(ep,qa(x,{get children(){return x.children}})))),_})()})(),null),Me($=>{var _=`inner${e.height!=null?" inner--fixed-height":""}`,x=o;return _!==$.e&&Nt(g,$.e=_),$.t=je(g,x,$.t),$},{e:void 0,t:void 0}),d})()};Et(["click","touchstart","touchmove"]);var _p=z("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),vp=z("<div class=drop-down-container><ul>"),bp=z("<li>");const g1=e=>{const[n,i]=V(!1);return(()=>{var o=_p(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",c=>{i(!1)}),o.$$click=c=>{i(f=>!f)},K(l,()=>e.value),K(o,(()=>{var c=Qe(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=vp(),d=f.firstChild;return K(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var v=bp();return v.$$click=$=>{var _;$.stopPropagation(),e.value!==y&&((_=e.onSelected)==null||_.call(e,g)),i(!1)},K(v,y),v})()})),f})()})(),null),Me(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=je(o,f,c.e),d!==c.t&&Nt(o,c.t=d),c},{e:void 0,t:void 0}),o})()};Et(["click"]);var Cp=z("<span class=prefix>"),xp=z("<span class=suffix>"),wp=z("<div><input id=myInput class=value>");const[Lp,DA]=V("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),i9=e=>{const n=qa({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=V("normal"),l=c=>{c&&c.focus()};return It(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=wp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},K(c,U(Te,{get when(){return n.prefix},get children(){var g=Cp();return K(g,()=>n.prefix),g}}),f),vn(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,v;const b=g.target.value;if("precision"in n){let $;const _=Math.max(0,Math.floor(n.precision));_<=0?$=new RegExp(/^[1-9]\d*$/):$=new RegExp("^\\d+\\.?\\d{0,"+_+"}$"),(b===""||$.test(b)&&+b>=n.min&&+b<=n.max)&&((y=n.onChange)==null||y.call(n,b===""?b:+b))}else(v=n.onChange)==null||v.call(n,b)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?j1(d,f):i=f,K(c,U(Te,{get when(){return n.suffix},get children(){var g=xp();return K(g,()=>n.suffix),g}}),null),Me(g=>{var b=n.style,y=`${Lp()}${n.class??""}`,v=o(),$=n.placeholder??"",_=n.focus===!0?n.focus:!1;return g.e=je(c,b,g.e),y!==g.t&&Nt(c,g.t=y),v!==g.a&&ot(c,"data-status",g.a=v),$!==g.o&&ot(f,"placeholder",g.o=$),_!==g.i&&(f.autofocus=g.i=_),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Me(()=>f.value=n.value),c})()};Et(["click","keydown"]);var $p=z("<div><i class=thumb>");const p1=e=>(()=>{var n=$p();return n.$$click=i=>{e.onChange&&e.onChange()},Me(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=je(n,o,i.e),s!==i.t&&Nt(n,i.t=s),i},{e:void 0,t:void 0}),n})();Et(["click"]);const{min:Sp,max:kp}=Math,hr=(e,n=0,i=1)=>Sp(kp(n,e),i),H0=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]=hr(e[n],0,255)):n===3&&(e[n]=hr(e[n],0,1));return e},o9={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])o9[`[object ${e}]`]=e.toLowerCase();function Ce(e){return o9[Object.prototype.toString.call(e)]||"object"}const me=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):Ce(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Br=e=>{if(e.length<2)return null;const n=e.length-1;return Ce(e[n])=="string"?e[n].toLowerCase():null},{PI:ui,min:a9,max:s9}=Math,Vt=e=>Math.round(e*100)/100,W0=e=>Math.round(e*100)/100,Pn=ui*2,U0=ui/3,Ap=ui/180,Mp=180/ui;function l9(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const he={format:{},autodetect:[]};let Y=class{constructor(...n){const i=this;if(Ce(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let o=Br(n),s=!1;if(!o){s=!0,he.sorted||(he.autodetect=he.autodetect.sort((l,c)=>c.p-l.p),he.sorted=!0);for(let l of he.autodetect)if(o=l.test(...n),o)break}if(he.format[o]){const l=he.format[o].apply(null,s?n:n.slice(0,-1));i._rgb=H0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return Ce(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Tp="3.2.0",de=(...e)=>new Y(...e);de.version=Tp;const Fr={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"},Pp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Op=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,c9=e=>{if(e.match(Pp)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e,16),i=n>>16,o=n>>8&255,s=n&255;return[i,o,s,1]}if(e.match(Op)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e,16),i=n>>24&255,o=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:fi}=Math,u9=(...e)=>{let[n,i,o,s]=me(e,"rgba"),l=Br(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=fi(n),i=fi(i),o=fi(o);let f="000000"+(n<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let d="0"+fi(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=u9(this._rgb,"rgb");for(let n of Object.keys(Fr))if(Fr[n]===e)return n.toLowerCase();return e},he.format.named=e=>{if(e=e.toLowerCase(),Fr[e])return c9(Fr[e]);throw new Error("unknown color name: "+e)},he.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&Ce(e)==="string"&&Fr[e.toLowerCase()])return"named"}}),Y.prototype.alpha=function(e,n=!1){return e!==void 0&&Ce(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 xn={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}},Ip=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 On(e){const n=Ip.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);xn.labWhitePoint=e,xn.Xn=n[0],xn.Zn=n[1]}function m1(){return xn.labWhitePoint}const Z0=(...e)=>{e=me(e,"lab");const[n,i,o]=e,[s,l,c]=Ep(n,i,o),[f,d,g]=f9(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Ep=(e,n,i)=>{const{kE:o,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=xn,g=(e+16)/116,b=.002*n+g,y=g-.005*i,v=b*b*b,$=y*y*y,_=v>o?v:(116*b-16)/s,x=e>l?Math.pow((e+16)/116,3):e/s,L=$>o?$:(116*y-16)/s,S=_*c,T=x*f,P=L*d;return[S,T,P]},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},f9=(e,n,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=xn,b=f*o.m00+d*o.m10+g*o.m20,y=f*o.m01+d*o.m11+g*o.m21,v=f*o.m02+d*o.m12+g*o.m22,$=c.X*o.m00+c.Y*o.m10+c.Z*o.m20,_=c.X*o.m01+c.Y*o.m11+c.Z*o.m21,x=c.X*o.m02+c.Y*o.m12+c.Z*o.m22,L=(e*o.m00+n*o.m10+i*o.m20)*($/b),S=(e*o.m01+n*o.m11+i*o.m21)*(_/y),T=(e*o.m02+n*o.m12+i*o.m22)*(x/v),P=L*s.m00+S*s.m10+T*s.m20,E=L*s.m01+S*s.m11+T*s.m21,Z=L*s.m02+S*s.m12+T*s.m22,J=Y0(P*l.m00+E*l.m10+Z*l.m20),G=Y0(P*l.m01+E*l.m11+Z*l.m21),I=Y0(P*l.m02+E*l.m12+Z*l.m22);return[J*255,G*255,I*255]},G0=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),[l,c,f]=d9(n,i,o),[d,g,b]=Dp(l,c,f);return[d,g,b,...s.length>0&&s[0]<1?[s[0]]:[]]};function Dp(e,n,i){const{Xn:o,Yn:s,Zn:l,kE:c,kK:f}=xn,d=e/o,g=n/s,b=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,v=g>c?Math.pow(g,1/3):(f*g+16)/116,$=b>c?Math.pow(b,1/3):(f*b+16)/116;return[116*v-16,500*(y-v),200*(v-$)]}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 d9=(e,n,i)=>{e=V0(e/255),n=V0(n/255),i=V0(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:b,Cs:y}=xn;let v=e*o.m00+n*o.m10+i*o.m20,$=e*o.m01+n*o.m11+i*o.m21,_=e*o.m02+n*o.m12+i*o.m22;const x=c*s.m00+f*s.m10+d*s.m20,L=c*s.m01+f*s.m11+d*s.m21,S=c*s.m02+f*s.m12+d*s.m22;let T=v*s.m00+$*s.m10+_*s.m20,P=v*s.m01+$*s.m11+_*s.m21,E=v*s.m02+$*s.m12+_*s.m22;return T*=x/g,P*=L/b,E*=S/y,v=T*l.m00+P*l.m10+E*l.m20,$=T*l.m01+P*l.m11+E*l.m21,_=T*l.m02+P*l.m12+E*l.m22,[v,$,_]};Y.prototype.lab=function(){return G0(this._rgb)},Object.assign(de,{lab:(...e)=>new Y(...e,"lab"),getLabWhitePoint:m1,setLabWhitePoint:On}),he.format.lab=Z0,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"lab"),Ce(e)==="array"&&e.length===3)return"lab"}}),Y.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=xn.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("."),o=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return o};const{pow:Rp}=Math,Bp=1e-7,Fp=20;Y.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&Ce(e)==="number"){if(e===0)return new Y([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Y([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=Fp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Bp||!o--?d:g>e?s(c,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 Np(...this._rgb.slice(0,3))};const Np=(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:Rp((e+.055)/1.055,2.4)),Ct={},Nr=(e,n,i=.5,...o)=>{let s=o[0]||"lrgb";if(!Ct[s]&&!o.length&&(s=Object.keys(Ct)[0]),!Ct[s])throw new Error(`interpolation mode ${s} is not defined`);return Ce(e)!=="object"&&(e=new Y(e)),Ce(n)!=="object"&&(n=new Y(n)),Ct[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};Y.prototype.mix=Y.prototype.interpolate=function(e,n=.5,...i){return Nr(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:zp,cos:Kp}=Math,h9=(...e)=>{let[n,i,o]=me(e,"lch");return isNaN(o)&&(o=0),o=o*Ap,[n,Kp(o)*i,zp(o)*i]},j0=(...e)=>{e=me(e,"lch");const[n,i,o]=e,[s,l,c]=h9(n,i,o),[f,d,g]=Z0(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Hp=(...e)=>{const n=l9(me(e,"hcl"));return j0(...n)},{sqrt:Wp,atan2:Up,round:Zp}=Math,g9=(...e)=>{const[n,i,o]=me(e,"lab"),s=Wp(i*i+o*o);let l=(Up(o,i)*Mp+360)%360;return Zp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},q0=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),[l,c,f]=G0(n,i,o),[d,g,b]=g9(l,c,f);return[d,g,b,...s.length>0&&s[0]<1?[s[0]]:[]]};Y.prototype.lch=function(){return q0(this._rgb)},Y.prototype.hcl=function(){return l9(q0(this._rgb))},Object.assign(de,{lch:(...e)=>new Y(...e,"lch"),hcl:(...e)=>new Y(...e,"hcl")}),he.format.lch=j0,he.format.hcl=Hp,["lch","hcl"].forEach(e=>he.autodetect.push({p:2,test:(...n)=>{if(n=me(n,e),Ce(n)==="array"&&n.length===3)return e}})),Y.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=xn.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[o,s]=e.split("."),l=this[o]();if(s){const c=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(c>-1){if(Ce(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(Ce(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new Y(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},Y.prototype.tint=function(e=.5,...n){return Nr(this,"white",e,...n)},Y.prototype.shade=function(e=.5,...n){return Nr(this,"black",e,...n)};const Yp=(e,n,i)=>{const o=e._rgb,s=n._rgb;return new Y(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};Ct.rgb=Yp;const{sqrt:X0,pow:zr}=Math,Gp=(e,n,i)=>{const[o,s,l]=e._rgb,[c,f,d]=n._rgb;return new Y(X0(zr(o,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")};Ct.lrgb=Gp;const Vp=(e,n,i)=>{const o=e.lab(),s=n.lab();return new Y(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};Ct.lab=Vp;const Kr=(e,n,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=n.hsl()):o==="hsv"?(s=e.hsv(),l=n.hsv()):o==="hcg"?(s=e.hcg(),l=n.hcg()):o==="hsi"?(s=e.hsi(),l=n.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=n.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,b,y;(o.substr(0,1)==="h"||o==="oklch")&&([c,d,b]=s,[f,g,y]=l);let v,$,_,x;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?x=f-(c+360):f<c&&c-f>180?x=f+360-c:x=f-c,$=c+i*x):isNaN(c)?isNaN(f)?$=Number.NaN:($=f,(b==1||b==0)&&o!="hsv"&&(v=g)):($=c,(y==1||y==0)&&o!="hsv"&&(v=d)),v===void 0&&(v=d+i*(g-d)),_=b+i*(y-b),o==="oklch"?new Y([_,v,$],o):new Y([$,v,_],o)},p9=(e,n,i)=>Kr(e,n,i,"lch");Ct.lch=p9,Ct.hcl=p9;const Qp=e=>{if(Ce(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,o=e&255;return[n,i,o,1]}throw new Error("unknown num color: "+e)},jp=(...e)=>{const[n,i,o]=me(e,"rgb");return(n<<16)+(i<<8)+o};Y.prototype.num=function(){return jp(this._rgb)},Object.assign(de,{num:(...e)=>new Y(...e,"num")}),he.format.num=Qp,he.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ce(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const qp=(e,n,i)=>{const o=e.num(),s=n.num();return new Y(o+i*(s-o),"num")};Ct.num=qp;const{floor:Xp}=Math,Jp=(...e)=>{e=me(e,"hcg");let[n,i,o]=e,s,l,c;o=o*255;const f=i*255;if(i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=Xp(n),g=n-d,b=o*(1-i),y=b+f*(1-g),v=b+f*g,$=b+f;switch(d){case 0:[s,l,c]=[$,v,b];break;case 1:[s,l,c]=[y,$,b];break;case 2:[s,l,c]=[b,$,v];break;case 3:[s,l,c]=[b,y,$];break;case 4:[s,l,c]=[v,b,$];break;case 5:[s,l,c]=[$,b,y];break}}return[s,l,c,e.length>3?e[3]:1]},em=(...e)=>{const[n,i,o]=me(e,"rgb"),s=a9(n,i,o),l=s9(n,i,o),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-o)/c),i===l&&(g=2+(o-n)/c),o===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};Y.prototype.hcg=function(){return em(this._rgb)};const tm=(...e)=>new Y(...e,"hcg");de.hcg=tm,he.format.hcg=Jp,he.autodetect.push({p:1,test:(...e)=>{if(e=me(e,"hcg"),Ce(e)==="array"&&e.length===3)return"hcg"}});const nm=(e,n,i)=>Kr(e,n,i,"hcg");Ct.hcg=nm;const{cos:Hr}=Math,rm=(...e)=>{e=me(e,"hsi");let[n,i,o]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Hr(Pn*n)/Hr(U0-Pn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Hr(Pn*n)/Hr(U0-Pn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Hr(Pn*n)/Hr(U0-Pn*n))/3,s=1-(l+c)),s=hr(o*s*3),l=hr(o*l*3),c=hr(o*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:im,sqrt:om,acos:am}=Math,sm=(...e)=>{let[n,i,o]=me(e,"rgb");n/=255,i/=255,o/=255;let s;const l=im(n,i,o),c=(n+i+o)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-o))/2,s/=om((n-i)*(n-i)+(n-o)*(i-o)),s=am(s),o>i&&(s=Pn-s),s/=Pn),[s*360,f,c]};Y.prototype.hsi=function(){return sm(this._rgb)};const lm=(...e)=>new Y(...e,"hsi");de.hsi=lm,he.format.hsi=rm,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsi"),Ce(e)==="array"&&e.length===3)return"hsi"}});const cm=(e,n,i)=>Kr(e,n,i,"hsi");Ct.hsi=cm;const J0=(...e)=>{e=me(e,"hsl");const[n,i,o]=e;let s,l,c;if(i===0)s=l=c=o*255;else{const f=[0,0,0],d=[0,0,0],g=o<.5?o*(1+i):o+i-o*i,b=2*o-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let v=0;v<3;v++)f[v]<0&&(f[v]+=1),f[v]>1&&(f[v]-=1),6*f[v]<1?d[v]=b+(g-b)*6*f[v]:2*f[v]<1?d[v]=g:3*f[v]<2?d[v]=b+(g-b)*(2/3-f[v])*6:d[v]=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]},m9=(...e)=>{e=me(e,"rgba");let[n,i,o]=e;n/=255,i/=255,o/=255;const s=a9(n,i,o),l=s9(n,i,o),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-o)/(l-s):i==l?d=2+(o-n)/(l-s):o==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};Y.prototype.hsl=function(){return m9(this._rgb)};const um=(...e)=>new Y(...e,"hsl");de.hsl=um,he.format.hsl=J0,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsl"),Ce(e)==="array"&&e.length===3)return"hsl"}});const fm=(e,n,i)=>Kr(e,n,i,"hsl");Ct.hsl=fm;const{floor:dm}=Math,hm=(...e)=>{e=me(e,"hsv");let[n,i,o]=e,s,l,c;if(o*=255,i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=dm(n),d=n-f,g=o*(1-i),b=o*(1-i*d),y=o*(1-i*(1-d));switch(f){case 0:[s,l,c]=[o,y,g];break;case 1:[s,l,c]=[b,o,g];break;case 2:[s,l,c]=[g,o,y];break;case 3:[s,l,c]=[g,b,o];break;case 4:[s,l,c]=[y,g,o];break;case 5:[s,l,c]=[o,g,b];break}}return[s,l,c,e.length>3?e[3]:1]},{min:gm,max:pm}=Math,mm=(...e)=>{e=me(e,"rgb");let[n,i,o]=e;const s=gm(n,i,o),l=pm(n,i,o),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-o)/c),i===l&&(f=2+(o-n)/c),o===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};Y.prototype.hsv=function(){return mm(this._rgb)};const ym=(...e)=>new Y(...e,"hsv");de.hsv=ym,he.format.hsv=hm,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"hsv"),Ce(e)==="array"&&e.length===3)return"hsv"}});const _m=(e,n,i)=>Kr(e,n,i,"hsv");Ct.hsv=_m;function di(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let o=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,b)=>d+g*(f[b]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),o===1?l.map(c=>c[0]):l}const eo=(...e)=>{e=me(e,"lab");const[n,i,o,...s]=e,[l,c,f]=vm([n,i,o]),[d,g,b]=f9(l,c,f);return[d,g,b,...s.length>0&&s[0]<1?[s[0]]:[]]};function vm(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=di(i,e);return di(n,o.map(s=>s**3))}const to=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),l=d9(n,i,o);return[...bm(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function bm(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=di(n,e);return di(i,o.map(s=>Math.cbrt(s)))}Y.prototype.oklab=function(){return to(this._rgb)},Object.assign(de,{oklab:(...e)=>new Y(...e,"oklab")}),he.format.oklab=eo,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklab"),Ce(e)==="array"&&e.length===3)return"oklab"}});const Cm=(e,n,i)=>{const o=e.oklab(),s=n.oklab();return new Y(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};Ct.oklab=Cm;const xm=(e,n,i)=>Kr(e,n,i,"oklch");Ct.oklch=xm;const{pow:no,sqrt:ro,PI:io,cos:y9,sin:_9,atan2:wm}=Math,Lm=(e,n="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(y,v){return y+v});if(i.forEach((y,v)=>{i[v]*=s}),e=e.map(y=>new Y(y)),n==="lrgb")return $m(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 v=c[y]/180*io;d+=y9(v)*i[0],g+=_9(v)*i[0]}let b=l.alpha()*i[0];e.forEach((y,v)=>{const $=y.get(n);b+=y.alpha()*i[v+1];for(let _=0;_<c.length;_++)if(!isNaN($[_]))if(f[_]+=i[v+1],n.charAt(_)==="h"){const x=$[_]/180*io;d+=y9(x)*i[v+1],g+=_9(x)*i[v+1]}else c[_]+=$[_]*i[v+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let v=wm(g/f[y],d/f[y])/io*180;for(;v<0;)v+=360;for(;v>=360;)v-=360;c[y]=v}else c[y]=c[y]/f[y];return b/=o,new Y(c,n).alpha(b>.99999?1:b,!0)},$m=(e,n)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;o[0]+=no(f[0],2)*c,o[1]+=no(f[1],2)*c,o[2]+=no(f[2],2)*c,o[3]+=f[3]*c}return o[0]=ro(o[0]),o[1]=ro(o[1]),o[2]=ro(o[2]),o[3]>.9999999&&(o[3]=1),new Y(H0(o))},{pow:Sm}=Math;function hi(e){let n="rgb",i=de("#ccc"),o=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],b=!1,y=0,v=1,$=!1,_={},x=!0,L=1;const S=function(I){if(I=I||["#fff","#000"],I&&Ce(I)==="string"&&de.brewer&&de.brewer[I.toLowerCase()]&&(I=de.brewer[I.toLowerCase()]),Ce(I)==="array"){I.length===1&&(I=[I[0],I[0]]),I=I.slice(0);for(let N=0;N<I.length;N++)I[N]=de(I[N]);c.length=0;for(let N=0;N<I.length;N++)c.push(N/(I.length-1))}return J(),g=I},T=function(I){if(d!=null){const N=d.length-1;let Q=0;for(;Q<N&&I>=d[Q];)Q++;return Q-1}return 0};let P=I=>I,E=I=>I;const Z=function(I,N){let Q,q;if(N==null&&(N=!1),isNaN(I)||I===null)return i;N?q=I:d&&d.length>2?q=T(I)/(d.length-2):v!==y?q=(I-y)/(v-y):q=1,q=E(q),N||(q=P(q)),L!==1&&(q=Sm(q,L)),q=f[0]+q*(1-f[0]-f[1]),q=hr(q,0,1);const ne=Math.floor(q*1e4);if(x&&_[ne])Q=_[ne];else{if(Ce(g)==="array")for(let te=0;te<c.length;te++){const Pe=c[te];if(q<=Pe){Q=g[te];break}if(q>=Pe&&te===c.length-1){Q=g[te];break}if(q>Pe&&q<c[te+1]){q=(q-Pe)/(c[te+1]-Pe),Q=de.interpolate(g[te],g[te+1],q,n);break}}else Ce(g)==="function"&&(Q=g(q));x&&(_[ne]=Q)}return Q};var J=()=>_={};S(e);const G=function(I){const N=de(Z(I));return b&&N[b]?N[b]():N};return G.classes=function(I){if(I!=null){if(Ce(I)==="array")d=I,s=[I[0],I[I.length-1]];else{const N=de.analyze(s);I===0?d=[N.min,N.max]:d=de.limits(N,"e",I)}return G}return d},G.domain=function(I){if(!arguments.length)return l;l=I.slice(0),y=I[0],v=I[I.length-1],c=[];const N=g.length;if(I.length===N&&y!==v)for(let Q of Array.from(I))c.push((Q-y)/(v-y));else{for(let Q=0;Q<N;Q++)c.push(Q/(N-1));if(I.length>2){const Q=I.map((ne,te)=>te/(I.length-1)),q=I.map(ne=>(ne-y)/(v-y));q.every((ne,te)=>Q[te]===ne)||(E=ne=>{if(ne<=0||ne>=1)return ne;let te=0;for(;ne>=q[te+1];)te++;const Pe=(ne-q[te])/(q[te+1]-q[te]);return Q[te]+Pe*(Q[te+1]-Q[te])})}}return s=[y,v],G},G.mode=function(I){return arguments.length?(n=I,J(),G):n},G.range=function(I,N){return S(I),G},G.out=function(I){return b=I,G},G.spread=function(I){return arguments.length?(o=I,G):o},G.correctLightness=function(I){return I==null&&(I=!0),$=I,J(),$?P=function(N){const Q=Z(0,!0).lab()[0],q=Z(1,!0).lab()[0],ne=Q>q;let te=Z(N,!0).lab()[0];const Pe=Q+(q-Q)*N;let oe=te-Pe,pt=0,mt=1,tt=20;for(;Math.abs(oe)>.01&&tt-- >0;)(function(){return ne&&(oe*=-1),oe<0?(pt=N,N+=(mt-N)*.5):(mt=N,N+=(pt-N)*.5),te=Z(N,!0).lab()[0],oe=te-Pe})();return N}:P=N=>N,G},G.padding=function(I){return I!=null?(Ce(I)==="number"&&(I=[I,I]),f=I,G):f},G.colors=function(I,N){arguments.length<2&&(N="hex");let Q=[];if(arguments.length===0)Q=g.slice(0);else if(I===1)Q=[G(.5)];else if(I>1){const q=s[0],ne=s[1]-q;Q=km(0,I,!1).map(te=>G(q+te/(I-1)*ne))}else{e=[];let q=[];if(d&&d.length>2)for(let ne=1,te=d.length,Pe=1<=te;Pe?ne<te:ne>te;Pe?ne++:ne--)q.push((d[ne-1]+d[ne])*.5);else q=s;Q=q.map(ne=>G(ne))}return de[N]&&(Q=Q.map(q=>q[N]())),Q},G.cache=function(I){return I!=null?(x=I,G):x},G.gamma=function(I){return I!=null?(L=I,G):L},G.nodata=function(I){return I!=null?(i=de(I),G):i},G}function km(e,n,i){let o=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)o.push(c);return o}const Am=function(e){let n=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=n.length;s++)o[s]=(n[s]||0)+n[s-1];n=o}return n},Mm=function(e){let n,i,o,s;if(e=e.map(l=>new Y(l)),e.length===2)[i,o]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new Y(c,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new Y(c,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*o[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new Y(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=Am(f),n=function(d){const g=1-d,b=[0,1,2].map(y=>l.reduce((v,$,_)=>v+c[_]*g**(f-_)*d**_*$[y],0));return new Y(b,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},Tm=e=>{const n=Mm(e);return n.scale=()=>hi(n),n},{round:v9}=Math;Y.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(v9)},Y.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:v9(n):n)},Object.assign(de,{rgb:(...e)=>new Y(...e,"rgb")}),he.format.rgb=(...e)=>{const n=me(e,"rgba");return n[3]===void 0&&(n[3]=1),n},he.autodetect.push({p:3,test:(...e)=>{if(e=me(e,"rgba"),Ce(e)==="array"&&(e.length===3||e.length===4&&Ce(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const ln=(e,n,i)=>{if(!ln[i])throw new Error("unknown blend mode "+i);return ln[i](e,n)},jn=e=>(n,i)=>{const o=de(i).rgb(),s=de(n).rgb();return de.rgb(e(o,s))},qn=e=>(n,i)=>{const o=[];return o[0]=e(n[0],i[0]),o[1]=e(n[1],i[1]),o[2]=e(n[2],i[2]),o},Pm=e=>e,Om=(e,n)=>e*n/255,Im=(e,n)=>e>n?n:e,Em=(e,n)=>e>n?e:n,Dm=(e,n)=>255*(1-(1-e/255)*(1-n/255)),Rm=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),Bm=(e,n)=>255*(1-(1-n/255)/(e/255)),Fm=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);ln.normal=jn(qn(Pm)),ln.multiply=jn(qn(Om)),ln.screen=jn(qn(Dm)),ln.overlay=jn(qn(Rm)),ln.darken=jn(qn(Im)),ln.lighten=jn(qn(Em)),ln.dodge=jn(qn(Fm)),ln.burn=jn(qn(Bm));const{pow:Nm,sin:zm,cos:Km}=Math;function Hm(e=300,n=-1.5,i=1,o=1,s=[0,1]){let l=0,c;Ce(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Pn*((e+120)/360+n*d),b=Nm(s[0]+c*d,o),v=(l!==0?i[0]+d*l:i)*b*(1-b)/2,$=Km(g),_=zm(g),x=b+v*(-.14861*$+1.78277*_),L=b+v*(-.29227*$-.90649*_),S=b+v*(1.97294*$);return de(H0([x*255,L*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?o:(o=d,f)},f.hue=function(d){return d==null?i:(i=d,Ce(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(Ce(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>de.scale(f),f.hue(i),f}const Wm="0123456789abcdef",{floor:Um,random:Zm}=Math,Ym=(e=Zm)=>{let n="#";for(let i=0;i<6;i++)n+=Wm.charAt(Um(e()*16));return new Y(n,"hex")},{log:b9,pow:Gm,floor:Vm,abs:Qm}=Math;function C9(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ce(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{n&&Ce(o)==="object"&&(o=o[n]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>x9(i,o,s),i}function x9(e,n="equal",i=7){Ce(e)=="array"&&(e=C9(e));const{min:o,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[o,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(o),c.push(s)),n.substr(0,1)==="e"){c.push(o);for(let f=1;f<i;f++)c.push(o+f/i*(s-o));c.push(s)}else if(n.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*b9(o),d=Math.LOG10E*b9(s);c.push(o);for(let g=1;g<i;g++)c.push(Gm(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(o);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=Vm(d);if(g===d)c.push(l[g]);else{const b=d-g;c.push(l[g]*(1-b)+l[g+1]*b)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),b=new Array(i);let y=!0,v=0,$=null;$=[],$.push(o);for(let L=1;L<i;L++)$.push(o+L/i*(s-o));for($.push(s);y;){for(let S=0;S<i;S++)b[S]=0;for(let S=0;S<d;S++){const T=l[S];let P=Number.MAX_VALUE,E;for(let Z=0;Z<i;Z++){const J=Qm($[Z]-T);J<P&&(P=J,E=Z),b[E]++,g[S]=E}}const L=new Array(i);for(let S=0;S<i;S++)L[S]=null;for(let S=0;S<d;S++)f=g[S],L[f]===null?L[f]=l[S]:L[f]+=l[S];for(let S=0;S<i;S++)L[S]*=1/b[S];y=!1;for(let S=0;S<i;S++)if(L[S]!==$[S]){y=!0;break}$=L,v++,v>200&&(y=!1)}const _={};for(let L=0;L<i;L++)_[L]=[];for(let L=0;L<d;L++)f=g[L],_[f].push(l[L]);let x=[];for(let L=0;L<i;L++)x.push(_[L][0]),x.push(_[L][_[L].length-1]);x=x.sort((L,S)=>L-S),c.push(x[0]);for(let L=1;L<x.length;L+=2){const S=x[L];!isNaN(S)&&c.indexOf(S)===-1&&c.push(S)}}return c}const jm=(e,n)=>{e=new Y(e),n=new Y(n);const i=e.luminance(),o=n.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
26
+ `)+Z+`return __p
27
+ }`;var ve=c2(function(){return De(_,ie+"return "+Z).apply(i,w)});if(ve.source=Z,Ma(ve))throw ve;return ve}function iA(t){return Be(t).toLowerCase()}function oA(t){return Be(t).toUpperCase()}function aA(t,r,a){if(t=Be(t),t&&(a||r===i))return m5(t);if(!t||!(r=qt(r)))return t;var u=mn(t),h=mn(r),_=y5(u,h),w=b5(u,h)+1;return ur(u,_,w).join("")}function sA(t,r,a){if(t=Be(t),t&&(a||r===i))return t.slice(0,C5(t)+1);if(!t||!(r=qt(r)))return t;var u=mn(t),h=b5(u,mn(r))+1;return ur(u,0,h).join("")}function lA(t,r,a){if(t=Be(t),t&&(a||r===i))return t.replace(Mo,"");if(!t||!(r=qt(r)))return t;var u=mn(t),h=y5(u,mn(r));return ur(u,h).join("")}function cA(t,r){var a=j,u=te;if(Xe(r)){var h="separator"in r?r.separator:h;a="length"in r?be(r.length):a,u="omission"in r?qt(r.omission):u}t=Be(t);var _=t.length;if(i1(t)){var w=mn(t);_=w.length}if(a>=_)return t;var S=a-o1(u);if(S<1)return u;var M=w?ur(w,0,S).join(""):t.slice(0,S);if(h===i)return M+u;if(w&&(S+=M.length-S),Ta(h)){if(t.slice(S).search(h)){var N,K=M;for(h.global||(h=Yo(h.source,Be(z9.exec(h))+"g")),h.lastIndex=0;N=h.exec(K);)var Z=N.index;M=M.slice(0,Z===i?S:Z)}}else if(t.indexOf(qt(h),S)!=S){var J=M.lastIndexOf(h);J>-1&&(M=M.slice(0,J))}return M+u}function uA(t){return t=Be(t),t&&wC.test(t)?t.replace(D9,Nx):t}var fA=d1(function(t,r,a){return t+(a?" ":"")+r.toUpperCase()}),Ea=cc("toUpperCase");function l2(t,r,a){return t=Be(t),r=a?i:r,r===i?Dx(t)?Wx(t):Sx(t):t.match(r)||[]}var c2=Ce(function(t,r){try{return Ut(t,i,r)}catch(a){return Ma(a)?a:new he(a)}}),dA=qn(function(t,r){return Zt(r,function(a){a=bn(a),Mn(t,a,ka(t[a],t))}),t});function hA(t){var r=t==null?0:t.length,a=le();return t=r?Ge(t,function(u){if(typeof u[1]!="function")throw new rn(c);return[a(u[0]),u[1]]}):[],Ce(function(u){for(var h=-1;++h<r;){var _=t[h];if(Ut(_[0],this,u))return Ut(_[1],this,u)}})}function gA(t){return Nw(an(t,b))}function Da(t){return function(){return t}}function pA(t,r){return t==null||t!==t?r:t}var _A=fc(),mA=fc(!0);function Kt(t){return t}function Ra(t){return K5(typeof t=="function"?t:an(t,b))}function yA(t){return W5(an(t,b))}function bA(t,r){return U5(t,an(r,b))}var vA=Ce(function(t,r){return function(a){return B1(a,t,r)}}),CA=Ce(function(t,r){return function(a){return B1(t,a,r)}});function Ba(t,r,a){var u=mt(r),h=r0(r,u);a==null&&!(Xe(r)&&(h.length||!u.length))&&(a=r,r=t,t=this,h=r0(r,mt(r)));var _=!(Xe(a)&&"chain"in a)||!!a.chain,w=Vn(t);return Zt(h,function(S){var M=r[S];t[S]=M,w&&(t.prototype[S]=function(){var N=this.__chain__;if(_||N){var K=t(this.__wrapped__),Z=K.__actions__=Ft(this.__actions__);return Z.push({func:M,args:arguments,thisArg:t}),K.__chain__=N,K}return M.apply(t,ir([this.value()],arguments))})}),t}function xA(){return yt._===this&&(yt._=Vx),this}function Fa(){}function wA(t){return t=be(t),Ce(function(r){return Z5(r,t)})}var $A=ga(Ge),LA=ga(d5),SA=ga(zo);function u2(t){return Ca(t)?No(bn(t)):r$(t)}function kA(t){return function(r){return t==null?i:xr(t,r)}}var AA=hc(),MA=hc(!0);function za(){return[]}function Na(){return!1}function TA(){return{}}function PA(){return""}function IA(){return!0}function OA(t,r){if(t=be(t),t<1||t>ft)return[];var a=Ae,u=St(t,Ae);r=le(r),t-=Ae;for(var h=Wo(u,r);++a<t;)r(a);return h}function EA(t){return me(t)?Ge(t,bn):Gt(t)?[t]:Ft(Mc(Be(t)))}function DA(t){var r=++qx;return Be(t)+r}var RA=c0(function(t,r){return t+r},0),BA=pa("ceil"),FA=c0(function(t,r){return t/r},1),zA=pa("floor");function NA(t){return t&&t.length?n0(t,Kt,ea):i}function KA(t,r){return t&&t.length?n0(t,le(r,2),ea):i}function HA(t){return p5(t,Kt)}function WA(t,r){return p5(t,le(r,2))}function UA(t){return t&&t.length?n0(t,Kt,ia):i}function ZA(t,r){return t&&t.length?n0(t,le(r,2),ia):i}var YA=c0(function(t,r){return t*r},1),qA=pa("round"),GA=c0(function(t,r){return t-r},0);function VA(t){return t&&t.length?Ho(t,Kt):0}function jA(t,r){return t&&t.length?Ho(t,le(r,2)):0}return p.after=bS,p.ary=Nc,p.assign=ak,p.assignIn=e2,p.assignInWith=t2,p.assignWith=Pa,p.at=sk,p.before=Kc,p.bind=ka,p.bindAll=dA,p.bindKey=Hc,p.castArray=PS,p.chain=Bc,p.chunk=N$,p.compact=K$,p.concat=H$,p.cond=hA,p.conforms=gA,p.constant=Da,p.countBy=jL,p.create=lk,p.curry=Wc,p.curryRight=Uc,p.debounce=Zc,p.defaults=ck,p.defaultsDeep=uk,p.defer=vS,p.delay=CS,p.difference=W$,p.differenceBy=U$,p.differenceWith=Z$,p.drop=Y$,p.dropRight=q$,p.dropRightWhile=G$,p.dropWhile=V$,p.fill=j$,p.filter=XL,p.flatMap=tS,p.flatMapDeep=nS,p.flatMapDepth=rS,p.flatten=Oc,p.flattenDeep=Q$,p.flattenDepth=X$,p.flip=xS,p.flow=_A,p.flowRight=mA,p.fromPairs=J$,p.functions=mk,p.functionsIn=yk,p.groupBy=iS,p.initial=tL,p.intersection=nL,p.intersectionBy=rL,p.intersectionWith=iL,p.invert=vk,p.invertBy=Ck,p.invokeMap=aS,p.iteratee=Ra,p.keyBy=sS,p.keys=mt,p.keysIn=Nt,p.map=_0,p.mapKeys=wk,p.mapValues=$k,p.matches=yA,p.matchesProperty=bA,p.memoize=y0,p.merge=Lk,p.mergeWith=n2,p.method=vA,p.methodOf=CA,p.mixin=Ba,p.negate=b0,p.nthArg=wA,p.omit=Sk,p.omitBy=kk,p.once=wS,p.orderBy=lS,p.over=$A,p.overArgs=$S,p.overEvery=LA,p.overSome=SA,p.partial=Aa,p.partialRight=Yc,p.partition=cS,p.pick=Ak,p.pickBy=r2,p.property=u2,p.propertyOf=kA,p.pull=lL,p.pullAll=Dc,p.pullAllBy=cL,p.pullAllWith=uL,p.pullAt=fL,p.range=AA,p.rangeRight=MA,p.rearg=LS,p.reject=dS,p.remove=dL,p.rest=SS,p.reverse=La,p.sampleSize=gS,p.set=Tk,p.setWith=Pk,p.shuffle=pS,p.slice=hL,p.sortBy=yS,p.sortedUniq=vL,p.sortedUniqBy=CL,p.split=eA,p.spread=kS,p.tail=xL,p.take=wL,p.takeRight=$L,p.takeRightWhile=LL,p.takeWhile=SL,p.tap=KL,p.throttle=AS,p.thru=p0,p.toArray=Qc,p.toPairs=i2,p.toPairsIn=o2,p.toPath=EA,p.toPlainObject=Jc,p.transform=Ik,p.unary=MS,p.union=kL,p.unionBy=AL,p.unionWith=ML,p.uniq=TL,p.uniqBy=PL,p.uniqWith=IL,p.unset=Ok,p.unzip=Sa,p.unzipWith=Rc,p.update=Ek,p.updateWith=Dk,p.values=p1,p.valuesIn=Rk,p.without=OL,p.words=l2,p.wrap=TS,p.xor=EL,p.xorBy=DL,p.xorWith=RL,p.zip=BL,p.zipObject=FL,p.zipObjectDeep=zL,p.zipWith=NL,p.entries=i2,p.entriesIn=o2,p.extend=e2,p.extendWith=t2,Ba(p,p),p.add=RA,p.attempt=c2,p.camelCase=Nk,p.capitalize=a2,p.ceil=BA,p.clamp=Bk,p.clone=IS,p.cloneDeep=ES,p.cloneDeepWith=DS,p.cloneWith=OS,p.conformsTo=RS,p.deburr=s2,p.defaultTo=pA,p.divide=FA,p.endsWith=Kk,p.eq=vn,p.escape=Hk,p.escapeRegExp=Wk,p.every=QL,p.find=JL,p.findIndex=Pc,p.findKey=fk,p.findLast=eS,p.findLastIndex=Ic,p.findLastKey=dk,p.floor=zA,p.forEach=Fc,p.forEachRight=zc,p.forIn=hk,p.forInRight=gk,p.forOwn=pk,p.forOwnRight=_k,p.get=Ia,p.gt=BS,p.gte=FS,p.has=bk,p.hasIn=Oa,p.head=Ec,p.identity=Kt,p.includes=oS,p.indexOf=eL,p.inRange=Fk,p.invoke=xk,p.isArguments=Lr,p.isArray=me,p.isArrayBuffer=zS,p.isArrayLike=zt,p.isArrayLikeObject=at,p.isBoolean=NS,p.isBuffer=fr,p.isDate=KS,p.isElement=HS,p.isEmpty=WS,p.isEqual=US,p.isEqualWith=ZS,p.isError=Ma,p.isFinite=YS,p.isFunction=Vn,p.isInteger=qc,p.isLength=v0,p.isMap=Gc,p.isMatch=qS,p.isMatchWith=GS,p.isNaN=VS,p.isNative=jS,p.isNil=XS,p.isNull=QS,p.isNumber=Vc,p.isObject=Xe,p.isObjectLike=rt,p.isPlainObject=W1,p.isRegExp=Ta,p.isSafeInteger=JS,p.isSet=jc,p.isString=C0,p.isSymbol=Gt,p.isTypedArray=g1,p.isUndefined=ek,p.isWeakMap=tk,p.isWeakSet=nk,p.join=oL,p.kebabCase=Uk,p.last=ln,p.lastIndexOf=aL,p.lowerCase=Zk,p.lowerFirst=Yk,p.lt=rk,p.lte=ik,p.max=NA,p.maxBy=KA,p.mean=HA,p.meanBy=WA,p.min=UA,p.minBy=ZA,p.stubArray=za,p.stubFalse=Na,p.stubObject=TA,p.stubString=PA,p.stubTrue=IA,p.multiply=YA,p.nth=sL,p.noConflict=xA,p.noop=Fa,p.now=m0,p.pad=qk,p.padEnd=Gk,p.padStart=Vk,p.parseInt=jk,p.random=zk,p.reduce=uS,p.reduceRight=fS,p.repeat=Qk,p.replace=Xk,p.result=Mk,p.round=qA,p.runInContext=A,p.sample=hS,p.size=_S,p.snakeCase=Jk,p.some=mS,p.sortedIndex=gL,p.sortedIndexBy=pL,p.sortedIndexOf=_L,p.sortedLastIndex=mL,p.sortedLastIndexBy=yL,p.sortedLastIndexOf=bL,p.startCase=tA,p.startsWith=nA,p.subtract=GA,p.sum=VA,p.sumBy=jA,p.template=rA,p.times=OA,p.toFinite=jn,p.toInteger=be,p.toLength=Xc,p.toLower=iA,p.toNumber=cn,p.toSafeInteger=ok,p.toString=Be,p.toUpper=oA,p.trim=aA,p.trimEnd=sA,p.trimStart=lA,p.truncate=cA,p.unescape=uA,p.uniqueId=DA,p.upperCase=fA,p.upperFirst=Ea,p.each=Fc,p.eachRight=zc,p.first=Ec,Ba(p,function(){var t={};return Tn(p,function(r,a){Re.call(p.prototype,a)||(t[a]=r)}),t}(),{chain:!1}),p.VERSION=o,Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Zt(["drop","take"],function(t,r){Se.prototype[t]=function(a){a=a===i?1:pt(be(a),0);var u=this.__filtered__&&!r?new Se(this):this.clone();return u.__filtered__?u.__takeCount__=St(a,u.__takeCount__):u.__views__.push({size:St(a,Ae),type:t+(u.__dir__<0?"Right":"")}),u},Se.prototype[t+"Right"]=function(a){return this.reverse()[t](a).reverse()}}),Zt(["filter","map","takeWhile"],function(t,r){var a=r+1,u=a==ot||a==wt;Se.prototype[t]=function(h){var _=this.clone();return _.__iteratees__.push({iteratee:le(h,3),type:a}),_.__filtered__=_.__filtered__||u,_}}),Zt(["head","last"],function(t,r){var a="take"+(r?"Right":"");Se.prototype[t]=function(){return this[a](1).value()[0]}}),Zt(["initial","tail"],function(t,r){var a="drop"+(r?"":"Right");Se.prototype[t]=function(){return this.__filtered__?new Se(this):this[a](1)}}),Se.prototype.compact=function(){return this.filter(Kt)},Se.prototype.find=function(t){return this.filter(t).head()},Se.prototype.findLast=function(t){return this.reverse().find(t)},Se.prototype.invokeMap=Ce(function(t,r){return typeof t=="function"?new Se(this):this.map(function(a){return B1(a,t,r)})}),Se.prototype.reject=function(t){return this.filter(b0(le(t)))},Se.prototype.slice=function(t,r){t=be(t);var a=this;return a.__filtered__&&(t>0||r<0)?new Se(a):(t<0?a=a.takeRight(-t):t&&(a=a.drop(t)),r!==i&&(r=be(r),a=r<0?a.dropRight(-r):a.take(r-t)),a)},Se.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Se.prototype.toArray=function(){return this.take(Ae)},Tn(Se.prototype,function(t,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),h=p[u?"take"+(r=="last"?"Right":""):r],_=u||/^find/.test(r);h&&(p.prototype[r]=function(){var w=this.__wrapped__,S=u?[1]:arguments,M=w instanceof Se,N=S[0],K=M||me(w),Z=function(Le){var ke=h.apply(p,ir([Le],S));return u&&J?ke[0]:ke};K&&a&&typeof N=="function"&&N.length!=1&&(M=K=!1);var J=this.__chain__,ie=!!this.__actions__.length,ce=_&&!J,ve=M&&!ie;if(!_&&K){w=ve?w:new Se(this);var se=t.apply(w,S);return se.__actions__.push({func:p0,args:[Z],thisArg:i}),new on(se,J)}return ce&&ve?t.apply(this,S):(se=this.thru(Z),ce?u?se.value()[0]:se.value():se)})}),Zt(["pop","push","shift","sort","splice","unshift"],function(t){var r=Ki[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var h=arguments;if(u&&!this.__chain__){var _=this.value();return r.apply(me(_)?_:[],h)}return this[a](function(w){return r.apply(me(w)?w:[],h)})}}),Tn(Se.prototype,function(t,r){var a=p[r];if(a){var u=a.name+"";Re.call(c1,u)||(c1[u]=[]),c1[u].push({name:r,func:a})}}),c1[l0(i,P).name]=[{name:"wrapper",func:i}],Se.prototype.clone=fw,Se.prototype.reverse=dw,Se.prototype.value=hw,p.prototype.at=HL,p.prototype.chain=WL,p.prototype.commit=UL,p.prototype.next=ZL,p.prototype.plant=qL,p.prototype.reverse=GL,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=VL,p.prototype.first=p.prototype.head,T1&&(p.prototype[T1]=YL),p},a1=Ux();mr?((mr.exports=a1)._=a1,Do._=a1):yt._=a1}).call(In)}(U1,U1.exports);var d2=U1.exports;const it=w0(d2),h2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>{if(i.length>1){const o=i[1].x>i[0].x?0:1,s=fe.utils.getLinearSlopeIntercept(i[0],i[1]);let l;s?l=Math.atan(s[0])+Math.PI*o:i[1].y>i[0].y?l=Math.PI/2:l=Math.PI/2*3;const c=un({x:i[1].x-8,y:i[1].y+4},i[1],l),f=un({x:i[1].x-8,y:i[1].y-4},i[1],l);return[{type:"line",attrs:{coordinates:i},styles:n()},{type:"line",ignoreEvent:!0,attrs:{coordinates:[c,i[1],f]},styles:n()}]}return[]},setProperties:i=>{e=it.merge({},e,i)},getProperties:()=>e}},g2=()=>{let e=new Map,n=i=>{const o=e.get(i);return{style:(o==null?void 0:o.style)??"stroke_fill",color:(o==null?void 0:o.backgroundColor)??"rgba(22, 119, 255, 0.15)",borderColor:(o==null?void 0:o.lineColor)??(o==null?void 0:o.borderColor),borderSize:o==null?void 0:o.borderWidth,borderStyle:(o==null?void 0:o.borderStyle)??(o==null?void 0:o.lineStyle)}};return{name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>{if(i.length>1){const s=Ka(i[0],i[1]);return{type:"circle",attrs:{...i[0],r:s},styles:n(o.id)}}return[]},setProperties:(i,o)=>{e.set(o,it.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},p2=()=>{let e=new Map,n=i=>{const o=e.get(i);return{style:o.style??"stroke_fill",color:o.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:o.lineColor??o.borderColor,borderSize:o.borderWidth,borderStyle:o.borderStyle??o.lineStyle}};return{name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i,overlay:o})=>i.length>1?[{type:"polygon",attrs:{coordinates:[i[0],{x:i[1].x,y:i[0].y},i[1],{x:i[0].x,y:i[1].y}]},styles:n(o.id)}]:[],setProperties:(i,o)=>{e.set(o,it.merge({},e.get(o),i))},getProperties:i=>e.get(i)??{}}},_2=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:o},styles:i()}];if(o.length===3){const s={x:o[0].x+(o[2].x-o[1].x),y:o[2].y};return[{type:"polygon",attrs:{coordinates:[o[0],o[1],o[2],s]},styles:n()}]}return[]},performEventPressedMove:({points:o,performPointIndex:s,performPoint:l})=>{s<2&&(o[0].value=l.value,o[1].value=l.value)},performEventMoveForDrawing:({currentStep:o,points:s,performPoint:l})=>{o===2&&(s[0].value=l.value)},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},m2=()=>{let e={},n=()=>({style:e.style??"stroke_fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});return{name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:i})=>[{type:"polygon",attrs:{coordinates:i},styles:n()}],setProperties:i=>{e=it.merge({},e,i)},getProperties:()=>e}},y2=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{if(o.length>1){const s=Math.abs(o[0].x-o[1].x),l=Math.abs(o[0].y-o[1].y),c=Math.sqrt(s*s+l*l),f=[.236,.382,.5,.618,.786,1],d=[],g=[];return f.forEach(v=>{const y=c*v;d.push({...o[0],r:y}),g.push({x:o[0].x,y:o[0].y+y+6,text:`${(v*100).toFixed(1)}%`})}),[{type:"circle",attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:g,styles:i()}]}return[]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},b2=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,overlay:s,chart:l,yAxis:c})=>{const f=[],d=[];if(o.length>1){let g=0;const v=l.getSymbol();((c==null?void 0:c.isInCandle())??!0)&&v?g=v.pricePrecision:l.getIndicators({paneId:s.paneId}).forEach($=>{g=Math.max(g,$.precision)});const y=o[1].x>o[0].x?o[0].x:o[1].x,b=[1,.786,.618,.5,.382,.236,0],C=o[0].y-o[1].y,L=s.points,k=L[0].value-L[1].value;b.forEach(x=>{const $=o[1].y+C*x,P=(L[1].value+k*x).toFixed(g.price);f.push({coordinates:[{x:o[0].x,y:$},{x:o[1].x,y:$}]}),d.push({x:y,y:$,text:`${P} (${(x*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:f,styles:n()},{type:"text",ignoreEvent:!0,attrs:d,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},v2=()=>{let e={},n=()=>({style:e.style??"stroke",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{if(o.length>1){const l=Ka(o[0],o[1])/Math.sqrt(24),c=o[1].x>o[0].x?0:1,f=fe.utils.getLinearSlopeIntercept(o[0],o[1]);let d;f?d=Math.atan(f[0])+Math.PI*c:o[1].y>o[0].y?d=Math.PI/2:d=Math.PI/2*3;const g=un({x:o[0].x-l,y:o[0].y},o[0],d),v=un({x:o[0].x-l,y:o[0].y-l},o[0],d),y=[{...g,r:l,startAngle:d,endAngle:d+Math.PI/2},{...v,r:l*2,startAngle:d+Math.PI/2,endAngle:d+Math.PI}];let b=o[0].x-l,C=o[0].y-l;for(let L=2;L<9;L++){const k=y[L-2].r+y[L-1].r;let x=0;switch(L%4){case 0:{x=d,b-=y[L-2].r;break}case 1:{x=d+Math.PI/2,C-=y[L-2].r;break}case 2:{x=d+Math.PI,b+=y[L-2].r;break}case 3:{x=d+Math.PI/2*3,C+=y[L-2].r;break}}const $=x+Math.PI/2,P=un({x:b,y:C},o[0],d);y.push({...P,r:k,startAngle:x,endAngle:$})}return[{type:"arc",attrs:y,styles:n()},{type:"line",attrs:x0(o,s),styles:i()}]}return[]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},C2=()=>{let e={};const n=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o,bounding:s})=>{const l=[];let c=[];const f=[];if(o.length>1){const d=o[1].x>o[0].x?-38:4,g=o[1].y>o[0].y?-2:20,v=o[1].x-o[0].x,y=o[1].y-o[0].y;[1,.75,.618,.5,.382,.25,0].forEach(C=>{const L=o[1].x-v*C,k=o[1].y-y*C;l.push({coordinates:[{x:L,y:o[0].y},{x:L,y:o[1].y}]}),l.push({coordinates:[{x:o[0].x,y:k},{x:o[1].x,y:k}]}),c=c.concat(x0([o[0],{x:L,y:o[1].y}],s)),c=c.concat(x0([o[0],{x:o[1].x,y:k}],s)),f.unshift({x:o[0].x+d,y:k+10,text:`${C.toFixed(3)}`}),f.unshift({x:L-18,y:o[0].y+g,text:`${C.toFixed(3)}`})})}return[{type:"line",attrs:l,styles:n()},{type:"line",attrs:c,styles:n()},{type:"text",ignoreEvent:!0,attrs:f,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},x2=()=>{let e={};const n=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({style:e.lineStyle??"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({chart:s,yAxis:l,coordinates:c,overlay:f})=>{const d=[],g=[];if(c.length>2){let v=0;const y=s.getSymbol();((l==null?void 0:l.isInCandle())??!0)&&y?v=y.pricePrecision:s.getIndicators({paneId:f.paneId}).forEach(P=>{v=Math.max(v,P.precision)});const b=f.points,C=b[1].value-b[0].value,L=c[1].y-c[0].y,k=[0,.236,.382,.5,.618,.786,1],x=c[2].x>c[1].x?c[1].x:c[2].x;k.forEach($=>{const P=c[2].y+L*$,O=(b[2].value+C*$).toFixed(v.price);d.push({coordinates:[{x:c[1].x,y:P},{x:c[2].x,y:P}]}),g.push({x,y:P,text:`${O} (${($*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:c},styles:n()},{type:"line",attrs:d,styles:i()},{type:"text",ignoreEvent:!0,attrs:g,styles:o()}]},setProperties:s=>{e=it.merge({},e,s)},getProperties:()=>e}},w2=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({style:"dashed",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),s=()=>({style:"solid",size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue});return{name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:l})=>{if(l.length>1){const c=(l[1].y-l[0].y)/4,f=l[1].x-l[0].x,d=[{coordinates:[l[0],{x:l[1].x,y:l[1].y-c}]},{coordinates:[l[0],{x:l[1].x,y:l[1].y-c*2}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y+c*2}]},{coordinates:[{...l[0]},{x:l[0].x+f*.236,y:l[1].y}]},{coordinates:[{...l[0]},{x:l[0].x+f*.5,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.236,y:l[0].y}]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[0].x+f*.5,y:l[0].y}]}],g=[{coordinates:[l[0],l[1]]},{coordinates:[{x:l[0].x,y:l[1].y},{x:l[1].x,y:l[0].y}]}];return[{type:"line",attrs:[{coordinates:[l[0],{x:l[1].x,y:l[0].y}]},{coordinates:[{x:l[1].x,y:l[0].y},l[1]]},{coordinates:[l[1],{x:l[0].x,y:l[1].y}]},{coordinates:[{x:l[0].x,y:l[1].y},l[0]]}],styles:i()},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[l[0],{x:l[1].x,y:l[0].y},l[1],{x:l[0].x,y:l[1].y}]},styles:n()},{type:"line",attrs:d,styles:o()},{type:"line",attrs:g,styles:s()}]}return[]},setProperties:l=>{e=it.merge({},e,l)},getProperties:()=>e}},$2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},L2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},S2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},k2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:o})=>{const s=o.map((l,c)=>({...l,text:`(${c})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:o},styles:n()},{type:"text",ignoreEvent:!0,attrs:s,styles:i()}]},setProperties:o=>{e=it.merge({},e,o)},getProperties:()=>e}},A2=()=>{let e={};const n=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),i=()=>({...n(),style:"dashed"}),o=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:s})=>{let l=[],c=[];const f=["A","B","C","D"],d=s.map((g,v)=>({...g,baseline:"bottom",text:`(${f[v]})`}));return s.length>2&&(l=[s[0],s[2]],s.length>3&&(c=[s[1],s[3]])),[{type:"line",attrs:{coordinates:s},styles:n()},{type:"line",attrs:[{coordinates:l},{coordinates:c}],styles:i()},{type:"text",ignoreEvent:!0,attrs:d,styles:o()}]},setProperties:s=>{e=it.merge({},e,s)},getProperties:()=>e}},M2=()=>{let e={},n=()=>({style:e.style??"fill",color:e.backgroundColor??"rgba(22, 119, 255, 0.15)",borderColor:e.lineColor??e.borderColor,borderSize:e.borderWidth,borderStyle:e.borderStyle??e.lineStyle});const i=()=>({style:e.lineStyle,size:e.lineWidth,color:e.lineColor??e.borderColor,dashedValue:e.lineDashedValue}),o=()=>({...i(),style:"dashed"}),s=()=>({color:e.textColor,family:e.textFont,size:e.textFontSize,weight:e.textFontWeight,backgroundColor:e.textBackgroundColor,paddingLeft:e.textPaddingLeft,paddingRight:e.textPaddingRight,paddingTop:e.textPaddingTop,paddingBottom:e.textPaddingBottom});return{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:l,overlay:c})=>{const f=[],d=[],g=["X","A","B","C","D"],v=l.map((y,b)=>({...y,baseline:"bottom",text:`(${g[b]})`}));return l.length>2&&(f.push({coordinates:[l[0],l[2]]}),d.push({coordinates:[l[0],l[1],l[2]]}),l.length>3&&(f.push({coordinates:[l[1],l[3]]}),l.length>4&&(f.push({coordinates:[l[2],l[4]]}),d.push({coordinates:[l[2],l[3],l[4]]})))),[{type:"line",attrs:{coordinates:l},styles:i()},{type:"line",attrs:f,styles:o()},{type:"polygon",ignoreEvent:!0,attrs:d,styles:n()},{type:"text",ignoreEvent:!0,attrs:v,styles:s()}]},setProperties:l=>{e=it.merge({},e,l)},getProperties:()=>e}},T2=()=>{let e={};return{name:"brush",totalStep:3,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,styles:{},createPointFigures:({coordinates:n})=>{const i=[];if(n.length>1){const o=n.filter((s,l)=>l!==1);i.push({coordinates:o})}return[{type:"line",attrs:i,styles:{style:"solid",smooth:!0}}]},performEventMoveForDrawing:({currentStep:n,points:i,performPoint:o})=>{n>=2&&i.push(o)},setProperties:n=>{e=it.merge({},e,n)},getProperties:()=>e}},Ha="--klinecharts-pro-price-alert-line-color",Wa="#76808F";function P2(e){const n=e.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function Ua(e,n,i){if(typeof window>"u"||typeof window.getComputedStyle!="function")return i;const o=P2(e);if(!o)return i;const s=window.getComputedStyle(o).getPropertyValue(n).trim();return s||i}function Xn(e,n){return new Intl.NumberFormat("en-US",{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0}).format(e)}const $0=(e,n,i)=>{const o={price:0,volume:0},s=e.getSymbol();return((i==null?void 0:i.isInCandle())??!0)&&s?(o.price=s.pricePrecision,o.volume=s.volumePrecision):e.getIndicators({paneId:n.paneId}).forEach(c=>{o.price=Math.max(o.price,c.precision)}),o},I2=(e,n,i)=>{try{return new Intl.DateTimeFormat(n,{timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e)}catch{return new Date(e).toLocaleString(n)}},Za="#2ebd85",Ya="#f6465d",O2="#2ebd85",E2="#f6465d",D2=e=>({style:"solid",size:1,color:e,dashedValue:[]}),qa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),R2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),B2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),F2=()=>({name:"positionAvgLine",totalStep:1,mode:"normal",lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var Ie;const s=(Ie=o.points[0])==null?void 0:Ie.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!l||!c||!Number.isFinite(c.close))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=c.close,v=l.multiplier??1,y=l.side==="long"?(g-s)*l.size*v:(s-g)*l.size*v,b=e.getSymbol(),C=(b==null?void 0:b.pricePrecision)??2,L=(b==null?void 0:b.volumePrecision)??4,k=Xn(l.size,L),x=`PNL ${y>=0?"+":""}${Xn(y,C)}`,$=l.side==="long"?Za:Ya,P=y>=0?O2:E2,O=B2($),T=R2(P),z=O.paddingLeft,H=O.paddingRight,U=fe.utils.calcTextWidth(k)+z+H,I=fe.utils.calcTextWidth(x)+z+H,D=16,V=-1,j=0,te=D+I+V,ne=te+U+j;return[{key:"avg-line",type:"line",attrs:{coordinates:[{x:Math.min(ne,i.width),y:d},{x:i.width,y:d}]},styles:D2($),ignoreEvent:!0},{key:"pnl",type:"text",attrs:{x:D,y:d,text:x,align:"left",baseline:"middle"},styles:T,ignoreEvent:!0},{key:"qty",type:"text",attrs:{x:te,y:d,text:k,align:"left",baseline:"middle"},styles:O,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=n.extendData,f=$0(e,n,s);if(l===void 0||!c)return{type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:qa("#888")};c.side;const d=e.getDataList().at(-1),g=d&&Number.isFinite(d.close)?e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y:i[0].y,v=(s==null?void 0:s.isFromZero())??!1,y=Xn(l,f.price);return{type:"text",attrs:{x:v?0:o.width,y:g,text:y,align:v?"left":"right",baseline:"middle"},styles:qa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Ga(e){if(e==null)return;const n=Array.isArray(e)?e[0]:e,i=n==null?void 0:n.value;return typeof i=="number"&&Number.isFinite(i)?i:void 0}function z2(e){const n=e.getSize("candle_pane","main");if(!n||n.width<=0||n.height<=0)return null;const i=n.width*.5,o=Ga(e.convertFromPixel([{x:i,y:0}],{paneId:"candle_pane"})),s=Ga(e.convertFromPixel([{x:i,y:n.height}],{paneId:"candle_pane"}));return o===void 0||s===void 0?null:{min:Math.min(o,s),max:Math.max(o,s)}}function _1(e,n){const i=z2(e);return i?n>=i.min&&n<=i.max:!1}const L0="#f6465d",N2=()=>({style:"dashed",size:1,color:L0,dashedValue:[4,4]}),Z1={style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:L0,borderColor:L0,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},K2={style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:"#bfbfbf",borderColor:"#bfbfbf",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3},H2=()=>({name:"liquidationLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var P;const s=(P=o.points[0])==null?void 0:P.value,l=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l)return[];if(!_1(e,s))return[];const c=l.timestamp,f=e.convertToPixel({timestamp:c,value:s}).y??n[0].y,d=e.getSymbol(),g=(d==null?void 0:d.pricePrecision)??2,y=`Liq: ${Xn(s,g)}`,b=Z1.paddingLeft,C=Z1.paddingRight,L=fe.utils.calcTextWidth(y)+b+C,k=16,x=2,$=k+L+x;return[{key:"liq-line",type:"line",attrs:{coordinates:[{x:Math.min($,i.width),y:f},{x:i.width,y:f}]},styles:N2(),ignoreEvent:!0},{key:"liq-label",type:"text",attrs:{x:k,y:f,text:y,align:"left",baseline:"middle"},styles:Z1,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var b;const l=(b=n.points[0])==null?void 0:b.value,c=$0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Z1};if(l===void 0||!Number.isFinite(l)||!_1(e,l))return f;const d=e.getDataList().at(-1);if(!d)return f;const g=e.convertToPixel({timestamp:d.timestamp,value:l}).y??i[0].y,v=(s==null?void 0:s.isFromZero())??!1,y=Xn(l,c.price);return{type:"text",attrs:{x:v?0:o.width,y:g,text:y,align:v?"left":"right",baseline:"middle"},styles:K2}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),Va={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",alerts:"预警",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"全实心",candle_stroke:"全空心",candle_up_stroke:"涨空心",candle_down_stroke:"跌空心",ohlc:"OHLC",area:"面积图",heikin_ashi:"平金·阿什",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",setting_sidebar_chart:"图表",setting_sidebar_candle:"蜡烛图",setting_sidebar_indicator:"指标",setting_sidebar_grid:"网格",setting_sidebar_x_axis:"X 轴",setting_sidebar_y_axis:"Y 轴",setting_sidebar_separator:"分隔线",setting_sidebar_crosshair:"十字光标",trading_display_positions:"当前持仓",trading_display_liquidation:"强平价格",trading_display_open_orders:"当前委托",trading_display_his_orders:"历史委托",trading_display_price_alerts:"价格预警",alert_type_price_reach:"价格达到",alert_type_price_rise_to:"价格上涨至",alert_type_price_fall_to:"价格下跌至",alert_type_price_rise_pct_over:"价格涨幅超过",alert_type_price_fall_pct_over:"价格跌幅超过",alert_frequency_repeat:"重复提醒",alert_frequency_once:"仅提醒一次",alert_window_5m:"5分",alert_window_1h:"1小时",alert_window_4h:"4小时",alert_window_24h:"24小时",alert_add:"添加预警",alert_detail:"预警详情",alert_empty:"暂无预警",alert_delete:"删除",alert_optional:"可选",alert_submit:"提交",alert_submitting:"提交中...",alert_double_click_detail:"双击查看详情",alert_field_symbol:"标的",alert_field_type:"类型",alert_field_price:"价格",alert_field_window:"时间窗",alert_field_percent:"百分比",alert_field_frequency:"频率",alert_field_remark:"备注",alert_validation_price_gt_zero:"请输入大于 0 的价格",alert_validation_percent_range:"百分比需为 1-100 的整数",trade_buy:"买入",trade_sell:"卖出",order_id:"订单ID",order_price:"价格",order_quantity:"数量",order_fee:"手续费",order_realized_pnl:"已实现盈亏",order_filled_time:"成交时间",order_limit:"限价",restore_default:"重置"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",alerts:"Alerts",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(Sentiment Index)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(Energy Index)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",heikin_ashi:"Heikin Ashi",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",setting_sidebar_chart:"Chart",setting_sidebar_candle:"Candle",setting_sidebar_indicator:"Indicator",setting_sidebar_grid:"Grid",setting_sidebar_x_axis:"X-Axis",setting_sidebar_y_axis:"Y-Axis",setting_sidebar_separator:"Separator",setting_sidebar_crosshair:"Crosshair",trading_display_positions:"Open positions",trading_display_liquidation:"Liquidation price",trading_display_open_orders:"Open orders",trading_display_his_orders:"Historical orders",trading_display_price_alerts:"Price alerts",alert_type_price_reach:"Price reaches",alert_type_price_rise_to:"Price rises to",alert_type_price_fall_to:"Price falls to",alert_type_price_rise_pct_over:"Price increase exceeds",alert_type_price_fall_pct_over:"Price decrease exceeds",alert_frequency_repeat:"Repeat reminder",alert_frequency_once:"Remind once",alert_window_5m:"5m",alert_window_1h:"1 hour",alert_window_4h:"4 hours",alert_window_24h:"24 hours",alert_add:"Add Alert",alert_detail:"Alert Detail",alert_empty:"No alerts",alert_delete:"Delete",alert_optional:"Optional",alert_submit:"Submit",alert_submitting:"Submitting...",alert_double_click_detail:"Double-click to view details",alert_field_symbol:"Symbol",alert_field_type:"Type",alert_field_price:"Price",alert_field_window:"Time Window",alert_field_percent:"Percent",alert_field_frequency:"Frequency",alert_field_remark:"Remark",alert_validation_price_gt_zero:"Please enter a price greater than 0",alert_validation_percent_range:"Percent must be an integer between 1 and 100",trade_buy:"Buy",trade_sell:"Sell",order_id:"Order ID",order_price:"Price",order_quantity:"Quantity",order_fee:"Fee",order_realized_pnl:"Realized PnL",order_filled_time:"Filled Time",order_limit:"Limit",restore_default:"Restore"}};function W2(e,n){Va[e]=n}const m=(e,n)=>{var i;return((i=Va[n])==null?void 0:i[e])??e},U2="#2ebd85",Z2="#f6465d";function ja(e){return e?U2:Z2}const Y2=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),q2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[2,0,0,2],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),G2=e=>({style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:e,backgroundColor:"white",borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:[0,2,2,0],paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),Qa=e=>({style:"fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"white",backgroundColor:e,borderColor:e,borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:2,paddingLeft:4,paddingRight:4,paddingTop:3,paddingBottom:3}),V2=()=>({name:"pendingOrderLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var V,j;const s=(V=o.points[0])==null?void 0:V.value,l=o.extendData,c=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!l||!c)return[];if(!_1(e,s))return[];const f=c.timestamp,d=e.convertToPixel({timestamp:f,value:s}).y??n[0].y,g=e.getSymbol();g==null||g.pricePrecision;const v=(g==null?void 0:g.volumePrecision)??4,y=((j=e.getLocale)==null?void 0:j.call(e))??"zh-CN",b=m("order_limit",y),C=Xn(l.size,v),L=ja(l.isBuy),k=q2(L),x=G2(L),$=k.paddingLeft,P=k.paddingRight,O=fe.utils.calcTextWidth(b)+$+P,T=fe.utils.calcTextWidth(C)+$+P,z=16,H=-1,U=2,I=z+O+H,D=I+T+U;return[{key:"order-line",type:"line",attrs:{coordinates:[{x:Math.min(D,i.width),y:d},{x:i.width,y:d}]},styles:Y2(L),ignoreEvent:!0},{key:"order-price",type:"text",attrs:{x:z,y:d,text:b,align:"left",baseline:"middle"},styles:k,ignoreEvent:!0},{key:"order-size",type:"text",attrs:{x:I,y:d,text:C,align:"left",baseline:"middle"},styles:x,ignoreEvent:!0}]},createYAxisFigures:({chart:e,overlay:n,coordinates:i,bounding:o,yAxis:s})=>{var C;const l=(C=n.points[0])==null?void 0:C.value,c=$0(e,n,s),f={type:"text",attrs:{x:0,y:i[0].y,text:"",align:"right",baseline:"middle"},styles:Qa("#888")};if(l===void 0||!Number.isFinite(l))return f;const d=n.extendData;if(!d||!_1(e,l))return f;ja(d.isBuy);const g=e.getDataList().at(-1);if(!g)return f;const v=e.convertToPixel({timestamp:g.timestamp,value:l}).y??i[0].y,y=(s==null?void 0:s.isFromZero())??!1,b=Xn(l,c.price);return{type:"text",attrs:{x:y?0:o.width,y:v,text:b,align:y?"left":"right",baseline:"middle"},styles:Qa("#bfbfbf")}},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:()=>!1,onMouseLeave:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)}),j2="#2ebd85",Q2="#f6465d",X2=6,J2=14,Xa=14,Ja=18,e6={style:"fill",size:8,family:"Arial, sans-serif",weight:"bold",color:"#ffffff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},t6=()=>({name:"hisOrderMark",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,overlay:i})=>{const o=i.points[0],s=i.extendData;if(!o||!s||!Number.isFinite(o.timestamp)||typeof s.isBuy!="boolean")return[];const c=e.getDataList().find(T=>T.timestamp===o.timestamp);let f,d;if(c&&Number.isFinite(c.high)&&Number.isFinite(c.low)?(f=c.high,d=c.low):(f=typeof s.barHigh=="number"&&Number.isFinite(s.barHigh)?s.barHigh:void 0,d=typeof s.barLow=="number"&&Number.isFinite(s.barLow)?s.barLow:void 0),f===void 0||d===void 0)return[];const g=s.isBuy?j2:Q2,v=s.isBuy?"B":"S",y=n[0].x,b=e.convertToPixel({timestamp:o.timestamp,value:f}).y??n[0].y,C=e.convertToPixel({timestamp:o.timestamp,value:d}).y??n[0].y,L=Math.max(0,s.stackIndex??0),k=Math.abs(C-b),x=Number.isFinite(k)&&k<Ja?Math.max(0,Ja-k)*.65:0,$=J2+x,P=s.isBuy?C+$+L*Xa:b-$-L*Xa;return[{key:"his-order-dot",type:"circle",attrs:{x:y,y:P-.5,r:X2},styles:{color:g},ignoreEvent:!1},{key:"his-order-char",type:"text",attrs:{x:y,y:P,text:v,align:"center",baseline:"middle"},styles:e6,ignoreEvent:!0}]},onMouseEnter:()=>!1,onMouseLeave:()=>!1,onRemoved:()=>!1,onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onSelected:e=>(e.preventDefault&&e.preventDefault(),e.overlay.mode="normal",!1),onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1)});function Qt(e,n){switch(e){case"price_reach":return m("alert_type_price_reach",n);case"price_rise_to":return m("alert_type_price_rise_to",n);case"price_fall_to":return m("alert_type_price_fall_to",n);case"price_rise_pct_over":return m("alert_type_price_rise_pct_over",n);default:return m("alert_type_price_fall_pct_over",n)}}function S0(e,n){return m(e==="repeat"?"alert_frequency_repeat":"alert_frequency_once",n)}function dr(e,n){switch(e){case"5m":return m("alert_window_5m",n);case"1h":return m("alert_window_1h",n);case"4h":return m("alert_window_4h",n);case"24h":return m("alert_window_24h",n);default:return e??"--"}}function n6(e,n){if(e.type==="price_reach")return`${Qt(e.type,n)} ${e.price??"--"}`;if(e.type==="price_rise_to")return`${Qt(e.type,n)} ${e.price??"--"}`;if(e.type==="price_fall_to")return`${Qt(e.type,n)} ${e.price??"--"}`;const i=dr(e.window,n),o=`${e.percent??"--"}%`;return n==="zh-CN"?e.type==="price_rise_pct_over"?`价格${i}涨幅 ${o}`:`价格${i}跌幅 ${o}`:e.type==="price_rise_pct_over"?`Price ${i} increase ${o}`:`Price ${i} decrease ${o}`}function r6(e,n,i=2){const o=Number(e.price??0),s=Xn(Number.isFinite(o)?o:0,i);if(e.type==="price_reach")return`${Qt(e.type,n)} ${s}`;if(e.type==="price_rise_to")return`${Qt(e.type,n)} ${s}`;if(e.type==="price_fall_to")return`${Qt(e.type,n)} ${s}`;const l=dr(e.window,n),c=`${e.percent??0}%`;return n==="zh-CN"?e.type==="price_rise_pct_over"?`价格${l}涨幅 ${c}`:`价格${l}跌幅 ${c}`:e.type==="price_rise_pct_over"?`Price ${l} increase ${c}`:`Price ${l} decrease ${c}`}const Y1="klinecharts-pro-his-order-hover",m1="klinecharts-pro-alert-detail-open",i6=140,q1=new Map;function o6(e){const n=e.chart.getDom("candle_pane","main");return n?n.closest(".klinecharts-pro"):null}function a6(e){(e.sourceContainer??window).dispatchEvent(new CustomEvent(m1,{detail:e}))}function k0(e){const n=q1.get(e);n!=null&&(clearTimeout(n),q1.delete(e))}function s6(e,n){k0(n);const i=setTimeout(()=>{q1.delete(n);const s=e.getOverlays({id:n})[0];if(!s)return;const l=s.extendData;e.overrideOverlay({id:n,extendData:{...l,showInfo:!1}})},i6);q1.set(n,i)}function es(e){return e==="alert-triangle"||e==="alert-info-text"||e==="alert-info-close"}let G1;function l6(e){G1=e.onRemove}const c6=e=>({style:"dashed",size:1,color:e,dashedValue:[4,4]}),u6=()=>({name:"priceAlertLine",mode:"normal",totalStep:1,lock:!0,needDefaultPointFigure:!1,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({chart:e,coordinates:n,bounding:i,overlay:o})=>{var $,P,O;const s=($=o.points[0])==null?void 0:$.value,l=o.extendData,c=l==null?void 0:l.alert,f=e.getDataList().at(-1);if(s===void 0||!Number.isFinite(s)||!c||!f)return[];if(!_1(e,s))return[];const d=e.convertToPixel({timestamp:f.timestamp,value:s}).y??n[0].y,g=Ua(e,Ha,Wa),v=((P=e.getSymbol())==null?void 0:P.pricePrecision)??2,y=r6(c,((O=e.getLocale)==null?void 0:O.call(e))??"zh-CN",v),b=fe.utils.calcTextWidth(y),C=i.width,L=C-10,k=L-2,x=[{key:"alert-line",type:"line",attrs:{coordinates:[{x:0,y:d},{x:k,y:d}]},styles:c6(g),ignoreEvent:!0},{key:"alert-triangle",type:"polygon",attrs:{coordinates:[{x:L,y:d-6},{x:C,y:d},{x:L,y:d+6}]},styles:{style:"fill",color:g},ignoreEvent:!1}];if(l!=null&&l.showInfo){const T=Math.max(120,b+28),z=Math.max(8,L-T-10);x.push({key:"alert-info-text",type:"text",attrs:{x:z+8,y:d,text:y,align:"left",baseline:"middle"},styles:{style:"stroke_fill",size:12,family:"Arial, sans-serif",weight:"normal",color:"#fff",backgroundColor:"rgba(56, 56, 56, 0.92)",borderColor:"rgba(56, 56, 56, 0.92)",borderStyle:"solid",borderSize:1,borderDashedValue:[],borderRadius:3,paddingLeft:8,paddingRight:24,paddingTop:4,paddingBottom:4},ignoreEvent:!1},{key:"alert-info-close",type:"text",attrs:{x:z+T-0,y:d,text:"×",fontFamily:"Apple Color Emoji",align:"center",baseline:"middle"},styles:{style:"fill",size:18,family:"Arial, sans-serif",color:"#fff",backgroundColor:"transparent",borderColor:"transparent",borderStyle:"solid",borderSize:0,borderDashedValue:[],borderRadius:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},ignoreEvent:!1})}return x},onPressedMoveStart:()=>!1,onPressedMoving:()=>!1,onPressedMoveEnd:()=>!1,onMouseEnter:e=>{var o;const n=(o=e.figure)==null?void 0:o.key;if(!es(n))return!1;k0(e.overlay.id);const i=e.overlay.extendData??{};return e.overlay.extendData={...i,showInfo:!0},!1},onMouseLeave:e=>{var i;const n=(i=e.figure)==null?void 0:i.key;return es(n)&&s6(e.chart,e.overlay.id),!1},onRemoved:e=>(k0(e.overlay.id),!1),onSelected:e=>{var o;e.preventDefault&&e.preventDefault(),e.overlay.mode="normal";const n=e.overlay.extendData??{};return(((o=e.figure)==null?void 0:o.key)??"")==="alert-info-close"&&n.alert&&(G1==null||G1(n.alert)),!1},onRightClick:e=>(e.preventDefault&&e.preventDefault(),!1),onDoubleClick:e=>{var i;if(((i=e.figure)==null?void 0:i.key)!=="alert-info-text")return!1;e.preventDefault&&e.preventDefault();const n=e.overlay.extendData??{};return n.alert&&a6({alert:n.alert,sourceContainer:o6(e)}),!1}}),f6=[h2(),T2(),g2(),p2(),m2(),_2(),y2(),b2(),v2(),C2(),x2(),w2(),$2(),L2(),S2(),k2(),A2(),M2(),F2(),H2(),V2(),t6(),u6()];class d6{constructor(n){xn(this,"_apiKey");xn(this,"_prevSymbolMarket");xn(this,"_ws");this._apiKey=n}async searchSymbols(n){return await((await(await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${n??""}`)).json()).results||[]).map(s=>({ticker:s.ticker,name:s.name,shortName:s.ticker,market:s.market,exchange:s.primary_exchange,priceCurrency:s.currency_name,type:s.type,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAA66SURBVHic7Z17cFTVGcB/527AiKGgRA0ShGhKoQjFMb4qUMCMPIrWqdbHSEdlHDGgI9V2aq2d1hmKtVbRsSTGEcQRp4pStaZQlNYUwYLiSKU0SCMBDRCmoQSJGGF3T/84d2VZk+w9d899hf3NMBnl3ns+5vtyHt/5HoIehpQIaijDYjiSciRlwCCgBCgG+gNFQCGCAvUScaADaAfagFagBdiFoAlBI0m2UkWTEMgA/lmeIYIWIFdkLQNJMBbBJUjOA8agFOwF7cAmBO8hWUeMtWIWezwayxciZwByGb1pZTyCaUguA0YGLNIWBK8jWUExa8Q1HA5YHi0iYQByGTH2UYnkBmA6cHLQMnXBfqAOwXMMYLW4hkTQAmUj1AYgqzkLuAXBTUgGBi2PFoI9SJYAT4nZbA9anK4IpQHIhUzE4i4k04OWxQiCOpI8IubwZtCiZBIqA5A1TEdyH3Bh0LJ4xAYE80QVdUELkiIUBiCf4FIk85FcELQsviB4B8G94jb+GrwoASKfZBgJHkUyNUg5AkOwkhhzxa1sC06EAJALKUJwL3A30DsIGULEYeBhJPPFHNr9Htx3A5A1TECyGCjze+yQ04Rgpqii3s9BfTMAWUsfksxD8iO/xowkggVY3Cdmccif4XxAPskw4rwCjPBjvB5AAwVc6cfewPJ6AFnNzcTZSF75OowgzkZZzc1eD+SZAUiJkNX8FlgM9PVqnB5MX2CxrOa3Uno3U3vyYVlLPxIshR7iyQueOmLMELM4YPrDxg1A1jKQJKuQjDL97eMawWYsJpu+fjZqAPL3DMFiNVBu8rt5vqSRJJXidnaa+qAxA5CPU0aMvwFDTX0zT6fsIMEkcQdNJj5mxADs3/x68sr3ix0kmWBiJsjZAOyQrDXkp32/aSTG+Fz3BDkZgKylH0neym/4AkJtDMflcjpw7QeQEkGCpXnlB4hkFAmW5uIncO8IquFB8uf8MDDd1oUrXFmO7aJc7HbQPJ4wU8zmad2XtA3AvtjZSN69GzYOUkCF7gWSlgHIWvqQyF/shJgGYlToXCXr7QGSzCOv/DAzwtaRYxzPAHYkT+jCmvN0gmCi08giRwZgx/B9QD6MKyo0IRntJMbQ2RKgAjjzyo8OZbbOspJ1BrB3/ZvJR+9GjcMUMCrbqSD7DJDgUfLKjyK9bd11S7czgHyCS0my2pxMIaHvUCgshl5FUFQKQtWJ4FALHGmHz5rhizY43BaomEawqOwuA6mg25cl840L5DexQiithNMvhNMvglMr4IT+zt5t3QS762H332FXfTQNQumwy1zLLmcAO1HzNU+E8oNTK+AbN8KwGc4V3h3JODS9Av98GPauz/17fiK4vKuE1K4NoJr1RDFLd+BY+PYCOK3CuzH2rof3fg07Q5Pkm40NYjYXdfYXnRqAXMhEBH/zVibDFBbDRQ/AiFv8G3PbUlhTpfYNYUcyqbP6BJ2fAizu8lwgkwwcC9c3+Kt8UMvLtZuhZKy/47qhC51+ZQawy7J85LlApjhjAkx7Te3ogyIZhz9PhebQH5jOzixX09kM4POvUQ6cdTVc/kawygewCmDKy2omCjdf0e0xM4BdjeuTSBRk6jtUTb9BKz+djlZ4eRy0bQ1aks4R7GEAg9Orlx07A6hSbOFXPsCkp8OlfFAb0UnaQTn+IRnIPirT/1dBxgM3+CqQW0beptZ+NyTj0LIW9m6A//0L2puP/l1RKXytHAZ9RzmNYoX63z/9IrU53LbUnXxeo3S8KvWfXy4BdgXOFsJbhFFhFcAPP4E+JXrvJeOw+TH44NFjld4VfUrg3Htg5Cx9QzjUAn8YEVbP4X6KKUlVND26BLQynrArH9TGT1f5h1pg+fnw9o+dKT/1zrq58MeL4UCj3nh9StQsFU5OtnUNpBuAYFog4ugy5Lt6z3/RBq9OVH59N7RuUu93tOq9N3KWu/H8IE3XRw1AFV4OP2dO0Xt+4/2578o/a1YePx36DoXiMbmN6xVpurbAzu8Lvup2dgqL1R+nHGmHLU+YGfujl/RnkUGV2Z8JhpG2zu0ZIEHoPRgA9NPMP21eDYkOc+M3LNJ7/rTzzI1tGlvnygAElwQqjFPc7MZNouvq1TVYP7F1rgxAddrIkw3dvYTOcuU3ts4L7B47Id2tZHBwh97zXvwGNr4AfU539uyhvebHN8cYKREiUrd/sUK49XPnzyfj8FyZ87P/8cfZFhbDg5bCMYkOdSRzilUAFz/knTxRx2K4hYxYaZcdmmFY5ddBxa88ESXySMotu69edNi+XP+d838Jlz4bvtvDoJGUWaimitFhz1p3a/qwGXBdg/qZJ8UgC9VRMzokOuDdX7h7t6hUzQTX2fGDbq57exYlQlbzb6KY83/1uyr2PxeOtKtY/w+fUQkgybgJyaJEg5DV7IaIRAGlc8o58P1/mFvXj7SrOP+df4aP/6J/+xdN9ghZzadEtd7PmVNg6mvquGeSZFzNCB8th8bnwxrYYYKDQlZzGOgVtCSuGXELjK8xbwQpEh3KCLbURi8lLDtHhKwhiYcNCXzhzClw2YveH/N218O796ufPQGB7BkGANB/OEx9Wf30mubV8NYd4Q3/dopAWkh6xta3bSssO1clbZqMAeiM0kq45n3lYfRq6fEDSTzam8Cu6FcOYx/XDx9zw+56eON687EH/nDQAv+7VXrOgUaVq/fyOHXO9/J8f8YE+N6b4Q7+6Jr26DqCdOhXDufcrgpGmCgW0RmHWuCVcfoh5MHSIGQ1a4BxQUviC7FCtSycdRUMmW7eGNq2wkvnR6NegOItIatZBvwgaEl8xypQ03f5tcooTio1892ddbDicjPf8p4XC4BdQUsRCMm4Os6lAj1PrYCzr1bLhG7mUTpDpsM3boIPl5iQ0mt2WQgz3aciz383wvp74NnBsOoH7jOJAC5ZAL092muYRNBkIYjUrsVzknHY/hK8eK77490J/WH0XPOymUbQaJEk4u4sD2l8Hl4YBZ+syv5sJqPmhN9JlGSrRRVN9ERfgCk6WmHlldCyTu+9wmL3NQz8oZ0qmiwhkEAOC95xQKIDVl2tf7wbPNkbecywSQikmqME7yFDnB/Yq0jVBXDK5y0qqMMkh1rgg8fgvJ87fyes2cGgdE6qRIxkHXBnkPJ0i27tnb3rzRsAKLeyjgGE2T2sdG7nBsZYG6gw2dD15Zty6mTy3416z+fiT/AaW+cWgN1/dkugAnXHZ816629RqXeJmTqZSeGNOt6S6jmcXiLm9cDEcYLuJcsQj5qanhji32qnpOk6vUTMikCEcYru9DvMg4p3/cr1zvY6s4WfpOn6qAEUswbYH4Q8jtB1xpRWmp8Fvq6ZVfTpDrPjm2G/rWsgzQDsunHhLYD/8V9UxS8dxj1ubiN2UimMuVvvnX2hdK/UpWoEQmapWMFzvovjlCPt+jV6+g5V0Tp9h+Y2dp8SuMJFUeqPXbiQvSZDx8cawABWI9TuMJS8/xv9jJ3+w1VR6dFz3fnmB09RGUi60cZftIWvfLwqFn2MUMcYgLiGBJIlvgqlQ0crvP0T/fd6Fakr2hv3qJ+Dp3R/TDzlHPjmbXDVuzB9pbsZpGGR99HJukiWpFcKh6g2jJhWp18xtDMOtSglpa58+5QcbSeXC+3N6hYxfCllX2kY0XnPoBpeQ+LRQdoAJ5Wq7OCwetpWXB6+hlKCOlHFV2LVOu8ZlOQRzwXKhc+aVf3eMMbiNywKn/KhS51Gu21c/+Fqlx+WmWD7cnjjujDWGeiybVzXvYMF8zwTxxRtW1Usfi7xe6b48JmwKr9bXXbfO7iGDUguMC+RYawCuGAefOtu/8OwjrSrjOF//s7fcZ0ieEdUdT2Td9893GEP+sBJxlVE7/Mj1J29XzS9qnb7YVU+ZNVh1rRwWcMKJFPNSeQDp5yjHD/l15qvGZDoUEbWsCh8jp5MBCtFVfeNQLIbwJMMI85moLcxwfwilQo2eLJq5uQ2ROuLNnUbuX05/CcyJWMOU8AocSvbunvIUWEIWc184GdGxAqSXkWqzWvxGCgcoJw+J2Y4flI3eAd3qq5i+zZFLeEzxQNidvYl3JkBLKQIwQcQsaqixy9NSEaLOdnD/bvfBNqIObQjmJm7XHl8QTDTifLBoQEAiCrqESxwL1UeXxAsEFXUO33csQHYT98HNGiKlMc/GmwdOUa7Oph9KthIT6srFH0OUkBFtl1/JnozAGAPEN4kkuOXO3WVDy4MAEDM5mkg34ojPDxk60Qb1wUi7WZTf4IQxw0cH9RRxRV2kq82rmYAACGQxJiBYLPbb+TJEcFmYsxwq3zIwQAAxCwOYDEZ8lVGAqARi8liFgdy+UhOBgB2XmGSSmBHrt/K45gdJKlM5fflQs4GACBuZycJJpE3Aj/YQYJJ4nZ2mviYEQMAEHfQRJIJ5JcDL2kkyQRxh7nKbsbLxMtaBpJkFZJRpr99XCPYbK/5RhN3jM0AKcQs9mAxjjDnGUaPOizGmVY+eDADpLD9BA8CLlJ58qTxEFX8NJejXnd43ilEVnMz8Bj5uwNdDgJ3uvXwOcWXVjH2BdIr9PSy9OZooIAr3fj2dTG+B+gMcSvbiFGRjydwgGABMf1bPffD+YysYQKSxeTDyzJpQjBTJ5jDBL7MAOmIKuqRjAYegKOVKo5jDgMPIBntt/IhgBkgHfkkw0jwaOTyDkwhWEmMuX5N952LEALkE1yKZH4k0tBMIHgHwb3iNv4avCghQtYwHcl9hD0r2T0bEMwTVeFxkoXKAFLIhUzE4q5QF6nQQVBHkkfEHN4MWpRMQmkAKexyNbcguAkZsRb3gj12vaWnMsuyhIlQG0AKuYwY+6hEcgMqBO3koGXqgv1AHYLnGMDqzIJMYSQSBpCOXEZvWhmPYBqSy4CRAYu0BcHrSFZQzJr0IoxRIHIGkImsZSAJxiK4BMl5wBjAqz7y7cAmu8HGOmKs9eKGzk8ibwCZ2LeQZVgMR1KOpAwYBJQAxUB/lIEUIr5smBEHOlAKbgNagRZgF4ImBI0k2UoVTV7dygXF/wF+fTz59Jc5ygAAAABJRU5ErkJggg=="}))}async getHistoryKLineData(n,i,o,s){return await((await(await fetch(`https://api.polygon.io/v2/aggs/ticker/${n.ticker}/range/${i.span}/${i.type}/${o}/${s}?apiKey=${this._apiKey}`)).json()).results||[]).map(f=>({timestamp:f.t,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw}))}subscribe(n,i,o){var s,l;this._prevSymbolMarket!==n.market?((s=this._ws)==null||s.close(),this._ws=new WebSocket(`wss://delayed.polygon.io/${n.market}`),this._ws.onopen=()=>{var c;(c=this._ws)==null||c.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=c=>{var d;const f=JSON.parse(c.data);f[0].ev==="status"?f[0].status==="auth_success"&&((d=this._ws)==null||d.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`}))):"sym"in f&&o({timestamp:f.s,open:f.o,high:f.h,low:f.l,close:f.c,volume:f.v,turnover:f.vw})}):(l=this._ws)==null||l.send(JSON.stringify({action:"subscribe",params:`T.${n.ticker}`})),this._prevSymbolMarket=n.market}unsubscribe(n,i){}}const h6=!1,g6=(e,n)=>e===n,A0=Symbol("solid-proxy"),p6=typeof Proxy=="function",_6=Symbol("solid-track"),V1={equals:g6};let ts=as;const On=1,j1=2,ns={owned:null,cleanups:null,context:null,owner:null},M0={};var ze=null;let T0=null,m6=null,Fe=null,vt=null,En=null,Q1=0;function X1(e,n){const i=Fe,o=ze,s=e.length===0,l=n===void 0?o:n,c=s?ns:{owned:null,cleanups:null,context:l?l.context:null,owner:l},f=s?e:()=>e(()=>fn(()=>y1(c)));ze=c,Fe=null;try{return Dn(f,!0)}finally{Fe=i,ze=o}}function Q(e,n){n=n?Object.assign({},V1,n):V1;const i={value:e,observers:null,observerSlots:null,comparator:n.equals||void 0},o=s=>(typeof s=="function"&&(s=s(i.value)),os(i,s));return[is.bind(i),o]}function rs(e,n,i){const o=J1(e,n,!0,On);kr(o)}function Te(e,n,i){const o=J1(e,n,!1,On);kr(o)}function Mt(e,n,i){ts=L6;const o=J1(e,n,!1,On);(!i||!i.render)&&(o.user=!0),En?En.push(o):kr(o)}function Tt(e,n,i){i=i?Object.assign({},V1,i):V1;const o=J1(e,n,!0,0);return o.observers=null,o.observerSlots=null,o.comparator=i.equals||void 0,kr(o),is.bind(o)}function y6(e){return e&&typeof e=="object"&&"then"in e}function b6(e,n,i){let o,s,l;typeof n=="function"?(o=e,s=n,l=i||{}):(o=!0,s=e,l=n||{});let c=null,f=M0,d=!1,g="initialValue"in l,v=typeof o=="function"&&Tt(o);const y=new Set,[b,C]=(l.storage||Q)(l.initialValue),[L,k]=Q(void 0),[x,$]=Q(void 0,{equals:!1}),[P,O]=Q(g?"ready":"unresolved");function T(D,V,j,te){return c===D&&(c=null,te!==void 0&&(g=!0),(D===f||V===f)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(te,{value:V})),f=M0,z(V,j)),V}function z(D,V){Dn(()=>{V===void 0&&C(()=>D),O(V!==void 0?"errored":g?"ready":"unresolved"),k(V);for(const j of y.keys())j.decrement();y.clear()},!1)}function H(){const D=x6,V=b(),j=L();if(j!==void 0&&!c)throw j;return Fe&&!Fe.user&&D&&rs(()=>{x(),c&&(D.resolved||y.has(D)||(D.increment(),y.add(D)))}),V}function U(D=!0){if(D!==!1&&d)return;d=!1;const V=v?v():o;if(V==null||V===!1){T(c,fn(b));return}let j;const te=f!==M0?f:fn(()=>{try{return s(V,{value:b(),refetching:D})}catch(ne){j=ne}});if(j!==void 0){T(c,void 0,ni(j),V);return}else if(!y6(te))return T(c,te,void 0,V),te;return c=te,"v"in te?(te.s===1?T(c,te.v,void 0,V):T(c,void 0,ni(te.v),V),te):(d=!0,queueMicrotask(()=>d=!1),Dn(()=>{O(g?"refreshing":"pending"),$()},!1),te.then(ne=>T(te,ne,void 0,V),ne=>T(te,void 0,ni(ne),V)))}Object.defineProperties(H,{state:{get:()=>P()},error:{get:()=>L()},loading:{get(){const D=P();return D==="pending"||D==="refreshing"}},latest:{get(){if(!g)return H();const D=L();if(D&&!c)throw D;return b()}}});let I=ze;return v?rs(()=>(I=ze,U(!1))):U(!1),[H,{refetch:D=>v6(I,()=>U(D)),mutate:C}]}function fn(e){if(Fe===null)return e();const n=Fe;Fe=null;try{return e()}finally{Fe=n}}function P0(e){Mt(()=>fn(e))}function Sr(e){return ze===null||(ze.cleanups===null?ze.cleanups=[e]:ze.cleanups.push(e)),e}function v6(e,n){const i=ze,o=Fe;ze=e,Fe=null;try{return Dn(n,!0)}catch(s){I0(s)}finally{ze=i,Fe=o}}function C6(e){const n=Fe,i=ze;return Promise.resolve().then(()=>{Fe=n,ze=i;let o;return Dn(e,!1),Fe=ze=null,o?o.done:void 0})}let x6;function is(){if(this.sources&&this.state)if(this.state===On)kr(this);else{const e=vt;vt=null,Dn(()=>ti(this),!1),vt=e}if(Fe){const e=this.observers?this.observers.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(e)):(Fe.sources=[this],Fe.sourceSlots=[e]),this.observers?(this.observers.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}return this.value}function os(e,n,i){let o=e.value;return(!e.comparator||!e.comparator(o,n))&&(e.value=n,e.observers&&e.observers.length&&Dn(()=>{for(let s=0;s<e.observers.length;s+=1){const l=e.observers[s],c=T0&&T0.running;c&&T0.disposed.has(l),(c?!l.tState:!l.state)&&(l.pure?vt.push(l):En.push(l),l.observers&&ss(l)),c||(l.state=On)}if(vt.length>1e6)throw vt=[],new Error},!1)),n}function kr(e){if(!e.fn)return;y1(e);const n=Q1;w6(e,e.value,n)}function w6(e,n,i){let o;const s=ze,l=Fe;Fe=ze=e;try{o=e.fn(n)}catch(c){return e.pure&&(e.state=On,e.owned&&e.owned.forEach(y1),e.owned=null),e.updatedAt=i+1,I0(c)}finally{Fe=l,ze=s}(!e.updatedAt||e.updatedAt<=i)&&(e.updatedAt!=null&&"observers"in e?os(e,o):e.value=o,e.updatedAt=i)}function J1(e,n,i,o=On,s){const l={fn:e,state:o,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:n,owner:ze,context:ze?ze.context:null,pure:i};return ze===null||ze!==ns&&(ze.owned?ze.owned.push(l):ze.owned=[l]),l}function ei(e){if(e.state===0)return;if(e.state===j1)return ti(e);if(e.suspense&&fn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Q1);)e.state&&n.push(e);for(let i=n.length-1;i>=0;i--)if(e=n[i],e.state===On)kr(e);else if(e.state===j1){const o=vt;vt=null,Dn(()=>ti(e,n[0]),!1),vt=o}}function Dn(e,n){if(vt)return e();let i=!1;n||(vt=[]),En?i=!0:En=[],Q1++;try{const o=e();return $6(i),o}catch(o){i||(En=null),vt=null,I0(o)}}function $6(e){if(vt&&(as(vt),vt=null),e)return;const n=En;En=null,n.length&&Dn(()=>ts(n),!1)}function as(e){for(let n=0;n<e.length;n++)ei(e[n])}function L6(e){let n,i=0;for(n=0;n<e.length;n++){const o=e[n];o.user?e[i++]=o:ei(o)}for(n=0;n<i;n++)ei(e[n])}function ti(e,n){e.state=0;for(let i=0;i<e.sources.length;i+=1){const o=e.sources[i];if(o.sources){const s=o.state;s===On?o!==n&&(!o.updatedAt||o.updatedAt<Q1)&&ei(o):s===j1&&ti(o,n)}}}function ss(e){for(let n=0;n<e.observers.length;n+=1){const i=e.observers[n];i.state||(i.state=j1,i.pure?vt.push(i):En.push(i),i.observers&&ss(i))}}function y1(e){let n;if(e.sources)for(;e.sources.length;){const i=e.sources.pop(),o=e.sourceSlots.pop(),s=i.observers;if(s&&s.length){const l=s.pop(),c=i.observerSlots.pop();o<s.length&&(l.sourceSlots[c]=o,s[o]=l,i.observerSlots[o]=c)}}if(e.tOwned){for(n=e.tOwned.length-1;n>=0;n--)y1(e.tOwned[n]);delete e.tOwned}if(e.owned){for(n=e.owned.length-1;n>=0;n--)y1(e.owned[n]);e.owned=null}if(e.cleanups){for(n=e.cleanups.length-1;n>=0;n--)e.cleanups[n]();e.cleanups=null}e.state=0}function ni(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function I0(e,n=ze){throw ni(e)}const S6=Symbol("fallback");function ls(e){for(let n=0;n<e.length;n++)e[n]()}function k6(e,n,i={}){let o=[],s=[],l=[],c=0,f=n.length>1?[]:null;return Sr(()=>ls(l)),()=>{let d=e()||[],g=d.length,v,y;return d[_6],fn(()=>{let C,L,k,x,$,P,O,T,z;if(g===0)c!==0&&(ls(l),l=[],o=[],s=[],c=0,f&&(f=[])),i.fallback&&(o=[S6],s[0]=X1(H=>(l[0]=H,i.fallback())),c=1);else if(c===0){for(s=new Array(g),y=0;y<g;y++)o[y]=d[y],s[y]=X1(b);c=g}else{for(k=new Array(g),x=new Array(g),f&&($=new Array(g)),P=0,O=Math.min(c,g);P<O&&o[P]===d[P];P++);for(O=c-1,T=g-1;O>=P&&T>=P&&o[O]===d[T];O--,T--)k[T]=s[O],x[T]=l[O],f&&($[T]=f[O]);for(C=new Map,L=new Array(T+1),y=T;y>=P;y--)z=d[y],v=C.get(z),L[y]=v===void 0?-1:v,C.set(z,y);for(v=P;v<=O;v++)z=o[v],y=C.get(z),y!==void 0&&y!==-1?(k[y]=s[v],x[y]=l[v],f&&($[y]=f[v]),y=L[y],C.set(z,y)):l[v]();for(y=P;y<g;y++)y in k?(s[y]=k[y],l[y]=x[y],f&&(f[y]=$[y],f[y](y))):s[y]=X1(b);s=s.slice(0,c=g),o=d.slice(0)}return s});function b(C){if(l[y]=C,f){const[L,k]=Q(y);return f[y]=k,n(d[y],L)}return n(d[y])}}}function q(e,n){return fn(()=>e(n||{}))}function ri(){return!0}const A6={get(e,n,i){return n===A0?i:e.get(n)},has(e,n){return n===A0?!0:e.has(n)},set:ri,deleteProperty:ri,getOwnPropertyDescriptor(e,n){return{configurable:!0,enumerable:!0,get(){return e.get(n)},set:ri,deleteProperty:ri}},ownKeys(e){return e.keys()}};function O0(e){return(e=typeof e=="function"?e():e)?e:{}}function M6(){for(let e=0,n=this.length;e<n;++e){const i=this[e]();if(i!==void 0)return i}}function cs(...e){let n=!1;for(let c=0;c<e.length;c++){const f=e[c];n=n||!!f&&A0 in f,e[c]=typeof f=="function"?(n=!0,Tt(f)):f}if(p6&&n)return new Proxy({get(c){for(let f=e.length-1;f>=0;f--){const d=O0(e[f])[c];if(d!==void 0)return d}},has(c){for(let f=e.length-1;f>=0;f--)if(c in O0(e[f]))return!0;return!1},keys(){const c=[];for(let f=0;f<e.length;f++)c.push(...Object.keys(O0(e[f])));return[...new Set(c)]}},A6);const i={},o=Object.create(null);for(let c=e.length-1;c>=0;c--){const f=e[c];if(!f)continue;const d=Object.getOwnPropertyNames(f);for(let g=d.length-1;g>=0;g--){const v=d[g];if(v==="__proto__"||v==="constructor")continue;const y=Object.getOwnPropertyDescriptor(f,v);if(!o[v])o[v]=y.get?{enumerable:!0,configurable:!0,get:M6.bind(i[v]=[y.get.bind(f)])}:y.value!==void 0?y:void 0;else{const b=i[v];b&&(y.get?b.push(y.get.bind(f)):y.value!==void 0&&b.push(()=>y.value))}}}const s={},l=Object.keys(o);for(let c=l.length-1;c>=0;c--){const f=l[c],d=o[f];d&&d.get?Object.defineProperty(s,f,d):s[f]=d?d.value:void 0}return s}const T6=e=>`Stale read from <${e}>.`;function us(e){const n="fallback"in e&&{fallback:()=>e.fallback};return Tt(k6(()=>e.each,e.children,n||void 0))}function Oe(e){const n=e.keyed,i=Tt(()=>e.when,void 0,void 0),o=n?i:Tt(i,void 0,{equals:(s,l)=>!s==!l});return Tt(()=>{const s=o();if(s){const l=e.children;return typeof l=="function"&&l.length>0?fn(()=>l(n?s:()=>{if(!fn(o))throw T6("Show");return i()})):l}return e.fallback},void 0,void 0)}const Ze=e=>Tt(()=>e());function P6(e,n,i){let o=i.length,s=n.length,l=o,c=0,f=0,d=n[s-1].nextSibling,g=null;for(;c<s||f<l;){if(n[c]===i[f]){c++,f++;continue}for(;n[s-1]===i[l-1];)s--,l--;if(s===c){const v=l<o?f?i[f-1].nextSibling:i[l-f]:d;for(;f<l;)e.insertBefore(i[f++],v)}else if(l===f)for(;c<s;)(!g||!g.has(n[c]))&&n[c].remove(),c++;else if(n[c]===i[l-1]&&i[f]===n[s-1]){const v=n[--s].nextSibling;e.insertBefore(i[f++],n[c++].nextSibling),e.insertBefore(i[--l],v),n[s]=i[l]}else{if(!g){g=new Map;let y=f;for(;y<l;)g.set(i[y],y++)}const v=g.get(n[c]);if(v!=null)if(f<v&&v<l){let y=c,b=1,C;for(;++y<s&&y<l&&!((C=g.get(n[y]))==null||C!==v+b);)b++;if(b>v-f){const L=n[c];for(;f<v;)e.insertBefore(i[f++],L)}else e.replaceChild(i[f++],n[c++])}else c++;else n[c++].remove()}}}const fs="_$DX_DELEGATE";function I6(e,n,i,o={}){let s;return X1(l=>{s=l,n===document?e():R(n,e(),n.firstChild?null:void 0,i)},o.owner),()=>{s(),n.textContent=""}}function Y(e,n,i,o){let s;const l=()=>{const f=o?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return f.innerHTML=e,i?f.content.firstChild.firstChild:o?f.firstChild:f.content.firstChild},c=n?()=>fn(()=>document.importNode(s||(s=l()),!0)):()=>(s||(s=l())).cloneNode(!0);return c.cloneNode=c,c}function Dt(e,n=window.document){const i=n[fs]||(n[fs]=new Set);for(let o=0,s=e.length;o<s;o++){const l=e[o];i.has(l)||(i.add(l),n.addEventListener(l,O6))}}function Je(e,n,i){i==null?e.removeAttribute(n):e.setAttribute(n,i)}function Ht(e,n){n==null?e.removeAttribute("class"):e.className=n}function wn(e,n,i,o){if(o)Array.isArray(i)?(e[`$$${n}`]=i[0],e[`$$${n}Data`]=i[1]):e[`$$${n}`]=i;else if(Array.isArray(i)){const s=i[0];e.addEventListener(n,i[0]=l=>s.call(e,i[1],l))}else e.addEventListener(n,i,typeof i!="function"&&i)}function Ve(e,n,i){if(!n)return i?Je(e,"style"):n;const o=e.style;if(typeof n=="string")return o.cssText=n;typeof i=="string"&&(o.cssText=i=void 0),i||(i={}),n||(n={});let s,l;for(l in i)n[l]==null&&o.removeProperty(l),delete i[l];for(l in n)s=n[l],s!==i[l]&&(o.setProperty(l,s),i[l]=s);return i}function Ar(e,n,i){i!=null?e.style.setProperty(n,i):e.style.removeProperty(n)}function ii(e,n,i){return fn(()=>e(n,i))}function R(e,n,i,o){if(i!==void 0&&!o&&(o=[]),typeof n!="function")return oi(e,n,o,i);Te(s=>oi(e,n(),s,i),o)}function O6(e){let n=e.target;const i=`$$${e.type}`,o=e.target,s=e.currentTarget,l=d=>Object.defineProperty(e,"target",{configurable:!0,value:d}),c=()=>{const d=n[i];if(d&&!n.disabled){const g=n[`${i}Data`];if(g!==void 0?d.call(n,g,e):d.call(n,e),e.cancelBubble)return}return n.host&&typeof n.host!="string"&&!n.host._$host&&n.contains(e.target)&&l(n.host),!0},f=()=>{for(;c()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),e.composedPath){const d=e.composedPath();l(d[0]);for(let g=0;g<d.length-2&&(n=d[g],!!c());g++){if(n._$host){n=n._$host,f();break}if(n.parentNode===s)break}}else f();l(o)}function oi(e,n,i,o,s){for(;typeof i=="function";)i=i();if(n===i)return i;const l=typeof n,c=o!==void 0;if(e=c&&i[0]&&i[0].parentNode||e,l==="string"||l==="number"){if(l==="number"&&(n=n.toString(),n===i))return i;if(c){let f=i[0];f&&f.nodeType===3?f.data!==n&&(f.data=n):f=document.createTextNode(n),i=Mr(e,i,o,f)}else i!==""&&typeof i=="string"?i=e.firstChild.data=n:i=e.textContent=n}else if(n==null||l==="boolean")i=Mr(e,i,o);else{if(l==="function")return Te(()=>{let f=n();for(;typeof f=="function";)f=f();i=oi(e,f,i,o)}),()=>i;if(Array.isArray(n)){const f=[],d=i&&Array.isArray(i);if(E0(f,n,i,s))return Te(()=>i=oi(e,f,i,o,!0)),()=>i;if(f.length===0){if(i=Mr(e,i,o),c)return i}else d?i.length===0?ds(e,f,o):P6(e,i,f):(i&&Mr(e),ds(e,f));i=f}else if(n.nodeType){if(Array.isArray(i)){if(c)return i=Mr(e,i,o,n);Mr(e,i,null,n)}else i==null||i===""||!e.firstChild?e.appendChild(n):e.replaceChild(n,e.firstChild);i=n}}return i}function E0(e,n,i,o){let s=!1;for(let l=0,c=n.length;l<c;l++){let f=n[l],d=i&&i[e.length],g;if(!(f==null||f===!0||f===!1))if((g=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))s=E0(e,f,d)||s;else if(g==="function")if(o){for(;typeof f=="function";)f=f();s=E0(e,Array.isArray(f)?f:[f],Array.isArray(d)?d:[d])||s}else e.push(f),s=!0;else{const v=String(f);d&&d.nodeType===3&&d.data===v?e.push(d):e.push(document.createTextNode(v))}}return s}function ds(e,n,i=null){for(let o=0,s=n.length;o<s;o++)e.insertBefore(n[o],i)}function Mr(e,n,i,o){if(i===void 0)return e.textContent="";const s=o||document.createTextNode("");if(n.length){let l=!1;for(let c=n.length-1;c>=0;c--){const f=n[c];if(s!==f){const d=f.parentNode===e;!l&&!c?d?e.replaceChild(s,f):e.insertBefore(s,i):d&&f.remove()}else l=!0}}else e.insertBefore(s,i);return[s]}function E6(){this.__data__=[],this.size=0}var D6=E6;function R6(e,n){return e===n||e!==e&&n!==n}var hs=R6,B6=hs;function F6(e,n){for(var i=e.length;i--;)if(B6(e[i][0],n))return i;return-1}var ai=F6,z6=ai,N6=Array.prototype,K6=N6.splice;function H6(e){var n=this.__data__,i=z6(n,e);if(i<0)return!1;var o=n.length-1;return i==o?n.pop():K6.call(n,i,1),--this.size,!0}var W6=H6,U6=ai;function Z6(e){var n=this.__data__,i=U6(n,e);return i<0?void 0:n[i][1]}var Y6=Z6,q6=ai;function G6(e){return q6(this.__data__,e)>-1}var V6=G6,j6=ai;function Q6(e,n){var i=this.__data__,o=j6(i,e);return o<0?(++this.size,i.push([e,n])):i[o][1]=n,this}var X6=Q6,J6=D6,e3=W6,t3=Y6,n3=V6,r3=X6;function Tr(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Tr.prototype.clear=J6,Tr.prototype.delete=e3,Tr.prototype.get=t3,Tr.prototype.has=n3,Tr.prototype.set=r3;var si=Tr,i3=si;function o3(){this.__data__=new i3,this.size=0}var a3=o3;function s3(e){var n=this.__data__,i=n.delete(e);return this.size=n.size,i}var l3=s3;function c3(e){return this.__data__.get(e)}var u3=c3;function f3(e){return this.__data__.has(e)}var d3=f3,h3=typeof In=="object"&&In&&In.Object===Object&&In,gs=h3,g3=gs,p3=typeof self=="object"&&self&&self.Object===Object&&self,_3=g3||p3||Function("return this")(),$n=_3,m3=$n,y3=m3.Symbol,li=y3,ps=li,_s=Object.prototype,b3=_s.hasOwnProperty,v3=_s.toString,b1=ps?ps.toStringTag:void 0;function C3(e){var n=b3.call(e,b1),i=e[b1];try{e[b1]=void 0;var o=!0}catch{}var s=v3.call(e);return o&&(n?e[b1]=i:delete e[b1]),s}var x3=C3,w3=Object.prototype,$3=w3.toString;function L3(e){return $3.call(e)}var S3=L3,ms=li,k3=x3,A3=S3,M3="[object Null]",T3="[object Undefined]",ys=ms?ms.toStringTag:void 0;function P3(e){return e==null?e===void 0?T3:M3:ys&&ys in Object(e)?k3(e):A3(e)}var v1=P3;function I3(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Pr=I3,O3=v1,E3=Pr,D3="[object AsyncFunction]",R3="[object Function]",B3="[object GeneratorFunction]",F3="[object Proxy]";function z3(e){if(!E3(e))return!1;var n=O3(e);return n==R3||n==B3||n==D3||n==F3}var bs=z3,N3=$n,K3=N3["__core-js_shared__"],H3=K3,D0=H3,vs=function(){var e=/[^.]+$/.exec(D0&&D0.keys&&D0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function W3(e){return!!vs&&vs in e}var U3=W3,Z3=Function.prototype,Y3=Z3.toString;function q3(e){if(e!=null){try{return Y3.call(e)}catch{}try{return e+""}catch{}}return""}var Cs=q3,G3=bs,V3=U3,j3=Pr,Q3=Cs,X3=/[\\^$.*+?()[\]{}|]/g,J3=/^\[object .+?Constructor\]$/,e8=Function.prototype,t8=Object.prototype,n8=e8.toString,r8=t8.hasOwnProperty,i8=RegExp("^"+n8.call(r8).replace(X3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o8(e){if(!j3(e)||V3(e))return!1;var n=G3(e)?i8:J3;return n.test(Q3(e))}var a8=o8;function s8(e,n){return e==null?void 0:e[n]}var l8=s8,c8=a8,u8=l8;function f8(e,n){var i=u8(e,n);return c8(i)?i:void 0}var hr=f8,d8=hr,h8=$n,g8=d8(h8,"Map"),R0=g8,p8=hr,_8=p8(Object,"create"),ci=_8,xs=ci;function m8(){this.__data__=xs?xs(null):{},this.size=0}var y8=m8;function b8(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var v8=b8,C8=ci,x8="__lodash_hash_undefined__",w8=Object.prototype,$8=w8.hasOwnProperty;function L8(e){var n=this.__data__;if(C8){var i=n[e];return i===x8?void 0:i}return $8.call(n,e)?n[e]:void 0}var S8=L8,k8=ci,A8=Object.prototype,M8=A8.hasOwnProperty;function T8(e){var n=this.__data__;return k8?n[e]!==void 0:M8.call(n,e)}var P8=T8,I8=ci,O8="__lodash_hash_undefined__";function E8(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=I8&&n===void 0?O8:n,this}var D8=E8,R8=y8,B8=v8,F8=S8,z8=P8,N8=D8;function Ir(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Ir.prototype.clear=R8,Ir.prototype.delete=B8,Ir.prototype.get=F8,Ir.prototype.has=z8,Ir.prototype.set=N8;var K8=Ir,ws=K8,H8=si,W8=R0;function U8(){this.size=0,this.__data__={hash:new ws,map:new(W8||H8),string:new ws}}var Z8=U8;function Y8(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var q8=Y8,G8=q8;function V8(e,n){var i=e.__data__;return G8(n)?i[typeof n=="string"?"string":"hash"]:i.map}var ui=V8,j8=ui;function Q8(e){var n=j8(this,e).delete(e);return this.size-=n?1:0,n}var X8=Q8,J8=ui;function e7(e){return J8(this,e).get(e)}var t7=e7,n7=ui;function r7(e){return n7(this,e).has(e)}var i7=r7,o7=ui;function a7(e,n){var i=o7(this,e),o=i.size;return i.set(e,n),this.size+=i.size==o?0:1,this}var s7=a7,l7=Z8,c7=X8,u7=t7,f7=i7,d7=s7;function Or(e){var n=-1,i=e==null?0:e.length;for(this.clear();++n<i;){var o=e[n];this.set(o[0],o[1])}}Or.prototype.clear=l7,Or.prototype.delete=c7,Or.prototype.get=u7,Or.prototype.has=f7,Or.prototype.set=d7;var $s=Or,h7=si,g7=R0,p7=$s,_7=200;function m7(e,n){var i=this.__data__;if(i instanceof h7){var o=i.__data__;if(!g7||o.length<_7-1)return o.push([e,n]),this.size=++i.size,this;i=this.__data__=new p7(o)}return i.set(e,n),this.size=i.size,this}var y7=m7,b7=si,v7=a3,C7=l3,x7=u3,w7=d3,$7=y7;function Er(e){var n=this.__data__=new b7(e);this.size=n.size}Er.prototype.clear=v7,Er.prototype.delete=C7,Er.prototype.get=x7,Er.prototype.has=w7,Er.prototype.set=$7;var L7=Er;function S7(e,n){for(var i=-1,o=e==null?0:e.length;++i<o&&n(e[i],i,e)!==!1;);return e}var k7=S7,A7=hr,M7=function(){try{var e=A7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),T7=M7,Ls=T7;function P7(e,n,i){n=="__proto__"&&Ls?Ls(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}var Ss=P7,I7=Ss,O7=hs,E7=Object.prototype,D7=E7.hasOwnProperty;function R7(e,n,i){var o=e[n];(!(D7.call(e,n)&&O7(o,i))||i===void 0&&!(n in e))&&I7(e,n,i)}var B0=R7,B7=B0,F7=Ss;function z7(e,n,i,o){var s=!i;i||(i={});for(var l=-1,c=n.length;++l<c;){var f=n[l],d=o?o(i[f],e[f],f,i,e):void 0;d===void 0&&(d=e[f]),s?F7(i,f,d):B7(i,f,d)}return i}var fi=z7;function N7(e,n){for(var i=-1,o=Array(e);++i<e;)o[i]=n(i);return o}var K7=N7;function H7(e){return e!=null&&typeof e=="object"}var Dr=H7,W7=v1,U7=Dr,Z7="[object Arguments]";function Y7(e){return U7(e)&&W7(e)==Z7}var q7=Y7,ks=q7,G7=Dr,As=Object.prototype,V7=As.hasOwnProperty,j7=As.propertyIsEnumerable,Q7=ks(function(){return arguments}())?ks:function(e){return G7(e)&&V7.call(e,"callee")&&!j7.call(e,"callee")},X7=Q7,J7=Array.isArray,Rr=J7,di={exports:{}};function eu(){return!1}var tu=eu;di.exports,function(e,n){var i=$n,o=tu,s=n&&!n.nodeType&&n,l=s&&!0&&e&&!e.nodeType&&e,c=l&&l.exports===s,f=c?i.Buffer:void 0,d=f?f.isBuffer:void 0,g=d||o;e.exports=g}(di,di.exports);var Ms=di.exports,nu=9007199254740991,ru=/^(?:0|[1-9]\d*)$/;function iu(e,n){var i=typeof e;return n=n??nu,!!n&&(i=="number"||i!="symbol"&&ru.test(e))&&e>-1&&e%1==0&&e<n}var Ts=iu,ou=9007199254740991;function au(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ou}var Ps=au,su=v1,lu=Ps,cu=Dr,uu="[object Arguments]",fu="[object Array]",du="[object Boolean]",hu="[object Date]",gu="[object Error]",pu="[object Function]",_u="[object Map]",mu="[object Number]",yu="[object Object]",bu="[object RegExp]",vu="[object Set]",Cu="[object String]",xu="[object WeakMap]",wu="[object ArrayBuffer]",$u="[object DataView]",Lu="[object Float32Array]",Su="[object Float64Array]",ku="[object Int8Array]",Au="[object Int16Array]",Mu="[object Int32Array]",Tu="[object Uint8Array]",Pu="[object Uint8ClampedArray]",Iu="[object Uint16Array]",Ou="[object Uint32Array]",We={};We[Lu]=We[Su]=We[ku]=We[Au]=We[Mu]=We[Tu]=We[Pu]=We[Iu]=We[Ou]=!0,We[uu]=We[fu]=We[wu]=We[du]=We[$u]=We[hu]=We[gu]=We[pu]=We[_u]=We[mu]=We[yu]=We[bu]=We[vu]=We[Cu]=We[xu]=!1;function Eu(e){return cu(e)&&lu(e.length)&&!!We[su(e)]}var Du=Eu;function Ru(e){return function(n){return e(n)}}var F0=Ru,hi={exports:{}};hi.exports,function(e,n){var i=gs,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l&&i.process,f=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=f}(hi,hi.exports);var z0=hi.exports,Bu=Du,Fu=F0,Is=z0,Os=Is&&Is.isTypedArray,zu=Os?Fu(Os):Bu,Nu=zu,Ku=K7,Hu=X7,Wu=Rr,Uu=Ms,Zu=Ts,Yu=Nu,qu=Object.prototype,Gu=qu.hasOwnProperty;function Vu(e,n){var i=Wu(e),o=!i&&Hu(e),s=!i&&!o&&Uu(e),l=!i&&!o&&!s&&Yu(e),c=i||o||s||l,f=c?Ku(e.length,String):[],d=f.length;for(var g in e)(n||Gu.call(e,g))&&!(c&&(g=="length"||s&&(g=="offset"||g=="parent")||l&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Zu(g,d)))&&f.push(g);return f}var Es=Vu,ju=Object.prototype;function Qu(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||ju;return e===i}var N0=Qu;function Xu(e,n){return function(i){return e(n(i))}}var Ds=Xu,Ju=Ds,e4=Ju(Object.keys,Object),t4=e4,n4=N0,r4=t4,i4=Object.prototype,o4=i4.hasOwnProperty;function a4(e){if(!n4(e))return r4(e);var n=[];for(var i in Object(e))o4.call(e,i)&&i!="constructor"&&n.push(i);return n}var s4=a4,l4=bs,c4=Ps;function u4(e){return e!=null&&c4(e.length)&&!l4(e)}var Rs=u4,f4=Es,d4=s4,h4=Rs;function g4(e){return h4(e)?f4(e):d4(e)}var K0=g4,p4=fi,_4=K0;function m4(e,n){return e&&p4(n,_4(n),e)}var y4=m4;function b4(e){var n=[];if(e!=null)for(var i in Object(e))n.push(i);return n}var v4=b4,C4=Pr,x4=N0,w4=v4,$4=Object.prototype,L4=$4.hasOwnProperty;function S4(e){if(!C4(e))return w4(e);var n=x4(e),i=[];for(var o in e)o=="constructor"&&(n||!L4.call(e,o))||i.push(o);return i}var k4=S4,A4=Es,M4=k4,T4=Rs;function P4(e){return T4(e)?A4(e,!0):M4(e)}var H0=P4,I4=fi,O4=H0;function E4(e,n){return e&&I4(n,O4(n),e)}var D4=E4,gi={exports:{}};gi.exports,function(e,n){var i=$n,o=n&&!n.nodeType&&n,s=o&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===o,c=l?i.Buffer:void 0,f=c?c.allocUnsafe:void 0;function d(g,v){if(v)return g.slice();var y=g.length,b=f?f(y):new g.constructor(y);return g.copy(b),b}e.exports=d}(gi,gi.exports);var R4=gi.exports;function B4(e,n){var i=-1,o=e.length;for(n||(n=Array(o));++i<o;)n[i]=e[i];return n}var F4=B4;function z4(e,n){for(var i=-1,o=e==null?0:e.length,s=0,l=[];++i<o;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}var N4=z4;function K4(){return[]}var Bs=K4,H4=N4,W4=Bs,U4=Object.prototype,Z4=U4.propertyIsEnumerable,Fs=Object.getOwnPropertySymbols,Y4=Fs?function(e){return e==null?[]:(e=Object(e),H4(Fs(e),function(n){return Z4.call(e,n)}))}:W4,W0=Y4,q4=fi,G4=W0;function V4(e,n){return q4(e,G4(e),n)}var j4=V4;function Q4(e,n){for(var i=-1,o=n.length,s=e.length;++i<o;)e[s+i]=n[i];return e}var zs=Q4,X4=Ds,J4=X4(Object.getPrototypeOf,Object),Ns=J4,ef=zs,tf=Ns,nf=W0,rf=Bs,of=Object.getOwnPropertySymbols,af=of?function(e){for(var n=[];e;)ef(n,nf(e)),e=tf(e);return n}:rf,Ks=af,sf=fi,lf=Ks;function cf(e,n){return sf(e,lf(e),n)}var uf=cf,ff=zs,df=Rr;function hf(e,n,i){var o=n(e);return df(e)?o:ff(o,i(e))}var Hs=hf,gf=Hs,pf=W0,_f=K0;function mf(e){return gf(e,_f,pf)}var yf=mf,bf=Hs,vf=Ks,Cf=H0;function xf(e){return bf(e,Cf,vf)}var wf=xf,$f=hr,Lf=$n,Sf=$f(Lf,"DataView"),kf=Sf,Af=hr,Mf=$n,Tf=Af(Mf,"Promise"),Pf=Tf,If=hr,Of=$n,Ef=If(Of,"Set"),Df=Ef,Rf=hr,Bf=$n,Ff=Rf(Bf,"WeakMap"),zf=Ff,U0=kf,Z0=R0,Y0=Pf,q0=Df,G0=zf,Ws=v1,Br=Cs,Us="[object Map]",Nf="[object Object]",Zs="[object Promise]",Ys="[object Set]",qs="[object WeakMap]",Gs="[object DataView]",Kf=Br(U0),Hf=Br(Z0),Wf=Br(Y0),Uf=Br(q0),Zf=Br(G0),gr=Ws;(U0&&gr(new U0(new ArrayBuffer(1)))!=Gs||Z0&&gr(new Z0)!=Us||Y0&&gr(Y0.resolve())!=Zs||q0&&gr(new q0)!=Ys||G0&&gr(new G0)!=qs)&&(gr=function(e){var n=Ws(e),i=n==Nf?e.constructor:void 0,o=i?Br(i):"";if(o)switch(o){case Kf:return Gs;case Hf:return Us;case Wf:return Zs;case Uf:return Ys;case Zf:return qs}return n});var V0=gr,Yf=Object.prototype,qf=Yf.hasOwnProperty;function Gf(e){var n=e.length,i=new e.constructor(n);return n&&typeof e[0]=="string"&&qf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Vf=Gf,jf=$n,Qf=jf.Uint8Array,Xf=Qf,Vs=Xf;function Jf(e){var n=new e.constructor(e.byteLength);return new Vs(n).set(new Vs(e)),n}var j0=Jf,ed=j0;function td(e,n){var i=n?ed(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var nd=td,rd=/\w*$/;function id(e){var n=new e.constructor(e.source,rd.exec(e));return n.lastIndex=e.lastIndex,n}var od=id,js=li,Qs=js?js.prototype:void 0,Xs=Qs?Qs.valueOf:void 0;function ad(e){return Xs?Object(Xs.call(e)):{}}var sd=ad,ld=j0;function cd(e,n){var i=n?ld(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var ud=cd,fd=j0,dd=nd,hd=od,gd=sd,pd=ud,_d="[object Boolean]",md="[object Date]",yd="[object Map]",bd="[object Number]",vd="[object RegExp]",Cd="[object Set]",xd="[object String]",wd="[object Symbol]",$d="[object ArrayBuffer]",Ld="[object DataView]",Sd="[object Float32Array]",kd="[object Float64Array]",Ad="[object Int8Array]",Md="[object Int16Array]",Td="[object Int32Array]",Pd="[object Uint8Array]",Id="[object Uint8ClampedArray]",Od="[object Uint16Array]",Ed="[object Uint32Array]";function Dd(e,n,i){var o=e.constructor;switch(n){case $d:return fd(e);case _d:case md:return new o(+e);case Ld:return dd(e,i);case Sd:case kd:case Ad:case Md:case Td:case Pd:case Id:case Od:case Ed:return pd(e,i);case yd:return new o;case bd:case xd:return new o(e);case vd:return hd(e);case Cd:return new o;case wd:return gd(e)}}var Rd=Dd,Bd=Pr,Js=Object.create,Fd=function(){function e(){}return function(n){if(!Bd(n))return{};if(Js)return Js(n);e.prototype=n;var i=new e;return e.prototype=void 0,i}}(),zd=Fd,Nd=zd,Kd=Ns,Hd=N0;function Wd(e){return typeof e.constructor=="function"&&!Hd(e)?Nd(Kd(e)):{}}var Ud=Wd,Zd=V0,Yd=Dr,qd="[object Map]";function Gd(e){return Yd(e)&&Zd(e)==qd}var Vd=Gd,jd=Vd,Qd=F0,el=z0,tl=el&&el.isMap,Xd=tl?Qd(tl):jd,Jd=Xd,eh=V0,th=Dr,nh="[object Set]";function rh(e){return th(e)&&eh(e)==nh}var ih=rh,oh=ih,ah=F0,nl=z0,rl=nl&&nl.isSet,sh=rl?ah(rl):oh,lh=sh,ch=L7,uh=k7,fh=B0,dh=y4,hh=D4,gh=R4,ph=F4,_h=j4,mh=uf,yh=yf,bh=wf,vh=V0,Ch=Vf,xh=Rd,wh=Ud,$h=Rr,Lh=Ms,Sh=Jd,kh=Pr,Ah=lh,Mh=K0,Th=H0,Ph=1,Ih=2,Oh=4,il="[object Arguments]",Eh="[object Array]",Dh="[object Boolean]",Rh="[object Date]",Bh="[object Error]",ol="[object Function]",Fh="[object GeneratorFunction]",zh="[object Map]",Nh="[object Number]",al="[object Object]",Kh="[object RegExp]",Hh="[object Set]",Wh="[object String]",Uh="[object Symbol]",Zh="[object WeakMap]",Yh="[object ArrayBuffer]",qh="[object DataView]",Gh="[object Float32Array]",Vh="[object Float64Array]",jh="[object Int8Array]",Qh="[object Int16Array]",Xh="[object Int32Array]",Jh="[object Uint8Array]",eg="[object Uint8ClampedArray]",tg="[object Uint16Array]",ng="[object Uint32Array]",Ke={};Ke[il]=Ke[Eh]=Ke[Yh]=Ke[qh]=Ke[Dh]=Ke[Rh]=Ke[Gh]=Ke[Vh]=Ke[jh]=Ke[Qh]=Ke[Xh]=Ke[zh]=Ke[Nh]=Ke[al]=Ke[Kh]=Ke[Hh]=Ke[Wh]=Ke[Uh]=Ke[Jh]=Ke[eg]=Ke[tg]=Ke[ng]=!0,Ke[Bh]=Ke[ol]=Ke[Zh]=!1;function pi(e,n,i,o,s,l){var c,f=n&Ph,d=n&Ih,g=n&Oh;if(i&&(c=s?i(e,o,s,l):i(e)),c!==void 0)return c;if(!kh(e))return e;var v=$h(e);if(v){if(c=Ch(e),!f)return ph(e,c)}else{var y=vh(e),b=y==ol||y==Fh;if(Lh(e))return gh(e,f);if(y==al||y==il||b&&!s){if(c=d||b?{}:wh(e),!f)return d?mh(e,hh(c,e)):_h(e,dh(c,e))}else{if(!Ke[y])return s?e:{};c=xh(e,y,f)}}l||(l=new ch);var C=l.get(e);if(C)return C;l.set(e,c),Ah(e)?e.forEach(function(x){c.add(pi(x,n,i,x,e,l))}):Sh(e)&&e.forEach(function(x,$){c.set($,pi(x,n,i,$,e,l))});var L=g?d?bh:yh:d?Th:Mh,k=v?void 0:L(e);return uh(k||e,function(x,$){k&&($=x,x=e[$]),fh(c,$,pi(x,n,i,$,e,l))}),c}var rg=pi,ig=rg,og=1,ag=4;function sg(e){return ig(e,og|ag)}var lg=sg;const cg=w0(lg);var ug=v1,fg=Dr,dg="[object Symbol]";function hg(e){return typeof e=="symbol"||fg(e)&&ug(e)==dg}var Q0=hg,gg=Rr,pg=Q0,_g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mg=/^\w*$/;function yg(e,n){if(gg(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||pg(e)?!0:mg.test(e)||!_g.test(e)||n!=null&&e in Object(n)}var bg=yg,sl=$s,vg="Expected a function";function X0(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(vg);var i=function(){var o=arguments,s=n?n.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=e.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(X0.Cache||sl),i}X0.Cache=sl;var Cg=X0,xg=Cg,wg=500;function $g(e){var n=xg(e,function(o){return i.size===wg&&i.clear(),o}),i=n.cache;return n}var Lg=$g,Sg=Lg,kg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ag=/\\(\\)?/g,Mg=Sg(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(kg,function(i,o,s,l){n.push(s?l.replace(Ag,"$1"):o||i)}),n}),Tg=Mg;function Pg(e,n){for(var i=-1,o=e==null?0:e.length,s=Array(o);++i<o;)s[i]=n(e[i],i,e);return s}var Ig=Pg,ll=li,Og=Ig,Eg=Rr,Dg=Q0,Rg=1/0,cl=ll?ll.prototype:void 0,ul=cl?cl.toString:void 0;function fl(e){if(typeof e=="string")return e;if(Eg(e))return Og(e,fl)+"";if(Dg(e))return ul?ul.call(e):"";var n=e+"";return n=="0"&&1/e==-Rg?"-0":n}var Bg=fl,Fg=Bg;function zg(e){return e==null?"":Fg(e)}var Ng=zg,Kg=Rr,Hg=bg,Wg=Tg,Ug=Ng;function Zg(e,n){return Kg(e)?e:Hg(e,n)?[e]:Wg(Ug(e))}var Yg=Zg,qg=Q0,Gg=1/0;function Vg(e){if(typeof e=="string"||qg(e))return e;var n=e+"";return n=="0"&&1/e==-Gg?"-0":n}var jg=Vg,Qg=B0,Xg=Yg,Jg=Ts,dl=Pr,ep=jg;function tp(e,n,i,o){if(!dl(e))return e;n=Xg(n,e);for(var s=-1,l=n.length,c=l-1,f=e;f!=null&&++s<l;){var d=ep(n[s]),g=i;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(s!=c){var v=f[d];g=o?o(v,d,f):void 0,g===void 0&&(g=dl(v)?v:Jg(n[s+1])?[]:{})}Qg(f,d,g),f=f[d]}return e}var np=tp,rp=np;function ip(e,n,i){return e==null?e:rp(e,n,i)}var op=ip;const C1=w0(op);var ap=Y("<button>");const sp=e=>(()=>{var n=ap();return wn(n,"click",e.onClick,!0),R(n,()=>e.children),Te(i=>{var o=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return i.e=Ve(n,o,i.e),s!==i.t&&Ht(n,i.t=s),i},{e:void 0,t:void 0}),n})();Dt(["click"]);var lp=Y('<svg viewBox="0 0 1024 1024"class=icon><path d="M810.666667 128H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h597.333334c46.933333 0 85.333333-38.4 85.333333-85.333333V213.333333c0-46.933333-38.4-85.333333-85.333333-85.333333z m-353.706667 567.04a42.496 42.496 0 0 1-60.16 0L243.626667 541.866667c-8.106667-8.106667-12.373333-18.773333-12.373334-29.866667s4.693333-22.186667 12.373334-29.866667a42.496 42.496 0 0 1 60.16 0L426.666667 604.586667l293.546666-293.546667a42.496 42.496 0 1 1 60.16 60.16l-323.413333 323.84z">'),cp=Y('<svg viewBox="0 0 1024 1024"class=icon><path d="M245.333333 128h533.333334A117.333333 117.333333 0 0 1 896 245.333333v533.333334A117.333333 117.333333 0 0 1 778.666667 896H245.333333A117.333333 117.333333 0 0 1 128 778.666667V245.333333A117.333333 117.333333 0 0 1 245.333333 128z m0 64c-29.44 0-53.333333 23.893333-53.333333 53.333333v533.333334c0 29.44 23.893333 53.333333 53.333333 53.333333h533.333334c29.44 0 53.333333-23.893333 53.333333-53.333333V245.333333c0-29.44-23.893333-53.333333-53.333333-53.333333H245.333333z">'),up=Y("<div>"),fp=Y("<span class=label>");const dp=()=>lp(),hp=()=>cp(),hl=e=>{const[n,i]=Q(e.checked??!1);return Mt(()=>{"checked"in e&&i(e.checked)}),(()=>{var o=up();return o.$$click=s=>{const l=!n();e.onChange&&e.onChange(l),i(l)},R(o,(()=>{var s=Ze(()=>!!n());return()=>s()?q(dp,{}):q(hp,{})})(),null),R(o,(()=>{var s=Ze(()=>!!e.label);return()=>s()&&(()=>{var l=fp();return R(l,()=>e.label),l})()})(),null),Te(s=>{var l=e.style,c=`klinecharts-pro-checkbox ${n()&&"checked"||""} ${e.class||""}`;return s.e=Ve(o,l,s.e),c!==s.t&&Ht(o,s.t=c),s},{e:void 0,t:void 0}),o})()};Dt(["click"]);var gp=Y("<div class=klinecharts-pro-loading><i class=circle1></i><i class=circle2></i><i class=circle3>");const gl=()=>gp();var pp=Y('<div class=klinecharts-pro-empty><svg class=icon viewBox="0 0 1024 1024"><path d="M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z">');const _p=()=>pp();var mp=Y("<ul>"),yp=Y("<li>");const _i=e=>(()=>{var n=mp();return R(n,q(Oe,{get when(){return e.loading},get children(){return q(gl,{})}}),null),R(n,q(Oe,{get when(){var i;return Ze(()=>!e.loading&&!e.children)()&&!((i=e.dataSource)!=null&&i.length)},get children(){return q(_p,{})}}),null),R(n,q(Oe,{get when(){return e.children},get children(){return e.children}}),null),R(n,q(Oe,{get when(){return!e.children},get children(){var i;return(i=e.dataSource)==null?void 0:i.map(o=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,o))??yp()})}}),null),Te(i=>{var o=e.style,s=`klinecharts-pro-list ${e.class??""}`;return i.e=Ve(n,o,i.e),s!==i.t&&Ht(n,i.t=s),i},{e:void 0,t:void 0}),n})(),Fr=[];let bp=0,mi=!1;function pl(e){if(e.key!=="Escape")return;const n=Fr[Fr.length-1];n&&(e.preventDefault(),e.stopPropagation(),n.close())}function vp(){mi||(window.addEventListener("keydown",pl,!0),mi=!0)}function Cp(){Fr.length===0&&mi&&(window.removeEventListener("keydown",pl,!0),mi=!1)}function xp(e){const n=bp++;return Fr.push({id:n,close:e}),vp(),()=>{const i=Fr.findIndex(o=>o.id===n);i>=0&&Fr.splice(i,1),Cp()}}var wp=Y('<div class=klinecharts-pro-modal><div><div class=title-container><svg class=close-icon viewBox="0 0 1024 1024"><path d="M934.184927 199.723787 622.457206 511.452531l311.727721 311.703161c14.334473 14.229073 23.069415 33.951253 23.069415 55.743582 0 43.430138-35.178197 78.660524-78.735226 78.660524-21.664416 0-41.361013-8.865925-55.642275-23.069415L511.149121 622.838388 199.420377 934.490384c-14.204513 14.20349-33.901111 23.069415-55.642275 23.069415-43.482327 0-78.737272-35.230386-78.737272-78.660524 0-21.792329 8.864902-41.513486 23.094998-55.743582l311.677579-311.703161L88.135828 199.723787c-14.230096-14.255679-23.094998-33.92567-23.094998-55.642275 0-43.430138 35.254945-78.762855 78.737272-78.762855 21.741163 0 41.437761 8.813736 55.642275 23.069415l311.727721 311.727721L822.876842 88.389096c14.281261-14.255679 33.977859-23.069415 55.642275-23.069415 43.557028 0 78.735226 35.332716 78.735226 78.762855C957.254342 165.798117 948.5194 185.468109 934.184927 199.723787"></path></svg></div><div class=content-container>'),$p=Y("<div class=button-container>");const Ln=e=>{let n=null;P0(()=>{if(!e.onClose)return;const d=xp(()=>{var g;(g=e.onClose)==null||g.call(e)});Sr(d)});const i=d=>{var g;d.target===d.currentTarget&&((g=e.onClose)==null||g.call(e))},o={};e.width!=null&&(o.width=`${e.width}px`,o["max-width"]=`${e.width}px`),e.height!=null&&(o.height=`${e.height}px`,o["max-height"]=`${e.height}px`);const s=(d,g)=>{if(!d||!(d instanceof Element)||g===0)return!1;let v=d;for(;v;){const y=window.getComputedStyle(v);if((y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="overlay")&&v.scrollHeight>v.clientHeight)return g>0?v.scrollTop+v.clientHeight<v.scrollHeight:v.scrollTop>0;v=v.parentElement}return!1},l=d=>{d.stopPropagation(),s(d.target,d.deltaY)||d.preventDefault()},c=d=>{d.touches.length>0&&(n=d.touches[0].clientY)},f=d=>{if(d.stopPropagation(),d.touches.length===0||n==null){d.preventDefault();return}const g=d.touches[0].clientY,v=n-g;n=g,s(d.target,v)||d.preventDefault()};return(()=>{var d=wp(),g=d.firstChild,v=g.firstChild,y=v.firstChild,b=v.nextSibling;return d.$$click=i,g.$$touchmove=f,g.$$touchstart=c,g.addEventListener("wheel",l),R(v,()=>e.title,y),wn(y,"click",e.onClose,!0),R(b,()=>e.children),R(g,(()=>{var C=Ze(()=>!!(e.buttons&&e.buttons.length>0));return()=>C()&&(()=>{var L=$p();return R(L,()=>e.buttons.map(k=>q(sp,cs(k,{get children(){return k.children}})))),L})()})(),null),Te(C=>{var L=`inner${e.height!=null?" inner--fixed-height":""}`,k=o;return L!==C.e&&Ht(g,C.e=L),C.t=Ve(g,k,C.t),C},{e:void 0,t:void 0}),d})()};Dt(["click","touchstart","touchmove"]);var Lp=Y("<div tabindex=0><div class=selector-container><span class=value></span><i class=arrow>"),Sp=Y("<div class=drop-down-container><ul>"),kp=Y("<li>");const x1=e=>{const[n,i]=Q(!1);return(()=>{var o=Lp(),s=o.firstChild,l=s.firstChild;return o.addEventListener("blur",c=>{i(!1)}),o.$$click=c=>{i(f=>!f)},R(l,()=>e.value),R(o,(()=>{var c=Ze(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>c()&&(()=>{var f=Sp(),d=f.firstChild;return R(d,()=>e.dataSource.map(g=>{const y=g[e.valueKey??"text"]??g;return(()=>{var b=kp();return b.$$click=C=>{var L;C.stopPropagation(),e.value!==y&&((L=e.onSelected)==null||L.call(e,g)),i(!1)},R(b,y),b})()})),f})()})(),null),Te(c=>{var f=e.style,d=`klinecharts-pro-select ${e.class??""} ${n()?"klinecharts-pro-select-show":""}`;return c.e=Ve(o,f,c.e),d!==c.t&&Ht(o,c.t=d),c},{e:void 0,t:void 0}),o})()};Dt(["click"]);var Ap=Y("<span class=prefix>"),Mp=Y("<span class=suffix>"),Tp=Y("<div><input id=myInput class=value>");const[Pp,cD]=Q("klinecharts-pro-input klinecharts-pro-timeframe-modal-input"),_l=e=>{const n=cs({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let i;const[o,s]=Q("normal"),l=c=>{c&&c.focus()};return Mt(()=>{l(document.querySelector("#myInput"))}),(()=>{var c=Tp(),f=c.firstChild;c.$$click=()=>{i==null||i.focus()},R(c,q(Oe,{get when(){return n.prefix},get children(){var g=Ap();return R(g,()=>n.prefix),g}}),f),wn(f,"keydown",n.onKeyDown,!0),f.addEventListener("change",g=>{var y,b;const v=g.target.value;if("precision"in n){let C;const L=Math.max(0,Math.floor(n.precision));L<=0?C=new RegExp(/^[1-9]\d*$/):C=new RegExp("^\\d+\\.?\\d{0,"+L+"}$"),(v===""||C.test(v)&&+v>=n.min&&+v<=n.max)&&((y=n.onChange)==null||y.call(n,v===""?v:+v))}else(b=n.onChange)==null||b.call(n,v)}),f.addEventListener("blur",()=>{s("normal")}),f.addEventListener("focus",()=>{s("focus")});var d=i;return typeof d=="function"?ii(d,f):i=f,R(c,q(Oe,{get when(){return n.suffix},get children(){var g=Mp();return R(g,()=>n.suffix),g}}),null),Te(g=>{var v=n.style,y=`${Pp()}${n.class??""}`,b=o(),C=n.placeholder??"",L=n.focus===!0?n.focus:!1;return g.e=Ve(c,v,g.e),y!==g.t&&Ht(c,g.t=y),b!==g.a&&Je(c,"data-status",g.a=b),C!==g.o&&Je(f,"placeholder",g.o=C),L!==g.i&&(f.autofocus=g.i=L),g},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>f.value=n.value),c})()};Dt(["click","keydown"]);var Ip=Y("<div><i class=thumb>");const zr=e=>(()=>{var n=Ip();return n.$$click=i=>{e.onChange&&e.onChange()},Te(i=>{var o=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return i.e=Ve(n,o,i.e),s!==i.t&&Ht(n,i.t=s),i},{e:void 0,t:void 0}),n})();Dt(["click"]);const{min:Op,max:Ep}=Math,pr=(e,n=0,i=1)=>Op(Ep(n,e),i),J0=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let n=0;n<=3;n++)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]=pr(e[n],0,255)):n===3&&(e[n]=pr(e[n],0,1));return e},ml={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])ml[`[object ${e}]`]=e.toLowerCase();function xe(e){return ml[Object.prototype.toString.call(e)]||"object"}const ye=(e,n=null)=>e.length>=3?Array.prototype.slice.call(e):xe(e[0])=="object"&&n?n.split("").filter(i=>e[0][i]!==void 0).map(i=>e[0][i]):e[0].slice(0),Nr=e=>{if(e.length<2)return null;const n=e.length-1;return xe(e[n])=="string"?e[n].toLowerCase():null},{PI:yi,min:yl,max:bl}=Math,Xt=e=>Math.round(e*100)/100,eo=e=>Math.round(e*100)/100,Rn=yi*2,to=yi/3,Dp=yi/180,Rp=180/yi;function vl(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const pe={format:{},autodetect:[]};let G=class{constructor(...n){const i=this;if(xe(n[0])==="object"&&n[0].constructor&&n[0].constructor===this.constructor)return n[0];let o=Nr(n),s=!1;if(!o){s=!0,pe.sorted||(pe.autodetect=pe.autodetect.sort((l,c)=>c.p-l.p),pe.sorted=!0);for(let l of pe.autodetect)if(o=l.test(...n),o)break}if(pe.format[o]){const l=pe.format[o].apply(null,s?n:n.slice(0,-1));i._rgb=J0(l)}else throw new Error("unknown format: "+n);i._rgb.length===3&&i._rgb.push(1)}toString(){return xe(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Bp="3.2.0",ge=(...e)=>new G(...e);ge.version=Bp;const Kr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Fp=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,zp=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Cl=e=>{if(e.match(Fp)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const n=parseInt(e,16),i=n>>16,o=n>>8&255,s=n&255;return[i,o,s,1]}if(e.match(zp)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e,16),i=n>>24&255,o=n>>16&255,s=n>>8&255,l=Math.round((n&255)/255*100)/100;return[i,o,s,l]}throw new Error(`unknown hex color: ${e}`)},{round:bi}=Math,xl=(...e)=>{let[n,i,o,s]=ye(e,"rgba"),l=Nr(e)||"auto";s===void 0&&(s=1),l==="auto"&&(l=s<1?"rgba":"rgb"),n=bi(n),i=bi(i),o=bi(o);let f="000000"+(n<<16|i<<8|o).toString(16);f=f.substr(f.length-6);let d="0"+bi(s*255).toString(16);switch(d=d.substr(d.length-2),l.toLowerCase()){case"rgba":return`#${f}${d}`;case"argb":return`#${d}${f}`;default:return`#${f}`}};G.prototype.name=function(){const e=xl(this._rgb,"rgb");for(let n of Object.keys(Kr))if(Kr[n]===e)return n.toLowerCase();return e},pe.format.named=e=>{if(e=e.toLowerCase(),Kr[e])return Cl(Kr[e]);throw new Error("unknown color name: "+e)},pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&xe(e)==="string"&&Kr[e.toLowerCase()])return"named"}}),G.prototype.alpha=function(e,n=!1){return e!==void 0&&xe(e)==="number"?n?(this._rgb[3]=e,this):new G([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},G.prototype.clipped=function(){return this._rgb._clipped||!1};const Sn={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Np=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Bn(e){const n=Np.get(String(e).toLowerCase());if(!n)throw new Error("unknown Lab illuminant "+e);Sn.labWhitePoint=e,Sn.Xn=n[0],Sn.Zn=n[1]}function w1(){return Sn.labWhitePoint}const no=(...e)=>{e=ye(e,"lab");const[n,i,o]=e,[s,l,c]=Kp(n,i,o),[f,d,g]=wl(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Kp=(e,n,i)=>{const{kE:o,kK:s,kKE:l,Xn:c,Yn:f,Zn:d}=Sn,g=(e+16)/116,v=.002*n+g,y=g-.005*i,b=v*v*v,C=y*y*y,L=b>o?b:(116*v-16)/s,k=e>l?Math.pow((e+16)/116,3):e/s,x=C>o?C:(116*y-16)/s,$=L*c,P=k*f,O=x*d;return[$,P,O]},ro=e=>{const n=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*n},wl=(e,n,i)=>{const{MtxAdaptMa:o,MtxAdaptMaI:s,MtxXYZ2RGB:l,RefWhiteRGB:c,Xn:f,Yn:d,Zn:g}=Sn,v=f*o.m00+d*o.m10+g*o.m20,y=f*o.m01+d*o.m11+g*o.m21,b=f*o.m02+d*o.m12+g*o.m22,C=c.X*o.m00+c.Y*o.m10+c.Z*o.m20,L=c.X*o.m01+c.Y*o.m11+c.Z*o.m21,k=c.X*o.m02+c.Y*o.m12+c.Z*o.m22,x=(e*o.m00+n*o.m10+i*o.m20)*(C/v),$=(e*o.m01+n*o.m11+i*o.m21)*(L/y),P=(e*o.m02+n*o.m12+i*o.m22)*(k/b),O=x*s.m00+$*s.m10+P*s.m20,T=x*s.m01+$*s.m11+P*s.m21,z=x*s.m02+$*s.m12+P*s.m22,H=ro(O*l.m00+T*l.m10+z*l.m20),U=ro(O*l.m01+T*l.m11+z*l.m21),I=ro(O*l.m02+T*l.m12+z*l.m22);return[H*255,U*255,I*255]},io=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),[l,c,f]=$l(n,i,o),[d,g,v]=Hp(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};function Hp(e,n,i){const{Xn:o,Yn:s,Zn:l,kE:c,kK:f}=Sn,d=e/o,g=n/s,v=i/l,y=d>c?Math.pow(d,1/3):(f*d+16)/116,b=g>c?Math.pow(g,1/3):(f*g+16)/116,C=v>c?Math.pow(v,1/3):(f*v+16)/116;return[116*b-16,500*(y-b),200*(b-C)]}function oo(e){const n=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*n}const $l=(e,n,i)=>{e=oo(e/255),n=oo(n/255),i=oo(i/255);const{MtxRGB2XYZ:o,MtxAdaptMa:s,MtxAdaptMaI:l,Xn:c,Yn:f,Zn:d,As:g,Bs:v,Cs:y}=Sn;let b=e*o.m00+n*o.m10+i*o.m20,C=e*o.m01+n*o.m11+i*o.m21,L=e*o.m02+n*o.m12+i*o.m22;const k=c*s.m00+f*s.m10+d*s.m20,x=c*s.m01+f*s.m11+d*s.m21,$=c*s.m02+f*s.m12+d*s.m22;let P=b*s.m00+C*s.m10+L*s.m20,O=b*s.m01+C*s.m11+L*s.m21,T=b*s.m02+C*s.m12+L*s.m22;return P*=k/g,O*=x/v,T*=$/y,b=P*l.m00+O*l.m10+T*l.m20,C=P*l.m01+O*l.m11+T*l.m21,L=P*l.m02+O*l.m12+T*l.m22,[b,C,L]};G.prototype.lab=function(){return io(this._rgb)},Object.assign(ge,{lab:(...e)=>new G(...e,"lab"),getLabWhitePoint:w1,setLabWhitePoint:Bn}),pe.format.lab=no,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"lab"),xe(e)==="array"&&e.length===3)return"lab"}}),G.prototype.darken=function(e=1){const n=this,i=n.lab();return i[0]-=Sn.Kn*e,new G(i,"lab").alpha(n.alpha(),!0)},G.prototype.brighten=function(e=1){return this.darken(-e)},G.prototype.darker=G.prototype.darken,G.prototype.brighter=G.prototype.brighten,G.prototype.get=function(e){const[n,i]=e.split("."),o=this[n]();if(i){const s=n.indexOf(i)-(n.substr(0,2)==="ok"?2:0);if(s>-1)return o[s];throw new Error(`unknown channel ${i} in mode ${n}`)}else return o};const{pow:Wp}=Math,Up=1e-7,Zp=20;G.prototype.luminance=function(e,n="rgb"){if(e!==void 0&&xe(e)==="number"){if(e===0)return new G([0,0,0,this._rgb[3]],"rgb");if(e===1)return new G([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),o=Zp;const s=(c,f)=>{const d=c.interpolate(f,.5,n),g=d.luminance();return Math.abs(e-g)<Up||!o--?d:g>e?s(c,d):s(d,f)},l=(i>e?s(new G([0,0,0]),this):s(this,new G([255,255,255]))).rgb();return new G([...l,this._rgb[3]])}return Yp(...this._rgb.slice(0,3))};const Yp=(e,n,i)=>(e=ao(e),n=ao(n),i=ao(i),.2126*e+.7152*n+.0722*i),ao=e=>(e/=255,e<=.03928?e/12.92:Wp((e+.055)/1.055,2.4)),Ct={},Hr=(e,n,i=.5,...o)=>{let s=o[0]||"lrgb";if(!Ct[s]&&!o.length&&(s=Object.keys(Ct)[0]),!Ct[s])throw new Error(`interpolation mode ${s} is not defined`);return xe(e)!=="object"&&(e=new G(e)),xe(n)!=="object"&&(n=new G(n)),Ct[s](e,n,i).alpha(e.alpha()+i*(n.alpha()-e.alpha()))};G.prototype.mix=G.prototype.interpolate=function(e,n=.5,...i){return Hr(this,e,n,...i)},G.prototype.premultiply=function(e=!1){const n=this._rgb,i=n[3];return e?(this._rgb=[n[0]*i,n[1]*i,n[2]*i,i],this):new G([n[0]*i,n[1]*i,n[2]*i,i],"rgb")};const{sin:qp,cos:Gp}=Math,Ll=(...e)=>{let[n,i,o]=ye(e,"lch");return isNaN(o)&&(o=0),o=o*Dp,[n,Gp(o)*i,qp(o)*i]},so=(...e)=>{e=ye(e,"lch");const[n,i,o]=e,[s,l,c]=Ll(n,i,o),[f,d,g]=no(s,l,c);return[f,d,g,e.length>3?e[3]:1]},Vp=(...e)=>{const n=vl(ye(e,"hcl"));return so(...n)},{sqrt:jp,atan2:Qp,round:Xp}=Math,Sl=(...e)=>{const[n,i,o]=ye(e,"lab"),s=jp(i*i+o*o);let l=(Qp(o,i)*Rp+360)%360;return Xp(s*1e4)===0&&(l=Number.NaN),[n,s,l]},lo=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),[l,c,f]=io(n,i,o),[d,g,v]=Sl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};G.prototype.lch=function(){return lo(this._rgb)},G.prototype.hcl=function(){return vl(lo(this._rgb))},Object.assign(ge,{lch:(...e)=>new G(...e,"lch"),hcl:(...e)=>new G(...e,"hcl")}),pe.format.lch=so,pe.format.hcl=Vp,["lch","hcl"].forEach(e=>pe.autodetect.push({p:2,test:(...n)=>{if(n=ye(n,e),xe(n)==="array"&&n.length===3)return e}})),G.prototype.saturate=function(e=1){const n=this,i=n.lch();return i[1]+=Sn.Kn*e,i[1]<0&&(i[1]=0),new G(i,"lch").alpha(n.alpha(),!0)},G.prototype.desaturate=function(e=1){return this.saturate(-e)},G.prototype.set=function(e,n,i=!1){const[o,s]=e.split("."),l=this[o]();if(s){const c=o.indexOf(s)-(o.substr(0,2)==="ok"?2:0);if(c>-1){if(xe(n)=="string")switch(n.charAt(0)){case"+":l[c]+=+n;break;case"-":l[c]+=+n;break;case"*":l[c]*=+n.substr(1);break;case"/":l[c]/=+n.substr(1);break;default:l[c]=+n}else if(xe(n)==="number")l[c]=n;else throw new Error("unsupported value for Color.set");const f=new G(l,o);return i?(this._rgb=f._rgb,this):f}throw new Error(`unknown channel ${s} in mode ${o}`)}else return l},G.prototype.tint=function(e=.5,...n){return Hr(this,"white",e,...n)},G.prototype.shade=function(e=.5,...n){return Hr(this,"black",e,...n)};const Jp=(e,n,i)=>{const o=e._rgb,s=n._rgb;return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"rgb")};Ct.rgb=Jp;const{sqrt:co,pow:Wr}=Math,e_=(e,n,i)=>{const[o,s,l]=e._rgb,[c,f,d]=n._rgb;return new G(co(Wr(o,2)*(1-i)+Wr(c,2)*i),co(Wr(s,2)*(1-i)+Wr(f,2)*i),co(Wr(l,2)*(1-i)+Wr(d,2)*i),"rgb")};Ct.lrgb=e_;const t_=(e,n,i)=>{const o=e.lab(),s=n.lab();return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"lab")};Ct.lab=t_;const Ur=(e,n,i,o)=>{let s,l;o==="hsl"?(s=e.hsl(),l=n.hsl()):o==="hsv"?(s=e.hsv(),l=n.hsv()):o==="hcg"?(s=e.hcg(),l=n.hcg()):o==="hsi"?(s=e.hsi(),l=n.hsi()):o==="lch"||o==="hcl"?(o="hcl",s=e.hcl(),l=n.hcl()):o==="oklch"&&(s=e.oklch().reverse(),l=n.oklch().reverse());let c,f,d,g,v,y;(o.substr(0,1)==="h"||o==="oklch")&&([c,d,v]=s,[f,g,y]=l);let b,C,L,k;return!isNaN(c)&&!isNaN(f)?(f>c&&f-c>180?k=f-(c+360):f<c&&c-f>180?k=f+360-c:k=f-c,C=c+i*k):isNaN(c)?isNaN(f)?C=Number.NaN:(C=f,(v==1||v==0)&&o!="hsv"&&(b=g)):(C=c,(y==1||y==0)&&o!="hsv"&&(b=d)),b===void 0&&(b=d+i*(g-d)),L=v+i*(y-v),o==="oklch"?new G([L,b,C],o):new G([C,b,L],o)},kl=(e,n,i)=>Ur(e,n,i,"lch");Ct.lch=kl,Ct.hcl=kl;const n_=e=>{if(xe(e)=="number"&&e>=0&&e<=16777215){const n=e>>16,i=e>>8&255,o=e&255;return[n,i,o,1]}throw new Error("unknown num color: "+e)},r_=(...e)=>{const[n,i,o]=ye(e,"rgb");return(n<<16)+(i<<8)+o};G.prototype.num=function(){return r_(this._rgb)},Object.assign(ge,{num:(...e)=>new G(...e,"num")}),pe.format.num=n_,pe.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&xe(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const i_=(e,n,i)=>{const o=e.num(),s=n.num();return new G(o+i*(s-o),"num")};Ct.num=i_;const{floor:o_}=Math,a_=(...e)=>{e=ye(e,"hcg");let[n,i,o]=e,s,l,c;o=o*255;const f=i*255;if(i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const d=o_(n),g=n-d,v=o*(1-i),y=v+f*(1-g),b=v+f*g,C=v+f;switch(d){case 0:[s,l,c]=[C,b,v];break;case 1:[s,l,c]=[y,C,v];break;case 2:[s,l,c]=[v,C,b];break;case 3:[s,l,c]=[v,y,C];break;case 4:[s,l,c]=[b,v,C];break;case 5:[s,l,c]=[C,v,y];break}}return[s,l,c,e.length>3?e[3]:1]},s_=(...e)=>{const[n,i,o]=ye(e,"rgb"),s=yl(n,i,o),l=bl(n,i,o),c=l-s,f=c*100/255,d=s/(255-c)*100;let g;return c===0?g=Number.NaN:(n===l&&(g=(i-o)/c),i===l&&(g=2+(o-n)/c),o===l&&(g=4+(n-i)/c),g*=60,g<0&&(g+=360)),[g,f,d]};G.prototype.hcg=function(){return s_(this._rgb)};const l_=(...e)=>new G(...e,"hcg");ge.hcg=l_,pe.format.hcg=a_,pe.autodetect.push({p:1,test:(...e)=>{if(e=ye(e,"hcg"),xe(e)==="array"&&e.length===3)return"hcg"}});const c_=(e,n,i)=>Ur(e,n,i,"hcg");Ct.hcg=c_;const{cos:Zr}=Math,u_=(...e)=>{e=ye(e,"hsi");let[n,i,o]=e,s,l,c;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>360&&(n-=360),n<0&&(n+=360),n/=360,n<1/3?(c=(1-i)/3,s=(1+i*Zr(Rn*n)/Zr(to-Rn*n))/3,l=1-(c+s)):n<2/3?(n-=1/3,s=(1-i)/3,l=(1+i*Zr(Rn*n)/Zr(to-Rn*n))/3,c=1-(s+l)):(n-=2/3,l=(1-i)/3,c=(1+i*Zr(Rn*n)/Zr(to-Rn*n))/3,s=1-(l+c)),s=pr(o*s*3),l=pr(o*l*3),c=pr(o*c*3),[s*255,l*255,c*255,e.length>3?e[3]:1]},{min:f_,sqrt:d_,acos:h_}=Math,g_=(...e)=>{let[n,i,o]=ye(e,"rgb");n/=255,i/=255,o/=255;let s;const l=f_(n,i,o),c=(n+i+o)/3,f=c>0?1-l/c:0;return f===0?s=NaN:(s=(n-i+(n-o))/2,s/=d_((n-i)*(n-i)+(n-o)*(i-o)),s=h_(s),o>i&&(s=Rn-s),s/=Rn),[s*360,f,c]};G.prototype.hsi=function(){return g_(this._rgb)};const p_=(...e)=>new G(...e,"hsi");ge.hsi=p_,pe.format.hsi=u_,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"hsi"),xe(e)==="array"&&e.length===3)return"hsi"}});const __=(e,n,i)=>Ur(e,n,i,"hsi");Ct.hsi=__;const uo=(...e)=>{e=ye(e,"hsl");const[n,i,o]=e;let s,l,c;if(i===0)s=l=c=o*255;else{const f=[0,0,0],d=[0,0,0],g=o<.5?o*(1+i):o+i-o*i,v=2*o-g,y=n/360;f[0]=y+1/3,f[1]=y,f[2]=y-1/3;for(let b=0;b<3;b++)f[b]<0&&(f[b]+=1),f[b]>1&&(f[b]-=1),6*f[b]<1?d[b]=v+(g-v)*6*f[b]:2*f[b]<1?d[b]=g:3*f[b]<2?d[b]=v+(g-v)*(2/3-f[b])*6:d[b]=v;[s,l,c]=[d[0]*255,d[1]*255,d[2]*255]}return e.length>3?[s,l,c,e[3]]:[s,l,c,1]},Al=(...e)=>{e=ye(e,"rgba");let[n,i,o]=e;n/=255,i/=255,o/=255;const s=yl(n,i,o),l=bl(n,i,o),c=(l+s)/2;let f,d;return l===s?(f=0,d=Number.NaN):f=c<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?d=(i-o)/(l-s):i==l?d=2+(o-n)/(l-s):o==l&&(d=4+(n-i)/(l-s)),d*=60,d<0&&(d+=360),e.length>3&&e[3]!==void 0?[d,f,c,e[3]]:[d,f,c]};G.prototype.hsl=function(){return Al(this._rgb)};const m_=(...e)=>new G(...e,"hsl");ge.hsl=m_,pe.format.hsl=uo,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"hsl"),xe(e)==="array"&&e.length===3)return"hsl"}});const y_=(e,n,i)=>Ur(e,n,i,"hsl");Ct.hsl=y_;const{floor:b_}=Math,v_=(...e)=>{e=ye(e,"hsv");let[n,i,o]=e,s,l,c;if(o*=255,i===0)s=l=c=o;else{n===360&&(n=0),n>360&&(n-=360),n<0&&(n+=360),n/=60;const f=b_(n),d=n-f,g=o*(1-i),v=o*(1-i*d),y=o*(1-i*(1-d));switch(f){case 0:[s,l,c]=[o,y,g];break;case 1:[s,l,c]=[v,o,g];break;case 2:[s,l,c]=[g,o,y];break;case 3:[s,l,c]=[g,v,o];break;case 4:[s,l,c]=[y,g,o];break;case 5:[s,l,c]=[o,g,v];break}}return[s,l,c,e.length>3?e[3]:1]},{min:C_,max:x_}=Math,w_=(...e)=>{e=ye(e,"rgb");let[n,i,o]=e;const s=C_(n,i,o),l=x_(n,i,o),c=l-s;let f,d,g;return g=l/255,l===0?(f=Number.NaN,d=0):(d=c/l,n===l&&(f=(i-o)/c),i===l&&(f=2+(o-n)/c),o===l&&(f=4+(n-i)/c),f*=60,f<0&&(f+=360)),[f,d,g]};G.prototype.hsv=function(){return w_(this._rgb)};const $_=(...e)=>new G(...e,"hsv");ge.hsv=$_,pe.format.hsv=v_,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"hsv"),xe(e)==="array"&&e.length===3)return"hsv"}});const L_=(e,n,i)=>Ur(e,n,i,"hsv");Ct.hsv=L_;function vi(e,n){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(n[0])||(n=n.map(c=>[c]));let o=n[0].length,s=n[0].map((c,f)=>n.map(d=>d[f])),l=e.map(c=>s.map(f=>Array.isArray(c)?c.reduce((d,g,v)=>d+g*(f[v]||0),0):f.reduce((d,g)=>d+g*c,0)));return i===1&&(l=l[0]),o===1?l.map(c=>c[0]):l}const fo=(...e)=>{e=ye(e,"lab");const[n,i,o,...s]=e,[l,c,f]=S_([n,i,o]),[d,g,v]=wl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]};function S_(e){var n=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],i=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=vi(i,e);return vi(n,o.map(s=>s**3))}const ho=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),l=$l(n,i,o);return[...k_(l),...s.length>0&&s[0]<1?[s[0]]:[]]};function k_(e){const n=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],i=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=vi(n,e);return vi(i,o.map(s=>Math.cbrt(s)))}G.prototype.oklab=function(){return ho(this._rgb)},Object.assign(ge,{oklab:(...e)=>new G(...e,"oklab")}),pe.format.oklab=fo,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"oklab"),xe(e)==="array"&&e.length===3)return"oklab"}});const A_=(e,n,i)=>{const o=e.oklab(),s=n.oklab();return new G(o[0]+i*(s[0]-o[0]),o[1]+i*(s[1]-o[1]),o[2]+i*(s[2]-o[2]),"oklab")};Ct.oklab=A_;const M_=(e,n,i)=>Ur(e,n,i,"oklch");Ct.oklch=M_;const{pow:go,sqrt:po,PI:_o,cos:Ml,sin:Tl,atan2:T_}=Math,P_=(e,n="lrgb",i=null)=>{const o=e.length;i||(i=Array.from(new Array(o)).map(()=>1));const s=o/i.reduce(function(y,b){return y+b});if(i.forEach((y,b)=>{i[b]*=s}),e=e.map(y=>new G(y)),n==="lrgb")return I_(e,i);const l=e.shift(),c=l.get(n),f=[];let d=0,g=0;for(let y=0;y<c.length;y++)if(c[y]=(c[y]||0)*i[0],f.push(isNaN(c[y])?0:i[0]),n.charAt(y)==="h"&&!isNaN(c[y])){const b=c[y]/180*_o;d+=Ml(b)*i[0],g+=Tl(b)*i[0]}let v=l.alpha()*i[0];e.forEach((y,b)=>{const C=y.get(n);v+=y.alpha()*i[b+1];for(let L=0;L<c.length;L++)if(!isNaN(C[L]))if(f[L]+=i[b+1],n.charAt(L)==="h"){const k=C[L]/180*_o;d+=Ml(k)*i[b+1],g+=Tl(k)*i[b+1]}else c[L]+=C[L]*i[b+1]});for(let y=0;y<c.length;y++)if(n.charAt(y)==="h"){let b=T_(g/f[y],d/f[y])/_o*180;for(;b<0;)b+=360;for(;b>=360;)b-=360;c[y]=b}else c[y]=c[y]/f[y];return v/=o,new G(c,n).alpha(v>.99999?1:v,!0)},I_=(e,n)=>{const i=e.length,o=[0,0,0,0];for(let s=0;s<e.length;s++){const l=e[s],c=n[s]/i,f=l._rgb;o[0]+=go(f[0],2)*c,o[1]+=go(f[1],2)*c,o[2]+=go(f[2],2)*c,o[3]+=f[3]*c}return o[0]=po(o[0]),o[1]=po(o[1]),o[2]=po(o[2]),o[3]>.9999999&&(o[3]=1),new G(J0(o))},{pow:O_}=Math;function Ci(e){let n="rgb",i=ge("#ccc"),o=0,s=[0,1],l=[0,1],c=[],f=[0,0],d=!1,g=[],v=!1,y=0,b=1,C=!1,L={},k=!0,x=1;const $=function(I){if(I=I||["#fff","#000"],I&&xe(I)==="string"&&ge.brewer&&ge.brewer[I.toLowerCase()]&&(I=ge.brewer[I.toLowerCase()]),xe(I)==="array"){I.length===1&&(I=[I[0],I[0]]),I=I.slice(0);for(let D=0;D<I.length;D++)I[D]=ge(I[D]);c.length=0;for(let D=0;D<I.length;D++)c.push(D/(I.length-1))}return H(),g=I},P=function(I){if(d!=null){const D=d.length-1;let V=0;for(;V<D&&I>=d[V];)V++;return V-1}return 0};let O=I=>I,T=I=>I;const z=function(I,D){let V,j;if(D==null&&(D=!1),isNaN(I)||I===null)return i;D?j=I:d&&d.length>2?j=P(I)/(d.length-2):b!==y?j=(I-y)/(b-y):j=1,j=T(j),D||(j=O(j)),x!==1&&(j=O_(j,x)),j=f[0]+j*(1-f[0]-f[1]),j=pr(j,0,1);const te=Math.floor(j*1e4);if(k&&L[te])V=L[te];else{if(xe(g)==="array")for(let ne=0;ne<c.length;ne++){const Ie=c[ne];if(j<=Ie){V=g[ne];break}if(j>=Ie&&ne===c.length-1){V=g[ne];break}if(j>Ie&&j<c[ne+1]){j=(j-Ie)/(c[ne+1]-Ie),V=ge.interpolate(g[ne],g[ne+1],j,n);break}}else xe(g)==="function"&&(V=g(j));k&&(L[te]=V)}return V};var H=()=>L={};$(e);const U=function(I){const D=ge(z(I));return v&&D[v]?D[v]():D};return U.classes=function(I){if(I!=null){if(xe(I)==="array")d=I,s=[I[0],I[I.length-1]];else{const D=ge.analyze(s);I===0?d=[D.min,D.max]:d=ge.limits(D,"e",I)}return U}return d},U.domain=function(I){if(!arguments.length)return l;l=I.slice(0),y=I[0],b=I[I.length-1],c=[];const D=g.length;if(I.length===D&&y!==b)for(let V of Array.from(I))c.push((V-y)/(b-y));else{for(let V=0;V<D;V++)c.push(V/(D-1));if(I.length>2){const V=I.map((te,ne)=>ne/(I.length-1)),j=I.map(te=>(te-y)/(b-y));j.every((te,ne)=>V[ne]===te)||(T=te=>{if(te<=0||te>=1)return te;let ne=0;for(;te>=j[ne+1];)ne++;const Ie=(te-j[ne])/(j[ne+1]-j[ne]);return V[ne]+Ie*(V[ne+1]-V[ne])})}}return s=[y,b],U},U.mode=function(I){return arguments.length?(n=I,H(),U):n},U.range=function(I,D){return $(I),U},U.out=function(I){return v=I,U},U.spread=function(I){return arguments.length?(o=I,U):o},U.correctLightness=function(I){return I==null&&(I=!0),C=I,H(),C?O=function(D){const V=z(0,!0).lab()[0],j=z(1,!0).lab()[0],te=V>j;let ne=z(D,!0).lab()[0];const Ie=V+(j-V)*D;let ot=ne-Ie,xt=0,wt=1,Ye=20;for(;Math.abs(ot)>.01&&Ye-- >0;)(function(){return te&&(ot*=-1),ot<0?(xt=D,D+=(wt-D)*.5):(wt=D,D+=(xt-D)*.5),ne=z(D,!0).lab()[0],ot=ne-Ie})();return D}:O=D=>D,U},U.padding=function(I){return I!=null?(xe(I)==="number"&&(I=[I,I]),f=I,U):f},U.colors=function(I,D){arguments.length<2&&(D="hex");let V=[];if(arguments.length===0)V=g.slice(0);else if(I===1)V=[U(.5)];else if(I>1){const j=s[0],te=s[1]-j;V=E_(0,I,!1).map(ne=>U(j+ne/(I-1)*te))}else{e=[];let j=[];if(d&&d.length>2)for(let te=1,ne=d.length,Ie=1<=ne;Ie?te<ne:te>ne;Ie?te++:te--)j.push((d[te-1]+d[te])*.5);else j=s;V=j.map(te=>U(te))}return ge[D]&&(V=V.map(j=>j[D]())),V},U.cache=function(I){return I!=null?(k=I,U):k},U.gamma=function(I){return I!=null?(x=I,U):x},U.nodata=function(I){return I!=null?(i=ge(I),U):i},U}function E_(e,n,i){let o=[],s=e<n,l=i?s?n+1:n-1:n;for(let c=e;s?c<l:c>l;s?c++:c--)o.push(c);return o}const D_=function(e){let n=[1,1];for(let i=1;i<e;i++){let o=[1];for(let s=1;s<=n.length;s++)o[s]=(n[s]||0)+n[s-1];n=o}return n},R_=function(e){let n,i,o,s;if(e=e.map(l=>new G(l)),e.length===2)[i,o]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>i[f]+l*(o[f]-i[f]));return new G(c,"lab")};else if(e.length===3)[i,o,s]=e.map(l=>l.lab()),n=function(l){const c=[0,1,2].map(f=>(1-l)*(1-l)*i[f]+2*(1-l)*l*o[f]+l*l*s[f]);return new G(c,"lab")};else if(e.length===4){let l;[i,o,s,l]=e.map(c=>c.lab()),n=function(c){const f=[0,1,2].map(d=>(1-c)*(1-c)*(1-c)*i[d]+3*(1-c)*(1-c)*c*o[d]+3*(1-c)*c*c*s[d]+c*c*c*l[d]);return new G(f,"lab")}}else if(e.length>=5){let l,c,f;l=e.map(d=>d.lab()),f=e.length-1,c=D_(f),n=function(d){const g=1-d,v=[0,1,2].map(y=>l.reduce((b,C,L)=>b+c[L]*g**(f-L)*d**L*C[y],0));return new G(v,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return n},B_=e=>{const n=R_(e);return n.scale=()=>Ci(n),n},{round:Pl}=Math;G.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Pl)},G.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((n,i)=>i<3?e===!1?n:Pl(n):n)},Object.assign(ge,{rgb:(...e)=>new G(...e,"rgb")}),pe.format.rgb=(...e)=>{const n=ye(e,"rgba");return n[3]===void 0&&(n[3]=1),n},pe.autodetect.push({p:3,test:(...e)=>{if(e=ye(e,"rgba"),xe(e)==="array"&&(e.length===3||e.length===4&&xe(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const dn=(e,n,i)=>{if(!dn[i])throw new Error("unknown blend mode "+i);return dn[i](e,n)},Jn=e=>(n,i)=>{const o=ge(i).rgb(),s=ge(n).rgb();return ge.rgb(e(o,s))},er=e=>(n,i)=>{const o=[];return o[0]=e(n[0],i[0]),o[1]=e(n[1],i[1]),o[2]=e(n[2],i[2]),o},F_=e=>e,z_=(e,n)=>e*n/255,N_=(e,n)=>e>n?n:e,K_=(e,n)=>e>n?e:n,H_=(e,n)=>255*(1-(1-e/255)*(1-n/255)),W_=(e,n)=>n<128?2*e*n/255:255*(1-2*(1-e/255)*(1-n/255)),U_=(e,n)=>255*(1-(1-n/255)/(e/255)),Z_=(e,n)=>e===255?255:(e=255*(n/255)/(1-e/255),e>255?255:e);dn.normal=Jn(er(F_)),dn.multiply=Jn(er(z_)),dn.screen=Jn(er(H_)),dn.overlay=Jn(er(W_)),dn.darken=Jn(er(N_)),dn.lighten=Jn(er(K_)),dn.dodge=Jn(er(Z_)),dn.burn=Jn(er(U_));const{pow:Y_,sin:q_,cos:G_}=Math;function V_(e=300,n=-1.5,i=1,o=1,s=[0,1]){let l=0,c;xe(s)==="array"?c=s[1]-s[0]:(c=0,s=[s,s]);const f=function(d){const g=Rn*((e+120)/360+n*d),v=Y_(s[0]+c*d,o),b=(l!==0?i[0]+d*l:i)*v*(1-v)/2,C=G_(g),L=q_(g),k=v+b*(-.14861*C+1.78277*L),x=v+b*(-.29227*C-.90649*L),$=v+b*(1.97294*C);return ge(J0([k*255,x*255,$*255,1]))};return f.start=function(d){return d==null?e:(e=d,f)},f.rotations=function(d){return d==null?n:(n=d,f)},f.gamma=function(d){return d==null?o:(o=d,f)},f.hue=function(d){return d==null?i:(i=d,xe(i)==="array"?(l=i[1]-i[0],l===0&&(i=i[1])):l=0,f)},f.lightness=function(d){return d==null?s:(xe(d)==="array"?(s=d,c=d[1]-d[0]):(s=[d,d],c=0),f)},f.scale=()=>ge.scale(f),f.hue(i),f}const j_="0123456789abcdef",{floor:Q_,random:X_}=Math,J_=(e=X_)=>{let n="#";for(let i=0;i<6;i++)n+=j_.charAt(Q_(e()*16));return new G(n,"hex")},{log:Il,pow:em,floor:tm,abs:nm}=Math;function Ol(e,n=null){const i={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return xe(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{n&&xe(o)==="object"&&(o=o[n]),o!=null&&!isNaN(o)&&(i.values.push(o),i.sum+=o,o<i.min&&(i.min=o),o>i.max&&(i.max=o),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(o,s)=>El(i,o,s),i}function El(e,n="equal",i=7){xe(e)=="array"&&(e=Ol(e));const{min:o,max:s}=e,l=e.values.sort((f,d)=>f-d);if(i===1)return[o,s];const c=[];if(n.substr(0,1)==="c"&&(c.push(o),c.push(s)),n.substr(0,1)==="e"){c.push(o);for(let f=1;f<i;f++)c.push(o+f/i*(s-o));c.push(s)}else if(n.substr(0,1)==="l"){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");const f=Math.LOG10E*Il(o),d=Math.LOG10E*Il(s);c.push(o);for(let g=1;g<i;g++)c.push(em(10,f+g/i*(d-f)));c.push(s)}else if(n.substr(0,1)==="q"){c.push(o);for(let f=1;f<i;f++){const d=(l.length-1)*f/i,g=tm(d);if(g===d)c.push(l[g]);else{const v=d-g;c.push(l[g]*(1-v)+l[g+1]*v)}}c.push(s)}else if(n.substr(0,1)==="k"){let f;const d=l.length,g=new Array(d),v=new Array(i);let y=!0,b=0,C=null;C=[],C.push(o);for(let x=1;x<i;x++)C.push(o+x/i*(s-o));for(C.push(s);y;){for(let $=0;$<i;$++)v[$]=0;for(let $=0;$<d;$++){const P=l[$];let O=Number.MAX_VALUE,T;for(let z=0;z<i;z++){const H=nm(C[z]-P);H<O&&(O=H,T=z),v[T]++,g[$]=T}}const x=new Array(i);for(let $=0;$<i;$++)x[$]=null;for(let $=0;$<d;$++)f=g[$],x[f]===null?x[f]=l[$]:x[f]+=l[$];for(let $=0;$<i;$++)x[$]*=1/v[$];y=!1;for(let $=0;$<i;$++)if(x[$]!==C[$]){y=!0;break}C=x,b++,b>200&&(y=!1)}const L={};for(let x=0;x<i;x++)L[x]=[];for(let x=0;x<d;x++)f=g[x],L[f].push(l[x]);let k=[];for(let x=0;x<i;x++)k.push(L[x][0]),k.push(L[x][L[x].length-1]);k=k.sort((x,$)=>x-$),c.push(k[0]);for(let x=1;x<k.length;x+=2){const $=k[x];!isNaN($)&&c.indexOf($)===-1&&c.push($)}}return c}const rm=(e,n)=>{e=new G(e),n=new G(n);const i=e.luminance(),o=n.luminance();return i>o?(i+.05)/(o+.05):(o+.05)/(i+.05)};/**
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 w9=.027,qm=5e-4,Xm=.1,L9=1.14,gi=.022,$9=1.414,Jm=(e,n)=>{e=new Y(e),n=new Y(n),e.alpha()<1&&(e=Nr(n,e,e.alpha(),"rgb"));const i=S9(...e.rgb()),o=S9(...n.rgb()),s=i>=gi?i:i+Math.pow(gi-i,$9),l=o>=gi?o:o+Math.pow(gi-o,$9),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<qm?0:s<l?c*L9:f*L9;return(Math.abs(d)<Xm?0:d>0?d-w9:d+w9)*100};function S9(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:In,pow:at,min:ey,max:ty,atan2:k9,abs:A9,cos:pi,sin:M9,exp:ny,PI:T9}=Math;function ry(e,n,i=1,o=1,s=1){var l=function(yt){return 360*yt/(2*T9)},c=function(yt){return 2*T9*yt/360};e=new Y(e),n=new Y(n);const[f,d,g]=Array.from(e.lab()),[b,y,v]=Array.from(n.lab()),$=(f+b)/2,_=In(at(d,2)+at(g,2)),x=In(at(y,2)+at(v,2)),L=(_+x)/2,S=.5*(1-In(at(L,7)/(at(L,7)+at(25,7)))),T=d*(1+S),P=y*(1+S),E=In(at(T,2)+at(g,2)),Z=In(at(P,2)+at(v,2)),J=(E+Z)/2,G=l(k9(g,T)),I=l(k9(v,P)),N=G>=0?G:G+360,Q=I>=0?I:I+360,q=A9(N-Q)>180?(N+Q+360)/2:(N+Q)/2,ne=1-.17*pi(c(q-30))+.24*pi(c(2*q))+.32*pi(c(3*q+6))-.2*pi(c(4*q-63));let te=Q-N;te=A9(te)<=180?te:Q<=N?te+360:te-360,te=2*In(E*Z)*M9(c(te)/2);const Pe=b-f,oe=Z-E,pt=1+.015*at($-50,2)/In(20+at($-50,2)),mt=1+.045*J,tt=1+.015*J*ne,lt=30*ny(-at((q-275)/25,2)),qe=-(2*In(at(J,7)/(at(J,7)+at(25,7))))*M9(2*c(lt)),Be=In(at(Pe/(i*pt),2)+at(oe/(o*mt),2)+at(te/(s*tt),2)+qe*(oe/(o*mt))*(te/(s*tt)));return ty(0,ey(100,Be))}function iy(e,n,i="lab"){e=new Y(e),n=new Y(n);const o=e.get(i),s=n.get(i);let l=0;for(let c in o){const f=(o[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const oy=(...e)=>{try{return new Y(...e),!0}catch{return!1}},ay={cool(){return hi([de.hsl(180,1,.9),de.hsl(250,.7,.4)])},hot(){return hi(["#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"]},P9=Object.keys(oo),O9=new Map(P9.map(e=>[e.toLowerCase(),e])),sy=typeof Proxy=="function"?new Proxy(oo,{get(e,n){const i=n.toLowerCase();if(O9.has(i))return e[O9.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(P9)}}):oo,ly=(...e)=>{e=me(e,"cmyk");const[n,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:I9}=Math,cy=(...e)=>{let[n,i,o]=me(e,"rgb");n=n/255,i=i/255,o=o/255;const s=1-I9(n,I9(i,o)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-o-s)*l;return[c,f,d,s]};Y.prototype.cmyk=function(){return cy(this._rgb)},Object.assign(de,{cmyk:(...e)=>new Y(...e,"cmyk")}),he.format.cmyk=ly,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"cmyk"),Ce(e)==="array"&&e.length===4)return"cmyk"}});const uy=(...e)=>{const n=me(e,"hsla");let i=Br(e)||"lsa";return n[0]=Vt(n[0]||0)+"deg",n[1]=Vt(n[1]*100)+"%",n[2]=Vt(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(" ")})`},fy=(...e)=>{const n=me(e,"lab");let i=Br(e)||"lab";return n[0]=Vt(n[0])+"%",n[1]=Vt(n[1]),n[2]=Vt(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},dy=(...e)=>{const n=me(e,"lch");let i=Br(e)||"lab";return n[0]=Vt(n[0])+"%",n[1]=Vt(n[1]),n[2]=isNaN(n[2])?"none":Vt(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(" ")})`},hy=(...e)=>{const n=me(e,"lab");return n[0]=Vt(n[0]*100)+"%",n[1]=W0(n[1]),n[2]=W0(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},E9=(...e)=>{const[n,i,o,...s]=me(e,"rgb"),[l,c,f]=to(n,i,o),[d,g,b]=g9(l,c,f);return[d,g,b,...s.length>0&&s[0]<1?[s[0]]:[]]},gy=(...e)=>{const n=me(e,"lch");return n[0]=Vt(n[0]*100)+"%",n[1]=W0(n[1]),n[2]=isNaN(n[2])?"none":Vt(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,py=(...e)=>{const n=me(e,"rgba");let i=Br(e)||"rgb";if(i.substr(0,3)==="hsl")return uy(m9(n),i);if(i.substr(0,3)==="lab"){const o=m1();On("d50");const s=fy(G0(n),i);return On(o),s}if(i.substr(0,3)==="lch"){const o=m1();On("d50");const s=dy(q0(n),i);return On(o),s}return i.substr(0,5)==="oklab"?hy(to(n)):i.substr(0,5)==="oklch"?gy(E9(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(" ")})`)},D9=(...e)=>{e=me(e,"lch");const[n,i,o,...s]=e,[l,c,f]=h9(n,i,o),[d,g,b]=eo(l,c,f);return[d,g,b,...s.length>0&&s[0]<1?[s[0]]:[]]},En=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,cn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,mi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Qt=/\s*/.source,Wr=/\s+/.source,so=/\s*,\s*/.source,yi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Ur=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,R9=new RegExp("^rgba?\\("+Qt+[En,En,En].join(Wr)+Ur+"\\)$"),B9=new RegExp("^rgb\\("+Qt+[En,En,En].join(so)+Qt+"\\)$"),F9=new RegExp("^rgba\\("+Qt+[En,En,En,cn].join(so)+Qt+"\\)$"),N9=new RegExp("^hsla?\\("+Qt+[yi,mi,mi].join(Wr)+Ur+"\\)$"),z9=new RegExp("^hsl?\\("+Qt+[yi,mi,mi].join(so)+Qt+"\\)$"),K9=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,H9=new RegExp("^lab\\("+Qt+[cn,cn,cn].join(Wr)+Ur+"\\)$"),W9=new RegExp("^lch\\("+Qt+[cn,cn,yi].join(Wr)+Ur+"\\)$"),U9=new RegExp("^oklab\\("+Qt+[cn,cn,cn].join(Wr)+Ur+"\\)$"),Z9=new RegExp("^oklch\\("+Qt+[cn,cn,yi].join(Wr)+Ur+"\\)$"),{round:Y9}=Math,Zr=e=>e.map((n,i)=>i<=2?hr(Y9(n),0,255):n),st=(e,n=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),Mt=(e,n)=>e==="none"?n:e,lo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(he.format.named)try{return he.format.named(e)}catch{}if((n=e.match(R9))||(n=e.match(B9))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+st(Mt(i[s],0),0,255);i=Zr(i);const o=n[4]!==void 0?+st(n[4],0,1):1;return i[3]=o,i}if(n=e.match(F9)){const i=n.slice(1,5);for(let o=0;o<4;o++)i[o]=+st(i[o],0,255);return i}if((n=e.match(N9))||(n=e.match(z9))){const i=n.slice(1,4);i[0]=+Mt(i[0].replace("deg",""),0),i[1]=+st(Mt(i[1],0),0,100)*.01,i[2]=+st(Mt(i[2],0),0,100)*.01;const o=Zr(J0(i)),s=n[4]!==void 0?+st(n[4],0,1):1;return o[3]=s,o}if(n=e.match(K9)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const o=J0(i);for(let s=0;s<3;s++)o[s]=Y9(o[s]);return o[3]=+n[4],o}if(n=e.match(H9)){const i=n.slice(1,4);i[0]=st(Mt(i[0],0),0,100),i[1]=st(Mt(i[1],0),-125,125,!0),i[2]=st(Mt(i[2],0),-125,125,!0);const o=m1();On("d50");const s=Zr(Z0(i));On(o);const l=n[4]!==void 0?+st(n[4],0,1):1;return s[3]=l,s}if(n=e.match(W9)){const i=n.slice(1,4);i[0]=st(i[0],0,100),i[1]=st(Mt(i[1],0),0,150,!1),i[2]=+Mt(i[2].replace("deg",""),0);const o=m1();On("d50");const s=Zr(j0(i));On(o);const l=n[4]!==void 0?+st(n[4],0,1):1;return s[3]=l,s}if(n=e.match(U9)){const i=n.slice(1,4);i[0]=st(Mt(i[0],0),0,1),i[1]=st(Mt(i[1],0),-.4,.4,!0),i[2]=st(Mt(i[2],0),-.4,.4,!0);const o=Zr(eo(i)),s=n[4]!==void 0?+st(n[4],0,1):1;return o[3]=s,o}if(n=e.match(Z9)){const i=n.slice(1,4);i[0]=st(Mt(i[0],0),0,1),i[1]=st(Mt(i[1],0),0,.4,!1),i[2]=+Mt(i[2].replace("deg",""),0);const o=Zr(D9(i)),s=n[4]!==void 0?+st(n[4],0,1):1;return o[3]=s,o}};lo.test=e=>R9.test(e)||N9.test(e)||H9.test(e)||W9.test(e)||U9.test(e)||Z9.test(e)||B9.test(e)||F9.test(e)||z9.test(e)||K9.test(e)||e==="transparent",Y.prototype.css=function(e){return py(this._rgb,e)};const my=(...e)=>new Y(...e,"css");de.css=my,he.format.css=lo,he.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&Ce(e)==="string"&&lo.test(e))return"css"}}),he.format.gl=(...e)=>{const n=me(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const yy=(...e)=>new Y(...e,"gl");de.gl=yy,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 u9(this._rgb,e)};const _y=(...e)=>new Y(...e,"hex");de.hex=_y,he.format.hex=c9,he.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&Ce(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:_i}=Math,G9=e=>{const n=e/100;let i,o,s;return n<66?(i=255,o=n<6?0:-155.25485562709179-.44596950469579133*(o=n-2)+104.49216199393888*_i(o),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*_i(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*_i(i),o=325.4494125711974+.07943456536662342*(o=n-50)-28.0852963507957*_i(o),s=255),[i,o,s,1]},{round:vy}=Math,by=(...e)=>{const n=me(e,"rgb"),i=n[0],o=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=G9(f);d[2]/d[0]>=o/i?l=f:s=f}return vy(f)};Y.prototype.temp=Y.prototype.kelvin=Y.prototype.temperature=function(){return by(this._rgb)};const co=(...e)=>new Y(...e,"temp");Object.assign(de,{temp:co,kelvin:co,temperature:co}),he.format.temp=he.format.kelvin=he.format.temperature=G9,Y.prototype.oklch=function(){return E9(this._rgb)},Object.assign(de,{oklch:(...e)=>new Y(...e,"oklch")}),he.format.oklch=D9,he.autodetect.push({p:2,test:(...e)=>{if(e=me(e,"oklch"),Ce(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(de,{analyze:C9,average:Lm,bezier:Tm,blend:ln,brewer:sy,Color:Y,colors:Fr,contrast:jm,contrastAPCA:Jm,cubehelix:Hm,deltaE:ry,distance:iy,input:he,interpolate:Nr,limits:x9,mix:Nr,random:Ym,scale:hi,scales:ay,valid:oy});var Cy=z("<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"),xy=z("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),wy=z("<div class=each_line>"),Ly=z("<div>"),$y=z("<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)>+"),Sy=z('<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 ky=e=>{const n=String(e.value).includes("rgba")?de(String(e.value)).alpha()*100:100,[i,o]=V(!1),[s,l]=V(n),[c,f]=V(e.value),[d,g]=V(e.value),[b,y]=V(!1),[v,$]=V(!1),[_,x]=V(e.value??"#000000"),[L,S]=V(0),[T,P]=V(1),[E,Z]=V(.5),[J,G]=V(!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)"]],N=re=>{try{return de(re).hex()}catch{return String(re||"#000000")}},Q=re=>{const Ae=N(re),[ce,Ee,ct]=de(Ae).hsl();S(Number.isFinite(ce)?Math.round(ce):0),P(Number.isFinite(Ee)?Ee:1),Z(Number.isFinite(ct)?ct:.5),x(Ae)},q=()=>{o(!1),$(!1)},ne=()=>{var re;f(e.value),g(e.value),(re=e.onChange)==null||re.call(e,e.value),q()},te=re=>{var Ee;f(re);const Ae=s()/100,ce=de(re).alpha(Ae).css();g(ce),(e.reactiveChange??!0)&&((Ee=e.onChange)==null||Ee.call(e,ce))},Pe=()=>{var ce;const re=s()/100,Ae=de(c()).alpha(re).css();g(Ae),(e.reactiveChange??!0)&&((ce=e.onChange)==null||ce.call(e,Ae))},oe=re=>{l(re.target.value),Pe()},pt=()=>{const re=c()??e.value??"#000000";Q(String(re)),$(!0),o(!0)},mt=re=>{S(re);const Ae=de.hsl(re,T(),E()).hex();x(Ae)},tt=re=>{let Ae=re.trim();Ae.startsWith("#")||(Ae="#"+Ae);try{const ce=de(Ae).hex(),[Ee,ct,Ge]=de(ce).hsl();S(Number.isFinite(Ee)?Math.round(Ee):L()),P(Number.isFinite(ct)?ct:T()),Z(Number.isFinite(Ge)?Ge:E()),x(ce)}catch{x(re)}},lt=re=>{var Ae,ce;(ce=(Ae=re.target).setPointerCapture)==null||ce.call(Ae,re.pointerId),G(!0),Be(re)},we=re=>{J()&&Be(re)},qe=re=>{var Ae,ce;try{(ce=(Ae=re.target).releasePointerCapture)==null||ce.call(Ae,re.pointerId)}catch{}G(!1)},Be=re=>{const ce=re.currentTarget.getBoundingClientRect(),Ee=Math.min(Math.max(0,re.clientX-ce.left),ce.width),ct=Math.min(Math.max(0,re.clientY-ce.top),ce.height),Ge=ce.width?Ee/ce.width:0,xt=ce.height?1-ct/ce.height:.5;P(Ge),Z(xt);const wn=de.hsl(L(),Ge,xt).hex();x(wn)},yt=()=>{try{const re=N(_());I[0].unshift(re),te(re),$(!1)}catch{}};return[Qe(()=>Qe(()=>!!i())()&&(()=>{var re=xy();return re.$$click=()=>{ne()},re})()),(()=>{var re=Cy(),Ae=re.firstChild,ce=Ae.nextSibling,Ee=ce.firstChild,ct=Ee.nextSibling,Ge=ct.firstChild,xt=Ge.nextSibling,wn=xt.firstChild,un=ct.nextSibling,qt=un.nextSibling,Jn=qt.firstChild,wt=Jn.nextSibling;return Ae.$$click=Oe=>{o(!0)},K(ce,(()=>{var Oe=Qe(()=>!v());return()=>Oe()&&I.map(Lt=>(()=>{var Ze=wy();return K(Ze,()=>Lt.map($t=>(()=>{var fn=Ly();return fn.$$click=Je=>{Je.preventDefault(),te($t)},Me(Je=>{var ut=`each_color ${$t==c()?"selected":""}`,R=`background-color: ${$t}`;return ut!==Je.e&&Nt(fn,Je.e=ut),Je.t=je(fn,R,Je.t),Je},{e:void 0,t:void 0}),fn})())),Ze})())})(),Ee),K(ce,(()=>{var Oe=Qe(()=>!v());return()=>Oe()&&(()=>{var Lt=$y(),Ze=Lt.firstChild;return Ze.$$click=$t=>{$t.stopPropagation(),pt()},Lt})()})(),Ee),K(ce,(()=>{var Oe=Qe(()=>!!v());return()=>Oe()&&(()=>{var Lt=Sy(),Ze=Lt.firstChild,$t=Ze.firstChild,fn=$t.nextSibling,Je=Ze.nextSibling,ut=Je.firstChild,R=ut.nextSibling,W=R.nextSibling,ve=W.nextSibling,j=Je.nextSibling,xe=j.firstChild,$e=xe.nextSibling,ht=j.nextSibling,Bn=ht.firstChild,er=Bn.nextSibling;return fn.$$input=Ne=>tt(Ne.currentTarget.value),Je.$$pointerup=Ne=>qe(Ne),Je.$$pointermove=Ne=>we(Ne),Je.$$pointerdown=Ne=>lt(Ne),xe.$$input=Ne=>mt(Number(Ne.currentTarget.value)),K($e,L),Bn.$$click=()=>$(!1),er.$$click=yt,Me(Ne=>{var tr=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${_()}`,Fn=`linear-gradient(to right, hsl(${L()}, 0%, 50%), hsl(${L()}, 100%, 50%))`,Nn=`${Math.round(T()*100)}%`,zn=`${Math.round((1-E())*100)}%`,Kn=_();return Ne.e=je($t,tr,Ne.e),Fn!==Ne.t&&Sr(ut,"background",Ne.t=Fn),Nn!==Ne.a&&Sr(ve,"left",Ne.a=Nn),zn!==Ne.o&&Sr(ve,"top",Ne.o=zn),Kn!==Ne.i&&Sr(ve,"background",Ne.i=Kn),Ne},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Me(()=>fn.value=_()),Me(()=>xe.value=L()),Lt})()})(),Ee),Ge.addEventListener("blur",()=>{y(!1)}),Ge.addEventListener("focus",()=>{y(!0)}),Ge.$$input=Oe=>{Oe.preventDefault,oe(Oe)},K(xt,s,wn),Jn.$$click=ne,wt.$$click=()=>{var Oe;e.reactiveChange===!1&&((Oe=e.onChange)==null||Oe.call(e,d())),q()},Me(Oe=>{var Lt=`width: 120px; background-color: ${d()}`,Ze=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,$t=`background-color: ${d()}; border: 1px solid ${c()}`;return Oe.e=je(re,Lt,Oe.e),Ze!==Oe.t&&Nt(re,Oe.t=Ze),Oe.a=je(Ge,$t,Oe.a),Oe},{e:void 0,t:void 0,a:void 0}),Me(()=>Ge.value=s()),re})()]};Et(["click","input","pointerdown","pointermove","pointerup"]);var Ay=z("<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 Yr={display:"flex","justify-content":"space-between",gap:"8px"},Gr={"text-align":"right"},My=20;function Ty(e,n,i,o,s,l,c,f,d){const g=s+d,b=l+d,y=c-d,v=f-d;return e>=g&&n>=b&&e+i<=y&&n+o<=v}function Py(e,n,i,o,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+o)),g=s-f,b=l-d;return g*g+b*b<c*c}function Oy(e,n,i,o,s,l,c,f,d,g){const b=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-o},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-o}};for(const S of b){const{left:T,top:P}=y[S];if(Ty(T,P,i,o,s,l,c,f,d))return{left:T,top:P}}const v=s+d,$=l+d,_=c-i-d,x=f-o-d,L=8;for(const S of b){const T=y[S],P=Math.min(Math.max(v,T.left),Math.max(v,_)),E=Math.min(Math.max($,T.top),Math.max($,x));if(!Py(P,E,i,o,e,n,L))return{left:P,top:E}}return{left:Math.min(Math.max(v,y.topRight.left),Math.max(v,_)),top:Math.min(Math.max($,y.topRight.top),Math.max($,x))}}const Iy=e=>{const n=()=>e.order.isBuy,[o,s]=V(),[l,c]=V({w:220,h:196});It(()=>{e.order,e.formattedTime;const y=o();if(!y)return;const v=()=>{const _=y.getBoundingClientRect();_.width>0&&_.height>0&&c({w:_.width,h:_.height})};v();const $=new ResizeObserver(v);$.observe(y),Lr(()=>$.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,b=Gt(()=>{var J;const y=l().w,v=l().h,$=(J=e.clipElement)==null?void 0:J.getBoundingClientRect(),_=($==null?void 0:$.left)??0,x=($==null?void 0:$.top)??0,L=($==null?void 0:$.right)??d,S=($==null?void 0:$.bottom)??g,T=typeof e.anchorX=="number"&&typeof e.anchorY=="number",P=T?e.anchorX:L-y-16,E=T?e.anchorY:x+84,Z=T?Oy(P,E,y,v,_,x,L,S,f,My):(()=>{const G=_+f,I=L-y-f,N=x+f,Q=S-v-f,q=L-y-16,ne=x+84;return{left:Math.min(Math.max(G,q),Math.max(G,I)),top:Math.min(Math.max(N,ne),Math.max(N,Q))}})();return{left:Z.left,top:Z.top,anchorX:P,anchorY:E,hasAnchor:T,w:y,h:v}});return It(()=>{b()}),(()=>{var y=Ay(),v=y.firstChild,$=v.nextSibling,_=$.firstChild,x=_.nextSibling,L=$.nextSibling,S=L.firstChild,T=S.nextSibling,P=L.nextSibling,E=P.firstChild,Z=E.nextSibling,J=P.nextSibling,G=J.firstChild,I=G.nextSibling,N=J.nextSibling,Q=N.firstChild,q=Q.nextSibling,ne=N.nextSibling,te=ne.firstChild,Pe=te.nextSibling;return j1(s,y),K(v,()=>n()?"买入":"卖出"),K(x,()=>String(e.order.orderId??e.order.id??"-")),K(T,()=>String(e.order.price)),K(Z,()=>String(e.order.size)),K(I,()=>String(e.order.fee??"-")),K(q,()=>String(e.order.pnl??"-")),K(Pe,()=>e.formattedTime),Me(oe=>{var pt=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,mt=`${b().left}px`,tt=`${b().top}px`,lt=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,we=Yr,qe=Gr,Be=Yr,yt=Gr,re=Yr,Ae=Gr,ce=Yr,Ee=Gr,ct=Yr,Ge=Gr,xt=Yr,wn=Gr;return pt!==oe.e&&Nt(y,oe.e=pt),mt!==oe.t&&Sr(y,"left",oe.t=mt),tt!==oe.a&&Sr(y,"top",oe.a=tt),lt!==oe.o&&Nt(v,oe.o=lt),oe.i=je($,we,oe.i),oe.n=je(x,qe,oe.n),oe.s=je(L,Be,oe.s),oe.h=je(T,yt,oe.h),oe.r=je(P,re,oe.r),oe.d=je(Z,Ae,oe.d),oe.l=je(J,ce,oe.l),oe.u=je(I,Ee,oe.u),oe.c=je(N,ct,oe.c),oe.w=je(q,Ge,oe.w),oe.m=je(ne,xt,oe.m),oe.f=je(Pe,wn,oe.f),oe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()},V9={"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 Ey(e,n){V9[e]=n}const C=(e,n)=>{var i;return((i=V9[n])==null?void 0:i[e])??e};V(!1),V(!1),V(!1),V(!1),V(!1),V("");const[Dy,Ry]=V("");function Q9(e){const n=Dy();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 By(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Fy(e){const n=Q9(e),i=By();return!!(n&&i&&(n===i||n.contains(i)))}const[Ny,j9]=V(!1),[y1,uo]=V(null),[_1,fo]=V(null);V();const[ge,q9]=V(null),[X9,J9]=V(null),[e5,t5]=V([""]),[n5,r5]=V({}),[_I,Xn]=V(!1);V("");const[ho,zy]=V(!1);V(1),V();const[Ky,vi]=V(null);var Hy=z("<img alt=symbol>"),Wy=z("<div class=symbol><span>"),Uy=z('<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">'),Zy=z("<button type=button>"),Yy=z('<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>'),Gy=z('<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 Vy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,o=()=>{zy(Fy(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",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Lr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var l=Uy(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,b=g.nextSibling,y=b.nextSibling,v=y.nextSibling,$=v.nextSibling;return j1(_=>{const x=n;x&&x.removeEventListener("wheel",s),n=_,_&&_.addEventListener("wheel",s,{passive:!1})},l),vn(f,"click",e.onMenuClick,!0),K(l,U(Te,{get when(){return e.symbol},get children(){var _=Wy(),x=_.firstChild;return vn(_,"click",e.onSymbolClick,!0),K(_,U(Te,{get when(){return e.symbol.logo},get children(){var L=Hy();return Me(()=>ot(L,"src",e.symbol.logo)),L}}),x),K(x,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),_}}),d),K(l,()=>e.periods.map(_=>(()=>{var x=Zy();return x.$$click=()=>{e.onPeriodChange(_)},K(x,()=>_.text),Me(()=>Nt(x,`item tools period ${i(_)?"selected":""}`)),x})()),d),vn(d,"click",e.onIndicatorClick,!0),vn(g,"click",e.onTimezoneClick,!0),vn(b,"click",e.onAlertClick,!0),vn(y,"click",e.onSettingClick,!0),vn(v,"click",e.onScreenshotClick,!0),$.$$click=()=>{if(ho())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const _=Q9(n);_&&(_.requestFullscreen??_.webkitRequestFullscreen??_.mozRequestFullScreen??_.msRequestFullscreen).call(_)}},K($,(()=>{var _=Qe(()=>!!ho());return()=>_()?Yy():Gy()})()),Me(_=>{var x=e.spread?"":"rotate",L=C("indicator",e.locale),S=C("timezone",e.locale),T=C("alerts",e.locale),P=C("setting",e.locale),E=C("screenshot",e.locale),Z=ho()?C("exit_full_screen",e.locale):C("full_screen",e.locale);return x!==_.e&&ot(f,"class",_.e=x),L!==_.t&&ot(d,"title",_.t=L),S!==_.a&&ot(g,"title",_.a=S),T!==_.o&&ot(b,"title",_.o=T),P!==_.i&&ot(y,"title",_.i=P),E!==_.n&&ot(v,"title",_.n=E),Z!==_.s&&ot($,"title",_.s=Z),_},{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 Qy=z('<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 jy=()=>Qy();var qy=z('<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 Xy=()=>qy();var Jy=z('<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 e_=()=>Jy();var t_=z('<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 n_=()=>t_();var r_=z('<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 i_=()=>r_();var o_=z('<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 a_=()=>o_();var s_=z('<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 l_=()=>s_();var c_=z('<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 u_=()=>c_();var f_=z('<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 d_=()=>f_();var h_=z('<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 g_=()=>h_();var p_=z('<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 m_=()=>p_();var y_=z('<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 __=()=>y_();var v_=z('<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 b_=()=>v_();var C_=z('<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 x_=()=>C_();var w_=z('<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 L_=()=>w_();var $_=z('<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 S_=()=>$_();var k_=z('<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 A_=()=>k_();var M_=z('<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 T_=()=>M_();var P_=z('<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 O_=()=>P_();var I_=z('<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 E_=()=>I_();var D_=z('<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 R_=()=>D_();var B_=z('<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 F_=()=>B_();var N_=z('<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 z_=()=>N_();var K_=z('<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 H_=()=>K_();var W_=z('<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 U_=()=>W_();var Z_=z('<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 Y_=()=>Z_();var G_=z('<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 V_=()=>G_();var Q_=z('<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 j_=()=>Q_();var q_=z('<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 X_=()=>q_();var J_=z('<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 ev=()=>J_();var tv=z('<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 nv=e=>(()=>{var n=tv();return ot(n,"class",`icon-overlay ${e??""}`),n})();var rv=z('<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 iv=e=>(()=>{var n=rv();return ot(n,"class",`icon-overlay ${e??""}`),n})();var ov=z('<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 av=()=>ov();var sv=z('<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 lv=()=>sv();var cv=z('<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 uv=()=>cv();var fv=z('<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 dv=()=>fv();var hv=z('<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 gv=()=>hv();var pv=z('<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 mv={horizontalStraightLine:jy,horizontalRayLine:Xy,horizontalSegment:e_,verticalStraightLine:n_,verticalRayLine:i_,verticalSegment:a_,straightLine:l_,rayLine:u_,segment:d_,arrow:g_,priceLine:m_,priceChannelLine:__,parallelStraightLine:b_,fibonacciLine:x_,fibonacciSegment:L_,fibonacciCircle:S_,fibonacciSpiral:A_,fibonacciSpeedResistanceFan:T_,fibonacciExtension:O_,gannBox:E_,circle:R_,triangle:F_,rect:z_,parallelogram:H_,threeWaves:U_,fiveWaves:Y_,eightWaves:V_,anyWaves:j_,abcd:X_,xabcd:ev,weak_magnet:nv,strong_magnet:iv,lock:uv,unlock:dv,visible:av,invisible:lv,remove:gv,brush:()=>pv()};function yv(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 _v(e){return[{key:"priceChannelLine",text:C("price_channel_line",e)},{key:"parallelStraightLine",text:C("parallel_straight_line",e)}]}function vv(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 bv(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 Cv(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 xv(e){return[{key:"weak_magnet",text:C("weak_magnet",e)},{key:"strong_magnet",text:C("strong_magnet",e)}]}const jt=e=>mv[e.name](e.class);var wv=z('<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>'),Lv=z('<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>'),i5=z("<li><span style=padding-left:8px>");const o5="drawing_tools",$v=e=>{const[n,i]=V("horizontalStraightLine"),[o,s]=V("priceChannelLine"),[l,c]=V("circle"),[f,d]=V("fibonacciLine"),[g,b]=V("xabcd"),[y,v]=V("weak_magnet"),[$,_]=V("normal"),[x,L]=V(!1),[S,T]=V(!0),[P,E]=V(""),Z=Gt(()=>[{key:"singleLine",icon:n(),list:yv(e.locale),setter:i},{key:"moreLine",icon:o(),list:_v(e.locale),setter:s},{key:"polygon",icon:l(),list:vv(e.locale),setter:c},{key:"fibonacci",icon:f(),list:bv(e.locale),setter:d},{key:"wave",icon:g(),list:Cv(e.locale),setter:b}]),J=Gt(()=>xv(e.locale));return(()=>{var G=wv(),I=G.firstChild,N=I.nextSibling,Q=N.firstChild,q=Q.nextSibling,ne=q.firstChild,te=N.nextSibling,Pe=te.firstChild,oe=te.nextSibling,pt=oe.firstChild,mt=oe.nextSibling,tt=mt.nextSibling,lt=tt.firstChild;return K(G,()=>Z().map(we=>(()=>{var qe=Lv(),Be=qe.firstChild,yt=Be.nextSibling,re=yt.firstChild;return qe.addEventListener("blur",()=>{E("")}),Be.$$click=()=>{e.onDrawingItemClick({groupId:o5,name:we.icon,visible:S(),lock:x(),mode:$()})},K(Be,U(jt,{get name(){return we.icon}})),yt.$$click=()=>{we.key===P()?E(""):E(we.key)},K(qe,(()=>{var Ae=Qe(()=>we.key===P());return()=>Ae()&&U(li,{class:"list",get children(){return we.list.map(ce=>(()=>{var Ee=i5(),ct=Ee.firstChild;return Ee.$$click=()=>{we.setter(ce.key),e.onDrawingItemClick({name:ce.key,lock:x(),mode:$()}),E("")},K(Ee,U(jt,{get name(){return ce.key}}),ct),K(ct,()=>ce.text),Ee})())}})})(),null),Me(()=>ot(re,"class",we.key===P()?"rotate":"")),qe})()),I),N.addEventListener("blur",()=>{E("")}),Q.$$click=()=>{let we=y();$()!=="normal"&&(we="normal"),_(we),e.onModeChange(we)},K(Q,(()=>{var we=Qe(()=>y()==="weak_magnet");return()=>we()?Qe(()=>$()==="weak_magnet")()?U(jt,{name:"weak_magnet",class:"selected"}):U(jt,{name:"weak_magnet"}):Qe(()=>$()==="strong_magnet")()?U(jt,{name:"strong_magnet",class:"selected"}):U(jt,{name:"strong_magnet"})})()),q.$$click=()=>{P()==="mode"?E(""):E("mode")},K(N,(()=>{var we=Qe(()=>P()==="mode");return()=>we()&&U(li,{class:"list",get children(){return J().map(qe=>(()=>{var Be=i5(),yt=Be.firstChild;return Be.$$click=()=>{v(qe.key),_(qe.key),e.onModeChange(qe.key),E("")},K(Be,U(jt,{get name(){return qe.key}}),yt),K(yt,()=>qe.text),Be})())}})})(),null),Pe.$$click=()=>{const we=!x();L(we),e.onLockChange(we)},K(Pe,(()=>{var we=Qe(()=>!!x());return()=>we()?U(jt,{name:"lock"}):U(jt,{name:"unlock"})})()),pt.$$click=()=>{const we=!S();T(we),e.onVisibleChange(we)},K(pt,(()=>{var we=Qe(()=>!!S());return()=>we()?U(jt,{name:"visible"}):U(jt,{name:"invisible"})})()),lt.$$click=()=>{e.onRemoveClick(o5)},K(lt,U(jt,{name:"remove"})),Me(()=>ot(ne,"class",P()==="mode"?"rotate":"")),G})()};Et(["click"]);var a5=z("<li class=title>"),Sv=z('<div style="padding:0 20px">'),s5=z("<li class=row>");const kv=e=>U(Cn,{get title(){return C("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=Sv();return K(n,U(li,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=a5();return K(i,()=>C("main_indicator",e.locale)),i})(),Qe(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=s5();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},K(s,U(t9,{checked:o,get label(){return C(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=a5();return K(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 o=i in e.subIndicators;return(()=>{var s=s5();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},K(s,U(t9,{checked:o,get label(){return C(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Et(["click"]);function l5(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 Av(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 Mv=z('<div style="padding:20px 20px 0 20px">');const Tv=e=>{const[n,i]=V(e.timezone),o=Gt(()=>Av(e.locale));return U(Cn,{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=Mv();return K(s,U(g1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},gr=e=>{const n=[{key:"solid",text:C("solid",e)},{key:"dashed",text:C("dashed",e)}],i=[{key:[4,4]}],o=[{key:"true",text:!0},{key:"false",text:!1}],s=[{key:1,text:1},{key:2,text:2},{key:3,text:3},{key:4,text:4},{key:5,text:5},{key:6,text:6},{key:7,text:7},{key:8,text:8},{key:9,text:9},{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:13,text:13},{key:14,text:14},{key:15,text:15}],l=[{key:"fill",text: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:o}},Pv=e=>{const{font_family:n,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=gr(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:o},{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:o},{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:o},{key:"candle.tooltip.text.color",text:C("Tooltip text color",e),component:"color"}]},Ov=e=>{const{fill_stroke:n,font_size:i,font_weight:o,none_always_followCross:s}=gr(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:o},{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:o},{key:"indicator.tooltip.text.color",text:C("Tooltip text color",e),component:"color"}]},Iv=e=>{const{font_size:n,size:i,font_weight:o}=gr(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:o},{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"}]},Ev=e=>{const{size:n,font_weight:i,font_size:o}=gr(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:o},{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}]},Dv=e=>{const{size:n}=gr(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"}]},Rv=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:c}=gr(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:o},{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:o},{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 c5(e){const{size:n}=gr(e);return[...Pv(e),...Ov(e),...Iv(e),...Ev(e),...Dv(e),...Rv(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 u5="chartstatedata",bi={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1},f5="trading-display",Bv=2,Fv=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Nv=["price_reach","price_rise_to","price_fall_to"];function zv(e){const n=e.price;if(n==null)return null;if(typeof n=="number"&&Number.isFinite(n))return n;if(typeof n=="string"&&n.trim()!==""){const i=Number(n.trim().replace(/,/g,""));return Number.isFinite(i)?i:null}return null}function Kv(e,n){var l,c,f;const i=(l=e.symbol)==null?void 0:l.trim();if(!i||i===n.ticker)return!0;const o=(c=n.name)==null?void 0:c.trim();if(o&&i===o)return!0;const s=(f=n.shortName)==null?void 0:f.trim();return!!(s&&i===s)}const Hv=h5(),d5=new WeakMap;function h5(){return{tradingConfig:{...bi},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],alertsState:[],overlaySignatures:new Map}}function Wv(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 g5(e){return e||(ge()??null)}function Dn(e){const n=g5(e);if(!n)return Hv;const i=d5.get(n);if(i)return i;const o=h5();return d5.set(n,o),o}function p5(){try{const e=localStorage.getItem(u5);return e?JSON.parse(e):{}}catch(e){return Wv("Failed to parse chart state storage, using defaults.",e),{}}}function m5(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:bi.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:bi.showHisOrders}}function y5(e){const n=m5(e.tradingDisplay);if(n)return n;const i=m5(e.trading);return i||{...bi}}function _5(e){const n={...e,version:Bv,tradingDisplay:y5(e)};delete n.trading,localStorage.setItem(u5,JSON.stringify(n))}function Uv(e){Dn(e),Ci(e)}function Ci(e){const n=Dn(e),i=p5();return n.tradingConfig=y5(i),_5(i),{...n.tradingConfig}}function v5(e,n){const i=Dn(n);i.tradingConfig={...e};const o=p5();o.tradingDisplay=i.tradingConfig,_5(o)}function xi(e,n){v5(e,n),Rn(n)}function Zv(e,n){const i=Dn(n);i.positionsState=e.slice(),Rn(n)}function Yv(e,n){const i=Dn(n);i.liquidationPriceState=e,e!=null&&Number.isFinite(e)&&v5({...i.tradingConfig,showLiquidation:!0},n),Rn(n)}function Gv(e,n){const i=Dn(n);i.openOrdersState=e.slice(),Rn(n)}function b5(e,n){const i=Dn(n);i.alertsState=e.slice(),Rn(n)}function Vv(e,n){const i=Dn(n);i.hisOrdersState=e.slice(),Rn(n)}function Qv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,o=e.length-1,s=-1;for(;i<=o;){const l=i+o>>1;e[l].timestamp<=n?(s=l,i=l+1):o=l-1}return s>=0?e[s].timestamp:null}function wi(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function v1(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function C5(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 jv(e,n){const i=(e.getOverlays({id:n.id})??[]).length>0,o=n.name!=="priceAlertLine";if(!i){const l=e.createOverlay({id:n.id,name:n.name,groupId:f5,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return o&&C5(e,l),l}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),o&&C5(e,n.id),n.id}function qv(e,n){(e.getOverlays()??[]).filter(o=>!!o.id&&Fv.some(s=>o.id.startsWith(s))&&!n.has(o.id)).forEach(o=>e.removeOverlay({id:o.id}))}function Xv(e,n,i,o,s){const l=[],c=e.tradingConfig.showPositions,f=e.tradingConfig.showLiquidation,d=e.tradingConfig.showOpenOrders,g=e.tradingConfig.showHisOrders,b=e.positionsState.filter(y=>y.size!==0&&Number.isFinite(y.avgPrice));if(c&&b.forEach((y,v)=>{const _=`trading-pos-${wi(y.id??`idx${v}`)}`,x=[{timestamp:i,value:y.avgPrice}],L={side:y.side,size:y.size,multiplier:y.multiplier??1};l.push({id:_,name:"positionAvgLine",points:x,extendData:L,signature:v1("positionAvgLine",x,L)})}),f&&b.length>0){const y=e.liquidationPriceState;if(y!=null&&Number.isFinite(y)){const v=[{timestamp:i,value:y}],$={};l.push({id:"trading-liq",name:"liquidationLine",points:v,extendData:$,signature:v1("liquidationLine",v,$)})}}if(d&&e.openOrdersState.filter(v=>v.orderType!=="market"&&Number.isFinite(v.price)&&v.size!==0&&(v.side==="long"||v.side==="short")&&typeof v.isBuy=="boolean").forEach((v,$)=>{const x=`trading-order-${wi(v.id??`idx${$}`)}`,L=[{timestamp:i,value:v.price}],S={isBuy:v.isBuy,size:v.size};l.push({id:x,name:"pendingOrderLine",points:L,extendData:S,signature:v1("pendingOrderLine",L,S)})}),g){const y=e.hisOrdersState.filter(_=>Number.isFinite(_.timestamp)&&Number.isFinite(_.price)&&Number.isFinite(_.size)&&_.size!==0&&typeof _.isBuy=="boolean"),v=new Map,$=new Map;n.forEach(_=>$.set(_.timestamp,{high:_.high,low:_.low})),y.forEach((_,x)=>{const L=Qv(n,_.timestamp);if(L==null)return;const S=`${L}_${_.isBuy?"B":"S"}`,T=v.get(S)??0;v.set(S,T+1);const P=$.get(L),Z=`trading-his-order-${wi(_.id??String(_.orderId??`idx${x}`))}`,J=[{timestamp:L,value:_.price}],G={..._,stackIndex:T,barHigh:P==null?void 0:P.high,barLow:P==null?void 0:P.low};l.push({id:Z,name:"hisOrderMark",points:J,extendData:G,signature:v1("hisOrderMark",J,G)})})}if(o){const y=e.alertsState;for(let v=0;v<y.length;v++){const $=y[v];if(!Nv.includes($.type))continue;const _=zv($);if(_==null||!Kv($,o))continue;const L=`alert-${wi($.id||`idx_${v}`)}`,S={...$,price:_},T=[{timestamp:i,value:_}],P={alert:S,showInfo:!1,themeKey:Ia(s,Pa,Oa)};l.push({id:L,name:"priceAlertLine",points:T,extendData:P,signature:v1("priceAlertLine",T,P)})}}return l}function Jv(e){(e.getOverlays({groupId:"alert_overlays"})??[]).forEach(i=>{i.id&&e.removeOverlay({id:i.id})})}function Rn(e){var v;const n=g5(e),i=Dn(n);if(!n)return;const o=n;Jv(o);const s=o.getDataList(),l=((v=s.at(-1))==null?void 0:v.timestamp)??Date.now(),c=y1()??null,f=Xv(i,s,l,c,o),d=new Map(f.map($=>[$.id,$])),g=o.getOverlays({groupId:f5})??[],b=new Set(g.map($=>$.id).filter($=>!!$));b.forEach($=>{d.has($)||o.removeOverlay({id:$})});const y=new Map;f.forEach($=>{const _=i.overlaySignatures.get($.id);if(!b.has($.id)||_!==$.signature){const L=jv(o,$);y.set(L,$.signature);return}y.set($.id,$.signature)}),i.overlaySignatures=y,qv(o,new Set(y.keys()))}var b1=z("<div class=component><span>"),eb=z("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),tb=z("<button>");const nb=e=>{const[n,i]=V(e.currentStyles),[o,s]=V(c5(e.locale)),[l,c]=V("trading"),[f,d]=V(Ci());It(()=>{s(c5(e.locale))}),It(()=>{l()==="trading"&&d(Ci())});const g=(v,$)=>{const _=localStorage.getItem("chartstatedata");let x;_?(x=JSON.parse(_),x.styleObj=x.styleObj??{}):x={styleObj:{}};const L=v.key.indexOf(".");L===-1?v.key:v.key.slice(0,L)+""+v.key.slice(L),h1(x.styleObj,v.key,$),localStorage.setItem("chartstatedata",JSON.stringify(x)),Xn(!0);const S={};h1(S,v.key,$),h1(S,v.key,$);const T=ue.utils.clone(n());h1(T,v.key,$),i(T),s(o().map(P=>({...P}))),e.onChange(S)},b=()=>{const v=localStorage.getItem("chartstatedata");let $;v&&($=JSON.parse(v),$.styleObj&&($.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify($))),e.onRestoreDefault(o()),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 U(Cn,{get title(){return C("setting",e.locale)},width:640,height:560,get buttons(){return[{children:C("restore_default",e.locale),onClick:()=>{b()}}]},get onClose(){return e.onClose},get children(){var v=eb(),$=v.firstChild,_=$.nextSibling;return K($,()=>y.map(x=>(()=>{var L=tb();return L.$$click=()=>c(x.key),K(L,()=>x.text),Me(()=>Nt(L,`${l()==x.key?"selected":""}`)),L})())),K(_,U(Te,{get when(){return l()==="trading"},get fallback(){return U(Xa,{get each(){return o().filter(x=>x.key.includes(l()))},children:x=>{let L;const S=ue.utils.formatValue(n(),x.key);switch(x.component){case"select":{L=U(g1,{style:{width:"120px"},get value(){return C(S,e.locale)},get dataSource(){return x.dataSource},onSelected:T=>{const P=T.key;g(x,P)}});break}case"switch":{const T=!!S;L=U(p1,{open:T,onChange:()=>{g(x,!T)}});break}case"color":{L=U(ky,{style:{width:"120px"},value:S,reactiveChange:!1,onChange:T=>{g(x,T)}});break}}return(()=>{var T=b1(),P=T.firstChild;return K(P,()=>x.text),K(T,L,null),T})()}})},get children(){return[(()=>{var x=b1(),L=x.firstChild;return K(L,()=>C("trading_display_positions",e.locale)),K(x,U(p1,{get open(){return f().showPositions},onChange:()=>{const S={...f(),showPositions:!f().showPositions};d(S),xi(S)}}),null),x})(),(()=>{var x=b1(),L=x.firstChild;return K(L,()=>C("trading_display_liquidation",e.locale)),K(x,U(p1,{get open(){return f().showLiquidation},onChange:()=>{const S={...f(),showLiquidation:!f().showLiquidation};d(S),xi(S)}}),null),x})(),(()=>{var x=b1(),L=x.firstChild;return K(L,()=>C("trading_display_open_orders",e.locale)),K(x,U(p1,{get open(){return f().showOpenOrders},onChange:()=>{const S={...f(),showOpenOrders:!f().showOpenOrders};d(S),xi(S)}}),null),x})(),(()=>{var x=b1(),L=x.firstChild;return K(L,()=>C("trading_display_his_orders",e.locale)),K(x,U(p1,{get open(){return f().showHisOrders},onChange:()=>{const S={...f(),showHisOrders:!f().showHisOrders};d(S),xi(S)}}),null),x})()]}})),v}})};Et(["click"]);var rb=z('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const ib=e=>U(Cn,{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=rb(),i=n.firstChild;return Me(()=>ot(i,"src",e.url)),n}}),ob={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 ab=z("<div class=klinecharts-pro-indicator-setting-modal-content>"),sb=z("<div class=param-row><span>");const lb=e=>{const[n,i]=V(ue.utils.clone(e.params.calcParams)),o=s=>ob[s];return U(Cn,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:C("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];ue.utils.clone(n()).forEach((c,f)=>{!ue.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=ab();return K(s,()=>o(e.params.indicatorName).map((l,c)=>(()=>{var f=sb(),d=f.firstChild;return K(d,()=>C(l.paramNameKey,e.locale)),K(f,U(i9,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const b=ue.utils.clone(n());b[c]=g,i(b)}}),null),f})())),s}})};var cb=z('<div style="margin:10px 20px 0 20px">'),ub=z('<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">'),fb=z("<img alt=symbol>"),db=z("<li><div><span>");const hb=e=>{const[n,i]=V(""),[o]=dc(n,e.datafeed.searchSymbols.bind(e.datafeed));return U(Cn,{get title(){return C("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=cb();return K(s,U(i9,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return C("symbol_code",e.locale)},get suffix(){return ub()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),K(s,U(li,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var c=db(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},K(f,U(Te,{get when(){return l.logo},get children(){var g=fb();return Me(()=>ot(g,"src",l.logo)),g}}),d),K(d,()=>l.shortName??l.ticker,null),K(d,()=>`${l.name?`(${l.name})`:""}`,null),K(c,()=>l.exchange??"",null),Me(()=>ot(d,"title",l.name??"")),c})()}),null),s}})};Et(["click"]);var gb=z("<div class=row><span>价格</span><input class=field-input type=number min=0 step=any>"),pb=z("<div class=row><span>分钟"),mb=z("<div class=row><span>百分比</span><input class=field-input type=number min=1 max=100 step=1>"),yb=z("<div class=error-text>"),_b=z("<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 x5=[{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:"价格跌幅超过"}],w5=[{key:"repeat",text:"重复提醒"},{key:"once",text:"仅提醒一次"}],L5=[{key:"5m",text:"5分"},{key:"1h",text:"1小时"},{key:"4h",text:"4小时"},{key:"24h",text:"24小时"}],vb=e=>{const[n,i]=V(!1),[o,s]=V(""),[l,c]=V({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=Gt(()=>{const g=l().type;return g==="price_reach"||g==="price_rise_to"||g==="price_fall_to"}),d=async()=>{if(n())return;const g=l(),b={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}b.price=y}else{const y=Number(g.percent);if(!Number.isInteger(y)||y<1||y>100){s("百分比需为 1-100 的整数");return}b.window=g.window,b.percent=y}s(""),i(!0);try{await e.onSubmit(b)&&e.onClose()}finally{i(!1)}};return U(Cn,{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=_b(),b=g.firstChild;b.firstChild;var y=b.nextSibling;y.firstChild;var v=y.nextSibling,$=v.firstChild,_=$.nextSibling;return K(b,U(g1,{style:{width:"220px"},get value(){var x;return(x=x5.find(L=>L.key===l().type))==null?void 0:x.text},dataSource:x5,onSelected:x=>{const L=x.key;c(S=>({...S,type:L}))}}),null),K(g,U(Te,{get when(){return f()},get children(){var x=gb(),L=x.firstChild,S=L.nextSibling;return S.$$input=T=>{c(P=>({...P,price:T.target.value}))},Me(()=>S.value=l().price),x}}),y),K(g,U(Te,{get when(){return!f()},get children(){return[(()=>{var x=pb();return x.firstChild,K(x,U(g1,{style:{width:"220px"},get value(){var L;return(L=L5.find(S=>S.key===l().window))==null?void 0:L.text},dataSource:L5,onSelected:L=>{const S=L.key;c(T=>({...T,window:S}))}}),null),x})(),(()=>{var x=mb(),L=x.firstChild,S=L.nextSibling;return S.$$input=T=>{c(P=>({...P,percent:T.target.value}))},Me(()=>S.value=l().percent),x})()]}}),y),K(y,U(g1,{style:{width:"220px"},get value(){var x;return(x=w5.find(L=>L.key===l().frequency))==null?void 0:x.text},dataSource:w5,onSelected:x=>{const L=x.key;c(S=>({...S,frequency:L}))}}),null),_.$$input=x=>{c(L=>({...L,remark:x.target.value}))},K(g,U(Te,{get when(){return!!o()},get children(){var x=yb();return K(x,o),x}}),null),Me(()=>_.value=l().remark),g}})};Et(["input"]);var bb=z("<dt>标的"),Li=z("<dd>"),Cb=z("<dt>价格"),xb=z("<dt>时间窗"),wb=z("<dt>百分比"),Lb=z("<dl class=alert-detail-grid><dt>类型</dt><dd></dd><dt>频率</dt><dd></dd><dt>备注</dt><dd>");function $b(e){return e==="price_reach"?"价格达到":e==="price_rise_to"?"价格上涨至":e==="price_fall_to"?"价格下跌至":e==="price_rise_pct_over"?"价格涨幅超过":"价格跌幅超过"}function Sb(e){return e==="repeat"?"重复提醒":"仅提醒一次"}function kb(e){return e==="5m"?"5分":e==="1h"?"1小时":e==="4h"?"4小时":e==="24h"?"24小时":e??"—"}const $5=e=>(()=>{var n=Lb(),i=n.firstChild,o=i.nextSibling,s=o.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return K(n,U(Te,{get when(){return!!e.alert.symbol},get children(){return[bb(),(()=>{var d=Li();return K(d,()=>e.alert.symbol),d})()]}}),i),K(o,()=>$b(e.alert.type)),K(n,U(Te,{get when(){return Qe(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[Cb(),(()=>{var d=Li();return K(d,()=>String(e.alert.price)),d})()]}}),s),K(n,U(Te,{get when(){return e.alert.window!=null},get children(){return[xb(),(()=>{var d=Li();return K(d,()=>kb(e.alert.window)),d})()]}}),s),K(n,U(Te,{get when(){return e.alert.percent!=null},get children(){return[wb(),(()=>{var d=Li();return K(d,()=>`${e.alert.percent}%`),d})()]}}),s),K(l,()=>Sb(e.alert.frequency)),K(f,(()=>{var d=Qe(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var Ab=z("<div class=alert-empty>暂无预警"),Mb=z("<div class=klinecharts-pro-alert-modal><div class=alert-list></div><div class=alert-add-btn-container><button type=button class=alert-add-btn>添加"),Tb=z("<div class=alert-item title=双击查看详情><span class=alert-text></span><button type=button class=alert-delete>删除"),Pb=z("<div class=klinecharts-pro-alert-detail>");function Ob(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 Ib=e=>{const[n,i]=V(!1),[o,s]=V(null);return U(Cn,{title:"预警",width:480,get onClose(){return e.onClose},get children(){return[(()=>{var l=Mb(),c=l.firstChild,f=c.nextSibling,d=f.firstChild;return K(c,U(Xa,{get each(){return e.alerts},children:g=>(()=>{var b=Tb(),y=b.firstChild,v=y.nextSibling;return b.$$dblclick=()=>{s(g)},K(y,()=>Ob(g)),v.$$dblclick=$=>{$.stopPropagation()},v.$$click=async()=>{var $;await(($=e.onRemoveAlert)==null?void 0:$.call(e,g))},b})()}),null),K(c,U(Te,{get when(){return e.alerts.length===0},get children(){return Ab()}}),null),d.$$click=()=>{i(!0)},l})(),U(Te,{get when(){return n()},get children(){return U(vb,{onClose:()=>{i(!1)},onSubmit:async l=>{var c;return await((c=e.onAddAlert)==null?void 0:c.call(e,l))??!0}})}}),U(Te,{get when(){return o()},children:l=>U(Cn,{title:"预警详情",width:400,height:260,onClose:()=>{s(null)},get children(){var c=Pb();return K(c,U($5,{get alert(){return l()}})),c}})})]}})};Et(["click","dblclick"]);class go{constructor(n,i){yn(this,"_chart");yn(this,"_charts",new Map);yn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const o=ue.init(n,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(n,i){return new go(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,o){return this._chart.createIndicator(n,i,o)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,o){return this._chart.zoomAtCoordinate(n,i,o)}zoomAtDataIndex(n,i,o){return this._chart.zoomAtDataIndex(n,i,o)}zoomAtTimestamp(n,i,o){return this._chart.zoomAtTimestamp(n,i,o)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,o){return this._chart.getConvertPictureUrl(n,i,o)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const S5=6,Eb=14,k5=14,A5=18;function Db(e,n){const i=n.points[0],o=n.extendData;if(!i||!o||!Number.isFinite(i.timestamp)||typeof o.isBuy!="boolean")return null;const l=e.getDataList().find(S=>S.timestamp===i.timestamp);let c,f;if(l&&Number.isFinite(l.high)&&Number.isFinite(l.low)?(c=l.high,f=l.low):(c=typeof o.barHigh=="number"&&Number.isFinite(o.barHigh)?o.barHigh:void 0,f=typeof o.barLow=="number"&&Number.isFinite(o.barLow)?o.barLow:void 0),c===void 0||f===void 0)return null;const g=e.convertToPixel({timestamp:i.timestamp,value:i.value}).x,b=e.convertToPixel({timestamp:i.timestamp,value:c}).y,y=e.convertToPixel({timestamp:i.timestamp,value:f}).y;if(typeof g!="number"||typeof b!="number"||typeof y!="number")return null;const v=Math.max(0,o.stackIndex??0),$=Math.abs(y-b),_=Number.isFinite($)&&$<A5?Math.max(0,A5-$)*.65:0,x=Eb+_,L=o.isBuy?y+x+v*k5:b-x-v*k5;return{cx:g,cy:L-.5}}function Rb(e,n,i){const o=e.getOverlays({name:"hisOrderMark",paneId:"candle_pane"})??[],s=e.getDom("candle_pane","main"),l=s==null?void 0:s.getBoundingClientRect(),c=S5*S5,f=[];for(const y of o){const v=y.id;if(!v)continue;const $=Db(e,y);if(!$)continue;const _=n-$.cx,x=i-$.cy,L=_*_+x*x;if(L>c)continue;const S=y.extendData,T=Math.max(0,S.stackIndex??0);f.push({overlayId:v,order:S,distSq:L,stackIndex:T,cx:$.cx,cy:$.cy})}if(f.length===0)return null;f.sort((y,v)=>y.distSq!==v.distSq?y.distSq-v.distSq:v.stackIndex-y.stackIndex);const d=f[0],g=l?l.left+d.cx:d.cx,b=l?l.top+d.cy:d.cy;return{overlayId:d.overlayId,order:d.order,anchorX:g,anchorY:b}}const M5={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function Bb(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 Fb=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(o=>{delete i[o]}),i},Nb=e=>{const n=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return n.forEach(o=>{delete i[o]}),i},zb=()=>{const e=(_,x,L)=>{const S=localStorage.getItem("chartstatedata");let T;const P=Fb(it.cloneDeep(_));return S?(T=JSON.parse(S),T.indicators?T.indicators.find(E=>{var Z,J;return((Z=E.value)==null?void 0:Z.name)===P.name&&((J=E.paneOptions)==null?void 0:J.id)===(L==null?void 0:L.id)})?T.indicators=T.indicators.map(E=>{var Z;return((Z=E.value)==null?void 0:Z.id)!==P.id?E:{value:P,isStack:x,paneOptions:L}}):T.indicators.push({value:P,isStack:x,paneOptions:L}):T.indicators=[{value:P,isStack:x,paneOptions:L}]):T={indicators:[{value:P,isStack:x,paneOptions:L}]},localStorage.setItem("chartstatedata",JSON.stringify(T)),Xn(!0),!1},n=_=>{const x=localStorage.getItem("chartstatedata");let L;const S=Nb(it.cloneDeep(_));return x?(L=JSON.parse(x),L.overlays?L.overlays.find(T=>{var P;return((P=T.value)==null?void 0:P.id)===S.id})?L.overlays=L.overlays.map(T=>{var P;return((P=T.value)==null?void 0:P.id)!==S.id?T:{value:S,paneId:_.paneId}}):L.overlays.push({value:S,paneId:_.paneId}):L.overlays=[{value:_,paneId:_.paneId}]):L={overlays:[{value:S,paneId:_.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(L)),Xn(!0),!1};function i(_,x,L,S,T=!1){x==="VOL"&&(S={axis:{gap:{bottom:2}},...S});const P=(S==null?void 0:S.id)==="candle_pane",E=_.createIndicator({name:x,createTooltipDataSource:Z=>{const G=Z.chart.getStyles().indicator.tooltip.features,I=[];return P&&I.push(Z.indicator.visible?G[1]:G[0]),I.push(G[2]),I.push(G[3]),{features:I}}},L,S)??null;if(E&&T){const Z=_==null?void 0:_.getIndicators({id:E,name:x})[0];Z&&e(Z,L,{id:E})}return E}const o=(_,x,L=!1)=>{var E,Z,J;const S=(E=ge())==null?void 0:E.createOverlay({..._,paneId:x});if(!S)return!1;const T=(Z=ge())==null?void 0:Z.getOverlays({id:S})[0],P=G=>(G.preventDefault&&G.preventDefault(),s(G.overlay.id),!0);T&&(_.properties&&T.setProperties(_.properties,S),(J=ge())==null||J.overrideOverlay({id:T.id,onDrawEnd:G=>["measure"].includes(T.name)?!1:n(G.overlay),onPressedMoveEnd:G=>["measure"].includes(T.name)?!1:n(G.overlay),onSelected:G=>vi(G.overlay),onDeselected:()=>vi(null),onRightClick:T.onRightClick?T.onRightClick:P,onDoubleClick:T.onDoubleClick?T.onDoubleClick:P}),L||n(T))},s=_=>{var L,S,T;const x=localStorage.getItem("chartstatedata");if(x){let P=JSON.parse(x);P.overlays=(L=P.overlays)==null?void 0:L.filter(E=>{var Z;return((Z=E.value)==null?void 0:Z.id)!==_}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0)}(S=ge())==null||S.removeOverlay({id:_}),((T=Ky())==null?void 0:T.id)===_&&vi(null)},l=(_,x)=>{var S,T;const L=localStorage.getItem("chartstatedata");if(L){let P=JSON.parse(L);P.overlays=(S=P.overlays)==null?void 0:S.map(E=>{var Z;return((Z=E.value)==null?void 0:Z.id)===_&&(E.value={...E.value,...x},E.paneId=x.paneId??E.paneId),E}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0),(T=ge())==null||T.overrideOverlay({...x,id:_})}},c=(_,x)=>{var S,T;const L=localStorage.getItem("chartstatedata");if(L){let P=JSON.parse(L);P.overlays=(S=P.overlays)==null?void 0:S.map(Z=>{var J;return((J=Z.value)==null?void 0:J.id)===_&&(Z.value.properties={...Z.value.properties,...x}),Z});const E=(T=ge())==null?void 0:T.getOverlayById(_);E&&E.setProperties(x,_),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0)}},f=_=>{const x=[...e5()];_.added?(i(ge(),_.name,!0,{id:"candle_pane"},!0),x.push(_.name)):(b(_.name,"candle_pane"),x.splice(x.indexOf(_.name),1)),t5(x)},d=_=>{const x={...n5()};if(_.added){const L=i(ge(),_.name,!1,void 0,!0);L&&(x[_.name]=L)}else _.paneId&&(b(_.name,_.paneId),delete x[_.name]);r5(x)},g=(_,x)=>{var S,T;const L=localStorage.getItem("chartstatedata");if(L){let P=JSON.parse(L);P.indicators=(S=P.indicators)==null?void 0:S.map(E=>{var Z;return((Z=E.value)==null?void 0:Z.name)===_.indicatorName&&(E.value.name=_.indicatorName,E.value.calcParams=x,E.paneOptions.id=_.paneId),E}),localStorage.setItem("chartstatedata",JSON.stringify(P)),Xn(!0),(T=ge())==null||T.overrideIndicator({name:_.indicatorName,calcParams:x,paneId:_.paneId})}},b=(_,x,L)=>{var T,P;const S=localStorage.getItem("chartstatedata");if((T=ge())==null||T.removeIndicator({id:_,paneId:L,name:x}),S){let E=JSON.parse(S);E.indicators=(P=E.indicators)==null?void 0:P.filter(Z=>{var J,G;return((J=Z.paneOptions)==null?void 0:J.id)!==L&&((G=Z.value)==null?void 0:G.name)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(E)),Xn(!0)}},y=(_,x)=>{document.documentElement.style.setProperty(_,x,"important");const L=document.querySelector("[data-theme]");L&&L.style.setProperty(_,x,"important")},v=_=>{var x;_.background&&y("--klinecharts-pro-pane-background",_.background),_.backgroundGradientStartColor&&y("--klinecharts-pro-pane-background-gradient-start",_.backgroundGradientStartColor),_.backgroundGradientEndColor&&y("--klinecharts-pro-pane-background-gradient-end",_.backgroundGradientEndColor),(x=_.separator)!=null&&x.color&&y("--klinecharts-pro-border-color",_.separator.color)};return{createIndicator:i,modifyIndicator:g,popIndicator:b,syncIndiObject:e,syncObject:n,pushOverlay:o,modifyOverlay:l,modifyOverlayProperties:c,popOverlay:s,pushMainIndicator:f,pushSubIndicator:d,restoreChartState:async _=>{const x=T=>{const P=JSON.parse(T);P.figures,P.overlays&&P.overlays.forEach(E=>{o(E.value,E.paneId,!0)}),P.indicators&&setTimeout(()=>{const E=[...e5()],Z={...n5};P.indicators.forEach(J=>{var G,I,N;J.value&&((G=ge())==null||G.createIndicator(J.value,J.isStack,J.paneOptions),((I=J.paneOptions)==null?void 0:I.id)==="candle_pane"?E.push(J.value.name):Z[J.value.name]=(N=J.paneOptions)==null?void 0:N.id)}),t5(E),r5(Z)},500)},L=localStorage.getItem("chartstatedata");L&&x(L);const S=JSON.parse(L)??{};_&&(v(_),S.styleObj||(S.styleObj=_,localStorage.setItem("chartstatedata",JSON.stringify(S)))),S.styleObj&&J9(S.styleObj)}}};function Kb(e,n){let i=null;const o=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:f=>{const g=f.detail;if(!!(g!=null&&g.visible)){o(),n({visible:!0,order:(g==null?void 0:g.order)??null,x:(g==null?void 0:g.anchorX)??null,y:(g==null?void 0:g.anchorY)??null});return}o(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:o,setExclusiveHover:f=>{o(),n({visible:!0,order:f.order,x:f.anchorX??null,y:f.anchorY??null})},resetHoverToHidden:()=>{o(),n({visible:!1,order:null,x:null,y:null})}}}function Hb(e,n){const i=[];let o=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{o+=1;const c=o;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==o)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var Wb=z('<i class="icon-close klinecharts-pro-load-icon">'),Ub=z("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),Zb=z("<div class=klinecharts-pro-alert-detail>");const{createIndicator:po,pushOverlay:Yb,restoreChartState:Gb}=zb(),Vb=[0,120,360,900],Qb=120;function jb(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 qb=e=>{let n,i=null,o;const[s,l]=V(e.theme),[c,f]=V(e.locale),[d,g]=V(!1),[b,y]=V([...e.mainIndicators]),[v,$]=V({}),[_,x]=V(!1),[L,S]=V({key:e.timezone,text:l5(e.timezone,e.locale)}),[T,P]=V(!1),[E,Z]=V(!1),[J,G]=V(),[I,N]=V(""),[Q,q]=V(e.drawingBarVisible),[ne,te]=V([...e.alerts??[]]),[Pe,oe]=V(null),[pt,mt]=V(!1),[tt,lt]=V(!1),[we,qe]=V(null),[Be,yt]=V({x:null,y:null});let re=null,Ae=!1,ce=null,Ee=!1,ct;const[Ge,xt]=V(M5),wn=async R=>{var W;return await((W=e.onRemoveAlert)==null?void 0:W.call(e,R))??!0};ec({onRemove:R=>{wn(R)}}),fo(e.period),uo(e.symbol);const un=Kb(Qb,R=>{lt(R.visible),qe(R.order),yt({x:R.x,y:R.y})});let qt=null;const Jn=R=>{const W=R;if(!W)return;const ve=ge(),j=n,xe=j==null?void 0:j.closest(".klinecharts-pro");if(!ve||!xe||W.paneId!=="candle_pane"||typeof W.x!="number"||typeof W.y!="number")return;const $e=Rb(ve,W.x,W.y);if($e){if($e.overlayId===qt)return;qt=$e.overlayId,un.setExclusiveHover({order:$e.order,anchorX:$e.anchorX,anchorY:$e.anchorY});return}qt!=null&&(qt=null,un.resetHoverToHidden())},wt=Hb(()=>Rn(ge()),Vb),Oe=Bb({getApi:()=>ge(),mainIndicators:b,setMainIndicators:y,subIndicators:v,setSubIndicators:$,indicatorSettingModalParams:Ge,setIndicatorSettingModalParams:xt,createIndicator:po}),Lt=R=>{const W=R.detail,ve=(W==null?void 0:W.sourceContainer)??null,j=n==null?void 0:n.closest(".klinecharts-pro");j&&(ve&&ve!==j||W!=null&&W.alert&&oe(W.alert))},Ze=R=>{const W=R.detail,ve=(W==null?void 0:W.sourceContainer)??null,j=n==null?void 0:n.closest(".klinecharts-pro");j&&(ve&&ve!==j||un.onEvent(R))},$t=()=>{if(Ae)return;Ae=!0;const R=i;R==null||R.unsubscribeAction("onCrosshairChange",Jn),qt=null,un.clear(),wt.clear(),re!=null&&(window.cancelAnimationFrame(re),re=null);const W=n==null?void 0:n.closest(".klinecharts-pro");W==null||W.removeEventListener(F1,Ze),W==null||W.removeEventListener(c1,Lt),window.removeEventListener(F1,Ze),window.removeEventListener(c1,Lt),window.removeEventListener("resize",Je),n&&ue.dispose(n),ge()===R&&q9(null),i=null},fn={setTheme:l,getTheme:()=>s(),setStyles:J9,getStyles:()=>X9()??{},setLocale:f,getLocale:()=>c(),setTimezone:R=>{S({key:R,text:l5(e.timezone,c())})},getTimezone:()=>L().key,setSymbol:uo,getSymbol:()=>y1(),setPeriod:fo,getPeriod:()=>_1(),getInstanceApi:()=>ge(),resize:()=>{var R;return(R=ge())==null?void 0:R.resize()},dispose:()=>{$t()},setPositions:R=>{Zv(R,ge())},setLiqPrice:R=>{Yv(R,ge())},setOpenOrders:R=>{Gv(R,ge())},setHisOrders:R=>{Vv(R,ge())},setAlerts:R=>{te([...R]),b5(R,ge())}};e.ref(fn);const Je=()=>{re==null&&(re=window.requestAnimationFrame(()=>{var R;re=null,(R=ge())==null||R.resize()}))},ut=()=>{wt.schedule()};return b0(()=>{const R=n==null?void 0:n.closest(".klinecharts-pro");R==null||R.addEventListener(F1,Ze),R==null||R.addEventListener(c1,Lt),window.addEventListener(F1,Ze),window.addEventListener(c1,Lt),window.addEventListener("resize",Je);const W=go.init(n,{formatter:{formatDate:j=>{switch(_1().type){case"minute":return j.type==="xAxis"?ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"HH:mm"):ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM-DD HH:mm");case"hour":return j.type==="xAxis"?ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"MM-DD HH:mm"):ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM-DD");case"month":return j.type==="xAxis"?ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM"):ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM-DD");case"year":return j.type==="xAxis"?ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY"):ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM-DD")}return ue.utils.formatDate(j.dateTimeFormat,j.timestamp,"YYYY-MM-DD HH:mm")}}});if(i=W,q9(W),W){Ry(e.rootElementId);const j=W.getDom("candle_pane","main");if(j){let ht=document.createElement("div");if(ht.className="klinecharts-pro-watermark",ue.utils.isString(e.watermark)){const Bn=e.watermark.replace(/(^\s*)|(\s*$)/g,"");ht.innerHTML=Bn}else ht.appendChild(e.watermark);j.appendChild(ht)}const xe=W.getDom("candle_pane","yAxis");o=document.createElement("span"),o.className="klinecharts-pro-price-unit",xe==null||xe.appendChild(o),W.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),W.setBarSpace(400),W.subscribeAction("onCrosshairFeatureClick",ht=>{}),W.subscribeAction("onIndicatorTooltipFeatureClick",Oe.onIndicatorTooltipFeatureClick),W.subscribeAction("onCandleTooltipFeatureClick",ht=>{}),W.subscribeAction("onZoom",ht=>{}),W.subscribeAction("onCrosshairChange",Jn),Gb(e.overrides),Uv(W),Ci(W),b5(e.alerts??[],W);const $e=y1();$e!=null&&$e.priceCurrency?(o.innerHTML=$e==null?void 0:$e.priceCurrency.toLocaleUpperCase(),o.style.display="flex"):o.style.display="none",W.setSymbol({ticker:$e.ticker,pricePrecision:($e==null?void 0:$e.pricePrecision)??2,volumePrecision:($e==null?void 0:$e.volumePrecision)??0}),W.setPeriod(_1()),W.setDataLoader(e.dataloader)}const ve=i;if(ve){b().forEach(xe=>{po(ve,xe,!0,{id:"candle_pane"})});const j={};e.subIndicators.forEach(xe=>{const $e=po(ve,xe,!0);$e&&(j[xe]=$e)}),$(j)}}),Lr(()=>{$t()}),It(R=>{var er,Ne,tr,Fn,Nn,zn,Kn;const W=y1(),ve=_1(),j=ge();if(!W||!ve)return{symbol:W,period:ve};const xe=R!==void 0&&(R.period.span!==ve.span||R.period.type!==ve.type||R.period.text!==ve.text),$e=R!==void 0&&(((er=R.symbol)==null?void 0:er.ticker)!==W.ticker||(((Ne=R.symbol)==null?void 0:Ne.pricePrecision)??2)!==(W.pricePrecision??2)||(((tr=R.symbol)==null?void 0:tr.volumePrecision)??0)!==(W.volumePrecision??0)),ht=R!==void 0&&((Fn=R.symbol)==null?void 0:Fn.ticker)===W.ticker&&((((Nn=R.symbol)==null?void 0:Nn.pricePrecision)??2)!==(W.pricePrecision??2)||(((zn=R.symbol)==null?void 0:zn.volumePrecision)??0)!==(W.volumePrecision??0));return R!==void 0&&((Kn=R.symbol)==null?void 0:Kn.ticker)!==W.ticker&&vi(null),xe&&(j==null||j.setPeriod(ve),ut()),xe&&!$e||(j==null||j.setSymbol({...W,pricePrecision:W.pricePrecision??2,volumePrecision:W.volumePrecision??0}),ut(),ht&&(j==null||j.resize())),Rn(ge()),{symbol:W,period:ve}}),It(()=>{const R=ge();if(!R)return;const W=s();R.setStyles(W);const ve=W==="dark"?"#929AA5":"#76808F";ce!==ve&&(ce=ve,R.setStyles(jb(ve))),Rn(i??R)}),It(()=>{var R;(R=ge())==null||R.setLocale(c())}),It(()=>{var R;(R=ge())==null||R.setTimezone(L().key)}),It(()=>{const R=ge();!R||Ee||(G(ng(R.getStyles())),Ee=!0)}),It(()=>{const R=ge();if(!R)return;const W=X9();!W||ct===W||(ct=W,R.setStyles(W))}),It(()=>{const R=n;if(!R||!T()&&!E()&&!Pe())return;const W=ve=>{ve.preventDefault(),ve.stopPropagation()};R.addEventListener("wheel",W,{passive:!1}),R.addEventListener("touchmove",W,{passive:!1}),Lr(()=>{R.removeEventListener("wheel",W),R.removeEventListener("touchmove",W)})}),[Wb(),U(Te,{get when(){return pt()},get children(){return U(hb,{get locale(){return e.locale},get datafeed(){return e.dataloader},onSymbolSelected:R=>{uo(R)},onClose:()=>{mt(!1)}})}}),U(Te,{get when(){return d()},get children(){return U(kv,{get locale(){return e.locale},get mainIndicators(){return b()},get subIndicators(){return v()},onClose:()=>{g(!1)},get onMainIndicatorChange(){return Oe.onMainIndicatorChange},get onSubIndicatorChange(){return Oe.onSubIndicatorChange}})}}),U(Te,{get when(){return _()},get children(){return U(Tv,{get locale(){return e.locale},get timezone(){return L()},onClose:()=>{x(!1)},onConfirm:S})}}),U(Te,{get when(){return E()},get children(){return U(Ib,{get alerts(){return ne()},onClose:()=>{Z(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:wn})}}),U(Te,{get when(){return Pe()},children:R=>U(Cn,{title:"预警详情",width:400,height:260,onClose:()=>{oe(null)},get children(){var W=Zb();return K(W,U($5,{get alert(){return R()}})),W}})}),U(Te,{get when(){return T()},get children(){return U(nb,{get locale(){return e.locale},get currentStyles(){return ue.utils.clone(ge().getStyles())},onClose:()=>{P(!1)},onChange:R=>{var W;(W=ge())==null||W.setStyles(R)},onRestoreDefault:R=>{var ve;const W={};R.forEach(j=>{const xe=j.key;h1(W,xe,ue.utils.formatValue(J(),xe))}),(ve=ge())==null||ve.setStyles(W)}})}}),U(Te,{get when(){return I().length>0},get children(){return U(ib,{get locale(){return e.locale},get url(){return I()},onClose:()=>{N("")}})}}),U(Te,{get when(){return Ge().visible},get children(){return U(lb,{get locale(){return e.locale},get params(){return Ge()},onClose:()=>{xt(M5)},get onConfirm(){return Oe.onIndicatorSettingConfirm}})}}),U(Te,{get when(){return Qe(()=>!!tt())()&&!!we()},get children(){return U(Iy,{get order(){return we()},get formattedTime(){return k6(we().timestamp,e.locale,L().key)},get anchorX(){return Be().x},get anchorY(){return Be().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),U(Vy,{get locale(){return e.locale},get symbol(){return y1()},get spread(){return Q()},get period(){return _1()},get periods(){return e.periods},onMenuClick:async()=>{var R;try{await gc(()=>q(!Q())),(R=ge())==null||R.resize()}catch{}},onSymbolClick:()=>{mt(!pt())},onPeriodChange:fo,onIndicatorClick:()=>{g(R=>!R)},onTimezoneClick:()=>{x(R=>!R)},onAlertClick:()=>{Z(!0)},onSettingClick:()=>{P(R=>!R)},onScreenshotClick:()=>{if(ge()){const R=ge().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");N(R)}}}),(()=>{var R=Ub(),W=R.firstChild;K(R,U(Te,{get when(){return Ny()},get children(){return U(n9,{})}}),W),K(R,U(Te,{get when(){return Q()},get children(){return U($v,{get locale(){return e.locale},onDrawingItemClick:j=>{Yb(j,"candle_pane")},onModeChange:j=>{var xe;(xe=ge())==null||xe.overrideOverlay({groupId:"drawing_tools",mode:j})},onLockChange:j=>{var xe;(xe=ge())==null||xe.overrideOverlay({groupId:"drawing_tools",lock:j})},onVisibleChange:j=>{var xe;(xe=ge())==null||xe.overrideOverlay({groupId:"drawing_tools",visible:j})},onRemoveClick:j=>{var xe;(xe=ge())==null||xe.removeOverlay({groupId:j})}})}}),W);var ve=n;return typeof ve=="function"?j1(ve,W):n=W,Me(j=>{var xe=e.overrides.backgroundType??"solid",$e=Q();return xe!==j.e&&ot(W,"data-pane-style",j.e=xe),$e!==j.t&&ot(W,"data-drawing-bar-visible",j.t=$e),j},{e:void 0,t:void 0}),R})()]};class Xb{constructor(n){yn(this,"_datafeed");yn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:o,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,j9(!0);const d=o??new Date().getTime();await(async()=>{const[b,y]=this.adjustFromTo(f,d,500),v=await this._datafeed.getHistoryKLineData(s,f,b,y);c(v,v.length>0),this._loading=!1,j9(!1)})()}subscribeBar(n){const{symbol:i,period:o,callback:s}=n;this._datafeed.subscribe(i,o,s)}unsubscribeBar(n){const{symbol:i,period:o}=n;this._datafeed.unsubscribe(i,o)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,o){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-o*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-o*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-o*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-o*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var Jb=z('<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 eC=Jb();class tC{constructor(n){yn(this,"_container");yn(this,"_chartApi",null);if(ue.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 Xb(n.datafeed);$c(()=>{const o=this;return U(qb,{ref:s=>{o._chartApi=s},get watermark(){return n.watermark??eC},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 onAddAlert(){return n.onAddAlert??(()=>!0)},get onRemoveAlert(){return n.onRemoveAlert??(()=>!0)},get alerts(){return n.alerts??[]},get rootElementId(){var s;return n.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&ue.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 ge()}resize(){ge().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 bI="";console.log("[@wangliang139/klinecharts-pro] v0.2.27"),ic.forEach(e=>{ue.registerOverlay(e)}),At.DefaultDatafeed=oc,At.KLineChartPro=tC,At.loadLocales=Ey,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})});
39
+ */const Dl=.027,im=5e-4,om=.1,Rl=1.14,xi=.022,Bl=1.414,am=(e,n)=>{e=new G(e),n=new G(n),e.alpha()<1&&(e=Hr(n,e,e.alpha(),"rgb"));const i=Fl(...e.rgb()),o=Fl(...n.rgb()),s=i>=xi?i:i+Math.pow(xi-i,Bl),l=o>=xi?o:o+Math.pow(xi-o,Bl),c=Math.pow(l,.56)-Math.pow(s,.57),f=Math.pow(l,.65)-Math.pow(s,.62),d=Math.abs(l-s)<im?0:s<l?c*Rl:f*Rl;return(Math.abs(d)<om?0:d>0?d-Dl:d+Dl)*100};function Fl(e,n,i){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(n/255,2.4)+.072175*Math.pow(i/255,2.4)}const{sqrt:Fn,pow:lt,min:sm,max:lm,atan2:zl,abs:Nl,cos:wi,sin:Kl,exp:cm,PI:Hl}=Math;function um(e,n,i=1,o=1,s=1){var l=function(dt){return 360*dt/(2*Hl)},c=function(dt){return 2*Hl*dt/360};e=new G(e),n=new G(n);const[f,d,g]=Array.from(e.lab()),[v,y,b]=Array.from(n.lab()),C=(f+v)/2,L=Fn(lt(d,2)+lt(g,2)),k=Fn(lt(y,2)+lt(b,2)),x=(L+k)/2,$=.5*(1-Fn(lt(x,7)/(lt(x,7)+lt(25,7)))),P=d*(1+$),O=y*(1+$),T=Fn(lt(P,2)+lt(g,2)),z=Fn(lt(O,2)+lt(b,2)),H=(T+z)/2,U=l(zl(g,P)),I=l(zl(b,O)),D=U>=0?U:U+360,V=I>=0?I:I+360,j=Nl(D-V)>180?(D+V+360)/2:(D+V)/2,te=1-.17*wi(c(j-30))+.24*wi(c(2*j))+.32*wi(c(3*j+6))-.2*wi(c(4*j-63));let ne=V-D;ne=Nl(ne)<=180?ne:V<=D?ne+360:ne-360,ne=2*Fn(T*z)*Kl(c(ne)/2);const Ie=v-f,ot=z-T,xt=1+.015*lt(C-50,2)/Fn(20+lt(C-50,2)),wt=1+.045*H,Ye=1+.015*H*te,ft=30*cm(-lt((j-275)/25,2)),oe=-(2*Fn(lt(H,7)/(lt(H,7)+lt(25,7))))*Kl(2*c(ft)),Ae=Fn(lt(Ie/(i*xt),2)+lt(ot/(o*wt),2)+lt(ne/(s*Ye),2)+oe*(ot/(o*wt))*(ne/(s*Ye)));return lm(0,sm(100,Ae))}function fm(e,n,i="lab"){e=new G(e),n=new G(n);const o=e.get(i),s=n.get(i);let l=0;for(let c in o){const f=(o[c]||0)-(s[c]||0);l+=f*f}return Math.sqrt(l)}const dm=(...e)=>{try{return new G(...e),!0}catch{return!1}},hm={cool(){return Ci([ge.hsl(180,1,.9),ge.hsl(250,.7,.4)])},hot(){return Ci(["#000","#f00","#ff0","#fff"]).mode("rgb")}},mo={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Wl=Object.keys(mo),Ul=new Map(Wl.map(e=>[e.toLowerCase(),e])),gm=typeof Proxy=="function"?new Proxy(mo,{get(e,n){const i=n.toLowerCase();if(Ul.has(i))return e[Ul.get(i)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(Wl)}}):mo,pm=(...e)=>{e=ye(e,"cmyk");const[n,i,o,s]=e,l=e.length>4?e[4]:1;return s===1?[0,0,0,l]:[n>=1?0:255*(1-n)*(1-s),i>=1?0:255*(1-i)*(1-s),o>=1?0:255*(1-o)*(1-s),l]},{max:Zl}=Math,_m=(...e)=>{let[n,i,o]=ye(e,"rgb");n=n/255,i=i/255,o=o/255;const s=1-Zl(n,Zl(i,o)),l=s<1?1/(1-s):0,c=(1-n-s)*l,f=(1-i-s)*l,d=(1-o-s)*l;return[c,f,d,s]};G.prototype.cmyk=function(){return _m(this._rgb)},Object.assign(ge,{cmyk:(...e)=>new G(...e,"cmyk")}),pe.format.cmyk=pm,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"cmyk"),xe(e)==="array"&&e.length===4)return"cmyk"}});const mm=(...e)=>{const n=ye(e,"hsla");let i=Nr(e)||"lsa";return n[0]=Xt(n[0]||0)+"deg",n[1]=Xt(n[1]*100)+"%",n[2]=Xt(n[2]*100)+"%",i==="hsla"||n.length>3&&n[3]<1?(n[3]="/ "+(n.length>3?n[3]:1),i="hsla"):n.length=3,`${i.substr(0,3)}(${n.join(" ")})`},ym=(...e)=>{const n=ye(e,"lab");let i=Nr(e)||"lab";return n[0]=Xt(n[0])+"%",n[1]=Xt(n[1]),n[2]=Xt(n[2]),i==="laba"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lab(${n.join(" ")})`},bm=(...e)=>{const n=ye(e,"lch");let i=Nr(e)||"lab";return n[0]=Xt(n[0])+"%",n[1]=Xt(n[1]),n[2]=isNaN(n[2])?"none":Xt(n[2])+"deg",i==="lcha"||n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`lch(${n.join(" ")})`},vm=(...e)=>{const n=ye(e,"lab");return n[0]=Xt(n[0]*100)+"%",n[1]=eo(n[1]),n[2]=eo(n[2]),n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklab(${n.join(" ")})`},Yl=(...e)=>{const[n,i,o,...s]=ye(e,"rgb"),[l,c,f]=ho(n,i,o),[d,g,v]=Sl(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]},Cm=(...e)=>{const n=ye(e,"lch");return n[0]=Xt(n[0]*100)+"%",n[1]=eo(n[1]),n[2]=isNaN(n[2])?"none":Xt(n[2])+"deg",n.length>3&&n[3]<1?n[3]="/ "+(n.length>3?n[3]:1):n.length=3,`oklch(${n.join(" ")})`},{round:yo}=Math,xm=(...e)=>{const n=ye(e,"rgba");let i=Nr(e)||"rgb";if(i.substr(0,3)==="hsl")return mm(Al(n),i);if(i.substr(0,3)==="lab"){const o=w1();Bn("d50");const s=ym(io(n),i);return Bn(o),s}if(i.substr(0,3)==="lch"){const o=w1();Bn("d50");const s=bm(lo(n),i);return Bn(o),s}return i.substr(0,5)==="oklab"?vm(ho(n)):i.substr(0,5)==="oklch"?Cm(Yl(n)):(n[0]=yo(n[0]),n[1]=yo(n[1]),n[2]=yo(n[2]),(i==="rgba"||n.length>3&&n[3]<1)&&(n[3]="/ "+(n.length>3?n[3]:1),i="rgba"),`${i.substr(0,3)}(${n.slice(0,i==="rgb"?3:4).join(" ")})`)},ql=(...e)=>{e=ye(e,"lch");const[n,i,o,...s]=e,[l,c,f]=Ll(n,i,o),[d,g,v]=fo(l,c,f);return[d,g,v,...s.length>0&&s[0]<1?[s[0]]:[]]},zn=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,hn=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,$i=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Jt=/\s*/.source,Yr=/\s+/.source,bo=/\s*,\s*/.source,Li=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,qr=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Gl=new RegExp("^rgba?\\("+Jt+[zn,zn,zn].join(Yr)+qr+"\\)$"),Vl=new RegExp("^rgb\\("+Jt+[zn,zn,zn].join(bo)+Jt+"\\)$"),jl=new RegExp("^rgba\\("+Jt+[zn,zn,zn,hn].join(bo)+Jt+"\\)$"),Ql=new RegExp("^hsla?\\("+Jt+[Li,$i,$i].join(Yr)+qr+"\\)$"),Xl=new RegExp("^hsl?\\("+Jt+[Li,$i,$i].join(bo)+Jt+"\\)$"),Jl=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,e9=new RegExp("^lab\\("+Jt+[hn,hn,hn].join(Yr)+qr+"\\)$"),t9=new RegExp("^lch\\("+Jt+[hn,hn,Li].join(Yr)+qr+"\\)$"),n9=new RegExp("^oklab\\("+Jt+[hn,hn,hn].join(Yr)+qr+"\\)$"),r9=new RegExp("^oklch\\("+Jt+[hn,hn,Li].join(Yr)+qr+"\\)$"),{round:i9}=Math,Gr=e=>e.map((n,i)=>i<=2?pr(i9(n),0,255):n),ct=(e,n=0,i=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=n+(e+1)*.5*(i-n):e=n+e*(i-n)),+e),Pt=(e,n)=>e==="none"?n:e,vo=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let n;if(pe.format.named)try{return pe.format.named(e)}catch{}if((n=e.match(Gl))||(n=e.match(Vl))){let i=n.slice(1,4);for(let s=0;s<3;s++)i[s]=+ct(Pt(i[s],0),0,255);i=Gr(i);const o=n[4]!==void 0?+ct(n[4],0,1):1;return i[3]=o,i}if(n=e.match(jl)){const i=n.slice(1,5);for(let o=0;o<4;o++)i[o]=+ct(i[o],0,255);return i}if((n=e.match(Ql))||(n=e.match(Xl))){const i=n.slice(1,4);i[0]=+Pt(i[0].replace("deg",""),0),i[1]=+ct(Pt(i[1],0),0,100)*.01,i[2]=+ct(Pt(i[2],0),0,100)*.01;const o=Gr(uo(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return o[3]=s,o}if(n=e.match(Jl)){const i=n.slice(1,4);i[1]*=.01,i[2]*=.01;const o=uo(i);for(let s=0;s<3;s++)o[s]=i9(o[s]);return o[3]=+n[4],o}if(n=e.match(e9)){const i=n.slice(1,4);i[0]=ct(Pt(i[0],0),0,100),i[1]=ct(Pt(i[1],0),-125,125,!0),i[2]=ct(Pt(i[2],0),-125,125,!0);const o=w1();Bn("d50");const s=Gr(no(i));Bn(o);const l=n[4]!==void 0?+ct(n[4],0,1):1;return s[3]=l,s}if(n=e.match(t9)){const i=n.slice(1,4);i[0]=ct(i[0],0,100),i[1]=ct(Pt(i[1],0),0,150,!1),i[2]=+Pt(i[2].replace("deg",""),0);const o=w1();Bn("d50");const s=Gr(so(i));Bn(o);const l=n[4]!==void 0?+ct(n[4],0,1):1;return s[3]=l,s}if(n=e.match(n9)){const i=n.slice(1,4);i[0]=ct(Pt(i[0],0),0,1),i[1]=ct(Pt(i[1],0),-.4,.4,!0),i[2]=ct(Pt(i[2],0),-.4,.4,!0);const o=Gr(fo(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return o[3]=s,o}if(n=e.match(r9)){const i=n.slice(1,4);i[0]=ct(Pt(i[0],0),0,1),i[1]=ct(Pt(i[1],0),0,.4,!1),i[2]=+Pt(i[2].replace("deg",""),0);const o=Gr(ql(i)),s=n[4]!==void 0?+ct(n[4],0,1):1;return o[3]=s,o}};vo.test=e=>Gl.test(e)||Ql.test(e)||e9.test(e)||t9.test(e)||n9.test(e)||r9.test(e)||Vl.test(e)||jl.test(e)||Xl.test(e)||Jl.test(e)||e==="transparent",G.prototype.css=function(e){return xm(this._rgb,e)};const wm=(...e)=>new G(...e,"css");ge.css=wm,pe.format.css=vo,pe.autodetect.push({p:5,test:(e,...n)=>{if(!n.length&&xe(e)==="string"&&vo.test(e))return"css"}}),pe.format.gl=(...e)=>{const n=ye(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n};const $m=(...e)=>new G(...e,"gl");ge.gl=$m,G.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},G.prototype.hex=function(e){return xl(this._rgb,e)};const Lm=(...e)=>new G(...e,"hex");ge.hex=Lm,pe.format.hex=Cl,pe.autodetect.push({p:4,test:(e,...n)=>{if(!n.length&&xe(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Si}=Math,o9=e=>{const n=e/100;let i,o,s;return n<66?(i=255,o=n<6?0:-155.25485562709179-.44596950469579133*(o=n-2)+104.49216199393888*Si(o),s=n<20?0:-254.76935184120902+.8274096064007395*(s=n-10)+115.67994401066147*Si(s)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*Si(i),o=325.4494125711974+.07943456536662342*(o=n-50)-28.0852963507957*Si(o),s=255),[i,o,s,1]},{round:Sm}=Math,km=(...e)=>{const n=ye(e,"rgb"),i=n[0],o=n[2];let s=1e3,l=4e4;const c=.4;let f;for(;l-s>c;){f=(l+s)*.5;const d=o9(f);d[2]/d[0]>=o/i?l=f:s=f}return Sm(f)};G.prototype.temp=G.prototype.kelvin=G.prototype.temperature=function(){return km(this._rgb)};const Co=(...e)=>new G(...e,"temp");Object.assign(ge,{temp:Co,kelvin:Co,temperature:Co}),pe.format.temp=pe.format.kelvin=pe.format.temperature=o9,G.prototype.oklch=function(){return Yl(this._rgb)},Object.assign(ge,{oklch:(...e)=>new G(...e,"oklch")}),pe.format.oklch=ql,pe.autodetect.push({p:2,test:(...e)=>{if(e=ye(e,"oklch"),xe(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(ge,{analyze:Ol,average:P_,bezier:B_,blend:dn,brewer:gm,Color:G,colors:Kr,contrast:rm,contrastAPCA:am,cubehelix:V_,deltaE:um,distance:fm,input:pe,interpolate:Hr,limits:El,mix:Hr,random:J_,scale:Ci,scales:hm,valid:dm});var Am=Y("<div tabindex=0><div class=selector-container><i class=arrow></i></div><div class=drop-down-container style=left:50%;top:20%><div class=split_line></div><div class=range_div><input class=range type=range min=1 max=100><p>%</p></div><div class=split_line></div><div class=submit><span class=cancel>Cancel</span><span>Ok"),Mm=Y("<div class=klinecharts-pro-color-backdrop aria-hidden=true>"),Tm=Y("<div class=each_line>"),Pm=Y("<div>"),Im=Y("<div class=each_line style=display:flex;align-items:center;gap:8px><div style=width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.04);cursor:pointer><span style=font-size:18px;line-height:1;color:var(--klinecharts-pro-text-color,#fff)>+"),Om=Y('<div style=display:flex;flex-direction:column;gap:8px;padding:6px;width:260px><div style=display:flex;gap:8px;align-items:center><div></div><input style="flex:1;padding:6px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:transparent;color:inherit"></div><div style="width:220px;height:140px;border-radius:6px;position:relative;touch-action:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.2)"><div style=position:absolute;inset:0;borderRadius:6px></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to top, #ffffff, rgba(255,255,255,0));mixBlendMode:overlay;opacity:0.6"></div><div style="position:absolute;inset:0;borderRadius:6px;background:linear-gradient(to bottom, rgba(0,0,0,0), #000);opacity:0.6"></div><div style="position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;borderRadius:50%;boxShadow:0 0 0 2px rgba(255,255,255,0.9);border:1px solid rgba(0,0,0,0.6)"></div></div><div style=display:flex;align-items:center;gap:8px><input type=range min=0 max=360 style="flex:1;height:10px;background:linear-gradient(90deg, red 0%, yellow 17%, lime 33%, cyan 50%, blue 67%, magenta 83%, red 100%);border-radius:6px;padding:0"><span style=width:38px;text-align:center></span></div><div style=display:flex;gap:8px;justify-content:flex-end><button class=cancel>Cancel</button><button class=ok>Add');const Em=e=>{const n=String(e.value).includes("rgba")?ge(String(e.value)).alpha()*100:100,[i,o]=Q(!1),[s,l]=Q(n),[c,f]=Q(e.value),[d,g]=Q(e.value),[v,y]=Q(!1),[b,C]=Q(!1),[L,k]=Q(e.value??"#000000"),[x,$]=Q(0),[P,O]=Q(1),[T,z]=Q(.5),[H,U]=Q(!1),I=[["rgb(255, 255, 255)","rgb(219, 219, 219)","rgb(184, 184, 184)","rgb(156, 156, 156)","rgb(128, 128, 128)","rgb(99, 99, 99)","rgb(74, 74, 74)","rgb(46, 46, 46)","rgb(15, 15, 15)","rgb(0, 0, 0)"],["rgb(242, 54, 69)","rgb(255, 152, 0)","rgb(255, 235, 59)","rgb(76, 175, 80)","rgb(8, 153, 129)","rgb(0, 188, 212)","rgb(41, 98, 255)","rgb(103, 58, 183)","rgb(156, 39, 176)","rgb(233, 30, 99)"],["rgb(252, 203, 205)","rgb(255, 224, 178)","rgb(255, 249, 196)","rgb(200, 230, 201)","rgb(172, 229, 220)","rgb(178, 235, 242)","rgb(187, 217, 251)","rgb(209, 196, 233)","rgb(225, 190, 231)","rgb(248, 187, 208)"],["rgb(250, 161, 164)","rgb(255, 204, 128)","rgb(255, 245, 157)","rgb(165, 214, 167)","rgb(112, 204, 189)","rgb(128, 222, 234)","rgb(144, 191, 249)","rgb(179, 157, 219)","rgb(206, 147, 216)","rgb(244, 143, 177)"],["rgb(247, 124, 128)","rgb(255, 183, 77)","rgb(255, 241, 118)","rgb(129, 199, 132)","rgb(66, 189, 168)","rgb(77, 208, 225)","rgb(91, 156, 246)","rgb(149, 117, 205)","rgb(186, 104, 200)","rgb(240, 98, 146)"],["rgb(247, 82, 95)","rgb(255, 167, 38)","rgb(255, 238, 88)","rgb(102, 187, 106)","rgb(34, 171, 148)","rgb(38, 198, 218)","rgb(49, 121, 245)","rgb(126, 87, 194)","rgb(171, 71, 188)","rgb(236, 64, 122)"],["rgb(178, 40, 51)","rgb(245, 124, 0)","rgb(251, 192, 45)","rgb(56, 142, 60)","rgb(5, 102, 86)","rgb(0, 151, 167)","rgb(24, 72, 204)","rgb(81, 45, 168)","rgb(123, 31, 162)","rgb(194, 24, 91)"],["rgb(128, 25, 34)","rgb(230, 81, 0)","rgb(245, 127, 23)","rgb(27, 94, 32)","rgb(0, 51, 42)","rgb(0, 96, 100)","rgb(12, 50, 153)","rgb(49, 27, 146)","rgb(74, 20, 140)","rgb(136, 14, 79)"]],D=ae=>{try{return ge(ae).hex()}catch{return String(ae||"#000000")}},V=ae=>{const Me=D(ae),[ue,Ee,ut]=ge(Me).hsl();$(Number.isFinite(ue)?Math.round(ue):0),O(Number.isFinite(Ee)?Ee:1),z(Number.isFinite(ut)?ut:.5),k(Me)},j=()=>{o(!1),C(!1)},te=()=>{var ae;f(e.value),g(e.value),(ae=e.onChange)==null||ae.call(e,e.value),j()},ne=ae=>{var Ee;f(ae);const Me=s()/100,ue=ge(ae).alpha(Me).css();g(ue),(e.reactiveChange??!0)&&((Ee=e.onChange)==null||Ee.call(e,ue))},Ie=()=>{var ue;const ae=s()/100,Me=ge(c()).alpha(ae).css();g(Me),(e.reactiveChange??!0)&&((ue=e.onChange)==null||ue.call(e,Me))},ot=ae=>{l(ae.target.value),Ie()},xt=()=>{const ae=c()??e.value??"#000000";V(String(ae)),C(!0),o(!0)},wt=ae=>{$(ae);const Me=ge.hsl(ae,P(),T()).hex();k(Me)},Ye=ae=>{let Me=ae.trim();Me.startsWith("#")||(Me="#"+Me);try{const ue=ge(Me).hex(),[Ee,ut,je]=ge(ue).hsl();$(Number.isFinite(Ee)?Math.round(Ee):x()),O(Number.isFinite(ut)?ut:P()),z(Number.isFinite(je)?je:T()),k(ue)}catch{k(ae)}},ft=ae=>{var Me,ue;(ue=(Me=ae.target).setPointerCapture)==null||ue.call(Me,ae.pointerId),U(!0),Ae(ae)},$e=ae=>{H()&&Ae(ae)},oe=ae=>{var Me,ue;try{(ue=(Me=ae.target).releasePointerCapture)==null||ue.call(Me,ae.pointerId)}catch{}U(!1)},Ae=ae=>{const ue=ae.currentTarget.getBoundingClientRect(),Ee=Math.min(Math.max(0,ae.clientX-ue.left),ue.width),ut=Math.min(Math.max(0,ae.clientY-ue.top),ue.height),je=ue.width?Ee/ue.width:0,$t=ue.height?1-ut/ue.height:.5;O(je),z($t);const gn=ge.hsl(x(),je,$t).hex();k(gn)},dt=()=>{try{const ae=D(L());I[0].unshift(ae),ne(ae),C(!1)}catch{}};return[Ze(()=>Ze(()=>!!i())()&&(()=>{var ae=Mm();return ae.$$click=()=>{te()},ae})()),(()=>{var ae=Am(),Me=ae.firstChild,ue=Me.nextSibling,Ee=ue.firstChild,ut=Ee.nextSibling,je=ut.firstChild,$t=je.nextSibling,gn=$t.firstChild,Rt=ut.nextSibling,pn=Rt.nextSibling,kn=pn.firstChild,_t=kn.nextSibling;return Me.$$click=Pe=>{o(!0)},R(ue,(()=>{var Pe=Ze(()=>!b());return()=>Pe()&&I.map(ht=>(()=>{var Qe=Tm();return R(Qe,()=>ht.map(Lt=>(()=>{var Bt=Pm();return Bt.$$click=qe=>{qe.preventDefault(),ne(Lt)},Te(qe=>{var et=`each_color ${Lt==c()?"selected":""}`,tn=`background-color: ${Lt}`;return et!==qe.e&&Ht(Bt,qe.e=et),qe.t=Ve(Bt,tn,qe.t),qe},{e:void 0,t:void 0}),Bt})())),Qe})())})(),Ee),R(ue,(()=>{var Pe=Ze(()=>!b());return()=>Pe()&&(()=>{var ht=Im(),Qe=ht.firstChild;return Qe.$$click=Lt=>{Lt.stopPropagation(),xt()},ht})()})(),Ee),R(ue,(()=>{var Pe=Ze(()=>!!b());return()=>Pe()&&(()=>{var ht=Om(),Qe=ht.firstChild,Lt=Qe.firstChild,Bt=Lt.nextSibling,qe=Qe.nextSibling,et=qe.firstChild,tn=et.nextSibling,tr=tn.nextSibling,nr=tr.nextSibling,_n=qe.nextSibling,B=_n.firstChild,W=B.nextSibling,de=_n.nextSibling,X=de.firstChild,we=X.nextSibling;return Bt.$$input=ee=>Ye(ee.currentTarget.value),qe.$$pointerup=ee=>oe(ee),qe.$$pointermove=ee=>$e(ee),qe.$$pointerdown=ee=>ft(ee),B.$$input=ee=>wt(Number(ee.currentTarget.value)),R(W,x),X.$$click=()=>C(!1),we.$$click=dt,Te(ee=>{var tt=`width:40px;height:40px;border-radius:4px;border:1px solid rgba(255,255,255,0.08);background:${L()}`,nt=`linear-gradient(to right, hsl(${x()}, 0%, 50%), hsl(${x()}, 100%, 50%))`,Wt=`${Math.round(P()*100)}%`,An=`${Math.round((1-T())*100)}%`,Wn=L();return ee.e=Ve(Lt,tt,ee.e),nt!==ee.t&&Ar(et,"background",ee.t=nt),Wt!==ee.a&&Ar(nr,"left",ee.a=Wt),An!==ee.o&&Ar(nr,"top",ee.o=An),Wn!==ee.i&&Ar(nr,"background",ee.i=Wn),ee},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),Te(()=>Bt.value=L()),Te(()=>B.value=x()),ht})()})(),Ee),je.addEventListener("blur",()=>{y(!1)}),je.addEventListener("focus",()=>{y(!0)}),je.$$input=Pe=>{Pe.preventDefault,ot(Pe)},R($t,s,gn),kn.$$click=te,_t.$$click=()=>{var Pe;e.reactiveChange===!1&&((Pe=e.onChange)==null||Pe.call(e,d())),j()},Te(Pe=>{var ht=`width: 120px; background-color: ${d()}`,Qe=`klinecharts-pro-color ${e.class??""} ${i()?"klinecharts-pro-color-show":""}`,Lt=`background-color: ${d()}; border: 1px solid ${c()}`;return Pe.e=Ve(ae,ht,Pe.e),Qe!==Pe.t&&Ht(ae,Pe.t=Qe),Pe.a=Ve(je,Lt,Pe.a),Pe},{e:void 0,t:void 0,a:void 0}),Te(()=>je.value=s()),ae})()]};Dt(["click","input","pointerdown","pointermove","pointerup"]);var Dm=Y("<div><div></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span></span></div><div><strong>:</strong><span>");const Vr={display:"flex","justify-content":"space-between",gap:"8px"},jr={"text-align":"right"},Rm=20;function Bm(e,n,i,o,s,l,c,f,d){const g=s+d,v=l+d,y=c-d,b=f-d;return e>=g&&n>=v&&e+i<=y&&n+o<=b}function Fm(e,n,i,o,s,l,c){const f=Math.max(e,Math.min(s,e+i)),d=Math.max(n,Math.min(l,n+o)),g=s-f,v=l-d;return g*g+v*v<c*c}function zm(e,n,i,o,s,l,c,f,d,g){const v=["topRight","bottomRight","bottomLeft","topLeft"],y={topRight:{left:e+g,top:n-g-o},bottomRight:{left:e+g,top:n+g},bottomLeft:{left:e-g-i,top:n+g},topLeft:{left:e-g-i,top:n-g-o}};for(const $ of v){const{left:P,top:O}=y[$];if(Bm(P,O,i,o,s,l,c,f,d))return{left:P,top:O}}const b=s+d,C=l+d,L=c-i-d,k=f-o-d,x=8;for(const $ of v){const P=y[$],O=Math.min(Math.max(b,P.left),Math.max(b,L)),T=Math.min(Math.max(C,P.top),Math.max(C,k));if(!Fm(O,T,i,o,e,n,x))return{left:O,top:T}}return{left:Math.min(Math.max(b,y.topRight.left),Math.max(b,L)),top:Math.min(Math.max(C,y.topRight.top),Math.max(C,k))}}const Nm=e=>{const n=()=>e.order.isBuy,[o,s]=Q(),[l,c]=Q({w:220,h:196});Mt(()=>{e.order,e.formattedTime;const y=o();if(!y)return;const b=()=>{const L=y.getBoundingClientRect();L.width>0&&L.height>0&&c({w:L.width,h:L.height})};b();const C=new ResizeObserver(b);C.observe(y),Sr(()=>C.disconnect())});const f=12,d=typeof window<"u"?window.innerWidth:1024,g=typeof window<"u"?window.innerHeight:768,v=Tt(()=>{var H;const y=l().w,b=l().h,C=(H=e.clipElement)==null?void 0:H.getBoundingClientRect(),L=(C==null?void 0:C.left)??0,k=(C==null?void 0:C.top)??0,x=(C==null?void 0:C.right)??d,$=(C==null?void 0:C.bottom)??g,P=typeof e.anchorX=="number"&&typeof e.anchorY=="number",O=P?e.anchorX:x-y-16,T=P?e.anchorY:k+84,z=P?zm(O,T,y,b,L,k,x,$,f,Rm):(()=>{const U=L+f,I=x-y-f,D=k+f,V=$-b-f,j=x-y-16,te=k+84;return{left:Math.min(Math.max(U,j),Math.max(U,I)),top:Math.min(Math.max(D,te),Math.max(D,V))}})();return{left:z.left,top:z.top,anchorX:O,anchorY:T,hasAnchor:P,w:y,h:b}});return Mt(()=>{v()}),(()=>{var y=Dm(),b=y.firstChild,C=b.nextSibling,L=C.firstChild,k=L.firstChild,x=L.nextSibling,$=C.nextSibling,P=$.firstChild,O=P.firstChild,T=P.nextSibling,z=$.nextSibling,H=z.firstChild,U=H.firstChild,I=H.nextSibling,D=z.nextSibling,V=D.firstChild,j=V.firstChild,te=V.nextSibling,ne=D.nextSibling,Ie=ne.firstChild,ot=Ie.firstChild,xt=Ie.nextSibling,wt=ne.nextSibling,Ye=wt.firstChild,ft=Ye.firstChild,$e=Ye.nextSibling;return ii(s,y),R(b,(()=>{var oe=Ze(()=>!!n());return()=>oe()?m("trade_buy",e.locale):m("trade_sell",e.locale)})()),R(L,()=>m("order_id",e.locale),k),R(x,()=>String(e.order.orderId??e.order.id??"-")),R(P,()=>m("order_price",e.locale),O),R(T,()=>String(e.order.price)),R(H,()=>m("order_quantity",e.locale),U),R(I,()=>String(e.order.size)),R(V,()=>m("order_fee",e.locale),j),R(te,()=>String(e.order.fee??"-")),R(Ie,()=>m("order_realized_pnl",e.locale),ot),R(xt,()=>String(e.order.pnl??"-")),R(Ye,()=>m("order_filled_time",e.locale),ft),R($e,()=>e.formattedTime),Te(oe=>{var Ae=`klinecharts-pro-his-order-hover ${n()?"is-buy":"is-sell"}`,dt=`${v().left}px`,ae=`${v().top}px`,Me=`klinecharts-pro-his-order-hover-title ${n()?"is-buy":"is-sell"}`,ue=Vr,Ee=jr,ut=Vr,je=jr,$t=Vr,gn=jr,Rt=Vr,pn=jr,kn=Vr,_t=jr,Pe=Vr,ht=jr;return Ae!==oe.e&&Ht(y,oe.e=Ae),dt!==oe.t&&Ar(y,"left",oe.t=dt),ae!==oe.a&&Ar(y,"top",oe.a=ae),Me!==oe.o&&Ht(b,oe.o=Me),oe.i=Ve(C,ue,oe.i),oe.n=Ve(x,Ee,oe.n),oe.s=Ve($,ut,oe.s),oe.h=Ve(T,je,oe.h),oe.r=Ve(z,$t,oe.r),oe.d=Ve(I,gn,oe.d),oe.l=Ve(D,Rt,oe.l),oe.u=Ve(te,pn,oe.u),oe.c=Ve(ne,kn,oe.c),oe.w=Ve(xt,_t,oe.w),oe.m=Ve(wt,Pe,oe.m),oe.f=Ve($e,ht,oe.f),oe},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0}),y})()};Q(!1),Q(!1),Q(!1),Q(!1),Q(!1),Q("");const[Km,Hm]=Q("");function a9(e){const n=Km();if(n)return document.getElementById(n);if(e instanceof Element){const i=e.closest(".klinecharts-pro");if(i instanceof HTMLElement)return i}return document.querySelector(".klinecharts-pro")}function Wm(){const e=document;return e.fullscreenElement??e.webkitFullscreenElement??e.mozFullScreenElement??e.msFullscreenElement??null}function Um(e){const n=a9(e),i=Wm();return!!(n&&i&&(n===i||n.contains(i)))}const[Zm,s9]=Q(!1),[$1,xo]=Q(null),[L1,l9]=Q(null);Q();const[_e,c9]=Q(null),[u9,f9]=Q(null),[Ym,qm]=Q([""]),[Gm,Vm]=Q({}),[yD,Nn]=Q(!1);Q("");const[wo,jm]=Q(!1);Q(1),Q();const[Qm,ki]=Q(null);var Xm=Y("<img alt=symbol>"),Jm=Y("<div class=symbol><span>"),ey=Y('<div class=klinecharts-pro-period-bar><div class=menu-container><svg viewBox="0 0 1024 1024"><path d="M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z></path></svg></div><div class="item tools"><svg width=20 height=20 viewBox="0 0 20 20"><path d=M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z></path><path d=M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z></path><path d=M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M10 1a5 5 0 0 0-5 5v2.6L3.2 12a1 1 0 0 0 .8 1.6h12a1 1 0 0 0 .8-1.6L15 8.6V6a5 5 0 0 0-5-5zm0 18a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 10 19z"></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z></path></svg></div><div class="item tools"><svg viewBox="0 0 20 20"><path d=M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z></path></svg></div><div class="item tools">'),ty=Y("<button type=button>"),ny=Y('<svg viewBox="0 0 20 20"><path d=M1.08108,0L0,1.079L4.18919,5.27938L2.54826,6.91715L6.9112,6.91715L6.9112,2.56262L5.28957,4.18112L1.08108,0ZM15.8108,5.27938L20,1.079L18.9189,0L14.7104,4.18112L13.0888,2.56262L13.0888,6.91715L17.4517,6.91715L15.8108,5.27938ZM4.16988,14.7014L0.07722,18.8054L1.1583,20L5.27027,15.7996L6.9112,17.4374L6.9112,13.0829L2.54826,13.0829L4.16988,14.7014ZM17.4517,13.0829L13.0888,13.0829L13.0888,17.4374L14.7297,15.7996L18.8417,20L19.9228,18.8054L15.8301,14.7013L17.4517,13.0829Z>'),ry=Y('<svg viewBox="0 0 20 20"><path d=M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z>');const iy=e=>{let n;const i=l=>l.span===e.period.span&&l.type===e.period.type,o=()=>{jm(Um(n))},s=l=>{if(l.shiftKey)return;const c=l.currentTarget;if(c.scrollWidth<=c.clientWidth)return;let f=l.deltaY;if(l.deltaMode===WheelEvent.DOM_DELTA_LINE?f*=16:l.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(f*=c.clientWidth),f===0)return;const d=c.scrollWidth-c.clientWidth;f>0&&c.scrollLeft>=d-1||f<0&&c.scrollLeft<=0||(l.preventDefault(),c.scrollLeft+=f)};return P0(()=>{document.addEventListener("fullscreenchange",o),document.addEventListener("mozfullscreenchange",o),document.addEventListener("webkitfullscreenchange",o),document.addEventListener("msfullscreenchange",o)}),Sr(()=>{document.removeEventListener("fullscreenchange",o),document.removeEventListener("mozfullscreenchange",o),document.removeEventListener("webkitfullscreenchange",o),document.removeEventListener("msfullscreenchange",o)}),(()=>{var l=ey(),c=l.firstChild,f=c.firstChild,d=c.nextSibling,g=d.nextSibling,v=g.nextSibling,y=v.nextSibling,b=y.nextSibling,C=b.nextSibling;return ii(L=>{const k=n;k&&k.removeEventListener("wheel",s),n=L,L&&L.addEventListener("wheel",s,{passive:!1})},l),wn(f,"click",e.onMenuClick,!0),R(l,q(Oe,{get when(){return e.symbol},get children(){var L=Jm(),k=L.firstChild;return wn(L,"click",e.onSymbolClick,!0),R(L,q(Oe,{get when(){return e.symbol.logo},get children(){var x=Xm();return Te(()=>Je(x,"src",e.symbol.logo)),x}}),k),R(k,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),L}}),d),R(l,()=>e.periods.map(L=>(()=>{var k=ty();return k.$$click=()=>{e.onPeriodChange(L)},R(k,()=>L.text),Te(()=>Ht(k,`item tools period ${i(L)?"selected":""}`)),k})()),d),wn(d,"click",e.onIndicatorClick,!0),wn(g,"click",e.onTimezoneClick,!0),wn(v,"click",e.onAlertClick,!0),wn(y,"click",e.onSettingClick,!0),wn(b,"click",e.onScreenshotClick,!0),C.$$click=()=>{if(wo())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const L=a9(n);L&&(L.requestFullscreen??L.webkitRequestFullscreen??L.mozRequestFullScreen??L.msRequestFullscreen).call(L)}},R(C,(()=>{var L=Ze(()=>!!wo());return()=>L()?ny():ry()})()),Te(L=>{var k=e.spread?"":"rotate",x=m("indicator",e.locale),$=m("timezone",e.locale),P=m("alerts",e.locale),O=m("setting",e.locale),T=m("screenshot",e.locale),z=wo()?m("exit_full_screen",e.locale):m("full_screen",e.locale);return k!==L.e&&Je(f,"class",L.e=k),x!==L.t&&Je(d,"title",L.t=x),$!==L.a&&Je(g,"title",L.a=$),P!==L.o&&Je(v,"title",L.o=P),O!==L.i&&Je(y,"title",L.i=O),T!==L.n&&Je(b,"title",L.n=T),z!==L.s&&Je(C,"title",L.s=z),L},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),l})()};Dt(["click"]);var oy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M12.41465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L12.41465,12C12.20873,12.5826,11.65311,13,11,13C10.34689,13,9.79127,12.5826,9.58535,12L3.5,12C3.223857,12,3,11.77614,3,11.5C3,11.22386,3.223857,11,3.5,11L9.58535,11C9.79127,10.417404,10.34689,10,11,10C11.65311,10,12.20873,10.417404,12.41465,11Z stroke-opacity=0 stroke=none>');const ay=()=>oy();var sy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,11L11.08535,11C11.29127,10.417404,11.84689,10,12.5,10C13.15311,10,13.70873,10.417404,13.91465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L13.91465,12C13.70873,12.5826,13.15311,13,12.5,13C11.84689,13,11.29127,12.5826,11.08535,12L6.91465,12C6.70873,12.5826,6.15311,13,5.5,13C4.671573,13,4,12.32843,4,11.5C4,10.671573,4.671573,10,5.5,10C6.15311,10,6.70873,10.417404,6.91465,11Z stroke-opacity=0 stroke=none>');const ly=()=>sy();var cy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,12.5C6.70873,13.0826,6.15311,13.5,5.5,13.5C4.671573,13.5,4,12.82843,4,12C4,11.171573,4.671573,10.5,5.5,10.5C6.15311,10.5,6.70873,10.917404,6.91465,11.5L16.0853,11.5C16.2913,10.917404,16.846899999999998,10.5,17.5,10.5C18.328400000000002,10.5,19,11.171573,19,12C19,12.82843,18.328400000000002,13.5,17.5,13.5C16.846899999999998,13.5,16.2913,13.0826,16.0853,12.5L6.91465,12.5Z stroke-opacity=0 stroke=none>');const uy=()=>cy();var fy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,12.41465L11,18.5C11,18.7761,11.22386,19,11.5,19C11.77614,19,12,18.7761,12,18.5L12,12.41465C12.5826,12.20873,13,11.65311,13,11C13,10.34689,12.5826,9.79127,12,9.58535L12,3.5C12,3.223857,11.77614,3,11.5,3C11.22386,3,11,3.223857,11,3.5L11,9.58535C10.417404,9.79127,10,10.34689,10,11C10,11.65311,10.417404,12.20873,11,12.41465Z stroke-opacity=0 stroke=none>');const dy=()=>fy();var hy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z stroke-opacity=0 stroke=none>');const gy=()=>hy();var py=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.165603637695312,6.91465C11.748203637695312,6.70873,12.165603637695312,6.15311,12.165603637695312,5.5C12.165603637695312,4.671573,11.494033637695313,4,10.665603637695312,4C9.837176637695313,4,9.165603637695312,4.671573,9.165603637695312,5.5C9.165603637695312,6.15311,9.583007637695312,6.70873,10.165603637695312,6.91465L10.165603637695312,16.0854C9.583007637695312,16.2913,9.165603637695312,16.846899999999998,9.165603637695312,17.5C9.165603637695312,18.328400000000002,9.837176637695313,19,10.665603637695312,19C11.494033637695313,19,12.165603637695312,18.328400000000002,12.165603637695312,17.5C12.165603637695312,16.846899999999998,11.748203637695312,16.2913,11.165603637695312,16.0854L11.165603637695312,6.91465Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const _y=()=>py();var my=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.146447,15.753C4.9511845,15.9483,4.9511845,16.2649,5.146447,16.4602C5.341709,16.6554,5.658291,16.6554,5.853554,16.4602L8.156600000000001,14.15711C8.352409999999999,14.25082,8.57173,14.3033,8.8033,14.3033C9.631730000000001,14.3033,10.3033,13.63172,10.3033,12.80329C10.3033,12.57172,10.250820000000001,12.352409999999999,10.157119999999999,12.15659L12.156600000000001,10.15711C12.352409999999999,10.250820000000001,12.571729999999999,10.30329,12.8033,10.30329C13.63173,10.30329,14.3033,9.63172,14.3033,8.80329C14.3033,8.57172,14.25082,8.352409999999999,14.15712,8.15659L16.4602,5.853553C16.6554,5.658291,16.6554,5.341709,16.4602,5.146447C16.2649,4.9511843,15.9483,4.9511843,15.753,5.146447L13.45001,7.449479999999999C13.25419,7.35577,13.03487,7.3032900000000005,12.8033,7.3032900000000005C11.97487,7.3032900000000005,11.3033,7.97487,11.3033,8.80329C11.3033,9.03487,11.35578,9.254190000000001,11.44949,9.450009999999999L9.450009999999999,11.449480000000001C9.254190000000001,11.35577,9.03487,11.30329,8.8033,11.30329C7.97487,11.30329,7.3033,11.97487,7.3033,12.80329C7.3033,13.03487,7.35578,13.25419,7.44949,13.45001L5.146447,15.753Z stroke-opacity=0 stroke=none>');const yy=()=>my();var by=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M7.573332939453125,14.54567903564453C7.667042939453125,14.741499035644532,7.719512939453125,14.960809035644532,7.719512939453125,15.19239903564453C7.719512939453125,16.02079903564453,7.047942939453125,16.69239903564453,6.219512939453125,16.69239903564453C5.391085939453125,16.69239903564453,4.719512939453125,16.02079903564453,4.719512939453125,15.19239903564453C4.719512939453125,14.36394903564453,5.391085939453125,13.692379035644532,6.219512939453125,13.692379035644532C6.451092939453125,13.692379035644532,6.670412939453125,13.74485903564453,6.866232939453125,13.83856903564453L9.865702939453126,10.83909903564453C9.771992939453124,10.643279035644532,9.719512939453125,10.42395903564453,9.719512939453125,10.192379035644532C9.719512939453125,9.36394903564453,10.391082939453124,8.692379035644532,11.219512939453125,8.692379035644532C11.451092939453126,8.692379035644532,11.670412939453126,8.74485903564453,11.866232939453125,8.838569035644532L15.462112939453124,5.242645035644531C15.657412939453126,5.047383335644532,15.974012939453125,5.047383335644532,16.169212939453125,5.242645035644531C16.364512939453125,5.437907035644531,16.364512939453125,5.754489035644531,16.169212939453125,5.949752035644531L12.573332939453124,9.545679035644532C12.667042939453125,9.74149903564453,12.719512939453125,9.96080903564453,12.719512939453125,10.192379035644532C12.719512939453125,11.020809035644533,12.047942939453126,11.692379035644532,11.219512939453125,11.692379035644532C10.987942939453125,11.692379035644532,10.768632939453125,11.639909035644532,10.572812939453126,11.54619903564453L7.573332939453125,14.54567903564453Z stroke-opacity=0 stroke=none>');const vy=()=>by();var Cy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M15.719512939453125,8.461776733398438C16.547912939453127,8.461776733398438,17.219512939453125,7.7902067333984375,17.219512939453125,6.9617767333984375C17.219512939453125,6.133349733398438,16.547912939453127,5.4617767333984375,15.719512939453125,5.4617767333984375C14.891082939453124,5.4617767333984375,14.219512939453125,6.133349733398438,14.219512939453125,6.9617767333984375C14.219512939453125,7.193346733398437,14.271992939453124,7.412666733398438,14.365692939453124,7.608486733398438L7.366222939453126,14.607956733398437C7.170402939453125,14.514256733398437,6.951082939453125,14.461776733398438,6.719512939453125,14.461776733398438C5.891085939453125,14.461776733398438,5.219512939453125,15.133346733398437,5.219512939453125,15.961776733398438C5.219512939453125,16.79017673339844,5.891085939453125,17.461776733398438,6.719512939453125,17.461776733398438C7.547942939453125,17.461776733398438,8.219512939453125,16.79017673339844,8.219512939453125,15.961776733398438C8.219512939453125,15.730176733398437,8.167032939453126,15.510876733398437,8.073322939453124,15.315066733398437L15.072802939453124,8.315586733398437C15.268612939453124,8.409296733398438,15.487912939453125,8.461776733398438,15.719512939453125,8.461776733398438Z stroke-opacity=0 stroke=none>');const xy=()=>Cy();var wy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const $y=()=>wy();var Ly=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M6.91465,13.00505L18.5,13.00505C18.7761,13.00505,19,13.228909999999999,19,13.50505C19,13.781189999999999,18.7761,14.00505,18.5,14.00505L6.91465,14.00505C6.70873,14.58765,6.15311,15.00505,5.5,15.00505C4.671573,15.00505,4,14.33348,4,13.50505C4,12.67662,4.671573,12.00505,5.5,12.00505C6.15311,12.00505,6.70873,12.422450000000001,6.91465,13.00505ZM7.81404,11.625L10.48591,11.625L10.48591,10.90625L9.65193,10.90625L9.65193,7.125L8.997630000000001,7.125C8.71443,7.306641,8.415600000000001,7.419922,7.96443,7.498047L7.96443,8.05078L8.77497,8.05078L8.77497,10.90625L7.81404,10.90625L7.81404,11.625ZM11.081620000000001,11.625L14.0562,11.625L14.0562,10.88281L13.09724,10.88281C12.8863,10.88281,12.59333,10.90625,12.36482,10.93555C13.17537,10.11328,13.84724,9.2207,13.84724,8.39062C13.84724,7.541016,13.28865,7,12.4488,7C11.84333,7,11.446850000000001,7.234375,11.03279,7.679688L11.52497,8.16797C11.747630000000001,7.914062,12.0113,7.697266,12.33552,7.697266C12.7613,7.697266,13.00154,7.982422,13.00154,8.43359C13.00154,9.14648,12.29255,10.00781,11.081620000000001,11.11523L11.081620000000001,11.625ZM15.9605,11.75C16.8121,11.75,17.526899999999998,11.2832,17.526899999999998,10.4375C17.526899999999998,9.82031,17.142200000000003,9.43945,16.6441,9.30078L16.6441,9.27148C17.1129,9.08594,17.3824,8.7207,17.3824,8.21289C17.3824,7.421875,16.8004,7,15.9429,7C15.4215,7,14.9957,7.210938,14.6109,7.541016L15.066,8.11133C15.3258,7.849609,15.5836,7.697266,15.9019,7.697266C16.2789,7.697266,16.4957,7.914062,16.4957,8.28125C16.4957,8.70898,16.2301,9,15.4215,9L15.4215,9.63672C16.3804,9.63672,16.6383,9.91992,16.6383,10.38086C16.6383,10.79688,16.3336,11.03125,15.8824,11.03125C15.4742,11.03125,15.1578,10.82227,14.8922,10.55078L14.4781,11.13281C14.7906,11.486329999999999,15.2652,11.75,15.9605,11.75Z stroke-opacity=0 stroke=none>');const Sy=()=>Ly();var ky=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.146447,14.178126025390625C2.9511847,13.982826025390626,2.9511847,13.666226025390625,3.146447,13.470926025390625L7.39146,9.225966025390626C7.35417,9.095106025390624,7.33421,8.956946025390625,7.33421,8.814116025390625C7.33421,7.985696025390625,8.00578,7.314116025390625,8.834209999999999,7.314116025390625C8.97703,7.314116025390625,9.11519,7.334086025390625,9.24605,7.371366025390625L13.753,2.864373025390625C13.9483,2.669110325390625,14.2649,2.669110325390625,14.4602,2.864373025390625C14.6554,3.059635025390625,14.6554,3.376217025390625,14.4602,3.571479025390625L10.06916,7.962476025390625C10.23631,8.204386025390626,10.334209999999999,8.497826025390625,10.334209999999999,8.814116025390625C10.334209999999999,9.642546025390626,9.66264,10.314116025390625,8.834209999999999,10.314116025390625C8.51791,10.314116025390625,8.22448,10.216226025390625,7.98256,10.049076025390626L3.853554,14.178126025390625C3.658291,14.373326025390625,3.341709,14.373326025390625,3.146447,14.178126025390625ZM7.67736,19.188526025390626C7.4821,18.993226025390626,7.4821,18.676626025390625,7.67736,18.481426025390626L9.9804,16.178326025390625C9.88669,15.982526025390625,9.834209999999999,15.763226025390624,9.834209999999999,15.531626025390626C9.834209999999999,14.703226025390626,10.50578,14.031626025390626,11.33421,14.031626025390626C11.56579,14.031626025390626,11.78511,14.084126025390624,11.98093,14.177826025390624L13.9804,12.178356025390626C13.8867,11.982536025390624,13.8342,11.763216025390625,13.8342,11.531636025390625C13.8342,10.703206025390624,14.5058,10.031636025390625,15.3342,10.031636025390625C15.5658,10.031636025390625,15.7851,10.084116025390625,15.9809,10.177826025390626L18.284,7.874796025390625C18.4792,7.679536025390625,18.7958,7.679536025390625,18.9911,7.874796025390625C19.1863,8.070056025390624,19.1863,8.386636025390626,18.9911,8.581906025390625L16.688000000000002,10.884936025390624C16.7817,11.080756025390626,16.8342,11.300066025390626,16.8342,11.531636025390625C16.8342,12.360066025390624,16.162599999999998,13.031626025390626,15.3342,13.031626025390626C15.1026,13.031626025390626,14.8833,12.979126025390626,14.6875,12.885426025390625L12.68803,14.884926025390625C12.78174,15.080726025390625,12.83421,15.300026025390626,12.83421,15.531626025390626C12.83421,16.360026025390624,12.16264,17.031626025390626,11.33421,17.031626025390626C11.10264,17.031626025390626,10.88333,16.979126025390627,10.68751,16.885426025390625L8.38446,19.188526025390626C8.1892,19.383726025390626,7.87262,19.383726025390626,7.67736,19.188526025390626Z stroke-opacity=0 stroke=none>');const Ay=()=>ky();var My=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3.3367688759765626,12.63173C3.5320318759765623,12.82699,3.8486138759765627,12.82699,4.043876875976562,12.63173L11.822052875976562,4.853553C12.017312875976563,4.658291,12.017312875976563,4.341708,11.822052875976562,4.146446C11.626792875976562,3.9511843,11.310202875976563,3.9511843,11.114942875976563,4.146446L3.3367688759765626,11.92462C3.1415071759765625,12.11988,3.1415071759765625,12.43647,3.3367688759765626,12.63173ZM5.001492875976562,17.0351C4.806232875976562,16.8399,4.806232875976562,16.5233,5.001492875976562,16.328L7.304532875976562,14.025C7.210822875976563,13.82916,7.158352875976563,13.60984,7.158352875976563,13.37827C7.158352875976563,12.54984,7.829922875976562,11.87827,8.658352875976561,11.87827C8.889922875976563,11.87827,9.109232875976563,11.93075,9.305052875976562,12.02446L11.304532875976562,10.02498C11.210822875976563,9.82916,11.158352875976561,9.60984,11.158352875976561,9.37827C11.158352875976561,8.54984,11.829922875976562,7.8782700000000006,12.658352875976563,7.8782700000000006C12.889922875976563,7.8782700000000006,13.109232875976563,7.93075,13.305022875976562,8.024460000000001L15.608122875976562,5.72142C15.803322875976562,5.5261499999999995,16.119922875976563,5.5261499999999995,16.315222875976563,5.72142C16.510422875976563,5.9166799999999995,16.510422875976563,6.23326,16.315222875976563,6.42852L14.012122875976562,8.73156C14.105822875976562,8.92738,14.158322875976562,9.1467,14.158322875976562,9.37827C14.158322875976562,10.2067,13.486822875976562,10.87827,12.658352875976563,10.87827C12.426772875976562,10.87827,12.207452875976562,10.82579,12.011642875976563,10.73209L10.012162875976562,12.73156C10.105872875976562,12.92738,10.158352875976561,13.1467,10.158352875976561,13.37827C10.158352875976561,14.2067,9.486772875976563,14.8783,8.658352875976561,14.8783C8.426772875976562,14.8783,8.207452875976562,14.8258,8.011642875976563,14.7321L5.708602875976562,17.0351C5.513342875976562,17.2304,5.196752875976562,17.2304,5.001492875976562,17.0351ZM10.415712875976563,18.328C10.220452875976562,18.5233,9.903862875976563,18.5233,9.708602875976563,18.328C9.513342875976562,18.1328,9.513342875976562,17.816200000000002,9.708602875976563,17.6209L12.304532875976562,15.025C12.210822875976563,14.8292,12.158352875976563,14.6098,12.158352875976563,14.3783C12.158352875976563,13.54984,12.829922875976562,12.87827,13.658322875976562,12.87827C13.889922875976563,12.87827,14.109222875976563,12.93075,14.305022875976562,13.02446L17.486822875976564,9.84274C17.682022875976564,9.64747,17.99862287597656,9.64747,18.19392287597656,9.84274C18.38912287597656,10.038,18.38912287597656,10.35458,18.19392287597656,10.54984L15.012122875976562,13.73156C15.105822875976562,13.92738,15.158322875976562,14.1467,15.158322875976562,14.3783C15.158322875976562,15.2067,14.486822875976562,15.8783,13.658322875976562,15.8783C13.426822875976562,15.8783,13.207422875976562,15.8258,13.011642875976563,15.7321L10.415712875976563,18.328Z stroke-opacity=0 stroke=none>');const Ty=()=>My();var Py=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M13.1889,6C12.98303,6.582599999999999,12.42741,7,11.7743,7C11.12119,7,10.565570000000001,6.582599999999999,10.35965,6L3.5,6C3.223857,6,3,5.77614,3,5.5C3,5.22386,3.223857,5,3.5,5L10.35965,5C10.565570000000001,4.417404,11.12119,4,11.7743,4C12.42741,4,12.98303,4.417404,13.1889,5L18.5,5C18.7761,5,19,5.22386,19,5.5C19,5.77614,18.7761,6,18.5,6L13.1889,6ZM3,8.5C3,8.22386,3.223857,8,3.5,8L18.5,8C18.7761,8,19,8.22386,19,8.5C19,8.77614,18.7761,9,18.5,9L3.5,9C3.223857,9,3,8.77614,3,8.5ZM3.278549,11.5C3.278549,11.22386,3.502407,11,3.778549,11L18.7785,11C19.0547,11,19.2785,11.22386,19.2785,11.5C19.2785,11.77614,19.0547,12,18.7785,12L3.778549,12C3.502407,12,3.278549,11.77614,3.278549,11.5ZM3.139267,14.5C3.139267,14.2239,3.363124,14,3.6392670000000003,14L18.6393,14C18.915399999999998,14,19.1393,14.2239,19.1393,14.5C19.1393,14.7761,18.915399999999998,15,18.6393,15L3.6392670000000003,15C3.363124,15,3.139267,14.7761,3.139267,14.5ZM13.1889,18C12.98303,18.5826,12.42741,19,11.7743,19C11.12119,19,10.565570000000001,18.5826,10.35965,18L3.778549,18C3.502407,18,3.278549,17.7761,3.278549,17.5C3.278549,17.2239,3.502407,17,3.778549,17L10.35965,17C10.565570000000001,16.4174,11.12119,16,11.7743,16C12.42741,16,12.98303,16.4174,13.1889,17L18.7785,17C19.0547,17,19.2785,17.2239,19.2785,17.5C19.2785,17.7761,19.0547,18,18.7785,18L13.1889,18Z stroke-opacity=0 stroke=none>');const Iy=()=>Py();var Oy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4.91465,6C4.70873,6.582599999999999,4.15311,7,3.5,7C2.671573,7,2,6.32843,2,5.5C2,4.671573,2.671573,4,3.5,4C4.15311,4,4.70873,4.417404,4.91465,5L18.2257,5C18.5018,5,18.7257,5.22386,18.7257,5.5C18.7257,5.77614,18.5018,6,18.2257,6L4.91465,6ZM2.7257,8.5C2.7257,8.22386,2.949558,8,3.2257,8L18.2257,8C18.5018,8,18.7257,8.22386,18.7257,8.5C18.7257,8.77614,18.5018,9,18.2257,9L3.2257,9C2.949558,9,2.7257,8.77614,2.7257,8.5ZM3.00425,11.5C3.00425,11.22386,3.22811,11,3.50425,11L18.5042,11C18.7804,11,19.0042,11.22386,19.0042,11.5C19.0042,11.77614,18.7804,12,18.5042,12L3.50425,12C3.22811,12,3.00425,11.77614,3.00425,11.5ZM2.864967,14.5C2.864967,14.2239,3.08882,14,3.36497,14L18.365,14C18.6411,14,18.865,14.2239,18.865,14.5C18.865,14.7761,18.6411,15,18.365,15L3.36497,15C3.08882,15,2.864967,14.7761,2.864967,14.5ZM20,17.5C20,18.328400000000002,19.3284,19,18.5,19C17.846899999999998,19,17.2913,18.5826,17.0854,18L3.50425,18C3.22811,18,3.00425,17.7761,3.00425,17.5C3.00425,17.2239,3.22811,17,3.50425,17L17.0854,17C17.2913,16.4174,17.846899999999998,16,18.5,16C19.3284,16,20,16.671599999999998,20,17.5Z stroke-opacity=0 stroke=none>');const Ey=()=>Oy();var Dy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=5 ry=5 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1></ellipse><ellipse cx=10.5 cy=11.5 rx=3 ry=3 fill-opacity=0 stroke-opacity=1 fill=none stroke-width=1>');const Ry=()=>Dy();var By=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M3,7.32468C5.90649,3.3893050000000002,11.49833,2.81306,14.6674,6.31944C14.9056,6.1554199999999994,15.192,6.05979,15.5,6.05979C15.845,6.05979,16.1628,6.17974,16.4162,6.381349999999999L18.4509,4.23827L19,4.816615L16.8945,7.03429C16.962600000000002,7.21075,17,7.40319,17,7.60463C17,8.45782,16.328400000000002,9.14947,15.5,9.14947C14.6716,9.14947,14,8.45782,14,7.60463C14,7.36402,14.0534,7.13625,14.1487,6.93322C11.32695,3.748365,6.25159,4.253956,3.612785,7.82695L3,7.32468ZM14.09,15.4717C15.7427,13.78985,16.244500000000002,11.524740000000001,15.5633,9.30134L15.5618,9.30134L16.3012,9.0502C17.072400000000002,11.56646,16.497700000000002,14.158,14.6282,16.0599C12.28737,18.442,8.62386,18.6988,6.41348,16.4501C4.5526,14.5572,4.52076,11.19671,6.36766,9.3177C7.89069,7.76754,10.07544,7.706189999999999,11.56741,9.22363C11.95453,9.61742,12.24817,10.08363,12.43369,10.57677L14.1451,8.77421L14.6942,9.35256L12.64982,11.50582C12.65827,11.59712,12.66295,11.68839,12.66378,11.77936C12.87398,12.04523,13,12.38451,13,12.7541C13,13.60729,12.32843,14.2989,11.5,14.2989C10.67157,14.2989,10,13.60729,10,12.7541C10,11.90091,10.67157,11.20926,11.5,11.20926C11.60387,11.20926,11.70528,11.220130000000001,11.8032,11.240829999999999L11.81763,11.22564C11.69858,10.71874,11.42858,10.21929,11.0284,9.81179C9.844000000000001,8.60765,8.136890000000001,8.65592,6.90822,9.90586C5.37975,11.460930000000001,5.40693,14.288,6.95404,15.8619C8.84598,17.7867,12.03496,17.5626,14.09,15.4717Z stroke-opacity=0 stroke=none>');const Fy=()=>By();var zy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M4,17.0854L4,3.5C4,3.223858,4.22386,3,4.5,3C4.77614,3,5,3.223858,5,3.5L5,10L7.57584,10L9.8127,4.46359C9.91614,4.20756,10.20756,4.08386,10.46359,4.1873000000000005C10.71963,4.29075,10.84333,4.58216,10.73988,4.8382000000000005L8.65438,10L11.08535,10C11.29127,9.4174,11.84689,9,12.5,9C12.65154,9,12.79784,9.02247,12.93573,9.06427L16.6464,5.35355C16.8417,5.15829,17.1583,5.15829,17.3536,5.35355C17.5488,5.54882,17.5488,5.8654,17.3536,6.06066L13.7475,9.66675C13.907,9.90508,14,10.19168,14,10.5C14,11.15311,13.5826,11.70873,13,11.91465L13,14.3638L18.3714,12.1936C18.6274,12.09015,18.918799999999997,12.21385,19.0222,12.46989C19.1257,12.72592,19.002,13.0173,18.746000000000002,13.1208L13,15.4423L13,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854ZM6.3729499999999994,17.0413L12,14.7678L12,11.91465C11.88136,11.87271,11.76956,11.81627,11.66675,11.74746L6.3729499999999994,17.0413ZM12,15.8463L6.6694700000000005,18L12,18L12,15.8463ZM6.38629,15.6137L8.250350000000001,11L11,11L6.38629,15.6137ZM5,11L7.17182,11L5,16.3754L5,11Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Ny=()=>zy();var Ky=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17,4.5C17,5.32843,16.328400000000002,6,15.5,6C15.0931,6,14.7241,5.83802,14.4539,5.57503L5.98992,8.32515C5.99658,8.38251,6,8.440850000000001,6,8.5C6,9.15311,5.582599999999999,9.70873,5,9.91465L5,11.08535C5.42621,11.236,5.763999999999999,11.57379,5.91465,12L19.5,12C19.7761,12,20,12.22386,20,12.5C20,12.77614,19.7761,13,19.5,13L5.91465,13C5.70873,13.5826,5.15311,14,4.5,14C3.671573,14,3,13.3284,3,12.5C3,11.84689,3.417404,11.29127,4,11.08535L4,9.91465C3.417404,9.70873,3,9.15311,3,8.5C3,7.67157,3.671573,7,4.5,7C4.90411,7,5.2709,7.15981,5.5406200000000005,7.41967L14.0093,4.66802C14.0032,4.6128599999999995,14,4.5568,14,4.5C14,3.671573,14.6716,3,15.5,3C16.328400000000002,3,17,3.671573,17,4.5ZM4,15.5C4,15.2239,4.22386,15,4.5,15L19.5,15C19.7761,15,20,15.2239,20,15.5C20,15.7761,19.7761,16,19.5,16L4.5,16C4.22386,16,4,15.7761,4,15.5ZM4,18.5C4,18.2239,4.22386,18,4.5,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L4.5,19C4.22386,19,4,18.7761,4,18.5Z stroke-opacity=0 stroke=none>');const Hy=()=>Ky();var Wy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M20,3.5C20,4.15311,19.5826,4.70873,19,4.91465L19,18.5C19,18.7761,18.7761,19,18.5,19L4.91465,19C4.70873,19.5826,4.15311,20,3.5,20C2.671573,20,2,19.3284,2,18.5C2,17.846899999999998,2.417404,17.2913,3,17.0854L3,3.5C3,3.22386,3.22386,3,3.5,3L17.0854,3C17.2913,2.417404,17.846899999999998,2,18.5,2C19.3284,2,20,2.671573,20,3.5ZM17.0854,4C17.236,4.42621,17.5738,4.763999999999999,18,4.91465L18,8L14,8L14,4L17.0854,4ZM13,4L13,8L9,8L9,4L13,4ZM13,9L9,9L9,13L13,13L13,9ZM13,14L9,14L9,18L13,18L13,14ZM14,18L14,14L18,14L18,18L14,18ZM18,13L14,13L14,9L18,9L18,13ZM4.91465,18C4.763999999999999,17.5738,4.42621,17.236,4,17.0854L4,14L8,14L8,18L4.91465,18ZM4,8L4,4L8,4L8,8L4,8ZM8,9L8,13L4,13L4,9L8,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Uy=()=>Wy();var Zy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><ellipse cx=10.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=17.5 cy=11.5 rx=1.5 ry=1.5 stroke-opacity=0 stroke=none></ellipse><ellipse cx=10.5 cy=11.5 rx=7 ry=7 fill-opacity=0 fill=none stroke-opacity=1 stroke-width=1>');const Yy=()=>Zy();var qy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11.57625,6.9981C11.55099,6.999359999999999,11.52557,7,11.5,7C11.34,7,11.18584,6.97495,11.04125,6.9285499999999995L5.55401,16.4327C5.713760000000001,16.5905,5.83826,16.7839,5.91465,17L16.0854,17C16.2187,16.622700000000002,16.4987,16.314700000000002,16.8569,16.1445L11.57625,6.9981ZM12.50759,6.611219999999999C12.81005,6.336790000000001,13,5.94058,13,5.5C13,4.671573,12.32843,4,11.5,4C10.67157,4,10,4.671573,10,5.5C10,5.80059,10.08841,6.08052,10.24066,6.31522L4.64514,16.0069C4.59738,16.002299999999998,4.54896,16,4.5,16C3.671573,16,3,16.671599999999998,3,17.5C3,18.328400000000002,3.671573,19,4.5,19C5.15311,19,5.70873,18.5826,5.91465,18L16.0854,18C16.2913,18.5826,16.846899999999998,19,17.5,19C18.328400000000002,19,19,18.328400000000002,19,17.5C19,16.8365,18.5691,16.2735,17.971899999999998,16.075699999999998L12.50759,6.611219999999999Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Gy=()=>qy();var Vy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19,4.5C19,5.15311,18.5826,5.70873,18,5.91465L18,18.5C18,18.7761,17.7761,19,17.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854L4,4.5C4,4.22386,4.22386,4,4.5,4L16.0854,4C16.2913,3.417404,16.846899999999998,3,17.5,3C18.328400000000002,3,19,3.671573,19,4.5ZM5,5L16.0854,5C16.236,5.42621,16.5738,5.763999999999999,17,5.91465L17,18L5.91465,18C5.763999999999999,17.5738,5.42621,17.236,5,17.0854L5,5Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const jy=()=>Vy();var Qy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M19.6401,7.99355C20.4028,7.92291,21,7.2811900000000005,21,6.5C21,5.671573,20.3284,5,19.5,5C18.8469,5,18.2913,5.417404,18.0854,6L7.62067,6C7.34453,6,7.12067,6.22386,7.12067,6.5C7.12067,6.5479,7.12741,6.59423,7.13999,6.63809L3.2294099999999997,15.0243C2.530138,15.1517,2,15.764,2,16.5C2,17.328400000000002,2.671573,18,3.5,18C4.15311,18,4.70873,17.5826,4.91465,17L14.5963,17C14.6456,17.076,14.7162,17.1396,14.8044,17.1807C15.0546,17.2974,15.3521,17.1891,15.4688,16.9388L19.6401,7.99355ZM14.7896,16.0293L18.6551,7.739599999999999C18.3942,7.56144,18.1925,7.30307,18.0854,7L8.0746,7L4.25044,15.2009C4.55701,15.3784,4.79493,15.6613,4.91465,16L14.6207,16C14.68,16,14.7368,16.0103,14.7896,16.0293Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const Xy=()=>Qy();var Jy=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.134443814697265,7.494615087890625L8.764323814697265,7.494615087890625L8.764323814697265,3.414215087890625L8.310223814697267,3.414215087890625L7.294603814697266,4.005035087890625L7.289713814697266,4.634915087890625L8.134443814697265,4.149892087890625L8.134443814697265,7.494615087890625ZM18.832003814697266,6.933095087890624Q19.004603814697266,6.635245087890625,19.004603814697266,6.2543850878906255Q19.004603814697266,5.884915087890625,18.845103814697264,5.593575087890625Q18.685503814697267,5.3006050878906255,18.399103814697266,5.136225087890625Q18.114303814697266,4.9702050878906245,17.754603814697266,4.9653250878906245L18.820603814697265,3.840647087890625L18.820603814697265,3.414215087890625L16.519203814697264,3.414215087890625L16.519203814697264,3.939931087890625L18.050803814697264,3.939931087890625L16.719403814697266,5.334785087890625L17.074203814697263,5.7205350878906245Q17.254903814697265,5.484525087890625,17.619503814697268,5.484525087890625Q17.980803814697268,5.484525087890625,18.187503814697266,5.689605087890625Q18.394203814697267,5.894685087890625,18.394203814697267,6.2543850878906255Q18.394203814697267,6.604315087890625,18.187503814697266,6.822415087890625Q17.980803814697268,7.0405150878906255,17.640603814697265,7.0405150878906255Q17.334603814697267,7.0405150878906255,17.124703814697266,6.890775087890625Q16.914703814697265,6.739415087890626,16.820303814697265,6.469225087890624L16.354803814697263,6.744295087890626Q16.480103814697266,7.125155087890625,16.821903814697265,7.341625087890625Q17.165403814697264,7.559725087890625,17.640603814697265,7.559725087890625Q18.039403814697266,7.559725087890625,18.348603814697267,7.393705087890625Q18.659503814697267,7.229315087890625,18.832003814697266,6.933095087890624ZM10.000003814697266,10.634915087890626C10.000003814697266,11.024655087890626,9.851363814697265,11.379685087890625,9.607683814697266,11.646395087890625L12.168903814697266,15.171615087890626C12.275403814697265,15.147615087890625,12.386203814697266,15.134915087890626,12.500003814697266,15.134915087890626C12.596503814697266,15.134915087890626,12.690803814697265,15.144015087890624,12.782303814697265,15.161415087890624L16.108803814697268,11.196955087890625C16.038703814697264,11.023375087890624,16.000003814697266,10.833655087890625,16.000003814697266,10.634915087890626C16.000003814697266,9.806495087890625,16.671603814697264,9.134915087890626,17.500003814697266,9.134915087890626C18.328403814697264,9.134915087890626,19.000003814697266,9.806495087890625,19.000003814697266,10.634915087890626C19.000003814697266,11.463345087890625,18.328403814697264,12.134915087890626,17.500003814697266,12.134915087890626C17.239503814697265,12.134915087890626,16.994503814697268,12.068495087890625,16.781003814697264,11.951675087890624L13.654703814697266,15.677415087890624C13.870303814697266,15.937215087890625,14.000003814697266,16.270915087890625,14.000003814697266,16.634915087890626C14.000003814697266,17.463315087890624,13.328403814697266,18.134915087890626,12.500003814697266,18.134915087890626C11.671573814697265,18.134915087890626,11.000003814697266,17.463315087890624,11.000003814697266,16.634915087890626C11.000003814697266,16.284415087890626,11.120193814697265,15.962015087890626,11.321603814697266,15.706715087890625L8.715393814697265,12.119565087890624C8.645053814697267,12.129685087890625,8.573143814697266,12.134915087890626,8.500003814697266,12.134915087890626C8.162103814697264,12.134915087890626,7.8503038146972655,12.023195087890626,7.599523814697266,11.834665087890626L4.505583814697266,15.521915087890624C4.809213814697266,15.796415087890624,5.000003814697266,16.193415087890624,5.000003814697266,16.634915087890626C5.000003814697266,17.463315087890624,4.328433814697266,18.134915087890626,3.5000038146972656,18.134915087890626C2.6715768146972656,18.134915087890626,2.0000038146972656,17.463315087890624,2.0000038146972656,16.634915087890626C2.0000038146972656,15.806515087890626,2.6715768146972656,15.134915087890626,3.5000038146972656,15.134915087890626C3.508253814697266,15.134915087890626,3.5164838146972657,15.135015087890626,3.524703814697266,15.135115087890625L7.033823814697266,10.953115087890625C7.011673814697265,10.850565087890626,7.000003814697266,10.744105087890624,7.000003814697266,10.634915087890626C7.000003814697266,9.806495087890625,7.671573814697266,9.134915087890626,8.500003814697266,9.134915087890626C9.328433814697267,9.134915087890626,10.000003814697266,9.806495087890625,10.000003814697266,10.634915087890626Z stroke-opacity=0 stroke=none>');const eb=()=>Jy();var tb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M8.13444,7.494615087890625L8.76432,7.494615087890625L8.76432,3.414215087890625L8.310220000000001,3.414215087890625L7.2946,4.005035087890625L7.28971,4.634915087890625L8.13444,4.149892087890625L8.13444,7.494615087890625ZM18.832,6.929835087890625Q19.0046,6.635245087890625,19.0046,6.2543850878906255Q19.0046,5.889805087890625,18.8451,5.5952050878906245Q18.6855,5.3006050878906255,18.3975,5.132965087890625Q18.1094,4.9653250878906245,17.7399,4.9653250878906245Q17.435499999999998,4.9653250878906245,17.1556,5.149245087890625L17.2793,3.939931087890625L18.8304,3.939931087890625L18.8304,3.414215087890625L16.7406,3.414215087890625L16.5094,5.665195087890625L17.0156,5.795405087890625Q17.095399999999998,5.655425087890626,17.2516,5.570795087890625Q17.4095,5.484525087890625,17.6357,5.484525087890625Q17.9694,5.484525087890625,18.1842,5.697745087890625Q18.4007,5.909335087890625,18.4007,6.2543850878906255Q18.4007,6.604315087890625,18.1842,6.822415087890625Q17.9694,7.0405150878906255,17.6292,7.0405150878906255Q17.3298,7.0405150878906255,17.119799999999998,6.890775087890625Q16.9098,6.739415087890626,16.825200000000002,6.474115087890625L16.3597,6.749175087890626Q16.470399999999998,7.110505087890624,16.807299999999998,7.335115087890625Q17.144199999999998,7.559725087890625,17.6292,7.559725087890625Q18.0296,7.559725087890625,18.3438,7.392075087890625Q18.6595,7.224435087890625,18.832,6.929835087890625ZM10,10.634915087890626C10,11.024655087890626,9.85136,11.379685087890625,9.60768,11.646395087890625L12.1689,15.171615087890626C12.2754,15.147615087890625,12.3862,15.134915087890626,12.5,15.134915087890626C12.5965,15.134915087890626,12.6908,15.144015087890624,12.7823,15.161415087890624L16.108800000000002,11.196955087890625C16.0387,11.023375087890624,16,10.833655087890625,16,10.634915087890626C16,9.806495087890625,16.671599999999998,9.134915087890626,17.5,9.134915087890626C18.3284,9.134915087890626,19,9.806495087890625,19,10.634915087890626C19,11.463345087890625,18.3284,12.134915087890626,17.5,12.134915087890626C17.2395,12.134915087890626,16.994500000000002,12.068505087890625,16.781,11.951675087890624L13.6547,15.677415087890624C13.8703,15.937215087890625,14,16.270915087890625,14,16.634915087890626C14,17.463315087890624,13.3284,18.134915087890626,12.5,18.134915087890626C11.67157,18.134915087890626,11,17.463315087890624,11,16.634915087890626C11,16.284415087890626,11.12019,15.962015087890626,11.3216,15.706715087890625L8.71539,12.119565087890624C8.645050000000001,12.129685087890625,8.57314,12.134915087890626,8.5,12.134915087890626C8.162099999999999,12.134915087890626,7.8503,12.023195087890626,7.59952,11.834665087890626L4.50558,15.521915087890624C4.80921,15.796415087890624,5,16.193415087890624,5,16.634915087890626C5,17.463315087890624,4.32843,18.134915087890626,3.5,18.134915087890626C2.671573,18.134915087890626,2,17.463315087890624,2,16.634915087890626C2,15.806515087890626,2.671573,15.134915087890626,3.5,15.134915087890626C3.5082500000000003,15.134915087890626,3.51648,15.135015087890626,3.5247,15.135115087890625L7.03382,10.953115087890625C7.01167,10.850565087890626,7,10.744105087890624,7,10.634915087890626C7,9.806495087890625,7.67157,9.134915087890626,8.5,9.134915087890626C9.32843,9.134915087890626,10,9.806495087890625,10,10.634915087890626Z stroke-opacity=0 stroke=none>');const nb=()=>tb();var rb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M18.8532,7.020985087890625Q19.0257,6.734525087890625,19.0257,6.369945087890625Q19.0257,6.020005087890625,18.8499,5.754705087890625Q18.6758,5.489415087890626,18.3649,5.339675087890625Q18.5944,5.209465087890625,18.7214,4.994615087890625Q18.8499,4.779775087890625,18.8499,4.5193550878906255Q18.8499,4.2003480878906245,18.7002,3.951324087890625Q18.5505,3.700673087890625,18.277,3.557444087890625Q18.0052,3.414215087890625,17.6455,3.414215087890625Q17.285800000000002,3.414215087890625,17.0107,3.557444087890625Q16.7357,3.700673087890625,16.5843,3.951324087890625Q16.4346,4.2003480878906245,16.4346,4.5193550878906255Q16.4346,4.779775087890625,16.561500000000002,4.994615087890625Q16.6901,5.209465087890625,16.919600000000003,5.339675087890625Q16.6055,5.489415087890626,16.4297,5.757965087890625Q16.255499999999998,6.024895087890625,16.255499999999998,6.369945087890625Q16.255499999999998,6.734525087890625,16.4297,7.020985087890625Q16.6055,7.305815087890625,16.919600000000003,7.465325087890625Q17.2354,7.624825087890625,17.6455,7.624825087890625Q18.0557,7.624825087890625,18.3682,7.465325087890625Q18.6807,7.305815087890625,18.8532,7.020985087890625ZM8.76432,7.559725087890625L8.13444,7.559725087890625L8.13444,4.214996087890625L7.28971,4.700025087890625L7.2946,4.070139087890625L8.310220000000001,3.479319087890625L8.76432,3.479319087890625L8.76432,7.559725087890625ZM17.1816,4.955555087890625Q17.0042,4.784655087890625,17.0042,4.5095950878906255Q17.0042,4.229645087890625,17.18,4.057119087890625Q17.355800000000002,3.884592087890625,17.6455,3.884592087890625Q17.935200000000002,3.884592087890625,18.1077,4.057119087890625Q18.2803,4.229645087890625,18.2803,4.5095950878906255Q18.2803,4.784655087890625,18.1045,4.955555087890625Q17.930300000000003,5.124825087890625,17.6455,5.124825087890625Q17.3607,5.124825087890625,17.1816,4.955555087890625ZM18.2217,5.7953950878906255Q18.4398,6.005365087890625,18.4398,6.3552950878906245Q18.4398,6.705235087890625,18.2217,6.915195087890625Q18.0052,7.125155087890625,17.6455,7.125155087890625Q17.285800000000002,7.125155087890625,17.067700000000002,6.915195087890625Q16.849600000000002,6.705235087890625,16.849600000000002,6.3552950878906245Q16.849600000000002,6.005365087890625,17.064500000000002,5.7953950878906255Q17.2793,5.585435087890625,17.6455,5.585435087890625Q18.0052,5.585435087890625,18.2217,5.7953950878906255ZM9.60768,11.711495087890626C9.85136,11.444785087890626,10,11.089765087890626,10,10.700025087890625C10,9.871595087890626,9.32843,9.200025087890625,8.5,9.200025087890625C7.67157,9.200025087890625,7,9.871595087890626,7,10.700025087890625C7,10.809205087890625,7.01167,10.915665087890625,7.03382,11.018215087890624L3.5247,15.200215087890625C3.51648,15.200115087890625,3.5082500000000003,15.200015087890625,3.5,15.200015087890625C2.671573,15.200015087890625,2,15.871615087890625,2,16.700015087890627C2,17.528415087890625,2.671573,18.200015087890627,3.5,18.200015087890627C4.32843,18.200015087890627,5,17.528415087890625,5,16.700015087890627C5,16.258515087890625,4.80921,15.861515087890625,4.50558,15.587015087890626L7.59952,11.899765087890625C7.8503,12.088295087890625,8.162099999999999,12.200025087890625,8.5,12.200025087890625C8.57314,12.200025087890625,8.645050000000001,12.194785087890626,8.71539,12.184675087890625L11.3216,15.771815087890625C11.12019,16.027215087890625,11,16.349515087890623,11,16.700015087890627C11,17.528415087890625,11.67157,18.200015087890627,12.5,18.200015087890627C13.3284,18.200015087890627,14,17.528415087890625,14,16.700015087890627C14,16.336015087890623,13.8703,16.002315087890626,13.6547,15.742515087890625L16.781,12.016775087890625C16.994500000000002,12.133605087890626,17.2395,12.200025087890625,17.5,12.200025087890625C18.3284,12.200025087890625,19,11.528445087890624,19,10.700025087890625C19,9.871595087890626,18.3284,9.200025087890625,17.5,9.200025087890625C16.671599999999998,9.200025087890625,16,9.871595087890626,16,10.700025087890625C16,10.898765087890624,16.0387,11.088475087890625,16.108800000000002,11.262055087890625L12.7823,15.226515087890625C12.6908,15.209115087890625,12.5965,15.200015087890625,12.5,15.200015087890625C12.3862,15.200015087890625,12.2754,15.212715087890626,12.1689,15.236715087890625L9.60768,11.711495087890626Z stroke-opacity=0 stroke=none>');const ib=()=>rb();var ob=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M9.474616630859375,7.494615087890625L8.844736630859375,7.494615087890625L8.844736630859375,4.149892087890625L8.000006630859374,4.634915087890625L8.004896630859374,4.005035087890625L9.020516630859376,3.414215087890625L9.474616630859375,3.414215087890625L9.474616630859375,7.494615087890625ZM18.529296630859378,4.8318550878906255Q18.307996630859375,5.028795087890625,18.122396630859377,5.385245087890625Q17.868496630859376,5.019035087890625,17.629196630859376,4.8269750878906255Q17.389996630859375,4.634915087890625,17.168596630859376,4.634915087890625Q16.794296630859375,4.634915087890625,16.522496630859376,4.976715087890625Q16.252296630859377,5.3168850878906255,16.252296630859377,5.7856350878906255Q16.252296630859377,6.218575087890625,16.502896630859375,6.521315087890625Q16.755196630859373,6.822415087890625,17.114896630859377,6.822415087890625Q17.368796630859375,6.822415087890625,17.588596630859374,6.625475087890624Q17.809896630859377,6.428535087890625,17.998696630859374,6.0688350878906245Q18.249396630859373,6.439935087890625,18.488596630859377,6.631985087890625Q18.727896630859377,6.822415087890625,18.952496630859375,6.822415087890625Q19.326796630859373,6.822415087890625,19.596996630859376,6.482245087890625Q19.868796630859375,6.140455087890626,19.868796630859375,5.671705087890626Q19.868796630859375,5.238755087890625,19.618196630859376,4.937655087890625Q19.367496630859375,4.634915087890625,19.006196630859375,4.634915087890625Q18.750696630859377,4.634915087890625,18.529296630859378,4.8318550878906255ZM18.337296630859377,5.674955087890625L18.278696630859375,5.596835087890625Q18.449596630859375,5.272935087890625,18.622096630859374,5.1101750878906245Q18.794596630859374,4.947415087890625,18.967096630859373,4.947415087890625Q19.194996630859375,4.947415087890625,19.346396630859374,5.1345950878906255Q19.497696630859377,5.320135087890625,19.497696630859377,5.598455087890625Q19.497696630859377,5.8914250878906245,19.360996630859376,6.096505087890625Q19.224296630859374,6.301585087890626,19.027396630859375,6.301585087890626Q18.915096630859374,6.301585087890626,18.742496630859375,6.146965087890624Q18.569996630859375,5.992335087890625,18.337296630859377,5.674955087890625ZM17.785496630859377,5.779125087890625L17.842496630859372,5.857245087890625Q17.668296630859373,6.186025087890625,17.495796630859374,6.348785087890625Q17.324896630859374,6.509915087890625,17.153996630859375,6.509915087890625Q16.926096630859377,6.509915087890625,16.774796630859377,6.324375087890624Q16.623396630859375,6.137195087890625,16.623396630859375,5.858875087890625Q16.623396630859375,5.565905087890625,16.761696630859376,5.360825087890625Q16.900096630859373,5.1557550878906255,17.095396630859376,5.1557550878906255Q17.228896630859374,5.1557550878906255,17.365596630859375,5.2778250878906245Q17.502296630859377,5.399895087890625,17.785496630859377,5.779125087890625ZM10.710296630859375,10.634915087890626C10.710296630859375,11.024655087890626,10.561656630859375,11.379685087890625,10.317976630859375,11.646395087890625L12.879196630859376,15.171615087890626C12.985696630859374,15.147615087890625,13.096496630859376,15.134915087890626,13.210296630859375,15.134915087890626C13.306796630859376,15.134915087890626,13.401096630859374,15.144015087890624,13.492596630859374,15.161415087890624L16.819096630859377,11.196955087890625C16.748996630859374,11.023375087890624,16.710296630859375,10.833655087890625,16.710296630859375,10.634915087890626C16.710296630859375,9.806495087890625,17.381896630859373,9.134915087890626,18.210296630859375,9.134915087890626C19.038696630859373,9.134915087890626,19.710296630859375,9.806495087890625,19.710296630859375,10.634915087890626C19.710296630859375,11.463345087890625,19.038696630859373,12.134915087890626,18.210296630859375,12.134915087890626C17.949796630859375,12.134915087890626,17.704796630859377,12.068505087890625,17.491296630859374,11.951675087890624L14.364996630859375,15.677415087890624C14.580596630859375,15.937215087890625,14.710296630859375,16.270915087890625,14.710296630859375,16.634915087890626C14.710296630859375,17.463315087890624,14.038696630859375,18.134915087890626,13.210296630859375,18.134915087890626C12.381866630859374,18.134915087890626,11.710296630859375,17.463315087890624,11.710296630859375,16.634915087890626C11.710296630859375,16.284415087890626,11.830486630859374,15.962015087890626,12.031896630859375,15.706715087890625L9.425686630859374,12.119565087890624C9.355346630859376,12.129685087890625,9.283436630859375,12.134915087890626,9.210296630859375,12.134915087890626C8.872396630859374,12.134915087890626,8.560596630859376,12.023195087890626,8.309816630859375,11.834665087890626L5.215876630859375,15.521915087890624C5.519506630859375,15.796415087890624,5.710296630859375,16.193415087890624,5.710296630859375,16.634915087890626C5.710296630859375,17.463315087890624,5.038726630859375,18.134915087890626,4.210296630859375,18.134915087890626C3.381869630859375,18.134915087890626,2.710296630859375,17.463315087890624,2.710296630859375,16.634915087890626C2.710296630859375,15.806515087890626,3.381869630859375,15.134915087890626,4.210296630859375,15.134915087890626C4.218546630859375,15.134915087890626,4.226776630859375,15.135015087890626,4.234996630859375,15.135115087890625L7.744116630859375,10.953115087890625C7.721966630859375,10.850565087890626,7.710296630859375,10.744105087890624,7.710296630859375,10.634915087890626C7.710296630859375,9.806495087890625,8.381866630859374,9.134915087890626,9.210296630859375,9.134915087890626C10.038726630859376,9.134915087890626,10.710296630859375,9.806495087890625,10.710296630859375,10.634915087890626Z stroke-opacity=0 stroke=none>');const ab=()=>ob();var sb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M21,5.5C21,6.32843,20.3284,7,19.5,7C19.4136,7,19.3289,6.99269,19.2465,6.97866L15.6257,15.5086C15.8587,15.7729,16,16.119999999999997,16,16.5C16,17.328400000000002,15.3284,18,14.5,18C13.8469,18,13.2913,17.5826,13.0854,17L3.91465,17C3.70873,17.5826,3.15311,18,2.5,18C1.671573,18,1,17.328400000000002,1,16.5C1,15.6716,1.671573,15,2.5,15C2.5840199999999998,15,2.66643,15.0069,2.74668,15.0202L6.36934,6.48574C6.13933,6.22213,6,5.87733,6,5.5C6,4.671573,6.67157,4,7.5,4C8.15311,4,8.70873,4.417404,8.91465,5L18.0854,5C18.2913,4.417404,18.8469,4,19.5,4C20.3284,4,21,4.671573,21,5.5ZM18.0854,6L8.91465,6C8.892579999999999,6.06243,8.8665,6.12296,8.83672,6.18128L13.9814,15.0921C14.143,15.0325,14.3177,15,14.5,15C14.584,15,14.6664,15.0069,14.7467,15.0202L18.3693,6.48574C18.2462,6.3446,18.149,6.1802,18.0854,6ZM13.2036,15.745L8.0861,6.8811800000000005C7.90605,6.95768,7.70797,7,7.5,7C7.41359,7,7.32888,6.99269,7.24647,6.97866L3.62571,15.5086C3.7512,15.651,3.8501,15.8174,3.91465,16L13.0854,16C13.1169,15.9108,13.1566,15.8255,13.2036,15.745Z stroke-opacity=0 stroke=none>');const lb=()=>sb();var cb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.92159,5.93994C6.04014,5.90529,6.152620000000001,5.85639,6.25704,5.79523L9.12729,9.89437C9.045449999999999,10.07959,9,10.28449,9,10.5C9,10.79522,9.08529,11.07053,9.232569999999999,11.30262L4.97573,16.7511L5.92159,5.93994ZM4.92259,5.8848400000000005C4.38078,5.658659999999999,4,5.1238,4,4.5C4,3.671573,4.67157,3,5.5,3C6.2157,3,6.81433,3.50124,6.96399,4.17183L15.1309,4.88634C15.3654,4.36387,15.8902,4,16.5,4C17.328400000000002,4,18,4.67157,18,5.5C18,6.08983,17.659599999999998,6.60015,17.1645,6.84518L18.4264,14.0018C18.4508,14.0006,18.4753,14,18.5,14C19.3284,14,20,14.6716,20,15.5C20,16.328400000000002,19.3284,17,18.5,17C17.932499999999997,17,17.4386,16.6849,17.183799999999998,16.22L5.99686,18.5979C5.946429999999999,19.3807,5.29554,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.869300000000003,3.389292,17.3295,3.94071,17.1077L4.92259,5.8848400000000005ZM5.72452,17.6334C5.69799,17.596,5.6698,17.5599,5.64004,17.525100000000002L10.01843,11.92103C10.16958,11.97223,10.33155,12,10.5,12C10.80059,12,11.08052,11.91158,11.31522,11.75934L17.0606,15.0765C17.0457,15.1271,17.0335,15.1789,17.023899999999998,15.2317L5.72452,17.6334ZM11.92855,10.95875L17.4349,14.1379L16.1699,6.96356C15.9874,6.92257,15.8174,6.8483,15.6667,6.74746L11.99771,10.4165C11.99923,10.44414,12,10.47198,12,10.5C12,10.66,11.97495,10.814160000000001,11.92855,10.95875ZM10.5,9C10.259830000000001,9,10.03285,9.05644,9.83159,9.15679L7.04919,5.1831L15.0493,5.88302C15.054,5.90072,15.059,5.91829,15.0643,5.9357299999999995L11.56066,9.43934C11.28921,9.16789,10.91421,9,10.5,9Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const ub=()=>cb();var fb=Y('<svg viewBox="0 0 22 22"><path d=M4.727219638671875,8.007996215820313L9.973849638671876,2.7629472158203123C10.167279638671875,2.5696791158203123,10.480729638671875,2.5696791158203123,10.674169638671875,2.7629472158203123L13.223329638671874,5.311756215820313C13.416929638671874,5.505236215820313,13.416929638671874,5.8189862158203125,13.223329638671874,6.012466215820313L7.977129638671875,11.257906215820313C7.379859638671875,11.855176215820313,7.407609638671875,12.909396215820312,8.033809638671876,13.535596215820313C8.660409638671876,14.162596215820313,9.713849638671874,14.189996215820312,10.311129638671876,13.591896215820313L15.556929638671875,8.346066215820311C15.750429638671875,8.152526215820313,16.064229638671875,8.152526215820313,16.257629638671872,8.346066215820311L18.806529638671876,10.895266215820312C19.000029638671876,11.088746215820313,19.000029638671876,11.402496215820312,18.806529638671876,11.595976215820313L13.560629638671875,16.841796215820313C11.165619638671876,19.237196215820312,7.197149638671875,19.19919621582031,4.783499638671875,16.785496215820313C2.3698426386718747,14.371896215820312,2.331397638671875,10.403416215820313,4.727219638671875,8.007996215820313ZM12.172299638671875,5.662106215820312L10.323809638671875,3.8136162158203124L5.4287196386718755,8.709096215820313C3.422893638671875,10.714536215820312,3.4549956386718748,14.055196215820313,5.484999638671875,16.08479621582031C7.514609638671875,18.114796215820313,10.855289638671875,18.146496215820314,12.860719638671876,16.141096215820312L15.465629638671874,13.535796215820312L14.090929638671875,12.160756215820312L14.791629638671875,11.460436215820312L16.166229638671876,12.834996215820313L17.755829638671877,11.245226215820313L15.907729638671874,9.396736215820312L11.011839638671875,14.292596215820312C10.042809638671875,15.262396215820312,8.418249638671874,15.243796215820312,7.406019638671875,14.306496215820312L7.333099638671875,14.236296215820312C6.327599638671876,13.230796215820313,6.284009638671876,11.550396215820312,7.276419638671875,10.557586215820312L9.882199638671874,7.952026215820313L8.501079638671875,6.570906215820313L9.201789638671876,5.870186215820313L10.582939638671874,7.251336215820312L12.172299638671875,5.662106215820312Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const db=e=>(()=>{var n=fb();return Je(n,"class",`icon-overlay ${e??""}`),n})();var hb=Y('<svg viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_615><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_615)><path d=M19.672,3.0673368C19.4417,2.9354008,19.1463,3.00292252,18.9994,3.2210900000000002L17.4588,5.50622L16.743299999999998,3.781253L13.9915,7.4662L13.9618,7.51108C13.8339,7.72862,13.8936,8.005659999999999,14.1004,8.15391L14.1462,8.183430000000001C14.3683,8.308720000000001,14.6511,8.25001,14.8022,8.047229999999999L16.4907,5.78571L17.246299999999998,7.60713L19.8374,3.7635389999999997L19.8651,3.717088C19.9871,3.484615,19.9023,3.199273,19.672,3.0673368ZM4.79974,8.462530000000001L10.117740000000001,3.252975C10.31381,3.0610145,10.63152,3.0610145,10.82759,3.252975L13.4115,5.78453C13.6076,5.976710000000001,13.6076,6.28833,13.4115,6.4805L8.093869999999999,11.69045C7.48847,12.28368,7.51659,13.3308,8.151309999999999,13.9528C8.786439999999999,14.5755,9.85421,14.6027,10.45961,14.0087L15.7768,8.79831C15.9729,8.60609,16.2909,8.60609,16.487099999999998,8.79831L19.0705,11.33026C19.2667,11.52244,19.2667,11.83406,19.0705,12.02623L13.7533,17.2366C11.32572,19.6158,7.30328,19.578,4.85679,17.1807C2.410298,14.7834,2.371331,10.84174,4.79974,8.462530000000001ZM12.3461,6.1325199999999995L10.47246,4.29654L5.51079,9.15889C3.477674,11.15076,3.510214,14.4688,5.56784,16.4847C7.62506,18.500999999999998,11.01117,18.5325,13.0439,16.540599999999998L15.6842,13.9529L14.2908,12.58718L15.0011,11.89161L16.394399999999997,13.2569L18.0056,11.67786L16.1323,9.84188L11.16985,14.7046C10.18764,15.6679,8.540980000000001,15.6494,7.51498,14.7184L7.44107,14.6487C6.4219,13.65,6.37771,11.98096,7.38362,10.994869999999999L10.02485,8.40693L8.624939999999999,7.03516L9.335180000000001,6.33919L10.73512,7.71099L12.3461,6.1325199999999995Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const gb=e=>(()=>{var n=hb();return Je(n,"class",`icon-overlay ${e??""}`),n})();var pb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M11,17C5.80945,17,3.667717,12.85,3.113386,11.575C2.9622047,11.2,2.9622047,10.8,3.113386,10.425C3.667717,9.15,5.80945,5,11,5C16.165399999999998,5,18.3323,9.15,18.8866,10.425C19.0378,10.8,19.0378,11.2,18.8866,11.575C18.3323,12.85,16.165399999999998,17,11,17ZM4.04567,10.8C3.995276,10.925,3.995276,11.05,4.04567,11.175C4.52441,12.325,6.43937,16,11,16C15.5606,16,17.4756,12.325,17.9543,11.2C18.0047,11.075,18.0047,10.95,17.9543,10.825C17.4756,9.675,15.5606,6,11,6C6.43937,6,4.52441,9.675,4.04567,10.8ZM11,13.5C9.61417,13.5,8.480319999999999,12.375,8.480319999999999,11C8.480319999999999,9.625,9.61417,8.5,11,8.5C12.38583,8.5,13.5197,9.625,13.5197,11C13.5197,12.375,12.38583,13.5,11,13.5ZM11,9.5C10.1685,9.5,9.48819,10.175,9.48819,11C9.48819,11.825,10.1685,12.5,11,12.5C11.8315,12.5,12.51181,11.825,12.51181,11C12.51181,10.175,11.8315,9.5,11,9.5Z stroke-opacity=0 fill-opacity=1>');const _b=()=>pb();var mb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M5.80417,14.9887L4.62563,16.167299999999997C4.43037,16.3625,4.43037,16.6791,4.62563,16.8744C4.82089,17.0696,5.13748,17.0696,5.332739999999999,16.8744L6.62638,15.5807C7.75595,16.290100000000002,9.19328,16.7929,11,16.7929C16.165399999999998,16.7929,18.3323,12.64289,18.8866,11.36789C19.0378,10.99289,19.0378,10.59289,18.8866,10.21789C18.5549,9.45486,17.6456,7.66212,15.8617,6.34545L17.3536,4.853553C17.5488,4.658291,17.5488,4.341709,17.3536,4.146447C17.1583,3.9511845,16.8417,3.9511845,16.6464,4.146447L15.0014,5.7915399999999995C13.9314,5.1969,12.61166,4.792893,11,4.792893C5.80945,4.792893,3.667717,8.94289,3.113386,10.21789C2.9622049,10.59289,2.9622049,10.99289,3.113386,11.36789C3.424435,12.08333,4.2353000000000005,13.70399,5.80417,14.9887ZM7.36012,14.847C8.32327,15.4074,9.52286,15.7929,11,15.7929C15.5606,15.7929,17.4756,12.11789,17.9543,10.99289C18.0047,10.86789,18.0047,10.74289,17.9543,10.61789C17.659,9.90846,16.8171,8.23812,15.1447,7.06241L12.96929,9.23782C13.3134,9.66543,13.5197,10.20642,13.5197,10.79289C13.5197,12.16789,12.38583,13.29289,11,13.29289C10.41596,13.29289,9.87667,13.09308,9.44815,12.75896L7.36012,14.847ZM8.794609999999999,11.99829L6.520099999999999,14.2728C5.06905,13.12119,4.32057,11.628250000000001,4.04567,10.96789C3.995275,10.84289,3.995275,10.71789,4.04567,10.59289C4.52441,9.46789,6.43937,5.79289,11,5.79289C12.28868,5.79289,13.3661,6.086320000000001,14.2596,6.53329L12.19759,8.5953C11.84086,8.40257,11.43271,8.29289,11,8.29289C9.61417,8.29289,8.480319999999999,9.41789,8.480319999999999,10.79289C8.480319999999999,11.22918,8.594470000000001,11.64029,8.794609999999999,11.99829ZM10.16528,12.04183C10.404869999999999,12.20032,10.692070000000001,12.29289,11,12.29289C11.8315,12.29289,12.51181,11.61789,12.51181,10.79289C12.51181,10.48318,12.41593,10.194600000000001,12.25216,9.95494L10.16528,12.04183ZM11.43602,9.35687L9.55616,11.236740000000001C9.512,11.09633,9.48819,10.94724,9.48819,10.79289C9.48819,9.96789,10.1685,9.29289,11,9.29289C11.15142,9.29289,11.29782,9.31528,11.43602,9.35687Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const yb=()=>mb();var bb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_625><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_625)><path d=M14.5385,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807692,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.88462,4,14.5385,5.61538,14.5385,7.576919999999999L14.5385,9.76923ZM10.88461,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923L13.38462,9.76923L13.38462,7.576919999999999C13.38462,6.23077,12.26923,5.15385,10.88461,5.15385ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.038450000000001,12.07692,11.307680000000001,12.34615,11.307680000000001,12.65385L11.307680000000001,14.5769C11.307680000000001,14.8846,11.038450000000001,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const vb=()=>bb();var Cb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><defs><clipPath id=master_svg0_151_620><rect x=0 y=0 width=22 height=22 rx=0></rect></clipPath></defs><g clip-path=url(#master_svg0_151_620)><path d=M8.38461,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807693,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.46154,4,13.84615,4.961539,14.3462,6.423080000000001C14.4615,6.73077,14.3077,7.038460000000001,14,7.15385C13.69231,7.26923,13.38461,7.11538,13.26923,6.80769C12.92308,5.80769,11.96154,5.15385,10.88462,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.03846,12.07692,11.307690000000001,12.34615,11.307690000000001,12.65385L11.307690000000001,14.5769C11.307690000000001,14.8846,11.03846,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z stroke-opacity=0 fill-rule=evenodd fill-opacity=1>');const xb=()=>Cb();var wb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M16.966900000000003,8.67144C16.6669,8.67144,16.4247,8.91558,16.4247,9.21802L16.4247,16.631500000000003C16.4247,17.322,16.007199999999997,17.9068,15.5139,17.9068L13.93072,17.9068L13.93072,9.2162C13.93072,8.91741,13.68675,8.67144,13.38855,8.67144C13.09036,8.67144,12.84639,8.91741,12.84639,9.21802L12.84639,17.9068L10.151810000000001,17.9068L10.151810000000001,9.21802C10.151810000000001,8.91741,9.90783,8.67144,9.609639999999999,8.67144C9.31145,8.67144,9.06747,8.91741,9.06747,9.219850000000001L9.06747,17.9068L7.48614,17.9068C6.99277,17.9068,6.5753,17.322,6.5753,16.631500000000003L6.5753,9.21802C6.5753,8.91558,6.333130000000001,8.67144,6.03313,8.67144C5.73313,8.67144,5.49096,8.91558,5.49096,9.21802L5.49096,16.631500000000003C5.49096,17.9378,6.385540000000001,19,7.48614,19L15.512,19C16.6127,19,17.509,17.9378,17.509,16.631500000000003L17.509,9.21802C17.509,8.91558,17.2669,8.67144,16.966900000000003,8.67144ZM18.4578,6.21183L4.542169,6.21183C4.243976,6.21183,4,6.45779,4,6.75841C4,7.05903,4.243976,7.30499,4.542169,7.30499L18.4578,7.30499C18.756,7.30499,19,7.05903,19,6.75841C19,6.45779,18.756,6.21183,18.4578,6.21183ZM8.68072,5.10045L14.3193,5.10045C14.6175,5.10045,14.8614,4.852666,14.8614,4.550225C14.8614,4.247783,14.6175,4,14.3193,4L8.68072,4C8.38253,4,8.13855,4.247783,8.13855,4.550225C8.13855,4.852666,8.38253,5.10045,8.68072,5.10045Z stroke-opacity=0 fill-opacity=1>');const $b=()=>wb();var Lb=Y('<svg class=icon-overlay viewBox="0 0 22 22"><path d=M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z stroke-opacity=0 stroke=none>');const Sb={horizontalStraightLine:ay,horizontalRayLine:ly,horizontalSegment:uy,verticalStraightLine:dy,verticalRayLine:gy,verticalSegment:_y,straightLine:yy,rayLine:vy,segment:xy,arrow:$y,priceLine:Sy,priceChannelLine:Ay,parallelStraightLine:Ty,fibonacciLine:Iy,fibonacciSegment:Ey,fibonacciCircle:Ry,fibonacciSpiral:Fy,fibonacciSpeedResistanceFan:Ny,fibonacciExtension:Hy,gannBox:Uy,circle:Yy,triangle:Gy,rect:jy,parallelogram:Xy,threeWaves:eb,fiveWaves:nb,eightWaves:ib,anyWaves:ab,abcd:lb,xabcd:ub,weak_magnet:db,strong_magnet:gb,lock:vb,unlock:xb,visible:_b,invisible:yb,remove:$b,brush:()=>Lb()};function kb(e){return[{key:"horizontalStraightLine",text:m("horizontal_straight_line",e)},{key:"horizontalRayLine",text:m("horizontal_ray_line",e)},{key:"horizontalSegment",text:m("horizontal_segment",e)},{key:"verticalStraightLine",text:m("vertical_straight_line",e)},{key:"verticalRayLine",text:m("vertical_ray_line",e)},{key:"verticalSegment",text:m("vertical_segment",e)},{key:"straightLine",text:m("straight_line",e)},{key:"rayLine",text:m("ray_line",e)},{key:"segment",text:m("segment",e)},{key:"arrow",text:m("arrow",e)},{key:"brush",text:m("brush",e)},{key:"priceLine",text:m("price_line",e)}]}function Ab(e){return[{key:"priceChannelLine",text:m("price_channel_line",e)},{key:"parallelStraightLine",text:m("parallel_straight_line",e)}]}function Mb(e){return[{key:"circle",text:m("circle",e)},{key:"rect",text:m("rect",e)},{key:"parallelogram",text:m("parallelogram",e)},{key:"triangle",text:m("triangle",e)}]}function Tb(e){return[{key:"fibonacciLine",text:m("fibonacci_line",e)},{key:"fibonacciSegment",text:m("fibonacci_segment",e)},{key:"fibonacciCircle",text:m("fibonacci_circle",e)},{key:"fibonacciSpiral",text:m("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:m("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:m("fibonacci_extension",e)},{key:"gannBox",text:m("gann_box",e)}]}function Pb(e){return[{key:"xabcd",text:m("xabcd",e)},{key:"abcd",text:m("abcd",e)},{key:"threeWaves",text:m("three_waves",e)},{key:"fiveWaves",text:m("five_waves",e)},{key:"eightWaves",text:m("eight_waves",e)},{key:"anyWaves",text:m("any_waves",e)}]}function Ib(e){return[{key:"weak_magnet",text:m("weak_magnet",e)},{key:"strong_magnet",text:m("strong_magnet",e)}]}const en=e=>Sb[e.name](e.class);var Ob=Y('<div class=klinecharts-pro-drawing-bar><span class=split-line></span><div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0></path></svg></div></div><div class=item><span style=width:32px;height:32px></span></div><div class=item><span style=width:32px;height:32px></span></div><span class=split-line></span><div class=item><span style=width:32px;height:32px>'),Eb=Y('<div class=item tabindex=0><span style=width:32px;height:32px></span><div class=icon-arrow><svg viewBox="0 0 4 6"><path d=M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z stroke=none stroke-opacity=0>'),d9=Y("<li><span style=padding-left:8px>");const h9="drawing_tools",Db=e=>{const[n,i]=Q("horizontalStraightLine"),[o,s]=Q("priceChannelLine"),[l,c]=Q("circle"),[f,d]=Q("fibonacciLine"),[g,v]=Q("xabcd"),[y,b]=Q("weak_magnet"),[C,L]=Q("normal"),[k,x]=Q(!1),[$,P]=Q(!0),[O,T]=Q(""),z=Tt(()=>[{key:"singleLine",icon:n(),list:kb(e.locale),setter:i},{key:"moreLine",icon:o(),list:Ab(e.locale),setter:s},{key:"polygon",icon:l(),list:Mb(e.locale),setter:c},{key:"fibonacci",icon:f(),list:Tb(e.locale),setter:d},{key:"wave",icon:g(),list:Pb(e.locale),setter:v}]),H=Tt(()=>Ib(e.locale));return(()=>{var U=Ob(),I=U.firstChild,D=I.nextSibling,V=D.firstChild,j=V.nextSibling,te=j.firstChild,ne=D.nextSibling,Ie=ne.firstChild,ot=ne.nextSibling,xt=ot.firstChild,wt=ot.nextSibling,Ye=wt.nextSibling,ft=Ye.firstChild;return R(U,()=>z().map($e=>(()=>{var oe=Eb(),Ae=oe.firstChild,dt=Ae.nextSibling,ae=dt.firstChild;return oe.addEventListener("blur",()=>{T("")}),Ae.$$click=()=>{e.onDrawingItemClick({groupId:h9,name:$e.icon,visible:$(),lock:k(),mode:C()})},R(Ae,q(en,{get name(){return $e.icon}})),dt.$$click=()=>{$e.key===O()?T(""):T($e.key)},R(oe,(()=>{var Me=Ze(()=>$e.key===O());return()=>Me()&&q(_i,{class:"list",get children(){return $e.list.map(ue=>(()=>{var Ee=d9(),ut=Ee.firstChild;return Ee.$$click=()=>{$e.setter(ue.key),e.onDrawingItemClick({name:ue.key,lock:k(),mode:C()}),T("")},R(Ee,q(en,{get name(){return ue.key}}),ut),R(ut,()=>ue.text),Ee})())}})})(),null),Te(()=>Je(ae,"class",$e.key===O()?"rotate":"")),oe})()),I),D.addEventListener("blur",()=>{T("")}),V.$$click=()=>{let $e=y();C()!=="normal"&&($e="normal"),L($e),e.onModeChange($e)},R(V,(()=>{var $e=Ze(()=>y()==="weak_magnet");return()=>$e()?Ze(()=>C()==="weak_magnet")()?q(en,{name:"weak_magnet",class:"selected"}):q(en,{name:"weak_magnet"}):Ze(()=>C()==="strong_magnet")()?q(en,{name:"strong_magnet",class:"selected"}):q(en,{name:"strong_magnet"})})()),j.$$click=()=>{O()==="mode"?T(""):T("mode")},R(D,(()=>{var $e=Ze(()=>O()==="mode");return()=>$e()&&q(_i,{class:"list",get children(){return H().map(oe=>(()=>{var Ae=d9(),dt=Ae.firstChild;return Ae.$$click=()=>{b(oe.key),L(oe.key),e.onModeChange(oe.key),T("")},R(Ae,q(en,{get name(){return oe.key}}),dt),R(dt,()=>oe.text),Ae})())}})})(),null),Ie.$$click=()=>{const $e=!k();x($e),e.onLockChange($e)},R(Ie,(()=>{var $e=Ze(()=>!!k());return()=>$e()?q(en,{name:"lock"}):q(en,{name:"unlock"})})()),xt.$$click=()=>{const $e=!$();P($e),e.onVisibleChange($e)},R(xt,(()=>{var $e=Ze(()=>!!$());return()=>$e()?q(en,{name:"visible"}):q(en,{name:"invisible"})})()),ft.$$click=()=>{e.onRemoveClick(h9)},R(ft,q(en,{name:"remove"})),Te(()=>Je(te,"class",O()==="mode"?"rotate":"")),U})()};Dt(["click"]);var g9=Y("<li class=title>"),Rb=Y('<div style="padding:0 20px">'),p9=Y("<li class=row>");const Bb=e=>q(Ln,{get title(){return m("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){var n=Rb();return R(n,q(_i,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{var i=g9();return R(i,()=>m("main_indicator",e.locale)),i})(),Ze(()=>["MA","EMA","SMA","BOLL","SAR","BBI"].map(i=>{const o=e.mainIndicators.includes(i);return(()=>{var s=p9();return s.$$click=l=>{e.onMainIndicatorChange({name:i,id:"candle_pane",added:!o})},R(s,q(hl,{checked:o,get label(){return m(i.toLowerCase(),e.locale)}})),s})()})),(()=>{var i=g9();return R(i,()=>m("sub_indicator",e.locale)),i})(),Ze(()=>["MA","EMA","VOL","MACD","BOLL","KDJ","RSI","BIAS","BRAR","CCI","DMI","CR","PSY","DMA","TRIX","OBV","VR","WR","MTM","EMV","SAR","SMA","ROC","PVT","BBI","AO"].map(i=>{const o=i in e.subIndicators;return(()=>{var s=p9();return s.$$click=l=>{e.onSubIndicatorChange({name:i,id:e.subIndicators[i]??"",added:!o})},R(s,q(hl,{checked:o,get label(){return m(i.toLowerCase(),e.locale)}})),s})()}))]}})),n}});Dt(["click"]);function $o(e,n){switch(e){case"Etc/UTC":return m("utc",n);case"Pacific/Honolulu":return m("honolulu",n);case"America/Juneau":return m("juneau",n);case"America/Los_Angeles":return m("los_angeles",n);case"America/Chicago":return m("chicago",n);case"America/Toronto":return m("toronto",n);case"America/Sao_Paulo":return m("sao_paulo",n);case"Europe/London":return m("london",n);case"Europe/Berlin":return m("berlin",n);case"Asia/Bahrain":return m("bahrain",n);case"Asia/Dubai":return m("dubai",n);case"Asia/Ashkhabad":return m("ashkhabad",n);case"Asia/Almaty":return m("almaty",n);case"Asia/Bangkok":return m("bangkok",n);case"Asia/Shanghai":return m("shanghai",n);case"Asia/Tokyo":return m("tokyo",n);case"Australia/Sydney":return m("sydney",n);case"Pacific/Norfolk":return m("norfolk",n)}return e}function Fb(e){return[{key:"Etc/UTC",text:m("utc",e)},{key:"Pacific/Honolulu",text:m("honolulu",e)},{key:"America/Juneau",text:m("juneau",e)},{key:"America/Los_Angeles",text:m("los_angeles",e)},{key:"America/Chicago",text:m("chicago",e)},{key:"America/Toronto",text:m("toronto",e)},{key:"America/Sao_Paulo",text:m("sao_paulo",e)},{key:"Europe/London",text:m("london",e)},{key:"Europe/Berlin",text:m("berlin",e)},{key:"Asia/Bahrain",text:m("bahrain",e)},{key:"Asia/Dubai",text:m("dubai",e)},{key:"Asia/Ashkhabad",text:m("ashkhabad",e)},{key:"Asia/Almaty",text:m("almaty",e)},{key:"Asia/Bangkok",text:m("bangkok",e)},{key:"Asia/Shanghai",text:m("shanghai",e)},{key:"Asia/Tokyo",text:m("tokyo",e)},{key:"Australia/Sydney",text:m("sydney",e)},{key:"Pacific/Norfolk",text:m("norfolk",e)}]}var zb=Y('<div style="padding:20px 20px 0 20px">');const Nb=e=>{const[n,i]=Q(e.timezone),o=Tt(()=>Fb(e.locale));return q(Ln,{get title(){return m("timezone",e.locale)},width:320,get buttons(){return[{children:m("confirm",e.locale),onClick:()=>{e.onConfirm(n()),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=zb();return R(s,q(x1,{style:{width:"100%"},get value(){return n().text},onSelected:l=>{i(l)},get dataSource(){return o()}})),s}})},_r=e=>{const n=[{key:"solid",text:m("solid",e)},{key:"dashed",text:m("dashed",e)}],i=[{key:[4,4]}],o=[{key:"true",text:!0},{key:"false",text:!1}],s=[{key:1,text:1},{key:2,text:2},{key:3,text:3},{key:4,text:4},{key:5,text:5},{key:6,text:6},{key:7,text:7},{key:8,text:8},{key:9,text:9},{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:13,text:13},{key:14,text:14},{key:15,text:15}],l=[{key:"fill",text:m("fill",e)},{key:"stroke",text:m("stroke",e)},{key:"stroke_fill",text:m("stroke_fill",e)}],c=[{key:"none",text:m("none",e)},{key:"always",text:m("always",e)},{key:"follow_cross",text:m("follow_cross",e)}],f=[{key:10,text:10},{key:11,text:11},{key:12,text:12},{key:14,text:14},{key:16,text:16},{key:18,text:18},{key:20,text:20},{key:22,text:22},{key:24,text:24}],d=[{key:"normal",text:m("Normal",e)}],g=[{key:"Helvetica Neue",text:m("Helvetica Neue",e)}];return{solid_dashed:n,dashed_value:i,size:s,fill_stroke:l,font_family:g,font_size:f,font_weight:d,none_always_followCross:c,true_false:o}},Kb=e=>{const{font_family:n,font_size:i,font_weight:o,size:s,solid_dashed:l,fill_stroke:c,none_always_followCross:f}=_r(e);return[{key:"candle.type",text:m("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:m("candle_solid",e)},{key:"candle_stroke",text:m("candle_stroke",e)},{key:"candle_up_stroke",text:m("candle_up_stroke",e)},{key:"candle_down_stroke",text:m("candle_down_stroke",e)},{key:"ohlc",text:m("ohlc",e)},{key:"area",text:m("area",e)},{key:"heikin_ashi",text:m("heikin_ashi",e)}]},{key:"candle.bar.upColor",text:m("Bar up color",e),component:"color"},{key:"candle.bar.downColor",text:m("Bar down color",e),component:"color"},{key:"candle.bar.noChangeColor",text:m("Bar no-change color",e),component:"color"},{key:"candle.bar.upBorderColor",text:m("Bar up-border color",e),component:"color"},{key:"candle.bar.downBorderColor",text:m("Bar down-border color",e),component:"color"},{key:"candle.bar.noChangeBorderColor",text:m("Bar no-change-border color",e),component:"color"},{key:"candle.bar.upWickColor",text:m("Bar up-wick color",e),component:"color"},{key:"candle.bar.downWickColor",text:m("Bar down-wick color",e),component:"color"},{key:"candle.bar.noChangeWickColor",text:m("Bar no-change-wick color",e),component:"color"},{key:"candle.area.lineSize",text:m("Area linesize",e),component:"select",dataSource:s},{key:"candle.area.lineColor",text:m("Area line color",e),component:"color"},{key:"candle.priceMark.high.show",text:m("high_price_show",e),component:"switch"},{key:"candle.priceMark.high.color",text:m("Pricemark high color",e),component:"color"},{key:"candle.priceMark.high.textSize",text:m("Pricemark High Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.high.textFamily",text:m("Pricemark High Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.high.textWeight",text:m("Pricemark High Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.low.show",text:m("low_price_show",e),component:"switch"},{key:"candle.priceMark.low.color",text:m("Pricemark low color",e),component:"color"},{key:"candle.priceMark.low.textSize",text:m("Pricemark Low Textsize",e),component:"select",dataSource:i},{key:"candle.priceMark.low.textFamily",text:m("Pricemark Low Font family",e),component:"select",dataSource:n},{key:"candle.priceMark.low.textWeight",text:m("Pricemark Low Font Weight",e),component:"select",dataSource:o},{key:"candle.priceMark.last.show",text:m("Show Pricemark last",e),component:"switch"},{key:"candle.priceMark.last.upColor",text:m("Pricemark last up-color",e),component:"color"},{key:"candle.priceMark.last.downColor",text:m("Pricemark last down-color",e),component:"color"},{key:"candle.priceMark.last.noChangeColor",text:m("Pricemark last no-change-color",e),component:"color"},{key:"candle.priceMark.last.line.show",text:m("Show Pricemark last line",e),component:"switch"},{key:"candle.priceMark.last.line.style",text:m("Pricemark last line style",e),component:"select",dataSource:l},{key:"candle.priceMark.last.line.size",text:m("Pricemark last line size",e),component:"select",dataSource:s},{key:"candle.priceMark.last.text.show",text:m("Show Pricemark last text",e),component:"switch"},{key:"candle.priceMark.last.text.style",text:m("Pricemark last text style",e),component:"select",dataSource:c},{key:"candle.priceMark.last.text.size",text:m("Pricemark last text size",e),component:"select",dataSource:i},{key:"candle.priceMark.last.text.color",text:m("Pricemark last text color",e),component:"color"},{key:"candle.tooltip.showRule",text:m("candle_tooltip",e),component:"select",dataSource:f},{key:"candle.tooltip.showType",text:m("Tooltip showtype",e),component:"select",dataSource:[{key:"rect",text:m("Rect",e)},{key:"standard",text:m("Standard",e)}]},{key:"candle.tooltip.rect.position",text:m("Tooltip rect position",e),component:"select",dataSource:[{key:"fixed",text:m("Fixed",e)},{key:"pointer",text:m("Pointer",e)}]},{key:"candle.tooltip.rect.color",text:m("Tooltip rect color",e),component:"color"},{key:"candle.tooltip.rect.borderColor",text:m("Tooltip rect border-color",e),component:"color"},{key:"candle.tooltip.text.size",text:m("Tooltip text size",e),component:"select",dataSource:i},{key:"candle.tooltip.text.weight",text:m("Tooltip text weight",e),component:"select",dataSource:o},{key:"candle.tooltip.text.color",text:m("Tooltip text color",e),component:"color"}]},Hb=e=>{const{fill_stroke:n,font_size:i,font_weight:o,none_always_followCross:s}=_r(e);return[{key:"indicator.ohlc.upColor",text:m("Ohlc up-color",e),component:"color"},{key:"indicator.ohlc.downColor",text:m("Ohlc down-color",e),component:"color"},{key:"indicator.ohlc.noChangeColor",text:m("Ohlc no-change-color",e),component:"color"},{key:"indicator.lastValueMark.show",text:m("indicator_last_value_show",e),component:"switch"},{key:"indicator.lastValueMark.text.show",text:m("Show last value mark text",e),component:"switch"},{key:"indicator.lastValueMark.text.style",text:m("Last value mark text style",e),component:"select",dataSource:n},{key:"indicator.lastValueMark.text.size",text:m("Last value mark text size",e),component:"select",dataSource:i},{key:"indicator.lastValueMark.text.weight",text:m("Last value mark text Weight",e),component:"select",dataSource:o},{key:"indicator.lastValueMark.text.color",text:m("Last value mark text color",e),component:"color"},{key:"indicator.tooltip.showRule",text:m("Tooltip showrule",e),component:"select",dataSource:s},{key:"indicator.tooltip.showType",text:m("Tooltip showtype",e),component:"select",dataSource:[{key:"standard",text:m("Standard",e)},{key:"rect",text:m("Rect",e)}]},{key:"indicator.tooltip.showName",text:m("Show tooltip name",e),component:"switch"},{key:"indicator.tooltip.showParams",text:m("Show tooltip params",e),component:"switch"},{key:"indicator.tooltip.text.size",text:m("Tooltip text size",e),component:"select",dataSource:i},{key:"indicator.tooltip.text.weight",text:m("Tooltip text Weight",e),component:"select",dataSource:o},{key:"indicator.tooltip.text.color",text:m("Tooltip text color",e),component:"color"}]},Wb=e=>{const{font_size:n,size:i,font_weight:o}=_r(e);return[{key:"xAxis.show",text:m("Show xAxis",e),component:"switch"},{key:"xAxis.axisLine.show",text:m("Show axis line",e),component:"switch"},{key:"xAxis.axisLine.color",text:m("Axis line color",e),component:"color"},{key:"xAxis.axisLine.size",text:m("Axis line size",e),component:"select",dataSource:i},{key:"xAxis.tickText.show",text:m("Show tick text",e),component:"switch"},{key:"xAxis.tickText.size",text:m("Tick text size",e),component:"select",dataSource:n},{key:"xAxis.tickText.weight",text:m("Tick text Weight",e),component:"select",dataSource:o},{key:"xAxis.tickText.color",text:m("Tick text color",e),component:"color"},{key:"xAxis.tickLine.show",text:m("Show tick line",e),component:"switch"},{key:"xAxis.tickLine.size",text:m("Tick line size",e),component:"select",dataSource:i},{key:"xAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:i},{key:"xAxis.tickLine.color",text:m("Tick line color",e),component:"color"}]},Ub=e=>{const{size:n,font_weight:i,font_size:o}=_r(e);return[{key:"yAxis.show",text:m("Show yAxis",e),component:"switch"},{key:"yAxis.position",text:m("Position",e),component:"select",dataSource:[{key:"right",text:m("Right",e)},{key:"left",text:m("Left",e)}]},{key:"yAxis.type",text:m("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:m("normal",e)},{key:"percentage",text:m("percentage",e)},{key:"log",text:m("log",e)}]},{key:"yAxis.inside",text:m("Inside",e),component:"switch"},{key:"yAxis.reverse",text:m("reverse_coordinate",e),component:"switch"},{key:"yAxis.axisLine.show",text:m("Show axis line",e),component:"switch"},{key:"yAxis.axisLine.size",text:m("Axis line size",e),component:"select",dataSource:n},{key:"yAxis.axisLine.color",text:m("Axis line color",e),component:"color"},{key:"yAxis.tickText.show",text:m("Show tick text",e),component:"switch"},{key:"yAxis.tickText.color",text:m("Tick text color",e),component:"color"},{key:"yAxis.tickText.size",text:m("Tick text size",e),component:"select",dataSource:o},{key:"yAxis.tickText.weight",text:m("Tick text Weight",e),component:"select",dataSource:i},{key:"yAxis.tickLine.show",text:m("Show tick line",e),component:"switch"},{key:"yAxis.tickLine.color",text:m("Tick line color",e),component:"color"},{key:"yAxis.tickLine.size",text:m("Tick line size",e),component:"select",dataSource:n},{key:"yAxis.tickLine.length",text:m("Tick line length",e),component:"select",dataSource:n}]},Zb=e=>{const{size:n}=_r(e);return[{key:"grid.show",text:m("grid_show",e),component:"switch"},{key:"grid.horizontal.show",text:m("Show horizontal",e),component:"switch"},{key:"grid.horizontal.show",text:m("Horizontal size",e),component:"select",dataSource:n},{key:"grid.horizontal.color",text:m("Horizontal color",e),component:"color"},{key:"grid.vertical.show",text:m("Show vertical",e),component:"switch"},{key:"grid.vertical.show",text:m("Vertical size",e),component:"select",dataSource:n},{key:"grid.vertical.color",text:m("Vertical color",e),component:"color"}]},Yb=e=>{const{solid_dashed:n,dashed_value:i,fill_stroke:o,size:s,font_size:l,font_weight:c}=_r(e);return[{key:"crosshair.show",text:m("Show Crosshair",e),component:"switch"},{key:"crosshair.horizontal.show",text:m("Show horizontal",e),component:"switch"},{key:"crosshair.horizontal.line.show",text:m("Show horizontal line",e),component:"switch"},{key:"crosshair.horizontal.line.style",text:m("Horizontal Line Style",e),component:"select",dataSource:n},{key:"crosshair.horizontal.line.dashed_value",text:m("Horizontal Line Style",e),component:"select",dataSource:i},{key:"crosshair.horizontal.line.size",text:m("Horizontal Line size",e),component:"select",dataSource:s},{key:"crosshair.horizontal.line.color",text:m("Horizontal Line color",e),component:"color"},{key:"crosshair.horizontal.text.show",text:m("Show horizontal text",e),component:"switch"},{key:"crosshair.horizontal.text.style",text:m("Horizontal text Style",e),component:"select",dataSource:o},{key:"crosshair.horizontal.text.size",text:m("Horizontal text size",e),component:"select",dataSource:l},{key:"crosshair.horizontal.text.weight",text:m("Horizontal text weight",e),component:"select",dataSource:c},{key:"crosshair.horizontal.text.color",text:m("Horizontal text color",e),component:"color"},{key:"crosshair.horizontal.text.backgroundColor",text:m("Horizontal text background color",e),component:"color"},{key:"crosshair.vertical.show",text:m("Show vertical",e),component:"switch"},{key:"crosshair.vertical.line.show",text:m("Show vertical line",e),component:"switch"},{key:"crosshair.vertical.line.style",text:m("Vertical Line Style",e),component:"select",dataSource:n},{key:"crosshair.vertical.line.size",text:m("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.size",text:m("Vertical Line size",e),component:"select",dataSource:s},{key:"crosshair.vertical.line.color",text:m("Vertical line color",e),component:"color"},{key:"crosshair.vertical.text.show",text:m("Show vertical text",e),component:"switch"},{key:"crosshair.vertical.text.style",text:m("Vertical text Style",e),component:"select",dataSource:o},{key:"crosshair.vertical.text.size",text:m("Vertical text size",e),component:"select",dataSource:l},{key:"crosshair.vertical.text.weight",text:m("Vertical text weight",e),component:"select",dataSource:c},{key:"crosshair.vertical.text.color",text:m("Vertical text color",e),component:"color"},{key:"crosshair.vertical.text.backgroundColor",text:m("Vertical text background color",e),component:"color"}]};function Lo(e){const{size:n}=_r(e);return[...Kb(e),...Hb(e),...Wb(e),...Ub(e),...Zb(e),...Yb(e),{key:"separator.size",text:m("Seperator size",e),component:"select",dataSource:n},{key:"separator.fill",text:m("Fill",e),component:"switch"},{key:"separator.activeBackgroundColor",text:m("Background color",e),component:"color"}]}const Qr="chartstatedata",Xr={showPositions:!1,showLiquidation:!1,showOpenOrders:!1,showHisOrders:!1,showPriceAlerts:!1},_9="trading-display",qb=2,Gb=["trading-pos-","trading-liq","trading-order-","trading-his-order-"],Vb=["price_reach","price_rise_to","price_fall_to"];function jb(e){const n=e.price;if(n==null)return null;if(typeof n=="number"&&Number.isFinite(n))return n;if(typeof n=="string"&&n.trim()!==""){const i=Number(n.trim().replace(/,/g,""));return Number.isFinite(i)?i:null}return null}function Qb(e,n){var l,c,f;const i=(l=e.symbol)==null?void 0:l.trim();if(!i||i===n.ticker)return!0;const o=(c=n.name)==null?void 0:c.trim();if(o&&i===o)return!0;const s=(f=n.shortName)==null?void 0:f.trim();return!!(s&&i===s)}const Xb=y9(),m9=new WeakMap;function y9(){return{tradingConfig:{...Xr},positionsState:[],liquidationPriceState:null,openOrdersState:[],hisOrdersState:[],alertsState:[],overlaySignatures:new Map}}function Jb(e,n){if(!(typeof process<"u"&&process.env.NODE_ENV==="production")){if(n!==void 0){console.warn(`[tradingStore] ${e}`,n);return}console.warn(`[tradingStore] ${e}`)}}function b9(e){return e||(_e()??null)}function Kn(e){const n=b9(e);if(!n)return Xb;const i=m9.get(n);if(i)return i;const o=y9();return m9.set(n,o),o}function v9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch(e){return Jb("Failed to parse chart state storage, using defaults.",e),{}}}function C9(e){const n=e;return!n||typeof n.showPositions!="boolean"||typeof n.showLiquidation!="boolean"?null:{showPositions:n.showPositions,showLiquidation:n.showLiquidation,showOpenOrders:typeof n.showOpenOrders=="boolean"?n.showOpenOrders:Xr.showOpenOrders,showHisOrders:typeof n.showHisOrders=="boolean"?n.showHisOrders:Xr.showHisOrders,showPriceAlerts:typeof n.showPriceAlerts=="boolean"?n.showPriceAlerts:Xr.showPriceAlerts}}function x9(e){const n=C9(e.tradingDisplay);if(n)return n;const i=C9(e.trading);return i||{...Xr}}function w9(e){const n={...e,version:qb,tradingDisplay:x9(e)};delete n.trading,localStorage.setItem(Qr,JSON.stringify(n))}function ev(e){Kn(e),S1(e)}function S1(e){const n=Kn(e),i=v9();return n.tradingConfig=x9(i),w9(i),{...n.tradingConfig}}function tv(e,n){const i=Kn(n);i.tradingConfig={...e};const o=v9();o.tradingDisplay=i.tradingConfig,w9(o)}function Jr(e,n){tv(e,n),Hn(n)}function nv(e){Jr({...Xr},e)}function rv(e,n){const i=Kn(n);i.positionsState=e.slice(),Hn(n)}function iv(e,n){const i=Kn(n);i.liquidationPriceState=e,Hn(n)}function ov(e,n){const i=Kn(n);i.openOrdersState=e.slice(),Hn(n)}function $9(e,n){const i=Kn(n);i.alertsState=e.slice(),Hn(n)}function av(e,n){const i=Kn(n);i.hisOrdersState=e.slice(),Hn(n)}function sv(e,n){if(!Number.isFinite(n)||e.length===0)return null;let i=0,o=e.length-1,s=-1;for(;i<=o;){const l=i+o>>1;e[l].timestamp<=n?(s=l,i=l+1):o=l-1}return s>=0?e[s].timestamp:null}function Ai(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function k1(e,n,i){return JSON.stringify({name:e,points:n,extendData:i})}function L9(e,n){e.overrideOverlay({id:n,onSelected:i=>(i.preventDefault&&i.preventDefault(),i.overlay.mode="normal",!1),onRightClick:i=>(i.preventDefault&&i.preventDefault(),!1)})}function lv(e,n){const i=(e.getOverlays({id:n.id})??[]).length>0,o=n.name!=="priceAlertLine";if(!i){const l=e.createOverlay({id:n.id,name:n.name,groupId:_9,paneId:"candle_pane",mode:"normal",points:n.points,extendData:n.extendData})??n.id;return o&&L9(e,l),l}return e.overrideOverlay({id:n.id,points:n.points,extendData:n.extendData}),o&&L9(e,n.id),n.id}function cv(e,n){(e.getOverlays()??[]).filter(o=>!!o.id&&Gb.some(s=>o.id.startsWith(s))&&!n.has(o.id)).forEach(o=>e.removeOverlay({id:o.id}))}function uv(e,n,i,o,s){const l=[],c=e.tradingConfig.showPositions,f=e.tradingConfig.showLiquidation,d=e.tradingConfig.showOpenOrders,g=e.tradingConfig.showHisOrders,v=e.tradingConfig.showPriceAlerts,y=e.positionsState.filter(b=>b.size!==0&&Number.isFinite(b.avgPrice));if(c&&y.forEach((b,C)=>{const k=`trading-pos-${Ai(b.id??`idx${C}`)}`,x=[{timestamp:i,value:b.avgPrice}],$={side:b.side,size:b.size,multiplier:b.multiplier??1};l.push({id:k,name:"positionAvgLine",points:x,extendData:$,signature:k1("positionAvgLine",x,$)})}),f&&y.length>0){const b=e.liquidationPriceState;if(b!=null&&Number.isFinite(b)){const C=[{timestamp:i,value:b}],L={};l.push({id:"trading-liq",name:"liquidationLine",points:C,extendData:L,signature:k1("liquidationLine",C,L)})}}if(d&&e.openOrdersState.filter(C=>C.orderType!=="market"&&Number.isFinite(C.price)&&C.size!==0&&(C.side==="long"||C.side==="short")&&typeof C.isBuy=="boolean").forEach((C,L)=>{const x=`trading-order-${Ai(C.id??`idx${L}`)}`,$=[{timestamp:i,value:C.price}],P={isBuy:C.isBuy,size:C.size};l.push({id:x,name:"pendingOrderLine",points:$,extendData:P,signature:k1("pendingOrderLine",$,P)})}),g){const b=e.hisOrdersState.filter(k=>Number.isFinite(k.timestamp)&&Number.isFinite(k.price)&&Number.isFinite(k.size)&&k.size!==0&&typeof k.isBuy=="boolean"),C=new Map,L=new Map;n.forEach(k=>L.set(k.timestamp,{high:k.high,low:k.low})),b.forEach((k,x)=>{const $=sv(n,k.timestamp);if($==null)return;const P=`${$}_${k.isBuy?"B":"S"}`,O=C.get(P)??0;C.set(P,O+1);const T=L.get($),H=`trading-his-order-${Ai(k.id??String(k.orderId??`idx${x}`))}`,U=[{timestamp:$,value:k.price}],I={...k,stackIndex:O,barHigh:T==null?void 0:T.high,barLow:T==null?void 0:T.low};l.push({id:H,name:"hisOrderMark",points:U,extendData:I,signature:k1("hisOrderMark",U,I)})})}if(o&&v){const b=e.alertsState;for(let C=0;C<b.length;C++){const L=b[C];if(!Vb.includes(L.type))continue;const k=jb(L);if(k==null||!Qb(L,o))continue;const $=`alert-${Ai(L.id||`idx_${C}`)}`,P={...L,price:k},O=[{timestamp:i,value:k}],T={alert:P,showInfo:!1,themeKey:Ua(s,Ha,Wa)};l.push({id:$,name:"priceAlertLine",points:O,extendData:T,signature:k1("priceAlertLine",O,T)})}}return l}function fv(e){(e.getOverlays({groupId:"alert_overlays"})??[]).forEach(i=>{i.id&&e.removeOverlay({id:i.id})})}function Hn(e){var b;const n=b9(e),i=Kn(n);if(!n)return;const o=n;fv(o);const s=o.getDataList(),l=((b=s.at(-1))==null?void 0:b.timestamp)??Date.now(),c=$1()??null,f=uv(i,s,l,c,o),d=new Map(f.map(C=>[C.id,C])),g=o.getOverlays({groupId:_9})??[],v=new Set(g.map(C=>C.id).filter(C=>!!C));v.forEach(C=>{d.has(C)||o.removeOverlay({id:C})});const y=new Map;f.forEach(C=>{const L=i.overlaySignatures.get(C.id);if(!v.has(C.id)||L!==C.signature){const x=lv(o,C);y.set(x,C.signature);return}y.set(C.id,C.signature)}),i.overlaySignatures=y,cv(o,new Set(y.keys()))}var e1=Y("<div class=component><span>"),dv=Y("<div class=klinecharts-pro-setting-modal-content><div class=sidebar></div><div class=content>"),hv=Y("<button>");const gv=e=>{const[n,i]=Q(e.currentStyles),[o,s]=Q(Lo(e.locale)),[l,c]=Q("trading"),[f,d]=Q(S1());Mt(()=>{s(Lo(e.locale))}),Mt(()=>{l()==="trading"&&d(S1())});const g=(b,C)=>{const L=localStorage.getItem("chartstatedata");let k;L?(k=JSON.parse(L),k.styleObj=k.styleObj??{}):k={styleObj:{}};const x=b.key.indexOf(".");x===-1?b.key:b.key.slice(0,x)+""+b.key.slice(x),C1(k.styleObj,b.key,C),localStorage.setItem("chartstatedata",JSON.stringify(k)),Nn(!0);const $={};C1($,b.key,C),C1($,b.key,C);const P=fe.utils.clone(n());C1(P,b.key,C),i(P),s(o().map(O=>({...O}))),e.onChange($)},v=()=>{const b=localStorage.getItem("chartstatedata");let C;b&&(C=JSON.parse(b),C.styleObj&&(C.styleObj={}),localStorage.setItem("chartstatedata",JSON.stringify(C))),nv(),i(e.currentStyles),s(Lo(e.locale)),d(S1()),e.onRestoreDefault(o())},y=[{text:m("setting_sidebar_chart",e.locale),key:"trading"},{text:m("setting_sidebar_candle",e.locale),key:"candle"},{text:m("setting_sidebar_indicator",e.locale),key:"indicator"},{text:m("setting_sidebar_grid",e.locale),key:"grid"},{text:m("setting_sidebar_x_axis",e.locale),key:"xAxis"},{text:m("setting_sidebar_y_axis",e.locale),key:"yAxis"},{text:m("setting_sidebar_separator",e.locale),key:"separator"},{text:m("setting_sidebar_crosshair",e.locale),key:"crosshair"}];return q(Ln,{get title(){return m("setting",e.locale)},width:640,height:560,get buttons(){return[{children:m("restore_default",e.locale),onClick:()=>{v()}}]},get onClose(){return e.onClose},get children(){var b=dv(),C=b.firstChild,L=C.nextSibling;return R(C,()=>y.map(k=>(()=>{var x=hv();return x.$$click=()=>c(k.key),R(x,()=>k.text),Te(()=>Ht(x,`${l()==k.key?"selected":""}`)),x})())),R(L,q(Oe,{get when(){return l()==="trading"},get fallback(){return q(us,{get each(){return o().filter(k=>k.key.includes(l()))},children:k=>{let x;const $=fe.utils.formatValue(n(),k.key);switch(k.component){case"select":{x=q(x1,{style:{width:"120px"},get value(){return m($,e.locale)},get dataSource(){return k.dataSource},onSelected:P=>{const O=P.key;g(k,O)}});break}case"switch":{const P=!!$;x=q(zr,{open:P,onChange:()=>{g(k,!P)}});break}case"color":{x=q(Em,{style:{width:"120px"},value:$,reactiveChange:!1,onChange:P=>{g(k,P)}});break}}return(()=>{var P=e1(),O=P.firstChild;return R(O,()=>k.text),R(P,x,null),P})()}})},get children(){return[(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_positions",e.locale)),R(k,q(zr,{get open(){return f().showPositions},onChange:()=>{const $={...f(),showPositions:!f().showPositions};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_liquidation",e.locale)),R(k,q(zr,{get open(){return f().showLiquidation},onChange:()=>{const $={...f(),showLiquidation:!f().showLiquidation};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_open_orders",e.locale)),R(k,q(zr,{get open(){return f().showOpenOrders},onChange:()=>{const $={...f(),showOpenOrders:!f().showOpenOrders};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_his_orders",e.locale)),R(k,q(zr,{get open(){return f().showHisOrders},onChange:()=>{const $={...f(),showHisOrders:!f().showHisOrders};d($),Jr($)}}),null),k})(),(()=>{var k=e1(),x=k.firstChild;return R(x,()=>m("trading_display_price_alerts",e.locale)),R(k,q(zr,{get open(){return f().showPriceAlerts},onChange:()=>{const $={...f(),showPriceAlerts:!f().showPriceAlerts};d($),Jr($)}}),null),k})()]}})),b}})};Dt(["click"]);var pv=Y('<div style="margin:20px 20px 0 20px"><img style=width:500px>');const _v=e=>q(Ln,{get title(){return m("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:m("save",e.locale),onClick:()=>{const n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove()}}]},get onClose(){return e.onClose},get children(){var n=pv(),i=n.firstChild;return Te(()=>Je(i,"src",e.url)),n}}),mv={AO:[{paramNameKey:"params_1",precision:0,min:1,default:5},{paramNameKey:"params_2",precision:0,min:1,default:34}],BIAS:[{paramNameKey:"BIAS1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"BIAS2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"BIAS3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"BIAS4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"BIAS5",precision:0,min:1,styleKey:"lines[4].color"}],BOLL:[{paramNameKey:"period",precision:0,min:1,default:20},{paramNameKey:"standard_deviation",precision:2,min:1,default:2}],BRAR:[{paramNameKey:"period",precision:0,min:1,default:26}],BBI:[{paramNameKey:"params_1",precision:0,min:1,default:3},{paramNameKey:"params_2",precision:0,min:1,default:6},{paramNameKey:"params_3",precision:0,min:1,default:12},{paramNameKey:"params_4",precision:0,min:1,default:24}],CCI:[{paramNameKey:"params_1",precision:0,min:1,default:20}],CR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:10},{paramNameKey:"params_3",precision:0,min:1,default:20},{paramNameKey:"params_4",precision:0,min:1,default:40},{paramNameKey:"params_5",precision:0,min:1,default:60}],DMA:[{paramNameKey:"params_1",precision:0,min:1,default:10},{paramNameKey:"params_2",precision:0,min:1,default:50},{paramNameKey:"params_3",precision:0,min:1,default:10}],DMI:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:6}],EMV:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:9}],EMA:[{paramNameKey:"EMA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"EMA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"EMA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"EMA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"EMA5",precision:0,min:1,styleKey:"lines[4].color"}],MTM:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],MA:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],MACD:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:9}],OBV:[{paramNameKey:"params_1",precision:0,min:1,default:30}],PVT:[],PSY:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],ROC:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],RSI:[{paramNameKey:"RSI1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"RSI2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"RSI3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"RSI4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"RSI5",precision:0,min:1,styleKey:"lines[4].color"}],SMA:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:2}],KDJ:[{paramNameKey:"params_1",precision:0,min:1,default:9},{paramNameKey:"params_2",precision:0,min:1,default:3},{paramNameKey:"params_3",precision:0,min:1,default:3}],SAR:[{paramNameKey:"params_1",precision:0,min:1,default:2},{paramNameKey:"params_2",precision:0,min:1,default:2},{paramNameKey:"params_3",precision:0,min:1,default:20}],TRIX:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:9}],VOL:[{paramNameKey:"MA1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"MA2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"MA3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"MA4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"MA5",precision:0,min:1,styleKey:"lines[4].color"}],VR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:6}],WR:[{paramNameKey:"WR1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"WR2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"WR3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"WR4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"WR5",precision:0,min:1,styleKey:"lines[4].color"}]};var yv=Y("<div class=klinecharts-pro-indicator-setting-modal-content>"),bv=Y("<div class=param-row><span>");const vv=e=>{const[n,i]=Q(fe.utils.clone(e.params.calcParams)),o=s=>mv[s];return q(Ln,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:m("confirm",e.locale),onClick:()=>{const s=o(e.params.indicatorName),l=[];fe.utils.clone(n()).forEach((c,f)=>{!fe.utils.isValid(c)||c===""?"default"in s[f]&&l.push(s[f].default):l.push(c)}),e.onConfirm(l),e.onClose()}}]},get onClose(){return e.onClose},get children(){var s=yv();return R(s,()=>o(e.params.indicatorName).map((l,c)=>(()=>{var f=bv(),d=f.firstChild;return R(d,()=>m(l.paramNameKey,e.locale)),R(f,q(_l,{style:{width:"200px"},get value(){return n()[c]??""},get precision(){return l.precision},get min(){return l.min},onChange:g=>{const v=fe.utils.clone(n());v[c]=g,i(v)}}),null),f})())),s}})};var Cv=Y('<div style="margin:10px 20px 0 20px">'),xv=Y('<svg viewBox="0 0 1024 1024"><path d="M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z">'),wv=Y("<img alt=symbol>"),$v=Y("<li><div><span>");const Lv=e=>{const[n,i]=Q(""),[o]=b6(n,e.datafeed.searchSymbols.bind(e.datafeed));return q(Ln,{get title(){return m("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){var s=Cv();return R(s,q(_l,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return m("symbol_code",e.locale)},get suffix(){return xv()},get value(){return n()},onChange:l=>{const c=`${l}`;i(c)}}),null),R(s,q(_i,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return o.loading},get dataSource(){return o()??[]},renderItem:l=>(()=>{var c=$v(),f=c.firstChild,d=f.firstChild;return c.$$click=()=>{e.onSymbolSelected(l),e.onClose()},R(f,q(Oe,{get when(){return l.logo},get children(){var g=wv();return Te(()=>Je(g,"src",l.logo)),g}}),d),R(d,()=>l.shortName??l.ticker,null),R(d,()=>`${l.name?`(${l.name})`:""}`,null),R(c,()=>l.exchange??"",null),Te(()=>Je(d,"title",l.name??"")),c})()}),null),s}})};Dt(["click"]);var Sv=Y("<div class=row><span></span><input class=field-input type=number min=0 step=any>"),kv=Y("<div class=row><span>"),Av=Y("<div class=row><span></span><input class=field-input type=number min=1 max=100 step=1>"),Mv=Y("<div class=error-text>"),Tv=Y("<div class=klinecharts-pro-alert-add-modal><div class=row><span></span></div><div class=row><span></span></div><div class=row><span></span><input class=field-input type=text>");const Pv=e=>{const[n,i]=Q(!1),[o,s]=Q(""),[l,c]=Q({type:"price_reach",frequency:"repeat",price:"",window:"5m",percent:"10",remark:""}),f=Tt(()=>{const b=l().type;return b==="price_reach"||b==="price_rise_to"||b==="price_fall_to"}),d=Tt(()=>[{key:"price_reach",text:Qt("price_reach",e.locale)},{key:"price_rise_to",text:Qt("price_rise_to",e.locale)},{key:"price_fall_to",text:Qt("price_fall_to",e.locale)},{key:"price_rise_pct_over",text:Qt("price_rise_pct_over",e.locale)},{key:"price_fall_pct_over",text:Qt("price_fall_pct_over",e.locale)}]),g=Tt(()=>[{key:"repeat",text:S0("repeat",e.locale)},{key:"once",text:S0("once",e.locale)}]),v=Tt(()=>[{key:"5m",text:dr("5m",e.locale)},{key:"1h",text:dr("1h",e.locale)},{key:"4h",text:dr("4h",e.locale)},{key:"24h",text:dr("24h",e.locale)}]),y=async()=>{if(n())return;const b=l(),C={type:b.type,frequency:b.frequency,remark:b.remark.trim()||void 0};if(f()){const L=Number(b.price);if(!Number.isFinite(L)||L<=0){s(m("alert_validation_price_gt_zero",e.locale));return}C.price=L}else{const L=Number(b.percent);if(!Number.isInteger(L)||L<1||L>100){s(m("alert_validation_percent_range",e.locale));return}C.window=b.window,C.percent=L}s(""),i(!0);try{await e.onSubmit(C)&&e.onClose()}finally{i(!1)}};return q(Ln,{get title(){return m("alert_add",e.locale)},width:360,get buttons(){return[{children:m("cancel",e.locale),type:"cancel",onClick:e.onClose},{children:n()?m("alert_submitting",e.locale):m("alert_submit",e.locale),onClick:y}]},get onClose(){return e.onClose},get children(){var b=Tv(),C=b.firstChild,L=C.firstChild,k=C.nextSibling,x=k.firstChild,$=k.nextSibling,P=$.firstChild,O=P.nextSibling;return R(L,()=>m("alert_field_type",e.locale)),R(C,q(x1,{style:{width:"220px"},get value(){var T;return(T=d().find(z=>z.key===l().type))==null?void 0:T.text},get dataSource(){return d()},onSelected:T=>{const z=T.key;c(H=>({...H,type:z}))}}),null),R(b,q(Oe,{get when(){return f()},get children(){var T=Sv(),z=T.firstChild,H=z.nextSibling;return R(z,()=>m("alert_field_price",e.locale)),H.$$input=U=>{c(I=>({...I,price:U.target.value}))},Te(()=>H.value=l().price),T}}),k),R(b,q(Oe,{get when(){return!f()},get children(){return[(()=>{var T=kv(),z=T.firstChild;return R(z,()=>m("alert_field_window",e.locale)),R(T,q(x1,{style:{width:"220px"},get value(){var H;return(H=v().find(U=>U.key===l().window))==null?void 0:H.text},get dataSource(){return v()},onSelected:H=>{const U=H.key;c(I=>({...I,window:U}))}}),null),T})(),(()=>{var T=Av(),z=T.firstChild,H=z.nextSibling;return R(z,()=>m("alert_field_percent",e.locale)),H.$$input=U=>{c(I=>({...I,percent:U.target.value}))},Te(()=>H.value=l().percent),T})()]}}),k),R(x,()=>m("alert_field_frequency",e.locale)),R(k,q(x1,{style:{width:"220px"},get value(){var T;return(T=g().find(z=>z.key===l().frequency))==null?void 0:T.text},get dataSource(){return g()},onSelected:T=>{const z=T.key;c(H=>({...H,frequency:z}))}}),null),R(P,()=>m("alert_field_remark",e.locale)),O.$$input=T=>{c(z=>({...z,remark:T.target.value}))},R(b,q(Oe,{get when(){return!!o()},get children(){var T=Mv();return R(T,o),T}}),null),Te(()=>Je(O,"placeholder",m("alert_optional",e.locale))),Te(()=>O.value=l().remark),b}})};Dt(["input"]);var Mi=Y("<dt>"),Ti=Y("<dd>"),Iv=Y("<dl class=alert-detail-grid><dt></dt><dd></dd><dt></dt><dd></dd><dt></dt><dd>");const S9=e=>(()=>{var n=Iv(),i=n.firstChild,o=i.nextSibling,s=o.nextSibling,l=s.nextSibling,c=l.nextSibling,f=c.nextSibling;return R(n,q(Oe,{get when(){return!!e.alert.symbol},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_symbol",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>e.alert.symbol),d})()]}}),i),R(i,()=>m("alert_field_type",e.locale)),R(o,()=>Qt(e.alert.type,e.locale)),R(n,q(Oe,{get when(){return Ze(()=>e.alert.price!=null)()&&Number.isFinite(e.alert.price)},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_price",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>String(e.alert.price)),d})()]}}),s),R(n,q(Oe,{get when(){return e.alert.window!=null},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_window",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>dr(e.alert.window,e.locale)),d})()]}}),s),R(n,q(Oe,{get when(){return e.alert.percent!=null},get children(){return[(()=>{var d=Mi();return R(d,()=>m("alert_field_percent",e.locale)),d})(),(()=>{var d=Ti();return R(d,()=>`${e.alert.percent}%`),d})()]}}),s),R(s,()=>m("alert_field_frequency",e.locale)),R(l,()=>S0(e.alert.frequency,e.locale)),R(c,()=>m("alert_field_remark",e.locale)),R(f,(()=>{var d=Ze(()=>{var g;return!!((g=e.alert.remark)!=null&&g.trim())});return()=>d()?e.alert.remark:"—"})()),n})();var Ov=Y("<div class=alert-empty>"),Ev=Y("<div class=klinecharts-pro-alert-modal><div class=alert-list></div><div class=alert-add-btn-container><button type=button class=alert-add-btn>"),Dv=Y("<div class=alert-item><span class=alert-text></span><button type=button class=alert-delete>"),Rv=Y("<div class=klinecharts-pro-alert-detail>");const Bv=e=>{const[n,i]=Q(!1),[o,s]=Q(null);return q(Ln,{get title(){return m("alerts",e.locale)},width:480,get onClose(){return e.onClose},get children(){return[(()=>{var l=Ev(),c=l.firstChild,f=c.nextSibling,d=f.firstChild;return R(c,q(us,{get each(){return e.alerts},children:g=>(()=>{var v=Dv(),y=v.firstChild,b=y.nextSibling;return v.$$dblclick=()=>{s(g)},R(y,()=>n6(g,e.locale)),b.$$dblclick=C=>{C.stopPropagation()},b.$$click=async()=>{var C;await((C=e.onRemoveAlert)==null?void 0:C.call(e,g))},R(b,()=>m("alert_delete",e.locale)),Te(()=>Je(v,"title",m("alert_double_click_detail",e.locale))),v})()}),null),R(c,q(Oe,{get when(){return e.alerts.length===0},get children(){var g=Ov();return R(g,()=>m("alert_empty",e.locale)),g}}),null),d.$$click=()=>{i(!0)},R(d,()=>m("alert_add",e.locale)),l})(),q(Oe,{get when(){return n()},get children(){return q(Pv,{get locale(){return e.locale},onClose:()=>{i(!1)},onSubmit:async l=>{var c;return await((c=e.onAddAlert)==null?void 0:c.call(e,l))??!0}})}}),q(Oe,{get when(){return o()},children:l=>q(Ln,{get title(){return m("alert_detail",e.locale)},width:400,height:260,onClose:()=>{s(null)},get children(){var c=Rv();return R(c,q(S9,{get locale(){return e.locale},get alert(){return l()}})),c}})})]}})};Dt(["click","dblclick"]);class So{constructor(n,i){xn(this,"_chart");xn(this,"_charts",new Map);xn(this,"id");if(n==null)throw new Error("Chart container is required");if(typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("Invalid chart container");const o=fe.init(n,i);if(!o)throw new Error("Failed to initialize chart");this._chart=o,this.id=o.id}get chart(){return this._chart}get charts(){return Array.from(this._charts.values())}static init(n,i){return new So(n,i)}getDom(n,i){return this._chart.getDom(n,i)}getSize(n,i){return this._chart.getSize(n,i)}createIndicator(n,i,o){return this._chart.createIndicator(n,i,o)}getIndicators(n){return this._chart.getIndicators(n)}createOverlay(n){return this._chart.createOverlay(n)}getOverlays(n){return this._chart.getOverlays(n)}setPaneOptions(n){return this._chart.setPaneOptions(n)}getPaneOptions(n){return this._chart.getPaneOptions(n)}scrollByDistance(n,i){return this._chart.scrollByDistance(n,i)}scrollToRealTime(n){return this._chart.scrollToRealTime(n)}scrollToDataIndex(n,i){return this._chart.scrollToDataIndex(n,i)}scrollToTimestamp(n,i){return this._chart.scrollToTimestamp(n,i)}zoomAtCoordinate(n,i,o){return this._chart.zoomAtCoordinate(n,i,o)}zoomAtDataIndex(n,i,o){return this._chart.zoomAtDataIndex(n,i,o)}zoomAtTimestamp(n,i,o){return this._chart.zoomAtTimestamp(n,i,o)}convertToPixel(n,i){return this._chart.convertToPixel(n,i)}convertFromPixel(n,i){return this._chart.convertFromPixel(n,i)}executeAction(n,i){return this._chart.executeAction(n,i)}subscribeAction(n,i){return this._chart.subscribeAction(n,i)}unsubscribeAction(n,i){return this._chart.unsubscribeAction(n,i)}getConvertPictureUrl(n,i,o){return this._chart.getConvertPictureUrl(n,i,o)}resize(){return this._chart.resize()}setStyles(n){return this._chart.setStyles(n)}getStyles(){return this._chart.getStyles()}setFormatter(n){return this._chart.setFormatter(n)}getFormatter(){return this._chart.getFormatter()}setLocale(n){return this._chart.setLocale(n)}getLocale(){return this._chart.getLocale()}setTimezone(n){return this._chart.setTimezone(n)}getTimezone(){return this._chart.getTimezone()}setThousandsSeparator(n){return this._chart.setThousandsSeparator(n)}getThousandsSeparator(){return this._chart.getThousandsSeparator()}setDecimalFold(n){return this._chart.setDecimalFold(n)}getDecimalFold(){return this._chart.getDecimalFold()}setSymbol(n){return this._chart.setSymbol(n)}getSymbol(){return this._chart.getSymbol()}setPeriod(n){return this._chart.setPeriod(n)}getPeriod(){return this._chart.getPeriod()}getDataList(){return this._chart.getDataList()}setOffsetRightDistance(n){return this._chart.setOffsetRightDistance(n)}getOffsetRightDistance(){return this._chart.getOffsetRightDistance()}setMaxOffsetLeftDistance(n){return this._chart.setMaxOffsetLeftDistance(n)}setMaxOffsetRightDistance(n){return this._chart.setMaxOffsetRightDistance(n)}setLeftMinVisibleBarCount(n){return this._chart.setLeftMinVisibleBarCount(n)}setRightMinVisibleBarCount(n){return this._chart.setRightMinVisibleBarCount(n)}setBarSpace(n){return this._chart.setBarSpace(n)}getBarSpace(){return this._chart.getBarSpace()}getVisibleRange(){return this._chart.getVisibleRange()}setDataLoader(n){return this._chart.setDataLoader(n)}overrideIndicator(n){return this._chart.overrideIndicator(n)}removeIndicator(n){return this._chart.removeIndicator(n)}overrideOverlay(n){return this._chart.overrideOverlay(n)}removeOverlay(n){return this._chart.removeOverlay(n)}setZoomEnabled(n){return this._chart.setZoomEnabled(n)}isZoomEnabled(){return this._chart.isZoomEnabled()}setZoomAnchor(n){this._chart.setZoomAnchor(n)}getZoomAnchor(){return this._chart.getZoomAnchor()}setScrollEnabled(n){return this._chart.setScrollEnabled(n)}isScrollEnabled(){return this._chart.isScrollEnabled()}resetData(){return this._chart.resetData()}setActiveChart(n){const i=this._charts.get(n);return i&&(this._chart=i),this}chartById(n){return this._charts.get(n)}getOverlayById(n){return this._chart.getOverlays({id:n})[0]??null}}const k9=6,Fv=14,A9=14,M9=18;function zv(e,n){const i=n.points[0],o=n.extendData;if(!i||!o||!Number.isFinite(i.timestamp)||typeof o.isBuy!="boolean")return null;const l=e.getDataList().find($=>$.timestamp===i.timestamp);let c,f;if(l&&Number.isFinite(l.high)&&Number.isFinite(l.low)?(c=l.high,f=l.low):(c=typeof o.barHigh=="number"&&Number.isFinite(o.barHigh)?o.barHigh:void 0,f=typeof o.barLow=="number"&&Number.isFinite(o.barLow)?o.barLow:void 0),c===void 0||f===void 0)return null;const g=e.convertToPixel({timestamp:i.timestamp,value:i.value}).x,v=e.convertToPixel({timestamp:i.timestamp,value:c}).y,y=e.convertToPixel({timestamp:i.timestamp,value:f}).y;if(typeof g!="number"||typeof v!="number"||typeof y!="number")return null;const b=Math.max(0,o.stackIndex??0),C=Math.abs(y-v),L=Number.isFinite(C)&&C<M9?Math.max(0,M9-C)*.65:0,k=Fv+L,x=o.isBuy?y+k+b*A9:v-k-b*A9;return{cx:g,cy:x-.5}}function Nv(e,n,i){const o=e.getOverlays({name:"hisOrderMark",paneId:"candle_pane"})??[],s=e.getDom("candle_pane","main"),l=s==null?void 0:s.getBoundingClientRect(),c=k9*k9,f=[];for(const y of o){const b=y.id;if(!b)continue;const C=zv(e,y);if(!C)continue;const L=n-C.cx,k=i-C.cy,x=L*L+k*k;if(x>c)continue;const $=y.extendData,P=Math.max(0,$.stackIndex??0);f.push({overlayId:b,order:$,distSq:x,stackIndex:P,cx:C.cx,cy:C.cy})}if(f.length===0)return null;f.sort((y,b)=>y.distSq!==b.distSq?y.distSq-b.distSq:b.stackIndex-y.stackIndex);const d=f[0],g=l?l.left+d.cx:d.cx,v=l?l.top+d.cy:d.cy;return{overlayId:d.overlayId,order:d.order,anchorX:g,anchorY:v}}const T9={visible:!1,indicatorName:"",paneId:"",calcParams:[]};function Kv(e){return{onIndicatorTooltipFeatureClick:l=>{const c=l,f=e.getApi();if(f)switch(c.feature.id){case"visible":e.setIndicatorVisible(c.indicator.name,c.paneId,!0,c.indicator.id);break;case"invisible":e.setIndicatorVisible(c.indicator.name,c.paneId,!1,c.indicator.id);break;case"setting":{const d=f.getIndicators({paneId:c.paneId,name:c.indicator.name,id:c.indicator.id}).at(0);if(!d)return;e.setIndicatorSettingModalParams({visible:!0,indicatorName:c.indicator.name,paneId:c.paneId,calcParams:d.calcParams});break}case"close":{if(c.paneId==="candle_pane"){const d=[...e.mainIndicators()];if(!e.popIndicator(c.indicator.name,c.paneId,c.indicator.id))break;d.splice(d.indexOf(c.indicator.name),1),e.setMainIndicators(d)}else{const d={...e.subIndicators()};if(!e.popIndicator(c.indicator.name,c.paneId,c.indicator.id))break;delete d[c.indicator.name],e.setSubIndicators(d)}break}}},onMainIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f=[...e.mainIndicators()];if(l.added)e.createIndicator(c,l.name,!0,{id:"candle_pane"}),f.push(l.name);else{if(!e.popIndicator(l.name,"candle_pane"))return;f.splice(f.indexOf(l.name),1)}e.setMainIndicators(f)},onSubIndicatorChange:l=>{const c=e.getApi();if(!c)return;const f={...e.subIndicators()};if(l.added){const d=e.createIndicator(c,l.name);d&&(f[l.name]=d)}else if(l.id){if(!e.popIndicator(l.name,void 0,l.id))return;delete f[l.name]}e.setSubIndicators(f)},onIndicatorSettingConfirm:l=>{if(!e.getApi())return;const f=e.indicatorSettingModalParams();e.modifyIndicator(f,l)}}}const Hv=e=>{const n=["calc","figures","regenerateFigures","draw","createTooltipDataSource"];let i=e;return n.forEach(o=>{delete i[o]}),i},Wv=e=>{const n=["onDrawStart","onDrawing","onDrawEnd","onClick","onDoubleClick","onRightClick","onMouseEnter","onMouseLeave","onPressedMoveStart","onPressedMoving","onPressedMoveEnd","onRemoved","onSelected","onDeselected","performEventMoveForDrawing","performEventPressedMove","_prevPressedPoint","_prevPressedPoints","createPointFigures","createXAxisFigures","createYAxisFigures"];let i=e;return n.forEach(o=>{delete i[o]}),i};function A1(){try{const e=localStorage.getItem("chartstatedata");if(!e)return{};const n=JSON.parse(e);return Array.isArray(n.indicators)&&(n.indicators=n.indicators.map(i=>qv(i)).filter(i=>i!==null)),n}catch{return{}}}function Pi(e){localStorage.setItem("chartstatedata",JSON.stringify(e))}function Uv(e){return!!e&&e!=="candle_pane"}function Zv(e,n){return{name:e.name,visible:e.visible??!0,calcParams:Array.isArray(e.calcParams)?[...e.calcParams]:[],isMainPane:(n==null?void 0:n.id)==="candle_pane"}}function Yv(e){return{name:e.name,visible:e.visible,calcParams:e.calcParams}}function qv(e){var i,o;if(!e||typeof e!="object")return null;const n=e;return typeof n.name=="string"&&typeof n.visible=="boolean"&&Array.isArray(n.calcParams)?{name:n.name,visible:n.visible,calcParams:n.calcParams.map(s=>Number(s)).filter(s=>Number.isFinite(s)),isMainPane:n.isMainPane===!0}:typeof((i=n.value)==null?void 0:i.name)=="string"?{name:n.value.name,visible:typeof n.value.visible=="boolean"?n.value.visible:!0,calcParams:Array.isArray(n.value.calcParams)?n.value.calcParams.map(s=>Number(s)).filter(s=>Number.isFinite(s)):[],isMainPane:((o=n.paneOptions)==null?void 0:o.id)==="candle_pane"}:null}const Gv=()=>{const e=(x,$,P)=>{const O=A1(),T=Zv(Hv(it.cloneDeep(x)),P);if(!O.indicators)O.indicators=[T];else{const z=O.indicators.findIndex(H=>H.name===T.name&&H.isMainPane===T.isMainPane);z>-1?O.indicators[z]=T:O.indicators.push(T)}return Pi(O),Nn(!0),!1},n=x=>{const $=localStorage.getItem("chartstatedata");let P;const O=Wv(it.cloneDeep(x));return $?(P=JSON.parse($),P.overlays?P.overlays.find(T=>{var z;return((z=T.value)==null?void 0:z.id)===O.id})?P.overlays=P.overlays.map(T=>{var z;return((z=T.value)==null?void 0:z.id)!==O.id?T:{value:O,paneId:x.paneId}}):P.overlays.push({value:O,paneId:x.paneId}):P.overlays=[{value:x,paneId:x.paneId}]):P={overlays:[{value:O,paneId:x.paneId}]},localStorage.setItem("chartstatedata",JSON.stringify(P)),Nn(!0),!1};function i(x,$,P,O,T=!1){const z=typeof $=="string"?$:$.name;z==="VOL"&&(O={axis:{gap:{bottom:2}},...O});const H=(O==null?void 0:O.id)==="candle_pane",U=typeof $=="string"?{name:$}:it.cloneDeep($),I=x.createIndicator({...U,name:z,createTooltipDataSource:D=>{const j=D.chart.getStyles().indicator.tooltip.features,te=[];return H&&te.push(D.indicator.visible?j[1]:j[0]),te.push(j[2]),te.push(j[3]),{features:te}}},P,O)??null;if(I&&T){const D=x==null?void 0:x.getIndicators({id:I,name:z})[0];if(D){const V=(O==null?void 0:O.id)==="candle_pane"?O:{...O??{},id:I};e(D,P,V)}}return I}const o=(x,$,P)=>{const O=A1(),T=O.indicators??[],z=Array.isArray(O.indicators),H=[],U={};if(z){const I=new Set;return T.forEach(D=>{if(!D.isMainPane&&I.has(D.name))return;const j=i(x,Yv(D),D.isMainPane,D.isMainPane?{id:"candle_pane"}:void 0);D.isMainPane?H.push(D.name):j&&(U[D.name]=j,I.add(D.name))}),{mainIndicators:H,subIndicators:U}}return $.forEach(I=>{i(x,I,!0,{id:"candle_pane"},!0),H.push(I)}),P.forEach(I=>{const D=i(x,I,!1,void 0,!0);D&&(U[I]=D)}),{mainIndicators:H,subIndicators:U}},s=(x,$,P=!1)=>{var H,U,I;const O=(H=_e())==null?void 0:H.createOverlay({...x,paneId:$});if(!O)return!1;const T=(U=_e())==null?void 0:U.getOverlays({id:O})[0],z=D=>(D.preventDefault&&D.preventDefault(),l(D.overlay.id),!0);T&&(x.properties&&T.setProperties(x.properties,O),(I=_e())==null||I.overrideOverlay({id:T.id,onDrawEnd:D=>["measure"].includes(T.name)?!1:n(D.overlay),onPressedMoveEnd:D=>["measure"].includes(T.name)?!1:n(D.overlay),onSelected:D=>ki(D.overlay),onDeselected:()=>ki(null),onRightClick:T.onRightClick?T.onRightClick:z,onDoubleClick:T.onDoubleClick?T.onDoubleClick:z}),P||n(T))},l=x=>{var P,O,T;const $=localStorage.getItem("chartstatedata");if($){let z=JSON.parse($);z.overlays=(P=z.overlays)==null?void 0:P.filter(H=>{var U;return((U=H.value)==null?void 0:U.id)!==x}),localStorage.setItem("chartstatedata",JSON.stringify(z)),Nn(!0)}(O=_e())==null||O.removeOverlay({id:x}),((T=Qm())==null?void 0:T.id)===x&&ki(null)},c=(x,$)=>{var O,T;const P=localStorage.getItem("chartstatedata");if(P){let z=JSON.parse(P);z.overlays=(O=z.overlays)==null?void 0:O.map(H=>{var U;return((U=H.value)==null?void 0:U.id)===x&&(H.value={...H.value,...$},H.paneId=$.paneId??H.paneId),H}),localStorage.setItem("chartstatedata",JSON.stringify(z)),Nn(!0),(T=_e())==null||T.overrideOverlay({...$,id:x})}},f=(x,$)=>{var O,T;const P=localStorage.getItem("chartstatedata");if(P){let z=JSON.parse(P);z.overlays=(O=z.overlays)==null?void 0:O.map(U=>{var I;return((I=U.value)==null?void 0:I.id)===x&&(U.value.properties={...U.value.properties,...$}),U});const H=(T=_e())==null?void 0:T.getOverlayById(x);H&&H.setProperties($,x),localStorage.setItem("chartstatedata",JSON.stringify(z)),Nn(!0)}},d=x=>{const $=[...Ym()];x.added?(i(_e(),x.name,!0,{id:"candle_pane"},!0),$.push(x.name)):(b(x.name,"candle_pane"),$.splice($.indexOf(x.name),1)),qm($)},g=x=>{const $={...Gm()};if(x.added){const P=i(_e(),x.name,!1,void 0,!0);P&&($[x.name]=P)}else x.paneId&&(b(x.name,x.paneId),delete $[x.name]);Vm($)},v=(x,$)=>{var T,z;const P=A1(),O=x.paneId==="candle_pane";P.indicators=(T=P.indicators)==null?void 0:T.map(H=>(H.name===x.indicatorName&&H.isMainPane===O&&(H.calcParams=[...$]),H)),Pi(P),Nn(!0),(z=_e())==null||z.overrideIndicator({name:x.indicatorName,calcParams:$,paneId:x.paneId})},y=(x,$,P,O)=>{var H,U;const T=A1(),z=$==="candle_pane";T.indicators=(H=T.indicators)==null?void 0:H.map(I=>(I.name===x&&I.isMainPane===z&&(I.visible=P),I)),Pi(T),Nn(!0),(U=_e())==null||U.overrideIndicator({name:x,paneId:$,visible:P,id:O})},b=(x,$,P)=>{var H;const O=_e();if(!O)return!1;let T=!1;if($&&$!=="candle_pane"&&(T=O.removeIndicator({paneId:$,name:x})),!T&&P&&(T=O.removeIndicator({id:P})),!T&&$&&(T=O.removeIndicator({paneId:$,name:x})),!T)return!1;const z=A1();return z.indicators=(H=z.indicators)==null?void 0:H.filter(U=>Uv($)?U.name!==x||U.isMainPane:!(U.name===x&&U.isMainPane)),Pi(z),Nn(!0),!0},C=(x,$)=>{document.documentElement.style.setProperty(x,$,"important");const P=document.querySelector("[data-theme]");P&&P.style.setProperty(x,$,"important")},L=x=>{var $;x.background&&C("--klinecharts-pro-pane-background",x.background),x.backgroundGradientStartColor&&C("--klinecharts-pro-pane-background-gradient-start",x.backgroundGradientStartColor),x.backgroundGradientEndColor&&C("--klinecharts-pro-pane-background-gradient-end",x.backgroundGradientEndColor),($=x.separator)!=null&&$.color&&C("--klinecharts-pro-border-color",x.separator.color)};return{createIndicator:i,modifyIndicator:v,popIndicator:b,syncIndiObject:e,syncObject:n,pushOverlay:s,modifyOverlay:c,modifyOverlayProperties:f,popOverlay:l,pushMainIndicator:d,pushSubIndicator:g,restoreChartState:async x=>{const $=T=>{const z=JSON.parse(T);z.figures,z.overlays&&z.overlays.forEach(H=>{s(H.value,H.paneId,!0)})},P=localStorage.getItem("chartstatedata");P&&$(P);const O=JSON.parse(P)??{};x&&(L(x),O.styleObj||(O.styleObj=x,localStorage.setItem("chartstatedata",JSON.stringify(O)))),O.styleObj&&f9(O.styleObj)},restoreIndicators:o,setIndicatorVisible:y}};function Vv(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.span=="number"&&Number.isFinite(n.span)&&typeof n.type=="string"}function P9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch{return{}}}function jv(e){localStorage.setItem(Qr,JSON.stringify(e))}function Qv(e,n){return!e||!n?!1:e.span===n.span&&e.type===n.type}function ko(e,n){return n?e.find(i=>Qv(i,n))??null:null}function Xv(){const e=P9();return Vv(e.period)?{span:e.period.span,type:e.period.type,text:typeof e.period.text=="string"?e.period.text:""}:null}function I9(e){const n=P9();n.period={span:e.span,type:e.type,text:e.text},jv(n)}function Jv(e,n){const i=ko(e,Xv());if(i)return i;const o=ko(e,n);return o||(e[0]??n)}function O9(){try{const e=localStorage.getItem(Qr);return e?JSON.parse(e):{}}catch{return{}}}function eC(e){localStorage.setItem(Qr,JSON.stringify(e))}function tC(){const e=O9();return typeof e.timezone=="string"&&e.timezone.length>0?e.timezone:null}function E9(e){const n=O9();n.timezone=e,eC(n)}function nC(e){return tC()??e}function rC(e,n){let i=null;const o=()=>{i!=null&&(globalThis.clearTimeout(i),i=null)};return{onEvent:f=>{const g=f.detail;if(!!(g!=null&&g.visible)){o(),n({visible:!0,order:(g==null?void 0:g.order)??null,x:(g==null?void 0:g.anchorX)??null,y:(g==null?void 0:g.anchorY)??null});return}o(),i=globalThis.setTimeout(()=>{i=null,n({visible:!1,order:null,x:null,y:null})},e)},clear:o,setExclusiveHover:f=>{o(),n({visible:!0,order:f.order,x:f.anchorX??null,y:f.anchorY??null})},resetHoverToHidden:()=>{o(),n({visible:!1,order:null,x:null,y:null})}}}function iC(e,n){const i=[];let o=0;const s=()=>{for(;i.length>0;){const c=i.pop();c!=null&&globalThis.clearTimeout(c)}};return{schedule:()=>{o+=1;const c=o;s(),n.forEach(f=>{const d=globalThis.setTimeout(()=>{if(c!==o)return;e();const g=i.indexOf(d);g>=0&&i.splice(g,1)},f);i.push(d)})},clear:s}}var oC=Y('<i class="icon-close klinecharts-pro-load-icon">'),aC=Y("<div class=klinecharts-pro-content><div class=klinecharts-pro-widget>"),sC=Y("<div class=klinecharts-pro-alert-detail>");const{createIndicator:lC,modifyIndicator:cC,pushOverlay:uC,popIndicator:fC,restoreChartState:dC,restoreIndicators:hC,setIndicatorVisible:gC}=Gv(),pC=[0,120,360,900],_C=120;function mC(e){return{indicator:{tooltip:{features:[{id:"visible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:"middle",marginLeft:6,marginTop:3,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:"middle",marginLeft:6,marginTop:3,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,type:"icon_font",content:{code:"",family:"icomoon"},size:14,color:e,activeColor:e,backgroundColor:"transparent",borderRadius:2,activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}}}const yC=e=>{let n,i=null,o;const[s,l]=Q(e.theme),[c,f]=Q(e.locale),[d,g]=Q(!1),[v,y]=Q([...e.mainIndicators]),[b,C]=Q({}),[L,k]=Q(!1),[x,$]=Q(!1),[P,O]=Q(!1),[T,z]=Q(),[H,U]=Q(""),[I,D]=Q(e.drawingBarVisible),[V,j]=Q([...e.alerts??[]]),[te,ne]=Q(null),[Ie,ot]=Q(!1),[xt,wt]=Q(!1),[Ye,ft]=Q(null),[$e,oe]=Q({x:null,y:null});let Ae=null,dt=!1,ae=null,Me=!1,ue;const[Ee,ut]=Q(T9),je=B=>{const W=ko(e.periods,B)??B;l9(W),I9(W)},$t=Jv(e.periods,e.period),gn=nC(e.timezone),[Rt,pn]=Q({key:gn,text:$o(gn,e.locale)}),kn=B=>{pn({key:B,text:$o(B,c())}),E9(B)},_t=async B=>{var W;return await((W=e.onRemoveAlert)==null?void 0:W.call(e,B))??!0};l6({onRemove:B=>{_t(B)}}),l9($t),I9($t),E9(gn),xo(e.symbol);const Pe=rC(_C,B=>{wt(B.visible),ft(B.order),oe({x:B.x,y:B.y})});let ht=null;const Qe=B=>{const W=B;if(!W)return;const de=_e(),X=n,we=X==null?void 0:X.closest(".klinecharts-pro");if(!de||!we||W.paneId!=="candle_pane"||typeof W.x!="number"||typeof W.y!="number")return;const ee=Nv(de,W.x,W.y);if(ee){if(ee.overlayId===ht)return;ht=ee.overlayId,Pe.setExclusiveHover({order:ee.order,anchorX:ee.anchorX,anchorY:ee.anchorY});return}ht!=null&&(ht=null,Pe.resetHoverToHidden())},Lt=iC(()=>Hn(_e()),pC),Bt=Kv({getApi:()=>_e(),mainIndicators:v,setMainIndicators:y,subIndicators:b,setSubIndicators:C,indicatorSettingModalParams:Ee,setIndicatorSettingModalParams:ut,createIndicator:(B,W,de,X)=>lC(B,W,de,X,!0),popIndicator:fC,setIndicatorVisible:gC,modifyIndicator:cC}),qe=B=>{const W=B.detail,de=(W==null?void 0:W.sourceContainer)??null,X=n==null?void 0:n.closest(".klinecharts-pro");X&&(de&&de!==X||W!=null&&W.alert&&ne(W.alert))},et=B=>{const W=B.detail,de=(W==null?void 0:W.sourceContainer)??null,X=n==null?void 0:n.closest(".klinecharts-pro");X&&(de&&de!==X||Pe.onEvent(B))},tn=()=>{if(dt)return;dt=!0;const B=i;B==null||B.unsubscribeAction("onCrosshairChange",Qe),ht=null,Pe.clear(),Lt.clear(),Ae!=null&&(window.cancelAnimationFrame(Ae),Ae=null);const W=n==null?void 0:n.closest(".klinecharts-pro");W==null||W.removeEventListener(Y1,et),W==null||W.removeEventListener(m1,qe),window.removeEventListener(Y1,et),window.removeEventListener(m1,qe),window.removeEventListener("resize",nr),n&&fe.dispose(n),_e()===B&&c9(null),i=null},tr={setTheme:l,getTheme:()=>s(),setStyles:f9,getStyles:()=>u9()??{},setLocale:f,getLocale:()=>c(),setTimezone:kn,getTimezone:()=>Rt().key,setSymbol:xo,getSymbol:()=>$1(),setPeriod:je,getPeriod:()=>L1(),getInstanceApi:()=>_e(),resize:()=>{var B;return(B=_e())==null?void 0:B.resize()},dispose:()=>{tn()},setPositions:B=>{rv(B,_e())},setLiqPrice:B=>{iv(B,_e())},setOpenOrders:B=>{ov(B,_e())},setHisOrders:B=>{av(B,_e())},setAlerts:B=>{j([...B]),$9(B,_e())}};e.ref(tr);const nr=()=>{Ae==null&&(Ae=window.requestAnimationFrame(()=>{var B;Ae=null,(B=_e())==null||B.resize()}))},_n=()=>{Lt.schedule()};return P0(()=>{const B=n==null?void 0:n.closest(".klinecharts-pro");B==null||B.addEventListener(Y1,et),B==null||B.addEventListener(m1,qe),window.addEventListener(Y1,et),window.addEventListener(m1,qe),window.addEventListener("resize",nr);const W=So.init(n,{formatter:{formatDate:X=>{switch(L1().type){case"minute":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"HH:mm"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm");case"hour":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"MM-DD HH:mm"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm");case"day":case"week":return fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD");case"month":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD");case"year":return X.type==="xAxis"?fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY"):fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD")}return fe.utils.formatDate(X.dateTimeFormat,X.timestamp,"YYYY-MM-DD HH:mm")}}});if(i=W,c9(W),W){Hm(e.rootElementId);const X=W.getDom("candle_pane","main");if(X){let tt=document.createElement("div");if(tt.className="klinecharts-pro-watermark",fe.utils.isString(e.watermark)){const nt=e.watermark.replace(/(^\s*)|(\s*$)/g,"");tt.innerHTML=nt}else tt.appendChild(e.watermark);X.appendChild(tt)}const we=W.getDom("candle_pane","yAxis");o=document.createElement("span"),o.className="klinecharts-pro-price-unit",we==null||we.appendChild(o),W.setZoomAnchor({main:"last_bar",xAxis:"last_bar"}),W.setBarSpace(400),W.subscribeAction("onCrosshairFeatureClick",tt=>{}),W.subscribeAction("onIndicatorTooltipFeatureClick",Bt.onIndicatorTooltipFeatureClick),W.subscribeAction("onCandleTooltipFeatureClick",tt=>{}),W.subscribeAction("onZoom",tt=>{}),W.subscribeAction("onCrosshairChange",Qe),dC(e.overrides),ev(W),S1(W),$9(e.alerts??[],W);const ee=$1();ee!=null&&ee.priceCurrency?(o.innerHTML=ee==null?void 0:ee.priceCurrency.toLocaleUpperCase(),o.style.display="flex"):o.style.display="none",W.setSymbol({ticker:ee.ticker,pricePrecision:(ee==null?void 0:ee.pricePrecision)??2,volumePrecision:(ee==null?void 0:ee.volumePrecision)??0}),W.setPeriod(L1()),W.setDataLoader(e.dataloader)}const de=i;if(de){const X=hC(de,e.mainIndicators,e.subIndicators);y(X.mainIndicators),C(X.subIndicators)}}),Sr(()=>{tn()}),Mt(B=>{var Wt,An,Wn,t1,Ii,Oi,Ei;const W=$1(),de=L1(),X=_e();if(!W||!de)return{symbol:W,period:de};const we=B!==void 0&&(B.period.span!==de.span||B.period.type!==de.type||B.period.text!==de.text),ee=B!==void 0&&(((Wt=B.symbol)==null?void 0:Wt.ticker)!==W.ticker||(((An=B.symbol)==null?void 0:An.pricePrecision)??2)!==(W.pricePrecision??2)||(((Wn=B.symbol)==null?void 0:Wn.volumePrecision)??0)!==(W.volumePrecision??0)),tt=B!==void 0&&((t1=B.symbol)==null?void 0:t1.ticker)===W.ticker&&((((Ii=B.symbol)==null?void 0:Ii.pricePrecision)??2)!==(W.pricePrecision??2)||(((Oi=B.symbol)==null?void 0:Oi.volumePrecision)??0)!==(W.volumePrecision??0));return B!==void 0&&((Ei=B.symbol)==null?void 0:Ei.ticker)!==W.ticker&&ki(null),we&&(X==null||X.setPeriod(de),_n()),we&&!ee||(X==null||X.setSymbol({...W,pricePrecision:W.pricePrecision??2,volumePrecision:W.volumePrecision??0}),_n(),tt&&(X==null||X.resize())),Hn(_e()),{symbol:W,period:de}}),Mt(()=>{const B=_e();if(!B)return;const W=s();B.setStyles(W);const de=W==="dark"?"#929AA5":"#76808F";ae!==de&&(ae=de,B.setStyles(mC(de))),Hn(i??B)}),Mt(()=>{var B;(B=_e())==null||B.setLocale(c())}),Mt(()=>{const B=Rt(),W=$o(B.key,c());B.text!==W&&pn({...B,text:W})}),Mt(()=>{var B;(B=_e())==null||B.setTimezone(Rt().key)}),Mt(()=>{const B=_e();!B||Me||(z(cg(B.getStyles())),Me=!0)}),Mt(()=>{const B=_e();if(!B)return;const W=u9();!W||ue===W||(ue=W,B.setStyles(W))}),Mt(()=>{const B=n;if(!B||!x()&&!P()&&!te())return;const W=(ee,tt)=>{if(!ee||!(ee instanceof Element)||tt===0)return!1;let nt=ee;for(;nt;){const Wt=window.getComputedStyle(nt);if((Wt.overflowY==="auto"||Wt.overflowY==="scroll"||Wt.overflowY==="overlay")&&nt.scrollHeight>nt.clientHeight)return tt>0?nt.scrollTop+nt.clientHeight<nt.scrollHeight:nt.scrollTop>0;nt=nt.parentElement}return!1};let de=null;const X=ee=>{de=ee.touches.length>0?ee.touches[0].clientY:null},we=ee=>{if(ee instanceof WheelEvent){if(W(ee.target,ee.deltaY))return}else{if(ee.touches.length===0){ee.preventDefault(),ee.stopPropagation();return}const tt=ee.touches[0].clientY;if(de!=null){const nt=de-tt;if(W(ee.target,nt)){de=tt;return}}de=tt}ee.preventDefault(),ee.stopPropagation()};B.addEventListener("touchstart",X,{passive:!0}),B.addEventListener("wheel",we,{passive:!1}),B.addEventListener("touchmove",we,{passive:!1}),Sr(()=>{B.removeEventListener("touchstart",X),B.removeEventListener("wheel",we),B.removeEventListener("touchmove",we)})}),[oC(),q(Oe,{get when(){return Ie()},get children(){return q(Lv,{get locale(){return c()},get datafeed(){return e.dataloader},onSymbolSelected:B=>{xo(B)},onClose:()=>{ot(!1)}})}}),q(Oe,{get when(){return d()},get children(){return q(Bb,{get locale(){return c()},get mainIndicators(){return v()},get subIndicators(){return b()},onClose:()=>{g(!1)},get onMainIndicatorChange(){return Bt.onMainIndicatorChange},get onSubIndicatorChange(){return Bt.onSubIndicatorChange}})}}),q(Oe,{get when(){return L()},get children(){return q(Nb,{get locale(){return c()},get timezone(){return Rt()},onClose:()=>{k(!1)},onConfirm:B=>{kn(B.key)}})}}),q(Oe,{get when(){return P()},get children(){return q(Bv,{get locale(){return c()},get alerts(){return V()},onClose:()=>{O(!1)},get onAddAlert(){return e.onAddAlert},onRemoveAlert:_t})}}),q(Oe,{get when(){return te()},children:B=>q(Ln,{get title(){return m("alert_detail",c())},width:400,height:260,onClose:()=>{ne(null)},get children(){var W=sC();return R(W,q(S9,{get locale(){return c()},get alert(){return B()}})),W}})}),q(Oe,{get when(){return x()},get children(){return q(gv,{get locale(){return c()},get currentStyles(){return fe.utils.clone(_e().getStyles())},onClose:()=>{$(!1)},onChange:B=>{var W;(W=_e())==null||W.setStyles(B)},onRestoreDefault:B=>{var de;const W={};B.forEach(X=>{const we=X.key;C1(W,we,fe.utils.formatValue(T(),we))}),(de=_e())==null||de.setStyles(W)}})}}),q(Oe,{get when(){return H().length>0},get children(){return q(_v,{get locale(){return c()},get url(){return H()},onClose:()=>{U("")}})}}),q(Oe,{get when(){return Ee().visible},get children(){return q(vv,{get locale(){return c()},get params(){return Ee()},onClose:()=>{ut(T9)},get onConfirm(){return Bt.onIndicatorSettingConfirm}})}}),q(Oe,{get when(){return Ze(()=>!!xt())()&&!!Ye()},get children(){return q(Nm,{get locale(){return c()},get order(){return Ye()},get formattedTime(){return I2(Ye().timestamp,c(),Rt().key)},get anchorX(){return $e().x},get anchorY(){return $e().y},get clipElement(){return n==null?void 0:n.closest(".klinecharts-pro")}})}}),q(iy,{get locale(){return c()},get symbol(){return $1()},get spread(){return I()},get period(){return L1()},get periods(){return e.periods},onMenuClick:async()=>{var B;try{await C6(()=>D(!I())),(B=_e())==null||B.resize()}catch{}},onSymbolClick:()=>{ot(!Ie())},onPeriodChange:je,onIndicatorClick:()=>{g(B=>!B)},onTimezoneClick:()=>{k(B=>!B)},onAlertClick:()=>{O(!0)},onSettingClick:()=>{$(B=>!B)},onScreenshotClick:()=>{if(_e()){const B=_e().getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");U(B)}}}),(()=>{var B=aC(),W=B.firstChild;R(B,q(Oe,{get when(){return Zm()},get children(){return q(gl,{})}}),W),R(B,q(Oe,{get when(){return I()},get children(){return q(Db,{get locale(){return c()},onDrawingItemClick:X=>{uC(X,"candle_pane")},onModeChange:X=>{var we;(we=_e())==null||we.overrideOverlay({groupId:"drawing_tools",mode:X})},onLockChange:X=>{var we;(we=_e())==null||we.overrideOverlay({groupId:"drawing_tools",lock:X})},onVisibleChange:X=>{var we;(we=_e())==null||we.overrideOverlay({groupId:"drawing_tools",visible:X})},onRemoveClick:X=>{var we;(we=_e())==null||we.removeOverlay({groupId:X})}})}}),W);var de=n;return typeof de=="function"?ii(de,W):n=W,Te(X=>{var we=e.overrides.backgroundType??"solid",ee=I();return we!==X.e&&Je(W,"data-pane-style",X.e=we),ee!==X.t&&Je(W,"data-drawing-bar-visible",X.t=ee),X},{e:void 0,t:void 0}),B})()]};class bC{constructor(n){xn(this,"_datafeed");xn(this,"_loading");this._datafeed=n,this._loading=!1}async getBars(n){const{type:i,timestamp:o,symbol:s,period:l,callback:c}=n,f=l;if(i==="backward"||i==="update"){c([],!1);return}this._loading=!0,s9(!0);const d=o??new Date().getTime();await(async()=>{const[v,y]=this.adjustFromTo(f,d,500),b=await this._datafeed.getHistoryKLineData(s,f,v,y);c(b,b.length>0),this._loading=!1,s9(!1)})()}subscribeBar(n){const{symbol:i,period:o,callback:s}=n;this._datafeed.subscribe(i,o,s)}unsubscribeBar(n){const{symbol:i,period:o}=n;this._datafeed.unsubscribe(i,o)}searchSymbols(n){return this._datafeed.searchSymbols(n)}get loading(){return this._loading}set loading(n){this._loading=n}adjustFromTo(n,i,o){let s=i,l=s;switch(n.type){case"minute":s-=s%(60*1e3),l=s-o*n.span*60*1e3;break;case"hour":s-=s%(60*60*1e3),l=s-o*n.span*60*60*1e3;break;case"day":s-=s%(24*60*60*1e3),l=s-o*n.span*24*60*60*1e3;break;case"week":{const c=new Date(s),f=c.getDay()||7;c.setHours(0,0,0,0),s=c.getTime()-(f-1)*24*60*60*1e3,l=s-o*n.span*7*24*60*60*1e3;break}case"month":{const c=new Date(s);s=new Date(c.getFullYear(),c.getMonth(),1).getTime();const f=new Date(s-o*n.span*30*24*60*60*1e3);l=new Date(f.getFullYear(),f.getMonth(),1).getTime();break}case"year":{const c=new Date(s);s=new Date(c.getFullYear(),0,1).getTime();const f=new Date(s-o*n.span*365*24*60*60*1e3);l=new Date(f.getFullYear(),0,1).getTime();break}}return[l,s]}}var vC=Y('<svg class=logo viewBox="0 0 80 92"><path d=M28.148808359375,51.7280513671875L22.963588359375,51.7280513671875C21.572648359375002,51.7280513671875,20.445068359375,52.6220613671875,20.445068359375,53.7248813671875L20.445068359375,72.3979013671875C20.445068359375,73.5007013671875,21.572648359375002,74.39470136718751,22.963588359375,74.39470136718751L33.926568359375,74.39470136718751C35.317468359375,74.39470136718751,36.445068359375,73.5007013671875,36.445068359375,72.3979013671875L36.445068359375,53.7248813671875C36.445068359375,52.6220613671875,35.317468359375,51.7280513671875,33.926568359375,51.7280513671875L28.741398359374998,51.7280513671875L28.741398359374998,46.2963223671875C28.741398359374998,46.1665793671875,28.608748359375,46.0614013671875,28.445108359375,46.0614013671875C28.281468359375,46.0614013671875,28.148808359375,46.1665793671875,28.148808359375,46.2963223671875L28.148808359375,51.7280513671875ZM28.741398359374998,74.3948013671875L28.741398359374998,79.82650136718749C28.741398359374998,79.9563013671875,28.608748359375,80.0614013671875,28.445108359375,80.0614013671875C28.281468359375,80.0614013671875,28.148808359375,79.9563013671875,28.148808359375,79.82650136718749L28.148808359375,74.3948013671875L28.741398359374998,74.3948013671875Z></path><path d=M51.148808359374996,44.7280513671875L45.963588359375,44.7280513671875C44.572648359375,44.7280513671875,43.445068359375,45.6220613671875,43.445068359375,46.7248813671875L43.445068359375,65.3979013671875C43.445068359375,66.5007013671875,44.572648359375,67.39470136718751,45.963588359375,67.39470136718751L56.926568359375,67.39470136718751C58.317468359375,67.39470136718751,59.445068359375,66.5007013671875,59.445068359375,65.3979013671875L59.445068359375,46.7248813671875C59.445068359375,45.6220613671875,58.317468359375,44.7280513671875,56.926568359375,44.7280513671875L51.741398359375,44.7280513671875L51.741398359375,39.2963223671875C51.741398359375,39.1665793671875,51.608748359375,39.0614013671875,51.445108359375,39.0614013671875C51.281468359375,39.0614013671875,51.148808359374996,39.1665793671875,51.148808359374996,39.2963223671875L51.148808359374996,44.7280513671875ZM51.741398359375,67.3948013671875L51.741398359375,72.82650136718749C51.741398359375,72.9563013671875,51.608748359375,73.0614013671875,51.445108359375,73.0614013671875C51.281468359375,73.0614013671875,51.148808359374996,72.9563013671875,51.148808359374996,72.82650136718749L51.148808359374996,67.3948013671875L51.741398359375,67.3948013671875Z></path><path d=M17.7274,90.6541C17.5901,90.6541,17.4517,90.6436,17.3121,90.6225C9.93219,89.5095,4.80718,86.7136,2.07787,82.3084C-1.1223,77.1437,0.241766,71.6314,0.56829,70.5137C5.37624,46.647,15.0785,38.4945,21.5025,33.0957C22.9683,31.8633,24.2342,30.7995,25.1676,29.7672C25.4105,29.4984,25.6051,29.2154,25.7556,28.9202C24.7465,29.2231,24.1971,29.4326,24.1703,29.4429C22.908,29.9368,21.4777,29.3247,20.9761,28.076C20.4756,26.8272,21.0897,25.4146,22.352,24.9172C22.5042,24.8571,23.5312,24.4607,25.3073,23.9616C24.087,21.4425,21.7693,18.7949,19.7125,16.6431L19.2819,16.1902C16.2438,12.9776,14.6017,4.80159,14.3036,3.19471C14.1306,2.26212,14.4636,1.30796,15.1814,0.679657C15.8995,0.0512175,16.8976,-0.159672,17.8125,0.123747C22.7731,1.66274,24.2638,1.81255,27.2321,2.11098C28.7357,2.26195,29.83,3.59029,29.6762,5.07662C29.5236,6.56295,28.182,7.64786,26.6784,7.49454C24.4992,7.27569,22.9517,7.09896,20.724,6.56646C21.4493,9.09088,22.3803,11.5427,23.2771,12.4919L23.6876,12.9237C25.3757,14.69,28.9691,18.45,30.7016,22.7299C35.0392,21.9433,40.8791,21.3359,47.7817,21.7249C48.2004,20.7386,48.8054,19.7953,49.5907,18.9135C49.7137,18.7754,49.8498,18.6502,49.9988,18.539C53.6142,15.8508,57.5491,12.857,59.7803,11.0758C58.1028,11.2502,56.1034,11.0278,53.9124,9.70882C53.2439,9.30622,52.5992,8.89427,51.9662,8.48933C48.4668,6.25164,46.497,5.12109,43.4234,5.94853C41.9647,6.34058,40.4622,5.48975,40.0659,4.04789C39.6695,2.60604,40.5296,1.11853,41.9871,0.726471C47.5602,-0.773825,51.4796,1.73271,54.9364,3.9434L54.9364,3.9434C55.5284,4.32176,56.1318,4.70797,56.7564,5.08482C58.3843,6.06556,59.4858,5.76127,61.2899,5.13865C62.3511,4.77234,63.5567,4.35687,64.8675,4.53476C66.3321,4.73254,67.4406,5.56933,67.9103,6.83096C68.7444,9.07333,67.1035,11.5533,65.5797,13.2374C64.6729,14.2394,60.0845,17.7606,56.4519,20.4957C56.9477,20.3369,57.4767,20.2511,58.026,20.2511C59.4281,20.2511,60.6982,20.8102,61.621,21.7153C65.4948,20.6901,67.87,17.9563,67.9033,17.9175C68.78,16.8888,70.3322,16.7577,71.3721,17.6226C72.412,18.4886,72.5457,20.0253,71.6702,21.054C71.5221,21.2286,69.5063,23.5492,66.0787,25.233C69.5399,26.8822,72.9993,29.682,74.1841,34.4145C74.5106,35.7206,73.7062,37.0407,72.3859,37.3638C72.1871,37.4117,71.9884,37.4351,71.792,37.4351C70.687,37.4351,69.6826,36.6932,69.4046,35.5848C68.4378,31.7217,64.8144,29.7431,61.7619,28.7456C60.8298,29.7349,59.5009,30.3535,58.026,30.3535C55.8642,30.3535,54.0162,29.0245,53.2713,27.1474C53.2022,27.138,53.1331,27.1287,53.0642,27.1195C54.232,29.5936,57.0851,31.9259,58.1868,32.665C58.3157,32.7516,58.4423,32.8523,58.5547,32.9599C66.5865,40.6151,72.4887,48.8133,76.0971,57.3287C76.6815,58.7074,76.0249,60.2932,74.6313,60.8702C74.2976,61.01,73.9388,61.082,73.576,61.082C72.5065,61.082,71.4914,60.4582,71.0525,59.4213C67.7577,51.6455,62.331,44.1074,54.9203,37.0116C53.6073,36.1009,48.0984,31.9917,47.2065,26.583C40.9421,26.2679,35.6187,26.8278,31.6725,27.5336C31.6197,29.527,30.9225,31.5172,29.2456,33.3731C28.0614,34.6827,26.5968,35.915,25.0446,37.2188C21.9414,39.8269,18.2648,42.9169,14.8104,48.1192C11.356,53.3215,8.12389,60.6361,5.9098,71.6934C5.88732,71.8035,5.85893,71.9123,5.82344,72.0188C5.81634,72.041,4.57886,76.0413,6.77344,79.5289C8.6332,82.4828,12.4557,84.4139,18.1367,85.2705C19.6297,85.4953,20.6566,86.8762,20.4295,88.3532C20.2213,89.6944,19.0559,90.6541,17.7274,90.6541ZM35.1195,7.03101C33.3502,7.03101,31.9158,5.61208,31.9158,3.86173C31.9158,2.11139,33.3502,0.69245,35.1195,0.69245C36.8889,0.69245,38.3233,2.11139,38.3233,3.86173C38.3233,5.61208,36.8889,7.03101,35.1195,7.03101ZM57.6848,23.1892L58.414,24.4754C58.8984,24.3623,59.3923,24.3435,59.8644,24.4203C60.2191,24.5005,60.5087,24.7182,60.6663,25.0229C60.8636,25.3394,60.8993,25.7346,60.7646,26.1094C60.5988,26.5176,60.2972,26.8749,59.9085,27.1235L60.31,27.8316L59.7886,28.1294L59.3994,27.443C58.9257,27.7175,58.399,27.883,57.8664,27.9247L57.3744,27.0569C57.6378,27.0741,57.9071,27.048,58.1704,26.9797C58.4501,26.9251,58.7239,26.8323,58.9829,26.7044L58.2801,25.4647C57.8047,25.5877,57.3167,25.6065,56.8549,25.5197C56.4913,25.4263,56.196,25.1971,56.0328,24.8814C55.8433,24.5561,55.8127,24.1572,55.9484,23.7789C56.088,23.373,56.3763,23.0149,56.7584,22.7726L56.4166,22.1699L56.938,21.8721L57.2727,22.4625C57.6615,22.2376,58.0888,22.0901,58.5254,22.0301L59.0042,22.8746C58.5548,22.8828,58.103,22.9906,57.6848,23.1892ZM56.9319,24.2961Q57.1278,24.6417,57.7863,24.5856L57.1695,23.4978Q56.6982,23.884,56.9319,24.2961ZM58.9077,25.3462L59.4981,26.3875L59.499,26.3891Q59.9965,26.0045,59.7628,25.5923Q59.573,25.2576,58.9077,25.3462ZM73.2212,66.5065C73.2212,68.2569,74.6555,69.6758,76.4249,69.6758C78.1943,69.6758,79.6286,68.2569,79.6286,66.5065C79.6286,64.7562,78.1943,63.3372,76.4249,63.3372C74.6555,63.3372,73.2212,64.7562,73.2212,66.5065ZM35.9465,91.8045C35.0734,91.8045,34.2038,91.7987,33.3378,91.7858C31.827,91.7636,30.6203,90.5359,30.6428,89.0402C30.6653,87.5457,31.9158,86.3297,33.4183,86.3742C49.6344,86.6059,65.7512,84.6175,67.6134,84.037C72.1953,82.4184,74.5295,79.3603,74.5295,74.9575C74.5295,73.463,75.754,72.2517,77.2648,72.2517C78.7755,72.2517,80,73.463,80,74.9575C80,81.5992,76.148,86.7686,69.4317,89.142C67.0041,89.9999,51.0955,91.8046,35.9465,91.8045ZM25.2731,92C23.5037,92,22.0693,90.5811,22.0693,88.8307C22.0693,87.0804,23.5037,85.6615,25.2731,85.6615C27.0424,85.6615,28.4768,87.0804,28.4768,88.8307C28.4768,90.5811,27.0424,92,25.2731,92Z>');const CC=vC();class xC{constructor(n){xn(this,"_container");xn(this,"_chartApi",null);if(fe.utils.isString(n.container)){if(this._container=document.getElementById(n.container),!this._container)throw new Error("Container is null")}else this._container=n.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",n.theme??"light");const i=new bC(n.datafeed);I6(()=>{const o=this;return q(yC,{ref:s=>{o._chartApi=s},get watermark(){return n.watermark??CC},get theme(){return n.theme??"light"},get locale(){return n.locale??"zh-CN"},get drawingBarVisible(){return n.drawingBarVisible??!0},get symbol(){return n.symbol},get period(){return n.period},get periods(){return n.periods??[{span:1,type:"minute",text:"1m"},{span:5,type:"minute",text:"5m"},{span:15,type:"minute",text:"15m"},{span:1,type:"hour",text:"1H"},{span:2,type:"hour",text:"2H"},{span:4,type:"hour",text:"4H"},{span:1,type:"day",text:"D"},{span:1,type:"week",text:"W"},{span:1,type:"month",text:"M"},{span:1,type:"year",text:"Y"}]},get overrides(){return n.overrides??{}},get timezone(){return n.timezone??"Etc/UTC"},get mainIndicators(){return n.mainIndicators??[]},get subIndicators(){return n.subIndicators??[]},get dataTimestamp(){return n.dataTimestamp??new Date().getTime()},get onAddAlert(){return n.onAddAlert??(()=>!0)},get onRemoveAlert(){return n.onRemoveAlert??(()=>!0)},get alerts(){return n.alerts??[]},get rootElementId(){var s;return n.rootElementId??((s=o._container)==null?void 0:s.id)??""},dataloader:i})},this._container)}destroy(){this._container&&fe.dispose(this._container),this._container=null,this._chartApi=null}setTheme(n){var i;(i=this._container)==null||i.setAttribute("data-theme",n),this._chartApi.setTheme(n)}getTheme(){return this._chartApi.getTheme()}setStyles(n){this._chartApi.setStyles(n)}getStyles(){return this._chartApi.getStyles()}setLocale(n){this._chartApi.setLocale(n)}getLocale(){return this._chartApi.getLocale()}setTimezone(n){this._chartApi.setTimezone(n)}getTimezone(){return this._chartApi.getTimezone()}setSymbol(n){this._chartApi.setSymbol(n)}getSymbol(){return this._chartApi.getSymbol()}setPeriod(n){this._chartApi.setPeriod(n)}getPeriod(){return this._chartApi.getPeriod()}getInstanceApi(){return _e()}resize(){_e().resize()}dispose(){this.destroy()}setPositions(n){var i;(i=this._chartApi)==null||i.setPositions(n)}setLiqPrice(n){var i;(i=this._chartApi)==null||i.setLiqPrice(n)}setOpenOrders(n){var i;(i=this._chartApi)==null||i.setOpenOrders(n)}setHisOrders(n){var i;(i=this._chartApi)==null||i.setHisOrders(n)}setAlerts(n){var i;(i=this._chartApi)==null||i.setAlerts(n)}}const vD="";console.log("[@wangliang139/klinecharts-pro] v0.2.28"),f6.forEach(e=>{fe.registerOverlay(e)}),At.DefaultDatafeed=d6,At.KLineChartPro=xC,At.loadLocales=W2,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})});
40
40
  //# sourceMappingURL=klinecharts-pro.umd.js.map