PageSourceSearch

https://www.anytime-trial.com/_next/static/chunks/2whjuu7rwfmg7.js

js anytime-trial.com collected 2026-09-24 14:38:33 UTC 48,573 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,979630,411505,e=>{"use strict";var t=e.i(614948);let i={blue:["#000060","#0017C1","#3460FB","#7096F8","#C5D7FB","#D9E6FF"],lightBlue:["#00234B","#0055AD","#008BF2","#57B8FF","#C0E4FF","#F0F9FF"],cyan:["#003741","#006F83","#00A3BF","#2BC8E4","#99F2FF","#E9F7F9"],green:["#032213","#115A36","#259D63","#51B883","#9BD4B5","#E6F5EC"],orange:["#541E00","#AC3E00","#FB5B01","#FF8D44","#FFC199","#FFEEE2"],red:["#620000","#CE0000","#FE3939","#FF7171","#FFBBBB","#FDEEEE"],solidGray:["#1A1A1A","#4D4D4D","#767676","#999999","#CCCCCC","#F2F2F2"]},n={axis:"#626264",grid:"#CCCCCC",label:"#626264",text:"#000000",background:"#FFFFFF"},l={axis:"#A0A0A8",grid:"#3A3A40",label:"#A0A0A8",text:"#FFFFFF",background:"#1E1E22"},r=["circle","square","triangle","diamond"];function o(e){return r[e%r.length]}function s(e,t,i){if(t.color)return t.color;if(!1===t.emphasized)return i.palette.muted;let n=i.palette.series;return n[e%n.length]}function a(e,t,i,n,l){e.beginPath(),"circle"===t?e.arc(i,n,l,0,2*Math.PI):"square"===t?e.rect(i-l,n-l,2*l,2*l):("triangle"===t?(e.moveTo(i,n-l),e.lineTo(i+l,n+l),e.lineTo(i-l,n+l)):(e.moveTo(i,n-l),e.lineTo(i+l,n),e.lineTo(i,n+l),e.lineTo(i-l,n)),e.closePath()),e.fill()}function h(e){if(!Number.isFinite(e))return"";let t=Math.abs(e);return t>=1e6?`${(e/1e6).toFixed(1).replace(/\.0$/,"")}M`:t>=1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:e.toLocaleString("en-US")}function d(e,t,i,n,l,r=0,o=!1){e.save(),e.font="11px sans-serif",e.textAlign="left",e.textBaseline="middle";let a=i.x+i.width+12+r,h=i.y+4,f=n.map((e,t)=>t);o&&f.reverse(),f.forEach((i,r)=>{let o=n[i],d=h+18*r;d>t.y+t.height||(e.fillStyle=s(i,o,l),e.fillRect(a,d-4,10,8),e.fillStyle=l.palette.text,e.fillText(o.name,a+16,d))}),e.restore()}function f([e,t],[i,n]){let l=t===e?0:(n-i)/(t-e);return t=>i+(t-e)*l}function c(e,t,i=5){let n=Math.min(0,e),l=(t-n||1)/Math.max(1,i),r=10**Math.floor(Math.log10(l)),o=l/r,s=(o>=5?10:o>=2?5:o>=1?2:1)*r,a=[];for(let e=n;e<=t+1e-9*s;e+=s)a.push(Math.round(e/s)*s);return a.at(-1)<t&&a.push(a.at(-1)+s),a}function u(e,t,i,n){e.save(),e.fillStyle=n.palette.text,e.font="bold 13px sans-serif",e.textAlign="left",e.textBaseline="top",e.fillText(i,t.x+4,t.y+4),e.restore()}function g(e,t,i,n,l,r,h){let d=s(n,i,l),f=o(n),c=i.values??[],u=[];e.save(),e.strokeStyle=d,e.fillStyle=d,e.lineWidth=2,e.setLineDash(i.dashed?[6,4]:[]),e.beginPath();let g=!1;for(let t of(c.forEach((t,l)=>{if(null==t||!Number.isFinite(t)){i.connectNulls||(g=!1);return}let o=h(l),s=r(t);g?e.lineTo(o,s):e.moveTo(o,s),g=!0,u.push({seriesIndex:n,dataIndex:l,cx:o,cy:s,value:t})}),e.stroke(),e.setLineDash([]),u))a(e,f,t.cx,t.cy,3.5);return e.restore(),u}function p(e,t,i,n,l,r){return r.horizontal?function(e,t,i,n,l,r){let o=Math.max(1,...i.map(e=>(e.values??[]).length)),a=t.height/o,h=.7*a,d=l(0),f=[],c=r.stacked&&!r.grouped;for(let r=0;r<o;r++){let o=t.y+a*r+(a-h)/2,u=d;i.forEach((t,a)=>{let g,p,x,m,y=(t.values??[])[r];if(null!=y&&Number.isFinite(y)){if(e.save(),e.fillStyle=s(a,t,n),c){let e=l(y)-d;g=u,x=e,p=o,m=h,u+=e}else{let e=h/i.length;p=o+e*a,m=e,g=Math.min(d,l(y)),x=Math.abs(l(y)-d)}e.fillRect(g,p,x,m),e.restore(),f.push({seriesIndex:a,dataIndex:r,cx:g+x,cy:p+m/2,value:y})}})}return f}(e,t,i,n,l,r):function(e,t,i,n,l,r){let o=Math.max(1,...i.map(e=>(e.values??[]).length)),a=t.width/o,h=.7*a,d=l(0),f=[],c=r.stacked&&!r.grouped;for(let r=0;r<o;r++){let o=t.x+a*r+(a-h)/2,u=d;i.forEach((t,a)=>{let g,p,x,m,y=(t.values??[])[r];if(null!=y&&Number.isFinite(y)){if(e.save(),e.fillStyle=s(a,t,n),c){let e=l(y)-(d-u);g=o,p=h,x=e,m=d-l(y),u=e}else{let e=h/i.length;g=o+e*a,p=e,x=Math.min(d,l(y)),m=Math.abs(d-l(y))}e.fillRect(g,x,p,m),e.restore(),f.push({seriesIndex:a,dataIndex:r,cx:g+p/2,cy:x,value:y})}})}return f}(e,t,i,n,l,r)}function x(e,t,i,n,l,r,h){let d=Math.max(0,...i.map(e=>(e.values??[]).length)),f=Array(d).fill(0),c=[];return i.forEach((t,i)=>{let u=s(i,t,n),g=o(i),p=t.values??[],x=[];for(let e=0;e<d;e++){let t=p[e],i=null==t||!Number.isFinite(t),n=null!=t&&Number.isFinite(t)?t:0,o=h.stacked?f[e]:0,s=r(e);x.push({cx:s,cy:l(o+n),baseY:l(o),value:n,i:e,missing:i}),h.stacked&&(f[e]=o+n)}if(0!==x.length){e.save(),e.fillStyle=u,e.globalAlpha=.3,e.beginPath(),e.moveTo(x[0].cx,x[0].cy);for(let t=1;t<x.length;t++)e.lineTo(x[t].cx,x[t].cy);for(let t=x.length-1;t>=0;t--)e.lineTo(x[t].cx,x[t].baseY);for(let i of(e.closePath(),e.fill(),e.globalAlpha=1,e.strokeStyle=u,e.lineWidth=2,e.setLineDash(t.dashed?[6,4]:[]),e.beginPath(),x.forEach((t,i)=>0===i?e.moveTo(t.cx,t.cy):e.lineTo(t.cx,t.cy)),e.stroke(),e.setLineDash([]),e.fillStyle=u,x))i.missing||a(e,g,i.cx,i.cy,3.5);
1for(let t of(e.restore(),x))t.missing||c.push({seriesIndex:i,dataIndex:t.i,cx:t.cx,cy:t.cy,value:t.value})}}),c}let m=-Math.PI/2,y=2*Math.PI;function b(e){let t=[];for(let i of e){for(let e of i.values??[])null!=e&&Number.isFinite(e)&&t.push(e);for(let e of i.points??[])Number.isFinite(e.y)&&t.push(e.y)}return t}function w(e){let t=Math.max(0,...e.map(e=>(e.values??[]).length)),i=0;for(let n=0;n<t;n++){let t=0;for(let i of e){let e=(i.values??[])[n];null!=e&&Number.isFinite(e)&&(t+=e)}i=Math.max(i,t)}return i}class v{canvas;ctx;spec;mode;palette;layout;selectedIndex;tooltip;onMove;onLeave;onClick;onSelectCategory;constructor(e,t={}){this.canvas=e,this.spec=null,this.layout=null,this.selectedIndex=null,this.tooltip=null;const i=e.getContext("2d");if(!i)throw Error("[anytime-chart] 2D context unavailable");this.ctx=i,this.mode=t.theme??"light",this.palette=t.palette??"blue",this.onSelectCategory=t.onSelectCategory,this.onMove=e=>this.handleHover(e),this.onLeave=()=>this.hideTooltip(),this.onClick=e=>this.handleClick(e),e.addEventListener("mousemove",this.onMove),e.addEventListener("mouseleave",this.onLeave),e.addEventListener("click",this.onClick)}setSpec(e){this.spec=e,this.selectedIndex=null,this.draw()}setTheme(e){this.mode=e,this.draw()}setPalette(e){this.palette=e,this.draw()}resize(){this.draw()}getLayout(){return this.layout}destroy(){this.canvas.removeEventListener("mousemove",this.onMove),this.canvas.removeEventListener("mouseleave",this.onLeave),this.canvas.removeEventListener("click",this.onClick),this.tooltip?.remove(),this.tooltip=null}async toPng(e=1){return await new Promise((t,i)=>{let n=document.createElement("canvas");n.width=this.canvas.width*e,n.height=this.canvas.height*e;let l=n.getContext("2d");if(!l)return i(Error("[anytime-chart] toPng context unavailable"));l.drawImage(this.canvas,0,0,n.width,n.height),n.toBlob(e=>e?t(e):i(Error("[anytime-chart] toBlob failed")),"image/png")})}cssSize(){let e=this.canvas.width/(this.canvas.clientWidth||this.canvas.width||1);return{width:this.canvas.clientWidth||this.canvas.width,height:this.canvas.clientHeight||this.canvas.height,dpr:Number.isFinite(e)&&e>0?e:1}}draw(){if(!this.spec)return;let{width:e,height:t,dpr:r}=this.cssSize();this.ctx.setTransform(r,0,0,r,0,0),this.ctx.clearRect(0,0,e,t);let v=function(e,t="blue"){let r=i[t]??i.blue,o="dark"===e?[...r].reverse():[...r],s="dark"===e?l:n;return{mode:e,palette:{series:o,muted:"#999999",axis:s.axis,grid:s.grid,label:s.label,text:s.text,background:s.background}}}(this.mode,this.palette);this.layout=function(e,t,i,n,l){var r,v;let S,M,C,T,E,F,A,k,I,L,R,B,P,D,N,O=(S=i.options?.legend??"near-line",M=!!i.title,C=("combo"===i.kind||"line"===i.kind)&&i.series.some(e=>"right"===e.axis),T=i.options?.yAxis?.label,E=i.options?.yAxisRight?.label,A=(F="bottom"===S&&"pie"!==i.kind&&!("bar"===i.kind&&i.options?.horizontal))?function(e,t,i){e.save(),e.font="11px sans-serif";let n=t.map((t,i)=>({index:i,name:t.name,width:16+e.measureText(t.name).width}));e.restore();let l=[],r=[],o=0;for(let e of n){let t=16*(0!==r.length)+e.width;r.length>0&&o+t>i&&(l.push(r),r=[],o=0),r.push(e),o+=1===r.length?e.width:t}return r.length>0&&l.push(r),l}(e,i.series,Math.max(40,t.width-64)):[],r={hasTitle:M,legend:S,hasRightAxis:C,hasYAxisLabel:!!T&&"pie"!==i.kind,hasRightAxisLabel:!!E&&C,legendBottomRows:A.length},k=t.y+(r.hasTitle?28:8),I="bottom"===r.legend,L="none"===r.legend||I?8:72,R=(r.hasRightAxis?8===L?48:L+48:L)+18*!!r.hasRightAxisLabel,B=t.x+56+18*!!r.hasYAxisLabel,P=t.x+t.width-R,D=I?r.legendBottomRows??0:0,{legend:S,hasTitle:M,hasRight:C,yAxisLabel:T,yAxisRightLabel:E,wantBottomLegend:F,bottomLegendRows:A,plot:{x:B,y:k,width:Math.max(1,P-B),height:Math.max(1,t.y+t.height-28-(D>0?18*D+6:0)-k)}});if(e.save(),e.fillStyle=n.palette.background,e.fillRect(t.x,t.y,t.width,t.height),e.restore(),"pie"===i.kind)return function(e,t,i){let{spec:n,theme:l,hasTitle:r}=i,o=t.y+(r?28:8),s={x:t.x+8,y:o,width:Math.max(1,t.width-16),height:Math.max(1,t.height-(o-t.y)-8)},a=function(e,t,i,n,l){let{palette:r}=n,o=i.categories??[],s=(i.series[0]?.values??[]).map(e=>null==e||!Number.isFinite(e)||e<0?0:e),a=s.reduce((e,t)=>
1e+t,0),d=i.options?.legend!=="none",f=t.x+t.width/2,c=t.y+t.height/2,u=Math.max(8,Math.min(t.width,t.height)/2*(d?.62:.82)),g=[];a<=0&&(e.save(),e.globalAlpha=.35,e.fillStyle=r.muted,e.beginPath(),e.arc(f,c,u,0,y),e.fill(),e.restore());let p=m;return s.forEach((t,i)=>{if(t<=0)return;let n=t/a*y,l=p+n,s=r.series[i%r.series.length];e.save(),e.fillStyle=s,e.beginPath(),e.moveTo(f,c),e.arc(f,c,u,p,l),e.closePath(),e.fill(),e.restore();let h=p+n/2;if(d){let n=Math.round(t/a*100),l=f+Math.cos(h)*u*1.15,s=c+Math.sin(h)*u*1.15;e.save(),e.fillStyle=r.label,e.font="11px sans-serif",e.textAlign=Math.cos(h)>=0?"left":"right",e.textBaseline="middle";let d=o[i]?`${o[i]} ${n}%`:`${n}%`;e.fillText(d,l,s),e.restore()}g.push({seriesIndex:0,dataIndex:i,cx:f+Math.cos(h)*u*.6,cy:c+Math.sin(h)*u*.6,value:t}),p=l}),l.donut&&(e.save(),e.fillStyle=r.background,e.beginPath(),e.arc(f,c,.55*u,0,y),e.fill(),e.fillStyle=r.text,e.font="bold 14px sans-serif",e.textAlign="center",e.textBaseline="middle",e.fillText(h(a),f,c),e.restore()),g}(e,s,n,l,{donut:n.options?.donut});return n.title&&u(e,t,n.title,l),{spec:n,plotRect:s,points:a}}(e,t,{spec:i,theme:n,hasTitle:O.hasTitle});if("bar"===i.kind&&i.options?.horizontal)return function(e,t,i){let{plot:n,spec:l,theme:r,legend:o}=i,s=c(0,l.options?.stacked&&!l.options?.grouped?w(l.series):Math.max(0,...b(l.series)),5),a=f([0,s.at(-1)??1],[n.x,n.x+n.width]);!function(e,t,i,n,l,r){let{palette:o}=r;for(let l of(e.save(),e.strokeStyle=o.grid,e.fillStyle=o.label,e.lineWidth=1,e.font="11px sans-serif",e.textAlign="center",e.textBaseline="top",i)){let i=Math.round(n(l))+.5;e.beginPath(),e.moveTo(i,t.y),e.lineTo(i,t.y+t.height),e.stroke(),e.fillText(h(l),i,t.y+t.height+6)}if(e.restore(),l.length>0){e.save(),e.fillStyle=o.label,e.font="11px sans-serif",e.textAlign="right",e.textBaseline="middle";let i=t.height/l.length;l.forEach((n,l)=>{let r=t.y+i*(l+.5);e.fillText(n,t.x-8,r)}),e.restore()}}(e,n,s,a,Array.from({length:Math.max(1,...l.series.map(e=>(e.values??[]).length),l.categories?.length??0)},(e,t)=>l.categories?.[t]??""),r);let g=p(e,n,l.series,r,a,{stacked:l.options?.stacked,grouped:l.options?.grouped,horizontal:!0});return("adjacent"===o||l.series.length>1)&&d(e,t,n,l.series,r),l.title&&u(e,t,l.title,r),{spec:l,plotRect:n,points:g}}(e,t,{plot:O.plot,spec:i,theme:n,legend:O.legend});let z=function(e,t){var i;let{plot:n,theme:l,hasRight:r}=t,o=!!e.options?.stacked&&("bar"===e.kind||"area"===e.kind),s="combo"===e.kind&&e.options?.stacked===!0,a=r?e.series.filter(e=>"right"!==e.axis):e.series,h=r?e.series.filter(e=>"right"===e.axis):[],d=(i={stacked:o,comboStacked:s},e=>{if(i.comboStacked){let t=e.filter(e=>(e.type??"bar")==="bar"),i=e.filter(e=>"area"===e.type),n=e.filter(e=>"line"===e.type);return Math.max(w(t),w(i),0,...b(n))}return i.stacked?w(e):Math.max(0,...b(e))}),u=c(0,d(a),5),g=f([0,u.at(-1)??1],[n.y+n.height,n.y]),p=c(0,d(h),5),x=f([0,p.at(-1)??1],[n.y+n.height,n.y]),m=r&&e.series.every(e=>"right"===e.axis)?x:g,y="scatter"===e.kind?0:Math.max(e.categories?.length??0,...e.series.map(e=>(e.values??[]).length),1),v="scatter"===e.kind?[]:Array.from({length:y},(t,i)=>e.categories?.[i]??"");return{context:{plot:n,theme:l,leftScale:g,rightScale:x,barScale:m,scaleFor:e=>r&&"right"===e.axis?x:g,hasRight:r,stacked:o,comboStacked:s,lineBarCount:y},leftTicks:u,rightTicks:p,xLabels:v}}(i,{plot:O.plot,theme:n,hasRight:O.hasRight});!function(e,t,i){var n,l,r,o;let s,a,d,{context:f,leftTicks:c,rightTicks:u,xLabels:g}=i.setup;!function(e,t,i,n,l,r,o){let{palette:s}=r;for(let l of(e.save(),e.strokeStyle=s.grid,e.fillStyle=s.label,e.lineWidth=1,e.font="11px sans-serif",e.textAlign="right",e.textBaseline="middle",i)){let i=Math.round(n(l))+.5;e.beginPath(),e.moveTo(t.x,i),e.lineTo(t.x+t.width,i),e.stroke(),e.fillText(h(l),t.x-8,i)}if(e.restore(),l.length>0){e.save(),e.fillStyle=s.label,e.font="11px sans-serif",e.textAlign="center",e.textBaseline="top";let i=t.width/l.length;l.forEach((n,l)=>{let r=t.x+i*(l+.5);e.fillText(n,r,t.y+t.height+6)}),e.restore()}o&&(e.save(),e.fillStyle=s.text,e.font="bold 12px sans-serif",e.textAlign="center",e.textBaseline="middle",e.translate(t.x-38,t.y+t.height/2),e.rotate(-Math.PI/2),e.fillText(o,0,0),e.restore(
1))}(e,f.plot,c,f.leftScale,g,i.theme,i.yAxisLabel),f.hasRight&&function(e,t,i,n,l,r){for(let r of(e.save(),e.fillStyle=l.palette.label,e.font="11px sans-serif",e.textAlign="left",e.textBaseline="middle",i))e.fillText(h(r),t.x+t.width+6,Math.round(n(r)));e.restore(),r&&(e.save(),e.fillStyle=l.palette.text,e.font="bold 12px sans-serif",e.textAlign="center",e.textBaseline="middle",e.translate(t.x+t.width+38,t.y+t.height/2),e.rotate(Math.PI/2),e.fillText(r,0,0),e.restore())}(e,f.plot,u,f.rightScale,i.theme,i.yAxisRightLabel);let p=i.highlightIndex;null!=p&&p>=0&&p<f.lineBarCount&&(n=f.plot,l={theme:i.theme,highlightIndex:p,lineBarCount:f.lineBarCount},s=n.width/l.lineBarCount,e.save(),e.fillStyle=l.theme.palette.label,e.globalAlpha=.16,e.fillRect(n.x+s*l.highlightIndex,n.y,s,n.height),e.restore());let x=t.options?.referenceBand;x&&(r=f.plot,o={theme:i.theme,band:x,leftScale:f.leftScale},e.save(),e.fillStyle=o.theme.palette.grid,e.globalAlpha=.4,a=o.leftScale(o.band.to),d=o.leftScale(o.band.from),e.fillRect(r.x,Math.min(a,d),r.width,Math.abs(d-a)),e.restore()),t.markers&&t.markers.length>0&&function(e,t,i,n,l){let r=t.width/Math.max(1,i.length);for(let i of n){let n=t.x+r*(i.xIndex+.5),o=i.color??l.palette.label;e.save(),"point"===i.style?(e.fillStyle=o,e.beginPath(),e.arc(n,t.y+4,3,0,2*Math.PI),e.fill()):(e.strokeStyle=o,e.lineWidth=1,e.beginPath(),e.moveTo(Math.round(n)+.5,t.y),e.lineTo(Math.round(n)+.5,t.y+t.height),e.stroke()),i.label&&(e.fillStyle=l.palette.label,e.font="10px sans-serif",e.textAlign="center",e.textBaseline="bottom",e.fillText(i.label,n,t.y-1)),e.restore()}}(e,f.plot,g,t.markers,i.theme)}(e,i,{setup:z,theme:n,yAxisLabel:O.yAxisLabel,yAxisRightLabel:O.yAxisRightLabel,highlightIndex:l});let{points:_,pointsBySeries:H}=function(e,t,i){if("bar"===t.kind){let n,l;return n=p(e,i.plot,t.series,i.theme,i.barScale,{stacked:t.options?.stacked,grouped:t.options?.grouped}),l=[],t.series.forEach((e,t)=>l.push(n.filter(e=>e.seriesIndex===t))),{points:[...n],pointsBySeries:l}}return"scatter"===t.kind?function(e,t,i){let[n,l]=function(e){let t=[];for(let i of e.series)for(let e of i.points??[])Number.isFinite(e.x)&&t.push(e.x);if(0===t.length)return[0,1];let i=Math.min(...t),n=Math.max(...t),l=.05*(n-i||1);return[i-l,n+l]}(t),r=f([n,l],[i.plot.x,i.plot.x+i.plot.width]),h=[],d=[];return t.series.forEach((t,n)=>{var l,f;let c,u,g,p,x=(i.plot,l=i.theme,f=i.leftScale,c=s(n,t,l),u=o(n),g=t.points??[],p=[],e.save(),e.fillStyle=c,g.forEach((t,i)=>{let l=r(t.x),o=f(t.y);a(e,u,l,o,4),p.push({seriesIndex:n,dataIndex:i,cx:l,cy:o,value:t.y})}),e.restore(),p);h.push(...x),d.push(x)}),{points:h,pointsBySeries:d}}(e,t,i):"combo"===t.kind?function(e,t,i){let n=i.plot.width/i.lineBarCount,l=e=>i.plot.x+n*(e+.5),r=[],o=[],s=[];t.series.forEach((e,t)=>{let n=e.color?e:{...e,color:i.theme.palette.series[t%i.theme.palette.series.length]},l=e.type??"bar";"line"===l?o.push({s:n,i:t}):"area"===l?s.push({s:n,i:t}):r.push({s:n,i:t})});let a=i.hasRight&&r.length>0&&r.every(e=>"right"===e.s.axis)?i.rightScale:i.leftScale,h=[];for(let t of p(e,i.plot,r.map(e=>e.s),i.theme,a,i.comboStacked?{stacked:!0}:{grouped:!0}))h.push({...t,seriesIndex:r[t.seriesIndex]?.i??t.seriesIndex});if(s.length>0){let t=i.scaleFor(s[0].s);for(let n of x(e,i.plot,s.map(e=>e.s),i.theme,t,l,{stacked:i.comboStacked}))h.push({...n,seriesIndex:s[n.seriesIndex]?.i??n.seriesIndex})}for(let t of o){let n=g(e,i.plot,t.s,t.i,i.theme,i.scaleFor(t.s),l);h.push(...n)}return{points:h,pointsBySeries:[]}}(e,t,i):function(e,t,i){let n=i.plot.width/i.lineBarCount,l=e=>i.plot.x+n*(e+.5),r=[],o=[];if("area"===t.kind){let n=x(e,i.plot,t.series,i.theme,i.leftScale,l,{stacked:i.stacked});return r.push(...n),t.series.forEach((e,t)=>o.push(n.filter(e=>e.seriesIndex===t))),{points:r,pointsBySeries:o}}return t.series.forEach((t,n)=>{let s=g(e,i.plot,t,n,i.theme,i.scaleFor(t),l);r.push(...s),o.push(s)}),{points:r,pointsBySeries:o}}(e,t,i)}(e,i,z.context);return!function(e,t,i){var n,l;let{plot:r,spec:o,theme:a,legendMode:h,pointsBySeries:f,hasRight:c,stacked:u,wantBottomLegend:g,bottomLegendRows:p}=i;if("near-line"===h)return n=o.series,e.save(),e.font="11px sans-serif",e.textAlign="left",e.textBaseline="middle",n.forEac
1h((t,i)=>{let n=f[i],l=n?.at(-1);l&&(e.fillStyle=s(i,t,a),e.fillText(t.name,l.cx+6,l.cy))}),e.restore();if("adjacent"===h)return d(e,t,r,o.series,a,44*!!c,u);if("bottom"===h&&g&&p.length>0){let i,n=t.y+t.height-(18*p.length+6);l=o.series,e.save(),e.font="11px sans-serif",e.textAlign="left",e.textBaseline="middle",i=t.x+t.width/2,p.forEach((t,r)=>{let o=i-(t.reduce((e,t)=>e+t.width,0)+16*(t.length-1))/2,h=n+18*r+9;for(let i of t)e.fillStyle=s(i.index,l[i.index],a),e.fillRect(o,h-4,10,8),e.fillStyle=a.palette.text,e.fillText(i.name,o+10+6,h),o+=i.width+16}),e.restore()}}(e,t,{plot:O.plot,spec:i,theme:n,legendMode:(v=O.legend,N=v,("none"!==v&&"bottom"!==v&&"combo"===i.kind&&(N="adjacent"),"near-line"===N&&("bar"===i.kind||"area"===i.kind))?i.series.length>1?"adjacent":"none":N),pointsBySeries:H,hasRight:O.hasRight,stacked:z.context.stacked,wantBottomLegend:O.wantBottomLegend,bottomLegendRows:O.bottomLegendRows}),i.title&&u(e,t,i.title,n),{spec:i,plotRect:O.plot,points:_}}(this.ctx,{x:0,y:0,width:e,height:t},this.spec,v,this.selectedIndex)}handleClick(e){if(!this.layout)return;let t=this.canvas.getBoundingClientRect(),i=function(e,t){let i=e.spec.categories?.length??0;if(i<=0||"pie"===e.spec.kind||"scatter"===e.spec.kind)return null;let{x:n,width:l}=e.plotRect;if(t<n||t>n+l)return null;let r=Math.floor((t-n)/(l/i));return Math.min(i-1,Math.max(0,r))}(this.layout,e.clientX-t.left);null!=i&&(this.selectedIndex=i,this.draw(),this.onSelectCategory?.(i))}handleHover(e){if(!this.layout||this.spec?.options?.valueLabels==="always")return;let t=this.canvas.getBoundingClientRect(),i=function(e,t,i){let n=null,l=196;for(let r of e.points){let o=r.cx-t,s=r.cy-i,a=o*o+s*s;if(a<=l){l=a;let t=e.spec.series[r.seriesIndex],i=e.spec.categories?.[r.dataIndex],o=i?`${t?.name??""} ${i}`:t?.name??"";n={seriesIndex:r.seriesIndex,dataIndex:r.dataIndex,value:r.value,label:o}}}return n}(this.layout,e.clientX-t.left,e.clientY-t.top);if(!i)return this.hideTooltip();this.showTooltip(e.clientX,e.clientY,`${i.label}: ${h(i.value)}`)}ensureTooltip(){if(this.tooltip)return this.tooltip;let e=document.createElement("div");return e.setAttribute("role","status"),e.style.cssText="position:fixed;pointer-events:none;z-index:2147483647;padding:2px 6px;border-radius:4px;font:11px sans-serif;background:#1E1E22;color:#fff;white-space:nowrap;transform:translate(-50%,-130%)",document.body.appendChild(e),this.tooltip=e,e}showTooltip(e,t,i){let n=this.ensureTooltip();n.textContent=i,n.style.left=`${e}px`,n.style.top=`${t}px`,n.style.display="block"}hideTooltip(){this.tooltip&&(this.tooltip.style.display="none")}}class S extends t.HTMLElementBase{static get observedAttributes(){return["theme","palette"]}view=null;canvas=null;resizeObserver=null;chartSpec=null;connectedCallback(){let e=this.shadowRoot??this.attachShadow({mode:"open"});e.replaceChildren();let t=document.createElement("style");t.textContent=":host{display:block;width:100%;height:100%}canvas{display:block;width:100%;height:100%}";let i=document.createElement("canvas");e.append(t,i),this.canvas=i,this.setAttribute("role","img"),this.view=new v(i,{theme:this.currentTheme(),palette:this.currentPalette(),onSelectCategory:e=>this.dispatchEvent(new CustomEvent("category-click",{detail:{dataIndex:e},bubbles:!0,composed:!0}))}),this.resizeObserver=new ResizeObserver(()=>this.syncCanvasSize()),this.resizeObserver.observe(this),this.syncCanvasSize(),this.chartSpec&&this.applySpec(this.chartSpec)}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.view?.destroy(),this.view=null,this.canvas=null}attributeChangedCallback(e,t,i){t!==i&&this.view&&("theme"===e?this.view.setTheme(this.currentTheme()):"palette"===e&&this.view.setPalette(this.currentPalette()))}set spec(e){this.chartSpec=e,this.view&&this.applySpec(e)}get spec(){return this.chartSpec}toPng(e=1){return this.view?this.view.toPng(e):Promise.reject(Error("[anytime-chart] not connected"))}applySpec(e){try{this.view?.setSpec(e),this.updateAriaLabel(e)}catch(e){console.error("[anytime-chart] failed to apply spec",e)}}updateAriaLabel(e){let t={line:"折れ線",bar:"棒",scatter:"散布図",area:"面",pie:"円",combo:"複合"}[e.kind],i=e.series.map(e=>e.name).join(", ");this.setAttribute("aria-label",`${e.title??t}グラフ。系列: ${i}`)}
1currentTheme(){return"dark"===this.getAttribute("theme")?"dark":"light"}currentPalette(){return this.getAttribute("palette")||"blue"}syncCanvasSize(){if(!this.canvas)return;let e=this.getBoundingClientRect(),t=globalThis.devicePixelRatio||1,i=Math.max(1,Math.round(e.width*t)),n=Math.max(1,Math.round(e.height*t));this.canvas.width=i,this.canvas.height=n,this.canvas.style.width=`${i/t}px`,this.canvas.style.height=`${n/t}px`,this.view?.resize()}}e.s(["AnytimeChartElement",0,S],411505),"u">typeof customElements&&!customElements.get("anytime-chart")&&customElements.define("anytime-chart",S),e.s([],979630)},6791,e=>{"use strict";e.s(["alignBottom",0,function(e){if(0===e.length)return e;let t=Math.max(...e.map(e=>e.y+e.height));return e.map(e=>({...e,y:t-e.height}))},"alignCenterH",0,function(e){if(0===e.length)return e;let t=e.map(e=>e.x+e.width/2),i=t.reduce((e,t)=>e+t,0)/t.length;return e.map(e=>({...e,x:i-e.width/2}))},"alignCenterV",0,function(e){if(0===e.length)return e;let t=e.map(e=>e.y+e.height/2),i=t.reduce((e,t)=>e+t,0)/t.length;return e.map(e=>({...e,y:i-e.height/2}))},"alignLeft",0,function(e){if(0===e.length)return e;let t=Math.min(...e.map(e=>e.x));return e.map(e=>({...e,x:t}))},"alignRight",0,function(e){if(0===e.length)return e;let t=Math.max(...e.map(e=>e.x+e.width));return e.map(e=>({...e,x:t-e.width}))},"alignTop",0,function(e){if(0===e.length)return e;let t=Math.min(...e.map(e=>e.y));return e.map(e=>({...e,y:t}))},"distributeH",0,function(e){if(e.length<3)return e;let t=[...e].sort((e,t)=>e.x-t.x),i=t.reduce((e,t)=>e+t.width,0),n=Math.max(0,(t.at(-1).x+t.at(-1).width-t[0].x-i)/(t.length-1)),l=t[0].x,r=new Map;return t.forEach(e=>{r.set(e.id,l),l+=e.width+n}),e.map(e=>({...e,x:r.get(e.id)??e.x}))},"distributeV",0,function(e){if(e.length<3)return e;let t=[...e].sort((e,t)=>e.y-t.y),i=t.reduce((e,t)=>e+t.height,0),n=Math.max(0,(t.at(-1).y+t.at(-1).height-t[0].y-i)/(t.length-1)),l=t[0].y,r=new Map;return t.forEach(e=>{r.set(e.id,l),l+=e.height+n}),e.map(e=>({...e,y:r.get(e.id)??e.y}))}])},745839,e=>{"use strict";function t(e){return 1-Math.pow(1-e,3)}e.s(["easeOutCubic",0,t,"interpolateViewport",0,function(e,i){let n=i-e.startTime;if(n>=e.duration)return{viewport:{...e.to},done:!0};let l=t(n/e.duration);return{viewport:{offsetX:e.from.offsetX+(e.to.offsetX-e.from.offsetX)*l,offsetY:e.from.offsetY+(e.to.offsetY-e.from.offsetY)*l,scale:e.from.scale+(e.to.scale-e.from.scale)*l},done:!1}}])},513679,e=>{"use strict";function t(e){let t=e.replace("#","");return[Number.parseInt(t.slice(0,2),16),Number.parseInt(t.slice(2,4),16),Number.parseInt(t.slice(4,6),16)]}e.s(["interpolateColor",0,function(e,i,n){var l,r,o;let s,a=Math.max(0,Math.min(1,n)),[h,d,f]=t(e),[c,u,g]=t(i);return l=h+(c-h)*a,r=d+(u-d)*a,o=f+(g-f)*a,s=e=>Math.max(0,Math.min(255,Math.round(e))),`#${s(l).toString(16).padStart(2,"0")}${s(r).toString(16).padStart(2,"0")}${s(o).toString(16).padStart(2,"0")}`},"linearScale",0,function(e,t,i,n){if(e===t){let e=(i+n)/2;return()=>e}return l=>i+Math.max(0,Math.min(1,(l-e)/(t-e)))*(n-i)}])},799933,e=>{"use strict";e.s(["findShortestPath",0,function(e,t,i){if(t===i)return{nodeIds:[t],edgeIds:[]};let n=function(e){let t=new Map,i=e=>{let i=t.get(e);return i||(i=[],t.set(e,i)),i};for(let t of e){let e=t.from.nodeId,n=t.to.nodeId;if(!e||!n)continue;let l=t.weight,r=void 0!==l&&l>0?1/l:1;i(e).push({neighbor:n,edgeId:t.id,cost:r}),i(n).push({neighbor:e,edgeId:t.id,cost:r})}return t}(e);if(!n.has(t)||!n.has(i))return null;let l=new Map,r=new Map,o=new Set,s=[];for(l.set(t,0),s.push([0,t]);s.length>0;){let[e,t]=function(e){let t=0;for(let i=1;i<e.length;i++)e[i][0]<e[t][0]&&(t=i);let i=e[t];return e.splice(t,1),i}(s);if(!o.has(t)){if(o.add(t),t===i)break;!function(e,t,i,n,l,r,o){let s=i.get(e);if(s)for(let{neighbor:i,edgeId:a,cost:h}of s){if(r.has(i))continue;let s=t+h,d=n.get(i);(void 0===d||s<d)&&(n.set(i,s),l.set(i,{node:e,edgeId:a}),o.push([s,i]))}}(t,e,n,l,r,o,s)}}if(!r.has(i))return null;let a=[i],h=[],d=i;for(;d!==t;){let e=r.get(d);if(!e)return null;h.unshift(e.edgeId),a.unshift(e.node),d=e.node}return{nodeIds:a,edgeIds:h}}])},918009,e=>{"use strict";function t(e,i=20){let n=Math.round(e/i)*i;return 0===n?0:n}e.s(["snapRect",0,function(e,i,n,l,r=20,o=!1){return{x:t(e,r),y:t(i,r),width:o?t(n,r):n,height:o?t(l,r):l}}
1,"snapToGrid",0,t])},723585,e=>{"use strict";e.i(933724);var t=e.i(12795),i=e.i(543384),n=e.i(907998),l=e.i(696834),r=e.i(166878),o=e.i(379982),s=e.i(13363),a=e.i(793156),h=e.i(226568),d=e.i(910974),f=e.i(442961),c=e.i(918009),u=e.i(6791),g=e.i(421116),p=e.i(745839),x=e.i(900294),m=e.i(206143),y=e.i(513679),b=e.i(799933),w=e.i(333602),v=e.i(437857),S=e.i(719636),M=e.i(592355),C=e.i(675107),T=e.i(324321);e.s(["MINIMAP_BOUNDS_PAD",()=>S.MINIMAP_BOUNDS_PAD,"MINIMAP_ZOOM_DELTA",()=>S.MINIMAP_ZOOM_DELTA,"alignBottom",()=>u.alignBottom,"alignCenterH",()=>u.alignCenterH,"alignCenterV",()=>u.alignCenterV,"alignLeft",()=>u.alignLeft,"alignRight",()=>u.alignRight,"alignTop",()=>u.alignTop,"batchCreateGraph",0,function(e){let t=(0,w.createDocument)(e.name??"Untitled"),i=e.nodes.length,n=Math.max(100,40*i),l=new Map;for(let r=0;r<i;r++){let o=e.nodes[r],s=2*Math.PI*r/Math.max(i,1),a=500+n*Math.cos(s),h=400+n*Math.sin(s),d=(0,w.createNode)("ellipse",a,h,{text:o.text,metadata:o.metadata});l.set(o.id,d.id),t.nodes.push(d)}for(let i of e.edges){let e=l.get(i.fromId),n=l.get(i.toId);if(!e||!n)continue;let r=t.nodes.find(t=>t.id===e),o=t.nodes.find(e=>e.id===n),s=(0,w.createEdge)("connector",{nodeId:e,x:r.x,y:r.y},{nodeId:n,x:o.x,y:o.y},{weight:i.weight});t.edges.push(s)}return t},"bestSides",()=>d.bestSides,"clearImageCache",()=>n.clearImageCache,"clusterByY",()=>i.clusterByY,"computeBezierPath",()=>d.computeBezierPath,"computeHierarchicalLayout",()=>T.computeHierarchicalLayout,"computeOrthogonalPath",()=>d.computeOrthogonalPath,"computeRadialLayout",()=>M.computeRadialLayout,"computeRootedTreeLayout",()=>C.computeRootedTreeLayout,"computeSmartGuides",()=>g.computeSmartGuides,"computeVisibilityPath",()=>f.computeVisibilityPath,"distributeH",()=>u.distributeH,"distributeV",()=>u.distributeV,"drawArrowHead",()=>o.drawArrowHead,"drawBoundingBox",()=>s.drawBoundingBox,"drawConnectionPoints",()=>s.drawConnectionPoints,"drawCylinderBody",()=>n.drawCylinderBody,"drawCylinderTop",()=>n.drawCylinderTop,"drawDiamond",()=>n.drawDiamond,"drawEdge",()=>o.drawEdge,"drawEdgeEndpointHandles",()=>s.drawEdgeEndpointHandles,"drawEdgePreview",()=>o.drawEdgePreview,"drawGrid",()=>t.drawGrid,"drawLockIndicator",()=>r.drawLockIndicator,"drawNode",()=>r.drawNode,"drawParallelogram",()=>n.drawParallelogram,"drawResizeHandles",()=>s.drawResizeHandles,"drawRoundedRect",()=>n.drawRoundedRect,"drawSelectionRect",()=>s.drawSelectionRect,"drawShapePreview",()=>s.drawShapePreview,"drawSmartGuides",()=>s.drawSmartGuides,"drawSnapHighlight",()=>s.drawSnapHighlight,"easeOutCubic",()=>p.easeOutCubic,"ellipseIntersection",()=>d.ellipseIntersection,"findShortestPath",()=>b.findShortestPath,"fitToContent",()=>h.fitToContent,"getConnectionPoints",()=>d.getConnectionPoints,"getVisibleBounds",()=>x.getVisibleBounds,"hitTest",()=>a.hitTest,"hitTestConnectionPoint",()=>d.hitTestConnectionPoint,"hitTestEdge",()=>a.hitTestEdge,"hitTestEdgeSegment",()=>a.hitTestEdgeSegment,"hitTestFrameBody",()=>a.hitTestFrameBody,"hitTestGroup",()=>a.hitTestGroup,"hitTestNode",()=>a.hitTestNode,"hitTestResizeHandles",()=>a.hitTestResizeHandles,"hitTestWaypointHandle",()=>a.hitTestWaypointHandle,"interpolateColor",()=>y.interpolateColor,"interpolateViewport",()=>p.interpolateViewport,"isEdgeVisible",()=>x.isEdgeVisible,"isNodeVisible",()=>x.isNodeVisible,"linearScale",()=>y.linearScale,"nearestBorderPoint",()=>d.nearestBorderPoint,"nearestConnectionPoint",()=>d.nearestConnectionPoint,"nodeCenter",()=>d.nodeCenter,"nodeIntersection",()=>d.nodeIntersection,"pan",()=>h.pan,"physics",0,m,"rectIntersection",()=>d.rectIntersection,"render",()=>t.render,"resolveConnectorEndpoints",()=>d.resolveConnectorEndpoints,"resolveEdgesForRender",()=>v.resolveEdgesForRender,"screenToWorld",()=>h.screenToWorld,"snapRect",()=>c.snapRect,"snapToGrid",()=>c.snapToGrid,"worldToScreen",()=>h.worldToScreen,"wrapText",()=>l.wrapText,"zoom",()=>h.zoom],424840);var E=e.i(424840);e.s(["engine",0,E],723585)},293036,324321,e=>{"use strict";function t(e){return{id:e.id,x:e.x,y:e.y,vx:0,vy:0,fx:0,fy:0,width:e.width,height:e.height,fixed:!0===e.locked,mass:1}}function i(e,t,i){let n=function(e,t,i){let n=new Map;for(let l of e){let e=t(l).filter(e=>i.has(e));if(0===e.length)n.set(l,i.get(l)??0);else{let t=e.reduce((e,t)=>
1e+(i.get(t)??0),0);n.set(l,t/e.length)}}return n}(e,t,i);e.sort((e,t)=>n.get(e)-n.get(t))}e.s(["createBody",0,t,"syncBodies",0,function(e,i){let n=new Map;for(let l of e){let e=i.get(l.id);e?n.set(l.id,{...e,x:l.x,y:l.y,width:l.width,height:l.height,fixed:!0===l.locked}):n.set(l.id,t(l))}return n}],293036),e.s(["computeHierarchicalLayout",0,function(e,t,n,l,r){if(0===e.size)return;let o=Array.from(e.keys()),s=new Map,a=new Map;for(let e of o)s.set(e,[]),a.set(e,[]);let h=[];for(let i of t){let t=i.from.nodeId,n=i.to.nodeId;t&&n&&e.has(t)&&e.has(n)&&t!==n&&(h.push({from:t,to:n}),s.get(t).push(n),a.get(n).push(t))}let d=function(e,t){let i=new Map;for(let t of e)i.set(t,[]);for(let{from:e,to:n}of t)i.get(e).push(n);let n=new Map;for(let t of e)n.set(t,0);let l=new Set;for(let t of e)0===n.get(t)&&function e(t){for(let r of(n.set(t,1),i.get(t))){let i=n.get(r);1===i?l.add(`${t}\u2192${r}`):0===i&&e(r)}n.set(t,2)}(t);return t.map(({from:e,to:t})=>l.has(`${e}\u2192${t}`)?{from:t,to:e}:{from:e,to:t})}(o,h),f=new Map,c=new Map;for(let e of o)f.set(e,[]),c.set(e,[]);for(let{from:e,to:t}of d)f.get(e).push(t),c.get(t).push(e);!function(e,t,i,n,l){let{span:r,depth:o,setPos:s}="TB"===i?{span:e=>e.width,depth:e=>e.height,setPos:(e,t,i)=>{e.x=t,e.y=i}}:{span:e=>e.height,depth:e=>e.width,setPos:(e,t,i)=>{e.x=i,e.y=t}},a=t.map(t=>(function(e,t,i,n){if(0===e.length)return 0;let l=0;for(let n of e)l+=i(t.get(n));return l+(e.length-1)*n})(t,e,r,l)),h=t.map(t=>(function(e,t,i){let n=0;for(let l of e)n=Math.max(n,i(t.get(l)));return n})(t,e,o)),d=a.reduce((e,t)=>Math.max(e,t),0),f=100;for(let i=0;i<t.length;i++){let o=t[i];0!==o.length&&(!function(e,t,i,n,l,r,o){let s=l;for(let l of e){let e=t.get(l);e.fixed||(n(e,s,r),s+=i(e)+o)}}(o,e,r,s,100+(d-a[i])/2,f,l),f+=h[i]+n)}}(e,function(e,t,n){let l=Math.max(...e.keys(),0),r=[];for(let t=0;t<=l;t++)r.push(e.get(t)??[]);let o=new Map;function s(){for(let e of r)for(let t=0;t<e.length;t++)o.set(e[t],t)}s();for(let e=0;e<2;e++){for(let e=0;e<l;e++){let t=r[e+1];t.length<=1||(i(t,e=>n.get(e),o),s())}for(let e=l;e>0;e--){let n=r[e-1];n.length<=1||(i(n,e=>t.get(e),o),s())}}return r}(function(e,t,i){let n=new Map;for(let t of e)n.set(t,0);let l=new Map;for(let t of e)l.set(t,i.get(t).length);let r=e.filter(e=>0===l.get(e));for(;r.length>0;){let e=r.shift();for(let i of t.get(e)){let t=n.get(e)+1;t>n.get(i)&&n.set(i,t),l.set(i,l.get(i)-1),0===l.get(i)&&r.push(i)}}let o=new Map;for(let[e,t]of n)o.has(t)||o.set(t,[]),o.get(t).push(e);return o}(o,f,c),f,c),n,l,r)}],324321)},206143,592355,675107,e=>{"use strict";e.s([],764111),e.i(764111);let t={algorithm:"eades",springStrength:.005,springLength:200,repulsionStrength:5e3,centerGravity:.01,damping:.9,frAreaMultiplier:1,frCooling:.95,hierarchicalDirection:"TB",hierarchicalLevelGap:180,hierarchicalNodeSpacing:60,collisionEnabled:!1,collisionPadding:10,velocityThreshold:.5,maxIterations:300};var i=e.i(293036);class n{cellSize;cells=new Map;constructor(e=200){this.cellSize=e}clear(){this.cells.clear()}key(e,t){return`${e},${t}`}cellCoord(e){return Math.floor(e/this.cellSize)}insert(e){let t=this.cellCoord(e.x),i=this.cellCoord(e.y),n=this.key(t,i),l=this.cells.get(n);l?l.push(e):this.cells.set(n,[e])}getNearby(e){let t=this.cellCoord(e.x),i=this.cellCoord(e.y),n=[];for(let l=-1;l<=1;l++)for(let r=-1;r<=1;r++){let o=this.cells.get(this.key(t+l,i+r));if(o)for(let t of o)t.id!==e.id&&n.push(t)}return n}}function l(e,t,i,n){let l=t.x-e.x,r=t.y-e.y,o=Math.hypot(l,r)||1,s=(o-n)*i,a=l/o*s,h=r/o*s;e.fixed||(e.fx+=a,e.fy+=h),t.fixed||(t.fx-=a,t.fy-=h)}function r(e,t,i){let n=t.x-e.x,l=t.y-e.y,r=n*n+l*l;0===r&&(n=(Math.random()-.5)*.1,l=(Math.random()-.5)*.1);let o=Math.sqrt(r||.01),s=i/(o*o),a=n/o*s,h=l/o*s;e.fixed||(e.fx-=a,e.fy-=h),t.fixed||(t.fx+=a,t.fy+=h)}function o(e,t,i,n){e.fixed||(e.fx+=(t-e.x)*n,e.fy+=(i-e.y)*n)}function s(e,t,i){let n=t.x-e.x,l=t.y-e.y,r=Math.hypot(n,l)||1,o=r*r/i,s=n/r*o,a=l/r*o;e.fixed||(e.fx+=s,e.fy+=a),t.fixed||(t.fx-=s,t.fy-=a)}function a(e,t,i){let n=t.x-e.x,l=t.y-e.y,r=n*n+l*l;0===r&&(n=(Math.random()-.5)*.1,l=(Math.random()-.5)*.1);let o=Math.sqrt(r||.01),s=i*i/o,a=n/o*s,h=l/o*s;e.fixed||(e.fx-=a,e.fy-=h),t.fixed||(t.fx+=a,t.fy+=h)}function h(e,t,i){return e.x-i<t.x+t.width&&e.x+e.width+i>t.x&&e.y-i<t.y+t.height&&e.y+e.height+i>t.y}function d(e,t,i){let n=e.x+e.width+i-t.x,l=t.x+t.width+i-e.x,r=e.y+e.height+i-t.y,o=t.y+t.height+i-e.y,s=Math.min(n,l),a=Math.min(r,o),h=0,d=0;s<a?h=n<l?s:-s:d=r<o?a:-a,e.fixed&&!t.fixed?(t.x+=h,t.y+=d):!e.fixed&&t.fixed?(e.x-=h,e.y-=d):e.f
1ixed||t.fixed||(e.x-=h/2,e.y-=d/2,t.x+=h/2,t.y+=d/2)}function f(e,t){return t?{pos:e.x,size:e.width}:{pos:e.y,size:e.height}}function c(e,t,i){let n="x"===t,l=e.map((e,t)=>t);l.sort((t,i)=>f(e[t],n).pos-f(e[i],n).pos);let r=[];for(let t=0;t<l.length;t++){let o=l[t],s=e[o],{pos:a,size:h}=f(s,n);for(let d=t+1;d<l.length;d++){let t=l[d],c=e[t],{pos:u,size:g}=f(c,n);if(u>=a+h+i)break;(n?s.y<c.y+c.height+i&&s.y+s.height+i>c.y:s.x<c.x+c.width+i&&s.x+s.width+i>c.x)&&r.push({left:o,right:t,gap:(h+g)/2+i})}}return r}function u(e,t,i,n=10){for(let l=0;l<n;l++){let n=!0;for(let l of t)(function(e,t,i){let n=e[t.right]-e[t.left];if(n>=t.gap)return!1;let l=t.gap-n,r=i[t.left],o=i[t.right];return(!r||!o)&&(r?e[t.right]+=l:o?e[t.left]-=l:(e[t.left]-=l/2,e[t.right]+=l/2),!0)})(e,l,i)&&(n=!1);if(n)break}}function g(e,t){if(e.length<2)return;let i=e.map(e=>e.fixed),n=c(e,"x",t),l=c(e,"y",t);if(n.length>0){let t=e.map(e=>e.x+e.width/2);u(t,n,i);for(let i=0;i<e.length;i++)e[i].fixed||(e[i].x=t[i]-e[i].width/2)}if(l.length>0){let t=e.map(e=>e.y+e.height/2);u(t,l,i);for(let i=0;i<e.length;i++)e[i].fixed||(e[i].y=t[i]-e[i].height/2)}}var p=e.i(324321);class x{bodies=new Map;edges=[];grid;config;iteration=0;temperature=0;frK=0;constructor(e={}){this.config={...t,...e},this.grid=new n(200)}addBody(e){this.bodies.set(e.id,(0,i.createBody)(e))}removeBody(e){this.bodies.delete(e)}updateBody(e,t){let i=this.bodies.get(e);i&&Object.assign(i,t)}syncFromNodes(e){this.bodies=(0,i.syncBodies)(e,this.bodies)}initLayout(e,t){this.syncFromNodes(e),this.edges=t,this.iteration=0;let i=this.config.algorithm;if("hierarchical"===i)(0,p.computeHierarchicalLayout)(this.bodies,t,this.config.hierarchicalDirection,this.config.hierarchicalLevelGap,this.config.hierarchicalNodeSpacing);else if("fruchterman-reingold"===i||"fruchterman-reingold-vpsc"===i){let e=this.bodies.size||1,t=200*e*200*this.config.frAreaMultiplier;this.frK=Math.sqrt(t/e),this.temperature=2*this.frK}}tick(){return this.step(),this.iteration++,!this.isConverged()&&this.iteration<this.config.maxIterations}getPositions(){let e=new Map;for(let[t,i]of this.bodies)e.set(t,{x:i.x,y:i.y});return e}step(){let e=this.config.algorithm;"hierarchical"!==e&&("fruchterman-reingold"===e||"fruchterman-reingold-vpsc"===e?this.stepFR():this.stepEades(),("eades-vpsc"===e||"fruchterman-reingold-vpsc"===e)&&this.iteration%5==0&&g(Array.from(this.bodies.values()),this.config.collisionPadding))}stepEades(){let e=Array.from(this.bodies.values());this.initForces(e),this.rebuildGrid(e),this.applyEdgeSprings(),this.applyGridRepulsion(e),this.applyCenterGravityForce(e),this.integrateEades(e),this.resolveLayoutCollisions()}initForces(e){for(let t of e)t.fx=0,t.fy=0}rebuildGrid(e){for(let t of(this.grid.clear(),e))this.grid.insert(t)}applyEdgeSprings(){for(let e of this.edges){let t=e.from.nodeId,i=e.to.nodeId;if(!t||!i)continue;let n=this.bodies.get(t),r=this.bodies.get(i);n&&r&&l(n,r,this.config.springStrength,this.config.springLength)}}applyGridRepulsion(e){for(let t of e)for(let e of this.grid.getNearby(t))t.id<e.id&&r(t,e,this.config.repulsionStrength)}applyCenterGravityForce(e){let t=0,i=0;for(let n of e)t+=n.x,i+=n.y;for(let n of(t/=e.length||1,i/=e.length||1,e))o(n,t,i,this.config.centerGravity)}integrateEades(e){for(let t of e)t.fixed||(t.vx=(t.vx+t.fx/t.mass)*this.config.damping,t.vy=(t.vy+t.fy/t.mass)*this.config.damping,t.x+=t.vx,t.y+=t.vy)}stepFR(){let e=Array.from(this.bodies.values());this.initForces(e),this.rebuildGrid(e),this.applyFRRepulsionAll(e),this.applyFRAttractionAll(),this.integrateFR(e),this.temperature*=this.config.frCooling,this.resolveLayoutCollisions()}applyFRRepulsionAll(e){let t=this.frK;for(let i of e)for(let e of this.grid.getNearby(i))i.id<e.id&&a(i,e,t)}applyFRAttractionAll(){let e=this.frK;for(let t of this.edges){let i=t.from.nodeId,n=t.to.nodeId;if(!i||!n)continue;let l=this.bodies.get(i),r=this.bodies.get(n);l&&r&&s(l,r,e)}}integrateFR(e){for(let t of e){if(t.fixed)continue;let e=Math.hypot(t.fx,t.fy)||1,i=Math.min(e,this.temperature)/e;t.vx=t.fx*i,t.vy=t.fy*i,t.x+=t.vx,t.y+=t.vy}}resolveLayoutCollisions(){let e=Array.from(this.bodies.values());for(let t=0;t<e.length;t++)for(let i=t+1;i<e.length;i++)h(e[t],e[i],this.config.collisionPadding)&&d(e[t],e[i],this.config.collisionPadding)}isConverged(){let e=this.config.algorithm;if("hierarchical"===e)return!0;
1if("fruchterman-reingold"===e||"fruchterman-reingold-vpsc"===e)return this.temperature<.5;for(let e of this.bodies.values())if(!e.fixed&&Math.hypot(e.vx,e.vy)>this.config.velocityThreshold)return!1;return!0}resolveCollisions(e){if(!this.config.collisionEnabled)return[];let t=Array.from(this.bodies.values()),i=this.bodies.get(e);if(!i)return[];let n=new Set;for(let l=0;l<5;l++){let l=!1;for(let r of t)if(r.id!==e&&h(i,r,this.config.collisionPadding)){let e=i.fixed;i.fixed=!0,d(i,r,this.config.collisionPadding),i.fixed=e,n.add(r.id),l=!0}if(!l)break}return t.filter(e=>n.has(e.id)).map(e=>({id:e.id,x:e.x,y:e.y}))}spreadConnected(e,t,i){e&&this.syncFromNodes(e),this.edges=t;for(let e=0;e<10;e++){let e=!1;for(let t of this.edges){let n=t.from.nodeId,l=t.to.nodeId;if(!n||!l)continue;let r=this.bodies.get(n),o=this.bodies.get(l);r&&o&&this.spreadEdge(r,o,i)&&(e=!0)}if(!e)break}return this.getPositions()}spreadEdge(e,t,i){let n=e.x+e.width/2,l=e.y+e.height/2,r=t.x+t.width/2,o=t.y+t.height/2,s=r-n,a=o-l,h=Math.hypot(s,a)||1,{halfSpanA:d,halfSpanB:f}=this.computeHalfSpans(e,t,s,a),c=d+f+i;if(h>=c)return!1;let u=(c-h)/2,g=s/h,p=a/h;return e.fixed||(e.x-=g*u,e.y-=p*u),t.fixed||(t.x+=g*u,t.y+=p*u),!0}computeHalfSpans(e,t,i,n){let l=Math.abs(n);return Math.abs(i)*(e.height+t.height)>l*(e.width+t.width)?{halfSpanA:e.width/2,halfSpanB:t.width/2}:{halfSpanA:e.height/2,halfSpanB:t.height/2}}setConfig(e){Object.assign(this.config,e)}setCollisionEnabled(e){this.config.collisionEnabled=e}}function m(e,t,i){let n=new Map,l=new Map;for(let t of e)n.set(t,new Set),l.set(t,0);for(let e of t){let t=e.from.nodeId,r=e.to.nodeId;t&&r&&i.has(t)&&i.has(r)&&t!==r&&(n.get(t).add(r),n.get(r).add(t),l.set(r,(l.get(r)??0)+1))}return{undirected:n,indeg:l}}function y(e,t,i,n=180){if(0===e.size)return;let l=Array.from(e.keys()),{undirected:r,indeg:o}=m(l,t,e),s=e=>i&&e.includes(i)?i:e.find(e=>(o.get(e)??0)===0)??e[0],a=new Set,h=[...l];i&&e.has(i)&&h.sort((e,t)=>{let n=e===i?-1:0;return 0!==n?n:+(t===i)});let d=0;for(let t of h){if(a.has(t))continue;let i=function(e,t,i){let n=[],l=[e];for(t.add(e);l.length;){let e=l.shift();for(let r of(n.push(e),i.get(e)))t.has(r)||(t.add(r),l.push(r))}return n}(t,a,r);!function(e,t,i,n,l,r){let o=new Map,s=new Map;for(let e of n)o.set(e,[]);s.set(i,0);let a=new Set([i]),h=[i];for(;h.length;){let e=h.shift();for(let i of t.get(e))a.has(i)||(a.add(i),s.set(i,(s.get(e)??0)+1),o.get(e).push(i),h.push(i))}let d=new Map,f=e=>{let t=o.get(e);if(0===t.length)return d.set(e,1),1;let i=0;for(let e of t)i+=f(e);return d.set(e,i),i};f(i);let c=new Map,u=(e,t,i)=>{c.set(e,(t+i)/2);let n=o.get(e),l=d.get(e),r=t;for(let e of n){let n=d.get(e)/l*(i-t);u(e,r,r+n),r+=n}};for(let t of(u(i,0,2*Math.PI),n)){let i=e.get(t),n=(s.get(t)??0)*l,o=c.get(t)??0,a=n*Math.cos(o),h=r+n*Math.sin(o);i.x=a-i.width/2,i.y=h-i.height/2}}(e,r,s(i),i,n,d);let l=d;for(let t of i){let i=e.get(t);l=Math.max(l,i.y+i.height)}d=l+n}}function b(e,t,i,n,l=180,r=60){if(0===e.size)return;let o=Array.from(e.keys()),{undirected:s}=m(o,t,e),a=[],h=new Set,d=[...o];for(let t of(i&&e.has(i)&&d.sort((e,t)=>{let n=e===i?-1:0;return 0!==n?n:+(t===i)}),d)){if(h.has(t))continue;h.add(t);let e=[t];for(;e.length;){let t=e.shift();for(let i of s.get(t))!h.has(i)&&(h.add(i),a.push({id:`${t}->${i}`,type:"connector",from:{nodeId:t,x:0,y:0},to:{nodeId:i,x:0,y:0},style:{stroke:"",strokeWidth:0}}),e.push(i))}}(0,p.computeHierarchicalLayout)(e,a,n,l,r)}e.s(["computeRadialLayout",0,y],592355),e.s(["computeRootedTreeLayout",0,b],675107),e.s(["DEFAULT_PHYSICS_CONFIG",0,t,"PhysicsEngine",0,x,"SpatialGrid",0,n,"applyCenterGravity",0,o,"applyFRAttraction",0,s,"applyFRRepulsion",0,a,"applyRepulsion",0,r,"applySpring",0,l,"applyVpsc",0,g,"computeHierarchicalLayout",()=>p.computeHierarchicalLayout,"computeRadialLayout",0,y,"computeRootedTreeLayout",0,b,"createBody",()=>i.createBody,"detectCollision",0,h,"resolveAllCollisions",0,function(e,t,i,n){let l=new Set;for(let r=0;r<n&&function(e,t,i,n){let l=!1;for(let s=0;s<e.length;s++)for(let a=s+1;a<e.length;a++){var r,o;r=e[s],o=e[a],h(r,o,t)&&(d(r,o,t),r.id!==i&&n.add(r.id),o.id!==i&&n.add(o.id),1)&&(l=!0)}return l}(t,i,e,l);r++);return t.filter(e=>l.has(e.id)).map(e=>({id:e.id,x:e.x,y:e.y}))}
1,"resolveCollision",0,d,"syncBodies",()=>i.syncBodies],206143)},421116,e=>{"use strict";function t(e,t,i,n){let l=e,r=n+1;for(let o of t)for(let t of i){let i=Math.abs(o-t);i<=n&&i<r&&(r=i,l=e+(t-o))}return{snapped:l,bestDelta:r}}e.s(["computeSmartGuides",0,function(e,i,n,l,r,o=5){let s=[e,e+n/2,e+n],a=[i,i+l/2,i+l],{snappedX:h,snappedY:d,bestDx:f,bestDy:c}=function(e,i,n,l,r,o){let s=e,a=i,h=o+1,d=o+1;for(let f of r){let r=[f.x,f.x+f.width/2,f.x+f.width],c=[f.y,f.y+f.height/2,f.y+f.height],u=t(e,n,r,o);u.bestDelta<h&&(h=u.bestDelta,s=u.snapped);let g=t(i,l,c,o);g.bestDelta<d&&(d=g.bestDelta,a=g.snapped)}return{snappedX:s,snappedY:a,bestDx:h,bestDy:d}}(e,i,s,a,r,o),u=[];return f<=o&&function(e,t,i,n,l,r){let o=[e,e+t/2,e+t];for(let e of l){let t=[e.x,e.x+e.width/2,e.x+e.width];for(let l of o)for(let o of t)if(1>Math.abs(l-o)){let t=Math.min(i,e.y),o=Math.max(i+n,e.y+e.height);r.push({axis:"x",position:l,from:t,to:o})}}}(h,n,d,l,r,u),c<=o&&function(e,t,i,n,l,r){let o=[e,e+t/2,e+t];for(let e of l){let t=[e.y,e.y+e.height/2,e.y+e.height];for(let l of o)for(let o of t)if(1>Math.abs(l-o)){let t=Math.min(i,e.x),o=Math.max(i+n,e.x+e.width);r.push({axis:"y",position:l,from:t,to:o})}}}(d,l,h,n,r,u),{snappedX:h,snappedY:d,guides:u}}])},333602,e=>{"use strict";var t=e.i(172698);let i={fill:t.COLOR_CHARCOAL,stroke:t.COLOR_BORDER_ACTIVE,strokeWidth:2,fontSize:14,fontFamily:t.FONT_FAMILY},n={fill:t.STICKY_FILL,stroke:t.STICKY_STROKE,strokeWidth:1,fontSize:14,fontFamily:t.FONT_FAMILY},l={fill:t.DOC_FILL,stroke:t.DOC_STROKE,strokeWidth:1,fontSize:13,fontFamily:t.FONT_FAMILY},r={fill:t.FRAME_FILL,stroke:t.FRAME_STROKE,strokeWidth:1,fontSize:14,fontFamily:t.FONT_FAMILY,borderRadius:8},o={fill:"rgba(255,255,255,0.04)",stroke:t.COLOR_BORDER_ACTIVE,strokeWidth:1,fontSize:11,fontFamily:t.FONT_FAMILY,borderRadius:4,dashed:!0},s={stroke:t.COLOR_BORDER_ACTIVE,strokeWidth:2};function a(e){return e?{...i}:{fill:"#F5F5F0",stroke:"rgba(0,0,0,0.2)",strokeWidth:2,fontSize:14,fontFamily:t.FONT_FAMILY}}function h(e){return e?{...s}:{stroke:"rgba(0,0,0,0.3)",strokeWidth:2}}let d={offsetX:0,offsetY:0,scale:1};e.s(["DEFAULT_DOC_STYLE",0,l,"DEFAULT_EDGE_STYLE",0,s,"DEFAULT_FRAGMENT_STYLE",0,o,"DEFAULT_FRAME_STYLE",0,r,"DEFAULT_NODE_STYLE",0,i,"DEFAULT_STICKY_STYLE",0,n,"DEFAULT_VIEWPORT",0,d,"createDocument",0,function(e){let t=Date.now();return{id:crypto.randomUUID(),name:e,nodes:[],edges:[],groups:[],viewport:{...d},createdAt:t,updatedAt:t}},"createEdge",0,function(e,t,i,n,l=!0){return{id:crypto.randomUUID(),type:e,from:t,to:i,style:h(l),...n}},"createNode",0,function(e,i,o,s,h=!0){let d=function(e){if(e)return{sticky:{...n},doc:{...l},frame:{...r}};let i=(0,t.getCanvasColors)(!1);return{sticky:{...n},doc:{fill:i.docFill,stroke:i.docStroke,strokeWidth:1,fontSize:13,fontFamily:t.FONT_FAMILY},frame:{fill:i.frameFill,stroke:i.frameStroke,strokeWidth:1,fontSize:14,fontFamily:t.FONT_FAMILY,borderRadius:8}}}(h)[e]??a(h),f={};return"doc"===e&&(f.docContent=""),{id:crypto.randomUUID(),type:e,x:i,y:o,...{text:{width:150,height:30},diamond:{width:120,height:120},parallelogram:{width:160,height:80},cylinder:{width:100,height:120},doc:{width:200,height:120},frame:{width:400,height:300},image:{width:200,height:150},person:{width:120,height:160}}[e]??{width:150,height:100},text:"",style:d,...f,...s}}
1,"getDefaultEdgeStyle",0,h,"getDefaultNodeStyle",0,a])},633468,e=>{"use strict";let t=0;e.s(["FOCUSABLE",0,'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',"TRANSPARENT_BACKDROP_CSS",0,"position:fixed;inset:0;z-index:1300;","appendContent",0,function(e,t){if(null!=t)for(let i of Array.isArray(t)?t:[t])if("string"==typeof i){let t=document.createElement("span");t.textContent=i,e.appendChild(t)}else e.appendChild(i)},"applyStyle",0,function(e,t){if(t)for(let[i,n]of Object.entries(t))null!=n&&(i.startsWith("--")?e.style.setProperty(i,String(n)):e.style[i]=String(n))},"ensureStyle",0,function(e,t,i){let n=i??("u"<typeof document?void 0:document);if(!n||n.getElementById(e))return;let l=n.createElement("style");l.id=e,l.textContent=t,n.head.appendChild(l)},"nextId",0,function(e){return t+=1,`${e}-${t}`},"svgIcon",0,function(e,t=16){let i=document.createElementNS("http://www.w3.org/2000/svg","svg");for(let n of(i.setAttribute("viewBox","0 0 24 24"),i.setAttribute("width",String(t)),i.setAttribute("height",String(t)),i.setAttribute("fill","currentColor"),i.setAttribute("aria-hidden","true"),Array.isArray(e)?e:[e])){let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",n),i.appendChild(e)}return i}])},248543,e=>{"use strict";function t(e){return e.startsWith("ja")?"ja":"en"}function i(){return"u">typeof navigator&&navigator.language.startsWith("ja")?"ja":"en"}e.s(["createTranslator",0,function(e){let n=e.resolveLocale??t,l=e.detectLocale??i,r=e.locale?n(e.locale):l(),o=e.fallbackLocale??"ja",s=e.messagesByLocale[r]?.[e.namespace],a=e.messagesByLocale[o]?.[e.namespace];return function(e,t){let i=s?.[e]??a?.[e]??e;return t?Object.entries(t).reduce((e,[t,i])=>e.replaceAll(`{${t}}`,String(i)),i):i}},"detectLocale",0,i,"resolveLocale",0,t])},614948,e=>{"use strict";let t="u">typeof HTMLElement?HTMLElement:class{};e.s(["HTMLElementBase",0,t])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.