PageSourceSearch

https://spp.vote/_next/static/chunks/8993-7557503ded9b8e74.js?dpl=dpl_9WAv2Xe85ojHQKNHCENRWyZwmZMS

js spp.vote collected 2026-10-07 20:34:59 UTC 68,397 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8993],{31530:(e,t,n)=>{n.d(t,{l$:()=>eT,Ay:()=>eM});var r,i=n(15933),a=n(12115);let l={data:""},o=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||l,s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,u=/\/\*[^]*?\*\/|  +/g,c=/\n+/g,d=(e,t)=>{let n="",r="",i="";for(let a in e){let l=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+l+";":r+="f"==a[1]?d(l,a):a+"{"+d(l,"k"==a[1]?"":t)+"}":"object"==typeof l?r+=d(l,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=l&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=d.p?d.p(a,l):a+":"+l+";")}return n+(t&&i?t+"{"+i+"}":i)+r},f={},h=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+h(e[n]);return t}return e},p=(e,t,n,r,i)=>{let a=h(e),l=f[a]||(f[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(a));if(!f[l]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=s.exec(e.replace(u,""));)t[4]?r.shift():t[3]?(n=t[3].replace(c," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(c," ").trim();return r[0]})(e);f[l]=d(i?{["@keyframes "+l]:t}:t,n?"":"."+l)}let o=n&&f.g?f.g:null;return n&&(f.g=f[l]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(f[l],t,r,o),l},g=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":d(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function m(e){let t=this||{},n=e.call?e(t.p):e;return p(n.unshift?n.raw?g(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,o(t.target),t.g,t.o,t.k)}m.bind({g:1});let v,y,b,w=m.bind({k:1});function x(e,t){let n=this||{};return function(){let r=arguments;function i(a,l){let o=Object.assign({},a),s=o.className||i.className;n.p=Object.assign({theme:y&&y()},o),n.o=/ *go\d+/.test(s),o.className=m.apply(n,r)+(s?" "+s:""),t&&(o.ref=l);let u=e;return e[0]&&(u=o.as||e,delete o.as),b&&u[0]&&b(o),v(u,o)}return t?t(i):i}}function C(){let e=(0,i._)(["\nfrom {\n  transform: scale(0) rotate(45deg);\n	opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n  opacity: 1;\n}"]);return C=function(){return e},e}function E(){let e=(0,i._)(["\nfrom {\n  transform: scale(0);\n  opacity: 0;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]);return E=function(){return e},e}function D(){let e=(0,i._)(["\nfrom {\n  transform: scale(0) rotate(90deg);\n	opacity: 0;\n}\nto {\n  transform: scale(1) rotate(90deg);\n	opacity: 1;\n}"]);return D=function(){return e},e}function T(){let e=(0,i._)(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n\n  &:after,\n  &:before {\n    content: '';\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 150ms;\n    position: absolute;\n    border-radius: 3px;\n    opacity: 0;\n    background: ",";\n    bottom: 9px;\n    left: 4px;\n    height: 2px;\n    width: 12px;\n  }\n\n  &:before {\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 180ms;\n    transform: rotate(90deg);\n  }\n"]);return T=function(){return e},e}function M(){let e=(0,i._)(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]);return M=function(){return e},e}function S(){let e=(0,i._)(["\n  width: 12px;\n  height: 12px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: ",";\n  border-right-color: ",";\n  animation: "," 1s linear infinite;\n"]);return S=function(){return e},e}function R(){let e=(0,i._)(["\nfrom {\n  transform: scale(0) rotate(45deg);\n	opacity: 0;\n}\nto {\n  transform: scale(1) rotate(45deg);\n	opacity: 1;\n}"]);return R=function(){return e},e}function k(){let e=(0,i._)(["\n0% {\n	height: 0;\n	width: 0;\n	opacity: 0;\n}\n40% {\n  height: 0;\n	width: 6px;\n	opacity: 1;\n}\n100% {\n  opacity: 1;\n  height: 10px;\n}"]);return k=function(){return e},e}
1function O(){let e=(0,i._)(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n  &:after {\n    content: '';\n    box-sizing: border-box;\n    animation: "," 0.2s ease-out forwards;\n    opacity: 0;\n    animation-delay: 200ms;\n    position: absolute;\n    border-right: 2px solid;\n    border-bottom: 2px solid;\n    border-color: ",";\n    bottom: 6px;\n    left: 6px;\n    height: 10px;\n    width: 6px;\n  }\n"]);return O=function(){return e},e}function I(){let e=(0,i._)(["\n  position: absolute;\n"]);return I=function(){return e},e}function N(){let e=(0,i._)(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]);return N=function(){return e},e}function A(){let e=(0,i._)(["\nfrom {\n  transform: scale(0.6);\n  opacity: 0.4;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]);return A=function(){return e},e}function z(){let e=(0,i._)(["\n  position: relative;\n  transform: scale(0.6);\n  opacity: 0.4;\n  min-width: 20px;\n  animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n"]);return z=function(){return e},e}function L(){let e=(0,i._)(["\n  display: flex;\n  align-items: center;\n  background: #fff;\n  color: #363636;\n  line-height: 1.3;\n  will-change: transform;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n  max-width: 350px;\n  pointer-events: auto;\n  padding: 8px 10px;\n  border-radius: 8px;\n"]);return L=function(){return e},e}function P(){let e=(0,i._)(["\n  display: flex;\n  justify-content: center;\n  margin: 4px 10px;\n  color: inherit;\n  flex: 1 1 auto;\n  white-space: pre-line;\n"]);return P=function(){return e},e}function _(){let e=(0,i._)(["\n  z-index: 9999;\n  > * {\n    pointer-events: auto;\n  }\n"]);return _=function(){return e},e}var j=e=>"function"==typeof e,F=(e,t)=>j(e)?e(t):e,q=(()=>{let e=0;return()=>(++e).toString()})(),K=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),B=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return B(e,{type:+!!e.toasts.find(e=>e.id===n.id),toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},U=[],Y={toasts:[],pausedAt:void 0},W=e=>{Y=B(Y,e),U.forEach(e=>{e(Y)})},G={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,a.useState)(Y),r=(0,a.useRef)(Y);(0,a.useEffect)(()=>(r.current!==Y&&n(Y),U.push(n),()=>{let e=U.indexOf(n);e>-1&&U.splice(e,1)}),[]);let i=t.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||G[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...t,toasts:i}},H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||q()}},X=e=>(t,n)=>{let r=H(t,e,n);return W({type:2,toast:r}),r.id},$=(e,t)=>X("blank")(e,t);$.error=X("error"),$.success=X("success"),$.loading=X("loading"),$.custom=X("custom"),$.dismiss=e=>{W({type:3,toastId:e})},$.remove=e=>W({type:4,toastId:e}),$.promise=(e,t,n)=>{let r=$.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?F(t.success,e):void 0;return i?$.success(i,{id:r,...n,...null==n?void 0:n.success}):$.dismiss(r),e}).catch(e=>{let i=t.error?F(t.error,e):void 0;i?$.error(i,{id:r,...n,...null==n?void 0:n.error}):$.dismiss(r)}),e};var Z=(e,t)=>{W({type:1,toast:{id:e,height:t}})},Q=()=>{W({type:5,time:Date.now()})},V=new Map,ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(V.has(e))return;let n=setTimeout(()=>{V.delete(e),W({type:4,toastId:e})},t);V.set(e,n)},et=e=>{let{toasts:t,pausedAt:n}=J(e);(0,a.useEffect)(()=>
1{if(n)return;let e=Date.now(),r=t.map(t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&$.dismiss(t.id);return}return setTimeout(()=>$.dismiss(t.id),n)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[t,n]);let r=(0,a.useCallback)(()=>{n&&W({type:6,time:Date.now()})},[n]),i=(0,a.useCallback)((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:a}=n||{},l=t.filter(t=>(t.position||a)===(e.position||a)&&t.height),o=l.findIndex(t=>t.id===e.id),s=l.filter((e,t)=>t<o&&e.visible).length;return l.filter(e=>e.visible).slice(...r?[s+1]:[0,s]).reduce((e,t)=>e+(t.height||0)+i,0)},[t]);return(0,a.useEffect)(()=>{t.forEach(e=>{if(e.dismissed)ee(e.id,e.removeDelay);else{let t=V.get(e.id);t&&(clearTimeout(t),V.delete(e.id))}})},[t]),{toasts:t,handlers:{updateHeight:Z,startPause:Q,endPause:r,calculateOffset:i}}},en=w(C()),er=w(E()),ei=w(D()),ea=x("div")(T(),e=>e.primary||"#ff4b4b",en,er,e=>e.secondary||"#fff",ei),el=w(M()),eo=x("div")(S(),e=>e.secondary||"#e0e0e0",e=>e.primary||"#616161",el),es=w(R()),eu=w(k()),ec=x("div")(O(),e=>e.primary||"#61d345",es,eu,e=>e.secondary||"#fff"),ed=x("div")(I()),ef=x("div")(N()),eh=w(A()),ep=x("div")(z(),eh),eg=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:i}=t;return void 0!==n?"string"==typeof n?a.createElement(ep,null,n):n:"blank"===r?null:a.createElement(ef,null,a.createElement(eo,{...i}),"loading"!==r&&a.createElement(ed,null,"error"===r?a.createElement(ea,{...i}):a.createElement(ec,{...i})))},em=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),ev=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),ey=x("div")(L()),eb=x("div")(P()),ew=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=K()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[em(n),ev(n)];return{animation:t?"".concat(w(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(w(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}},ex=a.memo(e=>{let{toast:t,position:n,style:r,children:i}=e,l=t.height?ew(t.position||n||"top-center",t.visible):{opacity:0},o=a.createElement(eg,{toast:t}),s=a.createElement(eb,{...t.ariaProps},F(t.message,t));return a.createElement(ey,{className:t.className,style:{...l,...r,...t.style}},"function"==typeof i?i({icon:o,message:s}):a.createElement(a.Fragment,null,o,s))});r=a.createElement,d.p=void 0,v=r,y=void 0,b=void 0;var eC=e=>{let{id:t,className:n,style:r,onHeightUpdate:i,children:l}=e,o=a.useCallback(e=>{if(e){let n=()=>{i(t,e.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return a.createElement("div",{ref:o,className:n,style:r},l)},eE=(e,t)=>{let n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:K()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)"),...n?{top:0}:{bottom:0},...r}},eD=m(_()),eT=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:i,children:l,containerStyle:o,containerClassName:s}=e,{toasts:u,handlers:c}=et(r);return a.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map(e=>{let r=e.position||n,o=eE(r,c.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:n}));return a.createElement(eC,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?eD:"",style:o},"custom"===e.type?F(e.message,e):l?l(e):a.createElement(ex,{toast:e,position:r}))}))},eM=$},50402:(e,t,n)=>{n.d(t,{_G:()=>c,gB:()=>h,gl:()=>w});var r=n(12115),i=n(75143),a=n(78266);function l(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,a=l(t,r,n),o=t[i],s=a[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;let{activeIndex:n,activeNodeRect:r,index:i,rects:a,overIndex:l}=e,o=null!=(t=a[n])?t:r;if(!o)return null;if(i===n){let e=a[l];return e?{x:0,y:n<l?e.top+e.height-(o.top+o.height):e.top-o.top,...u}:null}let s=function(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}(a,i,n);return i>n&&i<=l?{x:0,y:-o.height-s,...u}:i<n&&i>=l?{x:0,y:o.height+s,...u}:{x:0,y:0,...u}}
1,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:l,strategy:o=s,disabled:u=!1}=e,{active:c,dragOverlay:h,droppableRects:p,over:g,measureDroppableContainers:m}=(0,i.fF)(),v=(0,a.YG)(d,n),y=null!==h.rect,b=(0,r.useMemo)(()=>l.map(e=>"object"==typeof e&&"id"in e?e.id:e),[l]),w=null!=c,x=c?b.indexOf(c.id):-1,C=g?b.indexOf(g.id):-1,E=(0,r.useRef)(b),D=!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}(b,E.current),T=-1!==C&&-1===x||D,M="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,a.Es)(()=>{D&&w&&m(b)},[D,b,w,m]),(0,r.useEffect)(()=>{E.current=b},[b]);let S=(0,r.useMemo)(()=>({activeIndex:x,containerId:v,disabled:M,disableTransforms:T,items:b,overIndex:C,useDragOverlay:y,sortedRects:b.reduce((e,t,n)=>{let r=p.get(t);return r&&(e[n]=r),e},Array(b.length)),strategy:o}),[x,v,M.draggable,M.droppable,T,b,C,p,y,o]);return r.createElement(f.Provider,{value:S},t)}let p=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return l(n,r,i).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:l,previousItems:o,previousContainerId:s,transition:u}=e;return!!u&&!!r&&(o===a||i!==l)&&(!!n||l!==i&&t===s)},m={duration:200,easing:"ease"},v="transform",y=a.Ks.Transition.toString({property:v,duration:0,easing:"linear"}),b={roleDescription:"sortable"};function w(e){var t,n,l,s;let{animateLayoutChanges:u=g,attributes:c,disabled:d,data:h,getNewIndex:w=p,id:x,strategy:C,resizeObserverConfig:E,transition:D=m}=e,{items:T,containerId:M,activeIndex:S,disabled:R,disableTransforms:k,sortedRects:O,overIndex:I,useDragOverlay:N,strategy:A}=(0,r.useContext)(f),z=(t=d,n=R,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(l=null==t?void 0:t.draggable)?l:n.draggable,droppable:null!=(s=null==t?void 0:t.droppable)?s:n.droppable}),L=T.indexOf(x),P=(0,r.useMemo)(()=>({sortable:{containerId:M,index:L,items:T},...h}),[M,h,L,T]),_=(0,r.useMemo)(()=>T.slice(T.indexOf(x)),[T,x]),{rect:j,node:F,isOver:q,setNodeRef:K}=(0,i.zM)({id:x,data:P,disabled:z.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...E}}),{active:B,activatorEvent:U,activeNodeRect:Y,attributes:W,setNodeRef:G,listeners:J,isDragging:H,over:X,setActivatorNodeRef:$,transform:Z}=(0,i.PM)({id:x,data:P,attributes:{...b,...c},disabled:z.draggable}),Q=(0,a.jn)(K,G),V=!!B,ee=V&&!k&&o(S)&&o(I),et=!N&&H,en=et&&ee?Z:null,er=ee?null!=en?en:(null!=C?C:A)({rects:O,activeNodeRect:Y,activeIndex:S,overIndex:I,index:L}):null,ei=o(S)&&o(I)?w({id:x,items:T,activeIndex:S,overIndex:I}):L,ea=null==B?void 0:B.id,el=(0,r.useRef)({activeId:ea,items:T,newIndex:ei,containerId:M}),eo=T!==el.current.items,es=u({active:B,containerId:M,isDragging:H,isSorting:V,id:x,index:L,items:T,newIndex:el.current.newIndex,previousItems:el.current.items,previousContainerId:el.current.containerId,transition:D,wasDragging:null!=el.current.activeId}),eu=function(e){let{disabled:t,index:n,node:l,rect:o}=e,[s,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,a.Es)(()=>{if(!t&&n!==c.current&&l.current){let e=o.current;if(e){let t=(0,i.Sj)(l.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,l,o]),(0,r.useEffect)(()=>{s&&u(null)},[s]),s}({disabled:!es,index:L,node:F,rect:j});return(0,r.useEffect)(()=>{V&&el.current.newIndex!==ei&&(el.current.newIndex=ei),M!==el.current.containerId&&(el.current.containerId=M),T!==el.current.items&&(el.current.items=T)},[V,ei,M,T]),(0,r.useEffect)(()=>{if(ea===el.current.activeId)return;if(null!=ea&&null==el.current.activeId){el.current.activeId=ea;return}let e=setTimeout(()=>{el.current.activeId=ea},50);return()=>clearTimeout(e)},[ea]),{active:B,activeIndex:S,attributes:W,data:P,rect:j,index:L,newIndex:ei,items:T,isOver:q,isSorting:V,isDragging:H,listeners:J,node:F,overIndex:I,over:X,setNodeRef:Q,setActivatorNodeRef:$,setDroppableNodeRef:K,setDraggableNodeRef:G,transform:null!=eu?eu:er,transition:eu||eo&&el.current.newIndex===L?y:(!et||(0,a.kx)(U))&&D&&(V||es)?a.Ks.Transition.toString({...D,property:v}):void 0}}i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left}
1,75143:(e,t,n)=>{let r;n.d(t,{Mp:()=>ez,vL:()=>o,AN:()=>eo,IG:()=>ed,fp:()=>I,Sj:()=>P,fF:()=>ej,PM:()=>e_,zM:()=>eq,MS:()=>T,FR:()=>M});var i,a,l,o,s,u,c,d,f,h,p=n(12115),g=n(47650),m=n(78266);let v={display:"none"};function y(e){let{id:t,value:n}=e;return p.createElement("div",{id:t,style:v},n)}function b(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return p.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 w=(0,p.createContext)(null),x={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  "},C={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 E(e){let{announcements:t=C,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=x}=e,{announce:a,announcement:l}=function(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),o=(0,m.YG)("DndLiveRegion"),[s,u]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{u(!0)},[]),!function(e){let t=(0,p.useContext)(w);(0,p.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,p.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!s)return null;let c=p.createElement(p.Fragment,null,p.createElement(y,{id:r,value:i.draggable}),p.createElement(b,{id:o,announcement:l}));return n?(0,g.createPortal)(c,n):c}function D(){}function T(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function M(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,p.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(i||(i={}));let S=Object.freeze({x:0,y:0});function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function O(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=O(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}(O(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(R)},N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){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),a=Math.min(t.top+t.height,e.top+e.height);if(r<i&&n<a){let l=t.width*t.height,o=e.width*e.height,s=(i-r)*(a-n);return Number((s/(l+o-s)).toFixed(4))}return 0}(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(k)};function A(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:S}let z=function(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)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1),L={ignoreTransform:!1};function P(e,t){void 0===t&&(t=L);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,m.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=function(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}(t);if(!r)return e;let{scaleX:i,scaleY:a,x:l,y:o}=r,s=e.left-l-(1-i)*parseFloat(n),u=e.top-o-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,d=a?e.height/a:e.he
1ight;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,t,r))}let{top:r,left:i,width:a,height:l,bottom:o,right:s}=n;return{top:r,left:i,width:a,height:l,bottom:o,right:s}}function _(e){return P(e,{ignoreTransform:!0})}function j(e,t){let n=[];return e?function r(i){var a;if(null!=t&&n.length>=t||!i)return n;if((0,m.wz)(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!(0,m.sb)(i)||(0,m.xZ)(i)||n.includes(i))return n;let l=(0,m.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,m.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(i,l)&&n.push(i),void 0===(a=l)&&(a=(0,m.zk)(i).getComputedStyle(i)),"fixed"===a.position)?n:r(i.parentNode)}(e):n}function F(e){let[t]=j(e,1);return null!=t?t:null}function q(e){return m.Sw&&e?(0,m.l6)(e)?e:(0,m.Ll)(e)?(0,m.wz)(e)||e===(0,m.TW)(e).scrollingElement?window:(0,m.sb)(e)?e:null:null:null}function K(e){return(0,m.l6)(e)?e.scrollX:e.scrollLeft}function B(e){return(0,m.l6)(e)?e.scrollY:e.scrollTop}function U(e){return{x:K(e),y:B(e)}}function Y(e){return!!m.Sw&&!!e&&e===document.scrollingElement}function W(e){let t={x:0,y:0},n=Y(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,a=e.scrollLeft<=t.x;return{isTop:i,isLeft:a,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(a||(a={}));let G={x:.2,y:.2};function J(e){return e.reduce((e,t)=>(0,m.WQ)(e,U(t)),S)}let H=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+K(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+B(t),0)}]];class X{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;let n=j(t),r=J(n);for(let[t,i,a]of(this.rect={...e},this.width=e.width,this.height=e.height,H))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=a(n),l=r[t]-i;return this.rect[e]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ${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 Z(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 Q(e){e.preventDefault()}function V(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(l||(l={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(o||(o={}));let ee={start:[o.Space,o.Enter],cancel:[o.Esc],end:[o.Space,o.Enter,o.Tab]},et=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case o.Right:return{...n,x:n.x+25};case o.Left:return{...n,x:n.x-25};case o.Down:return{...n,y:n.y+25};case o.Up:return{...n,y:n.y-25}}};class en{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new $((0,m.TW)(t)),this.windowListeners=new $((0,m.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(l.Resize,this.handleCancel),this.windowListeners.add(l.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(l.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=P),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);F(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(S)}handleKeyDown(e){if((0,m.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=ee,coordinateGetter:a=et,scrollBehavior:l="smooth"}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:S;this.referenceCoordinates||(this.referenceCoordinates=c);let d=a(e,{active:t,context:n.current,currentCoordinates:c});
1if(d){let t=(0,m.Re)(d,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:u,isBottom:c,maxScroll:f,minScroll:h}=W(n),p=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight: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===o.Right?p.right-p.width/2:p.right,Math.max(i===o.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===o.Down?p.bottom-p.height/2:p.bottom,Math.max(i===o.Down?p.top:p.top+p.height/2,d.y))},m=i===o.Right&&!s||i===o.Left&&!u,v=i===o.Down&&!c||i===o.Up&&!a;if(m&&g.x!==d.x){let e=n.scrollLeft+t.x,a=i===o.Right&&e<=f.x||i===o.Left&&e>=h.x;if(a&&!t.y){n.scrollTo({left:e,behavior:l});return}a?r.x=n.scrollLeft-e:r.x=i===o.Right?n.scrollLeft-f.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(v&&g.y!==d.y){let e=n.scrollTop+t.y,a=i===o.Down&&e<=f.y||i===o.Up&&e>=h.y;if(a&&!t.x){n.scrollTo({top:e,behavior:l});return}a?r.y=n.scrollTop-e:r.y=i===o.Down?n.scrollTop-f.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,m.WQ)((0,m.Re)(d,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 er(e){return!!(e&&"distance"in e)}function ei(e){return!!(e&&"delay"in e)}en.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ee,onActivation:i}=t,{active:a}=n,{code:l}=e.nativeEvent;if(r.start.includes(l)){let t=a.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ea{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,m.zk)(e);return e instanceof t?e:(0,m.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;let{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=(0,m.TW)(a),this.documentListeners=new $(this.document),this.listeners=new $(n),this.windowListeners=new $((0,m.zk)(a)),this.initialCoordinates=null!=(r=(0,m.e_)(i))?r:S,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(l.Resize,this.handleCancel),this.windowListeners.add(l.DragStart,Q),this.windowListeners.add(l.VisibilityChange,this.handleCancel),this.windowListeners.add(l.ContextMenu,Q),this.documentListeners.add(l.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ei(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(er(t)){this.handlePending(t);return}}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(l.Click,V,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(l.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!r)return;let o=null!=(t=(0,m.e_)(e))?t:S,s=(0,m.Re)(r,o);if(!n&&l){if(er(l)){if(null!=l.tolerance&&Z(s,l.tolerance))return this.handleCancel();if(Z(s,l.distance))return this.handleStart()}return ei(l)&&Z(s,l.tolerance)?this.handleCancel():void this.handlePending(l,s)}e.cancelable&&e.preventDefault(),a(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===o.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let el={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eo extends ea{constructor(e){let{event:t}=e;super(e,el,(0,m.TW)(t.target))}}eo.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 es={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(s||(s={}));class eu extends ea{constructor(e){super(e,es,(0,m.TW)(e.event.target))}}eu.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==s.RightClick&&(null==r||r({event:n}),!0)}}];let ec={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ed extends ea{constructor(e){super(e,ec)}static setup(){return window.addEventListener(ec.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ec.move.name,e)};function e(){}}}ed.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)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(u||(u={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
1sedTreeOrder"}(c||(c={}));let ef={x:{[a.Backward]:!1,[a.Forward]:!1},y:{[a.Backward]:!1,[a.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(d||(d={})),(f||(f={})).Optimized="optimized";let eh=new Map;function ep(e,t){return(0,m.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eg(e){let{callback:t,disabled:n}=e,r=(0,m._q)(t),i=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function em(e){return new X(P(e),e)}function ev(e,t,n){void 0===t&&(t=em);let[r,i]=(0,p.useState)(null);function a(){i(r=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=r?r:n)?i:null}let a=t(e);return JSON.stringify(r)===JSON.stringify(a)?r:a})}let l=function(e){let{callback:t,disabled:n}=e,r=(0,m._q)(t),i=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,p.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)){a();break}}}}),o=eg({callback:a});return(0,m.Es)(()=>{a(),e?(null==o||o.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==o||o.disconnect(),null==l||l.disconnect())},[e]),r}let ey=[];function eb(e,t){void 0===t&&(t=[]);let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n.current=null},t),(0,p.useEffect)(()=>{let t=e!==S;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,m.Re)(e,n.current):S}function ew(e){return(0,p.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let ex=[],eC=[{sensor:eo,options:{}},{sensor:en,options:{}}],eE={current:{}},eD={draggable:{measure:_},droppable:{measure:_,strategy:d.WhileDragging,frequency:f.Optimized},dragOverlay:{measure:P}};class eT 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 eM={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eT,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:D},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eD,measureDroppableContainers:D,windowRect:null,measuringScheduled:!1},eS={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:D,draggableNodes:new Map,over:null,measureDroppableContainers:D},eR=(0,p.createContext)(eS),ek=(0,p.createContext)(eM);function eO(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eT}}}function eI(e,t){switch(t.type){case i.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i.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 i.DragEnd:case i.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new eT(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case i.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let l=new eT(e.droppable.containers);return l.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case i.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;
1let a=new eT(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function eN(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,p.useContext)(eR),a=(0,m.ZC)(r),l=(0,m.ZC)(null==n?void 0:n.id);return(0,p.useEffect)(()=>{if(!t&&!r&&a&&null!=l){if(!(0,m.kx)(a)||document.activeElement===a.target)return;let e=i.get(l);if(!e)return;let{activatorNode:t,node:n}=e;if(t.current||n.current)requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,m.ag)(e);if(t){t.focus();break}}})}},[r,t,i,l,a]),null}let eA=(0,p.createContext)({...S,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let ez=(0,p.memo)(function(e){var t,n,r,l,o,s;let{id:f,accessibility:v,autoScroll:y=!0,children:b,sensors:x=eC,collisionDetection:C=N,measuring:D,modifiers:T,...M}=e,[R,k]=(0,p.useReducer)(eI,void 0,eO),[O,I]=function(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.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]}(),[L,_]=(0,p.useState)(h.Uninitialized),K=L===h.Initialized,{draggable:{active:B,nodes:H,translate:$},droppable:{containers:Z}}=R,Q=null!=B?H.get(B):null,V=(0,p.useRef)({initial:null,translated:null}),ee=(0,p.useMemo)(()=>{var e;return null!=B?{id:B,data:null!=(e=null==Q?void 0:Q.data)?e:eE,rect:V}:null},[B,Q]),et=(0,p.useRef)(null),[en,er]=(0,p.useState)(null),[ei,ea]=(0,p.useState)(null),el=(0,m.YN)(M,Object.values(M)),eo=(0,m.YG)("DndDescribedBy",f),es=(0,p.useMemo)(()=>Z.getEnabled(),[Z]),eu=(0,p.useMemo)(()=>({draggable:{...eD.draggable,...null==D?void 0:D.draggable},droppable:{...eD.droppable,...null==D?void 0:D.droppable},dragOverlay:{...eD.dragOverlay,...null==D?void 0:D.dragOverlay}}),[null==D?void 0:D.draggable,null==D?void 0:D.droppable,null==D?void 0:D.dragOverlay]),{droppableRects:ec,measureDroppableContainers:ed,measuringScheduled:em}=function(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,l]=(0,p.useState)(null),{frequency:o,measure:s,strategy:u}=i,c=(0,p.useRef)(e),f=function(){switch(u){case d.Always:return!1;case d.BeforeDragging:return n;default:return!n}}(),h=(0,m.YN)(f),g=(0,p.useCallback)(function(e){void 0===e&&(e=[]),!h.current&&l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),v=(0,p.useRef)(null),y=(0,m.KG)(t=>{if(f&&!n)return eh;if(!t||t===eh||c.current!==e||null!=a){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new X(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,f,s]);return(0,p.useEffect)(()=>{c.current=e},[e]),(0,p.useEffect)(()=>{!f&&g()},[n,f]),(0,p.useEffect)(()=>{a&&a.length>0&&l(null)},[JSON.stringify(a)]),(0,p.useEffect)(()=>{!f&&"number"==typeof o&&null===v.current&&(v.current=setTimeout(()=>{g(),v.current=null},o))},[o,f,g,...r]),{droppableRects:y,measureDroppableContainers:g,measuringScheduled:null!=a}}(es,{dragging:K,dependencies:[$.x,$.y],config:eu.droppable}),eT=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,m.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(H,B),eM=(0,p.useMemo)(()=>ei?(0,m.e_)(ei):null,[ei]),eS=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof y?!1===y.enabled:!1===y,n=K&&!e&&!t;return"object"==typeof y?{...y,enabled:n}:{enabled:n}}(),ez=ep(eT,eu.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,p.useRef)(!1),{x:l,y:o}="boolean"==typeof i?{x:i,y:i}:i;(0,m.Es)(()=>{if(!l&&!o||!t){a.current=!1;return}if(a.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=A(n(e),r);if(l||(i.x=0),o||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=F(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,l,o,r,n])}({activeNode:null!=B?H.get(B):null,config:eS.layoutShiftCompensation,initialRect:ez,measure:eu.draggable.measure});let eL=ev(eT,eu.draggable.measure,ez),eP=ev(eT?eT.parentElement:null),e_=(0,p.useRef)({activatorEvent:null,active:null,activeNode:eT,collisionRect:null,collisions:null,droppableRects:ec,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:Z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ej=Z.getNodeFor(null==(t=e_.current.over)?void 0:t.id),eF=function(e){let{measure:t}=e,[n,r]=(0,p.useState)(null),i=eg({callback:(0,p.useCallback)(e=>{for(let{target:n}of e)if((0,m.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),a=(0,p.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,m.sb)(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),r(n?t(n):null)},[t,i]),[l,o]=(0,m.lk)(a);return(0,p.useMemo)(()=>({nodeRef:l,rect:n,setRef:o}),[n,l,o])}({measure:eu.dragOverlay.measure}),eq=null!=(n=eF.nodeRef.current)?n:eT,eK=K?null!=(r=eF.rect)?r:eL:null,eB=!!(eF.nodeRef.current&&eF.rect),eU=function(e){let t=ep(e);return A(e,t)}(eB?null:eL),eY=ew(eq?(0,m.zk)(eq):null),eW=function(e){let t=(0,p.useRef)(e),n=(0,m.KG)(n=>e?n&&n!==ey&&e&&t.current&&e.parentNode===t.current.parentNode?n:j(e):ey,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),n}(K?null!=ej?ej:eT:null),eG=function(e,t){void 0===t&&(t=P);let[n]=e,r=ew(n?(0,m.zk)(n):null),[i,a]=(0,p.useState)(ex);function l(){a(()=>e.length?e.map(e=>Y(e)?r:new X(t(e),e)):ex)}let o=eg({callback:l});return(0,m.Es)(()=>
1{null==o||o.disconnect(),l(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),i}(eW),eJ=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(T,{transform:{x:$.x-eU.x,y:$.y-eU.y,scaleX:1,scaleY:1},activatorEvent:ei,active:ee,activeNodeRect:eL,containerNodeRect:eP,draggingNodeRect:eK,over:e_.current.over,overlayNodeRect:eF.rect,scrollableAncestors:eW,scrollableAncestorRects:eG,windowRect:eY}),eH=eM?(0,m.WQ)(eM,$):null,eX=function(e){let[t,n]=(0,p.useState)(null),r=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=q(e.target);t&&n(e=>e?(e.set(t,U(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let l=e.map(e=>{let t=q(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,U(t)]):null}).filter(e=>null!=e);n(l.length?new Map(l):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{let t=q(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,m.WQ)(e,t),S):J(e):S,[e,t])}(eW),e$=eb(eX),eZ=eb(eX,[eL]),eQ=(0,m.WQ)(eJ,e$),eV=eK?z(eK,eJ):null,e0=ee&&eV?C({active:ee,collisionRect:eV,droppableRects:ec,droppableContainers:es,pointerCoordinates:eH}):null,e1=function(e,t){if(!e||0===e.length)return null;let[n]=e;return n.id}(e0,"id"),[e2,e3]=(0,p.useState)(null),e5=(o=eB?eJ:(0,m.WQ)(eJ,eZ),s=null!=(l=null==e2?void 0:e2.rect)?l:null,{...o,scaleX:s&&eL?s.width/eL.width:1,scaleY:s&&eL?s.height/eL.height:1}),e4=(0,p.useRef)(null),e6=(0,p.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==et.current)return;let a=H.get(et.current);if(!a)return;let l=e.nativeEvent,o=new n({active:et.current,activeNode:a,event:l,options:r,context:e_,onAbort(e){if(!H.get(e))return;let{onDragAbort:t}=el.current,n={id:e};null==t||t(n),O({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!H.get(e))return;let{onDragPending:i}=el.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};null==i||i(a),O({type:"onDragPending",event:a})},onStart(e){let t=et.current;if(null==t)return;let n=H.get(t);if(!n)return;let{onDragStart:r}=el.current,a={activatorEvent:l,active:{id:t,data:n.data,rect:V}};(0,g.unstable_batchedUpdates)(()=>{null==r||r(a),_(h.Initializing),k({type:i.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:a}),er(e4.current),ea(l)})},onMove(e){k({type:i.DragMove,coordinates:e})},onEnd:s(i.DragEnd),onCancel:s(i.DragCancel)});function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:a}=e_.current,o=null;if(t&&a){let{cancelDrop:s}=el.current;o={activatorEvent:l,active:t,collisions:n,delta:a,over:r},e===i.DragEnd&&"function"==typeof s&&await Promise.resolve(s(o))&&(e=i.DragCancel)}et.current=null,(0,g.unstable_batchedUpdates)(()=>{k({type:e}),_(h.Uninitialized),e3(null),er(null),ea(null),e4.current=null;let t=e===i.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=el.current[t];null==e||e(o),O({type:t,event:o})}})}}e4.current=o},[H]),e7=(0,p.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=H.get(r);null===et.current&&a&&!i.dndKit&&!i.defaultPrevented&&!0===e(n,t.options,{active:a})&&(i.dndKit={capturedBy:t.sensor},et.current=r,e6(n,t))},[H,e6]),e8=(0,p.useMemo)(()=>x.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e7(e.handler,t)}))]},[]),[x,e7]);(0,p.useEffect)(()=>{if(!m.Sw)return;let e=x.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},x.map(e=>{let{sensor:t}=e;return t})),(0,m.Es)(()=>{eL&&L===h.Initializing&&_(h.Initialized)},[eL,L]),(0,p.useEffect)(()=>{let{onDragMove:e}=el.current,{active:t,activatorEvent:n,collisions:r,over:i}=e_.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:eQ.x,y:eQ.y},over:i};(0,g.unstable_batchedUpdates)(()=>{null==e||e(a),O({type:"onDragMove",event:a})})},[eQ.x,eQ.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=e_.current;if(!e||null==et.current||!t||!i)return;let{onDragOver:a}=el.current,l=r.get(e1),o=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}
1:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:o};(0,g.unstable_batchedUpdates)(()=>{e3(o),null==a||a(s),O({type:"onDragOver",event:s})})},[e1]),(0,m.Es)(()=>{e_.current={activatorEvent:ei,active:ee,activeNode:eT,collisionRect:eV,collisions:e0,droppableRects:ec,draggableNodes:H,draggingNode:eq,draggingNodeRect:eK,droppableContainers:Z,over:e2,scrollableAncestors:eW,scrollAdjustedTranslate:eQ},V.current={initial:eK,translated:eV}},[ee,eT,e0,eV,H,eq,eK,ec,Z,e2,eW,eQ]),function(e){let{acceleration:t,activator:n=u.Pointer,canScroll:r,draggingRect:i,enabled:l,interval:o=5,order:s=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:h,delta:g,threshold:v}=e,y=function(e){let{delta:t,disabled:n}=e,r=(0,m.ZC)(t);return(0,m.KG)(e=>{if(n||!r||!e)return ef;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[a.Backward]:e.x[a.Backward]||-1===i.x,[a.Forward]:e.x[a.Forward]||1===i.x},y:{[a.Backward]:e.y[a.Backward]||-1===i.y,[a.Forward]:e.y[a.Forward]||1===i.y}}},[n,t,r])}({delta:g,disabled:!l}),[b,w]=(0,m.$$)(),x=(0,p.useRef)({x:0,y:0}),C=(0,p.useRef)({x:0,y:0}),E=(0,p.useMemo)(()=>{switch(n){case u.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case u.DraggableRect:return i}},[n,i,d]),D=(0,p.useRef)(null),T=(0,p.useCallback)(()=>{let e=D.current;if(!e)return;let t=x.current.x*C.current.x,n=x.current.y*C.current.y;e.scrollBy(t,n)},[]),M=(0,p.useMemo)(()=>s===c.TreeOrder?[...f].reverse():f,[s,f]);(0,p.useEffect)(()=>{if(!l||!f.length||!E){w();return}for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=h[f.indexOf(e)];if(!n)continue;let{direction:i,speed:l}=function(e,t,n,r,i){let{top:l,left:o,right:s,bottom:u}=n;void 0===r&&(r=10),void 0===i&&(i=G);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=W(e),p={x:0,y:0},g={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&l<=t.top+m.height?(p.y=a.Backward,g.y=r*Math.abs((t.top+m.height-l)/m.height)):!d&&u>=t.bottom-m.height&&(p.y=a.Forward,g.y=r*Math.abs((t.bottom-m.height-u)/m.height)),!h&&s>=t.right-m.width?(p.x=a.Forward,g.x=r*Math.abs((t.right-m.width-s)/m.width)):!f&&o<=t.left+m.width&&(p.x=a.Backward,g.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:p,speed:g}}(e,n,E,t,v);for(let e of["x","y"])y[e][i[e]]||(l[e]=0,i[e]=0);if(l.x>0||l.y>0){w(),D.current=e,b(T,o),x.current=l,C.current=i;return}}x.current={x:0,y:0},C.current={x:0,y:0},w()},[t,T,r,w,l,o,JSON.stringify(E),JSON.stringify(y),b,f,M,h,JSON.stringify(v)])}({...eS,delta:$,draggingRect:eV,pointerCoordinates:eH,scrollableAncestors:eW,scrollableAncestorRects:eG});let e9=(0,p.useMemo)(()=>({active:ee,activeNode:eT,activeNodeRect:eL,activatorEvent:ei,collisions:e0,containerNodeRect:eP,dragOverlay:eF,draggableNodes:H,droppableContainers:Z,droppableRects:ec,over:e2,measureDroppableContainers:ed,scrollableAncestors:eW,scrollableAncestorRects:eG,measuringConfiguration:eu,measuringScheduled:em,windowRect:eY}),[ee,eT,eL,ei,e0,eP,eF,H,Z,ec,e2,ed,eW,eG,eu,em,eY]),te=(0,p.useMemo)(()=>({activatorEvent:ei,activators:e8,active:ee,activeNodeRect:eL,ariaDescribedById:{draggable:eo},dispatch:k,draggableNodes:H,over:e2,measureDroppableContainers:ed}),[ei,e8,ee,eL,k,eo,H,e2,ed]);return p.createElement(w.Provider,{value:I},p.createElement(eR.Provider,{value:te},p.createElement(ek.Provider,{value:e9},p.createElement(eA.Provider,{value:e5},b)),p.createElement(eN,{disabled:(null==v?void 0:v.restoreFocus)===!1})),p.createElement(E,{...v,hiddenTextDescribedById:eo}))}),eL=(0,p.createContext)(null),eP="button";function e_(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=(0,m.YG)("Draggable"),{activators:l,activatorEvent:o,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,p.useContext)(eR),{role:h=eP,roleDescription:g="draggable",tabIndex:v=0}=null!=i?i:{},y=(null==s?void 0:s.id)===t,b=(0,p.useContext)(y?eA:eL),[w,x]=(0,m.lk)(),[C,E]=(0,m.lk)(),D=(0,p.useMemo)(()=>l.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[l,t]),T=(0,m.YN)(n);return(0,m.Es)(()=>(d.set(t,{id:t,key:a,node:w,activatorNode:C,data:T}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:s,activatorEvent:o,activeNodeRect:u,attributes:(0,p.useMemo)(()=>({role:h,tabIndex:v,"aria-disabled":r,"aria-pressed":!!y&&h===eP||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,h,v,y,g,c.draggable]),isDragging:y,listeners:r?void 0:D,node:w,over:f,setNodeRef:x,setActivatorNodeRef:E,transform:b}}function ej(){return(0,p.useContext)(ek)}let eF={timeout:25};function eq(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e,l=(0,m.YG)("Droppable"),{active:o,dispatch:s,over:u,measureDroppableContainers:c}=(0,p.useContext)(eR),d=(0,p.useRef)({disabled:n}),f=(0,p.useRef)(!1),h=(0,p.useRef)(null),g=(0,p.useRef)(null),{disabled:v,updateMeasurementsFor:y,timeout:b}={...eF,...a},w=(0,m.YN)(null!=y?y:r),x=eg({callback:(0,p.useCallback)(()=>
1{if(!f.current){f.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(w.current)?w.current:[w.current]),g.current=null},b)},[b]),disabled:v||!o}),C=(0,p.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[E,D]=(0,m.lk)(C),T=(0,m.YN)(t);return(0,p.useEffect)(()=>{x&&E.current&&(x.disconnect(),f.current=!1,x.observe(E.current))},[E,x]),(0,p.useEffect)(()=>(s({type:i.RegisterDroppable,element:{id:r,key:l,disabled:n,node:E,rect:h,data:T}}),()=>s({type:i.UnregisterDroppable,key:l,id:r})),[r]),(0,p.useEffect)(()=>{n!==d.current.disabled&&(s({type:i.SetDroppableDisabled,id:r,key:l,disabled:n}),d.current.disabled=n)},[r,l,n,s]),{active:o,rect:h,isOver:(null==u?void 0:u.id)===r,node:E,over:u,setNodeRef:D}}r={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:n}=e,i={},{styles:a,className:l}=r;if(null!=a&&a.active)for(let[e,n]of Object.entries(a.active))void 0!==n&&(i[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,n));if(null!=a&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=l&&l.active&&t.node.classList.add(l.active),null!=l&&l.dragOverlay&&n.node.classList.add(l.dragOverlay),function(){for(let[e,n]of Object.entries(i))t.node.style.setProperty(e,n);null!=l&&l.active&&t.node.classList.remove(l.active)}}},78266:(e,t,n)=>{n.d(t,{$$:()=>g,Es:()=>h,KG:()=>v,Ks:()=>S,Ll:()=>o,Re:()=>D,Sw:()=>a,TW:()=>f,WQ:()=>E,YG:()=>x,YN:()=>m,ZC:()=>b,_q:()=>p,ag:()=>k,e_:()=>M,jn:()=>i,kx:()=>T,l6:()=>l,lk:()=>y,sb:()=>c,wz:()=>u,xZ:()=>d,zk:()=>s});var r=n(12115);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 a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function l(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?l(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!l(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?l(e)?e.document:o(e)?u(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let h=a?r.useLayoutEffect:r.useEffect;function p(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 g(){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 m(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function v(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function y(e){let t=p(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 b(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function C(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 E=C(1),D=C(-1);function T(e){if(!e)return!1;let{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function M(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}}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 S=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[S.Translate.toString(e),S.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 k(e){return e.matches(R)?e:e.querySelector(R)}},87415:(e,t,n)=>{n.d(t,{G:()=>ef});var r=n(26715),i=n(926),a=n(67622);async function l(e,{chain:t}){let{id:n,name:r,nativeCurrency:i,rpcUrls:l,blockExplorers:o}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,a.cK)(n),chainName:r,nativeCurrency:i,rpcUrls:l.default.http,blockExplorerUrls:o?Object.values(o).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})}var o=n(20760),s=n(19405),u=n(50431),c=n(7441),d=n(83987),f=n(30445);function h({chain:e,currentChainId:t}){if(!e)throw new f.jF;if(t!==e.id)throw new f.EH({chain:e,currentChainId:t})}var p=n(42264),g=n(69432),m=n(35020);function v(e,{docsPath:t,...n}){let r=(()=>{let t=(0,m.l)(e,n);return t instanceof p.RM?e:t})();return new g.$s(r,{docsPath:t,...n})}var y=n(7671),b=n(76743),w=n(34524),x=n(65003),C=n(65358),E=n(73979),D=n(2806);let T=new x.A(128);async function M(e,t){let{account:n=e.account,chain:r=e.chain,accessList:a,authorizationList:l,blobs:o,data:f,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:x,maxPriorityFeePerGas:M,nonce:S,value:R,...k}=t;if(void 0===n)throw new u.T({docsPath:"/docs/actions/wallet/sendTransaction"});let O=n?(0,s.J)(n):null;try{(0,C.c)(t);let n=await (async()=>t.to?t.to:null!==t.to&&l&&l.length>0?await (0,d.g)({authorization:l[0]}).catch(()=>{throw new c.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(O?.type==="json-rpc"||null===O){let t;null!==r&&(t=await (0,w.T)(e,i.T,"getChainId")({}),h({currentChainId:t,chain:r}));let s=e.chain?.formatters?.transactionRequest?.format,u=(s||b.Bv)({...(0,y.o)(k,{format:s}),accessList:a,authorizationList:l,blobs:o,chainId:t,data:f,from:O?.address,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:x,maxPriorityFeePerGas:M,nonce:S,to:n,value:R}),c=T.get(e.uid);try{return await e.request({method:c?"wallet_sendTransaction":"eth_sendTransaction",params:[u]},{retryCount:0})}catch(t){if(!1===c)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[u]},{retryCount:0}).then(t=>(T.set(e.uid,!0),t)).catch(n=>{if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw T.set(e.uid,!1),t;throw n});throw t}}if(O?.type==="local"){let t=await (0,w.T)(e,E.ft,"prepareTransactionRequest")({account:O,accessList:a,authorizationList:l,blobs:o,chain:r,data:f,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:x,maxPriorityFeePerGas:M,nonce:S,nonceManager:O.nonceManager,parameters:[...E.MM,"sidecars"],value:R,...k,to:n}),i=r?.serializers?.transaction,s=await O.signTransaction(t,{serializer:i});return await (0,w.T)(e,D.L,"sendRawTransaction")({serializedTransaction:s})}if(O?.type==="smart")throw new u.Z({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new u.Z({docsPath:"/docs/actions/wallet/sendTransaction",type:O?.type})}catch(e){if(e instanceof u.Z)throw e;throw v(e,{...t,account:O,chain:t.chain||void 0})}}var S=n(35883);async function R(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,S.o)(e))}var k=n(27493),O=n(35886);async function I(e,t){let{atomic:n=!1,chainId:r,receipts:i,version:a="2.0.0",...l}=await e.request({method:"wallet_getCallsStatus",params:[t.id]}),[o,s]=(()=>{let e=l.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>
1=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...l,atomic:n,chainId:r?(0,k.ME)(r):void 0,receipts:i?.map(e=>({...e,blockNumber:k.uU(e.blockNumber),gasUsed:k.uU(e.gasUsed),status:O.Lj[e.status]}))??[],statusCode:s,status:o,version:a}}async function N(e,t={}){let{account:n=e.account,chainId:r}=t,i=n?(0,s.J)(n):void 0,a=await e.request({method:"wallet_getCapabilities",params:[i?.address]}),l={};for(let[e,t]of Object.entries(a))l[Number(e)]=t;return"number"==typeof r?l[r]:l}async function A(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}var z=n(17255),L=n(13649);async function P(e,t){let{account:n=e.account,chainId:r,nonce:a}=t;if(!n)throw new u.T({docsPath:"/docs/eip7702/prepareAuthorization"});let l=(0,s.J)(n),o=(()=>{if(t.executor)return"self"===t.executor?t.executor:(0,s.J)(t.executor)})(),c={address:t.contractAddress??t.address,chainId:r,nonce:a};return void 0===c.chainId&&(c.chainId=e.chain?.id??await (0,w.T)(e,i.T,"getChainId")({})),void 0===c.nonce&&(c.nonce=await (0,w.T)(e,L.y,"getTransactionCount")({address:l.address,blockTag:"pending"}),("self"===o||o?.address&&(0,z.h)(o.address,l.address))&&(c.nonce+=1)),c}async function _(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,S.b)(e))}async function j(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}var F=n(60367);async function q(e,t){let{account:n=e.account,capabilities:r,chain:i=e.chain,forceAtomic:l=!1,id:o,version:c="2.0.0"}=t;if(void 0===n)throw new u.T({docsPath:"/docs/actions/wallet/sendCalls"});let d=n?(0,s.J)(n):null,f=t.calls.map(e=>({data:e.abi?(0,F.p)({abi:e.abi,functionName:e.functionName,args:e.args}):e.data,to:e.to,value:e.value?(0,a.cK)(e.value):void 0}));try{let t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:l,calls:f,capabilities:r,chainId:(0,a.cK)(i.id),from:d?.address,id:o,version:c}]},{retryCount:0});if("string"==typeof t)return{id:t};return t}catch(e){throw v(e,{...t,account:d,chain:t.chain})}}async function K(e,t){let{id:n}=t;await e.request({method:"wallet_showCallsStatus",params:[n]})}async function B(e,t){let{account:n=e.account}=t;if(!n)throw new u.T({docsPath:"/docs/eip7702/signAuthorization"});let r=(0,s.J)(n);if(!r.signAuthorization)throw new u.Z({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:r.type});let i=await P(e,t);return r.signAuthorization(i)}var U=n(41246);async function Y(e,t){let{account:n=e.account,chain:r=e.chain,...l}=t;if(!n)throw new u.T({docsPath:"/docs/actions/wallet/signTransaction"});let o=(0,s.J)(n);(0,C.c)({account:o,...t});let c=await (0,w.T)(e,i.T,"getChainId")({});null!==r&&h({currentChainId:c,chain:r});let d=r?.formatters||e.chain?.formatters,f=d?.transactionRequest?.format||b.Bv;return o.signTransaction?o.signTransaction({...l,chainId:c},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...f(l),chainId:(0,a.cK)(c),from:o.address}]},{retryCount:0})}var W=n(90477);async function G(e,t){let{account:n=e.account,domain:r,message:i,primaryType:a}=t;if(!n)throw new u.T({docsPath:"/docs/actions/wallet/signTypedData"});let l=(0,s.J)(n),o={EIP712Domain:(0,W.H4)({domain:r}),...t.types};if((0,W.$$)({domain:r,message:i,primaryType:a,types:o}),l.signTypedData)return l.signTypedData({domain:r,message:i,primaryType:a,types:o});let c=(0,W.v8)({domain:r,message:i,primaryType:a,types:o});return e.request({method:"eth_signTypedData_v4",params:[l.address,c]},{retryCount:0})}async function J(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,a.cK)(t)}]},{retryCount:0})}var H=n(72342),X=n(86435),$=n(62739),Z=n(79183);async function Q(e,t){let n;let{id:r,pollingInterval:i=e.pollingInterval,status:a=({statusCode:e})=>e>=200,timeout:l=6e4}=t,o=(0,Z.A)(["waitForCallsStatus",e.uid,r]),{promise:s,resolve:u,reject:c}=(0,$.Y)(),d=(0,H.lB)(o,{resolve:u,reject:c},t=>{let l=(0,X.w)(async()=>{let i=e=>{clearTimeout(n),l(),e(),d()};try{let n=await I(e,{id:r});if(!a(n))return;i(()=>t.resolve(n))}catch(e){i(()=>t.reject(e))}},{interval:i,emitOnBegin:!0});return l});return n=l?setTimeout(()=>{d(),clearTimeout(n),c(new V({id:r}))},l):void 0,await s}class V extends c.C{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}async function ee(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}var et=n(54842);async function en(e,t){let{abi:n,account:r=e.account,address:i,args:a,dataSuffix:l,functionName:o,...c}=t;if(void 0===r)throw new u.T({docsPath:"/docs/contract/writeContract"});let d=r?(0,s.J)(r):null,f=(0,F.p)({abi:n,args:a,functionName:o});try{return await (0,w.T)(e,M,"sendTransaction")({data:`${f}${l?l.replace("0x",""):""}`,to:i,account:d,...c})}catch(e){throw(0,et.j)(e,{abi:n,address:i,args:a,docsPath:"/docs/contract/writeContract",functionName:o,sender:d?.address})}}function er(e){return{addChain:t=>l(e,t),deployContract:t=>(function(e,t){let{abi:n,args:r,bytecode:i,...a}=t,l=(0,o.m)({abi:n,args:r,bytecode:i}
1);return M(e,{...a,...a.authorizationList?{to:null}:{},data:l})})(e,t),getAddresses:()=>R(e),getCallsStatus:t=>I(e,t),getCapabilities:()=>N(e),getChainId:()=>(0,i.T)(e),getPermissions:()=>A(e),prepareAuthorization:t=>P(e,t),prepareTransactionRequest:t=>(0,E.ft)(e,t),requestAddresses:()=>_(e),requestPermissions:t=>j(e,t),sendCalls:t=>q(e,t),sendRawTransaction:t=>(0,D.L)(e,t),sendTransaction:t=>M(e,t),showCallsStatus:t=>K(e,t),signAuthorization:t=>B(e,t),signMessage:t=>(0,U.l)(e,t),signTransaction:t=>Y(e,t),signTypedData:t=>G(e,t),switchChain:t=>J(e,t),waitForCallsStatus:t=>Q(e,t),watchAsset:t=>ee(e,t),writeContract:t=>en(e,t)}}var ei=n(95990);async function ea(e,t={}){return(await (0,ei.r)(e,t)).extend(er)}var el=n(62108),eo=n(12115),es=n(43484),eu=n(2145),ec=n(18224),ed=n(53031);function ef(){var e,t,n,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:l={},...o}=a,s=(0,ed.U)(o),u=(0,r.jE)(),{address:c,connector:d,status:f}=(0,eu.F)({config:s}),h=(0,ec.i)({config:s}),p=null!==(e=a.connector)&&void 0!==e?e:d,{queryKey:g,...m}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:r}=t,{connectorUid:i,scopeKey:a,...l}=n[1];return ea(e,{...l,connector:r})},queryKey:function(e={}){let{connector:t,...n}=e;return["walletClient",{...(0,el.xO)(n),connectorUid:t?.uid}]}(t)}}(s,{...a,chainId:null!==(t=a.chainId)&&void 0!==t?t:h,connector:null!==(n=a.connector)&&void 0!==n?n:d}),v=!!(("connected"===f||"reconnecting"===f&&(null==p?void 0:p.getProvider))&&(null===(i=l.enabled)||void 0===i||i)),y=(0,eo.useRef)(c);return(0,eo.useEffect)(()=>{let e=y.current;!c&&e?(u.removeQueries({queryKey:g}),y.current=void 0):c!==e&&(u.invalidateQueries({queryKey:g}),y.current=c)},[c,u]),(0,es.IT)({...l,...m,queryKey:g,enabled:v,staleTime:Number.POSITIVE_INFINITY})}}}]);

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.