PageSourceSearch

https://www.servimaq.cl/_next/static/chunks/3skaeku-tk1nj.js

js servimaq.cl collected 2026-09-28 13:49:16 UTC 387,186 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,527930,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(540886),r=e.i(552245);let i=t.forwardRef(function(e,t){let{render:i,className:a,disabled:l=!1,focusableWhenDisabled:o=!1,nativeButton:s=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:f}=(0,n.useButton)({disabled:l,focusableWhenDisabled:o,native:s});return(0,r.useRenderElement)("button",e,{state:{disabled:l},ref:[t,f],props:[c,d]})});e.s(["Button",0,i])},725933,989257,e=>{"use strict";e.s([],379652),e.i(379652);var t=e.i(271645),n=e.i(951437),r=e.i(146376),i=e.i(713203),a=e.i(667865),l=e.i(828918),o=e.i(446265),s=e.i(502077),u=e.i(388940),c=e.i(714935),d=e.i(334346),f=e.i(956789),p=e.i(229315),m=e.i(17989),g=e.i(265858),h=e.i(260891),v=e.i(385689),x=e.i(621082);function b(e,t,n,r,i,a,l,o,s,u=2){let c=(0,x.getGridNavigatedIndex)(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:u,disabledIndices:l,minIndex:o,maxIndex:s,prevIndex:t>s?o:t,stopEvent:!0});return(0,x.isIndexOutOfListBounds)(n.current,c)?void 0:c}var y=e.i(647554),E=e.i(675606),S=e.i(56434),w=e.i(733332);let C=t.createContext(void 0),A=t.createContext(void 0),R=t.createContext(void 0),M=t.createContext(!1),I=t.createContext("");function T(){let e=t.useContext(C);if(!e)throw Error((0,w.default)(22));return e}function P(){let e=t.useContext(A);if(!e)throw Error((0,w.default)(23));return e}function L(){let e=t.useContext(R);if(!e)throw Error((0,w.default)(24));return e}function N(){return t.useContext(I)}var O=e.i(484325),D=e.i(42191);let j=e=>e.id,k=e=>e.labelId,F=e=>e.items,V=e=>e.selectedValue,H=e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},Z=e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)},_=(e,t)=>!!t&&(0,D.hasNullItemLabel)(e.items),B=e=>e.open,z=e=>e.mounted,W=e=>e.forceMounted,Y=e=>e.inline,$=e=>e.activeIndex,U=e=>e.selectedIndex,q=(e,t)=>e.activeIndex===t,X=(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>(0,O.compareItemEquality)(t,e,n)):(0,O.compareItemEquality)(t,r,n)},G=e=>e.transitionStatus,K=e=>e.popupProps,J=e=>e.listProps,Q=e=>e.inputProps,ee=e=>e.triggerProps,et=e=>e.itemProps,en=e=>e.positionerElement,er=e=>e.listElement,ei=e=>e.popupId,ea=e=>e.triggerElement,el=e=>e.inputElement,eo=e=>e.inputGroupElement,es=e=>e.popupSide,eu=e=>e.openMethod,ec=e=>e.inputInsidePopup,ed=e=>e.inputOwnsFormValue,ef=e=>e.selectionMode,ep=e=>e.name,em=e=>e.form,eg=e=>e.disabled,eh=e=>e.readOnly,ev=e=>e.required,ex=e=>e.grid,eb=e=>e.virtualized,ey=e=>e.itemToStringLabel,eE=e=>e.isItemEqualToValue,eS=e=>e.modal,ew=e=>e.autoHighlight;var eC=e.i(137584),eA=e.i(469690),eR=e.i(381104),eM=e.i(884708),eI=e.i(538489);function eT(e){return null==e?void 0:`${e}-popup`}function eP(e,t){return(n,r)=>null!=n&&e.contains(n,r,t)}function eL(e){return Array.isArray(e)?e.map(e=>eL(e)).join(","):null==e?"":String(e)}e.s(["stringifyLocale",0,eL],989257);let eN=new Map;function eO(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${eL(e.locale)}|${JSON.stringify(t)}`,r=eN.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=(0,D.stringifyAsLabel)(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(0===i.compare(r.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=(0,D.stringifyAsLabel)(e,n);return 0===i.compare(r.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let r=(0,D.stringifyAsLabel)(e,n),a=t.length;return r.length>=a&&0===i.compare(r.slice(r.length-a),t)}};return eN.set(n,a),a}var eD=e.i(223910),ej=e.i(32199),ek=e.i(496545),eF=e.i(606039),eV=e.i(264111),eH=e.i(176782),eZ=e.i(743024);let e_=Symbol("none"),eB={value:e_,index:-1};var ez=e.i(872855),eW=e.i(843476);function eY(e){let x,{id:w,onOpenChangeComplete:T,defaultSelectedValue:P=null,selectedValue:L,onSelectedValueChange:N,defaultInputValue:j,inputValue:k,open:F,defaultOpen:V=!1,selectionMode:H,onItemHighlighted:Z,name:_,form:B,disabled:z=!1,readOnly:W=!1,required:q=!1,inputRef:X,grid:G=!1,items:K,filteredItems:J,filter:Q,openOnInputClick:ee=!0,autoHighlight:et=!1,keepHighlight:ei=!1,highlightItemOnHover:es=!0,loopFocus:eu=!0,itemToStringLabel:ef,itemToStringValue:ep,isItemEqualToValue:em=O.defaultItemEquality,virtualized:eg=!1,inline:eh=!1,fillInputOnItemPress:ev=!0,modal:ex=!1,limit:eb=-1,autoComplete:ey="list",formAutoComplete:eE,locale:eS,submitOnItemClick:ew=!1}=e,{clearErrors:eT}=(0,eM.useFormContext)(),{setDirty:eL,validityData:eN,setFilled:eY,name:e$,disabled:eU,setTouched:eq,setFocused:eX,validationMode:eG,validation:eK}=(0,eA.useFieldRootContext)(),eJ=(0,ez.useDirection)(),eQ=(0,eI.useLabelableId)({id:w}
1),e0=eO({locale:eS}),[e1,e2]=t.useState(!1),[e8,e4]=t.useState(null),e6=t.useRef([]),e3=t.useRef([]),e5=t.useRef(null),e7=t.useRef(null),e9=t.useRef(null),te=t.useRef(null),tt=t.useRef(null),tn=t.useRef(!0),tr=t.useRef(!1),ti=t.useRef(null),ta=t.useRef(null),tl=t.useRef(null),to=t.useRef(eB),ts=t.useRef(null),tu=t.useRef([]),tc=t.useRef(null),td=eU||z,tf=e$??_,tp="multiple"===H,tm="single"===H,tg=void 0!==k||void 0!==j,th=void 0!==K,tv=void 0!==J;x="always"===et?"always":!!et&&"input-change";let[tx,tb]=(0,n.useControlled)({controlled:L,default:tp?P??f.EMPTY_ARRAY:P,name:"Combobox",state:"selectedValue"}),ty=t.useMemo(()=>null===Q?()=>!0:void 0!==Q?Q:eP(e0,ef),[Q,e0,ef]),tE=(0,u.useRefWithInit)(()=>tg?j??"":tm?(0,D.stringifyAsLabel)(tx,ef):"").current,[tS,tw]=(0,n.useControlled)({controlled:k,default:tE,name:"Combobox",state:"inputValue"}),[tC,tA]=(0,n.useControlled)({controlled:F,default:V,name:"Combobox",state:"open"}),tR=(0,D.isGroupedItems)(K),tM=e8??String(tS).trim(),tI=tm?(0,D.stringifyAsLabel)(tx,ef):"",tT=tm&&!e1&&""!==tM&&tI.length===tM.length&&e0.contains(tI,tM),tP=tT?"":tM,tL=th&&tv&&tT,tN=t.useMemo(()=>K?tR?K.flatMap(e=>e.items):K:f.EMPTY_ARRAY,[K,tR]),tO=t.useMemo(()=>{if(J&&!tL)return J;if(!K)return f.EMPTY_ARRAY;if(tR){let e=[],t=0;for(let n of K){if(eb>-1&&t>=eb)break;let r=eb>-1?eb-t:1/0,i=""===tP?n.items.slice(0,r):[];if(""!==tP)for(let e of n.items){if(i.length>=r)break;ty(e,tP,ef)&&i.push(e)}if(i.length>0){let r={...n,items:i};e.push(r),t+=i.length}}return e}if(""===tP)return eb>-1?tN.slice(0,eb):tN;let e=[];for(let t of tN){if(eb>-1&&e.length>=eb)break;ty(t,tP,ef)&&e.push(t)}return e},[J,tL,K,tR,tP,eb,ty,ef,tN]),tD=t.useMemo(()=>tR?tO.flatMap(e=>e.items):tO,[tO,tR]),tj=(0,u.useRefWithInit)(()=>{let e=null;return eh&&tC&&th&&"none"!==H&&(e=(0,O.findSelectionIndex)(tD,tx,em,tp)),new c.Store({id:eQ,labelId:void 0,selectedValue:tx,open:tC,items:K,selectionMode:H,listRef:e6,labelsRef:e3,popupRef:e5,emptyRef:tt,inputRef:e7,startDismissRef:e9,endDismissRef:te,keyboardActiveRef:tn,chipsContainerRef:ti,clearRef:ta,valuesRef:tu,pointerDownItemRef:tc,selectionEventRef:tl,name:tf,form:B,disabled:td,readOnly:W,required:q,grid:G,virtualized:eg,openOnInputClick:ee,itemToStringLabel:ef,isItemEqualToValue:em,modal:ex,autoHighlight:x,submitOnItemClick:ew,hasInputValue:tg,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eh,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:f.EMPTY_OBJECT,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===H,onOpenChangeComplete:f.NOOP,setOpen:f.NOOP,setInputValue:f.NOOP,setSelectedValue:f.NOOP,setIndices:f.NOOP,handleSelection:f.NOOP,forceMount:f.NOOP,requestSubmit:f.NOOP})}).current,tk="none"===H?tS:tx,tF=t.useMemo(()=>"none"===H?tk:Array.isArray(tx)?tx.map(e=>(0,D.stringifyAsValue)(e,ep)):(0,D.stringifyAsValue)(tx,ep),[tk,ep,H,tx]),tV=(0,a.useStableCallback)(Z),tH=(0,a.useStableCallback)(T),tZ=(0,d.useStore)(tj,$),t_=(0,d.useStore)(tj,U),tB=(0,d.useStore)(tj,en),tz=(0,d.useStore)(tj,er),tW=(0,d.useStore)(tj,ea),tY=(0,d.useStore)(tj,el),t$=(0,d.useStore)(tj,eo),tU=(0,d.useStore)(tj,Y),tq=(0,d.useStore)(tj,ec),tX=(0,d.useStore)(tj,ed),tG=(0,o.useValueAsRef)(tW),{mounted:tK,setMounted:tJ,transitionStatus:tQ}=(0,eD.useTransitionStatus)(tC),{openMethod:t0,triggerProps:t1}=(0,ej.useOpenInteractionType)(tC),t2=(0,a.useStableCallback)(()=>tF);(0,eR.useRegisterFieldControl)(tq?tG:e7,eQ,tk,t2,!td,_);let t8=(0,a.useStableCallback)(()=>{K?e3.current=tD.map(e=>(0,D.stringifyAsLabel)(e,ef)):tj.set("forceMounted",!0)}),t4=(0,a.useStableCallback)((e,t,n)=>{if(-1===t){if(to.current===eB)return;to.current=eB}else to.current={value:e,index:t};tV(e,(0,E.createGenericEventDetails)(n,void 0,{index:t}))}),t6=(0,a.useStableCallback)(e=>{tj.update(e);let t=e.activeIndex;if(void 0===t)return;let n=e.type||S.REASONS.none;null===t?t4(void 0,-1,n):t4(tu.current[t],t,n)}),t3=(0,a.useStableCallback)((t,n)=>{if(tr.current=n.reason===S.REASONS.inputClear,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===S.REASONS.inputChange){tC&&null!==e8&&e4(null);let e=n.event,r=e.inputType;if("compositionend"===e.type||null!=r&&""!==r&&"insertReplacementText"!==r){let e=""!==t.trim();e&&e2(!0),ts.current={hasQuery:e};let n=tj.state.listElement;if(!tj.state.virtualized&&n){let e=e5.current;for(let t of(0,p.getOverflowAncestors)(n.firstElementChild??n)){if(!(0,p.isHTMLElement)(t)||(e?!(0,y.contains)(e,t):"dialog"===t.getAttribute("role")))break;if((0,ek.isScrollableY)(t)){t.scrollTop=0;break}}}e&&x&&null==tj.state.activeIndex&&(tC||tU)&&tj.set("activeIndex",0)}}else n.reason===S.REASONS.inputClear&&""===t&&tj.state.inputInsidePopup&&(ts.current={hasQuery:!1,selection:!0}
1);tw(t)}}),t5=(0,a.useStableCallback)((t,n)=>{if(tC!==t&&(n.reason===S.REASONS.escapeKey&&th&&0===tD.length&&!tt.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&tq&&!tU&&null!==e8&&(e2(!1),e4(null),""!==tS&&n.reason!==S.REASONS.inputChange&&t3("",(0,E.createChangeEventDetails)(S.REASONS.inputClear,n.event))),!t&&e1&&(tm?(tU||e4(tM),""===tM&&e2(!1)):tp&&(tU||e4(tM),tq&&t6({activeIndex:null}),(!tq||tU)&&t3("",(0,E.createChangeEventDetails)(S.REASONS.inputClear,n.event)))),tA(t),!t&&tq&&(n.reason===S.REASONS.focusOut||n.reason===S.REASONS.outsidePress))&&(eq(!0),eX(!1),"onBlur"===eG))){let e="none"===H?tS:tx;eK.commit(e)}}),t7=(0,a.useStableCallback)((e,t)=>{N?.(e,t),t.isCanceled||(tb(e),("none"===H&&e5.current&&ev||tm&&!tj.state.inputInsidePopup)&&t3((0,D.stringifyAsLabel)(e,ef),(0,E.createChangeEventDetails)(t.reason,t.event)))}),t9=(0,a.useStableCallback)((e,t)=>{let n=(0,y.getTarget)(e),r=tl.current??e;tl.current=null;let i=(0,E.createChangeEventDetails)(S.REASONS.itemPress,r),a=n?.closest("a")?.getAttribute("href");if(a){a.startsWith("#")&&t5(!1,i);return}if(tp){let e=Array.isArray(tx)?tx:[];if(t7((0,O.selectedValueIncludes)(e,t,em)?(0,O.removeItem)(e,t,em):[...e,t],i),i.isCanceled||!(e7.current&&""!==e7.current.value.trim()))return;tj.state.inputInsidePopup?t3("",(0,E.createChangeEventDetails)(S.REASONS.inputClear,i.event)):t5(!1,i)}else{if(t7(t,i),i.isCanceled)return;t5(!1,i)}}),ne=(0,a.useStableCallback)(()=>{let e=eK.inputRef.current?.form??tj.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),nt=(0,a.useStableCallback)(()=>{if(tJ(!1),tH?.(!1),e2(!1),e4(null),"none"===H?t6({activeIndex:null,selectedIndex:null}):t6({activeIndex:null}),tp&&e7.current&&""!==e7.current.value&&!tr.current&&t3("",(0,E.createChangeEventDetails)(S.REASONS.inputClear)),tm)if(tj.state.inputInsidePopup)e7.current&&""!==e7.current.value&&t3("",(0,E.createChangeEventDetails)(S.REASONS.inputClear));else{let e=(0,D.stringifyAsLabel)(tx,ef);if(e7.current&&e7.current.value!==e){let t=""===e?S.REASONS.inputClear:S.REASONS.none;t3(e,(0,E.createChangeEventDetails)(t))}}}),nn=t.useMemo(()=>tU&&tB?{current:tB.closest('[role="dialog"]')}:e5,[tU,tB]);function nr(){let e=(0,D.stringifyAsLabel)(tx,ef);tS!==e&&t3(e,(0,E.createChangeEventDetails)(S.REASONS.none))}(0,eC.useOpenChangeComplete)({enabled:!e.actionsRef,open:tC,ref:nn,onComplete(){tC||nt()}}),t.useImperativeHandle(e.actionsRef,()=>({unmount:nt}),[nt]),(0,r.useIsoLayoutEffect)(function(){if(tC||(tc.current=null,"none"===H))return;let e=th?tN:tu.current;t6({selectedIndex:(0,O.findSelectionIndex)(e,tx,em,tp)})},[tC,tx,H,tp,th,tN,em,t6]),(0,r.useIsoLayoutEffect)(()=>{K&&(tu.current=tD,e6.current.length=tD.length)},[K,tD]),(0,r.useIsoLayoutEffect)(()=>{let e=ts.current;if(e){let t=tC||tU||tj.state.positionerElement?.hidden===!1;if(e.hasQuery)x&&t&&tj.set("activeIndex",0),ts.current=null;else if(""===String(tS).trim()&&(ts.current=null,t)){let t=e.selection;"always"!==x||t||"none"!==tj.state.selectionMode||tj.set("activeIndex",0),queueMicrotask(()=>{if(!tj.state.open&&!tj.state.inline||e7.current&&""!==e7.current.value.trim())return;let e=tj.state.selectedValue,n="multiple"===tj.state.selectionMode,r=n&&Array.isArray(e)?e[e.length-1]:e,i="none"!==tj.state.selectionMode&&null!=r;if(i||t){let t=th||tv?tD:tu.current;tj.set("activeIndex",i?(0,O.findSelectionIndex)(t,e,tj.state.isItemEqualToValue,n):null)}else"always"===x&&tj.set("activeIndex",0)})}}if(!tC&&!tU)return;let t=th||tv?tD:tu.current,n=tj.state.activeIndex;if(null==n)return"always"===x&&t.length>0?void tj.set("activeIndex",0):void t4(void 0,-1,S.REASONS.none);if(n>=t.length){t4(void 0,-1,S.REASONS.none),tj.set("activeIndex",null);return}let r=t[n],i=to.current.value,a=i!==e_&&(0,O.compareItemEquality)(r,i,tj.state.isItemEqualToValue);to.current.index===n&&a||t4(r,n,S.REASONS.none)},[tZ,x,t4,tv,th,tD,tU,tC,tj,tS]),(0,r.useIsoLayoutEffect)(()=>{"none"===H?eY(""!==String(tS)):eY(tp?Array.isArray(tx)&&tx.length>0:null!=tx)},[eY,H,tS,tx,tp]),t.useEffect(()=>{th&&x&&0===tD.length&&t6({activeIndex:null})},[th,x,tD.length,t6]),(0,eF.useValueChanged)(tM,()=>{tC&&""!==tM&&tM!==String(tE)&&e2(!0)}),(0,eF.useValueChanged)(tx,()=>{if("none"!==H){let e;eT(tf),eL((e=eN.initialValue,Array.isArray(tx)&&Array.isArray(e)?!(0,eZ.areArraysEqual)(tx,e,(e,t)=>(0,O.compareItemEquality)(e,t,em)):tx!==e)),eK.change(tx),!tm||tg||tq||nr()}}),(0,eF.useValueChanged)(tS,()=>{"none"===H&&(eT(tf),eL(tS!==eN.initialValue),eK.change(tS))}),(0,eF.useValueChanged)(K,()=>{!tm||tg||tq||e1||nr()});let ni=(0,g.useFloatingRootContext)({open:!!tU||tC,onOpenChange:t5,elements:{reference:tq?tW:tY,floating:tB}}),na=G?"grid":"listbox",nl=tC||tU,no=nl?"true":"false",ns=t.useMemo(()=>{let e=tY?.tagName==="INPUT",t=null==tY||e,n=t||nl,r=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(r.role="combobox",r["aria-expanded"]=no,r["aria-haspopup"]=na,r["aria-controls"]=nl?tz?.id:void 0,r["aria-autocomplete"]=ey),{reference:r,floating:{role:"presentation"}}},[tY,nl,no,na,tz?.id,ey]),nu=(0,v.useClick)(ni,{enabled:!W&&!td&&ee,event:"mou
1sedown-only",toggle:!1,touchOpenDelay:100*!tq,reason:S.REASONS.inputPress}),nc=(0,m.useDismiss)(ni,{enabled:!W&&!td&&!tU,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!tU||void 0,outsidePress(e){let t=(0,y.getTarget)(e);return!(0,y.contains)(tW,t)&&!(0,y.contains)(ta.current,t)&&!(0,y.contains)(ti.current,t)&&!(0,y.contains)(t$,t)}}),nd=(0,h.useListNavigation)(ni,{enabled:!W&&!td,id:eQ,listRef:e6,activeIndex:tZ,selectedIndex:t_,virtual:!0,loopFocus:eu,allowEscape:eu&&!x,focusItemOnOpen:!e1&&("none"!==H||!!x)&&"auto",focusItemOnHover:es,resetOnPointerLeave:!ei,orientation:G?"horizontal":void 0,rtl:"rtl"===eJ,disabledIndices:f.EMPTY_ARRAY,grid:G?b:void 0,onNavigate(e,t){(t||tC)&&"ending"!==tQ&&(t?t6({activeIndex:e,type:tn.current?S.REASONS.keyboard:S.REASONS.pointer}):t6({activeIndex:e}))}}),nf=t.useMemo(()=>(0,eH.mergeProps)(nd.reference,{onKeyDown(e){G&&null==tj.state.activeIndex&&("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventBaseUIHandler()}},nc.reference,nu.reference,ns.reference),[nd.reference,nc.reference,nu.reference,ns.reference,G,tj]),np=t.useMemo(()=>(0,eH.mergeProps)(eV.FOCUSABLE_POPUP_PROPS,nc.floating),[nc.floating]),nm=t.useMemo(()=>(0,eH.mergeProps)(nd.floating,ns.floating),[nd.floating,ns.floating]),ng=t.useMemo(()=>{let e=nd.item;return e?{...e,onFocus:void 0}:f.EMPTY_OBJECT},[nd.item]);(0,i.useOnFirstRender)(()=>{tj.update({inline:eh,popupProps:np,listProps:nm,inputProps:nf,triggerProps:t1,itemProps:ng,setOpen:t5,setInputValue:t3,setSelectedValue:t7,setIndices:t6,handleSelection:t9,forceMount:t8,requestSubmit:ne,onOpenChangeComplete:tH})}),(0,r.useIsoLayoutEffect)(()=>{tj.update({id:eQ,selectedValue:tx,open:tC,mounted:tK,transitionStatus:tQ,items:K,inline:eh,popupProps:np,listProps:nm,inputProps:nf,triggerProps:t1,openMethod:t0,itemProps:ng,selectionMode:H,name:tf,form:B,disabled:td,readOnly:W,required:q,grid:G,virtualized:eg,openOnInputClick:ee,itemToStringLabel:ef,modal:ex,autoHighlight:x,isItemEqualToValue:em,submitOnItemClick:ew,hasInputValue:tg,inputOwnsFormValue:"none"===H&&(eh||!tj.state.inputInsidePopup)})},[tj,eQ,tx,tC,tK,tQ,K,np,nm,nf,ng,t0,t1,H,tf,td,W,q,G,eg,ee,ef,ex,em,ew,tg,eh,x,B]);let nh=(0,l.useMergedRefs)(X,eK.inputRef),nv=t.useMemo(()=>({query:tM,hasItems:th,filteredItems:tO,flatFilteredItems:tD}),[tM,th,tO,tD]),nx=t.useMemo(()=>Array.isArray(tk)?"":(0,D.stringifyAsValue)(tk,ep),[tk,ep]),nb=tp&&Array.isArray(tx)&&tx.length>0,ny=tp||"none"===H&&tX?void 0:tf,nE=t.useMemo(()=>tp&&Array.isArray(tx)&&tf?tx.map(e=>{let t=(0,D.stringifyAsValue)(e,ep);return(0,eW.jsx)("input",{type:"hidden",form:B,name:tf,value:t,disabled:td},t)}):null,[tp,tx,B,tf,ep,td]),nS=(0,eW.jsxs)(t.Fragment,{children:[e.children,(0,eW.jsx)("input",{...eK.getValidationProps(td,{onFocus(){tq?tW?.focus():(e7.current||tW)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||td||W)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=(0,E.createChangeEventDetails)(S.REASONS.none,e.nativeEvent),i=()=>tu.current.findIndex(e=>(0,D.stringifyAsValue)(e,ep).toLowerCase()===n||(0,D.stringifyAsLabel)(e,ef).toLowerCase()===n);tm&&(t8(),K&&-1===i()&&tj.set("forceMounted",!0)),queueMicrotask(function(){if(tp)return;if("none"===H)return void t3(t,r);let e=i();-1===e&&(e=tu.current.findIndex((e,t)=>{let r=e3.current[t];return null!=r&&r.toLowerCase()===n}));let a=-1===e?void 0:tu.current[e];null!=a&&t7?.(a,r)})}}),id:eQ&&null==ny?`${eQ}-hidden-input`:void 0,form:B,name:ny,autoComplete:eE,disabled:td,required:q&&!nb,readOnly:W,value:nx,ref:nh,style:ny?
1s.visuallyHiddenInput:s.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),nE]});return(0,eW.jsx)(C.Provider,{value:tj,children:(0,eW.jsx)(A.Provider,{value:ni,children:(0,eW.jsx)(M.Provider,{value:th,children:(0,eW.jsx)(R.Provider,{value:nv,children:(0,eW.jsx)(I.Provider,{value:tS,children:nS})})})})})}var e$=e.i(552245),eU=e.i(875812),eq=e.i(897886),eX=e.i(450001);let eG=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;delete a.id;let l=(0,eA.useFieldRootContext)(),o=T(),s=(0,d.useStore)(o,ec),u=(0,d.useStore)(o,ea);(0,d.useStore)(o,el);let c=(0,d.useStore)(o,j),f=(0,eX.getDefaultLabelId)(c),p=u?.id??(s?c:void 0),m=(0,eq.useLabel)({id:f,fallbackControlId:p,setLabelId(e){let t="function"==typeof e?e(o.state.labelId):e;o.set("labelId",t)}});return(0,e$.useRenderElement)("div",e,{ref:t,state:l.state,props:[m,a],stateAttributesMapping:eU.fieldValidityMapping})});var eK=e.i(328744),eJ=e.i(788015),eQ=e.i(405005);let e0={...eQ.pressableTriggerOpenStateMapping,...eU.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};var e1=e.i(247778);let e2=t.createContext(void 0);function e8(){return t.useContext(e2)}var e4=e.i(157940);let e6=t.createContext(void 0);function e3(e){let n=t.useContext(e6);if(void 0===n&&!e)throw Error((0,w.default)(21));return n}var e5=e.i(540886);let e7=t.forwardRef(function(e,t){let n=T(),{buttonRef:r,getButtonProps:i}=(0,e5.useButton)({native:!1}),a=(0,l.useMergedRefs)(t,r),o=i({onClick:function(e){n.state.setOpen(!1,(0,E.createChangeEventDetails)(S.REASONS.closePress,e.nativeEvent,e.currentTarget))}});return(0,eW.jsx)("span",{ref:a,...o,"aria-label":"Dismiss",tabIndex:void 0,style:s.visuallyHiddenInput})});function e9(e){let t=(0,d.useStore)(e,z),n=(0,d.useStore)(e,es),r=(0,d.useStore)(e,en);return t&&r?n:null}function te(){return 0===L().filteredItems.length}function tt(e){return"rtl"===e?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]}function tn(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0}function tr(e,t,n){let r=e.state.listRef.current[t];r&&(e.state.selectionEventRef.current=n,r.click(),e.state.selectionEventRef.current=null)}let ti=t.forwardRef(function(e,n){let{render:r,className:i,disabled:l=!1,id:o,style:s,...u}=e,{state:c,disabled:f,setTouched:p,setFocused:m,validationMode:g,validation:h}=(0,eA.useFieldRootContext)(),{labelId:v}=(0,e1.useLabelableContext)(),x=e8(),b=!!e3(!0),y=T(),w=N(),C=(0,ez.useDirection)(),A=(0,d.useStore)(y,ev),R=(0,d.useStore)(y,eg),M=(0,d.useStore)(y,eh),I=(0,d.useStore)(y,ep),P=(0,d.useStore)(y,em),L=(0,d.useStore)(y,ef),O=(0,d.useStore)(y,ew),D=(0,d.useStore)(y,Q),k=(0,d.useStore)(y,ee),F=(0,d.useStore)(y,B),H=(0,d.useStore)(y,z),Z=(0,d.useStore)(y,V),_=(0,d.useStore)(y,j),W=(0,d.useStore)(y,Y),$=(0,d.useStore)(y,eS),U=!!O,q=e9(y),X=f||R||l,G=te(),K=b||W,J=(0,eJ.useBaseUiId)(o??(K?void 0:_)),et=b?eU.DEFAULT_FIELD_STATE_ATTRIBUTES:c,[en,er]=t.useState(null),ei=t.useRef(!1),ea=t.useRef(null),el=t.useRef(!1),eo="none"===L&&!b,es=(0,a.useStableCallback)(e=>{let t=b||y.state.inline;t&&!y.state.hasInputValue&&y.state.setInputValue("",(0,E.createChangeEventDetails)(S.REASONS.none)),y.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:eo})}),eu=b?u:h.getValidationProps(X,u);function ec(){y.state.setIndices({activeIndex:null,selectedIndex:null,type:y.state.keyboardActiveRef.current?S.REASONS.keyboard:S.REASONS.pointer})}function ed(){y.state.keyboardActiveRef.current=!1}let ex={...et,open:F,disabled:X,readOnly:M,popupSide:q,listEmpty:G},eb=(0,e$.useRenderElement)("input",e,{state:ex,ref:[n,y.state.inputRef,es],props:[D,k,{value:en??w,"aria-readonly":M||void 0,"aria-required":A||void 0,"aria-labelledby":v,disabled:X,readOnly:M,required:"none"===L?A:void 0,form:P,...eo&&I&&{name:I},id:J,onFocus(){if(m(!0),!W||!el.current)return;el.current=!1;let e=ea.current;null!=e&&Object.hasOwn(y.state.valuesRef.current,e)&&y.state.setIndices({activeIndex:e})},onBlur(){p(!0),m(!1);let e=y.state.activeIndex;if(W&&null!==e&&"always"!==O&&(ea.current=e,el.current=!0,y.state.setIndices({activeIndex:null})),"onBlur"===g){let e="none"===L?w:Z;h.commit(e)}},onCompositionStart(e){eK.platform.os.android||(ei.current=!0,er(e.currentTarget.value))},onCompositionEnd(e){ei.current=!1;let t=e.currentTarget.value;er(null),y.state.setInputValue(t,(0,E.createChangeEventDetails)(S.REASONS.inputChange,e.
1nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=ei.current||!(!n||"insertReplacementText"===n);function i(e){!M&&!X&&e&&r&&(y.state.setOpen(!0,(0,E.createChangeEventDetails)(S.REASONS.inputChange,t)),U||ec())}if(ei.current){let n=e.currentTarget.value;er(n),""!==n||y.state.openOnInputClick||y.state.inputInsidePopup||y.state.setOpen(!1,(0,E.createChangeEventDetails)(S.REASONS.inputClear,t));let r=n.trim(),a=U&&""!==r;i(r),F&&null!==y.state.activeIndex&&!a&&ec();return}let a=(0,E.createChangeEventDetails)(S.REASONS.inputChange,t);if(y.state.setInputValue(e.currentTarget.value,a),a.isCanceled)return;let l=""===e.currentTarget.value,o=(0,E.createChangeEventDetails)(S.REASONS.inputClear,t);l&&!y.state.inputInsidePopup&&("single"===L&&y.state.setSelectedValue(null,o),y.state.openOnInputClick||y.state.setOpen(!1,o)),i(e.currentTarget.value.trim()),F&&null!==y.state.activeIndex&&!U&&ec()},onKeyDown(e){if(X||M||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;y.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r="rtl"===C;if("Home"===e.key){(0,e4.stopEvent)(e);let n=eK.platform.engine.gecko&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,e4.stopEvent)(e);let i=eK.platform.engine.gecko&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!H&&"Escape"===e.key){let t="multiple"===L&&Array.isArray(Z)?0===Z.length:null===Z,n=(0,E.createChangeEventDetails)(S.REASONS.escapeKey,e.nativeEvent);y.state.setInputValue("",n),y.state.setSelectedValue("multiple"===L?[]:null,n),t||y.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(x&&"Backspace"===e.key&&""===t.value&&void 0===x.highlightedChipIndex&&Array.isArray(Z)&&Z.length>0){let t=x.chipsRef.current.length,n=t>0?t-1:Z.length-1,r=Z.filter((e,t)=>t!==n);ec(),y.state.setSelectedValue(r,(0,E.createChangeEventDetails)(S.REASONS.none,e.nativeEvent));return}let i=x?.highlightedChipIndex!==void 0,a=function(e){let t;if(!x)return;let{highlightedChipIndex:n}=x,r=x.chipsRef.current.length,[i,a]=tt(C);return void 0!==n?e.key===i?(e.preventDefault(),t=n>0?n-1:void 0):e.key===a?(e.preventDefault(),t=n<r-1?n+1:void 0):("Backspace"===e.key||"Delete"===e.key)&&(e.preventDefault(),t=tn(n,Z.length),ec()):e.key===i&&(e.currentTarget.selectionStart??0)===0&&Z.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t}(e);if(x?.setHighlightedChipIndex(a),void 0!==a?x?.chipsRef.current[a]?.focus():i&&y.state.inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&F){let t=y.state.activeIndex,n=e.nativeEvent;if(null===t){if(W)return;y.state.setOpen(!1,(0,E.createChangeEventDetails)(S.REASONS.none,n));return}(0,e4.stopEvent)(e),tr(y,t,n)}},onPointerMove:ed,onPointerDown:ed},eu],stateAttributesMapping:e0}),ey=b?(0,eW.jsx)(eA.FieldRootContext.Provider,{value:eA.DEFAULT_FIELD_ROOT_CONTEXT,children:eb}):eb;return(0,eW.jsxs)(t.Fragment,{children:[F&&(!K||$)&&(0,eW.jsx)(e7,{ref:y.state.startDismissRef}),ey]})});var ta=e.i(596296);function tl(e,t,n,r,i){if(e.baseUIHandlerPrevented||r)return;let a=(0,y.getTarget)(e.nativeEvent),l=(0,p.isElement)(a)?a:null;l!==e.currentTarget&&(i?.(l)||(0,ta.isInteractiveElement)(l))||(e.preventDefault(),!n&&(t.state.inputRef.current?.focus(),t.state.openOnInputClick&&t.state.setOpen(!0,(0,E.createChangeEventDetails)(S.REASONS.inputPress,e.nativeEvent))))}let to=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...l}=e,{state:o}=(0,eA.useFieldRootContext)(),s=T(),u=(0,d.useStore)(s,B),c=(0,d.useStore)(s,eg),f=(0,d.useStore)(s,eh),p=(0,d.useStore)(s,Z),m=(0,d.useStore)(s,ef),g=e9(s),h=te(),v={...o,open:u,disabled:c,readOnly:f,popupSide:g,listEmpty:h,placeholder:"none"!==m&&!p},x=(0,a.useStableCallback)(e=>{s.set("inputGroupElement",e)});return(0,e$.useRenderElement)("div",e,{ref:[t,x],props:[{role:"group",onMouseDown(e){tl(e,s,c,f,e=>(0,y.contains)(s.state.chipsContainerRef.current,e))}},l],state:v,stateAttributesMapping:e0})});var ts=e.i(439957),tu=e.i(108868),tc=e.i(264042),td=e.i(736760);let tf=t.forwardRef(function(e,n){let r,{render:i,className:l,nativeButton:o=!0,disabled:s=!1,id:u,style:c,...f}
1=e,{state:p,disabled:m,setTouched:g,setFocused:h,validationMode:x,validation:b}=(0,eA.useFieldRootContext)(),{labelId:w}=(0,e1.useLabelableContext)(),C=T(),A=(0,d.useStore)(C,ef),R=(0,d.useStore)(C,eg),M=(0,d.useStore)(C,eh),I=(0,d.useStore)(C,ev),L=(0,d.useStore)(C,en),O=(0,d.useStore)(C,er),D=(0,d.useStore)(C,ei),F=(0,d.useStore)(C,ee),H=(0,d.useStore)(C,ec),_=(0,d.useStore)(C,j),z=(0,d.useStore)(C,k),W=(0,d.useStore)(C,B),Y=(0,d.useStore)(C,V),q=(0,d.useStore)(C,$),X=(0,d.useStore)(C,U),G=(0,d.useStore)(C,Z),K=P(),J=N(),Q=(0,ts.useTimeout)(),et=m||R||s,ea=te(),el=e9(C);(0,eI.useLabelableId)({id:H?u:void 0});let eo=H?u??_:u,es=(0,eX.resolveAriaLabelledBy)(w,z);W&&H?r=D??eT(_):W&&(r=O?.id);let eu=t.useRef("");function ed(e){eu.current=e.pointerType}let{reference:ep}=(0,td.useTypeahead)(K,{enabled:!W&&!M&&!R&&"single"===A,listRef:C.state.labelsRef,activeIndex:q,selectedIndex:X,onMatch(e){let t=C.state.valuesRef.current[e];void 0!==t&&C.state.setSelectedValue(t,(0,E.createChangeEventDetails)(S.REASONS.none))}}),{reference:em}=(0,v.useClick)(K,{enabled:!M&&!R,event:"mousedown"}),{buttonRef:ex,getButtonProps:eb}=(0,e5.useButton)({native:o,disabled:et}),ey={...p,open:W,disabled:et,popupSide:el,listEmpty:ea,placeholder:"none"!==A&&!G},eE=(0,a.useStableCallback)(e=>{C.set("triggerElement",e)});return(0,e$.useRenderElement)("button",e,{ref:[n,ex,eE],state:ey,props:[F,em,ep,{id:eo,tabIndex:H?0:-1,role:H?"combobox":void 0,"aria-expanded":W,"aria-haspopup":H?"dialog":"listbox","aria-controls":r,"aria-required":H&&I||void 0,"aria-labelledby":es,onPointerDown:ed,onPointerEnter:ed,onFocus(){h(!0),et||M||Q.start(0,C.state.forceMount)},onBlur(e){(0,y.contains)(L,e.relatedTarget)||(g(!0),h(!1),"onBlur"===x&&b.commit("none"===A?J:Y))},onMouseDown(e){if(et||M||(H||K.set("domReferenceElement",e.currentTarget),C.state.forceMount(),"touch"!==eu.current&&(C.state.inputRef.current?.focus(),H||e.preventDefault()),W))return;let t=(0,tu.ownerDocument)(e.currentTarget);H&&t.addEventListener("mouseup",function(e){let t=C.state.triggerElement;if(!t)return;let n=(0,y.getTarget)(e),r=C.state.positionerElement,i=C.state.listElement;(0,y.contains)(t,n)||(0,y.contains)(r,n)||(0,y.contains)(i,n)||(0,tc.isMouseWithinBounds)(e,t)||C.state.setOpen(!1,(0,E.createChangeEventDetails)(S.REASONS.cancelOpen,e))},{once:!0})},onKeyDown(e){M||("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,e4.stopEvent)(e),C.state.setOpen(!0,(0,E.createChangeEventDetails)(S.REASONS.listNavigation,e.nativeEvent)),C.state.inputRef.current?.focus())}},b.getValidationProps(et,f),eb],stateAttributesMapping:e0})}),tp=t.createContext(null);function tm(e){let{children:n,items:r}=e,i=t.useMemo(()=>({items:r}),[r]);return(0,eW.jsx)(tp.Provider,{value:i,children:n})}function tg(e){let{children:n}=e,{filteredItems:r}=L(),i=t.useContext(tp),a=i?i.items:r;return(0,eW.jsx)(t.Fragment,{children:a.map(n)})}var th=e.i(53687);let tv=t.forwardRef(function(e,n){var r;let{render:i,className:l,style:o,children:s,...u}=e,c=T(),f=P(),p=!!e3(!0),{filteredItems:m,hasItems:g}=L(),h=(0,d.useStore)(c,ef),v=(0,d.useStore)(c,ex),x=(0,d.useStore)(c,J),b=(0,d.useStore)(c,eb),y=(0,d.useStore)(c,W),E=0===m.length,S=(0,a.useStableCallback)(e=>{c.set("positionerElement",e)}),w=(0,a.useStableCallback)(e=>{c.set("listElement",e)}),C=t.useMemo(()=>"function"==typeof s?r||(r=(0,eW.jsx)(tg,{children:s})):s,[s]),A=f.useState("floatingId"),R=(0,e$.useRenderElement)("div",e,{state:{empty:E},ref:[n,w,p?null:S],props:[x,{children:C,tabIndex:-1,id:A,role:v?"grid":"listbox","aria-multiselectable":"multiple"===h?"true":void 0,onKeyDown(e){if(!c.state.disabled&&!c.state.readOnly&&"Enter"===e.key){let t=c.state.activeIndex;null!=t&&((0,e4.stopEvent)(e),tr(c,t,e.nativeEvent))}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},u]});if(b)return R;let M=g&&!y?void 0:c.state.labelsRef;return(0,eW.jsx)(th.CompositeList,{elementsRef:c.state.listRef,labelsRef:M,children:R})});function tx(){let e=(0,ts.useTimeout)(),n=t.useRef(null);return t.useEffect(()=>{if(eK.platform.os.ios)return;let t=n.current;if(null==t)return;let r=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;
1""!==e.nodeValue&&(n=e)}return n}(t);if(null==r)return;let i=r.data,a=`${i}\u2060`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[n,e]),n}let tb=t.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...l}=e,o=tx();return(0,e$.useRenderElement)("div",e,{ref:[t,o],props:[{children:a,role:"status","aria-live":"polite","aria-atomic":!0},l]})});var ty=e.i(726674);let tE=t.createContext(void 0),tS=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=T(),a=(0,d.useStore)(i,z),l=(0,d.useStore)(i,W);return a||n||l?(0,eW.jsx)(tE.Provider,{value:n,children:(0,eW.jsx)(ty.FloatingPortal,{ref:t,...r})}):null});var tw=e.i(209407);let tC={...eQ.popupStateMapping,...tw.transitionStatusMapping},tA=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,l=T(),o=(0,d.useStore)(l,B),s=(0,d.useStore)(l,z),u=(0,d.useStore)(l,G);return(0,e$.useRenderElement)("div",e,{state:{open:o,transitionStatus:u},ref:t,stateAttributesMapping:tC,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},a]})});var tR=e.i(144394),tM=e.i(923706),tI=e.i(638396),tT=e.i(426),tP=e.i(789579),tL=e.i(33383);let tN=t.forwardRef(function(e,n){let{render:i,className:l,anchor:o,positionMethod:s,side:u,align:c,sideOffset:f,alignOffset:p,collisionBoundary:m="clipping-ancestors",collisionPadding:g,arrowPadding:h,sticky:v,disableAnchorTracking:x=!1,collisionAvoidance:b=tI.DROPDOWN_COLLISION_AVOIDANCE,style:y,...E}=e,S=T(),C=P(),A=function(){let e=t.useContext(tE);if(void 0===e)throw Error((0,w.default)(20));return e}(),R=(0,d.useStore)(S,eS),M=(0,d.useStore)(S,B),I=(0,d.useStore)(S,z),L=(0,d.useStore)(S,eu),N=(0,d.useStore)(S,en),O=(0,d.useStore)(S,ea),D=(0,d.useStore)(S,el),j=(0,d.useStore)(S,eo),k=(0,d.useStore)(S,ec),F=(0,d.useStore)(S,G),V=te(),H=(0,tM.useAnchorPositioning)({anchor:o??(k?O:j??D),floatingRootContext:C,positionMethod:s,mounted:I,side:u,sideOffset:f,align:c,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:v,disableAnchorTracking:x,keepMounted:A,collisionAvoidance:b,lazyFlip:!0});(0,tL.useAnchoredPopupScrollLock)(M&&R,"touch"===L,N,O);let Z={open:M,side:H.side,align:H.align,anchorHidden:H.anchorHidden,empty:V};(0,r.useIsoLayoutEffect)(()=>{S.set("popupSide",H.side)},[S,H.side]);let _=(0,a.useStableCallback)(e=>{S.set("positionerElement",e)}),W=(0,tP.usePositioner)(e,Z,{styles:H.positionerStyles,transitionStatus:F,props:E,refs:[n,_],hidden:!I,inert:!M});return(0,eW.jsxs)(e6.Provider,{value:H,children:[I&&R&&(0,eW.jsx)(tT.InternalBackdrop,{inert:(0,tR.inertValue)(!M),cutout:j??D??O}),W]})});var tO=e.i(61487),tD=e.i(253984);let tj={...eQ.popupStateMapping,...tw.transitionStatusMapping},tk=t.forwardRef(function(e,n){let{render:i,className:a,style:l,initialFocus:o,finalFocus:s,...u}=e,c=T(),f=e3(),p=P(),m=(0,d.useStore)(c,z),g=(0,d.useStore)(c,B),h=(0,d.useStore)(c,eu),v=(0,d.useStore)(c,K),x=(0,d.useStore)(c,G),b=(0,d.useStore)(c,ec),E=(0,d.useStore)(c,el),S=(0,d.useStore)(c,eS),w=(0,d.useStore)(c,j),C=te(),A=u.id??(b?eT(w):void 0);(0,r.useIsoLayoutEffect)(()=>(c.set("popupId",c.state.popupRef.current?.id||A),()=>{c.set("popupId",void 0)}),[c,A]),(0,eC.useOpenChangeComplete)({open:g,ref:c.state.popupRef,onComplete(){g&&c.state.onOpenChangeComplete(!0)}});let R={open:g,side:f.side,align:f.align,anchorHidden:f.anchorHidden,transitionStatus:x,empty:C},M=(0,e$.useRenderElement)("div",e,{state:R,ref:[n,c.state.popupRef],props:[v,{id:A,role:b?"dialog":"presentation",onFocus(e){let t=(0,y.getTarget)(e.nativeEvent);"touch"!==h&&((0,y.contains)(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},(0,tD.getDisabledMountTransitionStyles)(x),u],stateAttributesMapping:tj}),I=!!b&&(e=>"touch"===e?c.state.popupRef.current:E),L=!b||S;return(0,eW.jsx)(tO.FloatingFocusManager,{context:p,disabled:!m,modal:L,openInteractionType:h,initialFocus:void 0===o?I:o,returnFocus:null!=s?s:!!b&&void 0,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,eW.jsxs)(t.Fragment,{children:[M,L&&(0,eW.jsx)(e7,{ref:c.state.endDismissRef})]})})}),tF=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,l=T(),{arrowRef:o,side:s,align:u,arrowUncentered:c,arrowStyles:f}=e3(),p=(0,d.useStore)(l,B);return(0,e$.useRenderElement)("div",e,{ref:[o,t],stateAttributesMapping:eQ.popupStateMapping,state:{open:p,side:s,align:u,uncentered:c},props:{style:f,"aria-hidden":!0,...a}})}),tV=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return(0,e$.useRenderElement)("span",e,{ref:t,props:[{"aria-hidden":!0,
1children:"▼"},a]})}),tH=t.createContext(void 0),tZ=t.forwardRef(function(e,n){let{render:r,className:i,style:a,items:l,...o}=e,[s,u]=t.useState(),c=t.useMemo(()=>({labelId:s,setLabelId:u,items:l}),[s,u,l]),d=(0,e$.useRenderElement)("div",e,{ref:n,props:[{role:"group","aria-labelledby":s},o]}),f=(0,eW.jsx)(tH.Provider,{value:c,children:d});return l?(0,eW.jsx)(tm,{items:l,children:f}):f}),t_=t.forwardRef(function(e,n){let{render:i,className:a,style:l,id:o,...s}=e,{setLabelId:u}=function(){let e=t.useContext(tH);if(void 0===e)throw Error((0,w.default)(18));return e}(),c=(0,eJ.useBaseUiId)(o);return(0,r.useIsoLayoutEffect)(()=>(u(c),()=>{u(e=>e===c?void 0:e)}),[c,u]),(0,e$.useRenderElement)("div",e,{ref:n,props:[{id:c},s]})});var tB=e.i(174080),tz=e.i(673553);let tW=t.createContext(void 0);function tY(){let e=t.useContext(tW);if(!e)throw Error((0,w.default)(19));return e}let t$=t.createContext(!1);function tU(e){let{componentProps:n,forwardedRef:i,virtualized:a,indexFromFilter:l}=e,{render:o,className:s,style:u,value:c=null,index:f,disabled:p=!1,nativeButton:m=!1,...g}=n,h=t.useRef(null),v=(0,tz.useCompositeListItem)({guess:!0,index:f,textRef:h}),x=T(),b=t.useContext(t$),y=t.useContext(M),E=(0,d.useStore)(x,ef),S=(0,d.useStore)(x,eg),w=(0,d.useStore)(x,eh),C=(0,d.useStore)(x,eE),A=S||p,R="none"!==E,I=f??l??v.index,P=-1!==I,L=(0,d.useStore)(x,j),N=(0,d.useStore)(x,q,I),D=(0,d.useStore)(x,X,c),k=(0,d.useStore)(x,et),F=t.useRef(null),V=null!=L&&P?`${L}-${I}`:void 0,H=D&&R;(0,r.useIsoLayoutEffect)(()=>{if(!(P&&(a||null!=f)))return;let e=x.state.listRef.current;return e[I]=F.current,()=>{delete e[I]}},[P,a,I,f,x]),(0,r.useIsoLayoutEffect)(()=>{if(!P||y)return;let e=x.state.valuesRef.current;return e[I]=c,()=>{delete e[I]}},[P,y,I,c,x]),(0,r.useIsoLayoutEffect)(()=>{if(!P||y)return;let e=x.state.selectedValue,t=Array.isArray(e)?e[e.length-1]:e;(0,O.compareItemEquality)(c,t,C)&&x.set("selectedIndex",I)},[P,y,x,I,c,C]);let{getButtonProps:Z,buttonRef:_}=(0,e5.useButton)({disabled:A,focusableWhenDisabled:!0,native:m,composite:!0});function B(e){function t(){x.state.handleSelection(e,c)}x.state.submitOnItemClick?(tB.flushSync(t),x.state.requestSubmit()):t()}let z=(0,e$.useRenderElement)("div",n,{ref:[_,i,v.ref,F],state:{disabled:A,selected:H,highlighted:N},props:[k,{id:V,role:b?"gridcell":"option","aria-selected":R?H:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(x.state.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){A||w||B(e.nativeEvent)},onMouseUp(e){let t=x.state.pointerDownItemRef.current===e.currentTarget;x.state.pointerDownItemRef.current=null,A||w||0!==e.button||t||!N||B(e.nativeEvent)}},g,Z]}),W=t.useMemo(()=>({selected:H,textRef:h}),[H,h]);return(0,eW.jsx)(tW.Provider,{value:W,children:z})}function tq(e){let{componentProps:t,forwardedRef:n}=e,r=T(),i=(0,d.useStore)(r,eE),{flatFilteredItems:a}=L(),l=(0,O.findItemIndex)(a,t.value??null,i);return(0,eW.jsx)(tU,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:l})}let tX=t.memo(t.forwardRef(function(e,t){let n=T(),r=(0,d.useStore)(n,eb);return r&&null==e.index?(0,eW.jsx)(tq,{componentProps:e,forwardedRef:t}):(0,eW.jsx)(tU,{componentProps:e,forwardedRef:t,virtualized:r,indexFromFilter:void 0})})),tG=t.forwardRef(function(e,t){let{selected:n}=tY();return e.keepMounted||n?(0,eW.jsx)(tK,{...e,ref:t}):null}),tK=t.memo(t.forwardRef((e,n)=>{let{render:r,className:i,style:a,keepMounted:l,...o}=e,{selected:s}=tY(),u=t.useRef(null),{transitionStatus:c,setMounted:d}=(0,eD.useTransitionStatus)(s),f=(0,e$.useRenderElement)("span",e,{ref:[n,u],state:{selected:s,transitionStatus:c},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:tw.transitionStatusMapping});return(0,eC.useOpenChangeComplete)({open:s,ref:u,onComplete(){s||d(!1)}}),f})),tJ=t.forwardRef(function(e,n){let{render:r,className:i,style:a,...l}=e,o=T(),s=(0,d.useStore)(o,B),u=(0,d.useStore)(o,H),[c,p]=t.useState(void 0);s&&void 0!==c&&p(void 0);let m=t.useRef([]),g=(0,e$.useRenderElement)("div",e,{ref:[n,o.state.chipsContainerRef],props:[u?{role:"toolbar"}:f.EMPTY_OBJECT,{onMouseDown(e){tl(e,o,o.state.disabled,o.state.readOnly)}},l]}),h=t.useMemo(()=>({highlightedChipIndex:c,setHighlightedChipIndex:p,chipsRef:m}),[c,p,m]);return(0,eW.jsx)(e2.Provider,{value:h,children:(0,eW.jsx)(th.CompositeList,{elementsRef:m,children:g})})}),tQ=t.createContext(void 0),t0=t.forwardRef(function(e,n){let{render:r,className:i,style:a,...l}=e,o=T(),{setHighlightedChipIndex:s,chipsRef:u}=e8(),c=(0,ez.useDirection)(),f=(0,d.useStore)(o,eg),p=(0,d.useStore)(o,eh),m=(0,d.useStore)(o,V),{ref:g,index:h}=(0,tz.useCompositeListItem)(),v=(0,e$.useRenderElement)("div",e,{ref:[n,g],state:{disabled:f},props:[{tabIndex:-1,"aria-disabled":f||void 0,"aria-readonly":p||void 0,onKeyDown(e){if(f||p)return;let t=function(e){let t=h,[n,r]=tt(c);return e.key===n?(e.preventDefault(),t=h>0?h-1:void 0):e.key===r?(e.preventDefault(),t=h<u.current.length-1?h+1:void 0):"Backspace"===e.key||"Delete"===e.key?(t=tn(h,m.length),(0,e4.stopEvent)(e),o.state.setIndices({activeIndex:null,selectedIndex:null,type:S.REASONS.keyboard}),o.state.setSelectedValue(m.filter((e,t)=>
1t!==h),(0,E.createChangeEventDetails)(S.REASONS.none,e.nativeEvent))):"Enter"===e.key||" "===e.key?((0,e4.stopEvent)(e),t=void 0):"ArrowDown"===e.key||"ArrowUp"===e.key?((0,e4.stopEvent)(e),o.state.setOpen(!0,(0,E.createChangeEventDetails)(S.REASONS.listNavigation,e.nativeEvent)),t=void 0):1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(t=void 0),t}(e);tB.flushSync(()=>{s(t)}),void 0===t?o.state.inputRef.current?.focus():u.current[t]?.focus()}},l]}),x=t.useMemo(()=>({index:h}),[h]);return(0,eW.jsx)(tQ.Provider,{value:x,children:v})}),t1=t.forwardRef(function(e,n){let{render:r,className:i,disabled:a=!1,nativeButton:l=!0,style:o,...s}=e,u=T(),{index:c}=function(){let e=t.useContext(tQ);if(!e)throw Error((0,w.default)(17));return e}(),f=(0,d.useStore)(u,eg),p=(0,d.useStore)(u,eh),m=(0,d.useStore)(u,V),g=(0,d.useStore)(u,eE),h=f||a,{buttonRef:v,getButtonProps:x}=(0,e5.useButton)({native:l,disabled:h||p,focusableWhenDisabled:!0});function b(e){let t=(0,E.createChangeEventDetails)(S.REASONS.chipRemovePress,e.nativeEvent);return!function(e){let t=u.state.activeIndex;if(null==t)return;let n=(0,O.findItemIndex)(u.state.valuesRef.current,e,g);-1!==n&&t===n&&u.state.setIndices({activeIndex:null,type:u.state.keyboardActiveRef.current?S.REASONS.keyboard:S.REASONS.pointer})}(m[c]),u.state.setSelectedValue(m.filter((e,t)=>t!==c),t),u.state.inputRef.current?.focus(),t}return(0,e$.useRenderElement)("button",e,{ref:[n,v],state:{disabled:h},props:[{tabIndex:-1,onMouseDown(e){e.preventDefault()},onClick(e){b(e).isPropagationAllowed||e.stopPropagation()},onKeyDown(e){("Enter"===e.key||" "===e.key)&&(b(e).isPropagationAllowed||(0,e4.stopEvent)(e))}},s,x]})}),t2=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,l=(0,e$.useRenderElement)("div",e,{ref:t,props:[{role:"row"},a]});return(0,eW.jsx)(t$.Provider,{value:!0,children:l})}),t8=t.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...l}=e,{filteredItems:o}=L(),s=T(),u=tx(),c=0===o.length?a:null;return(0,e$.useRenderElement)("div",e,{ref:[t,s.state.emptyRef,u],props:[{children:c,role:"status","aria-live":"polite","aria-atomic":!0},l]})}),t4={...tw.transitionStatusMapping,...eQ.triggerOpenStateMapping},t6=t.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:l=!1,style:o,...s}=e,{disabled:u}=(0,eA.useFieldRootContext)(),c=T(),f=(0,d.useStore)(c,ef),p=(0,d.useStore)(c,eg),m=(0,d.useStore)(c,eh),g=(0,d.useStore)(c,B),h=(0,d.useStore)(c,V),v=(0,d.useStore)(c,H),x=N(),b=!1;b="none"===f?""!==x:"single"===f?null!=h:v;let y=u||p||i,{buttonRef:w,getButtonProps:C}=(0,e5.useButton)({native:a,disabled:y}),{mounted:A,transitionStatus:R,setMounted:M}=(0,eD.useTransitionStatus)(b),I={disabled:y,visible:b,open:g,transitionStatus:R};(0,eC.useOpenChangeComplete)({open:b,ref:c.state.clearRef,onComplete(){b||M(!1)}});let P=(0,e$.useRenderElement)("button",e,{state:I,ref:[t,w,c.state.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(y||m)return;let t=c.state.keyboardActiveRef.current?S.REASONS.keyboard:S.REASONS.pointer;c.state.setInputValue("",(0,E.createChangeEventDetails)(S.REASONS.clearPress,e.nativeEvent)),"none"!==f?(c.state.setSelectedValue(Array.isArray(h)?[]:null,(0,E.createChangeEventDetails)(S.REASONS.clearPress,e.nativeEvent)),c.state.setIndices({activeIndex:null,selectedIndex:null,type:t})):c.state.setIndices({activeIndex:null,type:t}),c.state.inputRef.current?.focus()}},s,C],stateAttributesMapping:t4});return l||A?P:null}),t3=e.i(818438).ListboxSeparator;e.s(["Arrow",0,tF,"Backdrop",0,tA,"Chip",0,t0,"ChipRemove",0,t1,"Chips",0,tJ,"Clear",0,t6,"Collection",0,tg,"Empty",0,t8,"Group",0,tZ,"GroupLabel",0,t_,"Icon",0,tV,"Input",0,ti,"InputGroup",0,to,"Item",0,tX,"ItemIndicator",0,tG,"Label",0,eG,"List",0,tv,"Popup",0,tk,"Portal",0,tS,"Positioner",0,tN,"Root",0,function(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...l}=e;return(0,eW.jsx)(eY,{...l,selectionMode:t?"multiple":"single",selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})},"Row",0,t2,"Separator",0,t3,"Status",0,tb,"Trigger",0,tf,"Value",0,function(e){let{children:n,placeholder:r}=e,i=T(),a=(0,d.useStore)(i,ey),l=(0,d.useStore)(i,V),o=(0,d.useStore)(i,F),s="multiple"===(0,d.useStore)(i,ef),u=(0,d.useStore)(i,Z),c=(0,d.useStore)(i,_,!u&&null!=r&&null==n),f=null;return f="function"==typeof n?n(l):null!=n?n:u||null==r||c?s&&Array.isArray(l)?(0,D.resolveMultipleLabels)(l,o,a):(0,D.resolveSelectedLabel)(l,o,a):r,(0,eW.jsx)(t.Fragment,{children:f})},"useFilter",0,function(e={}){let{multiple:n=!1,value:r,...i}=e,a=eO(i),l=t.useCallback((e,t,i)=>n?eP(a,i)(e,t):((e,t)=>{if(null==e)return!1;if(!t)return!0;let n=null!=r?(0,D.stringifyAsLabel)(r,i):"";return!!(n&&a.contains(n,t))&&n.length===t.length||a.contains(e,t,i)})(e,t),[a,r,n]);return t.useMemo(()=>({...a,contains:l}),[l,a])},"useFilteredItems",0,function(){return L().filteredItems}],524189);var t5=e.i(524189);e.s(["Combobox",0,t5],725933)},571446,387068,155627,157153,e=>{"use strict";e.s([],166432),e.i(166432);var t=e.i(271645),n=e.i(146376),r=e.i(667865),i=e.i(469690),a=e.i(875812),l=e.i(733332);let o=t.createContext(void 0);function s(e=!1){let n=t.useContext(o);if(!n&&!e)throw Error((0,l.default)(86));return n}e.s(["useFieldsetRootContext",0,s],387068);var u=e.i(884708),c=e.i(388940),d=e.i(788015),f=e.i(247778),p=e.i(843476);let m=function(e){let n=(0,d.useBaseUiId)(),i=void 0===e.controlId?n:e.controlId,[a,l]=t.useState(i),[o,s]=t.useState(e.labelId),[u,m]=t.useState([]),g=(0,c.useRefWithInit)(()=>new Map),{messageIds:h}=(0,f.useLabelableContext)(),v=(0,r.useStableCallback)((e,t)=>{let n=g.current;void 0===t?n.delete(e):(n.set(e,t),l(e=>{let t;if(0!==n.size){for(let r of n.values()){if(void 0!==e&&r===e)return e;void 0===t&&(t=r)}return t}}))}),x=t.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...h,...u),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[h,u]),b=t.useMemo(()=>({controlId:a,registerControlId:v,labelId:o,setLabelId:s,messageIds:u,setMessageIds:m,getDescriptionProps:x}),[a,v,o,s,u,m,x]);return(0,p.jsx)(f.LabelableContext.Provider,{value:b,children:e.children})};var g=e.i(552245),h=e.i(956789),v=e.i(439957),x=e.i(176782);function b(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}let y=Object.keys(a.DEFAULT_VALIDITY_STATE);function E(e,t){return!e.matches(":disabled")&&(!t||e.form===t||null===e.form&&!e.hasAttribute("form"))}function S(e,t){let n=null;for(let r of e.keys())if(E(r,t)){if(!r.validity.valid)return r;n??=r}return n}function w(e,t){for(let e of t.keys())e.setCustomValidity("");e?.setCustomValidity("")}function C(e){let{elementRef:n,formRef:i}=(0,u.useFormContext)(),{setValidityData:l,validate:o,validityData:s,validationDebounceTime:d,invalid:p,markedDirtyRef:m,state:g,shouldValidateOnChange:E,registeredFieldIdRef:C}=e,{controlId:A,getDescriptionProps:R}=(0,f.useLabelableContext)(),M=(0,v.useTimeout)(),I=t.useRef(null),T=(0,c.useRefWithInit)(()=>new Map).current,P=t.useRef(0),L=t.useCallback((e,t)=>(T.set(e,t),()=>{T.delete(e)}),[T]),N=(0,r.useStableCallback)(()=>{let e=S(T,n.current);return e&&T.get(e)?.controlRef.current||null}),O=(0,r.useStableCallback)(async(e,t=!1)=>{let r;P.current+=1;let u=P.current;function c(e,t=p){let n=C.current??A;if(null==n)return;let r=i.current.fields.get(n);if(!r)return;let a=b(e,t);i.current.fields.set(n,{...r,validityData:a})}let d=T.size>0?S(T,n.current):I.current;if(t){if(!1!==g.valid||!d)return;let t=d.validity;if(!t.valueMissing){let t;return void(t={value:e,state:{...a.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:s.initialValue},w(d,T),c(t,!1),l(t))}for(let e of y)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&t[e])return}M.clear();let f=null,h=[],v=d?function(e){let t=y.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of y)if("valid"!==e){if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t}return n&&!m.current&&(t.valid=!0,t.valueMissing=!1),t}(d):{...a.DEFAULT_VALIDITY_STATE,valid:!0},x=E();if(d&&d.validationMessage&&!x)r=d.validationMessage,h=[d.validationMessage];else{let t=o(e,Array.from(i.current.fields.values()).reduce((e,t)=>
1(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof t&&null!==t&&"then"in t){if(f=await t,u!==P.current)return}else f=t;null!==f?(v.valid=!1,v.customError=!0,Array.isArray(f)?(h=f,d?.setCustomValidity(f.join("\n"))):f&&(h=[f],d?.setCustomValidity(f))):x&&(w(d,T),v.customError=!1,d&&d.validationMessage?(r=d.validationMessage,h=[d.validationMessage]):d&&!d.validity.valid||v.valid||(v.valid=!0))}let R={value:e,state:v,error:r??(Array.isArray(f)?f[0]:f??""),errors:h,initialValue:s.initialValue};c(R),l(R)}),D=(0,r.useStableCallback)(e=>{M.clear();let t=E();t&&""!==e&&d?(P.current+=1,M.start(d,()=>{O(e)})):O(e,!t)}),j=t.useCallback((e,t={})=>(0,x.mergeProps)(R(t),!1!==g.valid||g.disabled||e?h.EMPTY_OBJECT:{"aria-invalid":!0}),[R,g.disabled,g.valid]);return t.useMemo(()=>({getValidationProps:j,inputRef:I,registeredInputs:T,registerInput:L,getInputControl:N,commit:O,change:D}),[j,T,L,N,O,D])}e.s(["isEligibleInput",0,E,"useFieldValidation",0,C],155627);let A=t.forwardRef(function(e,l){let{errors:o,validationMode:c,submitAttemptedRef:d}=(0,u.useFormContext)(),{render:f,className:m,validate:h,validationDebounceTime:v=0,validationMode:x=c,name:y,disabled:E=!1,invalid:S,dirty:w,touched:A,actionsRef:R,style:M,...I}=e,T=s(!0)?.disabled,P=(0,r.useStableCallback)(h||(()=>null)),L=T||E,[N,O]=t.useState(!1),[D,j]=t.useState(!1),[k,F]=t.useState(!1),[V,H]=t.useState(!1),Z=w??D,_=A??N,B=t.useRef(Z),z=t.useRef(void 0),[W,Y]=t.useState(),$=y??W;(0,n.useIsoLayoutEffect)(()=>{void 0!==w&&(B.current=w)},[w]);let U=(0,r.useStableCallback)(e=>{void 0===w&&(e&&(B.current=!0),j(e))}),q=(0,r.useStableCallback)(e=>{void 0===A&&O(e)}),X=(0,r.useStableCallback)(()=>"onChange"===x||"onSubmit"===x&&d.current),G=$&&Object.hasOwn(o,$)?o[$]:null,K=!!(Array.isArray(G)?G.length:G),J=!0===S||K,[Q,ee]=t.useState({state:a.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!J&&(L?null:Q.state.valid),en=t.useMemo(()=>({disabled:L,touched:_,dirty:Z,valid:et,filled:k,focused:V}),[L,_,Z,et,k,V]),er=C({setValidityData:ee,validate:P,validityData:Q,validationDebounceTime:v,invalid:J,markedDirtyRef:B,state:en,shouldValidateOnChange:X,registeredFieldIdRef:z}),[ei,ea]=function(e){let{commit:i,invalid:a,markedDirtyRef:l,name:o,setRegisteredFieldName:s,registeredFieldIdRef:c,setValidityData:d,validityData:f}=e,{formRef:p}=(0,u.useFormContext)(),m=t.useRef(null),g=t.useRef(null),h=t.useRef(!1),v=(0,r.useStableCallback)(()=>{let e=g.current;if(e)return e.getValue?e.getValue():e.value});function x(e){return void 0===e.value?v():e.value}let y=(0,r.useStableCallback)(()=>{let e=g.current;(l.current=!0,e)?i(x(e)):i(f.value)});function E(e=g.current?.id){e&&p.current.fields.delete(e)}(0,n.useIsoLayoutEffect)(()=>{let e=g.current;e&&e.id&&(s(o?void 0:e.name),p.current.fields.set(e.id,{getValue:v,name:o??e.name,controlRef:e.controlRef,validityData:b(f,a),validate:y}))},[p,v,a,o,s,y,f]),(0,n.useIsoLayoutEffect)(()=>{let e=p.current.fields;return()=>{let t=g.current?.id;t&&e.delete(t)}},[p]);let S=(0,r.useStableCallback)((e,t)=>{let n;if(!t){m.current===e&&(m.current=null,E(),g.current=null,s(void 0),c.current=void 0);return}let r=g.current?.id;m.current=e,g.current=t,o||s(t.name),c.current=t.id,r&&r!==t.id&&E(r),function(e){if(h.current)return;h.current=!0;let t=x(e);d(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(n=g.current)&&n.id&&p.current.fields.set(n.id,{getValue:v,name:o??n.name,controlRef:n.controlRef,validityData:b(f,a),validate:y})});return[y,S]}({commit:er.commit,invalid:J,markedDirtyRef:B,name:y,setRegisteredFieldName:Y,registeredFieldIdRef:z,setValidityData:ee,validityData:Q});t.useImperativeHandle(R,()=>({validate:ei}),[ei]);let el=t.useMemo(()=>({invalid:J,name:$,validityData:Q,setValidityData:ee,disabled:L,setTouched:q,setDirty:U,setFilled:F,setFocused:H,validationMode:x,shouldValidateOnChange:X,state:en,registerFieldControl:ea,validation:er}),[J,$,Q,L,q,U,F,H,x,X,en,ea,er]),eo=(0,g.useRenderElement)("div",e,{ref:l,state:en,props:I,stateAttributesMapping:a.fieldValidityMapping});return(0,p.jsx)(i.FieldRootContext.Provider,{value:el,children:eo})}),R=t.forwardRef(function(e,t){return(0,p.jsx)(m,{children:(0,p.jsx)(A,{...e,ref:t})})});var M=e.i(897886);let I=t.createContext({disabled:!1});function T(){return t.useContext(I)}e.s(["FieldItemContext",0,I,"useFieldItemContext",0,T],157153);let P=t.forwardRef(function(e,n){let{render:r,className:l,style:o,id:s,nativeLabel:u=!0,...c}=e,d=(0,i.useFieldRootContext)(!1),p=T(),{labelId:m}=(0,f.useLabelableContext)(),h={...d.state,disabled:d.disabled||p.disabled},v=t.useRef(null),x=(0,M.useLabel)({id:m??s,native:u});return(0,g.useRenderElement)("label",e,{ref:[n,v],state:h,props:[x,c],stateAttributesMapping:a.fieldValidityMapping})});var L=e.i(137584),N=e.i(209407),O=e.i(223910);let D={...a.fieldValidityMapping,...N.transitionStatusMapping},j=t.forwardRef(function(e,r){let{render:a,id:l,className:o,match:s,style:c,...m}=e,h=(0,d.useBaseUiId)(l),{validityData:v,state:x,name:b}=(0,i.useFieldRootContext)(!1),{setMessageIds:y}=(0,f.useLabelableContext)(),{errors:E}=(0,u.useFormContext)(),S=b&&Object.hasOwn(E,b)?E[b]:null,w=!!(Array.isArray(S)?S.length:S),C="string"==typeof s,A=!1;A=!0===s||!x.disabled&&(C?!!v.state[s]:w||!1===v.state.valid);let{mounted:R,transitionStatus:M,setMounted:I}=(0,O.useTransitionStatus)(A);(0,n.useIsoLayoutEffect)(()=>
1{if(A&&h)return y(e=>e.concat(h)),()=>{y(e=>e.filter(e=>e!==h))}},[A,h,y]);let T=t.useRef(null),[P,N]=t.useState(null),[j,k]=t.useState(null),F=v.error;!C&&w?F=S:v.errors.length>1&&(F=v.errors);let V=F;Array.isArray(F)&&(V=F.length>1?(0,p.jsx)("ul",{children:F.map(e=>(0,p.jsx)("li",{children:e},e))}):F[0]);let H=Array.isArray(F)?JSON.stringify(F):F;A&&H!==j&&(k(H),N(V)),(0,L.useOpenChangeComplete)({open:A,ref:T,onComplete(){A||I(!1)}});let Z={...x,transitionStatus:M},_=(0,g.useRenderElement)("div",e,{ref:[r,T],state:Z,props:[{id:h,children:A?V:P},m],stateAttributesMapping:D,enabled:R});return R?_:null}),k=t.forwardRef(function(e,t){let{render:r,id:l,className:o,style:s,...u}=e,c=(0,d.useBaseUiId)(l),p=(0,i.useFieldRootContext)(!1),m=T(),{setMessageIds:h}=(0,f.useLabelableContext)(),v={...p.state,disabled:p.disabled||m.disabled};return(0,n.useIsoLayoutEffect)(()=>{if(c)return h(e=>e.concat(c)),()=>{h(e=>e.filter(e=>e!==c))}},[c,h]),(0,g.useRenderElement)("p",e,{ref:t,state:v,props:[{id:c},u],stateAttributesMapping:a.fieldValidityMapping})});var F=e.i(951437),V=e.i(108868),H=e.i(381104),Z=e.i(538489),_=e.i(675606),B=e.i(56434),z=e.i(647554);let W=t.forwardRef(function(e,l){let{render:o,className:s,id:c,name:d,value:p,disabled:m=!1,onValueChange:h,defaultValue:v,autoFocus:x=!1,style:b,...y}=e,{state:E,name:S,disabled:w,setTouched:C,setDirty:A,validityData:R,setFocused:M,setFilled:I,validationMode:T,validation:P}=(0,i.useFieldRootContext)(),{clearErrors:L}=(0,u.useFormContext)(),N=w||m,O=S??d,D={...E,disabled:N},{labelId:j}=(0,f.useLabelableContext)(),k=(0,Z.useLabelableId)({id:c});(0,n.useIsoLayoutEffect)(()=>{let e=null!=p;P.inputRef.current?.value||e&&""!==p?I(!0):e&&""===p&&I(!1)},[P.inputRef,I,p]);let W=t.useRef(null);(0,n.useIsoLayoutEffect)(()=>{x&&W.current===(0,z.activeElement)((0,V.ownerDocument)(W.current))&&M(!0)},[x,M]);let[Y]=(0,F.useControlled)({controlled:p,default:v,name:"FieldControl",state:"value"}),$=void 0!==p,U=$?Y:void 0,q=(0,r.useStableCallback)(()=>P.inputRef.current?.value);return(0,H.useRegisterFieldControl)(P.inputRef,k,U,q,!N,d),(0,g.useRenderElement)("input",e,{ref:[l,W],state:D,props:[{id:k,disabled:N,name:O,ref:P.inputRef,"aria-labelledby":j,autoFocus:x,...$?{value:U}:{defaultValue:v},onChange(e){let t=e.currentTarget.value;h?.(t,(0,_.createChangeEventDetails)(B.REASONS.none,e.nativeEvent)),A(t!==(R.initialValue??"")),I(""!==t),e.nativeEvent.defaultPrevented||(L(O),P.change(t))},onFocus(){M(!0)},onBlur(e){C(!0),M(!1),"onBlur"===T&&P.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(C(!0),P.commit(e.currentTarget.value))}},y,e=>P.getValidationProps(N,e)],stateAttributesMapping:a.fieldValidityMapping})}),Y=t.forwardRef(function(e,n){let{render:r,className:l,style:o,disabled:s=!1,...u}=e,{state:c,disabled:d}=(0,i.useFieldRootContext)(!1),f=d||s,h={...c,disabled:f},v=t.useMemo(()=>({disabled:f}),[f]),x=(0,g.useRenderElement)("div",e,{ref:n,state:h,props:u,stateAttributesMapping:a.fieldValidityMapping});return(0,p.jsx)(m,{children:(0,p.jsx)(I.Provider,{value:v,children:x})})});e.s(["Control",0,W,"Description",0,k,"Error",0,j,"Item",0,Y,"Label",0,P,"Root",0,R,"Validity",0,function(e){let{children:n}=e,{validityData:r,invalid:a}=(0,i.useFieldRootContext)(!1),l=t.useMemo(()=>b(r,a),[r,a]),o=!1===l.state.valid,{transitionStatus:s}=(0,O.useTransitionStatus)(o),u=t.useMemo(()=>({...l,validity:l.state,transitionStatus:s}),[l,s]);return(0,p.jsx)(t.Fragment,{children:n(u)})}],305359);var $=e.i(305359);e.s(["Field",0,$],571446)},431157,e=>{"use strict";var t=e.i(271645),n=e.i(574735),r=e.i(365420),i=e.i(146376),a=e.i(108868),l=e.i(667865),o=e.i(439957),s=e.i(229315),u=e.i(675606),c=e.i(56434),d=e.i(46420),f=e.i(647554),p=e.i(958408),m=e.i(673752),g=e.i(596296),h=e.i(944681),v=e.i(994814);e.s(["useHoverFloatingInteraction",0,function(e,x={}){let{enabled:b=!0,closeDelay:y=0,nodeId:E}=x,S="rootStore"in e?e.rootStore:e,w=S.useState("open"),C=S.useState("floatingElement"),A=S.useState("domReferenceElement"),{dataRef:R}=S.context,M=(0,d.useFloatingTree)(),I=(0,d.useFloatingParentNodeId)(),T=(0,m.useHoverInteractionSharedState)(S),P=(0,o.useTimeout)(),L=(0,l.useStableCallback)(()=>(0,h.isClickLikeOpenEvent)(R.current.openEvent?.type,T.interactedInside)),N=(0,l.useStableCallback)(()=>(0,h.isHoverOpenEvent)(R.current.openEvent?.type)),O=(0,l.useStableCallback)(()=>{(0,m.clearSafePolygonPointerEventsMutation)(T)});(0,i.useIsoLayoutEffect)(()=>{w||(T.pointerType=void 0,T.restTimeoutPending=!1,T.interactedInside=!1,O())},[w,T,O]),t.useEffect(()=>O,[O]),(0,i.useIsoLayoutEffect)(()=>
1{if(b&&w&&T.handleCloseOptions?.blockPointerEvents&&N()&&(0,s.isElement)(A)&&C){let e=(0,a.ownerDocument)(C),t=M?.nodesRef.current.find(e=>e.id===I)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=T.pointerEventsScopeElement!==C?T.pointerEventsScopeElement:null,r=t!==C?t:null,i=T.handleCloseOptions?.getScope?.()??n??r??A.closest("[data-rootownerid]")??e.body;return(0,m.applySafePolygonPointerEventsMutation)(T,{scopeElement:i,referenceElement:A,floatingElement:C}),()=>{O()}}},[b,w,A,C,T,N,M,I,O]),t.useEffect(()=>{if(b)return(0,r.mergeCleanups)(C&&(0,n.addEventListener)(C,"mouseenter",function(){T.openChangeTimeout.clear(),P.clear(),M?.events.off("floating.closed",t),O()}),C&&(0,n.addEventListener)(C,"mouseleave",function(n){if(e()&&M)return void M.events.on("floating.closed",t);if((0,v.isInsideEnabledTrigger)(n.relatedTarget,S.context.triggerElements))return;let r=R.current.floatingContext?.nodeId??E,i=n.relatedTarget;if(!(M&&r&&(0,s.isElement)(i)&&(0,p.getNodeChildren)(M.nodesRef.current,r,!1).some(e=>(0,f.contains)(e.context?.elements.floating,i)))){let e,t;if(T.handler)return void T.handler(n);O(),N()&&!L()&&(e=(0,h.getDelay)(y,"close",T.pointerType),t=()=>{S.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,n)),M?.events.emit("floating.closed",n)},e?T.openChangeTimeout.start(e,t):(T.openChangeTimeout.clear(),t()))}}),C&&(0,n.addEventListener)(C,"pointerdown",function(e){let t=(0,f.getTarget)(e);if(!(0,g.isInteractiveElement)(t)){T.interactedInside=!1;return}T.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{M?.events.off("floating.closed",t)});function e(){return!!(M&&I&&(0,p.getNodeChildren)(M.nodesRef.current,I).length>0)}function t(n){!M||!I||e()||P.start(0,()=>{M.events.off("floating.closed",t),S.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,n)),M.events.emit("floating.closed",n)})}},[b,C,S,R,y,E,N,L,O,T,M,I,P])}])},673752,944681,994814,e=>{"use strict";var t=e.i(626300),n=e.i(388940),r=e.i(439957),i=e.i(596296);class a{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new r.Timeout,this.restTimeout=new r.Timeout,this.handleCloseOptions=void 0}static create(){return new a}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let l=new WeakMap;function o(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&l.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),l.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}e.s(["applySafePolygonPointerEventsMutation",0,function(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=l.get(n);a&&a!==e&&o(a),o(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,l.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"},"clearSafePolygonPointerEventsMutation",0,o,"useHoverInteractionSharedState",0,function(e){let r=e.context.dataRef.current,i=(0,n.useRefWithInit)(()=>r.hoverInteractionState??a.create()).current;return r.hoverInteractionState||(r.hoverInteractionState=i),(0,t.useOnMount)(r.hoverInteractionState.disposeEffect),r.hoverInteractionState}],673752);var s=e.i(157940);e.s(["getDelay",0,function(e,t,n){let r=null==n||(0,s.isMouseLikePointerType)(n)?"function"==typeof e?e():e:0;return"number"==typeof r?r:r?.[t]},"getRestMs",0,function(e){return"function"==typeof e?e():e},"isClickLikeOpenEvent",0,function(e,t){return t||"click"===e||"mousedown"===e},"isHoverOpenEvent",0,function(e){return e?.includes("mouse")&&"mousedown"!==e}],944681),e.s(["isInsideEnabledTrigger",()=>i.isTargetInsideEnabledTrigger],994814)},872135,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(574735),i=e.i(365420),a=e.i(108868),l=e.i(667865),o=e.i(446265),s=e.i(229315),u=e.i(675606),c=e.i(56434),d=e.i(46420),f=e.i(647554),p=e.i(157940),m=e.i(673752),g=e.i(944681),h=e.i(994814);let v={current:null};e.s(["useHoverReferenceInteraction",0,function(e,x={}){let{enabled:b=!0,delay:y=0,handleClose:E=null,mouseOnly:S=!1,restMs:w=0,move:C=!0,triggerElementRef:A=v,externalTree:R,isActiveTrigger:M=!0,getHandleCloseContext:I,isClosing:T,shouldOpen:P,guardStaleOpen:L=!1}=x,N="rootStore"in e?e.rootStore:e,{dataRef:O,events:D}=N.context,j=(0,d.useFloatingTree)(R),k=(0,m.useHoverInteractionSharedState)(N),F=t.useRef(!1),V=(0,o.useValueAsRef)(E),H=(0,o.useValueAsRef)(y),Z=(0,o.useValueAsRef)(w),_=(0,o.useValueAsRef)(b),B=(0,o.useValueAsRef)(P),z=(0,o.useValueAsRef)(T),W=(0,l.useStableCallback)(()=>(0,g.isClickLikeOpenEvent)(O.current.openEvent?.type,k.interactedInside)),Y=(0,l.useStableCallback)(()=>B.current?.()!==!1),$=(0,l.useStableCallback)((e,t,n)=>{let r=N.context.triggerElements;return r.hasElement(t)?!e||!(0,f.contains)(e,t):!!(0,s.isElement)(n)&&r.hasMatchingElement(e=>
1(0,f.contains)(e,n))&&(!e||!(0,f.contains)(e,n))}),U=(0,l.useStableCallback)(()=>{k.handler&&((0,a.ownerDocument)(N.select("domReferenceElement")).removeEventListener("mousemove",k.handler),k.handler=void 0)}),q=(0,l.useStableCallback)(()=>{(0,m.clearSafePolygonPointerEventsMutation)(k)});return M&&(k.handleCloseOptions=V.current?.__options),t.useEffect(()=>U,[U]),t.useEffect(()=>{if(b)return D.on("openchange",e),()=>{D.off("openchange",e)};function e(e){e.open?F.current=!1:(F.current=e.reason===c.REASONS.triggerHover,U(),k.openChangeTimeout.clear(),k.restTimeout.clear(),k.blockMouseMove=!0,k.restTimeoutPending=!1)}},[b,D,k,U]),t.useEffect(()=>{if(!b)return;function e(t,n=!0){let r=(0,g.getDelay)(H.current,"close",k.pointerType);r?k.openChangeTimeout.start(r,()=>{N.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,t)),j?.events.emit("floating.closed",t)}):n&&(k.openChangeTimeout.clear(),N.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,t)),j?.events.emit("floating.closed",t))}let t=A.current??(M?N.select("domReferenceElement"):null);if(!(0,s.isElement)(t))return;function n(e){if(k.openChangeTimeout.clear(),k.blockMouseMove=!1,S&&!(0,p.isMouseLikePointerType)(k.pointerType))return;let t=(0,g.getRestMs)(Z.current),n=(0,g.getDelay)(H.current,"open",k.pointerType),r=(0,f.getTarget)(e),i=e.currentTarget??null,a=N.select("domReferenceElement"),l=i;if((0,s.isElement)(r)&&!N.context.triggerElements.hasElement(r)){for(let e of N.context.triggerElements.elements())if((0,f.contains)(e,r)){l=e;break}}(0,s.isElement)(i)&&(0,s.isElement)(a)&&!N.context.triggerElements.hasElement(i)&&(0,f.contains)(i,a)&&(l=a);let o=null!=l&&$(a,l,r),d=N.select("open"),m=z.current?.()??"ending"===N.select("transitionStatus"),h=!d&&m&&F.current,v=!o&&(0,s.isElement)(l)&&(0,s.isElement)(a)&&(0,f.contains)(a,l)&&h,x=t>0&&!n,b=!d||o;if(o&&(d||h)||v){Y()&&N.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,e,l));return}!x&&(n?k.openChangeTimeout.start(n,()=>{b&&Y()&&N.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,e,l))}):b&&Y()&&N.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,e,l)))}function l(t){if(W())return void q();U();let n=N.select("domReferenceElement"),r=(0,a.ownerDocument)(n);k.restTimeout.clear(),k.restTimeoutPending=!1;let i=O.current.floatingContext??I?.();if(!(0,h.isInsideEnabledTrigger)(t.relatedTarget,N.context.triggerElements)){if(V.current&&i){N.select("open")||k.openChangeTimeout.clear();let n=A.current;k.handler=V.current({...i,tree:j,x:t.clientX,y:t.clientY,onClose(){q(),U(),_.current&&!W()&&n===N.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",k.handler),k.handler(t);return}"touch"===k.pointerType&&(0,f.contains)(N.select("floatingElement"),t.relatedTarget)||e(t)}}let o=L?(0,r.addEventListener)(t,"mouseout",function(e){(0,f.contains)(t,e.relatedTarget)||(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1)}):void 0;return C?(0,i.mergeCleanups)((0,r.addEventListener)(t,"mousemove",n,{once:!0}),(0,r.addEventListener)(t,"mouseenter",n),(0,r.addEventListener)(t,"mouseleave",l),o):(0,i.mergeCleanups)((0,r.addEventListener)(t,"mouseenter",n),(0,r.addEventListener)(t,"mouseleave",l),o)},[U,q,O,H,N,b,V,k,M,$,W,S,C,Z,A,j,_,I,z,Y,L]),t.useMemo(()=>{if(b)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=N.select("domReferenceElement"),a=N.select("open"),l=$(i,r,e.target);if(S&&!(0,p.isMouseLikePointerType)(k.pointerType))return;if(a&&l&&k.handleCloseOptions?.blockPointerEvents){let e=N.select("floatingElement");if(e){let t=k.handleCloseOptions?.getScope?.()??r.ownerDocument.body;(0,m.applySafePolygonPointerEventsMutation)(k,{scopeElement:t,referenceElement:r,floatingElement:e})}}let o=(0,g.getRestMs)(Z.current);function s(){if(k.restTimeoutPending=!1,W())return;let e=N.select("open");!k.blockMouseMove&&(!e||l)&&Y()&&N.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,t,r))}(!a||l)&&0!==o&&(!l&&k.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(k.restTimeout.clear(),"touch"===k.pointerType?n.flushSync(()=>{s()}):l&&a?s():(k.restTimeoutPending=!0,k.restTimeout.start(o,s))))}};function e(e){k.pointerType=e.pointerType}},[b,k,W,$,S,N,Z,Y])}])},650316,e=>{"use strict";var t=e.i(229315),n=e.i(439957),r=e.i(647554),i=e.i(958408);let a=.1*.1;function l(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function o(e,t,n,r,i,a,o,s,u,c){let d=!1;return l(e,t,n,r,i,a)&&(d=!d),l(e,t,i,a,o,s)&&(d=!d),l(e,t,o,s,u,c)&&(d=!d),l(e,t,u,c,n,r)&&(d=!d),d}function s(e,t,n,r,i,a){let l=Math.min(n,i),o=Math.max(n,i),s=Math.min(r,a),u=Math.max(r,a);return e>=l&&e<=o&&t>=s&&t<=u}e.s(["safePolygon",0,function(e={}){let{blockPointerEvents:l=!1}
1=e,u=new n.Timeout,c=({x:e,y:n,placement:l,elements:c,onClose:d,nodeId:f,tree:p})=>{let m=l?.split("-")[0],g=!1,h=null,v=null,x="u">typeof performance?performance.now():0;return function(l){u.clear();let b=c.domReference,y=c.floating;if(!b||!y||null==m||null==e||null==n)return;let{clientX:E,clientY:S}=l,w=(0,r.getTarget)(l),C="mouseleave"===l.type,A=(0,r.contains)(y,w),R=(0,r.contains)(b,w);if(A&&(g=!0,!C))return;if(R&&(g=!1,!C)){g=!0;return}if(C&&(0,t.isElement)(l.relatedTarget)&&(0,r.contains)(y,l.relatedTarget))return;function M(){return!!(p&&(0,i.getNodeChildren)(p.nodesRef.current,f).length>0)}function I(){M()||(u.clear(),d())}if(M())return;let T=b.getBoundingClientRect(),P=y.getBoundingClientRect(),L=e>P.right-P.width/2,N=n>P.bottom-P.height/2,O=P.width>T.width,D=P.height>T.height,j=(O?T:P).left,k=(O?T:P).right,F=(D?T:P).top,V=(D?T:P).bottom;if("top"===m&&n>=T.bottom-1||"bottom"===m&&n<=T.top+1||"left"===m&&e>=T.right-1||"right"===m&&e<=T.left+1)return void I();let H=!1;switch(m){case"top":H=s(E,S,j,T.top+1,k,P.bottom-1);break;case"bottom":H=s(E,S,j,P.top+1,k,T.bottom-1);break;case"left":H=s(E,S,P.right-1,V,T.left+1,F);break;case"right":H=s(E,S,T.right-1,V,P.left+1,F)}if(H)return;if(g&&(!(E>=T.x)||!(E<=T.x+T.width)||!(S>=T.y)||!(S<=T.y+T.height))||!C&&function(e,t){let n=performance.now(),r=n-x;if(null===h||null===v||0===r)return h=e,v=t,x=n,!1;let i=e-h,l=t-v;return h=e,v=t,x=n,i*i+l*l<r*r*a}(E,S))return void I();let Z=!1;switch(m){case"top":{let t=O?.25:2,r=n+.5+1,i=L||O?P.bottom-.5:P.top,a=L?O?P.bottom-.5:P.top:P.bottom-.5;Z=o(E,S,O||L?e+t:e-t,r,O?e-t:L?e+t:e-t,r,P.left,i,P.right,a);break}case"bottom":{let t=O?.25:2,r=n-.5,i=L||O?P.top+.5:P.bottom,a=L?O?P.top+.5:P.bottom:P.top+.5;Z=o(E,S,O||L?e+t:e-t,r,O?e-t:L?e+t:e-t,r,P.left,i,P.right,a);break}case"left":{let t=D?.25:2,r=e+.5+1,i=N||D?P.right-.5:P.left,a=N?D?P.right-.5:P.left:P.right-.5;Z=o(E,S,i,P.top,a,P.bottom,r,D||N?n+t:n-t,r,D?n-t:N?n+t:n-t);break}case"right":{let t=D?.25:2,r=e-.5,i=N||D?P.left+.5:P.right,a=N?D?P.left+.5:P.right:P.left+.5;Z=o(E,S,r,D||N?n+t:n-t,r,D?n-t:N?n+t:n-t,i,P.top,a,P.bottom)}}Z?g||u.start(40,I):I()}};return c.__options={...e,blockPointerEvents:l},c}])},558300,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(571446),r=e.i(843476);let i=t.forwardRef(function(e,t){return(0,r.jsx)(n.Field.Control,{ref:t,...e})});e.s(["Input",0,i])},743024,e=>{"use strict";e.s(["areArraysEqual",0,function(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}])},381104,e=>{"use strict";var t=e.i(146376),n=e.i(388940),r=e.i(469690);e.s(["useRegisterFieldControl",0,function(e,i,a,l,o=!0,s){let{registerFieldControl:u}=(0,r.useFieldRootContext)(),c=(0,n.useRefWithInit)(()=>Symbol());(0,t.useIsoLayoutEffect)(()=>{let t=c.current;o?u(t,{controlRef:e,getValue:l,id:i,name:s,value:a}):u(t,void 0)},[e,o,l,i,s,u,c,a]),(0,t.useIsoLayoutEffect)(()=>{let e=c.current;return()=>{u(e,void 0)}},[u,c])}])},469690,875812,e=>{"use strict";var t=e.i(733332),n=e.i(271645),r=e.i(956789);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},a={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},l={disabled:!1,...a};e.s(["DEFAULT_FIELD_ROOT_STATE",0,l,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,a,"DEFAULT_VALIDITY_STATE",0,i,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],875812);let o={invalid:void 0,name:void 0,validityData:{state:i,errors:[],error:"",value:"",initialValue:null},setValidityData:r.NOOP,disabled:void 0,setTouched:r.NOOP,setDirty:r.NOOP,setFilled:r.NOOP,setFocused:r.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:l,registerFieldControl:r.NOOP,validation:{getValidationProps:(e,t=r.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:r.NOOP,getInputControl:()=>null,commit:async()=>{},change:r.NOOP}},s=n.createContext(o);e.s(["DEFAULT_FIELD_ROOT_CONTEXT",0,o,"FieldRootContext",0,s,"useFieldRootContext",0,function(e=!0){let i=n.useContext(s);if(i.setValidityData===r.NOOP&&!e)throw Error((0,t.default)(28));return i}],469690)},884708,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(956789);let r=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:n.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["FormContext",0,r,"useFormContext",0,function(){return t.useContext(r)}])},484325,186698,42191,e=>{"use strict";function t(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function n(e,n,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&t(e,n,r)):-1}e.s(["compareItemEquality",0,t,"defaultItemEquality",0,(e,t)=>Object.is(e,t),"findItemIndex",0,n,"findSelectionIndex",0,function(e,t,r,i){let a=n(e,i&&Array.isArray(t)?t[t.length-1]:t,r);return -1===a?null:a},"removeItem",0,function(e,n,r){return e.filter(e=>!t(n,e,r))},"selectedValueIncludes",0,function(e,n,r){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&t(n,e,r))}],484325);var r=e.i(271645);function i(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}e.s(["serializeValue",0,i],186698);var a=e.i(843476);function l(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function o(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return i(e)}function s(e,t,n){if(n&&null!=e)return n(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??o(e,n);if(Array.isArray(t)){let r=l(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=r.find(t=>t.value===e);return t&&null!=t.label?t.label:o(e,n)}if("value"in e){let t=r.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return o(e,n)}e.s(["hasNullItemLabel",0,function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(l(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1},"isGroupedItems",0,l,"resolveMultipleLabels",0,function(e,t,n){return e.reduce((e,i,l)=>(l>0&&e.push(", "),e.push((0,a.jsx)(r.Fragment,{children:s(i,t,n)},l)),e),[])},"resolveSelectedLabel",0,s,"stringifyAsLabel",0,o,"stringifyAsValue",0,function(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?i(e.value):i(e)}],42191)},247778,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(956789);let r=t.createContext({controlId:void 0,registerControlId:n.NOOP,labelId:void 0,setLabelId:n.NOOP,messageIds:[],setMessageIds:n.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,r,"useLabelableContext",0,function(){return t.useContext(r)}])},897886,e=>{"use strict";var t=e.i(229315),n=e.i(108868),r=e.i(667865),i=e.i(647554),a=e.i(146376),l=e.i(788015),o=e.i(247778);function s(e){e.focus({focusVisible:!0})}e.s(["focusElementWithVisible",0,s,"useLabel",0,function(e={}){let u,{id:c,fallbackControlId:d,native:f=!1,setLabelId:p,focusControl:m}=e,{controlId:g,setLabelId:h}=(0,o.useLabelableContext)(),v=(0,r.useStableCallback)(e=>{h(e),p?.(e)}),x=(u=(0,l.useBaseUiId)(c),(0,a.useIsoLayoutEffect)(()=>(v(u),()=>{v(e=>e===u?void 0:e)}),[u,v]),u),b=g??d;function y(e){let r=(0,i.getTarget)(e.nativeEvent);r?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),f||function(e){if(m)return m(e,b);if(!b)return;let r=(0,n.ownerDocument)(e.currentTarget).getElementById(b);(0,t.isHTMLElement)(r)&&s(r)}(e))}return f?{id:x,htmlFor:b??void 0,onMouseDown:y}:{id:x,onClick:y,onPointerDown(e){e.preventDefault()}}}],897886)},538489,e=>{"use strict";var t=e.i(271645),n=e.i(146376),r=e.i(667865),i=e.i(388940),a=e.i(229315),l=e.i(956789),o=e.i(788015),s=e.i(247778);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:c=!1,controlRef:d}=e,{controlId:f,registerControlId:p}=(0,s.useLabelableContext)(),m=(0,o.useBaseUiId)(u),g=c?f:void 0,h=(0,i.useRefWithInit)(()=>Symbol()),v=t.useRef(!1),x=t.useRef(null!=u),b=(0,r.useStableCallback)(()=>{v.current&&p!==l.NOOP&&(v.current=!1,p(h.current,void 0))});return(0,n.useIsoLayoutEffect)(()=>{let e;if(p!==l.NOOP){if(c){let t=d?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:g??m}else if(null!=u)x.current=!0,e=u;else{if(!x.current)return void b();e=m}if(void 0===e)return void b();v.current=!0,p(h.current,e)}},[u,d,g,p,c,m,h,b]),t.useEffect(()=>b,[b]),f??m}])},923706,265858,988643,909091,253984,789579,e=>{"use strict";var t=e.i(271645),n=e.i(343084),r=e.i(108868),i=e.i(333848),a=e.i(146376),l=e.i(446265),o=e.i(667865),s=e.i(953760),u=e.i(258950),c=e.i(229315),d=e.i(46420),f=e.i(883977),p=e.i(388940),m=e.i(990627),g=e.i(156341);function h(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=(0,f.useId)(),l=null!=(0,d.useFloatingParentNodeId)(),o=(0,p.useRefWithInit)(()=>new g.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new m.PopupTriggerMap,floatingId:i,syncOnly:!1,nested:l})).current;return(0,a.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:i};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,c.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=l,o}function v(e){return x(e,e.rootContext)}function x(e,n){let{nodeId:r,externalTree:i}=e,l=n.useState("referenceElement"),o=n.useState("floatingElement"),s=n.useState("domReferenceElement"),f=n.useState("open"),p=n.useState("floatingId"),[m,g]=t.useState(null),[h,v]=t.useState(void 0),[x,b]=t.useState(void 0),y=t.useRef(null),E=(0,d.useFloatingTree)(i),S=t.useMemo(()=>({reference:l,floating:o,domReference:s}),[l,o,s]),w=(0,u.useFloating)({...e,elements:{...S,...m&&{reference:m}}}),C=(0,c.isElement)(h)?h:null,A=void 0===x?n.state.floatingElement:x;
1n.useSyncedValue("referenceElement",h??null),n.useSyncedValue("domReferenceElement",void 0===h?s:C),n.useSyncedValue("floatingElement",A);let R=t.useCallback(e=>{let t=(0,c.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;g(t),w.refs.setReference(t)},[w.refs]),M=t.useCallback(e=>{((0,c.isElement)(e)||null===e)&&(y.current=e,v(e)),((0,c.isElement)(w.refs.reference.current)||null===w.refs.reference.current||null!==e&&!(0,c.isElement)(e))&&w.refs.setReference(e)},[w.refs,v]),I=t.useCallback(e=>{b(e),w.refs.setFloating(e)},[w.refs]),T=t.useMemo(()=>({...w.refs,setReference:M,setFloating:I,setPositionReference:R,domReference:y}),[w.refs,M,I,R]),P=t.useMemo(()=>({...w.elements,domReference:s}),[w.elements,s]),L=t.useMemo(()=>({...w,dataRef:n.context.dataRef,open:f,onOpenChange:n.setOpen,events:n.context.events,floatingId:p,refs:T,elements:P,nodeId:r,rootStore:n}),[w,T,P,r,n,f,p]);return(0,a.useIsoLayoutEffect)(()=>{s&&(y.current=s)},[s]),(0,a.useIsoLayoutEffect)(()=>{n.context.dataRef.current.floatingContext=L;let e=E?.nodesRef.current.find(e=>e.id===r);e&&(e.context=L)}),t.useMemo(()=>({...w,context:L,refs:T,elements:P,rootStore:n}),[w,T,P,L,n])}e.s(["useFloatingRootContext",0,h],265858),e.s(["useBaseUIFloating",0,v,"useFloating",0,function(e={}){let t=h(e),n=e.rootContext||t;return x(e,n)}],988643);var b=e.i(872855);let y={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:a.top-n>=0||a.right-t>=0||a.bottom-n>=0||a.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},E={sideX:"left",sideY:"top"};e.s(["DEFAULT_SIDES",0,E],909091);let S="--available-width",w="--available-height";function C(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function A(e,t,r){let{rects:i,placement:a}=e;return{side:C(t,(0,n.getSide)(a),r),align:(0,n.getAlignment)(a)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function R(e,c){var d,f;let{anchor:p,positionMethod:m="absolute",side:g="bottom",sideOffset:h=0,align:v="center",alignOffset:x=0,collisionBoundary:R,collisionPadding:I=5,sticky:T=!1,arrowPadding:P=5,disableAnchorTracking:L=!1,inline:N,keepMounted:O=!1,floatingRootContext:D,mounted:j,collisionAvoidance:k,shift:F,nodeId:V,adaptiveOrigin:H,lazyFlip:Z=!1,externalTree:_}=e,[B,z]=t.useState(null);j||null===B||z(null);let W=k.side||"flip",Y=k.align||"flip",$=k.fallbackAxisSide||"end",U=F?.crossAxis??!1,q=F?.rootBoundary,X="function"==typeof p?p:void 0,G=(0,o.useStableCallback)(X),K=X?G:p,J=(0,l.useValueAsRef)(p),Q=(0,l.useValueAsRef)(j),ee="rtl"===(0,b.useDirection)(),et=B||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ee?"left":"right","inline-start":ee?"right":"left"})[g],en="center"===v?et:`${et}-${v}`,er=I;"number"==typeof er?er={top:er,right:er,bottom:er,left:er}:er&&(er={top:er.top||0,right:er.right||0,bottom:er.bottom||0,left:er.left||0});let ei=+("bottom"===g),ea=+("top"===g),el=+("right"===g),eo=+("left"===g),es={boundary:"clipping-ancestors"===R?"clippingAncestors":R,padding:er},eu=t.useRef(null),ec=(0,l.useValueAsRef)(h),ed=(0,l.useValueAsRef)(x),ef="function"!=typeof h?h:0,ep="function"!=typeof x?x:0,em=[];N&&em.push(N),em.push((0,u.offset)(e=>{let t=A(e,g,ee),n="function"==typeof ec.current?ec.current(t):ec.current,r="function"==typeof ed.current?ed.current(t):ed.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ef,ep,ee,g]));let eg="none"===Y&&"shift"!==W,eh=!eg&&(T||U||"shift"===W),ev="none"===W?null:(0,u.flip)({...es,padding:{top:er.top+1+ei,right:er.right+1+eo,bottom:er.bottom+1+ea,left:er.left+1+el},mainAxis:!U&&"flip"===W,crossAxis:"flip"===Y&&"alignment",fallbackAxisSideDirection:$}),ex=eg?null:(0,u.shift)({...es,rootBoundary:q,mainAxis:"none"!==Y,crossAxis:eh,limiter:T||U?void 0:(0,u.limitShift)(e=>{if(!eu.current)return{};let{width:t,height:r}=eu.current.getBoundingClientRect(),i=(0,n.getSideAxis)((0,n.getSide)(e.placement)),a="y"===i?er.left+er.right:er.top+er.bottom;return{offset:("y"===i?t:r)/2+a/2}})},[es,T,U,q,er,Y]);"shift"===W||"shift"===Y||"center"===v?em.push(ex,ev):em.push(ev,ex),em.push((0,u.size)({...es,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!Q.current)return;let a=e.style;a.setProperty(S,`${t}px`),a.setProperty(w,`${n}px`);let l=(0,i.ownerWindow)(e).devicePixelRatio||1,{x:o,y:s,width:u,height:c}=r.reference,d=(Math.round((o+u)*l)-Math.round(o*l))/l,f=(Math.round((s+c)*l)-Math.round(s*l))/l;a.setProperty("--anchor-width",`${d}px`),a.setProperty("--anchor-height",`${f}px`)}}),(d=e=>({element:eu.current||(0,r.ownerDocument)(e.elements.floating).createElement("div"),padding:P,offsetParent:"floating"}),f=[P],{...{name:"arrow",options:d,async fn(e){let{x:t,y:r,placement:i,rects:a,platform:l,elements:o,middlewareData:s}=e,{element:u,padding:c=0,offsetParent:f="real"}=(0,n.evaluate)(d,e)||{};if(null==u)return{};
1let p=(0,n.getPaddingObject)(c),m={x:t,y:r},g=(0,n.getAlignmentAxis)(i),h=(0,n.getAxisLength)(g),v=await l.getDimensions(u),x="y"===g,b=x?"clientHeight":"clientWidth",y=a.reference[h]+a.reference[g]-m[g]-a.floating[h],E=m[g]-a.reference[g],S="real"===f?await l.getOffsetParent?.(u):o.floating,w=o.floating[b]||a.floating[h];w&&await l.isElement?.(S)||(w=o.floating[b]||a.floating[h]);let C=w/2-v[h]/2-1,A=Math.min(p[x?"top":"left"],C),R=Math.min(p[x?"bottom":"right"],C),M=w-v[h]-R,I=w/2-v[h]/2+(y/2-E/2),T=(0,n.clamp)(A,I,M),P=!s.arrow&&null!=(0,n.getAlignment)(i)&&I!==T&&a.reference[h]/2-(I<A?A:R)-v[h]/2<0,L=P?I<A?I-A:I-M:0;return{[g]:m[g]+L,data:{[g]:T,centerOffset:I-T-L,...P&&{alignmentOffset:L}},reset:P}}},options:[d,f]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:i,rects:a,y:l}=e,o=(0,n.getSide)(i),s=(0,n.getSideAxis)(o),u=eu.current,c=r.arrow?.x||0,d=r.arrow?.y||0,f=u?.clientWidth||0,p=u?.clientHeight||0,m=c+f/2,v=d+p/2,x=Math.abs(r.shift?.y||0),b=a.reference.height/2,y="function"==typeof h?h(A(e,g,ee)):h,E=x>y,S={top:`${m}px calc(100% + ${y}px)`,bottom:`${m}px ${-y}px`,left:`calc(100% + ${y}px) ${v}px`,right:`${-y}px ${v}px`}[o],w=`${m}px ${a.reference.y+b-l}px`;return t.floating.style.setProperty("--transform-origin",eh&&"y"===s&&E?w:S),{}}},y,H),(0,a.useIsoLayoutEffect)(()=>{!j&&D&&D.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[j,D]);let eb=t.useMemo(()=>({elementResize:!L&&"u">typeof ResizeObserver,layoutShift:!L&&"u">typeof IntersectionObserver}),[L]),{refs:ey,elements:eE,x:eS,y:ew,middlewareData:eC,update:eA,placement:eR,context:eM,isPositioned:eI,floatingStyles:eT}=c({rootContext:D,open:O?j:void 0,placement:en,middleware:em,strategy:m,whileElementsMounted:O?void 0:(...e)=>(0,s.autoUpdate)(...e,eb),nodeId:V,externalTree:_}),{sideX:eP,sideY:eL}=eC.adaptiveOrigin||E,eN=eI?m:"fixed",eO=t.useMemo(()=>{let e;return(e=eI?H?{position:eN,[eP]:eS,[eL]:ew}:{...eT,position:eN}:{position:eN,top:0,left:0})[S]="100vw",e[w]="100vh",eI||(e.opacity=0),e},[H,eN,eP,eS,eL,ew,eT,eI]),eD=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{if(!j)return;let e=J.current,t="function"==typeof e?e():e,n=(M(t)?t.current:t)||null;n!==eD.current&&(ey.setPositionReference(n),eD.current=n)},[j,ey,K,J]),t.useEffect(()=>{if(!j)return;let e=J.current;"function"!=typeof e&&M(e)&&e.current!==eD.current&&(ey.setPositionReference(e.current),eD.current=e.current)},[j,ey,K,J]),t.useEffect(()=>{if(O&&j&&eE.reference&&eE.floating)return(0,s.autoUpdate)(eE.reference,eE.floating,eA,eb)},[O,j,eE,eA,eb]);let ej=(0,n.getSide)(eR),ek=C(g,ej,ee),eF=(0,n.getAlignment)(eR)||"center",eV=!!eC.hide?.referenceHidden;(0,a.useIsoLayoutEffect)(()=>{Z&&j&&eI&&ej!==et&&z(ej)},[Z,j,eI,ej,et]);let eH=t.useMemo(()=>({position:"absolute",top:eC.arrow?.y,left:eC.arrow?.x}),[eC.arrow]),eZ=eC.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eO,arrowStyles:eH,arrowRef:eu,arrowUncentered:eZ,side:ek,align:eF,physicalSide:ej,anchorHidden:eV,refs:ey,context:eM,isPositioned:eI,update:eA}),[eO,eH,eu,eZ,ek,eF,ej,eV,ey,eM,eI,eA])}function M(e){return null!=e&&"current"in e}e.s(["useAnchorPositioning",0,function(e){return R(e,v)},"useAnchorPositioningWithHook",0,R],923706);var I=e.i(405005),T=e.i(552245),P=e.i(956789),L=e.i(638396);function N(e){return"starting"===e?L.DISABLED_TRANSITIONS_STYLE:P.EMPTY_OBJECT}e.s(["getDisabledMountTransitionStyles",0,N],253984),e.s(["usePositioner",0,function(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:l,inert:o=!1}){let s={...n};return o&&(s.pointerEvents="none"),(0,T.useRenderElement)("div",e,{state:t,ref:a,props:[{role:"presentation",hidden:l,style:s},N(r),i],stateAttributesMapping:I.popupStateMapping})}],789579)},492235,910913,764493,569153,740370,389244,793431,e=>{"use strict";var t=e.i(271645),n=e.i(229315),r=e.i(61487),i=e.i(431157),a=e.i(122646),l=e.i(373336),o=e.i(405005),s=e.i(137584),u=e.i(552245),c=e.i(56434),d=e.i(673327),f=e.i(96533),p=e.i(253984),m=e.i(146376),g=e.i(667865);let h=t.createContext(void 0);var v=e.i(264111),x=e.i(843476);let b=t.forwardRef(function(e,m){let{render:b,className:y,style:E,initialFocus:S,finalFocus:w,...C}=e,A=(0,a.usePopoverRootContext)(),R=(0,l.usePopoverPositionerContext)(),M=null!=(0,f.useToolbarRootContext)(!0),{context:I,hasClosePart:T}=function(){let[e,n]=t.useState(0),r=(0,g.useStableCallback)(()=>(n(e=>e+1),()=>{n(e=>Math.max(0,e-1))}));return{context:t.useMemo(()=>({register:r}),[r]),hasClosePart:e>0}
1}(),P=A.useState("open"),L=A.useState("openMethod"),N=A.useState("instantType"),O=A.useState("transitionStatus"),D=A.useState("popupProps"),j=A.useState("titleElementId"),k=A.useState("descriptionElementId"),F=A.useState("modal"),V=A.useState("mounted"),H=A.useState("openChangeReason"),Z=A.useState("activeTriggerElement"),_=A.useState("floatingRootContext"),B=_.useState("floatingId"),z=A.useState("disabled"),W=A.useState("openOnHover"),Y=A.useState("closeDelay");(0,s.useOpenChangeComplete)({open:P,ref:A.context.popupRef,onComplete(){P&&A.context.onOpenChangeComplete?.(!0)}}),(0,i.useHoverFloatingInteraction)(_,{enabled:W&&!z,closeDelay:Y});let $=void 0===S?(0,v.createDefaultInitialFocus)(A.context.popupRef):S,U=!1!==F&&T;A.useSyncedValue("focusManagerModal",U);let q=A.useStateSetter("popupElement"),X={open:P,side:R.side,align:R.align,instant:N,transitionStatus:O},G=(0,u.useRenderElement)("div",e,{state:X,ref:[m,A.context.popupRef,q],props:[D,{id:B,role:"dialog",...v.FOCUSABLE_POPUP_PROPS,"aria-labelledby":j,"aria-describedby":k,onKeyDown(e){M&&d.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,p.getDisabledMountTransitionStyles)(O),C],stateAttributesMapping:o.popupTransitionStateMapping});return(0,x.jsx)(r.FloatingFocusManager,{context:_,openInteractionType:L,modal:U,disabled:!V||H===c.REASONS.triggerHover,initialFocus:$,returnFocus:w,restoreFocus:"popup",previousFocusableElement:(0,n.isHTMLElement)(Z)?Z:void 0,nextFocusableElement:A.context.triggerFocusTargetRef,beforeContentFocusGuardRef:A.context.beforeContentFocusGuardRef,children:(0,x.jsx)(h.Provider,{value:I,children:G})})});e.s(["PopoverPopup",0,b],492235);let y=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...s}=e,c=(0,a.usePopoverRootContext)().useState("open"),{arrowRef:d,side:f,align:p,arrowUncentered:m,arrowStyles:g}=(0,l.usePopoverPositionerContext)();return(0,u.useRenderElement)("div",e,{state:{open:c,side:f,align:p,uncentered:m},ref:[t,d],props:[{style:g,"aria-hidden":!0},s],stateAttributesMapping:o.popupStateMapping})});e.s(["PopoverArrow",0,y],910913);let E=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...l}=e,s=(0,a.usePopoverRootContext)(),d=s.useState("open"),f=s.useState("mounted"),p=s.useState("transitionStatus"),m=s.useState("openChangeReason");return(0,u.useRenderElement)("div",e,{state:{open:d,transitionStatus:p},ref:t,props:[{role:"presentation",hidden:!f,style:{pointerEvents:m===c.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:o.popupTransitionStateMapping})});e.s(["PopoverBackdrop",0,E],764493);var S=e.i(788015);let w=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...l}=e,o=(0,a.usePopoverRootContext)(),s=(0,S.useBaseUiId)(l.id);return o.useSyncedValueWithCleanup("titleElementId",s),(0,u.useRenderElement)("h2",e,{ref:t,props:[{id:s},l]})});e.s(["PopoverTitle",0,w],569153);let C=t.forwardRef(function(e,t){let{render:n,className:r,style:i,...l}=e,o=(0,a.usePopoverRootContext)(),s=(0,S.useBaseUiId)(l.id);return o.useSyncedValueWithCleanup("descriptionElementId",s),(0,u.useRenderElement)("p",e,{ref:t,props:[{id:s},l]})});e.s(["PopoverDescription",0,C],740370);var A=e.i(540886),R=e.i(675606);let M=t.forwardRef(function(e,n){let r,{render:i,className:l,style:o,disabled:s=!1,nativeButton:d=!0,...f}=e,{buttonRef:p,getButtonProps:g}=(0,A.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),v=(0,a.usePopoverRootContext)();return r=t.useContext(h),(0,m.useIsoLayoutEffect)(()=>r?.register(),[r]),(0,u.useRenderElement)("button",e,{ref:[n,p],props:[{onClick(e){v.setOpen(!1,(0,R.createChangeEventDetails)(c.REASONS.closePress,e.nativeEvent))}},f,g]})});e.s(["PopoverClose",0,M],389244);var I=e.i(708445),T=e.i(956789),P=e.i(222640),L=e.i(73364);function N(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function O(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push(N(e,r,i));return n.length?()=>{n.forEach(e=>e())}:T.NOOP}function D(e,t){let n="auto"===t?"auto":`${t.width}px`,r="auto"===t?"auto":`${t.height}px`;e.style.setProperty("--popup-width",n),e.style.setProperty("--popup-height",r)}function j(e,t){let n="max-content"===t?"max-content":`${t.width}px`,r="max-content"===t?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",n),e.style.setProperty("--positioner-height",r)}e.s(["usePopupAutoResize",0,function(e){let{popupElement:n,positionerElement:r,content:i,mounted:a,onMeasureLayout:l,onMeasureLayoutComplete:o,side:s,direction:u}=e,c=(0,P.useAnimationsFinished)(n,!0),d=(0,I.useAnimationFrame)(),f=t.useRef(null),p=t.useRef(!0),h=t.useRef(T.NOOP),v=(0,g.useStableCallback)(l),x=(0,g.useStableCallback)(o),b=t.useMemo(()=>{var e,t;let n,r;return e=s,t=u,n="top"===e,r="left"===e||e===("rtl"===t?"inline-end":"inline-start"),n||r?{position:"absolute",[n?"bottom":"top"]:"0",[r?"right":"left"]:"0"}:T.EMPTY_OBJECT},[s,u]);(0,m.useIsoLayoutEffect)(()=>
1{if(!a){h.current=T.NOOP,p.current=!0,f.current=null;return}if(!n||!r)return;h.current=O(n,b),D(n,"auto");let e=N(n,"position","static"),t=N(n,"transform","none"),i=N(n,"scale","1"),l=O(r,{"--available-width":"max-content","--available-height":"max-content"});function o(){e(),t(),l(),i()}if(v?.(),p.current||null===f.current){j(r,"max-content");let e=(0,L.getCssDimensions)(n);return f.current=e,j(r,e),o(),x?.(null,e),p.current=!1,()=>{h.current(),h.current=T.NOOP}}j(r,"max-content");let s=f.current,u=(0,L.getCssDimensions)(n);f.current=u,D(n,s),o(),x?.(s,u),j(r,u);let m=new AbortController;return d.request(()=>{D(n,u),c(()=>{n.style.setProperty("--popup-width","auto"),n.style.setProperty("--popup-height","auto")},m.signal)}),()=>{m.abort(),d.cancel(),h.current(),h.current=T.NOOP}},[i,n,r,c,d,a,v,x,b])}],793431)},441225,346570,321125,373336,163550,e=>{"use strict";var t=e.i(733332),n=e.i(271645),r=e.i(122646),i=e.i(540886),a=e.i(405005),l=e.i(552245),o=e.i(638396),s=e.i(650316),u=e.i(385689),c=e.i(872135),d=e.i(788015),f=e.i(152535),p=e.i(56434),m=e.i(459636),g=e.i(264111),h=e.i(174080),v=e.i(647554),x=e.i(383976),b=e.i(675606);function y(e,t){let r=n.useRef(null);return{preFocusGuardRef:r,handlePreFocusGuardFocus:function(t){h.flushSync(()=>{e.setOpen(!1,(0,b.createChangeEventDetails)(p.REASONS.focusOut,t.nativeEvent,t.currentTarget))});let n=(0,x.getTabbableBeforeElement)(r.current);n?.focus()},handleFocusTargetFocus:function(n){let r=e.select("positionerElement");if(r&&(0,x.isOutsideEvent)(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{h.flushSync(()=>{e.setOpen(!1,(0,b.createChangeEventDetails)(p.REASONS.focusOut,n.nativeEvent,n.currentTarget))});let i=(0,x.getTabbableAfterElement)(e.context.triggerFocusTargetRef.current||t.current);for(;null!==i&&(0,v.contains)(r,i);){let e=i;if((i=(0,x.getNextTabbable)(i))===e)break}i?.focus()}}}}e.s(["useTriggerFocusGuards",0,y],346570);var E=e.i(32199),S=e.i(843476);let w=n.forwardRef(function(e,h){let{render:v,className:x,style:b,disabled:w=!1,nativeButton:C=!0,handle:A,payload:R,openOnHover:M=!1,delay:I=300,closeDelay:T=0,id:P,...L}=e,N=(0,r.usePopoverRootContext)(!0),O=(0,m.usePopupHandleStore)(A)??N;if(!O)throw Error((0,t.default)(74));let D=(0,d.useBaseUiId)(P),j=O.useState("isTriggerActive",D),k=O.useState("floatingRootContext"),F=O.useState("isOpenedByTrigger",D),V=O.useState("triggerPopupId",D),H=n.useRef(null),{registerTrigger:Z,isMountedByThisTrigger:_}=(0,g.useTriggerDataForwarding)(D,H,O,{payload:R,disabled:w,openOnHover:M,closeDelay:T}),B=O.useState("openChangeReason"),z=O.useState("stickIfOpen"),W=O.useState("openMethod"),Y=O.useState("focusManagerModal"),$=(0,c.useHoverReferenceInteraction)(k,{enabled:!w&&M&&("touch"!==W||B!==p.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,s.safePolygon)(),restMs:I,delay:{close:T},triggerElementRef:H,isActiveTrigger:j,isClosing:()=>"ending"===O.select("transitionStatus")}),U=(0,u.useClick)(k,{stickIfOpen:z}),q=(0,E.useOpenMethodTriggerProps)(()=>O.select("open"),e=>{O.set("openMethod",e)}),X=O.useState("triggerProps",_),{getButtonProps:G,buttonRef:K}=(0,i.useButton)({disabled:w,native:C}),{preFocusGuardRef:J,handlePreFocusGuardFocus:Q,handleFocusTargetFocus:ee}=y(O,H),et=(0,l.useRenderElement)("button",e,{state:{disabled:w,open:F},ref:[K,h,Z,H],props:[U.reference,$,X,q,{[o.CLICK_TRIGGER_IDENTIFIER]:"",id:D,"aria-haspopup":"dialog","aria-expanded":F,"aria-controls":V},L,G],stateAttributesMapping:{open:e=>e&&B===p.REASONS.triggerPress?a.pressableTriggerOpenStateMapping.open(e):a.triggerOpenStateMapping.open(e)}}),en=(0,S.jsx)(n.Fragment,{children:et},D);return _&&!Y?(0,S.jsxs)(n.Fragment,{children:[(0,S.jsx)(f.FocusGuard,{ref:J,onFocus:Q}),en,(0,S.jsx)(f.FocusGuard,{ref:O.context.triggerFocusTargetRef,onFocus:ee})]}):en});e.s(["PopoverTrigger",0,w],441225);var C=e.i(726674);let A=n.createContext(void 0),R=n.forwardRef(function(e,t){let{keepMounted:n=!1,...i}=e;return(0,r.usePopoverRootContext)().useState("mounted")||n?(0,S.jsx)(A.Provider,{value:n,children:(0,S.jsx)(C.FloatingPortal,{ref:t,...i})}):null});e.s(["PopoverPortal",0,R],321125);var M=e.i(144394),I=e.i(146376),T=e.i(46420);let P=n.createContext(void 0);e.s(["PopoverPositionerContext",0,P,"usePopoverPositionerContext",0,function(){let e=n.useContext(P);if(!e)throw Error((0,t.default)(46));return e}],373336);var L=e.i(923706),N=e.i(426),O=e.i(222640),D=e.i(789579),j=e.i(33383);let k=n.forwardRef(function(e,i){let{render:a,className:l,style:s,anchor:u,positionMethod:c,side:d,align:f,sideOffset:m,alignOffset:g,collisionBoundary:h="clipping-ancestors",collisionPadding:v,arrowPadding:x,sticky:b,disableAnchorTracking:y=!1,collisionAvoidance:E=o.POPUP_COLLISION_AVOIDANCE,...w}=e,C=(0,r.usePopoverRootContext)(),R=function(){let e=n.useContext(A);if(void 0===e)throw Error((0,t.default)(45));return e}(),k=(0,T.useFloatingNodeId)(),F=C.useState("floatingRootContext"),V=C.useState("mounted"),H=C.useState("open"),Z=C.useState("openChangeReason"),_=C.useState("activeTriggerElement"),B=C.useState("modal"),z=C.useState("openMethod"),W=C.useState("positionerElement"),Y=C.useState("instantType"),$=C.useState("transitionStatus"),U=C.useState("adaptiveOrigin"),q=n.useRef(null),X=(0,O.useAnimationsFinished)(W),G=(0,L.useAnchorPositioning)({anchor:u,floatingRootContext:F,positionMethod:c,mounted:V,side:d,sideOffset:m,align:f,alignOffset:g,arrowPadding:x,collisionBoundary:h,collisionPadding:v,sticky:b,disableAnchorTracking:y,keepMounted:R,nodeId:k,collisionAvoidance:E,adaptiveOrigin:U}),K=F.useState("domReferenceElement");(0,I.useIsoLayoutEffect)(()=>{let e=q.current;if(K&&(q.current=K),e&&K&&K!==e){C.set("instantType",void 0);let e=new AbortController;return X(()=>{C.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[K,X,C]);let J=!0===B&&Z!==p.REASONS.triggerHover;(0,j.useAnchoredPopupScrollLock)(H&&J,"touch"===z,W,_);
1let Q=C.useStateSetter("positionerElement"),ee={open:H,side:G.side,align:G.align,anchorHidden:G.anchorHidden,instant:Y},et=(0,D.usePositioner)(e,ee,{styles:G.positionerStyles,transitionStatus:$,props:w,refs:[i,Q],hidden:!V,inert:!H});return(0,S.jsxs)(P.Provider,{value:G,children:[V&&J&&(0,S.jsx)(N.InternalBackdrop,{inert:(0,M.inertValue)(!H),cutout:_}),(0,S.jsx)(T.FloatingNode,{id:k,children:et})]})});e.s(["PopoverPositioner",0,k],163550)},76572,e=>{"use strict";e.s([],653226),e.i(653226);var t=e.i(271645),n=e.i(626300),r=e.i(388940),i=e.i(146376),a=e.i(733332);let l=t.createContext(void 0);function o(){let e=t.useContext(l);if(!e)throw Error((0,a.default)(73));return e}var s=e.i(301252);let u=0;function c(e){return u+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${u}`}var d=e.i(108868),f=e.i(439957);function p(e,t){if("string"==typeof e)return{description:e};if("function"==typeof e){let n=e(t);return"string"==typeof n?{description:n}:n}return e}var m=e.i(647554),g=e.i(596296),g=g;function h(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a="ending"===e.transitionStatus;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function v(e,t){let n=0;return e.map(e=>{if("ending"===e.transitionStatus)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}let x={toasts:e=>e.toasts,isEmpty:e=>0===e.toasts.length,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement};class b extends s.ReactStore{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:h(e.toasts)},{},x)}setViewport=e=>{this.set("viewport",e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=v(this.state.toasts,t);r.toasts=e,r.toastMetadata=h(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=x.toastIndex(this.state,e);if(-1===n)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||c("toast");if(e.id){let t=x.toast(this.state,e.id);if(t)if("ending"===t.transitionStatus)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}let i={...e,id:r,updateKey:0,transitionStatus:"starting"},a=[i,...this.state.toasts];this.setToasts(v(a,n));let l=i.timeout??t;return"loading"!==i.type&&l>0&&this.scheduleTimer(r,l,()=>this.closeToast(r)),x.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,l=x.toast(this.state,e);if(!l||"ending"===l.transitionStatus)return;let o={...l,...t,...r&&{updateKey:l.updateKey+1}};this.setToasts(a.map(t=>t.id===e?o:t));let s=o.timeout??i,u=l.timeout??i,c=Object.hasOwn(t,"timeout"),d="ending"!==o.transitionStatus&&"loading"!==o.type&&s>0,f=this.timers.has(e),p=u!==s,m="loading"===l.type;!d&&f?this.clearTimer(e):d&&(!f||p||c||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,s,()=>this.closeToast(e)),x.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t,n=void 0===e,{limit:r,toasts:i}=this.state;if(n)t=i,this.clearTimers();else{let n=x.toast(this.state,e);if(!n)return;t=[n],this.clearTimer(e)}let a=v(i.map(t=>n||t.id===e?{...t,transitionStatus:"ending",height:0}:t),r);this.setToasts(a,!a.some(e=>"ending"!==e.transitionStatus)),t.forEach(e=>{"ending"!==e.transitionStatus&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=p(t.loading),r=this.addToast({...n,type:"loading"}),i=e.then(e=>{let n=p(t.success,e);return this.updateToast(r,{...n,type:"success",timeout:n.timeout}),e}).catch(e=>{let n=p(t.error,e);return this.updateToast(r,{...n,type:"error",timeout:n.timeout}),Promise.reject(e)});return({}).hasOwnProperty.call(t,"setPromise")&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEac
1h(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=f.Timeout.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if("touch"!==e.pointerType)return;let t=(0,m.getTarget)(e);(0,m.contains)(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=x.expandedOrOutOfFocus(this.state)?void 0:f.Timeout.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){let t=this.timers.get(e);t?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){0===this.timers.size&&(this.areTimersPaused=!1)}setToasts(e,t=0===e.length){let n={toasts:e,toastMetadata:h(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=(0,m.activeElement)((0,d.ownerDocument)(this.state.viewport));if(!this.state.viewport||!(0,m.contains)(this.state.viewport,t)||!(0,g.matchesFocusVisible)(t))return;if(void 0===e)return void this.restoreFocusToPrevElement();let n=x.toasts(this.state),r=x.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if("ending"!==n[r].transitionStatus)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}}var y=e.i(843476);function E(e){let{store:t,timeout:n,limit:r}=e;return(0,i.useIsoLayoutEffect)(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var S=e.i(574735),w=e.i(365420),C=e.i(333848),A=e.i(502077),R=e.i(152535),M=e.i(552245),g=g;let I=t.forwardRef(function(e,n){let{render:r,className:i,style:a,children:l,...s}=e,u=o(),c=(0,f.useTimeout)(),p=t.useRef(!1),h=t.useRef(!1),v=t.useRef(!1),x=u.useState("isEmpty"),b=u.useState("toasts"),E=u.useState("focused"),I=u.useState("expanded"),T=u.useState("prevFocusElement"),P=b[0]?.height,L=b.some(e=>"ending"===e.transitionStatus),N=b.filter(e=>"high"===e.priority);function O(){u.state.toasts.some(e=>"ending"===e.transitionStatus)||v.current||!h.current||(u.state.isWindowFocused&&u.resumeTimers(),u.set("hovering",!1),h.current=!1)}function D(){u.pauseTimers(),u.set("hovering",!0),h.current=!1}function j(e){"touch"===e.pointerType&&(v.current=!1,O())}function k(){if(p.current){p.current=!1;return}!E&&(0,g.matchesFocusVisible)((0,m.activeElement)((0,d.ownerDocument)(u.state.viewport)))&&(u.set("focused",!0),u.pauseTimers())}t.useEffect(()=>{let e=u.state.viewport;if(!e||x)return;let t=(0,C.ownerWindow)(e),n=(0,d.ownerDocument)(e);return(0,w.mergeCleanups)((0,S.addEventListener)(t,"keydown",function(t){"F6"===t.key&&(0,m.getTarget)(t)!==e&&(t.preventDefault(),u.set("prevFocusElement",(0,m.activeElement)(n)),e?.focus({preventScroll:!0}),u.pauseTimers(),u.set("focused",!0))}),(0,S.addEventListener)(t,"blur",function(e){(0,m.getTarget)(e)===t&&(u.set("isWindowFocused",!1),u.pauseTimers())},!0),(0,S.addEventListener)(t,"focus",function(n){if(n.relatedTarget)return;let r=(0,m.getTarget)(n),i=(0,m.activeElement)((0,d.ownerDocument)(e));r!==t&&(0,m.contains)(e,r)&&(0,g.matchesFocusVisible)(i)||u.resumeTimers(),c.start(0,()=>u.set("isWindowFocused",!0))},!0),(0,S.addEventListener)(n,"pointerdown",u.handleDocumentPointerDown,!0))},[u,c,x]),t.useEffect(O,[L,u]);let F={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:D,onMouseMove:D,onMouseLeave:function(){h.current=!0,O()},onFocus:k,onBlur:function(e){!(!E||(0,m.contains)(u.state.viewport,e.relatedTarget))&&(u.set("focused",!1),u.state.isWindowFocused&&u.resumeTimers())},onKeyDown:function(e){"Tab"===e.key&&e.shiftKey&&(0,m.getTarget)(e.nativeEvent)===u.state.viewport&&(e.preventDefault(),u.restoreFocusToPrevElement())},onClick:k,onPointerDown:function(e){"touch"===e.pointerType&&(v.current=!0)},onPointerUp:j,onPointerCancel:j,style:{"--toast-frontmost-height":P?`${P}px`:void 0}},V=!x&&T&&(0,y.jsx)(R.FocusGuard,{onFocus:function(e){p.current=!0;let t=e.relatedTarget===u.state.viewport?b.find(e=>"ending"!==e.transitionStatus&&!e.limited):void 0;t?t.ref?.current?.focus():u.restoreFocusToPrevElement()}}),H=(0,M.useRenderElement)("div",e,{ref:[n,u.setViewport],state:{expanded:I},props:[F,s,{children:(0,y.jsxs)(t.Fragment,{children:[V,l,V]})}]});return(0,y.jsxs)(t.Fragment,{children:[V,H,!E&&N.length>0&&(0,y.jsx)("div",{style:A.visuallyHidden,children:N.map(e=>(0,y.jsxs)("div",{role:"alert","aria-atomic":!0,children:[(0,y.jsx)("div",{children:e.title}),(0,y.jsx)("div",{children:e.description})]},e.id))})]})});var T=e.i(174080),P=e.i(144394),L=e.i(667865);let N=t.createContext(void 0);function O(){let e=t.useContext(N);if(!e)throw Error((0,a.default)(66));return e}var D=e.i(209407),j=e.i(137584),k=e.i(638396),F=e.i(308760);let V={...D.transitionStatusMapping,swipeDirection:e=>e?{"data-swipe-direction":e}:null},H=`${k.BASE_UI_SWIPE_IGNORE_SELECTOR},${k.LEGACY_SWIPE_IGNORE_SELECTOR}`,Z=t.forwardRef(function(e,n){let r,a,{toast:l,render:s,className:u,swipeDirection:c=["down","right"],style:f,...p}=e,g=l.positionerProps?.anchor!==void 0,h=[];g||(h=Array.isArray(c)?c:[c]);let v=h.length>0,x=o(),[b,E]=t.useState(void 0),[w,C]=t.useState(!1),[A,R]=t.useState(!1),[I,O]=t.useState({x:0,y:0}),[D,k]=t.useState({x:0,y:0,scale:1}),[Z,_]=t.useState(),[B,z]=t.useState(),[W,Y]=t.useState(null),$=t.useRef(null),U=t.useRef(void 0),q=t.useRef({x:0,y:0}),X=t.useRef({x:0,y:0,scale:1}),G=t.useRef(void 0),K=t.useRef(0),J=t.useRef(!1),Q=t.useRef({x:0,y:0}),ee=t.useRef(!1),et=t.useRef({x:0,y:0}),en=t.useRef(null),er=t.useRef(null),ei=x.useState("toastIndex",l.id),ea=x.use
1State("toastVisibleIndex",l.id),el=x.useState("toastOffsetY",l.id),eo=x.useState("focused"),es=x.useState("expanded");(0,j.useOpenChangeComplete)({open:"ending"!==l.transitionStatus,ref:$,onComplete(){"ending"===l.transitionStatus&&x.removeToast(l.id)}});let eu=(0,L.useStableCallback)((e=!1)=>{let t=$.current;if(!t)return;let n=t.style.height;t.style.height="auto";let r=t.offsetHeight;function i(){x.updateToastInternal(l.id,{ref:$,height:r,transitionStatus:void 0})}t.style.height=n,e?T.flushSync(i):i()});function ec(e){et.current=e,O(e)}(0,i.useIsoLayoutEffect)(()=>{let e=U.current;("starting"===l.transitionStatus||e!==l.id)&&(void 0!==e&&(E(void 0),k({x:0,y:0,scale:1}),ec({x:0,y:0})),U.current=l.id,eu())},[eu,l.id,l.transitionStatus]),(0,i.useIsoLayoutEffect)(()=>()=>{er.current?.abort()},[]);let ed=(0,L.useStableCallback)(e=>{let t;if(e.pointerId!==en.current)return;en.current=null,er.current?.abort(),er.current=null,C(!1),R(!1),Y(null);let n=X.current;if("pointercancel"===e.type||J.current){ec({x:n.x,y:n.y}),E(void 0);return}let r=et.current,i=r.x-n.x,a=r.y-n.y;for(let e of h)if((0,F.getDisplacement)(e,i,a)>40){t=e;break}t?(E(t),x.closeToast(l.id)):(ec({x:n.x,y:n.y}),E(void 0))});t.useEffect(()=>{let e=$.current;if(v&&e)return(0,S.addEventListener)(e,"touchmove",function(t){null!==en.current&&(0,m.contains)(e,(0,m.getTarget)(t))&&t.preventDefault()},{passive:!1})},[v]);let ef="high"===l.priority,ep={role:ef?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":Z,"aria-describedby":B,"aria-hidden":!!ef&&!eo||void 0,onPointerDown:v?function(e){if(0!==e.button)return;"touch"===e.pointerType&&x.pauseTimers();let t=(0,m.getTarget)(e.nativeEvent);if(t?.closest(`button,a,input,textarea,[role="button"],${H}`))return;J.current=!1,G.current=void 0,K.current=0,en.current=e.pointerId,q.current={x:e.clientX,y:e.clientY},Q.current=q.current;let n=e.currentTarget,r=(0,F.getElementTransform)(n);X.current=r,k(r),ec({x:r.x,y:r.y}),x.set("hovering",!0),C(!0),R(!1),Y(null),ee.current=!0,er.current?.abort();let i=new AbortController;er.current=i;let a=(0,d.ownerDocument)(n);a.addEventListener("pointerup",ed,{signal:i.signal}),a.addEventListener("pointercancel",ed,{signal:i.signal}),n.setPointerCapture?.(e.pointerId)}:void 0,onPointerMove:v?function(e){let t,n,r,i;if(e.pointerId!==en.current)return;e.preventDefault(),ee.current&&(q.current={x:e.clientX,y:e.clientY},ee.current=!1);let{clientY:a,clientX:l,movementX:o,movementY:s}=e;(s<0&&a>Q.current.y||s>0&&a<Q.current.y)&&(Q.current={x:Q.current.x,y:a}),(o<0&&l>Q.current.x||o>0&&l<Q.current.x)&&(Q.current={x:l,y:Q.current.y});let u=l-q.current.x,c=a-q.current.y,d=a-Q.current.y,f=l-Q.current.x,p=W;if(!A&&Math.sqrt(u*u+c*c)>=1){R(!0);let e=h.includes("left")||h.includes("right"),t=h.includes("up")||h.includes("down");e&&t&&Y(p=Math.abs(u)>Math.abs(c)?"horizontal":"vertical")}if(G.current){let e=G.current,t=(0,F.getDisplacement)(e,f,d);t>40?(J.current=!1,E(e)):h.includes("left")&&h.includes("right")||h.includes("up")&&h.includes("down")||!(K.current-t>=10)||(J.current=!0)}else"vertical"===p?c>0?t="down":c<0&&(t="up"):"horizontal"===p?u>0?t="right":u<0&&(t="left"):t=Math.abs(u)>=Math.abs(c)?u>0?"right":"left":c>0?"down":"up",t&&h.includes(t)&&(G.current=t,K.current=(0,F.getDisplacement)(t,u,c),E(t));let m=(n=e=>e>0?e**.5:-(Math.abs(e)**.5),r=u>0&&!h.includes("right")||u<0&&!h.includes("left"),i=c>0&&!h.includes("down")||c<0&&!h.includes("up"),{x:r?n(u):u,y:i?n(c):c}),g=X.current.x,v=X.current.y,x=h.includes("left")||h.includes("right"),b=h.includes("up")||h.includes("down");"vertical"!==p&&x&&(g+=m.x),"horizontal"!==p&&b&&(v+=m.y),ec({x:g,y:v})}:void 0,onPointerUp:v?ed:void 0,onPointerCancel:v?ed:void 0,onKeyDown:function(e){"Escape"===e.key&&$.current&&(0,m.contains)($.current,(0,m.activeElement)((0,d.ownerDocument)($.current)))&&x.closeToast(l.id)},inert:(0,P.inertValue)(l.limited),style:{...(r=I.x-D.x,a=I.y-D.y,{transition:w?"none":void 0,transform:w?`translateX(${I.x}px) translateY(${I.y}px) scale(${D.scale})`:void 0,"--toast-swipe-movement-x":`${r}px`,"--toast-swipe-movement-y":`${a}px`}),"--toast-index":"ending"===l.transitionStatus?ei:ea,"--toast-offset-y":`${el}px`,"--toast-height":l.height?`${l.height}px`:void 0}},em=t.useMemo(()=>({toast:l,setTitleId:_,setDescriptionId:z,recalculateHeight:eu,visibleIndex:ea,expanded:es}),[l,_,z,eu,ea,es]),eg={transitionStatus:l.transitionStatus,expanded:es,limited:l.limited||!1,type:l.type,swiping:w,swipeDirection:b},eh=(0,M.useRenderElement)("div",e,{ref:[n,$],state:eg,stateAttributesMapping:V,props:[ep,p]});return(0,y.jsx)(N.Provider,{value:em,children:eh})}),_=t.forwardRef(function(e,n){let{render:r,className:a,style:l,...o}
1=e,{visibleIndex:s,expanded:u,recalculateHeight:c}=O(),d=t.useRef(null);return(0,i.useIsoLayoutEffect)(()=>{c();let e=d.current;if(!e||"function"!=typeof ResizeObserver||"function"!=typeof MutationObserver)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),(0,M.useRenderElement)("div",e,{ref:[n,d],state:{expanded:u,behind:s>0},props:o})});var B=e.i(883977);function z(e){return t.isValidElement(e)&&function e(t){return null!=t&&"boolean"!=typeof t&&""!==t&&(!Array.isArray(t)||t.some(e))}(e.props.children)}function W(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=O(),l=t??("title"===n?r.title:r.description);return{id:(0,B.useId)(e),children:l,type:r.type,setId:"title"===n?i:a}}function Y(e,t,n){let r=z(e);return(0,i.useIsoLayoutEffect)(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}let $=t.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:l,...o}=e,{id:s,children:u,type:c,setId:d}=W(a,l,"description");return Y((0,M.useRenderElement)("p",e,{ref:t,state:{type:c},props:{...o,id:s,children:u}}),s,d)}),U=t.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:l,...o}=e,{id:s,children:u,type:c,setId:d}=W(a,l,"title");return Y((0,M.useRenderElement)("h2",e,{ref:t,state:{type:c},props:{...o,id:s,children:u}}),s,d)});var q=e.i(540886);let X=t.forwardRef(function(e,n){let{render:r,className:i,style:a,disabled:l,nativeButton:s=!0,...u}=e,c=o(),{toast:d,expanded:f}=O(),[p,m]=t.useState(!1),{getButtonProps:g,buttonRef:h}=(0,q.useButton)({disabled:l,native:s}),v={type:d.type};return(0,M.useRenderElement)("button",e,{ref:[n,h],state:v,props:[{"aria-hidden":!f&&!p,onClick(){c.closeToast(d.id)},onFocus(){m(!0)},onBlur(){m(!1)}},u,g]})}),G=t.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:l=!0,...o}=e,{toast:s}=O(),u=s.actionProps?.children??o.children,{getButtonProps:c,buttonRef:d}=(0,q.useButton)({disabled:a,native:l}),f={type:s.type},p=(0,M.useRenderElement)("button",e,{ref:[t,d],state:f,props:[o,s.actionProps,c,{children:u}]});return z(p)?p:null});var K=e.i(726674);let J=t.forwardRef(function(e,n){let{children:r,container:i,className:a,render:l,style:o,...s}=e,{node:u,subtree:c}=(0,K.useFloatingPortalNode)({container:i,ref:n,componentProps:e,elementProps:s});return c||u?(0,y.jsxs)(t.Fragment,{children:[c,u&&T.createPortal(r,u)]}):null}),Q=t.forwardRef(function(e,t){return(0,y.jsx)(J,{ref:t,...e})});var ee=e.i(229315),et=e.i(956789),en=e.i(923706);let er=t.createContext(void 0);var ei=e.i(265858),ea=e.i(789579);let el=t.forwardRef(function(e,n){let{toast:r,...i}=e,a=o(),l=r.positionerProps??et.EMPTY_OBJECT,{render:s,className:u,anchor:c=l.anchor,positionMethod:d=l.positionMethod??"absolute",side:f=l.side??"top",align:p=l.align??"center",sideOffset:m=l.sideOffset??0,alignOffset:g=l.alignOffset??0,collisionBoundary:h=l.collisionBoundary??"clipping-ancestors",collisionPadding:v=l.collisionPadding??5,arrowPadding:x=l.arrowPadding??5,sticky:b=l.sticky??!1,disableAnchorTracking:E=l.disableAnchorTracking??!1,collisionAvoidance:S=l.collisionAvoidance??k.POPUP_COLLISION_AVOIDANCE,style:w,...C}=i,[A,R]=t.useState(null),M=a.useState("toastIndex",r.id),I=a.useState("toastVisibleIndex",r.id),T=(0,ee.isElement)(c)?c:null,P=(0,ei.useFloatingRootContext)({open:!0,onOpenChange:et.NOOP,elements:{floating:A,reference:T}}),L=(0,en.useAnchorPositioning)({anchor:T,positionMethod:d,floatingRootContext:P,mounted:!0,side:f,sideOffset:m,align:p,alignOffset:g,collisionBoundary:h,collisionPadding:v,sticky:b,arrowPadding:x,disableAnchorTracking:E,keepMounted:!0,collisionAvoidance:S}),N={side:L.side,align:L.align,anchorHidden:L.anchorHidden},O=(0,ea.usePositioner)(e,N,{styles:{...L.positionerStyles,"--toast-index":"ending"===r.transitionStatus?M:I},transitionStatus:r.transitionStatus,props:C,refs:[n,R]});return(0,y.jsx)(er.Provider,{value:L,children:O})}),eo=t.forwardRef(function(e,n){let{className:r,render:i,style:l,...o}=e,{arrowRef:s,side:u,align:c,arrowUncentered:d,arrowStyles:f}=function(){let e=t.useContext(er);if(void 0===e)throw Error((0,a.default)(84));return e}();return(0,M.useRenderElement)("div",e,{state:{side:u,align:c,uncentered:d},ref:[n,s],props:[{style:f,"aria-hidden":!0},o]})});e.s(["Action",0,G,"Arrow",0,eo,"Close",0,X,"Content",0,_,"Description",0,$,"Portal",0,Q,"Positioner",0,el,"Provider",0,function(e){let{children:i,timeout:a=5e3,limit:o=3,toastManager:s}=e,u=(0,r.useRefWithInit)(()=>new b({timeout:a,limit:o,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return(0,n.useOnMount)(u.disposeEffect),t.useEffect(function(){if(s)return s[" subscribe"](({action:e,options:t})=>{let n=t.id;"promise"===e&&t.promise?u.promiseToast(t.promise,t):"update"===e&&n?u.updateToast(n,t):"close"===e?u.closeToast(n):u.addToast(t)})},[u,s]),(0,y.jsxs)(l.Provider,{value:u,children:[(0,y.jsx)(E,{store:u,timeout:a,limit:o}),i]})},"Root",0,Z,"Title",0,U,"Viewport",0,I,"createToastManager",0,function(){let e=new Set;
1function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||c("toast");return t({action:"add",options:{...e,id:n,transitionStatus:"starting"}}),n},close(e){t({action:"close",options:{id:e}})},update(e,n){t({action:"update",options:{...n,id:e}})},promise(e,n){let r=e;return t({action:"promise",options:{...n,promise:e,setPromise(e){r=e}}}),r}}},"useToastManager",0,function(){let e=o(),n=e.useState("toasts");return t.useMemo(()=>({toasts:n,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[n,e])}],402860);var es=e.i(402860);e.s(["Toast",0,es],76572)},360495,e=>{"use strict";var t=e.i(108868),n=e.i(333848),r=e.i(343084),i=e.i(909091);e.s(["adaptiveOrigin",0,{name:"adaptiveOrigin",async fn(e){let{x:a,y:l,rects:{floating:o},elements:{floating:s},platform:u,strategy:c,placement:d}=e,f=(0,n.ownerWindow)(s),p=f.getComputedStyle(s);if("0s"===p.transitionDuration||""===p.transitionDuration)return{x:a,y:l,data:i.DEFAULT_SIDES};let m=await u.getOffsetParent?.(s),g={width:0,height:0};if("fixed"===c&&f?.visualViewport)g={width:f.visualViewport.width,height:f.visualViewport.height};else if(m===f){let e=(0,t.ownerDocument)(s);g={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await u.isElement?.(m)&&(g=await u.getDimensions(m));let h=(0,r.getSide)(d),v=a,x=l;return"left"===h&&(v=g.width-(a+o.width)),"top"===h&&(x=g.height-(l+o.height)),{x:v,y:x,data:{sideX:"left"===h?"right":i.DEFAULT_SIDES.sideX,sideY:"top"===h?"bottom":i.DEFAULT_SIDES.sideY}}}}])},450001,264042,33383,818438,949872,116045,320887,163690,627297,e=>{"use strict";e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}],450001);var t,n,r,i,a,l,o,s=e.i(333848),u=e.i(328744);e.s(["isMouseWithinBounds",0,function(e,t){let n=function(e){let t=e.getBoundingClientRect(),n=(0,s.ownerWindow)(e);if(u.platform.env.jsdom)return t;let r=n.getComputedStyle(e,"::before"),i=n.getComputedStyle(e,"::after");if("none"===r.content&&"none"===i.content)return t;let a=parseFloat(r.width)||0,l=parseFloat(r.height)||0,o=parseFloat(i.width)||0,c=parseFloat(i.height)||0,d=Math.max(t.width,a,o),f=Math.max(t.height,l,c),p=d-t.width,m=f-t.height;return{left:t.left-p/2,right:t.right+p/2,top:t.top-m/2,bottom:t.bottom+m/2}}(t);return e.clientX>=n.left-5&&e.clientX<=n.right+5&&e.clientY>=n.top-5&&e.clientY<=n.bottom+5}],264042);var c=e.i(271645),d=e.i(108868),f=e.i(145484),p=e.i(146376);e.s(["useAnchoredPopupScrollLock",0,function(e,t,n,r){let[i,a]=c.useState(!1);(0,p.useIsoLayoutEffect)(()=>{if(!e||!t||null==n)return void a(!1);let r=(0,d.ownerDocument)(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-20)},[e,t,n]),(0,f.useScrollLock)(e&&(!t||i),r)}],33383);var m=e.i(552245);let g=c.forwardRef(function(e,t){let{className:n,render:r,orientation:i="horizontal",style:a,...l}=e;return(0,m.useRenderElement)("div",e,{state:{orientation:i},ref:t,props:[{role:"presentation"},l]})});e.s(["ListboxSeparator",0,g],818438),e.s([],54383),e.i(54383);var h=e.i(108821),v=e.i(405005);let x=((t={}).nestedDrawers="--nested-drawers",t.height="--drawer-height",t.frontmostHeight="--drawer-frontmost-height",t.swipeMovementX="--drawer-swipe-movement-x",t.swipeMovementY="--drawer-swipe-movement-y",t.snapPointOffset="--drawer-snap-point-offset",t.swipeStrength="--drawer-swipe-strength",t),b=((n={}).swipeProgress="--drawer-swipe-progress",n),y=c.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...l}=e,o=(0,h.useDialogRootContext)(),s=o.useState("open"),u=o.useState("nested"),c=o.useState("mounted"),d=o.useState("transitionStatus");return(0,m.useRenderElement)("div",e,{state:{open:s,transitionStatus:d},ref:[o.context.backdropRef,t],stateAttributesMapping:v.popupTransitionStateMapping,props:[{role:"presentation",hidden:!c,style:{pointerEvents:s?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[b.swipeProgress]:"0",[x.swipeStrength]:"1"}},l],enabled:a||!u})}),E=e.i(156736).DialogClose,S="data-drawer-content",w=c.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return(0,h.useDialogRootContext)(),(0,m.useRenderElement)("div",e,{ref:t,props:[{[S]:""},a]})}),C=e.i(209793).DialogDescription,A=c.createContext(void 0);function R(){return c.useContext(A)}let M={active:e=>e?{"data-active":""}:{"data-inactive":""}},I=c.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,l=R(),o=l?.active??!1,s=l?.visualStateStore,u=c.useRef(null);return(0,p.useIsoLayoutEffect)(()=>{let e=u.current;if(!e||!s)return;let t=()=>{let{swipeProgress:t,frontmostHeight:n}=s.getSnapshot();t<=0?e.style.setProperty(b.swipeProgress,"0"):e.style.setProperty(b.swipeProgress,`${t}`),n<=0?e.style.removeProperty(x.height):e.style.setProperty(x.height,`${n}px`)};t();let n=s.subscribe(t);return()=>{n(),e.style.setProperty(b.swipeProgress,"0"),e.style.removeProperty(x.height)}},[s]),(0,m.useRenderElement)("div",e,{ref:[t,u],state:{active:o},props:[{style:{[b.swipeProgress]:"0"}},a],stateAttributesMapping:M})}),T={active:e=>e?{"data-active":""}:{"data-inactive":""}},P=c.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,l=R(),o=l?.active??!1;return(0,m.useRenderElement)("div",e,{ref:t,state:{active:o},props:a,stateAttributesMapping:T})});var L=e.i(667865),N=e.i(956789),O=e.i(61487);let D=((r={})[r.open=v.CommonPopupDataAttributes.open]="open",r[r.closed=v.CommonPopupDataAttributes.closed]="closed",r[r.startingStyle=v.CommonPopupDataAttributes.startingStyle]="startingStyle",r[r.endingStyle=v.CommonPopupDataAttributes.endingStyle]="endingStyle",r.expanded="data-expanded",r.nestedDrawerOpen="data-nested-drawer-open",r.nestedDrawerSwiping="data-nested-drawer-swiping",r.swipeDismiss="data-swipe-dismiss",r.swipeDirection="data-swipe-direction",r.swiping="data-swiping",r);var j=e.i(625834),k=e.i(137584),F=e.i(673327),V=e.i(733332);let H=c.createContext(void 0);function Z(e){let t=c.useContext(H);if(!0!==e&&void 0===t)throw Error((0,V.default)(90));return t}var _=e.i(201675);function B(e,t){let n=e+t;return n>=0?t:-Math.sqrt(-n)-e}function z(e,t,n){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,_.clamp)(e,0,1)*t:e:null;let r=e.trim();if(r.endsWith("px")){let e=Number.parseFloat(r);return Number.isFinite(e)?e:null}if(r.endsWith("rem")){let e=Number.parseFloat(r);return Number.isFinite(e)?e*n:null}return null}function W(e,t){let n=-1,r=1/0;for(let i=0;i<e.length;i+=1){let a=Math.abs(e[i]-t);a<r&&(r=a,n=i)}return n}function Y(){let e=(0,h.useDialogRootContext)(),{snapPoints:t,activeSnapPoint:n,setActiveSnapPoint:r,popupHeight:i}=Z(),a=e.useState("viewportElement"),[l,o]=c.useState(0),[s,u]=c.useState(16),f=(0,L.use
1StableCallback)(()=>{let e=(0,d.ownerDocument)(a).documentElement;o(a?a.offsetHeight:e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&u(t)});(0,p.useIsoLayoutEffect)(()=>{if(f(),!a||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(f);return e.observe(a),()=>{e.disconnect()}},[f,a]);let m=c.useMemo(()=>{if(!t||0===t.length||l<=0||i<=0)return[];let e=Math.min(i,l),n=t.map(t=>{let n=z(t,l,s);if(null===n)return null;let r=(0,_.clamp)(n,0,e);return{value:t,height:r,offset:Math.max(0,i-r)}}).filter(e=>!!e);if(n.length<=1)return n;let r=[],a=[];for(let e=n.length-1;e>=0;e-=1){let t=n[e];a.some(e=>1>=Math.abs(e-t.height))||(a.push(t.height),r.push(t))}return r.reverse(),r},[i,s,t,l]),g=c.useMemo(()=>{if(null===n)return;let e=m.find(e=>Object.is(e.value,n));if(e)return e;let t=Math.min(i,l),r=z(n,l,s);if(null===r)return;let a=(0,_.clamp)(r,0,t);return m[W(m.map(e=>e.height),a)]},[n,i,m,s,l]);return{snapPoints:t,activeSnapPoint:n,setActiveSnapPoint:r,popupHeight:i,viewportHeight:l,resolvedSnapPoints:m,activeSnapPointOffset:g?.offset??null}}let $=c.createContext(null);var U=e.i(264111),q=e.i(843476);let X=!1,G={...v.popupTransitionStateMapping,expanded:e=>e?{[D.expanded]:""}:null,nestedDrawerOpen:e=>e?{[D.nestedDrawerOpen]:""}:null,nestedDrawerSwiping:e=>e?{[D.nestedDrawerSwiping]:""}:null,swipeDirection:e=>({[D.swipeDirection]:e}),swiping:e=>e?{[D.swiping]:""}:null},K=c.forwardRef(function(e,t){let n,{render:r,className:i,style:a,finalFocus:l,initialFocus:o,...s}=e,u=(0,h.useDialogRootContext)(),d=u.context.popupRef,{swipeDirection:f,frontmostHeight:g,hasNestedDrawer:v,nestedSwiping:y,nestedSwipeProgressStore:E,onPopupHeightChange:S,notifyParentFrontmostHeight:w,notifyParentHasNestedDrawer:C}=Z(),A=u.useState("descriptionElementId"),R=u.useState("disablePointerDismissal"),M=u.useState("floatingRootContext"),I=u.useState("popupProps"),T=u.useState("modal"),P=u.useState("mounted"),D=u.useState("nested"),V=u.useState("nestedOpenDrawerCount"),H=u.useState("transitionStatus"),_=u.useState("open"),z=u.useState("openMethod"),W=u.useState("titleElementId"),K=u.useState("role"),J=M.useState("floatingId"),Q=s.id??J,ee=c.useContext($);(0,j.useDialogPortalContext)();let{snapPoints:et,activeSnapPoint:en,activeSnapPointOffset:er}=Y(),ei=V>0,ea=ee?.swiping??!1,el=ee?.swipeStrength??null,[eo,es]=c.useState(0),eu=c.useRef(0),ec=(0,L.use
1StableCallback)(()=>{let e=d.current;if(!e)return;let t=e.offsetHeight;if(!(eu.current>0)||!(g>eu.current)||!(t>eu.current)){if(eu.current>0&&v){let e=eu.current;es(e),S(e);return}t!==eu.current&&(eu.current=t,es(t),S(t))}});(0,p.useIsoLayoutEffect)(()=>{if(!P){eu.current=0,es(0),S(0);return}let e=d.current;if(!e||(X||("u">typeof CSS&&"registerProperty"in CSS&&([x.swipeMovementX,x.swipeMovementY,x.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:b.swipeProgress,initialValue:"0"},{name:x.swipeStrength,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:t})}catch{}})),X=!0),ec(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(ec);return t.observe(e),()=>{t.disconnect()}},[ec,P,ei,S,d]),(0,p.useIsoLayoutEffect)(()=>{let e=()=>{let e=d.current;if(!e)return;let t=E.getSnapshot();t>0?e.style.setProperty(b.swipeProgress,`${t}`):e.style.setProperty(b.swipeProgress,"0")};e();let t=E.subscribe(e),n=d.current;return()=>{t(),n&&n.style.setProperty(b.swipeProgress,"0")}},[E,d]),(0,p.useIsoLayoutEffect)(()=>{if(_)return w?.(g),()=>{w?.(0)}},[g,_,w]),(0,p.useIsoLayoutEffect)(()=>{if(C)return C(_||"ending"===H),()=>{C(!1)}},[C,_,H]),(0,k.useOpenChangeComplete)({open:_,ref:d,onComplete(){_&&u.context.onOpenChangeComplete?.(!0)}});let ed=void 0===o?d:o,ef=u.useStateSetter("popupElement"),ep=!v&&"ending"!==H;eo&&!ep&&(n=`${eo}px`);let em=et&&et.length>0&&("down"===f||"up"===f),eg=null;em&&null!==er&&(eg="up"===f?-er:er);let eh=ee?ee.getDragStyles():N.EMPTY_OBJECT;if(em&&"down"===f){let e=Number.parseFloat(String(eh[x.swipeMovementY]));eh=ea&&Number.isFinite(e)?{...eh,transform:void 0,[x.swipeMovementY]:`${B(er??0,e)}px`}:{...eh,transform:void 0}}let ev=(0,m.useRenderElement)("div",e,{state:{open:_,nested:D,transitionStatus:H,expanded:1===en,nestedDrawerOpen:ei,nestedDrawerSwiping:y,swipeDirection:f,swiping:ea},props:[I,{id:Q,"aria-labelledby":W,"aria-describedby":A,role:K,...U.FOCUSABLE_POPUP_PROPS,hidden:!P,onKeyDown(e){F.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{...eh,[b.swipeProgress]:"0",[x.nestedDrawers]:V,[x.height]:n,[x.snapPointOffset]:"number"==typeof eg?`${eg}px`:"0px",[x.frontmostHeight]:g?`${g}px`:void 0,[x.swipeStrength]:"number"==typeof el&&Number.isFinite(el)&&el>0?`${el}`:"1"}},s],ref:[t,d,ef],stateAttributesMapping:G});return(0,q.jsx)(O.FloatingFocusManager,{context:M,openInteractionType:z,disabled:!P,closeOnFocusOut:!R,initialFocus:ed,returnFocus:l,modal:!1!==T,restoreFocus:"popup",children:ev})}),J=e.i(264951).DialogPortal;function Q(){let e={swipeProgress:0,frontmostHeight:0},t=new Set;return{getSnapshot:()=>e,set(n){let r=e.swipeProgress;void 0!==n.swipeProgress&&(r=Number.isFinite(n.swipeProgress)?n.swipeProgress:0);let i=e.frontmostHeight;void 0!==n.frontmostHeight&&(i=Number.isFinite(n.frontmostHeight)?n.frontmostHeight:0),(r!==e.swipeProgress||i!==e.frontmostHeight)&&(e={swipeProgress:r,frontmostHeight:i},t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}var ee=e.i(574735),et=e.i(951437),en=e.i(675606),er=e.i(56434),ei=e.i(366250);function ea(){let e=0,t=new Set;return{getSnapshot:()=>e,set(n){let r=Number.isFinite(n)?n:0;r!==e&&(e=r,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}function el(){let e=R(),t=(0,h.useDialogRootContext)(!1),n=e?.setDrawerOpen,r=e?.removeDrawer,i=t.useState("open"),a=t.useState("nestedOpenDialogCount"),l=t.useState("popupElement"),o=0===a;return(0,p.useIsoLayoutEffect)(()=>{if(r)return()=>{r(t)}},[r,t]),(0,p.useIsoLayoutEffect)(()=>{n?.(t,i)},[i,n,t]),c.useEffect(()=>{if(!i||!o||!u.platform.os.android)return;let e=(0,s.ownerWindow)(l).CloseWatcher;if(!e)return;let n=new e,r=(0,ee.addEventListener)(n,"close",function(e){t.select("open")&&t.setOpen(!1,(0,en.createChangeEventDetails)(er.REASONS.closeWatcher,e))});return()=>{r(),n.destroy()}},[t,o,i,l]),null}var eo=e.i(308760),es=e.i(788015),eu=e.i(157940);let ec=((i={})[i.open=v.CommonPopupDataAttributes.open]="open",i[i.closed=v.CommonPopupDataAttributes.closed]="closed",i.disabled="data-disabled",i.swipeDirection="data-swipe-direction",i.swiping="data-swiping",i
1),ed={[ec.open]:""},ef={[ec.closed]:""},ep={[ec.swiping]:""},em={[ec.disabled]:""},eg={open:e=>e?ed:ef,swiping:e=>e?ep:null,swipeDirection:e=>({[ec.swipeDirection]:e}),disabled:e=>e?em:null},eh={up:"down",down:"up",left:"right",right:"left"},ev=c.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,swipeDirection:l,...o}=e,s=(0,h.useDialogRootContext)(),{swipeDirection:u,frontmostHeight:f,swipeAreaActiveRef:g}=Z(),v=R(),[y,E]=c.useState(!1),S=c.useRef(null),w=c.useRef(null),C=c.useRef(!1),A=c.useRef({x:0,y:0}),M=c.useRef(null),I=c.useRef(!1),T=c.useRef(null),P=c.useRef(null),O=c.useRef(null),j=c.useRef(N.NOOP),k=(0,es.useBaseUiId)(e.id),F=(0,U.useTriggerRegistration)(k,s),V=s.useState("open"),H=(0,L.useStableCallback)(()=>{A.current.x=0,A.current.y=0}),_=l??eh[u],B=eh[_],z=!a&&(!V||y),W=(0,L.useStableCallback)(()=>{j.current();let e=(0,d.ownerDocument)(S.current);function t(n){(n?.type!=="click"||0===n.detail||(0,eu.isVirtualClick)(n))&&(j.current=N.NOOP,e.removeEventListener("pointerdown",t,!0),e.removeEventListener("click",t,!0),s.context.outsidePressEnabledRef.current=!0)}j.current=t,e.addEventListener("pointerdown",t,!0),e.addEventListener("click",t,!0)});function Y(e){let t="left"===B||"right"===B?e.offsetWidth:e.offsetHeight;return t<=0?null:t}function $(){let e=s.context.popupRef.current;if(!e||!s.select("open")||!s.select("mounted"))return;null==M.current&&(M.current=function(e){let t=Y(e);if(null==t)return null;let n=(0,eo.getElementTransform)(e),r="left"===B||"right"===B?n.x:n.y;return Number.isFinite(r)&&Math.abs(r)>.5?Math.min(t,Math.abs(r)):t}(e));let t=M.current;if(null===t)return;let{x:n,y:r}=A.current,i=Math.max(0,(0,eo.getDisplacement)(_,n,r)),a=i>t?t+Math.sqrt(i-t):i,l=(t-a)*("left"===B||"up"===B?-1:1),o="left"===B||"right"===B,u=Math.max(0,Math.min(1,i/t)),c=Math.max(0,Math.min(1,1-u));e.style.setProperty(x.swipeMovementX,`${o?l:0}px`),e.style.setProperty(x.swipeMovementY,`${o?0:l}px`),e.setAttribute(D.swiping,""),T.current=e,null===O.current&&(O.current=e.style.transition),e.style.transition="none";let d=s.context.backdropRef.current;d&&(d.setAttribute(D.swiping,""),P.current=d,d.style.setProperty(b.swipeProgress,`${c}`),u>0&&f>0?d.style.setProperty(x.height,`${f}px`):d.style.removeProperty(x.height)),v?.visualStateStore.set({swipeProgress:u,frontmostHeight:u>0?f:0}),I.current=!0,g.current=!0}let q=(0,L.useStableCallback)(()=>{let e=T.current;e&&(e.style.removeProperty(x.swipeMovementX),e.style.removeProperty(x.swipeMovementY),e.removeAttribute(D.swiping)),e&&null!==O.current&&(e.style.transition=O.current,O.current=null);let t=P.current;t&&(t.removeAttribute(D.swiping),t.style.setProperty(b.swipeProgress,"0"),t.style.removeProperty(x.height)),v?.visualStateStore.set({swipeProgress:0,frontmostHeight:0}),I.current=!1,T.current=null,P.current=null,g.current=!1});function X(e){C.current=!0,s.setOpen(!0,(0,en.createChangeEventDetails)(er.REASONS.swipe,e,S.current))}function G(){w.current=null,C.current=!1,M.current=null,E(!1)}function K(){G(),W(),H(),q()}let J=(0,eo.useSwipeDismiss)({enabled:z,directions:[_],elementRef:S,trackDrag:!1,movementCssVars:{x:x.swipeMovementX,y:x.swipeMovementY},onSwipeStart(e){j.current(),s.context.outsidePressEnabledRef.current=!1,w.current=e,C.current=!1,E(!0),H()},onProgress(e,t){if(!t||!w.current||(A.current.x=t.deltaX,A.current.y=t.deltaY,t.direction!==_))return;let n=(0,eo.getDisplacement)(_,t.deltaX,t.deltaY);(C.current||!(n<1))&&(C.current||s.select("open")||X(w.current),$())},onRelease({event:e,direction:t,deltaX:n,deltaY:r,releaseVelocityX:i,releaseVelocityY:l}){let o,u,c=(0,eo.getDisplacement)(_,n,r),d=(0,eo.getDisplacement)(_,i,l),f=null==(u=(o=s.context.popupRef.current)?Y(o):null)?40:.5*u;if(t===_&&(c>=f||d>=.1)&&!a)s.select("open")||X(e);else C.current&&s.select("open")&&s.setOpen(!1,(0,en.createChangeEventDetails)(er.REASONS.swipe,e,S.current));return K(),!1},onCancel:K}),Q=J.getPointerProps(),ee=J.getTouchProps(),et=J.reset;(0,p.useIsoLayoutEffect)(()=>{y&&I.current&&$()}),(0,p.useIsoLayoutEffect)(()=>{z||(y&&W(),et(),H(),q(),G())},[q,W,z,H,et,y]),c.useEffect(()=>()=>{j.current(),s.context.outsidePressEnabledRef.current=!0},[s]);let ei={open:V,swiping:J.swiping,swipeDirection:_,disabled:a};return(0,m.useRenderElement)("div",e,{state:ei,ref:[t,S,F],stateAttributesMapping:eg,props:[{role:"presentation","aria-hidden":!0,style:{pointerEvents:z?void 0:"none",touchAction:"left"===_||"right"===_?"pan-y":"pan-x"},onPointerDown(e){"touch"!==e.pointerType&&(Q.onPointerDown?.(e),e.cancelable&&e.preventDefault())},onPointerMove(e){"touch"!==e.pointerType&&Q.onPointerMove?.(e)},onPointerUp(e){"touch"!==e.pointerType&&Q.onPointerUp?.(e)},onPointerCancel(e){"touch"!==e.pointerType&&Q.onPointerCancel?.(e)}},ee,k?{id:k}:void 0,o]})}),ex=e.i(77173).DialogTitle,eb=e.i(313488).DialogTrigger;var ey=e.i(174080),eE=e.i(229315),eS=e.i(708445),ew=e.i(974217),eC=e.i(176782),eA=e.i(647554),eR=e.i(209407),eM=e.i(496545),eI=e.i(638396),eT=e.i(902410);let eP=c.createContext(void 0),eL=`[${S}]`,eN=c.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...l}=e,o=(0,h.useDialogRootContext)(),u=o.context.popupRef,f=o.context.backdropRef,{swipeDirection:m,notifyParentSwipingChange:g,notifyParentSwipeProgressChange:v,frontmostHeight:y,snapToSequentialPoints:E,swipeAreaActiveRef:S}=Z(),w=R(),{snapPoints:C,resolvedSnapPoints:A,activeSnapPoint:M,activeSnapPointOffset:I,setActiveSnapPoint:T,popupHeight:P}=Y(),N=o.useState("open"),O=o.useState("mounted"),j=o.useState("nested"),k=o.use
1State("nestedOpenDrawerCount"),F=o.useState("viewportElement"),V=o.useState("popupElement"),H=w?.visualStateStore,z=k>0,U="left"===m||"right"===m?"horizontal":"vertical",X="vertical"===U,G=X?"horizontal":"vertical",[K,J]=c.useState(null),Q=c.useRef(void 0),et=c.useRef(null),ei=(0,eS.useAnimationFrame)(),ea=c.useRef(!1),el=c.useRef(!1),es=c.useRef(""),eu=c.useRef(!1),ec=c.useRef(!1),ed=c.useRef(null),ef=c.useContext(eP),ep=c.useMemo(()=>{if(!C||C.length<2||A.length<2||"down"!==m&&"up"!==m)return null;let e=A.map(e=>e.offset).sort((e,t)=>e-t),t=e[0];return{minOffset:t,range:e[1]-t}},[A,C,m]),em=c.useMemo(()=>ep&&null!==I?(0,_.clamp)((I-ep.minOffset)/ep.range,0,1):null,[I,ep]),eg=c.useMemo(()=>C&&C.length>0&&("down"===m||"up"===m)?"down"===m?["down","up"]:["up","down"]:[m],[C,m]),eh=(0,L.useStableCallback)(e=>{u.current?.toggleAttribute(D.swipeDismiss,e),f.current?.toggleAttribute(D.swipeDismiss,e)}),ev=(0,L.useStableCallback)(()=>{eh(!1),u.current?.removeAttribute(eR.TransitionStatusDataAttributes.endingStyle),J(null)}),ex=(0,L.useStableCallback)(()=>{el.current&&(el.current=!1,g?.(!1))}),eb=(0,L.useStableCallback)((e,t,n)=>{let r=N&&!j&&t,i=r?e:0,a=N&&t?e:0;n&&v&&(v(a),a<=0&&ex()),H?.set({swipeProgress:i,frontmostHeight:i>0?y:0});let l=f.current;if(!l)return;let o=r&&i>0;l.style.setProperty(b.swipeProgress,o?`${i}`:"0"),o&&y>0?l.style.setProperty(x.height,`${y}px`):l.style.removeProperty(x.height)}),eI=(0,eo.useSwipeDismiss)({enabled:O&&!z,directions:eg,elementRef:o.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:x.swipeMovementX,y:x.swipeMovementY},onSwipeStart(e){if("touches"in e||"touch"===e.pointerType)return;let t=u.current,n=(0,d.ownerDocument)(t),r=n.getSelection?.();if(!r||r.isCollapsed)return;let i=(0,eE.isElement)(r.anchorNode)?r.anchorNode:r.anchorNode?.parentElement,a=(0,eE.isElement)(r.focusNode)?r.focusNode:r.focusNode?.parentElement;((0,eA.contains)(t,i)||(0,eA.contains)(t,a))&&r.removeAllRanges()},onSwipingChange(e){ea.current=e,eO(o.context.backdropRef.current,e),e||v||ex()},swipeThreshold:({element:e,direction:t})=>ek(e,t),canStart(e,t){let n=o.context.popupRef.current;if(!n)return!1;let r=n.ownerDocument,i=(0,eT.getElementAtPoint)(n.getRootNode(),e.x,e.y);if(!i||!(0,eA.contains)(n,i))return!1;let a=t.nativeEvent;return!(("touches"in a||"touch"===a.pointerType)&&eF(r,n))},onProgress(e,t){!function(e){if(el.current||!e)return;let t=e.direction??m;10>Math.abs((0,eo.getDisplacement)(t,e.deltaX,e.deltaY))||(el.current=!0,g?.(!0))}(t);let n=!!(C&&C.length>0);if(ea.current&&"down"===m&&n&&t){let e=o.context.popupRef.current;e&&(e.style.removeProperty("transform"),e.style.setProperty(x.swipeMovementY,`${B(I??0,t.deltaY)}px`))}let r=e;if(ep&&P>0){let e=I??ep.minOffset;if(t&&Number.isFinite(t.deltaY)){let n;n=(0,_.clamp)(e+t.deltaY,0,P),r=(0,_.clamp)((n-ep.minOffset)/ep.range,0,1)}else null!==em&&(r=em)}eb(r,!0,!0)},onRelease({event:e,deltaX:t,deltaY:n,direction:r,velocityX:i,velocityY:a,releaseVelocityX:l,releaseVelocityY:s}){let u=o.context.popupRef.current;if(!u)return void ev();function c(e){ex(),eh(!0),u.style.removeProperty("transition"),u.setAttribute(eR.TransitionStatusDataAttributes.endingStyle,""),ey.flushSync(()=>{J(function(e,t,n,r,i,a,l,o){let s=ej(e,t);if(s<=0)return null;let u=Math.max(0,s-((("down"===t||"up"===t)&&C&&C.length>0?I??0:0)+(0,eo.getDisplacement)(t,n,r)));if(u<=0)return null;let c=(0,eo.getDisplacement)(t,l,o),d=Math.abs(c)>0?c:(0,eo.getDisplacement)(t,i,a);if(d<=.2)return null;let f=(0,_.clamp)(d,.2,4);return .1+((0,_.clamp)(u/f,80,360)-80)/280*.9}(u,e,t,n,i,a,l,s))})}if(!C||0===C.length){if(!r)return void ev();let e=(0,eo.getDisplacement)(r,t,n);if(e<=0)return ev(),!1;if((0,eo.getDisplacement)(r,i,a)>=.5)return c(r),!0;let l=e>ek(u,r);return l?c(r):ev(),l}if("down"!==m&&"up"!==m)return void ev();if(!P)return ev(),!1;if(0===A.length)return void ev();let d="down"===m?n:-n,f=Math.sign(d),p="down"===m?s:-s,g="down"===m?a:-a,h=p;if(0!==f&&Math.abs(d)>=10){let e=Math.sign(h);0!==e&&e!==f&&(h=g)}let v=I??0,x=(0,_.clamp)(v+d,0,P),b=Math.abs(h)>=.5?300*(0,_.clamp)(h,-4,4):0,y=E?x:(0,_.clamp)(x+b,0,P),S=(0,en.createChangeEventDetails)(er.REASONS.swipe,e),w=()=>(Q.current=M,T(null,S),c(m),!0);if(E){let e=[...A].sort((e,t)=>
1e.offset-t.offset),t=e.map(e=>e.offset),n=W(t,v),r=e[W(t,y)],i=Math.sign(h),a=y;if(0!==f&&0!==i&&i===f&&Math.abs(h)>=.5){let t=(0,_.clamp)(n+f,0,e.length-1);if(t!==n){let n=e[t];(f>0?y<n.offset:y>n.offset)&&(r=n,a=n.offset)}else if(f>0)return w()}return Math.abs(a-P)<Math.abs(a-r.offset)?w():(T(r.value,S),ev(),!1)}if(h>=.5&&d>0)return w();let R=A[W(A.map(e=>e.offset),y)];return Math.abs(y-P)<Math.abs(y-R.offset)?w():(T(R.value,S),ev(),!1)},onDismiss(e){H?.set({swipeProgress:0,frontmostHeight:0});let t=o.context.backdropRef.current;t&&(t.style.setProperty(b.swipeProgress,"0"),t.style.removeProperty(x.height));let n=(0,en.createChangeEventDetails)(er.REASONS.swipe,e);if(o.setOpen(!1,n),n.isCanceled){let t=Q.current;void 0!==t&&T(t,(0,en.createChangeEventDetails)(er.REASONS.swipe,e)),Q.current=void 0,et.current?.(),ev();return}o.select("open")?ei.request(()=>{if(o.select("open")){let t=Q.current;void 0!==t&&T(t,(0,en.createChangeEventDetails)(er.REASONS.swipe,e)),Q.current=void 0,ev(),et.current?.()}else Q.current=void 0}):(Q.current=void 0,eh(!0))}}),eN=eI.getPointerProps(),e_=eI.getTouchProps(),{moveNative:eB,reset:ez}=eI;et.current=ez,c.useEffect(()=>{let e=F??V;if(!e)return;let t=(0,d.ownerDocument)(e);return(0,ee.addEventListener)(t,"touchmove",function(n){var r,i;if(ef?.onTouchMove(n),ec.current)return;let a=ed.current,l=n.touches[0];l&&a&&(!function(n,r,i){let a=X?i.clientY-r.lastY:i.clientX-r.lastX;if(2===n.touches.length||eF(t,e)||!N||!O||z||function(e,t,n,r){if(e.preserveNativeCrossAxisScroll)return!0;if(e.drawerAxisAttributed||!0===e.allowSwipe||!e.hasCrossAxisScrollableContent)return!1;if(!t.cancelable)return e.preserveNativeCrossAxisScroll=!0,!0;let i=r?n.clientY-e.startY:n.clientX-e.startX,a=r?n.clientX-e.startX:n.clientY-e.startY,l=Math.abs(i),o=Math.abs(a);return o>=6&&o>l+2?(e.preserveNativeCrossAxisScroll=!0,!0):!(l>=6)||(e.drawerAxisAttributed=!0,!1)}(r,n,i,X))return;let l=r.scrollTarget;if(!l||l===t.documentElement||l===t.body){n.cancelable&&n.preventDefault(),n.stopPropagation(),eB(n,e);return}if(!(eV(l,U).max>0)){n.cancelable&&n.preventDefault(),n.stopPropagation();return}if(0!==a){var o,s,u,c;let e=(o=l,s=U,u=m,c=a,!!(eZ(u,s)?c>0:c<0)&&eH(o,s,u));r.allowSwipe?n.cancelable&&n.preventDefault():n.cancelable&&e?(r.allowSwipe=!0,n.preventDefault()):r.allowSwipe=!1}!0===r.allowSwipe&&(n.stopPropagation(),eB(n,e))}(n,a,l),(r=a).lastX=(i=l).clientX,r.lastY=i.clientY)},{passive:!1,capture:!0})},[O,z,N,V,X,U,m,eB,F,ef]),(0,p.useIsoLayoutEffect)(()=>{ep&&!eI.swiping&&eb(!N||j?0:em??0,!0,!1)},[eb,y,j,v,N,em,ep,eI.swiping,o,H]),(0,p.useIsoLayoutEffect)(()=>{if(v)return N||v(0),()=>{v(0)}},[v,N]),(0,p.useIsoLayoutEffect)(()=>{N&&(S.current||ez(),ev())},[ev,N,ez,S]),(0,p.useIsoLayoutEffect)(()=>{let e=f.current;return()=>{H?.set({swipeProgress:0,frontmostHeight:0}),eO(e,!1);let t=f.current;t!==e&&eO(t,!1),ex()}},[f,ex,H]);let eW=c.useMemo(()=>({swiping:eI.swiping,getDragStyles:eI.getDragStyles,swipeStrength:K??null,setSwipeDismissed:eh}),[eh,eI.getDragStyles,eI.swiping,K]);function eY(e){ec.current=e,ed.current=null}function e$(){eY(!1),es.current="",eu.current=!1}function eU(e){return es.current="","touch"!==e.pointerType}return(0,q.jsx)(ew.DialogViewport,{ref:t,className:r,style:i,render:n,...(0,eC.mergeProps)(l,{onPointerDown(e){var t;if(es.current=e.pointerType,eu.current="pen"===e.pointerType,!N||!O||z)return;let n=(0,eT.getElementAtPoint)(e.currentTarget.getRootNode(),e.clientX,e.clientY);eD(n)||(t=n,t?.closest(eL))||"touch"!==e.pointerType&&eN.onPointerDown?.(e)},onPointerMove(e){"touch"!==e.pointerType&&eN.onPointerMove?.(e)},onPointerUp(e){eU(e)&&eN.onPointerUp?.(e)},onPointerCancel(e){eU(e)&&eN.onPointerCancel?.(e)},onTouchStart(e){var t,n,r;if("pen"===es.current&&eu.current){eu.current=!1,eY(!1);return}if(!N||!O||z)return void eY(!1);let i=e.touches[0];if(!i)return;if(n=(t=e).nativeEvent,r=(0,s.ownerWindow)(t.currentTarget),n.composedPath().some(e=>e instanceof r.HTMLInputElement&&"range"===e.type))return void eY(!1);let a=e.currentTarget,l=(0,eT.getElementAtPoint)(a.getRootNode(),i.clientX,i.clientY),o=(0,eA.getTarget)(e.nativeEvent),u=(0,eE.isElement)(o)?o:a;if(!(0,eA.contains)(a,u)||(ef?.onTouchStart(e),eD(l)))return void eY(!0);ec.current=!1;let c=(0,eM.findScrollableTouchTarget)(u,a,U),d=null!=(0,eM.findScrollableTouchTarget)(u,a,G),f=null;c&&(f=!!eH(c,U,m)&&null),ed.current={startX:i.clientX,startY:i.clientY,lastX:i.clientX,lastY:i.clientY,scrollTarget:c,hasCrossAxisScrollableContent:d,allowSwipe:f,preserveNativeCrossAxisScroll:!1,drawerAxisAttributed:!1},e_.onTouchStart?.(e)},onTouchEnd(e){ef?.onTouchEnd(e),e$(),e_.onTouchEnd?.(e)},onTouchCancel(e){ef?.onTouchCancel(),e$(),e_.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,q.jsx)($.Provider,{value:eW,children:a})})});function eO(e,t){e?.toggleAttribute(D.swiping,t)}function eD(e){return!!e?.closest(eI.BASE_UI_SWIPE_IGNORE_SELECTOR)}function ej(e,t){return"left"===t||"right"===t?e.offsetWidth:e.offsetHeight}function ek(e,t){return Math.max(.5*ej(e,t),10)}function eF(e,t){let n,r,i=(0,eA.activeElement)(e);if(i&&(0,eA.contains)(t,i)&&("INPUT"===i.tagName||"TEXTAREA"===i.tagName)){let{selectionStart:e,selectionEnd:t}=i;if(null!=e&&null!=t&&e<t)return!0}let a=e.getSelection?.();return!!a&&!a.isCollapsed&&(n=(0,eE.isElement)(a.anchorNode)?a.anchorNode:a.anchorNode?.parentElement,r=(0,eE.isElement)(a.focusNode)?a.focusNode:a.focusNode?.parentElement,a.containsNode(t,!0)||(0,eA.contains)(t,
1n)||(0,eA.contains)(t,r))}function eV(e,t){if("vertical"===t){let t=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:t}}let n=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:n}}function eH(e,t,n){let r=eZ(n,t),{offset:i,max:a}=eV(e,t);return r?i<=0:i>=a}function eZ(e,t){return"vertical"===t?"down"===e:"right"===e}var e_=e.i(439957),eB=e.i(596296);let ez=((a={}).keyboardInset="--drawer-keyboard-inset",a),eW=new Set(["email","number","password","search","tel","text","url"]),eY=Symbol("KeyboardTapBlocked");function e$(e){if(e.isContentEditable)return!0;let t=(0,s.ownerWindow)(e);return!!(e instanceof t.HTMLTextAreaElement||e instanceof t.HTMLInputElement&&eW.has(e.type))&&!e.matches(":disabled")}function eU(e){if(!(0,eE.isHTMLElement)(e))return null;if(e$(e))return e.isContentEditable?function(e){let t=e;for(;t.parentElement?.isContentEditable;)t=t.parentElement;return t}(e):e;let t=e.closest("label"),n=t?.control??null;return(0,eE.isHTMLElement)(n)&&e$(n)?n:null}function eq(e,t){let n=e.style.opacity,r=e.style.transform,i=e.style.transition;return e.style.transition="none",e.style.opacity="0",e.style.transform=`translateY(${t}px)`,()=>{e.style.opacity=n,e.style.transform=r,e.style.transition=i}}function eX(e){let t=e.visualViewport;if(!t||1!==t.scale||e.innerHeight-t.height<=60)return null;let n=Math.max(0,t.offsetTop);return{top:n,bottom:Math.min(e.innerHeight,n+t.height)}}var eG=e.i(325326);class eK extends eG.DialogHandle{}e.s(["Backdrop",0,y,"Close",0,E,"Content",0,w,"Description",0,C,"Handle",0,eK,"Indent",0,I,"IndentBackground",0,P,"Popup",0,K,"Portal",0,J,"Provider",0,function(e){let{children:t}=e,[n,r]=c.useState(()=>new Set),[i]=c.useState(Q),a=(0,L.useStableCallback)((e,t)=>{r(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})}),l=(0,L.useStableCallback)(e=>{a(e,!1)}),o=n.size>0,s=c.useMemo(()=>({setDrawerOpen:a,removeDrawer:l,active:o,visualStateStore:i}),[o,l,a,i]);return(0,q.jsx)(A.Provider,{value:s,children:t})},"Root",0,function(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:s=!1,modal:u=!0,actionsRef:d,handle:f,triggerId:p,defaultTriggerId:m=null,swipeDirection:g="down",snapToSequentialPoints:h=!1,snapPoints:v,snapPoint:x,defaultSnapPoint:b,onSnapPointChange:y}=e,E=Z(!0),S=E?.onNestedSwipeProgressChange,w=E?.onNestedFrontmostHeightChange,C=E?.onNestedSwipingChange,A=E?.onNestedDrawerPresenceChange,[R,M]=c.useState(0),[I,T]=c.useState(0),[P,N]=c.useState(!1),[O,D]=c.useState(!1),[j]=c.useState(ea),k=void 0!==b?b:v?.[0]??null,F=void 0!==x,[V,_]=(0,et.useControlled)({controlled:x,default:k,name:"Drawer",state:"snapPoint"}),B=c.useRef(!1),z=c.useRef(!1),W=(0,L.useStableCallback)((e,t)=>{let n=t??(0,en.createChangeEventDetails)(er.REASONS.none);y?.(e,n),n.isCanceled||_(e)}),Y=c.useMemo(()=>F||!v||0===v.length||null!==V&&v.some(e=>Object.is(e,V))?V:k,[V,F,k,v]),$=(0,L.useStableCallback)(e=>{M(e),!B.current&&e>0&&T(e)}),U=(0,L.useStableCallback)(e=>{if(e>0){B.current=!0,T(e);return}B.current=!1,R>0&&T(R)}
1),X=(0,L.useStableCallback)(e=>{N(e)}),G=(0,L.useStableCallback)(e=>{j.set(e),S?.(e)}),K=(0,L.useStableCallback)(e=>{D(e),C?.(e)}),J=(0,L.useStableCallback)((e,t)=>{i?.(e,t),!t.isCanceled&&!e&&v&&v.length>0&&W(k,(0,en.createChangeEventDetails)(t.reason,t.event,t.trigger))}),Q=c.useMemo(()=>({swipeDirection:g,swipeAreaActiveRef:z,snapToSequentialPoints:h,snapPoints:v,activeSnapPoint:Y,setActiveSnapPoint:W,frontmostHeight:I,popupHeight:R,hasNestedDrawer:P,nestedSwiping:O,nestedSwipeProgressStore:j,onNestedDrawerPresenceChange:X,onPopupHeightChange:$,onNestedFrontmostHeightChange:U,onNestedSwipingChange:K,onNestedSwipeProgressChange:G,notifyParentFrontmostHeight:w,notifyParentSwipingChange:C,notifyParentSwipeProgressChange:S,notifyParentHasNestedDrawer:A}),[Y,I,P,O,j,A,S,C,w,X,U,G,K,$,R,W,v,h,z,g]),ee="function"==typeof t?e=>(0,q.jsxs)(c.Fragment,{children:[l||(l=(0,q.jsx)(el,{})),t(e)]}):(0,q.jsxs)(c.Fragment,{children:[o||(o=(0,q.jsx)(el,{})),t]}),eo=(0,ei.useRenderDialogRoot)("drawer",{open:n,defaultOpen:r,onOpenChange:J,onOpenChangeComplete:a,disablePointerDismissal:s,modal:u,actionsRef:d,handle:f,triggerId:p,defaultTriggerId:m,children:ee});return(0,q.jsx)(H.Provider,{value:Q,children:eo})},"SwipeArea",0,ev,"Title",0,ex,"Trigger",0,eb,"Viewport",0,eN,"VirtualKeyboardProvider",0,function(e){let{children:t}=e,n=(0,h.useDialogRootContext)(),r=n.useState("open"),i=n.useState("mounted"),a=n.useState("modal"),l=n.useState("nestedOpenDialogCount"),o=n.useState("viewportElement"),u=l>0,f=c.useRef(!1),p=c.useRef(null),m=c.useRef(null),g=c.useRef(null),v=c.useRef(!1),x=(0,eS.useAnimationFrame)(),b=(0,e_.useTimeout)(),y=(0,L.useStableCallback)(()=>{let e=g.current;e&&(e.element.style.overflowAnchor=e.overflowAnchor,e.element.style.paddingBottom=e.paddingBottom,e.element.style.scrollPaddingBottom=e.scrollPaddingBottom,g.current=null)}),E=(0,L.useStableCallback)((e,t)=>{let n=Math.max(0,Math.ceil(t)),r=g.current;if(r&&!r.element.isConnected&&(y(),r=null),0===n)return void y();if(r&&r.element!==e&&(y(),r=null),!r){let t=(0,eE.getComputedStyle)(e);g.current=r={element:e,overflowAnchor:e.style.overflowAnchor,paddingBottom:e.style.paddingBottom,scrollPaddingBottom:e.style.scrollPaddingBottom,computedPaddingBottom:Number.parseFloat(t.paddingBottom)||0,computedScrollPaddingBottom:Number.parseFloat(t.scrollPaddingBottom)||0}}e.style.overflowAnchor="none",e.style.paddingBottom=`${r.computedPaddingBottom+n}px`,e.style.scrollPaddingBottom=`${r.computedScrollPaddingBottom+16}px`}),S=(0,L.useStableCallback)((e,t)=>{let n=(0,s.ownerWindow)(e),r=n.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches?"auto":"smooth";e.scrollTo({top:t,behavior:r})}),w=(0,L.useStableCallback)(()=>{f.current=!1,p.current=null});c.useEffect(()=>{if(!i||!r){m.current=null,y(),x.cancel();return}if(!o)return void y();let e=(0,d.ownerDocument)(o),t=(0,s.ownerWindow)(o),n=t.visualViewport,l=null,c=0,f=0,p=-1,g=e=>{o.style.setProperty(ez.keyboardInset,`${Math.max(0,Math.ceil(e))}px`)},h=()=>{m.current=null,l=null,g(0),y(),x.cancel(),b.clear()},w=t.scrollX,C=t.scrollY,A=()=>!0===a&&!u&&!!m.current&&null!=eX(t)&&(t.scrollX!==w||t.scrollY!==C)&&(t.scrollTo({left:w,top:C,behavior:"instant"}),!0),R=null,M=()=>{R?.(),R=null},I=()=>{var e,n;let r;M();let i=m.current;if(u||!i||!(0,eA.contains)(o,i)){g(0),y();return}A();let a=eX(t);if(!a){g(0),y();return}g(Math.max(0,t.innerHeight-a.bottom));let s=(e=i,n=o,r=(0,eE.getParentNode)(e),(0,eM.findScrollableTouchTarget)(r,n,"vertical")??(0,eM.findScrollableTouchTarget)(r,n,"vertical",!0));if(!s)return void y();let d=s.getBoundingClientRect(),h=Math.min(d.bottom,a.bottom),v=Math.max(0,d.bottom-a.bottom);E(s,v>0?v+48:0);let b=Math.max(0,s.scrollHeight-s.clientHeight);if(b<=0)return;let w=Math.max(d.top,a.top)+16,C=h-16;if(C<=w)return;let R=i.getBoundingClientRect(),T=s.scrollTop+(R.top+R.bottom-w-C)/2,P=Math.round((0,_.clamp)(T,0,b));if(l===s&&1>=Math.abs(c-P)){if(p>=0){let e=s.scrollTop;if(1>=Math.abs(e-P))return;if(e!==p){p=e;return}}}else{let e=l===s?f+1:1;if(l=s,c=P,f=e,p=-1,e<=60)return void x.request(I)}l=s,c=P,f=0,p=s.scrollTop,S(s,P)},T=()=>{x.request(I)},P=e=>{if(u)return!1;let t=eU(e);return!!t&&!!(0,eA.contains)(o,t)&&(m.current!==t&&(l=null),m.current=t,!0)},L=()=>{(m.current||P((0,eA.activeElement)(e)))&&T()},N=[];return n&&N.push((0,ee.addEventListener)(n,"resize",L),(0,ee.addEventListener)(n,"scroll",L)),N.push((0,ee.addEventListener)(e,"focusin",e=>{let n,r;(v.current=!1,M(),P((0,eA.getTarget)(e)))?(null!=eX(t)&&(n=4,r=()=>{I(),(n-=1)>0&&b.start(150,r)},b.start(150,r)),T()):h()},!0),(0,ee.addEventListener)(e,"focusout",e=>{if(!v.current){if(P(e.relatedTarget)){let e,n=m.current,r=eX(t);
1n&&r&&(M(),e=n.getBoundingClientRect(),R=eq(n,(r.top+r.bottom-e.top-e.bottom)/2)),T();return}h()}},!0),(0,ee.addEventListener)(t,"scroll",()=>{A()&&T()}),(0,ee.addEventListener)(e,"pointerdown",()=>{x.cancel(),b.clear(),l=null},!0)),P((0,eA.activeElement)(e))&&T(),()=>{N.forEach(e=>e()),M(),h(),o.style.removeProperty(ez.keyboardInset)}},[S,x,b,a,i,u,r,y,o,E]);let C=(0,L.useStableCallback)(e=>{let t=e.touches[0];f.current=!1,p.current={x:t.clientX,y:t.clientY}}),A=(0,L.useStableCallback)(e=>{let t=e.touches[0],n=p.current;t&&n&&!f.current&&(Math.abs(t.clientX-n.x)>10||Math.abs(t.clientY-n.y)>10)&&(f.current=!0)}),R=(0,L.useStableCallback)(e=>{if(!r||!i||u||!o||!p.current||f.current)return void w();let t=e.changedTouches[0]??e.touches[0],n=o.getRootNode(),a=(0,eA.getTarget)(e.nativeEvent),l=t?function(e,t,n){let r=(0,eT.getElementAtPoint)(e,t,n);if((0,eE.isHTMLElement)(r)){let e=eU(r);if(e)return{focusTarget:e,clickTarget:r}}if((0,eB.isInteractiveElement)(r)||r?.closest("label")!=null)return eY;for(let[r,i]of[[0,16],[0,-16],[16,0],[-16,0]]){let a=eU((0,eT.getElementAtPoint)(e,t+r,n+i));if(a)return{focusTarget:a,clickTarget:a}}return null}(n,t.clientX,t.clientY):null;if(l===eY)return void w();let c=t&&(l??function(e){if(!(0,eE.isHTMLElement)(e))return null;let t=eU(e);return t?{focusTarget:t,clickTarget:e}:null}(a));if(c&&(!(0,eA.contains)(o,c.focusTarget)||!(0,eA.contains)(o,c.clickTarget)))return void w();if(c){let n,r,{clickTarget:i,focusTarget:a}=c,l=(0,s.ownerWindow)(a);
1if(l.visualViewport&&1!==l.visualViewport.scale||(0,eA.activeElement)((0,d.ownerDocument)(a))===a&&(!l.visualViewport||null!=eX(l)))return void w();e.preventDefault(),v.current=!0;try{var m,g,h=a;let e=(0,eA.activeElement)((0,d.ownerDocument)(h))===h,t=eq(h,-2e3);try{e&&h.blur(),h.focus({preventScroll:!0})}finally{t()}}finally{v.current=!1}return m=i,g=t,r=(n=(0,s.ownerWindow)(m)).PointerEvent??n.MouseEvent,m.dispatchEvent(new r("click",{bubbles:!0,cancelable:!0,clientX:g.clientX,clientY:g.clientY,detail:1,view:n})),void w()}w()}),M=c.useMemo(()=>({onTouchStart:C,onTouchMove:A,onTouchEnd:R,onTouchCancel:w}),[R,A,C,w]);return(0,q.jsx)(eP.Provider,{value:M,children:t})},"createHandle",0,function(){return new eK}],458954);var eJ=e.i(458954);e.s(["Drawer",0,eJ],949872);var eQ=e.i(575108);let e0=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),c.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]);e.s(["default",0,e0],116045);let e1=c.forwardRef((e,t)=>c.createElement(eQ.default,{ref:t,...e,weights:e0}));e1.displayName="CaretDownIcon",e.s(["CaretDownIcon",0,e1],320887),e.s(["pickerTriggerStateClass",0,({disabled:e,invalid:t,hasValue:n})=>e?"cursor-not-allowed border-v2-border opacity-50":t?"border-v2-danger":n?"border-v2-primary":"border-v2-border hover:border-v2-primary"],163690),e.s(["fieldSizeClass",0,(e="sm")=>"md"===e?"h-12 text-base":"","listHeightClass",0,(e="sm")=>"lg"===e?"max-h-96":"md"===e?"max-h-80":"","placeholderWeightClass",0,(e="normal",{pseudo:t=!1}={})=>"medium"===e?t?"placeholder:font-medium":"font-medium":"","valueToneClass",0,(e="default")=>"primary"===e?"text-v2-primary":""],627297)},308760,496545,201675,902410,e=>{"use strict";var t=e.i(271645),n=e.i(667865),r=e.i(108868),i=e.i(333848),a=e.i(647554),l=e.i(229315);function o(e,t=!1){let{overflowY:n}=(0,l.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientHeight>0:e.scrollHeight>e.clientHeight)}function s(e,t,n=!1){return"vertical"===t?o(e,n):function(e,t=!1){let{overflowX:n}=(0,l.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientWidth>0:e.scrollWidth>e.clientWidth)}(e,n)}function u(e,t,n){let r=e;for(;(0,l.isHTMLElement)(r)&&r!==t&&!(0,l.isLastTraversableNode)(r);){for(let e of n)if(s(r,e))return!0;r=(0,l.getParentNode)(r)}return!1}function c(e,t,n="vertical",r=!1){let i=(0,l.isHTMLElement)(e)?e:null;for(;(0,l.isHTMLElement)(i)&&i!==t&&!(0,l.isLastTraversableNode)(i);){if(s(i,n,r))return i;i=(0,l.getParentNode)(i)}return s(t,n,r)?t:null}function d(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function f(e,t,n){return"function"==typeof e?.elementFromPoint?e.elementFromPoint(t,n):null}function p(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function m(e){let t=(0,i.ownerWindow)(e).getComputedStyle(e).transform,n=0,r=0,a=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(n=t[4],r=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(n=t[12],r=t[13],a=t[0])}}return{x:n,y:r,scale:a}}function g(e){return Number.isFinite(e)&&e>0?e:null}function h(e,t){return`translate3d(${e.x}px,${e.y}px,0) scale(${t})`}function v(e,t,n){let r=e[n];if("function"==typeof r)try{r.call(e,t)}catch(e){if(e&&"object"==typeof e&&"name"in e&&"NotFoundError"===e.name)return;throw e}}e.s(["findScrollableTouchTarget",0,c,"hasScrollableAncestor",0,u,"isScrollableY",0,o],496545),e.s(["clamp",0,d],201675),e.s(["getElementAtPoint",0,f],902410),e.s(["getDisplacement",0,p,"getElementTransform",0,m,"useSwipeDismiss",0,function(e){let{enabled:i,directions:l,elementRef:o,movementCssVars:s,canStart:x,ignoreSelectorWhenTouch:b=!0,ignoreScrollableAncestors:y=!1,swipeThreshold:E,onDismiss:S,onProgress:w,onCancel:C,onSwipeStart:A,onRelease:R,onSwipingChange:M,trackDrag:I=!0}=e,T=1===l.length?l[0]:void 0,P=Math.max(0,"number"==typeof E?E:40),L=l.includes("left"),N=l.includes("right"),O=l.includes("up"),D=l.includes("down"),j=L||N,k=O||D,F=t.useMemo(()=>{let e=[];return k&&e.push("vertical"),j&&e.push("horizontal"),e},[j,k]),[V,H]=t.useState(void 0),[Z,_]=t.useState(!1),[B,z]=t.useState(!1),W=t.useRef({x:0,y:0}),Y=t.useRef({x:0,y:0}),$=t.useRef(null),U=t.useRef({x:0,y:0,scale:1}),q=t.useRef(void 0),X=t.useRef(0),G=t.useRef(!1),K=t.useRef({x:0,y:0}),J=t.useRef(null),Q=t.useRef(!1),ee=t.useRef(!1),et=t.useRef(null),en=t.useRef(!1),er=t.useRef(!1),ei=t.useRef({width:0,height:0}),ea=t.useRef(0),el=t.useRef(P),eo=t.useRef(null),es=t.useRef(null),eu=t.useRef(null),ec=t.useRef({x:0,y:0}),ed=t.useRef(null),ef=t.useRef(!1),ep=t.useRef(null),em=(0,n.use
1StableCallback)(e=>{ef.current!==e&&(ef.current=e,_(e),M?.(e))});function eg(e){if(!e)return;let t=o.current,n=eo.current;t&&n&&(el.current=Math.max(0,n({element:t,direction:e})))}let eh=(0,n.useStableCallback)((e,t)=>{let n=Number.isFinite(e)?d(e,0,1):0,r=n!==ea.current,i=!1;if(t){let e=ed.current;i=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}(r||i)&&(ea.current=n,t?ed.current=t:r&&(ed.current=null),w?.(n,t))}),ev=(0,n.useStableCallback)(e=>{let t=o.current;if(!I||!t){e||(ep.current=null);return}let n=t.style,r=ep.current;e?(r||(ep.current=[n.transition,n.transform]),n.transition="none"):r&&([n.transition,n.transform]=r,ep.current=null);let i=Y.current,a=U.current,l=i.x-a.x,u=i.y-a.y;e&&(n.transform=h(i,a.scale)),n.setProperty(s.x,`${l}px`),n.setProperty(s.y,`${u}px`)});function ex(e,t){if(null===t)return;let n=eu.current;if(n&&t>n.time){let r=Math.max(t-n.time,16);ec.current={x:(e.x-n.x)/r,y:(e.y-n.y)/r}}eu.current={x:e.x,y:e.y,time:t}}let eb=t.useCallback(()=>{H(void 0),em(!1),z(!1),eh(0),el.current=P,eo.current=null,W.current={x:0,y:0},Y.current={x:0,y:0},U.current={x:0,y:0,scale:1},q.current=void 0,X.current=0,G.current=!1,K.current={x:0,y:0},J.current=null,Q.current=!1,$.current=null,ee.current=!1,et.current=null,en.current=!1,er.current=!1,ei.current={width:0,height:0},es.current=null,eu.current=null,ec.current={x:0,y:0},ed.current=null,ev(!1)},[em,P,ev,eh]);function ey(e){if("touches"in e){let t=e.touches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function eE(e){return"touches"in e||"touch"===e.pointerType}function eS(e,t){return f(o.current?.getRootNode(),e.x,e.y)??(0,a.getTarget)(t)}function ew(e,t){return j&&!k?c(e,t,"horizontal"):k&&!j?c(e,t,"vertical"):c(e,t,"vertical")??c(e,t,"horizontal")}function eC(e,t,n){en.current=!1;let i=eE(e),a=eS(t,e.nativeEvent),l=(0,r.ownerDocument)(o.current).body,s=i&&l?ew(a,l):null,c=n?.ignoreScrollableTarget??!1;if(s&&!c||(en.current=!!(s&&c),a&&a.closest('button,a,input,select,textarea,label,[role="button"]')&&(!i||b)))return!1;let d=o.current;if(y&&d&&a&&F.length>0&&!n?.ignoreScrollableAncestors&&u(a,d,F))return!1;if(G.current=!1,q.current=void 0,X.current=0,W.current=t,es.current=g(e.timeStamp),K.current=t,$.current=t,el.current=P,eo.current="function"==typeof E?E:null,d){ei.current={width:d.offsetWidth,height:d.offsetHeight},eg(T);let t=m(d);U.current=t,Y.current={x:t.x,y:t.y},ex({x:t.x,y:t.y},es.current),"touches"in e||v(d,e.pointerId,"setPointerCapture")}return A?.(e.nativeEvent),em(!0),J.current=null,Q.current=!0,eh(0),ev(!0),!0}function eA(){eR(),en.current=!1,$.current=null}function eR(){ee.current=!1,et.current=null}let eM=(0,n.useStableCallback)(e=>{if(!i||e.defaultPrevented||e.nativeEvent.defaultPrevented||!("touches"in e)&&0!==e.button)return;let t=ey(e);!t||(ee.current=!0,et.current=t,en.current=!1,er.current=!("touches"in e),(!x||x(t,{nativeEvent:e.nativeEvent,direction:T}))&&eC(e,t)&&eR())}),eI=(0,n.useStableCallback)(e=>{let t;if(!i)return;let n=Y.current,r=U.current,a=n.x-r.x,s=n.y-r.y,u={deltaX:a,deltaY:s,direction:q.current};if(!ef.current){eA(),eh(0,u);return}em(!1),J.current=null,eA(),er.current=!1;let c=o.current;!c||"touches"in e||v(c,e.pointerId,"releasePointerCapture");let d=es.current,f=g(e.timeStamp),m=null!==d&&null!==f&&f>d?f-d:0,h=m>0?Math.max(m,50):0,x=h>0?a/h:0,b=h>0?s/h:0,y=ec.current.x,E=ec.current.y,w=eu.current;if(w&&null!==f&&f>=w.time){let e=f-w.time;if(e<=80){let t=Math.max(e,16),r=n.x-w.x,i=n.y-w.y,a=r/t,l=i/t;0!==a&&(y=a),0!==l&&(E=l)}else y=0,E=0}let C=R?.({event:e.nativeEvent,direction:q.current,deltaX:a,deltaY:s,velocityX:x,velocityY:b,releaseVelocityX:y,releaseVelocityY:E}),A="boolean"==typeof C;if(G.current&&!A){Y.current={x:r.x,y:r.y},H(void 0),ev(!1),eh(0,u);return}let M=!1;if(A)M=C,t=q.current??T;else for(let e of l)if(p(e,a,s)>el.current){M=!0,t=e;break}M&&t?(H(t),z(!0),ev(!1),S?.(e.nativeEvent,{direction:t})):(Y.current={x:r.x,y:r.y},H(void 0),ev(!1),eh(0,u))}),eT=(0,n.useStableCallback)(e=>{let t=ey(e);if(!t)return;let n=!1;if(!("touches"in e)){let t=e.buttons%2==1;if(t&&(er.current=!0),0!==e.buttons&&!t)return void function(e){if(eA(),!ef.current)return;em(!1),J.current=null;let t=U.current;Y.current={x:t.x,y:t.y},H(void 0),er.current=!1,ev(!1);let n=o.current;n&&v(n,e.pointerId,"releasePointerCapture"),eh(0,{deltaX:0,deltaY:0,direction:void 0}),C?.(e.nativeEvent)}(e);if(0===e.buttons&&er.current){if(!ef.current)return void eI(e);n=!0}}if(!Z&&ee.current){if(!eE(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented))return void eA();if(!x||x(t,{nativeEvent:e.nativeEvent,direction:T})){let n=et.current,i=!1;if(eE(e)){let l=o.current;if(n&&l){let o=eS(t,e.nativeEvent),s=(0,r.ownerDocument)(l).body,u=s?ew(o,s):null;if(u&&((0,a.contains)(l,u)||(0,a.contains)(u,l))){let e,r,a,l=t.x-n.x,o=t.y-n.y,s=(e=(e,t,n,r,i)=>e>0&&t<=0&&r||e<0&&t>=Math.max(0,n)&&i,r=Math.abs(l),a=Math.abs(o),k&&0!==o&&(!j||a>=r)?e(o,u.scrollTop,u.scrollHeight-u.clientHeight,D,O):j&&0!==l&&(!k||r>a)?e(l,u.scrollLeft,u.scrollWidth-u.clientWidth,N,L):null);if(!1===s)return;!0===s&&(i=!0)}}}eC(e,t,{ignoreScrollableTarget:i,ignoreScrollableAncestors:i})&&(n&&i?(eR(),W.current=n,K.current=n,$.current=n,Q.current=!1):(eR(),en.current=!1))}}let l=$.current,s=null===l?{x:0,y:0}:{x:t.x-l.x,y:t.y-l.y};$.current=t,function(e,t,n){let r,l,o;if(!i||!ef.current)return;let s=(0,a.getTarget)(e.nativeEvent);if(eE(e)&&!en.current&&ew(s,e.currentTarget))return;if("touches"in e||e.preventDefault(),Q.current&&(Q.current=!1,I)){W.current=t;let n=g(e.timeStamp);null!==n&&(es.current=n)}let u=t.x,c=t.y,d=n.x,f=n.y;(f<0&&c>K.current.y||f>0&&c<K.current.y)&&(K.current={x:K.current.x,y:c}),(d<0&&u>K.current.x||d>0&&u<K.current.x)&&(K.current={x:u,y:K.current.y});let m=u-W.current.x,h=c-W.current.y,v=c-K.current.y,x=u-K.current.x,b=J.current;if(null===b&&j&&k&&Math.sqrt(m*m+h*h)>=1&&(J.current=b=Math.abs(m)>Math.abs(h)?"horizontal":"vertical"),q.current){let e=q.current,t=p(e,x,v);t>el.current?(G.current=!1,H(e)):L&&N||O&&D||!(X.current-t>=10)||(G.current=!0)}else"vertical"===b?h>0?r="down":h<0&&(r="up"):"horizontal"===b?m>0?r="right":m<0&&(r="left"):r=Math.abs(m)>=Math.abs(h)?m>0?"right":"left":h>0?"down":"up",r&&("left"===r&&L||"right"===r&&N||"up"===r&&O||"down"===r&&D)&&(q.current=r,X.current=p(r,m,h),H(r),eg(r));let y=(l=e=>Math.sign(e)*Math.abs(e)**.5,o=(e,t,n)=>!t&&e<0||!n&&e>0?l(e):e,{x:j?o(m,L,N):l(m),y:k?o(h,O,D):l(h)}),E=U.current.x,S=U.current.y;"horizontal"===b?j&&(E+=y.x):("vertical"===b||j&&(E+=y.x),k&&(S+=y.y));let w=Y.current,C=E!==w.x||S!==w.y;Y.current={x:E,y:S},C&&ev(!0),ex({x:E,y:S},g(e.timeStamp));let A=E-U.current.x,R=S-U.current.y,M={deltaX:A,deltaY:R,direction:q.current},P=0,F=T??q.current;
1if(F){let e="left"===F||"right"===F?ei.current.width:ei.current.height,t=U.current.scale||1,n=p(F,A,R);e>0&&t>0&&n>0&&(P=n/(e*t))}eh(P,M)}(e,t,s),!n||"touches"in e||eI(e)}),eP=(0,n.useStableCallback)((e,t)=>{eT({touches:e.touches,currentTarget:t,nativeEvent:e,defaultPrevented:e.defaultPrevented,timeStamp:e.timeStamp})}),eL=t.useCallback(()=>{let e=ef.current,t=Y.current,n=U.current,r=t.x-n.x,i=t.y-n.y;return e||0!==r||0!==i||B?{transition:e?"none":void 0,transform:e?h(t,n.scale):void 0,[s.x]:`${r}px`,[s.y]:`${i}px`}:{[s.x]:"0px",[s.y]:"0px"}},[B,s]);return{swiping:Z,swipeDirection:V,dragDismissed:B,getPointerProps:t.useCallback(()=>i?{onPointerDown:eM,onPointerMove:eT,onPointerUp:eI,onPointerCancel:eI}:{},[i,eI,eT,eM]),getTouchProps:t.useCallback(()=>i?{onTouchStart:eM,onTouchMove:eT,onTouchEnd:eI,onTouchCancel:eI}:{},[i,eI,eT,eM]),moveNative:eP,getDragStyles:eL,reset:eb}}],308760)},713203,260891,736760,e=>{"use strict";var t=e.i(271645);e.s(["useOnFirstRender",0,function(e){let n=t.useRef(!0);n.current&&(n.current=!1,e())}],713203);var n=e.i(708445),r=e.i(146376),i=e.i(108868),a=e.i(667865),l=e.i(446265),o=e.i(328744),s=e.i(229315),u=e.i(675606),c=e.i(56434),d=e.i(46420),f=e.i(621082),p=e.i(449055),m=e.i(647554),g=e.i(596296),h=e.i(503596),v=e.i(157940);function x(e){return o.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function b(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function y(e,t){return b(t,e===p.ARROW_UP||e===p.ARROW_DOWN,e===p.ARROW_LEFT||e===p.ARROW_RIGHT)}function E(e,t,n){return b(t,e===p.ARROW_DOWN,n?e===p.ARROW_LEFT:e===p.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,o){let{listRef:S,activeIndex:w,onNavigate:C=()=>{},enabled:A=!0,selectedIndex:R=null,allowEscape:M=!1,loopFocus:I=!1,nested:T=!1,rtl:P=!1,virtual:L=!1,focusItemOnOpen:N="auto",focusItemOnHover:O=!0,openOnArrowKeyDown:D=!0,disabledIndices:j,orientation:k="vertical",parentOrientation:F,id:V,resetOnPointerLeave:H=!0,externalTree:Z,grid:_}=o,B=null!=_,z="rootStore"in e?e.rootStore:e,W=z.useState("open"),Y=z.useState("floatingElement"),$=z.useState("domReferenceElement"),U=z.context.dataRef,q=(0,g.getFloatingFocusElement)(Y),X=(0,g.isTypeableCombobox)($),G=(0,l.useValueAsRef)(q),K=(0,d.useFloatingParentNodeId)(),J=(0,d.useFloatingTree)(Z),Q=t.useRef(N),ee=t.useRef(R??-1),et=t.useRef(null),en=t.useRef(!0),er=(0,a.useStableCallback)(e=>{C(-1===ee.current?null:ee.current,e)}),ei=t.useRef(!!Y),ea=t.useRef(W),el=t.useRef(!1),eo=t.useRef(!1),es=t.useRef(null),eu=(0,l.useValueAsRef)(j),ec=(0,l.useValueAsRef)(W),ed=(0,l.useValueAsRef)(R),ef=(0,l.useValueAsRef)(H),ep=(0,n.useAnimationFrame)(),em=(0,n.useAnimationFrame)(),eg=(0,a.useStableCallback)(()=>{function e(e){L?J?.events.emit("virtualfocus",e):es.current=(0,h.enqueueFocus)(e,{sync:el.current,preventScroll:!0})}let t=S.current[ee.current],n=eo.current;t&&e(t),(el.current?e=>e():e=>ep.request(e))(()=>{let r=S.current[ee.current]||t;!r||(t||e(r),eE&&(n||!en.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,r.useIsoLayoutEffect)(()=>{U.current.orientation=k},[U,k]),(0,r.useIsoLayoutEffect)(()=>{A&&(W&&Y?(ee.current=R??-1,Q.current&&null!=R&&(eo.current=!0,er())):ei.current&&(ee.current=-1,er()))},[A,W,Y,R,er]),(0,r.useIsoLayoutEffect)(()=>{if(A){if(!W){el.current=!1;return}if(Y)if(null==w){if(el.current=!1,null!=ed.current)return;if(ei.current&&(ee.current=-1,eg()),(!ea.current||!ei.current)&&Q.current&&(null!=et.current||!0===Q.current&&null==et.current)){let e=0,t=()=>{null==S.current[0]?(e<2&&(e?e=>em.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||E(et.current,k,P)||T?(0,f.getMinListIndex)(S):(0,f.getMaxListIndex)(S),et.current=null,er())};t()}}else(0,f.isIndexOutOfListBounds)(S.current,w)||(ee.current=w,eg(),eo.current=!1)}},[A,W,Y,w,ed,T,S,k,P,er,eg,em]),(0,r.useIsoLayoutEffect)(()=>{if(!A||Y||!J||L||!ei.current)return;let e=J.nodesRef.current,t=e.find(e=>e.id===K)?.context?.elements.floating,n=(0,m.activeElement)((0,i.ownerDocument)($??t??null)),r=e.some(e=>e.context&&(0,m.contains)(e.context.elements.floating,n));t&&!r&&en.current&&t.focus({preventScroll:!0})},[A,Y,$,J,K,L]),(0,r.useIsoLayoutEffect)(()=>{ea.current=W,ei.current=!!Y}),(0,r.useIsoLayoutEffect)(()=>{W||(et.current=null,Q.current=N)},[W,N]);let eh=null!=w,ev=(0,a.useStableCallback)(e=>{if(!ec.current)return;let t=S.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||w!==t)&&(ee.current=t,er(e))}),ex=(0,a.useStableCallback)(()=>F??J?.nodesRef.current.find(e=>e.id===K)?.context?.dataRef?.current.orientation),eb=(0,a.useStableCallback)(()=>(0,f.getMinListIndex)(S,eu.current)),ey=(0,a.useStableCallback)(e=>{var t;let n,r;if(en.current=!1,el.current=!0,229===e.which||!ec.current&&e.currentTarget===G.current)return;if(T&&(t=e.key,n=P?t===p.ARROW_RIGHT:t===p.ARROW_LEFT,r=t===p.ARROW_UP,"both"===k||"horizontal"===k&&B?"Escape"===t:b(k,n,r))){y(e.key,ex())||
1(0,v.stopEvent)(e),z.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent)),(0,s.isHTMLElement)($)&&(L?J?.events.emit("virtualfocus",$):$.focus());return}let i=ee.current,a=(0,f.getMinListIndex)(S,j),l=(0,f.getMaxListIndex)(S,j);if(X||("Home"===e.key&&((0,v.stopEvent)(e),ee.current=a,er(e)),"End"===e.key&&((0,v.stopEvent)(e),ee.current=l,er(e))),null!=_){let t=_(e,ee.current,S,k,I,P,j,a,l);if(null!=t&&(ee.current=t,er(e)),"both"===k)return}if(y(e.key,k)){if((0,v.stopEvent)(e),W&&!L&&(0,m.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=E(e.key,k,P)?a:l,er(e);return}E(e.key,k,P)?I?i>=l?M&&i!==S.current.length?ee.current=-1:(el.current=!1,ee.current=a):ee.current=(0,f.findNonDisabledListIndex)(S.current,{startingIndex:i,disabledIndices:j}):ee.current=Math.min(l,(0,f.findNonDisabledListIndex)(S.current,{startingIndex:i,disabledIndices:j})):I?i<=a?M&&-1!==i?ee.current=S.current.length:(el.current=!1,ee.current=l):ee.current=(0,f.findNonDisabledListIndex)(S.current,{startingIndex:i,decrement:!0,disabledIndices:j}):ee.current=Math.max(a,(0,f.findNonDisabledListIndex)(S.current,{startingIndex:i,decrement:!0,disabledIndices:j})),(0,f.isIndexOutOfListBounds)(S.current,ee.current)&&(ee.current=-1),er(e)}}),eE=t.useMemo(()=>({onFocus(e){el.current=!0,ev(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!x(e)&&(el.current=!0,eo.current=!1,O&&ev(e))},onPointerLeave(e){if(!ec.current||!en.current||"touch"===e.pointerType)return;el.current=!0;let t=e.relatedTarget;if(!(!O||S.current.includes(t))&&ef.current&&(es.current?.(),es.current=null,ee.current=-1,er(e),!L)){let e=G.current,t=(0,m.activeElement)((0,i.ownerDocument)(e));e&&(0,m.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[ev,ec,G,O,S,er,ef,L]),eS=t.useMemo(()=>L&&W&&eh&&{"aria-activedescendant":`${V}-${w}`},[L,W,eh,V,w]),ew=t.useMemo(()=>({"aria-orientation":"both"===k?void 0:k,...!X?eS:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&W&&!L){let t=(0,m.getTarget)(e.nativeEvent);if(t&&!(0,m.contains)(G.current,t))return;(0,v.stopEvent)(e),z.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.focusOut,e.nativeEvent)),(0,s.isHTMLElement)($)&&$.focus();return}ey(e)},onPointerMove(e){x(e)||(en.current=!0)}}),[eS,ey,G,k,X,z,W,L,$]),eC=t.useMemo(()=>{function e(e){z.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===N&&(0,v.isVirtualClick)(e.nativeEvent)&&(Q.current=!L)}function n(e){Q.current=N,"auto"===N&&(0,v.isVirtualPointerEvent)(e.nativeEvent)&&(Q.current=!0)}return{onKeyDown(t){var n,r;let i=z.select("open");en.current=!1;let a=t.key.startsWith("Arrow"),l=(n=t.key,r=ex(),b(r,P?n===p.ARROW_LEFT:n===p.ARROW_RIGHT,n===p.ARROW_DOWN)),o=y(t.key,k),s=(T?l:o)||"Enter"===t.key||""===t.key.trim();if(L&&i)return ey(t);if(i||D||!a){if(s){let e=y(t.key,ex());et.current=T&&e?null:t.key}if(T){l&&((0,v.stopEvent)(t),i?(ee.current=eb(),er(t)):e(t));return}o&&(null!=ed.current&&(ee.current=ed.current),(0,v.stopEvent)(t),!i&&D?e(t):ey(t),i&&er(t))}},onFocus(e){z.select("open")&&!L&&(ee.current=-1,er(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ey,N,eb,T,er,z,D,k,ex,P,ed,L]),eA=t.useMemo(()=>({...eS,...eC}),[eS,eC]);return t.useMemo(()=>A?{reference:eA,floating:ew,item:eE,trigger:eC}:{},[A,eA,ew,eC,eE])}],260891);var S=e.i(439957),w=e.i(956789);e.s(["useTypeahead",0,function(e,n){let{listRef:i,elementsRef:l,activeIndex:o,onMatch:s,disabledIndices:u,onTyping:c,enabled:d=!0,resetMs:p=750,selectedIndex:g=null}=n,h="rootStore"in e?e.rootStore:e,x=h.useState("open"),b=(0,S.useTimeout)(),y=t.useRef(""),E=t.useRef(g??o??-1),C=t.useRef(null),A=(0,a.useStableCallback)(e=>{function t(e){let t=l?.current[e];return!(t&&!(0,f.isElementVisible)(t)||t?.matches(":disabled"))&&(null==u||!(0,f.isListIndexDisabled)(w.EMPTY_ARRAY,e,u))}function n(e,r,i=0){if(0===e.length)return -1;let a=(i%e.length+e.length)%e.length,l=r.toLowerCase();for(let n=0;n<e.length;n+=1){let r=(a+n)%e.length,i=e[r];if(i?.toLowerCase().startsWith(l)&&t(r))return r}return -1}let r=i.current;if(y.current.length>0&&" "===e.key&&((0,v.stopEvent)(e),c?.(!0)),y.current.length>0&&" "!==y.current[0]&&-1===n(r,y.current)&&" "!==e.key&&c?.(!1),null==r||1!==e.ke
1y.length||e.ctrlKey||e.metaKey||e.altKey)return;x&&" "!==e.key&&((0,v.stopEvent)(e),c?.(!0));let a=""===y.current;a&&(E.current=g??o??-1),r.every((e,n)=>!(e&&t(n))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&y.current===e.key&&(y.current="",E.current=C.current),y.current+=e.key,b.start(p,()=>{y.current="",E.current=C.current,c?.(!1)});let d=a?g??o??-1:E.current,m=n(r,y.current,(d??0)+1);-1!==m?(s?.(m),C.current=m):" "!==e.key&&(y.current="",c?.(!1))}),R=(0,a.useStableCallback)(e=>{let t=e.relatedTarget,n=h.select("domReferenceElement"),r=h.select("floatingElement");(0,m.contains)(n,t)||(0,m.contains)(r,t)||(b.clear(),y.current="",E.current=C.current,c?.(!1))});(0,r.useIsoLayoutEffect)(()=>{(x||null===g)&&(b.clear(),C.current=null,""!==y.current&&(y.current=""))},[x,g,b]);let M=t.useMemo(()=>({onKeyDown:A,onBlur:R}),[A,R]);return t.useMemo(()=>d?{reference:M,floating:M}:{},[d,M])}],736760)},258950,953760,e=>{"use strict";var t=e.i(343084);function n(e,n,r){let i,{reference:a,floating:l}=e,o=(0,t.getSideAxis)(n),s=(0,t.getAlignmentAxis)(n),u=(0,t.getAxisLength)(s),c=(0,t.getSide)(n),d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,p=a[u]/2-l[u]/2;switch(c){case"top":i={x:d,y:a.y-l.height};break;case"bottom":i={x:d,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:f};break;case"left":i={x:a.x-l.width,y:f};break;default:i={x:a.x,y:a.y}}let m=(0,t.getAlignment)(n);return m&&(i[s]+=p*("end"===m?1:-1)*(r&&"y"===o?-1:1)),i}async function r(e,n){var r;void 0===n&&(n={});let{x:i,y:a,platform:l,rects:o,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=(0,t.evaluate)(n,e),g=(0,t.getPaddingObject)(m),h=s[p?"floating"===f?"reference":"floating":f],v=(0,t.rectToClientRect)(await l.getClippingRect({element:null==(r=await (null==l.isElement?void 0:l.isElement(h)))||r?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),x="floating"===f?{x:i,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),y=await (null==l.isElement?void 0:l.isElement(b))&&await (null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},E=(0,t.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:b,strategy:u}):x);return{top:(v.top-E.top+g.top)/y.y,bottom:(E.bottom-v.bottom+g.bottom)/y.y,left:(v.left-E.left+g.left)/y.x,right:(E.right-v.right+g.right)/y.x}}let i=async(e,t,i)=>{let{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:s}=i,u=s.detectOverflow?s:{...s,detectOverflow:r},c=await (null==s.isRTL?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:f,y:p}=n(d,a,c),m=a,g=0,h={};for(let r=0;r<o.length;r++){let i=o[r];if(!i)continue;let{name:v,fn:x}=i,{x:b,y:y,data:E,reset:S}=await x({x:f,y:p,initialPlacement:a,placement:m,strategy:l,middlewareData:h,rects:d,platform:u,elements:{reference:e,floating:t}});f=null!=b?b:f,p=null!=y?y:p,h[v]={...h[v],...E},S&&g<50&&(g++,"object"==typeof S&&(S.placement&&(m=S.placement),S.rects&&(d=!0===S.rects?await s.getElementRects({reference:e,floating:t,strategy:l}):S.rects),{x:f,y:p}=n(d,m,c)),r=-1)}return{x:f,y:p,placement:m,strategy:l,middlewareData:h}};function a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return t.sides.some(t=>e[t]>=0)}function o(e){let n=(0,t.min)(...e.map(e=>e.left)),r=(0,t.min)(...e.map(e=>e.top));return{x:n,y:r,width:(0,t.max)(...e.map(e=>e.right))-n,height:(0,t.max)(...e.map(e=>e.bottom))-r}}let s=new Set(["left","top"]);async function u(e,n){let{placement:r,platform:i,elements:a}=e,l=await (null==i.isRTL?void 0:i.isRTL(a.floating)),o=(0,t.getSide)(r),u=(0,t.getAlignment)(r),c="y"===(0,t.getSideAxis)(r),d=s.has(o)?-1:1,f=l&&c?-1:1,p=(0,t.evaluate)(n,e),{mainAxis:m,crossAxis:g,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}
vendor: 6,152 bytes, line 1
1:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof h&&(g="end"===u?-1*h:h),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}var c=e.i(229315);function d(e){let n=(0,c.getComputedStyle)(e),r=parseFloat(n.width)||0,i=parseFloat(n.height)||0,a=(0,c.isHTMLElement)(e),l=a?e.offsetWidth:r,o=a?e.offsetHeight:i,s=(0,t.round)(r)!==l||(0,t.round)(i)!==o;return s&&(r=l,i=o),{width:r,height:i,$:s}}function f(e){return(0,c.isElement)(e)?e:e.contextElement}function p(e){let n=f(e);if(!(0,c.isHTMLElement)(n))return(0,t.createCoords)(1);let r=n.getBoundingClientRect(),{width:i,height:a,$:l}=d(n),o=(l?(0,t.round)(r.width):r.width)/i,s=(l?(0,t.round)(r.height):r.height)/a;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let m=(0,t.createCoords)(0);function g(e){let t=(0,c.getWindow)(e);return(0,c.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function h(e,n,r,i){var a;void 0===n&&(n=!1),void 0===r&&(r=!1);let l=e.getBoundingClientRect(),o=f(e),s=(0,t.createCoords)(1);n&&(i?(0,c.isElement)(i)&&(s=p(i)):s=p(e));let u=(void 0===(a=r)&&(a=!1),i&&a&&i===(0,c.getWindow)(o))?g(o):(0,t.createCoords)(0),d=(l.left+u.x)/s.x,m=(l.top+u.y)/s.y,h=l.width/s.x,v=l.height/s.y;if(o&&i){let e=(0,c.getWindow)(o),t=(0,c.isElement)(i)?(0,c.getWindow)(i):i,n=e,r=(0,c.getFrameElement)(n);for(;r&&t!==n;){let e=p(r),t=r.getBoundingClientRect(),i=(0,c.getComputedStyle)(r),a=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;d*=e.x,m*=e.y,h*=e.x,v*=e.y,d+=a,m+=l,n=(0,c.getWindow)(r),r=(0,c.getFrameElement)(n)}}return(0,t.rectToClientRect)({width:h,height:v,x:d,y:m})}function v(e,t){let n=(0,c.getNodeScroll)(e).scrollLeft;return t?t.left+n:h((0,c.getDocumentElement)(e)).left+n}function x(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-v(e,n),y:n.top+t.scrollTop}}function b(e,n,r){var i;let a;if("viewport"===n||"layoutViewport"===n)a=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,c.getWindow)(e),a=(0,c.getDocumentElement)(e),l=i.visualViewport,o=a.clientWidth,s=a.clientHeight,u=0,d=0;if(l){let e=!(0,c.isWebKit)()||"fixed"===t;r?e||(u=-l.offsetLeft,d=-l.offsetTop):(o=l.width,s=l.height,e&&(u=l.offsetLeft,d=l.offsetTop))}if(0>=v(a)){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(a).scrollbarGutter?i/2:i;l<=25&&(o-=l)}return{width:o,height:s,x:u,y:d}}(e,r,n);else if("document"===n){let n,r,l,o,s,u;i=(0,c.getDocumentElement)(e),n=(0,c.getNodeScroll)(i),r=i.ownerDocument.body,l=(0,t.max)(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),o=(0,t.max)(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+v(i),u=-n.scrollTop,"rtl"===(0,c.getComputedStyle)(r).direction&&(s+=(0,t.max)(i.clientWidth,r.clientWidth)-l),a={width:l,height:o,x:s,y:u}}else if((0,c.isElement)(n)){let e,t,i,l,o,s;t=(e=h(n,!0,"fixed"===r)).top+n.clientTop,i=e.left+n.clientLeft,l=p(n),o=n.clientWidth*l.x,s=n.clientHeight*l.y,a={width:o,height:s,x:i*l.x,y:t*l.y}}else{let t=g(e);a={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return(0,t.rectToClientRect)(a)}function y(e){return"static"===(0,c.getComputedStyle)(e).position}function E(e,t){if(!(0,c.isHTMLElement)(e)||"fixed"===(0,c.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,c.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function S(e,t){let n=(0,c.getWindow)(e);if((0,c.isTopLayer)(e))return n;if(!(0,c.isHTMLElement)(e)){let t=(0,c.getParentNode)(e);for(;t&&!(0,c.isLastTraversableNode)(t);){if((0,c.isElement)(t)&&!y(t))return t;t=(0,c.getParentNode)(t)}return n}let r=E(e,t);for(;r&&(0,c.isTableElement)(r)&&y(r);)r=E(r,t);return r&&(0,c.isLastTraversableNode)(r)&&y(r)&&!(0,c.isContainingBlock)(r)?n:r||(0,c.getContainingBlock)(e)||n}let w=async function(e){let n=this.getOffsetParent||S,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,n,r){let i=(0,c.isHTMLElement)(n),a=(0,c.getDocumentElement)(n),l="fixed"===r,o=h(e,!0,l,n),s={scrollLeft:0,scrollTop:0},u=(0,t.createCoords)(0);if((i||!l)&&(("body"!==(0,c.getNodeName)(n)||(0,c.isOverflowElement)(a))&&(s=(0,c.getNodeScroll)(n)),i)){let e=h(n,!0,l,n);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}!i&&a&&(u.x=v(a));let d=!a||i||l?(0,t.createCoords)(0):x(a,s);return{x:o.left+s.scrollLeft-u.x-d.x,y:o.top+s.scrollTop-u.y-d.y,width:o.width,height:o.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},C={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:r,offsetParent:i,strategy:a}=e,l="fixed"===a,o=(0,c.getDocumentElement)(i),s=!!n&&(0,c.isTopLayer)(n.floating);if(i===o||s&&l)return r;let u={scrollLeft:0,scrollTop:0},d=(0,t.createCoords)(1),f=(0,t.createCoords)(0),m=(0,c.isHTMLElement)(i);if((m||!l)&&(("body"!==(0,c.getNodeName)(i)||(0,c.isOverflowElement)(o))&&(u=(0,c.getNodeScroll)(i)),m)){let e=h(i);d=p(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}let g=!o||m||l?(0,t.createCoords)(0):x(o,u);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-u.scrollTop*d.y+f.y+g.y}},getDocumentElement:c.getDocumentElement,getClippingRect:function(e){let{element:n,boundary:r,rootBoundary:i,strategy:a}=e,l=[..."clippingAncestors"===r?(0,c.isTopLayer)(n)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,c.getOverflowAncestors)(e,[],!1).filter(e=>(0,c.isElement)(e)&&"body"!==(0,c.getNodeName)(e)),i=null,a="fixed"===(0,c.getComputedStyle)(e).position,l=a?(0,c.getParentNode)(e):e;for(;(0,c.isElement)(l)&&!(0,c.isLastTraversableNode)(l);){let e=(0,c.getComputedStyle)(l),t=(0,c.isContainingBlock)(l),n=i?i.position:a?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=(0,c.getParentNode)(l)}return t.set(e,r),r}(n,this._c):[].concat(r),i],o=b(n,l[0],a),s=o.top,u=o.right,d=o.bottom,f=o.left;for(let e=1;e<l.length;
1e++){let r=b(n,l[e],a);s=(0,t.max)(r.top,s),u=(0,t.min)(r.right,u),d=(0,t.min)(r.bottom,d),f=(0,t.max)(r.left,f)}return{width:u-f,height:d-s,x:f,y:s}},getOffsetParent:S,getElementRects:w,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=d(e);return{width:t,height:n}},getScale:p,isElement:c.isElement,isRTL:function(e){return"rtl"===(0,c.getComputedStyle)(e).direction}};function A(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let R=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:a,placement:l,middlewareData:o}=t,s=await u(t,e);return l===(null==(n=o.offset)?void 0:n.placement)&&null!=(r=o.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:{...s,placement:l}}}}},M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){let{x:r,y:i,placement:a,platform:l}=n,{mainAxis:o=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,t.evaluate)(e,n),d={x:r,y:i},f=await l.detectOverflow(n,c),p=(0,t.getSideAxis)(a),m=(0,t.getOppositeAxis)(p),g=d[m],h=d[p],v=(e,n)=>(0,t.clamp)(n+f["y"===e?"top":"left"],n,n-f["y"===e?"bottom":"right"]);o&&(g=v(m,g)),s&&(h=v(p,h));let x=u.fn({...n,[m]:g,[p]:h});return{...x,data:{x:x.x-r,y:x.y-i,enabled:{[m]:o,[p]:s}}}}}},I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r,i,a,l,o;let{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=n,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...y}=(0,t.evaluate)(e,n);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let E=(0,t.getSide)(s),S=(0,t.getSideAxis)(d),w=(0,t.getSide)(d)===d,C=await (null==f.isRTL?void 0:f.isRTL(p.floating)),A=h||(w||!b?[(0,t.getOppositePlacement)(d)]:(0,t.getExpandedPlacements)(d)),R="none"!==x;!h&&R&&A.push(...(0,t.getOppositeAxisPlacements)(d,b,x,C));let M=[d,...A],I=await f.detectOverflow(n,y),T=[],P=(null==(i=u.flip)?void 0:i.overflows)||[];if(m&&T.push(I[E]),g){let e=(0,t.getAlignmentSides)(s,c,C);T.push(I[e[0]],I[e[1]])}if(P=[...P,{placement:s,overflows:T}],!T.every(e=>e<=0)){let e=((null==(a=u.flip)?void 0:a.index)||0)+1,n=M[e];if(n&&("alignment"!==g||S===(0,t.getSideAxis)(n)||P.every(e=>(0,t.getSideAxis)(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:n}};let r=null==(l=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!r)switch(v){case"bestFit":{let e=null==(o=P.filter(e=>{if(R){let n=(0,t.getSideAxis)(e.placement);return n===S||"y"===n}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=d}if(s!==r)return{reset:{placement:r}}}return{}}}},T=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(n){let r,i,{placement:a,rects:l,platform:o,elements:s}=n,{apply:u=()=>{},...c}=(0,t.evaluate)(e,n),d=await o.detectOverflow(n,c),f=(0,t.getSide)(a),p=(0,t.getAlignment)(a),m="y"===(0,t.getSideAxis)(a),{width:g,height:h}=l.floating;"top"===f||"bottom"===f?(r=f,i=p===(await (null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(i=f,r="end"===p?"top":"bottom");let v=h-d.top-d.bottom,x=g-d.left-d.right,b=(0,t.min)(h-d[r],v),y=(0,t.min)(g-d[i],x),E=n.middlewareData.shift,S=!E,w=b,C=y;null!=E&&E.enabled.x&&(C=x),null!=E&&E.enabled.y&&(w=v),S&&!p&&(m?C=g-2*(0,t.max)(d.left,d.right):w=h-2*(0,t.max)(d.top,d.bottom)),await u({...n,availableWidth:C,availableHeight:w});let A=await o.getDimensions(s.floating);return g!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}},P=e=>({name:"arrow",options:e,async fn(n){let{x:r,y:i,placement:a,rects:l,platform:o,elements:s,middlewareData:u}=n,{element:c,padding:d=0}=(0,t.evaluate)(e,n)||{};if(null==c)return{};let f=(0,t.getPaddingObject)(d),p={x:r,y:i},m=(0,t.getAlignmentAxis)(a),g=(0,t.getAxisLength)(m),h=await o.getDimensions(c),v="y"===m,x=v?"clientHeight":"clientWidth",b=l.reference[g]+l.reference[m]-p[m]-l.floating[g],y=p[m]-l.reference[m],E=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),S=E?E[x]:0;S&&await (null==o.isElement?void 0:o.isElement(E))||(S=s.floating[x]||l.floating[g]);let w=S/2-h[g]/2-1,C=(0,t.min)(f[v?"top":"left"],w),A=(0,t.min)(f[v?"bottom":"right"],w),R=S-h[g]-A,M=S/2-h[g]/2+(b/2-y/2),I=(0,t.clamp)(C,M,R),T=!u.arrow&&null!=(0,t.getAlignment)(a)&&M!==I&&l.reference[g]/2-(M<C?C:A)-h[g]/2<0,P=T?M<C?M-C:M-R:0;return{[m]:p[m]+P,data:{[m]:I,centerOffset:M-I-P,...T&&{alignmentOffset:P}},reset:T}}}),L=function(e){return void 0===e&&(e={}),{options:e,fn(n){var r,i,a,l;let{x:o,y:u,placement:c,rects:d,middlewareData:f}=n,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=(0,t.evaluate)(e,n),h={x:o,y:u},v=(0,t.getSideAxis)(c),x=(0,t.getOppositeAxis)(v),b=h[x],y=h[v],E=(0,t.evaluate)(p,n),S="number"==typeof E?{mainAxis:E,crossAxis:0}:{mainAxis:null!=(r=E.mainAxis)?r:0,crossAxis:null!=(i=E.crossAxis)?i:0};if(m){let e="y"===x?"height":"width",t=d.reference[x]-d.floating[e]+S.mainAxis,n=d.reference[x]+d.reference[e]-S.mainAxis;b<t?b=t:b>n&&(b=n)}if(g){let e="y"===x?"width":"height",n=s.has((0,t.getSide)(c)),r=d.reference[v]-d.floating[e]+(n&&(null==(a=f.offset)?void 0:a[v])||0)+(n?0:S.crossAxis),i=d.reference[v]+d.reference[e]+(n?0:(null==(l=f.offset)?void 0:l[v])||0)-(n?S.crossAxis:0);y<r?y=r:y>i&&(y=i)}return{[x]:b,[v]:y}}}},N=(e,t,n)=>{let r=new Map,a=null!=n?n:{},l={...C,...a.platform,_c:r};return i(e,t,{...a,platform:l})};e.s(["arrow",0,P,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(n){var r,i,a,l;let{rects:o,middlewareData:s,placement:u,platform:c,elements:d}=n,{crossAxis:f=!1,alignment:p,allowedPlacements:m=t.placements,autoAlignment:g=!0,...h}=(0,t.evaluate)(e,n),v=void 0!==p||m===t.placements?((l=p||null)?[...m.filter(e=>(0,t.getAlignment)(e)===l),...m.filter(e=>(0,t.getAlignment)(e)!==l)]:m.filter(e=>(0,t.getSide)(e)===e)).filter(e=>!l||(0,t.getAlignment)(e)===l||!!g&&(0,t.getOppositeAlignmentPlacement)(e)!==e):m,x=(null==(r=s.autoPlacement)?void 0:r.index)||0,b=v[x];if(null==b)return{};if(u!==b)return{reset:{placement:v[0]}};let y=await c.detectOverflow(n,h),E=(0,t.getAlignmentSides)(b,o,await (null==c.isRTL?void 0:c.isRTL(d.floating))),S=[y[(0,t.getSide)(b)],y[E[0]],y[E[1]]],w=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:b,overflows:S}],C=v[x+1];if(C)return{data:{index:x+1,overflows:w},reset:{placement:C}};let A=w.map(e=>{let n=(0,t.getAlignment)(e.placement);return[e.placement,n&&f?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),R=(null==(a=A.filter(e=>e[2].slice(0,(0,t.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||A[0][0];return R!==u?{data:{index:x+1,overflows:w},reset:{placement:R}}:{}}}},"autoUpdate",0,function(e,n,r,i){let a;void 0===i&&(i={});let{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,p=f(e),m=l||o?[...p?(0,c.getOverflowAncestors)(p):[],...n?(0,c.getOverflowAncestors)(n):[]]:[];m.forEach(e=>{l&&e.addEventListener("scroll",r),o&&e.addEventListener("resize",r)});let g=p&&u?function(e,n,r){let i,a=null,l=(0,c.getDocumentElement)(e);function o(){var e;clearTimeout(i),null==(e=a)||e.disconnect(),a=null}function s(r,u){void 0===r&&(r=!1),void 0===u&&(u=1),o();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(r||n(),!p||!m)return;let g={rootMargin:-(0,t.floor)(f)+"px "+-(0,t.floor)(l.clientWidth-(d+p))+"px "+-(0,t.floor)(l.clientHeight-(f+m))+"px "+-(0,t.floor)(d)+"px",threshold:(0,t.max)(0,(0,t.min)(1,u))||1},h=!0;function v(t){let n=t[0].intersectionRatio;if(!A(c,e.getBoundingClientRect()))return s();if(n!==u){if(!h)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}h=!1}try{a=new IntersectionObserver(v,{...g,root:l.ownerDocument})}catch(e){a=new IntersectionObserver(v,g)}a.observe(e)}let u=(0,c.getWindow)(e),d=()=>s(r);return u.addEventListener("resize",d),s(!0),()=>{u.removeEventListener("resize",d),o()}}(p,r,o):null,v=-1,x=null;s&&(x=new ResizeObserver(e=>{let[t]=e;t&&t.target===p&&x&&n&&(x.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(n)})),r()}),p&&!d&&x.observe(p),n&&x.observe(n));let b=d?h(e):null;return d&&function t(){let n=h(e);b&&!A(b,n)&&r(),b=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;m.forEach(e=>{l&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=x)||e.disconnect(),x=null,d&&cancelAnimationFrame(a)}},"computePosition",0,N,"detectOverflow",0,r,"flip",0,I,"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(n){let{rects:r,platform:i}=n,{strategy:o="referenceHidden",...s}=(0,t.evaluate)(e,n);switch(o){case"referenceHidden":{let e=a(await i.detectOverflow(n,{...s,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{let e=a(await i.detectOverflow(n,{...s,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(n){let{placement:r,elements:i,rects:a,platform:l,strategy:s}=n,{padding:u=2,x:c,y:d}=(0,t.evaluate)(e,n),f=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(i.reference))||[]);if(!f.length)return{};let p=function(e){let n=e.slice().sort((e,t)=>e.y-t.y),r=[],i=null;for(let e=0;e<n.length;e++){let t=n[e];!i||t.y-i.y>i.height/2?r.push([t]):r[r.length-1].push(t),i=t}return r.map(e=>(0,t.rectToClientRect)(o(e)))}(f),m=(0,t.rectToClientRect)(o(f)),g=(0,t.getPaddingObject)(u),h=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=c&&null!=d)return p.find(e=>c>e.left-g.left&&c<e.right+g.right&&d>e.top-g.top&&d<e.bottom+g.bottom)||m;if(p.length>=2){if("y"===(0,t.getSideAxis)(r)){let e=p[0],n=p[p.length-1],i="top"===(0,t.getSide)(r),a=e.top,l=n.bottom,o=i?e.left:n.left,s=i?e.right:n.right;return(0,t.rectToClientRect)({x:o,y:a,width:s-o,height:l-a})}let e="left"===(0,t.getSide)(r),n=(0,t.max)(...p.map(e=>e.right)),i=(0,t.min)(...p.map(e=>e.left)),a=p.filter(t=>e?t.left===i:t.right===n),l=a[0].top,o=a[a.length-1].bottom;return(0,t.rectToClientRect)({x:i,y:l,width:n-i,height:o-l})}return m}},floating:i.floating,strategy:s});return a.reference.x!==h.reference.x||a.reference.y!==h.reference.y||a.reference.width!==h.reference.width||a.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},"limitShift",0,L,"offset",0,R,"platform",0,C,"shift",0,M,"size",0,T],953760);var O=e.i(271645),D=e.i(174080),j="u">typeof document?O.useLayoutEffect:function(){};function k(e,t){let n,r,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!k(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!k(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function F(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function V(e,t){let n=F(e);return Math.round(t*n)/n}function H(e){let t=O.useRef(e);return j(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?P({element:n.current,padding:r}).fn(t):{}:n?P({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=I(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:L(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=R(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=M(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=T(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:o=!0,whileElementsMounted:s,open:u}=e,[c,d]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=O.useState(r);k(f,r)||p(r);let[m,g]=O.useState(null),[h,v]=O.useState(null),x=O.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),b=O.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),y=a||m,E=l||h,S=O.useRef(null),w=O.useRef(null),C=O.useRef(c),A=null!=s,R=H(s),M=H(i),I=H(u),T=O.useCallback(()=>{if(!S.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};M.current&&(e.platform=M.current),N(S.current,w.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};P.current&&!k(C.current,t)&&(C.current=t,D.flushSync(()=>{d(t)}))})},[f,t,n,M,I]);j(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let P=O.useRef(!1);j(()=>(P.current=!0,()=>{P.current=!1}),[]),j(()=>{if(y&&(S.current=y),E&&(w.current=E),y&&E){if(R.current)return R.current(y,E,T);T()}},[y,E,T,R,A]);let L=O.useMemo(()=>({reference:S,floating:w,setReference:x,setFloating:b}),[x,b]),Z=O.useMemo(()=>({reference:y,floating:E}),[y,E]),_=O.useMemo(()=>{let e={position:n,left:0,top:0};if(!Z.floating)return e;let t=V(Z.floating,c.x),r=V(Z.floating,c.y);return o?{...e,transform:"translate("+t+"px, "+r+"px)",...F(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,o,Z.floating,c.x,c.y]);return O.useMemo(()=>({...c,update:T,refs:L,elements:Z,floatingStyles:_}),[c,T,L,Z,_])}],258950)},577854,e=>{"use strict";var t=e.i(271645),n=e.i(769464),r=e.i(300066);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r.default}));i.displayName="XIcon",e.s(["XIcon",0,i])},773987,516928,914444,640397,e=>{"use strict";var t=e.i(271645);let n=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),t.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]);e.s(["default",0,n],773987);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),t.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]);e.s(["default",0,r],516928);var i=e.i(575108);let a=t.forwardRef((e,r)=>t.createElement(i.default,{ref:r,...e,weights:n}));
1a.displayName="CaretLeftIcon",e.s(["CaretLeftIcon",0,a],914444);let l=t.forwardRef((e,n)=>t.createElement(i.default,{ref:n,...e,weights:r}));l.displayName="CaretRightIcon",e.s(["CaretRightIcon",0,l],640397)},89154,e=>{"use strict";var t=e.i(271645);let n=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178,36c-20.09,0-37.92,7.93-50,21.56C115.92,43.93,98.09,36,78,36a66.08,66.08,0,0,0-66,66c0,72.34,105.81,130.14,110.31,132.57a12,12,0,0,0,11.38,0C138.19,232.14,244,174.34,244,102A66.08,66.08,0,0,0,178,36Zm-5.49,142.36A328.69,328.69,0,0,1,128,210.16a328.69,328.69,0,0,1-44.51-31.8C61.82,159.77,36,131.42,36,102A42,42,0,0,1,78,60c17.8,0,32.7,9.4,38.89,24.54a12,12,0,0,0,22.22,0C145.3,69.4,160.2,60,178,60a42,42,0,0,1,42,42C220,131.42,194.18,159.77,172.51,178.36Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,102c0,66-104,122-104,122S24,168,24,102A54,54,0,0,1,78,48c22.59,0,41.94,12.31,50,32,8.06-19.69,27.41-32,50-32A54,54,0,0,1,232,102Z",opacity:"0.2"}),t.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178,42c-21,0-39.26,9.47-50,25.34C117.26,51.47,99,42,78,42a60.07,60.07,0,0,0-60,60c0,29.2,18.2,59.59,54.1,90.31a334.68,334.68,0,0,0,53.06,37,6,6,0,0,0,5.68,0,334.68,334.68,0,0,0,53.06-37C219.8,161.59,238,131.2,238,102A60.07,60.07,0,0,0,178,42ZM128,217.11C111.59,207.64,30,157.72,30,102A48.05,48.05,0,0,1,78,54c20.28,0,37.31,10.83,44.45,28.27a6,6,0,0,0,11.1,0C140.69,64.83,157.72,54,178,54a48.05,48.05,0,0,1,48,48C226,157.72,144.41,207.64,128,217.11Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178,44c-21.44,0-39.92,10.19-50,27.07C117.92,54.19,99.44,44,78,44a58.07,58.07,0,0,0-58,58c0,28.59,18,58.47,53.4,88.79a333.81,333.81,0,0,0,52.7,36.73,4,4,0,0,0,3.8,0,333.81,333.81,0,0,0,52.7-36.73C218,160.47,236,130.59,236,102A58.07,58.07,0,0,0,178,44ZM128,219.42c-14-8-100-59.35-100-117.42A50.06,50.06,0,0,1,78,52c21.11,0,38.85,11.31,46.3,29.51a4,4,0,0,0,7.4,0C139.15,63.31,156.89,52,178,52a50.06,50.06,0,0,1,50,50C228,160,142,211.46,128,219.42Z"}))]]);e.s(["default",0,n])},125994,e=>{"use strict";var t=e.i(271645);let n=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),t.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]);e.s(["default",0,n])},775265,e=>{"use strict";var t=e.i(271645);let n=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M233.21,56.31A12,12,0,0,0,224,52H66L60.53,21.85A12,12,0,0,0,48.73,12H24a12,12,0,0,0,0,24H38.71L63.62,173a28,28,0,0,0,4.07,10.21A32,32,0,1,0,123,196h34a32,32,0,1,0,31-24H91.17a4,4,0,0,1-3.93-3.28L84.92,156H196.1a28,28,0,0,0,27.55-23l12.16-66.86A12,12,0,0,0,233.21,56.31ZM100,204a8,8,0,1,1-8-8A8,8,0,0,1,100,204Zm88,8a8,8,0,1,1,8-8A8,8,0,0,1,188,212Zm12-83.28A4,4,0,0,1,196.1,132H80.56L70.38,76H209.62Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,64l-12.16,66.86A16,16,0,0,1,196.1,144H70.55L56,64Z",opacity:"0.2"}),t.createElement("path",{d:"M230.14,58.87A8,8,0,0,0,224,56H62.68L56.6,22.57A8,8,0,0,0,48.73,16H24a8,8,0,0,0,0,16h18L6
17.56,172.29a24,24,0,0,0,5.33,11.27,28,28,0,1,0,44.4,8.44h45.42A27.75,27.75,0,0,0,160,204a28,28,0,1,0,28-28H91.17a8,8,0,0,1-7.87-6.57L80.13,152h116a24,24,0,0,0,23.61-19.71l12.16-66.86A8,8,0,0,0,230.14,58.87ZM104,204a12,12,0,1,1-12-12A12,12,0,0,1,104,204Zm96,0a12,12,0,1,1-12-12A12,12,0,0,1,200,204Zm4-74.57A8,8,0,0,1,196.1,136H77.22L65.59,72H214.41Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M230.14,58.87A8,8,0,0,0,224,56H62.68L56.6,22.57A8,8,0,0,0,48.73,16H24a8,8,0,0,0,0,16h18L67.56,172.29a24,24,0,0,0,5.33,11.27,28,28,0,1,0,44.4,8.44h45.42A27.75,27.75,0,0,0,160,204a28,28,0,1,0,28-28H91.17a8,8,0,0,1-7.87-6.57L80.13,152h116a24,24,0,0,0,23.61-19.71l12.16-66.86A8,8,0,0,0,230.14,58.87ZM104,204a12,12,0,1,1-12-12A12,12,0,0,1,104,204Zm96,0a12,12,0,1,1-12-12A12,12,0,0,1,200,204Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.61,60.16A6,6,0,0,0,224,58H61L54.63,22.93A6,6,0,0,0,48.73,18H24a6,6,0,0,0,0,12H43.72L69.53,171.94a21.93,21.93,0,0,0,6.24,11.77A26,26,0,1,0,113.89,190h52.22A26,26,0,1,0,188,178H91.17a10,10,0,0,1-9.84-8.21L77.73,150H196.1a22,22,0,0,0,21.65-18.06L229.9,65.07A6,6,0,0,0,228.61,60.16ZM106,204a14,14,0,1,1-14-14A14,14,0,0,1,106,204Zm96,0a14,14,0,1,1-14-14A14,14,0,0,1,202,204Zm3.94-74.21A10,10,0,0,1,196.1,138H75.55L63.19,70H216.81Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M230.14,58.87A8,8,0,0,0,224,56H62.68L56.6,22.57A8,8,0,0,0,48.73,16H24a8,8,0,0,0,0,16h18L67.56,172.29a24,24,0,0,0,5.33,11.27,28,28,0,1,0,44.4,8.44h45.42A27.75,27.75,0,0,0,160,204a28,28,0,1,0,28-28H91.17a8,8,0,0,1-7.87-6.57L80.13,152h116a24,24,0,0,0,23.61-19.71l12.16-66.86A8,8,0,0,0,230.14,58.87ZM104,204a12,12,0,1,1-12-12A12,12,0,0,1,104,204Zm96,0a12,12,0,1,1-12-12A12,12,0,0,1,200,204Zm4-74.57A8,8,0,0,1,196.1,136H77.22L65.59,72H214.41Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M227.07,61.44A4,4,0,0,0,224,60H59.34L52.66,23.28A4,4,0,0,0,48.73,20H24a4,4,0,0,0,0,8H45.39l6.69,36.8h0L71.49,171.58A20,20,0,0,0,79,183.85,24,24,0,1,0,109.87,188h60.26A24,24,0,1,0,188,180H91.17a12,12,0,0,1-11.8-9.85l-4-22.15H196.1a20,20,0,0,0,19.68-16.42l12.16-66.86A4,4,0,0,0,227.07,61.44ZM108,204a16,16,0,1,1-16-16A16,16,0,0,1,108,204Zm96,0a16,16,0,1,1-16-16A16,16,0,0,1,204,204Zm3.91-73.85A12,12,0,0,1,196.1,140H73.88L60.79,68H219.21Z"}))]]);e.s(["default",0,n])},291045,e=>{"use strict";var t=e.i(271645);let n=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M187.3,159.06A36.09,36.09,0,0,1,152,188a84.09,84.09,0,0,1-84-84A36.09,36.09,0,0,1,96.94,68.7,12,12,0,0,1,110,75.1l11.48,23a12,12,0,0,1-.75,12l-8.52,12.78a44.56,44.56,0,0,0,20.91,20.91l12.78-8.52a12,12,0,0,1,12-.75l23,11.48A12,12,0,0,1,187.3,159.06ZM236,128A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,32A96,96,0,0,0,44.89,176.07L32.42,213.46a8,8,0,0,0,10.12,10.12l37.39-12.47A96,96,0,1,0,128,32Zm24,152a80,80,0,0,1-80-80,32,32,0,0,1,32-32l16,32-12.32,18.47a48.19,48.19,0,0,0,25.85,25.85L152,136l32,16A32,32,0,0,1,152,184Z",opacity:"0.2"}),t.createElement("path",{d:"M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.62-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M152.58,145.23l23,11.48A24,24,0,0,1,152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155ZM232,128A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24
1-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-40,24a8,8,0,0,0-4.42-7.16l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88A40,40,0,0,0,192,152Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M186.68,146.63l-32-16a6,6,0,0,0-6,.38L133,141.46A42.49,42.49,0,0,1,114.54,123L125,107.33a6,6,0,0,0,.38-6l-16-32A6,6,0,0,0,104,66a38,38,0,0,0-38,38,86.1,86.1,0,0,0,86,86,38,38,0,0,0,38-38A6,6,0,0,0,186.68,146.63ZM152,178a74.09,74.09,0,0,1-74-74,26,26,0,0,1,22.42-25.75l12.66,25.32-10.39,15.58a6,6,0,0,0-.54,5.63,54.43,54.43,0,0,0,29.07,29.07,6,6,0,0,0,5.63-.54l15.58-10.39,25.32,12.66A26,26,0,0,1,152,178ZM128,26A102,102,0,0,0,38.35,176.69L26.73,211.56a14,14,0,0,0,17.71,17.71l34.87-11.62A102,102,0,1,0,128,26Zm0,192a90,90,0,0,1-45.06-12.08,6.09,6.09,0,0,0-3-.81,6.2,6.2,0,0,0-1.9.31L40.65,217.88a2,2,0,0,1-2.53-2.53L50.58,178a6,6,0,0,0-.5-4.91A90,90,0,1,1,128,218Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M187.58,144.84l-32-16a8,8,0,0,0-8,.5l-14.69,9.8a40.55,40.55,0,0,1-16-16l9.8-14.69a8,8,0,0,0,.5-8l-16-32A8,8,0,0,0,104,64a40,40,0,0,0-40,40,88.1,88.1,0,0,0,88,88,40,40,0,0,0,40-40A8,8,0,0,0,187.58,144.84ZM152,176a72.08,72.08,0,0,1-72-72A24,24,0,0,1,99.29,80.46l11.48,23L101,118a8,8,0,0,0-.73,7.51,56.47,56.47,0,0,0,30.15,30.15A8,8,0,0,0,138,155l14.61-9.74,23,11.48A24,24,0,0,1,152,176ZM128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M185.79,148.42l-32-16a4,4,0,0,0-4,.25l-16.64,11.1a44.56,44.56,0,0,1-20.91-20.91l11.1-16.64a4,4,0,0,0,.25-4l-16-32A4,4,0,0,0,104,68a36,36,0,0,0-36,36,84.09,84.09,0,0,0,84,84,36,36,0,0,0,36-36A4,4,0,0,0,185.79,148.42ZM152,180a76.08,76.08,0,0,1-76-76,28,28,0,0,1,25.58-27.9l13.8,27.61-11,16.54A4,4,0,0,0,104,124a52.43,52.43,0,0,0,28,28,4,4,0,0,0,3.76-.37l16.54-11,27.61,13.8A28,28,0,0,1,152,180ZM128,28A100,100,0,0,0,40.53,176.5l-11.9,35.69a12,12,0,0,0,15.18,15.18l35.69-11.9A100,100,0,1,0,128,28Zm0,192a92,92,0,0,1-46.07-12.35,4.05,4.05,0,0,0-2-.54,3.93,3.93,0,0,0-1.27.21L41.28,219.78a4,4,0,0,1-5.06-5.06l12.46-37.38a4,4,0,0,0-.33-3.27A92,92,0,1,1,128,220Z"}))]]);e.s(["default",0,n])},127584,797710,888221,e=>{"use strict";var t=e.i(271645),n=e.i(575108);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),t.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]);e.s(["default",0,r],797710);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r}));
1i.displayName="CalendarBlankIcon",e.s(["CalendarBlankIcon",0,i],127584);var a=e.i(843476),l=e.i(725933),o=e.i(949872),s=e.i(558300),u=e.i(320887),c=e.i(380429);e.i(986223);var d=e.i(557153),f=e.i(94540),p=e.i(708015),m=e.i(163690),g=e.i(627297),h=e.i(614680),v=e.i(210405),x=e.i(705667);let b=/^(\d{2})\/(\d{2})\/(\d{4})$/,y=e=>String(e).padStart(2,"0"),E=e=>{let t=b.exec(e);if(!t)return null;let n=Number(t[1]),r=Number(t[2]),i=Number(t[3]);if(r<1||r>12||n<1||n>31)return null;let a=new Date(i,r-1,n);return a.getFullYear()===i&&a.getMonth()===r-1&&a.getDate()===n?a:null},S=e=>`${y(e.getDate())}/${y(e.getMonth()+1)}/${e.getFullYear()}`,w=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),C=({date:e,minDate:t,maxDate:n})=>{let r=w(e);return!(t&&r<w(t)||n&&r>w(n))},A=(0,d.cn)("h-11 w-full rounded-v2 border px-4 text-sm transition-colors","bg-transparent text-v2-foreground outline-none","placeholder:text-v2-muted-foreground disabled:cursor-not-allowed"),R=(0,d.cn)("min-w-0 flex-1 bg-transparent text-v2-foreground outline-none","placeholder:text-v2-muted-foreground disabled:cursor-not-allowed"),M=(0,d.cn)("shadow-lg w-[var(--anchor-width)] min-w-[300px] rounded-v2 border border-v2-border bg-v2-surface p-4 outline-none","transition-all duration-150 ease-out","data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0","data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0"),I=(0,d.cn)("fixed inset-0 bg-black/40","opacity-0 transition-opacity duration-200","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[open]:opacity-100"),T=(0,d.cn)("shadow-xl fixed flex flex-col bg-v2-surface","will-change-transform","inset-x-0 bottom-0 w-full rounded-t-v2",(0,v.kbExpandH)(80),"transition-transform duration-300 ease-out","translate-y-full","data-[starting-style]:translate-y-full","data-[ending-style]:translate-y-full","data-[open]:translate-y-0");function P({id:e,value:t,onChange:n,disabled:r,invalid:i,placeholder:l,className:o}){return(0,a.jsx)(s.Input,{id:e,type:"text",inputMode:"numeric",autoComplete:"off",value:t,disabled:r,placeholder:l,"aria-label":l,"aria-invalid":i||void 0,onChange:e=>n(e.target.value),className:(0,d.cn)(R,o)})}e.s(["DateField",0,function({value:e,onChange:n,minDate:r,maxDate:s,placeholder:v="dd/mm/aaaa",drawerTitle:b="Selecciona una fecha",disabled:w,invalid:R,showIcon:L=!0,size:N="sm",placeholderWeight:O="normal",valueTone:D="default",locale:j="es-CL",id:k,className:F}){let V=(0,f.useIsMobile)(),H=(0,t.useId)(),Z=k??H,_=(0,g.fieldSizeClass)(N),B=(0,g.placeholderWeightClass)(O,{pseudo:!0}),z=(0,g.placeholderWeightClass)(O),W=(0,g.valueToneClass)(D),Y=(0,t.useMemo)(()=>r??new Date(1900,0,1),[r]),$=(0,t.useMemo)(()=>s??new Date,[s]),[U,q]=(0,t.useState)(()=>e?S(e):""),[X,G]=(0,t.useState)(!1),[K,J]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(!e)return;let t=S(e);q(e=>e===t?e:t)},[e]);let Q=E(U),ee=U.length>0&&(null===Q||!C({date:Q,minDate:Y,maxDate:$})),et=!!R||ee,en=e=>{let t=(e=>{let t=e.replace(/\D/g,""),n=[],r=t;if(r.length>0)if(Number(r[0])>3)n.push(`0${r[0]}`),r=r.slice(1);else if(1===r.length)n.push(r),r="";else{let e=Math.min(Number(r.slice(0,2)),31);n.push(String(e).padStart(2,"0")),r=r.slice(2)}if(r.length>0&&n[0]?.length===2)if(Number(r[0])>1)n.push(`0${r[0]}`),r=r.slice(1);else if(1===r.length)n.push(r),r="";else{let e=Math.min(Number(r.slice(0,2)),12);n.push(String(e).padStart(2,"0")),r=r.slice(2)}return r.length>0&&n[1]?.length===2&&n.push(r.slice(0,4)),n.join("/")})(e);q(t);let r=E(t);r&&C({date:r,minDate:Y,maxDate:$})?n(r):n(null)},er=e=>{let t,r=(t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e))?new Date(Number(t[1]),Number(t[2])-1,Number(t[3])):null;r&&(q(S(r)),n(r),G(!1))},ei=(0,m.pickerTriggerStateClass)({disabled:w,invalid:et,hasValue:!!e}),ea=t=>(0,a.jsx)(x.Calendar,{captionLayout:"dropdown",minDate:Y,maxDate:$,value:e?`${e.getFullYear()}-${y(e.getMonth()+1)}-${y(e.getDate())}`:null,onSelect:er,locale:j,captionPortalContainer:t});if(!V)return(0,a.jsxs)(l.Combobox.Root,{inputValue:U,onInputValueChange:(e,t)=>
1{"input-change"===t.reason&&en(e)},open:X,onOpenChange:G,disabled:w,children:[(0,a.jsxs)("div",{className:(0,d.cn)("relative w-full",F),children:[(0,a.jsx)(l.Combobox.Input,{id:Z,inputMode:"numeric",autoComplete:"off",placeholder:v,"aria-label":v,"aria-invalid":et||void 0,className:(0,d.cn)(A,L&&"pr-10",_,B,W,ei,"bg-v2-input")}),L&&(0,a.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-3 flex items-center text-v2-muted-foreground","aria-hidden":!0,children:(0,a.jsx)(i,{size:18})})]}),(0,a.jsx)(l.Combobox.Portal,{children:(0,a.jsx)(l.Combobox.Positioner,{side:"bottom",align:"start",sideOffset:6,style:{zIndex:h.LAYERS.OVERLAY},children:(0,a.jsx)(l.Combobox.Popup,{ref:J,className:M,children:ea(K)})})})]});let el=e?S(e):null;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(p.Button,{type:"button",disabled:w,"aria-invalid":et||void 0,onClick:()=>G(!0),className:(0,d.cn)("flex h-11 w-full items-center justify-between gap-2 rounded-v2 border px-4 text-sm transition-colors",ei,_,"bg-v2-input",F),children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[L&&(0,a.jsx)(i,{size:16,className:"shrink-0 text-v2-muted-foreground"}),(0,a.jsx)("span",{className:(0,d.cn)(el?(0,d.cn)("text-v2-foreground",W):"text-v2-muted-foreground",!el&&z),children:el??v})]}),(0,a.jsx)(u.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})]}),(0,a.jsx)(o.Drawer.Root,{open:X,onOpenChange:e=>!e&&G(!1),swipeDirection:"down",children:(0,a.jsxs)(o.Drawer.Portal,{children:[(0,a.jsx)(o.Drawer.Backdrop,{className:I,style:{zIndex:h.LAYERS.OVERLAY}}),(0,a.jsx)(o.Drawer.Viewport,{children:(0,a.jsxs)(o.Drawer.Popup,{className:T,style:{zIndex:h.LAYERS.OVERLAY+1,maxHeight:"80dvh"},children:[(0,a.jsx)("div",{className:"flex justify-center pb-1 pt-3","aria-hidden":!0,children:(0,a.jsx)("div",{className:"h-1 w-10 rounded-full bg-v2-border"})}),(0,a.jsxs)(o.Drawer.Content,{className:"flex min-h-0 flex-1 flex-col",children:[(0,a.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-v2-border px-5 py-4",children:[(0,a.jsx)(o.Drawer.Title,{className:"text-base font-semibold text-v2-foreground",children:b}),(0,a.jsx)(p.Button,{type:"button",onClick:()=>G(!1),className:(0,d.cn)("inline-flex h-8 w-8 items-center justify-center rounded-full","text-v2-muted-foreground transition-colors hover:bg-v2-muted","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-primary/30"),"aria-label":"Cerrar",children:(0,a.jsx)(c.XIcon,{size:18,"aria-hidden":!0})})]}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain px-5 py-4 pb-8",children:[(0,a.jsxs)("div",{className:(0,d.cn)("flex h-11 w-full items-center gap-2 rounded-v2 border px-4 text-sm transition-colors",ei,_),children:[(0,a.jsx)(P,{id:Z,value:U,onChange:en,disabled:w,invalid:et,placeholder:v,className:B}),L&&(0,a.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center text-v2-muted-foreground","aria-hidden":!0,children:(0,a.jsx)(i,{size:18})})]}),ea()]})]})]})})]})})]})}],888221)},58243,e=>{"use strict";var t=e.i(271645),n=e.i(575108);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),t.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r}));i.displayName="CheckIcon",e.s(["CheckIcon",0,i],58243)},109089,38884,e=>{"use strict";var t=e.i(271645),n=e.i(575108);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);e.s(["default",0,r],38884);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r}));i.displayName="CheckCircleIcon",e.s(["CheckCircleIcon",0,i],109089)},849427,644876,e=>{"use strict";var t=e.i(271645),n=e.i(575108);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"}))]]);e.s(["default",0,r],644876);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r}));i.displayName="ClockIcon",e.s(["ClockIcon",0,i],849427)},271307,e=>{"use strict";var t=e.i(271645),n=e.i(575108),r=e.i(89154);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r.default}));i.displayName="HeartIcon",e.s(["HeartIcon",0,i])},211543,500889,e=>{"use strict";var t=e.i(271645),n=e.i(575108);let r=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);e.s(["default",0,r],500889);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r}));i.displayName="InfoIcon",e.s(["InfoIcon",0,i],211543)},227930,e=>{"use strict";var t=e.i(271645),n=e.i(575108),r=e.i(775265);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r.default}));i.displayName="ShoppingCartIcon",e.s(["ShoppingCartIcon",0,i])},451485,e=>{"use strict";var t=e.i(271645),n=e.i(575108),r=e.i(291045);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r.default}));i.displayName="WhatsappLogoIcon",e.s(["WhatsappLogoIcon",0,i])},665623,68697,442534,708015,e=>{"use strict";var t=e.i(207670);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx,i=(e,t)=>i=>{var a;if((null==t?void 0:t.variants)==null)return r(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:l,defaultVariants:o}=t,s=Object.keys(l).map(e=>{let t=null==i?void 0:i[e],r=null==o?void 0:o[e];if(null===t)return null;let a=n(t)||n(r);return l[e][a]}),u=i&&Object.entries(i).reduce((e,t)=>
1{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return r(e,s,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...u}[t]):({...o,...u})[t]===n})?[...e,n,r]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)};e.s(["cva",0,i],665623);var a=e.i(843476),l=e.i(271645),o=e.i(527930),s=e.i(575108);let u=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm84,84H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),l.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm90,90H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm92,92H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]);e.s(["default",0,u],68697);let c=l.forwardRef((e,t)=>l.createElement(s.default,{ref:t,...e,weights:u}));c.displayName="SpinnerGapIcon",e.s(["SpinnerGapIcon",0,c],442534),e.i(986223);var d=e.i(557153);let f=i("cursor-pointer transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-v2-ring/40",{variants:{variant:{card:["rounded-v2 border border-v2-border bg-v2-surface shadow-sm","text-left","hover:border-v2-border/80 hover:shadow-md"],primary:["w-full rounded-v2-button px-4 py-2.5","text-sm font-semibold text-v2-primary-foreground","bg-[rgb(var(--v2-primary))]","hover:opacity-90 active:opacity-80","disabled:opacity-50 disabled:cursor-not-allowed"],outline:["flex w-full items-center justify-center gap-3","rounded-v2-button border border-v2-border bg-v2-surface","px-4 py-2.5","text-sm font-medium text-v2-foreground","hover:bg-v2-muted"],ghost:["text-sm text-v2-primary-text","hover:underline"],icon:["flex items-center justify-center","text-v2-muted-foreground hover:text-v2-foreground","rounded"]},size:{md:"",lg:["py-3","text-base"]}},defaultVariants:{size:"md"}}),p=(0,l.forwardRef)(({variant:e,size:t,className:n,loading:r,disabled:i,children:l,...s},u)=>(0,a.jsxs)(o.Button,{ref:u,className:(0,d.cn)(f({variant:e,size:t}),r&&"disabled:cursor-wait disabled:opacity-100",n),disabled:i||r,"aria-busy":r||void 0,...s,children:[r&&(0,a.jsx)(c,{className:"mr-2 inline-block h-4 w-4 shrink-0 animate-spin","aria-hidden":!0}),l]}));p.displayName="Button",e.s(["Button",0,p],708015)},471195,e=>{"use strict";e.i(986223),e.s([])},831113,e=>{"use strict";var t=e.i(247167),n=e.i(752017),r=e.i(764962);let i=({site:e})=>{let t=e?.toLowerCase()??"";return Object.values(r.TENANT_REGISTRY).find(e=>e.hostFragments.some(e=>
1t.includes(e)))??r.TENANT_REGISTRY[n.SitesNames.SALAZAR_ISRAEL]},a=new Map;e.s(["findContentfulSite",0,e=>i({site:e}).displayName,"gacSites",0,e=>i({site:e}).site,"getGTMKeyBySite",0,e=>((e,t)=>{let n=a.get(e);if(n)return n;let r={};if(t)try{r=JSON.parse(t)}catch{console.warn(`${e} is not valid JSON — the per-site keys it carries resolve to undefined`)}else console.warn(`${e} is not set — the per-site keys it carries resolve to undefined`);return a.set(e,r),r})("NEXT_PUBLIC_GTM_KEY",'{"SI":"GTM-K9WR4C4","WI":"GTM-58XQFZM","CO":"GTM-WLC94JZ","PO":"GTM-P8W4PWW","SM":"GTM-P74GHDZ","CL":"GTM-K4MVRJ2D"}')[e],"getInsiderPartner",0,e=>{switch(e){case"SI":return{name:"salazarisrael",id:"10005039"};case"WI":return{name:t.default.env.NEXT_PUBLIC_WI_INSIDER_PARTNER_NAME??"",id:t.default.env.NEXT_PUBLIC_WI_INSIDER_PARTNER_ID??""};case"CO":return{name:"cosechechile",id:"10006228"};case"PO":return{name:"portillochile",id:"10006227"};case"SM":return{name:"servimaqchile",id:"10009262"};case"CL":return{name:"clicarchile",id:"10006229"};default:return{name:"",id:""}}},"getSiteName",0,e=>(0,r.getSiteDisplayName)(e)])},525666,848638,665894,e=>{"use strict";var t=e.i(271645);function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)"__proto__"!==r&&(e[r]=n[r])}return e}var r=function e(t,r){function i(e,i,a){if("u">typeof document){"number"==typeof(a=n({},r,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var o in a)a[o]&&(l+="; "+o,!0!==a[o]&&(l+="="+a[o].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+l}}return Object.create({set:i,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var a=n[i].split("="),l=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(o in r||(r[o]=t.read(l,o)),e===o)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.i(471195);var i=e.i(309441),a=e.i(831113);let l=()=>({user_id:localStorage.getItem("uid")??"",session_long_id:(()=>{try{let e=sessionStorage.getItem("sl_id");if(e)return e;let t=localStorage.getItem("uid")??"",n=t?`${t}_${Date.now()}`:"";return n&&sessionStorage.setItem("sl_id",n),n}catch{return""}})(),browsing_mode:navigator.userAgent,app_language:"es"});e.s(["getUniversalProperties",0,l],848638);let o=e=>`visits-${e}`;e.s(["getVisitsCookie",0,o,"useTrackVisits",0,(e,n)=>{(0,t.useEffect)(()=>{if(!n)return;let t=r.get(o(e)),i=t?parseInt(t||"0"):0;r.set(o(e),`${i+1}`,{expires:1})},[n])}],665894),e.s(["useGetDataLayer",0,(e,n={})=>{let{getSpecificUtmParam:s}=(0,i.useUtmSearchParams)(),u=(0,t.useRef)({location_Lat:0,location_long:0,gps_s:"FALSE",location_type:"FALSE",place_selected_id:(0,a.getSiteName)(e),acquisition_channel_type_name:s("utm_source")||"",acquisition_channel_group_name:s("utm_group_name")||"",acquisition_channel_campaign_group_name:s("utm_campaign")||"",acquisition_channel_campaign_name:s("utm_campaign")||"",acquisition_channel_medium_name:s("utm_medium")||"",acquisition_channel_keyword_name:s("utm_term")||"",acquisition_channel_term_name:s("utm_term")||"",acquisition_channel_ad_name:s("utm_content")||"",referrer:""});return(0,t.useEffect)(()=>{document?.referrer&&(u.current.referrer=document.referrer)},[]),{DataLayerEvent:(t={})=>{dataLayer.push({event:"",...l(),session_id:`${l().user_id} - ${r.get(o(e))??""}`,...u.current,...n,...t})},isDatalayerEvent:Object.keys(n).length>0}}],525666)},652605,658977,e=>{"use strict";var t=e.i(525666);e.s(["useTrackEvent",0,({site:e})=>{let{DataLayerEvent:n}=(({site:e})=>(0,t.useGetDataLayer)(e))({site:e});return{trackEvent:e=>n(e)}}],658977),e.s([],652605)},324880,7412,179273,590961,268817,445455,316475,448435,89158,378755,e=>{"use strict";e.s([],316475),e.s(["Pagination",()=>p],445455);var t=e.i(843476),n=e.i(665623);e.i(986223);var r=e.i(557153);let i=(0,n.cva)("inline-flex items-center rounded-v2-pill text-[10px] font-bold leading-tight",{variants:{variant:{default:"bg-v2-muted px-1.5 py-0.5 text-v2-muted-foreground",accent:"bg-v2-primary px-1.5 py-0.5 text-v2-primary-foreground",danger:"bg-v2-danger px-1.5 py-0.5 text-v2-danger-foreground",warning:"bg-v2-warning px-1.5 py-0.5 text-v2-warning-foreground",success:"bg-emerald-100 px-1.5 py-0.5 text-emerald-800"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({variant:e,className:n,...a}){return(0,t.jsx)("span",{className:(0,r.cn)(i({variant:e}),n),...a}
1)}],324880),e.s(["Skeleton",0,function({className:e}){return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,r.cn)("rounded-md bg-v2-muted","animate-pulse motion-reduce:animate-none",e)})}],7412);let a={top:"bottom-full left-1/2 -translate-x-1/2 mb-1",bottom:"top-full left-1/2 -translate-x-1/2 mt-1",left:"right-full top-1/2 -translate-y-1/2 mr-1",right:"left-full top-1/2 -translate-y-1/2 ml-1"};e.s(["Tooltip",0,function({content:e,side:n="bottom",className:i,children:l}){return(0,t.jsxs)("div",{className:(0,r.cn)("group relative inline-flex",i),children:[l,(0,t.jsx)("span",{className:(0,r.cn)("pointer-events-none absolute z-50 whitespace-nowrap","rounded-md bg-v2-foreground px-2.5 py-1 text-xs text-v2-surface shadow-md","opacity-0 transition-opacity delay-150 group-hover:opacity-100",a[n]),role:"tooltip",children:e})]})}],179273);var l=e.i(271645),o=e.i(769464),s=e.i(773987);let u=l.forwardRef((e,t)=>l.createElement(o.default,{ref:t,...e,weights:s.default}));u.displayName="CaretLeftIcon",e.s(["CaretLeftIcon",0,u],590961);var c=e.i(516928);let d=l.forwardRef((e,t)=>l.createElement(o.default,{ref:t,...e,weights:c.default}));d.displayName="CaretRightIcon",e.s(["CaretRightIcon",0,d],268817),e.i(978387);var f=e.i(708015);function p({total:e,page:n,perPage:i,onPageChange:a}){let l=Math.ceil(e/i);if(l<=1)return null;let o=(({page:e,totalPages:t})=>t<=5?Array.from({length:t},(e,t)=>t+1):e<=3?[1,2,3,4,"...",t]:e>=t-2?[1,"...",t-3,t-2,t-1,t]:[1,"...",e-1,e,e+1,"...",t])({page:n,totalPages:l}),s=Math.min(n*i,e),c=`${(n-1)*i+1} a ${s} de ${e} ${1===e?"producto":"productos"}`;return(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm text-v2-muted-foreground",children:c}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(f.Button,{disabled:1===n,onClick:()=>a(n-1),"aria-label":"Página anterior",className:(0,r.cn)("flex h-8 w-8 items-center justify-center rounded-md","text-v2-muted-foreground transition-colors","hover:bg-gray-100 hover:text-v2-foreground","disabled:pointer-events-none disabled:opacity-40"),children:(0,t.jsx)(u,{className:"h-4 w-4"})}),o.map((e,i)=>"..."===e?(0,t.jsx)("span",{className:"flex h-8 w-8 select-none items-center justify-center text-sm text-v2-muted-foreground","aria-hidden":"true",children:"…"},`ellipsis-${i}`):(0,t.jsx)(f.Button,{onClick:()=>a(e),"aria-label":`P\xe1gina ${e}`,"aria-current":e===n?"page":void 0,className:(0,r.cn)("flex h-8 w-8 items-center justify-center rounded-md text-sm transition-colors",e===n?"bg-v2-primary font-medium text-v2-primary-foreground":"text-v2-foreground hover:bg-gray-100"),children:e},e)),(0,t.jsx)(f.Button,{disabled:n===l,onClick:()=>a(n+1),"aria-label":"Página siguiente",className:(0,r.cn)("flex h-8 w-8 items-center justify-center rounded-md","text-v2-muted-foreground transition-colors","hover:bg-gray-100 hover:text-v2-foreground","disabled:pointer-events-none disabled:opacity-40"),children:(0,t.jsx)(d,{className:"h-4 w-4"})})]})]})}var m=e.i(575108);let g=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M243,96a20.33,20.33,0,0,0-17.74-14l-56.59-4.57L146.83,24.62a20.36,20.36,0,0,0-37.66,0L87.35,77.44,30.76,82A20.45,20.45,0,0,0,19.1,117.88l43.18,37.24-13.2,55.7A20.37,20.37,0,0,0,79.57,233L128,203.19,176.43,233a20.39,20.39,0,0,0,30.49-22.15l-13.2-55.7,43.18-37.24A20.43,20.43,0,0,0,243,96ZM172.53,141.7a12,12,0,0,0-3.84,11.86L181.58,208l-47.29-29.08a12,12,0,0,0-12.58,0L74.42,208l12.89-54.4a12,12,0,0,0-3.84-11.86L41.2,105.24l55.4-4.47a12,12,0,0,0,10.13-7.38L128,41.89l21.27,51.5a12,12,0,0,0,10.13,7.38l55.4,4.47Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M229.06,108.79l-48.7,42,14.88,62.79a8.4,8.4,0,0,1-12.52,9.17L128,189.09,73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6a8.36,8.36,0,0,1,15.48,0l24.62,59.6L224.27,94A8.46,8.46,0,0,1,229.06,108.79Z",opacity:"0.2"}),l.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13
1-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M234.29,114.85l-45,38.83L203,211.75a16.4,16.4,0,0,1-24.5,17.82L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,59,4.76a16.46,16.46,0,0,1,9.37,28.86Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M237.28,97.87A14.18,14.18,0,0,0,224.76,88l-60.25-4.87-23.22-56.2a14.37,14.37,0,0,0-26.58,0L91.49,83.11,31.24,88a14.18,14.18,0,0,0-12.52,9.89A14.43,14.43,0,0,0,23,113.32L69,152.93l-14,59.25a14.4,14.4,0,0,0,5.59,15,14.1,14.1,0,0,0,15.91.6L128,196.12l51.58,31.71a14.1,14.1,0,0,0,15.91-.6,14.4,14.4,0,0,0,5.59-15l-14-59.25L233,113.32A14.43,14.43,0,0,0,237.28,97.87Zm-12.14,6.37-48.69,42a6,6,0,0,0-1.92,5.92l14.88,62.79a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1L131.14,184a6,6,0,0,0-6.28,0L70.14,217.61a2.24,2.24,0,0,1-2.6-.1,2.35,2.35,0,0,1-1-2.57l14.88-62.79a6,6,0,0,0-1.92-5.92l-48.69-42a2.37,2.37,0,0,1-.73-2.65,2.28,2.28,0,0,1,2.07-1.65l63.92-5.16a6,6,0,0,0,5.06-3.69l24.63-59.6a2.35,2.35,0,0,1,4.38,0l24.63,59.6a6,6,0,0,0,5.06,3.69l63.92,5.16a2.28,2.28,0,0,1,2.07,1.65A2.37,2.37,0,0,1,225.14,104.24Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M235.36,98.49A12.21,12.21,0,0,0,224.59,90l-61.47-5L139.44,27.67a12.37,12.37,0,0,0-22.88,0L92.88,85,31.41,90a12.45,12.45,0,0,0-7.07,21.84l46.85,40.41L56.87,212.64a12.35,12.35,0,0,0,18.51,13.49L128,193.77l52.62,32.36a12.12,12.12,0,0,0,13.69-.51,12.28,12.28,0,0,0,4.82-13l-14.32-60.42,46.85-40.41A12.29,12.29,0,0,0,235.36,98.49Zm-8.93,7.26-48.68,42a4,4,0,0,0-1.28,3.95l14.87,62.79a4.37,4.37,0,0,1-1.72,4.65,4.24,4.24,0,0,1-4.81.18L130.1,185.67a4,4,0,0,0-4.2,0L71.19,219.32a4.24,4.24,0,0,1-4.81-.18,4.37,4.37,0,0,1-1.72-4.65L79.53,151.7a4,4,0,0,0-1.28-3.95l-48.68-42A4.37,4.37,0,0,1,28.25,101a4.31,4.31,0,0,1,3.81-3L96,92.79a4,4,0,0,0,3.38-2.46L124,30.73a4.35,4.35,0,0,1,8.08,0l24.62,59.6A4,4,0,0,0,160,92.79l63.9,5.15a4.31,4.31,0,0,1,3.81,3A4.37,4.37,0,0,1,226.43,105.75Z"}))]]);e.s(["default",0,g],448435);let h=l.forwardRef((e,t)=>l.createElement(m.default,{ref:t,...e,weights:g}));h.displayName="StarIcon",e.s(["StarIcon",0,h],89158);let v=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M236.9,117.88l-5.06,4.36a12,12,0,0,1-16.87-17,12,12,0,0,1,2-23.92l8.27.67a20.45,20.45,0,0,1,11.66,35.87ZM172.53,141.7a12,12,0,0,0-3.84,11.86l4.08,17.22a12,12,0,1,0,23.35-5.54l-2.4-10.12,6.12-5.28a12,12,0,0,0-15.67-18.17Zm33.07,63.55a12,12,0,0,0-23.68,2.93,12,12,0,0,0-12.2,20.66l6.71,4.13a20.39,20.39,0,0,0,30.49-22.15ZM175,102l-15.64-1.26a12,12,0,0,1-10.13-7.38L140,70.94V182.39l5.53,3.4A12,12,0,0,1,133,206.24l-5-3.05L79.57,233a20.39,20.39,0,0,1-30.49-22.15l13.2-55.7L19.1,117.88A20.45,20.45,0,0,1,30.75,82l56.6-4.57,21.82-52.82a20.36,20.36,0,0,1,37.66,0l21.82,52.82,8.32.67A12,12,0,0,1,175,102Zm-59,80.36V70.94l-9.27,22.45a12,12,0,0,1-10.13,7.38l-55.4,4.47L83.47,141.7a12,12,0,0,1,3.84,11.86L74.42,208Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M128,24V189.09L73.28,222.74a8.4,8.4,0,0,1-12.52-9.17l14.88-62.79-48.7-42A8.46,8.46,0,0,1,31.73,94L95.64,88.8l24.62-59.6A8.26,8.26,0,0,1,128,24Z",opacity:"0.2"}),l.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.4,16.4,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26ZM69.09,215.94c-.15.09-.2.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42a.39.39,0,0,1-.13-.51c.09-.27.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l17-41.08V184.63ZM223.84,102.73l-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0L136,184.63V50.78l17,41.08a8,8,0,0,0,6.75,4.92l63.91,5.16c.16,0,.25,0,.34.29S224,102.63,223.84,102.73Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.4,16.4,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65A8,8,0,0,0,128,181.1V32c.24,0,.27.08.35.26L153,91.86a8,8,0,0,0,6.75,4.92l63.91,5.16c.16,0,.25,0,.34.29S224,102.63,223.84,102.73Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M233,113.32l-5.06,4.36a6,6,0,1,1-7.83-9.08l5.06-4.36a2.38,2.38,0,0,0,.72-2.65,2.28,2.28,0,0,0-2.07-1.65l-8.28-.67a6,6,0,1,1,1-12l8.27.67a14.17,14.17,0,0,1,12.52,9.89A14.43,14.43,0,0,1,233,113.32Zm-58.45,38.83,4.08,17.22a6,6,0,0,0,5.83,4.62,5.51,5.51,0,0,0,1.39-.17,6,6,0,0,0,4.46-7.22l-3.24-13.67,8.87-7.65a6,
16,0,1,0-7.84-9.09l-11.63,10A6,6,0,0,0,174.53,152.15Zm25.23,54.45a6,6,0,1,0-11.67,2.77l1.32,5.57a2.35,2.35,0,0,1-.95,2.57,2.24,2.24,0,0,1-2.6.1l-6.71-4.13a6,6,0,1,0-6.29,10.22l6.72,4.13a14.39,14.39,0,0,0,21.5-15.65ZM175.52,96l-15.64-1.26a6,6,0,0,1-5.06-3.69L134,40.7v145l8.39,5.15a6,6,0,0,1-6.29,10.23l-8.1-5L76.42,227.83a14.39,14.39,0,0,1-21.5-15.65l14-59.25L23,113.32a14.43,14.43,0,0,1-4.3-15.45A14.17,14.17,0,0,1,31.24,88l60.25-4.87,23.22-56.2a14.37,14.37,0,0,1,26.58,0l23.22,56.2,12,1a6,6,0,0,1-1,12ZM122,185.72V40.7L101.18,91.09a6,6,0,0,1-5.06,3.69L32.2,99.94a2.28,2.28,0,0,0-2.07,1.65,2.38,2.38,0,0,0,.72,2.65l48.7,42a6,6,0,0,1,1.92,5.92L66.59,214.94a2.35,2.35,0,0,0,1,2.57,2.24,2.24,0,0,0,2.6.1Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M234.29,114.85l-5.06,4.37a8,8,0,0,1-10.45-12.12l5.06-4.37c.12-.1.23-.19.13-.5s-.18-.27-.34-.29l-8.27-.67a8,8,0,1,1,1.29-15.94l8.27.66a16.46,16.46,0,0,1,9.37,28.86Zm-61.71,37.79,4.08,17.22a8,8,0,0,0,7.78,6.16,7.86,7.86,0,0,0,1.85-.22,8,8,0,0,0,5.94-9.63l-3-12.49,8-6.86a8,8,0,0,0-10.45-12.12l-11.64,10A8,8,0,0,0,172.58,152.64Zm29.13,53.53a8,8,0,0,0-15.57,3.69l1.32,5.58a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-6.72-4.13a8,8,0,0,0-8.38,13.63l6.72,4.13A16.4,16.4,0,0,0,203,211.75ZM175.36,98.05l-15.64-1.27A8,8,0,0,1,153,91.86L136,50.78V184.63l7.43,4.57a8,8,0,1,1-8.38,13.63L128,198.49,77.47,229.57A16.4,16.4,0,0,1,53,211.75l13.76-58.07-45-38.83A16.46,16.46,0,0,1,31.08,86l59-4.76,22.76-55.08a16.36,16.36,0,0,1,30.27,0l22.75,55.08,10.76.87a8,8,0,1,1-1.29,16ZM120,184.63V50.78L103,91.86a8,8,0,0,1-6.75,4.92l-63.92,5.16c-.15,0-.24,0-.33.29a.39.39,0,0,0,.13.51l48.7,42a8,8,0,0,1,2.56,7.91l-14.88,62.8a.37.37,0,0,0,.17.48c.18.14.23.11.38,0Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M231.66,111.81l-5.06,4.36a4,4,0,1,1-5.22-6.06l5.05-4.36a4.37,4.37,0,0,0,1.32-4.77,4.29,4.29,0,0,0-3.81-3l-8.27-.67a4,4,0,1,1,.64-8l8.28.67a12.45,12.45,0,0,1,7.07,21.84ZM176.47,151.7l4.08,17.21a4,4,0,0,0,3.88,3.08,3.69,3.69,0,0,0,.93-.11,4,4,0,0,0,3-4.81l-3.52-14.85,9.79-8.45a4,4,0,0,0-5.22-6.06l-11.63,10A4,4,0,0,0,176.47,151.7Zm21.34,55.37a4,4,0,0,0-7.79,1.84l1.32,5.58a4.38,4.38,0,0,1-1.71,4.65,4.26,4.26,0,0,1-4.82.18l-6.72-4.13A4,4,0,1,0,173.9,222l6.72,4.13a12.4,12.4,0,0,0,18.51-13.49Zm-22.14-113L160,92.79a4,4,0,0,1-3.38-2.46L132,30.73l0-.09v156.2l9.34,5.74a4,4,0,0,1-4.2,6.82L128,193.77,75.38,226.13a12.4,12.4,0,0,1-18.51-13.49l14.32-60.42L24.34,111.81A12.45,12.45,0,0,1,31.41,90l61.47-5,23.68-57.34a12.37,12.37,0,0,1,22.88,0L163.12,85l13.2,1.06a4,4,0,0,1-.65,8ZM124,186.84V30.64l0,.09L99.34,90.33A4,4,0,0,1,96,92.79L32.06,98a4.29,4.29,0,0,0-3.81,3,4.37,4.37,0,0,0,1.32,4.77l48.68,42a4,4,0,0,1,1.28,3.95L64.66,214.49a4.38,4.38,0,0,0,1.71,4.65,4.28,4.28,0,0,0,4.82.18Z"}))]]);l.forwardRef((e,t)=>l.createElement(m.default,{ref:t,...e,weights:v})).displayName="StarHalfIcon",e.s([],378755)},210595,e=>{"use strict";var t=e.i(843476);e.i(986223);var n=e.i(557153);e.s(["BusyRegion",0,function({isBusy:e,children:r,className:i}){return(0,t.jsx)("div",{"data-testid":"busy-region","aria-busy":e||void 0,className:(0,n.cn)("transition-opacity duration-200 motion-reduce:transition-none",e&&"pointer-events-none select-none opacity-60",i),children:(0,t.jsx)("fieldset",{disabled:e,className:"m-0 min-w-0 border-0 p-0",children:r})})}])},705667,e=>{"use strict";var t=e.i(843476),n=e.i(914444),r=e.i(640397);e.i(986223);var i=e.i(557153),a=e.i(708015),l=e.i(932177),o=e.i(667651),s=e.i(271645);let u=e=>String(e).padStart(2,"0"),c=({year:e,month:t,day:n})=>`${e}-${u(t+1)}-${u(n)}`,d=e=>c({year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}),f=e=>{let[t,n,r]=e.split("-").map(Number);return{year:t,month:n-1,day:r}};function p({cell:e,disabled:n,onSelect:r}){let l=e.isCurrentMonth&&e.isAvailable&&!n;return(0,t.jsxs)(a.Button,{role:"gridcell",tabIndex:e.isSelected?0:-1,"aria-selected":e.isSelected||void 0,"aria-disabled":!l||void 0,"aria-current":e.isToday?"date":void 0,disabled:!l,onClick:()=>l&&r?.(e.date),className:(0,i.cn)("relative flex h-9 w-9 items-center justify-center rounded-lg text-sm transition-colors",!e.isCurrentMonth&&"invisible",e.isCurrentMonth&&!e.isAvailable&&"cursor-default text-v2-muted-foreground
1/40",e.isCurrentMonth&&e.isAvailable&&!e.isSelected&&["font-medium text-v2-foreground","hover:bg-v2-primary/10 hover:text-v2-primary","cursor-pointer"],e.isSelected&&"bg-v2-primary font-semibold text-white",e.isToday&&!e.isSelected&&"font-bold",n&&"cursor-default opacity-50"),children:[e.day,e.isToday&&!e.isSelected&&(0,t.jsx)("span",{className:"absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full bg-v2-primary","aria-hidden":!0})]})}let m=(0,i.cn)("h-9 w-auto min-w-0 gap-1 rounded-lg px-2.5 font-semibold");function g({viewYear:e,viewMonth:n,monthOptions:r,selectableYears:i,goToMonth:a,disabled:s,portalContainer:u}){return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.ResponsiveSelect,{placeholder:"Mes",items:r.map(e=>({id:String(e.value),label:e.label})),selectedId:String(n),onSelect:t=>a({year:e,month:Number(t)}),disabled:s,portalContainer:u,className:m}),(0,t.jsx)(o.SearchableSelect,{placeholder:"Año",items:i.map(e=>({id:String(e),label:String(e)})),selectedId:String(e),onSelect:e=>a({year:Number(e),month:n}),disabled:s,portalContainer:u,className:m})]})}e.s(["Calendar",0,function({availableDates:e,minDate:l,maxDate:o,value:u,onSelect:m,weekStartsOn:h=1,locale:v="es-CL",captionLayout:x="arrows",captionPortalContainer:b,disabled:y,className:E}){let{viewYear:S,viewMonth:w,monthLabel:C,weekdayLabels:A,cells:R,canGoPrev:M,canGoNext:I,goToPrevMonth:T,goToNextMonth:P,goToMonth:L,monthOptions:N,selectableYears:O}=function({availableDates:e,minDate:t,maxDate:n,value:r,weekStartsOn:i=1,locale:a="es-CL"}){let l=(0,s.useMemo)(()=>t?d(t):null,[t]),o=(0,s.useMemo)(()=>n?d(n):null,[n]),[u]=(0,s.useState)(()=>{if(r)return f(r);if(e?.length)return f(e[0]);if(n)return{year:n.getFullYear(),month:n.getMonth(),day:1};let t=new Date;return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}}),[p,m]=(0,s.useState)(u.year),[g,h]=(0,s.useState)(u.month),v=(0,s.useMemo)(()=>new Set(e??[]),[e]),{canGoPrev:x,canGoNext:b}=(0,s.useMemo)(()=>{let r=[],i=[];if(e?.length){let t=e.map(e=>{let{year:t,month:n}=f(e);return 12*t+n});r.push(Math.min(...t)),i.push(Math.max(...t))}t&&r.push(12*t.getFullYear()+t.getMonth()),n&&i.push(12*n.getFullYear()+n.getMonth());let a=12*p+g;return{canGoPrev:0===r.length||a>Math.max(...r),canGoNext:0===i.length||a<Math.min(...i)}},[e,t,n,p,g]),y=(0,s.useCallback)(()=>{h(e=>0===e?(m(e=>e-1),11):e-1)},[]),E=(0,s.useCallback)(()=>{h(e=>11===e?(m(e=>e+1),0):e+1)},[]),S=(0,s.useCallback)(({year:e,month:t})=>{m(e),h(t)},[]);(0,s.useEffect)(()=>{if(!r)return;let{year:e,month:t}=f(r);m(e),h(t)},[r]);let w=(0,s.useMemo)(()=>{let e;return function({year:e,month:t,weekStartsOn:n,availableSet:r,minISO:i,maxISO:a,todayStr:l,selectedStr:o}){let s=[],u=new Date(e,t,1).getDay()-n;u<0&&(u+=7);let d=new Date(e,t,1-u);for(let n=0;n<42;n++){let u=new Date(d.getFullYear(),d.getMonth(),d.getDate()+n),f=u.getFullYear(),p=u.getMonth(),m=u.getDate(),g=c({year:f,month:p,day:m}),h=0===r.size||r.has(g),v=(null===i||g>=i)&&(null===a||g<=a);s.push({date:g,day:m,isCurrentMonth:p===t&&f===e,isToday:g===l,isAvailable:h&&v,isSelected:g===o})}return s}({year:p,month:g,weekStartsOn:i,availableSet:v,minISO:l,maxISO:o,todayStr:c({year:(e=new Date).getFullYear(),month:e.getMonth(),day:e.getDate()}),selectedStr:r??null})},[p,g,i,v,l,o,r]),C=(0,s.useMemo)(()=>{let e=new Intl.DateTimeFormat(a,{month:"long",year:"numeric"}).format(new Date(p,g,1));return e.charAt(0).toUpperCase()+e.slice(1)},[p,g,a]),A=(0,s.useMemo)(()=>{let e=new Intl.DateTimeFormat(a,{weekday:"short"});return Array.from({length:7},(t,n)=>{let r=new Date(2026,0,5+((0===i?-1:0)+n)),a=e.format(r);return a.charAt(0).toUpperCase()+a.slice(1,2)})},[a,i]);return{viewYear:p,viewMonth:g,monthLabel:C,weekdayLabels:A,cells:w,canGoPrev:x,canGoNext:b,goToPrevMonth:y,goToNextMonth:E,goToMonth:S,monthOptions:(0,s.useMemo)(()=>{let e=new Intl.DateTimeFormat(a,{month:"long"});return Array.from({length:12},(t,n)=>{let r=e.format(new Date(2026,n,1));return{value:n,label:r.charAt(0).toUpperCase()+r.slice(1)}})},[a]),selectableYears:(0,s.useMemo)(()=>{if(!t||!n)return[];let e=t.getFullYear(),r=n.getFullYear();return r<e?[]:Array.from({length:r-e+1},(e,t)=>r-t)},[t,n])}}({availableDates:e,minDate:l,maxDate:o,value:u,weekStartsOn:h,locale:v}),D="dropdown"===x&&O.length>0;return(0,t.jsxs)("div",{className:(0,i.cn)("w-full select-none",E),role:"grid","aria-label":`Calendario — ${C}`,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,t.jsx)(a.Button,{onClick:T,disabled:!M||y,"aria-label":"Mes anterior",className:(0,i.cn)("flex h-8 w-8 shrink-0 items-center justify-center rounded-lg transition-colors","hover:bg-v2-muted",(!M||y)&&"cursor-default opacity-30"),children:(0,t.jsx)(n.CaretLeftIcon,{size:16,weight:"bold"})}),D?(0,t.jsx)(g,{viewYear:S,viewMonth:w,monthOptions:N,selectableYears:O,goToMonth:L,disabled:y,portalContainer:b}):(0,t.jsx)("span",{className:"text-sm font-semibold text-v2-foreground",children:C}),(0,t.jsx)(a.Button,{onClick:P,disabled:!I||y,"aria-label":"Mes siguiente",className:(0,i.cn)("flex h-8 w-8 shrink-0 items-center justify-center rounded-lg transition-colors","hover:bg-v2-muted",(!I||y)&&"cursor-default opacity-30"),children:(0,t.jsx)(r.CaretRightIcon,{size:16,weight:"bold"})})]}),(0,t.jsx)("div",{className:"mb-1 grid grid-cols-7 gap-0",role:"row","aria-hidden":!0,
1children:A.map((e,n)=>(0,t.jsx)("div",{className:"flex h-8 items-center justify-center text-xs font-medium text-v2-muted-foreground",children:e},n))}),Array.from({length:6},(e,n)=>(0,t.jsx)("div",{className:"grid grid-cols-7 gap-0",role:"row",children:R.slice(7*n,7*n+7).map(e=>(0,t.jsx)("div",{className:"flex items-center justify-center py-0.5",children:(0,t.jsx)(p,{cell:e,disabled:y,onSelect:m})},e.date))},n))]})}],705667)},262779,818390,809700,491587,1186,884142,630854,6594,57581,108656,976937,372678,487972,142698,768429,e=>{"use strict";e.s([],487972),e.s([],262779),e.s(["DateSelector",()=>K],491587),e.s(["Carousel",()=>ed],372678),e.s(["CarouselArrow",()=>eu],108656),e.s(["CarouselDots",()=>ec],976937);var t=e.i(705667),n=e.i(843476),r=e.i(271645);e.i(158421);var i=e.i(549237),a=e.i(441225),l=e.i(321125),o=e.i(163550),s=e.i(492235),u=e.i(910913),c=e.i(764493),d=e.i(569153),f=e.i(740370),p=e.i(389244),m=e.i(122646),g=e.i(373336),h=e.i(552245),v=e.i(174080),x=e.i(144394),b=e.i(708445),y=e.i(394258),E=e.i(146376),S=e.i(667865),w=e.i(108868),C=e.i(222640),A=e.i(793431),R=e.i(872855),M=e.i(360495);let I={activationDirection:e=>e?{"data-activation-direction":e}:null};function T(e){let t,{store:i,side:a,children:l}=e,o=(0,R.useDirection)(),s=i.useState("activeTriggerElement"),u=i.useState("activeTriggerId"),c=i.useState("open"),d=i.useState("payload"),f=i.useState("mounted"),p=i.useState("popupElement"),m=i.useState("positionerElement"),g=(0,y.usePreviousValue)(c?s:null),h=function(e,t){let[n,i]=r.useState(0),a=r.useRef(e),l=r.useRef(t),o=r.useRef(!1);return(0,E.useIsoLayoutEffect)(()=>{let n=a.current,r=t!==l.current;e!==n?(i(e=>e+1),o.current=!r):o.current&&r&&(i(e=>e+1),o.current=!1),a.current=e,l.current=t},[e,t]),`${e??"current"}-${n}`}(u,d),I=r.useRef(null),[T,P]=r.useState(null),[L,N]=r.useState(null),O=r.useRef(null),D=r.useRef(null),j=(0,C.useAnimationsFinished)(O,!0),k=(0,b.useAnimationFrame)(),F=r.useRef(null),[V,H]=r.useState(null),[Z,_]=r.useState(!1);(0,E.useIsoLayoutEffect)(()=>(i.set("adaptiveOrigin",M.adaptiveOrigin),()=>{i.set("adaptiveOrigin",void 0)}),[i]);let B=(0,S.useStableCallback)(()=>{O.current?.style.setProperty("animation","none"),O.current?.style.setProperty("transition","none"),D.current?.style.setProperty("display","none")}),z=(0,S.useStableCallback)(e=>{O.current?.style.removeProperty("animation"),O.current?.style.removeProperty("transition"),D.current?.style.removeProperty("display"),e&&H(e)}),W=(0,S.useStableCallback)(()=>{F.current?.abort();let e=new AbortController;F.current=e,j(()=>{P(null),H(null),I.current=null},e.signal)}),Y=r.useRef(null);(0,E.useIsoLayoutEffect)(()=>{c&&f||(Y.current=null)},[c,f]),(0,E.useIsoLayoutEffect)(()=>{var e,t;let n,r,i,a;s&&g&&s!==g&&Y.current!==s&&I.current&&(P(I.current),_(!0),N((e=g,t=s,n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},{horizontal:(a={x:r.left+r.width/2,y:r.top+r.height/2}).x-i.x,vertical:a.y-i.y})),Y.current=s)},[s,g]),(0,E.useIsoLayoutEffect)(()=>{null!=T&&(F.current?.abort(),_(!0),k.request(()=>{v.flushSync(()=>{_(!1)}),W()}))},[h,T,W,k]),(0,E.useIsoLayoutEffect)(()=>{let e=O.current;if(!e)return;let t=(0,w.ownerDocument)(e).createElement("div");for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));I.current=t});let $=null!=T;return t=$?(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)("div",{"data-previous":!0,inert:(0,x.inertValue)(!0),ref:D,style:{...V?{"--popup-width":`${V.width}px`,"--popup-height":`${V.height}px`}:null,position:"absolute"},"data-ending-style":Z?void 0:""},"previous"),(0,n.jsx)("div",{"data-current":!0,ref:O,"data-starting-style":Z?"":void 0,children:l},h)]}):(0,n.jsx)("div",{"data-current":!0,ref:O,children:l},h),(0,E.useIsoLayoutEffect)(()=>{let e=D.current;e&&T&&e.replaceChildren(...Array.from(T.childNodes))},[T]),(0,A.usePopupAutoResize)({popupElement:p,positionerElement:m,mounted:f,content:d,onMeasureLayout:B,onMeasureLayoutComplete:z,side:a,direction:o}),{children:t,state:{activationDirection:function(e){if(e)return`${function(e,t,n,r){return e>t?n:e<-t?r:""}(e.horizontal,5,"right","left")} ${function(e,t,n,r){return e>t?n:e<-t?r:""}(e.vertical,5,"down","up")}`}(L),transitioning:$}}}e.s(["popupViewportStateMapping",0,I,"usePopupViewport",0,T],818390);let P=r.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...l}=e,o=(0,m.usePopoverRootContext)(),{side:s}=(0,g.usePopoverPositionerContext)(),u=o.useState("instantType"),{children:c,state:d}=T({store:o,side:s,children:a}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:u};return(0,h.useRenderElement)("div",e,{state:f,ref:t,props:[l,{children:c}],stateAttributesMapping:I})});var L=e.i(94242),N=e.i(564170);class O extends N.BasePopupHandle{constructor(){super((0,L.createNullPopoverStore)(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",()=>u.PopoverArrow,"Backdrop",()=>c.PopoverBackdrop,"Close",()=>p.PopoverClose,"Description",()=>f.PopoverDescription,"Handle",0,O,"Popup",()=>s.PopoverPopup,"Portal",()=>l.PopoverPortal,"Positioner",()=>o.PopoverPositioner,"Root",()=>i.PopoverRoot,"Title",()=>d.PopoverTitle,"Trigger",()=>a.PopoverTrigger,"Viewport",0,P,"createHandle",0,function(){return new O}],466914);var D=e.i(466914);
1e.s(["Popover",0,D],809700);var D=D,j=e.i(949872),k=e.i(127584),F=e.i(320887),V=e.i(380429);e.i(986223);var H=e.i(557153),Z=e.i(94540);e.i(978387);var _=e.i(708015),B=e.i(163690),z=e.i(614680),W=e.i(210405);let Y=({isoDate:e,locale:t="es-CL"})=>{let[n,r,i]=e.split("-").map(Number),a=new Date(n,r-1,i),l=new Intl.DateTimeFormat(t,{day:"numeric",month:"long",year:"numeric"}).format(a);return l.charAt(0).toUpperCase()+l.slice(1)},$="flex h-11 w-full items-center justify-between gap-2 rounded-v2 border px-4 text-sm transition-colors",U=(0,H.cn)("fixed inset-0 bg-black/40","opacity-0 transition-opacity duration-200","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[open]:opacity-100"),q=(0,H.cn)("shadow-xl fixed flex flex-col bg-v2-surface","will-change-transform","inset-x-0 bottom-0 w-full rounded-t-v2",(0,W.kbExpandH)(80),"transition-transform duration-300 ease-out","translate-y-full","data-[starting-style]:translate-y-full","data-[ending-style]:translate-y-full","data-[open]:translate-y-0");function X({availableDates:e,value:i,onSelect:a,placeholder:l="Selecciona una fecha",formatDisplay:o,weekStartsOn:s,locale:u="es-CL",disabled:c,invalid:d,className:f,popoverClassName:p}){let[m,g]=(0,r.useState)(!1),h=i?(o??(e=>Y({isoDate:e,locale:u})))(i):null;return(0,n.jsxs)(D.Root,{open:m,onOpenChange:g,children:[(0,n.jsxs)(D.Trigger,{disabled:c,"aria-invalid":d||void 0,className:(0,H.cn)($,d?"border-v2-danger":"border-v2-border hover:border-v2-primary",h?"text-v2-foreground":"text-v2-muted-foreground",c&&"cursor-not-allowed opacity-50",f),children:[(0,n.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[(0,n.jsx)(k.CalendarBlankIcon,{size:16,className:"shrink-0 text-v2-muted-foreground"}),h??l]}),(0,n.jsx)(F.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})]}),(0,n.jsx)(D.Portal,{children:(0,n.jsx)(D.Positioner,{side:"bottom",align:"start",sideOffset:4,style:{zIndex:z.LAYERS.OVERLAY},children:(0,n.jsx)(D.Popup,{className:(0,H.cn)("shadow-lg min-w-[var(--anchor-width)] rounded-v2 border border-v2-border bg-v2-surface p-4 outline-none","transition-all duration-150 ease-out","data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0","data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0",p),children:(0,n.jsx)(t.Calendar,{availableDates:e,value:i,onSelect:e=>{a?.(e),g(!1)},weekStartsOn:s,locale:u})})})})]})}function G({open:e,onClose:r,title:i,availableDates:a,value:l,onSelect:o,weekStartsOn:s,locale:u}){return(0,n.jsx)(j.Drawer.Root,{open:e,onOpenChange:e=>!e&&r(),swipeDirection:"down",children:(0,n.jsxs)(j.Drawer.Portal,{children:[(0,n.jsx)(j.Drawer.Backdrop,{className:U,style:{zIndex:z.LAYERS.OVERLAY}}),(0,n.jsx)(j.Drawer.Viewport,{children:(0,n.jsxs)(j.Drawer.Popup,{className:q,style:{zIndex:z.LAYERS.OVERLAY+1,maxHeight:"80dvh"},children:[(0,n.jsx)("div",{className:"flex justify-center pb-1 pt-3","aria-hidden":!0,children:(0,n.jsx)("div",{className:"h-1 w-10 rounded-full bg-v2-border"})}),(0,n.jsxs)(j.Drawer.Content,{className:"flex min-h-0 flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-v2-border px-5 py-4",children:[(0,n.jsx)(j.Drawer.Title,{className:"text-base font-semibold text-v2-foreground",children:i}),(0,n.jsx)(_.Button,{type:"button",onClick:r,className:(0,H.cn)("inline-flex h-8 w-8 items-center justify-center rounded-full","text-v2-muted-foreground transition-colors hover:bg-v2-muted","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-primary/30"),"aria-label":"Cerrar",children:(0,n.jsx)(V.XIcon,{size:18,"aria-hidden":!0})})]}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto overscroll-contain px-5 py-4 pb-8",children:(0,n.jsx)(t.Calendar,{availableDates:a,value:l,onSelect:e=>{o?.(e),r()},weekStartsOn:s,locale:u})})]})]})})]})})}function K({availableDates:e,value:t,onSelect:i,placeholder:a="Selecciona una fecha",drawerTitle:l="Selecciona una fecha",formatDisplay:o,weekStartsOn:s=1,locale:u="es-CL",disabled:c,loading:d,invalid:f,className:p,popoverClassName:m}){let g=(0,Z.useIsMobile)(),[h,v]=(0,r.useState)(!1);if(d)return(0,n.jsx)("div",{className:(0,H.cn)("flex h-11 w-full animate-pulse items-center rounded-v2 border border-v2-border bg-v2-muted/30 px-4 text-sm text-v2-muted-foreground",p),children:a});if(!g)return(0,n.jsx)(X,{availableDates:e,value:t,onSelect:i,placeholder:a,formatDisplay:o,weekStartsOn:s,locale:u,disabled:c,invalid:f,className:p,popoverClassName:m});let x=t?(o??(e=>Y({isoDate:e,locale:u})))(t):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(_.Button,{type:"button",disabled:c,"aria-invalid":f||void 0,onClick:()=>v(!0),className:(0,H.cn)($,(0,B.pickerTriggerStateClass)({disabled:c,invalid:f,hasValue:!!t}),p),children:[(0,n.jsxs)("span",{className:"flex items-center gap-2 truncate",children:[(0,n.jsx)(k.CalendarBlankIcon,{size:16,className:"shrink-0 text-v2-muted-foreground"}),(0,n.jsx)("span",{className:x?"text-v2-foreground":"text-v2-muted-foreground",children:x??a})]}),(0,n.jsx)(F.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})]}),(0,n.jsx)(G,{open:h,onClose:()=>v(!1),title:l,availableDates:e,value:t,onSelect:i,weekStartsOn:s,locale:u})]})}e.i(888221),e.i(64963),e.s([],1186);var J=e.i(522016);let Q={default:"text-sm",subtle:"text-xs",bold:"text-sm font-medium"};e.s(["Breadcrumb",0,function({variant:e="default",id:t,className:r,children:i}){return(0,n.jsx)("nav",{id:t,"aria-label":"breadcrumb",className:(0,H.cn)(Q[e],r),children:i})},"BreadcrumbItem",0,function({className:e,children:t}){return(0,n.jsx)("li",{className:(0,H.cn)("inline-flex items-center gap-1.5",e),children:t})},"BreadcrumbLink",0,function({href:e,className:t,children:r}){return(0,n.jsx)(J.default,{href:e,className:(0,H.cn)("transition-colors hover:text-v2-foreground",t),children:r})},"BreadcrumbList",0,function({className:e,children:t}){return(0,n.jsx)("ol",{className:(0,H.cn)("flex flex-wrap items-center gap-1.5 text-v2-muted-foreground sm:gap-2",e),children:t})},"BreadcrumbPage",0,function({className:e,children:t}){return(0,n.jsx)("span",{"aria-current":"page","aria-disabled":"true",className:(0,H.cn)("font-normal text-v2-foreground",e),children:t})},"BreadcrumbSeparator",0,function({children:e,className:t}){return(0,n.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,H.cn)("[&>svg]:size-3.5",t),children:e??(0,n.jsx)("span",{children:"/"})})}],884142),e.s([],630854);let ee={default:"text-v2-foreground",muted:"text-v2-muted-foreground",brand:"text-v2-primary",light:"text-white"},et={xl:"text-2xl font-bold sm:text-3xl md:text-4xl",lg:"text-xl font-bold sm:text-2xl md:text-3xl",md:"text-lg font-semibold sm:text-xl md:text-2xl",sm:"text-base font-semibold sm:text-lg"},en={xl:"text-lg sm:text-xl",lg:"text-base sm:text-lg",md:"text-sm sm:text-base",sm:"text-xs sm:text-sm"},er={left:"text-left",center:"text-center",right:"text-right"};
1e.s(["SectionHeading",0,function({title:e,subtitle:t,as:r="h3",size:i="lg",color:a="default",subtitleColor:l="muted",align:o="center"}){return(0,n.jsxs)("div",{className:(0,H.cn)("py-2",er[o]),children:[(0,n.jsx)(r,{className:(0,H.cn)(et[i],ee[a]),children:e}),t&&(0,n.jsx)("p",{className:(0,H.cn)("mt-2",en[i],ee[l]),children:t})]})}],6594),e.s([],57581);var ei=e.i(937806),ea=e.i(665623),el=e.i(590961),eo=e.i(268817);let es=(0,ea.cva)("flex h-10 w-10 items-center justify-center text-v2-primary transition-all duration-150 active:scale-95 disabled:pointer-events-none",{variants:{variant:{overlay:"rounded-xl border border-v2-border bg-v2-surface hover:border-v2-primary hover:bg-v2-primary hover:text-v2-primary-foreground disabled:opacity-0",gutter:"hover:opacity-70 disabled:opacity-40"}},defaultVariants:{variant:"overlay"}});function eu({direction:e,onClick:t,disabled:r,variant:i,className:a}){return(0,n.jsx)(_.Button,{onClick:t,disabled:r,"aria-label":"prev"===e?"Anterior":"Siguiente",className:(0,H.cn)(es({variant:i}),a),children:"prev"===e?(0,n.jsx)(el.CaretLeftIcon,{className:"h-5 w-5"}):(0,n.jsx)(eo.CaretRightIcon,{className:"h-5 w-5"})})}function ec({count:e,activeIndex:t,onDotClick:r}){return e<=1?null:(0,n.jsx)("div",{className:"mt-4 flex items-center justify-center gap-2",children:Array.from({length:e}).map((e,i)=>(0,n.jsx)(_.Button,{onClick:()=>r(i),className:(0,H.cn)("h-2 rounded-full transition-all duration-200",i===t?"w-6 bg-v2-primary":"w-2 bg-v2-muted-foreground/40 hover:bg-v2-muted-foreground/70"),"aria-label":`Ir al elemento ${i+1}`,"aria-current":i===t?"true":void 0},i))})}function ed({children:e,options:t,showNavigation:i=!0,showDots:a=!0,arrowVariant:l="overlay",className:o,slideClassName:s,nativeScrollViewport:u=!1}){let{emblaRef:c,activeIndex:d,slideCount:f,canScrollPrev:p,canScrollNext:m,scrollPrev:g,scrollNext:h,scrollTo:v}=(0,ei.useCarousel)(t),x=r.Children.toArray(e),b="gutter"===l;return(0,n.jsxs)("div",{className:(0,H.cn)("relative",b&&"sm:px-10",o),children:[(0,n.jsx)("div",{ref:c,className:u?"overflow-x-auto overflow-y-hidden overscroll-x-contain [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"overflow-hidden",children:(0,n.jsx)("div",{className:"flex",children:x.map((e,t)=>(0,n.jsx)("div",{className:(0,H.cn)("min-w-0 shrink-0 pr-4",s),children:e},t))})}),i&&x.length>1&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eu,{direction:"prev",onClick:g,disabled:!p,variant:l,className:(0,H.cn)("absolute top-1/2 z-10 hidden -translate-y-1/2 sm:flex",b?"left-0":"left-2")}),(0,n.jsx)(eu,{direction:"next",onClick:h,disabled:!m,variant:l,className:(0,H.cn)("absolute top-1/2 z-10 hidden -translate-y-1/2 sm:flex",b?"right-0":"right-2")})]}),a&&f>1&&(0,n.jsx)(ec,{count:f,activeIndex:d,onDotClick:v})]})}let ef={MODAL_SHOW:"Hb_modal_show",REASON_OTP_WAIT:"Modal_OTP_wait",REASON_CLOSE:"close_button_click",REASON_BACKDROP:"modal_fall_back"},ep={TITLE:"Ingresa el código",DESCRIPTION_PHONE:"Ingresa el código de verificación que enviamos a tu teléfono.",DESCRIPTION_EMAIL:"Ingresa el código de verificación que enviamos a tu correo electrónico.",SENT_VIA_WHATSAPP:"Enviamos un código por WhatsApp a",SENT_VIA_EMAIL:"Enviamos un código al correo",PHONE_VERIFIED:"Teléfono verificado",EMAIL_VERIFIED:"Correo verificado",SENDING:"Enviando código...",VERIFYING:"Verificando...",RESEND:"Reenviar código",RETRY:"Reintentar",AUTH_FAILED:"Proceso de autenticación fallido. Intenta nuevamente.",CODE_INVALID:"Código incorrecto. Intenta nuevamente."};e.s(["OTP_EVENTS",0,ef,"OTP_LABELS",0,ep],142698);let em=[30,60,120],eg=e=>em[Math.min(e,em.length-1)];e.s(["useOtpVerification",0,function({open:e,value:t,method:n,sendCode:i,verifyCode:a,onSuccess:l,onOpenChange:o,onTrackEvent:s}){let[u,c]=(0,r.useState)("idle"),[d,f]=(0,r.useState)(300),[p,m]=(0,r.useState)(3),[g,h]=(0,r.useState)(null),[v,x]=(0,r.useState)(0),[b,y]=(0,r.useState)(0),E=(0,r.useRef)(0),S=(0,r.useRef)(0),w=(0,r.useRef)(null),C=(0,r.useRef)(void 0),A=(0,r.useRef)(void 0),R=(0,r.useCallback)(()=>{c("idle"),f(300),m(3),h(null),x(0),y(0),E.current=0,S.current=0,clearInterval(C.current),clearInterval(A.current)},[]),M=(0,r.useCallback)(async()=>
1{if(c("sending"),h(null),await i(t,n))E.current=0,w.current={value:t,method:n,at:Date.now()},c("waiting"),f(300),x(eg(S.current)),s?.({event:ef.MODAL_SHOW,reason:ef.REASON_OTP_WAIT});else{if(E.current+=1,E.current>=5){l(),o(!1),R();return}await M()}},[t,n,i,l,o,s,R]),I=(0,r.useRef)(()=>{});I.current=()=>{if(e&&t){let e=w.current,r=e?(Date.now()-e.at)/1e3:1/0;e?.value===t&&e?.method===n&&r<eg(0)?(c("waiting"),f(Math.max(0,300-Math.floor(r))),x(Math.max(0,eg(0)-Math.floor(r)))):M()}e||R()},(0,r.useEffect)(()=>{I.current()},[e]),(0,r.useEffect)(()=>{if("waiting"===u)return C.current=setInterval(()=>{f(e=>e<=1?(clearInterval(C.current),c("error"),h(ep.AUTH_FAILED),0):e-1)},1e3),()=>clearInterval(C.current)},[u]),(0,r.useEffect)(()=>{if(!(v<=0))return A.current=setInterval(()=>{x(e=>e<=1?(clearInterval(A.current),0):e-1)},1e3),()=>clearInterval(A.current)},[v]);let T=(0,r.useCallback)(async e=>{c("verifying"),h(null),await a(t,e,n)?(c("success"),setTimeout(()=>{l(),o(!1),R()},1e3)):m(e=>{let t=e-1;return t<=0?(c("error"),h(ep.AUTH_FAILED)):(c("waiting"),h(ep.CODE_INVALID)),t})},[t,n,a,l,o,R]),P=(0,r.useCallback)(()=>{v>0||(h(null),m(3),S.current+=1,y(e=>e+1),M())},[v,M]);return{status:u,timeLeft:d,attemptsLeft:p,error:g,canResend:0===v&&"waiting"===u,resendCooldown:v,resendCounter:b,handleCodeComplete:T,resendCode:P,reset:R}}],768429)},937806,e=>{"use strict";var t=e.i(271645);function n(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function r(e,t){let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{let a=e[i],l=t[i];return"function"==typeof a?`${a}`==`${l}`:n(a)&&n(l)?r(a,l):a===l})}function i(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function l(e){return"string"==typeof e}function o(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return Math.abs(e)}function c(e){return Math.sign(e)}function d(e){return g(e).map(Number)}function f(e){return e[p(e)]}function p(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function g(e){return Object.keys(e)}function h(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function v(){let e=[],t={add:function(n,r,i,a={passive:!0}){let l;return"addEventListener"in n?(n.addEventListener(r,i,a),l=()=>n.removeEventListener(r,i,a)):(n.addListener(i),l=()=>n.removeListener(i)),e.push(l),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=u(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function b(e){let t=e;function n(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function y(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,a=!1;return{clear:function(){!a&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(a)return;let l=Math.round(100*e.direction(t))/100;l!==i&&(r.transform=n(l),i=l)},toggleActive:function(e){a=!e}}}let E={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function S(e,t,n){let r,i,w,C,A,R,M,I,T=e.ownerDocument,P=T.defaultView,L=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(g(n).forEach(r=>{let i=t[r],a=n[r],l=s(i)&&s(a);t[r]=l?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=g(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>
1e.concat(t),[]).map(e.matchMedia)}}}(P),N=(I=[],{init:function(e,t){return(I=t.filter(({options:e})=>!1!==L.optionsAtMedia(e).active)).forEach(t=>t.init(e,L)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){I=I.filter(e=>e.destroy())}}),O=v(),D=(i={},w={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),w},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),w},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),w},clear:function(){i={}}}),{mergeOptions:j,optionsAtMedia:k,optionsMediaQueries:F}=L,{on:V,off:H,emit:Z}=D,_=!1,B=j(E,S.globalOptions),z=j(B),W=[];function Y(t,n){_||(z=k(B=j(B,t)),W=n||W,function(){let{container:t,slides:n}=z;R=(l(t)?e.querySelector(t):t)||e.children[0];let r=l(n)?R.querySelectorAll(n):n;M=[].slice.call(r||R.children)}(),C=function t(n){let r=function(e,t,n,r,i,s,E){var S,w;let C,A,R,M,I,T,P,L,N,O,D,j,k,F,{align:V,axis:H,direction:Z,startIndex:_,loop:B,duration:z,dragFree:W,dragThreshold:Y,inViewThreshold:$,slidesToScroll:U,skipSnaps:q,containScroll:X,watchResize:G,watchSlides:K,watchDrag:J,watchFocus:Q}=s,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(A="rtl"===Z,M=(R="y"===H)||!A?1:-1,I=R?"top":A?"right":"left",T=R?"bottom":A?"left":"right",{scroll:R?"y":"x",cross:R?"x":"y",startEdge:I,endEdge:T,measureSize:function(e){let{height:t,width:n}=e;return R?t:n},direction:function(e){return e*M}}),ei=er.measureSize(et),ea={measure:function(e){return e/100*ei}},el=(S=V,w=ei,C={start:function(){return 0},center:function(e){return(w-e)/2},end:function(e){return w-e}},{measure:function(e,t){return l(S)?C[S](e):S(w,e,t)}}),eo=!B&&!!X,{slideSizes:es,slideSizesWithGaps:eu,startGap:ec,endGap:ed}=function(e,t,n,r,i,a){let{measureSize:l,startEdge:o,endEdge:s}=e,c=n[0]&&i,d=function(){if(!c)return 0;let e=n[0];return u(t[o]-e[o])}(),m=c?parseFloat(a.getComputedStyle(f(r)).getPropertyValue(`margin-${s}`)):0,g=n.map(l),h=n.map((e,t,n)=>{let r=t===p(n);return t?r?g[t]+m:n[t+1][o]-e[o]:g[t]+d}).map(u);return{slideSizes:g,slideSizesWithGaps:h,startGap:d,endGap:m}}(er,et,en,n,B||!!X,i),ef=function(e,t,n,r,i,l,o,s){let{startEdge:c,endEdge:m,direction:g}=e,h=a(n);return{groupSlides:function(e){return h?d(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?d(e).reduce((n,a,d)=>{let h=f(n)||0,v=a===p(e),x=i[c]-l[h][c],b=i[c]-l[a][m],y=r||0!==h?0:g(o),E=u(b-(!r&&v?g(s):0)-(x+y));return d&&E>t+2&&n.push(a),v&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,U,B,et,en,ec,ed),{snaps:ep,snapsAligned:em}=function(e,t,n,r,i){let{startEdge:a,endEdge:l}=e,{groupSlides:o}=i,s=o(r).map(e=>f(e)[l]-e[0][a]).map(u).map(t.measure),c=r.map(e=>n[a]-e[a]).map(e=>-u(e)),d=o(c).map(e=>e[0]).map((e,t)=>e+s[t]);return{snaps:c,snapsAligned:d}}(er,el,et,en,ef),eg=-f(ep)+f(eu),{snapsContained:eh,scrollContainLimit:ev}=function(e,t,n,r){let i,a,l=x(-t+e,0),o=n.map((e,t)=>{let{min:r,max:i}=l,a=l.constrain(e),o=t===p(n);return t?o||function(e,t){return 1>=u(e-t)}(r,a)?r:function(e,t){return 1>=u(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),s=(i=o[0],a=f(o),x(o.lastIndexOf(i),o.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[l.max];if("keepSnaps"===r)return o;let{min:n,max:i}=s;return o.slice(n,i)}(),scrollContainLimit:s}}(ei,eg,em,X),ex=eo?eh:em,{limit:eb}=(P=ex[0],{limit:x(B?P-eg:f(ex),P)}),ey=function e(t,n,r){let{constrain:i}=x(0,t),a=t+1,l=o(n);function o(e){return r?u((a+e)%a):i(e)}function s(){return e(t,l,r)}let c={get:function(){return l},set:function(e){return l=o(e),c},add:function(e){return s().set(l+e)},clone:s};return c}(p(ex),_,B),eE=ey.clone(),eS=d(n),ew=function(e,t,n,r){let i=v(),a=1e3/60,l=null,o=0,s=0;function u(e){if(!s)return;l||(l=e,n(),n());let i=e-l;for(l=e,o+=i;o>=a;)n(),o-=a;r(o/a),s&&(s=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(s),l=null,o=0,s=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(l=null,o=0)})},destroy:function(){c(),i.clear()},start:function(){s||(s=t.requestAnimationFrame(u))},stop:c,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eF),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:l,dragHandler:o,animation:s,eventHandler:u,scrollBounds:c,options:{loop:d}},f)=>{let p=e.settled(),m=!c.shouldConstrain(),g=d?p:p&&m,h=g&&!o.pointerDown();h&&s.stop();let v=n.get()*f+i.get()*(1-f);r.set(v),d&&(a.loop(e.direction()),l.loop()),t.to(r.get()),h&&u.emit("settle"),g||u.emit("scroll")})(eF,e)),eC=ex[ey.get()],eA=b(eC),eR=b(eC),eM=b(eC),eI=b(eC),eT=function(e,t,n,r,i){let a=0,l=0,o=i,s=.68,d=e.get(),f=0;function p(e){return o=e,g}function m(e){return s=e,g}let g={direction:function(){return l},duration:function(){return o},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return o?(n.set(e),a+=t/o,a*=s,d+=a,e.add(a),i=d-f):(a=0,n.set(r),e.set(r),i=t),l=c(i),f=d,g},settled:function(){return .001>u(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return g}(eA,eM,eR,eI,z),eP=function(e,t,n,r,i){let{reachedAny:a,removeOffset:l,constrain:o}=r;function s(e){return e.concat().sort((e,t)=>
1u(e)-u(t))[0]}function d(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return s(i);let a=i.filter(e=>c(e)===r);return a.length?s(a):f(i)-n}return{byDistance:function(n,r){let s=i.get()+n,{index:c,distance:f}=function(n){let r=e?l(n):o(n),{index:i}=t.map((e,t)=>({diff:d(e-r,0),index:t})).sort((e,t)=>u(e.diff)-u(t.diff))[0];return{index:i,distance:r}}(s),p=!e&&a(s);if(!r||p)return{index:c,distance:n};let m=n+d(t[c]-f,0);return{index:c,distance:m}},byIndex:function(e,n){let r=d(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:d}}(B,ex,eg,eb,eI),eL=function(e,t,n,r,i,a,l){function o(i){let o=i.distance,s=i.index!==t.get();a.add(o),o&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(i.index),l.emit("select"))}return{distance:function(e,t){o(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);o(i.byIndex(r.get(),n))}}}(ew,ey,eE,eT,eP,eI,E),eN=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eb),eO=v(),eD=(N={},O=null,D=null,j=!1,{init:function(){L=new IntersectionObserver(e=>{j||(e.forEach(e=>{N[n.indexOf(e.target)]=e}),O=null,D=null,E.emit("slidesInView"))},{root:t.parentElement,threshold:$}
1),n.forEach(e=>L.observe(e))},destroy:function(){L&&L.disconnect(),j=!0},get:function(e=!0){if(e&&O)return O;if(!e&&D)return D;let t=g(N).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=N[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(O=t),e||(D=t),t}}),{slideRegistry:ej}=function(e,t,n,r,i,a){let l,{groupSlides:o}=i,{min:s,max:u}=r;return{slideRegistry:(l=o(a),1===n.length?[a]:e&&"keepSnaps"!==t?l.slice(s,u).map((e,t,n)=>{let r=t===p(n);return t?r?m(p(a)-f(n)[0]+1,f(n)[0]):e:m(f(n[0])+1)}):l)}}(eo,X,ex,ev,ef,eS),ek=function(e,t,n,r,i,l,s,u){let c={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(p){u&&(l.add(document,"keydown",f,!1),t.forEach((t,f)=>{l.add(t,"focus",t=>{(o(u)||u(p,t))&&function(t){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let l=n.findIndex(e=>e.includes(t));a(l)&&(i.useDuration(0),r.index(l,0),s.emit("slideFocus"))}(f)},c)}))}}}(e,n,ej,eL,eT,eO,E,Q),eF={ownerDocument:r,ownerWindow:i,eventHandler:E,containerRect:et,slideRects:en,animation:ew,axis:er,dragHandler:function(e,t,n,r,i,a,l,s,d,f,p,m,g,b,y,E,S,w){let{cross:C,direction:A}=e,R=["INPUT","SELECT","TEXTAREA"],M={passive:!1},I=v(),T=v(),P=x(50,225).constrain(b.measure(20)),L={mouse:300,touch:400},N={mouse:500,touch:600},O=y?43:25,D=!1,j=0,k=0,F=!1,V=!1,H=!1,Z=!1;function _(e){if(!h(e,r)&&e.touches.length>=2)return B(e);let t=a.readPoint(e),n=a.readPoint(e,C),l=u(t-j),o=u(n-k);if(!V&&!Z&&(!e.cancelable||!(V=l>o)))return B(e);let c=a.pointerMove(e);l>E&&(H=!0),f.useFriction(.3).useDuration(.75),s.start(),i.add(A(c)),e.preventDefault()}function B(e){var t;let n,r,i=p.byDistance(0,!1).index!==m.get(),l=a.pointerUp(e)*(y?N:L)[Z?"mouse":"touch"],o=(t=A(l),n=m.add(-1*c(t)),r=p.byDistance(t,!y).distance,y||u(t)<P?r:S&&i?.5*r:p.byIndex(n.get(),0).distance),s=function(e,t){var n,r;if(0===e||0===t||u(e)<=u(t))return 0;let i=(n=u(e),r=u(t),u(n-r));return u(i/e)}(l,o);V=!1,F=!1,T.clear(),f.useDuration(O-10*s).useFriction(.68+s/50),d.distance(o,!y),Z=!1,g.emit("pointerUp")}function z(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){w&&I.add(t,"dragstart",e=>e.preventDefault(),M).add(t,"touchmove",()=>void 0,M).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",B).add(t,"contextmenu",B).add(t,"click",z,!0);function s(s){(o(w)||w(e,s))&&function(e){let o,s=h(e,r);if((Z=s,H=y&&s&&!e.buttons&&D,D=u(i.get()-l.get())>=2,!s||0===e.button)&&(o=e.target.nodeName||"",!R.includes(o))){let r;F=!0,a.pointerDown(e),f.useFriction(0).useDuration(0),i.set(l),r=Z?n:t,T.add(r,"touchmove",_,M).add(r,"touchend",B).add(r,"mousemove",_,M).add(r,"mouseup",B),j=a.readPoint(e),k=a.readPoint(e,C),g.emit("pointerDown")}}(s)}},destroy:function(){I.clear(),T.clear()},pointerDown:function(){return F}}}(er,e,r,i,eI,function(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=r||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(h(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){let t=a(e)-a(r),l=i(e)-i(n)>170;return r=e,l&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=a(r)-a(n),l=i(e)-i(n),o=i(e)-i(r)>170,s=t/l;return l&&!o&&u(s)>.1?s:0},readPoint:a}}(er,i),eA,ew,eL,eT,eP,ey,E,ea,W,Y,q,J),eventStore:eO,percentOfView:ea,index:ey,indexPrevious:eE,limit:eb,location:eA,offsetLocation:eM,previousLocation:eR,options:s,resizeHandler:function(e,t,n,r,i,a,l){let s,c,d=[e].concat(r),f=[],p=!1;function m(e){return i.measureSize(l.measure(e))}return{init:function(i){a&&(c=m(e),f=r.map(m),s=new ResizeObserver(n=>{(o(a)||a(i,n))&&function(n){for(let a of n){if(p)return;let n=a.target===e,l=r.indexOf(a.target),o=n?c:f[l];if(u(m(n?e:r[l])-o)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{d.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,E,i,n,er,G,ee),scrollBody:eT,scrollBounds:function(e,t,n,r,i){let a=i.measure(10),l=i.measure(50),o=x(.1,.99),s=!1;function c(){return!s&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let s=e.reachedMin(t.get())?"min":"max",d=u(e[s]-t.get()),f=n.get()-t.get(),p=o.constrain(d/l);n.subtract(f*p),!i&&u(f)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}(eb,eM,eI,eT,ea),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:a}=x(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?a(n.get()):-1===t&&i(n.get())))return;let l=-1*t*e;
1r.forEach(e=>e.add(l))}}}(eg,eb,eM,[eA,eM,eR,eI]),scrollProgress:eN,scrollSnapList:ex.map(eN.get),scrollSnaps:ex,scrollTarget:eP,scrollTo:eL,slideLooper:function(e,t,n,r,i,a,l,o,s){let u=d(i),c=d(i).reverse(),f=g(m(c,l[0]),n,!1).concat(g(m(u,t-l[0]-1),-n,!0));function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function g(i,l,u){let c=a.map((e,n)=>({start:e-r[n]+.5+l,end:e+t-.5+l}));return i.map(t=>{let r=u?0:-n,i=u?n:0,a=c[t][u?"end":"start"];return{index:t,loopPoint:a,slideLocation:b(-1),translate:y(e,s[t]),target:()=>o.get()>a?r:i}})}return{canLoop:function(){return f.every(({index:e})=>.1>=p(u.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:f}}(er,ei,eg,es,eu,ep,ex,eM,n),slideFocus:ek,slidesHandler:(F=!1,{init:function(e){K&&(k=new MutationObserver(t=>{!F&&(o(K)||K(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),E.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){k&&k.disconnect(),F=!0}}),slidesInView:eD,slideIndexes:eS,slideRegistry:ej,slidesToScroll:ef,target:eI,translate:y(er,t)};return eF}(e,R,M,T,P,n,D);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(z),F([B,...W.map(({options:e})=>e)]).forEach(e=>O.add(e,"change",$)),z.active&&(C.translate.to(C.location.get()),C.animation.init(),C.slidesInView.init(),C.slideFocus.init(G),C.eventHandler.init(G),C.resizeHandler.init(G),C.slidesHandler.init(G),C.options.loop&&C.slideLooper.loop(),R.offsetParent&&M.length&&C.dragHandler.init(G),A=N.init(G,W)))}function $(e,t){let n=X();U(),Y(j({startIndex:n},e),t),D.emit("reInit")}function U(){C.dragHandler.destroy(),C.eventStore.clear(),C.translate.clear(),C.slideLooper.clear(),C.resizeHandler.destroy(),C.slidesHandler.destroy(),C.slidesInView.destroy(),C.animation.destroy(),N.destroy(),O.clear()}function q(e,t,n){z.active&&!_&&(C.scrollBody.useBaseFriction().useDuration(!0===t?0:z.duration),C.scrollTo.index(e,n||0))}function X(){return C.index.get()}let G={canScrollNext:function(){return C.index.add(1).get()!==X()},canScrollPrev:function(){return C.index.add(-1).get()!==X()},containerNode:function(){return R},internalEngine:function(){return C},destroy:function(){_||(_=!0,O.clear(),U(),D.emit("destroy"),D.clear())},off:H,on:V,emit:Z,plugins:function(){return A},previousScrollSnap:function(){return C.indexPrevious.get()},reInit:$,rootNode:function(){return e},scrollNext:function(e){q(C.index.add(1).get(),e,-1)},scrollPrev:function(e){q(C.index.add(-1).get(),e,1)},scrollProgress:function(){return C.scrollProgress.get(C.offsetLocation.get())},scrollSnapList:function(){return C.scrollSnapList},scrollTo:q,selectedScrollSnap:X,slideNodes:function(){return M},slidesInView:function(){return C.slidesInView.get()},slidesNotInView:function(){return C.slidesInView.get(!1)}};return Y(t,n),setTimeout(()=>D.emit("init"),0),G}function w(e={},n=[]){let a=(0,t.useRef)(e),l=(0,t.useRef)(n),[o,s]=(0,t.useState)(),[u,c]=(0,t.useState)(),d=(0,t.useCallback)(()=>{o&&o.reInit(a.current,l.current)},[o]);return(0,t.useEffect)(()=>{r(a.current,e)||(a.current=e,d())},[e,d]),(0,t.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=i(e),a=i(t);return n.every((e,t)=>r(e,a[t]))}(l.current,n)&&(l.current=n,d())},[n,d]),(0,t.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&u){S.globalOptions=w.globalOptions;let e=S(u,a.current,l.current);return s(e),()=>e.destroy()}s(void 0)},[u,s]),[c,o]}S.globalOptions=void 0,w.globalOptions=void 0,e.s(["useCarousel",0,function(e){let[n,r]=w({align:"start",containScroll:"trimSnaps",...e}),[i,a]=(0,t.useState)(0),[l,o]=(0,t.useState)(0),[s,u]=(0,t.useState)(!1),[c,d]=(0,t.useState)(!1),f=(0,t.useCallback)(()=>{r&&(o(r.scrollSnapList().length),a(r.selectedScrollSnap()),u(r.canScrollPrev()),d(r.canScrollNext()))},[r]);(0,t.useEffect)(()=>{if(r)return f(),r.on("select",f),r.on("reInit",f),()=>{r.off("select",f),r.off("reInit",f)}},[r,f]);let p=(0,t.useCallback)(()=>r?.scrollPrev(),[r]);return{emblaRef:n,activeIndex:i,slideCount:l,canScrollPrev:s,canScrollNext:c,scrollPrev:p,scrollNext:(0,t.useCallback)(()=>r?.scrollNext(),[r]),scrollTo:(0,t.useCallback)(e=>r?.scrollTo(e),[r])}}],937806)},302907,935216,158421,122646,94242,549237,e=>{"use strict";var t=e.i(843476),n=e.i(227930),r=e.i(271645),i=e.i(575108);let a=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),l=r.forwardRef((e,t)=>
1r.createElement(i.default,{ref:t,...e,weights:a}));l.displayName="PlusIcon",e.i(986223);var o=e.i(557153);e.s(["CartPlusIcon",0,function({size:e=20,className:r}){let i=Math.round(.4*e);return(0,t.jsxs)("span",{className:(0,o.cn)("relative inline-flex",r),children:[(0,t.jsx)(n.ShoppingCartIcon,{size:e,weight:"regular"}),(0,t.jsx)("span",{className:(0,o.cn)("absolute -right-1 -top-1","flex items-center justify-center","rounded-full bg-white","ring-[1.5px] ring-v2-promo"),style:{width:i+1,height:i+1},"aria-hidden":!0,children:(0,t.jsx)(l,{size:i,weight:"bold",className:"text-v2-promo"})})]})}],302907),e.s(["GoogleLogo",0,function(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",...e,children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.84z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}],935216),e.s([],158421);var s=e.i(17989),u=e.i(46420),c=e.i(733332);let d=r.createContext(void 0);function f(e){let t=r.useContext(d);if(void 0===t&&!e)throw Error((0,c.default)(47));return t}e.s(["PopoverRootContext",0,d,"usePopoverRootContext",0,f],122646);var p=e.i(174080),m=e.i(301252),g=e.i(439957),h=e.i(956789),v=e.i(56434),x=e.i(18478),b=e.i(264111),y=e.i(116786),E=e.i(990627),S=e.i(638396);let w={...y.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class C extends m.ReactStore{constructor(e,t,n){const r=new E.PopupTriggerMap;super(A(e,r,t,n),R(r),w)}setOpen=(e,t)=>{let n,r=t.reason===v.REASONS.triggerHover,i=t.reason===v.REASONS.triggerPress&&0===t.event.detail,a=!e&&(t.reason===v.REASONS.escapeKey||null==t.reason),l=(0,b.attachPreventUnmountOnClose)(t),o=this.select("activeTriggerId");if(e||t.reason!==v.REASONS.closePress||null!=t.trigger||null==o||(t.trigger=this.context.triggerElements.getById(o)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n={open:e,openChangeReason:t.reason};(0,b.setPopupOpenState)(n,e,t.trigger,l()),this.update(n)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(S.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),p.flushSync(s)):s(),i?n="click":a?n="dismiss":t.reason===v.REASONS.focusOut&&(n="focus"),this.set("instantType",n)}}function A(e,t,n,r=!1){let i={...(0,y.createInitialPopupStoreState)(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i.floatingRootContext=(0,y.createPopupFloatingRootContext)(t,n,r),i}function R(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),stickIfOpenTimeout:new g.Timeout,triggerElements:e}}e.s(["PopoverStore",0,C,"createNullPopoverStore",0,function(){let e=new E.PopupTriggerMap;return Object.assign(new x.NullStore(Object.freeze(A(void 0,e)),Object.freeze(R(e)),w),{setOpen:h.NOOP})}],94242);var M=e.i(675606);function I({props:e}){var n;let i,{children:a,open:l,defaultOpen:o=!1,onOpenChange:s,onOpenChangeComplete:u,modal:c=!1,handle:f,triggerId:p,defaultTr
1iggerId:m=null}=e,g=(n={modal:c,open:o,openProp:l,activeTriggerId:m,triggerIdProp:p},i=(0,b.usePopupRootStore)((e,t)=>new C(n,e,t)),r.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);g.useControlledProp("openProp",l),g.useControlledProp("triggerIdProp",p);let h=g.useState("open"),x=g.useState("mounted"),y=g.useState("payload");g.useContextCallback("onOpenChange",s),g.useContextCallback("onOpenChangeComplete",u),(0,b.usePopupRootSync)(g,h),(0,b.useImplicitActiveTrigger)(g);let{forceUnmount:E}=(0,b.useOpenStateTransitions)(h,g,()=>{g.update({stickIfOpen:!0,openChangeReason:null})});g.useSyncedValues({modal:c}),r.useEffect(()=>{h||g.context.stickIfOpenTimeout.clear()},[g,h]),r.useImperativeHandle(e.actionsRef,()=>({unmount:E,close:()=>g.setOpen(!1,(0,M.createChangeEventDetails)(v.REASONS.imperativeAction))}),[E,g]);let S=h||x;return(0,t.jsxs)(d.Provider,{value:g,children:[f&&(0,t.jsx)(b.PopupHandleAttachment,{handle:f,store:g}),S&&(0,t.jsx)(T,{store:g,modal:c}),"function"==typeof a?a({payload:y}):a]})}function T({store:e,modal:t}){let n=e.useState("floatingRootContext"),r=(0,s.useDismiss)(n,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),i=r.reference,a=r.floating;return(0,b.usePopupInteractionProps)(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:a}),null}e.s(["PopoverRoot",0,function(e){return f(!0)?(0,t.jsx)(I,{props:e}):(0,t.jsx)(u.FloatingTree,{children:(0,t.jsx)(I,{props:e})})}],549237)},224187,490004,e=>{"use strict";var t=e.i(843476),n=e.i(353753);e.i(986223);var r=e.i(557153),i=e.i(614680);function a({className:e,topOffset:l,style:o,...s}){return(0,t.jsx)(n.Dialog.Backdrop,{style:{zIndex:i.LAYERS.OVERLAY_BACKDROP,...void 0!==l&&{top:l},...o},className:(0,r.cn)("fixed inset-0 bg-black/30","transition-opacity duration-300","data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",e),...s})}let l=n.Dialog.Root,o=n.Dialog.Trigger,s=n.Dialog.Portal,u=n.Dialog.Popup,c=n.Dialog.Close,d=n.Dialog.Title,f=n.Dialog.Description;e.s(["DialogBackdrop",0,a,"DialogClose",0,c,"DialogDescription",0,f,"DialogPopup",0,u,"DialogPortal",0,s,"DialogRoot",0,l,"DialogTitle",0,d,"DialogTrigger",0,o],224187);var p=e.i(577854),m=e.i(210405);let g=(0,r.cn)("fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","flex flex-col","w-[calc(100vw-2rem)] max-w-lg",(0,m.kbMaxH)(90),"shadow-xl rounded-v2 bg-v2-surface outline-none","transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0");e.s(["ScrollableDialog",0,function({open:e,onOpenChange:n,title:o,footer:f,children:m,dismissible:h=!0,className:v}){return(0,t.jsx)(l,{open:e,onOpenChange:h?e=>n(e):void 0,disablePointerDismissal:!h,children:(0,t.jsxs)(s,{children:[(0,t.jsx)(a,{className:"bg-black/40"}),(0,t.jsxs)(u,{className:(0,r.cn)(g,v),style:{zIndex:i.LAYERS.OVERLAY},children:[h&&(0,t.jsx)(c,{"aria-label":"Cerrar",className:"absolute right-4 top-3 z-10 rounded-full bg-v2-surface p-2 text-v2-muted-foreground transition-colors hover:text-v2-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-v2-ring",children:(0,t.jsx)(p.XIcon,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{"data-testid":"scrollable-dialog-body",className:(0,r.cn)("min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pt-4",!f&&"pb-6"),children:[(0,t.jsx)(d,{className:(0,r.cn)("mb-4 text-lg font-bold text-v2-foreground",h&&"pr-8"),children:o}),m]}),f&&(0,t.jsx)("div",{className:"shrink-0 px-6 pb-6 pt-4",children:f})]})]})})}],490004)},859880,e=>{"use strict";var t=e.i(843476),n=e.i(577854);e.i(986223);var r=e.i(557153),i=e.i(708015);e.s(["FilterChip",0,function({label:e,onRemove:a,className:l}){return(0,t.jsxs)("div",{className:(0,r.cn)("inline-flex items-center gap-1.5 rounded-full border border-v2-border","bg-v2-surface px-3 py-1 text-xs font-medium text-v2-foreground",l),children:[(0,t.jsx)("span",{children:e}),a&&(0,t.jsx)(i.Button,{type:"button",onClick:a,className:(0,r.cn)("inline-flex h-4 w-4 items-center justify-center rounded-full","text-v2-muted-foreground transition-colors hover:bg-v2-muted hover:text-v2-foreground","focus-visible:ring-1 focus-visible:ring-v2-ring/40"),"aria-label":`Eliminar filtro ${e}`,children:(0,t.jsx)(n.XIcon,{size:10,"aria-hidden":!0})})]})}])},19849,e=>{"use strict";var t=e.i(843476),n=e.i(58243);e.i(986223);var r=e.i(557153),i=e.i(708015);e.s(["HorizontalStepper",0,({steps:e,currentStep:a,onStepClick:l,variant:o="default",className:s,contentClassName:u})=>{let c="compact"===o,d=e.length,f=e.find(e=>e.step===a);return(0,t.jsxs)("div",{className:(0,r.cn)("w-full",s),children:[c&&(0,t.jsxs)("div",{className:"block px-4 py-3 md:hidden",children:[(0,t.jsx)("div",{className:"flex",children:e.map((o,s)=>{let u=o.step<a,c=o.step===a,d=s===e.length-1,f=!u&&!c;return(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col items-center",children:[(0,t.jsx)(i.Button,{disabled:!u,onClick:()=>u&&l?.(o.step),className:(0,r.cn)("relative z-10 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border-[1.5px] text-xs font-bold transition-colors",f&&"border-[rgb(var(--v2-border))] bg-[rgb(var(--v2-surface))] text-v2-muted-foreground",(u||c)&&"border-[rgb(var(--v2-primary))] bg-[rgb(var(--v2-primary))] text-[rgb(var(--v2-primary-foreground))]",u&&"cursor-pointer"),"aria-label":`Paso ${o.step}: ${o.label}`,"aria-current":c?"step":void 0,children:u?(0,t.jsx)(n.CheckIcon,{weight:"bold",className:"h-3 w-3"}):o.step}),!d&&(0,t.jsx)("div",{className:"absolute top-[13px] h-[1.5px]",style:{left:"calc(50% + 14px)",right:"calc(-50% + 14px)",backgroundColor:s<e.findIndex(e=>e.step===a)?"rgb(var(--v2-primary))":"rgb(var(--v2-border))"}})]},o.step)})}),(0,t.jsxs)("p",{className:"mt-2 text-center text-xs",children:[(0,t.jsxs)("span",{className:"font-medium text-v2-muted-foreground",children:["Paso ",a," de ",d]}),f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-v2-muted-foreground",children:" · "}),(0,t.jsx)("span",{className:"font-semibold text-v2-foreground",children:f.label})]})]})]}),(0,t.jsx)("div",{className:(0,r.cn)("px-4 py-6",c&&"hidden md:block"),children:(0,t.jsx)("div",{className:(0,r.cn)("flex",u),children:e.map((o,s)=>{let u=o.step<a,c=o.step===a,d=s===e.length-1,f=!u&&!c;return(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col items-center px-1",children:[(0,t.jsx)(i.Button,{disabled:!u,onClick:()=>u&&l?.(o.step),className:(0,r.cn)("relative z-10 flex h-9 w-9 shrink-0 items-center justify-center rounded-full border-2 text-sm font-bold transition-colors",f&&"border-v2-border bg-v2-surface text-v2-muted-foreground",(u||c)&&"border-v2-primary bg-v2-primary text-v2-primary-foreground",u&&"cursor-pointer"),"aria-label":`Paso ${o.step}: ${o.label}`,"aria-current":c?"step":void 0,children:u?(0,t.jsx)(n.CheckIcon,{weight:"bold",className:"h-4 w-4"}):o.step}),(0,t.jsx)(i.Button,{disabled:!u,onClick:()=>u&&l?.(o.step),className:(0,r.cn)("mt-2 hidden bg-transparent text-center text-xs leading-tight md:block",f?"text-v2-muted-foreground":"font-semibold text-v2-primary",u&&"cursor-pointer transition-opacity hover:opacity-70"),children:o.label}),!d&&(0,t.jsx)("div",{className:"absolute top-[18px] h-0.5",style:{left:"calc(50% + 18px)",right:"calc(-50% + 18px)",backgroundColor:s<e.findIndex(e=>e.step===a)?"rgb(var(--v2-primary))":"rgb(var(--v2-border))"}})]},o.step)})})})]})}])},856401,617161,e=>{"use strict";var t=e.i(843476);let n=({className:e})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-label":"Google Calendar",role:"img",viewBox:"0 0 512 512",className:e,children:[(0,t.jsx)("path",{d:"m0 0H512V512H0",fill:"#fff"}),(0,t.jsx)("path",{d:"M100 135q0-35 37-35H340v74H174V340H100",fill:"#4285f4"}),(0,t.jsx)("path",{d:"m338 100v76h74v-41q0-35-35-35",fill:"#1967d2"}),(0,t.jsx)("path",{d:"m100 338v39q0 35 35 35h41v-74",fill:"#188038"}),(0,t.jsx)("path",{d:"M348 338H174v74H338",fill:"#34a853"}),(0,t.jsx)("path",{d:"m338 339V174h74V338",fill:"#fbbc04"}),(0,t.jsx)("path",{d:"M338 412v-74h74",fill:"#ea4335"}),(0,t.jsx)("path",{d:"M204 229a25 22 1 1125 27h-9 9a25 22 1 11-25 27m66-52 27-19h4v96",stroke:"#4285f4",strokeWidth:"15",fill:"none"})]}),r=({className:e})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-label":"Outlook",role:"img",viewBox:"0 0 512 512",className:e,children:[(0,t.jsx)("path",{d:"m0 0H512V512H0",fill:"#fff"}),(0,t.jsx)("rect",{width:"231",height:"270",x:"168",y:"107",fill:"#05a",rx:"3%"}),(0,t.jsx)("path",{fill:"#136",d:"M398 247v23l15-8s0-7-5-9l-10-6zm-230 43v70h77v-70h-77z"}),(0,t.jsx)("path",{fill:"#17d",d:"M168 150v70h77v-70h-77zm77 70v70h77v-70h-77zm77 70v70h77v-70h-77z"}),(0,t.jsx)("path",{fill:"#3ae",d:"M245 150v70h77v-70h-77zm77 70v70h77v-70h-77z"}),(0,t.jsx)("path",{fill:"#5cf",d:"M322 150h77v70h-77z"}),(0,t.jsx)("path",{fill:"#19e",d:"M413 261 282 336s121 73 124 71c5-3 7-11 7-18V261Z"}),(0,t.jsx)("path",{fill:"#2ae",d:"M160 266c-4 3-6 7-6 12v117c0 8 6 14 14 14h230c4 0 5 0 8-2"}),(0,t.jsx)("rect",{width:"172",height:"172",x:"70",y:"172",fill:"#18e",rx:"3%"}),(0,t.jsx)("path",{fill:"#fff",d:"M155 230c14 0 22 11 22 29s-9 28-23 28c-11 0-22-10-22-28 0-15 7-29 23-29Zm-1 75c26 0 44-18 44-47 0-25-16-46-43-46-28 0-44 20-44 48 0 27 20 45 43 45Z"})]}),i=({className:e})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:e,children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"apple-cal-bg",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FAFAFA"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F0F0F0"})]})}),(0,t.jsx)("rect",{width:"440",height:"440",x:"36",y:"36",rx:"80",ry:"80",fill:"url(#apple-cal-bg)",stroke:"#E0E0E0",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M36 116 C36 71.8 71.8 36 116 36 L396 36 C440.2 36 476 71.8 476 116 L476 160 L36 160 Z",fill:"#EA3323"}),(0,t.jsx)("text",{x:"256",y:"128",fontFamily:"Helvetica, Arial, sans-serif",fontWeight:"600",fontSize:"60",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",children:"JUL"}),(0,t.jsx)("text",{x:"256",y:"340",fontFamily:"Helvetica, Arial, sans-serif",fontWeight:"300",fontSize:"240",fill:"#333333",textAnchor:"middle",dominantBaseline:"middle",children:"17"})]});e.s(["AppleCalendarIcon",0,i,"GoogleCalendarIcon",0,n,"OutlookIcon",0,r],856401);var a=e.i(708015);e.s(["AddToCalendar",0,({googleCalUrl:e,outlookCalUrl:l,onAppleClick:o,labelClassName:s="text-xs font-medium text-v2-primary"})=>(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-center gap-1",children:[(0,t.jsx)("span",{className:s,children:"Agregar al calendario"}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e&&(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",title:"Google Calendar",className:"transition-opacity hover:opacity-70",children:(0,t.jsx)(n,{className:"h-10 w-10"})}),l&&(0,t.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",title:"Outlook",className:"transition-opacity hover:opacity-70",children:(0,t.jsx)(r,{className:"h-10 w-10"})}
1),(0,t.jsx)(a.Button,{type:"button",onClick:o,title:"Apple Calendar",className:"transition-opacity hover:opacity-70",children:(0,t.jsx)(i,{className:"h-10 w-10"})})]})]})],617161)},119947,64963,e=>{"use strict";var t=e.i(843476);function n({size:e=32,color:r="#25D366"}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 478.165 478.165",width:e,height:e,"aria-hidden":!0,children:(0,t.jsx)("path",{fill:r,d:"M478.165 232.946c0 128.567-105.057 232.966-234.679 232.966-41.102 0-79.814-10.599-113.445-28.969L0 478.165l42.437-125.04c-21.438-35.065-33.77-76.207-33.77-120.159C8.667 104.34 113.763 0 243.485 0c129.623 0 234.68 104.34 234.68 232.946zM243.485 37.098c-108.802 0-197.422 87.803-197.422 195.868 0 42.915 13.986 82.603 37.576 114.879l-24.586 72.542 75.849-23.968c31.121 20.481 68.457 32.296 108.583 32.296 108.723 0 197.323-87.843 197.323-195.908 0-107.886-88.6-195.709-197.323-195.709zM361.931 286.62c-1.395-2.331-5.22-3.746-10.898-6.814-5.917-2.849-34.089-16.497-39.508-18.37-5.16-1.913-8.986-2.849-12.811 2.829-4.005 5.638-14.903 18.629-18.23 22.354-3.546 3.785-6.854 4.264-12.552 1.435-5.618-2.809-24.267-8.866-46.203-28.391-17.055-15.042-28.67-33.711-31.997-39.508-3.427-5.758-.398-8.826 2.471-11.635 2.69-2.59 5.778-6.734 8.627-10.041 2.969-3.287 3.905-5.638 5.798-9.424 1.913-3.905.936-7.192-.478-10.141-1.415-2.849-13.01-30.881-17.752-42.337-4.841-11.416-9.543-9.523-12.871-9.523-3.467 0-7.212-.478-11.117-.478-3.785 0-10.041 1.395-15.381 7.192-5.2 5.658-20.123 19.465-20.123 47.597 0 28.052 20.601 55.308 23.55 59.053 2.869 3.785 39.747 63.197 98.303 86.07 58.476 22.872 58.476 15.321 69.115 14.365 10.38-.956 34.069-13.867 38.811-27.096 4.66-13.45 4.66-24.766 3.246-27.137z"})})}e.s(["WhatsappOfficialLogo",0,n],119947);var r=e.i(271645),i=e.i(527930);e.i(986223);var a=e.i(557153),l=e.i(94540),o=e.i(80419);let s="transform 0.15s ease";e.s(["WhatsappFloatButton",0,function({whatsappText:e,onActivate:u}){let c=(0,l.useIsMobile)(),[d,f]=(0,r.useState)(!1),{containerRef:p,style:m,isDragging:g,dockEdge:h,shouldAllowClick:v,handlers:x}=(0,o.useDraggableFloat)();if(!e.trim())return null;let b=!c&&d&&!g,y=c?"56px":"50px",E=6*e.length+75,S=b?`${E}px`:y,w=b&&"right"===h?E-50:0,C="none"===m.transition?s:`${m.transition}, ${s}`;return(0,t.jsx)("div",{ref:p,style:{...m,transition:C,transform:w>0?`translateX(-${w}px)`:void 0},...x,children:(0,t.jsxs)(i.Button,{"aria-label":"Contactar por WhatsApp",className:(0,a.cn)("shadow-lg flex items-center justify-center transition-all",g&&"scale-105 opacity-80",c?"cursor-grab active:cursor-grabbing":"cursor-pointer"),style:{width:S,height:y,borderRadius:c?"9999px":"right"===h?"9999px 0 0 9999px":"0 9999px 9999px 0",backgroundColor:"#25D366",flexDirection:"left"!==h||c?"row":"row-reverse"},onMouseEnter:c?void 0:()=>f(!0),onMouseLeave:c?void 0:()=>f(!1),onClick:()=>{v()&&u()},children:[b&&(0,t.jsx)("span",{className:(0,a.cn)("whitespace-nowrap text-xs font-bold text-white","right"===h?"ml-4 mr-2":"ml-2 mr-4"),children:e}),(0,t.jsx)("div",{className:(0,a.cn)(b&&("right"===h?"mr-2":"ml-2")),children:(0,t.jsx)(n,{size:c?32:30,color:"#fff"})})]})})}],64963)},978387,429587,259420,e=>{"use strict";e.s([],978387),e.i(324880),e.i(708015),e.i(859880),e.i(224187),e.i(490004),e.i(7412),e.i(210595),e.i(179273),e.i(316475),e.i(378755),e.i(563899),e.i(302907),e.i(935216),e.i(856401),e.i(617161),e.i(119947),e.i(19849),e.i(262779),e.i(1186),e.i(667651),e.i(932177),e.i(630854),e.i(57581),e.i(487972),e.i(785218),e.i(426019);var t=e.i(843476),n=e.i(211543),r=e.i(271645),i=e.i(575108);let a=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,
1151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),l=r.forwardRef((e,t)=>r.createElement(i.default,{ref:t,...e,weights:a}));l.displayName="WarningIcon";var o=e.i(901589);let s=r.forwardRef((e,t)=>r.createElement(i.default,{ref:t,...e,weights:o.default}));s.displayName="WarningCircleIcon",e.s(["WarningCircleIcon",0,s],429587),e.i(986223);var u=e.i(557153);let c={info:{container:"border-v2-primary/20 bg-v2-primary/5 text-v2-foreground",icon:(0,t.jsx)(n.InfoIcon,{className:"h-5 w-5 text-v2-primary",weight:"fill"})},warning:{container:"border-amber-300/30 bg-amber-50 text-amber-900",icon:(0,t.jsx)(l,{className:"h-5 w-5 text-amber-500",weight:"fill"})},error:{container:"border-red-200 bg-red-50 text-red-900",icon:(0,t.jsx)(s,{className:"h-5 w-5 text-red-500",weight:"fill"})}};e.s(["InfoBox",0,function({children:e,variant:n="info",className:r}){let i=c[n];return(0,t.jsxs)("div",{className:(0,u.cn)("flex items-start gap-3 rounded-xl border p-4 text-sm",i.container,r),role:"error"===n?"alert":void 0,children:[(0,t.jsx)("span",{className:"mt-0.5 shrink-0",children:i.icon}),(0,t.jsx)("div",{children:e})]})}],259420)},210405,e=>{"use strict";let t="max-h-[var(--visual-viewport-height,90dvh)]",n={60:"max-h-[var(--visual-viewport-height,60dvh)]",85:"max-h-[var(--visual-viewport-height,85dvh)]",90:t},r="max-h-[calc(var(--visual-viewport-height,92dvh)_-_1.5rem)]",i={80:"max-h-[calc(var(--visual-viewport-height,80dvh)_-_1.5rem)]",85:"max-h-[calc(var(--visual-viewport-height,85dvh)_-_1.5rem)]",90:"max-h-[calc(var(--visual-viewport-height,90dvh)_-_1.5rem)]",92:r};e.s(["kbCollapse",0,function(){return"grid grid-rows-[1fr] transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none [[data-keyboard-open]_&]:grid-rows-[0fr] [[data-keyboard-open]_&]:opacity-0 [[data-keyboard-open]_&]:pointer-events-none"},"kbExpandH",0,function(e){let t=i[e]??r;return`${t} [[data-keyboard-open]_&]:!top-[var(--visual-viewport-offset-top,0px)] [[data-keyboard-open]_&]:!bottom-auto [[data-keyboard-open]_&]:!h-[var(--visual-viewport-height,100dvh)] [[data-keyboard-open]_&]:!max-h-[var(--visual-viewport-height,100dvh)] [[data-keyboard-open]_&]:!rounded-t-none [[data-keyboard-open]_&]:transition-[height,top,border-radius] [[data-keyboard-open]_&]:duration-200 [[data-keyboard-open]_&]:ease-out`},"kbMaxH",0,function(e){return n[e]??t}])},785218,139486,426019,e=>{"use strict";e.s([],785218),e.s(["OtpVerification",()=>A],139486);var t=e.i(843476),n=e.i(271645),r=e.i(768429),i=e.i(353753),a=e.i(380429);e.i(986223);var l=e.i(557153);e.i(978387);var o=e.i(708015),s=e.i(614680),u=e.i(571446),c=e.i(109089),d=e.i(442534),f=e.i(142698);let p=n.default.memo(function({status:e,error:r,handleCodeComplete:i,value:a,method:o}
1){let s=(0,n.useRef)(null),[c,p]=(0,n.useState)("");(0,n.useEffect)(()=>{"waiting"===e&&requestAnimationFrame(()=>{s.current?.focus()})},[e]);let m="verifying"===e,g="waiting"===e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-center text-sm text-v2-muted-foreground",children:["phone"===o?f.OTP_LABELS.SENT_VIA_WHATSAPP:f.OTP_LABELS.SENT_VIA_EMAIL," ",(0,t.jsx)("span",{className:"font-semibold text-v2-foreground",children:a})]}),(0,t.jsxs)(u.Field.Root,{children:[(0,t.jsx)(u.Field.Label,{className:"sr-only",children:"Código de verificación"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:(0,l.cn)("flex items-center gap-2",m&&"opacity-60"),"aria-hidden":!0,children:Array.from({length:6},(e,n)=>{let i=n<c.length,a=n===c.length&&g;return(0,t.jsx)("div",{className:(0,l.cn)("flex h-12 w-10 items-center justify-center rounded-lg border","text-lg font-semibold transition-colors","bg-v2-surface text-v2-foreground",a?"border-v2-primary ring-2 ring-v2-ring/40":i?"border-v2-border":"border-v2-border/60",r&&g&&"border-red-400"),children:c[n]||""},n)})}),(0,t.jsx)(u.Field.Control,{ref:s,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:6,autoComplete:"one-time-code",disabled:m,value:c,onChange:function(e){let t=e.target.value.replace(/\D/g,"").slice(0,6);p(t),6===t.length&&i(t)},className:"absolute inset-0 cursor-pointer opacity-0"})]})]}),m&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(d.SpinnerGapIcon,{size:16,className:"animate-spin text-v2-primary","aria-hidden":!0}),(0,t.jsx)("span",{className:"text-sm text-v2-muted-foreground",children:f.OTP_LABELS.VERIFYING})]}),r&&g&&(0,t.jsx)("p",{className:"text-center text-xs text-red-600",children:r})]})});function m({value:e,method:n,otp:r}){let i,a,{status:s,timeLeft:u,attemptsLeft:g,error:h,canResend:v,resendCooldown:x,resendCounter:b,handleCodeComplete:y}=r;return"success"===s?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-8",children:[(0,t.jsx)(c.CheckCircleIcon,{size:48,weight:"fill",className:"text-green-500","aria-hidden":!0}),(0,t.jsx)("p",{className:"text-lg font-semibold text-v2-foreground",children:"phone"===n?f.OTP_LABELS.PHONE_VERIFIED:f.OTP_LABELS.EMAIL_VERIFIED})]}):"sending"===s?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 py-8",children:[(0,t.jsx)(d.SpinnerGapIcon,{size:32,className:"animate-spin text-v2-primary","aria-hidden":!0}),(0,t.jsx)("p",{className:"text-sm text-v2-muted-foreground",children:f.OTP_LABELS.SENDING})]}):"error"===s&&g<=0?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 py-6",children:[(0,t.jsx)("p",{className:"text-center text-sm text-red-600",children:h}),(0,t.jsx)(o.Button,{type:"button",onClick:()=>r.resendCode(),className:(0,l.cn)("rounded-v2-button bg-v2-primary px-6 py-2.5 text-sm font-medium text-white","transition-colors hover:bg-v2-primary/90"),children:f.OTP_LABELS.RETRY})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center gap-5",children:[(0,t.jsx)(p,{status:s,error:h,handleCodeComplete:y,value:e,method:n},b),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsxs)("p",{className:"text-xs text-v2-muted-foreground",children:["Tiempo restante:"," ",(0,t.jsx)("span",{className:"font-medium",children:(i=Math.floor(u/60),a=u%60,`${i}:${a<10?`0${a}`:a}`)})]}),(0,t.jsxs)("p",{className:"text-xs text-v2-muted-foreground",children:["Intentos: ",g,"/",3]})]}),(0,t.jsx)(o.Button,{variant:"ghost",type:"button",disabled:!v,onClick:()=>r.resendCode(),className:(0,l.cn)(!v&&"cursor-not-allowed !text-v2-muted-foreground/50 !no-underline"),children:v?f.OTP_LABELS.RESEND:`Reenviar en ${x}s`})]})}function g({open:e,onOpenChange:n,value:r,method:u,otp:c,onTrackEvent:d}){let p="phone"===u?f.OTP_LABELS.DESCRIPTION_PHONE:f.OTP_LABELS.DESCRIPTION_EMAIL;return(0,t.jsx)(i.Dialog.Root,{open:e,onOpenChange:(e,t)=>
1(function({nextOpen:e,eventDetails:t}){if(!e){let e="outside-press"===t.reason?f.OTP_EVENTS.REASON_BACKDROP:f.OTP_EVENTS.REASON_CLOSE;d?.({event:f.OTP_EVENTS.MODAL_SHOW,reason:e})}n(e)})({nextOpen:e,eventDetails:t}),children:(0,t.jsxs)(i.Dialog.Portal,{children:[(0,t.jsx)(i.Dialog.Backdrop,{className:(0,l.cn)("fixed inset-0 hidden bg-black/40 md:block","transition-opacity duration-200","data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"),style:{zIndex:s.LAYERS.OVERLAY_BACKDROP}}),(0,t.jsxs)(i.Dialog.Popup,{className:(0,l.cn)("fixed left-1/2 top-1/2 hidden -translate-x-1/2 -translate-y-1/2","shadow-xl w-[90vw] max-w-sm rounded-2xl bg-white md:flex md:flex-col","transition-[transform,opacity] duration-200","data-[ending-style]:scale-95 data-[ending-style]:opacity-0","data-[starting-style]:scale-95 data-[starting-style]:opacity-0"),style:{zIndex:s.LAYERS.OVERLAY},children:[(0,t.jsxs)("div",{className:"relative flex shrink-0 items-center justify-center border-b border-v2-border px-6 py-4",children:[(0,t.jsx)(i.Dialog.Title,{className:"text-base font-semibold text-v2-foreground",children:f.OTP_LABELS.TITLE}),(0,t.jsx)(i.Dialog.Description,{className:"sr-only",children:p}),(0,t.jsx)(i.Dialog.Close,{render:(0,t.jsx)(o.Button,{"aria-label":"Cerrar",className:"absolute right-4 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full text-v2-muted-foreground hover:bg-v2-border/50"}),children:(0,t.jsx)(a.XIcon,{size:20})})]}),(0,t.jsx)("div",{className:"p-6",children:(0,t.jsx)(m,{value:r,method:u,otp:c})})]})]})})}var h=e.i(949872),v=e.i(210405);let x=(0,l.cn)("fixed inset-0 bg-black/40 md:hidden","opacity-0 transition-opacity duration-200","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[open]:opacity-100"),b=(0,l.cn)("shadow-xl fixed flex flex-col bg-v2-surface md:hidden","will-change-transform","inset-x-0 bottom-0 w-full rounded-t-[var(--v2-radius,1rem)]",(0,v.kbExpandH)(80),"transition-transform duration-300 ease-out","translate-y-full","data-[starting-style]:translate-y-full","data-[ending-style]:translate-y-full","data-[open]:translate-y-0");function y({open:e,onOpenChange:n,value:r,method:i,otp:u,onTrackEvent:c}){return(0,t.jsx)(h.Drawer.Root,{open:e,onOpenChange:n,swipeDirection:"down",children:(0,t.jsxs)(h.Drawer.Portal,{children:[(0,t.jsx)(h.Drawer.Backdrop,{className:x,style:{zIndex:s.LAYERS.OVERLAY_BACKDROP}}),(0,t.jsx)(h.Drawer.Viewport,{className:"md:hidden",children:(0,t.jsxs)(h.Drawer.Popup,{className:b,style:{zIndex:s.LAYERS.OVERLAY},children:[(0,t.jsx)("div",{className:"flex justify-center pb-1 pt-3","aria-hidden":!0,children:(0,t.jsx)("div",{className:"h-1 w-10 rounded-full bg-v2-border"})}),(0,t.jsxs)(h.Drawer.Content,{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-v2-border px-5 py-4",children:[(0,t.jsx)(h.Drawer.Title,{className:"text-base font-semibold text-v2-foreground",children:f.OTP_LABELS.TITLE}),(0,t.jsx)(o.Button,{type:"button",onClick:function(){c?.({event:f.OTP_EVENTS.MODAL_SHOW,reason:f.OTP_EVENTS.REASON_CLOSE}),n(!1)},className:(0,l.cn)("inline-flex h-8 w-8 items-center justify-center rounded-full","text-v2-muted-foreground transition-colors hover:bg-v2-muted","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-primary/30"),"aria-label":"Cerrar",children:(0,t.jsx)(a.XIcon,{size:18,"aria-hidden":!0})})]}),(0,t.jsx)("div",{className:"overflow-y-auto p-6 pb-10",children:(0,t.jsx)(m,{value:r,method:i,otp:u})})]})]})})]})})}let E="(min-width: 768px)";function S(e){let t=window.matchMedia(E);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function w(){return window.matchMedia(E).matches}function C(){return!0}function A({open:e,onOpenChange:i,value:a,method:l,sendCode:o,verifyCode:s,onSuccess:u,onTrackEvent:c}){let d=(0,n.useSyncExternalStore)(S,w,C),f=(0,r.useOtpVerification)({open:e,value:a,method:l,sendCode:o,verifyCode:s,onSuccess:u,onOpenChange:i,onTrackEvent:c}),p=d&&e,m=!d&&e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{open:p,onOpenChange:i,value:a,method:l,onTrackEvent:c,otp:f}),(0,t.jsx)(y,{open:m,onOpenChange:i,value:a,method:l,onTrackEvent:c,otp:f})]})}e.i(189722),e.i(890945),e.i(522016),e.i(57581),e.i(6594),e.i(630854),e.i(884142);var R=e.i(752017);R.SitesNames.SALAZAR_ISRAEL,R.SitesNames.WIGO_MOTORS,R.SitesNames.PORTILLO,R.SitesNames.COSECHE,R.SitesNames.SERVIMAQ,R.SitesNames.CLICAR,R.SitesNames.CARFLEX;var M=e.i(681307);let I=M.z.object({url:M.z.string(),alt:M.z.string().optional()});M.z.object({mobile:I.optional(),tablet:I.optional(),desktop:I.optional(),href:M.z.string().optional(),borderRadius:M.z.enum
1(["none","sm","md","lg","xl","2xl"]).optional()}),M.z.object({title:M.z.string().default("Heading"),subtitle:M.z.string().optional(),as:M.z.enum(["h1","h2","h3","h4","span","p"]).default("h2"),size:M.z.enum(["xl","lg","md","sm"]).default("lg"),color:M.z.enum(["default","muted","brand","light"]).default("default"),subtitleColor:M.z.enum(["default","muted","brand","light"]).default("muted"),align:M.z.enum(["left","center"]).default("center")}),M.z.object({items:M.z.array(M.z.object({label:M.z.string(),href:M.z.string().optional()})).min(1)}),M.z.object({size:M.z.enum(["sm","md","lg","xl"]).default("md")}),e.s([],426019)},189722,e=>{"use strict";var t=e.i(843476);e.i(652605);var n=e.i(658977),r=e.i(271645);function i({config:e,trackEvent:n,children:a}){let l=(0,r.useRef)(null),o=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!e.onView||o.current)return;let t=l.current;if(!t)return;let r=new IntersectionObserver(([t])=>{t.isIntersecting&&!o.current&&(o.current=!0,n(e.onView),r.disconnect())},{threshold:.5});return r.observe(t),()=>r.disconnect()},[e.onView,n]);let s=()=>{e.onClick&&n(e.onClick)};return(0,t.jsx)("div",{ref:l,onClick:s,role:e.onClick?"button":void 0,tabIndex:e.onClick?0:void 0,onKeyDown:e.onClick?e=>{("Enter"===e.key||" "===e.key)&&s()}:void 0,children:a})}var a=e.i(890945);e.s(["AnalyticsBlock",0,function({config:e,site:r,children:l}){let{trackEvent:o}=(0,n.useTrackEvent)({site:r}),s=(0,t.jsx)(i,{config:e,trackEvent:o,children:l});return e.onItemEvent?(0,t.jsx)(a.ItemTrackingProvider,{config:e.onItemEvent,trackEvent:o,children:s}):s}],189722)},890945,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let r=(0,n.createContext)({});e.s(["ItemTrackingProvider",0,function({config:e,trackEvent:i,children:a}){let l=(0,n.useCallback)((t,n,r)=>{let a=e[t];a&&i({...a,item_name:n.name,item_id:n.slug,index:r})},[e,i]);return(0,t.jsx)(r.Provider,{value:{trackItemEvent:l},children:a})},"useItemTracking",0,()=>(0,n.useContext)(r)])},932177,394258,96533,e=>{"use strict";var t=e.i(843476),n=e.i(271645);e.s([],564623),e.i(564623);var r=e.i(502077),i=e.i(828918),a=e.i(388940),l=e.i(713203);function o(e){let[t,r]=n.useState({current:e,previous:null});return Object.is(e,t.current)||r({current:e,previous:t.current}),t.previous}e.s(["usePreviousValue",0,o],394258);var s=e.i(590803),u=e.i(951437),c=e.i(146376),d=e.i(667865),f=e.i(446265),p=e.i(334346),m=e.i(301252),g=e.i(956789),h=e.i(385689),v=e.i(17989),x=e.i(265858),b=e.i(260891),y=e.i(736760),E=e.i(733332);let S=n.createContext(null);function w(){let e=n.useContext(S);if(null===e)throw Error((0,E.default)(60));return e}var C=e.i(469690),A=e.i(381104),R=e.i(538489),M=e.i(223910),I=e.i(484325),T=e.i(42191);let P=e=>e.id,L=e=>e.labelId,N=e=>e.modal,O=e=>e.items,D=e=>e.itemToStringLabel,j=e=>e.isItemEqualToValue,k=e=>e.value,F=e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return null!=t&&(n&&Array.isArray(t)?t.length>0:""!==(0,T.stringifyAsValue)(t,r))},V=(e,t)=>!!t&&(0,T.hasNullItemLabel)(e.items),H=e=>e.open,Z=e=>e.mounted,_=e=>e.forceMount,B=e=>e.transitionStatus,z=e=>e.openMethod,W=e=>e.activeIndex,Y=e=>e.selectedIndex,$=(e,t)=>e.activeIndex===t,U=(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>(0,I.compareItemEquality)(t,e,n)):(0,I.compareItemEquality)(t,r,n)},q=(e,t)=>e.selectedIndex===t,X=e=>e.popupProps,G=e=>e.triggerProps,K=e=>e.triggerElement,J=e=>e.positionerElement,Q=e=>e.listElement,ee=e=>e.popupSide,et=e=>e.scrollUpArrowVisible,en=e=>e.scrollDownArrowVisible,er=e=>e.hasScrollArrows;var ei=e.i(675606),ea=e.i(56434),el=e.i(137584),eo=e.i(884708),es=e.i(743024),eu=e.i(606039),ec=e.i(32199),ed=e.i(201675);function ef(e,t){return Math.max(0,e-t)}function ep(e,t){if(t<=0)return 0;let n=(0,ed.clamp)(e,0,t),r=t-n,i=n<=1,a=r<=1;return i&&a?n<=r?0:t:i?0:a?t:n}var em=e.i(264111),eg=e.i(176782),eh=e.i(552245),ev=e.i(875812),ex=e.i(897886),eb=e.i(450001);let ey=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;delete a.id;let l=(0,C.useFieldRootContext)(),{store:o}=w(),s=(0,p.useStore)(o,K),u=(0,p.useStore)(o,P),c=(0,eb.getDefaultLabelId)(u),d=(0,ex.useLabel)({id:c,fallbackControlId:s?.id??u,setLabelId(e){let t="function"==typeof e?e(o.state.labelId):e;o.set("labelId",t)}});return(0,eh.useRenderElement)("div",e,{ref:t,state:l.state,props:[d,a],stateAttributesMapping:ev.fieldValidityMapping})});var eE=e.i(108868),eS=e.i(439957),ew=e.i(247778),eC=e.i(405005),eA=e.i(264042),eR=e.i(647554),eM=e.i(596296),eI=e.i(540886);let eT={...eC.pressableTriggerOpenStateMapping,...ev.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},eP=n.forwardRef(function(e,t){let{render:r,className:i,id:a,disabled:l=!1,nativeButton:o=!0,style:s,...u}=e,{setTouched:c,setFocused:d,validationMode:m,state:g,disabled:h}=(0,C.useFieldRootContext)(),{labelId:v}=(0,ew.useLabelableContext)(),{store:x,setOpen:b,selectionRef:y,validation:E,readOnly:S,required:A,alignItemWithTriggerActiveRef:M,disabled:I}=w(),T=h||I||l,N=(0,p.useStore)(x,H),O=(0,p.useStore)(x,Z),D=(0,p.useStore)(x,k),j=(0,p.useStore)(x,G),V=(0,p.useStore)(x,J),_=(0,p.useStore)(x,Q),B=(0,p.useStore)(x,ee),z=(0,p.useStore)(x,P),W=(0,p.useStore)(x,L),Y=(0,p.useStore)(x,F),$=O&&V?B:null,U=a??z,q=(0,eb.resolveAriaLabelledBy)(v,W);(0,R.useLabelableId)({id:U});let X=(0,f.useValueAsRef)(V),K=n.useRef(null),{getButtonProps:et,buttonRef:en}=(0,eI.useButton)({disabled:T,native:o}),er=x.useStateSetter("triggerElement"),el=(0,eS.useTimeout)(),eo=(0,eS.useTimeout)(),es=(0,eS.useTimeout)();n.useEffect(()=>{if(N)return es.start(400,()=>{y.current.allowUnselectedMouseUp=!0,y.current.allowSelectedMouseUp=!0}),()=>{es.clear()};y.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},eo.clear()}
1,[N,y,eo,es]);let eu=(0,eg.mergeProps)(j,{id:U,role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":N?_?.id??(0,eM.getFloatingFocusElement)(V)?.id:void 0,"aria-labelledby":q,"aria-readonly":S||void 0,"aria-required":A||void 0,tabIndex:T?-1:0,onFocus(e){d(!0),N&&M.current&&b(!1,(0,ei.createChangeEventDetails)(ea.REASONS.none,e.nativeEvent)),el.start(0,()=>{x.set("forceMount",!0)})},onBlur(e){(0,eR.contains)(V,e.relatedTarget)||(c(!0),d(!1),"onBlur"===m&&E.commit(D))},onMouseDown(e){if(N)return;let t=(0,eE.ownerDocument)(e.currentTarget);function n(e){if(!K.current)return;let t=e.target;(0,eR.contains)(K.current,t)||(0,eR.contains)(X.current,t)||(0,eA.isMouseWithinBounds)(e,K.current)||b(!1,(0,ei.createChangeEventDetails)(ea.REASONS.cancelOpen,e))}eo.start(0,()=>{t.addEventListener("mouseup",n,{once:!0})})}},u,et),ec=E.getValidationProps(T,eu);ec.role="combobox";let ed={...g,open:N,disabled:T,value:D,readOnly:S,popupSide:$,placeholder:!Y};return(0,eh.useRenderElement)("button",e,{ref:[t,K,en,er],state:ed,stateAttributesMapping:eT,props:ec})}),eL={value:()=>null},eN=n.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:l,...o}=e,{store:s,valueRef:u}=w(),c=(0,p.useStore)(s,k),d=(0,p.useStore)(s,O),f=(0,p.useStore)(s,D),m=(0,p.useStore)(s,F),g=!m&&null!=a&&null==i,h=(0,p.useStore)(s,V,g),v=null;return v="function"==typeof i?i(c):null!=i?i:g&&!h?a:Array.isArray(c)?(0,T.resolveMultipleLabels)(c,d,f):(0,T.resolveSelectedLabel)(c,d,f),(0,eh.useRenderElement)("span",e,{state:{value:c,placeholder:!m},ref:[t,u],props:[{children:v},o],stateAttributesMapping:eL})}),eO=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:l}=w(),o=(0,p.useStore)(l,H);return(0,eh.useRenderElement)("span",e,{state:{open:o},ref:t,props:[{"aria-hidden":!0,children:"▼"},a],stateAttributesMapping:eC.triggerOpenStateMapping})});var eD=e.i(726674);let ej=n.forwardRef(function(e,n){let{store:r}=w(),i=(0,p.useStore)(r,Z),a=(0,p.useStore)(r,_);return i||a?(0,t.jsx)(eD.FloatingPortal,{ref:n,...e}):null});var ek=e.i(209407);let eF={...eC.popupStateMapping,...ek.transitionStatusMapping},eV=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:l}=w(),o=(0,p.useStore)(l,H),s=(0,p.useStore)(l,Z),u=(0,p.useStore)(l,B);return(0,eh.useRenderElement)("div",e,{state:{open:o,transitionStatus:u},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:eF})});var eH=e.i(144394),eZ=e.i(53687),e_=e.i(923706);let eB=n.createContext(void 0);function ez(){let e=n.useContext(eB);if(!e)throw Error((0,E.default)(59));return e}var eW=e.i(426),eY=e.i(638396);function e$(e,t){e&&Object.assign(e.style,t)}let eU={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eq=e.i(789579),eX=e.i(33383);let eG={position:"fixed"},eK=n.forwardRef(function(e,r){let{anchor:i,className:a,render:l,positionMethod:o,side:s,align:u,sideOffset:f,alignOffset:m,collisionBoundary:g="clipping-ancestors",collisionPadding:h,arrowPadding:v,sticky:x,disableAnchorTracking:b,alignItemWithTrigger:y=!0,collisionAvoidance:E=eY.DROPDOWN_COLLISION_AVOIDANCE,style:S,...C}=e,{store:A,listRef:R,labelsRef:M,alignItemWithTriggerActiveRef:T,selectedItemTextRef:P,valuesRef:L,initialValueRef:O,popupRef:D,setValue:F,floatingContext:V}=w(),_=(0,p.useStore)(A,H),W=(0,p.useStore)(A,Z),Y=(0,p.useStore)(A,N),$=(0,p.useStore)(A,k),U=(0,p.useStore)(A,z),q=(0,p.useStore)(A,J),X=(0,p.useStore)(A,K),G=(0,p.useStore)(A,j),Q=(0,p.useStore)(A,B),ee=n.useRef(null),et=n.useRef(null),[en,er]=n.useState(y),el=W&&en&&"touch"!==U;W||en===y||er(y),n.useImperativeHandle(T,()=>el),(0,eX.useAnchoredPopupScrollLock)((el||Y)&&_,"touch"===U,q,X);let eo=(0,e_.useAnchorPositioning)({anchor:i,floatingRootContext:V,positionMethod:o,mounted:W,side:s,sideOffset:f,align:u,alignOffset:m,arrowPadding:v,collisionBoundary:g,collisionPadding:h,sticky:x,disableAnchorTracking:b??el,collisionAvoidance:E,keepMounted:!0}),es=el?"none":eo.side,eu=el?eG:eo.positionerStyles,ec={open:_,side:es,align:eo.align,anchorHidden:eo.anchorHidden};(0,c.useIsoLayoutEffect)(()=>{A.set("popupSide",eo.side)},[A,eo.side]);let ed=A.useStateSetter("positionerElement"),ef=(0,eq.usePositioner)(e,ec,{styles:eu,transitionStatus:Q,props:C,refs:[r,ed],hidden:!W,inert:!_}),ep=n.useRef(0),em=(0,d.useStableCallback)(e=>{if(0===L.current.length)return;let t=ep.current;if(ep.current=e.size,e.size===t)return;let n=(0,ei.createChangeEventDetails)(ea.REASONS.none);if(0!==t&&!A.state.multiple&&null!==$&&-1===(0,I.findItemIndex)(L.current,$,G)){let e=O.current,t=null!=e&&-1!==(0,I.findItemIndex)(L.current,e,G)?e:null;F(t,n),null===t&&(A.set("selectedIndex",null),P.current=null)}if(0!==t&&A.state.multiple&&Array.isArray($)){let e=$.filter(e=>-1!==(0,I.findItemIndex)(L.current,e,G));e.length!==$.length&&(F(e,n),0===e.length&&(A.set("selectedIndex",null),P.current=null))}if(_&&el){A.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};e$(q,e),e$(D.current,e)}}),eg=n.useMemo(()=>({...eo,side:es,alignItemWithTriggerActive:el,setControlledAlignItemWithTrigger:er,scrollUpArrowRef:ee,scrollDownArrowRef:et}),[eo,es,el,er]);return(0,t.jsx)(eZ.CompositeList,{elementsRef:R,labelsRef:M,onMapChange:em,children:(0,t.jsxs)(eB.Provider,{value:eg,children:[W&&Y&&(0,t.jsx)(eW.InternalBackdrop,{inert:(0,eH.inertValue)(!_),cutout:X}),ef]})})});var eJ=e.i(343084),eQ=e.i(574735),e0=e.i(328744),e1=e.i(333848),e2=e.i(708445),e8=e.i(61487),e4=e.i(953760);let e6="base-ui-disable-scrollbar",e3=n.createContext(void 0);function e5(e){let t=n.useContext(e3);if(void 0===t&&!e)throw Error((0,E.default)(69));return t}e.s(["useToolbarRootContext",0,e5],96533);var e7=e.i(673327),e9=e.i(253984),te=e.i(172410),tt=e.i(872855);let tn={...eC.popupStateMapping,...ek.transitionStatusMapping},tr=n.forwardRef(function(e,r){let i,{render:a,className:l,style:o,finalFocus:s,...u}=e,{store:f,popupRef:m,onOpenChangeComplete:g,setOpen:h,valueRef:v,firstItemTextRef:x,selectedItemTextRef:b,multiple:y,handleScrollArrowVisibility:E,scrollHandlerRef:S,listRef:C,highlightItemOnHover:A,floatingContext:R}=w(),{side:M,align:I,alignItemWithTriggerActive:T,isPositioned:L,setControlledAlignItemWithTrigger:N}=ez(),O=null!=e5(!0),D=(0,tt.useDirection)(),{nonce:j,disableStyleElements:k}=(0,te.useCSPContext)(),V=(0,p.useStore)(f,P),_=(0,p.useStore)(f,H),W=(0,p.useStore)(f,z),Y=(0,p.useStore)(f,Z),$=(0,p.useStore)(f,X),U=(0,p.useStore)(f,B),q=(0,p.useStore)(f,K),G=(0,p.useStore)(f,J),ee=(0,p.useStore)(f,Q),et=n.useRef(!1),en=n.useRef(!1),er=n.useRef({}),eo=(0,e2.useAnimationFrame)(),es=(0,d.useStableCallback)(e=>{var t;if(!G||!m.current||!en.current)return;let n="0px"===G.style.top,r="0px"===G.style.bottom;if(et.current||!T||!n&&!r)return void E(e);let i=tl(G),a=(t=G.getBoundingClientRect().height,t/i.y),l=(0,eE.ownerDocument)(G),o=(0,e1.ownerWindow)(G),s=o.getComputedStyle(G),u=parseFloat(s.marginTop),c=parseFloat(s.marginBottom),d=ti(o.getComputedStyle(m.current)),f=Math.min(l.documentElement.clientHeight-u-c,d),p=e.scrollTop,g=ta(e),h=null,v=e=>{G.style.height=`${e}px`},x=n?g-p:p,b=Math.min(a+x,f);if(x<=1){let t=(0,ed.clamp)(x,0,f-a);t>0&&v(a+t),e.scrollTop=n?g:0,f-(a+t)<=1&&(et.current=!0),E(e);return}if(f-b>1)h=n?1/0:0;else if(r&&p<g){let e=a+x-f;h=p-(x-e)}let y=Math.ceil(b);if(0!==y&&v(y),null!=h){let t=(0,ed.clamp)(h,0,ta(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}y>=f-1&&(et.current=!0),E(e)});n.useImperativeHandle(S,()=>es,[es]),(0,el.useOpenChangeComplete)({open:_,ref:m,onComplete(){_&&g?.(!0)}}),(0,c.useIsoLayoutEffect)(()=>{G&&m.current&&!Object.keys(er.current).length&&(er.current={top:G.style.top||"0",left:G.style.left||"0",right:G.style.right,height:G.style.height,bottom:G.style.bottom,minHeight:G.style.minHeight,maxHeight:G.style.maxHeight,marginTop:G.style.marginTop,marginBottom:G.style.marginBottom})},[m,G]),(0,c.useIsoLayoutEffect)(()=>{_||T||(en.current=!1,et.current=!1,e$(G,er.current))},[_,T,G,m]),(0,c.useIsoLayoutEffect)(()=>{let e=m.current;if(!_||!q||!G||!e||T&&!L||"ending"===f.state.transitionStatus)return;if(en.current=!0,e.style.removeProperty("--transform-origin"),!T)return void eo.request(()=>E(ee||e));let t=function(e){let{style:t}=e,n={};
1for(let[e,r]of ts)n[e]=t.getPropertyValue(e),t.setProperty(e,r,"important");return()=>{for(let[e]of ts){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}(e);try{let t,n=b.current;n?.isConnected||(n=!F(f.state)&&x.current?.isConnected?x.current:null);let r=v.current,i=(0,e1.ownerWindow)(G),a=i.getComputedStyle(G),l=i.getComputedStyle(e),o=(0,eE.ownerDocument)(q),s=tl(q),u=to(q.getBoundingClientRect(),s),c=to(G.getBoundingClientRect(),s),d=u.height,p=ee||e,m=p.scrollHeight,g=parseFloat(l.borderBottomWidth),h=parseFloat(a.marginTop)||10,y=parseFloat(a.marginBottom)||10,S=parseFloat(a.minHeight)||100,w=ti(l),R=o.documentElement.clientHeight-h-y,M=o.documentElement.clientWidth,I=R-u.bottom+d,T="rtl"===D?u.right-c.width:u.left,P=0;if(n&&r){let e=to(r.getBoundingClientRect(),s);t=to(n.getBoundingClientRect(),s),T=c.left+("rtl"===D?e.right-t.right:e.left-t.left);let i=e.top-u.top+e.height/2;P=t.top-c.top+t.height/2-i}let L=I+P+y+g,O=Math.min(R,L),j=R-h-y,k=L-O;G.style.left=`${(0,ed.clamp)(T,5,M-5-c.width)}px`,G.style.height=`${O}px`,G.style.maxHeight="none",G.style.marginTop=`${h}px`,G.style.marginBottom=`${y}px`,e.style.height="100%";let V=ta(p),H=k>=V-1;H&&(O=Math.min(R,c.height)-(k-V));let Z=u.top<20||u.bottom>R-20||Math.ceil(O)+1<Math.min(m,S),_=(i.visualViewport?.scale??1)!==1&&e0.platform.engine.webkit;if(Z||_){e$(G,er.current),N(!1);return}let B=Math.max(S,O);if(H){let e=Math.max(0,R-L);G.style.top=c.height>=j?"0":`${e}px`,G.style.height=`${O}px`,p.scrollTop=ta(p)}else G.style.bottom="0",p.scrollTop=k;if(t){let n=c.top,r=c.height,i=t.top+t.height/2,a=(0,ed.clamp)(r>0?(i-n)/r*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${a}%`)}(B===R||O>=w)&&(et.current=!0),E(p),A&&null===f.state.selectedIndex&&null===f.state.activeIndex&&null!=C.current[0]&&f.set("activeIndex",0)}finally{t()}},[f,_,G,q,v,x,b,m,E,T,N,eo,ee,C,A,D,L]),n.useEffect(()=>{if(!T||!G||!_)return;let e=(0,e1.ownerWindow)(G);return(0,eQ.addEventListener)(e,"resize",function(e){h(!1,(0,ei.createChangeEventDetails)(ea.REASONS.windowResize,e))})},[h,T,G,_]);let eu={...ee?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":y||void 0,id:`${V}-list`},onKeyDown(e){O&&e7.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onScroll(e){ee||es(e.currentTarget)},...T&&{style:ee?{height:"100%"}:eU},className:!ee&&T?e6:void 0},ec=(0,eh.useRenderElement)("div",e,{ref:[r,m],state:{open:_,transitionStatus:U,side:M,align:I},stateAttributesMapping:tn,props:[$,eu,(0,e9.getDisabledMountTransitionStyles)(U),u]});return(0,t.jsxs)(n.Fragment,{children:[!k&&(i=j,(0,t.jsx)("style",{nonce:i,href:e6,precedence:"base-ui:low",children:`.${e6}{scrollbar-width:none}.${e6}::-webkit-scrollbar{display:none}`})),(0,t.jsx)(e8.FloatingFocusManager,{context:R,modal:!1,disabled:!Y,openInteractionType:W,returnFocus:s,restoreFocus:!0,children:ec})]})});function ti(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function ta(e){return ef(e.scrollHeight,e.clientHeight)}function tl(e){return e4.platform.getScale(e)}function to(e,t){return(0,eJ.rectToClientRect)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let ts=[["transform","none"],["scale","1"],["translate","0 0"]],tu=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:l,scrollHandlerRef:o,multiple:s}=w(),{alignItemWithTriggerActive:u}=ez(),c=(0,p.useStore)(l,er),d=(0,p.useStore)(l,z),f=(0,p.useStore)(l,P),m={id:`${f}-list`,role:"listbox","aria-multiselectable":s||void 0,onScroll(e){o.current?.(e.currentTarget)},...u&&{style:eU},className:c&&"touch"!==d?e6:void 0},g=l.useStateSetter("listElement");return(0,eh.useRenderElement)("div",e,{ref:[t,g],props:[m,a]})});var tc=e.i(673553);let td=n.createContext(void 0);function tf(){let e=n.useContext(td);if(!e)throw Error((0,E.default)(57));return e}var tp=e.i(157940);let tm=n.memo(n.forwardRef(function(e,r){let{render:i,className:a,style:l,value:o=null,label:s,disabled:u=!1,nativeButton:d=!1,...f}=e,m=n.useRef(null),g=(0,tc.useCompositeListItem)({guess:!0,label:s,textRef:m}),{store:h,itemProps:v,setOpen:x,setValue:b,selectionRef:y,typingRef:E,valuesRef:S,multiple:C,selectedItemTextRef:A,disabled:R,readOnly:M}=w(),T=R||u,P=(0,p.useStore)(h,$,g.index),L=(0,p.useStore)(h,H),N=(0,p.useStore)(h,U,o),O=(0,p.useStore)(h,q,g.index),D=(0,p.useStore)(h,j),k=g.index,F=n.useRef(null);(0,c.useIsoLayoutEffect)(()=>{let e=S.current;return e[k]=o,()=>{delete e[k]}},[k,o,S]),(0,c.useIsoLayoutEffect)(()=>{let e=h.state.value,t=e;C&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),void 0!==t&&(0,I.compareItemEquality)(o,t,D)&&(h.set("selectedIndex",k),m.current&&(A.current=m.current))},[k,C,D,h,o,A]);let V=n.useRef("mouse"),Z=n.useRef(!1),{getButtonProps:_,buttonRef:B}=(0,eI.useButton)({disabled:T,focusableWhenDisabled:!0,native:d,composite:!0});function z(){y.current.dragY=0}let W=(0,eh.useRenderElement)("div",e,{ref:[B,r,g.ref,F],state:{disabled:T,selected:N,highlighted:P},props:[v,{role:"option","aria-selected":N,tabIndex:L&&P?0:-1,onKeyDown(e){h.set("activeIndex",k)," "===e.key&&E.current&&e.preventDefault()},onClick(e){let t="touch"!==V.current,n=e.nativeEvent.pointerType,r=t&&(0,tp.isVirtualClick)(e.nativeEvent)&&(void 0!==n||P),i=t&&!r&&!Z.current;Z.current=!1,T||i||function(e){if(R||M)return;let t=h.state.value;if(C){let n=Array.isArray(t)?t:[];b(N?(0,I.removeItem)(n,o,D):[...n,o],(0,ei.createChangeEventDetails)(ea.REASONS.itemPress,e))}else b(o,(0,ei.createChangeEventDetails)(ea.REASONS.itemPress,e)),x(!1,(0,ei.createChangeEventDetails)(ea.REASONS.itemPress,e))}(e.nativeEvent)},onPointerEnter(e){V.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=y.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){V.current=e.pointerType,Z.current=!0,z()},onMouseUp(){if(z(),T||"touch"===V.current||Z.current)return;let e=!y.current.allowSelectedMouseUp&&N,t=!y.current.allowUnselectedMouseUp&&!N;e||t||(Z.current=!0,F.current?.click(),Z.current=!1)}},f,_]}),Y=n.useMemo(()=>({selected:N,index:k,textRef:m,selectedByFocus:O}),[N,k,m,O]);return(0,t.jsx)(td.Provider,{value:Y,children:W})})),tg=n.forwardRef(function(e,n){let{selected:r}=tf();return e.keepMounted||r?(0,t.jsx)(th,{...e,ref:n}):null}),th=n.memo(n.forwardRef((e,t)=>
1{let{render:r,className:i,style:a,keepMounted:l,...o}=e,{selected:s}=tf(),u=n.useRef(null),{transitionStatus:c,setMounted:d}=(0,M.useTransitionStatus)(s),f=(0,eh.useRenderElement)("span",e,{ref:[t,u],state:{selected:s,transitionStatus:c},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:ek.transitionStatusMapping});return(0,el.useOpenChangeComplete)({open:s,ref:u,onComplete(){s||d(!1)}}),f})),tv=n.memo(n.forwardRef(function(e,t){let{index:r,textRef:i,selectedByFocus:a}=tf(),{firstItemTextRef:l,selectedItemTextRef:o}=w(),{render:s,className:u,style:c,...d}=e,f=n.useCallback(e=>{e&&(0===r&&(l.current=e),a&&(o.current=e))},[l,o,r,a]);return(0,eh.useRenderElement)("div",e,{ref:[f,t,i],props:d})})),tx=n.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:l}=w(),{side:o,align:s,arrowRef:u,arrowStyles:c,arrowUncentered:d,alignItemWithTriggerActive:f}=ez(),m=(0,p.useStore)(l,H),g=(0,eh.useRenderElement)("div",e,{state:{open:m,side:o,align:s,uncentered:d},ref:[u,t],props:[{style:c,"aria-hidden":!0},a],stateAttributesMapping:eC.popupTransitionStateMapping});return f?null:g}),tb=n.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:l,...o}=e,s="up"===a,{store:u,popupRef:d,listRef:f,handleScrollArrowVisibility:m,scrollArrowsMountedCountRef:g}=w(),{side:h,scrollDownArrowRef:v,scrollUpArrowRef:x}=ez(),b=(0,p.useStore)(u,s?et:en),y=(0,p.useStore)(u,z),E=b&&"touch"!==y,S=(0,eS.useTimeout)(),C=s?x:v,{mounted:A,transitionStatus:R,setMounted:I}=(0,M.useTransitionStatus)(E);(0,c.useIsoLayoutEffect)(()=>(g.current+=1,u.set("hasScrollArrows",!0),()=>{g.current=Math.max(0,g.current-1),0===g.current&&u.set("hasScrollArrows",!1)}),[u,g]),(0,el.useOpenChangeComplete)({open:E,ref:C,onComplete(){E||I(!1)}});let T=(0,eh.useRenderElement)("div",e,{ref:[t,C],state:{direction:a,visible:E,side:h,transitionStatus:R},props:[{"aria-hidden":!0,children:s?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||S.isStarted()||(u.set("activeIndex",null),S.start(40,function e(){let t=u.state.listElement??d.current;if(!t)return;u.set("activeIndex",null),m(t);let n=ef(t.scrollHeight,t.clientHeight),r=ep(t.scrollTop,n),i=r===(s?0:n),a=f.current;if(r!==t.scrollTop&&(t.scrollTop=r),i)return void S.clear();if(a.length>0){let e=C.current?.offsetHeight||0;t.scrollTop=function(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let l=Math.max(0,t-1),o=e[l];return l<t&&o?ep(o.offsetTop-i,a):0}let l=e.length-1,o=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>o){l=Math.max(0,t-1);break}}let s=Math.min(e.length-1,l+1),u=e[s];return s>l&&u?ep(u.offsetTop+u.offsetHeight-r+i,a):a}(a,s,r,t.clientHeight,e,n)}S.start(40,e)}))},onMouseLeave(){S.clear()}},o],stateAttributesMapping:ek.transitionStatusMapping});return A||l?T:null}),ty=n.forwardRef(function(e,n){return(0,t.jsx)(tb,{...e,ref:n,direction:"down"})}),tE=n.forwardRef(function(e,n){return(0,t.jsx)(tb,{...e,ref:n,direction:"up"})}),tS=n.createContext(void 0),tw=n.forwardRef(function(e,r){let{render:i,className:a,style:l,...o}=e,[s,u]=n.useState(),c=n.useMemo(()=>({labelId:s,setLabelId:u}),[s,u]),d=(0,eh.useRenderElement)("div",e,{ref:r,props:[{role:"group","aria-labelledby":s},o]});return(0,t.jsx)(tS.Provider,{value:c,children:d})});var tC=e.i(788015);let tA=n.forwardRef(function(e,t){let{render:r,className:i,style:a,id:l,...o}=e,{setLabelId:s}=function(){let e=n.useContext(tS);if(void 0===e)throw Error((0,E.default)(56));return e}(),u=(0,tC.useBaseUiId)(l);return(0,c.useIsoLayoutEffect)(()=>(s(u),()=>{s(e=>e===u?void 0:e)}),[u,s]),(0,eh.useRenderElement)("div",e,{ref:t,props:[{id:u},o]})}),tR=e.i(818438).ListboxSeparator;e.s(["Arrow",0,tx,"Backdrop",0,eV,"Group",0,tw,"GroupLabel",0,tA,"Icon",0,eO,"Item",0,tm,"ItemIndicator",0,tg,"ItemText",0,tv,"Label",0,ey,"List",0,tu,"Popup",0,tr,"Portal",0,ej,"Positioner",0,eK,"Root",0,function(e){let{id:E,value:w,defaultValue:P=null,onValueChange:L,open:N,defaultOpen:O=!1,onOpenChange:D,name:j,form:k,autoComplete:F,disabled:V=!1,readOnly:H=!1,required:Z=!1,modal:_=!0,actionsRef:B,inputRef:z,onOpenChangeComplete:$,items:U,multiple:q=!1,itemToStringLabel:X,itemToStringValue:G,
1isItemEqualToValue:Q=I.defaultItemEquality,highlightItemOnHover:ee=!0,children:et}=e,{clearErrors:en}=(0,eo.useFormContext)(),{setDirty:er,setTouched:ed,setFocused:eh,validityData:ev,setFilled:ex,name:eb,disabled:ey,validation:eE,validationMode:eS}=(0,C.useFieldRootContext)(),ew=(0,R.useLabelableId)({id:E}),eC=ey||V,eA=eb??j,[eR,eM]=(0,u.useControlled)({controlled:w,default:q?P??g.EMPTY_ARRAY:P,name:"Select",state:"value"}),[eI,eT]=(0,u.useControlled)({controlled:N,default:O,name:"Select",state:"open"}),eP=n.useRef([]),eL=n.useRef([]),eN=n.useRef(null),eO=n.useRef(null),eD=n.useRef(0),ej=n.useRef(null),ek=n.useRef([]),eF=n.useRef(!1),eV=n.useRef(null),eH=n.useRef(null),eZ=n.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),e_=n.useRef(!1),{mounted:eB,setMounted:ez,transitionStatus:eW}=(0,M.useTransitionStatus)(eI),{openMethod:eY,triggerProps:e$}=(0,ec.useOpenInteractionType)(eI),eU=(0,a.useRefWithInit)(()=>new m.ReactStore({id:ew,labelId:void 0,modal:_,multiple:q,itemToStringLabel:X,itemToStringValue:G,isItemEqualToValue:Q,value:eR,open:eI,mounted:eB,transitionStatus:eW,items:U,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eq=(0,p.useStore)(eU,W),eX=(0,p.useStore)(eU,Y),eG=(0,p.useStore)(eU,K),eK=(0,p.useStore)(eU,J),eJ=o(eY),eQ=eY??eJ,e0=n.useMemo(()=>q?"":(0,T.stringifyAsValue)(eR,G),[q,eR,G]),e1=n.useMemo(()=>q&&Array.isArray(eR)?eR.map(e=>(0,T.stringifyAsValue)(e,G)):(0,T.stringifyAsValue)(eR,G),[q,eR,G]),e2=(0,f.useValueAsRef)(eG),e8=(0,d.useStableCallback)(()=>e1);(0,A.useRegisterFieldControl)(e2,ew,eR,e8,!eC,j);let e4=n.useRef(eR),e6=q?Array.isArray(eR)&&eR.length>0:null!=eR&&""!==e0;(0,c.useIsoLayoutEffect)(()=>{ex(e6)},[e6,ex]),(0,c.useIsoLayoutEffect)(function(){let e=eR,t=!1;if(q){let n=Array.isArray(eR)?eR:[];t=0===n.length,e=n[n.length-1]}let n=t?-1:(0,I.findItemIndex)(ek.current,e,Q),r=-1===n?null:n;null===r&&(eH.current=null),eI||eU.set("selectedIndex",r)},[q,eI,eR,Q,eU]),(0,eu.useValueChanged)(eR,()=>{let e;en(eA),er((e=ev.initialValue,Array.isArray(eR)&&Array.isArray(e)?!(0,es.areArraysEqual)(eR,e,(e,t)=>(0,I.compareItemEquality)(e,t,Q)):eR!==e)),eE.change(eR)});let e3=(0,d.useStableCallback)((e,t)=>{D?.(e,t),!t.isCanceled&&(eT(e),e||t.reason!==ea.REASONS.focusOut&&t.reason!==ea.REASONS.outsidePress||(ed(!0),eh(!1),"onBlur"===eS&&eE.commit(eR)))}),e5=(0,d.useStableCallback)(()=>{ez(!1),eU.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),$?.(!1)});(0,el.useOpenChangeComplete)({enabled:!B,open:eI,ref:eN,onComplete(){eI||e5()}}),n.useImperativeHandle(B,()=>({unmount:e5}),[e5]);let e7=(0,d.useStableCallback)((e,t)=>{L?.(e,t),t.isCanceled||eM(e)}),e9=(0,d.useStableCallback)(e=>{let t=ef(e.scrollHeight,e.clientHeight),n=ep(e.scrollTop,t);eU.set("scrollUpArrowVisible",n>0),eU.set("scrollDownArrowVisible",n<t)}),te=(0,x.useFloatingRootContext)({open:eI,onOpenChange:e3,elements:{reference:eG,floating:eK}}),tt=(0,h.useClick)(te,{enabled:!H&&!eC,event:"mousedown"}),tn=(0,v.useDismiss)(te),tr=(0,b.useListNavigation)(te,{enabled:!H&&!eC,listRef:eP,activeIndex:eq,selectedIndex:eX,disabledIndices:g.EMPTY_ARRAY,onNavigate(e){(null!==e||eI)&&eU.set("activeIndex",e)},focusItemOnHover:ee}),ti=(0,y.useTypeahead)(te,{enabled:!H&&!eC&&(eI||!q),listRef:eL,activeIndex:eq,selectedIndex:eX,disabledIndices:e=>(0,s.isElementDisabled)(eP.current[e]),onMatch(e){eI?eU.set("activeIndex",e):e7(ek.current[e],(0,ei.createChangeEventDetails)(ea.REASONS.none))},onTyping(e){eF.current=e}}),ta=n.useMemo(()=>(0,eg.mergeProps)(ti.reference,tr.reference,tn.reference,tt.reference,e$),[tt.reference,ti.reference,tr.reference,tn.reference,e$]),tl=n.useMemo(()=>(0,eg.mergeProps)(em.FOCUSABLE_POPUP_PROPS,ti.floating,tr.floating,tn.floating),[ti.floating,tr.floating,tn.floating]),to=tr.item??g.EMPTY_OBJECT;(0,l.useOnFirstRender)(()=>{eU.update({popupProps:tl,triggerProps:ta})}),eU.useSyncedValues({id:ew,modal:_,multiple:q,value:eR,open:eI,mounted:eB,transitionStatus:eW,popupProps:tl,triggerProps:ta,items:U,itemToStringLabel:X,itemToStringValue:G,
1isItemEqualToValue:Q,openMethod:eQ});let ts=n.useMemo(()=>({store:eU,floatingContext:te,required:Z,disabled:eC,readOnly:H,multiple:q,highlightItemOnHover:ee,setValue:e7,setOpen:e3,listRef:eP,popupRef:eN,scrollHandlerRef:eO,handleScrollArrowVisibility:e9,scrollArrowsMountedCountRef:eD,itemProps:to,valueRef:ej,valuesRef:ek,labelsRef:eL,typingRef:eF,selectionRef:eZ,firstItemTextRef:eV,selectedItemTextRef:eH,validation:eE,onOpenChangeComplete:$,alignItemWithTriggerActiveRef:e_,initialValueRef:e4}),[eU,te,Z,eC,H,q,ee,e7,e3,to,eE,$,e9]),tu=(0,i.useMergedRefs)(z,eE.inputRef),tc=q?void 0:eA,td=n.useMemo(()=>q&&Array.isArray(eR)&&eA?eR.map(e=>{let n=(0,T.stringifyAsValue)(e,G);return(0,t.jsx)("input",{type:"hidden",form:k,name:eA,value:n,disabled:eC},n)}):null,[q,eR,k,eA,G,eC]);return(0,t.jsxs)(S.Provider,{value:ts,children:[et,(0,t.jsx)("input",{...eE.getValidationProps(eC,{onFocus(){eU.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||eC||H)return;let t=e.currentTarget.value,n=(0,ei.createChangeEventDetails)(ea.REASONS.none,e.nativeEvent);eU.set("forceMount",!0),queueMicrotask(function(){if(q)return;let e=t.toLowerCase(),r=ek.current.findIndex(t=>(0,T.stringifyAsValue)(t,G).toLowerCase()===e||(0,T.stringifyAsLabel)(t,X).toLowerCase()===e);-1===r&&(r=ek.current.findIndex((t,n)=>{let r=eL.current[n];return null!=r&&r.toLowerCase()===e}));let i=ek.current[r];null!=i&&e7(i,n)})}}),id:ew&&null==tc?`${ew}-hidden-input`:void 0,form:k,name:tc,autoComplete:F,value:e0,disabled:eC,required:Z&&!(q&&e6),readOnly:H,ref:tu,style:eA?r.visuallyHiddenInput:r.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),td]})},"ScrollDownArrow",0,ty,"ScrollUpArrow",0,tE,"Separator",0,tR,"Trigger",0,eP,"Value",0,eN],574786);var tM=e.i(574786),tM=tM,tI=e.i(949872),tT=e.i(320887),tP=e.i(58243),tL=e.i(380429);e.i(986223);var tN=e.i(557153),tO=e.i(94540),tD=e.i(708015),tj=e.i(163690),tk=e.i(627297),tF=e.i(210405),tV=e.i(614680);let tH="flex h-11 w-full items-center justify-between gap-2 rounded-v2 border px-4 text-sm transition-colors",tZ=(0,tN.cn)("fixed inset-0 bg-black/40","opacity-0 transition-opacity duration-200","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[open]:opacity-100"),t_=(0,tN.cn)("shadow-xl fixed flex flex-col bg-v2-surface","will-change-transform","inset-x-0 bottom-0 w-full rounded-t-v2",(0,tF.kbExpandH)(80),"transition-transform duration-300 ease-out","translate-y-full","data-[starting-style]:translate-y-full","data-[ending-style]:translate-y-full","data-[open]:translate-y-0");function tB({placeholder:e,items:n,selectedItem:r,onSelect:i,disabled:a,invalid:l,portalContainer:o,size:s,placeholderWeight:u,valueTone:c,className:d}){return(0,t.jsxs)(tM.Root,{value:r?.id??null,onValueChange:e=>{let t=n.find(t=>t.id===e);t&&i(t.id,t.label)},items:n.map(e=>({value:e.id,label:e.label})),disabled:a,children:[(0,t.jsxs)(tM.Trigger,{"aria-invalid":l||void 0,className:(0,tN.cn)(tH,(0,tk.fieldSizeClass)(s),l?"border-v2-danger":"border-v2-border hover:border-v2-primary",a&&"cursor-not-allowed opacity-50","bg-v2-input",d),children:[(0,t.jsx)("span",{className:(0,tN.cn)("truncate",(0,tk.placeholderWeightClass)(u),r?(0,tk.valueToneClass)(c):"text-v2-muted-foreground"),children:r?.label??e}),(0,t.jsx)(tM.Icon,{children:(0,t.jsx)(tT.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})})]}),(0,t.jsx)(tM.Portal,{container:o??void 0,children:(0,t.jsx)(tM.Positioner,{sideOffset:4,align:"start",alignItemWithTrigger:!1,style:{zIndex:tV.LAYERS.OVERLAY},children:(0,t.jsx)(tM.Popup,{className:(0,tN.cn)("flex min-w-[var(--anchor-width)] max-w-xs flex-col","shadow-lg rounded-v2 border border-v2-border bg-v2-surface outline-none","transition-all duration-150 ease-out","data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0","data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0"),children:(0,t.jsx)(tM.List,{className:"max-h-52 overflow-y-auto overscroll-contain py-1",children:n.map(e=>(0,t.jsxs)(tM.Item,{value:e.id,className:(0,tN.cn)("flex cursor-default items-center justify-between px-4 py-2.5 text-sm","outline-none transition-colors","hover:bg-v2-primary/5 data-[highlighted]:bg-v2-primary/5","data-[selected]:font-semibold data-[selected]:text-v2-primary"),children:[(0,t.jsx)(tM.ItemText,{children:e.label}),(0,t.jsx)(tM.ItemIndicator,{children:(0,t.jsx)(tP.CheckIcon,{size:14,weight:"bold",className:"shrink-0"})})]},e.id))})})})})]})}
1function tz({open:e,onClose:n,title:r,items:i,selectedId:a,onSelect:l}){return(0,t.jsx)(tI.Drawer.Root,{open:e,onOpenChange:e=>{e||n()},swipeDirection:"down",children:(0,t.jsxs)(tI.Drawer.Portal,{children:[(0,t.jsx)(tI.Drawer.Backdrop,{className:tZ,style:{zIndex:tV.LAYERS.OVERLAY}}),(0,t.jsx)(tI.Drawer.Viewport,{children:(0,t.jsxs)(tI.Drawer.Popup,{className:t_,style:{zIndex:tV.LAYERS.OVERLAY+1,maxHeight:"80dvh"},children:[(0,t.jsx)("div",{className:"flex justify-center pb-1 pt-3","aria-hidden":!0,children:(0,t.jsx)("div",{className:"h-1 w-10 rounded-full bg-v2-border"})}),(0,t.jsxs)(tI.Drawer.Content,{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-v2-border px-5 py-4",children:[(0,t.jsx)(tI.Drawer.Title,{className:"text-base font-semibold text-v2-foreground",children:r}),(0,t.jsx)(tD.Button,{type:"button",onClick:n,className:(0,tN.cn)("inline-flex h-8 w-8 items-center justify-center rounded-full","text-v2-muted-foreground transition-colors hover:bg-v2-muted","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-primary/30"),"aria-label":"Cerrar",children:(0,t.jsx)(tL.XIcon,{size:18,"aria-hidden":!0})})]}),(0,t.jsx)("ul",{className:"flex-1 overflow-y-auto overscroll-contain pb-8",children:i.map(e=>(0,t.jsx)("li",{className:"border-b border-v2-border/40 last:border-0",children:(0,t.jsxs)(tD.Button,{type:"button",onClick:()=>{l(e.id,e.label),n()},className:(0,tN.cn)("flex w-full items-center gap-4 px-5 py-3.5 text-left","transition-colors",a===e.id?"bg-v2-primary/5":"active:bg-v2-muted/50"),children:[(0,t.jsx)("span",{className:(0,tN.cn)("flex-1 truncate text-sm",a===e.id?"font-semibold text-v2-primary":"font-medium text-v2-foreground"),children:e.label}),a===e.id&&(0,t.jsx)(tP.CheckIcon,{size:16,weight:"bold",className:"shrink-0 text-v2-primary","aria-hidden":!0})]})},e.id))})]})]})})]})})}e.s(["ResponsiveSelect",0,function({placeholder:e,items:r,selectedId:i,onSelect:a,disabled:l,loading:o,invalid:s,portalContainer:u,size:c="sm",placeholderWeight:d="normal",valueTone:f="default",className:p}){let m=(0,tO.useIsMobile)(),[g,h]=(0,n.useState)(!1),v=r.find(e=>e.id===i)??null;return o?(0,t.jsx)("div",{className:(0,tN.cn)("flex h-11 w-full animate-pulse items-center rounded-v2 border border-v2-border bg-v2-input px-4 text-sm text-v2-muted-foreground",p),children:e}):m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(tD.Button,{type:"button",disabled:l,"aria-invalid":s||void 0,onClick:()=>h(!0),className:(0,tN.cn)(tH,(0,tk.fieldSizeClass)(c),(0,tj.pickerTriggerStateClass)({disabled:l,invalid:s,hasValue:!!v}),"bg-v2-input",p),children:[(0,t.jsx)("span",{className:(0,tN.cn)("truncate",(0,tk.placeholderWeightClass)(d),v?(0,tk.valueToneClass)(f):"text-v2-muted-foreground"),children:v?.label??e}),(0,t.jsx)(tT.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})]}),(0,t.jsx)(tz,{open:g,onClose:()=>h(!1),title:e,items:r,selectedId:v?.id??null,onSelect:a})]}):(0,t.jsx)(tB,{placeholder:e,items:r,selectedItem:v,onSelect:a,disabled:l,invalid:s,portalContainer:u,size:c,placeholderWeight:d,valueTone:f,className:p})}],932177)},667651,657693,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(725933),i=e.i(949872),a=e.i(558300),l=e.i(320887),o=e.i(58243),s=e.i(575108),u=e.i(125994);let c=n.forwardRef((e,t)=>n.createElement(s.default,{ref:t,...e,weights:u.default}));c.displayName="MagnifyingGlassIcon",e.s(["MagnifyingGlassIcon",0,c],657693);var d=e.i(380429);e.i(986223);var f=e.i(557153),p=e.i(94540),m=e.i(708015),g=e.i(163690),h=e.i(627297),v=e.i(210405),x=e.i(614680);let b=e=>Array.isArray(e)?e.filter(Boolean):e?[e]:[],y=e=>0===e?"text-xs text-v2-muted-foreground":"text-[11px] text-v2-muted-foreground/70",E=e=>e.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase(),S=({item:e,query:t})=>E(e.keywords??e.label).includes(E(t)),w="flex h-11 w-full items-center justify-between gap-2 rounded-v2 border px-4 text-sm transition-colors",C=(0,f.cn)("fixed inset-0 bg-black/40","opacity-0 transition-opacity duration-200","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[open]:opacity-100"),A=(0,f.cn)("shadow-xl fixed flex flex-col bg-v2-surface","will-change-transform","inset-x-0 bottom-0 w-full rounded-t-v2",(0,v.kbExpandH)(80),"transition-transform duration-300 ease-out","translate-y-full","data-[starting-style]:translate-y-full","data-[ending-style]:translate-y-full","data-[open]:translate-y-0");function R({placeholder:e,items:n,selectedItem:i,onSelect:a,disabled:s,invalid:u,portalContainer:d,size:p,placeholderWeight:m,valueTone:g,listHeight:v,className:E}){return(0,t.jsxs)(r.Combobox.Root,{value:i,onValueChange:e=>{e&&a(e.id,e.label)},items:n,itemToStringLabel:e=>e.label,isItemEqualToValue:(e,t)=>
1e.id===t.id,filter:(e,t)=>S({item:e,query:t}),disabled:s,children:[(0,t.jsxs)(r.Combobox.Trigger,{"aria-invalid":u||void 0,className:(0,f.cn)(w,(0,h.fieldSizeClass)(p),u?"border-v2-danger":"border-v2-border hover:border-v2-primary","data-[placeholder]:text-v2-muted-foreground",s&&"cursor-not-allowed opacity-50","bg-v2-input",E),children:[(0,t.jsx)("span",{className:(0,f.cn)("truncate",(0,h.placeholderWeightClass)(m),i&&(0,h.valueToneClass)(g)),children:i?.label??e}),(0,t.jsx)(r.Combobox.Icon,{children:(0,t.jsx)(l.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})})]}),(0,t.jsx)(r.Combobox.Portal,{container:d??void 0,children:(0,t.jsx)(r.Combobox.Positioner,{sideOffset:4,style:{zIndex:x.LAYERS.OVERLAY},children:(0,t.jsxs)(r.Combobox.Popup,{className:(0,f.cn)("flex min-w-[var(--anchor-width)] max-w-xs flex-col","shadow-lg rounded-v2 border border-v2-border bg-v2-surface outline-none","transition-all duration-150 ease-out","data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0","data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0"),children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-v2-border px-3 py-2",children:[(0,t.jsx)(c,{size:14,className:"shrink-0 text-v2-muted-foreground"}),(0,t.jsx)(r.Combobox.Input,{placeholder:"Buscar...",className:"w-full bg-transparent text-sm text-v2-foreground outline-none placeholder:text-v2-muted-foreground"})]}),(0,t.jsx)(r.Combobox.List,{className:(0,f.cn)("max-h-52 overflow-y-auto overscroll-contain py-1",(0,h.listHeightClass)(v)),children:e=>{let n;return(0,t.jsxs)(r.Combobox.Item,{value:e,className:(0,f.cn)("flex cursor-default items-center justify-between gap-2 px-4 py-2.5 text-sm","outline-none transition-colors","hover:bg-v2-primary/5 data-[highlighted]:bg-v2-primary/5","data-[selected]:font-semibold data-[selected]:text-v2-primary"),children:[(0,t.jsx)("span",{className:"flex min-w-0 flex-col",children:(n=b(e.description),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,f.cn)("truncate",n.length>0&&"font-medium"),children:e.label}),n.map((e,n)=>(0,t.jsx)("span",{className:(0,f.cn)("truncate font-normal",y(n)),children:e},`${n}-${e}`))]}))}),(0,t.jsx)(r.Combobox.ItemIndicator,{children:(0,t.jsx)(o.CheckIcon,{size:14,weight:"bold",className:"shrink-0"})})]},e.id)}}),(0,t.jsx)(r.Combobox.Empty,{children:(0,t.jsx)("span",{className:"block px-4 py-3 text-sm text-v2-muted-foreground",children:"Sin resultados"})})]})})})]})}function M({open:e,onClose:r,title:l,items:s,selectedId:u,onSelect:p}){let[g,h]=(0,n.useState)(""),v=g.trim()?s.filter(e=>S({item:e,query:g})):s;return(0,t.jsx)(i.Drawer.Root,{open:e,onOpenChange:function(e){e||(h(""),r())},swipeDirection:"down",children:(0,t.jsxs)(i.Drawer.Portal,{children:[(0,t.jsx)(i.Drawer.Backdrop,{className:C,style:{zIndex:x.LAYERS.OVERLAY}}),(0,t.jsx)(i.Drawer.Viewport,{children:(0,t.jsxs)(i.Drawer.Popup,{className:A,style:{zIndex:x.LAYERS.OVERLAY+1,maxHeight:"80dvh"},children:[(0,t.jsx)("div",{className:"flex justify-center pb-1 pt-3","aria-hidden":!0,children:(0,t.jsx)("div",{className:"h-1 w-10 rounded-full bg-v2-border"})}),(0,t.jsxs)(i.Drawer.Content,{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-v2-border px-5 py-4",children:[(0,t.jsx)(i.Drawer.Title,{className:"text-base font-semibold text-v2-foreground",children:l}),(0,t.jsx)(m.Button,{type:"button",onClick:r,className:(0,f.cn)("inline-flex h-8 w-8 items-center justify-center rounded-full","text-v2-muted-foreground transition-colors hover:bg-v2-muted","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-v2-primary/30"),"aria-label":"Cerrar",children:(0,t.jsx)(d.XIcon,{size:18,"aria-hidden":!0})})]}),(0,t.jsx)("div",{className:"shrink-0 border-b border-v2-border px-4 py-3",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c,{className:"absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-v2-muted-foreground","aria-hidden":!0}),(0,t.jsx)(a.Input,{type:"search",value:g,onChange:e=>h(e.target.value),placeholder:"Buscar...",className:(0,f.cn)("w-full rounded-v2 border border-v2-border","bg-v2-muted py-2.5 pl-10 pr-4","text-sm text-v2-foreground placeholder:text-v2-muted-foreground","focus:outline-none focus:ring-2 focus:ring-v2-primary/30")})]})}),(0,t.jsx)("ul",{className:"flex-1 overflow-y-auto overscroll-contain pb-8",children:v.length>0?v.map(e=>(0,t.jsx)("li",{className:"border-b border-v2-border/40 last:border-0",children:(0,t.jsxs)(m.Button,{type:"button",onClick:()=>{h(""),p(e.id,e.label),r()},className:(0,f.cn)("flex w-full items-center gap-4 px-5 py-3.5 text-left","transition-colors",u===e.id?"bg-v2-primary/5":"active:bg-v2-muted/50"),children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:(0,f.cn)("truncate text-sm",u===e.id?"font-semibold text-v2-primary":"font-medium text-v2-foreground"),children:e.label}),b(e.description).map((e,n)=>(0,t.jsx)("span",{className:(0,f.cn)("truncate font-normal",y(n)),children:e},`${n}-${e}`))]}),u===e.id&&(0,t.jsx)(o.CheckIcon,{size:16,weight:"bold",className:"shrink-0 text-v2-primary","aria-hidden":!0})]})},e.id)):(0,t.jsx)("li",{className:"px-5 py-12 text-center text-sm text-v2-muted-foreground",children:"Sin resultados"})})]})]})})]})})}e.s(["SearchableSelect",0,function({placeholder:e,items:r,selectedId:i,onSelect:a,disabled:o,loading:s,invalid:u,portalContainer:c,size:d="sm",placeholderWeight:v="normal",valueTone:x="default",listHeight:b="sm",className:y}
1){let E=(0,p.useIsMobile)(),[S,C]=(0,n.useState)(!1),A=r.find(e=>e.id===i)??null;return s?(0,t.jsx)("div",{className:(0,f.cn)("flex h-11 w-full animate-pulse items-center rounded-v2 border border-v2-border bg-v2-input px-4 text-sm text-v2-muted-foreground",y),children:e}):E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.Button,{type:"button",disabled:o,"aria-invalid":u||void 0,onClick:()=>C(!0),className:(0,f.cn)(w,(0,h.fieldSizeClass)(d),(0,g.pickerTriggerStateClass)({disabled:o,invalid:u,hasValue:!!A}),"bg-v2-input",y),children:[(0,t.jsx)("span",{className:(0,f.cn)("truncate",(0,h.placeholderWeightClass)(v),A&&(0,h.valueToneClass)(x)),children:A?.label??e}),(0,t.jsx)(l.CaretDownIcon,{size:14,className:"shrink-0 text-v2-muted-foreground"})]}),(0,t.jsx)(M,{open:S,onClose:()=>C(!1),title:e,items:r,selectedId:A?.id??null,onSelect:a})]}):(0,t.jsx)(R,{placeholder:e,items:r,selectedItem:A,onSelect:a,disabled:o,invalid:u,portalContainer:c,size:d,placeholderWeight:v,valueTone:x,listHeight:b,className:y})},"descriptionLineClass",0,y,"itemMatchesQuery",0,S,"toDescriptionLines",0,b],667651)},563899,e=>{"use strict";e.s(["ToastProvider",()=>x,"toastManager",()=>g]);var t=e.i(843476),n=e.i(271645),r=e.i(76572);e.i(978387);var i=e.i(708015),a=e.i(849427),l=e.i(271307),o=e.i(227930),s=e.i(451485),u=e.i(109089),c=e.i(211543),d=e.i(380429);e.i(986223);var f=e.i(557153),p=e.i(614680);let m={clock:{icon:a.ClockIcon,className:"text-v2-muted-foreground"},heart:{icon:l.HeartIcon,className:"text-rose-400"},cart:{icon:o.ShoppingCartIcon,className:"text-v2-muted-foreground"},whatsapp:{icon:s.WhatsappLogoIcon,className:"text-[#25D366]"},success:{icon:u.CheckCircleIcon,className:"text-emerald-500"},info:{icon:c.InfoIcon,className:"text-v2-muted-foreground"}},g=r.Toast.createToastManager();function h({duration:e}){let[r,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)("div",{className:"absolute inset-x-0 top-0 h-[3px] overflow-hidden rounded-t-v2",children:(0,t.jsx)("div",{className:"h-full bg-[rgb(var(--v2-primary))] transition-[width] ease-linear",style:{width:r?"0%":"100%",transitionDuration:`${e}ms`}})})}function v(){let{toasts:e}=r.Toast.useToastManager();return(0,t.jsx)(r.Toast.Viewport,{className:(0,f.cn)("fixed bottom-20 left-1/2 -translate-x-1/2","md:bottom-auto md:left-auto md:right-6 md:top-6 md:translate-x-0","flex w-[calc(100vw-2rem)] max-w-sm flex-col items-center gap-2"),style:{zIndex:p.LAYERS.TOAST},children:e.map(e=>{let n=e.data?.icon,a=n?m[n]:void 0,l=a?.icon,o=e.data?.action,s=e.timeout??4e3;return(0,t.jsxs)(r.Toast.Root,{toast:e,swipeDirection:"down",className:(0,f.cn)("shadow-lg group relative flex w-full flex-col overflow-hidden rounded-v2 border border-v2-border bg-v2-surface","transition-all duration-200 ease-out","data-[starting-style]:translate-y-2 data-[starting-style]:opacity-0","data-[ending-style]:translate-y-2 data-[ending-style]:opacity-0","md:data-[ending-style]:-translate-y-2 md:data-[starting-style]:-translate-y-2","data-[swiping]:transition-none","translate-y-[var(--toast-swipe-movement-y)]"),children:[(0,t.jsx)(h,{duration:s}),(0,t.jsxs)("div",{className:"flex items-start gap-3 px-4 pb-3 pt-4",children:[l&&(0,t.jsx)(l,{size:20,weight:"fill",className:(0,f.cn)("mt-0.5 shrink-0",a.className),"aria-hidden":!0}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)(r.Toast.Title,{className:"text-sm font-semibold text-v2-foreground",children:e.title}),e.description&&(0,t.jsx)(r.Toast.Description,{className:"text-xs text-v2-muted-foreground",children:e.description}),o&&(0,t.jsxs)(i.Button,{className:(0,f.cn)("mt-1.5 self-start text-xs font-semibold","text-[rgb(var(--v2-primary))] transition-opacity hover:opacity-80"),onClick:e=>{e.stopPropagation(),o.onClick()},children:[o.label," →"]})]}),(0,t.jsx)(r.Toast.Close,{className:(0,f.cn)("shrink-0 rounded p-0.5","text-v2-muted-foreground transition-colors hover:text-v2-foreground"),"aria-label":"Cerrar",children:(0,t.jsx)(d.XIcon,{size:14,"aria-hidden":!0})})]})]},e.id)})})}function x({children:e}){return(0,t.jsxs)(r.Toast.Provider,{toastManager:g,timeout:4e3,children:[e,(0,t.jsx)(r.Toast.Portal,{children:(0,t.jsx)(v,{})})]})}}]);

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.