1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,226828,e=>{"use strict";var t=e=>e.id;function i(e,o,s=t){return e.find(e=>s(e)===o)}function o(e,s,r=t){let a=i(e,s,r);return a?e.indexOf(a):-1}e.s(["defaultItemToId",0,t,"indexOfId",0,o,"itemById",0,i,"nextById",0,function(e,t,i=!0){let s=o(e,t);return s=i?(s+1)%e.length:Math.min(s+1,e.length-1),e[s]},"prevById",0,function(e,t,i=!0){let s=o(e,t);return -1===s?i?e[e.length-1]:null:(s=i?(s-1+e.length)%e.length:Math.max(0,s-1),e[s])},"query",0,function(e,t){return e?.querySelector(t)??null},"queryAll",0,function(e,t){return Array.from(e?.querySelectorAll(t)??[])}])},594601,e=>{"use strict";var t=e.i(532592),i=e.i(287942),[o,s]=(0,t.createContext)({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"});e.s(["RenderStrategyPropsProvider",0,o,"splitRenderStrategyProps",0,e=>(0,i.createSplitProps)()(e,["lazyMount","unmountOnExit"]),"useRenderStrategyPropsContext",0,s])},664747,241926,e=>{"use strict";var[t,i]=(0,e.i(532592).createContext)({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});e.s(["PresenceProvider",0,t,"usePresenceContext",0,i],664747);var o=e.i(193069),s=e.i(581804);e.s(["getInitialFocus",0,function(e){let{root:t,getInitialEl:i,filter:o,enabled:r=!0}=e;if(!r)return;let a=null;if((a="function"==typeof i?i():i)||(a=t?.querySelector("[data-autofocus],[autofocus]")),!a){let e=(0,s.getTabbables)(t);a=o?e.filter(o)[0]:e[0]}return a||t||void 0},"isValidTabEvent",0,function(e){let t=e.currentTarget;if(!t)return!1;let[i,r]=(0,s.getTabbableEdges)(t);return!((0,o.isActiveElement)(i)&&e.shiftKey||(0,o.isActiveElement)(r)&&!e.shiftKey)&&(!!i||!!r)}],241926)},267750,936686,110323,848131,982355,713091,367313,27174,e=>{"use strict";var t=e.i(843476),i=e.i(960061),o=e.i(594601),s=e.i(216417),r=e.i(978605),a=e.i(520953),[n,l]=(0,e.i(532592).createContext)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),d=e.i(271645),c=e.i(541949),u=(0,d.forwardRef)((e,i)=>{let n=l(),d=(0,a.usePresence)({...(0,o.useRenderStrategyPropsContext)(),present:n.open}),u=(0,c.mergeProps)(n.getBackdropProps(),d.getPresenceProps(),e);return d.unmounted?null:(0,t.jsx)(r.ark.div,{...u,ref:(0,s.composeRefs)(d.ref,i)})});u.displayName="DialogBackdrop";var p=(0,d.forwardRef)((e,i)=>{let o=(0,c.mergeProps)(l().getCloseTriggerProps(),e);return(0,t.jsx)(r.ark.button,{...o,ref:i}
1)});p.displayName="DialogCloseTrigger";var h=e.i(664747),g=(0,d.forwardRef)((e,i)=>{let o=l(),a=(0,h.usePresenceContext)(),n=(0,c.mergeProps)(o.getContentProps(),a.getPresenceProps(),e);return a.unmounted?null:(0,t.jsx)(r.ark.div,{...n,ref:(0,s.composeRefs)(a.ref,i)})});g.displayName="DialogContent";var f=e=>e.children(l());e.s(["DialogContext",0,f],936686);var b=(0,d.forwardRef)((e,i)=>{let o=(0,c.mergeProps)(l().getDescriptionProps(),e);return(0,t.jsx)(r.ark.div,{...o,ref:i})});b.displayName="DialogDescription";var v=(0,d.forwardRef)((e,i)=>{let o=(0,c.mergeProps)(l().getPositionerProps(),e);return(0,h.usePresenceContext)().unmounted?null:(0,t.jsx)(r.ark.div,{...o,ref:i})});v.displayName="DialogPositioner";var m=e.i(734893),y=e.i(7652),T=e.i(962288),O=e.i(712389),C=e.i(193069),P=new WeakMap,E=new WeakMap,N={},F=0,k=e=>e&&(e.host||k(e.parentNode)),x=new Set(["script","output","status","next-route-announcer"]),w=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;function D(e,t={}){let{defer:i=!0}=t,o=[];return o.push((i?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&o.push(((e,t=w(e),i="data-aria-hidden",o=!0)=>{if(t)return((e,t)=>{let{parentNode:i,markerName:o,controlAttribute:s,explicitBooleanValue:r,followControlledElements:a=!0}=t,n=(Array.isArray(e)?e:[e]).map(e=>{if(i.contains(e))return e;let t=k(e);return t&&i.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",i,". Doing nothing"),null)}).filter(e=>!!e);N[o]||(N[o]=new WeakMap);let l=N[o],d=[],c=new Set,u=new Set(n),p=e=>{!e||c.has(e)||(c.add(e),p(e.parentNode))};n.forEach(e=>{p(e),a&&(0,C.isHTMLElement)(e)&&(0,O.findControlledElements)(e,e=>{p(e)})});let h=e=>{!e||u.has(e)||Array.prototype.forEach.call(e.children,e=>{if(c.has(e))h(e);else try{if(x.has(e.localName)||"status"===e.role||e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))return;let t=e.getAttribute(s),i=r?"true"===t:null!==t&&"false"!==t,a=(P.get(e)||0)+1,n=(l.get(e)||0)+1;P.set(e,a),l.set(e,n),d.push(e),1===a&&i&&E.set(e,!0),1===n&&e.setAttribute(o,""),i||e.setAttribute(s,r?"true":"")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return h(i),c.clear(),F++,()=>{d.forEach(e=>{let t=P.get(e)-1,i=l.get(e)-1;P.set(e,t),l.set(e,i),t||(E.has(e)||e.removeAttribute(s),E.delete(e)),i||e.removeAttribute(o)}),--F||(P=new WeakMap,P=new WeakMap,E=new WeakMap,N={})}})(e,{parentNode:t,markerName:i,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:o})})(t))})),()=>{o.forEach(e=>e?.())}}e.s(["ariaHidden",0,D],110323);var R=e.i(489207),I=e.i(732113),S=e.i(241926),A=e.i(915304),B=Object.defineProperty,G=(e,t,i)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?B(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i},L=e.i(771195),V=e.i(581804),M={activateTrap(e,t){if(e.length>0){let i=e[e.length-1];i!==t&&i.pause()}let i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap(e,t){let i=e.indexOf(t);-1!==i&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},$=[],j=class{constructor(e,t){G(this,"trapStack"),G(this,"config"),G(this,"doc"),G(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),G(this,"portalContainers",new Set),G(this,"listenerCleanups",[]),G(this,"handleFocus",e=>{let t=(0,L.getEventTarget)(e),i=this.findContainerIndex(t,e)>=0;if(i||(0,C.isDocument)(t))i&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let i=!0;if(this.state.mostRecentlyFocusedNode)if((0,V.getTabIndex)(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:o}=this.state.containerGroups[e];if(o.length>0){let e=o.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<o.length&&(t=o[e+1],i=!1):e-1>=0&&(t=o[e-1],i=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>(0,V.getTabIndex)(e)>0))||(i=!1);else i=!1;i&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),G(this,"handlePointerDown",e=>{let t=(0,L.getEventTarget)(e);this.findContainerIndex(t,e)>=0||(U(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):U(this.config.allowOutsideClick,e)||e.preventDefault())}),G(this,"handleClick",e=>{let t=(0,L.getEventTarget)(e);this.findContainerIndex(t,e)>=0||U(this.config.clickOutsideDeactivates,e)||U(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),G(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),i=this.findNextNavNode({event:e,isBackward:t});i&&(_(e)&&e.preventDefault(),this.tryFocus(i))}}),G(this,"handleEscapeKey",e=>{z(e)&&!1!==U(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),G(this,"_mutationObserver"),G(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>
1Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),e.some(e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some(e=>e.nodeType===Node.ELEMENT_NODE&&(!!(0,O.hasControllerElements)(e)||!(!e.id||this.state.containers.some(t=>t.contains(e)))&&(0,O.isControlledByExpandedController)(e))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),G(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(e=>{this.observePortalContainer(e)}))}),G(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,V.isFocusable)(e)){let t=(0,C.getActiveElement)(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e||(e.isConnected||(e=this.getNodeForOption("fallbackFocus")),!e||!e.isConnected))throw Error("Your focus-trap needs to have at least one focusable element");return e}),G(this,"tryFocus",e=>{if(!1!==e&&e!==(0,C.getActiveElement)(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,Y(e)&&e.select()}}),G(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),M.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(t,"onDeactivate"),o=this.getOption(t,"onPostDeactivate"),s=this.getOption(t,"checkCanReturnFocus"),r=this.getOption(t,"returnFocus","returnFocusOnDeactivate");i?.();let a=()=>{H(()=>{if(r){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}o?.()})};return r&&s?s(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(a,a):a(),this}),G(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),i=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),G(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),i=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),G(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),G(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),G(this,"getOption",(e,t,i)=>e&&void 0!==e[t]?e[t]:this.config[i||t]),G(this,"getNodeForOption",(e,{hasFallback:t=!1,params:i=[]}={})=>{let o=this.config[e];if("function"==typeof o&&(o=o(...i)),!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let s=o;if("string"==typeof o){try{s=this.doc.querySelector(o)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!s&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return s}),G(this,"findNextNavNode",e=>{let{event:t,isBackward:i=!1}=e,o=e.target||(0,L.getEventTarget)(t);this.updateTabbableNodes();let s=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(o,t),r=e>=0?this.state.containerGroups[e]:void 0;if(e<0)s=i?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(i){let i=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>o===e);if(i<0&&(r?.container===o||(0,V.isFocusable)(o)&&!(0,V.isTabbable)(o)&&!r?.nextTabbableNode(o,!1))&&(i=e),i>=0){let e=0===i?this.state.tabbableGroups.length-1:i-1,t=this.state.tabbableGroups[e];s=(0,V.getTabIndex)(o)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else _(t)||(s=r?.nextTabbableNode(o,!1))}else{let i=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>o===e);if(i<0&&(r?.container===o||(0,V.isFocusable)(o)&&!(0,V.isTabbable)(o)&&!r?.nextTabbableNode(o))&&(i=e),i>=0){let e=i===this.state.tabbableGroups.length-1?0:i+1,t=this.state.tabbableGroups[e];s=(0,V.getTabIndex)(o)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else _(t)||(s=r?.nextTabbableNode(o))}}else s=this.getNodeForOption("fallbackFocus");return s}),this.trapStack=t.trapStack||$;const i={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:q,isKeyBackward:W,...t};this.doc=i.document||(0,C.getDocument)(Array.isArray(e)?e[0]:e),this.config=i,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEac
1h(e=>{(0,O.getControlledElements)(e).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let i="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:o})=>t.contains(e)||i?.includes(t)||o.find(t=>t===e)||this.isControlledElement(t,e))}isControlledElement(e,t){return!!this.config.followControlledElements&&(0,O.isControlledElement)(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=(0,V.getTabbables)(e,{getShadowRoot:this.config.getShadowRoot}),i=(0,V.getFocusables)(e,{getShadowRoot:this.config.getShadowRoot}),o=t[0],s=t[t.length-1],r=!1;for(let e=0;e<t.length;e++)if((0,V.getTabIndex)(t[e])>0){r=!0;break}return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:r,firstTabbableNode:o,lastTabbableNode:s,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e,o=!0){let s=t.indexOf(e);if(s>=0)return t[s+(o?1:-1)];let r=i.indexOf(e);if(!(r<0)){if(o){for(let e=r+1;e<i.length;e++)if((0,V.isTabbable)(i[e]))return i[e]}else for(let e=r-1;e>=0;e--)if((0,V.isTabbable)(i[e]))return i[e]}}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return M.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?H(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push((0,L.addDomEvent)(this.doc,"focusin",this.handleFocus,!0),(0,L.addDomEvent)(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),(0,L.addDomEvent)(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),(0,L.addDomEvent)(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),(0,L.addDomEvent)(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),(0,L.addDomEvent)(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),i=this.getOption(e,"onPostActivate"),o=this.getOption(e,"checkCanFocusTrap");o||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=(0,C.getActiveElement)(this.doc),t?.();let s=()=>{o&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.()};return o?o(this.state.containers.concat()).then(s,s):s(),this}},K=e=>e?.type==="keydown",_=e=>K(e)&&e?.key==="Tab",q=e=>K(e)&&"Tab"===e.key&&!e?.shiftKey,W=e=>K(e)&&"Tab"===e.key&&e?.shiftKey,U=(e,...t)=>"function"==typeof e?e(...t):e,z=e=>!e.isComposing&&"Escape"===e.key,H=e=>setTimeout(e,0),Y=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function J(e,t={}){let i,o=(0,A.raf)(()=>{let o=(Array.isArray(e)?e:[e]).map(e=>"function"==typeof e?e():e).filter(e=>null!=e);if(0===o.length)return;let s=o[0];i=new j(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:s,...t,document:(0,C.getDocument)(s)});try{i.activate()}catch{}});return function(){i?.deactivate(),o()}}e.s(["trapFocus",0,J],848131);var Q=e.i(637414),X=e.i(983756),Z=e.i(667687),ee="data-scroll-lock",et=new WeakMap;function ei(e){let t=(0,Q.getComputedStyle)(e),i=t?.scrollbarGutter;return"stable"===i||i?.startsWith("stable ")===!0}function eo(e){let t=e??document,i=et.get(t);i||(i={count:0,cleanup:function(e){let t,i=e.defaultView??window,{documentElement:o,body:s}=e,r=ei(o)||ei(s),a=i.innerWidth-o.clientWidth;s.setAttribute(ee,"");let n=Math.round(o.getBoundingClientRect().left)+o.scrollLeft?"paddingLeft":"paddingRight",l=[(0,Z.setStyleProperty)(o,"--scrollbar-width",`${a}px`),(0,X.isIos)()?(()=>
1{let{scrollX:e,scrollY:t,visualViewport:o}=i,l=o?.offsetLeft??0,d=o?.offsetTop??0,c={position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(d))}px`,left:`${-(e-Math.floor(l))}px`,right:"0"};!r&&a>0&&(c[n]=`${a}px`);let u=(0,Z.setStyle)(s,c);return()=>{u?.(),i.scrollTo({left:e,top:t,behavior:"instant"})}})():(t={overflow:"hidden"},!r&&a>0&&(t[n]=`${a}px`),(0,Z.setStyle)(s,t))];return()=>{l.forEach(e=>e?.()),s.removeAttribute(ee)}}(t)},et.set(t,i)),i.count++;let o=i,s=!1;return()=>{s||(s=!0,o.count--,0===o.count&&(o.cleanup(),et.delete(t)))}}e.s(["preventBodyScroll",0,eo],982355);var es=e.i(226828),er=e.i(219690),ea=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,en=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,el=e=>e.ids?.content??`dialog:${e.id}:content`,ed=(e,t)=>{let i=e.ids?.trigger;return null!=i?(0,er.isFunction)(i)?i(t):i:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},ec=e=>e.ids?.title??`dialog:${e.id}:title`,eu=e=>e.ids?.description??`dialog:${e.id}:description`,ep=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,eh=e=>e.getById(el(e)),eg=e=>e.getById(ed(e)),ef=e=>(0,es.queryAll)(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),eb=(e,t)=>null==t?eg(e)??ef(e)[0]:e.getById(ed(e,t)),ev=(0,R.createMachine)({props({props:e,scope:t}){let i="alertdialog"===e.role,o=i?()=>t.getById(ep(t)):void 0,s="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:s,trapFocus:s,preventScroll:s,closeOnInteractOutside:s&&!i,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:o,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e,prop:t,scope:i})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>
1({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(e){let o=t("onTriggerValueChange");if(!o)return;let s=eb(i,e);o({value:e,triggerElement:s})}}))}),watch({track:e,action:t,prop:i}){e([()=>i("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:i})=>(0,I.trackDismissableElement)(()=>eh(e),{type:"dialog",defer:!0,pointerBlocking:i("modal"),layerStyleTargets:[()=>e.getById(en(e)),()=>e.getById(ea(e))],exclude:[eg(e),...ef(e)].filter(Boolean),onInteractOutside(e){i("onInteractOutside")?.(e),i("closeOnInteractOutside")||e.preventDefault()},persistentElements:i("persistentElements"),onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onRequestDismiss:i("onRequestDismiss"),onEscapeKeyDown(e){i("onEscapeKeyDown")?.(e),i("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return eo(e.getDoc())},trapFocus({scope:e,prop:t,context:i}){if(t("trapFocus"))return J(()=>eh(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:o=>{let s=t("finalFocusEl")?.();if(s)return s;let r=i.get("triggerValue");if(r){let t=eb(e,r);if(t)return t}let a=ef(e)[0];return a||o},getShadowRoot:!0})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return D(()=>[eh(e)],{defer:!0})}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||(0,A.raf)(()=>{let i=(0,S.getInitialFocus)({root:eh(t),getInitialEl:e("initialFocusEl")});i?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){(0,A.raf)(()=>{e.set("rendered",{title:!!t.getById(ec(t)),description:!!t.getById(eu(t))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){void 0!==t.value&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:i}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})}}}}),em=e.i(154700),ey=e.i(108461),eT=(0,e.i(522959).createAnatomy)("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),eO=eT.build();e.s(["anatomy",0,eT,"parts",0,eO],713091);var eC=e.i(720007),eP=e.i(678124),eE=e=>{let[i,{children:s,...r}]=(0,m.splitPresenceProps)(e),[l]=(0,o.splitRenderStrategyProps)(i),u=(e=>{let t=(0,d.useId)(),{getRootNode:i}=(0,y.useEnvironmentContext)(),{dir:o}=(0,T.useLocaleContext)(),s={id:t,getRootNode:i,dir:o,...e};return function(e,t){let{state:i,send:o,context:s,prop:r,scope:a}=e,n=r("aria-label"),l=i.matches("open"),d=s.get("triggerValue");return{open:l,setOpen(e){i.matches("open")!==e&&o({type:e?"OPEN":"CLOSE"})},triggerValue:d,setTriggerValue(e){o({type:"TRIGGER_VALUE.SET",value:e})},getTriggerProps(e={}){let{value:i}=e,s=null!=i&&d===i;return t.button({...eO.trigger.attrs,dir:r("dir"),id:ed(a,i),"data-ownedby":a.id,"data-value":i,"aria-haspopup":"dialog",type:"button","aria-expanded":null==i?l:l&&s,"data-state":l?"open":"closed","aria-controls":el(a),"data-current":(0,em.dataAttr)(s),onClick(e){e.defaultPrevented||o({type:l&&null!=i&&!s?"TRIGGER_VALUE.SET":"TOGGLE",value:i})}})},getBackdropProps:()=>t.element({...eO.backdrop.attrs,dir:r("dir"),hidden:!l,id:en(a),"data-state":l?"open":"closed"}),getPositionerProps:()=>t.element({...eO.positioner.attrs,dir:r("dir"),id:ea(a),style:(0,ey.compact)({pointerEvents:l&&r("modal")?void 0:"none"})}),getContentProps(){let e=s.get("rendered");return t.element({...eO.content.attrs,dir:r("dir"),role:r("role"),hidden:!l,id:el(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":r("modal"),"aria-label":n||void 0,"aria-labelledby":n||!e.title?void 0:ec(a),"aria-describedby":e.description?eu(a):void 0,style:(0,ey.compact)({pointerEvents:r("modal")?void 0:"auto"})})},getTitleProps:()=>t.element({...eO.title.attrs,dir:r("dir"),id:ec(a)}),getDescriptionProps:()=>t.element({...eO.description.attrs,dir:r("dir"),id:eu(a)}),getCloseTriggerProps:()=>t.button({...eO.closeTrigger.attrs,dir:r("dir"),id:ep(a),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),o({type:"CLOSE"}))}})}}((0,eP.useMachine)(ev,s),eC.normalizeProps)})(r);return(0,t.jsx)(n,{value:u,children:(0,t.jsx)(o.RenderStrategyPropsProvider,{value:l,children:(0,t.jsx)(h.PresenceProvider,{value:(0,a.usePresence)((0,c.mergeProps)({present:u.open},i)),children:s})})})},eN=e=>{let[i,{value:s,children:r}]=(0,m.splitPresenceProps)(e),[l]=(0,o.splitRenderStrategyProps)(i);return(0,t.jsx)(n,{value:s,children:(0,t.jsx)(o.RenderStrategyPropsProvider,{value:l,children:(0,t.jsx)(h.PresenceProvider,{value:(0,a.usePresence)((0,c.mergeProps)({present:s.open},i)),children:r})})})},eF=(0,d.forwardRef)((e,i)=>{let o=(0,c.mergeProps)(l().getTitleProps(),e);return(0,t.jsx)(r.ark.h2,{...o,ref:i}
1)});eF.displayName="DialogTitle";var ek=(0,e.i(287942).createSplitProps)(),ex=(0,d.forwardRef)((e,i)=>{let[o,s]=ek(e,["value"]),a=l(),n=(0,h.usePresenceContext)(),d=a.getTriggerProps(o),u=(0,c.mergeProps)({...d,"aria-controls":n.unmounted?void 0:d["aria-controls"]},s);return(0,t.jsx)(r.ark.button,{...u,ref:i})});ex.displayName="DialogTrigger";var ew=(0,i.__exportAll)({Backdrop:()=>u,CloseTrigger:()=>p,Content:()=>g,Context:()=>f,Description:()=>b,Positioner:()=>v,Root:()=>eE,RootProvider:()=>eN,Title:()=>eF,Trigger:()=>ex});e.s(["Dialog",0,ew],367313),e.i(385863);var eD=e.i(319568),eR=e.i(416227);e.i(16047);var eI=e.i(410945);let{withRootProvider:eS,withContext:eA}=(0,eD.createStyleContext)(eI.dialog),eB=eS(ew.Root,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),eG=eS(ew.RootProvider),eL=eA(ew.Backdrop,"backdrop"),eV=eA(ew.Positioner,"positioner"),eM=eA(ew.Content,"content"),e$=eA(ew.Title,"title"),ej=eA(ew.Description,"description"),eK=eA(ew.Trigger,"trigger"),e_=eA(ew.CloseTrigger,"closeTrigger",{defaultProps:{"data-testid":"dialog-close-trigger"}}),eq=eA((0,eR.styled)(r.ark.div),"header"),eW=eA((0,eR.styled)(r.ark.div),"body"),eU=eA((0,eR.styled)(r.ark.div),"footer"),ez=(0,eR.styled)(r.ark.button),eH=(0,d.forwardRef)(function(e,i){let o=l();return(0,t.jsx)(ez,{...e,ref:i,onClick:()=>o.setOpen(!1)})});e.s(["ActionTrigger",0,eH,"Backdrop",0,eL,"Body",0,eW,"CloseTrigger",0,e_,"Content",0,eM,"Description",0,ej,"Footer",0,eU,"Header",0,eq,"Positioner",0,eV,"Root",0,eB,"RootProvider",0,eG,"Title",0,e$,"Trigger",0,eK],27174),e.i(27174),e.s([],267750)}]);
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.