PageSourceSearch

https://kalpintelligence.com/_next/static/chunks/4952.84142a5a1734aadf.js

js kalpintelligence.com collected 2026-10-09 22:50:25 UTC 58,724 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4952],{17787:(e,t,n)=>{n.d(t,{Mp:()=>e_,vL:()=>o,uN:()=>ei,AN:()=>ec,fp:()=>O,y$:()=>j,Sj:()=>F,Vy:()=>L,sl:()=>W,fF:()=>eW,PM:()=>eK,zM:()=>eY,MS:()=>D,FR:()=>R});var r,l,i,o,a,u,s,c,d,f,h=n(12115),p=n(47650),g=n(49968);let v={display:"none"};function m(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:v},n)}function b(e){let{id:t,announcement:n,ariaLiveType:r="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":r,"aria-atomic":!0},n)}let y=(0,h.createContext)(null),w={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: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=x,container:n,hiddenTextDescribedById:r,screenReaderInstructions:l=w}=e,{announce:i,announcement:o}=function(){let[e,t]=(0,h.useState)("");return{announce:(0,h.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=(0,g.YG)("DndLiveRegion"),[u,s]=(0,h.useState)(!1);(0,h.useEffect)(()=>{s(!0)},[]);var c=(0,h.useMemo)(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}}),[i,t]);let d=(0,h.useContext)(y);if((0,h.useEffect)(()=>{if(!d)throw Error("useDndMonitor must be used within a children of <DndContext>");return d(c)},[c,d]),!u)return null;let f=h.createElement(h.Fragment,null,h.createElement(m,{id:r,value:l.draggable}),h.createElement(b,{id:a,announcement:o}));return n?(0,p.createPortal)(f,n):f}function C(){}function D(e,t){return(0,h.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function R(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];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"}(r||(r={}));let S=Object.freeze({x:0,y:0});function k(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:n}}=e,{data:{value:r}}=t;return n-r}function N(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function T(e){let{left:t,top:n,height:r,width:l}=e;return[{x:t,y:n},{x:t+l,y:n},{x:t,y:n+r},{x:t+l,y:n+r}]}function L(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function I(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 O=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=I(t,t.left,t.top),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=k(I(r),l);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(M)},j=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=T(t),i=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=T(r),o=Number((l.reduce((e,t,r)=>e+k(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:o}})}}return i.sort(M)},A=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,l=[];for(let e of r){let{id:r}=e,i=n.get(r);if(i){let n=function(e,t){let n=Math.max(t.top,e.top),r=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(r<l&&n<i){let o=t.width*t.height,a=e.width*e.height,u=(l-r)*(i-n);return Number((u/(o+a-u)).toFixed(4))}return 0}(i,t);n>0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(N)};function P(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:S}let _=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];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),z={ignoreTransform:!1};function F(e,t){void 0===t&&(t=z);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,g.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:l,scaleY:i,x:o,y:a}=r,u=e.left-o-(1-l)*parseFloat(n),s=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=l?e.width/l:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u}}(n,t,r))}let{top:r,left:l,width:i,height:o,bottom:a,right:u}=n;return{top:r,left:l,width:i,height:o,bottom:a,right:u}}function K(e){return F(e,{ignoreTransform:!0})}function W(e,t){let n=[];return e?function r(l){var i;if(null!=t&&n.length>=t||!l)return n;if((0,g.wz)(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!(0,g.sb)(l)||(0,g.xZ)(l)||n.includes(l))return n;let o=(0,g.zk)(e).getComputedStyle(l);return(l!==e&&function(e,t){void 0===t&&(t=(0,g.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)})}(l,o)&&n.push(l),void 0===(i=o)&&(i=(0,g.zk)(l).getComputedStyle(l)),"fixed"===i.position)?n:r(l.parentNode)}(e):n}function B(e){let[t]=W(e,1);return null!=t?t:null}function Y(e){return g.Sw&&e?(0,g.l6)(e)?e:(0,g.Ll)(e)?(0,g.wz)(e)||e===(0,g.TW)(e).scrollingElement?window:(0,g.sb)(e)?e:null:null:null}function $(e){return(0,g.l6)(e)?e.scrollX:e.scrollLeft}function U(e){return(0,g.l6)(e)?e.scrollY:e.scrollTop}function G(e){return{x:$(e),y:U(e)}}function V(e){return!!g.Sw&&!!e&&e===document.scrollingElement}function X(e){let t={x:0,y:0},n=V(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},l=e.scrollTop<=t.y,i=e.scrollLeft<=t.x;return{isTop:l,isLeft:i,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"}(l||(l={}));let H={x:.2,y:.2};function q(e){return e.reduce((e,t)=>
1(0,g.WQ)(e,G(t)),S)}let Z=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+$(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+U(t),0)}]];class J{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=W(t),r=q(n);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,Z))for(let e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),o=r[t]-l;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Q{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 ee(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 et(e){e.preventDefault()}function en(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"}(o||(o={}));let er={start:[o.Space,o.Enter],cancel:[o.Esc],end:[o.Space,o.Enter,o.Tab]},el=(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 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 Q((0,g.TW)(t)),this.windowListeners=new Q((0,g.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,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=F),!e)return;let{top:n,left:r,bottom:l,right:i}=t(e);B(e)&&(l<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(S)}handleKeyDown(e){if((0,g.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=er,coordinateGetter:i=el,scrollBehavior:a="smooth"}=r,{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:s}=n.current,c=s?{x:s.left,y:s.top}:S;this.referenceCoordinates||(this.referenceCoordinates=c);let d=i(e,{active:t,context:n.current,currentCoordinates:c});if(d){let t=(0,g.Re)(d,c),r={x:0,y:0},{scrollableAncestors:l}=n.current;for(let n of l){let l=e.code,{isTop:i,isRight:u,isLeft:s,isBottom:c,maxScroll:f,minScroll:h}=X(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:l}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:l,width:e.clientWidth,height:e.clientHeight}}(n),g={x:Math.min(l===o.Right?p.right-p.width/2:p.right,Math.max(l===o.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(l===o.Down?p.bottom-p.height/2:p.bottom,Math.max(l===o.Down?p.top:p.top+p.height/2,d.y))},v=l===o.Right&&!u||l===o.Left&&!s,m=l===o.Down&&!c||l===o.Up&&!i;if(v&&g.x!==d.x){let e=n.scrollLeft+t.x,i=l===o.Right&&e<=f.x||l===o.Left&&e>=h.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});i?r.x=n.scrollLeft-e:r.x=l===o.Right?n.scrollLeft-f.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&g.y!==d.y){let e=n.scrollTop+t.y,i=l===o.Down&&e<=f.y||l===o.Up&&e>=h.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});i?r.y=n.scrollTop-e:r.y=l===o.Down?n.scrollTop-f.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,g.WQ)((0,g.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 eo(e){return!!(e&&"distance"in e)}function ea(e){return!!(e&&"delay"in e)}ei.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=er,onActivation:l}=t,{active:i}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){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,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,g.zk)(e);return e instanceof t?e:(0,g.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,g.TW)(i),this.documentListeners=new Q(this.document),this.listeners=new Q(n),this.windowListeners=new Q((0,g.zk)(i)),this.initialCoordinates=null!=(r=(0,g.e_)(l))?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(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!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ea(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(eo(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: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(i.Click,en,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(i.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:l}=this,{onMove:i,options:{activationConstraint:o}}=l;if(!r)return;let a=null!=(t=(0,g.e_)(e))?t:S,u=(0,g.Re)(r,a);if(!n&&o){if(eo(o)){if(null!=o.tolerance&&ee(u,o.tolerance))return this.handleCancel();if(ee(u,o.distance))return this.handleStart()}return ea(o)&&ee(u,o.tolerance)?this.handleCancel():void this.handlePending(o,u)}e.cancelable&&e.preventDefault(),i(a)}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 es={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ec extends eu{constructor(e){let{event:t}=e;super(e,es,(0,g.TW)(t.target))}}ec.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 ed={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(a||(a={}));class ef extends eu{constructor(e){super(e,ed,(0,g.TW)(e.event.target))}}ef.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==a.RightClick&&(null==r||r({event:n}),!0)}}];let eh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ep 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(){}}}ep.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:l}=n;return!(l.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]="ReversedTreeOrder"}(s||(s={}));let eg={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"}(c||(c={})),(d||(d={})).Optimized="optimized";let ev=new Map;function em(e,t){return(0,g.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function eb(e){let{callback:t,disabled:n}=e,r=(0,g._q)(t),l=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,h.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}function ey(e){return new J(F(e),e)}function ew(e,t,n){void 0===t&&(t=ey);let[r,l]=(0,h.useState)(null);function i(){l(r=>{if(!e)return null;if(!1===e.isConnected){var l;return null!=(l=null!=r?r:n)?l:null}let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=function(e){let{callback:t,disabled:n}=e,r=(0,g._q)(t),l=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,h.useEffect)(()=>()=>null==l?void 0:l.disconnect(),[l]),l}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),a=eb({callback:i});return(0,g.Es)(()=>{i(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),r}let ex=[];function eE(e,t){void 0===t&&(t=[]);let n=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n.current=null},t),(0,h.useEffect)(()=>{let t=e!==S;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,g.Re)(e,n.current):S}function eC(e){return(0,h.useMemo)(()=>
1e?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 eD=[],eR=[{sensor:ec,options:{}},{sensor:ei,options:{}}],eS={current:{}},ek={draggable:{measure:K},droppable:{measure:K,strategy:c.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:F}};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,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eN={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:ek,measureDroppableContainers:C,windowRect:null,measuringScheduled:!1},eT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:C,draggableNodes:new Map,over:null,measureDroppableContainers:C},eL=(0,h.createContext)(eT),eI=(0,h.createContext)(eN);function eO(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eM}}}function ej(e,t){switch(t.type){case r.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case r.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 r.DragEnd:case r.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case r.RegisterDroppable:{let{element:n}=t,{id:r}=n,l=new eM(e.droppable.containers);return l.set(r,n),{...e,droppable:{...e.droppable,containers:l}}}case r.SetDroppableDisabled:{let{id:n,key:r,disabled:l}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let o=new eM(e.droppable.containers);return o.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:o}}}case r.UnregisterDroppable:{let{id:n,key:r}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;let i=new eM(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eA(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,h.useContext)(eL),i=(0,g.ZC)(r),o=(0,g.ZC)(null==n?void 0:n.id);return(0,h.useEffect)(()=>{if(!t&&!r&&i&&null!=o){if(!(0,g.kx)(i)||document.activeElement===i.target)return;let e=l.get(o);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,g.ag)(e);if(t){t.focus();break}}})}},[r,t,l,o,i]),null}let eP=(0,h.createContext)({...S,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(f||(f={}));let e_=(0,h.memo)(function(e){var t,n,i,o,a,d;let{id:v,accessibility:m,autoScroll:b=!0,children:w,sensors:x=eR,collisionDetection:C=A,measuring:D,modifiers:R,...k}=e,[M,N]=(0,h.useReducer)(ej,void 0,eO),[T,I]=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:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[O,j]=(0,h.useState)(f.Uninitialized),z=O===f.Initialized,{draggable:{active:K,nodes:$,translate:U},droppable:{containers:Z}}=M,Q=null!=K?$.get(K):null,ee=(0,h.useRef)({initial:null,translated:null}),et=(0,h.useMemo)(()=>{var e;return null!=K?{id:K,data:null!=(e=null==Q?void 0:Q.data)?e:eS,rect:ee}:null},[K,Q]),en=(0,h.useRef)(null),[er,el]=(0,h.useState)(null),[ei,eo]=(0,h.useState)(null),ea=(0,g.YN)(k,Object.values(k)),eu=(0,g.YG)("DndDescribedBy",v),es=(0,h.useMemo)(()=>Z.getEnabled(),[Z]),ec=(0,h.useMemo)(()=>({draggable:{...ek.draggable,...null==D?void 0:D.draggable},droppable:{...ek.droppable,...null==D?void 0:D.droppable},dragOverlay:{...ek.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:ed,measureDroppableContainers:ef,measuringScheduled:eh}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,o]=(0,h.useState)(null),{frequency:a,measure:u,strategy:s}=l,d=(0,h.useRef)(e),f=function(){switch(s){case c.Always:return!1;case c.BeforeDragging:return n;default:return!n}}(),p=(0,g.YN)(f),v=(0,h.useCallback)(function(e){void 0===e&&(e=[]),p.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))}
1,[p]),m=(0,h.useRef)(null),b=(0,g.KG)(t=>{if(f&&!n)return ev;if(!t||t===ev||d.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new J(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,i,n,f,u]);return(0,h.useEffect)(()=>{d.current=e},[e]),(0,h.useEffect)(()=>{f||v()},[n,f]),(0,h.useEffect)(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),(0,h.useEffect)(()=>{f||"number"!=typeof a||null!==m.current||(m.current=setTimeout(()=>{v(),m.current=null},a))},[a,f,v,...r]),{droppableRects:b,measureDroppableContainers:v,measuringScheduled:null!=i}}(es,{dragging:z,dependencies:[U.x,U.y],config:ec.droppable}),ep=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,g.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}($,K),ey=(0,h.useMemo)(()=>ei?(0,g.e_)(ei):null,[ei]),eM=function(){let e=(null==er?void 0:er.autoScrollEnabled)===!1,t="object"==typeof b?!1===b.enabled:!1===b,n=z&&!e&&!t;return"object"==typeof b?{...b,enabled:n}:{enabled:n}}(),eN=em(ep,ec.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,h.useRef)(!1),{x:o,y:a}="boolean"==typeof l?{x:l,y:l}:l;(0,g.Es)(()=>{if(!o&&!a||!t){i.current=!1;return}if(i.current||!r)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let l=P(n(e),r);if(o||(l.x=0),a||(l.y=0),i.current=!0,Math.abs(l.x)>0||Math.abs(l.y)>0){let t=B(e);t&&t.scrollBy({top:l.y,left:l.x})}},[t,o,a,r,n])}({activeNode:null!=K?$.get(K):null,config:eM.layoutShiftCompensation,initialRect:eN,measure:ec.draggable.measure});let eT=ew(ep,ec.draggable.measure,eN),e_=ew(ep?ep.parentElement:null),ez=(0,h.useRef)({activatorEvent:null,active:null,activeNode:ep,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:Z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eF=Z.getNodeFor(null==(t=ez.current.over)?void 0:t.id),eK=function(e){let{measure:t}=e,[n,r]=(0,h.useState)(null),l=eb({callback:(0,h.useCallback)(e=>{for(let{target:n}of e)if((0,g.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),i=(0,h.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,g.sb)(t)?t:e}(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),r(n?t(n):null)},[t,l]),[o,a]=(0,g.lk)(i);return(0,h.useMemo)(()=>({nodeRef:o,rect:n,setRef:a}),[n,o,a])}({measure:ec.dragOverlay.measure}),eW=null!=(n=eK.nodeRef.current)?n:ep,eB=z?null!=(i=eK.rect)?i:eT:null,eY=!!(eK.nodeRef.current&&eK.rect),e$=function(e){let t=em(e);return P(e,t)}(eY?null:eT),eU=eC(eW?(0,g.zk)(eW):null),eG=function(e){let t=(0,h.useRef)(e),n=(0,g.KG)(n=>e?n&&n!==ex&&e&&t.current&&e.parentNode===t.current.parentNode?n:W(e):ex,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}(z?null!=eF?eF:ep:null),eV=function(e,t){void 0===t&&(t=F);let[n]=e,r=eC(n?(0,g.zk)(n):null),[l,i]=(0,h.useState)(eD);function o(){i(()=>e.length?e.map(e=>V(e)?r:new J(t(e),e)):eD)}let a=eb({callback:o});return(0,g.Es)(()=>{null==a||a.disconnect(),o(),e.forEach(e=>null==a?void 0:a.observe(e))},[e]),l}(eG),eX=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(R,{transform:{x:U.x-e$.x,y:U.y-e$.y,scaleX:1,scaleY:1},activatorEvent:ei,active:et,activeNodeRect:eT,containerNodeRect:e_,draggingNodeRect:eB,over:ez.current.over,overlayNodeRect:eK.rect,scrollableAncestors:eG,scrollableAncestorRects:eV,windowRect:eU}),eH=ey?(0,g.WQ)(ey,U):null,eq=function(e){let[t,n]=(0,h.useState)(null),r=(0,h.useRef)(e),l=(0,h.useCallback)(e=>{let t=Y(e.target);t&&n(e=>e?(e.set(t,G(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let o=e.map(e=>{let t=Y(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,G(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),r.current=e}return()=>{i(e),i(t)};
1function i(e){e.forEach(e=>{let t=Y(e);null==t||t.removeEventListener("scroll",l)})}},[l,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,g.WQ)(e,t),S):q(e):S,[e,t])}(eG),eZ=eE(eq),eJ=eE(eq,[eT]),eQ=(0,g.WQ)(eX,eZ),e0=eB?_(eB,eX):null,e1=et&&e0?C({active:et,collisionRect:e0,droppableRects:ed,droppableContainers:es,pointerCoordinates:eH}):null,e2=L(e1,"id"),[e5,e6]=(0,h.useState)(null),e4=(a=eY?eX:(0,g.WQ)(eX,eJ),d=null!=(o=null==e5?void 0:e5.rect)?o:null,{...a,scaleX:d&&eT?d.width/eT.width:1,scaleY:d&&eT?d.height/eT.height:1}),e9=(0,h.useRef)(null),e8=(0,h.useCallback)((e,t)=>{let{sensor:n,options:l}=t;if(null==en.current)return;let i=$.get(en.current);if(!i)return;let o=e.nativeEvent,a=new n({active:en.current,activeNode:i,event:o,options:l,context:ez,onAbort(e){if(!$.get(e))return;let{onDragAbort:t}=ea.current,n={id:e};null==t||t(n),T({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!$.get(e))return;let{onDragPending:l}=ea.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==l||l(i),T({type:"onDragPending",event:i})},onStart(e){let t=en.current;if(null==t)return;let n=$.get(t);if(!n)return;let{onDragStart:l}=ea.current,i={activatorEvent:o,active:{id:t,data:n.data,rect:ee}};(0,p.unstable_batchedUpdates)(()=>{null==l||l(i),j(f.Initializing),N({type:r.DragStart,initialCoordinates:e,active:t}),T({type:"onDragStart",event:i}),el(e9.current),eo(o)})},onMove(e){N({type:r.DragMove,coordinates:e})},onEnd:u(r.DragEnd),onCancel:u(r.DragCancel)});function u(e){return async function(){let{active:t,collisions:n,over:l,scrollAdjustedTranslate:i}=ez.current,a=null;if(t&&i){let{cancelDrop:u}=ea.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:l},e===r.DragEnd&&"function"==typeof u&&await Promise.resolve(u(a))&&(e=r.DragCancel)}en.current=null,(0,p.unstable_batchedUpdates)(()=>{N({type:e}),j(f.Uninitialized),e6(null),el(null),eo(null),e9.current=null;let t=e===r.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=ea.current[t];null==e||e(a),T({type:t,event:a})}})}}e9.current=a},[$]),e7=(0,h.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=$.get(r);null!==en.current||!i||l.dndKit||l.defaultPrevented||!0===e(n,t.options,{active:i})&&(l.dndKit={capturedBy:t.sensor},en.current=r,e8(n,t))},[$,e8]),e3=(0,h.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,h.useEffect)(()=>{if(!g.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,g.Es)(()=>{eT&&O===f.Initializing&&j(f.Initialized)},[eT,O]),(0,h.useEffect)(()=>{let{onDragMove:e}=ea.current,{active:t,activatorEvent:n,collisions:r,over:l}=ez.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:eQ.x,y:eQ.y},over:l};(0,p.unstable_batchedUpdates)(()=>{null==e||e(i),T({type:"onDragMove",event:i})})},[eQ.x,eQ.y]),(0,h.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=ez.current;if(!e||null==en.current||!t||!l)return;let{onDragOver:i}=ea.current,o=r.get(e2),a=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:l.x,y:l.y},over:a};(0,p.unstable_batchedUpdates)(()=>{e6(a),null==i||i(u),T({type:"onDragOver",event:u})})},[e2]),(0,g.Es)(()=>{ez.current={activatorEvent:ei,active:et,activeNode:ep,collisionRect:e0,collisions:e1,droppableRects:ed,draggableNodes:$,draggingNode:eW,draggingNodeRect:eB,droppableContainers:Z,over:e5,scrollableAncestors:eG,scrollAdjustedTranslate:eQ},ee.current={initial:eB,translated:e0}},[et,ep,e1,e0,$,eW,eB,ed,Z,e5,eG,eQ]),function(e){let{acceleration:t,activator:n=u.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:c=s.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:p,delta:v,threshold:m}=e,b=function(e){let{delta:t,disabled:n}=e,r=(0,g.ZC)(t);return(0,g.KG)(e=>{if(n||!r||!e)return eg;
1let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.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}}},[n,t,r])}({delta:v,disabled:!o}),[y,w]=(0,g.$$)(),x=(0,h.useRef)({x:0,y:0}),E=(0,h.useRef)({x:0,y:0}),C=(0,h.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,h.useRef)(null),R=(0,h.useCallback)(()=>{let e=D.current;if(!e)return;let t=x.current.x*E.current.x,n=x.current.y*E.current.y;e.scrollBy(t,n)},[]),S=(0,h.useMemo)(()=>c===s.TreeOrder?[...f].reverse():f,[c,f]);(0,h.useEffect)(()=>{if(!o||!f.length||!C)return void w();for(let e of S){if((null==r?void 0:r(e))===!1)continue;let n=p[f.indexOf(e)];if(!n)continue;let{direction:i,speed:o}=function(e,t,n,r,i){let{top:o,left:a,right:u,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=H);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=X(e),p={x:0,y:0},g={x:0,y:0},v={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+v.height?(p.y=l.Backward,g.y=r*Math.abs((t.top+v.height-o)/v.height)):!d&&s>=t.bottom-v.height&&(p.y=l.Forward,g.y=r*Math.abs((t.bottom-v.height-s)/v.height)),!h&&u>=t.right-v.width?(p.x=l.Forward,g.x=r*Math.abs((t.right-v.width-u)/v.width)):!f&&a<=t.left+v.width&&(p.x=l.Backward,g.x=r*Math.abs((t.left+v.width-a)/v.width)),{direction:p,speed:g}}(e,n,C,t,m);for(let e of["x","y"])b[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){w(),D.current=e,y(R,a),x.current=o,E.current=i;return}}x.current={x:0,y:0},E.current={x:0,y:0},w()},[t,R,r,w,o,a,JSON.stringify(C),JSON.stringify(b),y,f,S,p,JSON.stringify(m)])}({...eM,delta:U,draggingRect:e0,pointerCoordinates:eH,scrollableAncestors:eG,scrollableAncestorRects:eV});let te=(0,h.useMemo)(()=>({active:et,activeNode:ep,activeNodeRect:eT,activatorEvent:ei,collisions:e1,containerNodeRect:e_,dragOverlay:eK,draggableNodes:$,droppableContainers:Z,droppableRects:ed,over:e5,measureDroppableContainers:ef,scrollableAncestors:eG,scrollableAncestorRects:eV,measuringConfiguration:ec,measuringScheduled:eh,windowRect:eU}),[et,ep,eT,ei,e1,e_,eK,$,Z,ed,e5,ef,eG,eV,ec,eh,eU]),tt=(0,h.useMemo)(()=>({activatorEvent:ei,activators:e3,active:et,activeNodeRect:eT,ariaDescribedById:{draggable:eu},dispatch:N,draggableNodes:$,over:e5,measureDroppableContainers:ef}),[ei,e3,et,eT,N,eu,$,e5,ef]);return h.createElement(y.Provider,{value:I},h.createElement(eL.Provider,{value:tt},h.createElement(eI.Provider,{value:te},h.createElement(eP.Provider,{value:e4},w)),h.createElement(eA,{disabled:(null==m?void 0:m.restoreFocus)===!1})),h.createElement(E,{...m,hiddenTextDescribedById:eu}))}),ez=(0,h.createContext)(null),eF="button";function eK(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=(0,g.YG)("Draggable"),{activators:o,activatorEvent:a,active:u,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,h.useContext)(eL),{role:p=eF,roleDescription:v="draggable",tabIndex:m=0}=null!=l?l:{},b=(null==u?void 0:u.id)===t,y=(0,h.useContext)(b?eP:ez),[w,x]=(0,g.lk)(),[E,C]=(0,g.lk)(),D=(0,h.useMemo)(()=>o.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[o,t]),R=(0,g.YN)(n);return(0,g.Es)(()=>(d.set(t,{id:t,key:i,node:w,activatorNode:E,data:R}),()=>{let e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:u,activatorEvent:a,activeNodeRect:s,attributes:(0,h.useMemo)(()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":!!b&&p===eF||void 0,"aria-roledescription":v,"aria-describedby":c.draggable}),[r,p,m,b,v,c.draggable]),isDragging:b,listeners:r?void 0:D,node:w,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:y}}function eW(){return(0,h.useContext)(eI)}let eB={timeout:25};function eY(e){let{data:t,disabled:n=!1,id:l,resizeObserverConfig:i}=e,o=(0,g.YG)("Droppable"),{active:a,dispatch:u,over:s,measureDroppableContainers:c}=(0,h.useContext)(eL),d=(0,h.useRef)({disabled:n}),f=(0,h.useRef)(!1),p=(0,h.useRef)(null),v=(0,h.useRef)(null),{disabled:m,updateMeasurementsFor:b,timeout:y}={...eB,...i},w=(0,g.YN)(null!=b?b:l),x=eb({callback:(0,h.useCallback)(()=>
1{if(!f.current){f.current=!0;return}null!=v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(w.current)?w.current:[w.current]),v.current=null},y)},[y]),disabled:m||!a}),E=(0,h.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[C,D]=(0,g.lk)(E),R=(0,g.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:r.RegisterDroppable,element:{id:l,key:o,disabled:n,node:C,rect:p,data:R}}),()=>u({type:r.UnregisterDroppable,key:o,id:l})),[l]),(0,h.useEffect)(()=>{n!==d.current.disabled&&(u({type:r.SetDroppableDisabled,id:l,key:o,disabled:n}),d.current.disabled=n)},[l,o,n,u]),{active:a,rect:p,isOver:(null==s?void 0:s.id)===l,node:C,over:s,setNodeRef:D}}},49027:(e,t,n)=>{n.d(t,{JR:()=>C,_G:()=>c,be:()=>o,gB:()=>h,gl:()=>w});var r=n(12115),l=n(17787),i=n(49968);function o(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function a(e){return null!==e&&e>=0}let u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:l}=e,i=o(t,r,n),a=t[l],u=i[l];return u&&a?{x:u.left-a.left,y:u.top-a.top,scaleX:u.width/a.width,scaleY:u.height/a.height}:null},s={scaleX:1,scaleY:1},c=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:l,rects:i,overIndex:o}=e,a=null!=(t=i[n])?t:r;if(!a)return null;if(l===n){let e=i[o];return e?{x:0,y:n<o?e.top+e.height-(a.top+a.height):e.top-a.top,...s}:null}let u=function(e,t,n){let r=e[t],l=e[t-1],i=e[t+1];return r?n<t?l?r.top-(l.top+l.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):l?r.top-(l.top+l.height):0:0}(i,l,n);return l>n&&l<=o?{x:0,y:-a.height-u,...s}:l<n&&l>=o?{x:0,y:a.height+u,...s}:{x:0,y:0,...s}},d="Sortable",f=r.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:n,items:o,strategy:a=u,disabled:s=!1}=e,{active:c,dragOverlay:h,droppableRects:p,over:g,measureDroppableContainers:v}=(0,l.fF)(),m=(0,i.YG)(d,n),b=null!==h.rect,y=(0,r.useMemo)(()=>o.map(e=>"object"==typeof e&&"id"in e?e.id:e),[o]),w=null!=c,x=c?y.indexOf(c.id):-1,E=g?y.indexOf(g.id):-1,C=(0,r.useRef)(y),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}(y,C.current),R=-1!==E&&-1===x||D,S="boolean"==typeof s?{draggable:s,droppable:s}:s;(0,i.Es)(()=>{D&&w&&v(y)},[D,y,w,v]),(0,r.useEffect)(()=>{C.current=y},[y]);let k=(0,r.useMemo)(()=>({activeIndex:x,containerId:m,disabled:S,disableTransforms:R,items:y,overIndex:E,useDragOverlay:b,sortedRects:y.reduce((e,t,n)=>{let r=p.get(t);return r&&(e[n]=r),e},Array(y.length)),strategy:a}),[x,m,S.draggable,S.droppable,R,y,E,p,b,a]);return r.createElement(f.Provider,{value:k},t)}let p=e=>{let{id:t,items:n,activeIndex:r,overIndex:l}=e;return o(n,r,l).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:l,items:i,newIndex:o,previousItems:a,previousContainerId:u,transition:s}=e;return!!s&&!!r&&(a===i||l!==o)&&(!!n||o!==l&&t===u)},v={duration:200,easing:"ease"},m="transform",b=i.Ks.Transition.toString({property:m,duration:0,easing:"linear"}),y={roleDescription:"sortable"};function w(e){var t,n,o,u;let{animateLayoutChanges:s=g,attributes:c,disabled:d,data:h,getNewIndex:w=p,id:x,strategy:E,resizeObserverConfig:C,transition:D=v}=e,{items:R,containerId:S,activeIndex:k,disabled:M,disableTransforms:N,sortedRects:T,overIndex:L,useDragOverlay:I,strategy:O}=(0,r.useContext)(f),j=(t=d,n=M,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(o=null==t?void 0:t.draggable)?o:n.draggable,droppable:null!=(u=null==t?void 0:t.droppable)?u:n.droppable}),A=R.indexOf(x),P=(0,r.useMemo)(()=>({sortable:{containerId:S,index:A,items:R},...h}),[S,h,A,R]),_=(0,r.useMemo)(()=>R.slice(R.indexOf(x)),[R,x]),{rect:z,node:F,isOver:K,setNodeRef:W}=(0,l.zM)({id:x,data:P,disabled:j.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...C}}),{active:B,activatorEvent:Y,activeNodeRect:$,attributes:U,setNodeRef:G,listeners:V,isDragging:X,over:H,setA
1ctivatorNodeRef:q,transform:Z}=(0,l.PM)({id:x,data:P,attributes:{...y,...c},disabled:j.draggable}),J=(0,i.jn)(W,G),Q=!!B,ee=Q&&!N&&a(k)&&a(L),et=!I&&X,en=et&&ee?Z:null,er=ee?null!=en?en:(null!=E?E:O)({rects:T,activeNodeRect:$,activeIndex:k,overIndex:L,index:A}):null,el=a(k)&&a(L)?w({id:x,items:R,activeIndex:k,overIndex:L}):A,ei=null==B?void 0:B.id,eo=(0,r.useRef)({activeId:ei,items:R,newIndex:el,containerId:S}),ea=R!==eo.current.items,eu=s({active:B,containerId:S,isDragging:X,isSorting:Q,id:x,index:A,items:R,newIndex:eo.current.newIndex,previousItems:eo.current.items,previousContainerId:eo.current.containerId,transition:D,wasDragging:null!=eo.current.activeId}),es=function(e){let{disabled:t,index:n,node:o,rect:a}=e,[u,s]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,i.Es)(()=>{if(!t&&n!==c.current&&o.current){let e=a.current;if(e){let t=(0,l.Sj)(o.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)&&s(n)}}n!==c.current&&(c.current=n)},[t,n,o,a]),(0,r.useEffect)(()=>{u&&s(null)},[u]),u}({disabled:!eu,index:A,node:F,rect:z});return(0,r.useEffect)(()=>{Q&&eo.current.newIndex!==el&&(eo.current.newIndex=el),S!==eo.current.containerId&&(eo.current.containerId=S),R!==eo.current.items&&(eo.current.items=R)},[Q,el,S,R]),(0,r.useEffect)(()=>{if(ei===eo.current.activeId)return;if(null!=ei&&null==eo.current.activeId){eo.current.activeId=ei;return}let e=setTimeout(()=>{eo.current.activeId=ei},50);return()=>clearTimeout(e)},[ei]),{active:B,activeIndex:k,attributes:U,data:P,rect:z,index:A,newIndex:el,items:R,isOver:K,isSorting:Q,isDragging:X,listeners:V,node:F,overIndex:L,over:H,setNodeRef:J,setActivatorNodeRef:q,setDroppableNodeRef:W,setDraggableNodeRef:G,transform:null!=es?es:er,transition:es||ea&&eo.current.newIndex===A?b:(!et||(0,i.kx)(Y))&&D&&(Q||eu)?i.Ks.Transition.toString({...D,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:n,collisionRect:r,droppableRects:o,droppableContainers:a,over:u,scrollableAncestors:s}}=t;if(E.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let i=o.get(n.id);if(i)switch(e.code){case l.vL.Down:r.top<i.top&&t.push(n);break;case l.vL.Up:r.top>i.top&&t.push(n);break;case l.vL.Left:r.left>i.left&&t.push(n);break;case l.vL.Right:r.left<i.left&&t.push(n)}});let c=(0,l.y$)({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null}),d=(0,l.Vy)(c,"id");if(d===(null==u?void 0:u.id)&&c.length>1&&(d=c[1].id),null!=d){let e=a.get(n.id),t=a.get(d),u=t?o.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&u&&e&&t){let n=(0,l.sl)(c).some((e,t)=>s[t]!==e),o=D(e,t),a=function(e,t){return!!x(e)&&!!x(t)&&!!D(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=n||!o?{x:0,y:0}:{x:a?r.width-u.width:0,y:a?r.height-u.height:0},f={x:u.left,y:u.top};return d.x&&d.y?f:(0,i.Re)(f,d)}}}};function D(e,t){return!!x(e)&&!!x(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},49968:(e,t,n)=>{n.d(t,{$$:()=>g,Es:()=>h,KG:()=>m,Ks:()=>k,Ll:()=>a,Re:()=>D,Sw:()=>i,TW:()=>f,WQ:()=>C,YG:()=>x,YN:()=>v,ZC:()=>y,_q:()=>p,ag:()=>N,e_:()=>S,jn:()=>l,kx:()=>R,l6:()=>o,lk:()=>b,sb:()=>c,wz:()=>s,xZ:()=>d,zk:()=>u});var r=n(12115);function l(){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 i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function o(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function a(e){return"nodeType"in e}function u(e){var t,n;return e?o(e)?e:a(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){let{Document:t}=u(e);return e instanceof t}function c(e){return!o(e)&&e instanceof u(e).HTMLElement}function d(e){return e instanceof u(e).SVGElement}function f(e){return e?o(e)?e.document:a(e)?s(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let h=i?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 v(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return h(()=>{n.current!==e&&(n.current=e)},t),n}function m(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function b(e){let t=p(e),n=(0,r.useRef)(null),l=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,l]}function y(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)(()=>
1{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function E(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];return r.reduce((t,n)=>{for(let[r,l]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*l)}return t},{...t})}}let C=E(1),D=E(-1);function R(e){if(!e)return!1;let{KeyboardEvent:t}=u(e.target);return t&&e instanceof t}function S(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:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let k=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[k.Translate.toString(e),k.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function N(e){return e.matches(M)?e:e.querySelector(M)}},54152:(e,t,n)=>{n.d(t,{Ak:()=>r});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},57268:(e,t,n)=>{n.d(t,{b:()=>s});var r=n(12115),l=n(97602),i=n(95155),o="horizontal",a=["horizontal","vertical"],u=r.forwardRef((e,t)=>{var n;let{decorative:r,orientation:u=o,...s}=e,c=(n=u,a.includes(n))?u:o;return(0,i.jsx)(l.sG.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...s,ref:t})});u.displayName="Separator";var s=u},59105:(e,t,n)=>{n.d(t,{q7:()=>I,bL:()=>L,RG:()=>E});var r=n(12115),l=n(92556),i=n(9966),o=n(94446),a=n(95155),u=n(68946);n(47650);var s=Symbol("radix.slottable");function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}var d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(r.isValidElement(n)){var i;let e,a,u=(i=n,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let n={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?n[r]=(...e)=>{let t=i(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...i}:"className"===r&&(n[r]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(l,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,o.t)(t,u):u),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...i}=e,o=r.Children.toArray(l),u=o.find(c);if(u){let e=u.props.children,l=o.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,a.jsx)(t,{...i,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),l=r.forwardRef((e,r)=>{let{asChild:l,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l?n:t,{...i,ref:r})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),f=n(70222),h=n(23558),p=n(66218),g="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[b,y,w]=(0,i.N)(m),[x,E]=function(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let l=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:l}}),[n,l])}};return l.scopeName=e,[function(t,l){let i=r.createContext(l),o=n.length;n=[...n,l];let u=t=>{let{scope:n,children:l,...u}=t,s=n?.[e]?.[o]||i,c=r.useMemo(()=>u,Object.values(u));return(0,a.jsx)(s.Provider,{value:c,children:l})};return u.displayName=t+"Provider",[u,function(n,a){let u=a?.[e]?.[o]||i,s=r.useContext(u);if(s)return s;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=n.reduce((t,{useScope:n,scopeName:r})=>{let l=n(e)[`__scope${r}`];return{...t,...l}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}(l,...t)]}(m,[w]),[C,D]=x(m),R=r.forwardRef((e,t)=>
1(0,a.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(S,{...e,ref:t})})}));R.displayName=m;var S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:u=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:x,preventScrollOnEntryFocus:E=!1,...D}=e,R=r.useRef(null),S=(0,o.s)(t,R),k=(0,p.jH)(s),[M,N]=(0,h.i)({prop:c,defaultProp:null!=b?b:null,onChange:w,caller:m}),[L,I]=r.useState(!1),O=(0,f.c)(x),j=y(n),A=r.useRef(!1),[P,_]=r.useState(0);return r.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(g,O),()=>e.removeEventListener(g,O)},[O]),(0,a.jsx)(C,{scope:n,orientation:i,dir:k,loop:u,currentTabStopId:M,onItemFocus:r.useCallback(e=>N(e),[N]),onItemShiftTab:r.useCallback(()=>I(!0),[]),onFocusableItemAdd:r.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>_(e=>e-1),[]),children:(0,a.jsx)(d.div,{tabIndex:L||0===P?-1:0,"data-orientation":i,...D,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,l.mK)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,l.mK)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(g,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),E)}}A.current=!1}),onBlur:(0,l.mK)(e.onBlur,()=>I(!1))})})}),k="RovingFocusGroupItem",M=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,tabStopId:s,children:c,...f}=e,h=(0,u.B)(),p=s||h,g=D(k,n),v=g.currentTabStopId===p,m=y(n),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:E}=g;return r.useEffect(()=>{if(i)return w(),()=>x()},[i,w,x]),(0,a.jsx)(b.ItemSlot,{scope:n,id:p,focusable:i,active:o,children:(0,a.jsx)(d.span,{tabIndex:v?0:-1,"data-orientation":g.orientation,...f,ref:t,onMouseDown:(0,l.mK)(e.onMouseDown,e=>{i?g.onItemFocus(p):e.preventDefault()}),onFocus:(0,l.mK)(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let l=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(l))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(l)))return N[l]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=g.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>T(n))}}),children:"function"==typeof c?c({isCurrentTabStop:v,hasTabStop:null!=E}):c})})});M.displayName=k;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var L=R,I=M},86602:(e,t,n)=>{n.d(t,{C1:()=>D,bL:()=>E});var r=n(12115),l=n(94446),i=n(95155),o=n(92556),a=n(23558),u=n(78108),s=n(84288),c=n(76842);n(47650);var d=Symbol("radix.slottable");function f(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var o;let e,a,u=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let n={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?n[r]=(...e)=>{let t=i(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...i}
1:"className"===r&&(n[r]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,l.t)(t,u):u),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...o}=e,a=r.Children.toArray(l),u=a.find(f);if(u){let e=u.props.children,l=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,i.jsx)(t,{...o,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:l,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l?n:t,{...o,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),p="Checkbox",[g,v]=function(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let l=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:l}}),[n,l])}};return l.scopeName=e,[function(t,l){let o=r.createContext(l),a=n.length;n=[...n,l];let u=t=>{let{scope:n,children:l,...u}=t,s=n?.[e]?.[a]||o,c=r.useMemo(()=>u,Object.values(u));return(0,i.jsx)(s.Provider,{value:c,children:l})};return u.displayName=t+"Provider",[u,function(n,i){let u=i?.[e]?.[a]||o,s=r.useContext(u);if(s)return s;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let l=n.reduce((t,{useScope:n,scopeName:r})=>{let l=n(e)[`__scope${r}`];return{...t,...l}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}(l,...t)]}(p),[m,b]=g(p);function y(e){let{__scopeCheckbox:t,checked:n,children:l,defaultChecked:o,disabled:u,form:s,name:c,onCheckedChange:d,required:f,value:h="on",internal_do_not_use_render:g}=e,[v,b]=(0,a.i)({prop:n,defaultProp:null!=o&&o,onChange:d,caller:p}),[y,w]=r.useState(null),[x,E]=r.useState(null),C=r.useRef(!1),D=!y||!!s||!!y.closest("form"),R={checked:v,disabled:u,setChecked:b,control:y,setControl:w,name:c,form:s,value:h,hasConsumerStoppedPropagationRef:C,required:f,defaultChecked:!k(o)&&o,isFormControl:D,bubbleInput:x,setBubbleInput:E};return(0,i.jsx)(m,{scope:t,...R,children:"function"==typeof g?g(R):l})}var w="CheckboxTrigger",x=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,onKeyDown:a,onClick:u,...s}=e,{control:c,value:d,disabled:f,checked:p,required:g,setControl:v,setChecked:m,hasConsumerStoppedPropagationRef:y,isFormControl:x,bubbleInput:E}=b(w,n),C=(0,l.s)(t,v),D=r.useRef(p);return r.useEffect(()=>{let e=null==c?void 0:c.form;if(e){let t=()=>m(D.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,m]),(0,i.jsx)(h.button,{type:"button",role:"checkbox","aria-checked":k(p)?"mixed":p,"aria-required":g,"data-state":M(p),"data-disabled":f?"":void 0,disabled:f,value:d,...s,ref:C,onKeyDown:(0,o.mK)(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.mK)(u,e=>{m(e=>!!k(e)||!e),E&&x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});x.displayName=w;var E=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:l,defaultChecked:o,required:a,disabled:u,value:s,onCheckedChange:c,form:d,...f}=e;return(0,i.jsx)(y,{__scopeCheckbox:n,checked:l,defaultChecked:o,disabled:u,required:a,onCheckedChange:c,name:r,form:d,value:s,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x,{...f,ref:t,__scopeCheckbox:n}),r&&(0,i.jsx)(S,{__scopeCheckbox:n})]})}})});E.displayName=p;var C="CheckboxIndicator",D=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...l}=e,o=b(C,n);return(0,i.jsx)(c.C,{present:r||k(o.checked)||!0===o.checked,children:(0,i.jsx)(h.span,{"data-state":M(o.checked),"data-disabled":o.disabled?"":void 0,...l,ref:t,style:{pointerEvents:"none",...e.style}})})});D.displayName=C;var R="CheckboxBubbleInput",S=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,...o}=e,{control:a,hasConsumerStoppedPropagationRef:c,checked:d,defaultChecked:f,required:p,disabled:g,name:v,value:m,form:y,bubbleInput:w,setBubbleInput:x}=b(R,n),E=(0,l.s)(t,x),C=(0,u.Z)(d),D=(0,s.X)(a);r.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!c.current;if(C!==d&&e){let n=new Event("click",{bubbles:t});w.indeterminate=k(d),e.call(w,!k(d)&&d),w.dispatchEvent(n)}},[w,C,d,c]);let S=r.useRef(!k(d)&&d);return(0,i.jsx)(h.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=f?f:S.current,required:p,disabled:g,name:v,value:m,form:y,...o,tabIndex:-1,ref:E,style:{...o.style,...D,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function k(e){return"indeterminate"===e}function M(e){return k(e)?"indeterminate":e?"checked":"unchecked"}S.displayName=R}}]);

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.