PageSourceSearch

https://eisenhower-matrix-to-do.vercel.app/_next/static/chunks/978-17bea77233fa02ce.js

js eisenhower-matrix-to-do.vercel.app collected 2026-10-03 06:51:27 UTC 90,675 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[978],{1419:(e,t,n)=>{var r=n(5139);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},6090:(e,t,n)=>{n.d(t,{nu:()=>f,yP:()=>d});var r=n(1085),i=n(6697),l=n(1647);let a="label";function o(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function s(e,t,n=a){let r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}let u=(0,i.forwardRef)(function(e,t){let{height:n=150,width:u=300,redraw:c=!1,datasetIdKey:d,type:f,data:h,options:g,plugins:p=[],fallbackContent:b,updateMode:m,...v}=e,y=(0,i.useRef)(null),x=(0,i.useRef)(null),w=()=>{y.current&&(x.current=new l.t1(y.current,{type:f,data:function(e,t=a){let n={labels:[],datasets:[]};return n.labels=e.labels,s(n,e.datasets,t),n}(h,d),options:g&&{...g},plugins:p}),o(t,x.current))},M=()=>{o(t,null),x.current&&(x.current.destroy(),x.current=null)};return(0,i.useEffect)(()=>{var e;let t;!c&&x.current&&g&&(e=x.current,(t=e.options)&&g&&Object.assign(t,g))},[c,g]),(0,i.useEffect)(()=>{!c&&x.current&&(x.current.config.data.labels=h.labels)},[c,h.labels]),(0,i.useEffect)(()=>{!c&&x.current&&h.datasets&&s(x.current.config.data,h.datasets,d)},[c,h.datasets]),(0,i.useEffect)(()=>{x.current&&(c?(M(),setTimeout(w)):x.current.update(m))},[c,g,h.labels,h.datasets,m]),(0,i.useEffect)(()=>{x.current&&(M(),setTimeout(w))},[f]),(0,i.useEffect)(()=>(w(),()=>M()),[]),(0,r.jsx)("canvas",{ref:y,role:"img",height:n,width:u,...v,children:b})});function c(e,t){return l.t1.register(t),(0,i.forwardRef)((t,n)=>(0,r.jsx)(u,{...t,ref:n,type:e}))}let d=c("bar",l.A6),f=c("doughnut",l.ju)},6116:(e,t,n)=>{n.d(t,{JR:()=>k,_G:()=>c,gB:()=>h,gl:()=>x});var r=n(6697),i=n(8788),l=n(7567);function a(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function o(e){return null!==e&&e>=0}let s=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,l=a(t,r,n),o=t[i],s=l[i];return s&&o?{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}:null},u={scaleX:1,scaleY:1},c=e=>{var t,n,r,i;let l,a,o,{activeIndex:s,activeNodeRect:c,index:d,rects:f,overIndex:h}=e,g=null!=(t=f[s])?t:c;if(!g)return null;if(d===s){let e=f[h];return e?{x:0,y:s<h?e.top+e.height-(g.top+g.height):e.top-g.top,...u}:null}let p=(n=f,r=d,i=s,l=n[r],a=n[r-1],o=n[r+1],l?i<r?a?l.top-(a.top+a.height):o?o.top-(l.top+l.height):0:o?o.top-(l.top+l.height):a?l.top-(a.top+a.height):0:0);return d>s&&d<=h?{x:0,y:-g.height-p,...u}:d<s&&d>=h?{x:0,y:g.height+p,...u}:{x:0,y:0,...u}},d="Sortable",f=r.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:s,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:n,items:a,strategy:o=s,disabled:u=!1}=e,{active:c,dragOverlay:h,droppableRects:g,over:p,measureDroppableContainers:b}=(0,i.fF)(),m=(0,l.YG)(d,n),v=null!==h.rect,y=(0,r.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),x=null!=c,w=c?y.indexOf(c.id):-1,M=p?y.indexOf(p.id):-1,k=(0,r.useRef)(y),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(y,k.current),S=-1!==M&&-1===w||E,C="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,l.Es)(()=>{E&&x&&b(y)},[E,y,x,b]),(0,r.useEffect)(()=>{k.current=y},[y]);let O=(0,r.useMemo)(()=>({activeIndex:w,containerId:m,disabled:C,disableTransforms:S,items:y,overIndex:M,useDragOverlay:v,sortedRects:y.reduce((e,t,n)=>{let r=g.get(t);return r&&(e[n]=r),e},Array(y.length)),strategy:o}),[w,m,C.draggable,C.droppable,S,y,M,g,v,o]);return r.createElement(f.Provider,{value:O},t)}let g=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return a(n,r,i).indexOf(t)},p=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:l,newIndex:a,previousItems:o,previousContainerId:s,transition:u}=e;return!!u&&!!r&&(o===l||i!==a)&&(!!n||a!==i&&t===s)},b={duration:200,easing:"ease"},m="transform",v=l.Ks.Transition.toString({property:m,duration:0,easing:"linear"}),y={roleDescription:"sortable"};function x(e){var t,n,a,s;let{animateLayoutChanges:u=p,attributes:c,disabled:d,data:h,getNewIndex:x=g,i
1d:w,strategy:M,resizeObserverConfig:k,transition:E=b}=e,{items:S,containerId:C,activeIndex:O,disabled:R,disableTransforms:D,sortedRects:T,overIndex:P,useDragOverlay:_,strategy:L}=(0,r.useContext)(f),I=(t=d,n=R,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:n.draggable,droppable:null!=(s=null==t?void 0:t.droppable)?s:n.droppable}),N=S.indexOf(w),A=(0,r.useMemo)(()=>({sortable:{containerId:C,index:N,items:S},...h}),[C,h,N,S]),j=(0,r.useMemo)(()=>S.slice(S.indexOf(w)),[S,w]),{rect:W,node:Y,isOver:F,setNodeRef:B}=(0,i.zM)({id:w,data:A,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:j,...k}}),{active:z,activatorEvent:X,activeNodeRect:K,attributes:H,setNodeRef:$,listeners:U,isDragging:q,over:Q,setActivatorNodeRef:V,transform:Z}=(0,i.PM)({id:w,data:A,attributes:{...y,...c},disabled:I.draggable}),G=(0,l.jn)(B,$),J=!!z,ee=J&&!D&&o(O)&&o(P),et=!_&&q,en=et&&ee?Z:null,er=ee?null!=en?en:(null!=M?M:L)({rects:T,activeNodeRect:K,activeIndex:O,overIndex:P,index:N}):null,ei=o(O)&&o(P)?x({id:w,items:S,activeIndex:O,overIndex:P}):N,el=null==z?void 0:z.id,ea=(0,r.useRef)({activeId:el,items:S,newIndex:ei,containerId:C}),eo=S!==ea.current.items,es=u({active:z,containerId:C,isDragging:q,isSorting:J,id:w,index:N,items:S,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:E,wasDragging:null!=ea.current.activeId}),eu=function(e){let{disabled:t,index:n,node:a,rect:o}=e,[s,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,l.Es)(()=>{if(!t&&n!==c.current&&a.current){let e=o.current;if(e){let t=(0,i.Sj)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)},[t,n,a,o]),(0,r.useEffect)(()=>{s&&u(null)},[s]),s}({disabled:!es,index:N,node:Y,rect:W});return(0,r.useEffect)(()=>{J&&ea.current.newIndex!==ei&&(ea.current.newIndex=ei),C!==ea.current.containerId&&(ea.current.containerId=C),S!==ea.current.items&&(ea.current.items=S)},[J,ei,C,S]),(0,r.useEffect)(()=>{if(el===ea.current.activeId)return;if(null!=el&&null==ea.current.activeId){ea.current.activeId=el;return}let e=setTimeout(()=>{ea.current.activeId=el},50);return()=>clearTimeout(e)},[el]),{active:z,activeIndex:O,attributes:H,data:A,rect:W,index:N,newIndex:ei,items:S,isOver:F,isSorting:J,isDragging:q,listeners:U,node:Y,overIndex:P,over:Q,setNodeRef:G,setActivatorNodeRef:V,setDroppableNodeRef:B,setDraggableNodeRef:$,transform:null!=eu?eu:er,transition:eu||eo&&ea.current.newIndex===N?v:(!et||(0,l.kx)(X))&&E&&(J||es)?l.Ks.Transition.toString({...E,property:m}):void 0}}function w(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let M=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],k=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:o,over:s,scrollableAncestors:u}}=t;if(M.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];o.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let l=a.get(n.id);if(l)switch(e.code){case i.vL.Down:r.top<l.top&&t.push(n);break;case i.vL.Up:r.top>l.top&&t.push(n);break;case i.vL.Left:r.left>l.left&&t.push(n);break;case i.vL.Right:r.left<l.left&&t.push(n)}});let f=(0,i.y$)({active:n,collisionRect:r,droppableRects:a,droppableContainers:t,pointerCoordinates:null}),h=(0,i.Vy)(f,"id");if(h===(null==s?void 0:s.id)&&f.length>1&&(h=f[1].id),null!=h){let e=o.get(n.id),t=o.get(h),s=t?a.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&s&&e&&t){var c,d;let n=(0,i.sl)(f).some((e,t)=>u[t]!==e),a=E(e,t),o=(c=e,d=t,!!w(c)&&!!w(d)&&!!E(c,d)&&c.data.current.sortable.index<d.data.current.sortable.index),h=n||!a?{x:0,y:0}:{x:o?r.width-s.width:0,y:o?r.height-s.height:0},g={x:s.left,y:s.top};return h.x&&h.y?g:(0,l.Re)(g,h)}}}};function E(e,t){return!!w(e)&&!!w(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},7250:(e,t,n)=>{let r,i;function l(e){return e+.5|0}n.d(t,{$:()=>tc,A:()=>eL,B:()=>e_,C:()=>ts,D:()=>ek,E:()=>tw,F:()=>X,G:()=>tV,H:()=>eu,I:()=>tX,J:()=>tJ,K:()=>tG,L:()=>eF,M:()=>tz,N:()=>eb,O:()=>W,P:()=>ei,Q:()=>z,R:()=>tE,S:()=>eR,T:()=>el,U:()=>ew,V:()=>tn,W:()=>eD,X:()=>ti,Y:()=>tu,Z:()=>th,_:()=>eW,a:()=>tk,a0:()=>tM,a1:()=>ez,a2:()=>eX,a3:()=>e4,a4:()=>q,a5:()=>J,a6:()=>e7,a7:()=>et,a8:()=>function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tO(t,i),setContext:n=>e(t,n,r,i),override:l=>e(t.override(l),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tT(t,n,()=>(function(t,n,r){let{_proxy:i,_context:l,_subProxy:a,_descriptors:o}=t,s=i[n];return et(s)&&o.isScriptable(n)&&(s=function(e,t,n,r){let{_proxy:i,_context:l,_subProxy:a,_stack:o}=n;if(o.has(e))throw Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let s=t(l,a||r);return o.delete(e),tD(e,s)&&(s=t_(i._scopes,i,e,s)),s}(n,s,t,r)),N(s)&&s.length&&(s=function(t,n,r,i){let{_proxy:l,_context:a,_subProxy:o,_descriptors:s}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(A(n[0])){let r=n,i=l._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=t_(i,l,t,u);n.push(e(r,a,o&&o[t],s))}}return n}(n,s,t,o.isIndexable)),tD(n,s)&&(s=e(s,l,a&&a[n],o)),s})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})},a9:()=>tC,aA:()=>t2,aB:()=>t8,aC:()=>eK,aD:()=>t6,aE:()=>to,aF:()=>eE,aG:()=>
1_,aH:()=>ey,aI:()=>ep,aJ:()=>ev,aK:()=>eg,aL:()=>eM,aM:()=>e6,aN:()=>ef,aO:()=>tr,aP:()=>eI,aQ:()=>eP,aa:()=>tO,ab:()=>Q,ac:()=>L,ad:()=>eB,ae:()=>tZ,af:()=>tl,ag:()=>en,ah:()=>ni,ai:()=>K,aj:()=>er,ak:()=>eT,al:()=>eC,am:()=>tv,an:()=>tB,ao:()=>ne,ap:()=>t9,aq:()=>t1,ar:()=>t5,as:()=>t0,at:()=>td,au:()=>tf,av:()=>ta,aw:()=>tg,ax:()=>ty,ay:()=>tx,az:()=>t3,b:()=>N,c:()=>eG,d:()=>tt,e:()=>eV,f:()=>G,g:()=>j,h:()=>ee,i:()=>A,j:()=>tS,k:()=>I,l:()=>eA,m:()=>F,n:()=>B,o:()=>e2,p:()=>eO,q:()=>eH,r:()=>eY,s:()=>eh,t:()=>ex,u:()=>ej,v:()=>Y,w:()=>e$,x:()=>em,y:()=>tA,z:()=>tq});let a=(e,t,n)=>Math.max(Math.min(e,n),t);function o(e){return a(l(2.55*e),0,255)}function s(e){return a(l(255*e),0,255)}function u(e){return a(l(e/2.55)/100,0,1)}function c(e){return a(l(100*e),0,100)}let d={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},f=[..."0123456789ABCDEF"],h=e=>f[15&e],g=e=>f[(240&e)>>4]+f[15&e],p=e=>(240&e)>>4==(15&e),b=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function m(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function v(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function y(e,t,n){let r,i=m(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function x(e){let t,n,r,i=e.r/255,l=e.g/255,a=e.b/255,o=Math.max(i,l,a),s=Math.min(i,l,a),u=(o+s)/2;o!==s&&(r=o-s,n=u>.5?r/(2-o-s):r/(o+s),t=60*(t=i===o?(l-a)/r+6*(l<a):l===o?(a-i)/r+2:(i-l)/r+4)+.5);return[0|t,n||0,u]}function w(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(s)}function M(e){return(e%360+360)%360}let k={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"},E={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:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},S=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,C=e=>
1e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,O=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function R(e,t,n){if(e){let r=x(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),e.r=(r=w(m,r,void 0,void 0))[0],e.g=r[1],e.b=r[2]}}function D(e,t){return e?Object.assign(t||{},e):e}function T(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=D(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class P{constructor(e){let t;if(e instanceof P)return e;const n=typeof e;"object"===n?t=T(e):"string"===n&&(t=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*d[e[1]],g:255&17*d[e[2]],b:255&17*d[e[3]],a:5===n?17*d[e[4]]:255}:(7===n||9===n)&&(t={r:d[e[1]]<<4|d[e[2]],g:d[e[3]]<<4|d[e[4]],b:d[e[5]]<<4|d[e[6]],a:9===n?d[e[7]]<<4|d[e[8]]:255})),t}(e)||function(e){r||((r=function(){let e,t,n,r,i,l={},a=Object.keys(E),o=Object.keys(k);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<o.length;t++)n=o[t],i=i.replace(n,k[n]);n=parseInt(E[r],16),l[i]=[n>>16&255,n>>8&255,255&n]}return l}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||function(e){return"r"===e.charAt(0)?function(e){let t,n,r,i=S.exec(e),l=255;if(i){if(i[7]!==t){let e=+i[7];l=i[8]?o(e):a(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],t=255&(i[2]?o(t):a(t,0,255)),{r:t,g:n=255&(i[4]?o(n):a(n,0,255)),b:r=255&(i[6]?o(r):a(r,0,255)),a:l}}}(e):function(e){let t,n=b.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?o(+n[5]):s(+n[5]));let i=M(+n[2]),l=n[3]/100,a=n[4]/100;return{r:(t="hwb"===n[1]?w(y,i,l,a):"hsv"===n[1]?w(v,i,l,a):w(m,i,l,a))[0],g:t[1],b:t[2],a:r}}(e)}(e)),this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=D(this._rgb);return e&&(e.a=u(e.a)),e}set rgb(e){this._rgb=T(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${u(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;let n,r;return this._valid?(t=p((n=e=this._rgb).r)&&p(n.g)&&p(n.b)&&p(n.a)?h:g,e?"#"+t(e.r)+t(e.g)+t(e.b)+(r=e.a,r<255?t(r):""):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=x(e),n=t[0],r=c(t[1]),i=c(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${u(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n,r=this.rgb,i=e.rgb,l=t===n?.5:t,a=2*l-1,o=r.a-i.a,s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2;n=1-s,r.r=255&s*r.r+n*i.r+.5,r.g=255&s*r.g+n*i.g+.5,r.b=255&s*r.b+n*i.b+.5,r.a=l*r.a+(1-l)*i.a,this.rgb=r}return this}interpolate(e,t){var n,r;let i,l,a;return e&&(this._rgb=(n=this._rgb,r=e._rgb,i=O(u(n.r)),l=O(u(n.g)),a=O(u(n.b)),{r:s(C(i+t*(O(u(r.r))-i))),g:s(C(l+t*(O(u(r.g))-l))),b:s(C(a+t*(O(u(r.b))-a))),a:n.a+t*(r.a-n.a)})),this}clone(){return new P(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=l(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return R(this._rgb,2,e),this}darken(e){return R(this._rgb,2,-e),this}saturate(e){return R(this._rgb,1,e),this}desaturate(e){return R(this._rgb,1,-e),this}rotate(e){var t,n;return t=this._rgb,(n=x(t))[0]=M(n[0]+e),t.r=(n=w(m,n,void 0,void 0))[0],t.g=n[1],t.b=n[2],this}}function _(){}let L=(i=0,()=>i++);function I(e){return null==e}function N(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function A(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function j(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function W(e,t){return j(e)?e:t}function Y(e,t){return void 0===e?t:e}let F=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,B=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function z(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function X(e,t,n,r){let i,l,a;if(N(e))if(l=e.length,r)for(i=l-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<l;i++)t.call(n,e[i],i);else if(A(e))for(i=0,l=(a=Object.keys(e)).length;i<l;i++)t.call(n,e[a[i]],a[i])}function K(e,t){let n,r,i,l;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],l=t[n],i.datasetIndex!==l.datasetIndex||i.index!==l.index)return!1;return!0}function H(e){if(N(e))return e.map(H);if(A(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=H(e[n[i]]);return t}return e}function $(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function U(e,t,n,r){if(!$(e))return;let i=t[e],l=n[e];A(i)&&A(l)?q(i,l,r):t[e]=H(l)}function q(e,t,n){let r,i=N(t)?t:[t],l=i.length;if(!A(e))return e;let a=(n=n||{}).merger||U;for(let t=0;t<l;++t){if(!A(r=i[t]))continue;let l=Object.keys(r);for(let t=0,i=l.length;t<i;++t)a(l[t],e,r,n)}return e}function Q(e,t){return q(e,t,{merger:V})}
1function V(e,t,n){if(!$(e))return;let r=t[e],i=n[e];A(r)&&A(i)?Q(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=H(i))}let Z={"":e=>e,x:e=>e.x,y:e=>e.y};function G(e,t){let n;return(Z[t]||(Z[t]=(n=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t),e=>{for(let t of n){if(""===t)break;e=e&&e[t]}return e})))(e)}function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}let ee=e=>void 0!==e,et=e=>"function"==typeof e,en=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function er(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let ei=Math.PI,el=2*ei,ea=el+ei,eo=1/0,es=ei/180,eu=ei/2,ec=ei/4,ed=2*ei/3,ef=Math.log10,eh=Math.sign;function eg(e,t,n){return Math.abs(e-t)<n}function ep(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ef(e=eg(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function eb(e){let t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function em(e){return"symbol"!=typeof e&&("object"!=typeof e||null===e||!!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function ev(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ey(e,t,n){let r,i,l;for(r=0,i=e.length;r<i;r++)isNaN(l=e[r][n])||(t.min=Math.min(t.min,l),t.max=Math.max(t.max,l))}function ex(e){return ei/180*e}function ew(e){return 180/ei*e}function eM(e){if(!j(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function ek(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),l=Math.atan2(r,n);return l<-.5*ei&&(l+=el),{angle:l,distance:i}}function eE(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function eS(e,t){return(e-t+ea)%el-ei}function eC(e){return(e%el+el)%el}function eO(e,t,n,r){let i=eC(e),l=eC(t),a=eC(n),o=eC(l-i),s=eC(a-i),u=eC(i-l),c=eC(i-a);return i===l||i===a||r&&l===a||o>s&&u<c}function eR(e,t,n){return Math.max(t,Math.min(n,e))}function eD(e){return eR(e,-32768,32767)}function eT(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eP(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,l=0;for(;i-l>1;)n(r=l+i>>1)?l=r:i=r;return{lo:l,hi:i}}let e_=(e,t,n,r)=>eP(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eL=(e,t,n)=>eP(e,n,r=>e[r][t]>=n);function eI(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eN=["push","pop","shift","splice","unshift"];function eA(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eN.forEach(t=>{let n="_onData"+J(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})}))}function ej(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eN.forEach(t=>{delete e[t]}),delete e._chartjs)}function eW(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eY="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function eF(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eY.call(window,()=>{r=!1,e.apply(t,n)}))}}function eB(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let ez=e=>"start"===e?"left":"end"===e?"right":"center",eX=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eK=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eH(e,t,n){let r=t.length,i=0,l=r;if(e._sorted){let{iScale:a,vScale:o,_parsed:s}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:g}=a.getUserBounds();if(h){if(i=Math.min(e_(s,c,d).lo,n?r:e_(t,c,a.getPixelForValue(d)).lo),u){let e=s.slice(0,i+1).reverse().findIndex(e=>!I(e[o.axis]));i-=Math.max(0,e)}i=eR(i,0,r-1)}if(g){let e=Math.max(e_(s,a.axis,f,!0).hi+1,n?0:e_(t,c,a.getPixelForValue(f),!0).hi+1);if(u){let t=s.slice(e-1).findIndex(e=>!I(e[o.axis]));e+=Math.max(0,t)}l=eR(e,i,r)-i}else l=r-i}return{start:i,count:l}}function e$(e){let{xScale:t,yScale:n,_scaleRanges:r}
1=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let l=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),l}let eU=e=>0===e||1===e,eq=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*el/n)),eQ=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*el/n)+1,eV={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*eu)+1,easeOutSine:e=>Math.sin(e*eu),easeInOutSine:e=>-.5*(Math.cos(ei*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>eU(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>eU(e)?e:eq(e,.075,.3),easeOutElastic:e=>eU(e)?e:eQ(e,.075,.3),easeInOutElastic:e=>eU(e)?e:e<.5?.5*eq(2*e,.1125,.45):.5+.5*eQ(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eV.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eV.easeInBounce(2*e):.5*eV.easeOutBounce(2*e-1)+.5};function eZ(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function eG(e){return eZ(e)?e:new P(e)}function eJ(e){return eZ(e)?e:new P(e).saturate(.5).darken(.1).hexString()}let e0=["x","y","borderWidth","radius","tension"],e1=["color","borderColor","backgroundColor"],e5=new Map;function e2(e,t,n){var r;let i,l;return(i=t+JSON.stringify(r=(r=n)||{}),!(l=e5.get(i))&&(l=new Intl.NumberFormat(t,r),e5.set(i,l)),l).format(e)}let e8={values:e=>N(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,l=e;if(n.length>1){var a,o;let t,i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),a=e,Math.abs(t=(o=n).length>3?o[2].value-o[1].value:o[1].value-o[0].value)>=1&&a!==Math.floor(a)&&(t=a-Math.floor(a)),l=t}let s=ef(Math.abs(l)),u=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(c,this.options.ticks.format),e2(e,i,c)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ef(e))))||t>.8*n.length?e8.numeric.call(this,e,t,n):""}};var e6={formatters:e8};let e4=Object.create(null),e7=Object.create(null);function e3(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function e9(e,t,n){return"string"==typeof t?q(e3(e,t),n):q(e3(e,""),t)}class te{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>eJ(t.backgroundColor),this.hoverBorderColor=(e,t)=>eJ(t.borderColor),this.hoverColor=(e,t)=>eJ(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return e9(this,e,t)}get(e){return e3(this,e)}describe(e,t){return e9(e7,e,t)}override(e,t){return e9(e4,e,t)}route(e,t,n,r){let i=e3(this,e),l=e3(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=l[r];return A(e)?Object.assign({},t,e):Y(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var tt=new te({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e1},numbers:{type:"number",properties:e0}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e6.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tn(e,t,n,r,i){let l=t[i];return l||(l=t[i]=e.measureText(i).width,n.push(i)),l>r&&(r=l),r}function tr(e,t,n,r){let i,l,a,o,s,u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(o=n[i])||N(o)){if(N(o))for(l=0,a=o.length;l<a;l++)null==(s=o[l])||N(s)||(d=tn(e,u,c,d,s))}else d=tn(e,u,c,d,o);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function ti(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function tl(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function ta(e,t,n,r){to(e,t,n,r,null)}function to(e,t,n,r,i){let l,a,o,s,u,c,d,f,h=t.pointStyle,g=t.rotation,p=t.radius,b=(g||0)*es;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(l=h.toString())||"[object HTMLCanvasElement]"===l)){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(p)&&!(p<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,p,0,0,el):e.arc(n,r,p,0,el),e.closePath();break;case"triangle":c=i?i/2:p,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*p),b+=ed,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*p),b+=ed,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*p),e.closePath();break;case"rectRounded":u=.516*p,a=Math.cos(b+ec)*(s=p-u),d=Math.cos(b+ec)*(i?i/2-u:s),o=Math.sin(b+ec)*s,f=Math.sin(b+ec)*(i?i/2-u:s),e.arc(n-d,r-o,u,b-ei,b-eu),e.arc(n+f,r-a,u,b-eu,b),e.arc(n+d,r+o,u,b,b+eu),e.arc(n-f,r+a,u,b+eu,b+ei),e.closePath();break;
1case"rect":if(!g){s=Math.SQRT1_2*p,c=i?i/2:s,e.rect(n-c,r-s,2*c,2*s);break}b+=ec;case"rectRot":d=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,o=Math.sin(b)*p,f=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-o),e.lineTo(n+f,r-a),e.lineTo(n+d,r+o),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":b+=ec;case"cross":d=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,o=Math.sin(b)*p,f=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,o=Math.sin(b)*p,f=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),b+=ec,d=Math.cos(b)*(i?i/2:p),a=Math.cos(b)*p,o=Math.sin(b)*p,f=Math.sin(b)*(i?i/2:p),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(b)*p,o=Math.sin(b)*p,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:p),r+Math.sin(b)*p);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function ts(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function tu(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tc(e){e.restore()}function td(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function tf(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function th(e,t,n,r,i,l={}){let a,o,s=N(t)?t:[t],u=l.strokeWidth>0&&""!==l.strokeColor;for(e.save(),e.font=i.string,l.translation&&e.translate(l.translation[0],l.translation[1]),I(l.rotation)||e.rotate(l.rotation),l.color&&(e.fillStyle=l.color),l.textAlign&&(e.textAlign=l.textAlign),l.textBaseline&&(e.textBaseline=l.textBaseline),a=0;a<s.length;++a)o=s[a],l.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,l.backdrop),u&&(l.strokeColor&&(e.strokeStyle=l.strokeColor),I(l.strokeWidth)||(e.lineWidth=l.strokeWidth),e.strokeText(o,n,r,l.maxWidth)),e.fillText(o,n,r,l.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let l=e.measureText(r),a=t-l.actualBoundingBoxLeft,o=t+l.actualBoundingBoxRight,s=n-l.actualBoundingBoxAscent,u=n+l.actualBoundingBoxDescent,c=i.strikethrough?(s+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(o,c),e.stroke()}}(e,n,r,o,l),r+=Number(i.lineHeight);e.restore()}function tg(e,t){let{x:n,y:r,w:i,h:l,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*ei,ei,!0),e.lineTo(n,r+l-a.bottomLeft),e.arc(n+a.bottomLeft,r+l-a.bottomLeft,a.bottomLeft,ei,eu,!0),e.lineTo(n+i-a.bottomRight,r+l),e.arc(n+i-a.bottomRight,r+l-a.bottomRight,a.bottomRight,eu,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-eu,!0),e.lineTo(n+a.topLeft,r)}let tp=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tb=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tm=e=>+e||0;function tv(e,t){let n={},r=A(t),i=r?Object.keys(t):t,l=A(e)?r?n=>Y(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tm(l(e));return n}function ty(e){return tv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function tx(e){return tv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tw(e){let t=ty(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tM(e,t){e=e||{},t=t||tt.font;let n=Y(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=Y(e.style,t.style);r&&!(""+r).match(tb)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:Y(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tp);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(Y(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Y(e.weight,t.weight),string:""};return i.string=!i||I(i.size)||I(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tk(e,t,n,r){let i,l,a,o=!0;for(i=0,l=e.length;i<l;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),o=!1),void 0!==n&&N(a)&&(a=a[n%a.length],o=!1),void 0!==a))return r&&!o&&(r.cacheable=!1),a}function tE(e,t,n){let{min:r,max:i}=e,l=B(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(l)),max:a(i,l)}}function tS(e,t){return Object.assign(Object.create(e),t)}function tC(e,t=[""],n,r,i=()=>e[0]){let l=n||e;return void 0===r&&(r=tI("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:l,_fallback:r,_getTarget:i,override:n=>tC([n,...e],t,l,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tT(n,r,()=>(function(e,t,n,r){let i;for(let l of t)if(void 0!==(i=tI(tR(l,e),n)))return tD(e,i)?t_(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>
1Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tN(e).includes(t),ownKeys:e=>tN(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tO(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:et(n)?n:()=>n,isIndexable:et(r)?r:()=>r}}let tR=(e,t)=>e?e+J(t):t,tD=(e,t)=>A(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tP=(e,t)=>!0===e?t:"string"==typeof e?G(t,e):void 0;function t_(e,t,n,r){var i;let l=t._rootScopes,a=(i=t._fallback,et(i)?i(n,r):i),o=[...e,...l],s=new Set;s.add(r);let u=tL(s,o,n,a||n,r);return null!==u&&(void 0===a||a===n||null!==(u=tL(s,o,a,u,r)))&&tC(Array.from(s),[""],l,a,()=>{var e,i,l;let a,o;return e=t,i=n,l=r,i in(a=e._getTarget())||(a[i]={}),N(o=a[i])&&A(l)?l:o||{}})}function tL(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tP(n,a);if(t){var l;e.add(t);let a=(l=t._fallback,et(l)?l(n,i):l);if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tI(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tN(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tA(e,t,n,r){let i,l,a,{iScale:o}=e,{key:s="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)a=t[l=i+n],u[i]={r:o.parse(G(a,s),l)};return u}let tj=Number.EPSILON||1e-14,tW=(e,t)=>t<e.length&&!e[t].skip&&e[t],tY=e=>"x"===e?"y":"x";function tF(e,t,n){return Math.max(Math.min(e,n),t)}function tB(e,t,n,r,i){let l,a,o,s;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i,l=tY(t),a=e.length,o=Array(a).fill(0),s=Array(a),u=tW(e,0);for(n=0;n<a;++n)if(r=i,i=u,u=tW(e,n+1),i){if(u){let e=u[t]-i[t];o[n]=0!==e?(u[l]-i[l])/e:0}s[n]=r?u?eh(o[n-1])!==eh(o[n])?0:(o[n-1]+o[n])/2:o[n-1]:o[n]}!function(e,t,n){let r,i,l,a,o,s=e.length,u=tW(e,0);for(let c=0;c<s-1;++c)if(o=u,u=tW(e,c+1),o&&u){if(eg(t[c],0,tj)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(l=3/Math.sqrt(a),n[c]=r*l*t[c],n[c+1]=i*l*t[c])}}(e,o,s),function(e,t,n="x"){let r,i,l,a=tY(n),o=e.length,s=tW(e,0);for(let u=0;u<o;++u){if(i=l,l=s,s=tW(e,u+1),!l)continue;let o=l[n],c=l[a];i&&(r=(o-i[n])/3,l[`cp1${n}`]=o-r,l[`cp1${a}`]=c-r*t[u]),s&&(r=(s[n]-o)/3,l[`cp2${n}`]=o+r,l[`cp2${a}`]=c+r*t[u])}}(e,s,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(l=0,a=e.length;l<a;++l)s=function(e,t,n,r){let i=e.skip?t:e,l=n.skip?t:n,a=eE(t,i),o=eE(l,t),s=a/(a+o),u=o/(a+o);s=isNaN(s)?0:s,u=isNaN(u)?0:u;let c=r*s,d=r*u;return{previous:{x:t.x-c*(l.x-i.x),y:t.y-c*(l.y-i.y)},next:{x:t.x+d*(l.x-i.x),y:t.y+d*(l.y-i.y)}}}(n,o=e[l],e[Math.min(l+1,a-!r)%a],t.tension),o.cp1x=s.previous.x,o.cp1y=s.previous.y,o.cp2x=s.next.x,o.cp2y=s.next.y,n=o}t.capBezierPoints&&function(e,t){let n,r,i,l,a,o=ts(e[0],t);for(n=0,r=e.length;n<r;++n)a=l,l=o,o=n<r-1&&ts(e[n+1],t),l&&(i=e[n],a&&(i.cp1x=tF(i.cp1x,t.left,t.right),i.cp1y=tF(i.cp1y,t.top,t.bottom)),o&&(i.cp2x=tF(i.cp2x,t.left,t.right),i.cp2y=tF(i.cp2y,t.top,t.bottom)))}(e,n)}function tz(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tX(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tK(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tH=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),t$=["top","right","bottom","left"];function tU(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let l=t$[i];r[l]=parseFloat(e[t+"-"+l+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function tq(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tH(n),l="border-box"===i.boxSizing,a=tU(i,"padding"),o=tU(i,"border","width"),{x:s,y:u,box:c}=function(e,t){let n,r,i,l=e.touches,a=l&&l.length?l[0]:e,{offsetX:o,offsetY:s}=a,u=!1;if(i=e.target,(o>0||s>0)&&(!i||!i.shadowRoot))n=o,r=s;else{let e=t.getBoundingClientRect();n=a.clientX-e.left,r=a.clientY-e.top,u=!0}return{x:n,y:r,box:u}}(e,n),d=a.left+(c&&o.left),f=a.top+(c&&o.top),{width:h,height:g}=t;return l&&(h-=a.width+o.width,g-=a.height+o.height),{x:Math.round((s-d)/h*n.width/r),y:Math.round((u-f)/g*n.height/r)}}let tQ=e=>Math.round(10*e)/10;function tV(e,t,n,r){let i=tH(e),l=tU(i,"margin"),a=tK(i.maxWidth,e,"clientWidth")||eo,o=tK(i.maxHeight,e,"clientHeight")||eo,s=function(e,t,n){let r,i;if(void 0===t||void 0===n){let l=e&&tX(e);if(l){let e=l.getBoundingClientRect(),a=tH(l),o=tU(a,"border","width"),s=tU(a,"padding");
1t=e.width-s.width-o.width,n=e.height-s.height-o.height,r=tK(a.maxWidth,l,"clientWidth"),i=tK(a.maxHeight,l,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||eo,maxHeight:i||eo}}(e,t,n),{width:u,height:c}=s;if("content-box"===i.boxSizing){let e=tU(i,"border","width"),t=tU(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-l.width),c=Math.max(0,r?u/r:c-l.height),u=tQ(Math.min(u,a,s.maxWidth)),c=tQ(Math.min(c,o,s.maxHeight)),u&&!c&&(c=tQ(u/2)),(void 0!==t||void 0!==n)&&r&&s.height&&c>s.height&&(u=tQ(Math.floor((c=s.height)*r))),{width:u,height:c}}function tZ(e,t,n){let r=t||1,i=tQ(e.height*r),l=tQ(e.width*r);e.height=tQ(e.height),e.width=tQ(e.width);let a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==l)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=l,e.ctx.setTransform(r,0,0,r,0,0),!0)}let tG=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tz()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function tJ(e,t){let n=tH(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function t0(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t1(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t5(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},l={x:t.cp1x,y:t.cp1y},a=t0(e,i,n),o=t0(i,l,n),s=t0(l,t,n),u=t0(a,o,n),c=t0(o,s,n);return t0(u,c,n)}function t2(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t8(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t6(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t4(e){return"angle"===e?{between:eO,compare:eS,normalize:eC}:{between:eT,compare:(e,t)=>e-t,normalize:e=>e}}function t7({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function t3(e,t,n){let r,i,l;if(!n)return[e];let{property:a,start:o,end:s}=n,u=t.length,{compare:c,between:d,normalize:f}=t4(a),{start:h,end:g,loop:p,style:b}=function(e,t,n){let r,{property:i,start:l,end:a}=n,{between:o,normalize:s}=t4(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&o(s(t[c%u][i]),l,a);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),m=[],v=!1,y=null,x=()=>v||d(o,l,r)&&0!==c(o,l),w=()=>!v||0===c(s,r)||d(s,l,r);for(let e=h,n=h;e<=g;++e)(i=t[e%u]).skip||(r=f(i[a]))!==l&&(v=d(r,o,s),null===y&&x()&&(y=0===c(r,o)?e:n),null!==y&&w()&&(m.push(t7({start:y,end:e,loop:p,count:u,style:b})),y=null),n=e,l=r);return null!==y&&m.push(t7({start:y,end:g,loop:p,count:u,style:b})),m}function t9(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let l=t3(r[i],e.points,t);l.length&&n.push(...l)}return n}function ne(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let l=!!e._loop,{start:a,end:o}=function(e,t,n,r){let i=0,l=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;
1for(i%=t,n&&(l+=i);l>i&&e[l%t].skip;)l--;return{start:i,end:l%=t}}(n,i,l,r);if(!0===r)return nt(e,[{start:a,end:o,loop:l}],n,t);let s=o<a?o+i:o,u=!!e._fullLoop&&0===a&&o===i-1;return nt(e,function(e,t,n,r){let i,l=e.length,a=[],o=t,s=e[t];for(i=t+1;i<=n;++i){let n=e[i%l];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%l,end:(i-1)%l,loop:r}),t=o=n.stop?i:null):(o=i,s.skip&&(t=i)),s=n}return null!==o&&a.push({start:t%l,end:o%l,loop:r}),a}(n,a,s,u),n,t)}function nt(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),l=nn(e.options),{_datasetIndex:a,options:{spanGaps:o}}=e,s=n.length,u=[],c=l,d=t[0].start,f=d;function h(e,t,r,i){let l=o?-1:1;if(e!==t){for(e+=s;n[e%s].skip;)e-=l;for(;n[t%s].skip;)t+=l;e%s!=t%s&&(u.push({start:e%s,end:t%s,loop:r,style:i}),c=i,d=t%s)}}for(let e of t){let t,l=n[(d=o?d:e.start)%s];for(f=d+1;f<=e.end;f++){let o=n[f%s];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eZ(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.str
1ingify(t,r)})(t=nn(r.setContext(tS(i,{type:"segment",p0:l,p1:o,p0DataIndex:(f-1)%s,p1DataIndex:f%s,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),l=o,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function nn(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function nr(e,t,n){return e.options.clip?e[n]:t[n]}function ni(e,t){let n=t._clip;if(n.disabled)return!1;let r=function(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:nr(n,t,"left"),right:nr(n,t,"right"),top:nr(r,t,"top"),bottom:nr(r,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:r.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:r.right+(!0===n.right?0:n.right),top:!1===n.top?0:r.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:r.bottom+(!0===n.bottom?0:n.bottom)}}},7567:(e,t,n)=>{n.d(t,{$$:()=>p,Es:()=>h,KG:()=>m,Ks:()=>O,Ll:()=>o,Re:()=>E,Sw:()=>l,TW:()=>f,WQ:()=>k,YG:()=>w,YN:()=>b,ZC:()=>y,_q:()=>g,ag:()=>D,e_:()=>C,jn:()=>i,kx:()=>S,l6:()=>a,lk:()=>v,sb:()=>c,wz:()=>u,xZ:()=>d,zk:()=>s});var r=n(6697);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function o(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:o(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){let{Document:t}=s(e);return e instanceof t}function c(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:o(e)?u(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let h=l?r.useLayoutEffect:r.useEffect;function g(e){let t=(0,r.useRef)(e);return h(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function p(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function b(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function m(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function v(e){let t=g(e),n=(0,r.useRef)(null),i=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function y(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let x={};function w(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==x[e]?0:x[e]+1;return x[e]=n,e+"-"+n},[e,t])}function M(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{for(let[r,i]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*i)}return t},{...t})}}let k=M(1),E=M(-1);function S(e){if(!e)return!1;let{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function C(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let O=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[O.Translate.toString(e),O.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),R="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function D(e){return e.matches(R)?e:e.querySelector(R)}}
1,8788:(e,t,n)=>{n.d(t,{Mp:()=>eU,Hd:()=>e9,vL:()=>p,uN:()=>eh,AN:()=>ev,y$:()=>F,WB:()=>e4,Sj:()=>$,Vy:()=>Y,sl:()=>q,fF:()=>eZ,PM:()=>eV,zM:()=>eJ,MS:()=>L,FR:()=>I});var r,i,l,a,o,s,u,c,d,f,h,g,p,b,m,v,y,x,w,M=n(6697),k=n(9020),E=n(7567);let S={display:"none"};function C(e){let{id:t,value:n}=e;return M.createElement("div",{id:t,style:S},n)}function O(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return M.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let R=(0,M.createContext)(null),D={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},T={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function P(e){var t;let n,{announcements:r=T,container:i,hiddenTextDescribedById:l,screenReaderInstructions:a=D}=e,{announce:o,announcement:s}=function(){let[e,t]=(0,M.useState)("");return{announce:(0,M.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),u=(0,E.YG)("DndLiveRegion"),[c,d]=(0,M.useState)(!1);if((0,M.useEffect)(()=>{d(!0)},[]),t=(0,M.useMemo)(()=>({onDragStart(e){let{active:t}=e;o(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&o(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;o(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;o(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;o(r.onDragCancel({active:t,over:n}))}}),[o,r]),n=(0,M.useContext)(R),(0,M.useEffect)(()=>{if(!n)throw Error("useDndMonitor must be used within a children of <DndContext>");return n(t)},[t,n]),!c)return null;let f=M.createElement(M.Fragment,null,M.createElement(C,{id:l,value:a.draggable}),M.createElement(O,{id:u,announcement:s}));return i?(0,k.createPortal)(f,i):f}function _(){}function L(e,t){return(0,M.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function I(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,M.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(r=f||(f={})).DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable";let N=Object.freeze({x:0,y:0});function A(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function j(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function W(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Y(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}let F=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=W(t),l=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=W(r),a=Number((i.reduce((e,t,r)=>{var i;return e+(i=n[r],Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2)))},0)/4).toFixed(4));l.push({id:t,data:{droppableContainer:e,value:a}})}}return l.sort(A)},B=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,l=n.get(r);if(l){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<l){let a=t.width*t.height,o=e.width*e.height,s=(i-r)*(l-n);return Number((s/(a+o-s)).toFixed(4))}return 0}(l,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(j)};function z(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:N}let X=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>
1({...e,top:e.top+ +t.y,bottom:e.bottom+ +t.y,left:e.left+ +t.x,right:e.right+ +t.x}),{...e})};function K(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let H={ignoreTransform:!1};function $(e,t){void 0===t&&(t=H);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,E.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=K(t);if(!r)return e;let{scaleX:i,scaleY:l,x:a,y:o}=r,s=e.left-a-(1-i)*parseFloat(n),u=e.top-o-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=l?e.height/l:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,t,r))}let{top:r,left:i,width:l,height:a,bottom:o,right:s}=n;return{top:r,left:i,width:l,height:a,bottom:o,right:s}}function U(e){return $(e,{ignoreTransform:!0})}function q(e,t){let n=[];return e?function r(i){var l,a;let o;if(null!=t&&n.length>=t||!i)return n;if((0,E.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,E.sb)(i)||(0,E.xZ)(i)||n.includes(i))return n;let s=(0,E.zk)(e).getComputedStyle(i);return(i!==e&&(void 0===(l=s)&&(l=(0,E.zk)(i).getComputedStyle(i)),o=/(auto|scroll|overlay)/,["overflow","overflowX","overflowY"].some(e=>{let t=l[e];return"string"==typeof t&&o.test(t)}))&&n.push(i),void 0===(a=s)&&(a=(0,E.zk)(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function Q(e){let[t]=q(e,1);return null!=t?t:null}function V(e){return E.Sw&&e?(0,E.l6)(e)?e:(0,E.Ll)(e)?(0,E.wz)(e)||e===(0,E.TW)(e).scrollingElement?window:(0,E.sb)(e)?e:null:null:null}function Z(e){return(0,E.l6)(e)?e.scrollX:e.scrollLeft}function G(e){return(0,E.l6)(e)?e.scrollY:e.scrollTop}function J(e){return{x:Z(e),y:G(e)}}function ee(e){return!!E.Sw&&!!e&&e===document.scrollingElement}function et(e){let t={x:0,y:0},n=ee(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,l=e.scrollLeft<=t.x;return{isTop:i,isLeft:l,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(i=h||(h={}))[i.Forward=1]="Forward",i[i.Backward=-1]="Backward";let en={x:.2,y:.2};function er(e){return e.reduce((e,t)=>(0,E.WQ)(e,J(t)),N)}function ei(e,t){if(void 0===t&&(t=$),!e)return;let{top:n,left:r,bottom:i,right:l}=t(e);Q(e)&&(i<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let el=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Z(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+G(t),0)}]];class ea{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=q(t),r=er(n);for(const[t,i,l]of(this.rect={...e},this.width=e.width,this.height=e.height,el))for(const e of i)Object.defineProperty(this,e,{get:()=>{let i=l(n),a=r[t]-i;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class eo{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function es(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function eu(e){e.preventDefault()}function ec(e){e.stopPropagation()}(l=g||(g={})).Click="click",l.DragStart="dragstart",l.Keydown="keydown",l.ContextMenu="contextmenu",l.Resize="resize",l.SelectionChange="selectionchange",l.VisibilityChange="visibilitychange",(a=p||(p={})).Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab";let ed={start:[p.Space,p.Enter],cancel:[p.Esc],end:[p.Space,p.Enter,p.Tab]},ef=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case p.Right:return{...n,x:n.x+25};case p.Left:return{...n,x:n.x-25};case p.Down:return{...n,y:n.y+25};case p.Up:return{...n,y:n.y-25}}};class eh{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new eo((0,E.TW)(t)),this.windowListeners=new eo((0,E.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(g.Resize,this.handleCancel),this.windowListeners.add(g.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(g.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ei(n),t(N)}handleKeyDown(e){if((0,E.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=ed,coordinateGetter:l=ef,scrollBehavior:a="smooth"}=r,{code:o}=e;if(i.end.includes(o))return void this.handleEnd(e);if(i.cancel.includes(o))return void this.handleCancel(e);let{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:N;this.referenceCoordinates||(this.referenceCoordinates=u);let c=l(e,{active:t,context:n.current,currentCoordinates:u});if(c){let t=(0,E.Re)(c,u),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:l,isRight:o,isLeft:s,isBottom:u,maxScroll:d,minScroll:f}=et(n),h=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHe
1ight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}(n),g={x:Math.min(i===p.Right?h.right-h.width/2:h.right,Math.max(i===p.Right?h.left:h.left+h.width/2,c.x)),y:Math.min(i===p.Down?h.bottom-h.height/2:h.bottom,Math.max(i===p.Down?h.top:h.top+h.height/2,c.y))},b=i===p.Right&&!o||i===p.Left&&!s,m=i===p.Down&&!u||i===p.Up&&!l;if(b&&g.x!==c.x){let e=n.scrollLeft+t.x,l=i===p.Right&&e<=d.x||i===p.Left&&e>=f.x;if(l&&!t.y)return void n.scrollTo({left:e,behavior:a});l?r.x=n.scrollLeft-e:r.x=i===p.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&g.y!==c.y){let e=n.scrollTop+t.y,l=i===p.Down&&e<=d.y||i===p.Up&&e>=f.y;if(l&&!t.x)return void n.scrollTo({top:e,behavior:a});l?r.y=n.scrollTop-e:r.y=i===p.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,E.WQ)((0,E.Re)(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function eg(e){return!!(e&&"distance"in e)}function ep(e){return!!(e&&"delay"in e)}eh.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ed,onActivation:i}=t,{active:l}=n,{code:a}=e.nativeEvent;if(r.start.includes(a)){let t=l.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class eb{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,E.zk)(e);return e instanceof t?e:(0,E.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:l}=i;this.props=e,this.events=t,this.document=(0,E.TW)(l),this.documentListeners=new eo(this.document),this.listeners=new eo(n),this.windowListeners=new eo((0,E.zk)(l)),this.initialCoordinates=null!=(r=(0,E.e_)(i))?r:N,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(g.Resize,this.handleCancel),this.windowListeners.add(g.DragStart,eu),this.windowListeners.add(g.VisibilityChange,this.handleCancel),this.windowListeners.add(g.ContextMenu,eu),this.documentListeners.add(g.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ep(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(eg(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(g.Click,ec,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(g.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:l,options:{activationConstraint:a}}=i;if(!r)return;let o=null!=(t=(0,E.e_)(e))?t:N,s=(0,E.Re)(r,o);if(!n&&a){if(eg(a)){if(null!=a.tolerance&&es(s,a.tolerance))return this.handleCancel();if(es(s,a.distance))return this.handleStart()}return ep(a)&&es(s,a.tolerance)?this.handleCancel():void this.handlePending(a,s)}e.cancelable&&e.preventDefault(),l(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===p.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let em={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ev extends eb{constructor(e){const{event:t}=e;super(e,em,(0,E.TW)(t.target))}}ev.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let ey={move:{name:"mousemove"},end:{name:"mouseup"}};(o=b||(b={}))[o.RightClick=2]="RightClick";class ex extends eb{constructor(e){super(e,ey,(0,E.TW)(e.event.target))}}ex.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==b.RightClick&&(null==r||r({event:n}),!0)}}];let ew={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eM extends eb{constructor(e){super(e,ew)}static setup(){return window.addEventListener(ew.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ew.move.name,e)};function e(){}}}eM.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return!(i.length>1)&&(null==r||r({event:n}),!0)}}],(s=m||(m={}))[s.Pointer=0]="Pointer",s[s.DraggableRect=1]="DraggableRect",(u=v||(v={}
1))[u.TreeOrder=0]="TreeOrder",u[u.ReversedTreeOrder=1]="ReversedTreeOrder";let ek={x:{[h.Backward]:!1,[h.Forward]:!1},y:{[h.Backward]:!1,[h.Forward]:!1}};(c=y||(y={}))[c.Always=0]="Always",c[c.BeforeDragging=1]="BeforeDragging",c[c.WhileDragging=2]="WhileDragging",(x||(x={})).Optimized="optimized";let eE=new Map;function eS(e,t){return(0,E.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eC(e){let{callback:t,disabled:n}=e,r=(0,E._q)(t),i=(0,M.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,M.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function eO(e){return new ea($(e),e)}function eR(e,t,n){void 0===t&&(t=eO);let[r,i]=(0,M.useState)(null);function l(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let l=t(e);return JSON.stringify(r)===JSON.stringify(l)?r:l})}let a=function(e){let{callback:t,disabled:n}=e,r=(0,E._q)(t),i=(0,M.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,M.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){l();break}}}}),o=eC({callback:l});return(0,E.Es)(()=>{l(),e?(null==o||o.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==a||a.disconnect())},[e]),r}let eD=[];function eT(e,t){void 0===t&&(t=[]);let n=(0,M.useRef)(null);return(0,M.useEffect)(()=>{n.current=null},t),(0,M.useEffect)(()=>{let t=e!==N;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,E.Re)(e,n.current):N}function eP(e){return(0,M.useMemo)(()=>{let t,n;return e?(t=e.innerWidth,{top:0,left:0,right:t,bottom:n=e.innerHeight,width:t,height:n}):null},[e])}let e_=[];function eL(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,E.sb)(t)?t:e}let eI=[{sensor:ev,options:{}},{sensor:eh,options:{}}],eN={current:{}},eA={draggable:{measure:U},droppable:{measure:U,strategy:y.WhileDragging,frequency:x.Optimized},dragOverlay:{measure:$}};class ej extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eW={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ej,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eA,measureDroppableContainers:_,windowRect:null,measuringScheduled:!1},eY={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_,draggableNodes:new Map,over:null,measureDroppableContainers:_},eF=(0,M.createContext)(eY),eB=(0,M.createContext)(eW);function ez(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ej}}}function eX(e,t){switch(t.type){case f.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case f.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case f.DragEnd:case f.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case f.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new ej(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case f.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;let a=new ej(e.droppable.containers);return a.set(n,{...l,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case f.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;
1let l=new ej(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function eK(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,M.useContext)(eF),l=(0,E.ZC)(r),a=(0,E.ZC)(null==n?void 0:n.id);return(0,M.useEffect)(()=>{if(!t&&!r&&l&&null!=a){if(!(0,E.kx)(l)||document.activeElement===l.target)return;let e=i.get(a);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,E.ag)(e);if(t){t.focus();break}}})}},[r,t,i,a,l]),null}function eH(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let e$=(0,M.createContext)({...N,scaleX:1,scaleY:1});(d=w||(w={}))[d.Uninitialized=0]="Uninitialized",d[d.Initializing=1]="Initializing",d[d.Initialized=2]="Initialized";let eU=(0,M.memo)(function(e){var t,n,r,i,l,a,o,s;let u,c,d,g,p,b,x,S,{id:C,accessibility:O,autoScroll:D=!0,children:T,sensors:_=eI,collisionDetection:L=B,measuring:I,modifiers:A,...j}=e,[W,F]=(0,M.useReducer)(eX,void 0,ez),[K,H]=function(){let[e]=(0,M.useState)(()=>new Set),t=(0,M.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,M.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[U,Z]=(0,M.useState)(w.Uninitialized),G=U===w.Initialized,{draggable:{active:ei,nodes:el,translate:eo},droppable:{containers:es}}=W,eu=null!=ei?el.get(ei):null,ec=(0,M.useRef)({initial:null,translated:null}),ed=(0,M.useMemo)(()=>{var e;return null!=ei?{id:ei,data:null!=(e=null==eu?void 0:eu.data)?e:eN,rect:ec}:null},[ei,eu]),ef=(0,M.useRef)(null),[eh,eg]=(0,M.useState)(null),[ep,eb]=(0,M.useState)(null),em=(0,E.YN)(j,Object.values(j)),ev=(0,E.YG)("DndDescribedBy",C),ey=(0,M.useMemo)(()=>es.getEnabled(),[es]),ex=(0,M.useMemo)(()=>({draggable:{...eA.draggable,...null==I?void 0:I.draggable},droppable:{...eA.droppable,...null==I?void 0:I.droppable},dragOverlay:{...eA.dragOverlay,...null==I?void 0:I.dragOverlay}}),[null==I?void 0:I.draggable,null==I?void 0:I.droppable,null==I?void 0:I.dragOverlay]),{droppableRects:ew,measureDroppableContainers:eM,measuringScheduled:eO}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[l,a]=(0,M.useState)(null),{frequency:o,measure:s,strategy:u}=i,c=(0,M.useRef)(e),d=function(){switch(u){case y.Always:return!1;case y.BeforeDragging:return n;default:return!n}}(),f=(0,E.YN)(d),h=(0,M.useCallback)(function(e){void 0===e&&(e=[]),f.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),g=(0,M.useRef)(null),p=(0,E.KG)(t=>{if(d&&!n)return eE;if(!t||t===eE||c.current!==e||null!=l){let t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new ea(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,l,n,d,s]);return(0,M.useEffect)(()=>{c.current=e},[e]),(0,M.useEffect)(()=>{d||h()},[n,d]),(0,M.useEffect)(()=>{l&&l.length>0&&a(null)},[JSON.stringify(l)]),(0,M.useEffect)(()=>{d||"number"!=typeof o||null!==g.current||(g.current=setTimeout(()=>{h(),g.current=null},o))},[o,d,h,...r]),{droppableRects:p,measureDroppableContainers:h,measuringScheduled:null!=l}}(ey,{dragging:G,dependencies:[eo.x,eo.y],config:ex.droppable}),ej=(p=(g=null!=ei?el.get(ei):void 0)?g.node.current:null,(0,E.KG)(e=>{var t;return null==ei?null:null!=(t=null!=p?p:e)?t:null},[p,ei])),eW=(0,M.useMemo)(()=>ep?(0,E.e_)(ep):null,[ep]),eY=(u=(null==eh?void 0:eh.autoScrollEnabled)===!1,c="object"==typeof D?!1===D.enabled:!1===D,d=G&&!u&&!c,"object"==typeof D?{...D,enabled:d}:{enabled:d}),eU=eS(ej,ex.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,l=(0,M.useRef)(!1),{x:a,y:o}="boolean"==typeof i?{x:i,y:i}:i;(0,E.Es)(()=>{if(!a&&!o||!t){l.current=!1;return}if(l.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=z(n(e),r);if(a||(i.x=0),o||(i.y=0),l.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Q(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,a,o,r,n])}({activeNode:null!=ei?el.get(ei):null,config:eY.layoutShiftCompensation,initialRect:eU,measure:ex.draggable.measure});let eq=eR(ej,ex.draggable.measure,eU),eQ=eR(ej?ej.parentElement:null),eV=(0,M.useRef)({activatorEvent:null,active:null,activeNode:ej,c
1ollisionRect:null,collisions:null,droppableRects:ew,draggableNodes:el,draggingNode:null,draggingNodeRect:null,droppableContainers:es,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eZ=es.getNodeFor(null==(t=eV.current.over)?void 0:t.id),eG=function(e){let{measure:t}=e,[n,r]=(0,M.useState)(null),i=eC({callback:(0,M.useCallback)(e=>{for(let{target:n}of e)if((0,E.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),l=(0,M.useCallback)(e=>{let n=eL(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[a,o]=(0,E.lk)(l);return(0,M.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:ex.dragOverlay.measure}),eJ=null!=(n=eG.nodeRef.current)?n:ej,e0=G?null!=(r=eG.rect)?r:eq:null,e1=!!(eG.nodeRef.current&&eG.rect),e5=(b=eS(l=e1?null:eq),z(l,b)),e2=eP(eJ?(0,E.zk)(eJ):null),e8=(a=G?null!=eZ?eZ:ej:null,x=(0,M.useRef)(a),S=(0,E.KG)(e=>a?e&&e!==eD&&a&&x.current&&a.parentNode===x.current.parentNode?e:q(a):eD,[a]),(0,M.useEffect)(()=>{x.current=a},[a]),S),e6=function(e,t){void 0===t&&(t=$);let[n]=e,r=eP(n?(0,E.zk)(n):null),[i,l]=(0,M.useState)(e_);function a(){l(()=>e.length?e.map(e=>ee(e)?r:new ea(t(e),e)):e_)}let o=eC({callback:a});return(0,E.Es)(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),i}(e8),e4=eH(A,{transform:{x:eo.x-e5.x,y:eo.y-e5.y,scaleX:1,scaleY:1},activatorEvent:ep,active:ed,activeNodeRect:eq,containerNodeRect:eQ,draggingNodeRect:e0,over:eV.current.over,overlayNodeRect:eG.rect,scrollableAncestors:e8,scrollableAncestorRects:e6,windowRect:e2}),e7=eW?(0,E.WQ)(eW,eo):null,e3=function(e){let[t,n]=(0,M.useState)(null),r=(0,M.useRef)(e),i=(0,M.useCallback)(e=>{let t=V(e.target);t&&n(e=>e?(e.set(t,J(t)),new Map(e)):null)},[]);return(0,M.useEffect)(()=>{let t=r.current;if(e!==t){l(t);let a=e.map(e=>{let t=V(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,J(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{l(e),l(t)};function l(e){e.forEach(e=>{let t=V(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,M.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,E.WQ)(e,t),N):er(e):N,[e,t])}(e8),e9=eT(e3),te=eT(e3,[eq]),tt=(0,E.WQ)(e4,e9),tn=e0?X(e0,e4):null,tr=ed&&tn?L({active:ed,collisionRect:tn,droppableRects:ew,droppableContainers:ey,pointerCoordinates:e7}):null,ti=Y(tr,"id"),[tl,ta]=(0,M.useState)(null),to=(o=e1?e4:(0,E.WQ)(e4,te),s=null!=(i=null==tl?void 0:tl.rect)?i:null,{...o,scaleX:s&&eq?s.width/eq.width:1,scaleY:s&&eq?s.height/eq.height:1}),ts=(0,M.useRef)(null),tu=(0,M.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==ef.current)return;let i=el.get(ef.current);if(!i)return;let l=e.nativeEvent,a=new n({active:ef.current,activeNode:i,event:l,options:r,context:eV,onAbort(e){if(!el.get(e))return;let{onDragAbort:t}=em.current,n={id:e};null==t||t(n),K({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!el.get(e))return;let{onDragPending:i}=em.current,l={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(l),K({type:"onDragPending",event:l})},onStart(e){let t=ef.current;if(null==t)return;let n=el.get(t);if(!n)return;let{onDragStart:r}=em.current,i={activatorEvent:l,active:{id:t,data:n.data,rect:ec}};(0,k.unstable_batchedUpdates)(()=>{null==r||r(i),Z(w.Initializing),F({type:f.DragStart,initialCoordinates:e,active:t}),K({type:"onDragStart",event:i}),eg(ts.current),eb(l)})},onMove(e){F({type:f.DragMove,coordinates:e})},onEnd:o(f.DragEnd),onCancel:o(f.DragCancel)});function o(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=eV.current,a=null;if(t&&i){let{cancelDrop:o}=em.current;a={activatorEvent:l,active:t,collisions:n,delta:i,over:r},e===f.DragEnd&&"function"==typeof o&&await Promise.resolve(o(a))&&(e=f.DragCancel)}ef.current=null,(0,k.unstable_batchedUpdates)(()=>{F({type:e}),Z(w.Uninitialized),ta(null),eg(null),eb(null),ts.current=null;let t=e===f.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=em.current[t];null==e||e(a),K({type:t,event:a})}})}}ts.current=a},[el]),tc=(0,M.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,l=el.get(r);null!==ef.current||!l||i.dndKit||i.defaultPrevented||!0===e(n,t.options,{active:l})&&(i.dndKit={capturedBy:t.sensor},ef.current=r,tu(n,t))},[el,tu]),td=(0,M.useMemo)(()=>_.reduce((e,t)=>
1{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:tc(e.handler,t)}))]},[]),[_,tc]);(0,M.useEffect)(()=>{if(!E.Sw)return;let e=_.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},_.map(e=>{let{sensor:t}=e;return t})),(0,E.Es)(()=>{eq&&U===w.Initializing&&Z(w.Initialized)},[eq,U]),(0,M.useEffect)(()=>{let{onDragMove:e}=em.current,{active:t,activatorEvent:n,collisions:r,over:i}=eV.current;if(!t||!n)return;let l={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:i};(0,k.unstable_batchedUpdates)(()=>{null==e||e(l),K({type:"onDragMove",event:l})})},[tt.x,tt.y]),(0,M.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=eV.current;if(!e||null==ef.current||!t||!i)return;let{onDragOver:l}=em.current,a=r.get(ti),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:o};(0,k.unstable_batchedUpdates)(()=>{ta(o),null==l||l(s),K({type:"onDragOver",event:s})})},[ti]),(0,E.Es)(()=>{eV.current={activatorEvent:ep,active:ed,activeNode:ej,collisionRect:tn,collisions:tr,droppableRects:ew,draggableNodes:el,draggingNode:eJ,draggingNodeRect:e0,droppableContainers:es,over:tl,scrollableAncestors:e8,scrollAdjustedTranslate:tt},ec.current={initial:e0,translated:tn}},[ed,ej,tr,tn,el,eJ,e0,ew,es,tl,e8,tt]),function(e){let{acceleration:t,activator:n=m.Pointer,canScroll:r,draggingRect:i,enabled:l,interval:a=5,order:o=v.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=e,g=function(e){let{delta:t,disabled:n}=e,r=(0,E.ZC)(t);return(0,E.KG)(e=>{if(n||!r||!e)return ek;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[h.Backward]:e.x[h.Backward]||-1===i.x,[h.Forward]:e.x[h.Forward]||1===i.x},y:{[h.Backward]:e.y[h.Backward]||-1===i.y,[h.Forward]:e.y[h.Forward]||1===i.y}}},[n,t,r])}({delta:d,disabled:!l}),[p,b]=(0,E.$$)(),y=(0,M.useRef)({x:0,y:0}),x=(0,M.useRef)({x:0,y:0}),w=(0,M.useMemo)(()=>{switch(n){case m.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case m.DraggableRect:return i}},[n,i,s]),k=(0,M.useRef)(null),S=(0,M.useCallback)(()=>{let e=k.current;if(!e)return;let t=y.current.x*x.current.x,n=y.current.y*x.current.y;e.scrollBy(t,n)},[]),C=(0,M.useMemo)(()=>o===v.TreeOrder?[...u].reverse():u,[o,u]);(0,M.useEffect)(()=>{if(!l||!u.length||!w)return void b();for(let e of C){if((null==r?void 0:r(e))===!1)continue;let n=c[u.indexOf(e)];if(!n)continue;let{direction:i,speed:l}=function(e,t,n,r,i){let{top:l,left:a,right:o,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=en);let{isTop:u,isBottom:c,isLeft:d,isRight:f}=et(e),g={x:0,y:0},p={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!u&&l<=t.top+b.height?(g.y=h.Backward,p.y=r*Math.abs((t.top+b.height-l)/b.height)):!c&&s>=t.bottom-b.height&&(g.y=h.Forward,p.y=r*Math.abs((t.bottom-b.height-s)/b.height)),!f&&o>=t.right-b.width?(g.x=h.Forward,p.x=r*Math.abs((t.right-b.width-o)/b.width)):!d&&a<=t.left+b.width&&(g.x=h.Backward,p.x=r*Math.abs((t.left+b.width-a)/b.width)),{direction:g,speed:p}}(e,n,w,t,f);for(let e of["x","y"])g[e][i[e]]||(l[e]=0,i[e]=0);if(l.x>0||l.y>0){b(),k.current=e,p(S,a),y.current=l,x.current=i;return}}y.current={x:0,y:0},x.current={x:0,y:0},b()},[t,S,r,b,l,a,JSON.stringify(w),JSON.stringify(g),p,u,C,c,JSON.stringify(f)])}({...eY,delta:eo,draggingRect:tn,pointerCoordinates:e7,scrollableAncestors:e8,scrollableAncestorRects:e6});let tf=(0,M.useMemo)(()=>({active:ed,activeNode:ej,activeNodeRect:eq,activatorEvent:ep,collisions:tr,containerNodeRect:eQ,dragOverlay:eG,draggableNodes:el,droppableContainers:es,droppableRects:ew,over:tl,measureDroppableContainers:eM,scrollableAncestors:e8,scrollableAncestorRects:e6,measuringConfiguration:ex,measuringScheduled:eO,windowRect:e2}),[ed,ej,eq,ep,tr,eQ,eG,el,es,ew,tl,eM,e8,e6,ex,eO,e2]),th=(0,M.useMemo)(()=>({activatorEvent:ep,activators:td,active:ed,activeNodeRect:eq,ariaDescribedById:{draggable:ev},dispatch:F,draggableNodes:el,over:tl,measureDroppableContainers:eM}),[ep,td,ed,eq,F,ev,el,tl,eM]);return M.createElement(R.Provider,{value:H},M.createElement(eF.Provider,{value:th},M.createElement(eB.Provider,{value:tf},M.createElement(e$.Provider,{value:to},T)),M.createElement(eK,{disabled:(null==O?void 0:O.restoreFocus)===!1})),M.createElement(P,{...O,hiddenTextDescribedById:ev}))}),eq=(0,M.createContext)(null),eQ="button";function eV(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,l=(0,E.YG)("Draggable"),{activators:a,activatorEvent:o,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,M.useContext)(eF),{role:h=eQ,roleDescription:g="draggable",tabIndex:p=0}=null!=i?i:{},b=(null==s?void 0:s.id)===t,m=(0,M.useContext)(b?e$:eq),[v,y]=(0,E.lk)(),[x,w]=(0,E.lk)(),k=(0,M.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[a,t]),S=(0,E.YN)(n);return(0,E.Es)(()=>(d.set(t,{id:t,key:l,node:v,activatorNode:x,data:S}
1),()=>{let e=d.get(t);e&&e.key===l&&d.delete(t)}),[d,t]),{active:s,activatorEvent:o,activeNodeRect:u,attributes:(0,M.useMemo)(()=>({role:h,tabIndex:p,"aria-disabled":r,"aria-pressed":!!b&&h===eQ||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,h,p,b,g,c.draggable]),isDragging:b,listeners:r?void 0:k,node:v,over:f,setNodeRef:y,setActivatorNodeRef:w,transform:m}}function eZ(){return(0,M.useContext)(eB)}let eG={timeout:25};function eJ(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,l=(0,E.YG)("Droppable"),{active:a,dispatch:o,over:s,measureDroppableContainers:u}=(0,M.useContext)(eF),c=(0,M.useRef)({disabled:n}),d=(0,M.useRef)(!1),h=(0,M.useRef)(null),g=(0,M.useRef)(null),{disabled:p,updateMeasurementsFor:b,timeout:m}={...eG,...i},v=(0,E.YN)(null!=b?b:r),y=eC({callback:(0,M.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(v.current)?v.current:[v.current]),g.current=null},m)},[m]),disabled:p||!a}),x=(0,M.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y]),[w,k]=(0,E.lk)(x),S=(0,E.YN)(t);return(0,M.useEffect)(()=>{y&&w.current&&(y.disconnect(),d.current=!1,y.observe(w.current))},[w,y]),(0,M.useEffect)(()=>(o({type:f.RegisterDroppable,element:{id:r,key:l,disabled:n,node:w,rect:h,data:S}}),()=>o({type:f.UnregisterDroppable,key:l,id:r})),[r]),(0,M.useEffect)(()=>{n!==c.current.disabled&&(o({type:f.SetDroppableDisabled,id:r,key:l,disabled:n}),c.current.disabled=n)},[r,l,n,o]),{active:a,rect:h,isOver:(null==s?void 0:s.id)===r,node:w,over:s,setNodeRef:k}}function e0(e){let{animation:t,children:n}=e,[r,i]=(0,M.useState)(null),[l,a]=(0,M.useState)(null),o=(0,E.ZC)(n);return n||r||!o||i(o),(0,E.Es)(()=>{if(!l)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null==e||null==n?i(null):Promise.resolve(t(n,l)).then(()=>{i(null)})},[t,r,l]),M.createElement(M.Fragment,null,n,r?(0,M.cloneElement)(r,{ref:a}):null)}let e1={x:0,y:0,scaleX:1,scaleY:1};function e5(e){let{children:t}=e;return M.createElement(eF.Provider,{value:eY},M.createElement(e$.Provider,{value:e1},t))}let e2={position:"fixed",touchAction:"none"},e8=e=>(0,E.kx)(e)?"transform 250ms ease":void 0,e6=(0,M.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:l,className:a,rect:o,style:s,transform:u,transition:c=e8}=e;if(!o)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...e2,width:o.width,height:o.height,top:o.top,left:o.left,transform:E.Ks.Transform.toString(d),transformOrigin:i&&r?function(e,t){let n=(0,E.e_)(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,o):void 0,transition:"function"==typeof c?c(r):c,...s};return M.createElement(n,{className:a,style:f,ref:t},l)}),e4=e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:l,className:a}=e;if(null!=l&&l.active)for(let[e,t]of Object.entries(l.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=l&&l.dragOverlay)for(let[e,t]of Object.entries(l.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},e7={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:E.Ks.Transform.toString(t)},{transform:E.Ks.Transform.toString(n)}]},sideEffects:e4({styles:{active:{opacity:"0"}}})},e3=0,e9=M.memo(e=>{var t;let{adjustScale:n=!1,children:r,dropAnimation:i,style:l,transition:a,modifiers:o,wrapperElement:s="div",className:u,zIndex:c=999}=e,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:p,droppableContainers:b,dragOverlay:m,over:v,measuringConfiguration:y,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:k}=eZ(),S=(0,M.useContext)(e$),C=(t=null==f?void 0:f.id,(0,M.useMemo)(()=>{if(null!=t)return++e3},[t])),O=eH(o,{activatorEvent:d,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:m.rect,over:v,overlayNodeRect:m.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:S,windowRect:k}
1),R=eS(h),D=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return(0,E._q)((e,l)=>{if(null===t)return;let a=n.get(e);if(!a)return;let o=a.node.current;if(!o)return;let s=eL(l);if(!s)return;let{transform:u}=(0,E.zk)(l).getComputedStyle(l),c=K(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...e7,...e};return e=>{let{active:l,dragOverlay:a,transform:o,...s}=e;if(!t)return;let u={x:a.rect.left-l.rect.left,y:a.rect.top-l.rect.top},c={scaleX:1!==o.scaleX?l.rect.width*o.scaleX/a.rect.width:1,scaleY:1!==o.scaleY?l.rect.height*o.scaleY/a.rect.height:1},d={x:o.x-u.x,y:o.y-u.y,...c},f=i({...s,active:l,dragOverlay:a,transform:{initial:o,final:d}}),[h]=f,g=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;let p=null==r?void 0:r({active:l,dragOverlay:a,...s}),b=a.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{b.onfinish=()=>{null==p||p(),e()}})}}(t);return ei(o,i.draggable.measure),d({active:{id:e,data:a.data,node:o,rect:i.draggable.measure(o)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:i,transform:c})})}({config:i,draggableNodes:p,droppableContainers:b,measuringConfiguration:y}),T=R?m.setRef:void 0;return M.createElement(e5,null,M.createElement(e0,{animation:D},f&&C?M.createElement(e6,{key:C,id:f.id,ref:T,as:s,activatorEvent:d,adjustScale:n,className:u,transition:a,rect:R,style:{zIndex:c,...l},transform:O},r):null))})}}]);

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.