47 lines
271 KiB
JavaScript
47 lines
271 KiB
JavaScript
|
var $l=Object.defineProperty;var Al=(e,t,n)=>t in e?$l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>(Al(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function ht(){}const ea=e=>e;function N(e,t){for(const n in t)e[n]=t[n];return e}function na(e){return e()}function rs(){return Object.create(null)}function Jt(e){e.forEach(na)}function ae(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Pl(e){return Object.keys(e).length===0}function Ds(e,...t){if(e==null)return ht;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Fl(e){let t;return Ds(e,n=>t=n)(),t}function gt(e,t,n){e.$$.on_destroy.push(Ds(t,n))}function Rt(e,t,n,i){if(e){const s=ia(e,t,n,i);return e[0](s)}}function ia(e,t,n,i){return e[1]&&i?N(n.ctx.slice(),e[1](i(t))):n.ctx}function $t(e,t,n,i){if(e[2]&&i){const s=e[2](i(n));if(t.dirty===void 0)return s;if(typeof s=="object"){const o=[],r=Math.max(t.dirty.length,s.length);for(let a=0;a<r;a+=1)o[a]=t.dirty[a]|s[a];return o}return t.dirty|s}return t.dirty}function At(e,t,n,i,s,o){if(s){const r=ia(t,n,i,o);e.p(r,s)}}function Pt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function nt(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function no(e,t){const n={};t=new Set(t);for(const i in e)!t.has(i)&&i[0]!=="$"&&(n[i]=e[i]);return n}function St(e,t,n){return e.set(n),t}function Os(e){return e&&ae(e.destroy)?e.destroy:ht}const sa=typeof window<"u";let Dl=sa?()=>window.performance.now():()=>Date.now(),Es=sa?e=>requestAnimationFrame(e):ht;const We=new Set;function oa(e){We.forEach(t=>{t.c(e)||(We.delete(t),t.f())}),We.size!==0&&Es(oa)}function Ol(e){let t;return We.size===0&&Es(oa),{promise:new Promise(n=>{We.add(t={c:e,f:n})}),abort(){We.delete(t)}}}let Ri=!1;function El(){Ri=!0}function Ll(){Ri=!1}function Tl(e,t,n,i){for(;e<t;){const s=e+(t-e>>1);n(s)<=i?e=s+1:t=s}return e}function Il(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const l=[];for(let c=0;c<t.length;c++){const u=t[c];u.claim_order!==void 0&&l.push(u)}t=l}const n=new Int32Array(t.length+1),i=new Int32Array(t.length);n[0]=-1;let s=0;for(let l=0;l<t.length;l++){const c=t[l].claim_order,u=(s>0&&t[n[s]].claim_order<=c?s+1:Tl(1,s,d=>t[n[d]].claim_order,c))-1;i[l]=n[u]+1;const f=u+1;n[f]=l,s=Math.max(f,s)}const o=[],r=[];let a=t.length-1;for(let l=n[s]+1;l!=0;l=i[l-1]){for(o.push(t[l-1]);a>=l;a--)r.push(t[a]);a--}for(;a>=0;a--)r.push(t[a]);o.reverse(),r.sort((l,c)=>l.claim_order-c.claim_order);for(let l=0,c=0;l<r.length;l++){for(;c<o.length&&r[l].claim_order>=o[c].claim_order;)c++;const u=c<o.length?o[c]:null;e.insertBefore(r[l],u)}}function w(e,t){e.appendChild(t)}function ra(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Vl(e){const t=P("style");return zl(ra(e),t),t.sheet}function zl(e,t){return w(e.head||e,t),t.sheet}function Hl(e,t){if(Ri){for(Il(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?(t.claim_order!==void 0||t.parentNode!==e)&&e.i
|
||
|
`;for(let m=0;m<=1;m+=l){const _=t+(n-t)*o(m);c+=m*100+`%{${r(_,1-_)}}
|
||
|
`}const u=c+`100% {${r(n,1-n)}}
|
||
|
}`,f=`__svelte_${Ul(u)}_${a}`,d=ra(e),{stylesheet:h,rules:g}=si.get(d)||Xl(d,e);g[f]||(g[f]=!0,h.insertRule(`@keyframes ${f} ${u}`,h.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${f} ${i}ms linear ${s}ms 1 both`,oi+=1,f}function Kl(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?o=>o.indexOf(t)<0:o=>o.indexOf("__svelte")===-1),s=n.length-i.length;s&&(e.style.animation=i.join(", "),oi-=s,oi||Ql())}function Ql(){Es(()=>{oi||(si.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&X(t)}),si.clear())})}let De;function Ae(e){De=e}function tn(){if(!De)throw new Error("Function called outside component initialization");return De}function $i(e){tn().$$.on_mount.push(e)}function Zl(e){tn().$$.after_update.push(e)}function en(e){tn().$$.on_destroy.push(e)}function Jl(e,t){return tn().$$.context.set(e,t),t}function Ls(e){return tn().$$.context.get(e)}function tc(e){return tn().$$.context.has(e)}function ec(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}const Be=[],Ke=[];let Ge=[];const as=[],la=Promise.resolve();let ls=!1;function ca(){ls||(ls=!0,la.then(fa))}function Ts(){return ca(),la}function Qe(e){Ge.push(e)}function ua(e){as.push(e)}const Vi=new Set;let Ve=0;function fa(){if(Ve!==0)return;const e=De;do{try{for(;Ve<Be.length;){const t=Be[Ve];Ve++,Ae(t),nc(t.$$)}}catch(t){throw Be.length=0,Ve=0,t}for(Ae(null),Be.length=0,Ve=0;Ke.length;)Ke.pop()();for(let t=0;t<Ge.length;t+=1){const n=Ge[t];Vi.has(n)||(Vi.add(n),n())}Ge.length=0}while(Be.length);for(;as.length;)as.pop()();ls=!1,Vi.clear(),Ae(e)}function nc(e){if(e.fragment!==null){e.update(),Jt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Qe)}}function ic(e){const t=[],n=[];Ge.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),Ge=t}let nn;function sc(){return nn||(nn=Promise.resolve(),nn.then(()=>{nn=null})),nn}function zi(e,t,n){e.dispatchEvent(Yl(`${t?"intro":"outro"}${n}`))}const Kn=new Set;let re;function Lt(){re={r:0,c:[],p:re}}function Tt(){re.r||Jt(re.c),re=re.p}function S(e,t){e&&e.i&&(Kn.delete(e),e.i(t))}function M(e,t,n,i){if(e&&e.o){if(Kn.has(e))return;Kn.add(e),re.c.push(()=>{Kn.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const oc={duration:0};function ri(e,t,n,i){const s={direction:"both"};let o=t(e,n,s),r=i?0:1,a=null,l=null,c=null;function u(){c&&Kl(e,c)}function f(h,g){const p=h.b-r;return g*=Math.abs(p),{a:r,b:h.b,d:p,duration:g,start:h.start,end:h.start+g,group:h.group}}function d(h){const{delay:g=0,duration:p=300,easing:m=ea,tick:_=ht,css:b}=o||oc,y={start:Dl()+g,b:h};h||(y.group=re,re.r+=1),a||l?l=y:(b&&(u(),c=so(e,r,h,p,g,m,b)),h&&_(0,1),a=f(y,p),Qe(()=>zi(e,h,"start")),Ol(x=>{if(l&&x>l.start&&(a=f(l,p),l=null,zi(e,a.b,"start"),b&&(u(),c=so(e,r,a.b,a.duration,0,m,o.css))),a){if(x>=a.end)_(r=a.b,1-r),zi(e,a.b,"end"),l||(a.b?u():--a.group.r||Jt(a.group.c)),a=null;else if(x>=a.start){const v=x-a.start;r=a.a+a.d*m(v/a.duration),_(r,1-r)}}return!!(a||l)}))}return{run(h){ae(o)?sc().then(()=>{o=o(s),d(h)}):d(h)},end(){u(),a=l=null}}}function Vt(e,t){const n={},i={},s={$$scope:1};let o=e.length;for(;o--;){const r=e[o],a=t[o];if(a){for(const l in r)l in a||(i[l]=1);for(const l in a)s[l]||(n[l]=a[l],s[l]=1);e[o]=a}else for(const l in r)s[l]=1}for(const r in i)r in n||(n[r]=void 0);return n}function te(e){return typeof e=="object"&&e!==null?e:{}}const rc=/[&"]/g,ac=/[&<]/g;function lc(e,t=!1){const n=String(e),i=t?rc:ac;i.lastIndex=0;let s="",o=0;for(;i.test(n);){const r=i.lastIndex-1,a=n[r];s+=n.substring(o,r)+(a==="&"?"&":a==='"'?""":"<"),o=r+1}return s+n.substring(o)}function cc(e,t){if(!e||!e.$$render)throw t==="svelte:component"&&(t+=" this={...}"),new Error(`<${t}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <${t}>.`);return e}let Hi;function da(e){function t(n,i,s,o,r){const a=De,l={on_destroy:Hi,context:new Map(r||(a?a.$$.context:[])),on_moun
|
||
|
`),map:null},head:o.title+o.head}},$$render:t}}function ha(e,t,n){const i=e.$$.props[t];i!==void 0&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function H(e){e&&e.c()}function uc(e,t){e&&e.l(t)}function V(e,t,n,i){const{fragment:s,after_update:o}=e.$$;s&&s.m(t,n),i||Qe(()=>{const r=e.$$.on_mount.map(na).filter(ae);e.$$.on_destroy?e.$$.on_destroy.push(...r):Jt(r),e.$$.on_mount=[]}),o.forEach(Qe)}function z(e,t){const n=e.$$;n.fragment!==null&&(ic(n.after_update),Jt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function fc(e,t){e.$$.dirty[0]===-1&&(Be.push(e),ca(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,t,n,i,s,o,r,a=[-1]){const l=De;Ae(e);const c=e.$$={fragment:null,ctx:[],props:o,update:ht,not_equal:s,bound:rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:rs(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};r&&r(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},(f,d,...h)=>{const g=h.length?h[0]:d;return c.ctx&&s(c.ctx[f],c.ctx[f]=g)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](g),u&&fc(e,f)),d}):[],c.update(),u=!0,Jt(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){El();const f=jl(t.target);c.fragment&&c.fragment.l(f),f.forEach(X)}else c.fragment&&c.fragment.c();t.intro&&S(e.$$.fragment),V(e,t.target,t.anchor,t.customElement),Ll(),fa()}Ae(l)}class K{$destroy(){z(this,1),this.$destroy=ht}$on(t,n){if(!ae(n))return ht;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!Pl(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ze=[];function cs(e,t){return{subscribe:Ft(e,t).subscribe}}function Ft(e,t=ht){let n;const i=new Set;function s(a){if(Y(e,a)&&(e=a,n)){const l=!ze.length;for(const c of i)c[1](),ze.push(c,e);if(l){for(let c=0;c<ze.length;c+=2)ze[c][0](ze[c+1]);ze.length=0}}}function o(a){s(a(e))}function r(a,l=ht){const c=[a,l];return i.add(c),i.size===1&&(n=t(s)||ht),a(e),()=>{i.delete(c),i.size===0&&n&&(n(),n=null)}}return{set:s,update:o,subscribe:r}}function Ai(e,t,n){const i=!Array.isArray(e),s=i?[e]:e,o=t.length<2;return cs(n,r=>{let a=!1;const l=[];let c=0,u=ht;const f=()=>{if(c)return;u();const h=t(i?l[0]:l,r);o?r(h):u=ae(h)?h:ht},d=s.map((h,g)=>Ds(h,p=>{l[g]=p,c&=~(1<<g),a&&f()},()=>{c|=1<<g}));return a=!0,f(),function(){Jt(d),u(),a=!1}})}function us(e,t=!1){return e=e.slice(e.startsWith("/#")?2:0,e.endsWith("/*")?-2:void 0),e.startsWith("/")||(e="/"+e),e==="/"&&(e=""),t&&!e.endsWith("/")&&(e+="/"),e}function dc(e,t){e=us(e,!0),t=us(t,!0);let n=[],i={},s=!0,o=e.split("/").map(a=>a.startsWith(":")?(n.push(a.slice(1)),"([^\\/]+)"):a).join("\\/"),r=t.match(new RegExp(`^${o}$`));return r||(s=!1,r=t.match(new RegExp(`^${o}`))),r?(n.forEach((a,l)=>i[a]=r[l+1]),{exact:s,params:i,part:r[0].slice(0,-1)}):null}function ga(e,t,n){if(n==="")return e;if(n[0]==="/")return n;let i=r=>r.split("/").filter(a=>a!==""),s=i(e);return"/"+(t?i(t):[]).map((r,a)=>s[a]).join("/")+"/"+n}function oo(e,t,n,i){let s=[t,"data-"+t].reduce((o,r)=>{let a=e.getAttribute(r);return n&&e.removeAttribute(r),a===null?o:a},!1);return!i&&s===""?!0:s||i||!1}function hc(e){let t=e.split("&").map(n=>n.split("=")).reduce((n,i)=>{let s=i[0];if(!s)return n;let o=i.length>1?i[i.length-1]:!0;return typeof o=="string"&&o.includes(",")&&(o=o.split(",")),n[s]===void 0?n[s]=[o]:n[s].push(o),n},{});return Object.entries(t).reduce((n,i)=>(n[i[0]]=i[1].length>1?i[1]:i[1][0],n),{})}function gc(e){return Object.entries(e).map(([t,n])=>n?n===!0?t:`${t}=${Array.isArray(n)?n.join(","):n}`:null).filter(t=>t).join("&")}function ro(e,t){return e?t+e:""}function pa(e){throw new Error("[Tinro] "+e)}var Ht={HISTORY:1,HASH:2,MEMORY:3,OFF:4,run(e,t,n,i){return e===this.HISTORY?t&&t():e===this.HASH?n&&n():i&&i()},getDefault(){return!window||window.location.pathname==="srcdoc"?this.MEMORY:this.HISTORY}},Is,ma,_a,ai="",zt=pc();function pc(){let e=Ht.getDefault(),t,n=r=>window.onhashchange=window.onpopstate=Is=null,i=r=>t&&t(Ni(e)),s=r=>{
|
||
|
* table-core
|
||
|
*
|
||
|
* Copyright (c) TanStack
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
*
|
||
|
* @license MIT
|
||
|
*/function he(e,t){return typeof e=="function"?e(t):e}function It(e,t){return n=>{t.setState(i=>({...i,[e]:he(n,i[e])}))}}function ci(e){return e instanceof Function}function uu(e,t){const n=[],i=s=>{s.forEach(o=>{n.push(o);const r=t(o);r!=null&&r.length&&i(r)})};return i(e),n}function L(e,t,n){let i=[],s;return()=>{let o;n.key&&n.debug&&(o=Date.now());const r=e();if(!(r.length!==i.length||r.some((c,u)=>i[u]!==c)))return s;i=r;let l;if(n.key&&n.debug&&(l=Date.now()),s=t(...r),n==null||n.onChange==null||n.onChange(s),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-o)*100)/100,u=Math.round((Date.now()-l)*100)/100,f=u/16,d=(h,g)=>{for(h=String(h);h.length<g;)h=" "+h;return h};console.info(`%c⏱ ${d(u,5)} /${d(c,5)} ms`,`
|
||
|
font-size: .6rem;
|
||
|
font-weight: bold;
|
||
|
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return s}}function fu(e,t,n,i){var s,o;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(s=(o=a.id)!=null?o:l?l.replace(".","_"):void 0)!=null?s:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=d=>{let h=d;for(const p of l.split(".")){var g;h=(g=h)==null?void 0:g[p]}return h}:u=d=>d[a.accessorKey]),!c)throw new Error;let f={id:`${String(c)}`,accessorFn:u,parent:i,depth:n,columnDef:a,columns:[],getFlatColumns:L(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:L(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let g=f.columns.flatMap(p=>p.getLeafColumns());return d(g)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,h)=>Object.assign(d,h.createColumn==null?void 0:h.createColumn(f,e)),f),f}function mo(e,t,n){var i;let o={id:(i=n.id)!=null?i:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const r=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),r.push(l)};return a(o),r},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(r=>{Object.assign(o,r.createHeader==null?void 0:r.createHeader(o,e))}),o}const du={createTable:e=>({getHeaderGroups:L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,s)=>{var o,r;const a=(o=i==null?void 0:i.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(r=s==null?void 0:s.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?r:[],c=n.filter(f=>!(i!=null&&i.includes(f.id))&&!(s!=null&&s.includes(f.id)));return Dn(t,[...a,...c,...l],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,i,s)=>(n=n.filter(o=>!(i!=null&&i.includes(o.id))&&!(s!=null&&s.includes(o.id))),Dn(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,i)=>{var s;const o=(s=i==null?void 0:i.map(r=>n.find(a=>a.id===r)).filter(Boolean))!=null?s:[];return Dn(t,o,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:L(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,i)=>{var s;const o=(s=i==null?void 0:i.map(r=>n.find(a=>a.id===r)).filter(Boolean))!=null?s:[];return Dn(t,o,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:L(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:L(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:L(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:L(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:L(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:L(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeade
|
||
|
* svelte-table
|
||
|
*
|
||
|
* Copyright (c) TanStack
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
*
|
||
|
* @license MIT
|
||
|
*/function Wu(e){let t;return{c(){t=J(e[0])},l(n){t=ql(n,e[0])},m(n,i){Nl(n,t,i)},p(n,[i]){i&1&&jt(t,n[0])},i:ht,o:ht,d(n){n&&X(t)}}}function Gu(e,t,n){let{content:i}=t;return e.$$set=s=>{"content"in s&&n(0,i=s.content)},[i]}class qu extends K{constructor(t){super(),Q(this,t,Gu,Wu,Y,{content:0})}}const Yu=da((e,t,n,i)=>`${lc(t.content)}`);var Uu=typeof document>"u"?Yu:qu;function Xu(e,t,n){let i,s;return i=new t({props:n,$$inline:!0}),{c(){H(i.$$.fragment)},l(o){uc(i.$$.fragment,o)},m(o,r){V(i,o,r),s=!0},p:ht,i(o){s||(S(i.$$.fragment,o),s=!0)},o(o){M(i.$$.fragment,o),s=!1},d(o){z(i,o)}}}function Ku(e,t){return class extends K{constructor(i){super(),Q(this,i,null,s=>Xu(s,e,t),Y,{},void 0)}}}function Qu(e,t){return da((i,s,o,r)=>`${cc(e,"TableComponent").$$render(i,t,{},{})}`)}const Pa=typeof window>"u"?Qu:Ku;function Zu(e){return typeof e=="object"&&typeof e.$$render=="function"&&typeof e.render=="function"}function Ju(e){var t,n;let i="__SVELTE_HMR"in window;return e.prototype instanceof K||i&&((t=e.name)==null?void 0:t.startsWith("Proxy<"))&&((n=e.name)==null?void 0:n.endsWith(">"))}function vo(e){return typeof document>"u"?Zu(e):Ju(e)}function xo(e){return Pa(Uu,{content:e})}function ui(e,t){if(!e)return null;if(vo(e))return Pa(e,t);if(typeof e=="function"){const n=e(t);return vo(n)?n:xo(n)}return xo(e)}function tf(e){let t;"subscribe"in e?t=e:t=cs(e);let n={state:{},onStateChange:()=>{},renderFallbackValue:null,...Fl(t)},i=Hu(n),s=Ft(i.initialState),o=Ai([s,t],a=>a);return cs(i,function(l){const c=o.subscribe(u=>{let[f,d]=u;i.setOptions(h=>({...h,...d,state:{...f,...d.state},onStateChange:g=>{g instanceof Function?s.update(g):s.set(g),n.onStateChange==null||n.onStateChange(g)}})),l(i)});return function(){c()}})}function Pi(e){return e.split("-")[1]}function Fa(e){return e==="y"?"height":"width"}function Pe(e){return e.split("-")[0]}function Fi(e){return["top","bottom"].includes(Pe(e))?"x":"y"}function wo(e,t,n){let{reference:i,floating:s}=e;const o=i.x+i.width/2-s.width/2,r=i.y+i.height/2-s.height/2,a=Fi(t),l=Fa(a),c=i[l]/2-s[l]/2,u=a==="x";let f;switch(Pe(t)){case"top":f={x:o,y:i.y-s.height};break;case"bottom":f={x:o,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:r};break;case"left":f={x:i.x-s.width,y:r};break;default:f={x:i.x,y:i.y}}switch(Pi(t)){case"start":f[a]-=c*(n&&u?-1:1);break;case"end":f[a]+=c*(n&&u?-1:1)}return f}const ef=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,a=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:f}=wo(c,i,l),d=i,h={},g=0;for(let p=0;p<a.length;p++){const{name:m,fn:_}=a[p],{x:b,y,data:x,reset:v}=await _({x:u,y:f,initialPlacement:i,placement:d,strategy:s,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});u=b??u,f=y??f,h={...h,[m]:{...h[m],...x}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(d=v.placement),v.rects&&(c=v.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):v.rects),{x:u,y:f}=wo(c,d,l)),p=-1)}return{x:u,y:f,placement:d,strategy:s,middlewareData:h}};function nf(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function fi(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Da(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:o,rects:r,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=t,g=nf(h),p=a[d?f==="floating"?"reference":"floating":f],m=fi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(p)))==null||n?p:p.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_=f==="floating"?{...r.floating,x:i,y:s}:r.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),y=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},x=fi(o.c
|
||
|
transform: ${l} scale(${1-c*d});
|
||
|
opacity: ${a-u*d}
|
||
|
`}}function xf(e){let t,n,i,s,o;const r=e[2].default,a=Rt(r,e,e[1],null);return{c(){t=P("div"),a&&a.c(),t.hidden=!0},m(l,c){ot(l,t,c),a&&a.m(t,null),i=!0,s||(o=Os(n=wf.call(null,t,e[0])),s=!0)},p(l,[c]){a&&a.p&&(!i||c&2)&&At(a,r,l,l[1],i?$t(r,l[1],c,null):Pt(l[1]),null),n&&ae(n.update)&&c&1&&n.update.call(null,l[0])},i(l){i||(S(a,l),i=!0)},o(l){M(a,l),i=!1},d(l){l&&X(t),a&&a.d(l),s=!1,o()}}}function wf(e,t="body"){let n;async function i(o){if(t=o,typeof t=="string"){if(n=document.querySelector(t),n===null&&(await Ts(),n=document.querySelector(t)),n===null)throw new Error(`No element found matching css selector: "${t}"`)}else if(t instanceof HTMLElement)n=t;else throw new TypeError(`Unknown portal target type: ${t===null?"null":typeof t}. Allowed types: string (CSS selector) or HTMLElement.`);n.appendChild(e),e.hidden=!1}function s(){e.parentNode&&e.parentNode.removeChild(e)}return i(t),{update:i,destroy:s}}function Sf(e,t,n){let{$$slots:i={},$$scope:s}=t,{target:o="body"}=t;return e.$$set=r=>{"target"in r&&n(0,o=r.target),"$$scope"in r&&n(1,s=r.$$scope)},[o,s,i]}class Cf extends K{constructor(t){super(),Q(this,t,Sf,xf,Y,{target:0})}}const Mf=e=>({}),Fo=e=>({floatingRef:e[3],displayTooltip:e[5],hideTooltip:e[6]});function Do(e){let t,n;return t=new Cf({props:{target:"body",$$slots:{default:[kf]},$$scope:{ctx:e}}}),{c(){H(t.$$.fragment)},m(i,s){V(t,i,s),n=!0},p(i,s){const o={};s&257&&(o.$$scope={dirty:s,ctx:i}),t.$set(o)},i(i){n||(S(t.$$.fragment,i),n=!0)},o(i){M(t.$$.fragment,i),n=!1},d(i){z(t,i)}}}function kf(e){let t,n,i,s,o,r;return{c(){t=P("div"),n=J(e[0]),O(t,"class","absolute p-2 text-sm bg-dark-50 text-dark-400 rounded-md max-w-xl font-main")},m(a,l){ot(a,t,l),w(t,n),s=!0,o||(r=Os(e[4].call(null,t)),o=!0)},p(a,l){(!s||l&1)&&jt(n,a[0])},i(a){s||(Qe(()=>{s&&(i||(i=ri(t,Ao,{duration:150},!0)),i.run(1))}),s=!0)},o(a){i||(i=ri(t,Ao,{duration:150},!1)),i.run(0),s=!1},d(a){a&&X(t),a&&i&&i.end(),o=!1,r()}}}function Rf(e){let t,n,i;const s=e[7].default,o=Rt(s,e,e[8],Fo);let r=e[2]&&!e[1]&&Do(e);return{c(){o&&o.c(),t=q(),r&&r.c(),n=kn()},m(a,l){o&&o.m(a,l),ot(a,t,l),r&&r.m(a,l),ot(a,n,l),i=!0},p(a,[l]){o&&o.p&&(!i||l&256)&&At(o,s,a,a[8],i?$t(s,a[8],l,Mf):Pt(a[8]),Fo),a[2]&&!a[1]?r?(r.p(a,l),l&6&&S(r,1)):(r=Do(a),r.c(),S(r,1),r.m(n.parentNode,n)):r&&(Lt(),M(r,1,1,()=>{r=null}),Tt())},i(a){i||(S(o,a),S(r),i=!0)},o(a){M(o,a),M(r),i=!1},d(a){o&&o.d(a),a&&X(t),r&&r.d(a),a&&X(n)}}}function $f(e,t,n){let{$$slots:i={},$$scope:s}=t,{content:o}=t,{disabled:r}=t;const[a,l]=yf({strategy:"absolute",placement:"top",middleware:[ff(6),uf(),hf()]});let c=!1,u;const f=()=>{r||(clearTimeout(u),u=setTimeout(()=>{n(2,c=!0)},300))},d=()=>{r||(clearTimeout(u),n(2,c=!1))};return e.$$set=h=>{"content"in h&&n(0,o=h.content),"disabled"in h&&n(1,r=h.disabled),"$$scope"in h&&n(8,s=h.$$scope)},[o,r,c,a,l,f,d,i,s]}class Af extends K{constructor(t){super(),Q(this,t,$f,Rf,Y,{content:0,disabled:1})}}function Oo(e,t,n){const i=e.slice();return i[9]=t[n],i}function Eo(e,t,n){const i=e.slice();return i[12]=t[n],i}function Lo(e,t,n){const i=e.slice();return i[18]=t[n],i}function To(e,t,n){const i=e.slice();return i[21]=t[n],i}function Io(e){let t,n,i,s,o,r,a,l,c,u;var f=ui(e[21].column.columnDef.header,e[21].getContext());function d(m){return{}}f&&(n=Xe(f,d()));const h=[Ff,Pf],g=[];function p(m,_){return _&1&&(s=null),_&1&&(o=null),s==null&&(s=m[21].column.getIsSorted()==="asc"),s?0:(o==null&&(o=m[21].column.getIsSorted()==="desc"),o?1:-1)}return~(r=p(e,-1))&&(a=g[r]=h[r](e)),{c(){t=P("button"),n&&H(n.$$.fragment),i=q(),a&&a.c(),O(t,"class","flex items-center justify-center w-full gap-1"),Fn(t,"cursor-pointer",e[21].column.getCanSort()),Fn(t,"select-none",e[21].column.getCanSort())},m(m,_){ot(m,t,_),n&&V(n,t,null),w(t,i),~r&&g[r].m(t,null),l=!0,c||(u=Nt(t,"click",function(){ae(e[21].column.getToggleSortingHandler())&&e[21].column.getToggleSortingHandler().apply(this,arguments)}),c=!0)},p(m,_){if(e=m,_&1&&f!==(f=ui(e[21].column.columnDef.header,e[21].getContext()))){if(n){Lt();const y=n;M(y.$$.fragment,1,0,()=>{z(y,1)}),Tt()}f?(n=Xe(f,d()),H(n.$$.fragment),S(n
|
||
|
* @kurkle/color v0.3.2
|
||
|
* https://github.com/kurkle/color#readme
|
||
|
* (c) 2023 Jukka Kurkela
|
||
|
* Released under the MIT License
|
||
|
*/function Rn(e){return e+.5|0}const ge=(e,t,n)=>Math.max(Math.min(e,n),t);function un(e){return ge(Rn(e*2.55),0,255)}function be(e){return ge(Rn(e*255),0,255)}function oe(e){return ge(Rn(e/2.55)/100,0,1)}function Bo(e){return ge(Rn(e*100),0,100)}const Et={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},ws=[..."0123456789ABCDEF"],rd=e=>ws[e&15],ad=e=>ws[(e&240)>>4]+ws[e&15],Tn=e=>(e&240)>>4===(e&15),ld=e=>Tn(e.r)&&Tn(e.g)&&Tn(e.b)&&Tn(e.a);function cd(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Et[e[1]]*17,g:255&Et[e[2]]*17,b:255&Et[e[3]]*17,a:t===5?Et[e[4]]*17:255}:(t===7||t===9)&&(n={r:Et[e[1]]<<4|Et[e[2]],g:Et[e[3]]<<4|Et[e[4]],b:Et[e[5]]<<4|Et[e[6]],a:t===9?Et[e[7]]<<4|Et[e[8]]:255})),n}const ud=(e,t)=>e<255?t(e):"";function fd(e){var t=ld(e)?rd:ad;return e?"#"+t(e.r)+t(e.g)+t(e.b)+ud(e.a,t):void 0}const dd=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ja(e,t,n){const i=t*Math.min(n,1-n),s=(o,r=(o+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function hd(e,t,n){const i=(s,o=(s+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function gd(e,t,n){const i=ja(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function pd(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function js(e){const n=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(n,i,s),r=Math.min(n,i,s),a=(o+r)/2;let l,c,u;return o!==r&&(u=o-r,c=a>.5?u/(2-o-r):u/(o+r),l=pd(n,i,s,u,o),l=l*60+.5),[l|0,c||0,a]}function Ws(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(be)}function Gs(e,t,n){return Ws(ja,e,t,n)}function md(e,t,n){return Ws(gd,e,t,n)}function _d(e,t,n){return Ws(hd,e,t,n)}function Wa(e){return(e%360+360)%360}function bd(e){const t=dd.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?un(+t[5]):be(+t[5]));const s=Wa(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=md(s,o,r):t[1]==="hsv"?i=_d(s,o,r):i=Gs(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function yd(e,t){var n=js(e);n[0]=Wa(n[0]+t),n=Gs(n),e.r=n[0],e.g=n[1],e.b=n[2]}function vd(e){if(!e)return;const t=js(e),n=t[0],i=Bo(t[1]),s=Bo(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${oe(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const jo={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"},Wo={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:"
|
||
|
* Chart.js v4.2.1
|
||
|
* https://www.chartjs.org
|
||
|
* (c) 2023 Chart.js Contributors
|
||
|
* Released under the MIT License
|
||
|
*/function ne(){}const $d=(()=>{let e=0;return()=>e++})();function tt(e){return e===null||typeof e>"u"}function st(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function W(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function dt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function wt(e,t){return dt(e)?e:t}function et(e,t){return typeof e>"u"?t:e}const Ad=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,qa=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function rt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function G(e,t,n,i){let s,o,r;if(st(e))if(o=e.length,i)for(s=o-1;s>=0;s--)t.call(n,e[s],s);else for(s=0;s<o;s++)t.call(n,e[s],s);else if(W(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(n,e[r[s]],r[s])}function gi(e,t){let n,i,s,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],o=t[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function pi(e){if(st(e))return e.map(pi);if(W(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=pi(e[n[s]]);return t}return e}function Ya(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Pd(e,t,n,i){if(!Ya(e))return;const s=t[e],o=n[e];W(s)&&W(o)?wn(s,o,i):t[e]=pi(o)}function wn(e,t,n){const i=st(t)?t:[t],s=i.length;if(!W(e))return e;n=n||{};const o=n.merger||Pd;let r;for(let a=0;a<s;++a){if(r=i[a],!W(r))continue;const l=Object.keys(r);for(let c=0,u=l.length;c<u;++c)o(l[c],e,r,n)}return e}function pn(e,t){return wn(e,t,{merger:Fd})}function Fd(e,t,n){if(!Ya(e))return;const i=t[e],s=n[e];W(i)&&W(s)?pn(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=pi(s))}const qo={"":e=>e,x:e=>e.x,y:e=>e.y};function Dd(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function Od(e){const t=Dd(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Ze(e,t){return(qo[t]||(qo[t]=Od(t)))(e)}function qs(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Yt=e=>typeof e<"u",xe=e=>typeof e=="function",Yo=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Ed(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ct=Math.PI,at=2*ct,mi=Number.POSITIVE_INFINITY,Ld=ct/180,lt=ct/2,Ce=ct/4,Uo=ct*2/3,pe=Math.log10,_i=Math.sign;function Zn(e,t,n){return Math.abs(e-t)<n}function Xo(e){const t=Math.round(e);e=Zn(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(pe(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function Td(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,o)=>s-o).pop(),t}function bi(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Id(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Ua(e,t,n){let i,s,o;for(i=0,s=e.length;i<s;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Bt(e){return e*(ct/180)}function Ys(e){return e*(180/ct)}function Ko(e){if(!dt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Xa(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*ct&&(o+=at),{angle:o,distance:s}}function Vd(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Qt(e){return(e%at+at)%at}function yi(e,t,n,i){const s=Qt(e),o=Qt(t),r=Qt(n),a=Qt(o-s),l=Qt(r-s),c=Qt(s-o),u=Qt(s-r);return s===o||s===r||i&&o===r||a>l&&c<u}function Mt(e,t,n){return Math.max(t,Math.min(n,e))}function zd(e){return Mt(e,-32768,32767)}function Hd(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Us(e,t,n){n=n||(r=>e[r]<t);let i=e.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,n(o)?s=o:i=o;return{lo:s,hi:i}}const Ss=(e,t,n,i)=>Us(e,n,i?s=>{const o=e[s][t];return o<n||o===n&&e[s+1][t]===n}:s=>e[s][t]<n),Nd=(e,t,n)=>Us(e,n,i=>e[i][t]>=n);function Bd(e,t,n){let i=0,s=e.length
|
||
|
* Chart.js v4.2.1
|
||
|
* https://www.chartjs.org
|
||
|
* (c) 2023 Chart.js Contributors
|
||
|
* Released under the MIT License
|
||
|
*/class Oh{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const o=n.listeners[s],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Qa.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ie=new Oh;const lr="transparent",Eh={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=tr(e||lr),s=i.valid&&tr(t||lr);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Lh{constructor(t,n,i,s){const o=n[i];s=Hn([t.to,s,o,t.from]);const r=Hn([t.from,o,s]);this._active=!0,this._fn=t.fn||Eh[t.type||typeof r],this._easing=_n[t.easing]||_n.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Hn([t.to,n,s,t.from]),this._from=Hn([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=o;return}l=n/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class ul{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!W(t))return;const n=Object.keys(ut.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!W(o))return;const r={};for(const a of n)r[a]=o[a];(st(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,n){const i=n.options,s=Ih(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&Th(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),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"){s.push(...this._animateOptions(t,n));continue}const u=n[c];let f=o[c];const d=i.get(c);if(f)if(d&&f.active()){f.update(d,u,a);continue}else f.cancel();if(!d||!d.duration){t[c]=u;continue}o[c]=f=new Lh(d,t,c,u),s.push(f)}return s}update(t,n){if(this._properties.size==
|
||
|
`)>-1?e.split(`
|
||
|
`):e}function mp(e,t){const{element:n,datasetIndex:i,index:s}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Er(e,t){const n=e.chart.ctx,{body:i,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=bt(t.bodyFont),c=bt(t.titleFont),u=bt(t.footerFont),f=o.length,d=s.length,h=i.length,g=kt(t.padding);let p=g.height,m=0,_=i.reduce((x,v)=>x+v.before.length+v.lines.length+v.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,f&&(p+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),_){const x=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*x+(_-h)*l.lineHeight+(_-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let b=0;const y=function(x){m=Math.max(m,n.measureText(x).width+b)};return n.save(),n.font=c.string,G(e.title,y),n.font=l.string,G(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?r+2+t.boxPadding:0,G(i,x=>{G(x.before,y),G(x.lines,y),G(x.after,y)}),b=0,n.font=u.string,G(e.footer,y),n.restore(),m+=g.width,{width:m,height:p}}function _p(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function bp(e,t,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function yp(e,t,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),bp(c,e,t,n)&&(c="center"),c}function Lr(e,t,n){const i=n.yAlign||t.yAlign||_p(e,n);return{xAlign:n.xAlign||t.xAlign||yp(e,t,n,i),yAlign:i}}function vp(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function xp(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function Tr(e,t,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:h}=yn(r);let g=vp(t,a);const p=xp(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,d)+s:a==="right"&&(g+=Math.max(f,h)+s),{x:Mt(g,0,i.width-t.width),y:Mt(p,0,i.height-t.height)}}function qn(e,t,n){const i=kt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function Ir(e){return Xt([],se(e))}function wp(e,t,n){return Te(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Vr(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Cl={beforeTitle:ne,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:ne,beforeBody:ne,beforeLabel:ne,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return tt(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ne,afterBody:ne,beforeFooter:ne,footer:ne,afterFooter:ne};function yt(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?Cl[t].call(n,i):s}class As extends Pn{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.afterBody=void 0,this.
|