1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[6736],{3375:function(e,t,n){n.d(t,{Mp:function(){return Ue},vL:function(){return J},AN:function(){return se},fp:function(){return C},Sj:function(){return I},fF:function(){return _e},PM:function(){return Xe},zM:function(){return He},MS:function(){return h},FR:function(){return v}});var r=n(6540),o=n(961),i=n(4979);const a={display:"none"};function s(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function c(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.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":o,"aria-atomic":!0},n)}const l=(0,r.createContext)(null);const u={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 "},d={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 f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:p,announcement:g}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),h=(0,i.YG)("DndLiveRegion"),[v,b]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{b(!0)}),[]),function(e){const t=(0,r.useContext)(l);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;p(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&p(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;p(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;p(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;p(t.onDragCancel({active:n,over:r}))}})),[p,t])),!v)return null;const m=r.createElement(r.Fragment,null,r.createElement(s,{id:a,value:f.draggable}),r.createElement(c,{id:h,announcement:g}));return n?(0,o.createPortal)(m,n):m}var p;function g(){}function h(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.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"}(p||(p={}));const b=Object.freeze({x:0,y:0});function m(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function x(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}}const C=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=x(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=m(x(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(y)};function E(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=E(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(w)};function D(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function S(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];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})}}const k=S(1);function N(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const M={ignoreTransform:!1};function I(e,t){void 0===t&&(t=M);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,i.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=N(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,c=e.left-a-(1-o)*parseFloat(n),l=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}(n,t,r))}const{top:r,left:o,width:a,height:s,bottom:c,right:l}=n;return{top:r,left:o,width:a,height:s,bottom:c,right:l}}function O(e){return I(e,{ignoreTransform:!0})}function T(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.sb)(o)||(0,i.xZ)(o))return n;if(n.includes(o))return n;const a=(0,i.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,a)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function A(e){const[t]=T(e,1);return null!=t?t:null}function L(e){return i.Sw&&e?(0,i.l6)(e)?e:(0,i.Ll)(e)?(0,i.wz)(e)||e===(0,i.TW)(e).scrollingElement?window:(0,i.sb)(e)?e:null:null:null}function j(e){return(0,i.l6)(e)?e.scrollX:e.scrollLeft}function F(e){return(0,i.l6)(e)?e.scrollY:e.scrollTop}function z(e){return{x:j(e),y:F(e)}}var B;function P(e){return!(!i.Sw||!e)&&e===document.scrollingElement}function Y(e){const t={x:0,y:0},n=P(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,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"}(B||(B={}));const U={x:.2,y:.2};function W(e,t,n,r,o){let{top:i,left:a,right:s,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=U);const{isTop:l,isBottom:u,isLeft:d,isRight:f}=Y(e),p={x:0,y:0},g={x:0,y:0},h=t.height*o.y,v=t.width*o.x;return!l&&i<=t.top+h?(p.y=B.Backward,g.y=r*Math.abs((t.top+h-i)/h)):!u&&c>=t.bottom-h&&(p.y=B.Forward,g.y=r*Math.abs((t.bottom-h-c)/h)),!f&&s>=t.right-v?(p.x=B.Forward,g.x=r*Math.abs((t.right-v-s)/v)):!d&&a<=t.left+v&&(p.x=B.Backward,g.x=r*Math.abs((t.left+v-a)/v)),{direction:p,speed:g}}function K(e){if(e===document.scrollingElement){const{innerWidth:e,innerHe
1ight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function $(e){return e.reduce(((e,t)=>(0,i.WQ)(e,z(t))),b)}function X(e,t){if(void 0===t&&(t=I),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);A(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const _=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+j(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+F(t)),0)}]];class G{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=T(t),r=$(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of _)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},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 H(e,t){const 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}var Q,J;function V(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"}(Q||(Q={})),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"}(J||(J={}));const ee={start:[J.Space,J.Enter],cancel:[J.Esc],end:[J.Space,J.Enter,J.Tab]},te=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case J.Right:return{...n,x:n.x+25};case J.Left:return{...n,x:n.x-25};case J.Down:return{...n,y:n.y+25};case J.Up:return{...n,y:n.y-25}}};class ne{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new q((0,i.TW)(t)),this.windowListeners=new q((0,i.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Q.Resize,this.handleCancel),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Q.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&X(n),t(b)}handleKeyDown(e){if((0,i.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ee,coordinateGetter:a=te,scrollBehavior:s="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:c,isBottom:l,maxScroll:u,minScroll:f}=Y(n),p=K(n),g={x:Math.min(o===J.Right?p.right-p.width/2:p.right,Math.max(o===J.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(o===J.Down?p.bottom-p.height/2:p.bottom,Math.max(o===J.Down?p.top:p.top+p.height/2,d.y))},h=o===J.Right&&!a||o===J.Left&&!c,v=o===J.Down&&!l||o===J.Up&&!i;if(h&&g.x!==d.x){const e=n.scrollLeft+t.x,i=o===J.Right&&e<=u.x||o===J.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=i?n.scrollLeft-e:o===J.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(v&&g.y!==d.y){const e=n.scrollTop+t.y,i=o===J.Down&&e<=u.y||o===J.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=i?n.scrollTop-e:o===J.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,(0,i.WQ)((0,i.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function re(e){return Boolean(e&&"distance"in e)}function oe(e){return Boolean(e&&"delay"in e)}ne.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ee,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class ie{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.zk)(e);return e instanceof t?e:(0,i.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.TW)(a),this.documentListeners=new q(this.document),this.listeners=new q(n),this.windowListeners=new q((0,i.zk)(a)),this.initialCoordinates=null!=(r=(0,i.e_)(o))?r:b,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(){const{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(Q.Resize,this.handleCancel),this.windowListeners.add(Q.DragStart,V),this.windowListeners.add(Q.VisibilityChange,this.handleCancel),this.windowListeners.add(Q.ContextMenu,V),this.documentListeners.add(Q.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(oe(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(re(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){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Q.Click,Z,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Q.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!r)return;const c=null!=(t=(0,i.e_)(e))?t:b,l=(0,i.Re)(r,c);if(!n&&s){if(re(s)){if(null!=s.tolerance&&H(l,s.tolerance))return this.handleCancel();if(H(l,s.distance))return this.handleStart()}return oe(s)&&H(l,s.tolerance)?this.handleCancel():void this.handlePending(s,l)}e.cancelable&&e.preventDefault(),a(c)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===J.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ae={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class se extends ie{constructor(e){const{event:t}=e,n=(0,i.TW)(t.target);super(e,ae,n)}}se.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)}}];const ce={move:{name:"mousemove"},end:{name:"mouseup"}};var le;!function(e){e[e.RightClick=2]="RightClick"}(le||(le={}));(class extends ie{constructor(e){super(e,ce,(0,i.TW)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==le.RightClick&&(null==r||r({event:n}),!0)}}];const ue={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var de,fe;function pe(e){let{acceleration:t,activator:n=de.Pointer,canScroll:o,draggingRect:a,enabled:s,interval:c=5,order:l=fe.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:p,threshold:g}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=(0,i.ZC)(t);return(0,i.KG)((e=>{if(n||!r||!e)return ge;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[B.Backward]:e.x[B.Backward]||-1===o.x,[B.Forward]:e.x[B.Forward]||1===o.x},y:{[B.Backward]:e.y[B.Backward]||-1===o.y,[B.Forward]:e.y[B.Forward]||1===o.y}}}),[n,t,r])}({delta:p,disabled:!s}),[v,b]=(0,i.$$)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case de.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case de.DraggableRect:return a}}),[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),E=(0,r.useMemo)((()=>l===fe.TreeOrder?[...d].reverse():d),[l,d]);(0,r.useEffect)((()=>{if(s&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=W(e,r,w,t,g);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,v(C,c),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,s,c,JSON.stringify(w),JSON.stringify(h),v,d,E,f,JSON.stringify(g)])}(class extends ie{constructor(e){super(e,ue)}static setup(){return window.addEventListener(ue.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ue.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(de||(de={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
1sedTreeOrder"}(fe||(fe={}));const ge={x:{[B.Backward]:!1,[B.Forward]:!1},y:{[B.Backward]:!1,[B.Forward]:!1}};var he,ve;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(he||(he={})),function(e){e.Optimized="optimized"}(ve||(ve={}));const be=new Map;function me(e,t){return(0,i.KG)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function ye(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function we(e){return new G(I(e),e)}function xe(e,t,n){void 0===t&&(t=we);const[o,a]=(0,r.useState)(null);function s(){a((r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}))}const c=function(e){let{callback:t,disabled:n}=e;const o=(0,i._q)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){s();break}}}}),l=ye({callback:s});return(0,i.Es)((()=>{s(),e?(null==l||l.observe(e),null==c||c.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==c||c.disconnect())}),[e]),o}const Ce=[];function Ee(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.Re)(e,n.current):b}function Re(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const De=[];function Se(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.sb)(t)?t:e}const ke=[{sensor:se,options:{}},{sensor:ne,options:{}}],Ne={current:{}},Me={draggable:{measure:O},droppable:{measure:O,strategy:he.WhileDragging,frequency:ve.Optimized},dragOverlay:{measure:I}};class Ie 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}}const Oe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ie,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Me,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},Te={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Ae=(0,r.createContext)(Te),Le=(0,r.createContext)(Oe);function je(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ie}}}function Fe(e,t){switch(t.type){case p.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case p.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case p.DragEnd:case p.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case p.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ie(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case p.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;
1const a=new Ie(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case p.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ie(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function ze(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Ae),s=(0,i.ZC)(o),c=(0,i.ZC)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&s&&null!=c){if(!(0,i.kx)(s))return;if(document.activeElement===s.target)return;const e=a.get(c);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.ag)(e);if(t){t.focus();break}}}))}}),[o,t,a,c,s]),null}function Be(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Pe=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ye;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ye||(Ye={}));const Ue=(0,r.memo)((function(e){var t,n,a,s;let{id:c,accessibility:u,autoScroll:d=!0,children:g,sensors:h=ke,collisionDetection:v=R,measuring:m,modifiers:y,...w}=e;const x=(0,r.useReducer)(Fe,void 0,je),[C,E]=x,[S,N]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.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]}(),[M,O]=(0,r.useState)(Ye.Uninitialized),j=M===Ye.Initialized,{draggable:{active:F,nodes:B,translate:Y},droppable:{containers:U}}=C,W=null!=F?B.get(F):null,K=(0,r.useRef)({initial:null,translated:null}),X=(0,r.useMemo)((()=>{var e;return null!=F?{id:F,data:null!=(e=null==W?void 0:W.data)?e:Ne,rect:K}:null}),[F,W]),_=(0,r.useRef)(null),[q,H]=(0,r.useState)(null),[Q,J]=(0,r.useState)(null),V=(0,i.YN)(w,Object.values(w)),Z=(0,i.YG)("DndDescribedBy",c),ee=(0,r.useMemo)((()=>U.getEnabled()),[U]),te=(ne=m,(0,r.useMemo)((()=>({draggable:{...Me.draggable,...null==ne?void 0:ne.draggable},droppable:{...Me.droppable,...null==ne?void 0:ne.droppable},dragOverlay:{...Me.dragOverlay,...null==ne?void 0:ne.dragOverlay}})),[null==ne?void 0:ne.draggable,null==ne?void 0:ne.droppable,null==ne?void 0:ne.dragOverlay]));var ne;const{droppableRects:re,measureDroppableContainers:oe,measuringScheduled:ie}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[s,c]=(0,r.useState)(null),{frequency:l,measure:u,strategy:d}=a,f=(0,r.useRef)(e),p=function(){switch(d){case he.Always:return!1;case he.BeforeDragging:return n;default:return!n}}(),g=(0,i.YN)(p),h=(0,r.useCallback)((function(e){void 0===e&&(e=[]),g.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[g]),v=(0,r.useRef)(null),b=(0,i.KG)((t=>{if(p&&!n)return be;if(!t||t===be||f.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new G(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,s,n,p,u]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{p||h()}),[n,p]),(0,r.useEffect)((()=>{s&&s.length>0&&c(null)}),[JSON.stringify(s)]),(0,r.useEffect)((()=>{p||"number"!=typeof l||null!==v.current||(v.current=setTimeout((()=>{h(),v.current=null}),l))}),[l,p,h,...o]),{droppableRects:b,measureDroppableContainers:h,measuringScheduled:null!=s}}(ee,{dragging:j,dependencies:[Y.x,Y.y],config:te.droppable}),ae=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.KG)((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(B,F),se=(0,r.useMemo)((()=>Q?(0,i.e_)(Q):null),[Q]),ce=function(){const e=!1===(null==q?void 0:q.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=j&&!e&&!t;if("object"==typeof d)return{...d,enabled:n};return{enabled:n}}(),le=function(e,t){return me(e,t)}(ae,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const s=(0,r.useRef)(!1),{x:c,y:l}="boolean"==typeof a?{x:a,y:a}:a;(0,i.Es)((()=>
1{if(!c&&!l||!t)return void(s.current=!1);if(s.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=D(n(e),o);if(c||(r.x=0),l||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=A(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,c,l,o,n])}({activeNode:null!=F?B.get(F):null,config:ce.layoutShiftCompensation,initialRect:le,measure:te.draggable.measure});const ue=xe(ae,te.draggable.measure,le),de=xe(ae?ae.parentElement:null),fe=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:re,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=U.getNodeFor(null==(t=fe.current.over)?void 0:t.id),ve=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=ye({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.sb)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),s=(0,r.useCallback)((e=>{const n=Se(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[c,l]=(0,i.lk)(s);return(0,r.useMemo)((()=>({nodeRef:c,rect:n,setRef:l})),[n,c,l])}({measure:te.dragOverlay.measure}),we=null!=(n=ve.nodeRef.current)?n:ae,Ie=j?null!=(a=ve.rect)?a:ue:null,Oe=Boolean(ve.nodeRef.current&&ve.rect),Te=D(Ue=Oe?null:ue,me(Ue));var Ue;const We=Re(we?(0,i.zk)(we):null),Ke=function(e){const t=(0,r.useRef)(e),n=(0,i.KG)((n=>e?n&&n!==Ce&&e&&t.current&&e.parentNode===t.current.parentNode?n:T(e):Ce),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(j?null!=ge?ge:ae:null),$e=function(e,t){void 0===t&&(t=I);const[n]=e,o=Re(n?(0,i.zk)(n):null),[a,s]=(0,r.useState)(De);function c(){s((()=>e.length?e.map((e=>P(e)?o:new G(t(e),e))):De))}const l=ye({callback:c});return(0,i.Es)((()=>{null==l||l.disconnect(),c(),e.forEach((e=>null==l?void 0:l.observe(e)))}),[e]),a}(Ke),Xe=Be(y,{transform:{x:Y.x-Te.x,y:Y.y-Te.y,scaleX:1,scaleY:1},activatorEvent:Q,active:X,activeNodeRect:ue,containerNodeRect:de,draggingNodeRect:Ie,over:fe.current.over,overlayNodeRect:ve.rect,scrollableAncestors:Ke,scrollableAncestorRects:$e,windowRect:We}),_e=se?(0,i.WQ)(se,Y):null,Ge=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=L(e.target);t&&n((e=>e?(e.set(t,z(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=L(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,z(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=L(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.WQ)(e,t)),b):$(e):b),[e,t])}(Ke),qe=Ee(Ge),He=Ee(Ge,[ue]),Qe=(0,i.WQ)(Xe,qe),Je=Ie?k(Ie,Xe):null,Ve=X&&Je?v({active:X,collisionRect:Je,droppableRects:re,droppableContainers:ee,pointerCoordinates:_e}):null,Ze=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}(Ve,"id"),[et,tt]=(0,r.useState)(null),nt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Oe?Xe:(0,i.WQ)(Xe,He),null!=(s=null==et?void 0:et.rect)?s:null,ue),rt=(0,r.useRef)(null),ot=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==_.current)return;const i=B.get(_.current);if(!i)return;const a=e.nativeEvent,s=new n({active:_.current,activeNode:i,event:a,options:r,context:fe,onAbort(e){if(!B.get(e))return;const{onDragAbort:t}=V.current,n={id:e};null==t||t(n),S({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!B.get(e))return;const{onDragPending:o}=V.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),S({type:"onDragPending",event:i})},onStart(e){const t=_.current;if(null==t)return;const n=B.get(t);if(!n)return;const{onDragStart:r}=V.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:K}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),O(Ye.Initializing),E({type:p.DragStart,initialCoordinates:e,active:t}),S({type:"onDragStart",event:i}),H(rt.current),J(a)}))},onMove(e){E({type:p.DragMove,coordinates:e})},onEnd:c(p.DragEnd),onCancel:c(p.DragCancel)});function c(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=fe.current;let s=null;if(t&&i){const{cancelDrop:o}=V.current;if(s={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===p.DragEnd&&"function"==typeof o){await Promise.resolve(o(s))&&(e=p.DragCancel)}}_.current=null,(0,o.unstable_batchedUpdates)((()=>{E({type:e}),O(Ye.Uninitialized),tt(null),H(null),J(null),rt.current=null;const t=e===p.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=V.current[t];null==e||e(s),S({type:t,event:s})}}))}}rt.current=s}),[B]),it=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=B.get(r);if(null!==_.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},_.current=r,ot(n,t))}),[B,ot]),at=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(h,it);!function(e){(0,r.useEffect)((()=>
1{if(!i.Sw)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(h),(0,i.Es)((()=>{ue&&M===Ye.Initializing&&O(Ye.Initialized)}),[ue,M]),(0,r.useEffect)((()=>{const{onDragMove:e}=V.current,{active:t,activatorEvent:n,collisions:r,over:i}=fe.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Qe.x,y:Qe.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),S({type:"onDragMove",event:a})}))}),[Qe.x,Qe.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=fe.current;if(!e||null==_.current||!t||!i)return;const{onDragOver:a}=V.current,s=r.get(Ze),c=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:c};(0,o.unstable_batchedUpdates)((()=>{tt(c),null==a||a(l),S({type:"onDragOver",event:l})}))}),[Ze]),(0,i.Es)((()=>{fe.current={activatorEvent:Q,active:X,activeNode:ae,collisionRect:Je,collisions:Ve,droppableRects:re,draggableNodes:B,draggingNode:we,draggingNodeRect:Ie,droppableContainers:U,over:et,scrollableAncestors:Ke,scrollAdjustedTranslate:Qe},K.current={initial:Ie,translated:Je}}),[X,ae,Ve,Je,B,we,Ie,re,U,et,Ke,Qe]),pe({...ce,delta:Y,draggingRect:Je,pointerCoordinates:_e,scrollableAncestors:Ke,scrollableAncestorRects:$e});const st=(0,r.useMemo)((()=>({active:X,activeNode:ae,activeNodeRect:ue,activatorEvent:Q,collisions:Ve,containerNodeRect:de,dragOverlay:ve,draggableNodes:B,droppableContainers:U,droppableRects:re,over:et,measureDroppableContainers:oe,scrollableAncestors:Ke,scrollableAncestorRects:$e,measuringConfiguration:te,measuringScheduled:ie,windowRect:We})),[X,ae,ue,Q,Ve,de,ve,B,U,re,et,oe,Ke,$e,te,ie,We]),ct=(0,r.useMemo)((()=>({activatorEvent:Q,activators:at,active:X,activeNodeRect:ue,ariaDescribedById:{draggable:Z},dispatch:E,draggableNodes:B,over:et,measureDroppableContainers:oe})),[Q,at,X,ue,E,Z,B,et,oe]);return r.createElement(l.Provider,{value:N},r.createElement(Ae.Provider,{value:ct},r.createElement(Le.Provider,{value:st},r.createElement(Pe.Provider,{value:nt},g)),r.createElement(ze,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:Z}))})),We=(0,r.createContext)(null),Ke="button",$e="Draggable";function Xe(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const s=(0,i.YG)($e),{activators:c,activatorEvent:l,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:p,over:g}=(0,r.useContext)(Ae),{role:h=Ke,roleDescription:v="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Pe:We),[w,x]=(0,i.lk)(),[C,E]=(0,i.lk)(),R=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(c,t),D=(0,i.YN)(n);(0,i.Es)((()=>(p.set(t,{id:t,key:s,node:w,activatorNode:C,data:D}),()=>{const e=p.get(t);e&&e.key===s&&p.delete(t)})),[p,t]);return{active:u,activatorEvent:l,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:h,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||h!==Ke)||void 0,"aria-roledescription":v,"aria-describedby":f.draggable})),[o,h,b,m,v,f.draggable]),isDragging:m,listeners:o?void 0:R,node:w,over:g,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function _e(){return(0,r.useContext)(Le)}const Ge="Droppable",qe={timeout:25};function He(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const s=(0,i.YG)(Ge),{active:c,dispatch:l,over:u,measureDroppableContainers:d}=(0,r.useContext)(Ae),f=(0,r.useRef)({disabled:n}),g=(0,r.useRef)(!1),h=(0,r.useRef)(null),v=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...qe,...a},w=(0,i.YN)(null!=m?m:o),x=ye({callback:(0,r.useCallback)((()=>{g.current?(null!=v.current&&clearTimeout(v.current),v.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),v.current=null}),y)):g.current=!0}),[y]),disabled:b||!c}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),g.current=!1),e&&x.observe(e))}),[x]),[E,R]=(0,i.lk)(C),D=(0,i.YN)(t);return(0,r.useEffect)((()=>{x&&E.current&&(x.disconnect(),g.current=!1,x.observe(E.current))}),[E,x]),(0,r.useEffect)((()=>(l({type:p.RegisterDroppable,element:{id:o,key:s,disabled:n,node:E,rect:h,data:D}}),()=>l({type:p.UnregisterDroppable,key:s,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(l({type:p.SetDroppableDisabled,id:o,key:s,disabled:n}),f.current.disabled=n)}),[o,s,n,l]),{active:c,rect:h,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:R}}},3627:function(e,t,n){n.d(t,{_G:function(){return d},be:function(){return a},gB:function(){return g},gl:function(){return x}});var r=n(6540),o=n(3375),i=n(4979);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const l=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),s=t[o],c=i[o];return c&&s?{x:c.left-s.left,y:c.top-s.top,scaleX:c.width/s.width,scaleY:c.height/s.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top,...u}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-c,...u}:o<n&&o>=a?{x:0,y:s.height+c,...u}:{x:0,y:0,...u}};
1const f="Sortable",p=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function g(e){let{children:t,id:n,items:a,strategy:c=l,disabled:u=!1}=e;const{active:d,dragOverlay:g,droppableRects:h,over:v,measureDroppableContainers:b}=(0,o.fF)(),m=(0,i.YG)(f,n),y=Boolean(null!==g.rect),w=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),x=null!=d,C=d?w.indexOf(d.id):-1,E=v?w.indexOf(v.id):-1,R=(0,r.useRef)(w),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}(w,R.current),S=-1!==E&&-1===C||D,k=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,i.Es)((()=>{D&&x&&b(w)}),[D,w,x,b]),(0,r.useEffect)((()=>{R.current=w}),[w]);const N=(0,r.useMemo)((()=>({activeIndex:C,containerId:m,disabled:k,disableTransforms:S,items:w,overIndex:E,useDragOverlay:y,sortedRects:s(w,h),strategy:c})),[C,m,k.draggable,k.droppable,S,w,E,h,y,c]);return r.createElement(p.Provider,{value:N},t)}const h=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},v=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:c,transition:l}=e;return!(!l||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===c))},b={duration:200,easing:"ease"},m="transform",y=i.Ks.Transition.toString({property:m,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=v,attributes:n,disabled:a,data:s,getNewIndex:l=h,id:u,strategy:d,resizeObserverConfig:f,transition:g=b}=e;const{items:x,containerId:C,activeIndex:E,disabled:R,disableTransforms:D,sortedRects:S,overIndex:k,useDragOverlay:N,strategy:M}=(0,r.useContext)(p),I=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,R),O=x.indexOf(u),T=(0,r.useMemo)((()=>({sortable:{containerId:C,index:O,items:x},...s})),[C,s,O,x]),A=(0,r.useMemo)((()=>x.slice(x.indexOf(u))),[x,u]),{rect:L,node:j,isOver:F,setNodeRef:z}=(0,o.zM)({id:u,data:T,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...f}}),{active:B,activatorEvent:P,activeNodeRect:Y,attributes:U,setNodeRef:W,listeners:K,isDragging:$,over:X,setActivatorNodeRef:_,transform:G}=(0,o.PM)({id:u,data:T,attributes:{...w,...n},disabled:I.draggable}),q=(0,i.jn)(z,W),H=Boolean(B),Q=H&&!D&&c(E)&&c(k),J=!N&&$,V=J&&Q?G:null,Z=Q?null!=V?V:(null!=d?d:M)({rects:S,activeNodeRect:Y,activeIndex:E,overIndex:k,index:O}):null,ee=c(E)&&c(k)?l({id:u,items:x,activeIndex:E,overIndex:k}):O,te=null==B?void 0:B.id,ne=(0,r.useRef)({activeId:te,items:x,newIndex:ee,containerId:C}),re=x!==ne.current.items,oe=t({active:B,containerId:C,isDragging:$,
1isSorting:H,id:u,index:O,items:x,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:g,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:s}=e;const[c,l]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.Es)((()=>{if(!t&&n!==u.current&&a.current){const e=s.current;if(e){const t=(0,o.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)&&l(n)}}n!==u.current&&(u.current=n)}),[t,n,a,s]),(0,r.useEffect)((()=>{c&&l(null)}),[c]),c}({disabled:!oe,index:O,node:j,rect:L});return(0,r.useEffect)((()=>{H&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),x!==ne.current.items&&(ne.current.items=x)}),[H,ee,C,x]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(null!=te&&null==ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:B,activeIndex:E,attributes:U,data:T,rect:L,index:O,newIndex:ee,items:x,isOver:F,isSorting:H,isDragging:$,listeners:K,node:j,overIndex:k,over:X,setNodeRef:q,setActivatorNodeRef:_,setDroppableNodeRef:z,setDraggableNodeRef:W,transform:null!=ie?ie:Z,transition:function(){if(ie||re&&ne.current.newIndex===O)return y;if(J&&!(0,i.kx)(P)||!g)return;if(H||oe)return i.Ks.Transition.toString({...g,property:m});return}()}}o.vL.Down,o.vL.Right,o.vL.Up,o.vL.Left},4979:function(e,t,n){n.d(t,{$$:function(){return h},Es:function(){return p},KG:function(){return b},Ks:function(){return k},Ll:function(){return s},Re:function(){return R},Sw:function(){return i},TW:function(){return f},WQ:function(){return E},YG:function(){return x},YN:function(){return v},ZC:function(){return y},_q:function(){return g},ag:function(){return M},e_:function(){return S},jn:function(){return o},kx:function(){return D},l6:function(){return a},lk:function(){return m},sb:function(){return u},wz:function(){return l},xZ:function(){return d},zk:function(){return c}});var r=n(6540);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function c(e){var t,n;return e?a(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function l(e){const{Document:t}=c(e);return e instanceof t}function u(e){return!a(e)&&e instanceof c(e).HTMLElement}function d(e){return e instanceof c(e).SVGElement}function f(e){return e?a(e)?e.document:s(e)?l(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const p=i?r.useLayoutEffect:r.useEffect;function g(e){const t=(0,r.useRef)(e);return p((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function h(){const 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]);const n=(0,r.useRef)(e);return p((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=g(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const E=C(1),R=C(-1);function D(e){if(!e)return!1;const{KeyboardEvent:t}=c(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=c(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const k=Object.freeze({Translate:{toString(e){if(!e)return;const{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;const{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}}}),N="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(N)?e:e.querySelector(N)}},8798:function(e,t,n){n.d(t,{A:function(){return N}});var r={};n.r(r),n.d(r,{exclude:function(){return k},extract:function(){return x},parse:function(){return C},parseUrl:function(){return R},pick:function(){return S},stringify:function(){return E},stringifyUrl:function(){return D}});const o="%[a-f0-9]{2}",i=new RegExp("("+o+")|([^%]+?)","gi"),a=new RegExp("("+o+")+","gi");function s(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],s(n),s(r))}function c(e){try{return decodeURIComponent(e)}catch{let t=e.match(i)||[];for(let n=1;n<t.length;n++)t=(e=s(t,n).join("")).match(i)||[];return e}}function l(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=a.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=c(n[0]);e!==n[0]&&(t[n[0]]=e)}n=a.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const n of r)e=e.replace(new RegExp(n,"g"),t[n]);return e}(e)}}function u(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}function d(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}const f=e=>null==e,p=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),g=Symbol("encodeFragmentIdentifier");function h(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function v(e,t){return t.encode?t.strict?p(e):encodeURIComponent(e):e}function b(e,t){return t.decode?l(e):e}function m(e){return Array.isArray(e)?e.sort():"object"==typeof e?m(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function y(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function w(e,t,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function x(e){const t=(e=y(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function C(e,t){h((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&b(n,e).includes(e.arrayFormatSeparator);n=i?b(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>b(t,e))):null===n?n:b(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?b(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>b(t,e)));void 0!==r[t]?r[t]=[...r[t],...i]:r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[i,a]=d(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:b(a,t),n(b(i,t),a,r)}for(const[e,n]of Object.entries(r))if("object"==typeof n&&null!==n&&"string"!==t.types[e])for(const[r,o]of Object.entries(n)){const i=t.types[e]?t.types[e].replace("[]",""):void 0;n[r]=w(o,t,i)}else"object"==typeof n&&null!==n&&"string"===t.types[e]?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=w(n,t,t.types[e]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?m(n):n,e}),Object.create(null))}function E(e,t){if(!e)return"";h((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&f(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[v(t,e),"[",o,"]"].join("")]:[...n,[v(t,e),"[",v(o,e),"]=",v
1(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[v(t,e),"[]"].join("")]:[...n,[v(t,e),"[]=",v(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[v(t,e),":list="].join("")]:[...n,[v(t,e),":list=",v(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[v(n,e),t,v(o,e)].join("")]:[[r,v(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,v(t,e)]:[...n,[v(t,e),"=",v(r,e)].join("")]}}(t),o={};for(const[t,r]of Object.entries(e))n(t)||(o[t]=r);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?v(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?v(n,t)+"[]":o.reduce(r(n),[]).join("&"):v(n,t)+"="+v(o,t)})).filter((e=>e.length>0)).join("&")}function R(e,t){t={decode:!0,...t};let[n,r]=d(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:C(x(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:b(r,t)}:{}}}function D(e,t){t={encode:!0,strict:!0,[g]:!0,...t};const n=y(e.url).split("?")[0]||"";let r=E({...C(x(e.url),{sort:!1}),...e.query},t);r&&=`?${r}`;let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[g]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function S(e,t,n){n={parseFragmentIdentifier:!0,[g]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=R(e,n);return D({url:r,query:u(o,t),fragmentIdentifier:i},n)}function k(e,t,n){return S(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var N=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.