@xcpcio/board-app 0.70.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +1 -1
- package/dist/assets/{Balloon.vue_vue_type_script_setup_true_lang-oEmN2FUH.js → Balloon.vue_vue_type_script_setup_true_lang-D1a_00Po.js} +1 -1
- package/dist/assets/{Board-Bhkqgu1Y.js → Board-DmHXBGpM.js} +1 -1
- package/dist/assets/{ContestStateBadge-CvO-EMgm.js → ContestStateBadge-Juu-G2PP.js} +1 -1
- package/dist/assets/{Countdown-TVEha-GX.js → Countdown-CwVTXOpj.js} +1 -1
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-DPoc3DXZ.js → DataSourceInput.vue_vue_type_script_setup_true_lang-DxhKBY5N.js} +1 -1
- package/dist/assets/{Footer-D8toReDQ.js → Footer-CmWIcxQy.js} +1 -1
- package/dist/assets/{NavBar-o5bwwfFh.js → NavBar-CAQ0Zfb0.js} +1 -1
- package/dist/assets/{Resolver-DHnKaMVV.js → Resolver-Dv0FYcPS.js} +1 -1
- package/dist/assets/{RightArrowIcon-DYbq8Bub.js → RightArrowIcon-C4DwAZwr.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-BdUca1-n.js → TheInput.vue_vue_type_script_setup_true_lang-DMQHMlKd.js} +1 -1
- package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-JtL4ZY65.js → Tooltip.vue_vue_type_script_setup_true_lang-Di35scD3.js} +1 -1
- package/dist/assets/{_...all_-CtqfVkht.js → _...all_-21UvOyzz.js} +1 -1
- package/dist/assets/{_...all_-DMSafAfm.js → _...all_-Dsfr3X_U.js} +1 -1
- package/dist/assets/{_name_-BmEIkMG7.js → _name_-DXkLOlmO.js} +1 -1
- package/dist/assets/{about-BR3jUE0_.js → about--qTFGfhb.js} +1 -1
- package/dist/assets/board-N2e0mLQJ.js +1 -0
- package/dist/assets/{board-layout-DbzTYtb3.js → board-layout-BN6m6Eyv.js} +1 -1
- package/dist/assets/constant-BOM5KUzF.js +1 -0
- package/dist/assets/{dayjs-DRRP86hV.js → dayjs-CT7vuQap.js} +1 -1
- package/dist/assets/{default--P8qjAUG.js → default-Dag11DBy.js} +1 -1
- package/dist/assets/{headless---RphLCU.js → headless-C5Cgkigj.js} +1 -1
- package/dist/assets/{home-CRBm3f13.js → home-B4y_hv2l.js} +1 -1
- package/dist/assets/{index-DF3noR7O.js → index-BTb5OXv2.js} +1 -1
- package/dist/assets/{index-BKVhu7Tw.js → index-C9QaXroK.js} +1 -1
- package/dist/assets/index-CKRZ2rFt.js +1 -0
- package/dist/assets/index-DYWobB2z.js +71 -0
- package/dist/assets/index-Dh5EPZBi.js +1 -0
- package/dist/assets/{index-CBwoaX68.css → index-VQCc5ge4.css} +1 -1
- package/dist/assets/{index-layout-DpgBAC2O.js → index-layout-BMaWupUy.js} +1 -1
- package/dist/assets/index-mJTIjOZ2.js +1 -0
- package/dist/assets/{pagination-CCDih46R.js → pagination-UEuwAKXF.js} +1 -1
- package/dist/assets/{person-wOxxwhEX.js → person-DuAW_NGL.js} +1 -1
- package/dist/assets/{query-Cwkn7-aW.js → query-BESLcVEP.js} +1 -1
- package/dist/assets/{rank-CzKFUPaY.js → rank-CRl1OOXt.js} +1 -1
- package/dist/assets/{test-2P7EDOc4.js → test-BSJmHTjc.js} +1 -1
- package/dist/assets/{use-vmodel-eKIPpK5B.js → use-vmodel-D6Vw3vwf.js} +1 -1
- package/dist/assets/useQueryBoardData-DHmBrLzo.js +1 -0
- package/dist/assets/{user-CgerVobA.js → user-CY1VfyaG.js} +1 -1
- package/dist/assets/{virtual_pwa-register-CeNObX1m.js → virtual_pwa-register-CAAdW0Od.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +20 -20
- package/src/components.d.ts +4 -1
- package/dist/assets/board-q5on1RUR.js +0 -1
- package/dist/assets/constant-Ds9q2BQF.js +0 -1
- package/dist/assets/index-BJ0B1S7n.js +0 -67
- package/dist/assets/index-D7Dv5u2i.js +0 -1
- package/dist/assets/index-DDXtBC57.js +0 -1
- package/dist/assets/index-DwDo-flU.js +0 -1
- package/dist/assets/useQueryBoardData-BxZkFBMO.js +0 -1
package/dist/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en-US" dir="ltr"><head><meta charset="UTF-8"/><title>Board - XCPCIO</title><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-WHLF55BJ",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><link rel="icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.
|
|
1
|
+
<!doctype html><html lang="en-US" dir="ltr"><head><meta charset="UTF-8"/><title>Board - XCPCIO</title><script>!function(e,t,a,n){e[n]=e[n]||[],e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var g=t.getElementsByTagName(a)[0],m=t.createElement(a);m.async=!0,m.src="https://www.googletagmanager.com/gtm.js?id=GTM-WHLF55BJ",g.parentNode.insertBefore(m,g)}(window,document,"script","dataLayer")</script><link rel="icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.71.0/dist/balloon-512x512.svg" type="image/svg+xml"/><link rel="mask-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.71.0/dist/balloon-512x512.svg" color="#00aba9"/><link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.71.0/dist/balloon-192x192.png"/><meta name="msapplication-TileColor" content="#00aba9"/><meta name="author" content="Dup4"/><meta name="title" content="Board - XCPCIO"/><meta name="description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta name="keywords" content="ICPC, Rank, Board, Leaderboard, ScoreBoard, Standings"/><meta property="og:site_name" content="XCPCIO"/><meta property="og:title" content="Board - XCPCIO"/><meta property="og:description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta property="og:type" content="website"/><meta property="og:image" content="https://xcpcio.com/og.png"/><meta property="og:image:type" content="image/png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta name="twitter:title" content="Board - XCPCIO"/><meta name="twitter:description" content="The ICPC Series Competition Leaderboard Visualization Engine."/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:image" content="https://xcpcio.com/og.png"/><script>function normalizePath(_){for(;_.endsWith("/");)_=_.slice(0,-1);return`${_}/`}{let _="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.71.0/dist";_=normalizePath(_),window.CDN_HOST=_,window.__toAssetUrl=_=>window.CDN_HOST+_}try{let _=__DATA_HOST__;_=normalizePath(_),window.DATA_HOST=_}catch(_){window.DATA_HOST="/data/"}try{let _=__DATA_REGION__;window.DATA_REGION=_}catch(_){window.DATA_REGION="CN"}try{let _=__DEFAULT_LANG__;window.DEFAULT_LANG=_}catch(_){window.DEFAULT_LANG="en"}</script><script>!function(){localStorage.getItem("vueuse-color-scheme")||localStorage.setItem("vueuse-color-scheme","light");const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,o=localStorage.getItem("vueuse-color-scheme")||"auto";("dark"===o||e&&"light"!==o)&&document.documentElement.classList.toggle("dark",!0)}()</script><script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.71.0/dist/assets/index-DYWobB2z.js"></script><link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@xcpcio/board-app@0.71.0/dist/assets/index-VQCc5ge4.css"><link rel="manifest" href="/manifest.webmanifest"></head><body class="font-sans"><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WHLF55BJ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div id="app"></div><noscript>This website requires JavaScript to function properly. Please enable JavaScript to continue.</noscript><script>try{var umamiJSUrl=__UMAMI_JS_URL__,umamiWebsiteId=__UMAMI_WEBSITE_ID__;!function(){var e=document.createElement("script");e.src=umamiJSUrl,e.defer=!0,e.setAttribute("data-website-id",umamiWebsiteId);var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}try{var baiduAnalyticsId=__BAIDU_ANALYTICS_ID__,_hmt=_hmt||[];!function(){var e=document.createElement("script");e.src=`https://hm.baidu.com/hm.js?${baiduAnalyticsId}`;var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()}catch(e){}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as C,f as i,m as c,p as N,u as D,c as l,o as s,q as j,h as e,n as F,b as o,K as B,k as d,A as O,C as V,F as z,E as I,G as R,s as U}from"./index-
|
|
1
|
+
import{d as C,f as i,m as c,p as N,u as D,c as l,o as s,q as j,h as e,n as F,b as o,K as B,k as d,A as O,C as V,F as z,E as I,G as R,s as U}from"./index-DYWobB2z.js";import{B as w}from"./constant-BOM5KUzF.js";import{c as A,a as q,B as G,R as K}from"./rank-CRl1OOXt.js";import{c as M}from"./query-BESLcVEP.js";import{u as Q}from"./useQueryBoardData-DHmBrLzo.js";const X={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":""},H={class:"resolver-team-name",truncate:"","overflow-hidden":""},J={"w-32":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},P=C({__name:"BalloonBlock",props:{index:null,balloon:null},setup(p){const f=p,b=i(()=>f.index),n=i(()=>f.balloon),v=c(null),k=N(v),{locale:_}=D(),a=i(()=>_.value);function x(t){return[t.location,t.organization,t.name.getOrDefault(a.value)].filter(y=>y).join(" - ")}const u=i(()=>n.value.problem.balloonColor);return(t,m)=>(s(),l("div",{ref_key:"el",ref:v,"h-24":""},[e(k)?(s(),l("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:F([e(b)%2===0?"bg-resolver-bg-0":"bg-resolver-bg-1"])},[o("div",{"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":"",style:B({backgroundColor:e(u).background_color})},[o("div",{style:B({color:e(u).color})},d(e(n).problem.label),5)],4),o("div",X,[o("div",H,d(x(e(n).team)),1),m[0]||(m[0]=o("div",{flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},null,-1))]),o("div",J,d(e(n).submission.timestampToMinute),1)],2)):j("",!0)],512))}}),W={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},Y={key:0},Z={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},ee={key:0},oe={key:1},se={flex:"","flex-col":"","justify-between":""},ie=C({__name:"Balloon",props:{dataSourceUrl:null},setup(p){const f=p,b=O(w),{t:n,locale:v}=D(),k=i(()=>v.value),_=c(!1),a=c({}),x=c([]),u=c([]),t=c({}),m=U();function y(){const h=new K(a.value,x.value,u.value);h.buildBalloons(),t.value=h}const{data:r,isError:S,error:T}=Q(f.dataSourceUrl,m);V(r,async()=>{r.value===null||r.value===void 0||(a.value=M(r.value?.contest),b.value=`${a.value.name.getOrDefault(k.value)} | ${w}`,x.value=A(r.value?.teams),u.value=q(r.value?.submissions,a.value),y(),_.value=!0)},{immediate:!0});const $=i(()=>t.value.balloons.sort(G.compare).reverse().slice(0,256));return(h,te)=>{const E=P;return s(),l("div",W,[e(_)?(s(),l("div",oe,[o("div",se,[(s(!0),l(z,null,I(e($),(g,L)=>(s(),R(E,{key:g.key,index:L,balloon:g},null,8,["index","balloon"]))),128))])])):(s(),l("div",Y,[o("div",Z,[o("div",null,d(e(n)("common.loading"))+"... ",1),e(S)?(s(),l("div",ee,d(e(T)),1)):j("",!0)])]))])}}});export{ie as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Wo,a as Fs,T as Bd,h as pi,P as Ud,b as $d}from"./pagination-
|
|
1
|
+
import{_ as Wo,a as Fs,T as Bd,h as pi,P as Ud,b as $d}from"./pagination-UEuwAKXF.js";import{_ as ws,D as zd}from"./Tooltip.vue_vue_type_script_setup_true_lang-Di35scD3.js";import{_ as l1}from"./TheInput.vue_vue_type_script_setup_true_lang-DMQHMlKd.js";import{i as c1,S as Fa,b as Hd,d as Wd,G as Vn,e as jd,f as f1,g as Vd,h as jf,T as Gd,j as Yd,c as Kd,a as qd,R as Jd}from"./rank-CRl1OOXt.js";import{L as Xd,M as jo,d as cr,f as _e,m as St,c as de,o as ie,b as D,k as Oe,h as C,K as Bn,q as nt,a as bt,w as dr,v as Qd,N as Ho,O as Zd,z as Nr,u as Gr,C as ta,G as rn,P as Vo,g as $a,Q as u1,T as Vf,F as Fr,E as Ar,R as fi,S as h1,U as d1,H as e2,n as lr,j as cn,V as t2,p as r2,W as p1,J as n2,A as a2,X as s2,Y as Gf,s as i2,Z as o2,$ as l2,D as c2}from"./index-DYWobB2z.js";import{_ as f2}from"./use-vmodel-D6Vw3vwf.js";import{_ as wa,i as m1,d as g1,M as Tn,a as u2,e as h2,f as d2,g as p2,c as m2,h as g2}from"./query-BESLcVEP.js";import{_ as kn}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{d as v2,g as v1}from"./dayjs-CT7vuQap.js";import{g as b1,_ as b2,a as F2}from"./ContestStateBadge-Juu-G2PP.js";import{D as w2,T as Yf}from"./constant-BOM5KUzF.js";import{u as x2}from"./useQueryBoardData-DHmBrLzo.js";class Kf{constructor(){}convert(R){let d="";d+=`@contest "${R.contest.name.getOrDefault()}"
|
|
2
2
|
@contlen ${Math.floor(v2.duration(R.contest.endTime.diff(R.contest.startTime)).asMinutes())}
|
|
3
3
|
@problems ${R.contest.problems.length}
|
|
4
4
|
@teams ${R.teams.length+100}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as u,j as A}from"./query-
|
|
1
|
+
import{h as u,j as A}from"./query-BESLcVEP.js";import{d as F,f as B,m as n,W as G,D as V,c as v,o as g,b as c,K as D,n as E,h as x,q as I,F as X,k}from"./index-DYWobB2z.js";import{c as j,g as q}from"./dayjs-CT7vuQap.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";function ae(s,e){return s?.url?!e||s.url.startsWith("http")?s.url:`${e}/${s.url}`:s?.base64?`data:image/${s.type??"png"};base64,${s.base64}`:""}const H=F({__name:"Progress",props:{width:null,state:null,needScroll:{type:Boolean},rank:null,rankOptions:null,elapsedTime:null},emits:["update:rank-options"],setup(s,{emit:e}){const t=s,M=e,h=B({get(){return t.rankOptions},set(l){M("update:rank-options",l)}}),N=B(()=>{switch(t.state){case u.PENDING:return"am-progress-bar-secondary";case u.RUNNING:return"am-progress-bar-success";case u.FROZEN:return"am-progress-bar-danger";case u.FINISHED:return"am-progress-bar-primary";case u.PAUSED:return"am-progress-bar-danger"}return""}),r=n(!1),S=n(!1),m=n(0),_=n(t.width),T=n(0),d=A(),o=n(null),L=n(null),p=n(null),W=n(null),R=n(null);function U(l){S.value=!0;const f=l.clientX-p.value.offsetLeft,b=w=>{if(!S.value)return;r.value=!0;let a=w.clientX-f;a=Math.max(a,0),a=Math.min(a,o.value.offsetWidth-p.value.offsetWidth);const $=o.value.offsetWidth*Number.parseInt(L.value.style?.width)*.01;a>=$&&(a=$,r.value=!1);let i=0;a>0&&(i=Math.round((a+p.value.offsetWidth)/o.value.offsetWidth*1e4)),i>1e4&&(i=1e4),i===1e4&&(r.value=!1),window.getSelection()?.removeAllRanges(),m.value=i,T.value=a,_.value=i*.01},y=()=>{document.removeEventListener("mouseup",y),document.removeEventListener("mousemove",b),S.value=!1,r.value===!0?(d.value=m.value,h.value?.setWidth(m.value,t.rank.contest)):(d.value=void 0,h.value?.disableFilterSubmissionByTimestamp())};document.addEventListener("mousemove",b),document.addEventListener("mouseup",y)}function z(){const l=t.rank.contest.getStartTime(),f=t.rank.contest.getEndTime(),b=f.unix()-l.unix(),y=Math.floor(b*_.value*.01),w=j(),a=Math.max(0,Math.min(w.unix(),f.unix())-l.unix());return q(Math.min(y,a))}function O(){return r.value===!0?z():t.elapsedTime}function P(){return r.value===!0?`${Math.max(0,T.value)}px`:`max(calc(0%), min(calc(${t.width}%), calc(100% - 10px)))`}return G(()=>{t.needScroll===!0&&(o.value.onmouseenter=()=>{W.value.classList.add("in")},o.value.onmouseleave=()=>{W.value.classList.remove("in")}),d.value!==-1?(r.value=!0,m.value=Math.max(0,Math.min(1e4,d.value)),_.value=m.value*.01,T.value=_.value*.01*o.value.offsetWidth-p.value.offsetWidth,h.value?.setWidth(d.value,t.rank.contest)):h.value?.disableFilterSubmissionByTimestamp()}),V(()=>{}),(l,f)=>(g(),v("div",{ref_key:"scroll",ref:o,class:"am-progress am-progress-striped am-active","w-full":"",style:{position:"relative"}},[c("div",{ref_key:"mask",ref:L,class:E(["am-progress-bar",[x(N)]]),style:D({width:`${t.width}%`})},[t.needScroll?(g(),v(X,{key:0},[c("div",{ref_key:"tooltip",ref:W,class:"tooltip tooltip-top",style:D({marginLeft:"-32px",bottom:"22px",left:P()})},[c("div",{ref_key:"tooltipInner",ref:R,class:"tooltip-inner"},k(O()),513)],4),c("div",{ref_key:"bar",ref:p,class:E(["am-progress-bar am-progress-cursor am-progress-scroll-size z-99",[x(N)]]),style:D({left:P()}),onMousedown:U},null,38)],64)):I("",!0)],6)],512))}}),ne=C(H,[["__scopeId","data-v-4607820e"]]),J={flex:"","flex-row":"","items-center":"","justify-center":""},K={key:0,"ml-2":""},Q={key:1,"ml-2":""},Z=F({__name:"ContestStateBadge",props:{state:null,pendingTime:null,pausedTime:null},setup(s){const e=s;return(t,M)=>(g(),v("div",J,[c("div",{class:E(["label",e.state])},null,2),c("div",null,k(e.state),1),e.pendingTime&&e.state===x(u).PENDING?(g(),v("div",K,k(e.pendingTime),1)):I("",!0),e.pausedTime&&e.state===x(u).PAUSED?(g(),v("div",Q,k(e.pausedTime),1)):I("",!0)]))}}),re=C(Z,[["__scopeId","data-v-68586c4d"]]);export{re as _,ne as a,ae as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,h as y}from"./query-
|
|
1
|
+
import{c as C,h as y}from"./query-BESLcVEP.js";import{d as S,u as k,f as N,A as w,m as l,C as T,c as o,o as n,h as t,b as a,q as D,k as c,n as d,s as E}from"./index-DYWobB2z.js";import{c as u}from"./constant-BOM5KUzF.js";import{u as I}from"./useQueryBoardData-DHmBrLzo.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";const U={class:"bg-[#323443]","text-gray-200":"","w-screen":"","h-screen":""},O={key:0},b={flex:"","flex-col":"","justify-center":"","items-center":"","w-screen":"","h-screen":"","text-xl":"",italic:""},j={key:0},F={key:1},L={flex:"","flex-col":"","items-center":"","justify-center":"","font-mono":""},P={key:0},V={key:1},$=S({__name:"Countdown",props:{dataSourceUrl:null},setup(_){const m=_,{t:f,locale:v}=k(),p=N(()=>v.value),g=w(u),s=E(),e=l({}),i=l(!1),{data:r,isError:h,error:x}=I(m.dataSourceUrl,s);return T(r,async()=>{r.value===null||r.value===void 0||(e.value=C(r.value?.contest),g.value=`${e.value.name.getOrDefault(p.value)} | ${u}`,i.value=!0)},{immediate:!0}),(q,z)=>(n(),o("div",U,[t(i)?(n(),o("div",F,[a("div",L,[a("div",{"mt-20":"","text-6xl":"",class:d([t(e).getContestState(t(s)).toString()])},c(t(e).getContestState(t(s))),3),a("div",{"mt-20":"",class:d(["text-[320px]",[t(e).getContestState(t(s)).toString()]])},[t(e).getContestState(t(s))===t(y).PENDING?(n(),o("div",P,c(t(e).getContestPendingTime(t(s))),1)):(n(),o("div",V,c(t(e).getContestElapsedTime(t(s))),1))],2)])])):(n(),o("div",O,[a("div",b,[a("div",null,c(t(f)("common.loading"))+"... ",1),t(h)?(n(),o("div",j,c(t(x)),1)):D("",!0)])]))]))}}),H=B($,[["__scopeId","data-v-22f76880"]]);export{H as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as p}from"./TheInput.vue_vue_type_script_setup_true_lang-DMQHMlKd.js";import{d as f,u as _,m as h,g as b,H as v,c as S,q as g,h as a,o as x,b as t,a as y,a2 as U,z as V,k as l}from"./index-DYWobB2z.js";import{b as k}from"./query-BESLcVEP.js";const w={key:0,class:"flex flex-col items-center"},D={"w-128":""},I=["disabled"],u="Data Source URL",K=f({__name:"DataSourceInput",setup(R){const{t:r}=_(),s=k(),e=h(s.value),c=b(),d=v();function n(){d.push(`${c.fullPath}/?data-source=${e.value.trim()}`)}return(B,o)=>{const i=p;return a(s).length===0?(x(),S("div",w,[t("div",D,[y(i,{modelValue:a(e),"onUpdate:modelValue":o[0]||(o[0]=m=>V(e)?e.value=m:null),"w-full":"",placeholder:u,autocomplete:"false",onKeydown:U(n,["enter"])},null,8,["modelValue"]),t("label",{class:"hidden",for:"input"},l(u))]),o[1]||(o[1]=t("div",{"py-2":""},null,-1)),t("div",null,[t("button",{"m-3":"","text-sm":"",btn:"",disabled:a(e).length===0,onClick:n},l(a(r)("button.go")),9,I)])])):g("",!0)}}});export{K as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as u}from"./Tooltip.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as u}from"./Tooltip.vue_vue_type_script_setup_true_lang-Di35scD3.js";import{G as m,A as f,a as _,C as p,D as T,b as A}from"./constant-BOM5KUzF.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as v,o as y,b as e,a as i,w as n,j as l,r as S,h as r,k as s}from"./index-DYWobB2z.js";const x={},R={"mt-8":"","py-4":"","md:py-8":"","lg:py-10":"","w-full":"",flex:"","justify-center":"","items-center":""},g={"text-center":"","w-full":""},D={"mb-6":"","w-full":"",flex:"","flex-wrap":"","items-center":"","justify-center":"","text-gray-900":"","dark:text-white":""},I={"mr-4":"","md:mr-6":""},N=["href"],h={flex:"","justify-center":"","items-start":"","flex-col":""},C={"mr-4":"","md:mr-6":""},G={flex:"","justify-center":"","items-start":"","flex-col":""},O={"text-sm":"","text-gray-500":"","sm:text-center":"","dark:text-gray-400":"","w-full":""};function b(o,t){const a=S("RouterLink"),d=u;return y(),v("footer",R,[e("div",g,[i(a,{flex:"","items-center":"","justify-center":"","text-2xl":"","font-semibold":"","text-gray-900":"","dark:text-white":"",to:"/"},{default:n(()=>[...t[0]||(t[0]=[e("div",{"i-ion-balloon-sharp":"","mr-4":"","h-8":""},null,-1),l(" Get more balloons ",-1)])]),_:1}),t[6]||(t[6]=e("p",{"my-6":"","text-gray-500":"","dark:text-gray-400":"","w-full":"",flex:"","justify-center":""}," The ICPC Series Competition Leaderboard Visualization Engine. ",-1)),e("ul",D,[e("li",null,[i(a,{to:"/","mr-4":"","md:mr-6":"","hover:underline":""},{default:n(()=>[...t[1]||(t[1]=[l(" Home ",-1)])]),_:1})]),e("li",null,[e("div",I,[i(d,null,{popper:n(()=>[e("div",h,[e("div",null,"Tag: "+s("APP_VERSION"in o?o.APP_VERSION:r(f)),1),e("div",null,"Sha: "+s("GITHUB_SHA"in o?o.GITHUB_SHA:r(_)),1)])]),default:n(()=>[e("a",{href:"GITHUB_URL"in o?o.GITHUB_URL:r(m),"hover:underline":"",rel:"noreferrer",target:"_blank",title:"GitHub"}," GitHub ",8,N)]),_:1})])]),e("li",null,[e("div",C,[i(d,null,{popper:n(()=>[e("div",G,[e("div",null,"CDN Host: "+s("CDN_HOST"in o?o.CDN_HOST:r(p)),1),e("div",null,"DATA Host: "+s("DATA_HOST"in o?o.DATA_HOST:r(T)),1),e("div",null,"Data Region: "+s("DATA_REGION"in o?o.DATA_REGION:r(A)),1)])]),default:n(()=>[t[2]||(t[2]=e("a",{href:"mailto:hi@dup4.com","hover:underline":""}," Contact ",-1))]),_:1})])])]),e("span",O,[t[4]||(t[4]=l("© 2020-PRESENT ",-1)),i(a,{to:"/","hover:underline":""},{default:n(()=>[...t[3]||(t[3]=[l("XCPCIO™",-1)])]),_:1}),t[5]||(t[5]=l(". All Rights Reserved.",-1))])])])}const P=H(x,[["render",b]]);export{P as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as m,u as c,e as k,f as h,g as C,c as _,o as w,n as s,b as t,h as e,a as L,r as H,w as I,t as B,i as O,l as G}from"./index-
|
|
1
|
+
import{d as m,u as c,e as k,f as h,g as C,c as _,o as w,n as s,b as t,h as e,a as L,r as H,w as I,t as B,i as O,l as G}from"./index-DYWobB2z.js";import{G as R,X as U}from"./constant-BOM5KUzF.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"right","print:op0":""},E=["title"],P=["title"],X=["href"],y=["href"],z=m({__name:"NavBar",props:{width:null},setup(u){const i=u,{t:l,locale:r}=c(),{y:d}=k(),p=C();function g(){window.scrollTo({top:0,behavior:"smooth"})}async function b(){const n=O,o=n[(n.indexOf(r.value)+1)%n.length];await G(o),r.value=o}const f=h(()=>p.fullPath.startsWith("/rating")?"/rating":"/");return(n,o)=>{const v=H("RouterLink");return w(),_("header",{class:s(["header z-40",[i?.width??""]])},[t("button",{title:"Scroll to top",fixed:"","bottom-6":"","right-6":"","z-100":"","h-10":"","w-10":"","rounded-full":"",transition:"","duration-300":"","print:hidden":"","hover-bg-hex-8883":"","hover:op100":"",class:s(e(d)>300?"op30":"op0! pointer-events-none"),onClick:o[0]||(o[0]=a=>g())},[...o[3]||(o[3]=[t("div",{"i-ri-arrow-up-line":""},null,-1)])],2),t("nav",{class:s(["nav",[i?.width?"":"fixed"]]),"text-xl":""},[o[9]||(o[9]=t("div",{class:"spacer"},null,-1)),t("div",x,[L(v,{"icon-btn":"",title:e(l)("button.home"),to:e(f),focusable:"false"},{default:I(()=>[...o[4]||(o[4]=[t("div",{"i-ion-balloon-sharp":""},null,-1)])]),_:1},8,["title","to"]),t("a",{"icon-btn":"",title:e(l)("button.toggle_langs"),onClick:o[1]||(o[1]=a=>b())},[...o[5]||(o[5]=[t("div",{"i-carbon-language":""},null,-1)])],8,E),t("a",{"icon-btn":"",title:e(l)("button.toggle_dark"),onClick:o[2]||(o[2]=a=>("toggleDark"in n?n.toggleDark:e(B))())},[...o[6]||(o[6]=[t("div",{i:"carbon-sun dark:carbon-moon"},null,-1)])],8,P),t("a",{"icon-btn":"",rel:"noreferrer",href:"GITHUB_URL"in n?n.GITHUB_URL:e(R),target:"_blank",title:"GitHub"},[...o[7]||(o[7]=[t("div",{"i-carbon-logo-github":""},null,-1)])],8,X),t("a",{"icon-btn":"",rel:"noreferrer",href:"XCPCIO_HOME"in n?n.XCPCIO_HOME:e(U),target:"_blank",title:"GitHub"},[...o[8]||(o[8]=[t("div",{"i-simple-icons-githubsponsors":""},null,-1)])],8,y)])],2)],2)}}}),$=T(z,[["__scopeId","data-v-f4512469"]]);export{$ as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as _r,f as pe,m as mt,u as cr,c as Q,o as Z,n as oi,h as I,b as nt,k as gt,F as Qt,E as dr,q as me,j as Ie,A as bn,C as Qe,Y as wn,a4 as Ee,W as kn,a as Yi,w as Sn,T as Pn,s as On}from"./index-
|
|
1
|
+
import{d as _r,f as pe,m as mt,u as cr,c as Q,o as Z,n as oi,h as I,b as nt,k as gt,F as Qt,E as dr,q as me,j as Ie,A as bn,C as Qe,Y as wn,a4 as Ee,W as kn,a as Yi,w as Sn,T as Pn,s as On}from"./index-DYWobB2z.js";import{_ as pr}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{T as Xi,_ as $i,c as Cn}from"./query-BESLcVEP.js";import{T as Zt,R as Gi,f as Rn,c as Mn,a as Dn}from"./rank-CRl1OOXt.js";import{e as Wi}from"./constant-BOM5KUzF.js";import{u as An}from"./useQueryBoardData-DHmBrLzo.js";class In{constructor(){this.id=0,this.team=new Zt,this.problemIx=0,this.beforeTeamProblemStatistics=new Xi,this.afterTeamProblemStatistics=new Xi}}class En extends Gi{constructor(t,e,i){i.sort(Rn.compare);let r=i,n=i;{let s=t.unFreezeDurationTimestamp;t.options.submissionTimestampUnit==="millisecond"&&(s*=1e3),t.options.submissionTimestampUnit==="microsecond"&&(s*=1e6),t.options.submissionTimestampUnit==="nanosecond"&&(s*=1e9);const o=$i.sortedIndex(i.map(u=>u.timestamp),s);r=i.slice(0,o+1),n=i.slice(o,-1)}super(t,e,r),this.finalRank=new Gi(t,e,i),this.operations=[],this.beforeFreezeSubmissions=r,this.afterFreezeSubmissions=n}buildResolver(){this.buildRank(),this.finalRank.buildRank(),this.teams.forEach(t=>t.rank=t.originalRank),this.finalRank.teams.forEach(t=>t.rank=t.originalRank);for(const t of this.afterFreezeSubmissions){const e=t.teamId,i=t.problemId,r=this.teamsMap.get(e),n=this.contest.problemsMap.get(i);if(r===void 0||n===void 0)continue;const s=r.problemStatisticsMap.get(i);s.pendingCount++,s.totalCount++,s.isAccepted||(s.lastSubmitTimestamp=t.timestamp)}{const t=$i.cloneDeep(this.teams);for(let e=this.teams.length-1;e>=0;){const i=t[e],r=i.id;let n=0,s=-1;for(const o of i.problemStatistics){if(s++,!o.isPending)continue;n++;const u=this.teamsMap.get(r)?.problemStatistics[s],l=this.finalRank.teamsMap.get(r)?.problemStatistics[s],f=new In;f.id=this.operations.length,f.team=this.teamsMap.get(r),f.problemIx=s,f.beforeTeamProblemStatistics=u,f.afterTeamProblemStatistics=l,this.operations.push(f),i.problemStatistics[s]=l,i.calcSolvedData(this.contest.options);break}{let o=e;for(;o>0&&Zt.compare(t[o],t[o-1])<0;)[t[o],t[o-1]]=[t[o-1],t[o]],o--}n===0&&e--}}}}class Fn extends En{constructor(t,e,i){super(t,e,i),this.FLASHING_TIME_MS=100,this.ROLLING_TIME_MS=600,this.maxIndex=0,this.currentIndex=0,this.maxOpIndex=0,this.currentOpIndex=0,this.oldRank=-1,this.newRank=-1,this.currentTeamId="",this.currentProblemIndex=-1,this.problemFlashingEnded=!0,this.duringAnimation=!1,this.startScrollUp=!1,this.startScrollDown=!1}buildResolver(){super.buildResolver(),this.maxIndex=this.teams.length-1,this.currentIndex=this.maxIndex,this.maxOpIndex=this.operations.length-1,this.currentOpIndex=0,this.oldRank=-1,this.newRank=-1,this.currentTeamId="",this.currentProblemIndex=-1,this.problemFlashingEnded=!0,this.duringAnimation=!1,this.startScrollUp=!1,this.startScrollDown=!1}next(){if(this.duringAnimation)return;if(this.currentOpIndex>this.maxOpIndex){this.currentIndex>0&&this.currentIndex--;return}const t=this.operations[this.currentOpIndex],e=t.problemIx,i=t.team.id,r=this.teamsMap.get(i),n=r.rank;if(this.currentIndex+1>n){this.currentIndex--;return}if(this.currentIndex+1===n){r.problemStatistics[e]=t.afterTeamProblemStatistics,r.calcSolvedData(this.contest.options),this.currentProblemIndex=e,this.currentTeamId=i;{this.oldRank=r.rank,this.newRank=this.oldRank;for(let s=this.currentIndex-1;s>=0&&Zt.compare(r,this.teams[s])<0;s--)this.newRank=this.teams[s].rank}this.currentOpIndex++;{let s=this.oldRank-1;for(;s>=0&&Zt.compare(this.teams[s],this.teams[s-1])<0;)[this.teams[s],this.teams[s-1]]=[this.teams[s-1],this.teams[s]],this.teams[s].rank=s+1,this.teams[s-1].rank=s,s--}}}rewind(){if(this.duringAnimation||this.currentOpIndex<1)return;this.currentOpIndex--;const t=this.operations[this.currentOpIndex],e=t.problemIx,i=t.team.id,r=this.teamsMap.get(i);r.problemStatistics[e]=t.beforeTeamProblemStatistics,r.calcSolvedData(this.contest.options),this.currentProblemIndex=e,this.currentTeamId=i;{this.oldRank=r.rank,this.newRank=this.oldRank;for(let n=this.currentIndex+1;n<=this.maxIndex&&Zt.compare(r,this.teams[n])>0;n++)this.newRank=this.teams[n].rank}{let n=this.oldRank-1,s=n;for(;n<this.maxIndex&&Zt.compare(this.teams[n],this.teams[n+1])>0;)[this.teams[n],this.teams[n+1]]=[this.teams[n+1],this.teams[n]],this.teams[n].rank=n+1,this.teams[n+1].rank=n+2,s=n+1,n++;this.currentIndex=s}}}const zn={"w-20":"",flex:"","flex-shrink-0":"","justify-center":"","items-center":""},Ln={flex:"","flex-1":"","flex-col":"","justify-center":"","items-start":"","gap-y-3":""},Nn={class:"resolver-team-name",truncate:"","overflow-hidden":""},Bn={flex:"","flex-row":"","text-sm":"","items-start":"","gap-x-2":""},Vn={"w-48":"",flex:"","flex-shrink-0":"","flex-row":"","justify-start":"","items-center":""},Un={class:"w-1/3"},Yn={class:"w-2/3"},Xn=_r({__name:"ResolverTeamRow",props:{index:null,team:null,resolver:null},setup(a){const t=a,e=pe(()=>t.index),i=pe(()=>t.team),r=pe(()=>t.resolver),n=mt(null),{locale:s}=cr(),o=pe(()=>s.value);function u(l){return[l.organization,l.name.getOrDefault(o.value)].filter(_=>_).join(" - ")}return(l,f)=>(Z(),Q("div",{ref_key:"el",ref:n,"h-24":""},[(Z(),Q("div",{key:0,"h-24":"",flex:"","flex-row":"","gap-x-4":"","font-mono":"","text-4xl":"",class:oi([I(e)%2===0?"bg-resolver-bg-zero":"bg-resolver-bg-one",I(r).duringAnimation&&I(r).currentTeamId===I(i).id?"bg-resolver-selected":"",!I(r).duringAnimation&&I(e)===I(r).currentIndex?"bg-resolver-selected":""])},[nt("div",zn,[nt("div",null,gt(I(i).rank),1)]),nt("div",Ln,[nt("div",Nn,gt(u(I(i))),1),nt("div",Bn,[(Z(!0),Q(Qt,null,dr(I(i).problemStatistics,(_,c)=>(Z(),Q("div",{key:_.problem.id,class:oi(["rounded w-22 h-7 flex justify-center items-center",[_.isAccepted?"bg-resolver-ac":"",_.isWrongAnswer?"bg-resolver-wa":"",_.isPending?"bg-resolver-pending":"",_.isUnSubmitted?"bg-resolver-untouched":"",I(r).problemFlashingEnded===!1&&I(e)===I(r).currentIndex&&I(r).currentProblemIndex===c?"resolver-uncover":""]])},[_.isAccepted?(Z(),Q(Qt,{key:0},[Ie(gt(`${_.failedCount+Number(_.isAccepted)}/${Math.floor(_.lastSubmitTimestamp/60)}`),1)],64)):me("",!0),_.isWrongAnswer?(Z(),Q(Qt,{key:1},[Ie(gt(`${_.failedCount}/${Math.floor(_.lastSubmitTimestamp/60)}`),1)],64)):me("",!0),_.isPending?(Z(),Q(Qt,{key:2},[Ie(gt(`${_.failedCount} + ${_.pendingCount}`),1)],64)):me("",!0),_.isUnSubmitted?(Z(),Q(Qt,{key:3},[Ie(gt(_.problem.label),1)],64)):me("",!0)],2))),128))])]),nt("div",Vn,[nt("div",Un,gt(I(i).solvedProblemNum),1),nt("div",Yn,gt(I(i).penaltyToMinute),1)])],2))],512))}}),$n=pr(Xn,[["__scopeId","data-v-4d3e11d2"]]);function kt(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function mr(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}/*!
|
|
2
2
|
* GSAP 3.13.0
|
|
3
3
|
* https://gsap.com
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as e,o as l,b as o}from"./index-
|
|
1
|
+
import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as e,o as l,b as o}from"./index-DYWobB2z.js";const s={},n={class:"color-gray-700 dark:color-gray-200"};function a(c,r){return l(),e("div",n,[...r[0]||(r[0]=[o("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1161",width:"30",height:"30"},[o("path",{d:"M837.9904 570.0608H124.5696a29.0304 29.0304 0 0 1-29.0304-29.0304V482.9696a29.0304 29.0304 0 0 1 29.0304-29.0304h713.4208z",fill:"currentColor","p-id":"1162"}),o("path",{d:"M561.3056 808.96l-40.96-40.96a28.928 28.928 0 0 1 0-40.96l215.04-215.04-215.04-215.04a28.9792 28.9792 0 0 1 0-40.96l40.96-40.96a28.9792 28.9792 0 0 1 40.96 0l296.96 296.96-296.96 296.96a28.9792 28.9792 0 0 1-40.96 0z",fill:"currentColor","p-id":"1163"})],-1)])])}const d=t(s,[["render",a]]);export{d as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,v as s,az as u,h as p,c as i,o as d,y as m,z as c}from"./index-
|
|
1
|
+
import{d as r,v as s,az as u,h as p,c as i,o as d,y as m,z as c}from"./index-DYWobB2z.js";import{_}from"./use-vmodel-D6Vw3vwf.js";const x=["type","text"],g=r({__name:"TheInput",props:{textAlign:null,textType:null,modelValue:null},emits:["update:modelValue"],setup(o){const t=o,{modelValue:e}=_("modelValue");return(l,n)=>s((d(),i("input",m({id:"input","onUpdate:modelValue":n[0]||(n[0]=a=>c(e)?e.value=a:null)},l.$attrs,{type:t.textType??"text",text:t.textAlign??"center",p:"x-4 y-2","w-full":"",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"}),null,16,x)),[[u,p(e)]])}});export{g as _};
|