PageSourceSearch

https://pricespy.pl/_next/static/chunks/1fdtitb0ycd6f.js?dpl=pl_2e510cf7

js pricespy.pl collected 2026-10-08 19:47:15 UTC 48,687 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0053f702-07e8-0a30-9d4b-83b9abb8cb7a")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,273731,e=>{"use strict";e.s(["clamp",0,function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}])},259760,974728,e=>{"use strict";var t,r,n,l,i,o,u=e.i(262757),s=e.i(748922),a=e.i(889223),c=e.i(33063),p=e.i(780176),f=e.i(908169),d=e.i(621590),h=e.i(398368),m=e.i(684973),g=e.i(880508),v=e.i(878060),x=e.i(683523);e.s([],702006),e.i(702006);var w=e.i(291911),y=e.i(854186),b=e.i(526406),S=e.i(44158),P=e.i(602372);let R=((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),C=((r={}).swipeProgress="--drawer-swipe-progress",r),M={...S.popupStateMapping,...P.transitionStatusMapping},E=w.forwardRef(function(e,t){let{render:r,className:n,forceRender:l=!1,...i}=e,{store:o}=(0,y.useDialogRootContext)(),u=o.useState("open"),s=o.useState("nested"),a=o.useState("mounted"),c=o.useState("transitionStatus");return(0,b.useRenderElement)("div",e,{state:{open:u,transitionStatus:c},ref:[o.context.backdropRef,t],stateAttributesMapping:M,props:[{role:"presentation",hidden:!a,style:{pointerEvents:u?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[C.swipeProgress]:"0",[R.swipeStrength]:"1"}},i],enabled:l||!s})}),D=e.i(521286).DialogClose,N="data-drawer-content",T=w.forwardRef(function(e,t){let{render:r,className:n,...l}=e;return(0,y.useDialogRootContext)(),(0,b.useRenderElement)("div",e,{ref:t,props:[{[N]:""},l]})}),k=e.i(842758).DialogDescription;var A=e.i(883703),F=e.i(963170);let O=w.createContext(void 0);function Y(e){let t=w.useContext(O);if(!1===e&&void 0===t)throw Error((0,F.default)(91));return t}let j={active:e=>e?{"data-active":""}:{"data-inactive":""}},X=w.forwardRef(function(e,t){let{render:r,className:n,...l}=e,i=Y(!0),o=(null==i?void 0:i.active)??!1,u=null==i?void 0:i.visualStateStore,s=w.useRef(null);return(0,A.useIsoLayoutEffect)(()=>{let e=s.current;if(!e||!u)return;let t=()=>{let{swipeProgress:t,frontmostHeight:r}=u.getSnapshot();t<=0?e.style.setProperty(C.swipeProgress,"0"):e.style.setProperty(C.swipeProgress,`${t}`),r<=0?e.style.removeProperty(R.height):e.style.setProperty(R.height,`${r}px`)};t();let r=u.subscribe(t);return()=>{r(),e.style.setProperty(C.swipeProgress,"0"),e.style.removeProperty(R.height)}},[u]),(0,b.useRenderElement)("div",e,{ref:[t,s],state:{active:o},props:[{style:{[C.swipeProgress]:"0"}},l],stateAttributesMapping:j})}),H={active:e=>e?{"data-active":""}:{"data-inactive":""}},I=w.forwardRef(function(e,t){let{render:r,className:n,...l}=e,i=Y(!0),o=(null==i?void 0:i.active)??!1;return(0,b.useRenderElement)("div",e,{ref:t,state:{active:o},props:l,stateAttributesMapping:H})});var z=e.i(110392),W=e.i(54665);let $=((n={})[n.open=S.CommonPopupDataAttributes.open]="open",n[n.closed=S.CommonPopupDataAttributes.closed]="closed",n[n.startingStyle=S.CommonPopupDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=S.CommonPopupDataAttributes.endingStyle]="endingStyle",n.expanded="data-expanded",n.nestedDrawerOpen="data-nested-drawer-open",n.nestedDrawerSwiping="data-nested-drawer-swiping",n.swipeDismiss="data-swipe-dismiss",n.swipeDirection="data-swipe-direction",n.swiping="data-swiping",n);var _=e.i(769184),L=e.i(293166),U=e.i(250228);let V=w.createContext(void 0);function B(e){let t=w.useContext(V);if(!1===e&&void 0===t)throw Error((0,F.default)(90));return t}var G=e.i(242263),q=e.i(273731);function K(e,t,r){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,q.clamp)(e,0,1)*t:e:null;let n=e.trim();if(n.endsWith("px")){let e=Number.parseFloat(n);return Number.isFinite(e)?e:null}if(n.endsWith("rem")){let e=Number.parseFloat(n);return Number.isFinite(e)?e*r:null}return null}function J(){let{store:e}=(0,y.useDialogRootContext)(),{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:l}=B(),i=e.useState("viewportElement"),[o,u]=w.useState(0),[s,a]=w.useState(16),c=(0,z.useStableCallback)(()=>{let e=(0,G.ownerDocument)(i).documentElement;i&&u(i.offsetHeight),i||u(e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&a(t)});(0,A.useIsoLayoutEffect)(()=>
2{if(c(),!i||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(c);return e.observe(i),()=>{e.disconnect()}},[c,i]);let p=w.useMemo(()=>{if(!t||0===t.length||o<=0||l<=0)return[];let e=Math.min(l,o);if(!Number.isFinite(e)||e<=0)return[];let r=t.map(t=>{let r=K(t,o,s);if(null===r||!Number.isFinite(r))return null;let n=(0,q.clamp)(r,0,e);return{value:t,height:n,offset:Math.max(0,l-n)}}).filter(e=>!!e);if(r.length<=1)return r;let n=[],i=[];for(let e=r.length-1;e>=0;e-=1){let t=r[e];i.some(e=>1>=Math.abs(e-t.height))||(i.push(t.height),n.push(t))}return n.reverse(),n},[l,s,t,o]),f=w.useMemo(()=>{if(void 0===r)return p[0];if(null===r)return;let e=p.find(e=>Object.is(e.value,r));if(e)return e;let t=Math.min(l,o),n=K(r,o,s);if(null!==n&&Number.isFinite(n))return function(e,t){let r=null,n=1/0;for(let l of t){let t=Math.abs(l.height-e);t<n&&(n=t,r=l)}return r}((0,q.clamp)(n,0,t),p)??void 0},[r,l,p,s,o]);return{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:l,viewportHeight:o,resolvedSnapPoints:p,activeSnapPointOffset:(null==f?void 0:f.offset)??null}}let Q=w.createContext(null);var Z=e.i(736381);let ee=!1,et={...S.popupStateMapping,...P.transitionStatusMapping,expanded:e=>e?{[$.expanded]:""}:null,nestedDrawerOpen:e=>e?{[$.nestedDrawerOpen]:""}:null,nestedDrawerSwiping:e=>e?{[$.nestedDrawerSwiping]:""}:null,swipeDirection:e=>e?{[$.swipeDirection]:e}:null,swiping:e=>e?{[$.swiping]:""}:null},er=w.forwardRef(function(e,t){let r,{className:n,finalFocus:l,initialFocus:i,render:o,...s}=e,{store:a}=(0,y.useDialogRootContext)(),{swipeDirection:c,frontmostHeight:p,hasNestedDrawer:f,nestedSwiping:d,nestedSwipeProgressStore:h,onPopupHeightChange:m,notifyParentFrontmostHeight:g,notifyParentHasNestedDrawer:v}=B(),x=a.useState("descriptionElementId"),S=a.useState("disablePointerDismissal"),P=a.useState("floatingRootContext"),M=a.useState("popupProps"),E=a.useState("modal"),D=a.useState("mounted"),N=a.useState("nested"),T=a.useState("nestedOpenDialogCount"),k=a.useState("transitionStatus"),O=a.useState("open"),Y=a.useState("openMethod"),j=a.useState("titleElementId"),X=a.useState("role"),H=T>0,I=function(e){let t=w.useContext(Q);if(!1===e&&null===t)throw Error((0,F.default)(92));return t}(!0),$=(null==I?void 0:I.swiping)??!1,V=(null==I?void 0:I.swipeStrength)??null,{snapPoints:G,activeSnapPoint:q,activeSnapPointOffset:K}=J();(0,_.useDialogPortalContext)();let[er,en]=w.useState(0),el=w.useRef(0),ei=(0,z.useStableCallback)(()=>{let e=a.context.popupRef.current;if(!e)return;let t=e.offsetHeight;if(!(el.current>0)||!(p>el.current)||!(t>el.current)){if(el.current>0&&f){let e=el.current;en(e),m(e);return}t!==el.current&&(el.current=t,en(t),m(t))}});(0,A.useIsoLayoutEffect)(()=>{if(!D){el.current=0,en(0),m(0);return}let e=a.context.popupRef.current;if(!e||(ee||("u">typeof CSS&&"registerProperty"in CSS&&([R.swipeMovementX,R.swipeMovementY,R.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),[{name:C.swipeProgress,initialValue:"0"},{name:R.swipeStrength,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"<number>",inherits:!1,initialValue:t})}catch{}})),ee=!0),ei(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(ei);return t.observe(e),()=>{t.disconnect()}},[ei,D,H,m,a.context.popupRef]),(0,A.useIsoLayoutEffect)(()=>{let e=a.context.popupRef,t=()=>{let t=e.current;if(!t)return;let r=h.getSnapshot();r>0?t.style.setProperty(C.swipeProgress,`${r}`):t.style.setProperty(C.swipeProgress,"0")};t();let r=h.subscribe(t);return()=>{r();let t=e.current;t&&t.style.setProperty(C.swipeProgress,"0")}},[h,a.context.popupRef]),w.useEffect(()=>{if(O)return null==g||g(p),()=>{null==g||g(0)}},[p,O,g]),w.useEffect(()=>{if(v)return v(O||"ending"===k),()=>{v(!1)}},[v,O,k]),(0,L.useOpenChangeComplete)({open:O,ref:a.context.popupRef,onComplete(){if(O){var e,t;null==(e=(t=a.context).onOpenChangeComplete)||e.call(t,!0)}}});let eo=void 0===i?a.context.popupRef:i,eu=!f&&"ending"!==k;er&&!eu&&(r=`${er}px`);let es=G&&G.length>0&&("down"===c||"up"===c),ea=null;es&&null!==K&&(ea="up"===c?-K:K);let ec=I?I.getDragStyles():Z.EMPTY_OBJECT;if(es&&"down"===c){let e=K??0,t=Number.parseFloat(String(ec[R.swipeMovementY]??0)),r=Number.isFinite(t)?e+t:e;if($&&r<0&&Number.isFinite(t)){let t=-Math.sqrt(Math.abs(r));ec={...ec,transform:void 0,[R.swipeMovementY]:`${t-e}px`}}else ec={...ec,transform:void 0}}let ep=(0,b.useRenderElement)("div",e,{state:{open:O,nested:N,transitionStatus:k,expanded:1===q,nestedDrawerOpen:H,nestedDrawerSwiping:d,swipeDirection:c,swiping:$},props:[M,{"aria-labelledby":j,"aria-describedby":x,role:X,tabIndex:-1,hidden:!D,onKeyDown(e){U.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{...ec,[C.swipeProgress]:"0",[R.nestedDrawers]:T,[R.height]:r,[R.snapPointOffset]:"number"==typeof ea?`${ea}px`:"0px",[R.frontmostHeight]:p?`${p}px`:void 0,[R.swipeStrength]:"number"==typeof V&&Number.isFinite(V)&&V>0?`${V}`:"1"}}
2,s],ref:[t,a.context.popupRef,a.useStateSetter("popupElement")],stateAttributesMapping:et});return(0,u.jsx)(W.FloatingFocusManager,{context:P,openInteractionType:Y,disabled:!D,closeOnFocusOut:!S,initialFocus:eo,returnFocus:l,modal:!1!==E,restoreFocus:"popup",children:ep})}),en=e.i(456852).DialogPortal;function el(){let e={swipeProgress:0,frontmostHeight:0},t=new Set;return{getSnapshot:()=>e,set(r){let n=e.swipeProgress;void 0!==r.swipeProgress&&(n=Number.isFinite(r.swipeProgress)?r.swipeProgress:0);let l=e.frontmostHeight;void 0!==r.frontmostHeight&&(l=Number.isFinite(r.frontmostHeight)?r.frontmostHeight:0),(n!==e.swipeProgress||l!==e.frontmostHeight)&&(e={swipeProgress:n,frontmostHeight:l},t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}var ei=e.i(530253),eo=e.i(285182),eu=e.i(712166),es=e.i(511277),ea=e.i(199581),ec=e.i(267420),ep=e.i(996377);function ef(){let e=0,t=new Set;return{getSnapshot:()=>e,set(r){let n=Number.isFinite(r)?r:0;n!==e&&(e=n,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}function ed(){let e=(0,es.useId)(),t=Y(!0),r=(0,y.useDialogRootContext)(!1),n=r.store.useState("open"),l=r.store.useState("nestedOpenDialogCount"),i=r.store.useState("popupElement"),o=0===l;return w.useEffect(()=>{if(t&&null!=e)return()=>{t.removeDrawer(e)}},[e,t]),w.useEffect(()=>{null!=e&&(null==t||t.setDrawerOpen(e,n))},[e,n,t]),w.useEffect(()=>{if(!n||!o||!eu.isAndroid)return;let e=(0,eo.ownerWindow)(i).CloseWatcher;if(!e)return;function t(e){r.store.select("open")&&r.store.setOpen(!1,(0,ec.createChangeEventDetails)(ep.REASONS.closeWatcher,e))}let l=new e;return l.addEventListener("close",t),()=>{l.removeEventListener("close",t),l.destroy()}},[r.store,o,n,i]),null}var eh=e.i(812160),em=e.i(448156),eg=e.i(92615);function ev(e,t){let r=(0,eg.getComputedStyle)(e);if("vertical"===t){let t=r.overflowY;return("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight}let n=r.overflowX;return("auto"===n||"scroll"===n)&&e.scrollWidth>e.clientWidth}function ex(e,t,r="vertical"){let n=(0,eg.isHTMLElement)(e)?e:null;for(;n&&n!==t;){if(ev(n,r))return n;n=n.parentElement}return ev(t,r)?t:null}function ew(e,t,r){return"function"==typeof(null==e?void 0:e.elementFromPoint)?e.elementFromPoint(t,r):null}function ey(e,t,r){switch(e){case"up":return-r;case"down":return r;case"left":return-t;case"right":return t;default:return 0}}function eb(e){let t=window.getComputedStyle(e).transform,r=0,n=0,l=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],n=t[5],l=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],n=t[13],l=t[0])}}return{x:r,y:n,scale:l}}function eS(e){return Number.isFinite(e)&&e>0?e:null}function eP(e,t,r){let n=e[r];if("function"==typeof n)try{n.call(e,t)}catch(e){if(e&&"object"==typeof e&&"name"in e&&"NotFoundError"===e.name)return;throw e}}function eR(e){let{enabled:t,directions:r,elementRef:n,movementCssVars:l,canStart:i,ignoreSelectorWhenTouch:o=!0,ignoreScrollableAncestors:u=!1,swipeThreshold:s,onDismiss:a,onProgress:c,onSwipeStart:p,onRelease:f,onSwipingChange:d,trackDrag:h=!0}=e,m=1===r.length?r[0]:void 0,g=Math.max(0,"number"==typeof s?s:40),v=r.includes("left"),x=r.includes("right"),y=r.includes("up"),b=r.includes("down"),S=v||x,P=y||b,R=w.useMemo(()=>{let e=[];return P&&e.push("vertical"),S&&e.push("horizontal"),e},[S,P]),[C,M]=w.useState(void 0),[E,D]=w.useState(!1),[N,T]=w.useState(!1),[k,A]=w.useState(!1),[F,O]=w.useState({x:0,y:0}),[Y,j]=w.useState({x:0,y:0,scale:1}),[X,H]=w.useState(null),I=w.useRef({x:0,y:0}),W=w.useRef({x:0,y:0}),$=w.useRef(null),_=w.useRef({x:0,y:0,scale:1}),L=w.useRef(void 0),U=w.useRef(0),V=w.useRef(!1),B=w.useRef({x:0,y:0}),K=w.useRef(!1),J=w.useRef(!1),Q=w.useRef(null),Z=w.useRef(!1),ee=w.useRef(!1),et=w.useRef({width:0,height:0}),er=w.useRef(0),en=w.useRef(g),el=w.useRef(null),ei=w.useRef(null),eo=w.useRef({x:0,y:0}),eu=w.useRef(null),es=w.useRef(!1),ea=(0,z.useStableCallback)(e=>{es.current!==e&&(es.current=e,D(e),null==d||d(e))});function ec(e){if(!e)return;if("function"!=typeof s){en.current=g;return}let t=n.current;t&&(en.current=Math.max(0,s({element:t,direction:e})))}let ep=(0,z.useStableCallback)((e,t)=>{let r=Number.isFinite(e)?(0,q.clamp)(e,0,1):0,n=r!==er.current,l=!1;if(t){let e=eu.current;l=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}(n||l)&&(er.current=r,t?eu.current=t:n&&(eu.current=null),null==c||c(r,t))});function ef(e,t){if(null===t)return;let r=ei.current;if(r&&t>r.time){let n=Math.max(t-r.time,16);eo.current={x:(e.x-r.x)/n,y:(e.y-r.y)/n}}ei.current={x:e.x,y:e.y,time:t}}let ed=w.useCallback(()=>{M(void 0),ea(!1),T(!1),A(!1),O({x:0,y:0}),j({x:0,y:0,scale:1}),H(null),ep(0),en.current=g,I.current={x:0,y:0},W.current={x:0,y:0},_.current={x:0,y:0,scale:1},L.current=void 0,U.current=0,V.current=!1,B.current={x:0,y:0},K.current=!1,$.current=null,J.current=!1,Q.current=null,Z.current=!1,ee.current=!1,et.current={width:0,height:0},el.current=null,ei.current=null,eo.current={x:0,y:0},eu.current=null},[ea,g,ep]);function eh(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 eg(e){return"touches"in e||"touch"===e.pointerType}
2function eR(e,t){return ew((0,G.ownerDocument)(n.current),e.x,e.y)??(0,em.getTarget)(t)}function eC(e,t){return S&&!P?ex(e,t,"horizontal"):P&&!S?ex(e,t,"vertical"):ex(e,t,"vertical")??ex(e,t,"horizontal")}function eM(e,t,r){Z.current=!1;let l=eg(e),i=eR(t,e.nativeEvent),s=(0,G.ownerDocument)(n.current).body,a=l&&s?eC(i,s):null,c=(null==r?void 0:r.ignoreScrollableTarget)??!1;if(a&&!c||(Z.current=!!(a&&c),i&&i.closest('button,a,input,select,textarea,label,[role="button"]')&&(!l||o)))return!1;let f=n.current;if(u&&f&&i&&R.length>0&&!(null==r?void 0:r.ignoreScrollableAncestors)&&function(e,t,r){let n=e;for(;n&&n!==t;){for(let e of r)if(ev(n,e))return!0;n=n.parentElement}return!1}(i,f,R))return!1;if(V.current=!1,L.current=void 0,U.current=0,I.current=t,el.current=eS(e.timeStamp),B.current=t,$.current=t,f){et.current={width:f.offsetWidth,height:f.offsetHeight},ec(m);let t=eb(f);_.current=t,W.current={x:t.x,y:t.y},j(t),O({x:t.x,y:t.y}),ef({x:t.x,y:t.y},el.current),"touches"in e||eP(f,e.pointerId,"setPointerCapture")}return null==p||p(e.nativeEvent),ea(!0),T(!1),H(null),K.current=!0,ep(0),!0}function eE(){eD(),Z.current=!1,$.current=null}function eD(){J.current=!1,Q.current=null}w.useEffect(()=>{"function"!=typeof s&&(en.current=g)},[g,s]);let eN=(0,z.useStableCallback)(e=>{if(!t||e.defaultPrevented||e.nativeEvent.defaultPrevented||!("touches"in e)&&0!==e.button)return;let r=eh(e);!r||(J.current=!0,Q.current=r,Z.current=!1,ee.current=!1,(!i||i(r,{nativeEvent:e.nativeEvent,direction:m}))&&eM(e,r)&&eD())}),eT=(0,z.useStableCallback)(e=>{let r=eh(e);if(!r)return;if(!("touches"in e)){let t=e.buttons%2==1;t&&(ee.current=!0);let r=0===e.buttons&&ee.current;if(0!==e.buttons&&!t||r)return void function(e){if(eE(),!es.current)return;ea(!1),T(!1),H(null);let t=h?Y:_.current;W.current={x:t.x,y:t.y},O({x:t.x,y:t.y}),M(void 0),ee.current=!1;let r=n.current;r&&eP(r,e.pointerId,"releasePointerCapture"),ep(0,{deltaX:0,deltaY:0,direction:void 0})}(e)}if(!E&&J.current){if(!eg(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented))return void eE();if(!i||i(r,{nativeEvent:e.nativeEvent,direction:m})){let t=Q.current,l=!1;if(eg(e)){let i=n.current;if(t&&i){let n=eR(r,e.nativeEvent),o=(0,G.ownerDocument)(i).body,u=o?eC(n,o):null;if(u&&((0,em.contains)(i,u)||(0,em.contains)(u,i))){let e=function(e,t,r){let n=Math.abs(t),l=Math.abs(r);if(P&&0!==r&&(!S||l>=n)){let t=Math.max(0,e.scrollHeight-e.clientHeight),n=e.scrollTop<=0,l=e.scrollTop>=t,i=r>0&&n&&b,o=r<0&&l&&y;return i||o}if(S&&0!==t&&(!P||n>l)){let r=Math.max(0,e.scrollWidth-e.clientWidth),n=e.scrollLeft<=0,l=e.scrollLeft>=r,i=t>0&&n&&x,o=t<0&&l&&v;return i||o}return null}(u,r.x-t.x,r.y-t.y);if(!1===e)return;!0===e&&(l=!0)}}}eM(e,r,{ignoreScrollableTarget:l,ignoreScrollableAncestors:l})&&(t&&l?(eD(),I.current=t,B.current=t,$.current=t,K.current=!1):(eD(),Z.current=!1))}}let l=$.current,o=null===l?{x:0,y:0}:{x:r.x-l.x,y:r.y-l.y};$.current=r,function(e,r,n){let l,i,o;if(!t||!es.current)return;let u=(0,em.getTarget)(e.nativeEvent);if(eg(e)&&!Z.current&&eC(u,e.currentTarget))return;if("touches"in e||e.preventDefault(),K.current){I.current=r;let t=eS(e.timeStamp);null!==t&&(el.current=t),K.current=!1}let s=r.x,a=r.y,c=n.x,p=n.y;(p<0&&a>B.current.y||p>0&&a<B.current.y)&&(B.current={x:B.current.x,y:a}),(c<0&&s>B.current.x||c>0&&s<B.current.x)&&(B.current={x:s,y:B.current.y});let f=s-I.current.x,d=a-I.current.y,g=a-B.current.y,w=s-B.current.x;if(!N&&Math.sqrt(f*f+d*d)>=1&&(T(!0),null===X&&S&&P&&H(Math.abs(f)>Math.abs(d)?"horizontal":"vertical")),L.current){let e=L.current,t=ey(e,w,g);t>en.current?(V.current=!1,M(e)):v&&x||y&&b||!(U.current-t>=10)||(V.current=!0)}else"vertical"===X?d>0?l="down":d<0&&(l="up"):"horizontal"===X?f>0?l="right":f<0&&(l="left"):l=Math.abs(f)>=Math.abs(d)?f>0?"right":"left":d>0?"down":"up",l&&("left"===l&&v||"right"===l&&x||"up"===l&&y||"down"===l&&b)&&(L.current=l,U.current=ey(l,f,d),M(l),ec(l));let R=(i=e=>e>=0?e**.5:-(Math.abs(e)**.5),o=(e,t,r)=>!t&&e<0||!r&&e>0?i(e):e,{x:S?o(f,v,x):i(f),y:P?o(d,y,b):i(d)}),C=_.current.x,E=_.current.y;"horizontal"===X?S&&(C+=R.x):("vertical"===X||S&&(C+=R.x),P&&(E+=R.y)),W.current={x:C,y:E},h&&O({x:C,y:E}),ef({x:C,y:E},eS(e.timeStamp));let D=C-_.current.x,k=E-_.current.y,A=L.current,F=m??L.current;if(!F)return ep(0,{deltaX:D,deltaY:k,direction:A});
2let Y="left"===F||"right"===F?et.current.width:et.current.height,j=_.current.scale||1;if(Y<=0||j<=0)return ep(0,{deltaX:D,deltaY:k,direction:A});let z=ey(F,C-_.current.x,E-_.current.y);z<=0?ep(0,{deltaX:D,deltaY:k,direction:A}):ep(z/(Y*j),{deltaX:D,deltaY:k,direction:A})}(e,r,o)}),ek=(0,z.useStableCallback)(e=>{let l;if(!t)return;let i=W.current,o=_.current,u=i.x-o.x,s=i.y-o.y,c={deltaX:u,deltaY:s,direction:C??L.current};if(!es.current){eE(),ep(0,c);return}ea(!1),T(!1),H(null),eE(),ee.current=!1;let p=n.current;!p||"touches"in e||eP(p,e.pointerId,"releasePointerCapture");let d=el.current,h=eS(e.timeStamp),g=null!==d&&null!==h&&h>d?h-d:0,v=g>0?Math.max(g,50):0,x=v>0?u/v:0,w=v>0?s/v:0,y=eo.current.x,b=eo.current.y,S=ei.current;if(S&&null!==h&&h>=S.time){let e=h-S.time;if(e<=80){let t=Math.max(e,16),r=i.x-S.x,n=i.y-S.y,l=r/t,o=n/t;0!==l&&(y=l),0!==o&&(b=o)}else y=0,b=0}let P=null==f?void 0:f({event:e.nativeEvent,direction:C??L.current,deltaX:u,deltaY:s,velocityX:x,velocityY:w,releaseVelocityX:y,releaseVelocityY:b}),R="boolean"==typeof P;if(V.current&&!R){W.current={x:o.x,y:o.y},O({x:o.x,y:o.y}),M(void 0),ep(0,c);return}let E=!1;if(R)E=P,l=C??L.current??m;else for(let e of r){switch(e){case"right":u>en.current&&(E=!0,l="right");break;case"left":u<-en.current&&(E=!0,l="left");break;case"down":s>en.current&&(E=!0,l="down");break;case"up":s<-en.current&&(E=!0,l="up")}if(E)break}E&&l?(M(l),A(!0),null==a||a(e.nativeEvent,{direction:l})):(W.current={x:o.x,y:o.y},O({x:o.x,y:o.y}),M(void 0),ep(0,c))}),eA=w.useCallback(()=>{let e=h?F:W.current,t=h?Y:_.current;if(!E&&e.x===t.x&&e.y===t.y&&!k)return{[l.x]:"0px",[l.y]:"0px"};let r=e.x-t.x,n=e.y-t.y;return{transition:E?"none":void 0,transform:E?`translateX(${e.x}px) translateY(${e.y}px) scale(${t.scale})`:void 0,[l.x]:`${r}px`,[l.y]:`${n}px`}},[k,F,Y,E,l,h]);return{swiping:E,swipeDirection:C,dragDismissed:k,getPointerProps:w.useCallback(()=>t?{onPointerDown:eN,onPointerMove:eT,onPointerUp:ek,onPointerCancel:ek}:{},[t,ek,eT,eN]),getTouchProps:w.useCallback(()=>t?{onTouchStart:eN,onTouchMove:eT,onTouchEnd:ek,onTouchCancel:ek}:{},[t,ek,eT,eN]),getDragStyles:eA,reset:ed}}var eC=e.i(468603),eM=e.i(841625);let eE=((l={})[l.open=S.CommonPopupDataAttributes.open]="open",l[l.closed=S.CommonPopupDataAttributes.closed]="closed",l.disabled="data-disabled",l.swipeDirection="data-swipe-direction",l.swiping="data-swiping",l),eD={[eE.open]:""},eN={[eE.closed]:""},eT={[eE.swiping]:""},ek={[eE.disabled]:""},eA={open:e=>e?eD:eN,swiping:e=>e?eT:null,swipeDirection:e=>e?{[eE.swipeDirection]:e}:null,disabled:e=>e?ek:null},eF={up:"down",down:"up",left:"right",right:"left"},eO=w.forwardRef(function(e,t){let{className:r,render:n,disabled:l=!1,swipeDirection:i,...o}=e,{store:u}=(0,y.useDialogRootContext)(),{swipeDirection:s,frontmostHeight:a}=B(),c=Y(!0),[p,f]=w.useState(!1),d=(0,eh.useTimeout)(),h=w.useRef(null),m=w.useRef(null),g=w.useRef(!1),v=w.useRef({x:0,y:0}),x=w.useRef(null),S=w.useRef(!1),P=w.useRef(null),M=(0,eC.useBaseUiId)(e.id),E=(0,eM.useTriggerRegistration)(M,u),D=u.useState("open"),N=i??eF[s],T=eF[N],k=!l&&(!D||p),A=(0,z.useStableCallback)(()=>{v.current.x=0,v.current.y=0});function F(){let e=u.context.popupRef.current;if(!e)return null;let t="left"===T||"right"===T?e.offsetWidth:e.offsetHeight;return t<=0?null:t}let O=(0,z.useStableCallback)(()=>{let e=u.context.popupRef.current;e&&S.current&&(e.style.removeProperty(R.swipeMovementX),e.style.removeProperty(R.swipeMovementY),e.removeAttribute($.swiping)),e&&null!==P.current&&(e.style.transition=P.current,P.current=null);let t=u.context.backdropRef.current;t&&(t.removeAttribute($.swiping),t.style.setProperty(C.swipeProgress,"0"),t.style.removeProperty(R.height)),null==c||c.visualStateStore.set({swipeProgress:0,frontmostHeight:0}),S.current=!1});function j(e){u.select("open")||(g.current=!0,u.setOpen(!0,(0,ec.createChangeEventDetails)(ep.REASONS.swipe,e,h.current??void 0)))}let X=eR({enabled:k,directions:[N],elementRef:h,trackDrag:!1,movementCssVars:{x:R.swipeMovementX,y:R.swipeMovementY},onSwipeStart(e){d.clear(),u.context.outsidePressEnabledRef.current=!1,m.current=e,g.current=!1,f(!0),A()},onProgress(e,t){t&&m.current&&(v.current.x=t.deltaX,v.current.y=t.deltaY,t.direction!==N||(!(1>ey(N,t.deltaX,t.deltaY))||g.current)&&(g.current||j(m.current),function(){if(!p)return;let e=u.context.popupRef.current;if(!e||!u.select("open")||!u.select("mounted"))return;null==x.current&&(x.current=function(){let e=F();if(null==e)return null;let t=u.context.popupRef.current;if(!t)return e;let r=eb(t),n="left"===T||"right"===T?r.x:r.y;return Number.isFinite(n)&&Math.abs(n)>.5?Math.min(e,Math.abs(n)):e}());let t=x.current;if(!t||!Number.isFinite(t)||t<=0)return;let{x:r,y:n}=v.current,l=Math.max(0,ey(N,r,n)),i=l>t?t+Math.sqrt(l-t):l,o=(t-i)*("left"===T||"up"===T?-1:1),s="left"===T||"right"===T,f=Math.max(0,Math.min(1,l/t)),d=Math.max(0,Math.min(1,1-f));e.style.setProperty(R.swipeMovementX,`${s?o:0}px`),e.style.setProperty(R.swipeMovementY,`${s?0:o}px`),e.setAttribute($.swiping,""),null===P.current&&(P.current=e.style.transition),e.style.transition="none";let h=u.context.backdropRef.current;h&&(h.setAttribute($.swiping,""),h.style.setProperty(C.swipeProgress,`${d}`),f>0&&a>0?h.style.setProperty(R.height,`${a}px`):h.style.removeProperty(R.height)),null==c||c.visualStateStore.set({swipeProgress:f,frontmostHeight:f>0?a:0}),S.current=!0}()))},onRelease({event:e,direction:t,deltaX:r,deltaY:n,releaseVelocityX:i,releaseVelocityY:o}){let s,a=ey(N,r,n),c=ey(N,i,o),p=null==(s=F())?40:.5*s;if(null!=p&&t===N&&(null!=p&&a>=p||c>=.1)&&!l)u.select("open")||j(e);else g.current&&u.select("open")&&u.setOpen(!1,(0,ec.createChangeEventDetails)(ep.REASONS.swipe,e,h.current??void 0));return m.current=null,g.current=!1,f(!1),x.current=null,d.start(0,()=>{u.context.outsidePressEnabledRef.current=!0}),A(),O(),!1}}),H=X.getPointerProps(),I=X.getTouchProps(),W=X.reset;w.useEffect(()=>{k||(W(),A(),O(),f(!1),g.current=!1,m.current=null,x.current=null)},[O,k,A,W]),w.useEffect(()=>()=>{u.context.outsidePressEnabledRef.current=!0},[u]);let _={open:D,swiping:X.swiping,swipeDirection:N,disabled:l};return(0,b.useRenderElement)("div",e,{state:_,ref:[t,h,E],stateAttributesMapping:eA,props:[{role:"presentation","aria-hidden":!0,style:{pointerEvents:k?void 0:"none",touchAction:"left"===N||"right"===N?"pan-y":"pan-x"},onPointerDown(e){var t;"touch"!==e.pointerType&&(null==(t=H.onPointerDown)||t.call(H,e),e.cancelable&&e.preventDefault())},onPointerMove(e){var t;"touch"!==e.pointerType&&(null==(t=H.onPointerMove)||t.call(H,e))},onPointerUp(e){var t;"touch"!==e.pointerType&&(null==(t=H.onPointerUp)||t.call(H,e))},onPointerCancel(e){var t;"touch"!==e.pointerType&&(null==(t=H.onPointerCancel)||t.call(H,e))}},I,M?{id:M}:void 0,o]})}),eY=e.i(354576).DialogTitle,ej=e.i(835114).DialogTrigger;var eX=e.i(553563),eH=e.i(193383),eI=e.i(12258),ez=e.i(548751),eW=e.i(836510);let e$=`[${N}]`,e_=w.forwardRef(function(e,t){let{className:r,render:n,children:l,...i}=e,{store:o}=(0,y.useDialogRootContext)(),{swipeDirection:s,notifyParentSwipingChange:a,notifyParentSwipeProgressChange:c,frontmostHeight:p,snapToSequentialPoints:f}=B(),d=Y(!0),h=null==d?void 0:d.visualStateStore,m=o.useState("open"),g=o.useState("mounted"),v=o.useState("nested"),x=o.useState("nestedOpenDialogCount"),b=o.useState("viewportElement"),S=o.useState("popupElement"),M=x>0,E="left"===s||"right"===s?"horizontal":"vertical",D="vertical"===E,N=D?"horizontal":"vertical",{snapPoints:T,resolvedSnapPoints:k,activeSnapPoint:A,activeSnapPointOffset:F,setActiveSnapPoint:O,popupHeight:j}=J(),[X,H]=w.useState(null),I=w.useRef(void 0),W=w.useRef(null),$=(0,eH.useAnimationFrame)(),_=w.useRef(!1),L=w.useRef(""),U=w.useRef(!1),V=w.useRef(!1),K=w.useRef(null),Z=w.useMemo(()=>
2{if(!T||T.length<2||"down"!==s&&"up"!==s||k.length<2)return null;let e=k.map(e=>e.offset).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(e.length<2)return null;let t=e[0],r=e[1],n=e[e.length-1],l=r-t;if(!Number.isFinite(l)||l<=0){let e=n-t;if(!Number.isFinite(e)||e<=0)return null;l=e}return{minOffset:t,range:l}},[k,T,s]),ee=w.useMemo(()=>Z&&null!==F?(0,q.clamp)((F-Z.minOffset)/Z.range,0,1):null,[F,Z]),et=w.useMemo(()=>T&&T.length>0&&("down"===s||"up"===s)?"down"===s?["down","up"]:["up","down"]:[s],[T,s]),er=(0,z.useStableCallback)(e=>{eL(o.context.popupRef.current,o.context.backdropRef.current,e)}),en=(0,z.useStableCallback)(()=>{var e;er(!1),null==(e=o.context.popupRef.current)||e.removeAttribute(P.TransitionStatusDataAttributes.endingStyle),H(null)}),el=(0,z.useStableCallback)(({resolvedProgress:e,shouldTrackProgress:t,notifyParent:r})=>{let n=m&&!v&&t,l=n?e:0;r&&c&&c(m&&t?e:0),null==h||h.set({swipeProgress:l,frontmostHeight:l>0?p:0});let i=o.context.backdropRef.current;if(i){if(!n||l<=0){i.style.setProperty(C.swipeProgress,"0"),i.style.removeProperty(R.height);return}i.style.setProperty(C.swipeProgress,`${l}`),p>0?i.style.setProperty(R.height,`${p}px`):i.style.removeProperty(R.height)}}),ei=eR({enabled:g&&!M,directions:et,elementRef:o.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:R.swipeMovementX,y:R.swipeMovementY},onSwipeStart(e){var t,r,n;if("touches"in e||"pointerType"in e&&"touch"===e.pointerType)return;let l=o.context.popupRef.current;if(!l)return;let i=(0,G.ownerDocument)(l),u=null==(t=i.getSelection)?void 0:t.call(i);if(!u||u.isCollapsed)return;let s=(0,eg.isElement)(u.anchorNode)?u.anchorNode:null==(r=u.anchorNode)?void 0:r.parentElement,a=(0,eg.isElement)(u.focusNode)?u.focusNode:null==(n=u.focusNode)?void 0:n.parentElement;((0,em.contains)(l,s)||(0,em.contains)(l,a))&&u.removeAllRanges()},onSwipingChange(e){eU(o.context.backdropRef.current,e),e||(_.current=!1,null==a||a(!1))},swipeThreshold:({element:e,direction:t})=>eB(e,t),canStart(e,t){let r=o.context.popupRef.current;if(!r)return!1;let n=r.ownerDocument,l=ew(n,e.x,e.y);if(!l||!(0,em.contains)(r,l))return!1;let i=t.nativeEvent;return!(("touches"in i||"pointerType"in i&&"touch"===i.pointerType)&&eq(n,r)||"touchstart"===i.type&&eV(l))},onProgress(e,t){!function(e){if(_.current||!e)return;let t=e.direction??s,r="left"===t||"right"===t?e.deltaX:e.deltaY;!Number.isFinite(r)||10>Math.abs(r)||(_.current=!0,null==a||a(!0))}(t);let r=(null==t?void 0:t.direction)??ei.swipeDirection,n=void 0===r||r===s,l=!!(T&&T.length>0),i="down"===s||"up"===s,o=l&&i||!l||"left"===s||"right"===s||n,u=e;if(Z&&j>0){if(t&&Number.isFinite(t.deltaY)){let e=F??Z.minOffset,r=(0,q.clamp)(e+t.deltaY,0,j);u=(0,q.clamp)((r-Z.minOffset)/Z.range,0,1)}else if(null!==ee)u=ee;else if("down"===r||"up"===r){let t=e*j,n=F??Z.minOffset;u=(0,q.clamp)((("down"===r?n+t:n-t)-Z.minOffset)/Z.range,0,1)}}el({resolvedProgress:u,shouldTrackProgress:o,notifyParent:!0})},onRelease({event:e,deltaX:t,deltaY:r,direction:n,velocityX:l,velocityY:i,releaseVelocityX:u,releaseVelocityY:c}){let p={deltaX:t,deltaY:r,velocityX:l,velocityY:i,releaseVelocityX:u,releaseVelocityY:c};function d(e){let t=o.context.popupRef.current;t&&(null==a||a(!1),er(!0),t.style.removeProperty("transition"),t.setAttribute(P.TransitionStatusDataAttributes.endingStyle,""),eX.flushSync(()=>{H(function({direction:e,deltaX:t,deltaY:r,velocityX:n,velocityY:l,releaseVelocityX:i,releaseVelocityY:u}){if(!e)return null;let s=o.context.popupRef.current;if(!s)return null;let a="left"===e||"right"===e?s.offsetWidth:s.offsetHeight;if(!Number.isFinite(a)||a<=0)return null;let c=T&&T.length>0?F??0:0,p=0;"down"===e?p=c:"up"===e&&(p=-c);let f=p+("left"===e||"right"===e?t:r),d=Math.max(0,a-("left"===e||"up"===e?-f:f));if(!Number.isFinite(d)||d<=0)return null;let h="left"===e||"right"===e?i:u,m=Math.abs(h)>0&&Number.isFinite(h)?h:"left"===e||"right"===e?n:l,g="left"===e||"up"===e?-m:m;if(!Number.isFinite(g)||g<=.2)return null;let v=(0,q.clamp)(g,.2,4),x=(0,q.clamp)(d/v,80,360);if(!Number.isFinite(x))return null;
2let w=(0,q.clamp)(.1+(x-80)/280*.9,.1,1);return!Number.isFinite(w)||w<=0?null:w}({direction:e,...p}))}))}if(!T||0===T.length){if(!n)return void en();let e=o.context.popupRef.current;if(!e)return void en();let u=eB(e,n),s="left"===n||"right"===n?t:r;if(!Number.isFinite(s))return void en();let a="left"===n||"up"===n?-s:s;if(a<=0)return en(),!1;let c="left"===n||"right"===n?l:i;if(("left"===n||"up"===n?-c:c)>=.5&&a>0)return d(n),!0;let p=a>u;return p?d(n):en(),p}if("down"!==s&&"up"!==s||!j||0===k.length)return void en();let h="down"===s?r:-r;if(!Number.isFinite(h))return void en();let m=Math.sign(h),g="down"===s?c:-c,v="down"===s?i:-i,x=Number.isFinite(g)?g:v;if(0!==m&&Math.abs(h)>=10&&Number.isFinite(x)){let e=Math.sign(x);0!==e&&e!==m&&(x=v)}let w=F??0,y=(0,q.clamp)(w+h,0,j),b=Number.isFinite(x)&&Math.abs(x)>=.5?300*(0,q.clamp)(x,-4,4):0,S=f?y:(0,q.clamp)(y+b,0,j),R=(0,ec.createChangeEventDetails)(ep.REASONS.swipe,e),C=()=>(I.current=A,null==O||O(null,R),d(s),!0);if(f){let e=[...k].sort((e,t)=>e.offset-t.offset);if(0===e.length)return en(),!1;let t=0,r=Math.abs(w-e[0].offset);for(let n=1;n<e.length;n+=1){let l=Math.abs(w-e[n].offset);l<r&&(r=l,t=n)}let n=e[0];for(let t of(r=Math.abs(S-n.offset),e)){let e=Math.abs(S-t.offset);e<r&&(r=e,n=t)}let l=Math.sign(x),i=S;if(0!==m&&0!==l&&l===m&&Math.abs(x)>=.5){let r=(0,q.clamp)(t+m,0,e.length-1);if(r!==t){let t=e[r];(m>0?S<t.offset:S>t.offset)&&(n=t,i=t.offset)}else if(m>0)return C()}return Math.abs(i-j)<Math.abs(i-n.offset)?C():(null==O||O(n.value,R),en(),!1)}if(x>=.5&&h>0)return C();let M=k[0],E=Math.abs(S-M.offset);for(let e of k){let t=Math.abs(S-e.offset);t<E&&(E=t,M=e)}return Math.abs(S-j)<E?C():(null==O||O(M.value,R),en(),!1)},onDismiss(e){null==h||h.set({swipeProgress:0,frontmostHeight:0});let t=o.context.backdropRef.current;t&&(t.style.setProperty(C.swipeProgress,"0"),t.style.removeProperty(R.height));let r=(0,ec.createChangeEventDetails)(ep.REASONS.swipe,e);if(o.setOpen(!1,r),r.isCanceled){var n;let t=I.current;void 0!==t&&(null==O||O(t,(0,ec.createChangeEventDetails)(ep.REASONS.swipe,e))),I.current=void 0,null==(n=W.current)||n.call(W),en();return}o.select("open")?$.request(()=>{if(o.select("open")){var t;let r=I.current;void 0!==r&&(null==O||O(r,(0,ec.createChangeEventDetails)(ep.REASONS.swipe,e))),I.current=void 0,en(),null==(t=W.current)||t.call(W)}else I.current=void 0}):(I.current=void 0,er(!0))}}),eu=ei.getPointerProps(),es=ei.getTouchProps(),ea=ei.reset;W.current=ea,w.useEffect(()=>{let e=b??S;if(!e)return;let t=(0,G.ownerDocument)(e),r=(0,eo.ownerWindow)(t);function n(n){var l;if(V.current)return;let i=K.current,o=n.touches[0];if(!o||!i)return;let u=D?o.clientY-i.lastY:o.clientX-i.lastX;if(eK(n,r)){i.allowSwipe=!1,eQ(i,o);return}if(2===n.touches.length||eq(t,e)||!m||!g||M||function(e,t,r){if(e.preserveNativeCrossAxisScroll)return!0;if(!0===e.allowSwipe||!e.hasCrossAxisScrollableContent)return!1;let n=r?t.clientY-e.startY:t.clientX-e.startX,l=r?t.clientX-e.startX:t.clientY-e.startY,i=Math.abs(n),o=Math.abs(l);return!(o<6)&&!(o<=i+2)&&(e.preserveNativeCrossAxisScroll=!0,!0)}(i,o,D))return void eQ(i,o);let a=i.scrollTarget;if(!a||a===t.documentElement||a===t.body||(l=a,"vertical"===E?!(l.scrollHeight>l.clientHeight):!(l.scrollWidth>l.clientWidth))){n.cancelable&&n.preventDefault(),eQ(i,o);return}if(0!==u){let e=function(e,t,r,n){let{offset:l,max:i}=eZ(e,t),o=e0(r,t);return null!==o&&!!(o?n>0:n<0)&&(o?l<=0:l>=i)}(a,E,s,u);i.allowSwipe?n.cancelable&&n.preventDefault():n.cancelable&&e?(i.allowSwipe=!0,n.preventDefault()):i.allowSwipe=!1}eQ(i,o)}return t.addEventListener("touchmove",n,{passive:!1,capture:!0}),()=>{t.removeEventListener("touchmove",n,{capture:!0})}},[g,M,m,S,D,E,s,b]),w.useEffect(()=>{!Z||ei.swiping||el({resolvedProgress:!m||v?0:ee??0,shouldTrackProgress:!0,notifyParent:!1})},[el,p,v,c,m,ee,Z,ei.swiping,o,h]),w.useEffect(()=>{if(c)return m||c(0),()=>{c(0)}},[c,m]),w.useEffect(()=>{m&&(ea(),en())},[en,m,ea]),w.useEffect(()=>()=>{null==h||h.set({swipeProgress:0,frontmostHeight:0}),eU(o.context.backdropRef.current,!1),null==a||a(!1)},[a,o,h]);let ef=w.useMemo(()=>({swiping:ei.swiping,getDragStyles:ei.getDragStyles,swipeStrength:X??null,setSwipeDismissed(e){eL(o.context.popupRef.current,o.context.backdropRef.current,e)}}),[o,ei.getDragStyles,ei.swiping,X]);function ed(){V.current=!1,K.current=null,L.current="",U.current=!1}return(0,u.jsx)(eI.DialogViewport,{ref:t,className:r,render:n,...(0,ez.mergeProps)(i,{onPointerDown(e){var t,r;if(L.current=e.pointerType,U.current="pen"===e.pointerType,!m||!g||M)return;let n=ew((0,G.ownerDocument)(e.currentTarget),e.clientX,e.clientY);eV(n)||(null==(r=n)?void 0:r.closest(e$))||"touch"!==e.pointerType&&(null==(t=eu.onPointerDown)||t.call(eu,e))},onPointerMove(e){var t;"touch"!==e.pointerType&&(null==(t=eu.onPointerMove)||t.call(eu,e))},onPointerUp(e){var t;L.current===e.pointerType&&(L.current=""),"touch"!==e.pointerType&&(null==(t=eu.onPointerUp)||t.call(eu,e))},onPointerCancel(e){var t;L.current===e.pointerType&&(L.current=""),"touch"!==e.pointerType&&(null==(t=eu.onPointerCancel)||t.call(eu,e))},onTouchStart(e){var t;if("pen"===L.current&&U.current){U.current=!1,V.current=!1,K.current=null;return}if(!m||!g||M){V.current=!1,K.current=null;return}let r=e.touches[0];if(!r)return;if(eJ(e)){V.current=!1,K.current=null;return}if(V.current=eV(ew((0,G.ownerDocument)(e.currentTarget),r.clientX,r.clientY)),V.current){K.current=null;return}let n=b??S,l=(0,eg.isElement)(e.target)?e.target:null,i=null,o=!1;n&&l&&(0,em.contains)(n,l)&&(i=ex(l,n,E),o=null!=ex(l,n,N));let u=null;i&&(u=!!function(e,t,r){let{offset:n,max:l}=eZ(e,t),i=e0(r,t);return null!==i&&(i?n<=0:n>=l)}(i,E,s)&&null),K.current={startX:r.clientX,startY:r.clientY,lastX:r.clientX,lastY:r.clientY,scrollTarget:i,hasCrossAxisScrollableContent:o,allowSwipe:u,preserveNativeCrossAxisScroll:!1},null==(t=es.onTouchStart)||t.call(es,e)},onTouchMove(e){var t;if(V.current||eJ(e))return;let r=K.current;(null==r?void 0:r.preserveNativeCrossAxisScroll)||(null==r?void 0:r.allowSwipe)!==!1&&((null==r?void 0:r.scrollTarget)==null||r.allowSwipe)&&(null==(t=es.onTouchMove)||t.call(es,e))},onTouchEnd(e){var t;ed(),null==(t=es.onTouchEnd)||t.call(es,e)},onTouchCancel(e){var t;ed(),null==(t=es.onTouchCancel)||t.call(es,e)},"data-nested-dialog-open":void 0}),children:(0,u.jsx)(Q.Provider,{value:ef,children:l})})});function eL(e,t,r){if(r){null==e||e.setAttribute($.swipeDismiss,""),null==t||t.setAttribute($.swipeDismiss,"");return}null==e||e.removeAttribute($.swipeDismiss),null==t||t.removeAttribute($.swipeDismiss)}function eU(e,t){if(e){if(t)return void e.setAttribute($.swiping,"");e.removeAttribute($.swiping)}}function eV(e){return!!(null==e?void 0:e.closest(eW.BASE_UI_SWIPE_IGNORE_SELECTOR))}function eB(e,t){return Math.max(.5*("left"===t||"right"===t?e.offsetWidth:e.offsetHeight),10)}function eG(e,t){return e instanceof t.HTMLInputElement&&"range"===e.type}function eq(e,t){var r,n,l;let i,o,u=e.activeElement;if(u&&(0,em.contains)(t,u)&&(0,eg.isElement)(u)&&("INPUT"===u.tagName||"TEXTAREA"===u.tagName)){let{selectionStart:e,selectionEnd:t}=u;if(null!=e&&null!=t&&e<t)return!0}let s=null==(r=e.getSelection)?void 0:r.call(e);return!!s&&!s.isCollapsed&&(i=(0,eg.isElement)(s.anchorNode)?s.anchorNode:null==(n=s.anchorNode)?void 0:n.parentElement,o=(0,eg.isElement)(s.focusNode)?s.focusNode:null==(l=s.focusNode)?void 0:l.parentElement,s.containsNode(t,!0)||(0,em.contains)(t,i)||(0,em.contains)(t,o))}function eK(e,t){let r=e.composedPath();return r?r.some(e=>eG(e,t)):eG(e.target,t)}function eJ(e){return eK(e.nativeEvent,(0,eo.ownerWindow)(e.currentTarget))}function eQ(e,t){e.lastX=t.clientX,e.lastY=t.clientY}function eZ(e,t){if("vertical"===t){let t=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:t}}let r=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:r}}function e0(e,t){return"vertical"===t?"down"===e||"up"!==e&&null:"right"===e||"left"!==e&&null}var e1=e.i(928790);e.s(["Backdrop",0,E,"Close",0,D,"Content",0,T,"Description",0,k,"Handle",()=>
2e1.DialogHandle,"Indent",0,X,"IndentBackground",0,I,"Popup",0,er,"Portal",0,en,"Provider",0,function(e){let{children:t}=e,[r,n]=w.useState(()=>new Map),[l]=w.useState(el),i=(0,z.useStableCallback)((e,t)=>{n(r=>{if(r.get(e)===t)return r;let n=new Map(r);return n.set(e,t),n})}),o=(0,z.useStableCallback)(e=>{n(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})}),s=w.useMemo(()=>{for(let e of r.values())if(e)return!0;return!1},[r]),a=w.useMemo(()=>({setDrawerOpen:i,removeDrawer:o,active:s,visualStateStore:l}),[s,o,i,l]);return(0,u.jsx)(O.Provider,{value:a,children:t})},"Root",0,function(e){let{children:t,open:r,defaultOpen:n=!1,onOpenChange:l,onOpenChangeComplete:s,disablePointerDismissal:a=!1,modal:c=!0,actionsRef:p,handle:f,triggerId:d,defaultTriggerId:h=null,swipeDirection:m="down",snapToSequentialPoints:g=!1,snapPoints:v,snapPoint:x,defaultSnapPoint:y,onSnapPointChange:b}=e,S=(0,z.useStableCallback)(b),P=B(!0),R=null==P?void 0:P.onNestedSwipeProgressChange,C=null==P?void 0:P.onNestedFrontmostHeightChange,M=null==P?void 0:P.onNestedSwipingChange,E=null==P?void 0:P.onNestedDrawerPresenceChange,[D,N]=w.useState(0),[T,k]=w.useState(0),[A,F]=w.useState(!1),[O,Y]=w.useState(!1),[j]=w.useState(ef),X=void 0!==y?y:(null==v?void 0:v[0])??null,H=void 0!==x,[I,W]=(0,ei.useControlled)({controlled:x,default:X,name:"Drawer",state:"snapPoint"}),$=w.useRef(!1),_=(0,z.useStableCallback)((e,t)=>{let r=t??(0,ec.createChangeEventDetails)(ep.REASONS.none);null==S||S(e,r),r.isCanceled||W(e)}),L=w.useMemo(()=>H||!v||0===v.length||null!==I&&v.some(e=>Object.is(e,I))?I:X,[I,H,X,v]),U=(0,z.useStableCallback)(e=>{N(e),!$.current&&e>0&&k(e)}),G=(0,z.useStableCallback)(e=>{if(e>0){$.current=!0,k(e);return}$.current=!1,D>0&&k(D)}),q=(0,z.useStableCallback)(e=>{F(e)}),K=(0,z.useStableCallback)(e=>{j.set(e),null==R||R(e)}),J=(0,z.useStableCallback)(e=>{Y(e),null==M||M(e)}),Q=(0,z.useStableCallback)((e,t)=>{null==l||l(e,t),!t.isCanceled&&!e&&v&&v.length>0&&_(X,(0,ec.createChangeEventDetails)(t.reason,t.event,t.trigger))}),Z=w.useMemo(()=>({swipeDirection:m,snapToSequentialPoints:g,snapPoints:v,activeSnapPoint:L,setActiveSnapPoint:_,frontmostHeight:T,popupHeight:D,hasNestedDrawer:A,nestedSwiping:O,nestedSwipeProgressStore:j,onNestedDrawerPresenceChange:q,onPopupHeightChange:U,onNestedFrontmostHeightChange:G,onNestedSwipingChange:J,onNestedSwipeProgressChange:K,notifyParentFrontmostHeight:C,notifyParentSwipingChange:M,notifyParentSwipeProgressChange:R,notifyParentHasNestedDrawer:E}),[L,T,A,O,j,E,R,M,C,q,G,K,J,U,D,_,v,g,m]),ee="function"==typeof t?e=>(0,u.jsxs)(w.Fragment,{children:[i||(i=(0,u.jsx)(ed,{})),t(e)]}):(0,u.jsxs)(w.Fragment,{children:[o||(o=(0,u.jsx)(ed,{})),t]});return(0,u.jsx)(V.Provider,{value:Z,children:(0,u.jsx)(ea.Dialog.Root,{open:r,defaultOpen:n,onOpenChange:Q,onOpenChangeComplete:s,disablePointerDismissal:a,modal:c,actionsRef:p,handle:f,triggerId:d,defaultTriggerId:h,children:ee})})},"SwipeArea",0,eO,"Title",0,eY,"Trigger",0,ej,"Viewport",0,e_,"createHandle",()=>e1.createDialogHandle],390767);var e2=e.i(390767);e.s(["Drawer",0,e2],974728);var e2=e2,e5=e.i(615379),e6=e.i(173544);function e3(e){return(0,u.jsx)(h.Radio,{value:e.value,disabled:e.disabled,className:"border-border-divider border-b px-150 py-100",children:e.label},e.value)}function e7(e){return(0,u.jsx)(p.DropdownMenuRadioItem,{value:e.value,disabled:e.disabled,className:"w-full",children:e.label},e.value)}let e8={small:"max-md:p-25 max-md:size-[28px] max-md:justify-center",regular:"max-md:p-25 max-md:size-[44px] max-md:justify-center",large:"max-md:p-25 max-md:size-[56px] max-md:justify-center"};e.s(["AdaptiveSelect",0,function(e){let t,r,n,l,i,o,y,b,S,P,R,C,M,E,D,N,T,k,A,F,O,Y,j,X,H,I,z,W,$,_,L,U,V,B,G,q=(0,s.c)(85);q[0]!==e?({value:M,onValueChange:l,options:i,title:R,trackingData:C,placeholder:o,mobileIcon:n,align:y,icon:b,iconPlacement:S,size:P,className:r,...t}=e,q[0]=e,q[1]=t,q[2]=r,q[3]=n,q[4]=l,q[5]=i,q[6]=o,q[7]=y,q[8]=b,q[9]=S,q[10]=P,q[11]=R,q[12]=C,q[13]=M):(t=q[1],r=q[2],n=q[3],l=q[4],i=q[5],o=q[6],y=q[7],b=q[8],S=q[9],P=q[10],R=q[11],C=q[12],M=q[13]);let K=void 0===y?"start":y,J=void 0===b?"dropdownDown":b,Q=void 0===S?"end":S,Z=void 0===P?"regular":P;q[14]===Symbol.for("react.memo_cache_sentinel")?(E={initializeWithValue:!1},q[14]=E):E=q[14];let ee=(0,e6.useMediaQuery)(x.breakpoints.mediumUp,E),[et,er]=(0,w.useState)(!1),[en,el]=(0,w.useState)(ee);en!==ee&&(el(ee),er(!1)),q[15]!==et||q[16]!==C?(D=e=>{e&&!et&&(0,v.trackModalOpenEvent)(C),er(e)},q[15]=et,q[16]=C,q[17]=D):D=q[17];let ei=D;q[18]!==l||q[19]!==i?(N=e=>{let t=i.find(t=>t.value===e);t&&l(t.value),er(!1)},q[18]=l,q[19]=i,q[20]=N):N=q[20];let eo=N;if(q[21]!==i||q[22]!==o||q[23]!==M){var eu;T=(null==(eu=i.find(e=>e.value===M))?void 0:eu.label)??o,q[21]=i,q[22]=o,q[23]=M,q[24]=T}else T=q[24];let es=T,ea=(0,w.useId)(),ec=n&&f.icons[n],ep=f.icons[J],ef=c.scaleStyles[Z].iconSize,ed=es?`${R}: ${es}`:R,eh=ec?void 0:J,em=ec&&e8[Z];q[25]!==r||q[26]!==em?(k=(0,e5.default)(em,r),q[25]=r,q[26]=em,q[27]=k):k=q[27],q[28]!==ep||q[29]!==ec||q[30]!==ef||q[31]!==es?(A=ec?(0,u.jsxs)("span",{className:"flex items-center gap-50",children:[(0,u.jsx)(ec,{className:"shrink-0 fill-current md:hidden",size:ef}),(0,u.jsx)("span",{className:"max-md:hidden",children:es}),(0,u.jsx)(ep,{className:"shrink-0 fill-current max-md:hidden",size:ef})]}
2):es,q[28]=ep,q[29]=ec,q[30]=ef,q[31]=es,q[32]=A):A=q[32],q[33]!==t||q[34]!==Q||q[35]!==Z||q[36]!==eh||q[37]!==k||q[38]!==A||q[39]!==ed?(F={size:Z,"aria-label":ed,icon:eh,iconPlacement:Q,className:k,...t,children:A},q[33]=t,q[34]=Q,q[35]=Z,q[36]=eh,q[37]=k,q[38]=A,q[39]=ed,q[40]=F):F=q[40];let eg=F,ev=et&&ee;q[41]!==ee||q[42]!==et||q[43]!==ei||q[44]!==eg?(O=ee?(0,u.jsx)(p.DropdownMenuTrigger,{render:(0,u.jsx)(a.Button,{...eg})}):(0,u.jsx)(a.Button,{...eg,onClick:()=>ei(!0),"aria-haspopup":"dialog","aria-expanded":et}),q[41]=ee,q[42]=et,q[43]=ei,q[44]=eg,q[45]=O):O=q[45],q[46]!==i?(Y=i.map(e7),q[46]=i,q[47]=Y):Y=q[47],q[48]!==eo||q[49]!==Y||q[50]!==M?(j=(0,u.jsx)(p.DropdownMenuRadioGroup,{value:M,onValueChange:eo,"data-sentry-element":"DropdownMenuRadioGroup","data-sentry-source-file":"index.tsx",children:Y}),q[48]=eo,q[49]=Y,q[50]=M,q[51]=j):j=q[51],q[52]!==K||q[53]!==j?(X=(0,u.jsx)(p.DropdownMenuContent,{align:K,className:"max-h-[300px] min-w-[150px] overflow-auto","data-sentry-element":"DropdownMenuContent","data-sentry-source-file":"index.tsx",children:j}),q[52]=K,q[53]=j,q[54]=X):X=q[54];let ex=et&&!ee;return q[55]===Symbol.for("react.memo_cache_sentinel")?(H=(0,u.jsx)(e2.Backdrop,{className:"bg-surface-backdrop-overlay fixed inset-0 z-40","data-sentry-element":"Drawer.Backdrop","data-sentry-source-file":"index.tsx"}),q[55]=H):H=q[55],q[56]!==R||q[57]!==ea?(I=(0,u.jsx)(m.Text,{variant:"HeadingXL",component:"h2",id:ea,"data-sentry-element":"Text","data-sentry-source-file":"index.tsx",children:R}),q[56]=R,q[57]=ea,q[58]=I):I=q[58],q[59]===Symbol.for("react.memo_cache_sentinel")?(z=(0,g.symbols__symbol_close)(),q[59]=z):z=q[59],q[60]===Symbol.for("react.memo_cache_sentinel")?(W=(0,u.jsx)(e2.Close,{render:(0,u.jsx)("button",{type:"button","aria-label":z,className:"absolute top-100 right-100 flex",children:(0,u.jsx)(d.IconClose,{size:24})}),"data-sentry-element":"Drawer.Close","data-sentry-source-file":"index.tsx"}),q[60]=W):W=q[60],q[61]!==I?($=(0,u.jsxs)("div",{className:"border-border-divider relative flex shrink-0 justify-center border-b p-100",children:[I,W]}),q[61]=I,q[62]=$):$=q[62],q[63]!==i?(_=i.map(e3),q[63]=i,q[64]=_):_=q[64],q[65]!==eo||q[66]!==_||q[67]!==M?(L=(0,u.jsx)(h.RadioGroup,{value:M,onValueChange:eo,className:"text-s overflow-y-auto [&]:gap-0","data-sentry-element":"RadioGroup","data-sentry-source-file":"index.tsx",children:_}),q[65]=eo,q[66]=_,q[67]=M,q[68]=L):L=q[68],q[69]!==$||q[70]!==L?(U=(0,u.jsxs)(e2.Content,{className:"flex min-h-0 flex-col","data-sentry-element":"Drawer.Content","data-sentry-source-file":"index.tsx",children:[$,L]}),q[69]=$,q[70]=L,q[71]=U):U=q[71],q[72]!==U||q[73]!==ea?(V=(0,u.jsxs)(e2.Portal,{"data-sentry-element":"Drawer.Portal","data-sentry-source-file":"index.tsx",children:[H,(0,u.jsx)(e2.Viewport,{className:"fixed inset-0 z-40 flex items-end data-[nested]:z-[60]","data-sentry-element":"Drawer.Viewport","data-sentry-source-file":"index.tsx",children:(0,u.jsx)(e2.Popup,{"aria-labelledby":ea,className:"rounded-t-75 border-border-card-outline bg-surface-background-lighter shadow-elevation-high flex max-h-[80vh] w-full [transform:translateY(var(--drawer-swipe-movement-y))] flex-col overflow-hidden border border-b-0 transition-transform duration-200 ease-out data-[ending-style]:[transform:translateY(100%)] data-[starting-style]:[transform:translateY(100%)] data-[swiping]:transition-none","data-sentry-element":"Drawer.Popup","data-sentry-source-file":"index.tsx",children:U})})]}),q[72]=U,q[73]=ea,q[74]=V):V=q[74],q[75]!==ei||q[76]!==ex||q[77]!==V?(B=(0,u.jsx)(e2.Root,{open:ex,onOpenChange:ei,swipeDirection:"down","data-sentry-element":"Drawer.Root","data-sentry-source-file":"index.tsx",children:V}),q[75]=ei,q[76]=ex,q[77]=V,q[78]=B):B=q[78],q[79]!==ei||q[80]!==ev||q[81]!==O||q[82]!==X||q[83]!==B?(G=(0,u.jsxs)(p.DropdownMenuRoot,{open:ev,onOpenChange:ei,"data-sentry-element":"DropdownMenuRoot","data-sentry-component":"AdaptiveSelect","data-sentry-source-file":"index.tsx",children:[O,X,B]}),q[79]=ei,q[80]=ev,q[81]=O,q[82]=X,q[83]=B,q[84]=G):G=q[84],G}],259760)}]);
3
4//# debugId=0053f702-07e8-0a30-9d4b-83b9abb8cb7a

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.