1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7253],{19876:(e,t,r)=>{r.d(t,{FN:()=>n,Q_:()=>l}),r(92068);let n=e=>{let{transform:t}=e;return{...t,x:0}},l=e=>{let{transform:t,draggingNodeRect:r,windowRect:n}=e;return r&&n?function(e,t,r){let n={...e};return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}(t,r,n):t}},37603:(e,t,r)=>{r.d(t,{uB:()=>T});var n=/[\\\/_+.#"@\[\(\{&]/,l=/[\\\/_+.#"@\[\(\{&]/g,i=/[\s-]/,a=/[\s-]/g;function o(e){return e.toLowerCase().replace(a," ")}var u=r(68845),c=r(55149),s=r(69948),d=r(1769),f=r(34750),h='[cmdk-group=""]',g='[cmdk-group-items=""]',p='[cmdk-item=""]',v="".concat(p,':not([aria-disabled="true"])'),m="cmdk-item-select",b="data-value",w=(e,t,r)=>(function(e,t,r){return function e(t,r,o,u,c,s,d){if(s===r.length)return c===t.length?1:.99;var f=`${c},${s}`;if(void 0!==d[f])return d[f];for(var h,g,p,v,m=u.charAt(s),b=o.indexOf(m,c),w=0;b>=0;)(h=e(t,r,o,u,b+1,s+1,d))>w&&(b===c?h*=1:n.test(t.charAt(b-1))?(h*=.8,(p=t.slice(c,b-1).match(l))&&c>0&&(h*=Math.pow(.999,p.length))):i.test(t.charAt(b-1))?(h*=.9,(v=t.slice(c,b-1).match(a))&&c>0&&(h*=Math.pow(.999,v.length))):(h*=.17,c>0&&(h*=Math.pow(.999,b-c))),t.charAt(b)!==r.charAt(s)&&(h*=.9999)),(h<.1&&o.charAt(b-1)===u.charAt(s+1)||u.charAt(s+1)===u.charAt(s)&&o.charAt(b-1)!==u.charAt(s))&&.1*(g=e(t,r,o,u,b+1,s+2,d))>h&&(h=.1*g),h>w&&(w=h),b=o.indexOf(m,b+1);return d[f]=w,w}(e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,t,o(e),o(t),0,0,{})})(e,t,r),y=c.createContext(void 0),x=()=>c.useContext(y),E=c.createContext(void 0),C=()=>c.useContext(E),S=c.createContext(void 0),D=c.forwardRef((e,t)=>{let r=z(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=z(()=>new Set),l=z(()=>new Map),i=z(()=>new Map),a=z(()=>new Set),o=O(e),{label:u,children:f,value:x,onValueChange:C,filter:S,shouldFilter:D,loop:k,disablePointerSelection:R=!1,vimBindings:M=!0,...I}=e,L=(0,d.B)(),A=(0,d.B)(),T=(0,d.B)(),P=c.useRef(null),B=F();N(()=>{if(void 0!==x){let e=x.trim();r.current.value=e,Y.emit()}},[x]),N(()=>{B(6,X)},[]);let Y=c.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var l,i,a,u;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)V(),U(),B(1,_);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(T);e?e.focus():null==(l=document.getElementById(L))||l.focus()}if(B(7,()=>{var e;r.current.selectedItemId=null==(e=q())?void 0:e.id,Y.emit()}),n||B(5,X),(null==(i=o.current)?void 0:i.value)!==void 0){null==(u=(a=o.current).onValueChange)||u.call(a,null!=t?t:"");return}}Y.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),j=c.useMemo(()=>({value:(e,t,n)=>{var l;t!==(null==(l=i.current.get(e))?void 0:l.value)&&(i.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,G(t,n)),B(2,()=>{U(),Y.emit()}))},item:(e,t)=>(n.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),B(3,()=>{V(),U(),r.current.value||_(),Y.emit()}),()=>{i.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=q();B(4,()=>{V(),(null==t?void 0:t.getAttribute("id"))===e&&_(),Y.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{i.current.delete(e),l.current.delete(e)}),filter:()=>o.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:L,inputId:T,labelId:A,listInnerRef:P}),[]);function G(e,t){var n,l;let i=null!=(l=null==(n=o.current)?void 0:n.filter)?l:w;return e?i(e,r.current.search,t):0}function U(){if(!r.current.search||!1===o.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=l.current.get(r),i=0;n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let n=P.current;H().sort((t,r)=>{var n,l;let i=t.getAttribute("id"),a=r.getAttribute("id");return(null!=(n=e.get(a))?n:0)-(null!=(l=e.get(i))?l:0)}
1).forEach(e=>{let t=e.closest(g);t?t.appendChild(e.parentElement===t?e:e.closest("".concat(g," > *"))):n.appendChild(e.parentElement===n?e:e.closest("".concat(g," > *")))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=P.current)?void 0:t.querySelector("".concat(h,"[").concat(b,'="').concat(encodeURIComponent(e[0]),'"]'));null==r||r.parentElement.appendChild(r)})}function _(){let e=H().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(b);Y.setState("value",t||void 0)}function V(){var e,t,a,u;if(!r.current.search||!1===o.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let l of n.current){let n=G(null!=(t=null==(e=i.current.get(l))?void 0:e.value)?t:"",null!=(u=null==(a=i.current.get(l))?void 0:a.keywords)?u:[]);r.current.filtered.items.set(l,n),n>0&&c++}for(let[e,t]of l.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function X(){var e,t,r;let n=q();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(h))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function q(){var e;return null==(e=P.current)?void 0:e.querySelector("".concat(p,'[aria-selected="true"]'))}function H(){var e;return Array.from((null==(e=P.current)?void 0:e.querySelectorAll(v))||[])}function $(e){let t=H()[e];t&&Y.setState("value",t.getAttribute(b))}function J(e){var t;let r=q(),n=H(),l=n.findIndex(e=>e===r),i=n[l+e];null!=(t=o.current)&&t.loop&&(i=l+e<0?n[n.length-1]:l+e===n.length?n[0]:n[l+e]),i&&Y.setState("value",i.getAttribute(b))}function Q(e){let t=q(),r=null==t?void 0:t.closest(h),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,h):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,h))?void 0:r.querySelector(v);n?Y.setState("value",n.getAttribute(b)):J(e)}let Z=()=>$(H().length-1),ee=e=>{e.preventDefault(),e.metaKey?Z():e.altKey?Q(1):J(1)},et=e=>{e.preventDefault(),e.metaKey?$(0):e.altKey?Q(-1):J(-1)};return c.createElement(s.sG.div,{ref:t,tabIndex:-1,...I,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=I.onKeyDown)||t.call(I,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":M&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":M&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),$(0);break;case"End":e.preventDefault(),Z();break;case"Enter":{e.preventDefault();let t=q();if(t){let e=new Event(m);t.dispatchEvent(e)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:W},u),K(e,e=>c.createElement(E.Provider,{value:Y},c.createElement(y.Provider,{value:j},e))))}),k=c.forwardRef((e,t)=>{var r,n;let l=(0,d.B)(),i=c.useRef(null),a=c.useContext(S),o=x(),u=O(e),h=null!=(n=null==(r=u.current)?void 0:r.forceMount)?n:null==a?void 0:a.forceMount;N(()=>{if(!h)return o.item(l,null==a?void 0:a.id)},[h]);let g=B(l,i,[e.value,e.children,i],e.keywords),p=C(),v=P(e=>e.value&&e.value===g.current),b=P(e=>!!h||!1===o.filter()||!e.search||e.filtered.items.get(l)>0);function w(){var e,t;y(),null==(t=(e=u.current).onSelect)||t.call(e,g.current)}function y(){p.setState("value",g.current,!0)}if(c.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(m,w),()=>t.removeEventListener(m,w)},[b,e.onSelect,e.disabled]),!b)return null;let{disabled:E,value:D,onSelect:k,forceMount:R,keywords:M,...I}=e;return c.createElement(s.sG.div,{ref:(0,f.t)(i,t),...I,id:l,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!v,"data-disabled":!!E,"data-selected":!!v,onPointerMove:E||o.getDisablePointerSelection()?void 0:y,onClick:E?void 0:w},e.children)}),R=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:l,...i}=e,a=(0,d.B)(),o=c.useRef(null),u=c.useRef(null),h=(0,d.B)(),g=x(),p=P(e=>!!l||!1===g.filter()||!e.search||e.filtered.groups.has(a));N(()=>g.group(a),[]),B(a,o,[e.value,e.heading,u]);let v=c.useMemo(()=>({id:a,forceMount:l}),[l]);return c.createElement(s.sG.div,{ref:(0,f.t)(o,t),...i,"cmdk-group":"",role:"presentation",hidden:!p||void 0},r&&c.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:h},r),K(e,e=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?h:void 0},c.createElement(S.Provider,{value:v},e))))}),M=c.forwardRef((e,t)=>
1{let{alwaysRender:r,...n}=e,l=c.useRef(null),i=P(e=>!e.search);return r||i?c.createElement(s.sG.div,{ref:(0,f.t)(l,t),...n,"cmdk-separator":"",role:"separator"}):null}),I=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,l=null!=e.value,i=C(),a=P(e=>e.search),o=P(e=>e.selectedItemId),u=x();return c.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),c.createElement(s.sG.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":o,id:u.inputId,type:"text",value:l?e.value:a,onChange:e=>{l||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),L=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...l}=e,i=c.useRef(null),a=c.useRef(null),o=P(e=>e.selectedItemId),u=x();return c.useEffect(()=>{if(a.current&&i.current){let e=a.current,t=i.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),c.createElement(s.sG.div,{ref:(0,f.t)(i,t),...l,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":o,"aria-label":n,id:u.listId},K(e,e=>c.createElement("div",{ref:(0,f.t)(a,u.listInnerRef),"cmdk-list-sizer":""},e)))}),A=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:l,contentClassName:i,container:a,...o}=e;return c.createElement(u.bL,{open:r,onOpenChange:n},c.createElement(u.ZL,{container:a},c.createElement(u.hJ,{"cmdk-overlay":"",className:l}),c.createElement(u.UC,{"aria-label":e.label,"cmdk-dialog":"",className:i},c.createElement(D,{ref:t,...o}))))}),T=Object.assign(D,{List:L,Item:k,Input:I,Group:R,Separator:M,Dialog:A,Empty:c.forwardRef((e,t)=>P(e=>0===e.filtered.count)?c.createElement(s.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:c.forwardRef((e,t)=>{let{progress:r,children:n,label:l="Loading...",...i}=e;return c.createElement(s.sG.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},K(e,e=>c.createElement("div",{"aria-hidden":!0},e)))})});function O(e){let t=c.useRef(e);return N(()=>{t.current=e}),t}var N="undefined"==typeof window?c.useEffect:c.useLayoutEffect;function z(e){let t=c.useRef();return void 0===t.current&&(t.current=e()),t}function P(e){let t=C(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function B(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=c.useRef(),i=x();return N(()=>{var a;let o=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),u=n.map(e=>e.trim());i.value(e,o,u),null==(a=t.current)||a.setAttribute(b,o),l.current=o}),l}var F=()=>{let[e,t]=c.useState(),r=z(()=>new Map);return N(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function K(e,t){let r,{asChild:n,children:l}=e;return n&&c.isValidElement(l)?c.cloneElement("function"==typeof(r=l.type)?r(l.props):"render"in r?r.render(l.props):l,{ref:l.ref},t(l.props.children)):t(l)}var W={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},51740:(e,t,r)=>{r.d(t,{JR:()=>C,_G:()=>s,be:()=>a,gB:()=>h,gl:()=>y});var n=r(55149),l=r(84455),i=r(92068);function a(e,t,r){let n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function o(e){return null!==e&&e>=0}let u=e=>{let{rects:t,activeIndex:r,overIndex:n,index:l}=e,i=a(t,n,r),o=t[l],u=i[l];return u&&o?{x:u.left-o.left,y:u.top-o.top,scaleX:u.width/o.width,scaleY:u.height/o.height}:null},c={scaleX:1,scaleY:1},s=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:l,rects:i,overIndex:a}=e,o=null!=(t=i[r])?t:n;if(!o)return null;if(l===r){let e=i[a];return e?{x:0,y:r<a?e.top+e.height-(o.top+o.height):e.top-o.top,...c}:null}let u=function(e,t,r){let n=e[t],l=e[t-1],i=e[t+1];return n?r<t?l?n.top-(l.top+l.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):l?n.top-(l.top+l.height):0:0}(i,l,r);return l>r&&l<=a?{x:0,y:-o.height-u,...c}:l<r&&l>=a?{x:0,y:o.height+u,...c}:{x:0,y:0,...c}}
1,d="Sortable",f=n.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:r,items:a,strategy:o=u,disabled:c=!1}=e,{active:s,dragOverlay:h,droppableRects:g,over:p,measureDroppableContainers:v}=(0,l.fF)(),m=(0,i.YG)(d,r),b=null!==h.rect,w=(0,n.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),y=null!=s,x=s?w.indexOf(s.id):-1,E=p?w.indexOf(p.id):-1,C=(0,n.useRef)(w),S=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(w,C.current),D=-1!==E&&-1===x||S,k="boolean"==typeof c?{draggable:c,droppable:c}:c;(0,i.Es)(()=>{S&&y&&v(w)},[S,w,y,v]),(0,n.useEffect)(()=>{C.current=w},[w]);let R=(0,n.useMemo)(()=>({activeIndex:x,containerId:m,disabled:k,disableTransforms:D,items:w,overIndex:E,useDragOverlay:b,sortedRects:w.reduce((e,t,r)=>{let n=g.get(t);return n&&(e[r]=n),e},Array(w.length)),strategy:o}),[x,m,k.draggable,k.droppable,D,w,E,g,b,o]);return n.createElement(f.Provider,{value:R},t)}let g=e=>{let{id:t,items:r,activeIndex:n,overIndex:l}=e;return a(r,n,l).indexOf(t)},p=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:l,items:i,newIndex:a,previousItems:o,previousContainerId:u,transition:c}=e;return!!c&&!!n&&(o===i||l!==a)&&(!!r||a!==l&&t===u)},v={duration:200,easing:"ease"},m="transform",b=i.Ks.Transition.toString({property:m,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function y(e){var t,r,a,u;let{animateLayoutChanges:c=p,attributes:s,disabled:d,data:h,getNewIndex:y=g,id:x,strategy:E,resizeObserverConfig:C,transition:S=v}=e,{items:D,containerId:k,activeIndex:R,disabled:M,disableTransforms:I,sortedRects:L,overIndex:A,useDragOverlay:T,strategy:O}=(0,n.useContext)(f),N=(t=d,r=M,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:r.draggable,droppable:null!=(u=null==t?void 0:t.droppable)?u:r.droppable}),z=D.indexOf(x),P=(0,n.useMemo)(()=>({sortable:{containerId:k,index:z,items:D},...h}),[k,h,z,D]),B=(0,n.useMemo)(()=>D.slice(D.indexOf(x)),[D,x]),{rect:F,node:K,isOver:W,setNodeRef:Y}=(0,l.zM)({id:x,data:P,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...C}}),{active:j,activatorEvent:G,activeNodeRect:U,attributes:_,setNodeRef:V,listeners:X,isDragging:q,over:H,setActivatorNodeRef:$,transform:J}=(0,l.PM)({id:x,data:P,attributes:{...w,...s},disabled:N.draggable}),Q=(0,i.jn)(Y,V),Z=!!j,ee=Z&&!I&&o(R)&&o(A),et=!T&&q,er=et&&ee?J:null,en=ee?null!=er?er:(null!=E?E:O)({rects:L,activeNodeRect:U,activeIndex:R,overIndex:A,index:z}):null,el=o(R)&&o(A)?y({id:x,items:D,activeIndex:R,overIndex:A}):z,ei=null==j?void 0:j.id,ea=(0,n.useRef)({activeId:ei,items:D,newIndex:el,containerId:k}),eo=D!==ea.current.items,eu=c({active:j,containerId:k,isDragging:q,isSorting:Z,id:x,index:z,items:D,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:S,wasDragging:null!=ea.current.activeId}),ec=function(e){let{disabled:t,index:r,node:a,rect:o}=e,[u,c]=(0,n.useState)(null),s=(0,n.useRef)(r);return(0,i.Es)(()=>{if(!t&&r!==s.current&&a.current){let e=o.current;if(e){let t=(0,l.Sj)(a.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&c(r)}}r!==s.current&&(s.current=r)},[t,r,a,o]),(0,n.useEffect)(()=>{u&&c(null)},[u]),u}({disabled:!eu,index:z,node:K,rect:F});return(0,n.useEffect)(()=>{Z&&ea.current.newIndex!==el&&(ea.current.newIndex=el),k!==ea.current.containerId&&(ea.current.containerId=k),D!==ea.current.items&&(ea.current.items=D)},[Z,el,k,D]),(0,n.useEffect)(()=>{if(ei===ea.current.activeId)return;if(null!=ei&&null==ea.current.activeId){ea.current.activeId=ei;return}let e=setTimeout(()=>{ea.current.activeId=ei},50);return()=>clearTimeout(e)},[ei]),{active:j,activeIndex:R,attributes:_,data:P,rect:F,index:z,newIndex:el,items:D,isOver:W,isSorting:Z,isDragging:q,listeners:X,node:K,overIndex:A,over:H,setNodeRef:Q,setActivatorNodeRef:$,setDroppableNodeRef:Y,setDraggableNodeRef:V,transform:null!=ec?ec:en,transition:ec||eo&&ea.current.newIndex===z?b:(!et||(0,i.kx
1)(G))&&S&&(Z||eu)?i.Ks.Transition.toString({...S,property:m}):void 0}}function x(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 E=[l.vL.Down,l.vL.Right,l.vL.Up,l.vL.Left],C=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:a,droppableContainers:o,over:u,scrollableAncestors:c}}=t;if(E.includes(e.code)){if(e.preventDefault(),!r||!n)return;let t=[];o.getEnabled().forEach(r=>{if(!r||null!=r&&r.disabled)return;let i=a.get(r.id);if(i)switch(e.code){case l.vL.Down:n.top<i.top&&t.push(r);break;case l.vL.Up:n.top>i.top&&t.push(r);break;case l.vL.Left:n.left>i.left&&t.push(r);break;case l.vL.Right:n.left<i.left&&t.push(r)}});let s=(0,l.y$)({active:r,collisionRect:n,droppableRects:a,droppableContainers:t,pointerCoordinates:null}),d=(0,l.Vy)(s,"id");if(d===(null==u?void 0:u.id)&&s.length>1&&(d=s[1].id),null!=d){let e=o.get(r.id),t=o.get(d),u=t?a.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&u&&e&&t){let r=(0,l.sl)(s).some((e,t)=>c[t]!==e),a=S(e,t),o=function(e,t){return!!x(e)&&!!x(t)&&!!S(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=r||!a?{x:0,y:0}:{x:o?n.width-u.width:0,y:o?n.height-u.height:0},f={x:u.left,y:u.top};return d.x&&d.y?f:(0,i.Re)(f,d)}}}};function S(e,t){return!!x(e)&&!!x(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},84455:(e,t,r)=>{r.d(t,{Mp:()=>eB,vL:()=>a,uN:()=>ei,AN:()=>es,fp:()=>O,y$:()=>N,Sj:()=>K,Vy:()=>A,sl:()=>Y,fF:()=>eY,PM:()=>eW,zM:()=>eG,MS:()=>S,FR:()=>D});var n,l,i,a,o,u,c,s,d,f,h=r(55149),g=r(6e4),p=r(92068);let v={display:"none"};function m(e){let{id:t,value:r}=e;return h.createElement("div",{id:t,style:v},r)}function b(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return h.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":n,"aria-atomic":!0},r)}let w=(0,h.createContext)(null),y={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 "},x={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.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=x,container:r,hiddenTextDescribedById:n,screenReaderInstructions:l=y}=e,{announce:i,announcement:a}=function(){let[e,t]=(0,h.useState)("");return{announce:(0,h.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),o=(0,p.YG)("DndLiveRegion"),[u,c]=(0,h.useState)(!1);(0,h.useEffect)(()=>{c(!0)},[]);var s=(0,h.useMemo)(()=>({onDragStart(e){let{active:r}=e;i(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&i(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;i(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;i(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;i(t.onDragCancel({active:r,over:n}))}}),[i,t]);let d=(0,h.useContext)(w);if((0,h.useEffect)(()=>{if(!d)throw Error("useDndMonitor must be used within a children of <DndContext>");return d(s)},[s,d]),!u)return null;let f=h.createElement(h.Fragment,null,h.createElement(m,{id:n,value:l.draggable}),h.createElement(b,{id:o,announcement:a}));return r?(0,g.createPortal)(f,r):f}function C(){}function S(e,t){return(0,h.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function D(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,h.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"}(n||(n={}));let k=Object.freeze({x:0,y:0});function R(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function M(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function I(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function L(e){let{left:t,top:r,height:n,width:l}=e;return[{x:t,y:r},{x:t+l,y:r},{x:t,y:r+n},{x:t+l,y:r+n}]}function A(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function T(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let O=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=T(t,t.left,t.top),i=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=R(T(n),l);i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort(M)},N=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=L(t),i=[];for(let e of n){let{id:t}=e,n=r.get(t);
1if(n){let r=L(n),a=Number((l.reduce((e,t,n)=>e+R(r[n],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(M)},z=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,l=[];for(let e of n){let{id:n}=e,i=r.get(n);if(i){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height);if(n<l&&r<i){let a=t.width*t.height,o=e.width*e.height,u=(l-n)*(i-r);return Number((u/(a+o-u)).toFixed(4))}return 0}(i,t);r>0&&l.push({id:n,data:{droppableContainer:e,value:r}})}}return l.sort(I)};function P(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:k}let B=function(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}(1),F={ignoreTransform:!1};function K(e,t){void 0===t&&(t=F);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,p.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=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(!n)return e;let{scaleX:l,scaleY:i,x:a,y:o}=n,u=e.left-a-(1-l)*parseFloat(r),c=e.top-o-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),s=l?e.width/l:e.width,d=i?e.height/i:e.height;return{width:s,height:d,top:c,right:u+s,bottom:c+d,left:u}}(r,t,n))}let{top:n,left:l,width:i,height:a,bottom:o,right:u}=r;return{top:n,left:l,width:i,height:a,bottom:o,right:u}}function W(e){return K(e,{ignoreTransform:!0})}function Y(e,t){let r=[];return e?function n(l){var i;if(null!=t&&r.length>=t||!l)return r;if((0,p.wz)(l)&&null!=l.scrollingElement&&!r.includes(l.scrollingElement))return r.push(l.scrollingElement),r;if(!(0,p.sb)(l)||(0,p.xZ)(l)||r.includes(l))return r;let a=(0,p.zk)(e).getComputedStyle(l);return(l!==e&&function(e,t){void 0===t&&(t=(0,p.zk)(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(l,a)&&r.push(l),void 0===(i=a)&&(i=(0,p.zk)(l).getComputedStyle(l)),"fixed"===i.position)?r:n(l.parentNode)}(e):r}function j(e){let[t]=Y(e,1);return null!=t?t:null}function G(e){return p.Sw&&e?(0,p.l6)(e)?e:(0,p.Ll)(e)?(0,p.wz)(e)||e===(0,p.TW)(e).scrollingElement?window:(0,p.sb)(e)?e:null:null:null}function U(e){return(0,p.l6)(e)?e.scrollX:e.scrollLeft}function _(e){return(0,p.l6)(e)?e.scrollY:e.scrollTop}function V(e){return{x:U(e),y:_(e)}}function X(e){return!!p.Sw&&!!e&&e===document.scrollingElement}function q(e){let t={x:0,y:0},r=X(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},l=e.scrollTop<=t.y,i=e.scrollLeft<=t.x;return{isTop:l,isLeft:i,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(l||(l={}));let H={x:.2,y:.2};function $(e){return e.reduce((e,t)=>(0,p.WQ)(e,V(t)),k)}let J=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+U(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+_(t),0)}]];class Q{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 r=Y(t),n=$(r);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,J))for(let e of l)Object.defineProperty(this,e,{get:()=>{let l=i(r),a=n[t]-l;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Z{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,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function ee(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function et(e){e.preventDefault()}function er(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"}(i||(i={})),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"}(a||(a={}));let en={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter,a.Tab]},el=(e,t)=>
1{let{currentCoordinates:r}=t;switch(e.code){case a.Right:return{...r,x:r.x+25};case a.Left:return{...r,x:r.x-25};case a.Down:return{...r,y:r.y+25};case a.Up:return{...r,y:r.y-25}}};class ei{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 Z((0,p.TW)(t)),this.windowListeners=new Z((0,p.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(i.Resize,this.handleCancel),this.windowListeners.add(i.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(i.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=K),!e)return;let{top:r,left:n,bottom:l,right:i}=t(e);j(e)&&(l<=0||i<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(k)}handleKeyDown(e){if((0,p.kx)(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:l=en,coordinateGetter:i=el,scrollBehavior:o="smooth"}=n,{code:u}=e;if(l.end.includes(u))return void this.handleEnd(e);if(l.cancel.includes(u))return void this.handleCancel(e);let{collisionRect:c}=r.current,s=c?{x:c.left,y:c.top}:k;this.referenceCoordinates||(this.referenceCoordinates=s);let d=i(e,{active:t,context:r.current,currentCoordinates:s});if(d){let t=(0,p.Re)(d,s),n={x:0,y:0},{scrollableAncestors:l}=r.current;for(let r of l){let l=e.code,{isTop:i,isRight:u,isLeft:c,isBottom:s,maxScroll:f,minScroll:h}=q(r),g=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:r,right:n,bottom:l}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:l,width:e.clientWidth,height:e.clientHeight}}(r),p={x:Math.min(l===a.Right?g.right-g.width/2:g.right,Math.max(l===a.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(l===a.Down?g.bottom-g.height/2:g.bottom,Math.max(l===a.Down?g.top:g.top+g.height/2,d.y))},v=l===a.Right&&!u||l===a.Left&&!c,m=l===a.Down&&!s||l===a.Up&&!i;if(v&&p.x!==d.x){let e=r.scrollLeft+t.x,i=l===a.Right&&e<=f.x||l===a.Left&&e>=h.x;if(i&&!t.y)return void r.scrollTo({left:e,behavior:o});i?n.x=r.scrollLeft-e:n.x=l===a.Right?r.scrollLeft-f.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:o});break}if(m&&p.y!==d.y){let e=r.scrollTop+t.y,i=l===a.Down&&e<=f.y||l===a.Up&&e>=h.y;if(i&&!t.x)return void r.scrollTo({top:e,behavior:o});i?n.y=r.scrollTop-e:n.y=l===a.Down?r.scrollTop-f.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:o});break}}this.handleMove(e,(0,p.WQ)((0,p.Re)(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(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 ea(e){return!!(e&&"distance"in e)}function eo(e){return!!(e&&"delay"in e)}ei.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=en,onActivation:l}=t,{active:i}=r,{code:a}=e.nativeEvent;if(n.start.includes(a)){let t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==l||l({event:e.nativeEvent}),!0)}return!1}}];class eu{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=(0,p.zk)(e);return e instanceof t?e:(0,p.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:l}=e,{target:i}=l;this.props=e,this.events=t,this.document=(0,p.TW)(i),this.documentListeners=new Z(this.document),this.listeners=new Z(r),this.windowListeners=new Z((0,p.zk)(i)),this.initialCoordinates=null!=(n=(0,p.e_)(l))?n:k,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:r}}}=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(i.Resize,this.handleCancel),this.windowListeners.add(i.DragStart,et),this.windowListeners.add(i.VisibilityChange,this.handleCancel),this.windowListeners.add(i.ContextMenu,et),this.documentListeners.add(i.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eo(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ea(t))return void this.handlePending(t)}
1this.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:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(i.Click,er,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(i.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:l}=this,{onMove:i,options:{activationConstraint:a}}=l;if(!n)return;let o=null!=(t=(0,p.e_)(e))?t:k,u=(0,p.Re)(n,o);if(!r&&a){if(ea(a)){if(null!=a.tolerance&&ee(u,a.tolerance))return this.handleCancel();if(ee(u,a.distance))return this.handleStart()}return eo(a)&&ee(u,a.tolerance)?this.handleCancel():void this.handlePending(a,u)}e.cancelable&&e.preventDefault(),i(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===a.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let ec={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class es extends eu{constructor(e){let{event:t}=e;super(e,ec,(0,p.TW)(t.target))}}es.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let ed={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(o||(o={}));class ef extends eu{constructor(e){super(e,ed,(0,p.TW)(e.event.target))}}ef.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==o.RightClick&&(null==n||n({event:r}),!0)}}];let eh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class eg extends eu{constructor(e){super(e,eh)}static setup(){return window.addEventListener(eh.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eh.move.name,e)};function e(){}}}eg.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:l}=r;return!(l.length>1)&&(null==n||n({event:r}),!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]="ReversedTreeOrder"}(c||(c={}));let ep={x:{[l.Backward]:!1,[l.Forward]:!1},y:{[l.Backward]:!1,[l.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(s||(s={})),(d||(d={})).Optimized="optimized";let ev=new Map;function em(e,t){return(0,p.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eb(e){let{callback:t,disabled:r}=e,n=(0,p._q)(t),l=(0,h.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,h.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function ew(e){return new Q(K(e),e)}function ey(e,t,r){void 0===t&&(t=ew);let[n,l]=(0,h.useState)(null);function i(){l(n=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=n?n:r)?l:null}let i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i})}let a=function(e){let{callback:t,disabled:r}=e,n=(0,p._q)(t),l=(0,h.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,h.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),o=eb({callback:i});return(0,p.Es)(()=>{i(),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]),n}let ex=[];function eE(e,t){void 0===t&&(t=[]);let r=(0,h.useRef)(null);return(0,h.useEffect)(()=>{r.current=null},t),(0,h.useEffect)(()=>{let t=e!==k;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,p.Re)(e,r.current):k}function eC(e){return(0,h.useMemo)(()=>
1e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let eS=[],eD=[{sensor:es,options:{}},{sensor:ei,options:{}}],ek={current:{}},eR={draggable:{measure:W},droppable:{measure:W,strategy:s.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:K}};class eM 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,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let eI={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eM,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:C},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eR,measureDroppableContainers:C,windowRect:null,measuringScheduled:!1},eL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:C,draggableNodes:new Map,over:null,measureDroppableContainers:C},eA=(0,h.createContext)(eL),eT=(0,h.createContext)(eI);function eO(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eM}}}function eN(e,t){switch(t.type){case n.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case n.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 n.DragEnd:case n.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case n.RegisterDroppable:{let{element:r}=t,{id:n}
1=r,l=new eM(e.droppable.containers);return l.set(n,r),{...e,droppable:{...e.droppable,containers:l}}}case n.SetDroppableDisabled:{let{id:r,key:n,disabled:l}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;let a=new eM(e.droppable.containers);return a.set(r,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:a}}}case n.UnregisterDroppable:{let{id:r,key:n}=t,l=e.droppable.containers.get(r);if(!l||n!==l.key)return e;let i=new eM(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function ez(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:l}=(0,h.useContext)(eA),i=(0,p.ZC)(n),a=(0,p.ZC)(null==r?void 0:r.id);return(0,h.useEffect)(()=>{if(!t&&!n&&i&&null!=a){if(!(0,p.kx)(i)||document.activeElement===i.target)return;let e=l.get(a);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,p.ag)(e);if(t){t.focus();break}}})}},[n,t,l,a,i]),null}let eP=(0,h.createContext)({...k,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(f||(f={}));let eB=(0,h.memo)(function(e){var t,r,i,a,o,d;let{id:v,accessibility:m,autoScroll:b=!0,children:y,sensors:x=eD,collisionDetection:C=z,measuring:S,modifiers:D,...R}=e,[M,I]=(0,h.useReducer)(eN,void 0,eO),[L,T]=function(){let[e]=(0,h.useState)(()=>new Set),t=(0,h.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,h.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[O,N]=(0,h.useState)(f.Uninitialized),F=O===f.Initialized,{draggable:{active:W,nodes:U,translate:_},droppable:{containers:J}}=M,Z=null!=W?U.get(W):null,ee=(0,h.useRef)({initial:null,translated:null}),et=(0,h.useMemo)(()=>{var e;return null!=W?{id:W,data:null!=(e=null==Z?void 0:Z.data)?e:ek,rect:ee}:null},[W,Z]),er=(0,h.useRef)(null),[en,el]=(0,h.useState)(null),[ei,ea]=(0,h.useState)(null),eo=(0,p.YN)(R,Object.values(R)),eu=(0,p.YG)("DndDescribedBy",v),ec=(0,h.useMemo)(()=>J.getEnabled(),[J]),es=(0,h.useMemo)(()=>({draggable:{...eR.draggable,...null==S?void 0:S.draggable},droppable:{...eR.droppable,...null==S?void 0:S.droppable},dragOverlay:{...eR.dragOverlay,...null==S?void 0:S.dragOverlay}}),[null==S?void 0:S.draggable,null==S?void 0:S.droppable,null==S?void 0:S.dragOverlay]),{droppableRects:ed,measureDroppableContainers:ef,measuringScheduled:eh}=function(e,t){let{dragging:r,dependencies:n,config:l}=t,[i,a]=(0,h.useState)(null),{frequency:o,measure:u,strategy:c}=l,d=(0,h.useRef)(e),f=function(){switch(c){case s.Always:return!1;case s.BeforeDragging:return r;default:return!r}}(),g=(0,p.YN)(f),v=(0,h.useCallback)(function(e){void 0===e&&(e=[]),g.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[g]),m=(0,h.useRef)(null),b=(0,p.KG)(t=>{if(f&&!r)return ev;if(!t||t===ev||d.current!==e||null!=i){let t=new Map;for(let r of e){if(!r)continue;if(i&&i.length>0&&!i.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new Q(u(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,i,r,f,u]);return(0,h.useEffect)(()=>{d.current=e},[e]),(0,h.useEffect)(()=>{f||v()},[r,f]),(0,h.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,h.useEffect)(()=>{f||"number"!=typeof o||null!==m.current||(m.current=setTimeout(()=>{v(),m.current=null},o))},[o,f,v,...n]),{droppableRects:b,measureDroppableContainers:v,measuringScheduled:null!=i}}(ec,{dragging:F,dependencies:[_.x,_.y],config:es.droppable}),eg=function(e,t){let r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return(0,p.KG)(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(U,W),ew=(0,h.useMemo)(()=>ei?(0,p.e_)(ei):null,[ei]),eM=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof b?!1===b.enabled:!1===b,r=F&&!e&&!t;return"object"==typeof b?{...b,enabled:r}:{enabled:r}}(),eI=em(eg,es.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:l=!0}=e,i=(0,h.useRef)(!1),{x:a,y:o}="boolean"==typeof l?{x:l,y:l}:l;(0,p.Es)(()=>
1{if(!a&&!o||!t){i.current=!1;return}if(i.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=P(r(e),n);if(a||(l.x=0),o||(l.y=0),i.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=j(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,a,o,n,r])}({activeNode:null!=W?U.get(W):null,config:eM.layoutShiftCompensation,initialRect:eI,measure:es.draggable.measure});let eL=ey(eg,es.draggable.measure,eI),eB=ey(eg?eg.parentElement:null),eF=(0,h.useRef)({activatorEvent:null,active:null,activeNode:eg,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:U,draggingNode:null,draggingNodeRect:null,droppableContainers:J,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eK=J.getNodeFor(null==(t=eF.current.over)?void 0:t.id),eW=function(e){let{measure:t}=e,[r,n]=(0,h.useState)(null),l=eb({callback:(0,h.useCallback)(e=>{for(let{target:r}of e)if((0,p.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),i=(0,h.useCallback)(e=>{let r=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,p.sb)(t)?t:e}(e);null==l||l.disconnect(),r&&(null==l||l.observe(r)),n(r?t(r):null)},[t,l]),[a,o]=(0,p.lk)(i);return(0,h.useMemo)(()=>({nodeRef:a,rect:r,setRef:o}),[r,a,o])}({measure:es.dragOverlay.measure}),eY=null!=(r=eW.nodeRef.current)?r:eg,ej=F?null!=(i=eW.rect)?i:eL:null,eG=!!(eW.nodeRef.current&&eW.rect),eU=function(e){let t=em(e);return P(e,t)}(eG?null:eL),e_=eC(eY?(0,p.zk)(eY):null),eV=function(e){let t=(0,h.useRef)(e),r=(0,p.KG)(r=>e?r&&r!==ex&&e&&t.current&&e.parentNode===t.current.parentNode?r:Y(e):ex,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),r}(F?null!=eK?eK:eg:null),eX=function(e,t){void 0===t&&(t=K);let[r]=e,n=eC(r?(0,p.zk)(r):null),[l,i]=(0,h.useState)(eS);function a(){i(()=>e.length?e.map(e=>X(e)?n:new Q(t(e),e)):eS)}let o=eb({callback:a});return(0,p.Es)(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),l}(eV),eq=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(D,{transform:{x:_.x-eU.x,y:_.y-eU.y,scaleX:1,scaleY:1},activatorEvent:ei,active:et,activeNodeRect:eL,containerNodeRect:eB,draggingNodeRect:ej,over:eF.current.over,overlayNodeRect:eW.rect,scrollableAncestors:eV,scrollableAncestorRects:eX,windowRect:e_}),eH=ew?(0,p.WQ)(ew,_):null,e$=function(e){let[t,r]=(0,h.useState)(null),n=(0,h.useRef)(e),l=(0,h.useCallback)(e=>{let t=G(e.target);t&&r(e=>e?(e.set(t,V(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{let t=n.current;if(e!==t){i(t);let a=e.map(e=>{let t=G(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,V(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{let t=G(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,p.WQ)(e,t),k):$(e):k,[e,t])}(eV),eJ=eE(e$),eQ=eE(e$,[eL]),eZ=(0,p.WQ)(eq,eJ),e0=ej?B(ej,eq):null,e1=et&&e0?C({active:et,collisionRect:e0,droppableRects:ed,droppableContainers:ec,pointerCoordinates:eH}):null,e9=A(e1,"id"),[e2,e5]=(0,h.useState)(null),e4=(o=eG?eq:(0,p.WQ)(eq,eQ),d=null!=(a=null==e2?void 0:e2.rect)?a:null,{...o,scaleX:d&&eL?d.width/eL.width:1,scaleY:d&&eL?d.height/eL.height:1}),e6=(0,h.useRef)(null),e3=(0,h.useCallback)((e,t)=>{let{sensor:r,options:l}=t;if(null==er.current)return;let i=U.get(er.current);if(!i)return;let a=e.nativeEvent,o=new r({active:er.current,activeNode:i,event:a,options:l,context:eF,onAbort(e){if(!U.get(e))return;let{onDragAbort:t}=eo.current,r={id:e};null==t||t(r),L({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!U.get(e))return;let{onDragPending:l}=eo.current,i={id:e,constraint:t,initialCoordinates:r,offset:n};null==l||l(i),L({type:"onDragPending",event:i})},onStart(e){let t=er.current;if(null==t)return;let r=U.get(t);if(!r)return;let{onDragStart:l}=eo.current,i={activatorEvent:a,active:{id:t,data:r.data,rect:ee}};(0,g.unstable_batchedUpdates)(()=>{null==l||l(i),N(f.Initializing),I({type:n.DragStart,initialCoordinates:e,active:t}),L({type:"onDragStart",event:i}),el(e6.current),ea(a)})},onMove(e){I({type:n.DragMove,coordinates:e})},onEnd:u(n.DragEnd),onCancel:u(n.DragCancel)});function u(e){return async function(){let{active:t,collisions:r,over:l,scrollAdjustedTranslate:i}=eF.current,o=null;if(t&&i){let{cancelDrop:u}=eo.current;o={activatorEvent:a,active:t,collisions:r,delta:i,over:l},e===n.DragEnd&&"function"==typeof u&&await Promise.resolve(u(o))&&(e=n.DragCancel)}er.current=null,(0,g.unstable_batchedUpdates)(()=>{I({type:e}),N(f.Uninitialized),e5(null),el(null),ea(null),e6.current=null;let t=e===n.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=eo.current[t];null==e||e(o),L({type:t,event:o})}})}}e6.current=o},[U]),e8=(0,h.useCallback)((e,t)=>(r,n)=>{let l=r.nativeEvent,i=U.get(n);null!==er.current||!i||l.dndKit||l.defaultPrevented||!0===e(r,t.options,{active:i})&&(l.dndKit={capturedBy:t.sensor},er.current=n,e3(r,t))},[U,e3]),e7=(0,h.useMemo)(()=>x.reduce((e,t)=>
1{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:e8(e.handler,t)}))]},[]),[x,e8]);(0,h.useEffect)(()=>{if(!p.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,p.Es)(()=>{eL&&O===f.Initializing&&N(f.Initialized)},[eL,O]),(0,h.useEffect)(()=>{let{onDragMove:e}=eo.current,{active:t,activatorEvent:r,collisions:n,over:l}=eF.current;if(!t||!r)return;let i={active:t,activatorEvent:r,collisions:n,delta:{x:eZ.x,y:eZ.y},over:l};(0,g.unstable_batchedUpdates)(()=>{null==e||e(i),L({type:"onDragMove",event:i})})},[eZ.x,eZ.y]),(0,h.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:l}=eF.current;if(!e||null==er.current||!t||!l)return;let{onDragOver:i}=eo.current,a=n.get(e9),o=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,u={active:e,activatorEvent:t,collisions:r,delta:{x:l.x,y:l.y},over:o};(0,g.unstable_batchedUpdates)(()=>{e5(o),null==i||i(u),L({type:"onDragOver",event:u})})},[e9]),(0,p.Es)(()=>{eF.current={activatorEvent:ei,active:et,activeNode:eg,collisionRect:e0,collisions:e1,droppableRects:ed,draggableNodes:U,draggingNode:eY,draggingNodeRect:ej,droppableContainers:J,over:e2,scrollableAncestors:eV,scrollAdjustedTranslate:eZ},ee.current={initial:ej,translated:e0}},[et,eg,e1,e0,U,eY,ej,ed,J,e2,eV,eZ]),function(e){let{acceleration:t,activator:r=u.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:s=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:g,delta:v,threshold:m}=e,b=function(e){let{delta:t,disabled:r}=e,n=(0,p.ZC)(t);return(0,p.KG)(e=>{if(r||!n||!e)return ep;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[l.Backward]:e.x[l.Backward]||-1===i.x,[l.Forward]:e.x[l.Forward]||1===i.x},y:{[l.Backward]:e.y[l.Backward]||-1===i.y,[l.Forward]:e.y[l.Forward]||1===i.y}}},[r,t,n])}({delta:v,disabled:!a}),[w,y]=(0,p.$$)(),x=(0,h.useRef)({x:0,y:0}),E=(0,h.useRef)({x:0,y:0}),C=(0,h.useMemo)(()=>{switch(r){case u.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case u.DraggableRect:return i}},[r,i,d]),S=(0,h.useRef)(null),D=(0,h.useCallback)(()=>{let e=S.current;if(!e)return;let t=x.current.x*E.current.x,r=x.current.y*E.current.y;e.scrollBy(t,r)},[]),k=(0,h.useMemo)(()=>s===c.TreeOrder?[...f].reverse():f,[s,f]);(0,h.useEffect)(()=>{if(!a||!f.length||!C)return void y();for(let e of k){if((null==n?void 0:n(e))===!1)continue;let r=g[f.indexOf(e)];if(!r)continue;let{direction:i,speed:a}=function(e,t,r,n,i){let{top:a,left:o,right:u,bottom:c}=r;void 0===n&&(n=10),void 0===i&&(i=H);
1let{isTop:s,isBottom:d,isLeft:f,isRight:h}=q(e),g={x:0,y:0},p={x:0,y:0},v={height:t.height*i.y,width:t.width*i.x};return!s&&a<=t.top+v.height?(g.y=l.Backward,p.y=n*Math.abs((t.top+v.height-a)/v.height)):!d&&c>=t.bottom-v.height&&(g.y=l.Forward,p.y=n*Math.abs((t.bottom-v.height-c)/v.height)),!h&&u>=t.right-v.width?(g.x=l.Forward,p.x=n*Math.abs((t.right-v.width-u)/v.width)):!f&&o<=t.left+v.width&&(g.x=l.Backward,p.x=n*Math.abs((t.left+v.width-o)/v.width)),{direction:g,speed:p}}(e,r,C,t,m);for(let e of["x","y"])b[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){y(),S.current=e,w(D,o),x.current=a,E.current=i;return}}x.current={x:0,y:0},E.current={x:0,y:0},y()},[t,D,n,y,a,o,JSON.stringify(C),JSON.stringify(b),w,f,k,g,JSON.stringify(m)])}({...eM,delta:_,draggingRect:e0,pointerCoordinates:eH,scrollableAncestors:eV,scrollableAncestorRects:eX});let te=(0,h.useMemo)(()=>({active:et,activeNode:eg,activeNodeRect:eL,activatorEvent:ei,collisions:e1,containerNodeRect:eB,dragOverlay:eW,draggableNodes:U,droppableContainers:J,droppableRects:ed,over:e2,measureDroppableContainers:ef,scrollableAncestors:eV,scrollableAncestorRects:eX,measuringConfiguration:es,measuringScheduled:eh,windowRect:e_}),[et,eg,eL,ei,e1,eB,eW,U,J,ed,e2,ef,eV,eX,es,eh,e_]),tt=(0,h.useMemo)(()=>({activatorEvent:ei,activators:e7,active:et,activeNodeRect:eL,ariaDescribedById:{draggable:eu},dispatch:I,draggableNodes:U,over:e2,measureDroppableContainers:ef}),[ei,e7,et,eL,I,eu,U,e2,ef]);return h.createElement(w.Provider,{value:T},h.createElement(eA.Provider,{value:tt},h.createElement(eT.Provider,{value:te},h.createElement(eP.Provider,{value:e4},y)),h.createElement(ez,{disabled:(null==m?void 0:m.restoreFocus)===!1})),h.createElement(E,{...m,hiddenTextDescribedById:eu}))}),eF=(0,h.createContext)(null),eK="button";function eW(e){let{id:t,data:r,disabled:n=!1,attributes:l}=e,i=(0,p.YG)("Draggable"),{activators:a,activatorEvent:o,active:u,activeNodeRect:c,ariaDescribedById:s,draggableNodes:d,over:f}=(0,h.useContext)(eA),{role:g=eK,roleDescription:v="draggable",tabIndex:m=0}=null!=l?l:{},b=(null==u?void 0:u.id)===t,w=(0,h.useContext)(b?eP:eF),[y,x]=(0,p.lk)(),[E,C]=(0,p.lk)(),S=(0,h.useMemo)(()=>a.reduce((e,r)=>{let{eventName:n,handler:l}=r;return e[n]=e=>{l(e,t)},e},{}),[a,t]),D=(0,p.YN)(r);return(0,p.Es)(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:E,data:D}),()=>{let e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:u,activatorEvent:o,activeNodeRect:c,attributes:(0,h.useMemo)(()=>({role:g,tabIndex:m,"aria-disabled":n,"aria-pressed":!!b&&g===eK||void 0,"aria-roledescription":v,"aria-describedby":s.draggable}),[n,g,m,b,v,s.draggable]),isDragging:b,listeners:n?void 0:S,node:y,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:w}}function eY(){return(0,h.useContext)(eT)}let ej={timeout:25};function eG(e){let{data:t,disabled:r=!1,id:l,resizeObserverConfig:i}=e,a=(0,p.YG)("Droppable"),{active:o,dispatch:u,over:c,measureDroppableContainers:s}=(0,h.useContext)(eA),d=(0,h.useRef)({disabled:r}),f=(0,h.useRef)(!1),g=(0,h.useRef)(null),v=(0,h.useRef)(null),{disabled:m,updateMeasurementsFor:b,timeout:w}={...ej,...i},y=(0,p.YN)(null!=b?b:l),x=eb({callback:(0,h.useCallback)(()=>{if(!f.current){f.current=!0;return}null!=v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{s(Array.isArray(y.current)?y.current:[y.current]),v.current=null},w)},[w]),disabled:m||!o}),E=(0,h.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[C,S]=(0,p.lk)(E),D=(0,p.YN)(t);return(0,h.useEffect)(()=>{x&&C.current&&(x.disconnect(),f.current=!1,x.observe(C.current))},[C,x]),(0,h.useEffect)(()=>(u({type:n.RegisterDroppable,element:{id:l,key:a,disabled:r,node:C,rect:g,data:D}}),()=>u({type:n.UnregisterDroppable,key:a,id:l})),[l]),(0,h.useEffect)(()=>{r!==d.current.disabled&&(u({type:n.SetDroppableDisabled,id:l,key:a,disabled:r}),d.current.disabled=r)},[l,a,r,u]),{active:o,rect:g,isOver:(null==c?void 0:c.id)===l,node:C,over:c,setNodeRef:S}}},92068:(e,t,r)=>{r.d(t,{$$:()=>p,Es:()=>h,KG:()=>m,Ks:()=>R,Ll:()=>o,Re:()=>S,Sw:()=>i,TW:()=>f,WQ:()=>C,YG:()=>x,YN:()=>v,ZC:()=>w,_q:()=>g,ag:()=>I,e_:()=>k,jn:()=>l,kx:()=>D,l6:()=>a,lk:()=>b,sb:()=>s,wz:()=>c,xZ:()=>d,zk:()=>u});var n=r(55149);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let i="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 u(e){var t,r;return e?a(e)?e:o(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function c(e){let{Document:t}=u(e);return e instanceof t}function s(e){return!a(e)&&e instanceof u(e).HTMLElement}function d(e){return e instanceof u(e).SVGElement}function f(e){return e?a(e)?e.document:o(e)?c(e)?e:s(e)||d(e)?e.ownerDocument:document:document:document}let h=i?n.useLayoutEffect:n.useEffect;function g(e){let t=(0,n.useRef)(e);return h(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function p(){let e=(0,n.useRef)(null);return[(0,n.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function v(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return h(()=>{r.current!==e&&(r.current=e)},t),r}function m(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function b(e){let t=g(e),r=(0,n.useRef)(null),l=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,l]}function w(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let y={};function x(e,t){return(0,n.useMemo)(()=>
1{if(t)return t;let r=null==y[e]?0:y[e]+1;return y[e]=r,e+"-"+r},[e,t])}function E(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];return n.reduce((t,r)=>{for(let[n,l]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*l)}return t},{...t})}}let C=E(1),S=E(-1);function D(e){if(!e)return!1;let{KeyboardEvent:t}=u(e.target);return t&&e instanceof t}function k(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=u(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let R=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[R.Translate.toString(e),R.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function I(e){return e.matches(M)?e:e.querySelector(M)}}}]);
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.