1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9089],{19089:function(t,e,r){"use strict";r.d(e,{wL:function(){return a},z5:function(){return p},nh:function(){return Z},M8:function(){return K},lC:function(){return N},so:function(){return T},j2:function(){return E},kA:function(){return S},dg:function(){return V}});var n=r(30748),i=r(90275),s=r(86472),o=r.n(s);let a={Positive:"224, 63, 25",Negative:"32, 131, 6",Default:"221,221,221"},l=(t,e,r,n,i,s,o,a,l)=>{let c=t=>{let e=t;if(a&&a.length>1)for(let r=0;r<a.length-1;r++){let n=a[r][1],i=a[r+1][0];if(t>=n&&i&&t<i){e=n;break}t>=n&&i&&(e=t-(i-n))}return e},h=c(i)-n,u=o-s,d=e-2*t,p=t+l,f=r-2*t-l;return{getX:e=>t+(c(e)-n)/h*d,getY:t=>p+(0===u?0:f*(1-(t-s)/u)),xr:h,yr:u,maxX:i,maxY:o,minX:n,minY:s}},c=(t,e,r)=>Math.max(Math.min(r,t),e),h=0;function u(t){return t<10?"0".concat(t):t}function d(t,e){for(let r in e)t.setAttribute(r,e[r])}class p extends i.Component{componentDidMount(){this.props.updateKey&&this.initChartSVG()}render(){let{height:t,width:e,colorPositive:r,colorNegative:i,strokeWidth:s}=this.props,o="rgba(".concat(a.Default,")"),l="rgba(".concat(a.Default,", 0.1)"),c="rgb(".concat(r,")"),h="rgb(".concat(i,")"),u="rgba(".concat(r,", 0.1)"),d="rgba(".concat(i,", 0.1)");return(0,n.jsxs)("svg",{className:"simple-chart",height:t,width:e,viewBox:"0 0 ".concat(e," ").concat(t),ref:this.setSvg,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove,children:[(0,n.jsxs)("defs",{children:[(0,n.jsx)("mask",{id:"maskUp-".concat(this.uniqueId),children:(0,n.jsx)("rect",{ref:this.setRectUp,x:"0",y:"0",width:e,fill:"white"})}),(0,n.jsx)("mask",{id:"maskDown-".concat(this.uniqueId),children:(0,n.jsx)("rect",{ref:this.setRectDown,x:"0",y:"0",width:e,fill:"white"})})]}),(0,n.jsx)("path",{ref:this.setBaseline,stroke:"#DDD",strokeWidth:"1"}),(0,n.jsx)("line",{ref:this.setVline,style:{display:"none"},stroke:"#DDD"}),(0,n.jsx)("path",{ref:this.setPlotUp,stroke:c,mask:"url(#maskUp-".concat(this.uniqueId,")"),fill:"none",style:{strokeWidth:s}}),(0,n.jsx)("path",{ref:this.setPlotDown,stroke:h,mask:"url(#maskDown-".concat(this.uniqueId,")"),fill:"none",style:{strokeWidth:s}}),(0,n.jsx)("path",{ref:this.setPlotAreaUp,fill:u,mask:"url(#maskUp-".concat(this.uniqueId,")"),style:{strokeWidth:s}}),(0,n.jsx)("path",{ref:this.setPlotAreaDown,fill:d,mask:"url(#maskDown-".concat(this.uniqueId,")"),style:{strokeWidth:s}}),(0,n.jsx)("circle",{ref:this.setEndDot2,r:"0"}),(0,n.jsx)("circle",{ref:this.setEndDot,r:"0",strokeWidth:"1",stroke:"#FFF"}),(0,n.jsx)("circle",{ref:this.setDot2,r:"0",fill:l}),(0,n.jsx)("circle",{ref:this.setDot,r:"0",fill:o,strokeWidth:"1",stroke:"#FFF"}),(0,n.jsx)("text",{ref:this.setTooltip,fill:"black",strokeWidth:"2",fontSize:"12"}),(0,n.jsx)("text",{ref:this.setTooltipTime,fill:"black",strokeWidth:"2",fontSize:"12"})]})}constructor(t){super(t),this.shouldComponentUpdate=t=>t.updateKey&&(-1===t.updateKey||this.props.updateKey!==t.updateKey),this.componentDidUpdate=()=>{this.initChartSVG()},this.initChartSVG=()=>{this.refMap=["svg","plotUp","plotDown","vline","plotAreaUp","plotAreaDown","dot","dot2","endDot","endDot2","tooltip","baseline","rectUp","rectDown","mask","tooltipTime"].reduce((t,e)=>(t[e]=this[e],t),{}),this.updateChartSVG()},this.updateChartSVG=()=>{let{t,c:e,width:r,height:n,padding:i,base:s,highlightLastPoint:o,colorPositive:l,colorNegative:c,session:h,marginTop:u}=this.props;if(!t||!e||!Array.isArray(t)||!Array.isArray(e)||!this.refMap||"number"!=typeof s)return;let{plotUp:f,plotDown:m,plotAreaUp:g,plotAreaDown:v,baseline:_,endDot:y,endDot2:b,rectUp:w,rectDown:x}=this.refMap,{line:D,xProjection:A,generator:k,endPoint:M,baseY:C}=p.plotRenderer({padding:i,t,c:e,session:h,width:r,height:n,base:s,marginTop:u}),j=k.getY(s);this.plotAreaBoundX=A;let S=a.Default;M&&M.y<j?S=l:M&&M.y>j&&(S=c),f.setAttribute("d",D),m.setAttribute("d",D),this.plotAreaBoundX>0?(g.setAttribute("d","".concat(D," L ").concat(this.plotAreaBoundX," ").concat(C," L ").concat(i," ").concat(C," Z")),v.setAttribute("d","".concat(D," L ").concat(this.plotAreaBoundX," 0 L 0 0 Z"))):(g.removeAttribute("d"),v.removeAttribute("d")),o&&M?(y.setAttribute("fill","rgb(".concat(S,")")),d(y,{transform:"translate(".concat(M.x,", ").concat(M.y,")")}),y.setAttribute("r","3"),b.setAttribute("fill","rgba(".concat(S,", 0.2)")),d(b,{transform:"translate(".concat(M.x,", ").concat(M.y,")")}),b.setAttribute("r","10")):(y.setAttribute("r","0"),b.setAttribute("r","0")),_.setAttribute("d","M ".concat(i," ").concat(j," L ").concat(r-2*i," ").concat(j)),w.setAttribute("height","".concat(j)),x.setAttribute("y","".concat(j)),x.setAttribute("height","".concat(n-j)),this.setState({generator:k,isEmpty:!1,renderKey:this.props.updateKey})},this.handleMouseLeave=()=>{let{shouldPreventHoverEvent:t}=this.props;t||(this.mouseOver=!1,this.performHoverAnimation(-1))},this.handleMouseMove=t=>{let{shouldPreventHoverEvent:e}=this.props;if(!this.refMap||e)return;let{generator:r}=this.state,{padding:n,width:i}=this.props,{svg:s,tooltip:o,tooltipTime:a}=this.refMap,l=s.getScreenCTM(),c=s.createSVGPoint();if(c.x=t.clientX,c.y=t.clientY,l&&o&&r&&a){let t=c.matrixTransform(l.inverse());if(t.x>=i-n||t.x<=n)return;let{index:e,outOfRange:s,snapToBaseline:o,isSnapToEnd:a}=p.pointSnapping({generator:r,screenPos:t,configs:this.props});if(s&&!o)return;this.renderTooltipAtIndex(e,o,a)}},this.performHoverAnimation=t=>{if(this.state.isEmpty||!this.refMap)return;let{tooltip:e,tooltipTime:r,dot:n,dot2:i,plotUp:s,plotDown:o,vline:a}=this.refMap,l=t>0?"block":"none",h=0,u=()=>{s.style.strokeWidth="".concat(+(s.style.strokeWidth||1)+.1*t),o.style.strokeWidth="".concat(+(o.style.strokeWidth||1)+.1*t);let d=+(n.getAttribute("r")||0);n.setAttribute("r","".concat(c(4,0,d+.4*t)));let p=+(i.getAttribute("r")||0);i.setAttribute("r","".concat(c(12,0,p+1.2*t))),++h<10?requestAnimationFrame(u):(t<0&&(s.style.strokeWidth="1",o.style.strokeWidth="1"),[n,e,r,i,a].forEac
1h(t=>t.style.display=l))};u()},this.renderTooltipAtIndex=(t,e,r)=>{let n,i,s;let{tooltipByDate:o}=this.props,{generator:l}=this.state;if(!this.refMap||!l)return;let{getX:c,getY:h}=l,{padding:p,t:f,c:m,width:g,height:v,base:_,colorPositive:y,colorNegative:b}=this.props,{tooltip:w,tooltipTime:x,dot:D,dot2:A,vline:k}=this.refMap,M=f.length-1,C=a.Default;if(t>M||t<0||e)e=!0,n=_,i=r?g-p:p,s=h(_),D.setAttribute("fill","#CCC"),A.setAttribute("fill","rgba(200, 200, 200, 0.5)");else{n=m[t];let e=h(_);i=c(f[t]),(s=h(m[t]))<e?C=y:s>e&&(C=b),D.setAttribute("fill","rgb(".concat(C,")")),A.setAttribute("fill","rgba(".concat(C,", 0.2)"))}let j="".concat(i),S="".concat(s);this.mouseOver||(this.mouseOver=!0,this.performHoverAnimation(1)),d(k,{x1:j,x2:j,y1:p,y2:v}),d(D,{transform:"translate(".concat(j,", ").concat(S,")")}),d(A,{transform:"translate(".concat(j,", ").concat(S,")")}),k.style.display="block";let N=new Date(e?(r?l.maxX:l.minX)*1e3:1e3*f[e?0:t]);w.textContent="".concat(n),x.textContent=o?"[".concat(u(N.getFullYear()),"-").concat(u(N.getMonth()+1),"-").concat(u(N.getDate()),"]"):"[".concat(u(N.getHours()),":").concat(u(N.getMinutes()),"]");let E=x.getBBox(),T=w.getBBox(),P=3*p,q=i>g/2?i-Math.max(E.width,T.width,45)-P:i+P,U=e?"#AAA":"#000",I=s+2*p>v-20?-1:1;[w,x].forEach((t,e)=>{d(t,{transform:"translate(".concat(q,", ").concat(s+I*(2*p+12*e),")"),fill:U})})},this.mouseOver=!1,this.plotAreaBoundX=-1,this.svg=null,this.plotUp=null,this.plotDown=null,this.vline=null,this.plotAreaUp=null,this.plotAreaDown=null,this.dot=null,this.dot2=null,this.endDot=null,this.endDot2=null,this.tooltip=null,this.baseline=null,this.rectUp=null,this.rectDown=null,this.mask=null,this.tooltipTime=null,this.setSvg=t=>{this.svg=t},this.setPlotUp=t=>{this.plotUp=t},this.setPlotDown=t=>{this.plotDown=t},this.setVline=t=>{this.vline=t},this.setPlotAreaUp=t=>{this.plotAreaUp=t},this.setPlotAreaDown=t=>{this.plotAreaDown=t},this.setDot=t=>{this.dot=t},this.setDot2=t=>{this.dot2=t},this.setEndDot=t=>{this.endDot=t},this.setEndDot2=t=>{this.endDot2=t},this.setTooltip=t=>{this.tooltip=t},this.setBaseline=t=>{this.baseline=t},this.setRectUp=t=>{this.rectUp=t},this.setRectDown=t=>{this.rectDown=t},this.setMask=t=>{this.mask=t},this.setTooltipTime=t=>{this.tooltipTime=t},this.uniqueIndex=h++,this.uniqueId="_auneSVGChart-".concat(this.uniqueIndex),this.state={generator:null,isEmpty:!0,renderKey:-1},this.refMap=null}}p.propTypes={updateKey:o().oneOfType([o().string,o().number]).isRequired,tooltipByDate:o().bool.isRequired,width:o().number.isRequired,height:o().number.isRequired,t:o().arrayOf(o().number).isRequired,c:o().arrayOf(o().number).isRequired,session:o().arrayOf(o().arrayOf(o().number)).isRequired,colorPositive:o().string,colorNegative:o().string,padding:o().number,base:o().number,marginTop:o().number,highlightLastPoint:o().bool,shouldPreventHoverEvent:o().bool,strokeWidth:o().number},p.defaultProps={colorPositive:a.Positive,colorNegative:a.Negative,padding:4,base:0,marginTop:10,highlightLastPoint:!1,shouldPreventHoverEvent:!1,strokeWidth:1},p.plotRenderer=t=>{let e,r,n,i;let{padding:s,t:o,c:a,session:c,width:h,height:u,base:d,marginTop:p}=t,[f,m]=[Math.min.apply(null,a),Math.max.apply(null,a)];c&&c.length>0?(e=c[c.length-1][1],r=c[0][0]):(e=o.slice(-1)[0],r=o[0]);let g=l(s,h,u,r,e,Math.min(f,d),Math.max(m,d),c,p),{getX:v,getY:_,xr:y,yr:b}=g,w=-1,x=-1,D=Math.abs(y)/h,A=Math.abs(b)/h;n=-1;let k=0;if(o[0]<r)for(;k<o.length&&!(o[k]>=r);k++);let M="M ".concat(s," ").concat(_(a[k++]));for(;k<o.length;k++){let t=o[k],e=a[k];if(k!==a.length-1&&Math.abs(t-w)<D&&Math.abs(e-x)<A)continue;w=t,x=e;let r=v(t),i=_(e);M+=" L ".concat(r," ").concat(i),r>n&&(n=r)}return o&&o.length&&a&&a.length&&(i={x:v(o.slice(-1)[0]),y:_(a.slice(-1)[0])}),{line:M,xProjection:n,generator:g,endPoint:i,baseY:_(0)>u?u-s:_(0)}},p.pointSnapping=t=>{let{generator:e,screenPos:r,configs:n}=t,{getX:i,getY:s,minX:o,maxX:a}=e,{base:l,width:c,t:h}=n,u=3>Math.abs(s(l)-r.y),d=r.x>c/2,p=-1,f=r.x;for(let t=0;t<h.length;t++){let e=Math.abs(r.x-i(h[t]));if(t-p>3&&p>0)break;e<f&&(p=t,f=e)}let m=h[p];return m||(p=-1),{index:p,outOfRange:m>a||m<o,snapToBaseline:u,isSnapToEnd:d}};var f=r(38139),m=r(38900),g=r(2260);let v=t=>t&&String(t).split(":")[0]||"",_=t=>t&&String(t).split(":")[2]||"";var y=r(52262),b=r(74193),w=r(35409),x=r.n(w),D=r(22498),A=r.n(D),k=r(44434),M=r(67175);r(87217);
1var C=r(14957);let j={c:[],t:[]},S=t=>{let{t:e,c:r}=t;if(!e||!r)return j;let n=[...e];return{c:[...r].reverse(),t:n.reverse()}},N=t=>{let{quote:e,c:r}=t;if(e){let t=e.prevClosePrice||e[C.f.LastClose];if(t||0===t)return t}return r&&r.length?r[0]:0},E=t=>{let{t:e,c:r}=t;return e&&e.length&&r&&r.length?{lastUpdateTimestamp:e[e.length-1],lastPrice:r[r.length-1]}:{lastUpdateTimestamp:null,lastPrice:null}},T=t=>{let{windowSize:e,lastUpdateTimestamp:r,lastPrice:n,isTrading:i}=t;return r?r+n+("large"===e)+!!i:""};var P=r(56858),q=r(73793);let U=(0,b.z)("time")({name:"SmartTimeWrapper",class:"s65q50v",propsAsIs:!1});var I=t=>{let{second:e,nowMs:r,format:i}=t,s=1e3*e;return(0,n.jsx)(U,{dateTime:(0,q.sN)(s),children:i?(0,q.i$)(s,i):(0,q.zf)(s,r)})};r(8588);var L=r(38939),W=r(11684),F=r(19497);let O={"X-platform":"WEB"};(0,F.Z)({host:String("https://api.cnyes.com"),headers:O});let R=(0,F.Z)({host:String("https://ws.api.cnyes.com"),headers:O});(0,F.Z)({host:String("https://ess.api.cnyes.com")});let z=t=>{let e={};for(let r of Object.keys(t))t[r]&&(e[r]=t[r]);return e},B=t=>{let{resolution:e,symbol:r,from:n,to:i,quote:s,compress:o}=t;return R.get("/ws/api/v1/charting/history",z({resolution:e,symbol:r,from:n,to:i,quote:s,compress:o}))},K=async t=>{try{let r=String(t).split(":"),n={symbol:t,resolution:"5",quote:"1"};if("CC"===r[0]){let t=t=>parseInt(t/1e3,10),e=Date.now(),r=t(e),i=t(e-864e5);n.resolution="1",n.compress=1,n.from=r,n.to=i}"FX:USDTWD:FOREX"===t&&(n.resolution="1");let i=await B(n);if(200===i.statusCode){var e;return null!==(e=null==i?void 0:i.data)&&void 0!==e?e:[]}return null}catch(e){return console.error("fetch quote or history fail: ",t,e),null}},X=(t,e)=>{let r,n;let i=String(e).split(":");if(t){let{c:s,t:o,session:a,quote:l}=t;if(s&&o&&(r={c:s,t:o}),l&&a){let{[C.f.ChineseName]:t,[C.f.NonFormattedChartQuote.LastClose]:r,[C.f.lastFormat]:s,[C.f.netChangeFormat]:o,[C.f.ChangePercent]:c,[C.f.MarketStatus]:h,isTrading:u}=l,{[C.f.Volume]:d}=l;["CNS"].includes(i[0])&&(d*=100),t&&(n={symbol:e,name:"CC"===i[0]?"".concat(t," ").concat(i[1]):t,session:a,prevClosePrice:r,value:s||"--",netChange:o?o>0?"+".concat(o):o:"--",changeInPercentage:c?"".concat(c,"%"):"--",isTrading:u,marketStatus:h,volume:d?"".concat((0,L._1)(d,2).replace(",","")).concat((0,L.go)(e)):"--"})}}return{symbol:e,history:r,quote:n}};var V=t=>{let{symbol:e}=t,{data:r,refetch:n,isFetching:s}=(0,W.useQuery)({queryKey:["quotes",e],queryFn:()=>K(e),select:t=>X(t,e),initialData:{data:[]}});(0,i.useEffect)(()=>{let t=setInterval(async()=>{await n()},3e5);return()=>{clearInterval(t)}},[e,n]);let{history:o,quote:a}=r||{};return{symbol:e,history:o,quote:a,isHighlight:s}};let H={name:"--",prevClosePrice:0,session:[],value:"--",netChange:"--",changeInPercentage:"--",volume:"--",isTrading:!1,marketStatus:0},G=(0,b.z)("div")({name:"ChartContainer",class:"c1vyksj9",propsAsIs:!1}),Q=()=>{var t,e;if(k.C5&&(null===(t=window)||void 0===t?void 0:t.innerWidth)){let t=(null===(e=window)||void 0===e?void 0:e.innerWidth)<y.y.MOBILE?8:16;return Math.floor((window.innerWidth-6*t)/2)}return 0},Y=t=>{let[e,r]=(0,i.useState)(()=>{var e,r;return{h:(null==t?void 0:null===(e=t.customChartSize)||void 0===e?void 0:e.h)||75,w:(null==t?void 0:null===(r=t.customChartSize)||void 0===r?void 0:r.w)||134}});return(0,i.useEffect)(()=>{let t=Q();r(e=>(0,m._)((0,f._)({},e),{w:t}))},[]),(0,n.jsx)(M.default,{height:e.h+58+15+16,width:e.w})};var Z=t=>{let{fullSize:e=!1,symbol:r,type:s="response",showUpdateTime:o=!1,showVolume:a=!0,timezoneOffsetHour:l=0,customName:c="",customChartSize:h={h:75,w:134}}=t,[u,d]=(0,i.useState)({windowSize:void 0,highlight:!0,currentValue:void 0}),{history:y,quote:b,isHighlight:w}
1=V({symbol:r}),D=()=>{if(b){var t;let e=null!==(t=null==b?void 0:b.name)&&void 0!==t?t:"";(0,P.gv)({[P.Pj.EVENT_NAME]:P.PL.CLICK_QUOTE,[P.Pj.SECTION]:"".concat(P.fV.SECTION_PLACEHOLDER,"_ChartQ"),[P.Pj.CLICK_ITEM]:"".concat(r,"_").concat(e)})}},k=(0,i.useCallback)(()=>{let t=window.innerWidth<=1300?"short":"large";d(e=>(0,m._)((0,f._)({},e),{windowSize:t}))},[]),M=()=>{switch(s){case"fixLarge":return{h:55,w:172};case"fixMedium":return{h:61,w:149};case"fixSmall":return{h:55,w:134};case"custom":let t=h.w||Q();return{h:h.h||75,w:t};default:return{h:65,w:"large"===u.windowSize?182:146}}};(0,i.useEffect)(()=>{let t=A()(()=>{k()},100);return"response"===s&&window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[s,k]),(0,i.useEffect)(()=>{(async()=>{await new Promise(t=>setTimeout(t,1e3)),d(t=>(0,m._)((0,f._)({},t),{highlight:!1}))})()},[w]);let C=t=>{var e,r;let{h:i,w:s}=M(),{session:o,isTrading:a}=b||H,{c:l,t:c}=S({c:null!==(e=null==y?void 0:y.c)&&void 0!==e?e:[],t:null!==(r=null==y?void 0:y.t)&&void 0!==r?r:[]}),h=N({quote:b,c:l}),{lastUpdateTimestamp:d,lastPrice:f}=E({c:l,t:c}),m=T({windowSize:u.windowSize,lastUpdateTimestamp:d,lastPrice:f,isTrading:a});return(0,n.jsx)(p,{updateKey:m,height:i,width:s,padding:0,yGap:0,t:c,c:l,base:h,session:o,highlightLastPoint:t,tooltipByDate:!1})};return(0,n.jsx)(G,{style:{margin:e?"0px":"8px"},children:y?(t=>{var e,i;let{name:s,value:h,netChange:u,changeInPercentage:d,prevClosePrice:p,volume:f}=b||H,{c:m,t:w}=S({c:null!==(e=null==y?void 0:y.c)&&void 0!==e?e:[],t:null!==(i=null==y?void 0:y.t)&&void 0!==i?i:[]}),{lastUpdateTimestamp:A}=E({c:m,t:w}),{h:k,w:j}=M(),{session:N,marketStatus:T}=b||H,P=Date.now(),q=N&&N[0]&&N[0][0],U=1===T,L=!b,W=u&&u[0],F="trend-chart__col--equal";L||("+"===W?F="trend-chart__col--up":"-"!==W||(F="trend-chart__col--down"));let O=x()(F,{background:!0,highlight:t,empty:L}),R=(0,g.eu)(r),z=c||s,B=o&&A&&A+3600*l||null,K="æäº¤é",X=!1,V="";if("INDEX"===_(r)||"CC"===v(r))K="æäº¤é¡";else if("FX:USDTWD:FOREX"===r&&w.length>0){let t=new Date(1e3*w[w.length-1]),e=+t.getDay(),r=+t.getHours(),n=+t.getMinutes();if([1,2,3,4,5].includes(e)){let t=100*r+n;t>=1200&&t<1555?K="ä¸åæäº¤é¡":t>=1555&&(K="å ¨æ¥æäº¤é¡"),X=!0,V="--"!==f?"ç¾å ":""}}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"trend-chart__header",children:[(0,n.jsxs)("div",{className:"trend-chart__row",children:[(0,n.jsx)("div",{className:"trend-chart__col--name",children:R?(0,n.jsx)("a",{href:R,title:z,"data-recent-object-type":"QUOTE","data-recent-symbol":r,onClick:D,children:z}):(0,n.jsx)("span",{title:z,children:z})}),(0,n.jsx)("div",{className:O,children:d})]}),(0,n.jsxs)("div",{className:"trend-chart__row",children:[(0,n.jsx)("div",{className:x()(F,"trend-chart__col--price"),children:h||p}),(0,n.jsx)("div",{className:O,children:u})]}),a&&"--"!==f&&(0,n.jsxs)("div",{className:"trend-chart__row",children:[(0,n.jsx)("div",{className:x()("trend-chart__col--label",{small:X}),children:K}),(0,n.jsx)("div",{className:x()("trend-chart__col--volume",{small:X}),children:"".concat(f).concat(V)})]})]}),L||U?(0,n.jsx)("div",{className:"trend-chart__empty",style:{width:j,height:k+10},children:(0,n.jsx)("span",{children:L?"":U&&P>=1e3*q?"å»¶é²å ±å¹":"æ¸ ç¤"})}):C(t),(0,n.jsxs)("div",{className:"trend-chart__footer",children:[(0,n.jsx)("div",{className:"trend-chart__footer--time",children:B?(0,n.jsx)(I,{second:B,format:"MM/DD HH:mm"}):""}),(0,n.jsx)("img",{src:"/assets/icons/logo/anue-chart-logo.png",alt:"anue"})]})]})})(u.highlight):(0,n.jsx)(Y,{customChartSize:h})})};r(92356)},38939:function(t,e,r){"use strict";r.d(e,{_1:function(){return u},gJ:function(){return c},go:function(){return d},uf:function(){return h}});let n=["è¬","å","å "],i=t=>!Number.isNaN(t)&&"number"==typeof t,s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return i(t)?Math.round(Math.round(t*Math.pow(10,(e||0)+1))/10)/Math.pow(10,e||0):NaN},o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,i=Math.floor((s(Math.abs(Number.parseFloat(t)),0).toString().length-1)/e);return i>r.length?r.length:i},a=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,i=o(t,e,r);return r[i-1]||""},l=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,a=Number.parseFloat(t),l=o(t,r,i);return s(a/"1e".concat(l*r),e)},c=t=>{let[e,r]=t.toString().split("."),n=e.replace(/(\d{1,3})(?=(\d{3})+$)/g,"$1,");return"".concat(n).concat(r?".".concat(r):"")},h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=s(t,e).toString().split("."),n=r[0].replace(/(\d{1,3})(?=(\d{3})+$)/g,"$1,"),i=Array(null==r[1]?e:e-r[1].length).fill(0).join("").toString(),o=null==r[1]?".".concat(i):r[1].length<e?".".concat(r[1]).concat(i):".".concat(r[1]);return e>0?"".concat(n).concat(o):n},u=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!i(t))return t;let r=a(t),n=Number.parseInt(t,10);if(1e6>Math.abs(n))return h(n,0);let s=h(l(t,e),e);return"".concat(s).concat(r)},d=t=>{let e=t.split(":"),r=e[0]||"";switch(e[2]||""){case"FUTURES":return"å£";case"STOCK":return["USS","CNS","HKS"].includes(r)?"è¡":"å¼µ";default:return""}}},8588:function(t){t.exports={s65q50v:"s65q50v"}},92356:function(t){t.exports={c1vyksj9:"c1vyksj9","trend-chart":"trend-chart","trend-chart__header":"trend-chart__header","trend-chart__row":"trend-chart__row",empty:"empty","trend-chart__col--empty":"trend-chart__col--empty","trend-chart__col--name":"trend-chart__col--name","trend-chart__col--down":"trend-chart__col--down",background:"background",highlight:"highlight","trend-chart__col--up":"trend-chart__col--up","trend-chart__col--equal":"trend-chart__col--equal","trend-chart__col--price":"trend-chart__col--price","trend-chart__col--volume":"trend-chart__col--volume",small:"small","trend-chart__col--label":"trend-chart__col--label","trend-chart__footer":"trend-chart__footer","trend-chart__footer--time":"trend-chart__footer--time","trend-chart__empty":"trend-chart__empty","trend-chart__loading":"trend-chart__loading",chart:"chart",time:"time"}}}]); 2//# sourceMappingURL=9089-9e39ca07688c5cd7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.