;/*FB_PKG_DELIM*/ __d("CometHideLayerOnEscape.react",["fbt","CometComponentWithKeyCommands.react","CometKeys","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useMemo;function d(e){var t=o("react-compiler-runtime").c(8),n=e.children,a=e.debugName,i=e.onHide,l=a===void 0?"ModalLayer":a,c,d;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={key:r("CometKeys").ESCAPE},d=s._(/*BTDS*/"Cerrar"),t[0]=c,t[1]=d):(c=t[0],d=t[1]);var m;t[2]!==i?(m=[{command:c,description:d,handler:i,triggerFromInputs:!0,triggerOnRepeats:!1}],t[2]=i,t[3]=m):m=t[3];var p=m,_;return t[4]!==n||t[5]!==p||t[6]!==l?(_=u.jsx(r("CometComponentWithKeyCommands.react"),{commandConfigs:p,debugName:l,isWrapperFocusable:!0,children:n}),t[4]=n,t[5]=p,t[6]=l,t[7]=_):_=t[7],_}l.default=d}),226); __d("CometThemeInfraBaseTheme.react",["BaseView.react","CometThemeInfraBaseThemeContext.react","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l){"use strict";var e=["displayMode","ref","themes","children","xstyle"],s,u=s||(s=o("react"));function c(t){var n=o("react-compiler-runtime").c(18),a,i,l,s,c,d;n[0]!==t?(i=t.displayMode,s=t.ref,c=t.themes,a=t.children,d=t.xstyle,l=babelHelpers.objectWithoutPropertiesLoose(t,e),n[0]=t,n[1]=a,n[2]=i,n[3]=l,n[4]=s,n[5]=c,n[6]=d):(a=n[1],i=n[2],l=n[3],s=n[4],c=n[5],d=n[6]);var m=c[i!=null?i:"auto"],p;n[7]!==m||n[8]!==d?(p=[m,d],n[7]=m,n[8]=d,n[9]=p):p=n[9];var _;n[10]!==a||n[11]!==l||n[12]!==s||n[13]!==p?(_=u.jsx(r("BaseView.react"),babelHelpers.extends({xstyle:p},l,{ref:s,children:a})),n[10]=a,n[11]=l,n[12]=s,n[13]=p,n[14]=_):_=n[14];var f;return n[15]!==_||n[16]!==c?(f=u.jsx(r("CometThemeInfraBaseThemeContext.react").Provider,{value:c,children:_}),n[15]=_,n[16]=c,n[17]=f):f=n[17],f}l.default=c}),98); __d("pointerEventDistance",[],(function(t,n,r,o,a,i){"use strict";var e=1,l=5;function s(e,t,n,r){return Math.sqrt(Math.pow(r-t,2)+Math.pow(n-e,2))}function u(e,t){return s(e.clientX,e.clientY,t.clientX,t.clientY)}function c(t,n){var r=n.pointerType==="touch"||n.pointerType==="pen"?l:e,o=u(t,n);return o<=r}i.isWithinThreshold=c}),66); __d("BaseDialog.react",["BaseThemeProvider.react","BaseView.react","CometHideLayerOnEscape.react","CometThemeInfraBaseTheme.react","UserAgent","pointerEventDistance","react","react-compiler-runtime","stylex","useMergeRefs"],(function(t,n,r,o,a,i,l){"use strict";var e=["anchorXStyle","aria-label","children","cometThemeInfraConfig","cometThemeInfraDisplayMode","disableBottomSheetClosingWithDrag","disableClosingWithEscape","disableClosingWithMask","enableBottomSheetBehavior","onAnimationEnd","onClose","ref","rootXStyle","testid","themeConfig","withDeprecatedStyles","xstyle"],s,u,c=u||(u=o("react")),d=u,m=d.useEffect,p=d.useRef,_={anchor:{alignItems:"x1cy8zhl",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",minHeight:"x2lwn1j",minWidth:"xeuugli",pointerEvents:"x47corl",$$css:!0},anchorBottomSheet:{overscrollBehaviorY:"x1e4zzel",$$css:!0},dialog:{boxSizing:"x1afcbsf",display:"x78zum5",flexDirection:"xdt5ytf",outline:"x1a2a7pz",overflowX:"x6ikm8r",overflowY:"x10wlt62",pointerEvents:"x71s49j",$$css:!0},dialogBottomSheet:{touchAction:"x5ve5x3",$$css:!0},root:{alignItems:"x1qjc9v5",boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0},rootWithDeprecatedStyles:{flexGrow:"x1c4vz4f",minHeight:"xg6iff7",$$css:!0}};function f(t){var n=o("react-compiler-runtime").c(56),a,i,l,u,d,f,g,h,y,C,b,v,S,R,L,E,k,I;n[0]!==t?(a=t.anchorXStyle,i=t["aria-label"],u=t.children,d=t.cometThemeInfraConfig,f=t.cometThemeInfraDisplayMode,b=t.disableBottomSheetClosingWithDrag,v=t.disableClosingWithEscape,S=t.disableClosingWithMask,R=t.enableBottomSheetBehavior,g=t.onAnimationEnd,h=t.onClose,y=t.ref,C=t.rootXStyle,E=t.testid,k=t.themeConfig,L=t.withDeprecatedStyles,I=t.xstyle,l=babelHelpers.objectWithoutPropertiesLoose(t,e),n[0]=t,n[1]=a,n[2]=i,n[3]=l,n[4]=u,n[5]=d,n[6]=f,n[7]=g,n[8]=h,n[9]=y,n[10]=C,n[11]=b,n[12]=v,n[13]=S,n[14]=R,n[15]=L,n[16]=E,n[17]=k,n[18]=I):(a=n[1],i=n[2],l=n[3],u=n[4],d=n[5],f=n[6],g=n[7],h=n[8],y=n[9],C=n[10],b=n[11],v=n[12],S=n[13],R=n[14],L=n[15],E=n[16],k=n[17],I=n[18]);var T=b===void 0?!1:b,D=v===void 0?!1:v,x=S===void 0?!1:S,$=R===void 0?!1:R,P=L===void 0?!1:L,N=p(null),M=p(null),w=p(null),A=p(!1),F=p(h),O,B;n[19]!==h?(O=function(){F.current=h},B=[h],n[19]=h,n[20]=O,n[21]=B):(O=n[20],B=n[21]),m(O,B);var W,q;n[22]!==x||n[23]!==h?(W=function(){var e=N.current,t=M.current;if(!(e==null||t==null||x)){var n=function(r){var n;return(n=r instanceof Node&&!(t!=null&&t.contains(r))&&(e==null?void 0:e.contains(r)))!=null?n:!1},a="PointerEvent"in window,i=window.navigator.userAgent.includes("Oculus");if(!a||i){var l=function(t){n(t.target)&&h()};return e.addEventListener("click",l),(function(){e.removeEventListener("click",l)})}var s=function(t){if(t.isPrimary){var e=n(t.target);A.current=e,w.current=t}},u=function(t){var e=n(t.target);if(A.current&&e&&w.current!=null&&t.isPrimary){var r=o("pointerEventDistance").isWithinThreshold(w.current,t);r&&h()}A.current=!1,w.current=null};e.addEventListener("pointerup",u),e.addEventListener("pointerdown",s);var c=function(t){(r("UserAgent").isBrowser("Mobile Safari")||r("UserAgent").isBrowser("Chrome for iOS"))&&n(t.target)&&t.preventDefault()};return e.addEventListener("touchend",c),(function(){e.removeEventListener("pointerup",u),e.removeEventListener("pointerdown",s),e.removeEventListener("touchend",c)})}},q=[x,h],n[22]=x,n[23]=h,n[24]=W,n[25]=q):(W=n[24],q=n[25]),m(W,q);var U;n[26]===Symbol.for("react.memo_cache_sentinel")?(U=function(t){var e=M.current;if(e!==null){var n,r=!0,o=(n=t.touches)==null?void 0:n[0].pageY,a=parseInt(e.style.height!==""?e.style.height:e.clientHeight,10),i=0,l={transform:e.style.transform,transitionDuration:e.style.transitionDuration,transitionTimingFunction:e.style.transitionTimingFunction},s=function(n){if(r){var t,a=o-((t=n.touches)==null?void 0:t[0].pageY);a<0&&(i=a,e!=null&&(e.style.transform="translateY("+-1*a+"px)"))}n.stopPropagation()},u=function(n){if(r=!1,e!=null)if(e.style.transitionTimingFunction="ease-out",e.style.transitionDuration="0.2s",a+i