diff --git a/assets/EarningCall-DvwBNw8-.js b/assets/EarningCall-DvwBNw8-.js new file mode 100644 index 0000000..ab58259 --- /dev/null +++ b/assets/EarningCall-DvwBNw8-.js @@ -0,0 +1 @@ +import{M as n,P as o}from"./ProcessFlow-DSYizVyV.js";import{_ as l,c as i,b as e,F as c,r as t,o as u}from"./index-CbUvJRks.js";import"./ScrollReveal-FrL9aeFz.js";const d={components:{Model:n,ProcessFlow:o},beforeCreate(){this.processes=[{id:"STEP1",title:"Raw Data",text:"原始 15 ~ 23 年 Tesla earningscall 的資料集",sources:[{name:"EarningsCall raw data",url:"https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/PDF"}]},{id:"STEP2",title:"Preprocessing",text:"進行資料預處理,根據 Topic 切割 Raw data 、去除無意義詞彙、去除 Stop word 。",sources:[{name:"Preprocessing",url:"https://github.com/scfengv/GDSC-ai-stock/blob/Earningscall/PDF_Paragraphs.py"}]},{id:"STEP3",title:"Summary",text:"使用facebook/bart-large-cnn 模型進行summary",sources:[{name:"Summary",url:"https://github.com/scfengv/GDSC-ai-stock/blob/Earningscall/Summary.py"}]},{id:"STEP4",title:"Labelled Data",text:"利用roberta和Distilbert這兩個hugging face上的pretrained model做資料情感分析,對raw data進行標記",sources:[{name:"Pretrained model 1",url:"https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest?text=Covid+cases+are+increasing+fast%21"},{name:"Pretrained model 2",url:"https://huggingface.co/austinmw/distilbert-base-uncased-finetuned-tweets-sentiment?text=If+you+reserved+a+%23Tesla+Founders+Series+Roadster+when+they+were+first+announced+on+Nov+17th%2C+2017+for+%24250k+that+same+%24250k+invested+in+%24TSLA+would+be+3%2C967.62+shares+%28%2463.01+on+Nov+17th+2017%29.+Those+shares+would+be+worth+%242%2C756%2C623.02+as+of+today%27s+%24TSLA+close+at+%24694.78"}]},{id:"STEP5",title:"Output Dataset",text:"比對兩組label score,將相同label的資料取出,作為dataset",sources:[{name:"Compare Label",url:"https://github.com/scfengv/GDSC-ai-stock/blob/Earningscall/Compare.ipynb"}]},{id:"STEP6",title:"Category",text:"將dataset中的資料進行category",sources:[{name:"Category",url:"https://github.com/scfengv/GDSC-ai-stock/blob/Earningscall/Category.py"}]},{id:"STEP7",title:"Finetune BERT",text:"利用標記資料 Finetune BERT 得到我們預使用的模型。",sources:[{name:"weip9012/tesla_earningscall_sentiment_analysis",url:"https://huggingface.co/weip9012/tesla_earningscall_sentiment_analysis"}]},{id:"STEP8",title:"Final Dataset",text:"合併所有 Predicted data 作為 LSTM dataset。",sources:[{name:"Final Dataset",url:"https://github.com/scfengv/GDSC-ai-stock/blob/Earningscall/15-23earningscall_dataset.csv"}]}]}};function g(a,m,p,b,h,f){const s=t("Model"),r=t("ProcessFlow");return u(),i(c,null,[e(s),e(r,{processes:a.processes},null,8,["processes"])],64)}const _=l(d,[["render",g]]);export{_ as default}; diff --git a/assets/EarningCall-PuAmtw16.js b/assets/EarningCall-PuAmtw16.js deleted file mode 100644 index 95b96fc..0000000 --- a/assets/EarningCall-PuAmtw16.js +++ /dev/null @@ -1 +0,0 @@ -import{M as o,P as n}from"./ProcessFlow-nNtbjvOU.js";import{_ as c,c as l,b as t,F as r,r as e,o as p}from"./index-CVfypvOR.js";import"./ScrollReveal-sydDG7Nu.js";const m={components:{Model:o,ProcessFlow:n},beforeCreate(){this.processes=[{id:"STEP1",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["1_pdf_split.py","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/split"]},{id:"STEP2",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["2_Paragraphs.py","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/Paragraphs"]},{id:"STEP3",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["3_summary.py","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/summary"]},{id:"STEP4",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["4_merge_json.py","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/merge"]},{id:"STEP5",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["5_json_to_csv.py"]},{id:"STEP6",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["6_sentiment.ipynb","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/sentiment"]},{id:"STEP7",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["7_merge.ipynb"]},{id:"STEP8",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["8_compare.ipynb","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/compare"]},{id:"STEP9",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["9_label.py"]},{id:"STEP10",title:"",text:"這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述這是描述",files:["10_finetune.ipynb","https://github.com/scfengv/GDSC-ai-stock/tree/Earningscall/Data/Dataset"]}]}};function g(s,f,_,d,E,h){const a=e("Model"),i=e("ProcessFlow");return p(),l(r,null,[t(a),t(i,{processes:s.processes},null,8,["processes"])],64)}const D=c(m,[["render",g]]);export{D as default}; diff --git a/assets/Home-DHcqi0tC.js b/assets/Home-CTgq2R8G.js similarity index 93% rename from assets/Home-DHcqi0tC.js rename to assets/Home-CTgq2R8G.js index adc22fb..b4443ae 100644 --- a/assets/Home-DHcqi0tC.js +++ b/assets/Home-CTgq2R8G.js @@ -1 +1 @@ -import{C as Se,S as Ee}from"./ScrollReveal-sydDG7Nu.js";import{_ as ct,o as q,c as B,a as b,b as Ot,t as Dt,d as Ce,r as Xt,F as dn,e as Te,f as pn,w as Pe,g as Re}from"./index-CVfypvOR.js";function wt(t,n){return t==null||n==null?NaN:tn?1:t>=n?0:NaN}function Ie(t,n){return t==null||n==null?NaN:nt?1:n>=t?0:NaN}function On(t){let n,e,r;t.length!==2?(n=wt,e=(s,c)=>wt(t(s),c),r=(s,c)=>t(s)-c):(n=t===wt||t===Ie?t:Fe,e=t,r=t);function i(s,c,u=0,l=s.length){if(u>>1;e(s[f],c)<0?u=f+1:l=f}while(u>>1;e(s[f],c)<=0?u=f+1:l=f}while(uu&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:a,right:o}}function Fe(){return 0}function He(t){return t===null?NaN:+t}const qe=On(wt),Le=qe.right;On(He).center;class gn extends Map{constructor(n,e=De){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),n!=null)for(const[r,i]of n)this.set(r,i)}get(n){return super.get(mn(this,n))}has(n){return super.has(mn(this,n))}set(n,e){return super.set(ze(this,n),e)}delete(n){return super.delete(Oe(this,n))}}function mn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function ze({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function Oe({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function De(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Xe=Math.sqrt(50),Ve=Math.sqrt(10),Be=Math.sqrt(2);function $t(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Xe?10:o>=Ve?5:o>=Be?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(n*u),s/un&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(n/u),s*un&&--c),c0))return[];if(t===n)return[t];const r=n=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u=r)&&(e=r);else{let r=-1;for(let i of t)(i=n(i,++r,t))!=null&&(e=i)&&(e=i)}return e}function Ge(t,n){let e;if(n===void 0)for(const r of t)r!=null&&(e>r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of t)(i=n(i,++r,t))!=null&&(e>i||e===void 0&&i>=i)&&(e=i)}return e}function Ke(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=Math.max(0,Math.ceil((n-t)/e))|0,o=new Array(i);++r+t(n)}function tr(t,n){return n=Math.max(0,t.bandwidth()-n*2)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function nr(){return!this.__axis}function Dn(t,n){var e=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Ht||t===et?-1:1,l=t===et||t===qt?"x":"y",f=t===Ht||t===Bt?Qe:Je;function h(d){var p=r??(n.ticks?n.ticks.apply(n,e):n.domain()),m=i??(n.tickFormat?n.tickFormat.apply(n,e):We),_=Math.max(o,0)+s,v=n.range(),x=+v[0]+c,y=+v[v.length-1]+c,$=(n.bandwidth?tr:je)(n.copy(),c),w=d.selection?d.selection():d,z=w.selectAll(".domain").data([null]),E=w.selectAll(".tick").data(p,n).order(),U=E.exit(),G=E.enter().append("g").attr("class","tick"),O=E.select("line"),g=E.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(G),O=O.merge(G.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),g=g.merge(G.append("text").attr("fill","currentColor").attr(l,u*_).attr("dy",t===Ht?"0em":t===Bt?"0.71em":"0.32em")),d!==w&&(z=z.transition(d),E=E.transition(d),O=O.transition(d),g=g.transition(d),U=U.transition(d).attr("opacity",_n).attr("transform",function(N){return isFinite(N=$(N))?f(N+c):this.getAttribute("transform")}),G.attr("opacity",_n).attr("transform",function(N){var M=this.parentNode.__axis;return f((M&&isFinite(M=M(N))?M:$(N))+c)})),U.remove(),z.attr("d",t===et||t===qt?a?"M"+u*a+","+x+"H"+c+"V"+y+"H"+u*a:"M"+c+","+x+"V"+y:a?"M"+x+","+u*a+"V"+c+"H"+y+"V"+u*a:"M"+x+","+c+"H"+y),E.attr("opacity",1).attr("transform",function(N){return f($(N)+c)}),O.attr(l+"2",u*o),g.attr(l,u*_).text(m),w.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===qt?"start":t===et?"end":"middle"),w.each(function(){this.__axis=$})}return h.scale=function(d){return arguments.length?(n=d,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(e=d==null?[]:Array.from(d),h):e.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(o=a=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(a=+d,h):a},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(c=+d,h):c},h}function er(t){return Dn(Bt,t)}function rr(t){return Dn(et,t)}var ir={value:()=>{}};function Xn(){for(var t=0,n=arguments.length,e={},r;t=0&&(r=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:r}})}vt.prototype=Xn.prototype={constructor:vt,on:function(t,n){var e=this._,r=or(t+"",e),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var e=new Array(i),r=0,i,o;r=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),wn.hasOwnProperty(n)?{space:wn[n],local:t}:t}function sr(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Zt&&n.documentElement.namespaceURI===Zt?n.createElement(t):n.createElementNS(e,t)}}function ur(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Vn(t){var n=Rt(t);return(n.local?ur:sr)(n)}function cr(){}function nn(t){return t==null?cr:function(){return this.querySelector(t)}}function fr(t){typeof t!="function"&&(t=nn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=y&&(y=x+1);!(w=_[y])&&++y=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Fr(t){t||(t=Hr);function n(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var e=this._groups,r=e.length,i=new Array(r),o=0;on?1:t>=n?0:NaN}function qr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lr(){return Array.from(this)}function zr(){for(var t=this._groups,n=0,e=t.length;n1?this.each((n==null?Wr:typeof n=="function"?Jr:Qr)(t,n,e??"")):J(this.node(),t)}function J(t,n){return t.style.getPropertyValue(n)||Gn(t).getComputedStyle(t,null).getPropertyValue(n)}function ti(t){return function(){delete this[t]}}function ni(t,n){return function(){this[t]=n}}function ei(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function ri(t,n){return arguments.length>1?this.each((n==null?ti:typeof n=="function"?ei:ni)(t,n)):this.node()[t]}function Kn(t){return t.trim().split(/^|\s+/)}function en(t){return t.classList||new Wn(t)}function Wn(t){this._node=t,this._names=Kn(t.getAttribute("class")||"")}Wn.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Qn(t,n){for(var e=en(t),r=-1,i=n.length;++r=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function Ti(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?gt(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?gt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Di.exec(t))?new A(n[1],n[2],n[3],1):(n=Xi.exec(t))?new A(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Vi.exec(t))?gt(n[1],n[2],n[3],n[4]):(n=Bi.exec(t))?gt(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Zi.exec(t))?Nn(n[1],n[2]/100,n[3]/100,1):(n=Yi.exec(t))?Nn(n[1],n[2]/100,n[3]/100,n[4]):vn.hasOwnProperty(t)?$n(vn[t]):t==="transparent"?new A(NaN,NaN,NaN,0):null}function $n(t){return new A(t>>16&255,t>>8&255,t&255,1)}function gt(t,n,e,r){return r<=0&&(t=n=e=NaN),new A(t,n,e,r)}function Ki(t){return t instanceof lt||(t=Z(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function Yt(t,n,e,r){return arguments.length===1?Ki(t):new A(t,n,e,r??1)}function A(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}rn(A,Yt,ne(lt,{brighter(t){return t=t==null?Mt:Math.pow(Mt,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?at:Math.pow(at,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new A(V(this.r),V(this.g),V(this.b),Nt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kn,formatHex:kn,formatHex8:Wi,formatRgb:Mn,toString:Mn}));function kn(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function Wi(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mn(){const t=Nt(this.opacity);return`${t===1?"rgb(":"rgba("}${V(this.r)}, ${V(this.g)}, ${V(this.b)}${t===1?")":`, ${t})`}`}function Nt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function V(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function X(t){return t=V(t),(t<16?"0":"")+t.toString(16)}function Nn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new T(t,n,e,r)}function ee(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof lt||(t=Z(t)),!t)return new T;if(t instanceof T)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,s=o-i,c=(o+i)/2;return s?(n===o?a=(e-r)/s+(e0&&c<1?0:a,new T(a,s,c,t.opacity)}function Qi(t,n,e,r){return arguments.length===1?ee(t):new T(t,n,e,r??1)}function T(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}rn(T,Qi,ne(lt,{brighter(t){return t=t==null?Mt:Math.pow(Mt,t),new T(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?at:Math.pow(at,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new A(Lt(t>=240?t-240:t+120,i,r),Lt(t,i,r),Lt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new T(An(this.h),mt(this.s),mt(this.l),Nt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Nt(this.opacity);return`${t===1?"hsl(":"hsla("}${An(this.h)}, ${mt(this.s)*100}%, ${mt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function An(t){return t=(t||0)%360,t<0?t+360:t}function mt(t){return Math.max(0,Math.min(1,t||0))}function Lt(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}const on=t=>()=>t;function Ji(t,n){return function(e){return t+e*n}}function ji(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function to(t){return(t=+t)==1?re:function(n,e){return e-n?ji(n,e,t):on(isNaN(n)?e:n)}}function re(t,n){var e=n-t;return e?Ji(t,e):on(isNaN(t)?n:t)}const At=function t(n){var e=to(n);function r(i,o){var a=e((i=Yt(i)).r,(o=Yt(o)).r),s=e(i.g,o.g),c=e(i.b,o.b),u=re(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return r.gamma=t,r}(1);function no(t,n){n||(n=[]);var e=t?Math.min(n.length,t.length):0,r=n.slice(),i;return function(o){for(i=0;ie&&(o=n.slice(e,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:C(r,i)})),e=zt.lastIndex;return e180?l+=360:l-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:C(u,l)})):l&&f.push(i(f)+"rotate("+l+r)}function s(u,l,f,h){u!==l?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:C(u,l)}):l&&f.push(i(f)+"skewX("+l+r)}function c(u,l,f,h,d,p){if(u!==f||l!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:C(u,f)},{i:m-2,x:C(l,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,l){var f=[],h=[];return u=t(u),l=t(l),o(u.translateX,u.translateY,l.translateX,l.translateY,f,h),a(u.rotate,l.rotate,f,h),s(u.skewX,l.skewX,f,h),c(u.scaleX,u.scaleY,l.scaleX,l.scaleY,f,h),u=l=null,function(d){for(var p=-1,m=h.length,_;++p=0&&t._call.call(void 0,n),t=t._next;--j}function En(){Y=(Et=ut.now())+It,j=rt=0;try{go()}finally{j=0,_o(),Y=0}}function mo(){var t=ut.now(),n=t-Et;n>se&&(It-=n,Et=t)}function _o(){for(var t,n=St,e,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:St=e);it=t,Kt(r)}function Kt(t){if(!j){rt&&(rt=clearTimeout(rt));var n=t-Y;n>24?(t<1/0&&(rt=setTimeout(En,t-ut.now()-It)),nt&&(nt=clearInterval(nt))):(nt||(Et=ut.now(),nt=setInterval(mo,se)),j=1,ue(En))}}function Cn(t,n,e){var r=new Ct;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var yo=Xn("start","end","cancel","interrupt"),wo=[],fe=0,Tn=1,Wt=2,xt=3,Pn=4,Qt=5,bt=6;function Ft(t,n,e,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(e in a)return;vo(t,e,{name:n,index:r,group:i,on:yo,tween:wo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:fe})}function un(t,n){var e=P(t,n);if(e.state>fe)throw new Error("too late; already scheduled");return e}function I(t,n){var e=P(t,n);if(e.state>xt)throw new Error("too late; already running");return e}function P(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function vo(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=ce(o,0,e.time);function o(u){e.state=Tn,e.timer.restart(a,e.delay,e.time),e.delay<=u&&a(u-e.delay)}function a(u){var l,f,h,d;if(e.state!==Tn)return c();for(l in r)if(d=r[l],d.name===e.name){if(d.state===xt)return Cn(a);d.state===Pn?(d.state=bt,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+lWt&&r.state=0&&(n=n.slice(0,e)),!n||n==="start"})}function Qo(t,n,e){var r,i,o=Wo(n)?un:I;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(n,e),a.on=i}}function Jo(t,n){var e=this._id;return arguments.length<2?P(this.node(),e).on.on(t):this.each(Qo(e,t,n))}function jo(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function ta(){return this.on("end.remove",jo(this._id))}function na(t){var n=this._name,e=this._id;typeof t!="function"&&(t=nn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a=0))throw new Error(`invalid digits: ${t}`);if(n>15)return pe;const e=10**n;return function(r){this._+=r[0];for(let i=1,o=r.length;iD)if(!(Math.abs(f*c-u*l)>D)||!o)this._append`L${this._x1=n},${this._y1=e}`;else{let d=r-a,p=i-s,m=c*c+u*u,_=d*d+p*p,v=Math.sqrt(m),x=Math.sqrt(h),y=o*Math.tan((Jt-Math.acos((m+h-_)/(2*v*x)))/2),$=y/x,w=y/v;Math.abs($-1)>D&&this._append`L${n+$*l},${e+$*f}`,this._append`A${o},${o},0,0,${+(f*d>l*p)},${this._x1=n+w*c},${this._y1=e+w*u}`}}arc(n,e,r,i,o,a){if(n=+n,e=+e,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),u=n+s,l=e+c,f=1^a,h=a?i-o:o-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>D||Math.abs(this._y1-l)>D)&&this._append`L${u},${l}`,r&&(h<0&&(h=h%jt+jt),h>Na?this._append`A${r},${r},0,1,${f},${n-s},${e-c}A${r},${r},0,1,${f},${this._x1=u},${this._y1=l}`:h>D&&this._append`A${r},${r},0,${+(h>=Jt)},${f},${this._x1=n+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(n,e,r,i){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Ea(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Tt(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function tt(t){return t=Tt(Math.abs(t)),t?t[1]:NaN}function Ca(t,n){return function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}}function Ta(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}var Pa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pt(t){if(!(n=Pa.exec(t)))throw new Error("invalid format: "+t);var n;return new fn({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Pt.prototype=fn.prototype;function fn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}fn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ra(t){t:for(var n=t.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var ge;function Ia(t,n){var e=Tt(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ge=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Tt(t,Math.max(0,n+o-1))[0]}function Rn(t,n){var e=Tt(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const In={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ea,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Rn(t*100,n),r:Rn,s:Ia,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Fn(t){return t}var Hn=Array.prototype.map,qn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fa(t){var n=t.grouping===void 0||t.thousands===void 0?Fn:Ca(Hn.call(t.grouping,Number),t.thousands+""),e=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Fn:Ta(Hn.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(f){f=Pt(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,_=f.zero,v=f.width,x=f.comma,y=f.precision,$=f.trim,w=f.type;w==="n"?(x=!0,w="g"):In[w]||(y===void 0&&(y=12),$=!0,w="g"),(_||h==="0"&&d==="=")&&(_=!0,h="0",d="=");var z=m==="$"?e:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",E=m==="$"?r:/[%p]/.test(w)?a:"",U=In[w],G=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function O(g){var N=z,M=E,K,hn,ht;if(w==="c")M=U(g)+M,g="";else{g=+g;var dt=g<0||1/g<0;if(g=isNaN(g)?c:U(Math.abs(g),y),$&&(g=Ra(g)),dt&&+g==0&&p!=="+"&&(dt=!1),N=(dt?p==="("?p:s:p==="-"||p==="("?"":p)+N,M=(w==="s"?qn[8+ge/3]:"")+M+(dt&&p==="("?")":""),G){for(K=-1,hn=g.length;++Kht||ht>57){M=(ht===46?i+g.slice(K+1):g.slice(K))+M,g=g.slice(0,K);break}}}x&&!_&&(g=n(g,1/0));var pt=N.length+g.length+M.length,F=pt>1)+N+g+M+F.slice(pt);break;default:g=F+N+g+M;break}return o(g)}return O.toString=function(){return f+""},O}function l(f,h){var d=u((f=Pt(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(tt(h)/3)))*3,m=Math.pow(10,-p),_=qn[8+p/3];return function(v){return d(m*v)+_}}return{format:u,formatPrefix:l}}var yt,me,_e;Ha({thousands:",",grouping:[3],currency:["$",""]});function Ha(t){return yt=Fa(t),me=yt.format,_e=yt.formatPrefix,yt}function qa(t){return Math.max(0,-tt(Math.abs(t)))}function La(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tt(n)/3)))*3-tt(Math.abs(t)))}function za(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,tt(n)-tt(t))+1}function ln(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}const Ln=Symbol("implicit");function ye(){var t=new gn,n=[],e=[],r=Ln;function i(o){let a=t.get(o);if(a===void 0){if(r!==Ln)return r;t.set(o,a=n.push(o)-1)}return e[a%e.length]}return i.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new gn;for(const a of o)t.has(a)||t.set(a,n.push(a)-1);return i},i.range=function(o){return arguments.length?(e=Array.from(o),i):e.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return ye(n,e).unknown(r)},ln.apply(i,arguments),i}function we(){var t=ye().unknown(void 0),n=t.domain,e=t.range,r=0,i=1,o,a,s=!1,c=0,u=0,l=.5;delete t.unknown;function f(){var h=n().length,d=in&&(e=t,t=n,n=e),function(r){return Math.max(t,Math.min(n,r))}}function Va(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i2?Ba:Va,c=u=null,f}function f(h){return h==null||isNaN(h=+h)?o:(c||(c=s(t.map(r),n,e)))(r(a(h)))}return f.invert=function(h){return a(i((u||(u=s(n,t.map(r),C)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Da),l()):t.slice()},f.range=function(h){return arguments.length?(n=Array.from(h),l()):n.slice()},f.rangeRound=function(h){return n=Array.from(h),e=uo,l()},f.clamp=function(h){return arguments.length?(a=h?!0:W,l()):a!==W},f.interpolate=function(h){return arguments.length?(e=h,l()):e},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,l()}}function Ua(){return Ya()(W,W)}function Ga(t,n,e,r){var i=Ye(t,n,e),o;switch(r=Pt(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(n));return r.precision==null&&!isNaN(o=La(i,a))&&(r.precision=o),_e(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=za(i,Math.max(Math.abs(t),Math.abs(n))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=qa(i))&&(r.precision=o-(r.type==="%")*2);break}}return me(r)}function Ka(t){var n=t.domain;return t.ticks=function(e){var r=n();return Ze(r[0],r[r.length-1],e??10)},t.tickFormat=function(e,r){var i=n();return Ga(i[0],i[i.length-1],e??10,r)},t.nice=function(e){e==null&&(e=10);var r=n(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,l=10;for(s0;){if(u=Vt(a,s,e),u===c)return r[i]=a,r[o]=s,n(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return t},t}function ve(){var t=Ua();return t.copy=function(){return Za(t,ve())},ln.apply(t,arguments),Ka(t)}function k(t){return function(){return t}}function xe(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{const r=Math.floor(e);if(!(r>=0))throw new RangeError(`invalid digits: ${e}`);n=r}return t},()=>new Sa(n)}function be(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function $e(t){this._context=t}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function ke(t){return new $e(t)}function Me(t){return t[0]}function Ne(t){return t[1]}function Ae(t,n){var e=k(!0),r=null,i=ke,o=null,a=xe(s);t=typeof t=="function"?t:t===void 0?Me:k(t),n=typeof n=="function"?n:n===void 0?Ne:k(n);function s(c){var u,l=(c=be(c)).length,f,h=!1,d;for(r==null&&(o=i(d=a())),u=0;u<=l;++u)!(u=d;--p)s.point(y[p],$[p]);s.lineEnd(),s.areaEnd()}v&&(y[h]=+t(_,h,f),$[h]=+n(_,h,f),s.point(r?+r(_,h,f):y[h],e?+e(_,h,f):$[h]))}if(x)return s=null,x+""||null}function l(){return Ae().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:k(+f),r=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:k(+f),u):t},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:k(+f),u):r},u.y=function(f){return arguments.length?(n=typeof f=="function"?f:k(+f),e=null,u):n},u.y0=function(f){return arguments.length?(n=typeof f=="function"?f:k(+f),u):n},u.y1=function(f){return arguments.length?(e=f==null?null:typeof f=="function"?f:k(+f),u):e},u.lineX0=u.lineY0=function(){return l().x(t).y(n)},u.lineY1=function(){return l().x(t).y(e)},u.lineX1=function(){return l().x(r).y(n)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:k(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,o!=null&&(s=a(o)),u):a},u.context=function(f){return arguments.length?(f==null?o=s=null:s=a(o=f),u):o},u}function ot(t,n,e){this.k=t,this.x=n,this.y=e}ot.prototype={constructor:ot,scale:function(t){return t===1?this:new ot(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new ot(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ot.prototype;const Qa={name:"TimePriceChart",components:{CountTo:Se},data(){return{data:[]}},mounted(){const t=[{date:"2024-04-09",price:176.8800048828125},{date:"2024-04-10",price:171.75999450683594},{date:"2024-04-11",price:174.60000610351562},{date:"2024-04-12",price:171.0500030517578},{date:"2024-04-15",price:161.47999572753906},{date:"2024-04-16",price:157.11000061035156},{date:"2024-04-17",price:155.4499969482422},{date:"2024-04-18",price:149.92999267578125},{date:"2024-04-19",price:147.0500030517578},{date:"2024-04-22",price:142.0500030517578},{date:"2024-04-23",price:144.67999267578125},{date:"2024-04-24",price:162.1300048828125},{date:"2024-04-25",price:170.17999267578125},{date:"2024-04-26",price:168.2899932861328},{date:"2024-04-29",price:194.0500030517578},{date:"2024-04-30",price:183.27999877929688},{date:"2024-05-01",price:179.99000549316406},{date:"2024-05-02",price:180.00999450683594},{date:"2024-05-03",price:181.19000244140625},{date:"2024-05-06",price:184.75999450683597},{date:"2024-05-07",price:177.80999755859375},{date:"2024-05-08",price:174.72000122070312},{date:"2024-05-09",price:171.97000122070312},{date:"2024-05-10",price:168.47000122070312},{date:"2024-05-13",price:171.88999938964844},{date:"2024-05-14",price:177.5500030517578},{date:"2024-05-15",price:173.99000549316406},{date:"2024-05-16",price:174.83999633789062},{date:"2024-05-17",price:177.4600067138672},{date:"2024-05-20",price:175.29190063476562}],n=30;this.data=t.slice(-n).map(e=>(e.date=e.date.replace("2024-",""),e)),this.createChart(),window.addEventListener("resize",this.createChart)},beforeUnmount(){window.removeEventListener("resize",this.createChart)},computed:{getLastestPrice(){return parseFloat(this.data[this.data.length-1].price.toFixed(2))},getPredictPrice(){return parseFloat(this.data[this.data.length-1].price.toFixed(2))}},methods:{createChart(){const t=this.$refs.chart;t.innerHTML="";const n={top:10,right:20,bottom:40,left:35},e=t.clientWidth-n.left-n.right,r=t.clientHeight-n.top-n.bottom,i=zi(t).append("svg").attr("width",e+n.left+n.right).attr("height",r+n.top+n.bottom).append("g").attr("transform",`translate(${n.left}, ${n.top})`),o=we().domain(this.data.map(p=>p.date)).range([0,e]).paddingInner(1).paddingOuter(0),a=Ge(this.data,p=>p.price),s=Ue(this.data,p=>p.price),c=(s-a)*.2,u=ve().domain([a-c,s+c]).range([r,0]),l=Ae().x(p=>o(p.date)).y(p=>u(p.price)),f=er(o).tickFormat((p,m)=>{const v=Math.ceil(this.data.length/10);return m%v===1?p:""}).tickSize(0).tickPadding(20),h=rr(u).tickSize(0).tickPadding(8);i.append("g").attr("transform",`translate(0, ${r})`).call(f).selectAll("text").style("fill","white"),i.append("g").call(h).selectAll("text").style("fill","white");const d=i.append("defs").append("linearGradient").attr("id","gradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");d.append("stop").attr("offset","0%").attr("stop-color","limegreen").attr("stop-opacity",.2),d.append("stop").attr("offset","100%").attr("stop-color","limegreen").attr("stop-opacity",0),i.append("path").datum(this.data).attr("fill","none").attr("stroke","limegreen").attr("stroke-width",2).attr("d",l),i.append("path").datum(this.data).attr("fill","url(#gradient)").attr("stroke","none").attr("d",Wa().x(p=>o(p.date)).y0(r).y1(p=>u(p.price)))}}},Ja={class:"md:grid md:grid-cols-[3fr,1fr] md:gap-x-4"},ja={key:0,class:"grid grid-cols-2 md:grid-rows-2 gap-x-4 md:gap-y-4 mb-4"},ts={class:"bg-[#4a4a4a] rounded-lg grid place-items-center"},ns={class:"py-2"},es=b("div",{class:"text-white"},[b("span",null,"明日預測價格 ")],-1),rs={class:"bg-[#4a4a4a] rounded-lg grid place-items-center"},is={class:"py-2"},os={class:"text-white"},as=b("span",null,"收市 ",-1),ss={class:"bg-[#4a4a4a] rounded-lg"},us={ref:"chart",class:"w-full h-[400px]"};function cs(t,n,e,r,i,o){const a=Xt("CountTo");return q(),B("div",Ja,[i.data.length?(q(),B("div",ja,[b("div",ts,[b("div",ns,[Ot(a,{"start-val":0,"end-val":o.getPredictPrice,duration:1e3,decimals:2,class:"text-4xl text-white"},null,8,["end-val"]),es])]),b("div",rs,[b("div",is,[Ot(a,{"start-val":0,"end-val":o.getLastestPrice,duration:1e3,decimals:2,class:"text-4xl text-white"},null,8,["end-val"]),b("div",os,[as,b("span",null,Dt(i.data[i.data.length-1].date),1)])])])])):Ce("",!0),b("div",ss,[b("div",us,null,512)])])}const fs=ct(Qa,[["render",cs]]),ls={},hs={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},ds=b("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm80-80h400v-80H280v80Zm0-320h200v-80H280v80Zm0 160h400v-80H280v80Zm-80-320v160-160 560-560Z"},null,-1),ps=[ds];function gs(t,n){return q(),B("svg",hs,ps)}const ms=ct(ls,[["render",gs]]),_s={},ys={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},ws=b("path",{d:"M240-400h320v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"},null,-1),vs=[ws];function xs(t,n){return q(),B("svg",ys,vs)}const bs=ct(_s,[["render",xs]]),$s={},ks={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},Ms=b("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-640h80v640h640v80H200Zm40-120v-360h160v360H240Zm200 0v-560h160v560H440Zm200 0v-200h160v200H640Z"},null,-1),Ns=[Ms];function As(t,n){return q(),B("svg",ks,Ns)}const Ss=ct($s,[["render",As]]),Es={components:{TimePriceChart:fs,IconNews:ms,IconTweets:bs,IconEarningCall:Ss,ScrollReveal:Ee},created(){this.introes=[{id:"News",icon:"IconNews",title:"新聞報導",content:"我們彙整了多家權威新聞媒體的報導,包括最新的企業動態、重大事件、產品發布及市場策略等。這些報導由專業記者撰寫,提供了深入分析和全面視角,讓您能夠了解企業的發展趨勢和行業地位。"},{id:"Tweets",icon:"IconTweets",title:"推特評論",content:"我們收集了來自推特上的即時評論,這些評論來自不同背景的用戶,涵蓋了對企業產品、服務以及市場動態的真實反饋。這些評論幫助我們呈現多元且真實的公眾意見。"},{id:"EarningCall",icon:"IconEarningCall",title:"企業財報",content:"我們展示了企業的最新經濟財報,包括營收、利潤、支出等關鍵財務數據。我們提供透明且詳盡的財務資訊,讓您能夠深入了解企業的經營狀況和財務健康度,並為您的投資決策提供有力的數據支持。"}]}},Cs={class:"w-[94vw] mx-auto mb-16"},Ts={class:"w-[94vw] mx-auto mb-4"},Ps={class:"rounded-lg px-4 py-2 mb-6"},Rs={class:"flex mb-3"},Is={class:"text-center text-xl font-bold text-white"},Fs={class:"text-[#d0d0d0]"};function Hs(t,n,e,r,i,o){const a=Xt("TimePriceChart"),s=Xt("ScrollReveal");return q(),B(dn,null,[b("div",Cs,[Ot(a)]),b("div",Ts,[(q(!0),B(dn,null,Te(t.introes,c=>(q(),pn(s,{key:c.id},{default:Pe(()=>[b("section",Ps,[b("div",Rs,[(q(),pn(Re(c.icon),{class:"fill-[#fefefe] mr-4 place-self-center h-7 w-7"})),b("h2",Is,Dt(c.title),1)]),b("p",Fs,Dt(c.content),1)])]),_:2},1024))),128))])],64)}const zs=ct(Es,[["render",Hs]]);export{zs as default}; +import{C as Se,S as Ee}from"./ScrollReveal-FrL9aeFz.js";import{_ as ct,o as q,c as B,a as b,b as Ot,t as Dt,d as Ce,r as Xt,F as dn,e as Te,f as pn,w as Pe,g as Re}from"./index-CbUvJRks.js";function wt(t,n){return t==null||n==null?NaN:tn?1:t>=n?0:NaN}function Ie(t,n){return t==null||n==null?NaN:nt?1:n>=t?0:NaN}function On(t){let n,e,r;t.length!==2?(n=wt,e=(s,c)=>wt(t(s),c),r=(s,c)=>t(s)-c):(n=t===wt||t===Ie?t:Fe,e=t,r=t);function i(s,c,u=0,l=s.length){if(u>>1;e(s[f],c)<0?u=f+1:l=f}while(u>>1;e(s[f],c)<=0?u=f+1:l=f}while(uu&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:a,right:o}}function Fe(){return 0}function He(t){return t===null?NaN:+t}const qe=On(wt),Le=qe.right;On(He).center;class gn extends Map{constructor(n,e=De){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),n!=null)for(const[r,i]of n)this.set(r,i)}get(n){return super.get(mn(this,n))}has(n){return super.has(mn(this,n))}set(n,e){return super.set(ze(this,n),e)}delete(n){return super.delete(Oe(this,n))}}function mn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function ze({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function Oe({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function De(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Xe=Math.sqrt(50),Ve=Math.sqrt(10),Be=Math.sqrt(2);function $t(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Xe?10:o>=Ve?5:o>=Be?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(n*u),s/un&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(n/u),s*un&&--c),c0))return[];if(t===n)return[t];const r=n=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u=r)&&(e=r);else{let r=-1;for(let i of t)(i=n(i,++r,t))!=null&&(e=i)&&(e=i)}return e}function Ge(t,n){let e;if(n===void 0)for(const r of t)r!=null&&(e>r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of t)(i=n(i,++r,t))!=null&&(e>i||e===void 0&&i>=i)&&(e=i)}return e}function Ke(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=Math.max(0,Math.ceil((n-t)/e))|0,o=new Array(i);++r+t(n)}function tr(t,n){return n=Math.max(0,t.bandwidth()-n*2)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function nr(){return!this.__axis}function Dn(t,n){var e=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Ht||t===et?-1:1,l=t===et||t===qt?"x":"y",f=t===Ht||t===Bt?Qe:Je;function h(d){var p=r??(n.ticks?n.ticks.apply(n,e):n.domain()),m=i??(n.tickFormat?n.tickFormat.apply(n,e):We),_=Math.max(o,0)+s,x=n.range(),v=+x[0]+c,y=+x[x.length-1]+c,$=(n.bandwidth?tr:je)(n.copy(),c),w=d.selection?d.selection():d,z=w.selectAll(".domain").data([null]),E=w.selectAll(".tick").data(p,n).order(),U=E.exit(),G=E.enter().append("g").attr("class","tick"),O=E.select("line"),g=E.select("text");z=z.merge(z.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(G),O=O.merge(G.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),g=g.merge(G.append("text").attr("fill","currentColor").attr(l,u*_).attr("dy",t===Ht?"0em":t===Bt?"0.71em":"0.32em")),d!==w&&(z=z.transition(d),E=E.transition(d),O=O.transition(d),g=g.transition(d),U=U.transition(d).attr("opacity",_n).attr("transform",function(N){return isFinite(N=$(N))?f(N+c):this.getAttribute("transform")}),G.attr("opacity",_n).attr("transform",function(N){var M=this.parentNode.__axis;return f((M&&isFinite(M=M(N))?M:$(N))+c)})),U.remove(),z.attr("d",t===et||t===qt?a?"M"+u*a+","+v+"H"+c+"V"+y+"H"+u*a:"M"+c+","+v+"V"+y:a?"M"+v+","+u*a+"V"+c+"H"+y+"V"+u*a:"M"+v+","+c+"H"+y),E.attr("opacity",1).attr("transform",function(N){return f($(N)+c)}),O.attr(l+"2",u*o),g.attr(l,u*_).text(m),w.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===qt?"start":t===et?"end":"middle"),w.each(function(){this.__axis=$})}return h.scale=function(d){return arguments.length?(n=d,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(e=d==null?[]:Array.from(d),h):e.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(o=a=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(a=+d,h):a},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(c=+d,h):c},h}function er(t){return Dn(Bt,t)}function rr(t){return Dn(et,t)}var ir={value:()=>{}};function Xn(){for(var t=0,n=arguments.length,e={},r;t=0&&(r=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:r}})}xt.prototype=Xn.prototype={constructor:xt,on:function(t,n){var e=this._,r=or(t+"",e),i,o=-1,a=r.length;if(arguments.length<2){for(;++o0)for(var e=new Array(i),r=0,i,o;r=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),wn.hasOwnProperty(n)?{space:wn[n],local:t}:t}function sr(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Zt&&n.documentElement.namespaceURI===Zt?n.createElement(t):n.createElementNS(e,t)}}function ur(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Vn(t){var n=Rt(t);return(n.local?ur:sr)(n)}function cr(){}function nn(t){return t==null?cr:function(){return this.querySelector(t)}}function fr(t){typeof t!="function"&&(t=nn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=y&&(y=v+1);!(w=_[y])&&++y=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Fr(t){t||(t=Hr);function n(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var e=this._groups,r=e.length,i=new Array(r),o=0;on?1:t>=n?0:NaN}function qr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lr(){return Array.from(this)}function zr(){for(var t=this._groups,n=0,e=t.length;n1?this.each((n==null?Wr:typeof n=="function"?Jr:Qr)(t,n,e??"")):J(this.node(),t)}function J(t,n){return t.style.getPropertyValue(n)||Gn(t).getComputedStyle(t,null).getPropertyValue(n)}function ti(t){return function(){delete this[t]}}function ni(t,n){return function(){this[t]=n}}function ei(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function ri(t,n){return arguments.length>1?this.each((n==null?ti:typeof n=="function"?ei:ni)(t,n)):this.node()[t]}function Kn(t){return t.trim().split(/^|\s+/)}function en(t){return t.classList||new Wn(t)}function Wn(t){this._node=t,this._names=Kn(t.getAttribute("class")||"")}Wn.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Qn(t,n){for(var e=en(t),r=-1,i=n.length;++r=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function Ti(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?gt(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?gt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Di.exec(t))?new A(n[1],n[2],n[3],1):(n=Xi.exec(t))?new A(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Vi.exec(t))?gt(n[1],n[2],n[3],n[4]):(n=Bi.exec(t))?gt(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Zi.exec(t))?Nn(n[1],n[2]/100,n[3]/100,1):(n=Yi.exec(t))?Nn(n[1],n[2]/100,n[3]/100,n[4]):xn.hasOwnProperty(t)?$n(xn[t]):t==="transparent"?new A(NaN,NaN,NaN,0):null}function $n(t){return new A(t>>16&255,t>>8&255,t&255,1)}function gt(t,n,e,r){return r<=0&&(t=n=e=NaN),new A(t,n,e,r)}function Ki(t){return t instanceof lt||(t=Z(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function Yt(t,n,e,r){return arguments.length===1?Ki(t):new A(t,n,e,r??1)}function A(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}rn(A,Yt,ne(lt,{brighter(t){return t=t==null?Mt:Math.pow(Mt,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?at:Math.pow(at,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new A(V(this.r),V(this.g),V(this.b),Nt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kn,formatHex:kn,formatHex8:Wi,formatRgb:Mn,toString:Mn}));function kn(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function Wi(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mn(){const t=Nt(this.opacity);return`${t===1?"rgb(":"rgba("}${V(this.r)}, ${V(this.g)}, ${V(this.b)}${t===1?")":`, ${t})`}`}function Nt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function V(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function X(t){return t=V(t),(t<16?"0":"")+t.toString(16)}function Nn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new T(t,n,e,r)}function ee(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof lt||(t=Z(t)),!t)return new T;if(t instanceof T)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,s=o-i,c=(o+i)/2;return s?(n===o?a=(e-r)/s+(e0&&c<1?0:a,new T(a,s,c,t.opacity)}function Qi(t,n,e,r){return arguments.length===1?ee(t):new T(t,n,e,r??1)}function T(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}rn(T,Qi,ne(lt,{brighter(t){return t=t==null?Mt:Math.pow(Mt,t),new T(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?at:Math.pow(at,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new A(Lt(t>=240?t-240:t+120,i,r),Lt(t,i,r),Lt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new T(An(this.h),mt(this.s),mt(this.l),Nt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Nt(this.opacity);return`${t===1?"hsl(":"hsla("}${An(this.h)}, ${mt(this.s)*100}%, ${mt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function An(t){return t=(t||0)%360,t<0?t+360:t}function mt(t){return Math.max(0,Math.min(1,t||0))}function Lt(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}const on=t=>()=>t;function Ji(t,n){return function(e){return t+e*n}}function ji(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function to(t){return(t=+t)==1?re:function(n,e){return e-n?ji(n,e,t):on(isNaN(n)?e:n)}}function re(t,n){var e=n-t;return e?Ji(t,e):on(isNaN(t)?n:t)}const At=function t(n){var e=to(n);function r(i,o){var a=e((i=Yt(i)).r,(o=Yt(o)).r),s=e(i.g,o.g),c=e(i.b,o.b),u=re(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=s(l),i.b=c(l),i.opacity=u(l),i+""}}return r.gamma=t,r}(1);function no(t,n){n||(n=[]);var e=t?Math.min(n.length,t.length):0,r=n.slice(),i;return function(o){for(i=0;ie&&(o=n.slice(e,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:C(r,i)})),e=zt.lastIndex;return e180?l+=360:l-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:C(u,l)})):l&&f.push(i(f)+"rotate("+l+r)}function s(u,l,f,h){u!==l?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:C(u,l)}):l&&f.push(i(f)+"skewX("+l+r)}function c(u,l,f,h,d,p){if(u!==f||l!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:C(u,f)},{i:m-2,x:C(l,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,l){var f=[],h=[];return u=t(u),l=t(l),o(u.translateX,u.translateY,l.translateX,l.translateY,f,h),a(u.rotate,l.rotate,f,h),s(u.skewX,l.skewX,f,h),c(u.scaleX,u.scaleY,l.scaleX,l.scaleY,f,h),u=l=null,function(d){for(var p=-1,m=h.length,_;++p=0&&t._call.call(void 0,n),t=t._next;--j}function En(){Y=(Et=ut.now())+It,j=rt=0;try{go()}finally{j=0,_o(),Y=0}}function mo(){var t=ut.now(),n=t-Et;n>se&&(It-=n,Et=t)}function _o(){for(var t,n=St,e,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:St=e);it=t,Kt(r)}function Kt(t){if(!j){rt&&(rt=clearTimeout(rt));var n=t-Y;n>24?(t<1/0&&(rt=setTimeout(En,t-ut.now()-It)),nt&&(nt=clearInterval(nt))):(nt||(Et=ut.now(),nt=setInterval(mo,se)),j=1,ue(En))}}function Cn(t,n,e){var r=new Ct;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var yo=Xn("start","end","cancel","interrupt"),wo=[],fe=0,Tn=1,Wt=2,vt=3,Pn=4,Qt=5,bt=6;function Ft(t,n,e,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(e in a)return;xo(t,e,{name:n,index:r,group:i,on:yo,tween:wo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:fe})}function un(t,n){var e=P(t,n);if(e.state>fe)throw new Error("too late; already scheduled");return e}function I(t,n){var e=P(t,n);if(e.state>vt)throw new Error("too late; already running");return e}function P(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function xo(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=ce(o,0,e.time);function o(u){e.state=Tn,e.timer.restart(a,e.delay,e.time),e.delay<=u&&a(u-e.delay)}function a(u){var l,f,h,d;if(e.state!==Tn)return c();for(l in r)if(d=r[l],d.name===e.name){if(d.state===vt)return Cn(a);d.state===Pn?(d.state=bt,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+lWt&&r.state=0&&(n=n.slice(0,e)),!n||n==="start"})}function Qo(t,n,e){var r,i,o=Wo(n)?un:I;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(n,e),a.on=i}}function Jo(t,n){var e=this._id;return arguments.length<2?P(this.node(),e).on.on(t):this.each(Qo(e,t,n))}function jo(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function ta(){return this.on("end.remove",jo(this._id))}function na(t){var n=this._name,e=this._id;typeof t!="function"&&(t=nn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a=0))throw new Error(`invalid digits: ${t}`);if(n>15)return pe;const e=10**n;return function(r){this._+=r[0];for(let i=1,o=r.length;iD)if(!(Math.abs(f*c-u*l)>D)||!o)this._append`L${this._x1=n},${this._y1=e}`;else{let d=r-a,p=i-s,m=c*c+u*u,_=d*d+p*p,x=Math.sqrt(m),v=Math.sqrt(h),y=o*Math.tan((Jt-Math.acos((m+h-_)/(2*x*v)))/2),$=y/v,w=y/x;Math.abs($-1)>D&&this._append`L${n+$*l},${e+$*f}`,this._append`A${o},${o},0,0,${+(f*d>l*p)},${this._x1=n+w*c},${this._y1=e+w*u}`}}arc(n,e,r,i,o,a){if(n=+n,e=+e,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),u=n+s,l=e+c,f=1^a,h=a?i-o:o-i;this._x1===null?this._append`M${u},${l}`:(Math.abs(this._x1-u)>D||Math.abs(this._y1-l)>D)&&this._append`L${u},${l}`,r&&(h<0&&(h=h%jt+jt),h>Na?this._append`A${r},${r},0,1,${f},${n-s},${e-c}A${r},${r},0,1,${f},${this._x1=u},${this._y1=l}`:h>D&&this._append`A${r},${r},0,${+(h>=Jt)},${f},${this._x1=n+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(n,e,r,i){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Ea(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Tt(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function tt(t){return t=Tt(Math.abs(t)),t?t[1]:NaN}function Ca(t,n){return function(e,r){for(var i=e.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(e.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}}function Ta(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}var Pa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pt(t){if(!(n=Pa.exec(t)))throw new Error("invalid format: "+t);var n;return new fn({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Pt.prototype=fn.prototype;function fn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}fn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ra(t){t:for(var n=t.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var ge;function Ia(t,n){var e=Tt(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ge=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Tt(t,Math.max(0,n+o-1))[0]}function Rn(t,n){var e=Tt(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const In={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ea,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Rn(t*100,n),r:Rn,s:Ia,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Fn(t){return t}var Hn=Array.prototype.map,qn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fa(t){var n=t.grouping===void 0||t.thousands===void 0?Fn:Ca(Hn.call(t.grouping,Number),t.thousands+""),e=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Fn:Ta(Hn.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(f){f=Pt(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,_=f.zero,x=f.width,v=f.comma,y=f.precision,$=f.trim,w=f.type;w==="n"?(v=!0,w="g"):In[w]||(y===void 0&&(y=12),$=!0,w="g"),(_||h==="0"&&d==="=")&&(_=!0,h="0",d="=");var z=m==="$"?e:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",E=m==="$"?r:/[%p]/.test(w)?a:"",U=In[w],G=/[defgprs%]/.test(w);y=y===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function O(g){var N=z,M=E,K,hn,ht;if(w==="c")M=U(g)+M,g="";else{g=+g;var dt=g<0||1/g<0;if(g=isNaN(g)?c:U(Math.abs(g),y),$&&(g=Ra(g)),dt&&+g==0&&p!=="+"&&(dt=!1),N=(dt?p==="("?p:s:p==="-"||p==="("?"":p)+N,M=(w==="s"?qn[8+ge/3]:"")+M+(dt&&p==="("?")":""),G){for(K=-1,hn=g.length;++Kht||ht>57){M=(ht===46?i+g.slice(K+1):g.slice(K))+M,g=g.slice(0,K);break}}}v&&!_&&(g=n(g,1/0));var pt=N.length+g.length+M.length,F=pt>1)+N+g+M+F.slice(pt);break;default:g=F+N+g+M;break}return o(g)}return O.toString=function(){return f+""},O}function l(f,h){var d=u((f=Pt(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(tt(h)/3)))*3,m=Math.pow(10,-p),_=qn[8+p/3];return function(x){return d(m*x)+_}}return{format:u,formatPrefix:l}}var yt,me,_e;Ha({thousands:",",grouping:[3],currency:["$",""]});function Ha(t){return yt=Fa(t),me=yt.format,_e=yt.formatPrefix,yt}function qa(t){return Math.max(0,-tt(Math.abs(t)))}function La(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tt(n)/3)))*3-tt(Math.abs(t)))}function za(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,tt(n)-tt(t))+1}function ln(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}const Ln=Symbol("implicit");function ye(){var t=new gn,n=[],e=[],r=Ln;function i(o){let a=t.get(o);if(a===void 0){if(r!==Ln)return r;t.set(o,a=n.push(o)-1)}return e[a%e.length]}return i.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new gn;for(const a of o)t.has(a)||t.set(a,n.push(a)-1);return i},i.range=function(o){return arguments.length?(e=Array.from(o),i):e.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return ye(n,e).unknown(r)},ln.apply(i,arguments),i}function we(){var t=ye().unknown(void 0),n=t.domain,e=t.range,r=0,i=1,o,a,s=!1,c=0,u=0,l=.5;delete t.unknown;function f(){var h=n().length,d=in&&(e=t,t=n,n=e),function(r){return Math.max(t,Math.min(n,r))}}function Va(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i2?Ba:Va,c=u=null,f}function f(h){return h==null||isNaN(h=+h)?o:(c||(c=s(t.map(r),n,e)))(r(a(h)))}return f.invert=function(h){return a(i((u||(u=s(n,t.map(r),C)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Da),l()):t.slice()},f.range=function(h){return arguments.length?(n=Array.from(h),l()):n.slice()},f.rangeRound=function(h){return n=Array.from(h),e=uo,l()},f.clamp=function(h){return arguments.length?(a=h?!0:W,l()):a!==W},f.interpolate=function(h){return arguments.length?(e=h,l()):e},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,l()}}function Ua(){return Ya()(W,W)}function Ga(t,n,e,r){var i=Ye(t,n,e),o;switch(r=Pt(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(n));return r.precision==null&&!isNaN(o=La(i,a))&&(r.precision=o),_e(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=za(i,Math.max(Math.abs(t),Math.abs(n))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=qa(i))&&(r.precision=o-(r.type==="%")*2);break}}return me(r)}function Ka(t){var n=t.domain;return t.ticks=function(e){var r=n();return Ze(r[0],r[r.length-1],e??10)},t.tickFormat=function(e,r){var i=n();return Ga(i[0],i[i.length-1],e??10,r)},t.nice=function(e){e==null&&(e=10);var r=n(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,l=10;for(s0;){if(u=Vt(a,s,e),u===c)return r[i]=a,r[o]=s,n(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return t},t}function xe(){var t=Ua();return t.copy=function(){return Za(t,xe())},ln.apply(t,arguments),Ka(t)}function k(t){return function(){return t}}function ve(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{const r=Math.floor(e);if(!(r>=0))throw new RangeError(`invalid digits: ${e}`);n=r}return t},()=>new Sa(n)}function be(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function $e(t){this._context=t}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function ke(t){return new $e(t)}function Me(t){return t[0]}function Ne(t){return t[1]}function Ae(t,n){var e=k(!0),r=null,i=ke,o=null,a=ve(s);t=typeof t=="function"?t:t===void 0?Me:k(t),n=typeof n=="function"?n:n===void 0?Ne:k(n);function s(c){var u,l=(c=be(c)).length,f,h=!1,d;for(r==null&&(o=i(d=a())),u=0;u<=l;++u)!(u=d;--p)s.point(y[p],$[p]);s.lineEnd(),s.areaEnd()}x&&(y[h]=+t(_,h,f),$[h]=+n(_,h,f),s.point(r?+r(_,h,f):y[h],e?+e(_,h,f):$[h]))}if(v)return s=null,v+""||null}function l(){return Ae().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:k(+f),r=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:k(+f),u):t},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:k(+f),u):r},u.y=function(f){return arguments.length?(n=typeof f=="function"?f:k(+f),e=null,u):n},u.y0=function(f){return arguments.length?(n=typeof f=="function"?f:k(+f),u):n},u.y1=function(f){return arguments.length?(e=f==null?null:typeof f=="function"?f:k(+f),u):e},u.lineX0=u.lineY0=function(){return l().x(t).y(n)},u.lineY1=function(){return l().x(t).y(e)},u.lineX1=function(){return l().x(r).y(n)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:k(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,o!=null&&(s=a(o)),u):a},u.context=function(f){return arguments.length?(f==null?o=s=null:s=a(o=f),u):o},u}function ot(t,n,e){this.k=t,this.x=n,this.y=e}ot.prototype={constructor:ot,scale:function(t){return t===1?this:new ot(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new ot(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ot.prototype;const Qa={name:"TimePriceChart",components:{CountTo:Se},data(){return{data:[]}},mounted(){const t=[{date:"2024-04-09",price:176.8800048828125},{date:"2024-04-10",price:171.75999450683594},{date:"2024-04-11",price:174.60000610351562},{date:"2024-04-12",price:171.0500030517578},{date:"2024-04-15",price:161.47999572753906},{date:"2024-04-16",price:157.11000061035156},{date:"2024-04-17",price:155.4499969482422},{date:"2024-04-18",price:149.92999267578125},{date:"2024-04-19",price:147.0500030517578},{date:"2024-04-22",price:142.0500030517578},{date:"2024-04-23",price:144.67999267578125},{date:"2024-04-24",price:162.1300048828125},{date:"2024-04-25",price:170.17999267578125},{date:"2024-04-26",price:168.2899932861328},{date:"2024-04-29",price:194.0500030517578},{date:"2024-04-30",price:183.27999877929688},{date:"2024-05-01",price:179.99000549316406},{date:"2024-05-02",price:180.00999450683594},{date:"2024-05-03",price:181.19000244140625},{date:"2024-05-06",price:184.75999450683597},{date:"2024-05-07",price:177.80999755859375},{date:"2024-05-08",price:174.72000122070312},{date:"2024-05-09",price:171.97000122070312},{date:"2024-05-10",price:168.47000122070312},{date:"2024-05-13",price:171.88999938964844},{date:"2024-05-14",price:177.5500030517578},{date:"2024-05-15",price:173.99000549316406},{date:"2024-05-16",price:174.83999633789062},{date:"2024-05-17",price:177.4600067138672},{date:"2024-05-20",price:175.29190063476562}],n=30;this.data=t.slice(-n).map(e=>(e.date=e.date.replace("2024-",""),e)),this.createChart(),window.addEventListener("resize",this.createChart)},beforeUnmount(){window.removeEventListener("resize",this.createChart)},computed:{getLastestPrice(){return parseFloat(this.data[this.data.length-1].price.toFixed(2))},getPredictPrice(){return parseFloat(this.data[this.data.length-1].price.toFixed(2))}},methods:{createChart(){const t=this.$refs.chart;t.innerHTML="";const n={top:10,right:20,bottom:40,left:35},e=t.clientWidth-n.left-n.right,r=t.clientHeight-n.top-n.bottom,i=zi(t).append("svg").attr("width",e+n.left+n.right).attr("height",r+n.top+n.bottom).append("g").attr("transform",`translate(${n.left}, ${n.top})`),o=we().domain(this.data.map(p=>p.date)).range([0,e]).paddingInner(1).paddingOuter(0),a=Ge(this.data,p=>p.price),s=Ue(this.data,p=>p.price),c=(s-a)*.2,u=xe().domain([a-c,s+c]).range([r,0]),l=Ae().x(p=>o(p.date)).y(p=>u(p.price)),f=er(o).tickFormat((p,m)=>{const x=Math.ceil(this.data.length/10);return m%x===1?p:""}).tickSize(0).tickPadding(20),h=rr(u).tickSize(0).tickPadding(8);i.append("g").attr("transform",`translate(0, ${r})`).call(f).selectAll("text").style("fill","white"),i.append("g").call(h).selectAll("text").style("fill","white");const d=i.append("defs").append("linearGradient").attr("id","gradient").attr("x1","0%").attr("y1","0%").attr("x2","0%").attr("y2","100%");d.append("stop").attr("offset","0%").attr("stop-color","limegreen").attr("stop-opacity",.2),d.append("stop").attr("offset","100%").attr("stop-color","limegreen").attr("stop-opacity",0),i.append("path").datum(this.data).attr("fill","none").attr("stroke","limegreen").attr("stroke-width",2).attr("d",l),i.append("path").datum(this.data).attr("fill","url(#gradient)").attr("stroke","none").attr("d",Wa().x(p=>o(p.date)).y0(r).y1(p=>u(p.price)))}}},Ja={class:"md:grid md:grid-cols-[3fr,1fr] md:gap-x-4"},ja={key:0,class:"grid grid-cols-2 md:grid-rows-2 gap-x-4 md:gap-y-4 mb-4"},ts={class:"bg-[#4a4a4a] rounded-lg grid place-items-center"},ns={class:"py-2"},es=b("div",{class:"text-white"},[b("span",null,"明日預測價格 ")],-1),rs={class:"bg-[#4a4a4a] rounded-lg grid place-items-center"},is={class:"py-2"},os={class:"text-white"},as=b("span",null,"收市 ",-1),ss={class:"bg-[#4a4a4a] rounded-lg"},us={ref:"chart",class:"w-full h-[400px]"};function cs(t,n,e,r,i,o){const a=Xt("CountTo");return q(),B("div",Ja,[i.data.length?(q(),B("div",ja,[b("div",ts,[b("div",ns,[Ot(a,{"start-val":0,"end-val":o.getPredictPrice,duration:1e3,decimals:2,class:"text-4xl text-white"},null,8,["end-val"]),es])]),b("div",rs,[b("div",is,[Ot(a,{"start-val":0,"end-val":o.getLastestPrice,duration:1e3,decimals:2,class:"text-4xl text-white"},null,8,["end-val"]),b("div",os,[as,b("span",null,Dt(i.data[i.data.length-1].date),1)])])])])):Ce("",!0),b("div",ss,[b("div",us,null,512)])])}const fs=ct(Qa,[["render",cs]]),ls={},hs={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},ds=b("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm80-80h400v-80H280v80Zm0-320h200v-80H280v80Zm0 160h400v-80H280v80Zm-80-320v160-160 560-560Z"},null,-1),ps=[ds];function gs(t,n){return q(),B("svg",hs,ps)}const ms=ct(ls,[["render",gs]]),_s={},ys={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},ws=b("path",{d:"M240-400h320v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"},null,-1),xs=[ws];function vs(t,n){return q(),B("svg",ys,xs)}const bs=ct(_s,[["render",vs]]),$s={},ks={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},Ms=b("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-640h80v640h640v80H200Zm40-120v-360h160v360H240Zm200 0v-560h160v560H440Zm200 0v-200h160v200H640Z"},null,-1),Ns=[Ms];function As(t,n){return q(),B("svg",ks,Ns)}const Ss=ct($s,[["render",As]]),Es={components:{TimePriceChart:fs,IconNews:ms,IconTweets:bs,IconEarningCall:Ss,ScrollReveal:Ee},created(){this.introes=[{id:"News",icon:"IconNews",title:"新聞報導",content:"我們彙整了多家權威新聞媒體的報導,包括最新的企業動態、重大事件、產品發布及市場策略等。這些報導由專業記者撰寫,提供了深入分析和全面視角,讓您能夠了解企業的發展趨勢和行業地位。"},{id:"Tweets",icon:"IconTweets",title:"推特評論",content:"我們收集了來自推特上的即時評論,這些評論來自不同背景的用戶,涵蓋了對企業產品、服務以及市場動態的真實反饋。這些評論幫助我們呈現多元且真實的公眾意見。"},{id:"EarningCall",icon:"IconEarningCall",title:"企業財報",content:"我們展示了企業的最新經濟財報,包括營收、利潤、支出等關鍵財務數據。我們提供透明且詳盡的財務資訊,讓您能夠深入了解企業的經營狀況和財務健康度,並為您的投資決策提供有力的數據支持。"}]}},Cs={class:"mx-2 mb-16"},Ts={class:"mx-2 mb-4"},Ps={class:"rounded-lg px-4 py-2 mb-6"},Rs={class:"flex mb-3"},Is={class:"text-center text-xl font-bold text-white"},Fs={class:"text-[#d0d0d0]"};function Hs(t,n,e,r,i,o){const a=Xt("TimePriceChart"),s=Xt("ScrollReveal");return q(),B(dn,null,[b("div",Cs,[Ot(a)]),b("div",Ts,[(q(!0),B(dn,null,Te(t.introes,c=>(q(),pn(s,{key:c.id},{default:Pe(()=>[b("section",Ps,[b("div",Rs,[(q(),pn(Re(c.icon),{class:"fill-[#fefefe] mr-4 place-self-center h-7 w-7"})),b("h2",Is,Dt(c.title),1)]),b("p",Fs,Dt(c.content),1)])]),_:2},1024))),128))])],64)}const zs=ct(Es,[["render",Hs]]);export{zs as default}; diff --git a/assets/News-BJxs9Uej.js b/assets/News-BJxs9Uej.js deleted file mode 100644 index b2b59b2..0000000 --- a/assets/News-BJxs9Uej.js +++ /dev/null @@ -1 +0,0 @@ -import{M as b,P as g}from"./ProcessFlow-nNtbjvOU.js";import{_ as $,o as t,c as l,a as e,F as i,e as m,b as r,w as d,r as u,h as _,t as x}from"./index-CVfypvOR.js";import"./ScrollReveal-sydDG7Nu.js";const w={data(){return{inputValue:"",modelOutput:""}},created(){this.dataFile1=[{name:"TSLA_20100629_20210602_business_t_Tesla_en.csv"},{name:"TSLA_20100629_20210602_CNBC_t_Tesla_en.csv"},{name:"TSLA_20100629_20210602_Reuters_t_Tesla_en.csv"},{name:"TSLA_20100629_20210602_WSJ_t_Tesla_en.csv"}],this.processes1=[{name:"pro_data.ipynb"}],this.dataFile2=[{name:"tsla_merged.csv"}],this.processes2=[{name:"data_preprocess_1.ipynb"},{name:"data_preprocess_2.ipynb"}],this.dataFile3=[{name:"tsla_merged_res.csv"},{name:"tsla_merged_res_2.csv"}]},mounted(){console.log(this.$refs.main)},computed:{path(){return["M36 26 H28","M36 70 H28","M36 114 H28","M36 158 H28","M28 26 Q20 26, 20 34","M28 70 Q20 70, 20 78","M28 114 Q20 114, 20 106","M28 158 Q20 158, 20 150","M20 34 V150","M20 92 H12","M12 92 Q4 92, 4 100","M4 100 V1580"]},path2(){return["M36 26 H12","M12 26 Q4 26, 4 18","M4 18 V0"]},path22(){return["M268 26 H292","M292 26 Q300 26, 300 34","M300 34 V999"]},path3(){return["M268 26 H292","M292 26 Q300 26, 300 34","M300 34 V999"]},filePath2(){return["M36 26 H12","M12 26 Q4 26, 4 34","M4 34 V999"]},filePath22(){return["M268 26 H292","M292 26 Q300 26, 300 18","M300 18 V0"]},processPath2(){return["M36 26 H28","M36 70 H28","M28 26 Q20 26, 20 34","M28 70 Q20 70, 20 62","M20 34 V62","M20 48 H12","M12 48 Q4 48, 4 40","M4 40 V0"]},processPath22(){return["M268 26 H292","M268 70 H276","M292 26 Q300 26, 300 34","M276 70 Q284 70, 284 78","M300 34 V999","M284 78 V999"]},filePath3(){return["M268 26 H276","M268 70 H292","M276 26 Q284 26, 284 18","M292 70 Q300 70, 300 62","M284 18 V0","M300 62 V0"]}},methods:{async query(){console.log(`請求已發出,傳送的訊息為:${this.inputValue}`);const p=await fetch("https://api-inference.huggingface.co/models/Helsinki-NLP/opus-mt-zh-en",{headers:{Authorization:"Bearer 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"},method:"POST",body:JSON.stringify({inputs:this.inputValue})});this.modelOutput=(await p.json())[0].translation_text,console.log(this.modelOutput)}}},v={class:"mx-2",ref:"main"},T={class:"relative"},P={class:"grid grid-cols-1 gap-y-2 py-2 pl-9"},y={class:"w-full h-full absolute top-0 left-0"},k=["d"],V=e("svg",{class:"h-5 w-full"},[e("path",{d:"M4 0 V20",class:"stroke-blue-400 fill-none"})],-1),H={class:"relative"},Q={class:"grid grid-cols-1 gap-y-2 py-2 px-9"},S={class:"w-full h-full absolute top-0 left-0"},A=["d"],F=e("svg",{class:"h-5 w-full"},[e("path",{d:"M300 0 V999",class:"stroke-blue-400 fill-none"})],-1),L={class:"relative"},N={class:"grid grid-cols-1 gap-y-2 py-2 px-9"},E={class:"w-full h-full absolute top-0 left-0"},B=["d"],C=e("svg",{class:"h-5 w-full"},[e("path",{d:"M4 0 V999",class:"stroke-blue-400 fill-none"})],-1),O={class:"relative"},z={class:"grid grid-cols-1 gap-y-2 py-2 px-9"},D={class:"w-full h-full absolute top-0 left-0"},R=["d"],J=e("svg",{class:"h-5 w-full"},[e("path",{d:"M284 0 V999 M300 0 V999",class:"stroke-blue-400 fill-none"})],-1),I={class:"relative"},W={class:"grid grid-cols-1 gap-y-2 py-2 px-9"},j={class:"w-full h-full absolute top-0 left-0"},q=["d"];function K(s,p,h,f,M,o){const c=u("router-link");return t(),l("main",v,[e("div",T,[e("ul",P,[(t(!0),l(i,null,m(s.dataFile1,(a,n)=>(t(),l("li",{key:a.name,class:"z-10"},[r(c,{to:{path:`${n}`},class:"px-2 block h-9 overflow-hidden text-ellipsis whitespace-nowrap place-content-center border-2 border-blue-300 rounded-lg"},{default:d(()=>[_(x(a.name),1)]),_:2},1032,["to"])]))),128))]),(t(),l("svg",y,[e("path",{d:o.path,class:"stroke-blue-400 fill-none"},null,8,k)]))]),V,e("div",H,[e("ul",Q,[(t(!0),l(i,null,m(s.processes1,(a,n)=>(t(),l("li",{key:a.name,class:"z-10"},[r(c,{to:{path:`${n}`},class:"px-2 block h-9 overflow-hidden text-ellipsis whitespace-nowrap place-content-center border-2 border-blue-300 rounded-lg"},{default:d(()=>[_(x(a.name),1)]),_:2},1032,["to"])]))),128))]),(t(),l("svg",S,[e("path",{d:[o.path2,o.path22],class:"stroke-blue-400 fill-none"},null,8,A)]))]),F,e("div",L,[e("ul",N,[(t(!0),l(i,null,m(s.dataFile2,(a,n)=>(t(),l("li",{key:a.name,class:"z-10"},[r(c,{to:{path:`${n}`},class:"px-2 block h-9 overflow-hidden text-ellipsis whitespace-nowrap place-content-center border-2 border-blue-300 rounded-lg"},{default:d(()=>[_(x(a.name),1)]),_:2},1032,["to"])]))),128))]),(t(),l("svg",E,[e("path",{d:[o.filePath2,o.filePath22],class:"stroke-blue-400 fill-none"},null,8,B)]))]),C,e("div",O,[e("ul",z,[(t(!0),l(i,null,m(s.processes2,(a,n)=>(t(),l("li",{key:a.name,class:"z-10"},[r(c,{to:{path:`${n}`},class:"px-2 block h-9 overflow-hidden text-ellipsis whitespace-nowrap place-content-center border-2 border-blue-300 rounded-lg"},{default:d(()=>[_(x(a.name),1)]),_:2},1032,["to"])]))),128))]),(t(),l("svg",D,[e("path",{d:[o.processPath2,o.processPath22],class:"stroke-blue-400 fill-none"},null,8,R)]))]),J,e("div",I,[e("ul",W,[(t(!0),l(i,null,m(s.dataFile3,(a,n)=>(t(),l("li",{key:a.name,class:"z-10"},[r(c,{to:{path:`${n}`},class:"px-2 block h-9 overflow-hidden text-ellipsis whitespace-nowrap place-content-center border-2 border-blue-300 rounded-lg"},{default:d(()=>[_(x(a.name),1)]),_:2},1032,["to"])]))),128))]),(t(),l("svg",j,[e("path",{d:o.filePath3,class:"stroke-blue-400 fill-none"},null,8,q)]))])],512)}const Y=$(w,[["render",K]]),X={components:{Model:b,ProcessFlow:g,TradeProcess1:Y},beforeCreate(){this.processes=[{id:"STEP1",title:"Raw Data",text:"原始tesla資料集,來自華爾街日報等四個新聞網站",files:["TSLA_20100629_20210602_CNBC_t_Tesla_en.csv","TSLA_20100629_20210602_Reuters_t_Tesla_en.csv","TSLA_20100629_20210602_WSJ_t_Tesla_en.csv","TSLA_20100629_20210602_business_t_Tesla_en.csv"]},{id:"STEP2",title:"Preprocessing",text:"利用Distilroberta和Deberta這兩個hugging face上的pretrained model做資料預處理,對raw data進行標記",files:["mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis","mrm8488/deberta-v3-ft-financial-news-sentiment-analysis"]},{id:"STEP3",title:"Labelled Data",text:"對raw data進行正向、負向、中立情感標記的結果",files:["Tsla_dataset.csv"]},{id:"STEP4",title:"Finetune BERT",text:"利用03標記資料finetune BERT得到我們預使用的模型",files:["YC9Z/tesla_news_title_sentiment_analysis"]},{id:"STEP5",title:"Predicted Data",text:"最後利用我們finetuned後的模型對raw data做最終預測",files:["Tsla_news_sentiment_score.csv"]}]}};function Z(s,p,h,f,M,o){const c=u("Model"),a=u("ProcessFlow"),n=u("TradeProcess1");return t(),l(i,null,[r(c),r(a,{processes:s.processes},null,8,["processes"]),r(n)],64)}const se=$(X,[["render",Z]]);export{se as default}; diff --git a/assets/News-BOTyYPIr.js b/assets/News-BOTyYPIr.js new file mode 100644 index 0000000..963d4b8 --- /dev/null +++ b/assets/News-BOTyYPIr.js @@ -0,0 +1 @@ +import{M as o,P as r}from"./ProcessFlow-DSYizVyV.js";import{_ as c,c as i,b as e,F as l,r as t,o as _}from"./index-CbUvJRks.js";import"./ScrollReveal-FrL9aeFz.js";const m={components:{Model:o,ProcessFlow:r},beforeCreate(){this.processes=[{id:"STEP1",title:"Raw Data",text:"原始 Tesla 資料集,來自華爾街日報等四個新聞網站。",sources:[{name:"CNBC",url:"https://github.com/scfengv/GDSC-ai-stock/blob/news/tweets_raw/TSLA_20100629_20210602_CNBC_t_Tesla_en.csv"},{name:"Reuters",url:"https://github.com/scfengv/GDSC-ai-stock/blob/news/tweets_raw/TSLA_20100629_20210602_Reuters_t_Tesla_en.csv"},{name:"Wall Street Journal",url:"https://github.com/scfengv/GDSC-ai-stock/blob/news/tweets_raw/TSLA_20100629_20210602_WSJ_t_Tesla_en.csv"},{name:"Bloomberg",url:"https://github.com/scfengv/GDSC-ai-stock/blob/news/tweets_raw/TSLA_20100629_20210602_business_t_Tesla_en.csv"}]},{id:"STEP2",title:"Preprocessing",text:"利用 Distilroberta 和 Deberta 這兩個 Hugging Face 上的 Pretrained model 做資料預處理,對 Raw data 進行標記。",sources:[{name:"Pretrained model 1",url:"https://huggingface.co/mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"},{name:"Pretrained model 2",url:"https://huggingface.co/mrm8488/deberta-v3-ft-financial-news-sentiment-analysis"}]},{id:"STEP3",title:"Labelled Data",text:"對 Raw data 進行正向、負向、中立情感標記的結果。",sources:[]},{id:"STEP4",title:"Finetune BERT",text:"利用 03 標記資料 Finetune BERT 得到我們預使用的模型。",sources:[{name:"YC9Z/tesla_news_title_sentiment_analysis",url:"https://huggingface.co/YC9Z/tesla_news_title_sentiment_analysis"}]},{id:"STEP5",title:"Predicted Data",text:"最後利用我們 Finetuned 後的模型對 Raw data 做最終預測。",sources:[]}]}};function u(s,d,p,w,g,b){const a=t("Model"),n=t("ProcessFlow");return _(),i(l,null,[e(a),e(n,{processes:s.processes},null,8,["processes"])],64)}const S=c(m,[["render",u]]);export{S as default}; diff --git a/assets/ProcessFlow-DSYizVyV.js b/assets/ProcessFlow-DSYizVyV.js new file mode 100644 index 0000000..2e249ef --- /dev/null +++ b/assets/ProcessFlow-DSYizVyV.js @@ -0,0 +1,5 @@ +import{_ as M,o as g,c as p,a,t as _,h as G,v as V,F as E,e as v,b as j,r as R,f as H,w as W}from"./index-CbUvJRks.js";import{C as B,S as U}from"./ScrollReveal-FrL9aeFz.js";/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const $=Symbol("Comlink.proxy"),Y=Symbol("Comlink.endpoint"),q=Symbol("Comlink.releaseProxy"),P=Symbol("Comlink.finalizer"),b=Symbol("Comlink.thrown"),L=e=>typeof e=="object"&&e!==null||typeof e=="function",X={canHandle:e=>L(e)&&e[$],serialize(e){const{port1:t,port2:n}=new MessageChannel;return F(e,t),[n,[n]]},deserialize(e){return e.start(),I(e)}},Z={canHandle:e=>L(e)&&b in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},A=new Map([["proxy",X],["throw",Z]]);function J(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function F(e,t=globalThis,n=["*"]){t.addEventListener("message",function c(r){if(!r||!r.data)return;if(!J(n,r.origin)){console.warn(`Invalid origin '${r.origin}' for comlink proxy`);return}const{id:i,type:o,path:s}=Object.assign({path:[]},r.data),d=(r.data.argumentList||[]).map(h);let l;try{const u=s.slice(0,-1).reduce((m,y)=>m[y],e),f=s.reduce((m,y)=>m[y],e);switch(o){case"GET":l=f;break;case"SET":u[s.slice(-1)[0]]=h(r.data.value),l=!0;break;case"APPLY":l=f.apply(u,d);break;case"CONSTRUCT":{const m=new f(...d);l=re(m)}break;case"ENDPOINT":{const{port1:m,port2:y}=new MessageChannel;F(e,y),l=ne(m,[m])}break;case"RELEASE":l=void 0;break;default:return}}catch(u){l={value:u,[b]:0}}Promise.resolve(l).catch(u=>({value:u,[b]:0})).then(u=>{const[f,m]=S(u);t.postMessage(Object.assign(Object.assign({},f),{id:i}),m),o==="RELEASE"&&(t.removeEventListener("message",c),O(t),P in e&&typeof e[P]=="function"&&e[P]())}).catch(u=>{const[f,m]=S({value:new TypeError("Unserializable return value"),[b]:0});t.postMessage(Object.assign(Object.assign({},f),{id:i}),m)})}),t.start&&t.start()}function K(e){return e.constructor.name==="MessagePort"}function O(e){K(e)&&e.close()}function I(e,t){return T(e,[],t)}function x(e){if(e)throw new Error("Proxy has been released and is not useable")}function z(e){return w(e,{type:"RELEASE"}).then(()=>{O(e)})}const k=new WeakMap,C="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(k.get(e)||0)-1;k.set(e,t),t===0&&z(e)});function Q(e,t){const n=(k.get(t)||0)+1;k.set(t,n),C&&C.register(e,t,e)}function ee(e){C&&C.unregister(e)}function T(e,t=[],n=function(){}){let c=!1;const r=new Proxy(n,{get(i,o){if(x(c),o===q)return()=>{ee(r),z(e),c=!0};if(o==="then"){if(t.length===0)return{then:()=>r};const s=w(e,{type:"GET",path:t.map(d=>d.toString())}).then(h);return s.then.bind(s)}return T(e,[...t,o])},set(i,o,s){x(c);const[d,l]=S(s);return w(e,{type:"SET",path:[...t,o].map(u=>u.toString()),value:d},l).then(h)},apply(i,o,s){x(c);const d=t[t.length-1];if(d===Y)return w(e,{type:"ENDPOINT"}).then(h);if(d==="bind")return T(e,t.slice(0,-1));const[l,u]=N(s);return w(e,{type:"APPLY",path:t.map(f=>f.toString()),argumentList:l},u).then(h)},construct(i,o){x(c);const[s,d]=N(o);return w(e,{type:"CONSTRUCT",path:t.map(l=>l.toString()),argumentList:s},d).then(h)}});return Q(r,e),r}function te(e){return Array.prototype.concat.apply([],e)}function N(e){const t=e.map(S);return[t.map(n=>n[0]),te(t.map(n=>n[1]))]}const D=new WeakMap;function ne(e,t){return D.set(e,t),e}function re(e){return Object.assign(e,{[$]:!0})}function S(e){for(const[t,n]of A)if(n.canHandle(e)){const[c,r]=n.serialize(e);return[{type:"HANDLER",name:t,value:c},r]}return[{type:"RAW",value:e},D.get(e)||[]]}function h(e){switch(e.type){case"HANDLER":return A.get(e.name).deserialize(e.value);case"RAW":return e.value}}function w(e,t,n){return new Promise(c=>{const r=se();e.addEventListener("message",function i(o){!o.data||!o.data.id||o.data.id!==r||(e.removeEventListener("message",i),c(o.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:r},t),n)})}function se(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const oe={components:{CountTo:B},data(){return{model:{modelName:"",modelFounder:"",output:null,modelGroup:""}}},mounted(){const e=this.$route.path.includes("/News"),t=this.$route.path.includes("/Tweets"),n=this.$route.path.includes("/EarningCall");console.log("isNews:",e),console.log("isTweets:",t),console.log("isEarningCall:",n),e?(this.model.modelName="tesla_news_title_sentiment_analysis",this.model.modelFounder="YC9Z",this.model.modelGroup="News"):t?(this.model.modelName="tweet-sentiment-analysis-for-tesla",this.model.modelFounder="CX330Blake",this.model.modelGroup="Tweets"):n&&(this.model.modelName="tesla_earningscall_sentiment_analysis",this.model.modelFounder="weip9012",this.model.modelGroup="Earnings Call")},computed:{},methods:{async modelInference(){const e=`${this.model.modelFounder}/${this.model.modelName}`,t=this.$refs.textInference.value;console.log(t);const n=new Worker(new URL("/GDSC-ai-stock/assets/model-mLffB-nZ.js",import.meta.url),{type:"module"}),c=I(n);try{const r=await c.fetchData(e,t);this.model.output=r.flat().map(i=>(i.score=Math.round(i.score*1e3)/1e3,i.score=parseFloat(i.score.toFixed(3)),i))}catch(r){console.error(`Error fetching data: ${r}`)}}}},ae={class:"text-2xl font-bold pt-4 pb-3 text-center text-white"},ie={class:"w-[94vw] mx-auto"},le={class:"mb-2"},ce=a("h2",{class:"text-white font-bold text-xl my-3"},"Inference API",-1),de={class:"grid grid-rows-[repeat(2,auto)] gap-y-3 bg-[#4a4a4a] rounded-lg p-4"},ue={ref:"textInference",class:"border border-white/5 bg-[#5b5b5b] px-3 py-2 min-h-24 rounded-lg text-white"},me={class:"bg-[#4a4a4a] rounded-lg px-4 py-3 mb-2 grid grid-rows-3 gap-y-1"},fe={class:"text-white"};function ge(e,t,n,c,r,i){const o=R("CountTo");return g(),p(E,null,[a("h1",ae,_(r.model.modelGroup),1),a("section",ie,[a("div",le,[ce,a("div",de,[a("textarea",ue,null,512),a("button",{onClick:t[0]||(t[0]=(...s)=>i.modelInference&&i.modelInference(...s)),class:"bg-[#1387f8] rounded-lg h-10 text-white"}," Compute ")])]),G(a("div",me,[(g(!0),p(E,null,v(r.model.output,(s,d)=>(g(),p("div",{key:s.label,class:"w-full grid grid-cols-2 justify-between col-span-2"},[a("div",fe,_(s.label),1),j(o,{"start-val":0,"end-val":s.score,duration:1e3,decimals:3,class:"text-right text-white"},null,8,["end-val"])]))),128))],512),[[V,r.model.output]])])],64)}const Me=M(oe,[["render",ge]]),he={props:{processes:{type:Object,required:!1}},components:{ScrollReveal:U}},pe={class:"mx-auto w-[94vw]"},we=a("h2",{class:"text-white font-bold text-xl my-3"},"Production Process",-1),_e={class:"grid grid-rows-2 place-items-center w-10 h-10 mr-5"},ye=a("div",{class:"text-lg text-white"},"STEP",-1),xe={class:"text-lg text-white"},be={class:"flex-grow md:grid md:grid-cols-2 md:gap-x-5"},Ee={class:"text-white font-bold text-lg pb-3"},ke={class:"text-[#d0d0d0]"},Ce={class:"grid grid-rows-[repeat(auto-fill,1fr)] mt-3 gap-y-2"},Se=["href"],Pe={class:"overflow-hidden whitespace-nowrap text-ellipsis"};function ve(e,t,n,c,r,i){const o=R("ScrollReveal");return g(),p("section",pe,[we,(g(!0),p(E,null,v(n.processes,(s,d)=>(g(),H(o,{key:s.id,class:"bg-[#4a4a4a] rounded-lg flex mb-2 p-4"},{default:W(()=>[a("div",_e,[ye,a("div",xe,_((d+1).toString().padStart(2,"0")),1)]),a("div",be,[a("div",null,[a("div",Ee,_(s.title),1),a("div",ke,_(s.text),1)]),a("div",Ce,[(g(!0),p(E,null,v(s.sources,l=>(g(),p("a",{key:l.id,href:l.url,target:"_blank",rel:"noopener noreferrer",class:"border border-solid border-white text-[#d0d0d0] text-sm rounded-lg px-4 h-9 grid items-center"},[a("span",Pe,_(l.name),1)],8,Se))),128))])])]),_:2},1024))),128))])}const Re=M(he,[["render",ve]]);export{Me as M,Re as P}; diff --git a/assets/ProcessFlow-nNtbjvOU.js b/assets/ProcessFlow-nNtbjvOU.js deleted file mode 100644 index 2ce9573..0000000 --- a/assets/ProcessFlow-nNtbjvOU.js +++ /dev/null @@ -1,5 +0,0 @@ -import{_ as M,o as g,c as w,a,t as h,F as P,e as v,b as V,r as R,f as j,w as D}from"./index-CVfypvOR.js";import{C as H,S as W}from"./ScrollReveal-sydDG7Nu.js";/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */const $=Symbol("Comlink.proxy"),B=Symbol("Comlink.endpoint"),U=Symbol("Comlink.releaseProxy"),S=Symbol("Comlink.finalizer"),b=Symbol("Comlink.thrown"),F=e=>typeof e=="object"&&e!==null||typeof e=="function",Y={canHandle:e=>F(e)&&e[$],serialize(e){const{port1:t,port2:s}=new MessageChannel;return A(e,t),[s,[s]]},deserialize(e){return e.start(),z(e)}},q={canHandle:e=>F(e)&&b in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},L=new Map([["proxy",Y],["throw",q]]);function X(e,t){for(const s of e)if(t===s||s==="*"||s instanceof RegExp&&s.test(t))return!0;return!1}function A(e,t=globalThis,s=["*"]){t.addEventListener("message",function c(n){if(!n||!n.data)return;if(!X(s,n.origin)){console.warn(`Invalid origin '${n.origin}' for comlink proxy`);return}const{id:i,type:o,path:r}=Object.assign({path:[]},n.data),d=(n.data.argumentList||[]).map(p);let l;try{const u=r.slice(0,-1).reduce((m,y)=>m[y],e),f=r.reduce((m,y)=>m[y],e);switch(o){case"GET":l=f;break;case"SET":u[r.slice(-1)[0]]=p(n.data.value),l=!0;break;case"APPLY":l=f.apply(u,d);break;case"CONSTRUCT":{const m=new f(...d);l=te(m)}break;case"ENDPOINT":{const{port1:m,port2:y}=new MessageChannel;A(e,y),l=ee(m,[m])}break;case"RELEASE":l=void 0;break;default:return}}catch(u){l={value:u,[b]:0}}Promise.resolve(l).catch(u=>({value:u,[b]:0})).then(u=>{const[f,m]=C(u);t.postMessage(Object.assign(Object.assign({},f),{id:i}),m),o==="RELEASE"&&(t.removeEventListener("message",c),O(t),S in e&&typeof e[S]=="function"&&e[S]())}).catch(u=>{const[f,m]=C({value:new TypeError("Unserializable return value"),[b]:0});t.postMessage(Object.assign(Object.assign({},f),{id:i}),m)})}),t.start&&t.start()}function Z(e){return e.constructor.name==="MessagePort"}function O(e){Z(e)&&e.close()}function z(e,t){return N(e,[],t)}function x(e){if(e)throw new Error("Proxy has been released and is not useable")}function I(e){return _(e,{type:"RELEASE"}).then(()=>{O(e)})}const E=new WeakMap,k="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(E.get(e)||0)-1;E.set(e,t),t===0&&I(e)});function J(e,t){const s=(E.get(t)||0)+1;E.set(t,s),k&&k.register(e,t,e)}function K(e){k&&k.unregister(e)}function N(e,t=[],s=function(){}){let c=!1;const n=new Proxy(s,{get(i,o){if(x(c),o===U)return()=>{K(n),I(e),c=!0};if(o==="then"){if(t.length===0)return{then:()=>n};const r=_(e,{type:"GET",path:t.map(d=>d.toString())}).then(p);return r.then.bind(r)}return N(e,[...t,o])},set(i,o,r){x(c);const[d,l]=C(r);return _(e,{type:"SET",path:[...t,o].map(u=>u.toString()),value:d},l).then(p)},apply(i,o,r){x(c);const d=t[t.length-1];if(d===B)return _(e,{type:"ENDPOINT"}).then(p);if(d==="bind")return N(e,t.slice(0,-1));const[l,u]=T(r);return _(e,{type:"APPLY",path:t.map(f=>f.toString()),argumentList:l},u).then(p)},construct(i,o){x(c);const[r,d]=T(o);return _(e,{type:"CONSTRUCT",path:t.map(l=>l.toString()),argumentList:r},d).then(p)}});return J(n,e),n}function Q(e){return Array.prototype.concat.apply([],e)}function T(e){const t=e.map(C);return[t.map(s=>s[0]),Q(t.map(s=>s[1]))]}const G=new WeakMap;function ee(e,t){return G.set(e,t),e}function te(e){return Object.assign(e,{[$]:!0})}function C(e){for(const[t,s]of L)if(s.canHandle(e)){const[c,n]=s.serialize(e);return[{type:"HANDLER",name:t,value:c},n]}return[{type:"RAW",value:e},G.get(e)||[]]}function p(e){switch(e.type){case"HANDLER":return L.get(e.name).deserialize(e.value);case"RAW":return e.value}}function _(e,t,s){return new Promise(c=>{const n=se();e.addEventListener("message",function i(o){!o.data||!o.data.id||o.data.id!==n||(e.removeEventListener("message",i),c(o.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:n},t),s)})}function se(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const ne={components:{CountTo:H},data(){return{model:{modelName:"",modelFounder:"",output:null,modelGroup:""}}},created(){},mounted(){const e=this.$route.path.includes("/News"),t=this.$route.path.includes("/Tweets"),s=this.$route.path.includes("/EarningCall");console.log("isNews:",e),console.log("isTweets:",t),console.log("isEarningCall:",s),e?(this.model.modelName="tesla_news_title_sentiment_analysis",this.model.modelFounder="YC9Z",this.model.modelGroup="News"):t?(this.model.modelName="tweet-sentiment-analysis-for-tesla",this.model.modelFounder="CX330Blake",this.model.modelGroup="Tweets"):s&&(this.model.modelName="tesla_earningscall_sentiment_analysis",this.model.modelFounder="weip9012",this.model.modelGroup="Earnings Call")},computed:{},methods:{async modelInference(){const e=`${this.model.modelFounder}/${this.model.modelName}`,t=this.$refs.textInference.value;console.log(t);const s=new Worker(new URL("/GDSC-ai-stock/assets/model-mLffB-nZ.js",import.meta.url),{type:"module"}),c=z(s);try{const n=await c.fetchData(e,t);this.model.output=n.flat().map(i=>(i.score=Math.round(i.score*1e3)/1e3,i.score=parseFloat(i.score.toFixed(3)),i))}catch(n){console.error(`Error fetching data: ${n}`)}}}},re={class:"w-[94vw] mx-auto"},oe={class:"text-2xl font-bold mb-2 pl-2"},ae={class:"bg-[#4a4a4a] rounded-lg px-4 py-2 mb-2"},ie={class:"text-white"},le={class:"text-white"},ce={class:"grid grid-rows-[repeat(2,auto)] gap-y-4 bg-[#4a4a4a] rounded-lg p-4 mb-2"},de={ref:"textInference",class:"border border-white/5 bg-[#5b5b5b] px-3 py-2 min-h-24 rounded-lg text-white"},ue={class:"bg-[#4a4a4a] rounded-lg px-4 py-2 mb-2"},me={class:"w-full grid grid-cols-2 justify-between col-span-2"},fe={class:"text-white"};function ge(e,t,s,c,n,i){const o=R("CountTo");return g(),w("section",re,[a("h1",oe,h(n.model.modelGroup),1),a("div",ae,[a("h2",ie,"Model Name: "+h(n.model.modelName),1),a("p",le,"Model Founder: "+h(n.model.modelFounder),1)]),a("div",ce,[a("textarea",de,null,512),a("button",{onClick:t[0]||(t[0]=(...r)=>i.modelInference&&i.modelInference(...r)),class:"bg-[#1387f8] rounded-lg h-10 text-white"}," Compute ")]),a("div",ue,[(g(!0),w(P,null,v(n.model.output,(r,d)=>(g(),w("div",{key:r.label,class:"grid grid-cols-2"},[a("div",me,[a("div",fe,h(r.label),1),V(o,{"start-val":0,"end-val":r.score,duration:1e3,decimals:3,class:"text-right text-white"},null,8,["end-val"])])]))),128))])])}const Ne=M(ne,[["render",ge]]),he={props:{processes:{type:Object,required:!1}},components:{ScrollReveal:W},mounted(){console.log(this.processes)},data(){return{}}},pe={class:"mx-auto w-[84vw]"},we=a("h2",{class:"text-white font-bold text-xl my-3"},"Production Process",-1),_e={class:"grid grid-rows-2 place-items-center w-10 h-10 mr-5"},ye=a("div",{class:"text-lg text-white"},"STEP",-1),xe={class:"text-lg text-white"},be={class:"flex-grow grid grid-cols-2 gap-x-5"},Ee={class:"text-white"},ke={class:"text-[#d0d0d0]"},Ce={class:"flex flex-col"};function Se(e,t,s,c,n,i){const o=R("ScrollReveal");return g(),w("section",pe,[we,(g(!0),w(P,null,v(s.processes,(r,d)=>(g(),j(o,{key:r.id,class:"bg-[#4a4a4a] rounded-lg min-h-20 flex mb-2 p-4"},{default:D(()=>[a("div",_e,[ye,a("div",xe,h((d+1).toString().padStart(2,"0")),1)]),a("div",be,[a("div",null,[a("div",Ee,h(r.title),1),a("div",ke,h(r.text),1)]),a("div",Ce,[(g(!0),w(P,null,v(r.files,l=>(g(),w("div",{key:l,class:"border border-solid border-white text-[#d0d0d0] text-sm rounded-lg px-4 py-2 overflow-hidden whitespace-nowrap text-ellipsis mb-2 last-of-type:mb-0"},h(l),1))),128))])])]),_:2},1024))),128))])}const Te=M(he,[["render",Se]]);export{Ne as M,Te as P}; diff --git a/assets/ScrollReveal-sydDG7Nu.js b/assets/ScrollReveal-FrL9aeFz.js similarity index 97% rename from assets/ScrollReveal-sydDG7Nu.js rename to assets/ScrollReveal-FrL9aeFz.js index 4c8f4c3..df66d18 100644 --- a/assets/ScrollReveal-sydDG7Nu.js +++ b/assets/ScrollReveal-FrL9aeFz.js @@ -1 +1 @@ -import{_ as c,o as d,c as p,t as m,i as V,n as y}from"./index-CVfypvOR.js";let o=0;const u="webkit moz ms o".split(" ");let r,n;const b=typeof window>"u";if(b)r=function(){},n=function(){};else{r=window.requestAnimationFrame,n=window.cancelAnimationFrame;let t;for(let e=0;e{e(i+a)},a);return o=i+a,s},n=function(e){window.clearTimeout(e)})}const w={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default(t,e,i,a){return i*(-Math.pow(2,-10*t/a)+1)*1024/1023+e}}},data(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown(){return this.startVal>this.endVal}},watch:{startVal(){this.autoplay&&this.start()},endVal(){this.autoplay&&this.start()}},mounted(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=r(this.count)},pauseResume(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause(){n(this.rAF)},resume(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,r(this.count)},reset(){this.startTime=null,n(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count(t){this.startTime||(this.startTime=t),this.timestamp=t;const e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",s=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;s.test(i);)i=i.replace(s,"$1"+this.separator+"$2");return this.prefix+i+a+this.suffix}},destroyed(){n(this.rAF)}};function g(t,e,i,a,s,f){return d(),p("span",null,m(s.displayValue),1)}const l=c(w,[["render",g]]);function S(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}l.unmounted=l.destroyed,Reflect.deleteProperty(l,"destroyed");var _=function(t){for(var e=1;e{e.forEach(i=>{i.isIntersecting&&(this.isVisible=!0,t.unobserve(this.$refs.revealElement))})});t.observe(this.$refs.revealElement)}};function F(t,e,i,a,s,f){return d(),p("div",{ref:"revealElement",class:y(["opacity-0",{"animate__animated animate__fadeIn":s.isVisible}])},[V(t.$slots,"default")],2)}const v=c(D,[["render",F]]);export{_ as C,v as S}; +import{_ as c,o as d,c as p,t as m,i as V,n as y}from"./index-CbUvJRks.js";let o=0;const u="webkit moz ms o".split(" ");let r,n;const b=typeof window>"u";if(b)r=function(){},n=function(){};else{r=window.requestAnimationFrame,n=window.cancelAnimationFrame;let t;for(let e=0;e{e(i+a)},a);return o=i+a,s},n=function(e){window.clearTimeout(e)})}const w={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default(t,e,i,a){return i*(-Math.pow(2,-10*t/a)+1)*1024/1023+e}}},data(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown(){return this.startVal>this.endVal}},watch:{startVal(){this.autoplay&&this.start()},endVal(){this.autoplay&&this.start()}},mounted(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=r(this.count)},pauseResume(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause(){n(this.rAF)},resume(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,r(this.count)},reset(){this.startTime=null,n(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count(t){this.startTime||(this.startTime=t),this.timestamp=t;const e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.endVal-this.localStartVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",s=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;s.test(i);)i=i.replace(s,"$1"+this.separator+"$2");return this.prefix+i+a+this.suffix}},destroyed(){n(this.rAF)}};function g(t,e,i,a,s,f){return d(),p("span",null,m(s.displayValue),1)}const l=c(w,[["render",g]]);function S(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}l.unmounted=l.destroyed,Reflect.deleteProperty(l,"destroyed");var _=function(t){for(var e=1;e{e.forEach(i=>{i.isIntersecting&&(this.isVisible=!0,t.unobserve(this.$refs.revealElement))})});t.observe(this.$refs.revealElement)}};function F(t,e,i,a,s,f){return d(),p("div",{ref:"revealElement",class:y(["opacity-0",{"animate__animated animate__fadeIn":s.isVisible}])},[V(t.$slots,"default")],2)}const v=c(D,[["render",F]]);export{_ as C,v as S}; diff --git a/assets/Tweets-B72kvkud.js b/assets/Tweets-B72kvkud.js deleted file mode 100644 index aa416b6..0000000 --- a/assets/Tweets-B72kvkud.js +++ /dev/null @@ -1 +0,0 @@ -import{M as a,P as i}from"./ProcessFlow-nNtbjvOU.js";import{_ as l,c as r,b as e,F as c,r as t,o as p}from"./index-CVfypvOR.js";import"./ScrollReveal-sydDG7Nu.js";const f={components:{Model:a,ProcessFlow:i},beforeCreate(){this.processes=[{id:"STEP1",title:"Make X-Crawler",text:"製作爬取推文的爬蟲",files:[""]},{id:"STEP2",title:"Data Set",text:"從 Kaggle 蒐集和 Twitter 爬取到的推文作為資料集",files:[""]},{id:"STEP3",title:"Labeling",text:"利用 Huggingface 訓練好的兩個模型,幫資料集做 Label",files:["austinmw/distilbert-base-uncased-finetuned-tweets-a","cardiffnlp/twitter-roberta-base-sentiment-latest"]},{id:"STEP4",title:"Fine-Tuning",text:"利用 Label 好的資料,Fine-Tunging BERT 作為最後的模型",files:["CX330Blake/tweet-sentiment-analysis-for-tesla"]},{id:"STEP5",title:"Final Data",text:"用最終模型將所有資料集分類並計算加權分數",files:[""]}]}};function d(s,m,u,_,g,w){const o=t("Model"),n=t("ProcessFlow");return p(),r(c,null,[e(o),e(n,{processes:s.processes},null,8,["processes"])],64)}const F=l(f,[["render",d]]);export{F as default}; diff --git a/assets/Tweets-khv9Zs2d.js b/assets/Tweets-khv9Zs2d.js new file mode 100644 index 0000000..5070666 --- /dev/null +++ b/assets/Tweets-khv9Zs2d.js @@ -0,0 +1 @@ +import{M as o,P as r}from"./ProcessFlow-DSYizVyV.js";import{_ as l,c as i,b as e,F as c,r as t,o as u}from"./index-CbUvJRks.js";import"./ScrollReveal-FrL9aeFz.js";const m={components:{Model:o,ProcessFlow:r},beforeCreate(){this.processes=[{id:"STEP1",title:"Make X-Crawler",text:"製作爬取推文的爬蟲",sources:[{name:"X-Crawler",url:"https://github.com/CX330Blake/X-crawler"}]},{id:"STEP2",title:"Data Set",text:"從 Kaggle 蒐集和 Twitter 爬取到的推文作為資料集",sources:[]},{id:"STEP3",title:"Labeling",text:"利用 Huggingface 訓練好的兩個模型,幫資料集做 Label",sources:[{name:"Pretrained model 1",url:"https://huggingface.co/austinmw/distilbert-base-uncased-finetuned-tweets-sentiment"},{name:"Pretrained model 2",url:"https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest"}]},{id:"STEP4",title:"Fine-Tuning",text:"利用 Label 好的資料,Fine-Tunging BERT 作為最後的模型",sources:[{name:"CX330Blake/tweet-sentiment-analysis-for-tesla",url:"https://huggingface.co/CX330Blake/tweet-sentiment-analysis-for-tesla"}]},{id:"STEP5",title:"Final Data",text:"用最終模型將所有資料集分類並計算加權分數",sources:[]}]}};function p(s,d,g,f,w,_){const a=t("Model"),n=t("ProcessFlow");return u(),i(c,null,[e(a),e(n,{processes:s.processes},null,8,["processes"])],64)}const T=l(m,[["render",p]]);export{T as default}; diff --git a/assets/index-CVfypvOR.js b/assets/index-CbUvJRks.js similarity index 96% rename from assets/index-CVfypvOR.js rename to assets/index-CbUvJRks.js index 4f879ca..3a72a60 100644 --- a/assets/index-CVfypvOR.js +++ b/assets/index-CbUvJRks.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["assets/Home-DHcqi0tC.js","assets/ScrollReveal-sydDG7Nu.js","assets/EarningCall-PuAmtw16.js","assets/ProcessFlow-nNtbjvOU.js","assets/News-BJxs9Uej.js","assets/Tweets-B72kvkud.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["assets/Home-CTgq2R8G.js","assets/ScrollReveal-FrL9aeFz.js","assets/EarningCall-DvwBNw8-.js","assets/ProcessFlow-DSYizVyV.js","assets/News-BOTyYPIr.js","assets/Tweets-khv9Zs2d.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -19,4 +19,4 @@ const __vite__fileDeps=["assets/Home-DHcqi0tC.js","assets/ScrollReveal-sydDG7Nu. * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const pt=typeof document<"u";function ic(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const q=Object.assign;function Hn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ce(r)?r.map(e):e(r)}return n}const $t=()=>{},Ce=Array.isArray,Co=/#/g,lc=/&/g,cc=/\//g,uc=/=/g,fc=/\?/g,So=/\+/g,ac=/%5B/g,dc=/%5D/g,Po=/%5E/g,hc=/%60/g,Oo=/%7B/g,pc=/%7C/g,Ao=/%7D/g,gc=/%20/g;function ys(e){return encodeURI(""+e).replace(pc,"|").replace(ac,"[").replace(dc,"]")}function mc(e){return ys(e).replace(Oo,"{").replace(Ao,"}").replace(Po,"^")}function Jn(e){return ys(e).replace(So,"%2B").replace(gc,"+").replace(Co,"%23").replace(lc,"%26").replace(hc,"`").replace(Oo,"{").replace(Ao,"}").replace(Po,"^")}function _c(e){return Jn(e).replace(uc,"%3D")}function yc(e){return ys(e).replace(Co,"%23").replace(fc,"%3F")}function bc(e){return e==null?"":yc(e).replace(cc,"%2F")}function Dt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vc=/\/$/,Ec=e=>e.replace(vc,"");function jn(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=Cc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Dt(i)}}function xc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function tr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Et(t.matched[s],n.matched[r])&&To(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Et(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function To(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Rc(e[n],t[n]))return!1;return!0}function Rc(e,t){return Ce(e)?nr(e,t):Ce(t)?nr(t,e):e===t}function nr(e,t){return Ce(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Cc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}var Kt;(function(e){e.pop="pop",e.push="push"})(Kt||(Kt={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function Sc(e){if(!e)if(pt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ec(e)}const Pc=/^[^#]+#/;function Oc(e,t){return e.replace(Pc,"#")+t}function Ac(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Pn=()=>({left:window.scrollX,top:window.scrollY});function Tc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ac(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sr(e,t){return(history.state?history.state.position-t:-1)+e}const Zn=new Map;function Mc(e,t){Zn.set(e,t)}function Ic(e){const t=Zn.get(e);return Zn.delete(e),t}let Lc=()=>location.protocol+"//"+location.host;function Mo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),tr(l,"")}return tr(n,e)+s+r}function Nc(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const b=Mo(e,location),O=n.value,L=t.value;let H=0;if(p){if(n.value=b,t.value=p,i&&i===O){i=null;return}H=L?p.position-L.position:0}else s(b);r.forEach(T=>{T(n.value,O,{delta:H,type:Kt.pop,direction:H?H>0?Ht.forward:Ht.back:Ht.unknown})})};function l(){i=n.value}function d(p){r.push(p);const b=()=>{const O=r.indexOf(p);O>-1&&r.splice(O,1)};return o.push(b),b}function f(){const{history:p}=window;p.state&&p.replaceState(q({},p.state,{scroll:Pn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:d,destroy:h}}function rr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Pn():null}}function Fc(e){const{history:t,location:n}=window,s={value:Mo(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,f){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Lc()+e+l;try{t[f?"replaceState":"pushState"](d,"",p),r.value=d}catch(b){console.error(b),n[f?"replace":"assign"](p)}}function i(l,d){const f=q({},t.state,rr(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});o(l,f,!0),s.value=l}function c(l,d){const f=q({},r.value,t.state,{forward:l,scroll:Pn()});o(f.current,f,!0);const h=q({},rr(s.value,l,null),{position:f.position+1},d);o(l,h,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function $c(e){e=Sc(e);const t=Fc(e),n=Nc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=q({location:"",base:e,go:s,createHref:Oc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Hc(e){return typeof e=="string"||e&&typeof e=="object"}function Io(e){return typeof e=="string"||typeof e=="symbol"}const ke={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Lo=Symbol("");var or;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(or||(or={}));function xt(e,t){return q(new Error,{type:e,[Lo]:!0},t)}function Fe(e,t){return e instanceof Error&&Lo in e&&(t==null||!!(e.type&t))}const ir="[^/]+?",jc={sensitive:!1,strict:!1,start:!0,end:!0},Vc=/[.+*?^${}()[\]/\\]/g;function Bc(e,t){const n=q({},jc,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const f=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function kc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Dc={type:0,value:""},Kc=/[a-zA-Z0-9_]/;function Wc(e){if(!e)return[[]];if(e==="/")return[[Dc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${n})/"${d}": ${b}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,d="",f="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;c{i(N)}:$t}function i(f){if(Io(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function c(){return n}function l(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!No(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!ur(f)&&s.set(f.record.name,f)}function d(f,h){let p,b={},O,L;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw xt(1,{location:f});L=p.record.name,b=q(cr(h.params,p.keys.filter(N=>!N.optional).concat(p.parent?p.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),f.params&&cr(f.params,p.keys.map(N=>N.name))),O=p.stringify(b)}else if(f.path!=null)O=f.path,p=n.find(N=>N.re.test(O)),p&&(b=p.parse(O),L=p.record.name);else{if(p=h.name?s.get(h.name):n.find(N=>N.re.test(h.path)),!p)throw xt(1,{location:f,currentLocation:h});L=p.record.name,b=q({},h.params,f.params),O=p.stringify(b)}const H=[];let T=p;for(;T;)H.unshift(T.record),T=T.parent;return{name:L,path:O,params:b,matched:H,meta:Yc(H)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function cr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Gc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Qc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Qc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ur(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yc(e){return e.reduce((t,n)=>q(t,n.meta),{})}function fr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function No(e,t){return t.children.some(n=>n===e||No(e,n))}function Jc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Jn(o)):[s&&Jn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Zc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ce(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xc=Symbol(""),dr=Symbol(""),bs=Symbol(""),Fo=Symbol(""),Xn=Symbol("");function At(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ze(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((c,l)=>{const d=p=>{p===!1?l(xt(4,{from:n,to:t})):p instanceof Error?l(p):Hc(p)?l(xt(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),c())},f=o(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(f);e.length<3&&(h=h.then(d)),h.catch(p=>l(p))})}function Vn(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(eu(l)){const f=(l.__vccOpts||l)[t];f&&o.push(ze(f,n,s,i,c,r))}else{let d=l();o.push(()=>d.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const h=ic(f)?f.default:f;i.components[c]=h;const b=(h.__vccOpts||h)[t];return b&&ze(b,n,s,i,c,r)()}))}}return o}function eu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function hr(e){const t=He(bs),n=He(Fo),s=xe(()=>t.resolve(it(e.to))),r=xe(()=>{const{matched:l}=s.value,{length:d}=l,f=l[d-1],h=n.matched;if(!f||!h.length)return-1;const p=h.findIndex(Et.bind(null,f));if(p>-1)return p;const b=pr(l[d-2]);return d>1&&pr(f)===b&&h[h.length-1].path!==b?h.findIndex(Et.bind(null,l[d-2])):p}),o=xe(()=>r.value>-1&&ru(n.params,s.value.params)),i=xe(()=>r.value>-1&&r.value===n.matched.length-1&&To(n.params,s.value.params));function c(l={}){return su(l)?t[it(e.replace)?"replace":"push"](it(e.to)).catch($t):Promise.resolve()}return{route:s,href:xe(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const tu=so({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:hr,setup(e,{slots:t}){const n=bn(hr(e)),{options:s}=He(bs),r=xe(()=>({[gr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[gr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:wo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),nu=tu;function su(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ru(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ce(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function pr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const gr=(e,t,n)=>e??t??n,ou=so({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=He(Xn),r=xe(()=>e.route||s.value),o=He(dr,0),i=xe(()=>{let d=it(o);const{matched:f}=r.value;let h;for(;(h=f[d])&&!h.components;)d++;return d}),c=xe(()=>r.value.matched[i.value]);nn(dr,xe(()=>i.value+1)),nn(Xc,c),nn(Xn,r);const l=xi();return tn(()=>[l.value,c.value,e.name],([d,f,h],[p,b,O])=>{f&&(f.instances[h]=d,b&&b!==f&&d&&d===p&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),d&&f&&(!b||!Et(f,b)||!p)&&(f.enterCallbacks[h]||[]).forEach(L=>L(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,h=c.value,p=h&&h.components[f];if(!p)return mr(n.default,{Component:p,route:d});const b=h.props[f],O=b?b===!0?d.params:typeof b=="function"?b(d):b:null,H=wo(p,q({},O,t,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(h.instances[f]=null)},ref:l}));return mr(n.default,{Component:H,route:d})||H}}});function mr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $o=ou;function iu(e){const t=qc(e.routes,e),n=e.parseQuery||Jc,s=e.stringifyQuery||ar,r=e.history,o=At(),i=At(),c=At(),l=wi(ke);let d=ke;pt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Hn.bind(null,_=>""+_),h=Hn.bind(null,bc),p=Hn.bind(null,Dt);function b(_,S){let R,A;return Io(_)?(R=t.getRecordMatcher(_),A=S):A=_,t.addRoute(A,R)}function O(_){const S=t.getRecordMatcher(_);S&&t.removeRoute(S)}function L(){return t.getRoutes().map(_=>_.record)}function H(_){return!!t.getRecordMatcher(_)}function T(_,S){if(S=q({},S||l.value),typeof _=="string"){const a=jn(n,_,S.path),g=t.resolve({path:a.path},S),y=r.createHref(a.fullPath);return q(a,g,{params:p(g.params),hash:Dt(a.hash),redirectedFrom:void 0,href:y})}let R;if(_.path!=null)R=q({},_,{path:jn(n,_.path,S.path).path});else{const a=q({},_.params);for(const g in a)a[g]==null&&delete a[g];R=q({},_,{params:h(a)}),S.params=h(S.params)}const A=t.resolve(R,S),z=_.hash||"";A.params=f(p(A.params));const X=xc(s,q({},_,{hash:mc(z),path:A.path})),u=r.createHref(X);return q({fullPath:X,hash:z,query:s===ar?Zc(_.query):_.query||{}},A,{redirectedFrom:void 0,href:u})}function N(_){return typeof _=="string"?jn(n,_,l.value.path):q({},_)}function V(_,S){if(d!==_)return xt(8,{from:S,to:_})}function K(_){return fe(_)}function ee(_){return K(q(N(_),{replace:!0}))}function B(_){const S=_.matched[_.matched.length-1];if(S&&S.redirect){const{redirect:R}=S;let A=typeof R=="function"?R(_):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=N(A):{path:A},A.params={}),q({query:_.query,hash:_.hash,params:A.path!=null?{}:_.params},A)}}function fe(_,S){const R=d=T(_),A=l.value,z=_.state,X=_.force,u=_.replace===!0,a=B(R);if(a)return fe(q(N(a),{state:typeof a=="object"?q({},z,a.state):z,force:X,replace:u}),S||R);const g=R;g.redirectedFrom=S;let y;return!X&&wc(s,A,R)&&(y=xt(16,{to:g,from:A}),Oe(A,A,!0,!1)),(y?Promise.resolve(y):Se(g,A)).catch(m=>Fe(m)?Fe(m,2)?m:Be(m):W(m,g,A)).then(m=>{if(m){if(Fe(m,2))return fe(q({replace:u},N(m.to),{state:typeof m.to=="object"?q({},z,m.to.state):z,force:X}),S||g)}else m=Xe(g,A,!0,u,z);return Ve(g,A,m),m})}function ye(_,S){const R=V(_,S);return R?Promise.reject(R):Promise.resolve()}function Ze(_){const S=dt.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(_):_()}function Se(_,S){let R;const[A,z,X]=lu(_,S);R=Vn(A.reverse(),"beforeRouteLeave",_,S);for(const a of A)a.leaveGuards.forEach(g=>{R.push(ze(g,_,S))});const u=ye.bind(null,_,S);return R.push(u),le(R).then(()=>{R=[];for(const a of o.list())R.push(ze(a,_,S));return R.push(u),le(R)}).then(()=>{R=Vn(z,"beforeRouteUpdate",_,S);for(const a of z)a.updateGuards.forEach(g=>{R.push(ze(g,_,S))});return R.push(u),le(R)}).then(()=>{R=[];for(const a of X)if(a.beforeEnter)if(Ce(a.beforeEnter))for(const g of a.beforeEnter)R.push(ze(g,_,S));else R.push(ze(a.beforeEnter,_,S));return R.push(u),le(R)}).then(()=>(_.matched.forEach(a=>a.enterCallbacks={}),R=Vn(X,"beforeRouteEnter",_,S,Ze),R.push(u),le(R))).then(()=>{R=[];for(const a of i.list())R.push(ze(a,_,S));return R.push(u),le(R)}).catch(a=>Fe(a,8)?a:Promise.reject(a))}function Ve(_,S,R){c.list().forEach(A=>Ze(()=>A(_,S,R)))}function Xe(_,S,R,A,z){const X=V(_,S);if(X)return X;const u=S===ke,a=pt?history.state:{};R&&(A||u?r.replace(_.fullPath,q({scroll:u&&a&&a.scroll},z)):r.push(_.fullPath,z)),l.value=_,Oe(_,S,R,u),Be()}let Pe;function Ct(){Pe||(Pe=r.listen((_,S,R)=>{if(!zt.listening)return;const A=T(_),z=B(A);if(z){fe(q(z,{replace:!0}),A).catch($t);return}d=A;const X=l.value;pt&&Mc(sr(X.fullPath,R.delta),Pn()),Se(A,X).catch(u=>Fe(u,12)?u:Fe(u,2)?(fe(u.to,A).then(a=>{Fe(a,20)&&!R.delta&&R.type===Kt.pop&&r.go(-1,!1)}).catch($t),Promise.reject()):(R.delta&&r.go(-R.delta,!1),W(u,A,X))).then(u=>{u=u||Xe(A,X,!1),u&&(R.delta&&!Fe(u,8)?r.go(-R.delta,!1):R.type===Kt.pop&&Fe(u,20)&&r.go(-1,!1)),Ve(A,X,u)}).catch($t)}))}let ft=At(),ne=At(),G;function W(_,S,R){Be(_);const A=ne.list();return A.length?A.forEach(z=>z(_,S,R)):console.error(_),Promise.reject(_)}function Ne(){return G&&l.value!==ke?Promise.resolve():new Promise((_,S)=>{ft.add([_,S])})}function Be(_){return G||(G=!_,Ct(),ft.list().forEach(([S,R])=>_?R(_):S()),ft.reset()),_}function Oe(_,S,R,A){const{scrollBehavior:z}=e;if(!pt||!z)return Promise.resolve();const X=!R&&Ic(sr(_.fullPath,0))||(A||!R)&&history.state&&history.state.scroll||null;return Wr().then(()=>z(_,S,X)).then(u=>u&&Tc(u)).catch(u=>W(u,_,S))}const de=_=>r.go(_);let at;const dt=new Set,zt={currentRoute:l,listening:!0,addRoute:b,removeRoute:O,hasRoute:H,getRoutes:L,resolve:T,options:e,push:K,replace:ee,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ne.add,isReady:Ne,install(_){const S=this;_.component("RouterLink",nu),_.component("RouterView",$o),_.config.globalProperties.$router=S,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>it(l)}),pt&&!at&&l.value===ke&&(at=!0,K(r.location).catch(z=>{}));const R={};for(const z in ke)Object.defineProperty(R,z,{get:()=>l.value[z],enumerable:!0});_.provide(bs,S),_.provide(Fo,$r(R)),_.provide(Xn,l);const A=_.unmount;dt.add(_),_.unmount=function(){dt.delete(_),dt.size<1&&(d=ke,Pe&&Pe(),Pe=null,l.value=ke,at=!1,G=!1),A()}}};function le(_){return _.reduce((S,R)=>S.then(()=>Ze(R)),Promise.resolve())}return zt}function lu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iEt(d,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(d=>Et(d,l))||r.push(l))}return[n,s,r]}const Ho=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},cu={},uu={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},fu=qe("path",{d:"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"},null,-1),au=[fu];function du(e,t){return lt(),fn("svg",uu,au)}const hu=Ho(cu,[["render",du]]),pu={components:{IconMenu:hu},data(){return{isMenuVisible:!1}},beforeCreate(){this.links=[{id:"Home",path:"/",text:"Home"},{id:"EarningCall",path:"/EarningCall",text:"EarningCall"},{id:"News",path:"/News",text:"News"},{id:"Tweets",path:"/Tweets",text:"Tweets"}]},methods:{toggleMenu(){this.isMenuVisible=!this.isMenuVisible}}},gu={class:"fixed md:static top-0 left-0 mb-2 z-20 md:w-[100vw] md:border-b md:border-black/5 md:border-solid"};function mu(e,t,n,s,r,o){const i=Ls("IconMenu"),c=Ls("router-link");return lt(),fn(_e,null,[qe("nav",gu,[qe("button",{class:"h-12 w-12 grid place-items-center ml-3 md:hidden",onClick:t[0]||(t[0]=(...l)=>o.toggleMenu&&o.toggleMenu(...l))},[oe(i)]),qe("div",{class:jt(["md:static md:flex md:justify-center fixed z-20 top-0 left-0 h-screen md:h-auto md:translate-x-0 -translate-x-full transition-transform bg-[#2f2f2f] pl-3 pr-5",{"translate-x-0":r.isMenuVisible}])},[qe("button",{class:"md:hidden h-12 w-12 grid place-items-center",onClick:t[1]||(t[1]=(...l)=>o.toggleMenu&&o.toggleMenu(...l))},[oe(i)]),(lt(!0),fn(_e,null,el(e.links,l=>(lt(),ms(c,{key:l.id,to:{path:l.path},class:jt(["block px-5 py-3 font-semibold rounded-xl min-w-48 text-white md:text-center",["hover:bg-[#5f5f5f]"]])},{default:Jr(()=>[vo(Zo(l.text),1)]),_:2},1032,["to"]))),128))],2)]),Ui(qe("div",{onClick:t[2]||(t[2]=(...l)=>o.toggleMenu&&o.toggleMenu(...l)),class:"absolute top-0 left-0 z-10 h-screen w-screen bg-[rgba(0,0,0,0.5)]"},null,512),[[jl,r.isMenuVisible]])],64)}const jo=Ho(pu,[["render",mu],["__scopeId","data-v-2ec6665c"]]),_u={components:{NavBar:jo}},yu=Object.assign(_u,{__name:"App",setup(e){return(t,n)=>(lt(),fn("div",null,[oe(jo,{class:"overflow-hidden text-white"}),oe(it($o))]))}}),bu="modulepreload",vu=function(e){return"/GDSC-ai-stock/"+e},_r={},Xt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(c=>{if(c=vu(c),c in _r)return;_r[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":bu,l||(f.as="script",f.crossOrigin=""),f.href=c,i&&f.setAttribute("nonce",i),document.head.appendChild(f),l)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Eu=iu({history:$c("/GDSC-ai-stock/"),routes:[{path:"/",name:"Home",component:()=>Xt(()=>import("./Home-DHcqi0tC.js"),__vite__mapDeps([0,1]))},{path:"/EarningCall",name:"EarningCall",component:()=>Xt(()=>import("./EarningCall-PuAmtw16.js"),__vite__mapDeps([2,3,1]))},{path:"/News",name:"News",component:()=>Xt(()=>import("./News-BJxs9Uej.js"),__vite__mapDeps([4,3,1]))},{path:"/Tweets",name:"Tweets",component:()=>Xt(()=>import("./Tweets-B72kvkud.js"),__vite__mapDeps([5,3,1]))}]}),Vo=sc(yu);Vo.use(Eu);Vo.mount("#app");export{_e as F,Ho as _,qe as a,oe as b,fn as c,Ru as d,el as e,ms as f,xu as g,vo as h,wu as i,jt as n,lt as o,Ls as r,Zo as t,Jr as w}; + */const pt=typeof document<"u";function ic(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const q=Object.assign;function Hn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ce(r)?r.map(e):e(r)}return n}const $t=()=>{},Ce=Array.isArray,Co=/#/g,lc=/&/g,cc=/\//g,uc=/=/g,fc=/\?/g,So=/\+/g,ac=/%5B/g,dc=/%5D/g,Po=/%5E/g,hc=/%60/g,Oo=/%7B/g,pc=/%7C/g,Ao=/%7D/g,gc=/%20/g;function ys(e){return encodeURI(""+e).replace(pc,"|").replace(ac,"[").replace(dc,"]")}function mc(e){return ys(e).replace(Oo,"{").replace(Ao,"}").replace(Po,"^")}function Jn(e){return ys(e).replace(So,"%2B").replace(gc,"+").replace(Co,"%23").replace(lc,"%26").replace(hc,"`").replace(Oo,"{").replace(Ao,"}").replace(Po,"^")}function _c(e){return Jn(e).replace(uc,"%3D")}function yc(e){return ys(e).replace(Co,"%23").replace(fc,"%3F")}function bc(e){return e==null?"":yc(e).replace(cc,"%2F")}function Dt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vc=/\/$/,Ec=e=>e.replace(vc,"");function jn(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=Cc(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Dt(i)}}function xc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function tr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Et(t.matched[s],n.matched[r])&&To(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Et(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function To(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Rc(e[n],t[n]))return!1;return!0}function Rc(e,t){return Ce(e)?nr(e,t):Ce(t)?nr(t,e):e===t}function nr(e,t){return Ce(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Cc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}var Kt;(function(e){e.pop="pop",e.push="push"})(Kt||(Kt={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function Sc(e){if(!e)if(pt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ec(e)}const Pc=/^[^#]+#/;function Oc(e,t){return e.replace(Pc,"#")+t}function Ac(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Pn=()=>({left:window.scrollX,top:window.scrollY});function Tc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ac(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sr(e,t){return(history.state?history.state.position-t:-1)+e}const Zn=new Map;function Mc(e,t){Zn.set(e,t)}function Ic(e){const t=Zn.get(e);return Zn.delete(e),t}let Lc=()=>location.protocol+"//"+location.host;function Mo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),tr(l,"")}return tr(n,e)+s+r}function Nc(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const b=Mo(e,location),O=n.value,L=t.value;let H=0;if(p){if(n.value=b,t.value=p,i&&i===O){i=null;return}H=L?p.position-L.position:0}else s(b);r.forEach(T=>{T(n.value,O,{delta:H,type:Kt.pop,direction:H?H>0?Ht.forward:Ht.back:Ht.unknown})})};function l(){i=n.value}function d(p){r.push(p);const b=()=>{const O=r.indexOf(p);O>-1&&r.splice(O,1)};return o.push(b),b}function f(){const{history:p}=window;p.state&&p.replaceState(q({},p.state,{scroll:Pn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:d,destroy:h}}function rr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Pn():null}}function Fc(e){const{history:t,location:n}=window,s={value:Mo(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,d,f){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Lc()+e+l;try{t[f?"replaceState":"pushState"](d,"",p),r.value=d}catch(b){console.error(b),n[f?"replace":"assign"](p)}}function i(l,d){const f=q({},t.state,rr(r.value.back,l,r.value.forward,!0),d,{position:r.value.position});o(l,f,!0),s.value=l}function c(l,d){const f=q({},r.value,t.state,{forward:l,scroll:Pn()});o(f.current,f,!0);const h=q({},rr(s.value,l,null),{position:f.position+1},d);o(l,h,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function $c(e){e=Sc(e);const t=Fc(e),n=Nc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=q({location:"",base:e,go:s,createHref:Oc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Hc(e){return typeof e=="string"||e&&typeof e=="object"}function Io(e){return typeof e=="string"||typeof e=="symbol"}const ke={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Lo=Symbol("");var or;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(or||(or={}));function xt(e,t){return q(new Error,{type:e,[Lo]:!0},t)}function Fe(e,t){return e instanceof Error&&Lo in e&&(t==null||!!(e.type&t))}const ir="[^/]+?",jc={sensitive:!1,strict:!1,start:!0,end:!0},Vc=/[.+*?^${}()[\]/\\]/g;function Bc(e,t){const n=q({},jc,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const f=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function kc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Dc={type:0,value:""},Kc=/[a-zA-Z0-9_]/;function Wc(e){if(!e)return[[]];if(e==="/")return[[Dc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${n})/"${d}": ${b}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,d="",f="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=l}for(;c{i(N)}:$t}function i(f){if(Io(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function c(){return n}function l(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!No(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!ur(f)&&s.set(f.record.name,f)}function d(f,h){let p,b={},O,L;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw xt(1,{location:f});L=p.record.name,b=q(cr(h.params,p.keys.filter(N=>!N.optional).concat(p.parent?p.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),f.params&&cr(f.params,p.keys.map(N=>N.name))),O=p.stringify(b)}else if(f.path!=null)O=f.path,p=n.find(N=>N.re.test(O)),p&&(b=p.parse(O),L=p.record.name);else{if(p=h.name?s.get(h.name):n.find(N=>N.re.test(h.path)),!p)throw xt(1,{location:f,currentLocation:h});L=p.record.name,b=q({},h.params,f.params),O=p.stringify(b)}const H=[];let T=p;for(;T;)H.unshift(T.record),T=T.parent;return{name:L,path:O,params:b,matched:H,meta:Yc(H)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function cr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Gc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Qc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Qc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ur(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yc(e){return e.reduce((t,n)=>q(t,n.meta),{})}function fr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function No(e,t){return t.children.some(n=>n===e||No(e,n))}function Jc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Jn(o)):[s&&Jn(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Zc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ce(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xc=Symbol(""),dr=Symbol(""),bs=Symbol(""),Fo=Symbol(""),Xn=Symbol("");function At(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ze(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((c,l)=>{const d=p=>{p===!1?l(xt(4,{from:n,to:t})):p instanceof Error?l(p):Hc(p)?l(xt(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),c())},f=o(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(f);e.length<3&&(h=h.then(d)),h.catch(p=>l(p))})}function Vn(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const c in i.components){let l=i.components[c];if(!(t!=="beforeRouteEnter"&&!i.instances[c]))if(eu(l)){const f=(l.__vccOpts||l)[t];f&&o.push(ze(f,n,s,i,c,r))}else{let d=l();o.push(()=>d.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${c}" at "${i.path}"`));const h=ic(f)?f.default:f;i.components[c]=h;const b=(h.__vccOpts||h)[t];return b&&ze(b,n,s,i,c,r)()}))}}return o}function eu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function hr(e){const t=He(bs),n=He(Fo),s=xe(()=>t.resolve(it(e.to))),r=xe(()=>{const{matched:l}=s.value,{length:d}=l,f=l[d-1],h=n.matched;if(!f||!h.length)return-1;const p=h.findIndex(Et.bind(null,f));if(p>-1)return p;const b=pr(l[d-2]);return d>1&&pr(f)===b&&h[h.length-1].path!==b?h.findIndex(Et.bind(null,l[d-2])):p}),o=xe(()=>r.value>-1&&ru(n.params,s.value.params)),i=xe(()=>r.value>-1&&r.value===n.matched.length-1&&To(n.params,s.value.params));function c(l={}){return su(l)?t[it(e.replace)?"replace":"push"](it(e.to)).catch($t):Promise.resolve()}return{route:s,href:xe(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const tu=so({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:hr,setup(e,{slots:t}){const n=bn(hr(e)),{options:s}=He(bs),r=xe(()=>({[gr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[gr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:wo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),nu=tu;function su(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ru(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ce(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function pr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const gr=(e,t,n)=>e??t??n,ou=so({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=He(Xn),r=xe(()=>e.route||s.value),o=He(dr,0),i=xe(()=>{let d=it(o);const{matched:f}=r.value;let h;for(;(h=f[d])&&!h.components;)d++;return d}),c=xe(()=>r.value.matched[i.value]);nn(dr,xe(()=>i.value+1)),nn(Xc,c),nn(Xn,r);const l=xi();return tn(()=>[l.value,c.value,e.name],([d,f,h],[p,b,O])=>{f&&(f.instances[h]=d,b&&b!==f&&d&&d===p&&(f.leaveGuards.size||(f.leaveGuards=b.leaveGuards),f.updateGuards.size||(f.updateGuards=b.updateGuards))),d&&f&&(!b||!Et(f,b)||!p)&&(f.enterCallbacks[h]||[]).forEach(L=>L(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,h=c.value,p=h&&h.components[f];if(!p)return mr(n.default,{Component:p,route:d});const b=h.props[f],O=b?b===!0?d.params:typeof b=="function"?b(d):b:null,H=wo(p,q({},O,t,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(h.instances[f]=null)},ref:l}));return mr(n.default,{Component:H,route:d})||H}}});function mr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $o=ou;function iu(e){const t=qc(e.routes,e),n=e.parseQuery||Jc,s=e.stringifyQuery||ar,r=e.history,o=At(),i=At(),c=At(),l=wi(ke);let d=ke;pt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Hn.bind(null,_=>""+_),h=Hn.bind(null,bc),p=Hn.bind(null,Dt);function b(_,S){let R,A;return Io(_)?(R=t.getRecordMatcher(_),A=S):A=_,t.addRoute(A,R)}function O(_){const S=t.getRecordMatcher(_);S&&t.removeRoute(S)}function L(){return t.getRoutes().map(_=>_.record)}function H(_){return!!t.getRecordMatcher(_)}function T(_,S){if(S=q({},S||l.value),typeof _=="string"){const a=jn(n,_,S.path),g=t.resolve({path:a.path},S),y=r.createHref(a.fullPath);return q(a,g,{params:p(g.params),hash:Dt(a.hash),redirectedFrom:void 0,href:y})}let R;if(_.path!=null)R=q({},_,{path:jn(n,_.path,S.path).path});else{const a=q({},_.params);for(const g in a)a[g]==null&&delete a[g];R=q({},_,{params:h(a)}),S.params=h(S.params)}const A=t.resolve(R,S),z=_.hash||"";A.params=f(p(A.params));const X=xc(s,q({},_,{hash:mc(z),path:A.path})),u=r.createHref(X);return q({fullPath:X,hash:z,query:s===ar?Zc(_.query):_.query||{}},A,{redirectedFrom:void 0,href:u})}function N(_){return typeof _=="string"?jn(n,_,l.value.path):q({},_)}function V(_,S){if(d!==_)return xt(8,{from:S,to:_})}function K(_){return fe(_)}function ee(_){return K(q(N(_),{replace:!0}))}function B(_){const S=_.matched[_.matched.length-1];if(S&&S.redirect){const{redirect:R}=S;let A=typeof R=="function"?R(_):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=N(A):{path:A},A.params={}),q({query:_.query,hash:_.hash,params:A.path!=null?{}:_.params},A)}}function fe(_,S){const R=d=T(_),A=l.value,z=_.state,X=_.force,u=_.replace===!0,a=B(R);if(a)return fe(q(N(a),{state:typeof a=="object"?q({},z,a.state):z,force:X,replace:u}),S||R);const g=R;g.redirectedFrom=S;let y;return!X&&wc(s,A,R)&&(y=xt(16,{to:g,from:A}),Oe(A,A,!0,!1)),(y?Promise.resolve(y):Se(g,A)).catch(m=>Fe(m)?Fe(m,2)?m:Be(m):W(m,g,A)).then(m=>{if(m){if(Fe(m,2))return fe(q({replace:u},N(m.to),{state:typeof m.to=="object"?q({},z,m.to.state):z,force:X}),S||g)}else m=Xe(g,A,!0,u,z);return Ve(g,A,m),m})}function ye(_,S){const R=V(_,S);return R?Promise.reject(R):Promise.resolve()}function Ze(_){const S=dt.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(_):_()}function Se(_,S){let R;const[A,z,X]=lu(_,S);R=Vn(A.reverse(),"beforeRouteLeave",_,S);for(const a of A)a.leaveGuards.forEach(g=>{R.push(ze(g,_,S))});const u=ye.bind(null,_,S);return R.push(u),le(R).then(()=>{R=[];for(const a of o.list())R.push(ze(a,_,S));return R.push(u),le(R)}).then(()=>{R=Vn(z,"beforeRouteUpdate",_,S);for(const a of z)a.updateGuards.forEach(g=>{R.push(ze(g,_,S))});return R.push(u),le(R)}).then(()=>{R=[];for(const a of X)if(a.beforeEnter)if(Ce(a.beforeEnter))for(const g of a.beforeEnter)R.push(ze(g,_,S));else R.push(ze(a.beforeEnter,_,S));return R.push(u),le(R)}).then(()=>(_.matched.forEach(a=>a.enterCallbacks={}),R=Vn(X,"beforeRouteEnter",_,S,Ze),R.push(u),le(R))).then(()=>{R=[];for(const a of i.list())R.push(ze(a,_,S));return R.push(u),le(R)}).catch(a=>Fe(a,8)?a:Promise.reject(a))}function Ve(_,S,R){c.list().forEach(A=>Ze(()=>A(_,S,R)))}function Xe(_,S,R,A,z){const X=V(_,S);if(X)return X;const u=S===ke,a=pt?history.state:{};R&&(A||u?r.replace(_.fullPath,q({scroll:u&&a&&a.scroll},z)):r.push(_.fullPath,z)),l.value=_,Oe(_,S,R,u),Be()}let Pe;function Ct(){Pe||(Pe=r.listen((_,S,R)=>{if(!zt.listening)return;const A=T(_),z=B(A);if(z){fe(q(z,{replace:!0}),A).catch($t);return}d=A;const X=l.value;pt&&Mc(sr(X.fullPath,R.delta),Pn()),Se(A,X).catch(u=>Fe(u,12)?u:Fe(u,2)?(fe(u.to,A).then(a=>{Fe(a,20)&&!R.delta&&R.type===Kt.pop&&r.go(-1,!1)}).catch($t),Promise.reject()):(R.delta&&r.go(-R.delta,!1),W(u,A,X))).then(u=>{u=u||Xe(A,X,!1),u&&(R.delta&&!Fe(u,8)?r.go(-R.delta,!1):R.type===Kt.pop&&Fe(u,20)&&r.go(-1,!1)),Ve(A,X,u)}).catch($t)}))}let ft=At(),ne=At(),G;function W(_,S,R){Be(_);const A=ne.list();return A.length?A.forEach(z=>z(_,S,R)):console.error(_),Promise.reject(_)}function Ne(){return G&&l.value!==ke?Promise.resolve():new Promise((_,S)=>{ft.add([_,S])})}function Be(_){return G||(G=!_,Ct(),ft.list().forEach(([S,R])=>_?R(_):S()),ft.reset()),_}function Oe(_,S,R,A){const{scrollBehavior:z}=e;if(!pt||!z)return Promise.resolve();const X=!R&&Ic(sr(_.fullPath,0))||(A||!R)&&history.state&&history.state.scroll||null;return Wr().then(()=>z(_,S,X)).then(u=>u&&Tc(u)).catch(u=>W(u,_,S))}const de=_=>r.go(_);let at;const dt=new Set,zt={currentRoute:l,listening:!0,addRoute:b,removeRoute:O,hasRoute:H,getRoutes:L,resolve:T,options:e,push:K,replace:ee,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ne.add,isReady:Ne,install(_){const S=this;_.component("RouterLink",nu),_.component("RouterView",$o),_.config.globalProperties.$router=S,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>it(l)}),pt&&!at&&l.value===ke&&(at=!0,K(r.location).catch(z=>{}));const R={};for(const z in ke)Object.defineProperty(R,z,{get:()=>l.value[z],enumerable:!0});_.provide(bs,S),_.provide(Fo,$r(R)),_.provide(Xn,l);const A=_.unmount;dt.add(_),_.unmount=function(){dt.delete(_),dt.size<1&&(d=ke,Pe&&Pe(),Pe=null,l.value=ke,at=!1,G=!1),A()}}};function le(_){return _.reduce((S,R)=>S.then(()=>Ze(R)),Promise.resolve())}return zt}function lu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iEt(d,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(d=>Et(d,l))||r.push(l))}return[n,s,r]}const Ho=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},cu={},uu={xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"#e8eaed"},fu=qe("path",{d:"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"},null,-1),au=[fu];function du(e,t){return lt(),fn("svg",uu,au)}const hu=Ho(cu,[["render",du]]),pu={components:{IconMenu:hu},data(){return{isMenuVisible:!1}},beforeCreate(){this.links=[{id:"Home",path:"/",text:"Home"},{id:"EarningCall",path:"/EarningCall",text:"EarningCall"},{id:"News",path:"/News",text:"News"},{id:"Tweets",path:"/Tweets",text:"Tweets"}]},methods:{toggleMenu(){this.isMenuVisible=!this.isMenuVisible}}},gu={class:"fixed md:static top-0 left-0 mb-2 z-20 md:w-[100vw] md:border-b md:border-black/5 md:border-solid"};function mu(e,t,n,s,r,o){const i=Ls("IconMenu"),c=Ls("router-link");return lt(),fn(_e,null,[qe("nav",gu,[qe("button",{class:"bg-[rgba(63,63,63,0.9)] rounded-lg h-12 w-12 grid place-items-center ml-3 mt-2 md:hidden",onClick:t[0]||(t[0]=(...l)=>o.toggleMenu&&o.toggleMenu(...l))},[oe(i)]),qe("div",{class:jt(["md:static md:flex md:justify-center fixed z-20 top-0 left-0 h-screen md:h-auto md:translate-x-0 -translate-x-full transition-transform bg-[#2f2f2f] pl-3 pr-5",{"translate-x-0":r.isMenuVisible}])},[qe("button",{class:"md:hidden h-12 w-12 grid place-items-center mt-2",onClick:t[1]||(t[1]=(...l)=>o.toggleMenu&&o.toggleMenu(...l))},[oe(i)]),(lt(!0),fn(_e,null,el(e.links,l=>(lt(),ms(c,{key:l.id,to:{path:l.path},class:jt(["block px-5 py-3 font-semibold rounded-xl min-w-48 text-white md:text-center",["hover:bg-[#5f5f5f]"]])},{default:Jr(()=>[vo(Zo(l.text),1)]),_:2},1032,["to"]))),128))],2)]),Ui(qe("div",{onClick:t[2]||(t[2]=(...l)=>o.toggleMenu&&o.toggleMenu(...l)),class:"absolute top-0 left-0 z-10 h-screen w-screen bg-[rgba(0,0,0,0.5)]"},null,512),[[jl,r.isMenuVisible]])],64)}const jo=Ho(pu,[["render",mu],["__scopeId","data-v-446f77bf"]]),_u={components:{NavBar:jo}},yu=Object.assign(_u,{__name:"App",setup(e){return(t,n)=>(lt(),fn("div",null,[oe(jo,{class:"overflow-hidden text-white"}),oe(it($o))]))}}),bu="modulepreload",vu=function(e){return"/GDSC-ai-stock/"+e},_r={},Xt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(c=>{if(c=vu(c),c in _r)return;_r[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":bu,l||(f.as="script",f.crossOrigin=""),f.href=c,i&&f.setAttribute("nonce",i),document.head.appendChild(f),l)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Eu=iu({history:$c("/GDSC-ai-stock/"),routes:[{path:"/",name:"Home",component:()=>Xt(()=>import("./Home-CTgq2R8G.js"),__vite__mapDeps([0,1]))},{path:"/EarningCall",name:"EarningCall",component:()=>Xt(()=>import("./EarningCall-DvwBNw8-.js"),__vite__mapDeps([2,3,1]))},{path:"/News",name:"News",component:()=>Xt(()=>import("./News-BOTyYPIr.js"),__vite__mapDeps([4,3,1]))},{path:"/Tweets",name:"Tweets",component:()=>Xt(()=>import("./Tweets-khv9Zs2d.js"),__vite__mapDeps([5,3,1]))}]}),Vo=sc(yu);Vo.use(Eu);Vo.mount("#app");export{_e as F,Ho as _,qe as a,oe as b,fn as c,Ru as d,el as e,ms as f,xu as g,Ui as h,wu as i,jt as n,lt as o,Ls as r,Zo as t,jl as v,Jr as w}; diff --git a/assets/index-7106Kb8C.css b/assets/index-pUEc7Y0c.css similarity index 93% rename from assets/index-7106Kb8C.css rename to assets/index-pUEc7Y0c.css index 1c472f9..ce78a7d 100644 --- a/assets/index-7106Kb8C.css +++ b/assets/index-pUEc7Y0c.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.v-enter-active[data-v-2ec6665c],.v-leave-active[data-v-2ec6665c]{transition:opacity .5s ease}.v-enter-from[data-v-2ec6665c],.v-leave-to[data-v-2ec6665c]{opacity:0}body{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.z-20{z-index:20}.col-span-2{grid-column:span 2 / span 2}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-12{height:3rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[400px\]{height:400px}.h-full{height:100%}.h-screen{height:100vh}.min-h-20{min-height:5rem}.min-h-24{min-height:6rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-7{width:1.75rem}.w-\[84vw\]{width:84vw}.w-\[94vw\]{width:94vw}.w-full{width:100%}.w-screen{width:100vw}.min-w-48{min-width:12rem}.flex-grow{flex-grow:1}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.grid-rows-\[repeat\(2\,auto\)\]{grid-template-rows:repeat(2,auto)}.flex-col{flex-direction:column}.place-content-center{place-content:center}.place-items-center{place-items:center}.justify-between{justify-content:space-between}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.place-self-center{place-self:center}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-solid{border-style:solid}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-white\/5{border-color:#ffffff0d}.bg-\[\#1387f8\]{--tw-bg-opacity: 1;background-color:rgb(19 135 248 / var(--tw-bg-opacity))}.bg-\[\#2f2f2f\]{--tw-bg-opacity: 1;background-color:rgb(47 47 47 / var(--tw-bg-opacity))}.bg-\[\#3f3f3f\]{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}.bg-\[\#4a4a4a\]{--tw-bg-opacity: 1;background-color:rgb(74 74 74 / var(--tw-bg-opacity))}.bg-\[\#5b5b5b\]{--tw-bg-opacity: 1;background-color:rgb(91 91 91 / var(--tw-bg-opacity))}.bg-\[rgba\(0\,0\,0\,0\.5\)\]{background-color:#00000080}.fill-\[\#fefefe\]{fill:#fefefe}.fill-none{fill:none}.stroke-blue-400{stroke:#60a5fa}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-9{padding-left:2.25rem}.pr-5{padding-right:1.25rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-\[\#d0d0d0\]{--tw-text-opacity: 1;color:rgb(208 208 208 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.last-of-type\:mb-0:last-of-type{margin-bottom:0}.hover\:bg-\[\#5f5f5f\]:hover{--tw-bg-opacity: 1;background-color:rgb(95 95 95 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:static{position:static}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:w-\[100vw\]{width:100vw}.md\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-\[3fr\,1fr\]{grid-template-columns:3fr 1fr}.md\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.md\:justify-center{justify-content:center}.md\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.md\:gap-y-4{row-gap:1rem}.md\:border-b{border-bottom-width:1px}.md\:border-solid{border-style:solid}.md\:border-black\/5{border-color:#0000000d}.md\:text-center{text-align:center}}/*! +@charset "UTF-8";.v-enter-active[data-v-446f77bf],.v-leave-active[data-v-446f77bf]{transition:opacity .5s ease}.v-enter-from[data-v-446f77bf],.v-leave-to[data-v-446f77bf]{opacity:0}body{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.z-20{z-index:20}.col-span-2{grid-column:span 2 / span 2}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-12{height:3rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[400px\]{height:400px}.h-full{height:100%}.h-screen{height:100vh}.min-h-24{min-height:6rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-7{width:1.75rem}.w-\[94vw\]{width:94vw}.w-full{width:100%}.w-screen{width:100vw}.min-w-48{min-width:12rem}.flex-grow{flex-grow:1}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.grid-rows-\[repeat\(2\,auto\)\]{grid-template-rows:repeat(2,auto)}.grid-rows-\[repeat\(auto-fill\,1fr\)\]{grid-template-rows:repeat(auto-fill,1fr)}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.place-self-center{place-self:center}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-solid{border-style:solid}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-white\/5{border-color:#ffffff0d}.bg-\[\#1387f8\]{--tw-bg-opacity: 1;background-color:rgb(19 135 248 / var(--tw-bg-opacity))}.bg-\[\#2f2f2f\]{--tw-bg-opacity: 1;background-color:rgb(47 47 47 / var(--tw-bg-opacity))}.bg-\[\#3f3f3f\]{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}.bg-\[\#4a4a4a\]{--tw-bg-opacity: 1;background-color:rgb(74 74 74 / var(--tw-bg-opacity))}.bg-\[\#5b5b5b\]{--tw-bg-opacity: 1;background-color:rgb(91 91 91 / var(--tw-bg-opacity))}.bg-\[rgba\(0\,0\,0\,0\.5\)\]{background-color:#00000080}.bg-\[rgba\(63\,63\,63\,0\.9\)\]{background-color:#3f3f3fe6}.fill-\[\#fefefe\]{fill:#fefefe}.fill-none{fill:none}.stroke-blue-400{stroke:#60a5fa}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-3{padding-bottom:.75rem}.pl-3{padding-left:.75rem}.pl-9{padding-left:2.25rem}.pr-5{padding-right:1.25rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-\[\#d0d0d0\]{--tw-text-opacity: 1;color:rgb(208 208 208 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-\[\#5f5f5f\]:hover{--tw-bg-opacity: 1;background-color:rgb(95 95 95 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:static{position:static}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:w-\[100vw\]{width:100vw}.md\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[3fr\,1fr\]{grid-template-columns:3fr 1fr}.md\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.md\:justify-center{justify-content:center}.md\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.md\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.md\:gap-y-4{row-gap:1rem}.md\:border-b{border-bottom-width:1px}.md\:border-solid{border-style:solid}.md\:border-black\/5{border-color:#0000000d}.md\:text-center{text-align:center}}/*! * animate.css - https://animate.style/ * Version - 4.1.1 * Licensed under the MIT license - http://opensource.org/licenses/MIT diff --git a/index.html b/index.html index fc91709..414d044 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,8 @@ - - + +