2025-01-16 00:46:38 +08:00
|
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/peerShareLinkModal-qnsW_7dL.js","assets/index-ChIZkWnM.js","assets/index-C1jOb5RQ.css","assets/dayjs.min-nlYZplm6.js","assets/vue-datepicker-BqiBEeSB.js","assets/localeText-B2YJV6FD.js","assets/peerShareLinkModal-B5PnDn1q.css","assets/peerJobs-BOyF_5dv.js","assets/schedulePeerJob-DSwY3UVZ.js","assets/schedulePeerJob--V7cpve7.css","assets/peerJobs-voXURBEt.css","assets/peerQRCode-DUJVvuUn.js","assets/browser-CjSdxGTc.js","assets/peerConfigurationFile-04r_7ZIU.js","assets/peerConfigurationFile-Dma_bQR7.css","assets/peerSettings-B_tOmYh0.js","assets/peerSettings-DCod994Y.css","assets/peerSearchBar-DGGMYA9w.js","assets/peerSearchBar-5knTmb8D.css","assets/peerJobsAllModal-CfdUcdt8.js","assets/peerJobsLogsModal-mgEtYGm3.js","assets/editConfiguration-BUCsBeAe.js","assets/editConfiguration-C_hKRy6y.css","assets/selectPeers-BJjPrLQo.js","assets/selectPeers-Wjnh8YUZ.css","assets/peerAddModal-BZ0JlLvf.js","assets/bulkAdd-BnWpvCv1.js","assets/bulkAdd-Cbr1ZA0z.css"])))=>i.map(i=>d[i]);
|
|
|
|
import{J as un,K as fn,L as bi,M as fo,r as K,o as Di,N as go,H as be,O as _i,P as po,Q as gn,D as ei,s as Ti,p as It,a as D,c as I,b,d as T,A as G,t as B,e as H,g as Gt,_ as Pe,W as pn,G as pt,z as ue,F as Xt,h as xi,j as _e,R as mo,U as bo,n as St,w as Et,T as Ai,f as $t,i as $,k as yi,V as rt,X as at,Y as _o,m as xo,v as yo,S as vo,Z as wo}from"./index-ChIZkWnM.js";import{_ as So}from"./protocolBadge-Bh2EvhJg.js";import{L as j}from"./localeText-B2YJV6FD.js";import{d as ko}from"./dayjs.min-nlYZplm6.js";/*!
|
2025-01-03 13:45:05 +08:00
|
|
|
* @kurkle/color v0.3.2
|
|
|
|
* https://github.com/kurkle/color#readme
|
|
|
|
* (c) 2023 Jukka Kurkela
|
|
|
|
* Released under the MIT License
|
2025-01-05 14:32:11 +08:00
|
|
|
*/function Ce(i){return i+.5|0}const vt=(i,t,e)=>Math.max(Math.min(i,e),t);function le(i){return vt(Ce(i*2.55),0,255)}function kt(i){return vt(Ce(i*255),0,255)}function xt(i){return vt(Ce(i/2.55)/100,0,1)}function Ki(i){return vt(Ce(i*100),0,100)}const it={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},vi=[..."0123456789ABCDEF"],Mo=i=>vi[i&15],Po=i=>vi[(i&240)>>4]+vi[i&15],Le=i=>(i&240)>>4===(i&15),Co=i=>Le(i.r)&&Le(i.g)&&Le(i.b)&&Le(i.a);function Oo(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&it[i[1]]*17,g:255&it[i[2]]*17,b:255&it[i[3]]*17,a:t===5?it[i[4]]*17:255}:(t===7||t===9)&&(e={r:it[i[1]]<<4|it[i[2]],g:it[i[3]]<<4|it[i[4]],b:it[i[5]]<<4|it[i[6]],a:t===9?it[i[7]]<<4|it[i[8]]:255})),e}const Do=(i,t)=>i<255?t(i):"";function To(i){var t=Co(i)?Mo:Po;return i?"#"+t(i.r)+t(i.g)+t(i.b)+Do(i.a,t):void 0}const Ao=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function mn(i,t,e){const s=t*Math.min(e,1-e),n=(o,r=(o+i/30)%12)=>e-s*Math.max(Math.min(r-3,9-r,1),-1);return[n(0),n(8),n(4)]}function Lo(i,t,e){const s=(n,o=(n+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function Ro(i,t,e){const s=mn(i,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)s[n]*=1-t-e,s[n]+=t;return s}function Io(i,t,e,s,n){return i===n?(t-e)/s+(t<e?6:0):t===n?(e-i)/s+2:(i-t)/s+4}function Li(i){const e=i.r/255,s=i.g/255,n=i.b/255,o=Math.max(e,s,n),r=Math.min(e,s,n),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=Io(e,s,n,h,o),l=l*60+.5),[l|0,c||0,a]}function Ri(i,t,e,s){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,s)).map(kt)}function Ii(i,t,e){return Ri(mn,i,t,e)}function Eo(i,t,e){return Ri(Ro,i,t,e)}function Fo(i,t,e){return Ri(Lo,i,t,e)}function bn(i){return(i%360+360)%360}function zo(i){const t=Ao.exec(i);let e=255,s;if(!t)return;t[5]!==s&&(e=t[6]?le(+t[5]):kt(+t[5]));const n=bn(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=Eo(n,o,r):t[1]==="hsv"?s=Fo(n,o,r):s=Ii(n,o,r),{r:s[0],g:s[1],b:s[2],a:e}}function Bo(i,t){var e=Li(i);e[0]=bn(e[0]+t),e=Ii(e),i.r=e[0],i.g=e[1],i.b=e[2]}function $o(i){if(!i)return;const t=Li(i),e=t[0],s=Ki(t[1]),n=Ki(t[2]);return i.a<255?`hsla(${e}, ${s}%, ${n}%, ${xt(i.a)})`:`hsl(${e}, ${s}%, ${n}%)`}const qi={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Gi={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"
|
2025-01-03 13:45:05 +08:00
|
|
|
* Chart.js v4.4.4
|
|
|
|
* https://www.chartjs.org
|
|
|
|
* (c) 2024 Chart.js Contributors
|
|
|
|
* Released under the MIT License
|
2025-01-05 14:32:11 +08:00
|
|
|
*/function mt(){}const Xo=(()=>{let i=0;return()=>i++})();function F(i){return i===null||typeof i>"u"}function V(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function R(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function nt(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function ht(i,t){return nt(i)?i:t}function L(i,t){return typeof i>"u"?t:i}const Ko=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function z(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function E(i,t,e,s){let n,o,r;if(V(i))for(o=i.length,n=0;n<o;n++)t.call(e,i[n],n);else if(R(i))for(r=Object.keys(i),o=r.length,n=0;n<o;n++)t.call(e,i[r[n]],r[n])}function qe(i,t){let e,s,n,o;if(!i||!t||i.length!==t.length)return!1;for(e=0,s=i.length;e<s;++e)if(n=i[e],o=t[e],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function Ge(i){if(V(i))return i.map(Ge);if(R(i)){const t=Object.create(null),e=Object.keys(i),s=e.length;let n=0;for(;n<s;++n)t[e[n]]=Ge(i[e[n]]);return t}return i}function xn(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function qo(i,t,e,s){if(!xn(i))return;const n=t[i],o=e[i];R(n)&&R(o)?ye(n,o,s):t[i]=Ge(o)}function ye(i,t,e){const s=V(t)?t:[t],n=s.length;if(!R(i))return i;e=e||{};const o=e.merger||qo;let r;for(let a=0;a<n;++a){if(r=s[a],!R(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],i,r,e)}return i}function fe(i,t){return ye(i,t,{merger:Go})}function Go(i,t,e){if(!xn(i))return;const s=t[i],n=e[i];R(s)&&R(n)?fe(s,n):Object.prototype.hasOwnProperty.call(t,i)||(t[i]=Ge(n))}const Qi={"":i=>i,x:i=>i.x,y:i=>i.y};function Jo(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function Qo(i){const t=Jo(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function Jt(i,t){return(Qi[t]||(Qi[t]=Qo(t)))(i)}function Ei(i){return i.charAt(0).toUpperCase()+i.slice(1)}const ve=i=>typeof i<"u",Mt=i=>typeof i=="function",Zi=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function Zo(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const U=Math.PI,ft=2*U,tr=ft+U,Je=Number.POSITIVE_INFINITY,er=U/180,lt=U/2,Dt=U/4,ts=U*2/3,wi=Math.log10,gt=Math.sign;function ge(i,t,e){return Math.abs(i-t)<e}function es(i){const t=Math.round(i);i=ge(i,t,i/1e3)?t:i;const e=Math.pow(10,Math.floor(wi(i))),s=i/e;return(s<=1?1:s<=2?2:s<=5?5:10)*e}function ir(i){const t=[],e=Math.sqrt(i);let s;for(s=1;s<e;s++)i%s===0&&(t.push(s),t.push(i/s));return e===(e|0)&&t.push(e),t.sort((n,o)=>n-o).pop(),t}function we(i){return!isNaN(parseFloat(i))&&isFinite(i)}function sr(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function nr(i,t,e){let s,n,o;for(s=0,n=i.length;s<n;s++)o=i[s][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Ft(i){return i*(U/180)}function or(i){return i*(180/U)}function is(i){if(!nt(i))return;let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}function rr(i,t){const e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);let o=Math.atan2(s,e);return o<-.5*U&&(o+=ft),{angle:o,distance:n}}function Si(i,t){return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function ar(i,t){return(i-t+tr)%ft-U}function yt(i){return(i%ft+ft)%ft}function yn(i,t,e,s){const n=yt(i),o=yt(t),r=yt(e),a=yt(o-n),l=yt(r-n),c=yt(n-o),h=yt(n-r);return n===o||n===r||s&&o===r||a>l&&c<h}function tt(i,t,e){return Math.max(t,Math.min(e,i))}function lr(i){return tt(i,-32768,32767)}function zt(i,t,e,s=1e-6){return i>=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function Fi(i,t,e){e=e||(r=>i[r]<t);let s=i.length-1,n=0,o;for(;s-n>1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const Bt=(i,t,e,s)=>Fi(i,e,s?n=>{const o=i[n][t];return o<e||o===e&&i[n+1][t]===e}:n=>i[n][t]<e),cr=(i,t,e)=>Fi(i,e,s=>i[s][t]>=e);function hr(i,t,e){let s=0,n=i.length;for(;s<n&&i[s]<t;)s++;for(;n>s&&i[n-1]>e;)n--;return s>0||n<i.length?i.slice(s,n):i}c
|
2025-01-03 13:45:05 +08:00
|
|
|
* Chart.js v4.4.4
|
|
|
|
* https://www.chartjs.org
|
|
|
|
* (c) 2024 Chart.js Contributors
|
|
|
|
* Released under the MIT License
|
2025-01-05 14:32:11 +08:00
|
|
|
*/class ma{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Sn.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var bt=new ma;const bs="transparent",ba={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=rs(i||bs),n=s.valid&&rs(t||bs);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class _a{constructor(t,e,s,n){const o=e[s];n=Fe([t.to,n,o,t.from]);const r=Fe([t.from,o,n]);this._active=!0,this._fn=t.fn||ba[t.type||typeof r],this._easing=pe[t.easing]||pe.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Fe([t.to,e,n,t.from]),this._from=Fe([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<s),!this._active){this._target[n]=a,this._notify(!0);return}if(e<0){this._target[n]=o;return}l=e/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][e]()}}class $n{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!R(t))return;const e=Object.keys(W.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const o=t[n];if(!R(o))return;const r={};for(const a of e)r[a]=o[a];(V(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,e){const s=e.options,n=ya(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&xa(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let u=o[c];const d=s.get(c);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[c]=h;continue}o[c]=u=new _a(d,t,c,h),n.push(u)}return n}update(t,e){if(this._properties.size===0
|
2025-01-03 13:45:05 +08:00
|
|
|
`)>-1?i.split(`
|
2025-01-16 00:46:38 +08:00
|
|
|
`):i}function vc(i,t){const{element:e,datasetIndex:s,index:n}=t,o=i.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:i,label:r,parsed:o.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function qs(i,t){const e=i.chart.ctx,{body:s,footer:n,title:o}=i,{boxWidth:r,boxHeight:a}=t,l=q(t.bodyFont),c=q(t.titleFont),h=q(t.footerFont),u=o.length,d=n.length,f=s.length,g=ot(t.padding);let m=g.height,p=0,_=s.reduce((M,v)=>M+v.before.length+v.lines.length+v.after.length,0);if(_+=i.beforeBody.length+i.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),_){const M=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=f*M+(_-f)*l.lineHeight+(_-1)*t.bodySpacing}d&&(m+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let y=0;const k=function(M){p=Math.max(p,e.measureText(M).width+y)};return e.save(),e.font=c.string,E(i.title,k),e.font=l.string,E(i.beforeBody.concat(i.afterBody),k),y=t.displayColors?r+2+t.boxPadding:0,E(s,M=>{E(M.before,k),E(M.lines,k),E(M.after,k)}),y=0,e.font=h.string,E(i.footer,k),e.restore(),p+=g.width,{width:p,height:m}}function wc(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Sc(i,t,e,s){const{x:n,width:o}=s,r=e.caretSize+e.caretPadding;if(i==="left"&&n+o+r>t.width||i==="right"&&n-o-r<0)return!0}function kc(i,t,e,s){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),Sc(c,i,t,e)&&(c="center"),c}function Gs(i,t,e){const s=e.yAlign||t.yAlign||wc(i,e);return{xAlign:e.xAlign||t.xAlign||kc(i,t,e,s),yAlign:s}}function Mc(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function Pc(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function Js(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=Kt(r);let g=Mc(t,a);const m=Pc(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,d)+n:a==="right"&&(g+=Math.max(u,f)+n),{x:tt(g,0,s.width-t.width),y:tt(m,0,s.height-t.height)}}function je(i,t,e){const s=ot(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function Qs(i){return dt([],_t(i))}function Cc(i,t,e){return Wt(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Zs(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const no={beforeTitle:mt,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:mt,beforeBody:mt,beforeLabel:mt,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return F(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:mt,afterBody:mt,beforeFooter:mt,footer:mt,afterFooter:mt};function Q(i,t,e,s){const n=i[t].call(e,s);return typeof n>"u"?no[t].call(e,s):n}class tn extends Pt{static positioners=he;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.after
|