PageSourceSearch

https://palsocool.win/_next/static/chunks/19-cd61f54242643eac.js

js palsocool.win collected 2026-10-04 08:11:16 UTC 48,117 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19],{553:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(636).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},1925:(e,t,n)=>{n.d(t,{Mp:()=>eA,vL:()=>a,uN:()=>en,AN:()=>eo,y$:()=>O,Sj:()=>P,Vy:()=>L,sl:()=>W,fF:()=>eW,PM:()=>ej,zM:()=>eY,MS:()=>C,FR:()=>S});var r,l,i,a,o,u,s,c,d,f,h=n(2115),g=n(7650),p=n(3981);let v={display:"none"};function b(e){let{id:t,value:n}=e;return h.createElement("div",{id:t,style:v},n)}function m(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: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,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(b,{id:r,value:l.draggable}),h.createElement(m,{id:o,announcement:a}));return n?(0,g.createPortal)(f,n):f}function D(){}function C(e,t){return(0,h.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function S(){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 M=Object.freeze({x:0,y:0});function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function k(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function 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}let O=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),a=Number((l.reduce((e,t,r)=>e+function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}(n[r],t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(R)},I=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 a=t.width*t.height,o=e.width*e.height,u=(l-r)*(i-n);return Number((u/(a+o-u)).toFixed(4))}return 0}(i,t);n>0&&l.push({id:r,data:{droppableContainer:e,value:n}})}}return l.sort(k)};function N(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:M}let A=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 P(e,t){void 0===t&&(t=z);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,p.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:a,y:o}=r,u=e.left-a-(1-l)*parseFloat(n),s=e.top-o-(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:a,bottom:o,right:u}=n;return{top:r,left:l,width:i,height:a,bottom:o,right:u}}function j(e){return P(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,p.wz)(l)&&null!=l.scrollingElement&&!n.includes(l.scrollingElement))return n.push(l.scrollingElement),n;if(!(0,p.sb)(l)||(0,p.xZ)(l)||n.includes(l))return n;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 n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(l,a)&&n.push(l),void 0===(i=a)&&(i=(0,p.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 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 F(e){return(0,p.l6)(e)?e.scrollX:e.scrollLeft}function K(e){return(0,p.l6)(e)?e.scrollY:e.scrollTop}function _(e){return{x:F(e),y:K(e)}}function U(e){return!!p.Sw&&!!e&&e===document.scrollingElement}function X(e){let t={x:0,y:0},n=U(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 G={x:.2,y:.2};function V(e){return e.reduce((e,t)=>
1(0,p.WQ)(e,_(t)),M)}let $=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+F(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+K(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 n=W(t),r=V(n);for(let[t,l,i]of(this.rect={...e},this.width=e.width,this.height=e.height,$))for(let e of l)Object.defineProperty(this,e,{get:()=>{let l=i(n),a=r[t]-l;return this.rect[e]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class H{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 J(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function Q(e){e.preventDefault()}function Z(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 ee={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter,a.Tab]},et=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case a.Right:return{...n,x:n.x+25};case a.Left:return{...n,x:n.x-25};case a.Down:return{...n,y:n.y+25};case a.Up:return{...n,y:n.y-25}}};class en{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new H((0,p.TW)(t)),this.windowListeners=new H((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,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=P),!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(M)}handleKeyDown(e){if((0,p.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:l=ee,coordinateGetter:i=et,scrollBehavior:o="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}:M;this.referenceCoordinates||(this.referenceCoordinates=c);let d=i(e,{active:t,context:n.current,currentCoordinates:c});if(d){let t=(0,p.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),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:n,right:r,bottom:l}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:l,width:e.clientWidth,height:e.clientHeight}}(n),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&&!s,b=l===a.Down&&!c||l===a.Up&&!i;if(v&&p.x!==d.x){let e=n.scrollLeft+t.x,i=l===a.Right&&e<=f.x||l===a.Left&&e>=h.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:o});i?r.x=n.scrollLeft-e:r.x=l===a.Right?n.scrollLeft-f.x:n.scrollLeft-h.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(b&&p.y!==d.y){let e=n.scrollTop+t.y,i=l===a.Down&&e<=f.y||l===a.Up&&e>=h.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:o});i?r.y=n.scrollTop-e:r.y=l===a.Down?n.scrollTop-f.y:n.scrollTop-h.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,(0,p.WQ)((0,p.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function er(e){return!!(e&&"distance"in e)}function el(e){return!!(e&&"delay"in e)}en.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ee,onActivation:l}=t,{active:i}=n,{code:a}=e.nativeEvent;if(r.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 ei{constructor(e,t,n){var r;void 0===n&&(n=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 H(this.document),this.listeners=new H(n),this.windowListeners=new H((0,p.zk)(i)),this.initialCoordinates=null!=(r=(0,p.e_)(l))?r:M,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,Q),this.windowListeners.add(i.VisibilityChange,this.handleCancel),this.windowListeners.add(i.ContextMenu,Q),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(el(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(er(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,Z,{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:a}}=l;if(!r)return;let o=null!=(t=(0,p.e_)(e))?t:M,u=(0,p.Re)(r,o);if(!n&&a){if(er(a)){if(null!=a.tolerance&&J(u,a.tolerance))return this.handleCancel();if(J(u,a.distance))return this.handleStart()}return el(a)&&J(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 ea={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eo extends ei{constructor(e){let{event:t}=e;super(e,ea,(0,p.TW)(t.target))}}eo.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let eu={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(o||(o={}));class es extends ei{constructor(e){super(e,eu,(0,p.TW)(e.event.target))}}es.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==o.RightClick&&(null==r||r({event:n}),!0)}}];let ec={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ed extends ei{constructor(e){super(e,ec)}static setup(){return window.addEventListener(ec.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ec.move.name,e)};function e(){}}}ed.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches: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 ef={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 eh=new Map;function eg(e,t){return(0,p.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ep(e){let{callback:t,disabled:n}=e,r=(0,p._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 ev(e){return new q(P(e),e)}function eb(e,t,n){void 0===t&&(t=ev);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 a=function(e){let{callback:t,disabled:n}=e,r=(0,p._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}}}}),o=ep({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]),r}let em=[];function ey(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!==M;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,p.Re)(e,n.current):M}function ew(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 ex=[],eE=[{sensor:eo,options:{}},{sensor:en,options:{}}],eD={current:{}},eC={draggable:{measure:j},droppable:{measure:j,strategy:c.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:P}};class eS extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eM={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eS,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:D},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eC,measureDroppableContainers:D,windowRect:null,measuringScheduled:!1},eR={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:D,draggableNodes:new Map,over:null,measureDroppableContainers:D},ek=(0,h.createContext)(eR),eT=(0,h.createContext)(eM);function eL(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eS}}}function eO(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 eS(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 a=new eS(e.droppable.containers);return a.set(n,{...i,disabled:l}),{...e,droppable:{...e.droppable,containers:a}}}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 eS(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function eI(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:l}=(0,h.useContext)(ek),i=(0,p.ZC)(r),a=(0,p.ZC)(null==n?void 0:n.id);return(0,h.useEffect)(()=>{if(!t&&!r&&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:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,p.ag)(e);if(t){t.focus();break}}})}},[r,t,l,a,i]),null}let eN=(0,h.createContext)({...M,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(f||(f={}));let eA=(0,h.memo)(function(e){var t,n,i,a,o,d;let{id:v,accessibility:b,autoScroll:m=!0,children:w,sensors:x=eE,collisionDetection:D=I,measuring:C,modifiers:S,...R}=e,[k,T]=(0,h.useReducer)(eO,void 0,eL),[O,z]=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]}(),[j,F]=(0,h.useState)(f.Uninitialized),K=j===f.Initialized,{draggable:{active:$,nodes:H,translate:J},droppable:{containers:Q}}=k,Z=null!=$?H.get($):null,ee=(0,h.useRef)({initial:null,translated:null}),et=(0,h.useMemo)(()=>{var e;return null!=$?{id:$,data:null!=(e=null==Z?void 0:Z.data)?e:eD,rect:ee}:null},[$,Z]),en=(0,h.useRef)(null),[er,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),es=(0,h.useMemo)(()=>Q.getEnabled(),[Q]),ec=(0,h.useMemo)(()=>({draggable:{...eC.draggable,...null==C?void 0:C.draggable},droppable:{...eC.droppable,...null==C?void 0:C.droppable},dragOverlay:{...eC.dragOverlay,...null==C?void 0:C.dragOverlay}}),[null==C?void 0:C.draggable,null==C?void 0:C.droppable,null==C?void 0:C.dragOverlay]),{droppableRects:ed,measureDroppableContainers:ev,measuringScheduled:eS}=function(e,t){let{dragging:n,dependencies:r,config:l}=t,[i,a]=(0,h.useState)(null),{frequency:o,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}}(),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]),b=(0,h.useRef)(null),m=(0,p.KG)(t=>{if(f&&!n)return eh;if(!t||t===eh||d.current!==e||null!=i){let t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>
10&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new q(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&&a(null)},[JSON.stringify(i)]),(0,h.useEffect)(()=>{f||"number"!=typeof o||null!==b.current||(b.current=setTimeout(()=>{v(),b.current=null},o))},[o,f,v,...r]),{droppableRects:m,measureDroppableContainers:v,measuringScheduled:null!=i}}(es,{dragging:K,dependencies:[J.x,J.y],config:ec.droppable}),eM=function(e,t){let n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,p.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(H,$),eR=(0,h.useMemo)(()=>ei?(0,p.e_)(ei):null,[ei]),eA=function(){let e=(null==er?void 0:er.autoScrollEnabled)===!1,t="object"==typeof m?!1===m.enabled:!1===m,n=K&&!e&&!t;return"object"==typeof m?{...m,enabled:n}:{enabled:n}}(),ez=eg(eM,ec.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:l=!0}=e,i=(0,h.useRef)(!1),{x:a,y:o}="boolean"==typeof l?{x:l,y:l}:l;(0,p.Es)(()=>{if(!a&&!o||!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=N(n(e),r);if(a||(l.x=0),o||(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,a,o,r,n])}({activeNode:null!=$?H.get($):null,config:eA.layoutShiftCompensation,initialRect:ez,measure:ec.draggable.measure});let eP=eb(eM,ec.draggable.measure,ez),ej=eb(eM?eM.parentElement:null),eW=(0,h.useRef)({activatorEvent:null,active:null,activeNode:eM,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:Q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eB=Q.getNodeFor(null==(t=eW.current.over)?void 0:t.id),eY=function(e){let{measure:t}=e,[n,r]=(0,h.useState)(null),l=ep({callback:(0,h.useCallback)(e=>{for(let{target:n}of e)if((0,p.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,p.sb)(t)?t:e}(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),r(n?t(n):null)},[t,l]),[a,o]=(0,p.lk)(i);return(0,h.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}({measure:ec.dragOverlay.measure}),eF=null!=(n=eY.nodeRef.current)?n:eM,eK=K?null!=(i=eY.rect)?i:eP:null,e_=!!(eY.nodeRef.current&&eY.rect),eU=function(e){let t=eg(e);return N(e,t)}(e_?null:eP),eX=ew(eF?(0,p.zk)(eF):null),eG=function(e){let t=(0,h.useRef)(e),n=(0,p.KG)(n=>e?n&&n!==em&&e&&t.current&&e.parentNode===t.current.parentNode?n:W(e):em,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}(K?null!=eB?eB:eM:null),eV=function(e,t){void 0===t&&(t=P);let[n]=e,r=ew(n?(0,p.zk)(n):null),[l,i]=(0,h.useState)(ex);function a(){i(()=>e.length?e.map(e=>U(e)?r:new q(t(e),e)):ex)}let o=ep({callback:a});return(0,p.Es)(()=>{null==o||o.disconnect(),a(),e.forEach(e=>null==o?void 0:o.observe(e))},[e]),l}(eG),e$=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}(S,{transform:{x:J.x-eU.x,y:J.y-eU.y,scaleX:1,scaleY:1},activatorEvent:ei,active:et,activeNodeRect:eP,containerNodeRect:ej,draggingNodeRect:eK,over:eW.current.over,overlayNodeRect:eY.rect,scrollableAncestors:eG,scrollableAncestorRects:eV,windowRect:eX}),eq=eR?(0,p.WQ)(eR,J):null,eH=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,_(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{let t=r.current;if(e!==t){i(t);let a=e.map(e=>{let t=Y(e);return t?(t.addEventListener("scroll",l,{passive:!0}),[t,_(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function 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,p.WQ)(e,t),M):V(e):M,[e,t])}(eG),eJ=ey(eH),eQ=ey(eH,[eP]),eZ=(0,p.WQ)(e$,eJ),e0=eK?A(eK,e$):null,e1=et&&e0?D({active:et,collisionRect:e0,droppableRects:ed,droppableContainers:es,pointerCoordinates:eq}):null,e2=L(e1,"id"),[e5,e6]=(0,h.useState)(null),e3=(o=e_?e$:(0,p.WQ)(e$,eQ),d=null!=(a=null==e5?void 0:e5.rect)?a:null,{...o,scaleX:d&&eP?d.width/eP.width:1,scaleY:d&&eP?d.height/eP.height:1}),e4=(0,h.useRef)(null),e7=(0,h.useCallback)((e,t)=>{let{sensor:n,options:l}=t;if(null==en.current)return;let i=H.get(en.current);if(!i)return;let a=e.nativeEvent,o=new n({active:en.current,activeNode:i,event:a,options:l,context:eW,onAbort(e){if(!H.get(e))return;let{onDragAbort:t}=eo.current,n={id:e};null==t||t(n),O({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!H.get(e))return;let{onDragPending:l}
1=eo.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==l||l(i),O({type:"onDragPending",event:i})},onStart(e){let t=en.current;if(null==t)return;let n=H.get(t);if(!n)return;let{onDragStart:l}=eo.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:ee}};(0,g.unstable_batchedUpdates)(()=>{null==l||l(i),F(f.Initializing),T({type:r.DragStart,initialCoordinates:e,active:t}),O({type:"onDragStart",event:i}),el(e4.current),ea(a)})},onMove(e){T({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}=eW.current,o=null;if(t&&i){let{cancelDrop:u}=eo.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:l},e===r.DragEnd&&"function"==typeof u&&await Promise.resolve(u(o))&&(e=r.DragCancel)}en.current=null,(0,g.unstable_batchedUpdates)(()=>{T({type:e}),F(f.Uninitialized),e6(null),el(null),ea(null),e4.current=null;let t=e===r.DragEnd?"onDragEnd":"onDragCancel";if(o){let e=eo.current[t];null==e||e(o),O({type:t,event:o})}})}}e4.current=o},[H]),e8=(0,h.useCallback)((e,t)=>(n,r)=>{let l=n.nativeEvent,i=H.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,e7(n,t))},[H,e7]),e9=(0,h.useMemo)(()=>x.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.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)(()=>{eP&&j===f.Initializing&&F(f.Initialized)},[eP,j]),(0,h.useEffect)(()=>{let{onDragMove:e}=eo.current,{active:t,activatorEvent:n,collisions:r,over:l}=eW.current;if(!t||!n)return;let i={active:t,activatorEvent:n,collisions:r,delta:{x:eZ.x,y:eZ.y},over:l};(0,g.unstable_batchedUpdates)(()=>{null==e||e(i),O({type:"onDragMove",event:i})})},[eZ.x,eZ.y]),(0,h.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:l}=eW.current;if(!e||null==en.current||!t||!l)return;let{onDragOver:i}=eo.current,a=r.get(e2),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:n,delta:{x:l.x,y:l.y},over:o};(0,g.unstable_batchedUpdates)(()=>{e6(o),null==i||i(u),O({type:"onDragOver",event:u})})},[e2]),(0,p.Es)(()=>{eW.current={activatorEvent:ei,active:et,activeNode:eM,collisionRect:e0,collisions:e1,droppableRects:ed,draggableNodes:H,draggingNode:eF,draggingNodeRect:eK,droppableContainers:Q,over:e5,scrollableAncestors:eG,scrollAdjustedTranslate:eZ},ee.current={initial:eK,translated:e0}},[et,eM,e1,e0,H,eF,eK,ed,Q,e5,eG,eZ]),function(e){let{acceleration:t,activator:n=u.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:c=s.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:g,delta:v,threshold:b}=e,m=function(e){let{delta:t,disabled:n}=e,r=(0,p.ZC)(t);return(0,p.KG)(e=>{if(n||!r||!e)return ef;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[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:!a}),[y,w]=(0,p.$$)(),x=(0,h.useRef)({x:0,y:0}),E=(0,h.useRef)({x:0,y:0}),D=(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]),C=(0,h.useRef)(null),S=(0,h.useCallback)(()=>{let e=C.current;if(!e)return;let t=x.current.x*E.current.x,n=x.current.y*E.current.y;e.scrollBy(t,n)},[]),M=(0,h.useMemo)(()=>c===s.TreeOrder?[...f].reverse():f,[c,f]);(0,h.useEffect)(()=>{if(!a||!f.length||!D)return void w();for(let e of M){if((null==r?void 0:r(e))===!1)continue;let n=g[f.indexOf(e)];if(!n)continue;let{direction:i,speed:a}=function(e,t,n,r,i){let{top:a,left:o,right:u,bottom:s}=n;void 0===r&&(r=10),void 0===i&&(i=G);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=X(e),g={x:0,y:0},p={x:0,y:0},v={height:t.height*i.y,width:t.width*i.x};
1return!c&&a<=t.top+v.height?(g.y=l.Backward,p.y=r*Math.abs((t.top+v.height-a)/v.height)):!d&&s>=t.bottom-v.height&&(g.y=l.Forward,p.y=r*Math.abs((t.bottom-v.height-s)/v.height)),!h&&u>=t.right-v.width?(g.x=l.Forward,p.x=r*Math.abs((t.right-v.width-u)/v.width)):!f&&o<=t.left+v.width&&(g.x=l.Backward,p.x=r*Math.abs((t.left+v.width-o)/v.width)),{direction:g,speed:p}}(e,n,D,t,b);for(let e of["x","y"])m[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0){w(),C.current=e,y(S,o),x.current=a,E.current=i;return}}x.current={x:0,y:0},E.current={x:0,y:0},w()},[t,S,r,w,a,o,JSON.stringify(D),JSON.stringify(m),y,f,M,g,JSON.stringify(b)])}({...eA,delta:J,draggingRect:e0,pointerCoordinates:eq,scrollableAncestors:eG,scrollableAncestorRects:eV});let te=(0,h.useMemo)(()=>({active:et,activeNode:eM,activeNodeRect:eP,activatorEvent:ei,collisions:e1,containerNodeRect:ej,dragOverlay:eY,draggableNodes:H,droppableContainers:Q,droppableRects:ed,over:e5,measureDroppableContainers:ev,scrollableAncestors:eG,scrollableAncestorRects:eV,measuringConfiguration:ec,measuringScheduled:eS,windowRect:eX}),[et,eM,eP,ei,e1,ej,eY,H,Q,ed,e5,ev,eG,eV,ec,eS,eX]),tt=(0,h.useMemo)(()=>({activatorEvent:ei,activators:e9,active:et,activeNodeRect:eP,ariaDescribedById:{draggable:eu},dispatch:T,draggableNodes:H,over:e5,measureDroppableContainers:ev}),[ei,e9,et,eP,T,eu,H,e5,ev]);return h.createElement(y.Provider,{value:z},h.createElement(ek.Provider,{value:tt},h.createElement(eT.Provider,{value:te},h.createElement(eN.Provider,{value:e3},w)),h.createElement(eI,{disabled:(null==b?void 0:b.restoreFocus)===!1})),h.createElement(E,{...b,hiddenTextDescribedById:eu}))}),ez=(0,h.createContext)(null),eP="button";function ej(e){let{id:t,data:n,disabled:r=!1,attributes:l}=e,i=(0,p.YG)("Draggable"),{activators:a,activatorEvent:o,active:u,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,h.useContext)(ek),{role:g=eP,roleDescription:v="draggable",tabIndex:b=0}=null!=l?l:{},m=(null==u?void 0:u.id)===t,y=(0,h.useContext)(m?eN:ez),[w,x]=(0,p.lk)(),[E,D]=(0,p.lk)(),C=(0,h.useMemo)(()=>a.reduce((e,n)=>{let{eventName:r,handler:l}=n;return e[r]=e=>{l(e,t)},e},{}),[a,t]),S=(0,p.YN)(n);return(0,p.Es)(()=>(d.set(t,{id:t,key:i,node:w,activatorNode:E,data:S}),()=>{let e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:u,activatorEvent:o,activeNodeRect:s,attributes:(0,h.useMemo)(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":!!m&&g===eP||void 0,"aria-roledescription":v,"aria-describedby":c.draggable}),[r,g,b,m,v,c.draggable]),isDragging:m,listeners:r?void 0:C,node:w,over:f,setNodeRef:x,setActivatorNodeRef:D,transform:y}}function eW(){return(0,h.useContext)(eT)}let eB={timeout:25};function eY(e){let{data:t,disabled:n=!1,id:l,resizeObserverConfig:i}=e,a=(0,p.YG)("Droppable"),{active:o,dispatch:u,over:s,measureDroppableContainers:c}=(0,h.useContext)(ek),d=(0,h.useRef)({disabled:n}),f=(0,h.useRef)(!1),g=(0,h.useRef)(null),v=(0,h.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...eB,...i},w=(0,p.YN)(null!=m?m:l),x=ep({callback:(0,h.useCallback)(()=>{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:b||!o}),E=(0,h.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[D,C]=(0,p.lk)(E),S=(0,p.YN)(t);return(0,h.useEffect)(()=>{x&&D.current&&(x.disconnect(),f.current=!1,x.observe(D.current))},[D,x]),(0,h.useEffect)(()=>(u({type:r.RegisterDroppable,element:{id:l,key:a,disabled:n,node:D,rect:g,data:S}}),()=>u({type:r.UnregisterDroppable,key:a,id:l})),[l]),(0,h.useEffect)(()=>{n!==d.current.disabled&&(u({type:r.SetDroppableDisabled,id:l,key:a,disabled:n}),d.current.disabled=n)},[l,a,n,u]),{active:o,rect:g,isOver:(null==s?void 0:s.id)===l,node:D,over:s,setNodeRef:C}}},2506:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(2115);let l=e=>{let t,n=new Set,r=(e,r)=>{let l="function"==typeof e?e(t):e;if(!Object.is(l,t)){let e=t;t=(null!=r?r:"object"!=typeof l||null===l)?l:Object.assign({},t,l),n.forEach(n=>n(t,e))}},l=()=>t,i={setState:r,getState:l,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,l,i);return i},i=e=>{let t=(e=>e?l(e):l)(e),n=e=>(function(e,t=e=>e){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},a=e=>e?i(e):i},3981:(e,t,n)=>{n.d(t,{$$:()=>p,Es:()=>h,KG:()=>b,Ks:()=>R,Ll:()=>o,Re:()=>C,Sw:()=>i,TW:()=>f,WQ:()=>D,YG:()=>x,YN:()=>v,ZC:()=>y,_q:()=>g,ag:()=>T,e_:()=>M,jn:()=>l,kx:()=>S,l6:()=>a,lk:()=>m,sb:()=>c,wz:()=>s,xZ:()=>d,zk:()=>u});var r=n(2115);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 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,n;return e?a(e)?e:o(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!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)?s(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}let h=i?r.useLayoutEffect:r.useEffect;function g(e){let t=(0,r.useRef)(e);return h(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function p(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function 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 b(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function m(e){let t=g(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 D=E(1),C=E(-1);function S(e){if(!e)return!1;let{KeyboardEvent:t}=u(e.target);return t&&e instanceof t}function M(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 R=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[R.Translate.toString(e),R.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),k="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function T(e){return e.matches(k)?e:e.querySelector(k)}},5320:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}});let r=n(767),l=n(8087),i=n(7197)},6445:(e,t,n)=>{n.d(t,{JR:()=>x,be:()=>a,gB:()=>d,gl:()=>m,kL:()=>u});var r=n(2115),l=n(1925),i=n(3981);function a(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function o(e){return null!==e&&e>=0}let u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:l}=e,i=a(t,r,n),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},s="Sortable",c=r.createContext({activeIndex:-1,containerId:s,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function d(e){let{children:t,id:n,items:a,strategy:o=u,disabled:d=!1}=e,{active:f,dragOverlay:h,droppableRects:g,over:p,measureDroppableContainers:v}=(0,l.fF)(),b=(0,i.YG)(s,n),m=null!==h.rect,y=(0,r.useMemo)(()=>a.map(e=>"object"==typeof e&&"id"in e?e.id:e),[a]),w=null!=f,x=f?y.indexOf(f.id):-1,E=p?y.indexOf(p.id):-1,D=(0,r.useRef)(y),C=!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,D.current),S=-1!==E&&-1===x||C,M="boolean"==typeof d?{draggable:d,droppable:d}:d;(0,i.Es)(()=>{C&&w&&v(y)},[C,y,w,v]),(0,r.useEffect)(()=>{D.current=y},[y]);let R=(0,r.useMemo)(()=>({activeIndex:x,containerId:b,disabled:M,disableTransforms:S,items:y,overIndex:E,useDragOverlay:m,sortedRects:y.reduce((e,t,n)=>{let r=g.get(t);return r&&(e[n]=r),e},Array(y.length)),strategy:o}),[x,b,M.draggable,M.droppable,S,y,E,g,m,o]);return r.createElement(c.Provider,{value:R},t)}let f=e=>{let{id:t,items:n,activeIndex:r,overIndex:l}=e;return a(n,r,l).indexOf(t)},h=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:l,items:i,newIndex:a,previousItems:o,previousContainerId:u,transition:s}=e;return!!s&&!!r&&(o===i||l!==a)&&(!!n||a!==l&&t===u)},g={duration:200,easing:"ease"},p="transform",v=i.Ks.Transition.toString({property:p,duration:0,easing:"linear"}),b={roleDescription:"sortable"};function m(e){var t,n,a,u;let{animateLayoutChanges:s=h,attributes:d,disabled:m,data:y,getNewIndex:w=f,id:x,strategy:E,resizeObserverConfig:D,transition:C=g}=e,{items:S,containerId:M,activeIndex:R,disabled:k,disableTransforms:T,sortedRects:L,overIndex:O,useDragOverlay:I,strategy:N}=(0,r.useContext)(c),A=(t=m,n=k,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(a=null==t?void 0:t.draggable)?a:n.draggable,droppable:null!=(u=null==t?void 0:t.droppable)?u:n.droppable}),z=S.indexOf(x),P=(0,r.useMemo)(()=>({sortable:{containerId:M,index:z,items:S},...y}),[M,y,z,S]),j=(0,r.useMemo)(()=>S.slice(S.indexOf(x)),[S,x]),{rect:W,node:B,isOver:Y,setNodeRef:F}=(0,l.zM)({id:x,data:P,disabled:A.droppable,resizeObserverConfig:{updateMeasurementsFor:j,...D}}),{active:K,activatorEvent:_,activeNodeRect:U,attributes:X,setNodeRef:G,listeners:V,isDragging:$,over:q,setActivatorNodeRef:H,transform:J}=(0,l.PM)({id:x,data:P,attributes:{...b,...d},disabled:A.draggable}),Q=(0,i.jn)(F,G),Z=!!K,ee=Z&&!T&&o(R)&&o(O),et=!I&&$,en=et&&ee?J:null,er=ee?null!=en?en:(null!=E?E:N)({rects:L,activeNodeRect:U,activeIndex:R,overIndex:O,index:z}):null,el=o(R)&&o(O)?w({id:x,items:S,activeIndex:R,overIndex:O}):z,ei=null==K?void 0:K.id,ea=(0,r.useRef)({activeId:ei,items:S,newIndex:el,containerId:M}),eo=S!==ea.current.items,eu=s({active:K,containerId:M,isDragging:$,
1isSorting:Z,id:x,index:z,items:S,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:C,wasDragging:null!=ea.current.activeId}),es=function(e){let{disabled:t,index:n,node:a,rect:o}=e,[u,s]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,i.Es)(()=>{if(!t&&n!==c.current&&a.current){let e=o.current;if(e){let t=(0,l.Sj)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==c.current&&(c.current=n)},[t,n,a,o]),(0,r.useEffect)(()=>{u&&s(null)},[u]),u}({disabled:!eu,index:z,node:B,rect:W});return(0,r.useEffect)(()=>{Z&&ea.current.newIndex!==el&&(ea.current.newIndex=el),M!==ea.current.containerId&&(ea.current.containerId=M),S!==ea.current.items&&(ea.current.items=S)},[Z,el,M,S]),(0,r.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:K,activeIndex:R,attributes:X,data:P,rect:W,index:z,newIndex:el,items:S,isOver:Y,isSorting:Z,isDragging:$,listeners:V,node:B,overIndex:O,over:q,setNodeRef:Q,setActivatorNodeRef:H,setDroppableNodeRef:F,setDraggableNodeRef:G,transform:null!=es?es:er,transition:es||eo&&ea.current.newIndex===z?v:(!et||(0,i.kx)(_))&&C&&(Z||eu)?i.Ks.Transition.toString({...C,property:p}):void 0}}function y(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 w=[l.vL.Down,l.vL.Right,l.vL.Up,l.vL.Left],x=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:o,over:u,scrollableAncestors:s}}=t;if(w.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];o.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let i=a.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:a,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=o.get(n.id),t=o.get(d),u=t?a.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),a=E(e,t),o=function(e,t){return!!y(e)&&!!y(t)&&!!E(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=n||!a?{x:0,y:0}:{x:o?r.width-u.width:0,y:o?r.height-u.height:0},f={x:u.left,y:u.top};return d.x&&d.y?f:(0,i.Re)(f,d)}}}};function E(e,t){return!!y(e)&&!!y(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},6713:(e,t,n)=>{n.d(t,{w:()=>a});var r=n(8310);function l(e,t){if(e instanceof Promise)throw Error(t)}var i=n(8310);function a(e){let t="object"==typeof e.client?e.client:{},n="object"==typeof e.server?e.server:{},a=e.shared,o=e.runtimeEnv?e.runtimeEnv:{...i.env,...e.experimental__runtimeEnv};return function(e){let t=e.runtimeEnvStrict??e.runtimeEnv??r.env;if(e.emptyStringAsUndefined)for(let[e,n]of Object.entries(t))""===n&&delete t[e];if(e.skipValidation)return t;let n="object"==typeof e.client?e.client:{},i="object"==typeof e.server?e.server:{},a="object"==typeof e.shared?e.shared:{},o=e.isServer??("undefined"==typeof window||"Deno"in window),u=o?{...i,...a,...n}:{...n,...a},s=e.createFinalSchema?.(u,o)["~standard"].validate(t)??function(e,t){let n={},r=[];for(let i in e){let a=e[i]["~standard"].validate(t[i]);if(l(a,`Validation must be synchronous, but ${i} returned a Promise.`),a.issues){r.push(...a.issues.map(e=>({...e,message:e.message,path:[i,...e.path??[]]})));continue}n[i]=a.value}return r.length?{issues:r}:{value:n}}(u,t);l(s,"Validation must be synchronous");let c=e.onValidationError??(e=>{throw console.error("❌ Invalid environment variables:",e),Error("Invalid environment variables")}),d=e.onInvalidAccess??(()=>{throw Error("❌ Attempted to access a server-side environment variable on the client")}
1);return s.issues?c(s.issues):new Proxy(Object.assign((e.extends??[]).reduce((e,t)=>Object.assign(e,t),{}),s.value),{get(t,n){if("string"==typeof n&&"__esModule"!==n&&"$$typeof"!==n)return o||e.clientPrefix&&(n.startsWith(e.clientPrefix)||n in a)?Reflect.get(t,n):d(n)}})}({...e,shared:a,client:t,server:n,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:o})}},7747:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(636).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);

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.