PageSourceSearch

https://masca.io/_next/static/chunks/6445-970bfac818992f4f.js

js masca.io collected 2026-10-04 13:24:29 UTC 59,526 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6445],{22605:function(t,e,i){i.d(e,{r:function(){return s}});var s=i(24889).c},52020:function(t,e,i){i.d(e,{Y:function(){return D}});var s=i(68726),r=i(24876),o=i(56225),a=i(25284),n=(0,o.tv)({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...a.Dh],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none",...a.Dh],wrapper:[]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}},placement:{top:{},start:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex"},end:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex flex-row-reverse"},bottom:{wrapper:"flex flex-col-reverse"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1,disableAnimation:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:r.J.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:r.J.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:r.J.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:r.J.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:r.J.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}}
1,{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),l=i(19686),d=i(13359),u=i(78737),h=i(276),c=i(16913),m=i(16215);function p(t,e){let i=null;if(t){for(i=t.getFirstKey();e.has(i)&&i!==t.getLastKey();)i=t.getKeyAfter(i);e.has(i)&&i===t.getLastKey()&&(i=t.getFirstKey())}return i}var g=i(45923);class f{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}getKeyAbove(t){return this.getPreviousKey(t)}getKeyBelow(t){return this.getNextKey(t)}isDisabled(t){var e,i;return this.disabledKeys.has(t)||!!(null===(i=this.collection.getItem(t))||void 0===i?void 0:null===(e=i.props)||void 0===e?void 0:e.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return null!=t&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return null!=t&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}getNextKey(t){do null==(t=this.collection.getKeyAfter(t))&&(t=this.collection.getFirstKey());while(this.isDisabled(t));return t}getPreviousKey(t){do null==(t=this.collection.getKeyBefore(t))&&(t=this.collection.getLastKey());while(this.isDisabled(t));return t}constructor(t,e,i,s=new Set){this.collection=t,this.flipDirection="rtl"===e&&"horizontal"===i,this.disabledKeys=s}}var y=i(78569),v=i(71208),x=i(41508),b=i(93760),P=i(96957);function D(t){var e;let[i,r]=(0,s.oe)(t,n.variantKeys),{ref:o,as:a,className:D,classNames:T,children:w,disableCursorAnimation:S,motionProps:A,isVertical:L=!1,shouldSelectOnPressUp:E=!0,...R}=i,j=a||"div",M="string"==typeof j,k=(0,l.gy)(o),C=function(t){var e;let i=(0,m.B)({...t,suppressTextValueWarning:!0,defaultSelectedKey:null!==(e=t.defaultSelectedKey)&&void 0!==e?e:p(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)}),{selectionManager:s,collection:r,selectedKey:o}=i,a=(0,c.useRef)(o);return(0,c.useEffect)(()=>
1{let t=o;(s.isEmpty||!r.getItem(t))&&null!=(t=p(r,i.disabledKeys))&&s.setSelectedKeys([t]),(null==t||null!=s.focusedKey)&&(s.isFocused||t===a.current)||s.setFocusedKey(t),a.current=t}),{...i,isDisabled:t.isDisabled||!1}}({children:w,...R}),{tabListProps:B}=function(t,e,i){let{orientation:s="horizontal",keyboardActivation:r="automatic"}=t,{collection:o,selectionManager:a,disabledKeys:n}=e,{direction:l}=(0,b.j)(),d=(0,c.useMemo)(()=>new f(o,l,s,n),[o,n,s,l]),{collectionProps:u}=(0,P.g)({ref:i,selectionManager:a,keyboardDelegate:d,selectOnFocus:"automatic"===r,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),h=(0,y.Me)();(0,g.p).set(e,h);let m=(0,v.b)({...t,id:h});return{tabListProps:{...(0,x.d)(u,m),role:"tablist","aria-orientation":s,tabIndex:void 0}}}(R,C,k),V=(0,c.useMemo)(()=>n({...r,className:D,...L?{placement:"start"}:{}}),[(0,d.Xx)(r),D,L]),K=(0,u.W)(null==T?void 0:T.base,D),U=(0,c.useMemo)(()=>({state:C,slots:V,classNames:T,motionProps:A,listRef:k,shouldSelectOnPressUp:E,disableCursorAnimation:S,isDisabled:null==t?void 0:t.isDisabled,disableAnimation:null==t?void 0:t.disableAnimation}),[C,V,k,A,S,E,null==t?void 0:t.disableAnimation,null==t?void 0:t.isDisabled,T]),O=(0,c.useCallback)(t=>({"data-slot":"base",className:V.base({class:(0,u.W)(K,null==t?void 0:t.className)}),...(0,x.d)((0,h.z)(R,{enabled:M}),t)}),[K,R,V]),F=null!=(e=r.placement)?e:L?"start":"top",N=(0,c.useCallback)(t=>({"data-slot":"tabWrapper",className:V.wrapper({class:(0,u.W)(null==T?void 0:T.wrapper,null==t?void 0:t.className)}),"data-placement":F,"data-vertical":L||"start"===F||"end"===F?"vertical":"horizontal"}),[T,V,F,L]),I=(0,c.useCallback)(t=>({ref:k,"data-slot":"tabList",className:V.tabList({class:(0,u.W)(null==T?void 0:T.tabList,null==t?void 0:t.className)}),...(0,x.d)(B,t)}),[k,B,T,V]);return{Component:j,domRef:k,state:C,values:U,getBaseProps:O,getTabListProps:I,getWrapperProps:N}}},71724:function(t,e,i){i.d(e,{n:function(){return ek}});var s=i(68726),r=i(19686),o=i(78737),a=i(41508),n=i(45923),l=i(71208),d=i(8539),u=i(77304),h=i(59228),c=(0,s.Gp)((t,e)=>{var i,s,c;let{as:m,state:p,className:g,slots:f,classNames:y,...v}=t,x=(0,r.gy)(e),{tabPanelProps:b}=function(t,e,i){var s;let r=(0,d.p)(i)?void 0:0,o=(0,n.O)(e,null!==(s=t.id)&&void 0!==s?s:null==e?void 0:e.selectedKey,"tabpanel"),u=(0,l.b)({...t,id:o,"aria-labelledby":(0,n.O)(e,null==e?void 0:e.selectedKey,"tab")});return{tabPanelProps:(0,a.d)(u,{tabIndex:r,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}(t,p,x),{focusProps:P,isFocused:D,isFocusVisible:T}=(0,u.F)(),w=p.selectedItem,S=null==(i=null==w?void 0:w.props)?void 0:i.children,A=(0,o.W)(null==y?void 0:y.panel,g,null==(s=null==w?void 0:w.props)?void 0:s.className);return S?(0,h.jsx)(m||"div",{ref:x,"data-focus":D,"data-focus-visible":T,...(0,a.d)(b,P,v),className:null==(c=f.panel)?void 0:c.call(f,{class:A}),"data-slot":"panel",children:S}):null});c.displayName="NextUI.TabPanel";var m=i(276),p=i(73555),g=i(83741),f=i(7057),y=i(80300),v=i(20112),x=i(72784),b=i(66516),P=i(31553),D=i(37583),T=i(54618),w=i(88364),S=i(99145),A=i(31029),L=i(22585),E=i(32482);let R=(t,e)=>Math.abs(t-e);var j=i(87137),M=i(91976);class k{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=V(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(R(t.x,e.x)**2+R(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:o}=i,{timestamp:a}=M.frameData;this.history.push({...o,timestamp:a});let{onStart:n,onMove:l}=this.handlers;s||(n&&n(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=C(e,this.transformPagePoint),M.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=V("pointercancel"===t.type?this.lastMoveEventInfo:C(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!(0,j.D)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let o=C((0,S.Q)(t),this.transformPagePoint),{point:a}=o,{timestamp:n}=M.frameData;this.history=[{...a,timestamp:n}];let{onSessionStart:l}=e;l&&l(t,V(o,this.history)),this.removeListeners=(0,E.z)((0,L.a)(this.contextWindow,"pointermove",this.handlePointerMove),(0,L.a)(this.contextWindow,"pointerup",this.handlePointerUp),(0,L.a)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,M.Pn)(this.updatePoint)}}function C(t,e){return e?{point:e(t.point)}:t}function B(t,e){return{x:t.x-e.x,y:t.y-e.y}}function V({point:t},e){return{point:t,delta:B(t,K(e)),offset:B(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=K(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>(0,A.w)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,A.X)(r.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let a={x:(r.x-s.x)/o,y:(r.y-s.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function K(t){return t[t.length-1]}var U=i(41523),O=i(49936),F=i(19411),N=i(79514);function I(t){return t.max-t.min}function W(t,e=0,i=.01){return Math.abs(t-e)<=i}function z(t,e,i,s=.5){t.origin=s,t.originPoint=(0,N.t)(e.min,e.max,t.origin),t.scale=I(i)/I(e),(W(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,N.t)(i.min,i.max,t.origin)-t.originPoint,(W(t.translate)||isNaN(t.translate))&&(t.translate=0)}function $(t,e,i,s){z(t.x,e.x,i.x,s?s.originX:void 0),z(t.y,e.y,i.y,s?s.originY:void 0)}function G(t,e,i){t.min=i.min+e.min,t.max=t.min+I(e)}function Y(t,e,i){t.min=e.min-i.min,t.max=t.min+I(e)}function X(t,e,i){Y(t.x,e.x,i.x),Y(t.y,e.y,i.y)}var H=i(62326);function _(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function Z(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function J(t,e,i){return{min:Q(t,e),max:Q(t,i)}}function Q(t,e){return"number"==typeof t?t:t[e]||0}var q=i(33822);function tt(t){return[t("x"),t("y")]}var te=i(24694),ti=i(25291),ts=i(26689),tr=i(25029),to=i(47225);let ta=({current:t})=>t?t.ownerDocument.defaultView:null,tn=new WeakMap;class tl{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,q.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new k(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor((0,S.Q)(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,U.fJ)(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tt(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=I(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&M.Wi.postRender(()=>r(t,e));let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:o}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>tt(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:ta(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&M.Wi.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!td(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,N.t)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,N.t)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&(0,O.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:_(t.x,i,r),y:_(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:J(t,"left","right"),y:J(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&tt(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,O.I)(e))return!1;let s=e.current;(0,w.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=(0,te.z)(s,r.root,this.visualElement.getTransformPagePoint()),a={x:Z((t=r.layout.layoutBox).x,o.x),y:Z(t.y,o.y)};if(i){let t=i((0,ti.z2)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,ti.i8)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),n=this.constraints||{};return Promise.all(tt(a=>{if(!td(a,e,this.currentDirection))return;let l=n&&n[a]||{};o&&(l={min:0,max:0});let d={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,d)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,to.v)(t,i,0,e,this.visualElement))}stopAnimation(){tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tt(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tt(e=>{let{drag:i}=this.getProps();if(!td(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e];r.set(t[e]-(0,N.t)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,O.I)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tt(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=I(t),r=I(e);return r>s?i=(0,F.Y)(e.min,e.max-s,t.min):s>r&&(i=(0,F.Y)(t.min,t.max-r,e.min)),(0,H.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tt(e=>{if(!td(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];i.set((0,N.t)(r,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;tn.set(this.visualElement,this);let t=this.visualElement.current,e=(0,L.a)(t,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),i=()=>{let{dragConstraints:t}=this.getProps();(0,O.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,r=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),i();let o=(0,ts.E)(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tt(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function td(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tu extends D.L{constructor(t){super(t),this.removeGroupControls=T.Z,this.removeListeners=T.Z,this.controls=new tl(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let th=t=>(e,i)=>{t&&M.Wi.postRender(()=>t(e,i))};class tc extends D.L{constructor(){super(...arguments),this.removePointerDownListener=T.Z}onPointerDown(t){this.session=new k(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ta(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:th(t),onStart:th(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&M.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=(0,L.a)(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tm=i(16913),tp=i(69850),tg=i(6967),tf=i(84278);let ty={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tr.px.test(t))return t;t=parseFloat(t)}let i=tv(t,e.target.x),s=tv(t,e.target.y);return`${i}% ${s}%`}};var tb=i(15052),tP=i(59856),tD=i(12666);class tT extends tm.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;(0,tP.B)(tS),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ty.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,o=i.projection;return o&&(o.isPresent=r,s||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===r||(r?o.promote():o.relegate()||M.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tD.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tw(t){let[e,i]=function(){let t=(0,tm.useContext)(tp.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,r=(0,tm.useId)();return(0,tm.useEffect)(()=>s(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),s=(0,tm.useContext)(tg.p);return(0,h.jsx)(tT,{...t,layoutGroup:s,switchLayoutGroup:(0,tm.useContext)(tf.g),isPresent:e,safeToRemove:i})}let tS={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tb.P.parse(t);if(s.length>5)return t;let r=tb.P.createTransformer(t),o="number"!=typeof s[0]?1:0,a=i.x.scale*e.x,n=i.y.scale*e.y;s[0+o]/=a,s[1+o]/=n;let l=(0,N.t)(a,n,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),r(s)}}};var tA=i(45722),tL=i(78077);let tE=["TopLeft","TopRight","BottomLeft","BottomRight"],tR=tE.length,tj=t=>"string"==typeof t?parseFloat(t):t,tM=t=>"number"==typeof t||tr.px.test(t);function tk(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tC=tV(0,.5,tL.Bn),tB=tV(.5,.95,T.Z);function tV(t,e,i){return s=>s<t?0:s>e?1:i((0,F.Y)(t,e,s))}function tK(t,e){t.min=e.min,t.max=e.max}function tU(t,e){tK(t.x,e.x),tK(t.y,e.y)}var tO=i(98259);function tF(t,e,i,s,r){return t-=e,t=(0,tO.q2)(t,1/i,s),void 0!==r&&(t=(0,tO.q2)(t,1/r,s)),t}function tN(t,e,[i,s,r],o,a){!function(t,e=0,i=1,s=.5,r,o=t,a=t){if(tr.aQ.test(e)&&(e=parseFloat(e),e=(0,N.t)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let n=(0,N.t)(o.min,o.max,s);t===o&&(n-=e),t.min=tF(t.min,e,i,n,r),t.max=tF(t.max,e,i,n,r)}(t,e[i],e[s],e[r],e.scale,o,a)}let tI=["x","scaleX","originX"],tW=["y","scaleY","originY"];function tz(t,e,i,s){tN(t.x,e,tI,i?i.x:void 0,s?s.x:void 0),tN(t.y,e,tW,i?i.y:void 0,s?s.y:void 0)}var t$=i(32083);function tG(t){return 0===t.translate&&1===t.scale}function tY(t){return tG(t.x)&&tG(t.y)}function tX(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function tH(t){return I(t.x)/I(t.y)}var t_=i(95782);class tZ{constructor(){this.members=[]}add(t){(0,t_.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,t_.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tJ(t,e,i){let s="",r=t.x.translate/e.x,o=t.y.translate/e.y,a=(null==i?void 0:i.z)||0;if((r||o||a)&&(s=`translate3d(${r}px, ${o}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:a,skewY:n}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),o&&(s+=`rotateY(${o}deg) `),a&&(s+=`skewX(${a}deg) `),n&&(s+=`skewY(${n}deg) `)}let n=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==n||1!==l)&&(s+=`scale(${n}, ${l})`),s||"none"}var tQ=i(67162);let tq=(t,e)=>t.depth-e.depth;class t0{constructor(){this.children=[],this.isDirty=!1}add(t){(0,t_.y4)(this.children,t),this.isDirty=!0}remove(t){(0,t_.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tq),this.isDirty=!1,this.children.forEach(t)}}var t1=i(73425),t2=i(91120),t5=i(19515),t6=i(98668);let t3=["","X","Y","Z"],t7={visibility:"hidden"},t8=0,t9={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function t4(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function et({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=t8++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,t9.totalNodes=t9.resolvedTargetDeltas=t9.recalculatedProjection=0,this.nodes.forEach(es),this.nodes.forEach(eu),this.nodes.forEach(eh),this.nodes.forEach(er),window.MotionDebug&&window.MotionDebug.record(t9)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new t0)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tA.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t2.X.now(),s=({timestamp:e})=>{let r=e-i;r>=250&&((0,M.Pn)(s),t(r-250))};return M.Wi.read(s,!0),()=>(0,M.Pn)(s)}
1(s,0),ty.hasAnimatedSinceResize&&(ty.hasAnimatedSinceResize=!1,this.nodes.forEach(ed))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||ey,{onLayoutAnimationStart:a,onLayoutAnimationComplete:n}=o.getProps(),l=!this.targetLayout||!tX(this.targetLayout,s)||i,d=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||d||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,d);let e={...(0,t$.e)(r,"layout"),onPlay:a,onComplete:n};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,M.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ec),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ea);return}this.isUpdating||this.nodes.forEach(en),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(el),this.nodes.forEach(ee),this.nodes.forEach(ei),this.clearAllSnapshots();let t=t2.X.now();M.frameData.delta=(0,H.u)(0,1e3/60,t-M.frameData.timestamp),M.frameData.timestamp=t,M.frameData.isProcessing=!0,M.S6.update.process(M.frameData),M.S6.preRender.process(M.frameData),M.S6.render.process(M.frameData),M.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tD.g.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(eo),this.sharedNodes.forEach(em)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,q.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:s(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!tY(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||(0,tQ.ud)(this.latestValues)||o)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),eb((e=s).x),eb(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,q.dO)();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&((0,tO.am)(e.x,i.offset.x),(0,tO.am)(e.y,i.offset.y)),e}removeElementScroll(t){let e=(0,q.dO)();tU(e,t);for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:o}=s;if(s!==this.root&&r&&o.layoutScroll){if(r.isRoot){tU(e,t);let{scroll:i}=this.root;i&&((0,tO.am)(e.x,-i.offset.x),(0,tO.am)(e.y,-i.offset.y))}(0,tO.am)(e.x,r.offset.x),(0,tO.am)(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=(0,q.dO)();tU(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,tO.D2)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tQ.ud)(s.latestValues)&&(0,tO.D2)(i,s.latestValues)}return(0,tQ.ud)(this.latestValues)&&(0,tO.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,q.dO)();tU(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tQ.ud)(i.latestValues))continue;(0,tQ.Lj)(i.latestValues)&&i.updateSnapshot();let s=(0,q.dO)();tU(s,i.measurePageBox()),tz(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tQ.ud)(this.latestValues)&&tz(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(t||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:n,layoutId:l}=this.options;if(this.layout&&(n||l)){if(this.resolvedRelativeTargetAt=M.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,q.dO)(),this.relativeTargetOrigin=(0,q.dO)(),X(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,q.dO)(),this.targetWithTransforms=(0,q.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,G(i.x,s.x,r.x),G(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tU(this.target,this.layout.layoutBox),(0,tO.o2)(this.target,this.targetDelta)):tU(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,q.dO)(),this.relativeTargetOrigin=(0,q.dO)(),X(this.relativeTargetOrigin,this.target,t.target),tU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}t9.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,tQ.Lj)(this.parent.latestValues)||(0,tQ.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===M.frameData.timestamp&&(s=!1),s)return;let{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||o))return;tU(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,n=this.treeScale.y;(0,tO.YY)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,q.dO)());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=(0,q.wc)(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=(0,q.wc)(),this.projectionDeltaWithTransform=(0,q.wc)());let d=this.projectionTransform;$(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=tJ(this.projectionDelta,this.treeScale),(this.projectionTransform!==d||this.treeScale.x!==a||this.treeScale.y!==n)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),t9.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=(0,q.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let n=(0,q.dO)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),u=!d||d.members.length<=1,h=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(ef));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(ep(a.x,t.x,s),ep(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,c,m,p;X(n,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,eg(m.x,p.x,n.x,s),eg(m.y,p.y,n.y,s),i&&(d=this.relativeTarget,c=i,d.x.min===c.x.min&&d.x.max===c.x.max&&d.y.min===c.y.min&&d.y.max===c.y.max)&&(this.isProjectionDirty=!1),i||(i=(0,q.dO)()),tU(i,this.relativeTarget)}
1l&&(this.animationValues=o,function(t,e,i,s,r,o){r?(t.opacity=(0,N.t)(0,void 0!==i.opacity?i.opacity:1,tC(s)),t.opacityExit=(0,N.t)(void 0!==e.opacity?e.opacity:1,0,tB(s))):o&&(t.opacity=(0,N.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<tR;r++){let o=`border${tE[r]}Radius`,a=tk(e,o),n=tk(i,o);(void 0!==a||void 0!==n)&&(a||(a=0),n||(n=0),0===a||0===n||tM(a)===tM(n)?(t[o]=Math.max((0,N.t)(tj(a),tj(n),s),0),(tr.aQ.test(n)||tr.aQ.test(a))&&(t[o]+="%")):t[o]=n)}(e.rotate||i.rotate)&&(t.rotate=(0,N.t)(e.rotate||0,i.rotate||0,s))}(o,r,this.latestValues,s,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,M.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.Wi.update(()=>{ty.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=(0,t6.i)(0)?0:(0,t5.BX)(0);return s.start((0,to.v)("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eP(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,q.dO)();let e=I(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=I(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tU(e,i),(0,tO.D2)(e,r),$(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tZ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&t4("z",t,s,this.animationValues);for(let e=0;e<t3.length;e++)t4(`rotate${t3[e]}`,t,s,this.animationValues),t4(`skew${t3[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return t7;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=(0,t1.b)(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,t1.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tQ.ud)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=tJ(this.projectionDeltaWithTransform,this.treeScale,a),r&&(s.transform=r(a,s.transform));let{x:n,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*n.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(i=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:s.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,tP.P){if(void 0===a[t])continue;let{correct:e,applyTo:i}=tP.P[t],r="none"===s.transform?a[t]:e(a[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=o===this?(0,t1.b)(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(ea),this.root.sharedNodes.clear()}}}function ee(t){t.updateLayout()}function ei(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,o=i.source!==t.layout.source;"size"===r?tt(t=>{let s=o?i.measuredBox[t]:i.layoutBox[t],r=I(s);s.min=e[t].min,s.max=s.min+r}):eP(r,i.layoutBox,e)&&tt(s=>{let r=o?i.measuredBox[s]:i.layoutBox[s],a=I(e[s]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=(0,q.wc)();$(a,e,i.layoutBox);let n=(0,q.wc)();o?$(n,t.applyTransform(s,!0),i.measuredBox):$(n,e,i.layoutBox);let l=!tY(a),d=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:o}=s;if(r&&o){let a=(0,q.dO)();X(a,i.layoutBox,r.layoutBox);let n=(0,q.dO)();X(n,e,o.layoutBox),tX(a,n)||(d=!0),s.options.layoutRoot&&(t.relativeTarget=n,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:n,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:d})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function es(t){t9.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function er(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eo(t){t.clearSnapshot()}function ea(t){t.clearMeasurements()}function en(t){t.isLayoutDirty=!1}function el(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ed(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eu(t){t.resolveTargetDelta()}function eh(t){t.calcProjection()}function ec(t){t.resetSkewAndRotation()}function em(t){t.removeLeadSnapshot()}function ep(t,e,i){t.translate=(0,N.t)(e.translate,0,i),t.scale=(0,N.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eg(t,e,i,s){t.min=(0,N.t)(e.min,i.min,s),t.max=(0,N.t)(e.max,i.max,s)}function ef(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ey={duration:.45,ease:[.4,0,.1,1]},ev=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ex=ev("applewebkit/")&&!ev("chrome/")?Math.round:T.Z;function eb(t){t.min=ex(t.min),t.max=ex(t.max)}function eP(t,e,i){return"position"===t||"preserve-aspect"===t&&!W(tH(e),tH(i),.2)}let eD=et({attachResizeListener:(t,e)=>(0,ts.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eT={current:void 0},ew=et({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eT.current){let t=new eD({});t.mount(window),t.setOptions({layoutScroll:!0}),eT.current=t}return eT.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),eS={...i(18610).H,pan:{Feature:tc},drag:{Feature:tu,ProjectionNode:ew,MeasureLayout:tw},layout:{ProjectionNode:ew,MeasureLayout:tw}};var eA=i(13015),eL=i(61584),eE=(0,s.Gp)((t,e)=>{var i;let{className:s,as:l,item:d,state:c,classNames:D,isDisabled:T,listRef:w,slots:S,motionProps:A,disableAnimation:L,disableCursorAnimation:E,shouldSelectOnPressUp:R,onClick:j,...M}=t,{key:k}=d,C=(0,r.gy)(e),B=l||(t.href?"a":"button"),{tabProps:V,isSelected:K,isDisabled:U,isPressed:O}=function(t,e,i){let{key:s,isDisabled:r,shouldSelectOnPressUp:o}=t,{selectionManager:l,selectedKey:d}=e,u=s===d,h=r||e.isDisabled||e.selectionManager.isDisabled(s),{itemProps:c,isPressed:m}=(0,x.C)({selectionManager:l,key:s,ref:i,isDisabled:h,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=(0,n.O)(e,s,"tab"),g=(0,n.O)(e,s,"tabpanel"),{tabIndex:f}=c,b=e.collection.getItem(s),P=(0,y.z)(null==b?void 0:b.props,{labelable:!0});delete P.id;let D=(0,v.eY)(null==b?void 0:b.props);return{tabProps:(0,a.d)(P,D,c,{id:p,"aria-selected":u,"aria-disabled":h||void 0,"aria-controls":u?g:void 0,tabIndex:h?void 0:f,role:"tab"}),isSelected:u,isDisabled:h,isPressed:m}}
1({key:k,isDisabled:T,shouldSelectOnPressUp:R},c,C),F=T||U,{focusProps:N,isFocused:I,isFocusVisible:W}=(0,u.F)(),{hoverProps:z,isHovered:$}=(0,b.X)({isDisabled:F}),G=(0,o.W)(null==D?void 0:D.tab,s),[,Y]=(0,eL.t)({rerender:!0});return(0,h.jsxs)(B,{ref:C,"data-disabled":(0,p.PB)(U),"data-focus":(0,p.PB)(I),"data-focus-visible":(0,p.PB)(W),"data-hover":(0,p.PB)($),"data-hover-unselected":(0,p.PB)(($||O)&&!K),"data-pressed":(0,p.PB)(O),"data-selected":(0,p.PB)(K),"data-slot":"tab",...(0,a.d)(V,F?{}:{...N,...z},(0,m.z)(M,{enabled:"string"==typeof B,omitPropNames:new Set(["title"])})),className:null==(i=S.tab)?void 0:i.call(S,{class:G}),title:null==M?void 0:M.titleValue,type:"button"===B?"button":void 0,onClick:()=>{(0,g.t)(j,V.onClick),(null==C?void 0:C.current)&&(null==w?void 0:w.current)&&(0,f.Z)(C.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:null==w?void 0:w.current})},children:[K&&!L&&!E&&Y?(0,h.jsx)(P.X,{features:eS,children:(0,h.jsx)(eA.m.span,{className:S.cursor({class:null==D?void 0:D.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...A})}):null,(0,h.jsx)("div",{className:S.tabContent({class:null==D?void 0:D.tabContent}),"data-slot":"tabContent",children:d.rendered})]})});eE.displayName="NextUI.Tab";var eR=i(52020),ej=i(25127);function eM(t,e){var i;let{Component:s,values:r,state:o,getBaseProps:a,getTabListProps:n,getWrapperProps:l}=(0,eR.Y)({...t,ref:e}),d=(0,tm.useId)(),u=!t.disableAnimation&&!t.disableCursorAnimation,m={state:o,listRef:r.listRef,slots:r.slots,classNames:r.classNames,isDisabled:r.isDisabled,motionProps:r.motionProps,disableAnimation:r.disableAnimation,shouldSelectOnPressUp:r.shouldSelectOnPressUp,disableCursorAnimation:r.disableCursorAnimation},p=[...o.collection].map(t=>(0,h.jsx)(eE,{item:t,...m,...t.props},t.key)),g=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{...a(),children:(0,h.jsx)(s,{...n(),children:u?(0,h.jsx)(ej.S,{id:d,children:p}):p})}),(0,h.jsx)(c,{classNames:r.classNames,slots:r.slots,state:r.state},null==(i=o.selectedItem)?void 0:i.key)]});return"placement"in t||"isVertical"in t?(0,h.jsx)("div",{...l(),children:g}):g}var ek=(0,s.Gp)(eM);eM.displayName="NextUI.Tabs"},61584:function(t,e,i){i.d(e,{t:function(){return r}});var s=i(16913);function r(t={}){let{rerender:e=!1,delay:i=0}=t,r=(0,s.useRef)(!1),[o,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{r.current=!0;let t=null;return e&&(i>0?t=setTimeout(()=>{a(!0)},i):a(!0)),()=>{r.current=!1,e&&a(!1),t&&clearTimeout(t)}},[e]),[(0,s.useCallback)(()=>r.current,[]),o]}},45923:function(t,e,i){i.d(e,{O:function(){return r},p:function(){return s}});let s=new WeakMap;function r(t,e,i){"string"==typeof e&&(e=e.replace(/\s+/g,""));let r=s.get(t);return`${r}-${i}-${e}`}},20550:function(t,e,i){i.d(e,{D:function(){return s}});class s{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let e=this.keyMap.get(t);return e?e.prevKey:null}getKeyAfter(t){let e=this.keyMap.get(t);return e?e.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){let e=[...this.getKeys()];return this.getItem(e[t])}getChildren(t){let e=this.keyMap.get(t);return(null==e?void 0:e.childNodes)||[]}constructor(t){let e;this.keyMap=new Map,this.iterable=t;let i=t=>{if(this.keyMap.set(t.key,t),t.childNodes&&"section"===t.type)for(let e of t.childNodes)i(e)};for(let e of t)i(e);let s=0;for(let[t,i]of this.keyMap)e?(e.nextKey=t,i.prevKey=e.key):(this.firstKey=t,i.prevKey=void 0),"item"===i.type&&(i.index=s++),(e=i).nextKey=void 0;this.lastKey=null==e?void 0:e.key}}},24034:function(t,e,i){i.d(e,{n:function(){return l}});var s=i(20550),r=i(75004),o=i(57158),a=i(16913),n=i(72951);function l(t){let{filter:e}=t,i=(0,r.q)(t),l=(0,a.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),d=(0,a.useCallback)(t=>new s.D(e?e(t):t),[e]),u=(0,a.useMemo)(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),h=(0,n.K)(t,d,u),c=(0,a.useMemo)(()=>new o.Z(h,i),[h,i]),m=(0,a.useRef)(null);return(0,a.useEffect)(()=>
1{if(null!=i.focusedKey&&!h.getItem(i.focusedKey)){let t;let e=m.current.getItem(i.focusedKey),s=[...m.current.getKeys()].map(t=>{let e=m.current.getItem(t);return"item"===e.type?e:null}).filter(t=>null!==t),r=[...h.getKeys()].map(t=>{let e=h.getItem(t);return"item"===e.type?e:null}).filter(t=>null!==t),o=s.length-r.length,a=Math.min(o>1?Math.max(e.index-o+1,0):e.index,r.length-1);for(;a>=0;){if(!c.isDisabled(r[a].key)){t=r[a];break}a<r.length-1?a++:(a>e.index&&(a=e.index),a--)}i.setFocusedKey(t?t.key:null)}m.current=h},[h,c,i,i.focusedKey]),{collection:h,disabledKeys:l,selectionManager:c}}},16215:function(t,e,i){i.d(e,{B:function(){return a}});var s=i(24034),r=i(53995),o=i(16913);function a(t){var e;let[i,a]=(0,r.z)(t.selectedKey,null!==(e=t.defaultSelectedKey)&&void 0!==e?e:null,t.onSelectionChange),n=(0,o.useMemo)(()=>null!=i?[i]:[],[i]),{collection:l,disabledKeys:d,selectionManager:u}=(0,s.n)({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:n,onSelectionChange:e=>{var s;let r=null!==(s=e.values().next().value)&&void 0!==s?s:null;r===i&&t.onSelectionChange&&t.onSelectionChange(r),a(r)}}),h=null!=i?l.getItem(i):null;return{collection:l,disabledKeys:d,selectionManager:u,selectedKey:i,setSelectedKey:a,selectedItem:h}}},25127:function(t,e,i){i.d(e,{S:function(){return h}});var s=i(59228),r=i(16913),o=i(6967);let a=(0,r.createContext)(null);var n=i(48541);let l=t=>!t.isLayoutDirty&&t.willUpdate(!1),d=t=>!0===t,u=t=>d(!0===t)||"id"===t,h=({children:t,id:e,inherit:i=!0})=>{let h=(0,r.useContext)(o.p),c=(0,r.useContext)(a),[m,p]=(0,n.N)(),g=(0,r.useRef)(null),f=h.id||c;null===g.current&&(u(i)&&f&&(e=e?f+"-"+e:f),g.current={id:e,group:d(i)&&h.group||function(){let t=new Set,e=new WeakMap,i=()=>t.forEach(l);return{add:s=>{t.add(s),e.set(s,s.addEventListener("willUpdate",i))},remove:s=>{t.delete(s);let r=e.get(s);r&&(r(),e.delete(s)),i()},dirty:i}}()});let y=(0,r.useMemo)(()=>({...g.current,forceRender:m}),[p]);return(0,s.jsx)(o.p.Provider,{value:y,children:t})}}}]);

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.