@simahfud/klinecharts-pro 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/index.d.ts +10 -0
- package/dist/klinecharts-pro.css +1 -1
- package/dist/klinecharts-pro.js +3944 -3513
- package/dist/klinecharts-pro.js.map +1 -1
- package/dist/klinecharts-pro.umd.js +1 -1
- package/dist/klinecharts-pro.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(j,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],w):(j=typeof globalThis<"u"?globalThis:j||self,w(j.klinechartspro={},j.klinecharts))})(this,function(j,w){"use strict";var bl=Object.defineProperty;var xl=(j,w,he)=>w in j?bl(j,w,{enumerable:!0,configurable:!0,writable:!0,value:he}):j[w]=he;var S=(j,w,he)=>(xl(j,typeof w!="symbol"?w+"":w,he),he);function he(e,t,n){const a=(e.x-t.x)*Math.cos(n)-(e.y-t.y)*Math.sin(n)+t.x,s=(e.x-t.x)*Math.sin(n)+(e.y-t.y)*Math.cos(n)+t.y;return{x:a,y:s}}function M1(e,t){if(e.length>1){let n;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?n={x:e[0].x,y:t.height}:n={x:e[0].x,y:0}:e[0].x>e[1].x?n={x:0,y:w.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:n={x:t.width,y:w.utils.getLinearYFromCoordinates(e[0],e[1],{x:t.width,y:e[0].y})},{coordinates:[e[0],n]}}return[]}function ut(e,t){const n=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);return Math.sqrt(n*n+a*a)}const Zn={name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{if(e.length>1){const t=e[1].x>e[0].x?0:1,n=w.utils.getLinearSlopeIntercept(e[0],e[1]);let a;n?a=Math.atan(n[0])+Math.PI*t:e[1].y>e[0].y?a=Math.PI/2:a=Math.PI/2*3;const s=he({x:e[1].x-8,y:e[1].y+4},e[1],a),r=he({x:e[1].x-8,y:e[1].y-4},e[1],a);return[{type:"line",attrs:{coordinates:e}},{type:"line",ignoreEvent:!0,attrs:{coordinates:[s,e[1],r]}}]}return[]}},Hn={name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{circle:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>{if(e.length>1){const t=ut(e[0],e[1]);return{type:"circle",attrs:{...e[0],r:t},styles:{style:"stroke_fill"}}}return[]}},Qn={name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>e.length>1?[{type:"polygon",attrs:{coordinates:[e[0],{x:e[1].x,y:e[0].y},e[1],{x:e[0].x,y:e[1].y}]},styles:{style:"stroke_fill"}}]:[]},Yn={name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>{if(e.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:e}}];if(e.length===3){const t={x:e[0].x+(e[2].x-e[1].x),y:e[2].y};return[{type:"polygon",attrs:{coordinates:[e[0],e[1],e[2],t]},styles:{style:"stroke_fill"}}]}return[]},performEventPressedMove:({points:e,performPointIndex:t,performPoint:n})=>{t<2&&(e[0].price=n.price,e[1].price=n.price)},performEventMoveForDrawing:({currentStep:e,points:t,performPoint:n})=>{e===2&&(t[0].price=n.price)}},Wn={name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>[{type:"polygon",attrs:{coordinates:e},styles:{style:"stroke_fill"}}]},Gn={name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{if(e.length>1){const t=Math.abs(e[0].x-e[1].x),n=Math.abs(e[0].y-e[1].y),a=Math.sqrt(t*t+n*n),s=[.236,.382,.5,.618,.786,1],r=[],i=[];return s.forEach(o=>{const c=a*o;r.push({...e[0],r:c}),i.push({x:e[0].x,y:e[0].y+c+6,text:`${(o*100).toFixed(1)}%`})}),[{type:"circle",attrs:r,styles:{style:"stroke"}},{type:"text",ignoreEvent:!0,attrs:i}]}return[]}},Xn={name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,precision:n})=>{const a=[],s=[];if(e.length>1){const r=e[1].x>e[0].x?e[0].x:e[1].x,i=[1,.786,.618,.5,.382,.236,0],o=e[0].y-e[1].y,c=t.points,u=c[0].value-c[1].value;i.forEach(l=>{const h=e[1].y+o*l,d=(c[1].value+u*l).toFixed(n.price);a.push({coordinates:[{x:e[0].x,y:h},{x:e[1].x,y:h}]}),s.push({x:r,y:h,text:`${d} (${(l*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:a},{type:"text",ignoreEvent:!0,attrs:s}]}},Jn={name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,bounding:t})=>{if(e.length>1){const n=ut(e[0],e[1])/Math.sqrt(24),a=e[1].x>e[0].x?0:1,s=w.utils.getLinearSlopeIntercept(e[0],e[1]);let r;s?r=Math.atan(s[0])+Math.PI*a:e[1].y>e[0].y?r=Math.PI/2:r=Math.PI/2*3;const i=he({x:e[0].x-n,y:e[0].y},e[0],r),o=he({x:e[0].x-n,y:e[0].y-n},e[0],r),c=[{...i,r:n,startAngle:r,endAngle:r+Math.PI/2},{...o,r:n*2,startAngle:r+Math.PI/2,endAngle:r+Math.PI}];let u=e[0].x-n,l=e[0].y-n;for(let h=2;h<9;h++){const d=c[h-2].r+c[h-1].r;let b=0;switch(h%4){case 0:{b=r,u-=c[h-2].r;break}case 1:{b=r+Math.PI/2,l-=c[h-2].r;break}case 2:{b=r+Math.PI,u+=c[h-2].r;break}case 3:{b=r+Math.PI/2*3,l+=c[h-2].r;break}}const k=b+Math.PI/2,D=he({x:u,y:l},e[0],r);c.push({...D,r:d,startAngle:b,endAngle:k})}return[{type:"arc",attrs:c},{type:"line",attrs:M1(e,t)}]}return[]}},qn={name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,bounding:t})=>{const n=[];let a=[];const s=[];if(e.length>1){const r=e[1].x>e[0].x?-38:4,i=e[1].y>e[0].y?-2:20,o=e[1].x-e[0].x,c=e[1].y-e[0].y;[1,.75,.618,.5,.382,.25,0].forEach(l=>{const h=e[1].x-o*l,d=e[1].y-c*l;n.push({coordinates:[{x:h,y:e[0].y},{x:h,y:e[1].y}]}),n.push({coordinates:[{x:e[0].x,y:d},{x:e[1].x,y:d}]}),a=a.concat(M1([e[0],{x:h,y:e[1].y}],t)),a=a.concat(M1([e[0],{x:e[1].x,y:d}],t)),s.unshift({x:e[0].x+r,y:d+10,text:`${l.toFixed(3)}`}),s.unshift({x:h-18,y:e[0].y+i,text:`${l.toFixed(3)}`})})}return[{type:"line",attrs:n},{type:"line",attrs:a},{type:"text",ignoreEvent:!0,attrs:s}]}},e0={name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,precision:n})=>{const a=[],s=[];if(e.length>2){const r=t.points,i=r[1].value-r[0].value,o=e[1].y-e[0].y,c=[0,.236,.382,.5,.618,.786,1],u=e[2].x>e[1].x?e[1].x:e[2].x;c.forEach(l=>{const h=e[2].y+o*l,d=(r[2].value+i*l).toFixed(n.price);a.push({coordinates:[{x:e[1].x,y:h},{x:e[2].x,y:h}]}),s.push({x:u,y:h,text:`${d} (${(l*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:e},styles:{style:"dashed"}},{type:"line",attrs:a},{type:"text",ignoreEvent:!0,attrs:s}]}},t0={name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>{if(e.length>1){const t=(e[1].y-e[0].y)/4,n=e[1].x-e[0].x,a=[{coordinates:[e[0],{x:e[1].x,y:e[1].y-t}]},{coordinates:[e[0],{x:e[1].x,y:e[1].y-t*2}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[0].y+t}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[0].y+t*2}]},{coordinates:[{...e[0]},{x:e[0].x+n*.236,y:e[1].y}]},{coordinates:[{...e[0]},{x:e[0].x+n*.5,y:e[1].y}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[0].x+n*.236,y:e[0].y}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[0].x+n*.5,y:e[0].y}]}],s=[{coordinates:[e[0],e[1]]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[0].y}]}];return[{type:"line",attrs:[{coordinates:[e[0],{x:e[1].x,y:e[0].y}]},{coordinates:[{x:e[1].x,y:e[0].y},e[1]]},{coordinates:[e[1],{x:e[0].x,y:e[1].y}]},{coordinates:[{x:e[0].x,y:e[1].y},e[0]]}]},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[e[0],{x:e[1].x,y:e[0].y},e[1],{x:e[0].x,y:e[1].y}]},styles:{style:"fill"}},{type:"line",attrs:a,styles:{style:"dashed"}},{type:"line",attrs:s}]}return[]}},n0={name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},a0={name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},r0={name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},s0={name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},o0={name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{let t=[],n=[];const a=["A","B","C","D"],s=e.map((r,i)=>({...r,baseline:"bottom",text:`(${a[i]})`}));return e.length>2&&(t=[e[0],e[2]],e.length>3&&(n=[e[1],e[3]])),[{type:"line",attrs:{coordinates:e}},{type:"line",attrs:[{coordinates:t},{coordinates:n}],styles:{style:"dashed"}},{type:"text",ignoreEvent:!0,attrs:s}]}},i0={name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e,overlay:t})=>{const n=[],a=[],s=["X","A","B","C","D"],r=e.map((i,o)=>({...i,baseline:"bottom",text:`(${s[o]})`}));return e.length>2&&(n.push({coordinates:[e[0],e[2]]}),a.push({coordinates:[e[0],e[1],e[2]]}),e.length>3&&(n.push({coordinates:[e[1],e[3]]}),e.length>4&&(n.push({coordinates:[e[2],e[4]]}),a.push({coordinates:[e[2],e[3],e[4]]})))),[{type:"line",attrs:{coordinates:e}},{type:"line",attrs:n,styles:{style:"dashed"}},{type:"polygon",ignoreEvent:!0,attrs:a},{type:"text",ignoreEvent:!0,attrs:r}]}},l0={name:"longPosition",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t})=>{if(e.length<2)return[];const n=t.points;if(!n||n.length<2)return[];const a=n[0].value??0,s=n[1].value??0,r=Math.abs(s-a),i=s>a,o=i?e[1].y:e[0].y-(e[1].y-e[0].y),c=i?e[0].y+(e[0].y-e[1].y):e[1].y,u=e[0].y,l=Math.min(e[0].x,e[1].x),h=Math.max(e[0].x,e[1].x),d=Math.max(h-l,120),b=r>0?1:0;return[{type:"line",attrs:{coordinates:[{x:l,y:u},{x:l+d,y:u}]},styles:{color:"#2196F3",size:2}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:l,y:u},{x:l+d,y:u},{x:l+d,y:o},{x:l,y:o}]},styles:{style:"fill",color:"rgba(38, 166, 91, 0.2)"}},{type:"line",attrs:{coordinates:[{x:l,y:o},{x:l+d,y:o}]},styles:{color:"#26A65B",size:1,style:"dashed"}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:l,y:u},{x:l+d,y:u},{x:l+d,y:c},{x:l,y:c}]},styles:{style:"fill",color:"rgba(239, 83, 80, 0.2)"}},{type:"line",attrs:{coordinates:[{x:l,y:c},{x:l+d,y:c}]},styles:{color:"#EF5350",size:1,style:"dashed"}},{type:"text",ignoreEvent:!0,attrs:{x:l+4,y:u-4,text:`LONG Entry: ${a.toFixed(2)}`},styles:{color:"#2196F3",size:11}},{type:"text",ignoreEvent:!0,attrs:{x:l+4,y:o+14,text:`TP: ${(i?s:a+r).toFixed(2)} (R:R 1:${b.toFixed(1)})`},styles:{color:"#26A65B",size:11}},{type:"text",ignoreEvent:!0,attrs:{x:l+4,y:c-4,text:`SL: ${(i?a-r:s).toFixed(2)}`},styles:{color:"#EF5350",size:11}}]}},c0={name:"shortPosition",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t})=>{if(e.length<2)return[];const n=t.points;if(!n||n.length<2)return[];const a=n[0].value??0,s=n[1].value??0,r=Math.abs(s-a),i=s<a,o=i?e[1].y:e[0].y+(e[0].y-e[1].y),c=i?e[0].y-(e[1].y-e[0].y):e[1].y,u=e[0].y,l=Math.min(e[0].x,e[1].x),h=Math.max(e[0].x,e[1].x),d=Math.max(h-l,120),b=r>0?1:0;return[{type:"line",attrs:{coordinates:[{x:l,y:u},{x:l+d,y:u}]},styles:{color:"#EF5350",size:2}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:l,y:u},{x:l+d,y:u},{x:l+d,y:o},{x:l,y:o}]},styles:{style:"fill",color:"rgba(38, 166, 91, 0.2)"}},{type:"line",attrs:{coordinates:[{x:l,y:o},{x:l+d,y:o}]},styles:{color:"#26A65B",size:1,style:"dashed"}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:l,y:u},{x:l+d,y:u},{x:l+d,y:c},{x:l,y:c}]},styles:{style:"fill",color:"rgba(239, 83, 80, 0.2)"}},{type:"line",attrs:{coordinates:[{x:l,y:c},{x:l+d,y:c}]},styles:{color:"#EF5350",size:1,style:"dashed"}},{type:"text",ignoreEvent:!0,attrs:{x:l+4,y:u-4,text:`SHORT Entry: ${a.toFixed(2)}`},styles:{color:"#EF5350",size:11}},{type:"text",ignoreEvent:!0,attrs:{x:l+4,y:o-4,text:`TP: ${(i?s:a-r).toFixed(2)} (R:R 1:${b.toFixed(1)})`},styles:{color:"#26A65B",size:11}},{type:"text",ignoreEvent:!0,attrs:{x:l+4,y:c+14,text:`SL: ${(i?a+r:s).toFixed(2)}`},styles:{color:"#EF5350",size:11}}]}},$e=30,u0=.35,_0=.7,d0=[Zn,Hn,Qn,Wn,Yn,Gn,Xn,Jn,qn,e0,t0,n0,a0,r0,s0,o0,i0,l0,c0,{name:"frvp",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,bounding:n})=>{if(e.length<2)return[];const a=t.points;if(!a||a.length<2)return[];const s=a[0].value??0,r=a[1].value??0,i=Math.max(s,r),o=Math.min(s,r);if(i-o<=0)return[];const u=Math.min(e[0].y,e[1].y),l=Math.max(e[0].y,e[1].y),h=Math.min(e[0].x,e[1].x),d=Math.max(e[0].x,e[1].x),b=l-u;if(b<=0)return[];const k=b/$e,D=Math.min((d-h)*u0,n.width*.3),L=[];let I=0;const A=t.extendData;if(A&&A.length===$e)for(let f=0;f<$e;f++)L.push(A[f]),A[f]>I&&(I=A[f]);else{const f=$e/2;for(let T=0;T<$e;T++){const H=Math.abs(T-f)/f,X=Math.exp(-H*H*3)*100+Math.random()*20;L.push(X),X>I&&(I=X)}}let P=0;for(let f=1;f<$e;f++)L[f]>L[P]&&(P=f);const O=L.reduce((f,T)=>f+T,0)*_0;let Y=P,K=P,U=L[P];for(;U<O&&(Y>0||K<$e-1);){const f=Y>0?L[Y-1]:0,T=K<$e-1?L[K+1]:0;f>=T&&Y>0?(Y--,U+=f):K<$e-1?(K++,U+=T):(Y--,U+=f)}const M=[];M.push({type:"line",attrs:[{coordinates:[{x:h,y:u},{x:d,y:u}]},{coordinates:[{x:d,y:u},{x:d,y:l}]},{coordinates:[{x:d,y:l},{x:h,y:l}]},{coordinates:[{x:h,y:l},{x:h,y:u}]}],styles:{style:"dashed",color:"rgba(150, 150, 150, 0.5)",size:1}});for(let f=0;f<$e;f++){const T=I>0?L[f]/I*D:0,H=u+f*k,X=H+k-1;let ae;f===P?ae="rgba(255, 193, 7, 0.6)":f>=Y&&f<=K?ae="rgba(33, 150, 243, 0.35)":ae="rgba(150, 150, 150, 0.2)",M.push({type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:d,y:H},{x:d+T,y:H},{x:d+T,y:X},{x:d,y:X}]},styles:{style:"fill",color:ae}})}const F=u+P*k+k/2;M.push({type:"line",attrs:{coordinates:[{x:h,y:F},{x:d+D,y:F}]},styles:{color:"#FFC107",size:1.5}}),M.push({type:"text",ignoreEvent:!0,attrs:{x:d+D+4,y:F+4,text:"POC"},styles:{color:"#FFC107",size:10}});const B=u+K*k;M.push({type:"line",attrs:{coordinates:[{x:d,y:B},{x:d+D,y:B}]},styles:{color:"#2196F3",size:1,style:"dashed"}}),M.push({type:"text",ignoreEvent:!0,attrs:{x:d+D+4,y:B+4,text:"VAH"},styles:{color:"#2196F3",size:10}});const ee=u+(Y+1)*k;return M.push({type:"line",attrs:{coordinates:[{x:d,y:ee},{x:d+D,y:ee}]},styles:{color:"#2196F3",size:1,style:"dashed"}}),M.push({type:"text",ignoreEvent:!0,attrs:{x:d+D+4,y:ee+4,text:"VAL"},styles:{color:"#2196F3",size:10}}),M}},{name:"measure",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t})=>{if(e.length<2)return[];const n=t.points;if(!n||n.length<2)return[];const a=n[0].value??0,r=(n[1].value??0)-a,i=a!==0?r/a*100:0,o=n[0].timestamp??0,c=n[1].timestamp??0,u=Math.abs(c-o),l=Math.floor(u/36e5),h=Math.floor(u%36e5/6e4),d=l>0?`${l}h ${h}m`:`${h}m`,b=(e[0].x+e[1].x)/2,k=(e[0].y+e[1].y)/2,D=r>=0,L=D?"#26A65B":"#EF5350",I=D?"+":"";return[{type:"line",attrs:{coordinates:[e[0],e[1]]},styles:{color:L,size:1,style:"dashed"}},{type:"line",attrs:{coordinates:[{x:e[0].x,y:e[0].y},{x:e[0].x,y:e[1].y}]},styles:{color:"rgba(150,150,150,0.4)",size:1,style:"dashed"}},{type:"line",attrs:{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[1].y}]},styles:{color:"rgba(150,150,150,0.4)",size:1,style:"dashed"}},{type:"text",ignoreEvent:!0,attrs:{x:b+8,y:k-8,text:`${I}${r.toFixed(2)} (${I}${i.toFixed(2)}%)`},styles:{color:L,size:12}},{type:"text",ignoreEvent:!0,attrs:{x:b+8,y:k+8,text:`⏱ ${d}`},styles:{color:"#999",size:11}}]}},{name:"priceRange",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,bounding:t,overlay:n})=>{if(e.length<2)return[];const a=Math.min(e[0].y,e[1].y),s=Math.max(e[0].y,e[1].y),r=n.points,i=r?Math.max(r[0].value??0,r[1].value??0):0,o=r?Math.min(r[0].value??0,r[1].value??0):0;return[{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:0,y:a},{x:t.width,y:a},{x:t.width,y:s},{x:0,y:s}]},styles:{style:"fill",color:"rgba(33, 150, 243, 0.1)"}},{type:"line",attrs:{coordinates:[{x:0,y:a},{x:t.width,y:a}]},styles:{color:"rgba(33, 150, 243, 0.5)",size:1}},{type:"line",attrs:{coordinates:[{x:0,y:s},{x:t.width,y:s}]},styles:{color:"rgba(33, 150, 243, 0.5)",size:1}},{type:"text",ignoreEvent:!0,attrs:{x:8,y:a+14,text:`${i.toFixed(2)} — ${o.toFixed(2)}`},styles:{color:"#2196F3",size:11}}]}},{name:"textNote",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({coordinates:e,overlay:t})=>{if(e.length<1)return[];const n=t.extendData,a=(n==null?void 0:n.text)??"Note",s=(n==null?void 0:n.color)??"#FFC107",r=e[0].x,i=e[0].y;return[{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:r-4,y:i-16},{x:r+a.length*7+8,y:i-16},{x:r+a.length*7+8,y:i+4},{x:r-4,y:i+4}]},styles:{style:"fill",color:"rgba(0, 0, 0, 0.6)"}},{type:"text",ignoreEvent:!0,attrs:{x:r,y:i,text:a},styles:{color:s,size:12}}]}},{name:"anchoredVwap",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,bounding:n})=>{if(e.length<1)return[];const a=t.points;if(!a||a.length<1)return[];const s=e[0].x,r=e[0].y,i=a[0].value??0,o=t.extendData,c=o==null?void 0:o.klineData,u=[];if(u.push({type:"text",ignoreEvent:!0,attrs:{x:s+4,y:r-8,text:"⚓ VWAP"},styles:{color:"#FF9800",size:11}}),c&&c.length>0){const l=a[0].timestamp??0,h=c.filter(d=>d.timestamp>=l);if(h.length>1){let d=0,b=0;const k=[],D=h.length,L=n.width-s,I=D>1?L/D:1;for(let A=0;A<h.length;A++){const P=h[A],z=(P.high+P.low+P.close)/3,O=P.volume??1;d+=O,b+=z*O;const Y=b/d,K=Math.abs(h[h.length-1].high-h[0].low)||1,U=(h[0].low+h[h.length-1].high)/2,M=n.height*.6,B=n.height/2-(Y-U)/K*M;k.push({x:s+A*I,y:B})}for(let A=1;A<k.length;A++)u.push({type:"line",ignoreEvent:!0,attrs:{coordinates:[k[A-1],k[A]]},styles:{color:"#FF9800",size:2}});if(k.length>0){const A=k[k.length-1],P=b/d;u.push({type:"text",ignoreEvent:!0,attrs:{x:A.x+4,y:A.y+4,text:`VWAP: ${P.toFixed(2)}`},styles:{color:"#FF9800",size:10}})}}}else u.push({type:"line",attrs:{coordinates:[{x:s,y:r},{x:n.width,y:r}]},styles:{color:"#FF9800",size:1.5,style:"dashed"}}),u.push({type:"text",ignoreEvent:!0,attrs:{x:n.width-80,y:r-4,text:`${i.toFixed(2)}`},styles:{color:"#FF9800",size:10}});return u}},{name:"priceLabel",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,bounding:n})=>{var d;if(e.length<1)return[];const a=t.points,s=((d=a==null?void 0:a[0])==null?void 0:d.value)??0,r=e[0].y,i=t.extendData,o=(i==null?void 0:i.text)??s.toFixed(2),c=(i==null?void 0:i.color)??"#1677FF",u=(i==null?void 0:i.bgColor)??"rgba(22, 119, 255, 0.08)",l=o.length*7+16,h=n.width-l-8;return[{type:"line",attrs:{coordinates:[{x:0,y:r},{x:n.width,y:r}]},styles:{color:c,size:1,style:"dashed"}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:h,y:r-10},{x:h+l,y:r-10},{x:h+l,y:r+10},{x:h,y:r+10}]},styles:{style:"fill",color:u}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:h,y:r-10},{x:h+l,y:r-10},{x:h+l,y:r+10},{x:h,y:r+10}]},styles:{style:"stroke",color:c}},{type:"text",ignoreEvent:!0,attrs:{x:h+8,y:r+4,text:o},styles:{color:c,size:11}}]}}];class h0{constructor(t){S(this,"_apiKey");S(this,"_prevSymbolMarket");S(this,"_prevSymbolTicker");S(this,"_ws");S(this,"_callback");S(this,"_connectionStatusCallback");S(this,"_reconnectAttempts",0);S(this,"_maxReconnectAttempts",5);S(this,"_reconnectTimer");S(this,"_currentSymbol");S(this,"_connectionStatus","disconnected");this._apiKey=t}onConnectionStatusChange(t){this._connectionStatusCallback=t}getConnectionStatus(){return this._connectionStatus}_setConnectionStatus(t){var n;this._connectionStatus=t,(n=this._connectionStatusCallback)==null||n.call(this,t)}async searchSymbols(t){try{const n=await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${t??""}`);if(!n.ok)throw new Error(`Search failed: ${n.status} ${n.statusText}`);return((await 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:""}))}catch(n){return console.error("Symbol search error:",n),[]}}async getHistoryKLineData(t,n,a,s){try{const r=await fetch(`https://api.polygon.io/v2/aggs/ticker/${t.ticker}/range/${n.multiplier}/${n.timespan}/${a}/${s}?apiKey=${this._apiKey}`);if(!r.ok)throw new Error(`History data failed: ${r.status} ${r.statusText}`);return((await r.json()).results||[]).map(o=>({timestamp:o.t,open:o.o,high:o.h,low:o.l,close:o.c,volume:o.v,turnover:o.vw}))}catch(r){return console.error("History data error:",r),[]}}subscribe(t,n,a){var s,r;this._callback=a,this._currentSymbol=t,this._prevSymbolMarket!==t.market?(this._cleanupWebSocket(),this._connectWebSocket(t)):(this._prevSymbolTicker&&((s=this._ws)==null||s.send(JSON.stringify({action:"unsubscribe",params:`T.${this._prevSymbolTicker}`}))),(r=this._ws)==null||r.send(JSON.stringify({action:"subscribe",params:`T.${t.ticker}`}))),this._prevSymbolMarket=t.market,this._prevSymbolTicker=t.ticker}unsubscribe(t,n){this._ws&&this._ws.readyState===WebSocket.OPEN&&this._ws.send(JSON.stringify({action:"unsubscribe",params:`T.${t.ticker}`})),this._prevSymbolTicker=void 0,this._callback=void 0}destroy(){this._cleanupWebSocket(),this._reconnectTimer&&(clearTimeout(this._reconnectTimer),this._reconnectTimer=void 0),this._callback=void 0,this._connectionStatusCallback=void 0,this._setConnectionStatus("disconnected")}_connectWebSocket(t){this._setConnectionStatus("connecting"),this._ws=new WebSocket(`wss://delayed.polygon.io/${t.market}`),this._ws.onopen=()=>{var n;(n=this._ws)==null||n.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=n=>{var a,s,r;try{const i=JSON.parse(n.data);if(!Array.isArray(i)||i.length===0)return;const o=i[0];o.ev==="status"?o.status==="auth_success"?(this._setConnectionStatus("connected"),this._reconnectAttempts=0,(a=this._ws)==null||a.send(JSON.stringify({action:"subscribe",params:`T.${t.ticker}`}))):o.status==="auth_failed"&&(console.error("WebSocket auth failed"),this._setConnectionStatus("disconnected")):o.ev==="T"&&o.sym===((s=this._currentSymbol)==null?void 0:s.ticker)&&((r=this._callback)==null||r.call(this,{timestamp:o.t,open:o.o??o.p,high:o.h??o.p,low:o.l??o.p,close:o.c??o.p,volume:o.v??o.s,turnover:o.vw??0}))}catch(i){console.warn("WebSocket message parse error:",i)}},this._ws.onclose=()=>{this._connectionStatus!=="disconnected"&&this._attemptReconnect(t)},this._ws.onerror=n=>{console.error("WebSocket error:",n)}}_attemptReconnect(t){if(this._reconnectAttempts>=this._maxReconnectAttempts){console.error("Max reconnect attempts reached"),this._setConnectionStatus("disconnected");return}this._setConnectionStatus("reconnecting"),this._reconnectAttempts++;const n=Math.min(1e3*Math.pow(2,this._reconnectAttempts),3e4);this._reconnectTimer=setTimeout(()=>{this._connectWebSocket(t)},n)}_cleanupWebSocket(){this._ws&&(this._ws.onclose=null,this._ws.onerror=null,this._ws.onmessage=null,this._ws.onopen=null,(this._ws.readyState===WebSocket.OPEN||this._ws.readyState===WebSocket.CONNECTING)&&this._ws.close(),this._ws=void 0)}}const le={};function $0(e){le.context=e}const y0=(e,t)=>e===t,T1=Symbol("solid-proxy"),p0=Symbol("solid-track"),a1={equals:y0};let _t=pt;const ge=1,r1=2,dt={owned:null,cleanups:null,context:null,owner:null},I1={};var q=null;let ke=null,W=null,ie=null,me=null,P1=0;function s1(e,t){const n=W,a=q,s=e.length===0,r=s?dt:{owned:null,cleanups:null,context:null,owner:t===void 0?a:t},i=s?e:()=>e(()=>Ce(()=>c1(r)));q=r,W=null;try{return be(i,!0)}finally{W=n,q=a}}function C(e,t){t=t?Object.assign({},a1,t):a1;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},a=s=>(typeof s=="function"&&(s=s(n.value)),yt(n,s));return[$t.bind(n),a]}function ht(e,t,n){const a=o1(e,t,!0,ge);Pe(a)}function N(e,t,n){const a=o1(e,t,!1,ge);Pe(a)}function fe(e,t,n){_t=b0;const a=o1(e,t,!1,ge);a.user=!0,me?me.push(a):Pe(a)}function Z(e,t,n){n=n?Object.assign({},a1,n):a1;const a=o1(e,t,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=n.equals||void 0,Pe(a),$t.bind(a)}function g0(e,t,n){let a,s,r;arguments.length===2&&typeof t=="object"||arguments.length===1?(a=!0,s=e,r=t||{}):(a=e,s=t,r=n||{});let i=null,o=I1,c=null,u=!1,l="initialValue"in r,h=typeof a=="function"&&Z(a);const d=new Set,[b,k]=(r.storage||C)(r.initialValue),[D,L]=C(void 0),[I,A]=C(void 0,{equals:!1}),[P,z]=C(l?"ready":"unresolved");if(le.context){c=`${le.context.id}${le.context.count++}`;let M;r.ssrLoadFrom==="initial"?o=r.initialValue:le.load&&(M=le.load(c))&&(o=M[0])}function O(M,F,B,ee){return i===M&&(i=null,l=!0,(M===o||F===o)&&r.onHydrated&&queueMicrotask(()=>r.onHydrated(ee,{value:F})),o=I1,Y(F,B)),F}function Y(M,F){be(()=>{F===void 0&&k(()=>M),z(F!==void 0?"errored":"ready"),L(F);for(const B of d.keys())B.decrement();d.clear()},!1)}function K(){const M=f0,F=b(),B=D();if(B!==void 0&&!i)throw B;return W&&!W.user&&M&&ht(()=>{I(),i&&(M.resolved||d.has(M)||(M.increment(),d.add(M)))}),F}function U(M=!0){if(M!==!1&&u)return;u=!1;const F=h?h():a;if(F==null||F===!1){O(i,Ce(b));return}const B=o!==I1?o:Ce(()=>s(F,{value:b(),refetching:M}));return typeof B!="object"||!(B&&"then"in B)?(O(i,B,void 0,F),B):(i=B,u=!0,queueMicrotask(()=>u=!1),be(()=>{z(l?"refreshing":"pending"),A()},!1),B.then(ee=>O(B,ee,void 0,F),ee=>O(B,void 0,mt(ee),F)))}return Object.defineProperties(K,{state:{get:()=>P()},error:{get:()=>D()},loading:{get(){const M=P();return M==="pending"||M==="refreshing"}},latest:{get(){if(!l)return K();const M=D();if(M&&!i)throw M;return b()}}}),h?ht(()=>U(!1)):U(!1),[K,{refetch:U,mutate:k}]}function Ce(e){if(W===null)return e();const t=W;W=null;try{return e()}finally{W=t}}function He(e){fe(()=>Ce(e))}function Ie(e){return q===null||(q.cleanups===null?q.cleanups=[e]:q.cleanups.push(e)),e}function m0(e){const t=W,n=q;return Promise.resolve().then(()=>{W=t,q=n;let a;return be(e,!1),W=q=null,a?a.done:void 0})}let f0;function $t(){const e=ke;if(this.sources&&(this.state||e))if(this.state===ge||e)Pe(this);else{const t=ie;ie=null,be(()=>l1(this),!1),ie=t}if(W){const t=this.observers?this.observers.length:0;W.sources?(W.sources.push(this),W.sourceSlots.push(t)):(W.sources=[this],W.sourceSlots=[t]),this.observers?(this.observers.push(W),this.observerSlots.push(W.sources.length-1)):(this.observers=[W],this.observerSlots=[W.sources.length-1])}return this.value}function yt(e,t,n){let a=e.value;return(!e.comparator||!e.comparator(a,t))&&(e.value=t,e.observers&&e.observers.length&&be(()=>{for(let s=0;s<e.observers.length;s+=1){const r=e.observers[s],i=ke&&ke.running;i&&ke.disposed.has(r),(i&&!r.tState||!i&&!r.state)&&(r.pure?ie.push(r):me.push(r),r.observers&>(r)),i||(r.state=ge)}if(ie.length>1e6)throw ie=[],new Error},!1)),t}function Pe(e){if(!e.fn)return;c1(e);const t=q,n=W,a=P1;W=q=e,C0(e,e.value,a),W=n,q=t}function C0(e,t,n){let a;try{a=e.fn(t)}catch(s){e.pure&&(e.state=ge,e.owned&&e.owned.forEach(c1),e.owned=null),ft(s)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?yt(e,a):e.value=a,e.updatedAt=n)}function o1(e,t,n,a=ge,s){const r={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:q,context:null,pure:n};return q===null||q!==dt&&(q.owned?q.owned.push(r):q.owned=[r]),r}function i1(e){const t=ke;if(e.state===0||t)return;if(e.state===r1||t)return l1(e);if(e.suspense&&Ce(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<P1);)(e.state||t)&&n.push(e);for(let a=n.length-1;a>=0;a--)if(e=n[a],e.state===ge||t)Pe(e);else if(e.state===r1||t){const s=ie;ie=null,be(()=>l1(e,n[0]),!1),ie=s}}function be(e,t){if(ie)return e();let n=!1;t||(ie=[]),me?n=!0:me=[],P1++;try{const a=e();return v0(n),a}catch(a){n||(me=null),ie=null,ft(a)}}function v0(e){if(ie&&(pt(ie),ie=null),e)return;const t=me;me=null,t.length&&be(()=>_t(t),!1)}function pt(e){for(let t=0;t<e.length;t++)i1(e[t])}function b0(e){let t,n=0;for(t=0;t<e.length;t++){const a=e[t];a.user?e[n++]=a:i1(a)}for(le.context&&$0(),t=0;t<n;t++)i1(e[t])}function l1(e,t){const n=ke;e.state=0;for(let a=0;a<e.sources.length;a+=1){const s=e.sources[a];s.sources&&(s.state===ge||n?s!==t&&i1(s):(s.state===r1||n)&&l1(s,t))}}function gt(e){const t=ke;for(let n=0;n<e.observers.length;n+=1){const a=e.observers[n];(!a.state||t)&&(a.state=r1,a.pure?ie.push(a):me.push(a),a.observers&>(a))}}function c1(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),a=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const r=s.pop(),i=n.observerSlots.pop();a<s.length&&(r.sourceSlots[i]=a,s[a]=r,n.observerSlots[a]=i)}}if(e.owned){for(t=0;t<e.owned.length;t++)c1(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function mt(e){return e instanceof Error||typeof e=="string"?e:new Error("Unknown error")}function ft(e){throw e=mt(e),e}const x0=Symbol("fallback");function Ct(e){for(let t=0;t<e.length;t++)e[t]()}function L0(e,t,n={}){let a=[],s=[],r=[],i=0,o=t.length>1?[]:null;return Ie(()=>Ct(r)),()=>{let c=e()||[],u,l;return c[p0],Ce(()=>{let d=c.length,b,k,D,L,I,A,P,z,O;if(d===0)i!==0&&(Ct(r),r=[],a=[],s=[],i=0,o&&(o=[])),n.fallback&&(a=[x0],s[0]=s1(Y=>(r[0]=Y,n.fallback())),i=1);else if(i===0){for(s=new Array(d),l=0;l<d;l++)a[l]=c[l],s[l]=s1(h);i=d}else{for(D=new Array(d),L=new Array(d),o&&(I=new Array(d)),A=0,P=Math.min(i,d);A<P&&a[A]===c[A];A++);for(P=i-1,z=d-1;P>=A&&z>=A&&a[P]===c[z];P--,z--)D[z]=s[P],L[z]=r[P],o&&(I[z]=o[P]);for(b=new Map,k=new Array(z+1),l=z;l>=A;l--)O=c[l],u=b.get(O),k[l]=u===void 0?-1:u,b.set(O,l);for(u=A;u<=P;u++)O=a[u],l=b.get(O),l!==void 0&&l!==-1?(D[l]=s[u],L[l]=r[u],o&&(I[l]=o[u]),l=k[l],b.set(O,l)):r[u]();for(l=A;l<d;l++)l in D?(s[l]=D[l],r[l]=L[l],o&&(o[l]=I[l],o[l](l))):s[l]=s1(h);s=s.slice(0,i=d),a=c.slice(0)}return s});function h(d){if(r[l]=d,o){const[b,k]=C(l);return o[l]=k,t(c[l],b)}return t(c[l])}}}function g(e,t){return Ce(()=>e(t||{}))}function u1(){return!0}const w0={get(e,t,n){return t===T1?n:e.get(t)},has(e,t){return t===T1?!0:e.has(t)},set:u1,deleteProperty:u1,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:u1,deleteProperty:u1}},ownKeys(e){return e.keys()}};function D1(e){return(e=typeof e=="function"?e():e)?e:{}}function vt(...e){let t=!1;for(let a=0;a<e.length;a++){const s=e[a];t=t||!!s&&T1 in s,e[a]=typeof s=="function"?(t=!0,Z(s)):s}if(t)return new Proxy({get(a){for(let s=e.length-1;s>=0;s--){const r=D1(e[s])[a];if(r!==void 0)return r}},has(a){for(let s=e.length-1;s>=0;s--)if(a in D1(e[s]))return!0;return!1},keys(){const a=[];for(let s=0;s<e.length;s++)a.push(...Object.keys(D1(e[s])));return[...new Set(a)]}},w0);const n={};for(let a=e.length-1;a>=0;a--)if(e[a]){const s=Object.getOwnPropertyDescriptors(e[a]);for(const r in s)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let i=e.length-1;i>=0;i--){const o=(e[i]||{})[r];if(o!==void 0)return o}}})}return n}function E1(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Z(L0(()=>e.each,e.children,t||void 0))}function J(e){let t=!1;const n=e.keyed,a=Z(()=>e.when,void 0,{equals:(s,r)=>t?s===r:!s==!r});return Z(()=>{const s=a();if(s){const r=e.children,i=typeof r=="function"&&r.length>0;return t=n||i,i?Ce(()=>r(s)):r}return e.fallback},void 0,void 0)}function k0(e,t,n){let a=n.length,s=t.length,r=a,i=0,o=0,c=t[s-1].nextSibling,u=null;for(;i<s||o<r;){if(t[i]===n[o]){i++,o++;continue}for(;t[s-1]===n[r-1];)s--,r--;if(s===i){const l=r<a?o?n[o-1].nextSibling:n[r-o]:c;for(;o<r;)e.insertBefore(n[o++],l)}else if(r===o)for(;i<s;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[r-1]&&n[o]===t[s-1]){const l=t[--s].nextSibling;e.insertBefore(n[o++],t[i++].nextSibling),e.insertBefore(n[--r],l),t[s]=n[r]}else{if(!u){u=new Map;let h=o;for(;h<r;)u.set(n[h],h++)}const l=u.get(t[i]);if(l!=null)if(o<l&&l<r){let h=i,d=1,b;for(;++h<s&&h<r&&!((b=u.get(t[h]))==null||b!==l+d);)d++;if(d>l-o){const k=t[i];for(;o<l;)e.insertBefore(n[o++],k)}else e.replaceChild(n[o++],t[i++])}else i++;else t[i++].remove()}}}const bt="_$DX_DELEGATE";function S0(e,t,n,a={}){let s;return s1(r=>{s=r,t===document?e():p(t,e(),t.firstChild?null:void 0,n)},a.owner),()=>{s(),t.textContent=""}}function y(e,t,n){const a=document.createElement("template");a.innerHTML=e;let s=a.content.firstChild;return n&&(s=s.firstChild),s}function re(e,t=window.document){const n=t[bt]||(t[bt]=new Set);for(let a=0,s=e.length;a<s;a++){const r=e[a];n.has(r)||(n.add(r),t.addEventListener(r,A0))}}function se(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function ue(e,t){t==null?e.removeAttribute("class"):e.className=t}function xe(e,t,n,a){if(a)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const s=n[0];e.addEventListener(t,n[0]=r=>s.call(e,n[1],r))}else e.addEventListener(t,n)}function De(e,t,n){if(!t)return n?se(e,"style"):t;const a=e.style;if(typeof t=="string")return a.cssText=t;typeof n=="string"&&(a.cssText=n=void 0),n||(n={}),t||(t={});let s,r;for(r in n)t[r]==null&&a.removeProperty(r),delete n[r];for(r in t)s=t[r],s!==n[r]&&(a.setProperty(r,s),n[r]=s);return n}function _1(e,t,n){return Ce(()=>e(t,n))}function p(e,t,n,a){if(n!==void 0&&!a&&(a=[]),typeof t!="function")return d1(e,t,a,n);N(s=>d1(e,t(),s,n),a)}function A0(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),le.registry&&!le.done&&(le.done=!0,document.querySelectorAll("[id^=pl-]").forEach(a=>{for(;a&&a.nodeType!==8&&a.nodeValue!=="pl-"+e;){let s=a.nextSibling;a.remove(),a=s}a&&a.remove()}));n;){const a=n[t];if(a&&!n.disabled){const s=n[`${t}Data`];if(s!==void 0?a.call(n,s,e):a.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function d1(e,t,n,a,s){for(le.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const r=typeof t,i=a!==void 0;if(e=i&&n[0]&&n[0].parentNode||e,r==="string"||r==="number"){if(le.context)return n;if(r==="number"&&(t=t.toString()),i){let o=n[0];o&&o.nodeType===3?o.data=t:o=document.createTextNode(t),n=Ee(e,n,a,o)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||r==="boolean"){if(le.context)return n;n=Ee(e,n,a)}else{if(r==="function")return N(()=>{let o=t();for(;typeof o=="function";)o=o();n=d1(e,o,n,a)}),()=>n;if(Array.isArray(t)){const o=[],c=n&&Array.isArray(n);if(N1(o,t,n,s))return N(()=>n=d1(e,o,n,a,!0)),()=>n;if(le.context){if(!o.length)return n;for(let u=0;u<o.length;u++)if(o[u].parentNode)return n=o}if(o.length===0){if(n=Ee(e,n,a),i)return n}else c?n.length===0?xt(e,o,a):k0(e,n,o):(n&&Ee(e),xt(e,o));n=o}else if(t instanceof Node){if(le.context&&t.parentNode)return n=i?[t]:t;if(Array.isArray(n)){if(i)return n=Ee(e,n,a,t);Ee(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function N1(e,t,n,a){let s=!1;for(let r=0,i=t.length;r<i;r++){let o=t[r],c=n&&n[r];if(o instanceof Node)e.push(o);else if(!(o==null||o===!0||o===!1))if(Array.isArray(o))s=N1(e,o,c)||s;else if(typeof o=="function")if(a){for(;typeof o=="function";)o=o();s=N1(e,Array.isArray(o)?o:[o],Array.isArray(c)?c:[c])||s}else e.push(o),s=!0;else{const u=String(o);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return s}function xt(e,t,n=null){for(let a=0,s=t.length;a<s;a++)e.insertBefore(t[a],n)}function Ee(e,t,n,a){if(n===void 0)return e.textContent="";const s=a||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const o=t[i];if(s!==o){const c=o.parentNode===e;!r&&!i?c?e.replaceChild(s,o):e.insertBefore(s,n):c&&o.remove()}else r=!0}}else e.insertBefore(s,n);return[s]}var h1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M0=typeof h1=="object"&&h1&&h1.Object===Object&&h1,wt=M0,T0=wt,I0=typeof self=="object"&&self&&self.Object===Object&&self,P0=T0||I0||Function("return this")(),ye=P0,D0=ye,E0=D0.Symbol,$1=E0,kt=$1,St=Object.prototype,N0=St.hasOwnProperty,F0=St.toString,Qe=kt?kt.toStringTag:void 0;function B0(e){var t=N0.call(e,Qe),n=e[Qe];try{e[Qe]=void 0;var a=!0}catch{}var s=F0.call(e);return a&&(t?e[Qe]=n:delete e[Qe]),s}var O0=B0,R0=Object.prototype,j0=R0.toString;function z0(e){return j0.call(e)}var K0=z0,At=$1,U0=O0,V0=K0,Z0="[object Null]",H0="[object Undefined]",Mt=At?At.toStringTag:void 0;function Q0(e){return e==null?e===void 0?H0:Z0:Mt&&Mt in Object(e)?U0(e):V0(e)}var Ye=Q0;function Y0(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ne=Y0,W0=Ye,G0=Ne,X0="[object AsyncFunction]",J0="[object Function]",q0="[object GeneratorFunction]",e9="[object Proxy]";function t9(e){if(!G0(e))return!1;var t=W0(e);return t==J0||t==q0||t==X0||t==e9}var Tt=t9,n9=ye,a9=n9["__core-js_shared__"],r9=a9,F1=r9,It=function(){var e=/[^.]+$/.exec(F1&&F1.keys&&F1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function s9(e){return!!It&&It in e}var o9=s9,i9=Function.prototype,l9=i9.toString;function c9(e){if(e!=null){try{return l9.call(e)}catch{}try{return e+""}catch{}}return""}var Pt=c9,u9=Tt,_9=o9,d9=Ne,h9=Pt,$9=/[\\^$.*+?()[\]{}|]/g,y9=/^\[object .+?Constructor\]$/,p9=Function.prototype,g9=Object.prototype,m9=p9.toString,f9=g9.hasOwnProperty,C9=RegExp("^"+m9.call(f9).replace($9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v9(e){if(!d9(e)||_9(e))return!1;var t=u9(e)?C9:y9;return t.test(h9(e))}var b9=v9;function x9(e,t){return e==null?void 0:e[t]}var L9=x9,w9=b9,k9=L9;function S9(e,t){var n=k9(e,t);return w9(n)?n:void 0}var Se=S9,A9=Se,M9=function(){try{var e=A9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),T9=M9,Dt=T9;function I9(e,t,n){t=="__proto__"&&Dt?Dt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Et=I9;function P9(e,t){return e===t||e!==e&&t!==t}var Nt=P9,D9=Et,E9=Nt,N9=Object.prototype,F9=N9.hasOwnProperty;function B9(e,t,n){var a=e[t];(!(F9.call(e,t)&&E9(a,n))||n===void 0&&!(t in e))&&D9(e,t,n)}var B1=B9,O9=Array.isArray,Fe=O9;function R9(e){return e!=null&&typeof e=="object"}var Be=R9,j9=Ye,z9=Be,K9="[object Symbol]";function U9(e){return typeof e=="symbol"||z9(e)&&j9(e)==K9}var O1=U9,V9=Fe,Z9=O1,H9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q9=/^\w*$/;function Y9(e,t){if(V9(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Z9(e)?!0:Q9.test(e)||!H9.test(e)||t!=null&&e in Object(t)}var W9=Y9,G9=Se,X9=G9(Object,"create"),y1=X9,Ft=y1;function J9(){this.__data__=Ft?Ft(null):{},this.size=0}var q9=J9;function ea(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ta=ea,na=y1,aa="__lodash_hash_undefined__",ra=Object.prototype,sa=ra.hasOwnProperty;function oa(e){var t=this.__data__;if(na){var n=t[e];return n===aa?void 0:n}return sa.call(t,e)?t[e]:void 0}var ia=oa,la=y1,ca=Object.prototype,ua=ca.hasOwnProperty;function _a(e){var t=this.__data__;return la?t[e]!==void 0:ua.call(t,e)}var da=_a,ha=y1,$a="__lodash_hash_undefined__";function ya(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ha&&t===void 0?$a:t,this}var pa=ya,ga=q9,ma=ta,fa=ia,Ca=da,va=pa;function Oe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Oe.prototype.clear=ga,Oe.prototype.delete=ma,Oe.prototype.get=fa,Oe.prototype.has=Ca,Oe.prototype.set=va;var ba=Oe;function xa(){this.__data__=[],this.size=0}var La=xa,wa=Nt;function ka(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}var p1=ka,Sa=p1,Aa=Array.prototype,Ma=Aa.splice;function Ta(e){var t=this.__data__,n=Sa(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Ma.call(t,n,1),--this.size,!0}var Ia=Ta,Pa=p1;function Da(e){var t=this.__data__,n=Pa(t,e);return n<0?void 0:t[n][1]}var Ea=Da,Na=p1;function Fa(e){return Na(this.__data__,e)>-1}var Ba=Fa,Oa=p1;function Ra(e,t){var n=this.__data__,a=Oa(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var ja=Ra,za=La,Ka=Ia,Ua=Ea,Va=Ba,Za=ja;function Re(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}Re.prototype.clear=za,Re.prototype.delete=Ka,Re.prototype.get=Ua,Re.prototype.has=Va,Re.prototype.set=Za;var g1=Re,Ha=Se,Qa=ye,Ya=Ha(Qa,"Map"),R1=Ya,Bt=ba,Wa=g1,Ga=R1;function Xa(){this.size=0,this.__data__={hash:new Bt,map:new(Ga||Wa),string:new Bt}}var Ja=Xa;function qa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var er=qa,tr=er;function nr(e,t){var n=e.__data__;return tr(t)?n[typeof t=="string"?"string":"hash"]:n.map}var m1=nr,ar=m1;function rr(e){var t=ar(this,e).delete(e);return this.size-=t?1:0,t}var sr=rr,or=m1;function ir(e){return or(this,e).get(e)}var lr=ir,cr=m1;function ur(e){return cr(this,e).has(e)}var _r=ur,dr=m1;function hr(e,t){var n=dr(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var $r=hr,yr=Ja,pr=sr,gr=lr,mr=_r,fr=$r;function je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}je.prototype.clear=yr,je.prototype.delete=pr,je.prototype.get=gr,je.prototype.has=mr,je.prototype.set=fr;var Ot=je,Rt=Ot,Cr="Expected a function";function j1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cr);var n=function(){var a=arguments,s=t?t.apply(this,a):a[0],r=n.cache;if(r.has(s))return r.get(s);var i=e.apply(this,a);return n.cache=r.set(s,i)||r,i};return n.cache=new(j1.Cache||Rt),n}j1.Cache=Rt;var vr=j1,br=vr,xr=500;function Lr(e){var t=br(e,function(a){return n.size===xr&&n.clear(),a}),n=t.cache;return t}var wr=Lr,kr=wr,Sr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ar=/\\(\\)?/g,Mr=kr(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sr,function(n,a,s,r){t.push(s?r.replace(Ar,"$1"):a||n)}),t}),Tr=Mr;function Ir(e,t){for(var n=-1,a=e==null?0:e.length,s=Array(a);++n<a;)s[n]=t(e[n],n,e);return s}var Pr=Ir,jt=$1,Dr=Pr,Er=Fe,Nr=O1,Fr=1/0,zt=jt?jt.prototype:void 0,Kt=zt?zt.toString:void 0;function Ut(e){if(typeof e=="string")return e;if(Er(e))return Dr(e,Ut)+"";if(Nr(e))return Kt?Kt.call(e):"";var t=e+"";return t=="0"&&1/e==-Fr?"-0":t}var Br=Ut,Or=Br;function Rr(e){return e==null?"":Or(e)}var jr=Rr,zr=Fe,Kr=W9,Ur=Tr,Vr=jr;function Zr(e,t){return zr(e)?e:Kr(e,t)?[e]:Ur(Vr(e))}var Hr=Zr,Qr=9007199254740991,Yr=/^(?:0|[1-9]\d*)$/;function Wr(e,t){var n=typeof e;return t=t??Qr,!!t&&(n=="number"||n!="symbol"&&Yr.test(e))&&e>-1&&e%1==0&&e<t}var Vt=Wr,Gr=O1,Xr=1/0;function Jr(e){if(typeof e=="string"||Gr(e))return e;var t=e+"";return t=="0"&&1/e==-Xr?"-0":t}var qr=Jr,e5=B1,t5=Hr,n5=Vt,Zt=Ne,a5=qr;function r5(e,t,n,a){if(!Zt(e))return e;t=t5(t,e);for(var s=-1,r=t.length,i=r-1,o=e;o!=null&&++s<r;){var c=a5(t[s]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(s!=i){var l=o[c];u=a?a(l,c,o):void 0,u===void 0&&(u=Zt(l)?l:n5(t[s+1])?[]:{})}e5(o,c,u),o=o[c]}return e}var s5=r5,o5=s5;function i5(e,t,n){return e==null?e:o5(e,t,n)}var l5=i5;const z1=Lt(l5);var c5=g1;function u5(){this.__data__=new c5,this.size=0}var _5=u5;function d5(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var h5=d5;function $5(e){return this.__data__.get(e)}var y5=$5;function p5(e){return this.__data__.has(e)}var g5=p5,m5=g1,f5=R1,C5=Ot,v5=200;function b5(e,t){var n=this.__data__;if(n instanceof m5){var a=n.__data__;if(!f5||a.length<v5-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new C5(a)}return n.set(e,t),this.size=n.size,this}var x5=b5,L5=g1,w5=_5,k5=h5,S5=y5,A5=g5,M5=x5;function ze(e){var t=this.__data__=new L5(e);this.size=t.size}ze.prototype.clear=w5,ze.prototype.delete=k5,ze.prototype.get=S5,ze.prototype.has=A5,ze.prototype.set=M5;var T5=ze;function I5(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var P5=I5,D5=B1,E5=Et;function N5(e,t,n,a){var s=!n;n||(n={});for(var r=-1,i=t.length;++r<i;){var o=t[r],c=a?a(n[o],e[o],o,n,e):void 0;c===void 0&&(c=e[o]),s?E5(n,o,c):D5(n,o,c)}return n}var f1=N5;function F5(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var B5=F5,O5=Ye,R5=Be,j5="[object Arguments]";function z5(e){return R5(e)&&O5(e)==j5}var K5=z5,Ht=K5,U5=Be,Qt=Object.prototype,V5=Qt.hasOwnProperty,Z5=Qt.propertyIsEnumerable,H5=Ht(function(){return arguments}())?Ht:function(e){return U5(e)&&V5.call(e,"callee")&&!Z5.call(e,"callee")},Q5=H5,C1={exports:{}};function Y5(){return!1}var W5=Y5;C1.exports,function(e,t){var n=ye,a=W5,s=t&&!t.nodeType&&t,r=s&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===s,o=i?n.Buffer:void 0,c=o?o.isBuffer:void 0,u=c||a;e.exports=u}(C1,C1.exports);var Yt=C1.exports,G5=9007199254740991;function X5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=G5}var Wt=X5,J5=Ye,q5=Wt,es=Be,ts="[object Arguments]",ns="[object Array]",as="[object Boolean]",rs="[object Date]",ss="[object Error]",os="[object Function]",is="[object Map]",ls="[object Number]",cs="[object Object]",us="[object RegExp]",_s="[object Set]",ds="[object String]",hs="[object WeakMap]",$s="[object ArrayBuffer]",ys="[object DataView]",ps="[object Float32Array]",gs="[object Float64Array]",ms="[object Int8Array]",fs="[object Int16Array]",Cs="[object Int32Array]",vs="[object Uint8Array]",bs="[object Uint8ClampedArray]",xs="[object Uint16Array]",Ls="[object Uint32Array]",G={};G[ps]=G[gs]=G[ms]=G[fs]=G[Cs]=G[vs]=G[bs]=G[xs]=G[Ls]=!0,G[ts]=G[ns]=G[$s]=G[as]=G[ys]=G[rs]=G[ss]=G[os]=G[is]=G[ls]=G[cs]=G[us]=G[_s]=G[ds]=G[hs]=!1;function ws(e){return es(e)&&q5(e.length)&&!!G[J5(e)]}var ks=ws;function Ss(e){return function(t){return e(t)}}var K1=Ss,v1={exports:{}};v1.exports,function(e,t){var n=wt,a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,r=s&&s.exports===a,i=r&&n.process,o=function(){try{var c=s&&s.require&&s.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=o}(v1,v1.exports);var U1=v1.exports,As=ks,Ms=K1,Gt=U1,Xt=Gt&&Gt.isTypedArray,Ts=Xt?Ms(Xt):As,Is=Ts,Ps=B5,Ds=Q5,Es=Fe,Ns=Yt,Fs=Vt,Bs=Is,Os=Object.prototype,Rs=Os.hasOwnProperty;function js(e,t){var n=Es(e),a=!n&&Ds(e),s=!n&&!a&&Ns(e),r=!n&&!a&&!s&&Bs(e),i=n||a||s||r,o=i?Ps(e.length,String):[],c=o.length;for(var u in e)(t||Rs.call(e,u))&&!(i&&(u=="length"||s&&(u=="offset"||u=="parent")||r&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fs(u,c)))&&o.push(u);return o}var Jt=js,zs=Object.prototype;function Ks(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zs;return e===n}var V1=Ks;function Us(e,t){return function(n){return e(t(n))}}var qt=Us,Vs=qt,Zs=Vs(Object.keys,Object),Hs=Zs,Qs=V1,Ys=Hs,Ws=Object.prototype,Gs=Ws.hasOwnProperty;function Xs(e){if(!Qs(e))return Ys(e);var t=[];for(var n in Object(e))Gs.call(e,n)&&n!="constructor"&&t.push(n);return t}var Js=Xs,qs=Tt,e2=Wt;function t2(e){return e!=null&&e2(e.length)&&!qs(e)}var en=t2,n2=Jt,a2=Js,r2=en;function s2(e){return r2(e)?n2(e):a2(e)}var Z1=s2,o2=f1,i2=Z1;function l2(e,t){return e&&o2(t,i2(t),e)}var c2=l2;function u2(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _2=u2,d2=Ne,h2=V1,$2=_2,y2=Object.prototype,p2=y2.hasOwnProperty;function g2(e){if(!d2(e))return $2(e);var t=h2(e),n=[];for(var a in e)a=="constructor"&&(t||!p2.call(e,a))||n.push(a);return n}var m2=g2,f2=Jt,C2=m2,v2=en;function b2(e){return v2(e)?f2(e,!0):C2(e)}var H1=b2,x2=f1,L2=H1;function w2(e,t){return e&&x2(t,L2(t),e)}var k2=w2,b1={exports:{}};b1.exports,function(e,t){var n=ye,a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,r=s&&s.exports===a,i=r?n.Buffer:void 0,o=i?i.allocUnsafe:void 0;function c(u,l){if(l)return u.slice();var h=u.length,d=o?o(h):new u.constructor(h);return u.copy(d),d}e.exports=c}(b1,b1.exports);var S2=b1.exports;function A2(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var M2=A2;function T2(e,t){for(var n=-1,a=e==null?0:e.length,s=0,r=[];++n<a;){var i=e[n];t(i,n,e)&&(r[s++]=i)}return r}var I2=T2;function P2(){return[]}var tn=P2,D2=I2,E2=tn,N2=Object.prototype,F2=N2.propertyIsEnumerable,nn=Object.getOwnPropertySymbols,B2=nn?function(e){return e==null?[]:(e=Object(e),D2(nn(e),function(t){return F2.call(e,t)}))}:E2,Q1=B2,O2=f1,R2=Q1;function j2(e,t){return O2(e,R2(e),t)}var z2=j2;function K2(e,t){for(var n=-1,a=t.length,s=e.length;++n<a;)e[s+n]=t[n];return e}var an=K2,U2=qt,V2=U2(Object.getPrototypeOf,Object),rn=V2,Z2=an,H2=rn,Q2=Q1,Y2=tn,W2=Object.getOwnPropertySymbols,G2=W2?function(e){for(var t=[];e;)Z2(t,Q2(e)),e=H2(e);return t}:Y2,sn=G2,X2=f1,J2=sn;function q2(e,t){return X2(e,J2(e),t)}var eo=q2,to=an,no=Fe;function ao(e,t,n){var a=t(e);return no(e)?a:to(a,n(e))}var on=ao,ro=on,so=Q1,oo=Z1;function io(e){return ro(e,oo,so)}var lo=io,co=on,uo=sn,_o=H1;function ho(e){return co(e,_o,uo)}var $o=ho,yo=Se,po=ye,go=yo(po,"DataView"),mo=go,fo=Se,Co=ye,vo=fo(Co,"Promise"),bo=vo,xo=Se,Lo=ye,wo=xo(Lo,"Set"),ko=wo,So=Se,Ao=ye,Mo=So(Ao,"WeakMap"),To=Mo,Y1=mo,W1=R1,G1=bo,X1=ko,J1=To,ln=Ye,Ke=Pt,cn="[object Map]",Io="[object Object]",un="[object Promise]",_n="[object Set]",dn="[object WeakMap]",hn="[object DataView]",Po=Ke(Y1),Do=Ke(W1),Eo=Ke(G1),No=Ke(X1),Fo=Ke(J1),Ae=ln;(Y1&&Ae(new Y1(new ArrayBuffer(1)))!=hn||W1&&Ae(new W1)!=cn||G1&&Ae(G1.resolve())!=un||X1&&Ae(new X1)!=_n||J1&&Ae(new J1)!=dn)&&(Ae=function(e){var t=ln(e),n=t==Io?e.constructor:void 0,a=n?Ke(n):"";if(a)switch(a){case Po:return hn;case Do:return cn;case Eo:return un;case No:return _n;case Fo:return dn}return t});var q1=Ae,Bo=Object.prototype,Oo=Bo.hasOwnProperty;function Ro(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Oo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jo=Ro,zo=ye,Ko=zo.Uint8Array,Uo=Ko,$n=Uo;function Vo(e){var t=new e.constructor(e.byteLength);return new $n(t).set(new $n(e)),t}var et=Vo,Zo=et;function Ho(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Qo=Ho,Yo=/\w*$/;function Wo(e){var t=new e.constructor(e.source,Yo.exec(e));return t.lastIndex=e.lastIndex,t}var Go=Wo,yn=$1,pn=yn?yn.prototype:void 0,gn=pn?pn.valueOf:void 0;function Xo(e){return gn?Object(gn.call(e)):{}}var Jo=Xo,qo=et;function e6(e,t){var n=t?qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var t6=e6,n6=et,a6=Qo,r6=Go,s6=Jo,o6=t6,i6="[object Boolean]",l6="[object Date]",c6="[object Map]",u6="[object Number]",_6="[object RegExp]",d6="[object Set]",h6="[object String]",$6="[object Symbol]",y6="[object ArrayBuffer]",p6="[object DataView]",g6="[object Float32Array]",m6="[object Float64Array]",f6="[object Int8Array]",C6="[object Int16Array]",v6="[object Int32Array]",b6="[object Uint8Array]",x6="[object Uint8ClampedArray]",L6="[object Uint16Array]",w6="[object Uint32Array]";function k6(e,t,n){var a=e.constructor;switch(t){case y6:return n6(e);case i6:case l6:return new a(+e);case p6:return a6(e,n);case g6:case m6:case f6:case C6:case v6:case b6:case x6:case L6:case w6:return o6(e,n);case c6:return new a;case u6:case h6:return new a(e);case _6:return r6(e);case d6:return new a;case $6:return s6(e)}}var S6=k6,A6=Ne,mn=Object.create,M6=function(){function e(){}return function(t){if(!A6(t))return{};if(mn)return mn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),T6=M6,I6=T6,P6=rn,D6=V1;function E6(e){return typeof e.constructor=="function"&&!D6(e)?I6(P6(e)):{}}var N6=E6,F6=q1,B6=Be,O6="[object Map]";function R6(e){return B6(e)&&F6(e)==O6}var j6=R6,z6=j6,K6=K1,fn=U1,Cn=fn&&fn.isMap,U6=Cn?K6(Cn):z6,V6=U6,Z6=q1,H6=Be,Q6="[object Set]";function Y6(e){return H6(e)&&Z6(e)==Q6}var W6=Y6,G6=W6,X6=K1,vn=U1,bn=vn&&vn.isSet,J6=bn?X6(bn):G6,q6=J6,e3=T5,t3=P5,n3=B1,a3=c2,r3=k2,s3=S2,o3=M2,i3=z2,l3=eo,c3=lo,u3=$o,_3=q1,d3=jo,h3=S6,$3=N6,y3=Fe,p3=Yt,g3=V6,m3=Ne,f3=q6,C3=Z1,v3=H1,b3=1,x3=2,L3=4,xn="[object Arguments]",w3="[object Array]",k3="[object Boolean]",S3="[object Date]",A3="[object Error]",Ln="[object Function]",M3="[object GeneratorFunction]",T3="[object Map]",I3="[object Number]",wn="[object Object]",P3="[object RegExp]",D3="[object Set]",E3="[object String]",N3="[object Symbol]",F3="[object WeakMap]",B3="[object ArrayBuffer]",O3="[object DataView]",R3="[object Float32Array]",j3="[object Float64Array]",z3="[object Int8Array]",K3="[object Int16Array]",U3="[object Int32Array]",V3="[object Uint8Array]",Z3="[object Uint8ClampedArray]",H3="[object Uint16Array]",Q3="[object Uint32Array]",Q={};Q[xn]=Q[w3]=Q[B3]=Q[O3]=Q[k3]=Q[S3]=Q[R3]=Q[j3]=Q[z3]=Q[K3]=Q[U3]=Q[T3]=Q[I3]=Q[wn]=Q[P3]=Q[D3]=Q[E3]=Q[N3]=Q[V3]=Q[Z3]=Q[H3]=Q[Q3]=!0,Q[A3]=Q[Ln]=Q[F3]=!1;function x1(e,t,n,a,s,r){var i,o=t&b3,c=t&x3,u=t&L3;if(n&&(i=s?n(e,a,s,r):n(e)),i!==void 0)return i;if(!m3(e))return e;var l=y3(e);if(l){if(i=d3(e),!o)return o3(e,i)}else{var h=_3(e),d=h==Ln||h==M3;if(p3(e))return s3(e,o);if(h==wn||h==xn||d&&!s){if(i=c||d?{}:$3(e),!o)return c?l3(e,r3(i,e)):i3(e,a3(i,e))}else{if(!Q[h])return s?e:{};i=h3(e,h,o)}}r||(r=new e3);var b=r.get(e);if(b)return b;r.set(e,i),f3(e)?e.forEach(function(L){i.add(x1(L,t,n,L,e,r))}):g3(e)&&e.forEach(function(L,I){i.set(I,x1(L,t,n,I,e,r))});var k=u?c?u3:c3:c?v3:C3,D=l?void 0:k(e);return t3(D||e,function(L,I){D&&(I=L,L=e[I]),n3(i,I,x1(L,t,n,I,e,r))}),i}var Y3=x1,W3=Y3,G3=1,X3=4;function J3(e){return W3(e,G3|X3)}var q3=J3;const ei=Lt(q3),ti=y("<button></button>"),ni=e=>(()=>{const t=ti.cloneNode(!0);return xe(t,"click",e.onClick,!0),p(t,()=>e.children),N(n=>{const a=e.style,s=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return n._v$=De(t,a,n._v$),s!==n._v$2&&ue(t,n._v$2=s),n},{_v$:void 0,_v$2:void 0}),t})();re(["click"]);const ai=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"></path></svg>'),ri=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"></path></svg>'),si=y("<div></div>"),oi=y('<span class="label"></span>'),ii=()=>ai.cloneNode(!0),li=()=>ri.cloneNode(!0),L1=e=>{const[t,n]=C(e.checked??!1);return fe(()=>{"checked"in e&&n(e.checked)}),(()=>{const a=si.cloneNode(!0);return a.$$click=s=>{const r=!t();e.onChange&&e.onChange(r),n(r)},p(a,(()=>{const s=Z(()=>!!t());return()=>s()?g(ii,{}):g(li,{})})(),null),p(a,(()=>{const s=Z(()=>!!e.label);return()=>s()&&(()=>{const r=oi.cloneNode(!0);return p(r,()=>e.label),r})()})(),null),N(s=>{const r=e.style,i=`klinecharts-pro-checkbox ${t()&&"checked"||""} ${e.class||""}`;return s._v$=De(a,r,s._v$),i!==s._v$2&&ue(a,s._v$2=i),s},{_v$:void 0,_v$2:void 0}),a})()};re(["click"]);const ci=y('<div class="klinecharts-pro-loading"><i class="circle1"></i><i class="circle2"></i><i class="circle3"></i></div>'),kn=()=>ci.cloneNode(!0),ui=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"></path></svg></div>'),_i=()=>ui.cloneNode(!0),di=y("<ul></ul>"),hi=y("<li></li>"),We=e=>(()=>{const t=di.cloneNode(!0);return p(t,g(J,{get when(){return e.loading},get children(){return g(kn,{})}}),null),p(t,g(J,{get when(){var n;return!e.loading&&!e.children&&!((n=e.dataSource)!=null&&n.length)},get children(){return g(_i,{})}}),null),p(t,g(J,{get when(){return e.children},get children(){return e.children}}),null),p(t,g(J,{get when(){return!e.children},get children(){var n;return(n=e.dataSource)==null?void 0:n.map(a=>{var s;return((s=e.renderItem)==null?void 0:s.call(e,a))??hi.cloneNode(!0)})}}),null),N(n=>{const a=e.style,s=`klinecharts-pro-list ${e.class??""}`;return n._v$=De(t,a,n._v$),s!==n._v$2&&ue(t,n._v$2=s),n},{_v$:void 0,_v$2:void 0}),t})(),$i=y('<div class="klinecharts-pro-modal" role="dialog" aria-modal="true" aria-labelledby="modal-title"><div class="inner"><div class="title-container"><span id="modal-title"></span><svg class="close-icon" viewBox="0 0 1024 1024" role="button" aria-label="Close" tabIndex="0"><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"></div></div></div>'),yi=y('<div class="button-container"></div>'),Le=e=>{let t,n=null;const a=r=>{var i;if(r.key==="Escape"){r.preventDefault(),(i=e.onClose)==null||i.call(e);return}if(r.key==="Tab"&&t){const o=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(o.length===0)return;const c=o[0],u=o[o.length-1];r.shiftKey?document.activeElement===c&&(r.preventDefault(),u.focus()):document.activeElement===u&&(r.preventDefault(),c.focus())}},s=r=>{var i;r.target===r.currentTarget&&((i=e.onClose)==null||i.call(e))};return He(()=>{if(n=document.activeElement,document.addEventListener("keydown",a),t){const r=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');r==null||r.focus()}}),Ie(()=>{document.removeEventListener("keydown",a),n&&n instanceof HTMLElement&&n.focus()}),(()=>{const r=$i.cloneNode(!0),i=r.firstChild,o=i.firstChild,c=o.firstChild,u=c.nextSibling,l=o.nextSibling;r.$$click=s;const h=t;return typeof h=="function"?_1(h,i):t=i,p(c,()=>e.title),u.$$keydown=d=>{var b;(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),(b=e.onClose)==null||b.call(e))},xe(u,"click",e.onClose,!0),p(l,()=>e.children),p(i,(()=>{const d=Z(()=>!!(e.buttons&&e.buttons.length>0));return()=>d()&&(()=>{const b=yi.cloneNode(!0);return p(b,()=>e.buttons.map(k=>g(ni,vt(k,{get children(){return k.children}})))),b})()})(),null),N(()=>i.style.setProperty("width",`${e.width??400}px`)),r})()};re(["click","keydown"]);const pi=y('<div tabindex="0"><div class="selector-container"><span class="value"></span><i class="arrow"></i></div></div>'),gi=y('<div class="drop-down-container"><ul></ul></div>'),mi=y("<li></li>"),Sn=e=>{const[t,n]=C(!1);return(()=>{const a=pi.cloneNode(!0),s=a.firstChild,r=s.firstChild;return a.addEventListener("blur",i=>{n(!1)}),a.$$click=i=>{n(o=>!o)},p(r,()=>e.value),p(a,(()=>{const i=Z(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>i()&&(()=>{const o=gi.cloneNode(!0),c=o.firstChild;return p(c,()=>e.dataSource.map(u=>{const h=u[e.valueKey??"text"]??u;return(()=>{const d=mi.cloneNode(!0);return d.$$click=b=>{var k;b.stopPropagation(),e.value!==h&&((k=e.onSelected)==null||k.call(e,u)),n(!1)},p(d,h),d})()})),o})()})(),null),N(i=>{const o=e.style,c=`klinecharts-pro-select ${e.class??""} ${t()?"klinecharts-pro-select-show":""}`;return i._v$=De(a,o,i._v$),c!==i._v$2&&ue(a,i._v$2=c),i},{_v$:void 0,_v$2:void 0}),a})()};re(["click"]);const fi=y('<span class="prefix"></span>'),Ci=y('<span class="suffix"></span>'),vi=y('<div><input class="value"></div>'),An=e=>{const t=vt({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let n;const[a,s]=C("normal");return(()=>{const r=vi.cloneNode(!0),i=r.firstChild;return r.$$click=()=>{n==null||n.focus()},p(r,g(J,{get when(){return t.prefix},get children(){const o=fi.cloneNode(!0);return p(o,()=>t.prefix),o}}),i),i.addEventListener("change",o=>{var u,l;const c=o.target.value;if("precision"in t){let h;const d=Math.max(0,Math.floor(t.precision));d<=0?h=new RegExp(/^[1-9]\d*$/):h=new RegExp("^\\d+\\.?\\d{0,"+d+"}$"),(c===""||h.test(c)&&+c>=t.min&&+c<=t.max)&&((u=t.onChange)==null||u.call(t,c===""?c:+c))}else(l=t.onChange)==null||l.call(t,c)}),i.addEventListener("blur",()=>{s("normal")}),i.addEventListener("focus",()=>{s("focus")}),_1(o=>{n=o},i),p(r,g(J,{get when(){return t.suffix},get children(){const o=Ci.cloneNode(!0);return p(o,()=>t.suffix),o}}),null),N(o=>{const c=t.style,u=`klinecharts-pro-input ${t.class??""}`,l=a(),h=t.placeholder??"";return o._v$=De(r,c,o._v$),u!==o._v$2&&ue(r,o._v$2=u),l!==o._v$3&&se(r,"data-status",o._v$3=l),h!==o._v$4&&se(i,"placeholder",o._v$4=h),o},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),N(()=>i.value=t.value),r})()};re(["click"]);const bi=y('<div><i class="thumb"></i></div>'),xi=e=>(()=>{const t=bi.cloneNode(!0);return t.$$click=n=>{e.onChange&&e.onChange()},N(n=>{const a=e.style,s=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return n._v$=De(t,a,n._v$),s!==n._v$2&&ue(t,n._v$2=s),n},{_v$:void 0,_v$2:void 0}),t})();re(["click"]);const Mn={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"蜡烛图",candle_stroke:"空心蜡烛",candle_up_stroke:"阳线空心",candle_down_stroke:"阴线空心",ohlc:"OHLC柱",area:"面积图",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",restore_default:"恢复默认",error_loading_data:"数据加载失败",retry:"重试",alert:"警报",create_alert:"创建警报",price_alert:"价格警报",crosses_above:"上穿",crosses_below:"下穿",reaches:"到达",alert_triggered:"警报触发",comparison:"比较",add_symbol:"添加商品",remove_symbol:"删除商品",performance:"性能",undo:"撤销",redo:"重做",export_drawings:"导出绘图",import_drawings:"导入绘图",long_position:"做多仓位",short_position:"做空仓位",frvp:"成交量分布 (FRVP)",measure:"测量工具",price_range:"价格范围",text_note:"文字注释",anchored_vwap:"锚定VWAP",price_label:"价格标签",replay:"回放",play:"播放",pause:"暂停",step_forward:"前进一步",step_backward:"后退一步",speed:"速度",exit_replay:"退出回放",object_tree:"对象列表",no_overlays:"图表上没有绘图",templates:"模板",save_template:"保存模板",load_template:"加载模板",delete_template:"删除模板",style_editor:"样式编辑器",line_color:"线条颜色",line_width:"线条宽度",line_style:"线条样式",fill_color:"填充颜色",apply:"应用",edit_style:"编辑样式",delete:"删除",hide:"隐藏",show:"显示",keyboard_shortcuts:"快捷键",use_current_data:"使用当前数据",load_custom_data:"加载自定义数据",chart_type:"图表类型"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candles",candle_stroke:"Hollow Candles",candle_up_stroke:"Up Hollow",candle_down_stroke:"Down Hollow",ohlc:"OHLC Bars",area:"Area",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults",error_loading_data:"Failed to load data",retry:"Retry",alert:"Alert",create_alert:"Create Alert",price_alert:"Price Alert",crosses_above:"Crosses Above",crosses_below:"Crosses Below",reaches:"Reaches",alert_triggered:"Alert Triggered",comparison:"Comparison",add_symbol:"Add Symbol",remove_symbol:"Remove Symbol",performance:"Performance",undo:"Undo",redo:"Redo",export_drawings:"Export Drawings",import_drawings:"Import Drawings",long_position:"Long Position",short_position:"Short Position",frvp:"Volume Profile (FRVP)",measure:"Measure",price_range:"Price Range",text_note:"Text Note",anchored_vwap:"Anchored VWAP",price_label:"Price Label",replay:"Replay",play:"Play",pause:"Pause",step_forward:"Step Forward",step_backward:"Step Backward",speed:"Speed",exit_replay:"Exit Replay",object_tree:"Object Tree",no_overlays:"No drawings on chart",templates:"Templates",save_template:"Save Template",load_template:"Load Template",delete_template:"Delete Template",style_editor:"Style Editor",line_color:"Line Color",line_width:"Line Width",line_style:"Line Style",fill_color:"Fill Color",apply:"Apply",edit_style:"Edit Style",delete:"Delete",hide:"Hide",show:"Show",keyboard_shortcuts:"Keyboard Shortcuts",use_current_data:"Use Current Data",load_custom_data:"Load Custom Data",chart_type:"Chart Type"},"id-ID":{indicator:"Indikator",main_indicator:"Indikator Utama",sub_indicator:"Sub Indikator",setting:"Pengaturan",timezone:"Zona Waktu",screenshot:"Tangkapan Layar",full_screen:"Layar Penuh",exit_full_screen:"Keluar",save:"Simpan",confirm:"Konfirmasi",cancel:"Batal",ma:"MA (Rata-rata Bergerak)",ema:"EMA (Rata-rata Bergerak Eksponensial)",sma:"SMA",boll:"BOLL (Bollinger Bands)",bbi:"BBI (Bull And Bear Index)",sar:"SAR (Stop and Reverse)",vol:"VOL (Volume)",macd:"MACD (Moving Average Convergence/Divergence)",kdj:"KDJ (Indeks KDJ)",rsi:"RSI (Indeks Kekuatan Relatif)",bias:"BIAS (Rasio Bias)",brar:"BRAR (Indikator Sentimen)",cci:"CCI (Indeks Saluran Komoditas)",dmi:"DMI (Indeks Pergerakan Arah)",cr:"CR (Indikator Energi)",psy:"PSY (Garis Psikologis)",dma:"DMA (Selisih Rata-rata Bergerak)",trix:"TRIX (Triple Exponentially Smoothed Moving Average)",obv:"OBV (On Balance Volume)",vr:"VR (Rasio Volume Volatilitas)",wr:"WR (Williams %R)",mtm:"MTM (Indeks Momentum)",emv:"EMV (Ease of Movement Value)",roc:"ROC (Laju Perubahan Harga)",pvt:"PVT (Tren Harga dan Volume)",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:"Garis Horizontal",horizontal_ray_line:"Sinar Horizontal",horizontal_segment:"Segmen Horizontal",vertical_straight_line:"Garis Vertikal",vertical_ray_line:"Sinar Vertikal",vertical_segment:"Segmen Vertikal",straight_line:"Garis Tren",ray_line:"Sinar",segment:"Segmen",arrow:"Panah",price_line:"Garis Harga",price_channel_line:"Garis Saluran Harga",parallel_straight_line:"Garis Paralel",fibonacci_line:"Garis Fibonacci",fibonacci_segment:"Segmen Fibonacci",fibonacci_circle:"Lingkaran Fibonacci",fibonacci_spiral:"Spiral Fibonacci",fibonacci_speed_resistance_fan:"Sektor Fibonacci",fibonacci_extension:"Ekstensi Fibonacci",gann_box:"Kotak Gann",rect:"Persegi Panjang",parallelogram:"Jajar Genjang",circle:"Lingkaran",triangle:"Segitiga",three_waves:"Tiga Gelombang",five_waves:"Lima Gelombang",eight_waves:"Delapan Gelombang",any_waves:"Gelombang Bebas",abcd:"Pola ABCD",xabcd:"Pola XABCD",weak_magnet:"Magnet Lemah",strong_magnet:"Magnet Kuat",symbol_search:"Cari Simbol",symbol_code:"Kode Simbol",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Periode",standard_deviation:"Deviasi Standar",candle_type:"Tipe Candlestick",candle_solid:"Candlestick",candle_stroke:"Candle Kosong",candle_up_stroke:"Naik Kosong",candle_down_stroke:"Turun Kosong",ohlc:"OHLC Bar",area:"Area",last_price_show:"Tampilkan Harga Terakhir",high_price_show:"Tampilkan Harga Tertinggi",low_price_show:"Tampilkan Harga Terendah",indicator_last_value_show:"Tampilkan Nilai Terakhir Indikator",price_axis_type:"Tipe Sumbu Harga",normal:"Normal",percentage:"Persentase",log:"Logaritma",reverse_coordinate:"Koordinat Terbalik",grid_show:"Tampilkan Grid",restore_default:"Kembalikan Default",error_loading_data:"Gagal memuat data",retry:"Coba Lagi",alert:"Peringatan",create_alert:"Buat Peringatan",price_alert:"Peringatan Harga",crosses_above:"Melewati Atas",crosses_below:"Melewati Bawah",reaches:"Mencapai",alert_triggered:"Peringatan Terpicu",comparison:"Perbandingan",add_symbol:"Tambah Simbol",remove_symbol:"Hapus Simbol",performance:"Performa",undo:"Urungkan",redo:"Ulangi",export_drawings:"Ekspor Gambar",import_drawings:"Impor Gambar",long_position:"Posisi Long",short_position:"Posisi Short",frvp:"Profil Volume (FRVP)",measure:"Pengukuran",price_range:"Rentang Harga",text_note:"Catatan Teks",anchored_vwap:"VWAP Berlabuh",price_label:"Label Harga",replay:"Putar Ulang",play:"Putar",pause:"Jeda",step_forward:"Maju Satu",step_backward:"Mundur Satu",speed:"Kecepatan",exit_replay:"Keluar Putar Ulang",object_tree:"Daftar Objek",no_overlays:"Tidak ada gambar di chart",templates:"Template",save_template:"Simpan Template",load_template:"Muat Template",delete_template:"Hapus Template",style_editor:"Editor Gaya",line_color:"Warna Garis",line_width:"Lebar Garis",line_style:"Gaya Garis",fill_color:"Warna Isi",apply:"Terapkan",edit_style:"Edit Gaya",delete:"Hapus",hide:"Sembunyikan",show:"Tampilkan",keyboard_shortcuts:"Pintasan Keyboard",use_current_data:"Gunakan Data Saat Ini",load_custom_data:"Muat Data Khusus",chart_type:"Jenis Grafik"},"ja-JP":{indicator:"インジケーター",main_indicator:"メインインジケーター",sub_indicator:"サブインジケーター",setting:"設定",timezone:"タイムゾーン",screenshot:"スクリーンショット",full_screen:"全画面",exit_full_screen:"終了",save:"保存",confirm:"確認",cancel:"キャンセル",ma:"MA(移動平均)",ema:"EMA(指数移動平均)",sma:"SMA",boll:"BOLL(ボリンジャーバンド)",bbi:"BBI(ブルベアインデックス)",sar:"SAR(ストップアンドリバース)",vol:"VOL(出来高)",macd:"MACD(移動平均収束拡散)",kdj:"KDJ(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(ウィリアムズ%R)",mtm:"MTM(モメンタム指数)",emv:"EMV(イーズオブムーブメント)",roc:"ROC(変化率)",pvt:"PVT(価格出来高トレンド)",ao:"AO(オーサムオシレーター)",utc:"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:"3波動",five_waves:"5波動",eight_waves:"8波動",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:"エリア",last_price_show:"最終価格を表示",high_price_show:"最高価格を表示",low_price_show:"最安価格を表示",indicator_last_value_show:"インジケーターの最終値を表示",price_axis_type:"価格軸タイプ",normal:"通常",percentage:"パーセンテージ",log:"対数",reverse_coordinate:"座標反転",grid_show:"グリッド表示",restore_default:"デフォルトに戻す",error_loading_data:"データの読み込みに失敗しました",retry:"再試行",alert:"アラート",create_alert:"アラート作成",price_alert:"価格アラート",crosses_above:"上抜け",crosses_below:"下抜け",reaches:"到達",alert_triggered:"アラート発動",comparison:"比較",add_symbol:"銘柄追加",remove_symbol:"銘柄削除",performance:"パフォーマンス",undo:"元に戻す",redo:"やり直す",export_drawings:"描画エクスポート",import_drawings:"描画インポート",long_position:"ロングポジション",short_position:"ショートポジション",frvp:"出来高プロファイル (FRVP)",measure:"計測ツール",price_range:"価格レンジ",text_note:"テキストメモ",anchored_vwap:"アンカーVWAP",price_label:"価格ラベル",replay:"リプレイ",play:"再生",pause:"一時停止",step_forward:"次のバー",step_backward:"前のバー",speed:"速度",exit_replay:"リプレイ終了",object_tree:"オブジェクトツリー",no_overlays:"チャートに描画がありません",templates:"テンプレート",save_template:"テンプレート保存",load_template:"テンプレート読込",delete_template:"テンプレート削除",style_editor:"スタイル編集",line_color:"線の色",line_width:"線の太さ",line_style:"線のスタイル",fill_color:"塗りつぶし色",apply:"適用",edit_style:"スタイル編集",delete:"削除",hide:"非表示",show:"表示",keyboard_shortcuts:"キーボードショートカット",use_current_data:"現在のデータを使用",load_custom_data:"カスタムデータを読込",chart_type:"チャートタイプ"},"ko-KR":{indicator:"지표",main_indicator:"메인 지표",sub_indicator:"보조 지표",setting:"설정",timezone:"시간대",screenshot:"스크린샷",full_screen:"전체 화면",exit_full_screen:"나가기",save:"저장",confirm:"확인",cancel:"취소",ma:"MA (이동 평균)",ema:"EMA (지수 이동 평균)",sma:"SMA",boll:"BOLL (볼린저 밴드)",bbi:"BBI (불베어 인덱스)",sar:"SAR (스탑 앤 리버스)",vol:"VOL (거래량)",macd:"MACD (이동 평균 수렴/발산)",kdj:"KDJ (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 (윌리엄스 %R)",mtm:"MTM (모멘텀 지수)",emv:"EMV (이동 용이성)",roc:"ROC (가격 변화율)",pvt:"PVT (가격 거래량 추세)",ao:"AO (오썸 오실레이터)",utc:"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:"3파동",five_waves:"5파동",eight_waves:"8파동",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:"영역",last_price_show:"마지막 가격 표시",high_price_show:"최고가 표시",low_price_show:"최저가 표시",indicator_last_value_show:"지표 마지막 값 표시",price_axis_type:"가격 축 유형",normal:"일반",percentage:"퍼센트",log:"로그",reverse_coordinate:"좌표 반전",grid_show:"그리드 표시",restore_default:"기본값 복원",error_loading_data:"데이터 로딩 실패",retry:"재시도",alert:"알림",create_alert:"알림 생성",price_alert:"가격 알림",crosses_above:"상향 돌파",crosses_below:"하향 돌파",reaches:"도달",alert_triggered:"알림 발동",comparison:"비교",add_symbol:"종목 추가",remove_symbol:"종목 삭제",performance:"성능",undo:"실행 취소",redo:"다시 실행",export_drawings:"그리기 내보내기",import_drawings:"그리기 가져오기",long_position:"롱 포지션",short_position:"숏 포지션",frvp:"거래량 프로파일 (FRVP)",measure:"측정 도구",price_range:"가격 범위",text_note:"텍스트 메모",anchored_vwap:"앵커 VWAP",price_label:"가격 라벨",replay:"리플레이",play:"재생",pause:"일시정지",step_forward:"다음 봉",step_backward:"이전 봉",speed:"속도",exit_replay:"리플레이 종료",object_tree:"객체 트리",no_overlays:"차트에 그리기가 없습니다",templates:"템플릿",save_template:"템플릿 저장",load_template:"템플릿 불러오기",delete_template:"템플릿 삭제",style_editor:"스타일 편집기",line_color:"선 색상",line_width:"선 굵기",line_style:"선 스타일",fill_color:"채우기 색상",apply:"적용",edit_style:"스타일 편집",delete:"삭제",hide:"숨기기",show:"보이기",keyboard_shortcuts:"키보드 단축키",use_current_data:"현재 데이터 사용",load_custom_data:"맞춤 데이터 불러오기",chart_type:"차트 유형"}};function Li(e,t){Mn[e]=t}const _=(e,t)=>{var n;return((n=Mn[t])==null?void 0:n[e])??e},wi=y('<img alt="symbol">'),ki=y('<div class="symbol"><span></span></div>'),Si=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 chart-type-selector"><select class="chart-type-select"><option value="candle_solid"></option><option value="candle_stroke"></option><option value="candle_up_stroke"></option><option value="candle_down_stroke"></option><option value="ohlc"></option><option value="area"></option></select></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z"></path></svg><span></span></div><div class="item tools"><svg width="20" height="20" viewBox="0 0 20 20"><path d="M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z"></path><path d="M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z"></path><path d="M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z"></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z"></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z"></path></svg><span></span></div><div class="item tools"></div></div>'),tt=y("<span></span>"),Ai=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"></path></svg>'),Mi=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"></path></svg>'),Ti=e=>{let t;const[n,a]=C(!1),s=()=>{a(r=>!r)};return He(()=>{document.addEventListener("fullscreenchange",s),document.addEventListener("mozfullscreenchange",s),document.addEventListener("webkitfullscreenchange",s),document.addEventListener("msfullscreenchange",s)}),Ie(()=>{document.removeEventListener("fullscreenchange",s),document.removeEventListener("mozfullscreenchange",s),document.removeEventListener("webkitfullscreenchange",s),document.removeEventListener("msfullscreenchange",s)}),(()=>{const r=Si.cloneNode(!0),i=r.firstChild,o=i.firstChild,c=i.nextSibling,u=c.firstChild,l=u.firstChild,h=l.nextSibling,d=h.nextSibling,b=d.nextSibling,k=b.nextSibling,D=k.nextSibling,L=c.nextSibling,I=L.firstChild,A=I.nextSibling,P=L.nextSibling,z=P.firstChild,O=z.nextSibling,Y=P.nextSibling,K=Y.firstChild,U=K.nextSibling,M=Y.nextSibling,F=M.firstChild,B=F.nextSibling,ee=M.nextSibling;return _1(f=>{t=f},r),xe(o,"click",e.onMenuClick,!0),p(r,g(J,{get when(){return e.symbol},get children(){const f=ki.cloneNode(!0),T=f.firstChild;return xe(f,"click",e.onSymbolClick,!0),p(f,g(J,{get when(){return e.symbol.logo},get children(){const H=wi.cloneNode(!0);return N(()=>se(H,"src",e.symbol.logo)),H}}),T),p(T,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),f}}),c),p(r,()=>e.periods.map(f=>(()=>{const T=tt.cloneNode(!0);return T.$$click=()=>{e.onPeriodChange(f)},p(T,()=>f.text),N(()=>ue(T,`item period ${f.text===e.period.text?"selected":""}`)),T})()),c),u.addEventListener("change",f=>{var T;return(T=e.onChartTypeChange)==null?void 0:T.call(e,f.target.value)}),p(l,()=>_("candle_solid",e.locale)),p(h,()=>_("candle_stroke",e.locale)),p(d,()=>_("candle_up_stroke",e.locale)),p(b,()=>_("candle_down_stroke",e.locale)),p(k,()=>_("ohlc",e.locale)),p(D,()=>_("area",e.locale)),xe(L,"click",e.onIndicatorClick,!0),p(A,()=>_("indicator",e.locale)),xe(P,"click",e.onTimezoneClick,!0),p(O,()=>_("timezone",e.locale)),xe(Y,"click",e.onSettingClick,!0),p(U,()=>_("setting",e.locale)),xe(M,"click",e.onScreenshotClick,!0),p(B,()=>_("screenshot",e.locale)),ee.$$click=()=>{if(n())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const f=t==null?void 0:t.parentElement;f&&(f.requestFullscreen??f.webkitRequestFullscreen??f.mozRequestFullScreen??f.msRequestFullscreen).call(f)}},p(ee,(()=>{const f=Z(()=>!!n());return()=>f()?[Ai.cloneNode(!0),(()=>{const T=tt.cloneNode(!0);return p(T,()=>_("exit_full_screen",e.locale)),T})()]:[Mi.cloneNode(!0),(()=>{const T=tt.cloneNode(!0);return p(T,()=>_("full_screen",e.locale)),T})()]})()),N(()=>se(o,"class",e.spread?"":"rotate")),N(()=>u.value=e.chartType??"candle_solid"),r})()};re(["click"]);const Ii=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"></path></svg>'),Pi=()=>Ii.cloneNode(!0),Di=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"></path></svg>'),Ei=()=>Di.cloneNode(!0),Ni=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"></path></svg>'),Fi=()=>Ni.cloneNode(!0),Bi=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"></path></svg>'),Oi=()=>Bi.cloneNode(!0),Ri=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"></path></svg>'),ji=()=>Ri.cloneNode(!0),zi=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"></path></svg>'),Ki=()=>zi.cloneNode(!0),Ui=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"></path></svg>'),Vi=()=>Ui.cloneNode(!0),Zi=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"></path></svg>'),Hi=()=>Zi.cloneNode(!0),Qi=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"></path></svg>'),nt=()=>Qi.cloneNode(!0),Yi=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"></path></svg>'),Tn=()=>Yi.cloneNode(!0),Wi=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"></path></svg>'),In=()=>Wi.cloneNode(!0),Gi=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"></path></svg>'),Xi=()=>Gi.cloneNode(!0),Ji=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"></path></svg>'),qi=()=>Ji.cloneNode(!0),e8=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"></path></svg>'),t8=()=>e8.cloneNode(!0),n8=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"></path></svg>'),a8=()=>n8.cloneNode(!0),r8=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"></ellipse></svg>'),s8=()=>r8.cloneNode(!0),o8=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"></path></svg>'),i8=()=>o8.cloneNode(!0),l8=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"></path></svg>'),c8=()=>l8.cloneNode(!0),u8=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"></path></svg>'),_8=()=>u8.cloneNode(!0),d8=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"></path></svg>'),h8=()=>d8.cloneNode(!0),$8=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"></ellipse></svg>'),y8=()=>$8.cloneNode(!0),p8=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"></path></svg>'),g8=()=>p8.cloneNode(!0),m8=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"></path></svg>'),Ge=()=>m8.cloneNode(!0),f8=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"></path></svg>'),C8=()=>f8.cloneNode(!0),v8=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"></path></svg>'),b8=()=>v8.cloneNode(!0),x8=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"></path></svg>'),L8=()=>x8.cloneNode(!0),w8=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"></path></svg>'),k8=()=>w8.cloneNode(!0),S8=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"></path></svg>'),A8=()=>S8.cloneNode(!0),M8=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"></path></svg>'),T8=()=>M8.cloneNode(!0),I8=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"></path></svg>'),P8=()=>I8.cloneNode(!0),D8=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"></path></svg>'),E8=e=>(()=>{const t=D8.cloneNode(!0);return se(t,"class",`icon-overlay ${e??""}`),t})(),N8=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"></path></g></svg>'),F8=e=>(()=>{const t=N8.cloneNode(!0);return se(t,"class",`icon-overlay ${e??""}`),t})(),B8=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"></path></svg>'),O8=()=>B8.cloneNode(!0),R8=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"></path></svg>'),j8=()=>R8.cloneNode(!0),z8=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"></path></g></svg>'),K8=()=>z8.cloneNode(!0),U8=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"></path></g></svg>'),V8=()=>U8.cloneNode(!0),Z8=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"></path></svg>'),H8={horizontalStraightLine:Pi,horizontalRayLine:Ei,horizontalSegment:Fi,verticalStraightLine:Oi,verticalRayLine:ji,verticalSegment:Ki,straightLine:Vi,rayLine:Hi,segment:nt,arrow:Tn,priceLine:In,priceChannelLine:Xi,parallelStraightLine:qi,fibonacciLine:t8,fibonacciSegment:a8,fibonacciCircle:s8,fibonacciSpiral:i8,fibonacciSpeedResistanceFan:c8,fibonacciExtension:_8,gannBox:h8,circle:y8,triangle:g8,rect:Ge,parallelogram:C8,threeWaves:b8,fiveWaves:L8,eightWaves:k8,anyWaves:A8,abcd:T8,xabcd:P8,weak_magnet:E8,strong_magnet:F8,lock:K8,unlock:V8,visible:O8,invisible:j8,remove:()=>Z8.cloneNode(!0),longPosition:Ge,shortPosition:Ge,frvp:Ge,measure:nt,priceRange:Ge,textNote:Tn,anchoredVwap:nt,priceLabel:In};function Q8(e){return[{key:"horizontalStraightLine",text:_("horizontal_straight_line",e)},{key:"horizontalRayLine",text:_("horizontal_ray_line",e)},{key:"horizontalSegment",text:_("horizontal_segment",e)},{key:"verticalStraightLine",text:_("vertical_straight_line",e)},{key:"verticalRayLine",text:_("vertical_ray_line",e)},{key:"verticalSegment",text:_("vertical_segment",e)},{key:"straightLine",text:_("straight_line",e)},{key:"rayLine",text:_("ray_line",e)},{key:"segment",text:_("segment",e)},{key:"arrow",text:_("arrow",e)},{key:"priceLine",text:_("price_line",e)}]}function Y8(e){return[{key:"priceChannelLine",text:_("price_channel_line",e)},{key:"parallelStraightLine",text:_("parallel_straight_line",e)}]}function W8(e){return[{key:"circle",text:_("circle",e)},{key:"rect",text:_("rect",e)},{key:"parallelogram",text:_("parallelogram",e)},{key:"triangle",text:_("triangle",e)}]}function G8(e){return[{key:"fibonacciLine",text:_("fibonacci_line",e)},{key:"fibonacciSegment",text:_("fibonacci_segment",e)},{key:"fibonacciCircle",text:_("fibonacci_circle",e)},{key:"fibonacciSpiral",text:_("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:_("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:_("fibonacci_extension",e)},{key:"gannBox",text:_("gann_box",e)}]}function X8(e){return[{key:"xabcd",text:_("xabcd",e)},{key:"abcd",text:_("abcd",e)},{key:"threeWaves",text:_("three_waves",e)},{key:"fiveWaves",text:_("five_waves",e)},{key:"eightWaves",text:_("eight_waves",e)},{key:"anyWaves",text:_("any_waves",e)}]}function J8(e){return[{key:"weak_magnet",text:_("weak_magnet",e)},{key:"strong_magnet",text:_("strong_magnet",e)}]}function q8(e){return[{key:"longPosition",text:_("long_position",e)},{key:"shortPosition",text:_("short_position",e)},{key:"measure",text:_("measure",e)}]}function e7(e){return[{key:"frvp",text:_("frvp",e)},{key:"priceRange",text:_("price_range",e)},{key:"textNote",text:_("text_note",e)},{key:"anchoredVwap",text:_("anchored_vwap",e)},{key:"priceLabel",text:_("price_label",e)}]}const _e=e=>{const t=H8[e.name];return t?t(e.class):null};class t7{constructor(){S(this,"_customIndicators",[]);S(this,"_customOverlays",[]);S(this,"_listeners",[])}addIndicator(t){this._customIndicators.find(n=>n.name===t.name)||(this._customIndicators.push(t),this._notify())}addOverlay(t){this._customOverlays.find(n=>n.name===t.name)||(this._customOverlays.push(t),this._notify())}getCustomIndicators(){return[...this._customIndicators]}getCustomMainIndicators(){return this._customIndicators.filter(t=>t.paneType==="main")}getCustomSubIndicators(){return this._customIndicators.filter(t=>t.paneType!=="main")}getCustomOverlays(){return[...this._customOverlays]}onChange(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(n=>n!==t)}}_notify(){this._listeners.forEach(t=>t())}}const de=new t7,n7=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"></span></div></div>'),a7=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"></path></svg></div></div>'),Pn=y('<li><span style="padding-left:8px"></span></li>'),Dn="drawing_tools",r7=e=>{const[t,n]=C("horizontalStraightLine"),[a,s]=C("priceChannelLine"),[r,i]=C("circle"),[o,c]=C("fibonacciLine"),[u,l]=C("xabcd"),[h,d]=C("longPosition"),[b,k]=C("frvp"),[D,L]=C("weak_magnet"),[I,A]=C("normal"),[P,z]=C(!1),[O,Y]=C(!0),[K,U]=C(""),[M,F]=C(""),[B,ee]=C([]);He(()=>{const H=()=>{const ae=de.getCustomOverlays().map(ve=>({key:ve.name,text:ve.label}));ee(ae),ae.length>0&&!M()&&F(ae[0].key)};H();const X=de.onChange(H);Ie(X)});const f=Z(()=>{var ae;const H=[{key:"singleLine",icon:t(),list:Q8(e.locale),setter:n},{key:"moreLine",icon:a(),list:Y8(e.locale),setter:s},{key:"polygon",icon:r(),list:W8(e.locale),setter:i},{key:"fibonacci",icon:o(),list:G8(e.locale),setter:c},{key:"wave",icon:u(),list:X8(e.locale),setter:l},{key:"trading",icon:h(),list:q8(e.locale),setter:d},{key:"annotation",icon:b(),list:e7(e.locale),setter:k}],X=B();return X.length>0&&H.push({key:"custom",icon:M()||((ae=X[0])==null?void 0:ae.key)||"",list:X,setter:F}),H}),T=Z(()=>J8(e.locale));return(()=>{const H=n7.cloneNode(!0),X=H.firstChild,ae=X.nextSibling,ve=ae.firstChild,Xe=ve.nextSibling,at=Xe.firstChild,Je=ae.nextSibling,Ue=Je.firstChild,qe=Je.nextSibling,e1=qe.firstChild,S1=qe.nextSibling,rt=S1.nextSibling,Ve=rt.firstChild;return p(H,()=>f().map(V=>(()=>{const oe=a7.cloneNode(!0),pe=oe.firstChild,we=pe.nextSibling,st=we.firstChild;return oe.addEventListener("blur",()=>{U("")}),pe.$$click=()=>{e.onDrawingItemClick({groupId:Dn,name:V.icon,visible:O(),lock:P(),mode:I()})},p(pe,g(_e,{get name(){return V.icon}})),we.$$click=()=>{V.key===K()?U(""):U(V.key)},p(oe,(()=>{const A1=Z(()=>V.key===K());return()=>A1()&&g(We,{class:"list",get children(){return V.list.map(Me=>(()=>{const Ze=Pn.cloneNode(!0),E=Ze.firstChild;return Ze.$$click=()=>{V.setter(Me.key),e.onDrawingItemClick({name:Me.key,lock:P(),mode:I()}),U("")},p(Ze,g(_e,{get name(){return Me.key}}),E),p(E,()=>Me.text),Ze})())}})})(),null),N(()=>se(st,"class",V.key===K()?"rotate":"")),oe})()),X),ae.addEventListener("blur",()=>{U("")}),ve.$$click=()=>{let V=D();I()!=="normal"&&(V="normal"),A(V),e.onModeChange(V)},p(ve,(()=>{const V=Z(()=>D()==="weak_magnet");return()=>V()?(()=>{const oe=Z(()=>I()==="weak_magnet");return()=>oe()?g(_e,{name:"weak_magnet",class:"selected"}):g(_e,{name:"weak_magnet"})})():(()=>{const oe=Z(()=>I()==="strong_magnet");return()=>oe()?g(_e,{name:"strong_magnet",class:"selected"}):g(_e,{name:"strong_magnet"})})()})()),Xe.$$click=()=>{K()==="mode"?U(""):U("mode")},p(ae,(()=>{const V=Z(()=>K()==="mode");return()=>V()&&g(We,{class:"list",get children(){return T().map(oe=>(()=>{const pe=Pn.cloneNode(!0),we=pe.firstChild;return pe.$$click=()=>{L(oe.key),A(oe.key),e.onModeChange(oe.key),U("")},p(pe,g(_e,{get name(){return oe.key}}),we),p(we,()=>oe.text),pe})())}})})(),null),Ue.$$click=()=>{const V=!P();z(V),e.onLockChange(V)},p(Ue,(()=>{const V=Z(()=>!!P());return()=>V()?g(_e,{name:"lock"}):g(_e,{name:"unlock"})})()),e1.$$click=()=>{const V=!O();Y(V),e.onVisibleChange(V)},p(e1,(()=>{const V=Z(()=>!!O());return()=>V()?g(_e,{name:"visible"}):g(_e,{name:"invisible"})})()),Ve.$$click=()=>{e.onRemoveClick(Dn)},p(Ve,g(_e,{name:"remove"})),N(()=>se(at,"class",K()==="mode"?"rotate":"")),H})()};re(["click"]);const s7=["MA","EMA","SMA","BOLL","SAR","BBI"],o7=["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"],i7="klinecharts-pro",En=y('<li class="title"></li>'),w1=y('<li class="row"></li>'),l7=e=>{const[t,n]=C(de.getCustomMainIndicators()),[a,s]=C(de.getCustomSubIndicators());return He(()=>{const r=de.onChange(()=>{n(de.getCustomMainIndicators()),s(de.getCustomSubIndicators())});Ie(r)}),g(Le,{get title(){return _("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){return g(We,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{const r=En.cloneNode(!0);return p(r,()=>_("main_indicator",e.locale)),r})(),Z(()=>s7.map(r=>{const i=e.mainIndicators.includes(r);return(()=>{const o=w1.cloneNode(!0);return o.$$click=c=>{e.onMainIndicatorChange({name:r,paneId:"candle_pane",added:!i})},p(o,g(L1,{checked:i,get label(){return _(r.toLowerCase(),e.locale)}})),o})()})),Z(()=>t().map(r=>{const i=e.mainIndicators.includes(r.name);return(()=>{const o=w1.cloneNode(!0);return o.$$click=c=>{e.onMainIndicatorChange({name:r.name,paneId:"candle_pane",added:!i})},p(o,g(L1,{checked:i,get label(){return r.label}})),o})()})),(()=>{const r=En.cloneNode(!0);return p(r,()=>_("sub_indicator",e.locale)),r})(),Z(()=>o7.map(r=>{const i=r in e.subIndicators;return(()=>{const o=w1.cloneNode(!0);return o.$$click=c=>{e.onSubIndicatorChange({name:r,paneId:e.subIndicators[r]??"",added:!i})},p(o,g(L1,{checked:i,get label(){return _(r.toLowerCase(),e.locale)}})),o})()})),Z(()=>a().map(r=>{const i=r.name in e.subIndicators;return(()=>{const o=w1.cloneNode(!0);return o.$$click=c=>{e.onSubIndicatorChange({name:r.name,paneId:e.subIndicators[r.name]??"",added:!i})},p(o,g(L1,{checked:i,get label(){return r.label}})),o})()}))]}})}})};re(["click"]);function Nn(e,t){switch(e){case"Etc/UTC":return _("utc",t);case"Pacific/Honolulu":return _("honolulu",t);case"America/Juneau":return _("juneau",t);case"America/Los_Angeles":return _("los_angeles",t);case"America/Chicago":return _("chicago",t);case"America/Toronto":return _("toronto",t);case"America/Sao_Paulo":return _("sao_paulo",t);case"Europe/London":return _("london",t);case"Europe/Berlin":return _("berlin",t);case"Asia/Bahrain":return _("bahrain",t);case"Asia/Dubai":return _("dubai",t);case"Asia/Ashkhabad":return _("ashkhabad",t);case"Asia/Almaty":return _("almaty",t);case"Asia/Bangkok":return _("bangkok",t);case"Asia/Shanghai":return _("shanghai",t);case"Asia/Tokyo":return _("tokyo",t);case"Australia/Sydney":return _("sydney",t);case"Pacific/Norfolk":return _("norfolk",t)}return e}function c7(e){return[{key:"Etc/UTC",text:_("utc",e)},{key:"Pacific/Honolulu",text:_("honolulu",e)},{key:"America/Juneau",text:_("juneau",e)},{key:"America/Los_Angeles",text:_("los_angeles",e)},{key:"America/Chicago",text:_("chicago",e)},{key:"America/Toronto",text:_("toronto",e)},{key:"America/Sao_Paulo",text:_("sao_paulo",e)},{key:"Europe/London",text:_("london",e)},{key:"Europe/Berlin",text:_("berlin",e)},{key:"Asia/Bahrain",text:_("bahrain",e)},{key:"Asia/Dubai",text:_("dubai",e)},{key:"Asia/Ashkhabad",text:_("ashkhabad",e)},{key:"Asia/Almaty",text:_("almaty",e)},{key:"Asia/Bangkok",text:_("bangkok",e)},{key:"Asia/Shanghai",text:_("shanghai",e)},{key:"Asia/Tokyo",text:_("tokyo",e)},{key:"Australia/Sydney",text:_("sydney",e)},{key:"Pacific/Norfolk",text:_("norfolk",e)}]}const u7=e=>{const[t,n]=C(e.timezone),a=Z(()=>c7(e.locale));return g(Le,{get title(){return _("timezone",e.locale)},width:320,get buttons(){return[{children:_("confirm",e.locale),onClick:()=>{e.onConfirm(t()),e.onClose()}}]},get onClose(){return e.onClose},get children(){return g(Sn,{style:{width:"100%","margin-top":"20px"},get value(){return t().text},onSelected:s=>{n(s)},get dataSource(){return a()}})}})};function Fn(e){return[{key:"candle.type",text:_("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:_("candle_solid",e)},{key:"candle_stroke",text:_("candle_stroke",e)},{key:"candle_up_stroke",text:_("candle_up_stroke",e)},{key:"candle_down_stroke",text:_("candle_down_stroke",e)},{key:"ohlc",text:_("ohlc",e)},{key:"area",text:_("area",e)}]},{key:"candle.priceMark.last.show",text:_("last_price_show",e),component:"switch"},{key:"candle.priceMark.high.show",text:_("high_price_show",e),component:"switch"},{key:"candle.priceMark.low.show",text:_("low_price_show",e),component:"switch"},{key:"indicator.lastValueMark.show",text:_("indicator_last_value_show",e),component:"switch"},{key:"yAxis.type",text:_("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:_("normal",e)},{key:"percentage",text:_("percentage",e)},{key:"log",text:_("log",e)}]},{key:"yAxis.reverse",text:_("reverse_coordinate",e),component:"switch"},{key:"grid.show",text:_("grid_show",e),component:"switch"}]}const _7=y('<div class="klinecharts-pro-setting-modal-content"></div>'),d7=y("<span></span>"),h7=e=>{const[t,n]=C(e.currentStyles),[a,s]=C(Fn(e.locale));fe(()=>{s(Fn(e.locale))});const r=(i,o)=>{const c={};z1(c,i.key,o);const u=w.utils.clone(t());z1(u,i.key,o),n(u),s(a().map(l=>({...l}))),e.onChange(c)};return g(Le,{get title(){return _("setting",e.locale)},width:560,get buttons(){return[{children:_("restore_default",e.locale),onClick:()=>{e.onRestoreDefault(a()),e.onClose()}}]},get onClose(){return e.onClose},get children(){const i=_7.cloneNode(!0);return p(i,g(E1,{get each(){return a()},children:o=>{let c;const u=w.utils.formatValue(t(),o.key);switch(o.component){case"select":{c=g(Sn,{style:{width:"120px"},get value(){return _(u,e.locale)},get dataSource(){return o.dataSource},onSelected:l=>{const h=l.key;r(o,h)}});break}case"switch":{const l=!!u;c=g(xi,{open:l,onChange:()=>{r(o,!l)}});break}}return[(()=>{const l=d7.cloneNode(!0);return p(l,()=>o.text),l})(),c]}})),i}})},$7=y('<img style="width:500px;margin-top: 20px">'),y7=e=>g(Le,{get title(){return _("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:_("save",e.locale),onClick:()=>{const t=document.createElement("a");t.download="screenshot",t.href=e.url,document.body.appendChild(t),t.click(),t.remove()}}]},get onClose(){return e.onClose},get children(){const t=$7.cloneNode(!0);return N(()=>se(t,"src",e.url)),t}}),p7={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"}]},g7=y('<div class="klinecharts-pro-indicator-setting-modal-content"></div>'),m7=y("<span></span>"),f7=e=>{const[t,n]=C(w.utils.clone(e.params.calcParams)),a=s=>p7[s];return g(Le,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:_("confirm",e.locale),onClick:()=>{const s=a(e.params.indicatorName),r=[];w.utils.clone(t()).forEach((i,o)=>{!w.utils.isValid(i)||i===""?"default"in s[o]&&r.push(s[o].default):r.push(i)}),e.onConfirm(r),e.onClose()}}]},get onClose(){return e.onClose},get children(){const s=g7.cloneNode(!0);return p(s,()=>a(e.params.indicatorName).map((r,i)=>[(()=>{const o=m7.cloneNode(!0);return p(o,()=>_(r.paramNameKey,e.locale)),o})(),g(An,{style:{width:"200px"},get value(){return t()[i]??""},get precision(){return r.precision},get min(){return r.min},onChange:o=>{const c=w.utils.clone(t());c[i]=o,n(c)}})])),s}})},C7=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"></path></svg>'),v7=y('<img alt="symbol">'),b7=y("<li><div><span></span></div></li>"),x7=e=>{const[t,n]=C(""),[a]=g0(t,e.datafeed.searchSymbols.bind(e.datafeed));return g(Le,{get title(){return _("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){return[g(An,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return _("symbol_code",e.locale)},get suffix(){return C7.cloneNode(!0)},get value(){return t()},onChange:s=>{const r=`${s}`;n(r)}}),g(We,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return a.loading},get dataSource(){return a()??[]},renderItem:s=>(()=>{const r=b7.cloneNode(!0),i=r.firstChild,o=i.firstChild;return r.$$click=()=>{e.onSymbolSelected(s),e.onClose()},p(i,g(J,{get when(){return s.logo},get children(){const c=v7.cloneNode(!0);return N(()=>se(c,"src",s.logo)),c}}),o),p(o,()=>s.shortName??s.ticker,null),p(o,()=>`${s.name?`(${s.name})`:""}`,null),p(r,()=>s.exchange??"",null),N(()=>se(o,"title",s.name??"")),r})()})]}})};re(["click"]),re(["click"]),re(["click"]);const L7=y('<div class="klinecharts-pro-replay-bar"><div class="replay-controls"><button class="replay-btn">⏮</button><button class="replay-btn primary"></button><button class="replay-btn">⏭</button></div><div class="replay-progress"><div class="replay-progress-track"><div class="replay-progress-fill"></div><input type="range" class="replay-progress-slider" min="0"></div><span class="replay-progress-text"> / </span></div><div class="replay-speed"><select></select></div><button class="replay-btn exit">✕ </button></div>'),w7=y("<option></option>"),k7=[{value:2e3,label:"0.25x"},{value:1e3,label:"0.5x"},{value:500,label:"1x"},{value:250,label:"2x"},{value:100,label:"5x"},{value:50,label:"10x"}],S7=e=>{const t=()=>e.total>0?e.index/e.total*100:0;return(()=>{const n=L7.cloneNode(!0),a=n.firstChild,s=a.firstChild,r=s.nextSibling,i=r.nextSibling,o=a.nextSibling,c=o.firstChild,u=c.firstChild,l=u.nextSibling,h=c.nextSibling,d=h.firstChild,b=o.nextSibling,k=b.firstChild,D=b.nextSibling;return D.firstChild,s.$$click=()=>e.onStepBackward(),r.$$click=()=>e.status==="playing"?e.onPause():e.onPlay(),p(r,()=>e.status==="playing"?"⏸":"▶"),i.$$click=()=>e.onStepForward(),l.$$input=L=>e.onSeek(parseInt(L.target.value)),p(h,()=>e.index+1,d),p(h,()=>e.total,null),k.addEventListener("change",L=>e.onSpeedChange(parseInt(L.target.value))),p(k,()=>k7.map(L=>(()=>{const I=w7.cloneNode(!0);return p(I,()=>L.label),N(()=>I.value=L.value),I})())),D.$$click=()=>e.onExit(),p(D,()=>_("exit_replay",e.locale),null),N(L=>{const I=_("step_backward",e.locale),A=_("step_forward",e.locale),P=`${t()}%`,z=e.total-1;return I!==L._v$&&se(s,"title",L._v$=I),A!==L._v$2&&se(i,"title",L._v$2=A),P!==L._v$3&&u.style.setProperty("width",L._v$3=P),z!==L._v$4&&se(l,"max",L._v$4=z),L},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),N(()=>l.value=e.index),N(()=>k.value=e.speed),n})()};re(["click","input"]);const A7=y('<li class="empty"></li>'),M7=y('<li class="object-tree-row"><span class="object-tree-name"></span><span class="object-tree-actions"><button></button><button class="object-tree-btn delete" title="Delete">🗑</button></span></li>'),T7={horizontalStraightLine:"━ Horizontal Line",horizontalRayLine:"→ Horizontal Ray",horizontalSegment:"─ Horizontal Segment",verticalStraightLine:"┃ Vertical Line",verticalRayLine:"↓ Vertical Ray",verticalSegment:"│ Vertical Segment",straightLine:"╲ Straight Line",rayLine:"↗ Ray Line",segment:"╱ Segment",arrow:"→ Arrow",priceLine:"$ Price Line",priceChannelLine:"⊞ Price Channel",parallelStraightLine:"═ Parallel Line",fibonacciLine:"𝑓 Fibonacci Line",fibonacciSegment:"𝑓 Fibonacci Segment",fibonacciCircle:"◎ Fibonacci Circle",fibonacciSpiral:"🌀 Fibonacci Spiral",fibonacciSpeedResistanceFan:"扇 Fibonacci Fan",fibonacciExtension:"𝑓 Fibonacci Extension",gannBox:"⊞ Gann Box",circle:"○ Circle",rect:"□ Rectangle",triangle:"△ Triangle",parallelogram:"▱ Parallelogram",threeWaves:"∿ Three Waves",fiveWaves:"∿ Five Waves",eightWaves:"∿ Eight Waves",anyWaves:"∿ Any Waves",abcd:"◇ ABCD",xabcd:"◇ XABCD",longPosition:"📈 Long Position",shortPosition:"📉 Short Position",frvp:"📊 Volume Profile",measure:"📏 Measure",priceRange:"🔷 Price Range",textNote:"📝 Text Note",anchoredVwap:"⚓ Anchored VWAP",priceLabel:"🏷️ Price Label"};function I7(e){return T7[e]??e}const P7=e=>g(Le,{get title(){return _("object_tree",e.locale)},width:360,get onClose(){return e.onClose},get children(){return g(We,{class:"klinecharts-pro-object-tree-list",get children(){return[Z(()=>Z(()=>e.overlays.length===0)()&&(()=>{const t=A7.cloneNode(!0);return p(t,()=>_("no_overlays",e.locale)),t})()),g(E1,{get each(){return e.overlays},children:t=>(()=>{const n=M7.cloneNode(!0),a=n.firstChild,s=a.nextSibling,r=s.firstChild,i=r.nextSibling;return a.$$click=()=>e.onSelect(t.id),p(a,()=>I7(t.name)),r.$$click=()=>e.onToggleVisibility(t.id,!t.visible),p(r,()=>t.visible?"👁":"👁🗨"),i.$$click=()=>e.onRemove(t.id),N(o=>{const c=`object-tree-btn ${t.visible?"visible":"hidden"}`,u=t.visible?"Hide":"Show";return c!==o._v$&&ue(r,o._v$=c),u!==o._v$2&&se(r,"title",o._v$2=u),o},{_v$:void 0,_v$2:void 0}),n})()})]}})}});re(["click"]);const D7=y('<div class="klinecharts-pro-style-editor"><div class="style-section"><label></label><div class="color-grid"></div><input type="color" class="color-picker"></div><div class="style-section"><label></label><div class="width-options"></div></div><div class="style-section"><label></label><div class="style-options"><button>━━━</button><button>╌╌╌</button><button>┈┈┈</button></div></div><div class="style-section"><label></label><input type="color" class="color-picker"></div><div class="style-actions"><button class="apply-btn"></button></div></div>'),E7=y("<span></span>"),N7=y('<button><span class="width-preview"></span></button>'),F7=["#EF5350","#FF9800","#FFC107","#4CAF50","#26A65B","#2196F3","#1677FF","#9C27B0","#E91E63","#607D8B","#FFFFFF","#999999","#666666","#333333","#000000"],B7=[1,1.5,2,3,4],O7=e=>{const[t,n]=C(e.currentStyles.lineColor??"#1677FF"),[a,s]=C(e.currentStyles.lineWidth??1),[r,i]=C(e.currentStyles.lineStyle??"solid"),[o,c]=C(e.currentStyles.fillColor??"rgba(22, 119, 255, 0.15)"),u=()=>{e.onApply(e.overlayId,{lineColor:t(),lineWidth:a(),lineStyle:r(),fillColor:o()}),e.onClose()};return g(Le,{get title(){return _("style_editor",e.locale)},width:320,get onClose(){return e.onClose},get children(){const l=D7.cloneNode(!0),h=l.firstChild,d=h.firstChild,b=d.nextSibling,k=b.nextSibling,D=h.nextSibling,L=D.firstChild,I=L.nextSibling,A=D.nextSibling,P=A.firstChild,z=P.nextSibling,O=z.firstChild,Y=O.nextSibling,K=Y.nextSibling,U=A.nextSibling,M=U.firstChild,F=M.nextSibling,B=U.nextSibling,ee=B.firstChild;return p(d,()=>_("line_color",e.locale)),p(b,()=>F7.map(f=>(()=>{const T=E7.cloneNode(!0);return T.$$click=()=>n(f),T.style.setProperty("background-color",f),N(()=>ue(T,`color-swatch ${t()===f?"selected":""}`)),T})())),k.$$input=f=>n(f.target.value),p(L,()=>_("line_width",e.locale)),p(I,()=>B7.map(f=>(()=>{const T=N7.cloneNode(!0),H=T.firstChild;return T.$$click=()=>s(f),H.style.setProperty("height",`${f}px`),N(()=>ue(T,`width-btn ${a()===f?"selected":""}`)),T})())),p(P,()=>_("line_style",e.locale)),O.$$click=()=>i("solid"),Y.$$click=()=>i("dashed"),K.$$click=()=>i("dotted"),p(M,()=>_("fill_color",e.locale)),F.$$input=f=>c(f.target.value+"26"),ee.$$click=u,p(ee,()=>_("apply",e.locale)),N(f=>{const T=`style-btn ${r()==="solid"?"selected":""}`,H=`style-btn ${r()==="dashed"?"selected":""}`,X=`style-btn ${r()==="dotted"?"selected":""}`;return T!==f._v$&&ue(O,f._v$=T),H!==f._v$2&&ue(Y,f._v$2=H),X!==f._v$3&&ue(K,f._v$3=X),f},{_v$:void 0,_v$2:void 0,_v$3:void 0}),N(()=>k.value=t()),N(()=>F.value=o().startsWith("rgba")?"#1677FF":o()),l}})};re(["input","click"]);const R7=y('<div class="klinecharts-pro-context-menu"><ul class="context-menu-list"></ul></div>'),j7=y("<li><span></span></li>"),z7=y('<span class="context-menu-icon"></span>'),K7=e=>(()=>{const t=R7.cloneNode(!0),n=t.firstChild;return t.addEventListener("mouseleave",()=>e.onClose()),t.style.setProperty("position","fixed"),t.style.setProperty("z-index","9999"),p(n,g(E1,{get each(){return e.items},children:a=>(()=>{const s=j7.cloneNode(!0),r=s.firstChild;return s.$$click=()=>{a.disabled||(e.onSelect(a.key),e.onClose())},p(s,(()=>{const i=Z(()=>!!a.icon);return()=>i()&&(()=>{const o=z7.cloneNode(!0);return p(o,()=>a.icon),o})()})(),r),p(r,()=>a.label),N(()=>ue(s,`context-menu-item ${a.danger?"danger":""} ${a.disabled?"disabled":""}`)),s})()})),N(a=>{const s=`${e.x}px`,r=`${e.y}px`;return s!==a._v$&&t.style.setProperty("left",a._v$=s),r!==a._v$2&&t.style.setProperty("top",a._v$2=r),a},{_v$:void 0,_v$2:void 0}),t})();re(["click"]);function U7(e){const t=e.toLowerCase().split("+").map(a=>a.trim()),n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:""};for(const a of t)a==="ctrl"||a==="control"?n.ctrl=!0:a==="shift"?n.shift=!0:a==="alt"?n.alt=!0:a==="meta"||a==="cmd"?n.meta=!0:n.key=a;return n}function V7(e,t){const n=t.key.toLowerCase(),a=n==="escape"?"escape":n==="delete"||n==="backspace"?"delete":n==="f11"?"f11":n;return e.ctrl===(t.ctrlKey||t.metaKey)&&e.shift===t.shiftKey&&e.alt===t.altKey&&e.key===a}class Bn{constructor(t){S(this,"_bindings",new Map);S(this,"_parsedBindings",new Map);S(this,"_handler");S(this,"_enabled",!0);this._container=t,this._handler=a=>{if(!this._enabled)return;const s=a.target;if(!(s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.isContentEditable))for(const[r,i]of this._bindings){const o=this._parsedBindings.get(r);if(o&&V7(o,a)){a.preventDefault(),a.stopPropagation(),i.callback(a);return}}},(t??document).addEventListener("keydown",this._handler)}register(t){this._bindings.set(t.key,t),this._parsedBindings.set(t.key,U7(t.key))}remove(t){this._bindings.delete(t),this._parsedBindings.delete(t)}setEnabled(t){this._enabled=t}getBindings(){return Array.from(this._bindings.values())}destroy(){(this._container??document).removeEventListener("keydown",this._handler),this._bindings.clear(),this._parsedBindings.clear()}}class On{constructor(t,n){S(this,"_chart");S(this,"_datafeed");S(this,"_fullData",[]);S(this,"_playbackIndex",0);S(this,"_status","idle");S(this,"_speed",500);S(this,"_timerId",null);S(this,"_handlers",{});S(this,"_originalData",null);this._chart=t,this._datafeed=n??null}setHandlers(t){this._handlers=t}async start(t){if(this._speed=t.speed??500,t.dataSource==="current")this._fullData=[...this._chart.getDataList()];else if(t.dataSource==="custom"&&this._datafeed)throw new Error("Custom data source requires calling loadData() first");if(this._fullData.length===0){console.warn("[BarReplayManager] No data available for replay");return}this._originalData=[...this._chart.getDataList()];const n=t.startFrom!=null?Math.max(0,Math.min(t.startFrom,this._fullData.length-1)):0;this._playbackIndex=n,this._applyData(),this._setStatus("paused")}async loadData(t,n,a,s){if(!this._datafeed)throw new Error("No datafeed provided");const r=await this._datafeed.getHistoryKLineData(t,n,a,s);this._fullData=r??[]}play(){var t,n;this._status==="ended"||this._fullData.length===0||(this._setStatus("playing"),(n=(t=this._handlers).onPlay)==null||n.call(t),this._timerId=setInterval(()=>{var a,s;this.stepForward(),this._playbackIndex>=this._fullData.length-1&&(this.pause(),this._setStatus("ended"),(s=(a=this._handlers).onEnd)==null||s.call(a))},this._speed))}pause(){var t,n;this._timerId&&(clearInterval(this._timerId),this._timerId=null),this._status==="playing"&&(this._setStatus("paused"),(n=(t=this._handlers).onPause)==null||n.call(t))}stepForward(){var t,n;this._playbackIndex<this._fullData.length-1&&(this._playbackIndex++,this._applyData(),(n=(t=this._handlers).onStep)==null||n.call(t,this._playbackIndex,this._fullData.length,this._fullData[this._playbackIndex]))}stepBackward(){var t,n;this._playbackIndex>0&&(this._playbackIndex--,this._applyData(),(n=(t=this._handlers).onStep)==null||n.call(t,this._playbackIndex,this._fullData.length,this._fullData[this._playbackIndex]))}seekTo(t){this._playbackIndex=Math.max(0,Math.min(t,this._fullData.length-1)),this._applyData()}setSpeed(t){this._speed=t,this._status==="playing"&&(this.pause(),this.play())}getStatus(){return this._status}getIndex(){return this._playbackIndex}getTotal(){return this._fullData.length}getSpeed(){return this._speed}getCurrentBar(){return this._fullData[this._playbackIndex]??null}stop(){this.pause(),this._originalData&&(this._chart.applyNewData(this._originalData),this._originalData=null),this._fullData=[],this._playbackIndex=0,this._setStatus("idle")}destroy(){this.stop(),this._handlers={}}_applyData(){const t=this._fullData.slice(0,this._playbackIndex+1);this._chart.applyNewData(t)}_setStatus(t){var n,a;this._status=t,(a=(n=this._handlers).onStatusChange)==null||a.call(n,t)}}const Z7=y('<i class="icon-close klinecharts-pro-load-icon"></i>'),H7=y('<div class="klinecharts-pro-content"><div class="klinecharts-pro-widget"></div></div>');function k1(e,t,n,a){return t==="VOL"&&(a={gap:{bottom:2},...a}),(e==null?void 0:e.createIndicator({name:t,createTooltipDataSource:({indicator:s,defaultStyles:r})=>{const i=[];return s.visible?(i.push(r.tooltip.icons[1]),i.push(r.tooltip.icons[2]),i.push(r.tooltip.icons[3])):(i.push(r.tooltip.icons[0]),i.push(r.tooltip.icons[2]),i.push(r.tooltip.icons[3])),{icons:i}}},n,a))??null}const Q7=e=>{let t,n=null,a;const[s,r]=C(!1),[i,o]=C(e.theme),[c,u]=C(e.styles),[l,h]=C(e.locale),[d,b]=C(e.symbol),[k,D]=C(e.period),[L,I]=C(!1),[A,P]=C([...e.mainIndicators]),[z,O]=C({}),[Y,K]=C(!1),[U,M]=C({key:e.timezone,text:Nn(e.timezone,e.locale)}),[F,B]=C(!1),[ee,f]=C(),[T,H]=C(""),[X,ae]=C(e.drawingBarVisible),[ve,Xe]=C(!1),[at,Je]=C(!1),[Ue,qe]=C({visible:!1,indicatorName:"",paneId:"",calcParams:[]}),[e1,S1]=C("candle_solid"),[rt,Ve]=C(!1),[V,oe]=C("idle"),[pe,we]=C(0),[st,A1]=C(0),[Me,Ze]=C(500);let E=null;const[ll,zn]=C(!1),[cl,ul]=C([]),[_l,ot]=C(!1),[Kn,it]=C(""),[dl,hl]=C({}),[$l,lt]=C(!1),[yl,pl]=C(0),[gl,ml]=C(0),[fl,Cl]=C("");let t1=null;e.ref({setTheme:o,getTheme:()=>i(),setStyles:u,getStyles:()=>n.getStyles(),setLocale:h,getLocale:()=>l(),setTimezone:$=>{M({key:$,text:Nn($,l())})},getTimezone:()=>U().key,setSymbol:b,getSymbol:()=>d(),setPeriod:D,getPeriod:()=>k(),setChartType:$=>{S1($),n==null||n.setStyles({candle:{type:$}})},getChartType:()=>e1(),startReplay:$=>vl($),stopReplay:()=>{E==null||E.stop(),Ve(!1)},showObjectTree:()=>{Vn(),zn(!0)},showStyleEditor:$=>{it($),ot(!0)}});const Un=()=>{n==null||n.resize()},ct=($,x,v)=>{let m=x,R=m;switch($.timespan){case"minute":{m=m-m%(60*1e3),R=m-v*$.multiplier*60*1e3;break}case"hour":{m=m-m%(60*60*1e3),R=m-v*$.multiplier*60*60*1e3;break}case"day":{m=m-m%(24*60*60*1e3),R=m-v*$.multiplier*24*60*60*1e3;break}case"week":{const ne=new Date(m).getDay(),ce=ne===0?6:ne-1;m=m-ce*24*60*60*1e3;const Te=new Date(m);m=new Date(`${Te.getFullYear()}-${Te.getMonth()+1}-${Te.getDate()}`).getTime(),R=m-v*$.multiplier*7*24*60*60*1e3;break}case"month":{const te=new Date(m),ne=te.getFullYear(),ce=te.getMonth()+1;m=new Date(`${ne}-${ce}-01`).getTime(),R=m-v*$.multiplier*30*24*60*60*1e3;const Te=new Date(R);R=new Date(`${Te.getFullYear()}-${Te.getMonth()+1}-01`).getTime();break}case"year":{const ne=new Date(m).getFullYear();m=new Date(`${ne}-01-01`).getTime(),R=m-v*$.multiplier*365*24*60*60*1e3;const ce=new Date(R);R=new Date(`${ce.getFullYear()}-01-01`).getTime();break}}return[R,m]};He(()=>{if(window.addEventListener("resize",Un),n=w.init(t,{customApi:{formatDate:(v,m,R,te)=>{switch(k().timespan){case"minute":return te===w.FormatDateType.XAxis?w.utils.formatDate(v,m,"HH:mm"):w.utils.formatDate(v,m,"YYYY-MM-DD HH:mm");case"hour":return te===w.FormatDateType.XAxis?w.utils.formatDate(v,m,"MM-DD HH:mm"):w.utils.formatDate(v,m,"YYYY-MM-DD HH:mm");case"day":case"week":return w.utils.formatDate(v,m,"YYYY-MM-DD");case"month":return te===w.FormatDateType.XAxis?w.utils.formatDate(v,m,"YYYY-MM"):w.utils.formatDate(v,m,"YYYY-MM-DD");case"year":return te===w.FormatDateType.XAxis?w.utils.formatDate(v,m,"YYYY"):w.utils.formatDate(v,m,"YYYY-MM-DD")}return w.utils.formatDate(v,m,"YYYY-MM-DD HH:mm")}}}),n){const v=n.getDom("candle_pane",w.DomPosition.Main);if(v){let R=document.createElement("div");if(R.className="klinecharts-pro-watermark",w.utils.isString(e.watermark)){const te=e.watermark.replace(/(^\s*)|(\s*$)/g,"");R.innerHTML=te}else R.appendChild(e.watermark);v.appendChild(R)}const m=n.getDom("candle_pane",w.DomPosition.YAxis);a=document.createElement("span"),a.className="klinecharts-pro-price-unit",m==null||m.appendChild(a)}A().forEach(v=>{k1(n,v,!0,{id:"candle_pane"})});const $={};e.subIndicators.forEach(v=>{const m=k1(n,v,!0);m&&($[v]=m)}),O($),n==null||n.loadMore(v=>{r(!0),(async()=>{const R=k(),[te]=ct(R,v,1),[ne]=ct(R,te,500),ce=await e.datafeed.getHistoryKLineData(d(),R,ne,te);n==null||n.applyMoreData(ce,ce.length>0),r(!1)})()}),n==null||n.subscribeAction(w.ActionType.OnTooltipIconClick,v=>{if(v.indicatorName)switch(v.iconId){case"visible":{n==null||n.overrideIndicator({name:v.indicatorName,visible:!0},v.paneId);break}case"invisible":{n==null||n.overrideIndicator({name:v.indicatorName,visible:!1},v.paneId);break}case"setting":{const m=n==null?void 0:n.getIndicatorByPaneId(v.paneId,v.indicatorName);qe({visible:!0,indicatorName:v.indicatorName,paneId:v.paneId,calcParams:m.calcParams});break}case"close":{if(v.paneId==="candle_pane"){const m=[...A()];n==null||n.removeIndicator("candle_pane",v.indicatorName),m.splice(m.indexOf(v.indicatorName),1),P(m)}else{const m={...z()};n==null||n.removeIndicator(v.paneId,v.indicatorName),delete m[v.indicatorName],O(m)}break}}});const x=t==null?void 0:t.parentElement;x&&(t1=new Bn(x),t1.register({key:"escape",description:"Cancel overlay",callback:()=>n==null?void 0:n.removeOverlay()})),n==null||n.subscribeAction(w.ActionType.OnCandleBarClick,v=>{it("")})}),Ie(()=>{window.removeEventListener("resize",Un),t1==null||t1.destroy(),E==null||E.destroy(),w.dispose(t)}),fe(()=>{const $=d();$!=null&&$.priceCurrency?(a.innerHTML=$==null?void 0:$.priceCurrency.toLocaleUpperCase(),a.style.display="flex"):a.style.display="none",n==null||n.setPriceVolumePrecision(($==null?void 0:$.pricePrecision)??2,($==null?void 0:$.volumePrecision)??0)}),fe($=>{if(!s()){$&&e.datafeed.unsubscribe($.symbol,$.period);const x=d(),v=k();return r(!0),Je(!0),(async()=>{const[R,te]=ct(v,new Date().getTime(),500),ne=await e.datafeed.getHistoryKLineData(x,v,R,te);n==null||n.applyNewData(ne,ne.length>0),e.datafeed.subscribe(x,v,ce=>{n==null||n.updateData(ce)}),r(!1),Je(!1)})(),{symbol:x,period:v}}return $}),fe(()=>{const $=i();n==null||n.setStyles($);const x=$==="dark"?"#929AA5":"#76808F";n==null||n.setStyles({indicator:{tooltip:{icons:[{id:"visible",position:w.TooltipIconPosition.Middle,marginLeft:8,marginTop:7,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:x,activeColor:x,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:w.TooltipIconPosition.Middle,marginLeft:8,marginTop:7,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:x,activeColor:x,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:w.TooltipIconPosition.Middle,marginLeft:6,marginTop:7,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:x,activeColor:x,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:w.TooltipIconPosition.Middle,marginLeft:6,marginTop:7,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:x,activeColor:x,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}})}),fe(()=>{n==null||n.setLocale(l())}),fe(()=>{n==null||n.setTimezone(U().key)}),fe(()=>{c()&&(n==null||n.setStyles(c()),f(ei(n.getStyles())))});const Vn=()=>{var x,v,m,R,te;if(!n)return;const $=[];try{const ne=n,ce=((m=(v=(x=ne._chartStore)==null?void 0:x.call(ne))==null?void 0:v.getOverlayStore)==null?void 0:m.call(v))??((R=ne.getOverlayStore)==null?void 0:R.call(ne));ce&&(((te=ce.getInstances)==null?void 0:te.call(ce))??[]).forEach(n1=>{$.push({id:n1.id,name:n1.name,visible:n1.visible!==!1,groupId:n1.groupId,paneId:n1.paneId})})}catch{}ul($)},vl=$=>{n&&(E=new On(n,e.datafeed),E.setHandlers({onStep:(x,v)=>{we(x),A1(v)},onStatusChange:x=>oe(x),onEnd:()=>oe("ended")}),E.start({dataSource:$,speed:Me()}).then(()=>{Ve(!0),A1(E.getTotal()),we(E.getIndex())}))};return[Z7.cloneNode(!0),g(J,{get when(){return ve()},get children(){return g(x7,{get locale(){return e.locale},get datafeed(){return e.datafeed},onSymbolSelected:$=>{b($)},onClose:()=>{Xe(!1)}})}}),g(J,{get when(){return L()},get children(){return g(l7,{get locale(){return e.locale},get mainIndicators(){return A()},get subIndicators(){return z()},onClose:()=>{I(!1)},onMainIndicatorChange:$=>{const x=[...A()];$.added?(k1(n,$.name,!0,{id:"candle_pane"}),x.push($.name)):(n==null||n.removeIndicator("candle_pane",$.name),x.splice(x.indexOf($.name),1)),P(x)},onSubIndicatorChange:$=>{const x={...z()};if($.added){const v=k1(n,$.name);v&&(x[$.name]=v)}else $.paneId&&(n==null||n.removeIndicator($.paneId,$.name),delete x[$.name]);O(x)}})}}),g(J,{get when(){return Y()},get children(){return g(u7,{get locale(){return e.locale},get timezone(){return U()},onClose:()=>{K(!1)},onConfirm:M})}}),g(J,{get when(){return F()},get children(){return g(h7,{get locale(){return e.locale},get currentStyles(){return w.utils.clone(n.getStyles())},onClose:()=>{B(!1)},onChange:$=>{n==null||n.setStyles($)},onRestoreDefault:$=>{const x={};$.forEach(v=>{const m=v.key;z1(x,m,w.utils.formatValue(ee(),m))}),n==null||n.setStyles(x)}})}}),g(J,{get when(){return T().length>0},get children(){return g(y7,{get locale(){return e.locale},get url(){return T()},onClose:()=>{H("")}})}}),g(J,{get when(){return Ue().visible},get children(){return g(f7,{get locale(){return e.locale},get params(){return Ue()},onClose:()=>{qe({visible:!1,indicatorName:"",paneId:"",calcParams:[]})},onConfirm:$=>{const x=Ue();n==null||n.overrideIndicator({name:x.indicatorName,calcParams:$},x.paneId)}})}}),g(J,{get when(){return $l()},get children(){return g(K7,{get x(){return yl()},get y(){return gl()},get items(){return[{key:"edit_style",label:_("edit_style",e.locale),icon:"🎨"},{key:"hide",label:_("hide",e.locale),icon:"👁"},{key:"delete",label:_("delete",e.locale),icon:"🗑",danger:!0}]},onSelect:$=>{const x=fl();$==="edit_style"?(it(x),hl({}),ot(!0)):$==="hide"?n==null||n.overrideOverlay({id:x,visible:!1}):$==="delete"&&(n==null||n.removeOverlay({id:x})),lt(!1)},onClose:()=>lt(!1)})}}),g(J,{get when(){return ll()},get children(){return g(P7,{get locale(){return e.locale},get overlays(){return cl()},onToggleVisibility:($,x)=>{n==null||n.overrideOverlay({id:$,visible:x})},onRemove:$=>{n==null||n.removeOverlay({id:$}),Vn()},onSelect:$=>{},onClose:()=>zn(!1)})}}),g(J,{get when(){return _l()},get children(){return g(O7,{get locale(){return e.locale},get overlayId(){return Kn()},get currentStyles(){return dl()},onApply:($,x)=>{n==null||n.overrideOverlay({id:$,styles:{line:{color:x.lineColor,size:x.lineWidth,style:x.lineStyle},polygon:{color:x.lineColor,borderColor:x.lineColor,borderSize:x.lineWidth,borderStyle:x.lineStyle}}})},onClose:()=>ot(!1)})}}),g(Ti,{get locale(){return e.locale},get symbol(){return d()},get spread(){return X()},get period(){return k()},get periods(){return e.periods},get chartType(){return e1()},onMenuClick:async()=>{try{await m0(()=>ae(!X())),n==null||n.resize()}catch($){console.warn("DrawingBar transition error:",$)}},onSymbolClick:()=>{Xe(!ve())},onPeriodChange:D,onChartTypeChange:$=>{S1($),n==null||n.setStyles({candle:{type:$}})},onIndicatorClick:()=>{I($=>!$)},onTimezoneClick:()=>{K($=>!$)},onSettingClick:()=>{B($=>!$)},onScreenshotClick:()=>{if(n){const $=n.getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");H($)}}}),(()=>{const $=H7.cloneNode(!0),x=$.firstChild;p($,g(J,{get when(){return at()},get children(){return g(kn,{})}}),x),p($,g(J,{get when(){return X()},get children(){return g(r7,{get locale(){return e.locale},onDrawingItemClick:m=>{n==null||n.createOverlay(m)},onModeChange:m=>{n==null||n.overrideOverlay({mode:m})},onLockChange:m=>{n==null||n.overrideOverlay({lock:m})},onVisibleChange:m=>{n==null||n.overrideOverlay({visible:m})},onRemoveClick:m=>{n==null||n.removeOverlay({groupId:m})}})}}),x),x.$$contextmenu=m=>{m.preventDefault(),pl(m.clientX),ml(m.clientY);const R=Kn();R&&(Cl(R),lt(!0))};const v=t;return typeof v=="function"?_1(v,x):t=x,N(()=>se(x,"data-drawing-bar-visible",X())),$})(),g(J,{get when(){return rt()},get children(){return g(S7,{get locale(){return e.locale},get status(){return V()},get index(){return pe()},get total(){return st()},get speed(){return Me()},onPlay:()=>E==null?void 0:E.play(),onPause:()=>E==null?void 0:E.pause(),onStepForward:()=>E==null?void 0:E.stepForward(),onStepBackward:()=>E==null?void 0:E.stepBackward(),onSpeedChange:$=>{Ze($),E==null||E.setSpeed($)},onSeek:$=>E==null?void 0:E.seekTo($),onExit:()=>{E==null||E.stop(),Ve(!1)}})}})]};re(["contextmenu"]);const Y7=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"></path></svg>').cloneNode(!0);class W7{constructor(t){S(this,"_chartApi",null);S(this,"_readyResolve",null);if(w.utils.isString(t.container)){if(this._container=document.getElementById(t.container),!this._container)throw new Error("Container is null")}else this._container=t.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",t.theme??"light"),this._readyPromise=new Promise(a=>{this._readyResolve=a});const n=this;S0(()=>g(Q7,{ref:a=>{var s;n._chartApi=a,(s=n._readyResolve)==null||s.call(n)},get styles(){return t.styles??{}},get watermark(){return t.watermark??Y7},get theme(){return t.theme??"light"},get locale(){return t.locale??"zh-CN"},get drawingBarVisible(){return t.drawingBarVisible??!0},get symbol(){return t.symbol},get period(){return t.period},get periods(){return t.periods??[{multiplier:1,timespan:"minute",text:"1m"},{multiplier:5,timespan:"minute",text:"5m"},{multiplier:15,timespan:"minute",text:"15m"},{multiplier:1,timespan:"hour",text:"1H"},{multiplier:2,timespan:"hour",text:"2H"},{multiplier:4,timespan:"hour",text:"4H"},{multiplier:1,timespan:"day",text:"D"},{multiplier:1,timespan:"week",text:"W"},{multiplier:1,timespan:"month",text:"M"},{multiplier:1,timespan:"year",text:"Y"}]},get timezone(){return t.timezone??"Asia/Shanghai"},get mainIndicators(){return t.mainIndicators??["MA"]},get subIndicators(){return t.subIndicators??["VOL"]},get datafeed(){return t.datafeed},get persistence(){return t.persistence??{enabled:!1}},get onError(){return t.onError??(()=>{})}}),this._container)}ready(){return this._readyPromise}setTheme(t){var n,a;(n=this._container)==null||n.setAttribute("data-theme",t),(a=this._chartApi)==null||a.setTheme(t)}getTheme(){var t;return((t=this._chartApi)==null?void 0:t.getTheme())??"light"}setStyles(t){var n;(n=this._chartApi)==null||n.setStyles(t)}getStyles(){var t;return((t=this._chartApi)==null?void 0:t.getStyles())??{}}setLocale(t){var n;(n=this._chartApi)==null||n.setLocale(t)}getLocale(){var t;return((t=this._chartApi)==null?void 0:t.getLocale())??"zh-CN"}setTimezone(t){var n;(n=this._chartApi)==null||n.setTimezone(t)}getTimezone(){var t;return((t=this._chartApi)==null?void 0:t.getTimezone())??""}setSymbol(t){var n;(n=this._chartApi)==null||n.setSymbol(t)}getSymbol(){var t;return((t=this._chartApi)==null?void 0:t.getSymbol())??{ticker:""}}setPeriod(t){var n;(n=this._chartApi)==null||n.setPeriod(t)}getPeriod(){var t;return((t=this._chartApi)==null?void 0:t.getPeriod())??{multiplier:1,timespan:"day",text:"D"}}destroy(){this._container&&(w.dispose(this._container),this._container.classList.remove("klinecharts-pro"),this._container.removeAttribute("data-theme"),this._container.innerHTML="",this._container=null),this._chartApi=null}}class G7{constructor(t=!0,n){S(this,"_prefix");S(this,"_enabled");this._enabled=t,this._prefix=n??i7}_key(t){return`${this._prefix}:${t}`}_get(t){if(!this._enabled)return null;try{const n=localStorage.getItem(this._key(t));return n?JSON.parse(n):null}catch{return null}}_set(t,n){if(this._enabled)try{localStorage.setItem(this._key(t),JSON.stringify(n))}catch(a){console.warn("[ChartStore] Failed to save:",t,a)}}_remove(t){this._enabled&&localStorage.removeItem(this._key(t))}getTheme(){return this._get("theme")}setTheme(t){this._set("theme",t)}getLocale(){return this._get("locale")}setLocale(t){this._set("locale",t)}getTimezone(){return this._get("timezone")}setTimezone(t){this._set("timezone",t)}getSymbol(){return this._get("symbol")}setSymbol(t){this._set("symbol",t)}getPeriod(){return this._get("period")}setPeriod(t){this._set("period",t)}getMainIndicators(){return this._get("mainIndicators")}setMainIndicators(t){this._set("mainIndicators",t)}getSubIndicators(){return this._get("subIndicators")}setSubIndicators(t){this._set("subIndicators",t)}getStyles(){return this._get("styles")}setStyles(t){this._set("styles",t)}getDrawings(t){const n=this._get("drawings");return(n==null?void 0:n[t])??null}setDrawings(t,n){const a=this._get("drawings")??{};a[t]=n,this._set("drawings",a)}getAlerts(){return this._get("alerts")??[]}setAlerts(t){this._set("alerts",t)}addAlert(t){const n=this.getAlerts();n.push(t),this.setAlerts(n)}removeAlert(t){const n=this.getAlerts().filter(a=>a.id!==t);this.setAlerts(n)}getAll(){return{theme:this.getTheme()??void 0,locale:this.getLocale()??void 0,timezone:this.getTimezone()??void 0,symbol:this.getSymbol()??void 0,period:this.getPeriod()??void 0,mainIndicators:this.getMainIndicators()??void 0,styles:this.getStyles()??void 0,alerts:this.getAlerts()}}clear(){["theme","locale","timezone","symbol","period","mainIndicators","subIndicators","styles","drawings","alerts"].forEach(n=>this._remove(n))}}class X7{constructor(t){S(this,"_store");S(this,"_undoStack",[]);S(this,"_redoStack",[]);S(this,"_maxHistory",50);this._store=t}pushAction(t){this._undoStack.push(t),this._undoStack.length>this._maxHistory&&this._undoStack.shift(),this._redoStack=[]}canUndo(){return this._undoStack.length>0}canRedo(){return this._redoStack.length>0}undo(){const t=this._undoStack.pop();return t?(this._redoStack.push(t),t):null}redo(){const t=this._redoStack.pop();return t?(this._undoStack.push(t),t):null}saveDrawings(t,n){this._store.setDrawings(t,n)}loadDrawings(t){return this._store.getDrawings(t)??[]}exportDrawings(t){const n=this.loadDrawings(t);return JSON.stringify({ticker:t,drawings:n,exportedAt:new Date().toISOString()},null,2)}importDrawings(t){try{const n=JSON.parse(t);return n.ticker&&Array.isArray(n.drawings)?(this.saveDrawings(n.ticker,n.drawings),{ticker:n.ticker,drawings:n.drawings}):null}catch{return console.warn("[DrawingStore] Failed to import drawings"),null}}clearHistory(){this._undoStack=[],this._redoStack=[]}}const Rn=["#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FFEAA7","#DDA0DD","#98D8C8","#F7DC6F"];class J7{constructor(t,n){S(this,"_symbols",[]);S(this,"_widget",null);S(this,"_datafeed",null);S(this,"_colorIndex",0);S(this,"_onChange");this._widget=t,this._datafeed=n}setOnChange(t){this._onChange=t}getSymbols(){return[...this._symbols]}async addSymbol(t,n,a,s){var r;if(this._symbols.find(i=>i.symbol.ticker===t.ticker)||!this._datafeed)return!1;try{const i=await this._datafeed.getHistoryKLineData(t,n,a,s);if(i.length===0)return!1;const o=Rn[this._colorIndex%Rn.length];this._colorIndex++;const c={symbol:t,data:i,color:o,visible:!0,normalizedData:this._normalizeData(i)};return this._symbols.push(c),(r=this._onChange)==null||r.call(this),!0}catch(i){return console.error("Failed to add comparison symbol:",i),!1}}removeSymbol(t){var n;this._symbols=this._symbols.filter(a=>a.symbol.ticker!==t),(n=this._onChange)==null||n.call(this)}toggleVisibility(t){var a;const n=this._symbols.find(s=>s.symbol.ticker===t);n&&(n.visible=!n.visible,(a=this._onChange)==null||a.call(this))}_normalizeData(t){if(t.length===0)return[];const n=t[0].close;return n===0?[]:t.map(a=>({timestamp:a.timestamp,value:(a.close-n)/n*100}))}clear(){var t;this._symbols=[],this._colorIndex=0,(t=this._onChange)==null||t.call(this)}destroy(){this.clear(),this._widget=null,this._datafeed=null,this._onChange=void 0}}class q7 extends Error{constructor(n,a,s=!1){super(n);S(this,"code");S(this,"retryable");this.name="ChartError",this.code=a,this.retryable=s}}class el extends q7{constructor(t){super(t,"TIMEOUT_ERROR",!0),this.name="TimeoutError"}}async function tl(e,t={}){const{maxAttempts:n=3,baseDelay:a=1e3,maxDelay:s=1e4,onRetry:r}=t;let i=new Error("Unknown error");for(let o=1;o<=n;o++)try{return await e()}catch(c){if(i=c instanceof Error?c:new Error(String(c)),o<n){const u=Math.min(a*Math.pow(2,o-1),s);r==null||r(o,i),await new Promise(l=>setTimeout(l,u))}}throw i}function nl(e,t,n){return new Promise((a,s)=>{const r=setTimeout(()=>{s(new el(n??`Operation timed out after ${t}ms`))},t);e.then(i=>{clearTimeout(r),a(i)}).catch(i=>{clearTimeout(r),s(i)})})}class al{constructor(){S(this,"_handlers",[]);S(this,"_lastError",null)}onError(t){return this._handlers.push(t),()=>{const n=this._handlers.indexOf(t);n>-1&&this._handlers.splice(n,1)}}report(t){this._lastError=t,console.error("[KLineChartPro]",t),this._handlers.forEach(n=>{try{n(t)}catch(a){console.error("Error in error handler:",a)}})}getLastError(){return this._lastError}clear(){this._lastError=null}}const jn="templates";class rl{constructor(t){S(this,"_store");this._store=t}saveTemplate(t){const n=this._getAll(),a=n.findIndex(s=>s.name===t.name);a>=0?n[a]=t:n.push(t),this._saveAll(n)}loadTemplate(t){return this._getAll().find(a=>a.name===t)??null}deleteTemplate(t){const n=this._getAll().filter(a=>a.name!==t);this._saveAll(n)}getTemplateNames(){return this._getAll().map(t=>t.name)}getTemplates(){return this._getAll()}_getAll(){try{const t=localStorage.getItem(`${this._store._prefix}:${jn}`);return t?JSON.parse(t):[]}catch{return[]}}_saveAll(t){try{localStorage.setItem(`${this._store._prefix}:${jn}`,JSON.stringify(t))}catch(n){console.warn("[ChartTemplateManager] Failed to save templates:",n)}}}class sl{constructor(){S(this,"_charts",[]);S(this,"_isSyncing",!1)}addChart(t){this._charts.includes(t)||(this._charts.push(t),t.subscribeAction("onCrosshairChange",n=>{var a;if(!this._isSyncing){this._isSyncing=!0;try{const{x:s,y:r,kLineData:i}=n||{},o=i==null?void 0:i.timestamp;for(const c of this._charts)if(c!==t)try{(a=c.executeCrosshairChange)==null||a.call(c,{x:s,y:r,timestamp:o})}catch{}}finally{this._isSyncing=!1}}}))}removeChart(t){const n=this._charts.indexOf(t);if(n>=0){this._charts.splice(n,1);try{t.unsubscribeAction("onCrosshairChange")}catch{}}}getChartCount(){return this._charts.length}destroy(){for(const t of this._charts)try{t.unsubscribeAction("onCrosshairChange")}catch{}this._charts=[]}}const qb="";d0.forEach(e=>{w.registerOverlay(e)});function ol(e){if("template"in e){const{template:t,label:n}=e;w.registerOverlay(t),de.addOverlay({name:t.name,label:n??t.name})}else w.registerOverlay(e),de.addOverlay({name:e.name,label:e.name})}function il(e){if("template"in e){const{template:t,label:n,paneType:a}=e;w.registerIndicator(t),de.addIndicator({name:t.name,label:n??t.shortName??t.name,paneType:a??"sub"})}else w.registerIndicator(e),de.addIndicator({name:e.name,label:e.shortName??e.name,paneType:"sub"})}j.BarReplayManager=On,j.ChartStore=G7,j.ChartTemplateManager=rl,j.ComparisonManager=J7,j.CrosshairSyncManager=sl,j.DefaultDatafeed=h0,j.DrawingStore=X7,j.ErrorManager=al,j.KLineChartPro=W7,j.KeyboardShortcutManager=Bn,j.customRegistry=de,j.loadLocales=Li,j.registerCustomIndicator=il,j.registerCustomOverlay=ol,j.withRetry=tl,j.withTimeout=nl,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(G,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("klinecharts")):typeof define=="function"&&define.amd?define(["exports","klinecharts"],T):(G=typeof globalThis<"u"?globalThis:G||self,T(G.klinechartspro={},G.klinecharts))})(this,function(G,T){"use strict";var W8=Object.defineProperty;var G8=(G,T,be)=>T in G?W8(G,T,{enumerable:!0,configurable:!0,writable:!0,value:be}):G[T]=be;var N=(G,T,be)=>(G8(G,typeof T!="symbol"?T+"":T,be),be);function be(e,t,n){const a=(e.x-t.x)*Math.cos(n)-(e.y-t.y)*Math.sin(n)+t.x,r=(e.x-t.x)*Math.sin(n)+(e.y-t.y)*Math.cos(n)+t.y;return{x:a,y:r}}function Kt(e,t){if(e.length>1){let n;return e[0].x===e[1].x&&e[0].y!==e[1].y?e[0].y<e[1].y?n={x:e[0].x,y:t.height}:n={x:e[0].x,y:0}:e[0].x>e[1].x?n={x:0,y:T.utils.getLinearYFromCoordinates(e[0],e[1],{x:0,y:e[0].y})}:n={x:t.width,y:T.utils.getLinearYFromCoordinates(e[0],e[1],{x:t.width,y:e[0].y})},{coordinates:[e[0],n]}}return[]}function x1(e,t){const n=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);return Math.sqrt(n*n+a*a)}const ca={name:"arrow",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{if(e.length>1){const t=e[1].x>e[0].x?0:1,n=T.utils.getLinearSlopeIntercept(e[0],e[1]);let a;n?a=Math.atan(n[0])+Math.PI*t:e[1].y>e[0].y?a=Math.PI/2:a=Math.PI/2*3;const r=be({x:e[1].x-8,y:e[1].y+4},e[1],a),s=be({x:e[1].x-8,y:e[1].y-4},e[1],a);return[{type:"line",attrs:{coordinates:e}},{type:"line",ignoreEvent:!0,attrs:{coordinates:[r,e[1],s]}}]}return[]}},da={name:"circle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{circle:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>{if(e.length>1){const t=x1(e[0],e[1]);return{type:"circle",attrs:{...e[0],r:t},styles:{style:"stroke_fill"}}}return[]}},ua={name:"rect",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>e.length>1?[{type:"polygon",attrs:{coordinates:[e[0],{x:e[1].x,y:e[0].y},e[1],{x:e[0].x,y:e[1].y}]},styles:{style:"stroke_fill"}}]:[]},_a={name:"parallelogram",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>{if(e.length===2)return[{type:"line",ignoreEvent:!0,attrs:{coordinates:e}}];if(e.length===3){const t={x:e[0].x+(e[2].x-e[1].x),y:e[2].y};return[{type:"polygon",attrs:{coordinates:[e[0],e[1],e[2],t]},styles:{style:"stroke_fill"}}]}return[]},performEventPressedMove:({points:e,performPointIndex:t,performPoint:n})=>{t<2&&(e[0].price=n.price,e[1].price=n.price)},performEventMoveForDrawing:({currentStep:e,points:t,performPoint:n})=>{e===2&&(t[0].price=n.price)}},ha={name:"triangle",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>[{type:"polygon",attrs:{coordinates:e},styles:{style:"stroke_fill"}}]},ga={name:"fibonacciCircle",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{if(e.length>1){const t=Math.abs(e[0].x-e[1].x),n=Math.abs(e[0].y-e[1].y),a=Math.sqrt(t*t+n*n),r=[.236,.382,.5,.618,.786,1],s=[],i=[];return r.forEach(o=>{const l=a*o;s.push({...e[0],r:l}),i.push({x:e[0].x,y:e[0].y+l+6,text:`${(o*100).toFixed(1)}%`})}),[{type:"circle",attrs:s,styles:{style:"stroke"}},{type:"text",ignoreEvent:!0,attrs:i}]}return[]}},$a={name:"fibonacciSegment",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,precision:n})=>{const a=[],r=[];if(e.length>1){const s=e[1].x>e[0].x?e[0].x:e[1].x,i=[1,.786,.618,.5,.382,.236,0],o=e[0].y-e[1].y,l=t.points,u=l[0].value-l[1].value;i.forEach(d=>{const h=e[1].y+o*d,p=(l[1].value+u*d).toFixed(n.price);a.push({coordinates:[{x:e[0].x,y:h},{x:e[1].x,y:h}]}),r.push({x:s,y:h,text:`${p} (${(d*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:a},{type:"text",ignoreEvent:!0,attrs:r}]}},ya={name:"fibonacciSpiral",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,bounding:t})=>{if(e.length>1){const n=x1(e[0],e[1])/Math.sqrt(24),a=e[1].x>e[0].x?0:1,r=T.utils.getLinearSlopeIntercept(e[0],e[1]);let s;r?s=Math.atan(r[0])+Math.PI*a:e[1].y>e[0].y?s=Math.PI/2:s=Math.PI/2*3;const i=be({x:e[0].x-n,y:e[0].y},e[0],s),o=be({x:e[0].x-n,y:e[0].y-n},e[0],s),l=[{...i,r:n,startAngle:s,endAngle:s+Math.PI/2},{...o,r:n*2,startAngle:s+Math.PI/2,endAngle:s+Math.PI}];let u=e[0].x-n,d=e[0].y-n;for(let h=2;h<9;h++){const p=l[h-2].r+l[h-1].r;let x=0;switch(h%4){case 0:{x=s,u-=l[h-2].r;break}case 1:{x=s+Math.PI/2,d-=l[h-2].r;break}case 2:{x=s+Math.PI,u+=l[h-2].r;break}case 3:{x=s+Math.PI/2*3,d+=l[h-2].r;break}}const S=x+Math.PI/2,f=be({x:u,y:d},e[0],s);l.push({...f,r:p,startAngle:x,endAngle:S})}return[{type:"arc",attrs:l},{type:"line",attrs:Kt(e,t)}]}return[]}},pa={name:"fibonacciSpeedResistanceFan",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,bounding:t})=>{const n=[];let a=[];const r=[];if(e.length>1){const s=e[1].x>e[0].x?-38:4,i=e[1].y>e[0].y?-2:20,o=e[1].x-e[0].x,l=e[1].y-e[0].y;[1,.75,.618,.5,.382,.25,0].forEach(d=>{const h=e[1].x-o*d,p=e[1].y-l*d;n.push({coordinates:[{x:h,y:e[0].y},{x:h,y:e[1].y}]}),n.push({coordinates:[{x:e[0].x,y:p},{x:e[1].x,y:p}]}),a=a.concat(Kt([e[0],{x:h,y:e[1].y}],t)),a=a.concat(Kt([e[0],{x:e[1].x,y:p}],t)),r.unshift({x:e[0].x+s,y:p+10,text:`${d.toFixed(3)}`}),r.unshift({x:h-18,y:e[0].y+i,text:`${d.toFixed(3)}`})})}return[{type:"line",attrs:n},{type:"line",attrs:a},{type:"text",ignoreEvent:!0,attrs:r}]}},ma={name:"fibonacciExtension",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,precision:n})=>{const a=[],r=[];if(e.length>2){const s=t.points,i=s[1].value-s[0].value,o=e[1].y-e[0].y,l=[0,.236,.382,.5,.618,.786,1],u=e[2].x>e[1].x?e[1].x:e[2].x;l.forEach(d=>{const h=e[2].y+o*d,p=(s[2].value+i*d).toFixed(n.price);a.push({coordinates:[{x:e[1].x,y:h},{x:e[2].x,y:h}]}),r.push({x:u,y:h,text:`${p} (${(d*100).toFixed(1)}%)`,baseline:"bottom"})})}return[{type:"line",attrs:{coordinates:e},styles:{style:"dashed"}},{type:"line",attrs:a},{type:"text",ignoreEvent:!0,attrs:r}]}},fa={name:"gannBox",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e})=>{if(e.length>1){const t=(e[1].y-e[0].y)/4,n=e[1].x-e[0].x,a=[{coordinates:[e[0],{x:e[1].x,y:e[1].y-t}]},{coordinates:[e[0],{x:e[1].x,y:e[1].y-t*2}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[0].y+t}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[0].y+t*2}]},{coordinates:[{...e[0]},{x:e[0].x+n*.236,y:e[1].y}]},{coordinates:[{...e[0]},{x:e[0].x+n*.5,y:e[1].y}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[0].x+n*.236,y:e[0].y}]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[0].x+n*.5,y:e[0].y}]}],r=[{coordinates:[e[0],e[1]]},{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[0].y}]}];return[{type:"line",attrs:[{coordinates:[e[0],{x:e[1].x,y:e[0].y}]},{coordinates:[{x:e[1].x,y:e[0].y},e[1]]},{coordinates:[e[1],{x:e[0].x,y:e[1].y}]},{coordinates:[{x:e[0].x,y:e[1].y},e[0]]}]},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[e[0],{x:e[1].x,y:e[0].y},e[1],{x:e[0].x,y:e[1].y}]},styles:{style:"fill"}},{type:"line",attrs:a,styles:{style:"dashed"}},{type:"line",attrs:r}]}return[]}},va={name:"threeWaves",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},Ca={name:"fiveWaves",totalStep:7,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},ba={name:"eightWaves",totalStep:10,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},xa={name:"anyWaves",totalStep:Number.MAX_SAFE_INTEGER,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{const t=e.map((n,a)=>({...n,text:`(${a})`,baseline:"bottom"}));return[{type:"line",attrs:{coordinates:e}},{type:"text",ignoreEvent:!0,attrs:t}]}},La=[ca,da,ua,ha,_a,ga,$a,ya,pa,ma,fa,va,Ca,ba,xa,{name:"abcd",totalStep:5,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e})=>{let t=[],n=[];const a=["A","B","C","D"],r=e.map((s,i)=>({...s,baseline:"bottom",text:`(${a[i]})`}));return e.length>2&&(t=[e[0],e[2]],e.length>3&&(n=[e[1],e[3]])),[{type:"line",attrs:{coordinates:e}},{type:"line",attrs:[{coordinates:t},{coordinates:n}],styles:{style:"dashed"}},{type:"text",ignoreEvent:!0,attrs:r}]}},{name:"xabcd",totalStep:6,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,styles:{polygon:{color:"rgba(22, 119, 255, 0.15)"}},createPointFigures:({coordinates:e,overlay:t})=>{const n=[],a=[],r=["X","A","B","C","D"],s=e.map((i,o)=>({...i,baseline:"bottom",text:`(${r[o]})`}));return e.length>2&&(n.push({coordinates:[e[0],e[2]]}),a.push({coordinates:[e[0],e[1],e[2]]}),e.length>3&&(n.push({coordinates:[e[1],e[3]]}),e.length>4&&(n.push({coordinates:[e[2],e[4]]}),a.push({coordinates:[e[2],e[3],e[4]]})))),[{type:"line",attrs:{coordinates:e}},{type:"line",attrs:n,styles:{style:"dashed"}},{type:"polygon",ignoreEvent:!0,attrs:a},{type:"text",ignoreEvent:!0,attrs:s}]}},{name:"longPosition",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({overlay:e,coordinates:t})=>{var h,p,x,S;const n=t.length;if(n===0)return[];const a=t[0].y,r=t[0].x,s=r;let i=r+150;n>1&&(i=Math.max(r+20,t[1].x));const o=[],l=(h=e.points[0])==null?void 0:h.value,u=(()=>{const g=((l==null?void 0:l.toString())||"").split(".")[1]||"";return Math.min(5,Math.max(2,g.length))})(),d=u>=4?Math.pow(10,u-1):100;if(o.push({type:"line",attrs:{coordinates:[{x:s,y:a},{x:i,y:a}]},styles:{color:"#2962ff",size:2}}),l!==void 0&&o.push({type:"text",attrs:{x:s+10,y:a+4,text:`LONG Entry ${l.toFixed(u)}`},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(41, 98, 255, 0.85)",paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,borderRadius:3}}),n===1)return o;if(n>=2){const f=t[1].y,g=(p=e.points[1])==null?void 0:p.value;if(o.push({type:"polygon",attrs:{coordinates:[{x:s,y:a},{x:i,y:a},{x:i,y:f},{x:s,y:f}]},styles:{style:"fill",color:"rgba(8, 153, 129, 0.15)"}}),o.push({type:"line",attrs:{coordinates:[{x:s,y:f},{x:i,y:f}]},styles:{color:"#089981",size:1.5,style:"dashed",dashedValue:[5,3]}}),g!==void 0&&l!==void 0){const v=(g-l)*d,M=Math.abs(v),A=Math.abs((g-l)/l*100),F=v>=0?"+":"-",B=(a+f)/2;o.push({type:"text",attrs:{x:s+10,y:f+4,text:`TP ${g.toFixed(u)}`},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(8, 153, 129, 0.85)",paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,borderRadius:3}}),o.push({type:"text",ignoreEvent:!0,attrs:{x:s+10,y:B-6,text:`${F}${M.toFixed(1)} pips (${F}${A.toFixed(2)}%)`},styles:{color:"#ffffff",size:12,family:"Inter, sans-serif",weight:"600"}})}}if(n>=3){const f=t[2].y,g=(x=e.points[2])==null?void 0:x.value;if(o.push({type:"polygon",attrs:{coordinates:[{x:s,y:a},{x:i,y:a},{x:i,y:f},{x:s,y:f}]},styles:{style:"fill",color:"rgba(242, 54, 69, 0.15)"}}),o.push({type:"line",attrs:{coordinates:[{x:s,y:f},{x:i,y:f}]},styles:{color:"#f23645",size:1.5,style:"dashed",dashedValue:[5,3]}}),g!==void 0&&l!==void 0){const v=(g-l)*d,M=Math.abs(v),A=Math.abs((g-l)/l*100),F=v>=0?"+":"-",B=(a+f)/2;if(o.push({type:"text",attrs:{x:s+10,y:f+4,text:`SL ${g.toFixed(u)}`},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(242, 54, 69, 0.85)",paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,borderRadius:3}}),o.push({type:"text",ignoreEvent:!0,attrs:{x:s+10,y:B-6,text:`${F}${M.toFixed(1)} pips (${F}${A.toFixed(2)}%)`},styles:{color:"#ffffff",size:12,family:"Inter, sans-serif",weight:"600"}}),((S=e.points[1])==null?void 0:S.value)!==void 0){const O=e.points[1].value,R=Math.abs(l-g),j=Math.abs(O-l),D=R>0?(j/R).toFixed(2):"∞",z=(O-l)*d,K=Math.abs(z).toFixed(1),H=`R:R 1:${D} | Risk: ${M.toFixed(1)}p | Reward: ${K}p`;o.push({type:"text",ignoreEvent:!0,attrs:{x:i-8,y:Math.min(a,t[1].y)-10,text:H,align:"right",baseline:"bottom"},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(41, 98, 255, 0.90)",paddingLeft:8,paddingRight:8,paddingTop:4,paddingBottom:4,borderRadius:3}})}}}return o},performEventMoveForDrawing:({currentStep:e,points:t,performPoint:n})=>{e===2?t[1]&&(t[1].dataIndex=n.dataIndex,n.timestamp&&(t[1].timestamp=n.timestamp),t[1].value=n.value):e===3&&t[2]&&(t[1]&&(t[2].dataIndex=t[1].dataIndex,t[1].timestamp&&(t[2].timestamp=t[1].timestamp)),t[2].value=n.value)},performEventPressedMove:({points:e,performPointIndex:t,performPoint:n})=>{if(t===1||t===2)e[t]&&(e[t].value=n.value),e[1]&&(e[1].dataIndex=n.dataIndex,n.timestamp&&(e[1].timestamp=n.timestamp)),e[2]&&(e[2].dataIndex=n.dataIndex,n.timestamp&&(e[2].timestamp=n.timestamp));else if(t===0&&e[0]){const a=n.value-e[0].value,r=n.dataIndex-(e[0].dataIndex||0),s=(n.timestamp||0)-(e[0].timestamp||0);e[0].value=n.value,e[0].dataIndex=n.dataIndex,n.timestamp&&(e[0].timestamp=n.timestamp),e[1]&&(e[1].value+=a,e[1].dataIndex!==void 0&&(e[1].dataIndex+=r),e[1].timestamp!==void 0&&(e[1].timestamp+=s)),e[2]&&(e[2].value+=a,e[2].dataIndex!==void 0&&(e[2].dataIndex+=r),e[2].timestamp!==void 0&&(e[2].timestamp+=s))}}},{name:"shortPosition",totalStep:4,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({overlay:e,coordinates:t})=>{var h,p,x,S;const n=t.length;if(n===0)return[];const a=t[0].y,r=t[0].x,s=r;let i=r+150;n>1&&(i=Math.max(r+20,t[1].x));const o=[],l=(h=e.points[0])==null?void 0:h.value,u=(()=>{const g=((l==null?void 0:l.toString())||"").split(".")[1]||"";return Math.min(5,Math.max(2,g.length))})(),d=u>=4?Math.pow(10,u-1):100;if(o.push({type:"line",attrs:{coordinates:[{x:s,y:a},{x:i,y:a}]},styles:{color:"#e040fb",size:2}}),l!==void 0&&o.push({type:"text",attrs:{x:s+10,y:a+4,text:`SHORT Entry ${l.toFixed(u)}`},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(224, 64, 251, 0.85)",paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,borderRadius:3}}),n===1)return o;if(n>=2){const f=t[1].y,g=(p=e.points[1])==null?void 0:p.value;if(o.push({type:"polygon",attrs:{coordinates:[{x:s,y:a},{x:i,y:a},{x:i,y:f},{x:s,y:f}]},styles:{style:"fill",color:"rgba(8, 153, 129, 0.15)"}}),o.push({type:"line",attrs:{coordinates:[{x:s,y:f},{x:i,y:f}]},styles:{color:"#089981",size:1.5,style:"dashed",dashedValue:[5,3]}}),g!==void 0&&l!==void 0){const v=(l-g)*d,M=Math.abs(v),A=Math.abs((l-g)/l*100),F=v>=0?"+":"-",B=(a+f)/2;o.push({type:"text",attrs:{x:s+10,y:f+4,text:`TP ${g.toFixed(u)}`},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(8, 153, 129, 0.85)",paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,borderRadius:3}}),o.push({type:"text",ignoreEvent:!0,attrs:{x:s+10,y:B-6,text:`${F}${M.toFixed(1)} pips (${F}${A.toFixed(2)}%)`},styles:{color:"#ffffff",size:12,family:"Inter, sans-serif",weight:"600"}})}}if(n>=3){const f=t[2].y,g=(x=e.points[2])==null?void 0:x.value;if(o.push({type:"polygon",attrs:{coordinates:[{x:s,y:a},{x:i,y:a},{x:i,y:f},{x:s,y:f}]},styles:{style:"fill",color:"rgba(242, 54, 69, 0.15)"}}),o.push({type:"line",attrs:{coordinates:[{x:s,y:f},{x:i,y:f}]},styles:{color:"#f23645",size:1.5,style:"dashed",dashedValue:[5,3]}}),g!==void 0&&l!==void 0){const v=(l-g)*d,M=Math.abs(v),A=Math.abs((l-g)/l*100),F=v>=0?"+":"-",B=(a+f)/2;if(o.push({type:"text",attrs:{x:s+10,y:f+4,text:`SL ${g.toFixed(u)}`},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(242, 54, 69, 0.85)",paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,borderRadius:3}}),o.push({type:"text",ignoreEvent:!0,attrs:{x:s+10,y:B-6,text:`${F}${M.toFixed(1)} pips (${F}${A.toFixed(2)}%)`},styles:{color:"#ffffff",size:12,family:"Inter, sans-serif",weight:"600"}}),((S=e.points[1])==null?void 0:S.value)!==void 0){const O=e.points[1].value,R=Math.abs(g-l),j=Math.abs(l-O),D=R>0?(j/R).toFixed(2):"∞",z=(l-O)*d,K=Math.abs(z).toFixed(1),H=`R:R 1:${D} | Risk: ${M.toFixed(1)}p | Reward: ${K}p`;o.push({type:"text",ignoreEvent:!0,attrs:{x:i-8,y:Math.max(a,t[1].y)+10,text:H,align:"right",baseline:"top"},styles:{color:"#ffffff",size:11,family:"Inter, sans-serif",weight:"700",backgroundColor:"rgba(224, 64, 251, 0.90)",paddingLeft:8,paddingRight:8,paddingTop:4,paddingBottom:4,borderRadius:3}})}}}return o},performEventMoveForDrawing:({currentStep:e,points:t,performPoint:n})=>{e===2?t[1]&&(t[1].dataIndex=n.dataIndex,n.timestamp&&(t[1].timestamp=n.timestamp),t[1].value=n.value):e===3&&t[2]&&(t[1]&&(t[2].dataIndex=t[1].dataIndex,t[1].timestamp&&(t[2].timestamp=t[1].timestamp)),t[2].value=n.value)},performEventPressedMove:({points:e,performPointIndex:t,performPoint:n})=>{if(t===1||t===2)e[t]&&(e[t].value=n.value),e[1]&&(e[1].dataIndex=n.dataIndex,n.timestamp&&(e[1].timestamp=n.timestamp)),e[2]&&(e[2].dataIndex=n.dataIndex,n.timestamp&&(e[2].timestamp=n.timestamp));else if(t===0&&e[0]){const a=n.value-e[0].value,r=n.dataIndex-(e[0].dataIndex||0),s=(n.timestamp||0)-(e[0].timestamp||0);e[0].value=n.value,e[0].dataIndex=n.dataIndex,n.timestamp&&(e[0].timestamp=n.timestamp),e[1]&&(e[1].value+=a,e[1].dataIndex!==void 0&&(e[1].dataIndex+=r),e[1].timestamp!==void 0&&(e[1].timestamp+=s)),e[2]&&(e[2].value+=a,e[2].dataIndex!==void 0&&(e[2].dataIndex+=r),e[2].timestamp!==void 0&&(e[2].timestamp+=s))}}},{name:"frvp",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!1,styles:{rect:{color:"rgba(41, 98, 255, 0.25)"}},createPointFigures:({overlay:e,coordinates:t,bounding:n,xAxis:a,yAxis:r})=>{const s=e.points;if(t.length<2||!s||s.length<2)return[];if(s[0].dataIndex===void 0||s[1].dataIndex===void 0)return[];const i=Math.min(s[0].dataIndex,s[1].dataIndex),o=Math.max(s[0].dataIndex,s[1].dataIndex),l=e._bindingChart||window._klineChartInstance;if(!l)return[];const u=l.getDataList();if(!u||u.length===0)return[];const d=Math.max(0,i),h=Math.min(u.length-1,o);if(d>=h)return[];let p=-1/0,x=1/0,S=0;for(let m=d;m<=h;m++){const Y=u[m];Y.high>p&&(p=Y.high),Y.low<x&&(x=Y.low),S+=Y.volume||0}if(p<=x||S===0)return[];const f=40,g=(p-x)/f,v=new Array(f).fill(0);for(let m=d;m<=h;m++){const Y=u[m],ge=Y.volume||0;if(ge===0)continue;const Ce=Math.floor((Y.low-x)/g),ze=Math.floor((Y.high-x)/g),ht=Math.max(1,ze-Ce+1),it=ge/ht;for(let ke=Math.max(0,Ce);ke<=Math.min(f-1,ze);ke++)v[ke]+=it}let M=0,A=0;for(let m=0;m<f;m++)v[m]>M&&(M=v[m],A=m);const F=S*.7;let B=v[A],O=A,R=A;for(;B<F&&(O>0||R<f-1);){const m=O>0?v[O-1]:0,Y=R<f-1?v[R+1]:0;m>=Y&&O>0?(O--,B+=v[O]):R<f-1?(R++,B+=v[R]):(O--,B+=v[O])}const j=Math.min(t[0].x,t[1].x),D=Math.max(t[0].x,t[1].x),K=(D-j)*.4,H=[],I=M*.8,V=M*.15,ne=M*.3,oe=[],le=[],pe=new Set([A,R,O]),Ye=m=>{for(const Y of pe)if(Math.abs(m-Y)<=2)return!0;return!1};for(let m=0;m<f;m++)v[m]>=I&&m!==A&&!Ye(m)&&oe.push(m);for(let m=1;m<f-1;m++)Ye(m)||v[m]<V&&v[m]<v[m-1]&&v[m]<v[m+1]&&v[m-1]>ne&&v[m+1]>ne&&le.push(m);oe.sort((m,Y)=>v[Y]-v[m]),oe.splice(3),le.sort((m,Y)=>v[m]-v[Y]),le.splice(3);for(let m=0;m<f;m++){if(v[m]===0)continue;const Y=x+m*g,ge=x+(m+1)*g,Ce=r.convertToPixel(ge),ze=r.convertToPixel(Y),ht=v[m]/M*K,it=m>=O&&m<=R,ke=m===A,p1=oe.includes(m);let U;ke?U="rgba(255, 235, 59, 0.55)":p1?U="rgba(255, 152, 0, 0.40)":it?U="rgba(41, 98, 255, 0.35)":U="rgba(120, 123, 134, 0.20)",H.push({type:"rect",attrs:{x:j,y:Math.min(Ce,ze),width:ht,height:Math.abs(ze-Ce)-1},styles:{style:"fill",color:U,borderColor:ke?"rgba(255, 235, 59, 0.8)":"transparent",borderSize:ke?1:0}})}const Ne=(m,Y)=>m.length*Y*.58,Fe=x+(A+.5)*g,Be=r.convertToPixel(Fe),Oe=`POC ${Fe.toFixed(5)}`,Re=Ne(Oe,10)+10,We=x+(R+1)*g,Ge=x+O*g,Ae=r.convertToPixel(We),Q=r.convertToPixel(Ge),se=`VAH ${We.toFixed(5)}`,ye=Ne(se,10)+10,xe=`VAL ${Ge.toFixed(5)}`,_t=Ne(xe,10)+10,Le=[{id:"vah",y:Ae,text:se,w:ye,bg:"rgba(41, 98, 255, 0.85)",fg:"#ffffff",weight:"600",size:10},{id:"poc",y:Be,text:Oe,w:Re,bg:"#ffeb3b",fg:"#000000",weight:"700",size:10},{id:"val",y:Q,text:xe,w:_t,bg:"rgba(41, 98, 255, 0.85)",fg:"#ffffff",weight:"600",size:10}];Le.sort((m,Y)=>m.y-Y.y);const Ie=16;for(let m=1;m<Le.length;m++)Le[m].y-Le[m-1].y<Ie&&(Le[m].y=Le[m-1].y+Ie);H.push({type:"line",attrs:{coordinates:[{x:j,y:Be},{x:D,y:Be}]},styles:{style:"dashed",color:"rgba(255, 235, 59, 0.9)",size:1.5,dashedValue:[6,3]}}),H.push({type:"line",attrs:{coordinates:[{x:j,y:Ae},{x:D,y:Ae}]},styles:{style:"dashed",color:"rgba(41, 98, 255, 0.8)",size:1.5,dashedValue:[5,3]}}),H.push({type:"line",attrs:{coordinates:[{x:j,y:Q},{x:D,y:Q}]},styles:{style:"dashed",color:"rgba(41, 98, 255, 0.8)",size:1.5,dashedValue:[5,3]}});for(const m of Le)H.push({type:"text",attrs:{x:j-m.w-6,y:m.y,text:m.text},styles:{color:m.fg,size:m.size,family:"Inter, sans-serif",weight:m.weight,backgroundColor:m.bg,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,borderRadius:2}});for(const m of oe){const Y=x+(m+.5)*g,ge=r.convertToPixel(Y),Ce=j+v[m]/M*K;H.push({type:"line",attrs:{coordinates:[{x:j,y:ge},{x:Ce,y:ge}]},styles:{style:"dashed",color:"rgba(255, 152, 0, 0.5)",size:1,dashedValue:[2,2]}}),H.push({type:"text",attrs:{x:Ce+3,y:ge,text:"HVN"},styles:{color:"#ffffff",size:9,family:"Inter, sans-serif",weight:"600",backgroundColor:"rgba(255, 152, 0, 0.75)",paddingLeft:3,paddingRight:3,paddingTop:1,paddingBottom:1,borderRadius:2}})}for(const m of le){const Y=x+(m+.5)*g,ge=r.convertToPixel(Y),Ce=j+Math.max(4,v[m]/M*K);H.push({type:"line",attrs:{coordinates:[{x:j,y:ge},{x:D,y:ge}]},styles:{style:"dashed",color:"rgba(156, 39, 176, 0.35)",size:1,dashedValue:[2,4]}}),H.push({type:"text",attrs:{x:Ce+3,y:ge,text:"LVN"},styles:{color:"#ffffff",size:9,family:"Inter, sans-serif",weight:"600",backgroundColor:"rgba(156, 39, 176, 0.7)",paddingLeft:3,paddingRight:3,paddingTop:1,paddingBottom:1,borderRadius:2}})}return H.push({type:"line",attrs:{coordinates:[{x:j,y:r.convertToPixel(p)},{x:j,y:r.convertToPixel(x)}]},styles:{color:"rgba(120, 123, 134, 0.4)",size:1}}),H.push({type:"line",attrs:{coordinates:[{x:D,y:r.convertToPixel(p)},{x:D,y:r.convertToPixel(x)}]},styles:{color:"rgba(120, 123, 134, 0.4)",size:1}}),H}},{name:"measure",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t})=>{if(e.length<2)return[];const n=t.points;if(!n||n.length<2)return[];const a=n[0].value??0,s=(n[1].value??0)-a,i=a!==0?s/a*100:0,o=n[0].timestamp??0,l=n[1].timestamp??0,u=Math.abs(l-o),d=Math.floor(u/36e5),h=Math.floor(u%36e5/6e4),p=d>0?`${d}h ${h}m`:`${h}m`,x=(e[0].x+e[1].x)/2,S=(e[0].y+e[1].y)/2,f=s>=0,g=f?"#26A65B":"#EF5350",v=f?"+":"";return[{type:"line",attrs:{coordinates:[e[0],e[1]]},styles:{color:g,size:1,style:"dashed"}},{type:"line",attrs:{coordinates:[{x:e[0].x,y:e[0].y},{x:e[0].x,y:e[1].y}]},styles:{color:"rgba(150,150,150,0.4)",size:1,style:"dashed"}},{type:"line",attrs:{coordinates:[{x:e[0].x,y:e[1].y},{x:e[1].x,y:e[1].y}]},styles:{color:"rgba(150,150,150,0.4)",size:1,style:"dashed"}},{type:"text",ignoreEvent:!0,attrs:{x:x+8,y:S-8,text:`${v}${s.toFixed(2)} (${v}${i.toFixed(2)}%)`},styles:{color:g,size:12}},{type:"text",ignoreEvent:!0,attrs:{x:x+8,y:S+8,text:`⏱ ${p}`},styles:{color:"#999",size:11}}]}},{name:"priceRange",totalStep:3,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,bounding:t,overlay:n})=>{if(e.length<2)return[];const a=Math.min(e[0].y,e[1].y),r=Math.max(e[0].y,e[1].y),s=n.points,i=s?Math.max(s[0].value??0,s[1].value??0):0,o=s?Math.min(s[0].value??0,s[1].value??0):0;return[{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:0,y:a},{x:t.width,y:a},{x:t.width,y:r},{x:0,y:r}]},styles:{style:"fill",color:"rgba(33, 150, 243, 0.1)"}},{type:"line",attrs:{coordinates:[{x:0,y:a},{x:t.width,y:a}]},styles:{color:"rgba(33, 150, 243, 0.5)",size:1}},{type:"line",attrs:{coordinates:[{x:0,y:r},{x:t.width,y:r}]},styles:{color:"rgba(33, 150, 243, 0.5)",size:1}},{type:"text",ignoreEvent:!0,attrs:{x:8,y:a+14,text:`${i.toFixed(2)} — ${o.toFixed(2)}`},styles:{color:"#2196F3",size:11}}]}},{name:"textNote",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!1,createPointFigures:({coordinates:e,overlay:t})=>{if(e.length<1)return[];const n=t.extendData,a=(n==null?void 0:n.text)??"Note",r=(n==null?void 0:n.color)??"#FFC107",s=e[0].x,i=e[0].y;return[{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:s-4,y:i-16},{x:s+a.length*7+8,y:i-16},{x:s+a.length*7+8,y:i+4},{x:s-4,y:i+4}]},styles:{style:"fill",color:"rgba(0, 0, 0, 0.6)"}},{type:"text",ignoreEvent:!0,attrs:{x:s,y:i,text:a},styles:{color:r,size:12}}]}},{name:"anchoredVwap",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!0,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,bounding:n})=>{if(e.length<1)return[];const a=t.points;if(!a||a.length<1)return[];const r=e[0].x,s=e[0].y,i=a[0].value??0,o=t.extendData,l=o==null?void 0:o.klineData,u=[];if(u.push({type:"text",ignoreEvent:!0,attrs:{x:r+4,y:s-8,text:"⚓ VWAP"},styles:{color:"#FF9800",size:11}}),l&&l.length>0){const d=a[0].timestamp??0,h=l.filter(p=>p.timestamp>=d);if(h.length>1){let p=0,x=0;const S=[],f=h.length,g=n.width-r,v=f>1?g/f:1;for(let M=0;M<h.length;M++){const A=h[M],F=(A.high+A.low+A.close)/3,B=A.volume??1;p+=B,x+=F*B;const O=x/p,R=Math.abs(h[h.length-1].high-h[0].low)||1,j=(h[0].low+h[h.length-1].high)/2,D=n.height*.6,K=n.height/2-(O-j)/R*D;S.push({x:r+M*v,y:K})}for(let M=1;M<S.length;M++)u.push({type:"line",ignoreEvent:!0,attrs:{coordinates:[S[M-1],S[M]]},styles:{color:"#FF9800",size:2}});if(S.length>0){const M=S[S.length-1],A=x/p;u.push({type:"text",ignoreEvent:!0,attrs:{x:M.x+4,y:M.y+4,text:`VWAP: ${A.toFixed(2)}`},styles:{color:"#FF9800",size:10}})}}}else u.push({type:"line",attrs:{coordinates:[{x:r,y:s},{x:n.width,y:s}]},styles:{color:"#FF9800",size:1.5,style:"dashed"}}),u.push({type:"text",ignoreEvent:!0,attrs:{x:n.width-80,y:s-4,text:`${i.toFixed(2)}`},styles:{color:"#FF9800",size:10}});return u}},{name:"priceLabel",totalStep:2,needDefaultPointFigure:!0,needDefaultXAxisFigure:!1,needDefaultYAxisFigure:!0,createPointFigures:({coordinates:e,overlay:t,bounding:n})=>{var p;if(e.length<1)return[];const a=t.points,r=((p=a==null?void 0:a[0])==null?void 0:p.value)??0,s=e[0].y,i=t.extendData,o=(i==null?void 0:i.text)??r.toFixed(2),l=(i==null?void 0:i.color)??"#1677FF",u=(i==null?void 0:i.bgColor)??"rgba(22, 119, 255, 0.08)",d=o.length*7+16,h=n.width-d-8;return[{type:"line",attrs:{coordinates:[{x:0,y:s},{x:n.width,y:s}]},styles:{color:l,size:1,style:"dashed"}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:h,y:s-10},{x:h+d,y:s-10},{x:h+d,y:s+10},{x:h,y:s+10}]},styles:{style:"fill",color:u}},{type:"polygon",ignoreEvent:!0,attrs:{coordinates:[{x:h,y:s-10},{x:h+d,y:s-10},{x:h+d,y:s+10},{x:h,y:s+10}]},styles:{style:"stroke",color:l}},{type:"text",ignoreEvent:!0,attrs:{x:h+8,y:s+4,text:o},styles:{color:l,size:11}}]}}];class wa{constructor(t){N(this,"_apiKey");N(this,"_prevSymbolMarket");N(this,"_prevSymbolTicker");N(this,"_ws");N(this,"_callback");N(this,"_connectionStatusCallback");N(this,"_reconnectAttempts",0);N(this,"_maxReconnectAttempts",5);N(this,"_reconnectTimer");N(this,"_currentSymbol");N(this,"_connectionStatus","disconnected");this._apiKey=t}onConnectionStatusChange(t){this._connectionStatusCallback=t}getConnectionStatus(){return this._connectionStatus}_setConnectionStatus(t){var n;this._connectionStatus=t,(n=this._connectionStatusCallback)==null||n.call(this,t)}async searchSymbols(t){try{const n=await fetch(`https://api.polygon.io/v3/reference/tickers?apiKey=${this._apiKey}&active=true&search=${t??""}`);if(!n.ok)throw new Error(`Search failed: ${n.status} ${n.statusText}`);return((await n.json()).results||[]).map(r=>({ticker:r.ticker,name:r.name,shortName:r.ticker,market:r.market,exchange:r.primary_exchange,priceCurrency:r.currency_name,type:r.type,logo:""}))}catch(n){return console.error("Symbol search error:",n),[]}}async getHistoryKLineData(t,n,a,r){try{const s=await fetch(`https://api.polygon.io/v2/aggs/ticker/${t.ticker}/range/${n.multiplier}/${n.timespan}/${a}/${r}?apiKey=${this._apiKey}`);if(!s.ok)throw new Error(`History data failed: ${s.status} ${s.statusText}`);return((await s.json()).results||[]).map(o=>({timestamp:o.t,open:o.o,high:o.h,low:o.l,close:o.c,volume:o.v,turnover:o.vw}))}catch(s){return console.error("History data error:",s),[]}}subscribe(t,n,a){var r,s;this._callback=a,this._currentSymbol=t,this._prevSymbolMarket!==t.market?(this._cleanupWebSocket(),this._connectWebSocket(t)):(this._prevSymbolTicker&&((r=this._ws)==null||r.send(JSON.stringify({action:"unsubscribe",params:`T.${this._prevSymbolTicker}`}))),(s=this._ws)==null||s.send(JSON.stringify({action:"subscribe",params:`T.${t.ticker}`}))),this._prevSymbolMarket=t.market,this._prevSymbolTicker=t.ticker}unsubscribe(t,n){this._ws&&this._ws.readyState===WebSocket.OPEN&&this._ws.send(JSON.stringify({action:"unsubscribe",params:`T.${t.ticker}`})),this._prevSymbolTicker=void 0,this._callback=void 0}destroy(){this._cleanupWebSocket(),this._reconnectTimer&&(clearTimeout(this._reconnectTimer),this._reconnectTimer=void 0),this._callback=void 0,this._connectionStatusCallback=void 0,this._setConnectionStatus("disconnected")}_connectWebSocket(t){this._setConnectionStatus("connecting"),this._ws=new WebSocket(`wss://delayed.polygon.io/${t.market}`),this._ws.onopen=()=>{var n;(n=this._ws)==null||n.send(JSON.stringify({action:"auth",params:this._apiKey}))},this._ws.onmessage=n=>{var a,r,s;try{const i=JSON.parse(n.data);if(!Array.isArray(i)||i.length===0)return;const o=i[0];o.ev==="status"?o.status==="auth_success"?(this._setConnectionStatus("connected"),this._reconnectAttempts=0,(a=this._ws)==null||a.send(JSON.stringify({action:"subscribe",params:`T.${t.ticker}`}))):o.status==="auth_failed"&&(console.error("WebSocket auth failed"),this._setConnectionStatus("disconnected")):o.ev==="T"&&o.sym===((r=this._currentSymbol)==null?void 0:r.ticker)&&((s=this._callback)==null||s.call(this,{timestamp:o.t,open:o.o??o.p,high:o.h??o.p,low:o.l??o.p,close:o.c??o.p,volume:o.v??o.s,turnover:o.vw??0}))}catch(i){console.warn("WebSocket message parse error:",i)}},this._ws.onclose=()=>{this._connectionStatus!=="disconnected"&&this._attemptReconnect(t)},this._ws.onerror=n=>{console.error("WebSocket error:",n)}}_attemptReconnect(t){if(this._reconnectAttempts>=this._maxReconnectAttempts){console.error("Max reconnect attempts reached"),this._setConnectionStatus("disconnected");return}this._setConnectionStatus("reconnecting"),this._reconnectAttempts++;const n=Math.min(1e3*Math.pow(2,this._reconnectAttempts),3e4);this._reconnectTimer=setTimeout(()=>{this._connectWebSocket(t)},n)}_cleanupWebSocket(){this._ws&&(this._ws.onclose=null,this._ws.onerror=null,this._ws.onmessage=null,this._ws.onopen=null,(this._ws.readyState===WebSocket.OPEN||this._ws.readyState===WebSocket.CONNECTING)&&this._ws.close(),this._ws=void 0)}}const he={};function ka(e){he.context=e}const Sa=(e,t)=>e===t,Vt=Symbol("solid-proxy"),Ta=Symbol("solid-track"),yt={equals:Sa};let L1=A1;const Te=1,pt=2,w1={owned:null,cleanups:null,context:null,owner:null},Ut={};var ue=null;let Ke=null,ee=null,_e=null,Me=null,Zt=0;function mt(e,t){const n=ee,a=ue,r=e.length===0,s=r?w1:{owned:null,cleanups:null,context:null,owner:t===void 0?a:t},i=r?e:()=>e(()=>me(()=>bt(s)));ue=s,ee=null;try{return Ue(i,!0)}finally{ee=n,ue=a}}function w(e,t){t=t?Object.assign({},yt,t):yt;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},a=r=>(typeof r=="function"&&(r=r(n.value)),M1(n,r));return[T1.bind(n),a]}function k1(e,t,n){const a=ft(e,t,!0,Te);Xe(a)}function Z(e,t,n){const a=ft(e,t,!1,Te);Xe(a)}function ce(e,t,n){L1=Pa;const a=ft(e,t,!1,Te);a.user=!0,Me?Me.push(a):Xe(a)}function W(e,t,n){n=n?Object.assign({},yt,n):yt;const a=ft(e,t,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=n.equals||void 0,Xe(a),T1.bind(a)}function Ma(e,t,n){let a,r,s;arguments.length===2&&typeof t=="object"||arguments.length===1?(a=!0,r=e,s=t||{}):(a=e,r=t,s=n||{});let i=null,o=Ut,l=null,u=!1,d="initialValue"in s,h=typeof a=="function"&&W(a);const p=new Set,[x,S]=(s.storage||w)(s.initialValue),[f,g]=w(void 0),[v,M]=w(void 0,{equals:!1}),[A,F]=w(d?"ready":"unresolved");if(he.context){l=`${he.context.id}${he.context.count++}`;let D;s.ssrLoadFrom==="initial"?o=s.initialValue:he.load&&(D=he.load(l))&&(o=D[0])}function B(D,z,K,H){return i===D&&(i=null,d=!0,(D===o||z===o)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(H,{value:z})),o=Ut,O(z,K)),z}function O(D,z){Ue(()=>{z===void 0&&S(()=>D),F(z!==void 0?"errored":"ready"),g(z);for(const K of p.keys())K.decrement();p.clear()},!1)}function R(){const D=Aa,z=x(),K=f();if(K!==void 0&&!i)throw K;return ee&&!ee.user&&D&&k1(()=>{v(),i&&(D.resolved||p.has(D)||(D.increment(),p.add(D)))}),z}function j(D=!0){if(D!==!1&&u)return;u=!1;const z=h?h():a;if(z==null||z===!1){B(i,me(x));return}const K=o!==Ut?o:me(()=>r(z,{value:x(),refetching:D}));return typeof K!="object"||!(K&&"then"in K)?(B(i,K,void 0,z),K):(i=K,u=!0,queueMicrotask(()=>u=!1),Ue(()=>{F(d?"refreshing":"pending"),M()},!1),K.then(H=>B(K,H,void 0,z),H=>B(K,void 0,D1(H),z)))}return Object.defineProperties(R,{state:{get:()=>A()},error:{get:()=>f()},loading:{get(){const D=A();return D==="pending"||D==="refreshing"}},latest:{get(){if(!d)return R();const D=f();if(D&&!i)throw D;return x()}}}),h?k1(()=>j(!1)):j(!1),[R,{refetch:j,mutate:S}]}function me(e){if(ee===null)return e();const t=ee;ee=null;try{return e()}finally{ee=t}}function S1(e,t,n){const a=Array.isArray(e);let r,s=n&&n.defer;return i=>{let o;if(a){o=Array(e.length);for(let u=0;u<e.length;u++)o[u]=e[u]()}else o=e();if(s){s=!1;return}const l=me(()=>t(o,r,i));return r=o,l}}function Ve(e){ce(()=>me(e))}function De(e){return ue===null||(ue.cleanups===null?ue.cleanups=[e]:ue.cleanups.push(e)),e}let Aa;function T1(){const e=Ke;if(this.sources&&(this.state||e))if(this.state===Te||e)Xe(this);else{const t=_e;_e=null,Ue(()=>Ct(this),!1),_e=t}if(ee){const t=this.observers?this.observers.length:0;ee.sources?(ee.sources.push(this),ee.sourceSlots.push(t)):(ee.sources=[this],ee.sourceSlots=[t]),this.observers?(this.observers.push(ee),this.observerSlots.push(ee.sources.length-1)):(this.observers=[ee],this.observerSlots=[ee.sources.length-1])}return this.value}function M1(e,t,n){let a=e.value;return(!e.comparator||!e.comparator(a,t))&&(e.value=t,e.observers&&e.observers.length&&Ue(()=>{for(let r=0;r<e.observers.length;r+=1){const s=e.observers[r],i=Ke&&Ke.running;i&&Ke.disposed.has(s),(i&&!s.tState||!i&&!s.state)&&(s.pure?_e.push(s):Me.push(s),s.observers&&I1(s)),i||(s.state=Te)}if(_e.length>1e6)throw _e=[],new Error},!1)),t}function Xe(e){if(!e.fn)return;bt(e);const t=ue,n=ee,a=Zt;ee=ue=e,Ia(e,e.value,a),ee=n,ue=t}function Ia(e,t,n){let a;try{a=e.fn(t)}catch(r){e.pure&&(e.state=Te,e.owned&&e.owned.forEach(bt),e.owned=null),P1(r)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?M1(e,a):e.value=a,e.updatedAt=n)}function ft(e,t,n,a=Te,r){const s={fn:e,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:ue,context:null,pure:n};return ue===null||ue!==w1&&(ue.owned?ue.owned.push(s):ue.owned=[s]),s}function vt(e){const t=Ke;if(e.state===0||t)return;if(e.state===pt||t)return Ct(e);if(e.suspense&&me(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Zt);)(e.state||t)&&n.push(e);for(let a=n.length-1;a>=0;a--)if(e=n[a],e.state===Te||t)Xe(e);else if(e.state===pt||t){const r=_e;_e=null,Ue(()=>Ct(e,n[0]),!1),_e=r}}function Ue(e,t){if(_e)return e();let n=!1;t||(_e=[]),Me?n=!0:Me=[],Zt++;try{const a=e();return Da(n),a}catch(a){n||(Me=null),_e=null,P1(a)}}function Da(e){if(_e&&(A1(_e),_e=null),e)return;const t=Me;Me=null,t.length&&Ue(()=>L1(t),!1)}function A1(e){for(let t=0;t<e.length;t++)vt(e[t])}function Pa(e){let t,n=0;for(t=0;t<e.length;t++){const a=e[t];a.user?e[n++]=a:vt(a)}for(he.context&&ka(),t=0;t<n;t++)vt(e[t])}function Ct(e,t){const n=Ke;e.state=0;for(let a=0;a<e.sources.length;a+=1){const r=e.sources[a];r.sources&&(r.state===Te||n?r!==t&&vt(r):(r.state===pt||n)&&Ct(r,t))}}function I1(e){const t=Ke;for(let n=0;n<e.observers.length;n+=1){const a=e.observers[n];(!a.state||t)&&(a.state=pt,a.pure?_e.push(a):Me.push(a),a.observers&&I1(a))}}function bt(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),a=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const s=r.pop(),i=n.observerSlots.pop();a<r.length&&(s.sourceSlots[i]=a,r[a]=s,n.observerSlots[a]=i)}}if(e.owned){for(t=0;t<e.owned.length;t++)bt(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function D1(e){return e instanceof Error||typeof e=="string"?e:new Error("Unknown error")}function P1(e){throw e=D1(e),e}const Ea=Symbol("fallback");function E1(e){for(let t=0;t<e.length;t++)e[t]()}function Na(e,t,n={}){let a=[],r=[],s=[],i=0,o=t.length>1?[]:null;return De(()=>E1(s)),()=>{let l=e()||[],u,d;return l[Ta],me(()=>{let p=l.length,x,S,f,g,v,M,A,F,B;if(p===0)i!==0&&(E1(s),s=[],a=[],r=[],i=0,o&&(o=[])),n.fallback&&(a=[Ea],r[0]=mt(O=>(s[0]=O,n.fallback())),i=1);else if(i===0){for(r=new Array(p),d=0;d<p;d++)a[d]=l[d],r[d]=mt(h);i=p}else{for(f=new Array(p),g=new Array(p),o&&(v=new Array(p)),M=0,A=Math.min(i,p);M<A&&a[M]===l[M];M++);for(A=i-1,F=p-1;A>=M&&F>=M&&a[A]===l[F];A--,F--)f[F]=r[A],g[F]=s[A],o&&(v[F]=o[A]);for(x=new Map,S=new Array(F+1),d=F;d>=M;d--)B=l[d],u=x.get(B),S[d]=u===void 0?-1:u,x.set(B,d);for(u=M;u<=A;u++)B=a[u],d=x.get(B),d!==void 0&&d!==-1?(f[d]=r[u],g[d]=s[u],o&&(v[d]=o[u]),d=S[d],x.set(B,d)):s[u]();for(d=M;d<p;d++)d in f?(r[d]=f[d],s[d]=g[d],o&&(o[d]=v[d],o[d](d))):r[d]=mt(h);r=r.slice(0,i=p),a=l.slice(0)}return r});function h(p){if(s[d]=p,o){const[x,S]=w(d);return o[d]=S,t(l[d],x)}return t(l[d])}}}function C(e,t){return me(()=>e(t||{}))}function xt(){return!0}const Fa={get(e,t,n){return t===Vt?n:e.get(t)},has(e,t){return t===Vt?!0:e.has(t)},set:xt,deleteProperty:xt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:xt,deleteProperty:xt}},ownKeys(e){return e.keys()}};function Ht(e){return(e=typeof e=="function"?e():e)?e:{}}function N1(...e){let t=!1;for(let a=0;a<e.length;a++){const r=e[a];t=t||!!r&&Vt in r,e[a]=typeof r=="function"?(t=!0,W(r)):r}if(t)return new Proxy({get(a){for(let r=e.length-1;r>=0;r--){const s=Ht(e[r])[a];if(s!==void 0)return s}},has(a){for(let r=e.length-1;r>=0;r--)if(a in Ht(e[r]))return!0;return!1},keys(){const a=[];for(let r=0;r<e.length;r++)a.push(...Object.keys(Ht(e[r])));return[...new Set(a)]}},Fa);const n={};for(let a=e.length-1;a>=0;a--)if(e[a]){const r=Object.getOwnPropertyDescriptors(e[a]);for(const s in r)s in n||Object.defineProperty(n,s,{enumerable:!0,get(){for(let i=e.length-1;i>=0;i--){const o=(e[i]||{})[s];if(o!==void 0)return o}}})}return n}function Qt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return W(Na(()=>e.each,e.children,t||void 0))}function te(e){let t=!1;const n=e.keyed,a=W(()=>e.when,void 0,{equals:(r,s)=>t?r===s:!r==!s});return W(()=>{const r=a();if(r){const s=e.children,i=typeof s=="function"&&s.length>0;return t=n||i,i?me(()=>s(r)):s}return e.fallback},void 0,void 0)}function Ba(e,t,n){let a=n.length,r=t.length,s=a,i=0,o=0,l=t[r-1].nextSibling,u=null;for(;i<r||o<s;){if(t[i]===n[o]){i++,o++;continue}for(;t[r-1]===n[s-1];)r--,s--;if(r===i){const d=s<a?o?n[o-1].nextSibling:n[s-o]:l;for(;o<s;)e.insertBefore(n[o++],d)}else if(s===o)for(;i<r;)(!u||!u.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[s-1]&&n[o]===t[r-1]){const d=t[--r].nextSibling;e.insertBefore(n[o++],t[i++].nextSibling),e.insertBefore(n[--s],d),t[r]=n[s]}else{if(!u){u=new Map;let h=o;for(;h<s;)u.set(n[h],h++)}const d=u.get(t[i]);if(d!=null)if(o<d&&d<s){let h=i,p=1,x;for(;++h<r&&h<s&&!((x=u.get(t[h]))==null||x!==d+p);)p++;if(p>d-o){const S=t[i];for(;o<d;)e.insertBefore(n[o++],S)}else e.replaceChild(n[o++],t[i++])}else i++;else t[i++].remove()}}}const F1="_$DX_DELEGATE";function Oa(e,t,n,a={}){let r;return mt(s=>{r=s,t===document?e():y(t,e(),t.firstChild?null:void 0,n)},a.owner),()=>{r(),t.textContent=""}}function $(e,t,n){const a=document.createElement("template");a.innerHTML=e;let r=a.content.firstChild;return n&&(r=r.firstChild),r}function ie(e,t=window.document){const n=t[F1]||(t[F1]=new Set);for(let a=0,r=e.length;a<r;a++){const s=e[a];n.has(s)||(n.add(s),t.addEventListener(s,Ra))}}function de(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function $e(e,t){t==null?e.removeAttribute("class"):e.className=t}function Pe(e,t,n,a){if(a)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=s=>r.call(e,n[1],s))}else e.addEventListener(t,n)}function Ze(e,t,n){if(!t)return n?de(e,"style"):t;const a=e.style;if(typeof t=="string")return a.cssText=t;typeof n=="string"&&(a.cssText=n=void 0),n||(n={}),t||(t={});let r,s;for(s in n)t[s]==null&&a.removeProperty(s),delete n[s];for(s in t)r=t[s],r!==n[s]&&(a.setProperty(s,r),n[s]=r);return n}function lt(e,t,n){return me(()=>e(t,n))}function y(e,t,n,a){if(n!==void 0&&!a&&(a=[]),typeof t!="function")return Lt(e,t,a,n);Z(r=>Lt(e,t(),r,n),a)}function Ra(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),he.registry&&!he.done&&(he.done=!0,document.querySelectorAll("[id^=pl-]").forEach(a=>{for(;a&&a.nodeType!==8&&a.nodeValue!=="pl-"+e;){let r=a.nextSibling;a.remove(),a=r}a&&a.remove()}));n;){const a=n[t];if(a&&!n.disabled){const r=n[`${t}Data`];if(r!==void 0?a.call(n,r,e):a.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Lt(e,t,n,a,r){for(he.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const s=typeof t,i=a!==void 0;if(e=i&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(he.context)return n;if(s==="number"&&(t=t.toString()),i){let o=n[0];o&&o.nodeType===3?o.data=t:o=document.createTextNode(t),n=Je(e,n,a,o)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||s==="boolean"){if(he.context)return n;n=Je(e,n,a)}else{if(s==="function")return Z(()=>{let o=t();for(;typeof o=="function";)o=o();n=Lt(e,o,n,a)}),()=>n;if(Array.isArray(t)){const o=[],l=n&&Array.isArray(n);if(Yt(o,t,n,r))return Z(()=>n=Lt(e,o,n,a,!0)),()=>n;if(he.context){if(!o.length)return n;for(let u=0;u<o.length;u++)if(o[u].parentNode)return n=o}if(o.length===0){if(n=Je(e,n,a),i)return n}else l?n.length===0?B1(e,o,a):Ba(e,n,o):(n&&Je(e),B1(e,o));n=o}else if(t instanceof Node){if(he.context&&t.parentNode)return n=i?[t]:t;if(Array.isArray(n)){if(i)return n=Je(e,n,a,t);Je(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Yt(e,t,n,a){let r=!1;for(let s=0,i=t.length;s<i;s++){let o=t[s],l=n&&n[s];if(o instanceof Node)e.push(o);else if(!(o==null||o===!0||o===!1))if(Array.isArray(o))r=Yt(e,o,l)||r;else if(typeof o=="function")if(a){for(;typeof o=="function";)o=o();r=Yt(e,Array.isArray(o)?o:[o],Array.isArray(l)?l:[l])||r}else e.push(o),r=!0;else{const u=String(o);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return r}function B1(e,t,n=null){for(let a=0,r=t.length;a<r;a++)e.insertBefore(t[a],n)}function Je(e,t,n,a){if(n===void 0)return e.textContent="";const r=a||document.createTextNode("");if(t.length){let s=!1;for(let i=t.length-1;i>=0;i--){const o=t[i];if(r!==o){const l=o.parentNode===e;!s&&!i?l?e.replaceChild(r,o):e.insertBefore(r,n):l&&o.remove()}else s=!0}}else e.insertBefore(r,n);return[r]}var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var za=typeof wt=="object"&&wt&&wt.Object===Object&&wt,R1=za,ja=R1,Ka=typeof self=="object"&&self&&self.Object===Object&&self,Va=ja||Ka||Function("return this")(),we=Va,Ua=we,Za=Ua.Symbol,kt=Za,z1=kt,j1=Object.prototype,Ha=j1.hasOwnProperty,Qa=j1.toString,ct=z1?z1.toStringTag:void 0;function Ya(e){var t=Ha.call(e,ct),n=e[ct];try{e[ct]=void 0;var a=!0}catch{}var r=Qa.call(e);return a&&(t?e[ct]=n:delete e[ct]),r}var Wa=Ya,Ga=Object.prototype,Xa=Ga.toString;function Ja(e){return Xa.call(e)}var qa=Ja,K1=kt,er=Wa,tr=qa,nr="[object Null]",ar="[object Undefined]",V1=K1?K1.toStringTag:void 0;function rr(e){return e==null?e===void 0?ar:nr:V1&&V1 in Object(e)?er(e):tr(e)}var dt=rr;function sr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qe=sr,or=dt,ir=qe,lr="[object AsyncFunction]",cr="[object Function]",dr="[object GeneratorFunction]",ur="[object Proxy]";function _r(e){if(!ir(e))return!1;var t=or(e);return t==cr||t==dr||t==lr||t==ur}var U1=_r,hr=we,gr=hr["__core-js_shared__"],$r=gr,Wt=$r,Z1=function(){var e=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yr(e){return!!Z1&&Z1 in e}var pr=yr,mr=Function.prototype,fr=mr.toString;function vr(e){if(e!=null){try{return fr.call(e)}catch{}try{return e+""}catch{}}return""}var H1=vr,Cr=U1,br=pr,xr=qe,Lr=H1,wr=/[\\^$.*+?()[\]{}|]/g,kr=/^\[object .+?Constructor\]$/,Sr=Function.prototype,Tr=Object.prototype,Mr=Sr.toString,Ar=Tr.hasOwnProperty,Ir=RegExp("^"+Mr.call(Ar).replace(wr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dr(e){if(!xr(e)||br(e))return!1;var t=Cr(e)?Ir:kr;return t.test(Lr(e))}var Pr=Dr;function Er(e,t){return e==null?void 0:e[t]}var Nr=Er,Fr=Pr,Br=Nr;function Or(e,t){var n=Br(e,t);return Fr(n)?n:void 0}var He=Or,Rr=He,zr=function(){try{var e=Rr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jr=zr,Q1=jr;function Kr(e,t,n){t=="__proto__"&&Q1?Q1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Y1=Kr;function Vr(e,t){return e===t||e!==e&&t!==t}var W1=Vr,Ur=Y1,Zr=W1,Hr=Object.prototype,Qr=Hr.hasOwnProperty;function Yr(e,t,n){var a=e[t];(!(Qr.call(e,t)&&Zr(a,n))||n===void 0&&!(t in e))&&Ur(e,t,n)}var Gt=Yr,Wr=Array.isArray,et=Wr;function Gr(e){return e!=null&&typeof e=="object"}var tt=Gr,Xr=dt,Jr=tt,qr="[object Symbol]";function e0(e){return typeof e=="symbol"||Jr(e)&&Xr(e)==qr}var Xt=e0,t0=et,n0=Xt,a0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r0=/^\w*$/;function s0(e,t){if(t0(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||n0(e)?!0:r0.test(e)||!a0.test(e)||t!=null&&e in Object(t)}var o0=s0,i0=He,l0=i0(Object,"create"),St=l0,G1=St;function c0(){this.__data__=G1?G1(null):{},this.size=0}var d0=c0;function u0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _0=u0,h0=St,g0="__lodash_hash_undefined__",$0=Object.prototype,y0=$0.hasOwnProperty;function p0(e){var t=this.__data__;if(h0){var n=t[e];return n===g0?void 0:n}return y0.call(t,e)?t[e]:void 0}var m0=p0,f0=St,v0=Object.prototype,C0=v0.hasOwnProperty;function b0(e){var t=this.__data__;return f0?t[e]!==void 0:C0.call(t,e)}var x0=b0,L0=St,w0="__lodash_hash_undefined__";function k0(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=L0&&t===void 0?w0:t,this}var S0=k0,T0=d0,M0=_0,A0=m0,I0=x0,D0=S0;function nt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}nt.prototype.clear=T0,nt.prototype.delete=M0,nt.prototype.get=A0,nt.prototype.has=I0,nt.prototype.set=D0;var P0=nt;function E0(){this.__data__=[],this.size=0}var N0=E0,F0=W1;function B0(e,t){for(var n=e.length;n--;)if(F0(e[n][0],t))return n;return-1}var Tt=B0,O0=Tt,R0=Array.prototype,z0=R0.splice;function j0(e){var t=this.__data__,n=O0(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():z0.call(t,n,1),--this.size,!0}var K0=j0,V0=Tt;function U0(e){var t=this.__data__,n=V0(t,e);return n<0?void 0:t[n][1]}var Z0=U0,H0=Tt;function Q0(e){return H0(this.__data__,e)>-1}var Y0=Q0,W0=Tt;function G0(e,t){var n=this.__data__,a=W0(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var X0=G0,J0=N0,q0=K0,es=Z0,ts=Y0,ns=X0;function at(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}at.prototype.clear=J0,at.prototype.delete=q0,at.prototype.get=es,at.prototype.has=ts,at.prototype.set=ns;var Mt=at,as=He,rs=we,ss=as(rs,"Map"),Jt=ss,X1=P0,os=Mt,is=Jt;function ls(){this.size=0,this.__data__={hash:new X1,map:new(is||os),string:new X1}}var cs=ls;function ds(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var us=ds,_s=us;function hs(e,t){var n=e.__data__;return _s(t)?n[typeof t=="string"?"string":"hash"]:n.map}var At=hs,gs=At;function $s(e){var t=gs(this,e).delete(e);return this.size-=t?1:0,t}var ys=$s,ps=At;function ms(e){return ps(this,e).get(e)}var fs=ms,vs=At;function Cs(e){return vs(this,e).has(e)}var bs=Cs,xs=At;function Ls(e,t){var n=xs(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var ws=Ls,ks=cs,Ss=ys,Ts=fs,Ms=bs,As=ws;function rt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}rt.prototype.clear=ks,rt.prototype.delete=Ss,rt.prototype.get=Ts,rt.prototype.has=Ms,rt.prototype.set=As;var J1=rt,q1=J1,Is="Expected a function";function qt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Is);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],s=n.cache;if(s.has(r))return s.get(r);var i=e.apply(this,a);return n.cache=s.set(r,i)||s,i};return n.cache=new(qt.Cache||q1),n}qt.Cache=q1;var Ds=qt,Ps=Ds,Es=500;function Ns(e){var t=Ps(e,function(a){return n.size===Es&&n.clear(),a}),n=t.cache;return t}var Fs=Ns,Bs=Fs,Os=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rs=/\\(\\)?/g,zs=Bs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Os,function(n,a,r,s){t.push(r?s.replace(Rs,"$1"):a||n)}),t}),js=zs;function Ks(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}var Vs=Ks,en=kt,Us=Vs,Zs=et,Hs=Xt,Qs=1/0,tn=en?en.prototype:void 0,nn=tn?tn.toString:void 0;function an(e){if(typeof e=="string")return e;if(Zs(e))return Us(e,an)+"";if(Hs(e))return nn?nn.call(e):"";var t=e+"";return t=="0"&&1/e==-Qs?"-0":t}var Ys=an,Ws=Ys;function Gs(e){return e==null?"":Ws(e)}var Xs=Gs,Js=et,qs=o0,eo=js,to=Xs;function no(e,t){return Js(e)?e:qs(e,t)?[e]:eo(to(e))}var ao=no,ro=9007199254740991,so=/^(?:0|[1-9]\d*)$/;function oo(e,t){var n=typeof e;return t=t??ro,!!t&&(n=="number"||n!="symbol"&&so.test(e))&&e>-1&&e%1==0&&e<t}var rn=oo,io=Xt,lo=1/0;function co(e){if(typeof e=="string"||io(e))return e;var t=e+"";return t=="0"&&1/e==-lo?"-0":t}var uo=co,_o=Gt,ho=ao,go=rn,sn=qe,$o=uo;function yo(e,t,n,a){if(!sn(e))return e;t=ho(t,e);for(var r=-1,s=t.length,i=s-1,o=e;o!=null&&++r<s;){var l=$o(t[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=i){var d=o[l];u=a?a(d,l,o):void 0,u===void 0&&(u=sn(d)?d:go(t[r+1])?[]:{})}_o(o,l,u),o=o[l]}return e}var po=yo,mo=po;function fo(e,t,n){return e==null?e:mo(e,t,n)}var vo=fo;const e1=O1(vo);var Co=Mt;function bo(){this.__data__=new Co,this.size=0}var xo=bo;function Lo(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wo=Lo;function ko(e){return this.__data__.get(e)}var So=ko;function To(e){return this.__data__.has(e)}var Mo=To,Ao=Mt,Io=Jt,Do=J1,Po=200;function Eo(e,t){var n=this.__data__;if(n instanceof Ao){var a=n.__data__;if(!Io||a.length<Po-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Do(a)}return n.set(e,t),this.size=n.size,this}var No=Eo,Fo=Mt,Bo=xo,Oo=wo,Ro=So,zo=Mo,jo=No;function st(e){var t=this.__data__=new Fo(e);this.size=t.size}st.prototype.clear=Bo,st.prototype.delete=Oo,st.prototype.get=Ro,st.prototype.has=zo,st.prototype.set=jo;var Ko=st;function Vo(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}var Uo=Vo,Zo=Gt,Ho=Y1;function Qo(e,t,n,a){var r=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var o=t[s],l=a?a(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),r?Ho(n,o,l):Zo(n,o,l)}return n}var It=Qo;function Yo(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}var Wo=Yo,Go=dt,Xo=tt,Jo="[object Arguments]";function qo(e){return Xo(e)&&Go(e)==Jo}var ei=qo,on=ei,ti=tt,ln=Object.prototype,ni=ln.hasOwnProperty,ai=ln.propertyIsEnumerable,ri=on(function(){return arguments}())?on:function(e){return ti(e)&&ni.call(e,"callee")&&!ai.call(e,"callee")},si=ri,Dt={exports:{}};function oi(){return!1}var ii=oi;Dt.exports,function(e,t){var n=we,a=ii,r=t&&!t.nodeType&&t,s=r&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===r,o=i?n.Buffer:void 0,l=o?o.isBuffer:void 0,u=l||a;e.exports=u}(Dt,Dt.exports);var cn=Dt.exports,li=9007199254740991;function ci(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=li}var dn=ci,di=dt,ui=dn,_i=tt,hi="[object Arguments]",gi="[object Array]",$i="[object Boolean]",yi="[object Date]",pi="[object Error]",mi="[object Function]",fi="[object Map]",vi="[object Number]",Ci="[object Object]",bi="[object RegExp]",xi="[object Set]",Li="[object String]",wi="[object WeakMap]",ki="[object ArrayBuffer]",Si="[object DataView]",Ti="[object Float32Array]",Mi="[object Float64Array]",Ai="[object Int8Array]",Ii="[object Int16Array]",Di="[object Int32Array]",Pi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ni="[object Uint16Array]",Fi="[object Uint32Array]",q={};q[Ti]=q[Mi]=q[Ai]=q[Ii]=q[Di]=q[Pi]=q[Ei]=q[Ni]=q[Fi]=!0,q[hi]=q[gi]=q[ki]=q[$i]=q[Si]=q[yi]=q[pi]=q[mi]=q[fi]=q[vi]=q[Ci]=q[bi]=q[xi]=q[Li]=q[wi]=!1;function Bi(e){return _i(e)&&ui(e.length)&&!!q[di(e)]}var Oi=Bi;function Ri(e){return function(t){return e(t)}}var t1=Ri,Pt={exports:{}};Pt.exports,function(e,t){var n=R1,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===a,i=s&&n.process,o=function(){try{var l=r&&r.require&&r.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=o}(Pt,Pt.exports);var n1=Pt.exports,zi=Oi,ji=t1,un=n1,_n=un&&un.isTypedArray,Ki=_n?ji(_n):zi,Vi=Ki,Ui=Wo,Zi=si,Hi=et,Qi=cn,Yi=rn,Wi=Vi,Gi=Object.prototype,Xi=Gi.hasOwnProperty;function Ji(e,t){var n=Hi(e),a=!n&&Zi(e),r=!n&&!a&&Qi(e),s=!n&&!a&&!r&&Wi(e),i=n||a||r||s,o=i?Ui(e.length,String):[],l=o.length;for(var u in e)(t||Xi.call(e,u))&&!(i&&(u=="length"||r&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Yi(u,l)))&&o.push(u);return o}var hn=Ji,qi=Object.prototype;function e9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qi;return e===n}var a1=e9;function t9(e,t){return function(n){return e(t(n))}}var gn=t9,n9=gn,a9=n9(Object.keys,Object),r9=a9,s9=a1,o9=r9,i9=Object.prototype,l9=i9.hasOwnProperty;function c9(e){if(!s9(e))return o9(e);var t=[];for(var n in Object(e))l9.call(e,n)&&n!="constructor"&&t.push(n);return t}var d9=c9,u9=U1,_9=dn;function h9(e){return e!=null&&_9(e.length)&&!u9(e)}var $n=h9,g9=hn,$9=d9,y9=$n;function p9(e){return y9(e)?g9(e):$9(e)}var r1=p9,m9=It,f9=r1;function v9(e,t){return e&&m9(t,f9(t),e)}var C9=v9;function b9(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var x9=b9,L9=qe,w9=a1,k9=x9,S9=Object.prototype,T9=S9.hasOwnProperty;function M9(e){if(!L9(e))return k9(e);var t=w9(e),n=[];for(var a in e)a=="constructor"&&(t||!T9.call(e,a))||n.push(a);return n}var A9=M9,I9=hn,D9=A9,P9=$n;function E9(e){return P9(e)?I9(e,!0):D9(e)}var s1=E9,N9=It,F9=s1;function B9(e,t){return e&&N9(t,F9(t),e)}var O9=B9,Et={exports:{}};Et.exports,function(e,t){var n=we,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===a,i=s?n.Buffer:void 0,o=i?i.allocUnsafe:void 0;function l(u,d){if(d)return u.slice();var h=u.length,p=o?o(h):new u.constructor(h);return u.copy(p),p}e.exports=l}(Et,Et.exports);var R9=Et.exports;function z9(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}var j9=z9;function K9(e,t){for(var n=-1,a=e==null?0:e.length,r=0,s=[];++n<a;){var i=e[n];t(i,n,e)&&(s[r++]=i)}return s}var V9=K9;function U9(){return[]}var yn=U9,Z9=V9,H9=yn,Q9=Object.prototype,Y9=Q9.propertyIsEnumerable,pn=Object.getOwnPropertySymbols,W9=pn?function(e){return e==null?[]:(e=Object(e),Z9(pn(e),function(t){return Y9.call(e,t)}))}:H9,o1=W9,G9=It,X9=o1;function J9(e,t){return G9(e,X9(e),t)}var q9=J9;function e5(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}var mn=e5,t5=gn,n5=t5(Object.getPrototypeOf,Object),fn=n5,a5=mn,r5=fn,s5=o1,o5=yn,i5=Object.getOwnPropertySymbols,l5=i5?function(e){for(var t=[];e;)a5(t,s5(e)),e=r5(e);return t}:o5,vn=l5,c5=It,d5=vn;function u5(e,t){return c5(e,d5(e),t)}var _5=u5,h5=mn,g5=et;function $5(e,t,n){var a=t(e);return g5(e)?a:h5(a,n(e))}var Cn=$5,y5=Cn,p5=o1,m5=r1;function f5(e){return y5(e,m5,p5)}var v5=f5,C5=Cn,b5=vn,x5=s1;function L5(e){return C5(e,x5,b5)}var w5=L5,k5=He,S5=we,T5=k5(S5,"DataView"),M5=T5,A5=He,I5=we,D5=A5(I5,"Promise"),P5=D5,E5=He,N5=we,F5=E5(N5,"Set"),B5=F5,O5=He,R5=we,z5=O5(R5,"WeakMap"),j5=z5,i1=M5,l1=Jt,c1=P5,d1=B5,u1=j5,bn=dt,ot=H1,xn="[object Map]",K5="[object Object]",Ln="[object Promise]",wn="[object Set]",kn="[object WeakMap]",Sn="[object DataView]",V5=ot(i1),U5=ot(l1),Z5=ot(c1),H5=ot(d1),Q5=ot(u1),Qe=bn;(i1&&Qe(new i1(new ArrayBuffer(1)))!=Sn||l1&&Qe(new l1)!=xn||c1&&Qe(c1.resolve())!=Ln||d1&&Qe(new d1)!=wn||u1&&Qe(new u1)!=kn)&&(Qe=function(e){var t=bn(e),n=t==K5?e.constructor:void 0,a=n?ot(n):"";if(a)switch(a){case V5:return Sn;case U5:return xn;case Z5:return Ln;case H5:return wn;case Q5:return kn}return t});var _1=Qe,Y5=Object.prototype,W5=Y5.hasOwnProperty;function G5(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&W5.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var X5=G5,J5=we,q5=J5.Uint8Array,e2=q5,Tn=e2;function t2(e){var t=new e.constructor(e.byteLength);return new Tn(t).set(new Tn(e)),t}var h1=t2,n2=h1;function a2(e,t){var n=t?n2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var r2=a2,s2=/\w*$/;function o2(e){var t=new e.constructor(e.source,s2.exec(e));return t.lastIndex=e.lastIndex,t}var i2=o2,Mn=kt,An=Mn?Mn.prototype:void 0,In=An?An.valueOf:void 0;function l2(e){return In?Object(In.call(e)):{}}var c2=l2,d2=h1;function u2(e,t){var n=t?d2(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _2=u2,h2=h1,g2=r2,$2=i2,y2=c2,p2=_2,m2="[object Boolean]",f2="[object Date]",v2="[object Map]",C2="[object Number]",b2="[object RegExp]",x2="[object Set]",L2="[object String]",w2="[object Symbol]",k2="[object ArrayBuffer]",S2="[object DataView]",T2="[object Float32Array]",M2="[object Float64Array]",A2="[object Int8Array]",I2="[object Int16Array]",D2="[object Int32Array]",P2="[object Uint8Array]",E2="[object Uint8ClampedArray]",N2="[object Uint16Array]",F2="[object Uint32Array]";function B2(e,t,n){var a=e.constructor;switch(t){case k2:return h2(e);case m2:case f2:return new a(+e);case S2:return g2(e,n);case T2:case M2:case A2:case I2:case D2:case P2:case E2:case N2:case F2:return p2(e,n);case v2:return new a;case C2:case L2:return new a(e);case b2:return $2(e);case x2:return new a;case w2:return y2(e)}}var O2=B2,R2=qe,Dn=Object.create,z2=function(){function e(){}return function(t){if(!R2(t))return{};if(Dn)return Dn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),j2=z2,K2=j2,V2=fn,U2=a1;function Z2(e){return typeof e.constructor=="function"&&!U2(e)?K2(V2(e)):{}}var H2=Z2,Q2=_1,Y2=tt,W2="[object Map]";function G2(e){return Y2(e)&&Q2(e)==W2}var X2=G2,J2=X2,q2=t1,Pn=n1,En=Pn&&Pn.isMap,e3=En?q2(En):J2,t3=e3,n3=_1,a3=tt,r3="[object Set]";function s3(e){return a3(e)&&n3(e)==r3}var o3=s3,i3=o3,l3=t1,Nn=n1,Fn=Nn&&Nn.isSet,c3=Fn?l3(Fn):i3,d3=c3,u3=Ko,_3=Uo,h3=Gt,g3=C9,$3=O9,y3=R9,p3=j9,m3=q9,f3=_5,v3=v5,C3=w5,b3=_1,x3=X5,L3=O2,w3=H2,k3=et,S3=cn,T3=t3,M3=qe,A3=d3,I3=r1,D3=s1,P3=1,E3=2,N3=4,Bn="[object Arguments]",F3="[object Array]",B3="[object Boolean]",O3="[object Date]",R3="[object Error]",On="[object Function]",z3="[object GeneratorFunction]",j3="[object Map]",K3="[object Number]",Rn="[object Object]",V3="[object RegExp]",U3="[object Set]",Z3="[object String]",H3="[object Symbol]",Q3="[object WeakMap]",Y3="[object ArrayBuffer]",W3="[object DataView]",G3="[object Float32Array]",X3="[object Float64Array]",J3="[object Int8Array]",q3="[object Int16Array]",e6="[object Int32Array]",t6="[object Uint8Array]",n6="[object Uint8ClampedArray]",a6="[object Uint16Array]",r6="[object Uint32Array]",X={};X[Bn]=X[F3]=X[Y3]=X[W3]=X[B3]=X[O3]=X[G3]=X[X3]=X[J3]=X[q3]=X[e6]=X[j3]=X[K3]=X[Rn]=X[V3]=X[U3]=X[Z3]=X[H3]=X[t6]=X[n6]=X[a6]=X[r6]=!0,X[R3]=X[On]=X[Q3]=!1;function Nt(e,t,n,a,r,s){var i,o=t&P3,l=t&E3,u=t&N3;if(n&&(i=r?n(e,a,r,s):n(e)),i!==void 0)return i;if(!M3(e))return e;var d=k3(e);if(d){if(i=x3(e),!o)return p3(e,i)}else{var h=b3(e),p=h==On||h==z3;if(S3(e))return y3(e,o);if(h==Rn||h==Bn||p&&!r){if(i=l||p?{}:w3(e),!o)return l?f3(e,$3(i,e)):m3(e,g3(i,e))}else{if(!X[h])return r?e:{};i=L3(e,h,o)}}s||(s=new u3);var x=s.get(e);if(x)return x;s.set(e,i),A3(e)?e.forEach(function(g){i.add(Nt(g,t,n,g,e,s))}):T3(e)&&e.forEach(function(g,v){i.set(v,Nt(g,t,n,v,e,s))});var S=u?l?C3:v3:l?D3:I3,f=d?void 0:S(e);return _3(f||e,function(g,v){f&&(v=g,g=e[v]),h3(i,v,Nt(g,t,n,v,e,s))}),i}var s6=Nt,o6=s6,i6=1,l6=4;function c6(e){return o6(e,i6|l6)}var d6=c6;const u6=O1(d6),_6=$("<button></button>"),h6=e=>(()=>{const t=_6.cloneNode(!0);return Pe(t,"click",e.onClick,!0),y(t,()=>e.children),Z(n=>{const a=e.style,r=`klinecharts-pro-button ${e.type??"confirm"} ${e.class??""}`;return n._v$=Ze(t,a,n._v$),r!==n._v$2&&$e(t,n._v$2=r),n},{_v$:void 0,_v$2:void 0}),t})();ie(["click"]);const g6=$('<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"></path></svg>'),$6=$('<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"></path></svg>'),y6=$("<div></div>"),p6=$('<span class="label"></span>'),m6=()=>g6.cloneNode(!0),f6=()=>$6.cloneNode(!0),Ft=e=>{const[t,n]=w(e.checked??!1);return ce(()=>{"checked"in e&&n(e.checked)}),(()=>{const a=y6.cloneNode(!0);return a.$$click=r=>{const s=!t();e.onChange&&e.onChange(s),n(s)},y(a,(()=>{const r=W(()=>!!t());return()=>r()?C(m6,{}):C(f6,{})})(),null),y(a,(()=>{const r=W(()=>!!e.label);return()=>r()&&(()=>{const s=p6.cloneNode(!0);return y(s,()=>e.label),s})()})(),null),Z(r=>{const s=e.style,i=`klinecharts-pro-checkbox ${t()&&"checked"||""} ${e.class||""}`;return r._v$=Ze(a,s,r._v$),i!==r._v$2&&$e(a,r._v$2=i),r},{_v$:void 0,_v$2:void 0}),a})()};ie(["click"]);const v6=$('<div class="klinecharts-pro-loading"><i class="circle1"></i><i class="circle2"></i><i class="circle3"></i></div>'),zn=()=>v6.cloneNode(!0),C6=$('<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"></path></svg></div>'),b6=()=>C6.cloneNode(!0),x6=$("<ul></ul>"),L6=$("<li></li>"),ut=e=>(()=>{const t=x6.cloneNode(!0);return y(t,C(te,{get when(){return e.loading},get children(){return C(zn,{})}}),null),y(t,C(te,{get when(){var n;return!e.loading&&!e.children&&!((n=e.dataSource)!=null&&n.length)},get children(){return C(b6,{})}}),null),y(t,C(te,{get when(){return e.children},get children(){return e.children}}),null),y(t,C(te,{get when(){return!e.children},get children(){var n;return(n=e.dataSource)==null?void 0:n.map(a=>{var r;return((r=e.renderItem)==null?void 0:r.call(e,a))??L6.cloneNode(!0)})}}),null),Z(n=>{const a=e.style,r=`klinecharts-pro-list ${e.class??""}`;return n._v$=Ze(t,a,n._v$),r!==n._v$2&&$e(t,n._v$2=r),n},{_v$:void 0,_v$2:void 0}),t})(),w6=$('<div class="klinecharts-pro-modal" role="dialog" aria-modal="true" aria-labelledby="modal-title"><div class="inner"><div class="title-container"><span id="modal-title"></span><svg class="close-icon" viewBox="0 0 1024 1024" role="button" aria-label="Close" tabIndex="0"><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"></div></div></div>'),k6=$('<div class="button-container"></div>'),Ee=e=>{let t,n=null;const a=s=>{var i;if(s.key==="Escape"){s.preventDefault(),(i=e.onClose)==null||i.call(e);return}if(s.key==="Tab"&&t){const o=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(o.length===0)return;const l=o[0],u=o[o.length-1];s.shiftKey?document.activeElement===l&&(s.preventDefault(),u.focus()):document.activeElement===u&&(s.preventDefault(),l.focus())}},r=s=>{var i;s.target===s.currentTarget&&((i=e.onClose)==null||i.call(e))};return Ve(()=>{if(n=document.activeElement,document.addEventListener("keydown",a),t){const s=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');s==null||s.focus()}}),De(()=>{document.removeEventListener("keydown",a),n&&n instanceof HTMLElement&&n.focus()}),(()=>{const s=w6.cloneNode(!0),i=s.firstChild,o=i.firstChild,l=o.firstChild,u=l.nextSibling,d=o.nextSibling;s.$$click=r;const h=t;return typeof h=="function"?lt(h,i):t=i,y(l,()=>e.title),u.$$keydown=p=>{var x;(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),(x=e.onClose)==null||x.call(e))},Pe(u,"click",e.onClose,!0),y(d,()=>e.children),y(i,(()=>{const p=W(()=>!!(e.buttons&&e.buttons.length>0));return()=>p()&&(()=>{const x=k6.cloneNode(!0);return y(x,()=>e.buttons.map(S=>C(h6,N1(S,{get children(){return S.children}})))),x})()})(),null),Z(()=>i.style.setProperty("width",`${e.width??400}px`)),s})()};ie(["click","keydown"]);const S6=$('<div tabindex="0"><div class="selector-container"><span class="value"></span><i class="arrow"></i></div></div>'),T6=$('<div class="drop-down-container"><ul></ul></div>'),M6=$("<li></li>"),jn=e=>{const[t,n]=w(!1);return(()=>{const a=S6.cloneNode(!0),r=a.firstChild,s=r.firstChild;return a.addEventListener("blur",i=>{n(!1)}),a.$$click=i=>{n(o=>!o)},y(s,()=>e.value),y(a,(()=>{const i=W(()=>!!(e.dataSource&&e.dataSource.length>0));return()=>i()&&(()=>{const o=T6.cloneNode(!0),l=o.firstChild;return y(l,()=>e.dataSource.map(u=>{const h=u[e.valueKey??"text"]??u;return(()=>{const p=M6.cloneNode(!0);return p.$$click=x=>{var S;x.stopPropagation(),e.value!==h&&((S=e.onSelected)==null||S.call(e,u)),n(!1)},y(p,h),p})()})),o})()})(),null),Z(i=>{const o=e.style,l=`klinecharts-pro-select ${e.class??""} ${t()?"klinecharts-pro-select-show":""}`;return i._v$=Ze(a,o,i._v$),l!==i._v$2&&$e(a,i._v$2=l),i},{_v$:void 0,_v$2:void 0}),a})()};ie(["click"]);const A6=$('<span class="prefix"></span>'),I6=$('<span class="suffix"></span>'),D6=$('<div><input class="value"></div>'),Kn=e=>{const t=N1({min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER},e);let n;const[a,r]=w("normal");return(()=>{const s=D6.cloneNode(!0),i=s.firstChild;return s.$$click=()=>{n==null||n.focus()},y(s,C(te,{get when(){return t.prefix},get children(){const o=A6.cloneNode(!0);return y(o,()=>t.prefix),o}}),i),i.addEventListener("change",o=>{var u,d;const l=o.target.value;if("precision"in t){let h;const p=Math.max(0,Math.floor(t.precision));p<=0?h=new RegExp(/^[1-9]\d*$/):h=new RegExp("^\\d+\\.?\\d{0,"+p+"}$"),(l===""||h.test(l)&&+l>=t.min&&+l<=t.max)&&((u=t.onChange)==null||u.call(t,l===""?l:+l))}else(d=t.onChange)==null||d.call(t,l)}),i.addEventListener("blur",()=>{r("normal")}),i.addEventListener("focus",()=>{r("focus")}),lt(o=>{n=o},i),y(s,C(te,{get when(){return t.suffix},get children(){const o=I6.cloneNode(!0);return y(o,()=>t.suffix),o}}),null),Z(o=>{const l=t.style,u=`klinecharts-pro-input ${t.class??""}`,d=a(),h=t.placeholder??"";return o._v$=Ze(s,l,o._v$),u!==o._v$2&&$e(s,o._v$2=u),d!==o._v$3&&de(s,"data-status",o._v$3=d),h!==o._v$4&&de(i,"placeholder",o._v$4=h),o},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),Z(()=>i.value=t.value),s})()};ie(["click"]);const P6=$('<div><i class="thumb"></i></div>'),E6=e=>(()=>{const t=P6.cloneNode(!0);return t.$$click=n=>{e.onChange&&e.onChange()},Z(n=>{const a=e.style,r=`klinecharts-pro-switch ${e.open?"turn-on":"turn-off"} ${e.class??""}`;return n._v$=Ze(t,a,n._v$),r!==n._v$2&&$e(t,n._v$2=r),n},{_v$:void 0,_v$2:void 0}),t})();ie(["click"]);const N6=["MA","EMA","SMA","BOLL","SAR","BBI"],F6=["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"],B6="klinecharts-pro";class Vn{constructor(t=!0,n){N(this,"_prefix");N(this,"_enabled");this._enabled=t,this._prefix=n??B6}_key(t){return`${this._prefix}:${t}`}_get(t){if(!this._enabled)return null;try{const n=localStorage.getItem(this._key(t));return n?JSON.parse(n):null}catch{return null}}_set(t,n){if(this._enabled)try{localStorage.setItem(this._key(t),JSON.stringify(n))}catch(a){console.warn("[ChartStore] Failed to save:",t,a)}}_remove(t){this._enabled&&localStorage.removeItem(this._key(t))}getTheme(){return this._get("theme")}setTheme(t){this._set("theme",t)}getLocale(){return this._get("locale")}setLocale(t){this._set("locale",t)}getTimezone(){return this._get("timezone")}setTimezone(t){this._set("timezone",t)}getSymbol(){return this._get("symbol")}setSymbol(t){this._set("symbol",t)}getPeriod(){return this._get("period")}setPeriod(t){this._set("period",t)}getMainIndicators(){return this._get("mainIndicators")}setMainIndicators(t){this._set("mainIndicators",t)}getSubIndicators(){return this._get("subIndicators")}setSubIndicators(t){this._set("subIndicators",t)}getStyles(){return this._get("styles")}setStyles(t){this._set("styles",t)}getDrawings(t){const n=this._get("drawings");return(n==null?void 0:n[t])??null}setDrawings(t,n){const a=this._get("drawings")??{};a[t]=n,this._set("drawings",a)}getAlerts(){return this._get("alerts")??[]}setAlerts(t){this._set("alerts",t)}addAlert(t){const n=this.getAlerts();n.push(t),this.setAlerts(n)}removeAlert(t){const n=this.getAlerts().filter(a=>a.id!==t);this.setAlerts(n)}getAll(){return{theme:this.getTheme()??void 0,locale:this.getLocale()??void 0,timezone:this.getTimezone()??void 0,symbol:this.getSymbol()??void 0,period:this.getPeriod()??void 0,mainIndicators:this.getMainIndicators()??void 0,styles:this.getStyles()??void 0,alerts:this.getAlerts()}}clear(){["theme","locale","timezone","symbol","period","mainIndicators","subIndicators","styles","drawings","alerts"].forEach(n=>this._remove(n))}}const Un={"zh-CN":{indicator:"指标",main_indicator:"主图指标",sub_indicator:"副图指标",setting:"设置",timezone:"时区",screenshot:"截屏",full_screen:"全屏",exit_full_screen:"退出全屏",save:"保存",confirm:"确定",cancel:"取消",ma:"MA(移动平均线)",ema:"EMA(指数平滑移动平均线)",sma:"SMA",boll:"BOLL(布林线)",bbi:"BBI(多空指数)",sar:"SAR(停损点指向指标)",vol:"VOL(成交量)",macd:"MACD(指数平滑异同移动平均线)",kdj:"KDJ(随机指标)",rsi:"RSI(相对强弱指标)",bias:"BIAS(乖离率)",brar:"BRAR(情绪指标)",cci:"CCI(顺势指标)",dmi:"DMI(动向指标)",cr:"CR(能量指标)",psy:"PSY(心理线)",dma:"DMA(平行线差指标)",trix:"TRIX(三重指数平滑平均线)",obv:"OBV(能量潮指标)",vr:"VR(成交量变异率)",wr:"WR(威廉指标)",mtm:"MTM(动量指标)",emv:"EMV(简易波动指标)",roc:"ROC(变动率指标)",pvt:"PVT(价量趋势指标)",ao:"AO(动量震荡指标)",utc:"世界统一时间",honolulu:"(UTC-10) 檀香山",juneau:"(UTC-8) 朱诺",los_angeles:"(UTC-7) 洛杉矶",chicago:"(UTC-5) 芝加哥",toronto:"(UTC-4) 多伦多",sao_paulo:"(UTC-3) 圣保罗",london:"(UTC+1) 伦敦",berlin:"(UTC+2) 柏林",bahrain:"(UTC+3) 巴林",dubai:"(UTC+4) 迪拜",ashkhabad:"(UTC+5) 阿什哈巴德",almaty:"(UTC+6) 阿拉木图",bangkok:"(UTC+7) 曼谷",shanghai:"(UTC+8) 上海",tokyo:"(UTC+9) 东京",sydney:"(UTC+10) 悉尼",norfolk:"(UTC+12) 诺福克岛",horizontal_straight_line:"水平直线",horizontal_ray_line:"水平射线",horizontal_segment:"水平线段",vertical_straight_line:"垂直直线",vertical_ray_line:"垂直射线",vertical_segment:"垂直线段",straight_line:"直线",ray_line:"射线",segment:"线段",arrow:"箭头",price_line:"价格线",price_channel_line:"价格通道线",parallel_straight_line:"平行直线",fibonacci_line:"斐波那契回调直线",fibonacci_segment:"斐波那契回调线段",fibonacci_circle:"斐波那契圆环",fibonacci_spiral:"斐波那契螺旋",fibonacci_speed_resistance_fan:"斐波那契速度阻力扇",fibonacci_extension:"斐波那契趋势扩展",gann_box:"江恩箱",rect:"矩形",parallelogram:"平行四边形",circle:"圆",triangle:"三角形",three_waves:"三浪",five_waves:"五浪",eight_waves:"八浪",any_waves:"任意浪",abcd:"ABCD形态",xabcd:"XABCD形态",weak_magnet:"弱磁模式",strong_magnet:"强磁模式",symbol_search:"商品搜索",symbol_code:"商品代码",params_1:"参数1",params_2:"参数2",params_3:"参数3",params_4:"参数4",params_5:"参数5",period:"周期",standard_deviation:"标准差",candle_type:"蜡烛图类型",candle_solid:"蜡烛图",candle_stroke:"空心蜡烛",candle_up_stroke:"阳线空心",candle_down_stroke:"阴线空心",ohlc:"OHLC柱",area:"面积图",last_price_show:"最新价显示",high_price_show:"最高价显示",low_price_show:"最低价显示",indicator_last_value_show:"指标最新值显示",price_axis_type:"价格轴类型",normal:"线性轴",percentage:"百分比轴",log:"对数轴",reverse_coordinate:"倒置坐标",grid_show:"网格线显示",restore_default:"恢复默认",error_loading_data:"数据加载失败",retry:"重试",alert:"警报",create_alert:"创建警报",price_alert:"价格警报",crosses_above:"上穿",crosses_below:"下穿",reaches:"到达",alert_triggered:"警报触发",comparison:"比较",add_symbol:"添加商品",remove_symbol:"删除商品",performance:"性能",undo:"撤销",redo:"重做",export_drawings:"导出绘图",import_drawings:"导入绘图",long_position:"做多仓位",short_position:"做空仓位",frvp:"成交量分布 (FRVP)",measure:"测量工具",price_range:"价格范围",text_note:"文字注释",anchored_vwap:"锚定VWAP",price_label:"价格标签",replay:"回放",play:"播放",pause:"暂停",step_forward:"前进一步",step_backward:"后退一步",speed:"速度",exit_replay:"退出回放",object_tree:"对象列表",no_overlays:"图表上没有绘图",templates:"模板",save_template:"保存模板",load_template:"加载模板",delete_template:"删除模板",style_editor:"样式编辑器",line_color:"线条颜色",line_width:"线条宽度",line_style:"线条样式",fill_color:"填充颜色",apply:"应用",edit_style:"编辑样式",delete:"删除",hide:"隐藏",show:"显示",keyboard_shortcuts:"快捷键",use_current_data:"使用当前数据",load_custom_data:"加载自定义数据",chart_type:"图表类型"},"en-US":{indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(情绪指标)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(能量指标)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",gann_box:"Gann Box",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol Search",symbol_code:"Symbol Code",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candles",candle_stroke:"Hollow Candles",candle_up_stroke:"Up Hollow",candle_down_stroke:"Down Hollow",ohlc:"OHLC Bars",area:"Area",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults",error_loading_data:"Failed to load data",retry:"Retry",alert:"Alert",create_alert:"Create Alert",price_alert:"Price Alert",crosses_above:"Crosses Above",crosses_below:"Crosses Below",reaches:"Reaches",alert_triggered:"Alert Triggered",comparison:"Comparison",add_symbol:"Add Symbol",remove_symbol:"Remove Symbol",performance:"Performance",undo:"Undo",redo:"Redo",export_drawings:"Export Drawings",import_drawings:"Import Drawings",long_position:"Long Position",short_position:"Short Position",frvp:"Volume Profile (FRVP)",measure:"Measure",price_range:"Price Range",text_note:"Text Note",anchored_vwap:"Anchored VWAP",price_label:"Price Label",replay:"Replay",play:"Play",pause:"Pause",step_forward:"Step Forward",step_backward:"Step Backward",speed:"Speed",exit_replay:"Exit Replay",object_tree:"Object Tree",no_overlays:"No drawings on chart",templates:"Templates",save_template:"Save Template",load_template:"Load Template",delete_template:"Delete Template",style_editor:"Style Editor",line_color:"Line Color",line_width:"Line Width",line_style:"Line Style",fill_color:"Fill Color",apply:"Apply",edit_style:"Edit Style",delete:"Delete",hide:"Hide",show:"Show",keyboard_shortcuts:"Keyboard Shortcuts",use_current_data:"Use Current Data",load_custom_data:"Load Custom Data",chart_type:"Chart Type",replay_select_hint:"Click on a candle to set replay start point",goto_date:"Go to Date"},"id-ID":{indicator:"Indikator",main_indicator:"Indikator Utama",sub_indicator:"Sub Indikator",setting:"Pengaturan",timezone:"Zona Waktu",screenshot:"Tangkapan Layar",full_screen:"Layar Penuh",exit_full_screen:"Keluar",save:"Simpan",confirm:"Konfirmasi",cancel:"Batal",ma:"MA (Rata-rata Bergerak)",ema:"EMA (Rata-rata Bergerak Eksponensial)",sma:"SMA",boll:"BOLL (Bollinger Bands)",bbi:"BBI (Bull And Bear Index)",sar:"SAR (Stop and Reverse)",vol:"VOL (Volume)",macd:"MACD (Moving Average Convergence/Divergence)",kdj:"KDJ (Indeks KDJ)",rsi:"RSI (Indeks Kekuatan Relatif)",bias:"BIAS (Rasio Bias)",brar:"BRAR (Indikator Sentimen)",cci:"CCI (Indeks Saluran Komoditas)",dmi:"DMI (Indeks Pergerakan Arah)",cr:"CR (Indikator Energi)",psy:"PSY (Garis Psikologis)",dma:"DMA (Selisih Rata-rata Bergerak)",trix:"TRIX (Triple Exponentially Smoothed Moving Average)",obv:"OBV (On Balance Volume)",vr:"VR (Rasio Volume Volatilitas)",wr:"WR (Williams %R)",mtm:"MTM (Indeks Momentum)",emv:"EMV (Ease of Movement Value)",roc:"ROC (Laju Perubahan Harga)",pvt:"PVT (Tren Harga dan Volume)",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:"Garis Horizontal",horizontal_ray_line:"Sinar Horizontal",horizontal_segment:"Segmen Horizontal",vertical_straight_line:"Garis Vertikal",vertical_ray_line:"Sinar Vertikal",vertical_segment:"Segmen Vertikal",straight_line:"Garis Tren",ray_line:"Sinar",segment:"Segmen",arrow:"Panah",price_line:"Garis Harga",price_channel_line:"Garis Saluran Harga",parallel_straight_line:"Garis Paralel",fibonacci_line:"Garis Fibonacci",fibonacci_segment:"Segmen Fibonacci",fibonacci_circle:"Lingkaran Fibonacci",fibonacci_spiral:"Spiral Fibonacci",fibonacci_speed_resistance_fan:"Sektor Fibonacci",fibonacci_extension:"Ekstensi Fibonacci",gann_box:"Kotak Gann",rect:"Persegi Panjang",parallelogram:"Jajar Genjang",circle:"Lingkaran",triangle:"Segitiga",three_waves:"Tiga Gelombang",five_waves:"Lima Gelombang",eight_waves:"Delapan Gelombang",any_waves:"Gelombang Bebas",abcd:"Pola ABCD",xabcd:"Pola XABCD",weak_magnet:"Magnet Lemah",strong_magnet:"Magnet Kuat",symbol_search:"Cari Simbol",symbol_code:"Kode Simbol",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",period:"Periode",standard_deviation:"Deviasi Standar",candle_type:"Tipe Candlestick",candle_solid:"Candlestick",candle_stroke:"Candle Kosong",candle_up_stroke:"Naik Kosong",candle_down_stroke:"Turun Kosong",ohlc:"OHLC Bar",area:"Area",last_price_show:"Tampilkan Harga Terakhir",high_price_show:"Tampilkan Harga Tertinggi",low_price_show:"Tampilkan Harga Terendah",indicator_last_value_show:"Tampilkan Nilai Terakhir Indikator",price_axis_type:"Tipe Sumbu Harga",normal:"Normal",percentage:"Persentase",log:"Logaritma",reverse_coordinate:"Koordinat Terbalik",grid_show:"Tampilkan Grid",restore_default:"Kembalikan Default",error_loading_data:"Gagal memuat data",retry:"Coba Lagi",alert:"Peringatan",create_alert:"Buat Peringatan",price_alert:"Peringatan Harga",crosses_above:"Melewati Atas",crosses_below:"Melewati Bawah",reaches:"Mencapai",alert_triggered:"Peringatan Terpicu",comparison:"Perbandingan",add_symbol:"Tambah Simbol",remove_symbol:"Hapus Simbol",performance:"Performa",undo:"Urungkan",redo:"Ulangi",export_drawings:"Ekspor Gambar",import_drawings:"Impor Gambar",long_position:"Posisi Long",short_position:"Posisi Short",frvp:"Profil Volume (FRVP)",measure:"Pengukuran",price_range:"Rentang Harga",text_note:"Catatan Teks",anchored_vwap:"VWAP Berlabuh",price_label:"Label Harga",replay:"Putar Ulang",play:"Putar",pause:"Jeda",step_forward:"Maju Satu",step_backward:"Mundur Satu",speed:"Kecepatan",exit_replay:"Keluar Putar Ulang",object_tree:"Daftar Objek",no_overlays:"Tidak ada gambar di chart",templates:"Template",save_template:"Simpan Template",load_template:"Muat Template",delete_template:"Hapus Template",style_editor:"Editor Gaya",line_color:"Warna Garis",line_width:"Lebar Garis",line_style:"Gaya Garis",fill_color:"Warna Isi",apply:"Terapkan",edit_style:"Edit Gaya",delete:"Hapus",hide:"Sembunyikan",show:"Tampilkan",keyboard_shortcuts:"Pintasan Keyboard",use_current_data:"Gunakan Data Saat Ini",load_custom_data:"Muat Data Khusus",chart_type:"Jenis Grafik",replay_select_hint:"Klik pada candle untuk menentukan titik mulai replay",goto_date:"Pergi ke Tanggal"},"ja-JP":{indicator:"インジケーター",main_indicator:"メインインジケーター",sub_indicator:"サブインジケーター",setting:"設定",timezone:"タイムゾーン",screenshot:"スクリーンショット",full_screen:"全画面",exit_full_screen:"終了",save:"保存",confirm:"確認",cancel:"キャンセル",ma:"MA(移動平均)",ema:"EMA(指数移動平均)",sma:"SMA",boll:"BOLL(ボリンジャーバンド)",bbi:"BBI(ブルベアインデックス)",sar:"SAR(ストップアンドリバース)",vol:"VOL(出来高)",macd:"MACD(移動平均収束拡散)",kdj:"KDJ(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(ウィリアムズ%R)",mtm:"MTM(モメンタム指数)",emv:"EMV(イーズオブムーブメント)",roc:"ROC(変化率)",pvt:"PVT(価格出来高トレンド)",ao:"AO(オーサムオシレーター)",utc:"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:"3波動",five_waves:"5波動",eight_waves:"8波動",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:"エリア",last_price_show:"最終価格を表示",high_price_show:"最高価格を表示",low_price_show:"最安価格を表示",indicator_last_value_show:"インジケーターの最終値を表示",price_axis_type:"価格軸タイプ",normal:"通常",percentage:"パーセンテージ",log:"対数",reverse_coordinate:"座標反転",grid_show:"グリッド表示",restore_default:"デフォルトに戻す",error_loading_data:"データの読み込みに失敗しました",retry:"再試行",alert:"アラート",create_alert:"アラート作成",price_alert:"価格アラート",crosses_above:"上抜け",crosses_below:"下抜け",reaches:"到達",alert_triggered:"アラート発動",comparison:"比較",add_symbol:"銘柄追加",remove_symbol:"銘柄削除",performance:"パフォーマンス",undo:"元に戻す",redo:"やり直す",export_drawings:"描画エクスポート",import_drawings:"描画インポート",long_position:"ロングポジション",short_position:"ショートポジション",frvp:"出来高プロファイル (FRVP)",measure:"計測ツール",price_range:"価格レンジ",text_note:"テキストメモ",anchored_vwap:"アンカーVWAP",price_label:"価格ラベル",replay:"リプレイ",play:"再生",pause:"一時停止",step_forward:"次のバー",step_backward:"前のバー",speed:"速度",exit_replay:"リプレイ終了",object_tree:"オブジェクトツリー",no_overlays:"チャートに描画がありません",templates:"テンプレート",save_template:"テンプレート保存",load_template:"テンプレート読込",delete_template:"テンプレート削除",style_editor:"スタイル編集",line_color:"線の色",line_width:"線の太さ",line_style:"線のスタイル",fill_color:"塗りつぶし色",apply:"適用",edit_style:"スタイル編集",delete:"削除",hide:"非表示",show:"表示",keyboard_shortcuts:"キーボードショートカット",use_current_data:"現在のデータを使用",load_custom_data:"カスタムデータを読込",chart_type:"チャートタイプ"},"ko-KR":{indicator:"지표",main_indicator:"메인 지표",sub_indicator:"보조 지표",setting:"설정",timezone:"시간대",screenshot:"스크린샷",full_screen:"전체 화면",exit_full_screen:"나가기",save:"저장",confirm:"확인",cancel:"취소",ma:"MA (이동 평균)",ema:"EMA (지수 이동 평균)",sma:"SMA",boll:"BOLL (볼린저 밴드)",bbi:"BBI (불베어 인덱스)",sar:"SAR (스탑 앤 리버스)",vol:"VOL (거래량)",macd:"MACD (이동 평균 수렴/발산)",kdj:"KDJ (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 (윌리엄스 %R)",mtm:"MTM (모멘텀 지수)",emv:"EMV (이동 용이성)",roc:"ROC (가격 변화율)",pvt:"PVT (가격 거래량 추세)",ao:"AO (오썸 오실레이터)",utc:"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:"3파동",five_waves:"5파동",eight_waves:"8파동",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:"영역",last_price_show:"마지막 가격 표시",high_price_show:"최고가 표시",low_price_show:"최저가 표시",indicator_last_value_show:"지표 마지막 값 표시",price_axis_type:"가격 축 유형",normal:"일반",percentage:"퍼센트",log:"로그",reverse_coordinate:"좌표 반전",grid_show:"그리드 표시",restore_default:"기본값 복원",error_loading_data:"데이터 로딩 실패",retry:"재시도",alert:"알림",create_alert:"알림 생성",price_alert:"가격 알림",crosses_above:"상향 돌파",crosses_below:"하향 돌파",reaches:"도달",alert_triggered:"알림 발동",comparison:"비교",add_symbol:"종목 추가",remove_symbol:"종목 삭제",performance:"성능",undo:"실행 취소",redo:"다시 실행",export_drawings:"그리기 내보내기",import_drawings:"그리기 가져오기",long_position:"롱 포지션",short_position:"숏 포지션",frvp:"거래량 프로파일 (FRVP)",measure:"측정 도구",price_range:"가격 범위",text_note:"텍스트 메모",anchored_vwap:"앵커 VWAP",price_label:"가격 라벨",replay:"리플레이",play:"재생",pause:"일시정지",step_forward:"다음 봉",step_backward:"이전 봉",speed:"속도",exit_replay:"리플레이 종료",object_tree:"객체 트리",no_overlays:"차트에 그리기가 없습니다",templates:"템플릿",save_template:"템플릿 저장",load_template:"템플릿 불러오기",delete_template:"템플릿 삭제",style_editor:"스타일 편집기",line_color:"선 색상",line_width:"선 굵기",line_style:"선 스타일",fill_color:"채우기 색상",apply:"적용",edit_style:"스타일 편집",delete:"삭제",hide:"숨기기",show:"보이기",keyboard_shortcuts:"키보드 단축키",use_current_data:"현재 데이터 사용",load_custom_data:"맞춤 데이터 불러오기",chart_type:"차트 유형"}};function O6(e,t){Un[e]=t}const _=(e,t)=>{var n;return((n=Un[t])==null?void 0:n[e])??e},R6=$('<img alt="symbol">'),z6=$('<div class="symbol"><span></span></div>'),j6=$('<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 chart-type-selector"><select class="chart-type-select"><option value="candle_solid"></option><option value="candle_stroke"></option><option value="candle_up_stroke"></option><option value="candle_down_stroke"></option><option value="ohlc"></option><option value="area"></option></select></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z"></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z"></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z"></path></svg><span></span></div><div class="item tools"><svg viewBox="0 0 20 20"><path d="M4,3 L4,17 L16,10 Z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path><line x1="2" y1="3" x2="2" y2="17" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line></svg><span></span></div><div class="item tools"></div></div>'),g1=$("<span></span>"),K6=$('<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"></path></svg>'),V6=$('<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"></path></svg>'),U6=e=>{let t;const[n,a]=w(!1),r=()=>{a(s=>!s)};return Ve(()=>{document.addEventListener("fullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("msfullscreenchange",r)}),De(()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("mozfullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r),document.removeEventListener("msfullscreenchange",r)}),(()=>{const s=j6.cloneNode(!0),i=s.firstChild,o=i.firstChild,l=i.nextSibling,u=l.firstChild,d=u.firstChild,h=d.nextSibling,p=h.nextSibling,x=p.nextSibling,S=x.nextSibling,f=S.nextSibling,g=l.nextSibling,v=g.firstChild,M=v.nextSibling,A=g.nextSibling,F=A.firstChild,B=F.nextSibling,O=A.nextSibling,R=O.firstChild,j=R.nextSibling,D=O.nextSibling,z=D.firstChild,K=z.nextSibling,H=D.nextSibling;return lt(I=>{t=I},s),Pe(o,"click",e.onMenuClick,!0),y(s,C(te,{get when(){return e.symbol},get children(){const I=z6.cloneNode(!0),V=I.firstChild;return Pe(I,"click",e.onSymbolClick,!0),y(I,C(te,{get when(){return e.symbol.logo},get children(){const ne=R6.cloneNode(!0);return Z(()=>de(ne,"src",e.symbol.logo)),ne}}),V),y(V,()=>e.symbol.shortName??e.symbol.name??e.symbol.ticker),I}}),l),y(s,()=>e.periods.map(I=>(()=>{const V=g1.cloneNode(!0);return V.$$click=()=>{e.onPeriodChange(I)},y(V,()=>I.text),Z(()=>$e(V,`item period ${I.text===e.period.text?"selected":""}`)),V})()),l),u.addEventListener("change",I=>{var V;return(V=e.onChartTypeChange)==null?void 0:V.call(e,I.target.value)}),y(d,()=>_("candle_solid",e.locale)),y(h,()=>_("candle_stroke",e.locale)),y(p,()=>_("candle_up_stroke",e.locale)),y(x,()=>_("candle_down_stroke",e.locale)),y(S,()=>_("ohlc",e.locale)),y(f,()=>_("area",e.locale)),Pe(g,"click",e.onIndicatorClick,!0),y(M,()=>_("indicator",e.locale)),Pe(A,"click",e.onSettingClick,!0),y(B,()=>_("setting",e.locale)),Pe(O,"click",e.onScreenshotClick,!0),y(j,()=>_("screenshot",e.locale)),D.$$click=()=>{var I;return(I=e.onReplayClick)==null?void 0:I.call(e)},y(K,()=>_("replay",e.locale)),H.$$click=()=>{if(n())(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen).call(document);else{const I=t==null?void 0:t.parentElement;I&&(I.requestFullscreen??I.webkitRequestFullscreen??I.mozRequestFullScreen??I.msRequestFullscreen).call(I)}},y(H,(()=>{const I=W(()=>!!n());return()=>I()?[K6.cloneNode(!0),(()=>{const V=g1.cloneNode(!0);return y(V,()=>_("exit_full_screen",e.locale)),V})()]:[V6.cloneNode(!0),(()=>{const V=g1.cloneNode(!0);return y(V,()=>_("full_screen",e.locale)),V})()]})()),Z(()=>de(o,"class",e.spread?"":"rotate")),Z(()=>u.value=e.chartType??"candle_solid"),s})()};ie(["click"]);const Z6=$('<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"></path></svg>'),H6=()=>Z6.cloneNode(!0),Q6=$('<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"></path></svg>'),Y6=()=>Q6.cloneNode(!0),W6=$('<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"></path></svg>'),G6=()=>W6.cloneNode(!0),X6=$('<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"></path></svg>'),J6=()=>X6.cloneNode(!0),q6=$('<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"></path></svg>'),el=()=>q6.cloneNode(!0),tl=$('<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"></path></svg>'),nl=()=>tl.cloneNode(!0),al=$('<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"></path></svg>'),rl=()=>al.cloneNode(!0),sl=$('<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"></path></svg>'),ol=()=>sl.cloneNode(!0),il=$('<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"></path></svg>'),$1=()=>il.cloneNode(!0),ll=$('<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"></path></svg>'),Zn=()=>ll.cloneNode(!0),cl=$('<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"></path></svg>'),Hn=()=>cl.cloneNode(!0),dl=$('<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"></path></svg>'),ul=()=>dl.cloneNode(!0),_l=$('<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"></path></svg>'),hl=()=>_l.cloneNode(!0),gl=$('<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"></path></svg>'),$l=()=>gl.cloneNode(!0),yl=$('<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"></path></svg>'),pl=()=>yl.cloneNode(!0),ml=$('<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"></ellipse></svg>'),fl=()=>ml.cloneNode(!0),vl=$('<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"></path></svg>'),Cl=()=>vl.cloneNode(!0),bl=$('<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"></path></svg>'),xl=()=>bl.cloneNode(!0),Ll=$('<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"></path></svg>'),wl=()=>Ll.cloneNode(!0),kl=$('<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"></path></svg>'),Sl=()=>kl.cloneNode(!0),Tl=$('<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"></ellipse></svg>'),Ml=()=>Tl.cloneNode(!0),Al=$('<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"></path></svg>'),Il=()=>Al.cloneNode(!0),Dl=$('<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"></path></svg>'),Qn=()=>Dl.cloneNode(!0),Pl=$('<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"></path></svg>'),El=()=>Pl.cloneNode(!0),Nl=$('<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"></path></svg>'),Fl=()=>Nl.cloneNode(!0),Bl=$('<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"></path></svg>'),Ol=()=>Bl.cloneNode(!0),Rl=$('<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"></path></svg>'),zl=()=>Rl.cloneNode(!0),jl=$('<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"></path></svg>'),Kl=()=>jl.cloneNode(!0),Vl=$('<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"></path></svg>'),Ul=()=>Vl.cloneNode(!0),Zl=$('<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"></path></svg>'),Hl=()=>Zl.cloneNode(!0),Ql=$('<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"></path></svg>'),Yl=e=>(()=>{const t=Ql.cloneNode(!0);return de(t,"class",`icon-overlay ${e??""}`),t})(),Wl=$('<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"></path></g></svg>'),Gl=e=>(()=>{const t=Wl.cloneNode(!0);return de(t,"class",`icon-overlay ${e??""}`),t})(),Xl=$('<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"></path></svg>'),Jl=()=>Xl.cloneNode(!0),ql=$('<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"></path></svg>'),ec=()=>ql.cloneNode(!0),tc=$('<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"></path></g></svg>'),nc=()=>tc.cloneNode(!0),ac=$('<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"></path></g></svg>'),rc=()=>ac.cloneNode(!0),sc=$('<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"></path></svg>'),oc=()=>sc.cloneNode(!0),ic=$('<svg class="icon-overlay" viewBox="0 0 22 22"><line x1="4" y1="13" x2="18" y2="13" stroke="currentColor" stroke-width="1.2" stroke-opacity="0.6"></line><line x1="11" y1="18" x2="11" y2="6" stroke="currentColor" stroke-width="1.5"></line><path d="M7,9.5 L11,4 L15,9.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><rect x="4" y="4" width="14" height="9" fill="currentColor" fill-opacity="0.08" rx="1"></rect></svg>'),lc=()=>ic.cloneNode(!0),cc=$('<svg class="icon-overlay" viewBox="0 0 22 22"><line x1="4" y1="9" x2="18" y2="9" stroke="currentColor" stroke-width="1.2" stroke-opacity="0.6"></line><line x1="11" y1="4" x2="11" y2="16" stroke="currentColor" stroke-width="1.5"></line><path d="M7,12.5 L11,18 L15,12.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"></path><rect x="4" y="9" width="14" height="9" fill="currentColor" fill-opacity="0.08" rx="1"></rect></svg>'),dc=()=>cc.cloneNode(!0),uc=$('<svg class="icon-overlay" viewBox="0 0 22 22"><line x1="4" y1="3" x2="4" y2="19" stroke="currentColor" stroke-width="1" stroke-opacity="0.4"></line><rect x="4" y="3.5" width="8" height="1.8" fill="currentColor" fill-opacity="0.5" rx="0.5"></rect><rect x="4" y="6" width="12" height="1.8" fill="currentColor" fill-opacity="0.6" rx="0.5"></rect><rect x="4" y="8.5" width="14" height="1.8" fill="currentColor" fill-opacity="0.9" rx="0.5"></rect><rect x="4" y="11" width="10" height="1.8" fill="currentColor" fill-opacity="0.7" rx="0.5"></rect><rect x="4" y="13.5" width="6" height="1.8" fill="currentColor" fill-opacity="0.4" rx="0.5"></rect><rect x="4" y="16" width="9" height="1.8" fill="currentColor" fill-opacity="0.5" rx="0.5"></rect><line x1="4" y1="9.4" x2="19" y2="9.4" stroke="currentColor" stroke-width="0.8" stroke-dasharray="2,1.5" stroke-opacity="0.7"></line></svg>'),_c={horizontalStraightLine:H6,horizontalRayLine:Y6,horizontalSegment:G6,verticalStraightLine:J6,verticalRayLine:el,verticalSegment:nl,straightLine:rl,rayLine:ol,segment:$1,arrow:Zn,priceLine:Hn,priceChannelLine:ul,parallelStraightLine:hl,fibonacciLine:$l,fibonacciSegment:pl,fibonacciCircle:fl,fibonacciSpiral:Cl,fibonacciSpeedResistanceFan:xl,fibonacciExtension:wl,gannBox:Sl,circle:Ml,triangle:Il,rect:Qn,parallelogram:El,threeWaves:Fl,fiveWaves:Ol,eightWaves:zl,anyWaves:Kl,abcd:Ul,xabcd:Hl,weak_magnet:Yl,strong_magnet:Gl,lock:nc,unlock:rc,visible:Jl,invisible:ec,remove:oc,longPosition:lc,shortPosition:dc,frvp:()=>uc.cloneNode(!0),measure:$1,priceRange:Qn,textNote:Zn,anchoredVwap:$1,priceLabel:Hn};function hc(e){return[{key:"horizontalStraightLine",text:_("horizontal_straight_line",e)},{key:"horizontalRayLine",text:_("horizontal_ray_line",e)},{key:"horizontalSegment",text:_("horizontal_segment",e)},{key:"verticalStraightLine",text:_("vertical_straight_line",e)},{key:"verticalRayLine",text:_("vertical_ray_line",e)},{key:"verticalSegment",text:_("vertical_segment",e)},{key:"straightLine",text:_("straight_line",e)},{key:"rayLine",text:_("ray_line",e)},{key:"segment",text:_("segment",e)},{key:"arrow",text:_("arrow",e)},{key:"priceLine",text:_("price_line",e)}]}function gc(e){return[{key:"priceChannelLine",text:_("price_channel_line",e)},{key:"parallelStraightLine",text:_("parallel_straight_line",e)}]}function $c(e){return[{key:"circle",text:_("circle",e)},{key:"rect",text:_("rect",e)},{key:"parallelogram",text:_("parallelogram",e)},{key:"triangle",text:_("triangle",e)}]}function yc(e){return[{key:"fibonacciLine",text:_("fibonacci_line",e)},{key:"fibonacciSegment",text:_("fibonacci_segment",e)},{key:"fibonacciCircle",text:_("fibonacci_circle",e)},{key:"fibonacciSpiral",text:_("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:_("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:_("fibonacci_extension",e)},{key:"gannBox",text:_("gann_box",e)}]}function pc(e){return[{key:"xabcd",text:_("xabcd",e)},{key:"abcd",text:_("abcd",e)},{key:"threeWaves",text:_("three_waves",e)},{key:"fiveWaves",text:_("five_waves",e)},{key:"eightWaves",text:_("eight_waves",e)},{key:"anyWaves",text:_("any_waves",e)}]}function mc(e){return[{key:"weak_magnet",text:_("weak_magnet",e)},{key:"strong_magnet",text:_("strong_magnet",e)}]}function fc(e){return[{key:"longPosition",text:_("long_position",e)},{key:"shortPosition",text:_("short_position",e)},{key:"measure",text:_("measure",e)}]}function vc(e){return[{key:"frvp",text:_("frvp",e)},{key:"priceRange",text:_("price_range",e)},{key:"textNote",text:_("text_note",e)},{key:"anchoredVwap",text:_("anchored_vwap",e)},{key:"priceLabel",text:_("price_label",e)}]}const fe=e=>{const t=_c[e.name];return t?t(e.class):null};class Cc{constructor(){N(this,"_customIndicators",[]);N(this,"_customOverlays",[]);N(this,"_listeners",[])}addIndicator(t){this._customIndicators.find(n=>n.name===t.name)||(this._customIndicators.push(t),this._notify())}addOverlay(t){this._customOverlays.find(n=>n.name===t.name)||(this._customOverlays.push(t),this._notify())}getCustomIndicators(){return[...this._customIndicators]}getCustomMainIndicators(){return this._customIndicators.filter(t=>t.paneType==="main")}getCustomSubIndicators(){return this._customIndicators.filter(t=>t.paneType!=="main")}getCustomOverlays(){return[...this._customOverlays]}onChange(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(n=>n!==t)}}_notify(){this._listeners.forEach(t=>t())}}const ve=new Cc,bc=$('<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"></span></div></div>'),xc=$('<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>'),Yn=$('<li><span style="padding-left:8px"></span></li>'),Wn="drawing_tools",Lc=e=>{const[t,n]=w("horizontalStraightLine"),[a,r]=w("priceChannelLine"),[s,i]=w("circle"),[o,l]=w("fibonacciLine"),[u,d]=w("xabcd"),[h,p]=w("longPosition"),[x,S]=w("frvp"),[f,g]=w("weak_magnet"),[v,M]=w("normal"),[A,F]=w(!1),[B,O]=w(!0),[R,j]=w(""),[D,z]=w(""),[K,H]=w([]);Ve(()=>{const ne=()=>{const le=ve.getCustomOverlays().map(pe=>({key:pe.name,text:pe.label}));H(le),le.length>0&&!D()&&z(le[0].key)};ne();const oe=ve.onChange(ne);De(oe)});const I=W(()=>{var le;const ne=[{key:"singleLine",icon:t(),list:hc(e.locale),setter:n},{key:"moreLine",icon:a(),list:gc(e.locale),setter:r},{key:"polygon",icon:s(),list:$c(e.locale),setter:i},{key:"fibonacci",icon:o(),list:yc(e.locale),setter:l},{key:"wave",icon:u(),list:pc(e.locale),setter:d},{key:"trading",icon:h(),list:fc(e.locale),setter:p},{key:"annotation",icon:x(),list:vc(e.locale),setter:S}],oe=K();return oe.length>0&&ne.push({key:"custom",icon:D()||((le=oe[0])==null?void 0:le.key)||"",list:oe,setter:z}),ne}),V=W(()=>mc(e.locale));return(()=>{const ne=bc.cloneNode(!0),oe=ne.firstChild,le=oe.nextSibling,pe=le.firstChild,Ye=pe.nextSibling,Ne=Ye.firstChild,Fe=le.nextSibling,Be=Fe.firstChild,Oe=Fe.nextSibling,Re=Oe.firstChild,We=Oe.nextSibling,Ge=We.nextSibling,Ae=Ge.firstChild;return y(ne,()=>I().map(Q=>(()=>{const se=xc.cloneNode(!0),ye=se.firstChild,xe=ye.nextSibling,_t=xe.firstChild;return se.addEventListener("blur",()=>{j("")}),ye.$$click=()=>{e.onDrawingItemClick({groupId:Wn,name:Q.icon,visible:B(),lock:A(),mode:v()})},y(ye,C(fe,{get name(){return Q.icon}})),xe.$$click=()=>{Q.key===R()?j(""):j(Q.key)},y(se,(()=>{const Le=W(()=>Q.key===R());return()=>Le()&&C(ut,{class:"list",get children(){return Q.list.map(Ie=>(()=>{const m=Yn.cloneNode(!0),Y=m.firstChild;return m.$$click=()=>{Q.setter(Ie.key),e.onDrawingItemClick({name:Ie.key,lock:A(),mode:v()}),j("")},y(m,C(fe,{get name(){return Ie.key}}),Y),y(Y,()=>Ie.text),m})())}})})(),null),Z(()=>de(_t,"class",Q.key===R()?"rotate":"")),se})()),oe),le.addEventListener("blur",()=>{j("")}),pe.$$click=()=>{let Q=f();v()!=="normal"&&(Q="normal"),M(Q),e.onModeChange(Q)},y(pe,(()=>{const Q=W(()=>f()==="weak_magnet");return()=>Q()?(()=>{const se=W(()=>v()==="weak_magnet");return()=>se()?C(fe,{name:"weak_magnet",class:"selected"}):C(fe,{name:"weak_magnet"})})():(()=>{const se=W(()=>v()==="strong_magnet");return()=>se()?C(fe,{name:"strong_magnet",class:"selected"}):C(fe,{name:"strong_magnet"})})()})()),Ye.$$click=()=>{R()==="mode"?j(""):j("mode")},y(le,(()=>{const Q=W(()=>R()==="mode");return()=>Q()&&C(ut,{class:"list",get children(){return V().map(se=>(()=>{const ye=Yn.cloneNode(!0),xe=ye.firstChild;return ye.$$click=()=>{g(se.key),M(se.key),e.onModeChange(se.key),j("")},y(ye,C(fe,{get name(){return se.key}}),xe),y(xe,()=>se.text),ye})())}})})(),null),Be.$$click=()=>{const Q=!A();F(Q),e.onLockChange(Q)},y(Be,(()=>{const Q=W(()=>!!A());return()=>Q()?C(fe,{name:"lock"}):C(fe,{name:"unlock"})})()),Re.$$click=()=>{const Q=!B();O(Q),e.onVisibleChange(Q)},y(Re,(()=>{const Q=W(()=>!!B());return()=>Q()?C(fe,{name:"visible"}):C(fe,{name:"invisible"})})()),Ae.$$click=()=>{e.onRemoveClick(Wn)},y(Ae,C(fe,{name:"remove"})),Z(()=>de(Ne,"class",R()==="mode"?"rotate":"")),ne})()};ie(["click"]);const Gn=$('<li class="title"></li>'),Bt=$('<li class="row"></li>'),wc=e=>{const[t,n]=w(ve.getCustomMainIndicators()),[a,r]=w(ve.getCustomSubIndicators());return Ve(()=>{const s=ve.onChange(()=>{n(ve.getCustomMainIndicators()),r(ve.getCustomSubIndicators())});De(s)}),C(Ee,{get title(){return _("indicator",e.locale)},width:400,get onClose(){return e.onClose},get children(){return C(ut,{class:"klinecharts-pro-indicator-modal-list",get children(){return[(()=>{const s=Gn.cloneNode(!0);return y(s,()=>_("main_indicator",e.locale)),s})(),W(()=>N6.map(s=>{const i=e.mainIndicators.includes(s);return(()=>{const o=Bt.cloneNode(!0);return o.$$click=l=>{e.onMainIndicatorChange({name:s,paneId:"candle_pane",added:!i})},y(o,C(Ft,{checked:i,get label(){return _(s.toLowerCase(),e.locale)}})),o})()})),W(()=>t().map(s=>{const i=e.mainIndicators.includes(s.name);return(()=>{const o=Bt.cloneNode(!0);return o.$$click=l=>{e.onMainIndicatorChange({name:s.name,paneId:"candle_pane",added:!i})},y(o,C(Ft,{checked:i,get label(){return s.label}})),o})()})),(()=>{const s=Gn.cloneNode(!0);return y(s,()=>_("sub_indicator",e.locale)),s})(),W(()=>F6.map(s=>{const i=s in e.subIndicators;return(()=>{const o=Bt.cloneNode(!0);return o.$$click=l=>{e.onSubIndicatorChange({name:s,paneId:e.subIndicators[s]??"",added:!i})},y(o,C(Ft,{checked:i,get label(){return _(s.toLowerCase(),e.locale)}})),o})()})),W(()=>a().map(s=>{const i=s.name in e.subIndicators;return(()=>{const o=Bt.cloneNode(!0);return o.$$click=l=>{e.onSubIndicatorChange({name:s.name,paneId:e.subIndicators[s.name]??"",added:!i})},y(o,C(Ft,{checked:i,get label(){return s.label}})),o})()}))]}})}})};ie(["click"]);function y1(e,t){switch(e){case"Etc/UTC":return _("utc",t);case"Pacific/Honolulu":return _("honolulu",t);case"America/Juneau":return _("juneau",t);case"America/Los_Angeles":return _("los_angeles",t);case"America/Chicago":return _("chicago",t);case"America/Toronto":return _("toronto",t);case"America/Sao_Paulo":return _("sao_paulo",t);case"Europe/London":return _("london",t);case"Europe/Berlin":return _("berlin",t);case"Asia/Bahrain":return _("bahrain",t);case"Asia/Dubai":return _("dubai",t);case"Asia/Ashkhabad":return _("ashkhabad",t);case"Asia/Almaty":return _("almaty",t);case"Asia/Bangkok":return _("bangkok",t);case"Asia/Shanghai":return _("shanghai",t);case"Asia/Tokyo":return _("tokyo",t);case"Australia/Sydney":return _("sydney",t);case"Pacific/Norfolk":return _("norfolk",t)}return e}function kc(e){return[{key:"Etc/UTC",text:_("utc",e)},{key:"Pacific/Honolulu",text:_("honolulu",e)},{key:"America/Juneau",text:_("juneau",e)},{key:"America/Los_Angeles",text:_("los_angeles",e)},{key:"America/Chicago",text:_("chicago",e)},{key:"America/Toronto",text:_("toronto",e)},{key:"America/Sao_Paulo",text:_("sao_paulo",e)},{key:"Europe/London",text:_("london",e)},{key:"Europe/Berlin",text:_("berlin",e)},{key:"Asia/Bahrain",text:_("bahrain",e)},{key:"Asia/Dubai",text:_("dubai",e)},{key:"Asia/Ashkhabad",text:_("ashkhabad",e)},{key:"Asia/Almaty",text:_("almaty",e)},{key:"Asia/Bangkok",text:_("bangkok",e)},{key:"Asia/Shanghai",text:_("shanghai",e)},{key:"Asia/Tokyo",text:_("tokyo",e)},{key:"Australia/Sydney",text:_("sydney",e)},{key:"Pacific/Norfolk",text:_("norfolk",e)}]}const Sc=e=>{const[t,n]=w(e.timezone),a=W(()=>kc(e.locale));return C(Ee,{get title(){return _("timezone",e.locale)},width:320,get buttons(){return[{children:_("confirm",e.locale),onClick:()=>{e.onConfirm(t()),e.onClose()}}]},get onClose(){return e.onClose},get children(){return C(jn,{style:{width:"100%","margin-top":"20px"},get value(){return t().text},onSelected:r=>{n(r)},get dataSource(){return a()}})}})};function Xn(e){return[{key:"candle.type",text:_("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:_("candle_solid",e)},{key:"candle_stroke",text:_("candle_stroke",e)},{key:"candle_up_stroke",text:_("candle_up_stroke",e)},{key:"candle_down_stroke",text:_("candle_down_stroke",e)},{key:"ohlc",text:_("ohlc",e)},{key:"area",text:_("area",e)}]},{key:"candle.priceMark.last.show",text:_("last_price_show",e),component:"switch"},{key:"candle.priceMark.high.show",text:_("high_price_show",e),component:"switch"},{key:"candle.priceMark.low.show",text:_("low_price_show",e),component:"switch"},{key:"indicator.lastValueMark.show",text:_("indicator_last_value_show",e),component:"switch"},{key:"yAxis.type",text:_("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:_("normal",e)},{key:"percentage",text:_("percentage",e)},{key:"log",text:_("log",e)}]},{key:"yAxis.reverse",text:_("reverse_coordinate",e),component:"switch"},{key:"grid.show",text:_("grid_show",e),component:"switch"}]}const Tc=$('<div class="klinecharts-pro-setting-modal-content"></div>'),Mc=$("<span></span>"),Ac=e=>{const[t,n]=w(e.currentStyles),[a,r]=w(Xn(e.locale));ce(()=>{r(Xn(e.locale))});const s=(i,o)=>{const l={};e1(l,i.key,o);const u=T.utils.clone(t());e1(u,i.key,o),n(u),r(a().map(d=>({...d}))),e.onChange(l)};return C(Ee,{get title(){return _("setting",e.locale)},width:560,get buttons(){return[{children:_("restore_default",e.locale),onClick:()=>{e.onRestoreDefault(a()),e.onClose()}}]},get onClose(){return e.onClose},get children(){const i=Tc.cloneNode(!0);return y(i,C(Qt,{get each(){return a()},children:o=>{let l;const u=T.utils.formatValue(t(),o.key);switch(o.component){case"select":{l=C(jn,{style:{width:"120px"},get value(){return _(u,e.locale)},get dataSource(){return o.dataSource},onSelected:d=>{const h=d.key;s(o,h)}});break}case"switch":{const d=!!u;l=C(E6,{open:d,onChange:()=>{s(o,!d)}});break}}return[(()=>{const d=Mc.cloneNode(!0);return y(d,()=>o.text),d})(),l]}})),i}})},Ic=$('<img style="width:500px;margin-top: 20px">'),Dc=e=>C(Ee,{get title(){return _("screenshot",e.locale)},width:540,get buttons(){return[{type:"confirm",children:_("save",e.locale),onClick:()=>{const t=document.createElement("a");t.download="screenshot",t.href=e.url,document.body.appendChild(t),t.click(),t.remove()}}]},get onClose(){return e.onClose},get children(){const t=Ic.cloneNode(!0);return Z(()=>de(t,"src",e.url)),t}}),Pc={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"}]},Ec=$('<div class="klinecharts-pro-indicator-setting-modal-content"></div>'),Nc=$("<span></span>"),Fc=e=>{const[t,n]=w(T.utils.clone(e.params.calcParams)),a=r=>Pc[r];return C(Ee,{get title(){return e.params.indicatorName},width:360,get buttons(){return[{type:"confirm",children:_("confirm",e.locale),onClick:()=>{const r=a(e.params.indicatorName),s=[];T.utils.clone(t()).forEach((i,o)=>{!T.utils.isValid(i)||i===""?"default"in r[o]&&s.push(r[o].default):s.push(i)}),e.onConfirm(s),e.onClose()}}]},get onClose(){return e.onClose},get children(){const r=Ec.cloneNode(!0);return y(r,()=>a(e.params.indicatorName).map((s,i)=>[(()=>{const o=Nc.cloneNode(!0);return y(o,()=>_(s.paramNameKey,e.locale)),o})(),C(Kn,{style:{width:"200px"},get value(){return t()[i]??""},get precision(){return s.precision},get min(){return s.min},onChange:o=>{const l=T.utils.clone(t());l[i]=o,n(l)}})])),r}})},Bc=$('<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"></path></svg>'),Oc=$('<img alt="symbol">'),Rc=$("<li><div><span></span></div></li>"),zc=e=>{const[t,n]=w(""),[a]=Ma(t,e.datafeed.searchSymbols.bind(e.datafeed));return C(Ee,{get title(){return _("symbol_search",e.locale)},width:460,get onClose(){return e.onClose},get children(){return[C(Kn,{class:"klinecharts-pro-symbol-search-modal-input",get placeholder(){return _("symbol_code",e.locale)},get suffix(){return Bc.cloneNode(!0)},get value(){return t()},onChange:r=>{const s=`${r}`;n(s)}}),C(ut,{class:"klinecharts-pro-symbol-search-modal-list",get loading(){return a.loading},get dataSource(){return a()??[]},renderItem:r=>(()=>{const s=Rc.cloneNode(!0),i=s.firstChild,o=i.firstChild;return s.$$click=()=>{e.onSymbolSelected(r),e.onClose()},y(i,C(te,{get when(){return r.logo},get children(){const l=Oc.cloneNode(!0);return Z(()=>de(l,"src",r.logo)),l}}),o),y(o,()=>r.shortName??r.ticker,null),y(o,()=>`${r.name?`(${r.name})`:""}`,null),y(s,()=>r.exchange??"",null),Z(()=>de(o,"title",r.name??"")),s})()})]}})};ie(["click"]),ie(["click"]),ie(["click"]);const jc=$('<div class="klinecharts-pro-replay-bar"><div class="replay-controls"><button class="replay-btn">⏮</button><button class="replay-btn primary"></button><button class="replay-btn">⏭</button></div><div class="replay-progress"><div class="replay-progress-track"><div class="replay-progress-fill"></div><input type="range" class="replay-progress-slider" min="0"></div><span class="replay-progress-text"> / </span></div><div class="replay-speed"><select></select></div><button class="replay-btn exit">✕ </button></div>'),Kc=$("<option></option>"),Vc=[{value:2e3,label:"0.25x"},{value:1e3,label:"0.5x"},{value:500,label:"1x"},{value:250,label:"2x"},{value:100,label:"5x"},{value:50,label:"10x"}],Uc=e=>{const t=()=>e.total>0?e.index/e.total*100:0;return(()=>{const n=jc.cloneNode(!0),a=n.firstChild,r=a.firstChild,s=r.nextSibling,i=s.nextSibling,o=a.nextSibling,l=o.firstChild,u=l.firstChild,d=u.nextSibling,h=l.nextSibling,p=h.firstChild,x=o.nextSibling,S=x.firstChild,f=x.nextSibling;return f.firstChild,r.$$click=()=>e.onStepBackward(),s.$$click=()=>e.status==="playing"?e.onPause():e.onPlay(),y(s,()=>e.status==="playing"?"⏸":"▶"),i.$$click=()=>e.onStepForward(),d.$$input=g=>e.onSeek(parseInt(g.target.value)),y(h,()=>e.index+1,p),y(h,()=>e.total,null),S.addEventListener("change",g=>e.onSpeedChange(parseInt(g.target.value))),y(S,()=>Vc.map(g=>(()=>{const v=Kc.cloneNode(!0);return y(v,()=>g.label),Z(()=>v.value=g.value),v})())),f.$$click=()=>e.onExit(),y(f,()=>_("exit_replay",e.locale),null),Z(g=>{const v=_("step_backward",e.locale),M=_("step_forward",e.locale),A=`${t()}%`,F=e.total-1;return v!==g._v$&&de(r,"title",g._v$=v),M!==g._v$2&&de(i,"title",g._v$2=M),A!==g._v$3&&u.style.setProperty("width",g._v$3=A),F!==g._v$4&&de(d,"max",g._v$4=F),g},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),Z(()=>d.value=e.index),Z(()=>S.value=e.speed),n})()};ie(["click","input"]);const Zc=$('<div class="klinecharts-pro-replay-overlay"><div class="replay-overlay-banner"><span class="replay-overlay-icon">📍</span><span class="replay-overlay-text"></span><button class="replay-overlay-cancel"></button></div></div>'),Hc=$('<div class="replay-overlay-vline"></div>'),Qc=e=>(()=>{const t=Zc.cloneNode(!0),n=t.firstChild,a=n.firstChild,r=a.nextSibling,s=r.nextSibling;return y(r,()=>_("replay_select_hint",e.locale)),Pe(s,"click",e.onCancel,!0),y(s,()=>_("cancel",e.locale)),y(t,(()=>{const i=W(()=>!!(e.crosshairVisible&&e.crosshairX>0));return()=>i()&&(()=>{const o=Hc.cloneNode(!0);return Z(()=>o.style.setProperty("left",`${e.crosshairX}px`)),o})()})(),null),t})();ie(["click"]);const Yc=$('<div class="klinecharts-pro-bottom-bar"><div class="bottom-bar-goto"><button class="bottom-bar-icon-btn"><svg viewBox="0 0 20 20" width="14" height="14"><path d="M6,1 L6,3 M14,1 L14,3 M3,7 L17,7 M2,4 L18,4 C18.5523,4 19,4.44772 19,5 L19,17 C19,17.5523 18.5523,18 18,18 L2,18 C1.44772,18 1,17.5523 1,17 L1,5 C1,4.44772 1.44772,4 2,4 Z M5,10 L5,12 L7,12 L7,10 L5,10 Z M9,10 L9,12 L11,12 L11,10 L9,10 Z M13,10 L13,12 L15,12 L15,10 L13,10 Z M5,14 L5,16 L7,16 L7,14 L5,14 Z M9,14 L9,16 L11,16 L11,14 L9,14 Z" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path></svg></button></div><span class="bottom-bar-sep">|</span><div class="bottom-bar-clock"><svg viewBox="0 0 16 16" width="12" height="12"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.2"></circle><path d="M8,4 L8,8 L11,10" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="clock-time"></span><span class="clock-tz"></span></div></div>'),Wc=$('<div class="goto-date-popup"><div class="goto-date-row"><input type="date"><input type="time"></div><button class="goto-date-go">Go</button></div>');function Gc(e){try{const t=new Date,n=t.toLocaleString("en-US",{timeZone:"UTC"}),a=t.toLocaleString("en-US",{timeZone:e});return(new Date(a).getTime()-new Date(n).getTime())/(60*1e3)}catch{return new Date().getTimezoneOffset()*-1}}function Xc(e){const t=e>=0?"+":"-",n=Math.abs(e),a=Math.floor(n/60),r=n%60;return`UTC${t}${a}${r>0?":"+String(r).padStart(2,"0"):""}`}function Jn(e){try{return new Date().toLocaleTimeString("en-GB",{timeZone:e,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return new Date().toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}}const Jc=e=>{const[t,n]=w(Jn(e.timezone)),[a,r]=w(!1),[s,i]=w(""),[o,l]=w("00:00");let u=null,d;Ve(()=>{u=setInterval(()=>{n(Jn(e.timezone))},1e3)}),De(()=>{u&&clearInterval(u)});const h=f=>{d&&!d.contains(f.target)&&r(!1)};Ve(()=>document.addEventListener("mousedown",h)),De(()=>document.removeEventListener("mousedown",h));const p=()=>{const f=s();if(!f)return;const g=o()||"00:00",v=new Date(`${f}T${g}:00`).getTime();isNaN(v)||(e.onGotoDate(v),r(!1))},x=()=>Gc(e.timezone),S=()=>Xc(x());return(()=>{const f=Yc.cloneNode(!0),g=f.firstChild,v=g.firstChild,M=g.nextSibling,A=M.nextSibling,F=A.firstChild,B=F.nextSibling,O=B.nextSibling,R=d;return typeof R=="function"?lt(R,g):d=g,v.$$click=()=>r(!a()),y(g,(()=>{const j=W(()=>!!a());return()=>j()&&(()=>{const D=Wc.cloneNode(!0),z=D.firstChild,K=z.firstChild,H=K.nextSibling,I=z.nextSibling;return K.$$input=V=>i(V.target.value),H.$$input=V=>l(V.target.value),I.$$click=p,Z(()=>K.value=s()),Z(()=>H.value=o()),D})()})(),null),A.$$click=()=>e.onTimezoneClick(),y(B,t),y(O,S),Z(()=>de(v,"title",_("goto_date",e.locale))),f})()};ie(["click","input"]);const qc=$('<li class="empty"></li>'),e8=$('<li class="object-tree-row"><span class="object-tree-name"></span><span class="object-tree-actions"><button></button><button class="object-tree-btn delete" title="Delete">🗑</button></span></li>'),t8={horizontalStraightLine:"━ Horizontal Line",horizontalRayLine:"→ Horizontal Ray",horizontalSegment:"─ Horizontal Segment",verticalStraightLine:"┃ Vertical Line",verticalRayLine:"↓ Vertical Ray",verticalSegment:"│ Vertical Segment",straightLine:"╲ Straight Line",rayLine:"↗ Ray Line",segment:"╱ Segment",arrow:"→ Arrow",priceLine:"$ Price Line",priceChannelLine:"⊞ Price Channel",parallelStraightLine:"═ Parallel Line",fibonacciLine:"𝑓 Fibonacci Line",fibonacciSegment:"𝑓 Fibonacci Segment",fibonacciCircle:"◎ Fibonacci Circle",fibonacciSpiral:"🌀 Fibonacci Spiral",fibonacciSpeedResistanceFan:"扇 Fibonacci Fan",fibonacciExtension:"𝑓 Fibonacci Extension",gannBox:"⊞ Gann Box",circle:"○ Circle",rect:"□ Rectangle",triangle:"△ Triangle",parallelogram:"▱ Parallelogram",threeWaves:"∿ Three Waves",fiveWaves:"∿ Five Waves",eightWaves:"∿ Eight Waves",anyWaves:"∿ Any Waves",abcd:"◇ ABCD",xabcd:"◇ XABCD",longPosition:"📈 Long Position",shortPosition:"📉 Short Position",frvp:"📊 Volume Profile",measure:"📏 Measure",priceRange:"🔷 Price Range",textNote:"📝 Text Note",anchoredVwap:"⚓ Anchored VWAP",priceLabel:"🏷️ Price Label"};function n8(e){return t8[e]??e}const a8=e=>C(Ee,{get title(){return _("object_tree",e.locale)},width:360,get onClose(){return e.onClose},get children(){return C(ut,{class:"klinecharts-pro-object-tree-list",get children(){return[W(()=>W(()=>e.overlays.length===0)()&&(()=>{const t=qc.cloneNode(!0);return y(t,()=>_("no_overlays",e.locale)),t})()),C(Qt,{get each(){return e.overlays},children:t=>(()=>{const n=e8.cloneNode(!0),a=n.firstChild,r=a.nextSibling,s=r.firstChild,i=s.nextSibling;return a.$$click=()=>e.onSelect(t.id),y(a,()=>n8(t.name)),s.$$click=()=>e.onToggleVisibility(t.id,!t.visible),y(s,()=>t.visible?"👁":"👁🗨"),i.$$click=()=>e.onRemove(t.id),Z(o=>{const l=`object-tree-btn ${t.visible?"visible":"hidden"}`,u=t.visible?"Hide":"Show";return l!==o._v$&&$e(s,o._v$=l),u!==o._v$2&&de(s,"title",o._v$2=u),o},{_v$:void 0,_v$2:void 0}),n})()})]}})}});ie(["click"]);const r8=$('<div class="klinecharts-pro-style-editor"><div class="style-section"><label></label><div class="color-grid"></div><input type="color" class="color-picker"></div><div class="style-section"><label></label><div class="width-options"></div></div><div class="style-section"><label></label><div class="style-options"><button>━━━</button><button>╌╌╌</button><button>┈┈┈</button></div></div><div class="style-section"><label></label><input type="color" class="color-picker"></div><div class="style-actions"><button class="apply-btn"></button></div></div>'),s8=$("<span></span>"),o8=$('<button><span class="width-preview"></span></button>'),i8=["#EF5350","#FF9800","#FFC107","#4CAF50","#26A65B","#2196F3","#1677FF","#9C27B0","#E91E63","#607D8B","#FFFFFF","#999999","#666666","#333333","#000000"],l8=[1,1.5,2,3,4],c8=e=>{const[t,n]=w(e.currentStyles.lineColor??"#1677FF"),[a,r]=w(e.currentStyles.lineWidth??1),[s,i]=w(e.currentStyles.lineStyle??"solid"),[o,l]=w(e.currentStyles.fillColor??"rgba(22, 119, 255, 0.15)"),u=()=>{e.onApply(e.overlayId,{lineColor:t(),lineWidth:a(),lineStyle:s(),fillColor:o()}),e.onClose()};return C(Ee,{get title(){return _("style_editor",e.locale)},width:320,get onClose(){return e.onClose},get children(){const d=r8.cloneNode(!0),h=d.firstChild,p=h.firstChild,x=p.nextSibling,S=x.nextSibling,f=h.nextSibling,g=f.firstChild,v=g.nextSibling,M=f.nextSibling,A=M.firstChild,F=A.nextSibling,B=F.firstChild,O=B.nextSibling,R=O.nextSibling,j=M.nextSibling,D=j.firstChild,z=D.nextSibling,K=j.nextSibling,H=K.firstChild;return y(p,()=>_("line_color",e.locale)),y(x,()=>i8.map(I=>(()=>{const V=s8.cloneNode(!0);return V.$$click=()=>n(I),V.style.setProperty("background-color",I),Z(()=>$e(V,`color-swatch ${t()===I?"selected":""}`)),V})())),S.$$input=I=>n(I.target.value),y(g,()=>_("line_width",e.locale)),y(v,()=>l8.map(I=>(()=>{const V=o8.cloneNode(!0),ne=V.firstChild;return V.$$click=()=>r(I),ne.style.setProperty("height",`${I}px`),Z(()=>$e(V,`width-btn ${a()===I?"selected":""}`)),V})())),y(A,()=>_("line_style",e.locale)),B.$$click=()=>i("solid"),O.$$click=()=>i("dashed"),R.$$click=()=>i("dotted"),y(D,()=>_("fill_color",e.locale)),z.$$input=I=>l(I.target.value+"26"),H.$$click=u,y(H,()=>_("apply",e.locale)),Z(I=>{const V=`style-btn ${s()==="solid"?"selected":""}`,ne=`style-btn ${s()==="dashed"?"selected":""}`,oe=`style-btn ${s()==="dotted"?"selected":""}`;return V!==I._v$&&$e(B,I._v$=V),ne!==I._v$2&&$e(O,I._v$2=ne),oe!==I._v$3&&$e(R,I._v$3=oe),I},{_v$:void 0,_v$2:void 0,_v$3:void 0}),Z(()=>S.value=t()),Z(()=>z.value=o().startsWith("rgba")?"#1677FF":o()),d}})};ie(["input","click"]);const d8=$('<div class="klinecharts-pro-context-menu"><ul class="context-menu-list"></ul></div>'),u8=$("<li><span></span></li>"),_8=$('<span class="context-menu-icon"></span>'),h8=e=>(()=>{const t=d8.cloneNode(!0),n=t.firstChild;return t.addEventListener("mouseleave",()=>e.onClose()),t.style.setProperty("position","fixed"),t.style.setProperty("z-index","9999"),y(n,C(Qt,{get each(){return e.items},children:a=>(()=>{const r=u8.cloneNode(!0),s=r.firstChild;return r.$$click=()=>{a.disabled||(e.onSelect(a.key),e.onClose())},y(r,(()=>{const i=W(()=>!!a.icon);return()=>i()&&(()=>{const o=_8.cloneNode(!0);return y(o,()=>a.icon),o})()})(),s),y(s,()=>a.label),Z(()=>$e(r,`context-menu-item ${a.danger?"danger":""} ${a.disabled?"disabled":""}`)),r})()})),Z(a=>{const r=`${e.x}px`,s=`${e.y}px`;return r!==a._v$&&t.style.setProperty("left",a._v$=r),s!==a._v$2&&t.style.setProperty("top",a._v$2=s),a},{_v$:void 0,_v$2:void 0}),t})();ie(["click"]);function g8(e){const t=e.toLowerCase().split("+").map(a=>a.trim()),n={ctrl:!1,shift:!1,alt:!1,meta:!1,key:""};for(const a of t)a==="ctrl"||a==="control"?n.ctrl=!0:a==="shift"?n.shift=!0:a==="alt"?n.alt=!0:a==="meta"||a==="cmd"?n.meta=!0:n.key=a;return n}function $8(e,t){const n=t.key.toLowerCase(),a=n==="escape"?"escape":n==="delete"||n==="backspace"?"delete":n==="f11"?"f11":n;return e.ctrl===(t.ctrlKey||t.metaKey)&&e.shift===t.shiftKey&&e.alt===t.altKey&&e.key===a}class qn{constructor(t){N(this,"_bindings",new Map);N(this,"_parsedBindings",new Map);N(this,"_handler");N(this,"_enabled",!0);this._container=t,this._handler=a=>{if(!this._enabled)return;const r=a.target;if(!(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable))for(const[s,i]of this._bindings){const o=this._parsedBindings.get(s);if(o&&$8(o,a)){a.preventDefault(),a.stopPropagation(),i.callback(a);return}}},(t??document).addEventListener("keydown",this._handler)}register(t){this._bindings.set(t.key,t),this._parsedBindings.set(t.key,g8(t.key))}remove(t){this._bindings.delete(t),this._parsedBindings.delete(t)}setEnabled(t){this._enabled=t}getBindings(){return Array.from(this._bindings.values())}destroy(){(this._container??document).removeEventListener("keydown",this._handler),this._bindings.clear(),this._parsedBindings.clear()}}class ea{constructor(t,n){N(this,"_chart");N(this,"_datafeed");N(this,"_fullData",[]);N(this,"_playbackIndex",0);N(this,"_status","idle");N(this,"_speed",500);N(this,"_timerId",null);N(this,"_handlers",{});N(this,"_originalData",null);this._chart=t,this._datafeed=n??null}setHandlers(t){this._handlers=t}async start(t){if(this._speed=t.speed??500,t.dataSource==="current")this._fullData=[...this._chart.getDataList()];else if(t.dataSource==="custom"&&this._datafeed)throw new Error("Custom data source requires calling loadData() first");if(this._fullData.length===0){console.warn("[BarReplayManager] No data available for replay");return}this._originalData=[...this._chart.getDataList()];const n=t.startFrom!=null?Math.max(0,Math.min(t.startFrom,this._fullData.length-1)):0;this._playbackIndex=n,this._applyData(),this._setStatus("paused")}async loadData(t,n,a,r){if(!this._datafeed)throw new Error("No datafeed provided");const s=await this._datafeed.getHistoryKLineData(t,n,a,r);this._fullData=s??[]}play(){var t,n;this._status==="ended"||this._fullData.length===0||(this._setStatus("playing"),(n=(t=this._handlers).onPlay)==null||n.call(t),this._timerId=setInterval(()=>{var a,r;this.stepForward(),this._playbackIndex>=this._fullData.length-1&&(this.pause(),this._setStatus("ended"),(r=(a=this._handlers).onEnd)==null||r.call(a))},this._speed))}pause(){var t,n;this._timerId&&(clearInterval(this._timerId),this._timerId=null),this._status==="playing"&&(this._setStatus("paused"),(n=(t=this._handlers).onPause)==null||n.call(t))}stepForward(){var t,n;this._playbackIndex<this._fullData.length-1&&(this._playbackIndex++,this._applyData(),(n=(t=this._handlers).onStep)==null||n.call(t,this._playbackIndex,this._fullData.length,this._fullData[this._playbackIndex]))}stepBackward(){var t,n;this._playbackIndex>0&&(this._playbackIndex--,this._applyData(),(n=(t=this._handlers).onStep)==null||n.call(t,this._playbackIndex,this._fullData.length,this._fullData[this._playbackIndex]))}seekTo(t){this._playbackIndex=Math.max(0,Math.min(t,this._fullData.length-1)),this._applyData()}setSpeed(t){this._speed=t,this._status==="playing"&&(this.pause(),this.play())}getStatus(){return this._status}getIndex(){return this._playbackIndex}getTotal(){return this._fullData.length}getSpeed(){return this._speed}getCurrentBar(){return this._fullData[this._playbackIndex]??null}stop(){this.pause(),this._originalData&&(this._chart.applyNewData(this._originalData),this._originalData=null),this._fullData=[],this._playbackIndex=0,this._setStatus("idle")}destroy(){this.stop(),this._handlers={}}_applyData(){const t=this._fullData.slice(0,this._playbackIndex+1);this._chart.applyNewData(t)}_setStatus(t){var n,a;this._status=t,(a=(n=this._handlers).onStatusChange)==null||a.call(n,t)}}const y8=$('<i class="icon-close klinecharts-pro-load-icon"></i>'),p8=$('<div class="klinecharts-pro-content"><div class="klinecharts-pro-widget"></div></div>');function Ot(e,t,n,a,r){return t==="VOL"&&(a={gap:{bottom:2},...a}),(e==null?void 0:e.createIndicator({name:t,precision:r,createTooltipDataSource:({indicator:s,defaultStyles:i})=>{const o=[];return s.visible?(o.push(i.tooltip.icons[1]),o.push(i.tooltip.icons[2]),o.push(i.tooltip.icons[3])):(o.push(i.tooltip.icons[0]),o.push(i.tooltip.icons[2]),o.push(i.tooltip.icons[3])),{icons:o}}},n,a))??null}const m8=e=>{let t,n=null,a;const r=new Vn(e.persistence.enabled,e.persistence.prefix);let s=0;const[i,o]=w(!1),[l,u]=w(r.getTheme()??e.theme),[d,h]=w(r.getStyles()??e.styles),[p,x]=w(r.getLocale()??e.locale),[S,f]=w(r.getSymbol()??e.symbol),[g,v]=w(r.getPeriod()??e.period),[M,A]=w(!1),[F,B]=w(r.getMainIndicators()??[...e.mainIndicators]),[O,R]=w(r.getSubIndicators()??{}),[j,D]=w(!1),[z,K]=w({key:r.getTimezone()??e.timezone,text:y1(r.getTimezone()??e.timezone,r.getLocale()??e.locale)}),[H,I]=w(!1),[V,ne]=w(),[oe,le]=w(""),[pe,Ye]=w(e.drawingBarVisible),[Ne,Fe]=w(!1),[Be,Oe]=w(!1),[Re,We]=w({visible:!1,indicatorName:"",paneId:"",calcParams:[]}),[Ge,Ae]=w("candle_solid"),[Q,se]=w(!1),[ye,xe]=w(!1),[_t,Le]=w(0),[Ie,m]=w(!1),[Y,ge]=w("idle"),[Ce,ze]=w(0),[ht,it]=w(0),[ke,p1]=w(500);let U=null,je=null;const[D8,aa]=w(!1),[P8,E8]=w([]),[N8,m1]=w(!1),[ra,f1]=w(""),[F8,B8]=w({}),[O8,v1]=w(!1),[R8,z8]=w(0),[j8,K8]=w(0),[V8,U8]=w("");let gt=null;const $t=()=>{var c,b,P,k;try{if(!n)return;const E=(b=(c=n._chartStore)==null?void 0:c.getOverlayStore)==null?void 0:b.call(c);if(E){const J=(((P=E.getInstances)==null?void 0:P.call(E))||[]).map(re=>({name:re.name,id:re.id,groupId:re.groupId,lock:re.lock,visible:re.visible!==!1,points:re.points,styles:re.styles,extendData:re.extendData}));r.setDrawings(S().ticker,J),(k=e.onDrawingsChange)==null||k.call(e,S().ticker,J)}}catch(L){console.warn("[ChartPro] Failed to save drawings:",L)}},Z8=()=>{if(!n)return;const c=r.getDrawings(S().ticker);c&&c.forEach(b=>n==null?void 0:n.createOverlay(b))};e.ref({setTheme:u,getTheme:()=>l(),setStyles:h,getStyles:()=>n.getStyles(),setLocale:x,getLocale:()=>p(),setTimezone:c=>{K({key:c,text:y1(c,p())})},getTimezone:()=>z().key,setSymbol:f,getSymbol:()=>S(),setPeriod:v,getPeriod:()=>g(),setChartType:c=>{Ae(c),n==null||n.setStyles({candle:{type:c}})},getChartType:()=>Ge(),startReplay:c=>Q8(c),stopReplay:()=>{U==null||U.stop(),se(!1)},showObjectTree:()=>{oa(),aa(!0)},showStyleEditor:c=>{f1(c),m1(!0)},getSettings:()=>r.getAll(),setSettings:c=>{c.theme&&u(c.theme),c.locale&&x(c.locale),c.timezone&&K({key:c.timezone,text:y1(c.timezone,c.locale||p())}),c.symbol&&f(c.symbol),c.period&&v(c.period),c.mainIndicators&&B(c.mainIndicators),c.subIndicators&&R(c.subIndicators)},getDrawings:c=>r.getDrawings(c)??[],setDrawings:(c,b)=>{r.setDrawings(c,b),c===S().ticker&&(n==null||n.removeOverlay(),b.forEach(P=>n==null?void 0:n.createOverlay(P)))}});const sa=()=>{n==null||n.resize()},C1=(c,b,P)=>{let k=b,L=k;switch(c.timespan){case"minute":{k=k-k%(60*1e3),L=k-P*c.multiplier*60*1e3;break}case"hour":{k=k-k%(60*60*1e3),L=k-P*c.multiplier*60*60*1e3;break}case"day":{k=k-k%(24*60*60*1e3),L=k-P*c.multiplier*24*60*60*1e3;break}case"week":{const ae=new Date(k).getDay(),J=ae===0?6:ae-1;k=k-J*24*60*60*1e3;const re=new Date(k);k=new Date(`${re.getFullYear()}-${re.getMonth()+1}-${re.getDate()}`).getTime(),L=k-P*c.multiplier*7*24*60*60*1e3;break}case"month":{const E=new Date(k),ae=E.getFullYear(),J=E.getMonth()+1;k=new Date(`${ae}-${J}-01`).getTime(),L=k-P*c.multiplier*30*24*60*60*1e3;const re=new Date(L);L=new Date(`${re.getFullYear()}-${re.getMonth()+1}-01`).getTime();break}case"year":{const ae=new Date(k).getFullYear();k=new Date(`${ae}-01-01`).getTime(),L=k-P*c.multiplier*365*24*60*60*1e3;const J=new Date(L);L=new Date(`${J.getFullYear()}-01-01`).getTime();break}}return[L,k]};Ve(()=>{if(window.addEventListener("resize",sa),n=T.init(t,{customApi:{formatDate:(L,E,ae,J)=>{switch(g().timespan){case"minute":return J===T.FormatDateType.XAxis?T.utils.formatDate(L,E,"HH:mm"):T.utils.formatDate(L,E,"YYYY-MM-DD HH:mm");case"hour":return J===T.FormatDateType.XAxis?T.utils.formatDate(L,E,"MM-DD HH:mm"):T.utils.formatDate(L,E,"YYYY-MM-DD HH:mm");case"day":case"week":return T.utils.formatDate(L,E,"YYYY-MM-DD");case"month":return J===T.FormatDateType.XAxis?T.utils.formatDate(L,E,"YYYY-MM"):T.utils.formatDate(L,E,"YYYY-MM-DD");case"year":return J===T.FormatDateType.XAxis?T.utils.formatDate(L,E,"YYYY"):T.utils.formatDate(L,E,"YYYY-MM-DD")}return T.utils.formatDate(L,E,"YYYY-MM-DD HH:mm")}}}),window._klineChartInstance=n,n){const L=n.getDom("candle_pane",T.DomPosition.Main);if(L){let ae=document.createElement("div");if(ae.className="klinecharts-pro-watermark",T.utils.isString(e.watermark)){const J=e.watermark.replace(/(^\s*)|(\s*$)/g,"");ae.innerHTML=J}else ae.appendChild(e.watermark);L.appendChild(ae)}const E=n.getDom("candle_pane",T.DomPosition.YAxis);a=document.createElement("span"),a.className="klinecharts-pro-price-unit",E==null||E.appendChild(a)}F().forEach(L=>{Ot(n,L,!0,{id:"candle_pane"},S().pricePrecision)});const c=r.getSubIndicators(),b=c?Object.keys(c):e.subIndicators??[],P={};b.forEach(L=>{const E=Ot(n,L,!0,void 0,S().volumePrecision);E&&(P[L]=E)}),R(P),n==null||n.loadMore(L=>{o(!0);const E=s;(async()=>{const J=g(),[re]=C1(J,L,1),[Se]=C1(J,re,500),Rt=(await e.datafeed.getHistoryKLineData(S(),J,Se,re)).filter(zt=>zt.close>0);E===s&&(n==null||n.applyMoreData(Rt,Rt.length>0)),o(!1)})()}),n==null||n.subscribeAction(T.ActionType.OnTooltipIconClick,L=>{if(L.indicatorName)switch(L.iconId){case"visible":{n==null||n.overrideIndicator({name:L.indicatorName,visible:!0},L.paneId);break}case"invisible":{n==null||n.overrideIndicator({name:L.indicatorName,visible:!1},L.paneId);break}case"setting":{const E=n==null?void 0:n.getIndicatorByPaneId(L.paneId,L.indicatorName);We({visible:!0,indicatorName:L.indicatorName,paneId:L.paneId,calcParams:E.calcParams});break}case"close":{if(L.paneId==="candle_pane"){const E=[...F()];n==null||n.removeIndicator("candle_pane",L.indicatorName),E.splice(E.indexOf(L.indicatorName),1),B(E)}else{const E={...O()};n==null||n.removeIndicator(L.paneId,L.indicatorName),delete E[L.indicatorName],R(E)}break}}});const k=t==null?void 0:t.parentElement;k&&(gt=new qn(k),gt.register({key:"escape",description:"Cancel overlay",callback:()=>n==null?void 0:n.removeOverlay()})),n==null||n.subscribeAction(T.ActionType.OnCandleBarClick,L=>{f1(""),$t()}),n==null||n.subscribeAction(T.ActionType.OnPaneDrag,()=>{$t()}),Z8()}),De(()=>{$t(),window.removeEventListener("resize",sa),gt==null||gt.destroy(),je==null||je(),U==null||U.destroy(),window._klineChartInstance=null,T.dispose(t)}),ce(()=>{const c=S();c!=null&&c.priceCurrency?(a.innerHTML=c==null?void 0:c.priceCurrency.toLocaleUpperCase(),a.style.display="flex"):a.style.display="none",n==null||n.setPriceVolumePrecision((c==null?void 0:c.pricePrecision)??2,(c==null?void 0:c.volumePrecision)??0)}),ce(S1([S,g],(c,b)=>{const[P,k]=c,[L,E]=b??[];L&&E&&e.datafeed.unsubscribe(L,E),s++,o(!0),Oe(!0),(async()=>{const[J,re]=C1(k,new Date().getTime(),500),Se=(await e.datafeed.getHistoryKLineData(P,k,J,re)).filter(jt=>jt.close>0),Rt=me(S),zt=me(g);P.ticker===Rt.ticker&&k.timespan===zt.timespan&&k.multiplier===zt.multiplier&&(n==null||n.clearData(),n==null||n.applyNewData(Se,Se.length>0),e.datafeed.subscribe(P,k,jt=>{jt.close>0&&(n==null||n.updateData(jt))})),o(!1),Oe(!1)})()},{defer:!1})),ce(()=>{const c=l();n==null||n.setStyles(c);const b=c==="dark"?"#929AA5":"#76808F";n==null||n.setStyles({indicator:{tooltip:{icons:[{id:"visible",position:T.TooltipIconPosition.Middle,marginLeft:8,marginTop:7,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:b,activeColor:b,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"invisible",position:T.TooltipIconPosition.Middle,marginLeft:8,marginTop:7,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:b,activeColor:b,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"setting",position:T.TooltipIconPosition.Middle,marginLeft:6,marginTop:7,marginBottom:0,marginRight:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:b,activeColor:b,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"},{id:"close",position:T.TooltipIconPosition.Middle,marginLeft:6,marginTop:7,marginRight:0,marginBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,icon:"",fontFamily:"icomoon",size:14,color:b,activeColor:b,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)"}]}}})}),ce(()=>{n==null||n.setLocale(p())}),ce(()=>{n==null||n.setTimezone(z().key)}),ce(()=>{d()&&(n==null||n.setStyles(d()),ne(u6(n.getStyles())),r.setStyles(d()))}),ce(()=>{r.setTheme(l())}),ce(()=>{r.setLocale(p())}),ce(()=>{r.setTimezone(z().key)}),ce(()=>{r.setSymbol(S())}),ce(()=>{r.setPeriod(g())}),ce(()=>{r.setMainIndicators(F())}),ce(()=>{r.setSubIndicators(O())}),ce(()=>{l(),z(),S(),g(),F(),O(),setTimeout(()=>{var c;(c=e.onSettingsChange)==null||c.call(e,r.getAll())},0)}),ce(S1(S,c=>{if(!n)return;F().forEach(P=>{n==null||n.overrideIndicator({name:P,precision:c.pricePrecision},"candle_pane")}),Object.entries(O()).forEach(([P,k])=>{n==null||n.overrideIndicator({name:P,precision:c.volumePrecision},k)}),n.removeOverlay();const b=r.getDrawings(c.ticker);b&&b.forEach(P=>n==null?void 0:n.createOverlay(P)),setTimeout(()=>{n==null||n.resize()},50)},{defer:!0}));const oa=()=>{var b,P,k,L,E;if(!n)return;const c=[];try{const ae=n,J=((k=(P=(b=ae._chartStore)==null?void 0:b.call(ae))==null?void 0:P.getOverlayStore)==null?void 0:k.call(P))??((L=ae.getOverlayStore)==null?void 0:L.call(ae));J&&(((E=J.getInstances)==null?void 0:E.call(J))??[]).forEach(Se=>{c.push({id:Se.id,name:Se.name,visible:Se.visible!==!1,groupId:Se.groupId,paneId:Se.paneId})})}catch{}E8(c)};let b1=-1;const ia=()=>{if(!n||Q())return;xe(!0),m(!1),b1=-1;const c=P=>{P.x!=null&&P.x>0?(Le(P.x),m(!0),P.dataIndex!=null&&(b1=P.dataIndex)):m(!1)};n.subscribeAction(T.ActionType.OnCrosshairChange,c);const b=P=>{if(!ye())return;const k=n.getDataList();if(!k||k.length===0)return;let L=P.dataIndex??b1;(L==null||L<0)&&(L=Math.floor(k.length/2)),L=Math.max(0,Math.min(L,k.length-1)),la(),H8(L)};n.subscribeAction(T.ActionType.OnCandleBarClick,b),je=()=>{n==null||n.unsubscribeAction(T.ActionType.OnCrosshairChange,c),n==null||n.unsubscribeAction(T.ActionType.OnCandleBarClick,b)}},la=()=>{je==null||je(),je=null,xe(!1),m(!1)},H8=c=>{n&&(U=new ea(n,e.datafeed),U.setHandlers({onStep:(b,P)=>{ze(b),it(P)},onStatusChange:b=>ge(b),onEnd:()=>ge("ended")}),U.start({dataSource:"current",speed:ke(),startFrom:c}).then(()=>{se(!0),it(U.getTotal()),ze(U.getIndex())}))},Q8=c=>{c==="current"&&ia()},Y8=c=>{if(!n)return;console.log(`[gotoDate] Target timestamp: ${c} (${new Date(c).toLocaleString()})`),n.scrollToTimestamp(c,300);const b=n.getDataList();if(b&&b.length>0){let P=0,k=1/0;for(let L=0;L<b.length;L++){const E=Math.abs(b[L].timestamp-c);E<k&&(k=E,P=L)}console.log(`[gotoDate] Closest bar index: ${P}, time: ${new Date(b[P].timestamp).toLocaleString()}`),c<b[0].timestamp&&console.warn("[gotoDate] Target date is BEFORE the earliest loaded data. Please scroll back to load more history first."),n.scrollToDataIndex(P,300)}};return[y8.cloneNode(!0),C(te,{get when(){return Ne()},get children(){return C(zc,{get locale(){return e.locale},get datafeed(){return e.datafeed},onSymbolSelected:c=>{f(c)},onClose:()=>{Fe(!1)}})}}),C(te,{get when(){return M()},get children(){return C(wc,{get locale(){return e.locale},get mainIndicators(){return F()},get subIndicators(){return O()},onClose:()=>{A(!1)},onMainIndicatorChange:c=>{const b=[...F()];c.added?(Ot(n,c.name,!0,{id:"candle_pane"},S().pricePrecision),b.push(c.name)):(n==null||n.removeIndicator("candle_pane",c.name),b.splice(b.indexOf(c.name),1)),B(b)},onSubIndicatorChange:c=>{const b={...O()};if(c.added){const P=Ot(n,c.name,!0,void 0,S().volumePrecision);P&&(b[c.name]=P)}else c.paneId&&(n==null||n.removeIndicator(c.paneId,c.name),delete b[c.name]);R(b)}})}}),C(te,{get when(){return j()},get children(){return C(Sc,{get locale(){return e.locale},get timezone(){return z()},onClose:()=>{D(!1)},onConfirm:K})}}),C(te,{get when(){return H()},get children(){return C(Ac,{get locale(){return e.locale},get currentStyles(){return T.utils.clone(n.getStyles())},onClose:()=>{I(!1)},onChange:c=>{n==null||n.setStyles(c)},onRestoreDefault:c=>{const b={};c.forEach(P=>{const k=P.key;e1(b,k,T.utils.formatValue(V(),k))}),n==null||n.setStyles(b)}})}}),C(te,{get when(){return oe().length>0},get children(){return C(Dc,{get locale(){return e.locale},get url(){return oe()},onClose:()=>{le("")}})}}),C(te,{get when(){return Re().visible},get children(){return C(Fc,{get locale(){return e.locale},get params(){return Re()},onClose:()=>{We({visible:!1,indicatorName:"",paneId:"",calcParams:[]})},onConfirm:c=>{const b=Re();n==null||n.overrideIndicator({name:b.indicatorName,calcParams:c},b.paneId)}})}}),C(te,{get when(){return O8()},get children(){return C(h8,{get x(){return R8()},get y(){return j8()},get items(){return[{key:"edit_style",label:_("edit_style",e.locale),icon:"🎨"},{key:"hide",label:_("hide",e.locale),icon:"👁"},{key:"delete",label:_("delete",e.locale),icon:"🗑",danger:!0}]},onSelect:c=>{const b=V8();c==="edit_style"?(f1(b),B8({}),m1(!0)):c==="hide"?n==null||n.overrideOverlay({id:b,visible:!1}):c==="delete"&&(n==null||n.removeOverlay({id:b})),v1(!1)},onClose:()=>v1(!1)})}}),C(te,{get when(){return D8()},get children(){return C(a8,{get locale(){return e.locale},get overlays(){return P8()},onToggleVisibility:(c,b)=>{n==null||n.overrideOverlay({id:c,visible:b})},onRemove:c=>{n==null||n.removeOverlay({id:c}),oa()},onSelect:c=>{},onClose:()=>aa(!1)})}}),C(te,{get when(){return N8()},get children(){return C(c8,{get locale(){return e.locale},get overlayId(){return ra()},get currentStyles(){return F8()},onApply:(c,b)=>{n==null||n.overrideOverlay({id:c,styles:{line:{color:b.lineColor,size:b.lineWidth,style:b.lineStyle},polygon:{color:b.lineColor,borderColor:b.lineColor,borderSize:b.lineWidth,borderStyle:b.lineStyle}}})},onClose:()=>m1(!1)})}}),C(U6,{get locale(){return e.locale},get symbol(){return S()},get spread(){return pe()},get period(){return g()},get periods(){return e.periods},get chartType(){return Ge()},onMenuClick:()=>{Ye(!pe()),setTimeout(()=>{n==null||n.resize()},50)},onSymbolClick:()=>{Fe(!Ne())},onPeriodChange:v,onChartTypeChange:c=>{Ae(c),n==null||n.setStyles({candle:{type:c}})},onIndicatorClick:()=>{A(c=>!c)},onTimezoneClick:()=>{D(c=>!c)},onSettingClick:()=>{I(c=>!c)},onScreenshotClick:()=>{if(n){const c=n.getConvertPictureUrl(!0,"jpeg",e.theme==="dark"?"#151517":"#ffffff");le(c)}},onReplayClick:()=>ia()}),(()=>{const c=p8.cloneNode(!0),b=c.firstChild;y(c,C(te,{get when(){return Be()},get children(){return C(zn,{})}}),b),y(c,C(te,{get when(){return pe()},get children(){return C(Lc,{get locale(){return e.locale},onDrawingItemClick:k=>{n==null||n.createOverlay(k),$t()},onModeChange:k=>{n==null||n.overrideOverlay({mode:k})},onLockChange:k=>{n==null||n.overrideOverlay({lock:k})},onVisibleChange:k=>{n==null||n.overrideOverlay({visible:k})},onRemoveClick:k=>{n==null||n.removeOverlay({groupId:k}),$t()}})}}),b),b.$$contextmenu=k=>{k.preventDefault(),z8(k.clientX),K8(k.clientY);const L=ra();L&&(U8(L),v1(!0))};const P=t;return typeof P=="function"?lt(P,b):t=b,y(c,C(te,{get when(){return ye()},get children(){return C(Qc,{get locale(){return e.locale},get crosshairX(){return _t()},get crosshairVisible(){return Ie()},onCancel:()=>la()})}}),null),Z(k=>{const L=ye()?{cursor:"crosshair"}:{},E=pe();return k._v$=Ze(b,L,k._v$),E!==k._v$2&&de(b,"data-drawing-bar-visible",k._v$2=E),k},{_v$:void 0,_v$2:void 0}),c})(),C(te,{get when(){return Q()},get children(){return C(Uc,{get locale(){return e.locale},get status(){return Y()},get index(){return Ce()},get total(){return ht()},get speed(){return ke()},onPlay:()=>U==null?void 0:U.play(),onPause:()=>U==null?void 0:U.pause(),onStepForward:()=>U==null?void 0:U.stepForward(),onStepBackward:()=>U==null?void 0:U.stepBackward(),onSpeedChange:c=>{p1(c),U==null||U.setSpeed(c)},onSeek:c=>U==null?void 0:U.seekTo(c),onExit:()=>{U==null||U.stop(),se(!1)}})}}),C(Jc,{get locale(){return e.locale},get timezone(){return z().key},onGotoDate:Y8,onTimezoneClick:()=>{D(c=>!c)}})]};ie(["contextmenu"]);const f8=$('<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"></path></svg>').cloneNode(!0);class v8{constructor(t){N(this,"_chartApi",null);N(this,"_readyResolve",null);if(T.utils.isString(t.container)){if(this._container=document.getElementById(t.container),!this._container)throw new Error("Container is null")}else this._container=t.container;this._container.classList.add("klinecharts-pro"),this._container.setAttribute("data-theme",t.theme??"light"),this._readyPromise=new Promise(a=>{this._readyResolve=a});const n=this;Oa(()=>C(m8,{ref:a=>{var r;n._chartApi=a,(r=n._readyResolve)==null||r.call(n)},get styles(){return t.styles??{}},get watermark(){return t.watermark??f8},get theme(){return t.theme??"light"},get locale(){return t.locale??"zh-CN"},get drawingBarVisible(){return t.drawingBarVisible??!0},get symbol(){return t.symbol},get period(){return t.period},get periods(){return t.periods??[{multiplier:1,timespan:"minute",text:"1m"},{multiplier:5,timespan:"minute",text:"5m"},{multiplier:15,timespan:"minute",text:"15m"},{multiplier:1,timespan:"hour",text:"1H"},{multiplier:2,timespan:"hour",text:"2H"},{multiplier:4,timespan:"hour",text:"4H"},{multiplier:1,timespan:"day",text:"D"},{multiplier:1,timespan:"week",text:"W"},{multiplier:1,timespan:"month",text:"M"},{multiplier:1,timespan:"year",text:"Y"}]},get timezone(){return t.timezone??"Asia/Shanghai"},get mainIndicators(){return t.mainIndicators??["MA"]},get subIndicators(){return t.subIndicators??["VOL"]},get datafeed(){return t.datafeed},get persistence(){return t.persistence??{enabled:!1}},get onError(){return t.onError??(()=>{})},get onSettingsChange(){return t.onSettingsChange},get onDrawingsChange(){return t.onDrawingsChange}}),this._container)}ready(){return this._readyPromise}setTheme(t){var n,a;(n=this._container)==null||n.setAttribute("data-theme",t),(a=this._chartApi)==null||a.setTheme(t)}getTheme(){var t;return((t=this._chartApi)==null?void 0:t.getTheme())??"light"}setStyles(t){var n;(n=this._chartApi)==null||n.setStyles(t)}getStyles(){var t;return((t=this._chartApi)==null?void 0:t.getStyles())??{}}setLocale(t){var n;(n=this._chartApi)==null||n.setLocale(t)}getLocale(){var t;return((t=this._chartApi)==null?void 0:t.getLocale())??"zh-CN"}setTimezone(t){var n;(n=this._chartApi)==null||n.setTimezone(t)}getTimezone(){var t;return((t=this._chartApi)==null?void 0:t.getTimezone())??""}setSymbol(t){var n;(n=this._chartApi)==null||n.setSymbol(t)}getSymbol(){var t;return((t=this._chartApi)==null?void 0:t.getSymbol())??{ticker:""}}setPeriod(t){var n;(n=this._chartApi)==null||n.setPeriod(t)}getPeriod(){var t;return((t=this._chartApi)==null?void 0:t.getPeriod())??{multiplier:1,timespan:"day",text:"D"}}getSettings(){var t,n;return(n=(t=this._chartApi)==null?void 0:t.getSettings)==null?void 0:n.call(t)}setSettings(t){var n,a;(a=(n=this._chartApi)==null?void 0:n.setSettings)==null||a.call(n,t)}getDrawings(t){var n,a;return((a=(n=this._chartApi)==null?void 0:n.getDrawings)==null?void 0:a.call(n,t))??[]}setDrawings(t,n){var a,r;(r=(a=this._chartApi)==null?void 0:a.setDrawings)==null||r.call(a,t,n)}destroy(){this._container&&(T.dispose(this._container),this._container.classList.remove("klinecharts-pro"),this._container.removeAttribute("data-theme"),this._container.innerHTML="",this._container=null),this._chartApi=null}}class C8{constructor(t){N(this,"_store");N(this,"_undoStack",[]);N(this,"_redoStack",[]);N(this,"_maxHistory",50);this._store=t}pushAction(t){this._undoStack.push(t),this._undoStack.length>this._maxHistory&&this._undoStack.shift(),this._redoStack=[]}canUndo(){return this._undoStack.length>0}canRedo(){return this._redoStack.length>0}undo(){const t=this._undoStack.pop();return t?(this._redoStack.push(t),t):null}redo(){const t=this._redoStack.pop();return t?(this._undoStack.push(t),t):null}saveDrawings(t,n){this._store.setDrawings(t,n)}loadDrawings(t){return this._store.getDrawings(t)??[]}exportDrawings(t){const n=this.loadDrawings(t);return JSON.stringify({ticker:t,drawings:n,exportedAt:new Date().toISOString()},null,2)}importDrawings(t){try{const n=JSON.parse(t);return n.ticker&&Array.isArray(n.drawings)?(this.saveDrawings(n.ticker,n.drawings),{ticker:n.ticker,drawings:n.drawings}):null}catch{return console.warn("[DrawingStore] Failed to import drawings"),null}}clearHistory(){this._undoStack=[],this._redoStack=[]}}const ta=["#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FFEAA7","#DDA0DD","#98D8C8","#F7DC6F"];class b8{constructor(t,n){N(this,"_symbols",[]);N(this,"_widget",null);N(this,"_datafeed",null);N(this,"_colorIndex",0);N(this,"_onChange");this._widget=t,this._datafeed=n}setOnChange(t){this._onChange=t}getSymbols(){return[...this._symbols]}async addSymbol(t,n,a,r){var s;if(this._symbols.find(i=>i.symbol.ticker===t.ticker)||!this._datafeed)return!1;try{const i=await this._datafeed.getHistoryKLineData(t,n,a,r);if(i.length===0)return!1;const o=ta[this._colorIndex%ta.length];this._colorIndex++;const l={symbol:t,data:i,color:o,visible:!0,normalizedData:this._normalizeData(i)};return this._symbols.push(l),(s=this._onChange)==null||s.call(this),!0}catch(i){return console.error("Failed to add comparison symbol:",i),!1}}removeSymbol(t){var n;this._symbols=this._symbols.filter(a=>a.symbol.ticker!==t),(n=this._onChange)==null||n.call(this)}toggleVisibility(t){var a;const n=this._symbols.find(r=>r.symbol.ticker===t);n&&(n.visible=!n.visible,(a=this._onChange)==null||a.call(this))}_normalizeData(t){if(t.length===0)return[];const n=t[0].close;return n===0?[]:t.map(a=>({timestamp:a.timestamp,value:(a.close-n)/n*100}))}clear(){var t;this._symbols=[],this._colorIndex=0,(t=this._onChange)==null||t.call(this)}destroy(){this.clear(),this._widget=null,this._datafeed=null,this._onChange=void 0}}class x8 extends Error{constructor(n,a,r=!1){super(n);N(this,"code");N(this,"retryable");this.name="ChartError",this.code=a,this.retryable=r}}class L8 extends x8{constructor(t){super(t,"TIMEOUT_ERROR",!0),this.name="TimeoutError"}}async function w8(e,t={}){const{maxAttempts:n=3,baseDelay:a=1e3,maxDelay:r=1e4,onRetry:s}=t;let i=new Error("Unknown error");for(let o=1;o<=n;o++)try{return await e()}catch(l){if(i=l instanceof Error?l:new Error(String(l)),o<n){const u=Math.min(a*Math.pow(2,o-1),r);s==null||s(o,i),await new Promise(d=>setTimeout(d,u))}}throw i}function k8(e,t,n){return new Promise((a,r)=>{const s=setTimeout(()=>{r(new L8(n??`Operation timed out after ${t}ms`))},t);e.then(i=>{clearTimeout(s),a(i)}).catch(i=>{clearTimeout(s),r(i)})})}class S8{constructor(){N(this,"_handlers",[]);N(this,"_lastError",null)}onError(t){return this._handlers.push(t),()=>{const n=this._handlers.indexOf(t);n>-1&&this._handlers.splice(n,1)}}report(t){this._lastError=t,console.error("[KLineChartPro]",t),this._handlers.forEach(n=>{try{n(t)}catch(a){console.error("Error in error handler:",a)}})}getLastError(){return this._lastError}clear(){this._lastError=null}}const na="templates";class T8{constructor(t){N(this,"_store");this._store=t}saveTemplate(t){const n=this._getAll(),a=n.findIndex(r=>r.name===t.name);a>=0?n[a]=t:n.push(t),this._saveAll(n)}loadTemplate(t){return this._getAll().find(a=>a.name===t)??null}deleteTemplate(t){const n=this._getAll().filter(a=>a.name!==t);this._saveAll(n)}getTemplateNames(){return this._getAll().map(t=>t.name)}getTemplates(){return this._getAll()}_getAll(){try{const t=localStorage.getItem(`${this._store._prefix}:${na}`);return t?JSON.parse(t):[]}catch{return[]}}_saveAll(t){try{localStorage.setItem(`${this._store._prefix}:${na}`,JSON.stringify(t))}catch(n){console.warn("[ChartTemplateManager] Failed to save templates:",n)}}}class M8{constructor(){N(this,"_charts",[]);N(this,"_isSyncing",!1)}addChart(t){this._charts.includes(t)||(this._charts.push(t),t.subscribeAction("onCrosshairChange",n=>{var a;if(!this._isSyncing){this._isSyncing=!0;try{const{x:r,y:s,kLineData:i}=n||{},o=i==null?void 0:i.timestamp;for(const l of this._charts)if(l!==t)try{(a=l.executeCrosshairChange)==null||a.call(l,{x:r,y:s,timestamp:o})}catch{}}finally{this._isSyncing=!1}}}))}removeChart(t){const n=this._charts.indexOf(t);if(n>=0){this._charts.splice(n,1);try{t.unsubscribeAction("onCrosshairChange")}catch{}}}getChartCount(){return this._charts.length}destroy(){for(const t of this._charts)try{t.unsubscribeAction("onCrosshairChange")}catch{}this._charts=[]}}const Ex="";La.forEach(e=>{T.registerOverlay(e)});function A8(e){if("template"in e){const{template:t,label:n}=e;T.registerOverlay(t),ve.addOverlay({name:t.name,label:n??t.name})}else T.registerOverlay(e),ve.addOverlay({name:e.name,label:e.name})}function I8(e){if("template"in e){const{template:t,label:n,paneType:a}=e;T.registerIndicator(t),ve.addIndicator({name:t.name,label:n??t.shortName??t.name,paneType:a??"sub"})}else T.registerIndicator(e),ve.addIndicator({name:e.name,label:e.shortName??e.name,paneType:"sub"})}G.BarReplayManager=ea,G.ChartStore=Vn,G.ChartTemplateManager=T8,G.ComparisonManager=b8,G.CrosshairSyncManager=M8,G.DefaultDatafeed=wa,G.DrawingStore=C8,G.ErrorManager=S8,G.KLineChartPro=v8,G.KeyboardShortcutManager=qn,G.customRegistry=ve,G.loadLocales=O6,G.registerCustomIndicator=I8,G.registerCustomOverlay=A8,G.withRetry=w8,G.withTimeout=k8,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=klinecharts-pro.umd.js.map
|