import{t as e}from"./rolldown-runtime.uxh0A31G.mjs";import{A as t,B as n,E as r,F as i,I as a,L as o,M as s,N as c,P as l,T as u,V as d,_ as f,d as p,j as m,l as h,p as g,s as _,u as ee,v,x as y,z as b}from"./react.B_IXIUxJ.mjs";import{C as x,R as te,a as S,r as ne,t as C,x as re}from"./motion.DS114Qxf.mjs";import{$ as w,A as T,E,Ft as D,G as O,J as ie,K as ae,L as k,N as oe,P as A,Pt as se,R as j,T as ce,ft as M,i as le,j as N,k as ue,o as P,r as F,t as de,ut as fe,wt as pe,y as me,yt as he}from"./framer.8F54nOt_.mjs";var ge,_e,ve,ye=e((()=>{w(),ge={position:`relative`,width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},_e={...ge,borderRadius:6,background:`rgba(136, 85, 255, 0.3)`,color:`#85F`,border:`1px dashed #85F`,flexDirection:`column`},ve={onClick:{type:P.EventHandler},onMouseEnter:{type:P.EventHandler},onMouseLeave:{type:P.EventHandler}},P.Number,P.Boolean,P.String,P.Enum}));function be(e,t){return Se(!0,e,t)}function xe(e,t){return Se(!1,e,t)}function Se(e,t,n=!0){let r=he();i(()=>{n&&r===e&&t()},[r])}var Ce=e((()=>{w(),r()})),we=e((()=>{r()})),Te=e((()=>{w()})),Ee=e((()=>{w()})),De=e((()=>{r()})),Oe=e((()=>{w()})),ke,Ae,je=e((()=>{b(),r(),ke=()=>{if(n!==void 0){let e=n.userAgent.toLowerCase();return(e.indexOf(`safari`)>-1||e.indexOf(`framermobile`)>-1||e.indexOf(`framerx`)>-1)&&e.indexOf(`chrome`)<0}else return!1},Ae=()=>c(()=>ke(),[])})),Me=e((()=>{r(),Ee()})),Ne=e((()=>{r(),w(),Ee(),we()})),Pe=e((()=>{w(),r(),ye()}));function Fe(){return c(()=>E.current(),[])}function Ie(){return c(()=>E.current()===E.canvas,[])}var Le=e((()=>{r(),w()})),Re=e((()=>{r()}));function ze(e){let{borderRadius:t,isMixedBorderRadius:n,topLeftRadius:r,topRightRadius:i,bottomRightRadius:a,bottomLeftRadius:o}=e;return c(()=>n?`${r}px ${i}px ${a}px ${o}px`:`${t}px`,[t,n,r,i,a,o])}var Be,Ve=e((()=>{r(),w(),Be={borderRadius:{title:`Radius`,type:P.FusedNumber,toggleKey:`isMixedBorderRadius`,toggleTitles:[`Radius`,`Radius per corner`],valueKeys:[`topLeftRadius`,`topRightRadius`,`bottomRightRadius`,`bottomLeftRadius`],valueLabels:[`TL`,`TR`,`BR`,`BL`],min:0}},P.FusedNumber})),He=e((()=>{ye(),Ce(),we(),Te(),Ee(),De(),Oe(),je(),Me(),Ne(),Pe(),Le(),Re(),Ve()}));function Ue(e){let{width:t,height:n,topLeft:r,topRight:i,bottomRight:a,bottomLeft:o,id:s,children:c,...l}=e;return l}function I(e){return h(Ze,{...Ue(e)})}function We(e){let n=he(),r=t(!1),i=t(!1),a=l(t=>{if(!e.current)return;let n=(t===1?.999:t)*e.current.duration,r=Math.abs(e.current.currentTime-n)<.1;e.current.duration>0&&!r&&(e.current.currentTime=n)},[]);return{play:l(()=>{let t=e.current;t&&(t.preload=`auto`,!(t.currentTime>0&&t.onplaying&&!t.paused&&!t.ended&&t.readyState>=t.HAVE_CURRENT_DATA)&&t&&!r.current&&n&&(r.current=!0,i.current=!0,t.play().catch(e=>{}).finally(()=>r.current=!1)))},[]),pause:l(()=>{!e.current||r.current||(e.current.pause(),i.current=!1)},[]),setProgress:a,isPlaying:i}}function Ge({playingProp:e,muted:t,loop:n,playsinline:r,controls:i}){let[a]=o(e),[s,c]=o(!1);e!==a&&!s&&c(!0);let l=a&&t&&n&&r&&!i&&!s,u;return u=l?`on-viewport`:a?`on-mount`:`no-autoplay`,u}function Ke(e){return e.charAt(0).toUpperCase()+e.slice(1)}function qe(e){return(e.match(/[A-Z]{2,}|[A-Z][a-z]+|[a-z]+|[A-Z]|\d+/gu)||[]).map(Ke).join(` `)}var Je,Ye,Xe,Ze,Qe,$e=e((()=>{_(),w(),C(),He(),r(),(function(e){e.Fill=`fill`,e.Contain=`contain`,e.Cover=`cover`,e.None=`none`,e.ScaleDown=`scale-down`})(Je||={}),(function(e){e.Video=`Upload`,e.Url=`URL`})(Ye||={}),Xe=`./assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4`,Ze=f(function(e){let{srcType:n=`URL`,srcUrl:r,srcFile:a=``,posterEnabled:o=!1,controls:s=!1,playing:l=!0,loop:u=!0,muted:d=!0,playsinline:f=!0,restartOnEnter:p=!1,objectFit:m=`cover`,backgroundColor:g=`rgba(0,0,0,0)`,radius:_=0,volume:ee=25,startTime:v=0,poster:y,playing:b,progress:x,onSeeked:S,onPause:ne,onPlay:C,onEnd:w,onClick:T,onMouseEnter:D,onMouseLeave:O,onMouseDown:ie,onMouseUp:ae}=e,k=t(),oe=Ae(),A=t(null),se=t(null),j=Ie(),ce=Fe(),M=j||ce===E.export,le=ze(e),N=M?`no-autoplay`:Ge({playingProp:b,muted:d,loop:u,playsinline:f,controls:s}),ue=M?!0:te(k),P=M?!1:te(k,{margin:`10%`,once:!0}),F=v===100?99.9:v,{play:de,pause:fe,setProgress:pe,isPlaying:me}=We(k);i(()=>{M||N!==`on-viewport`&&(b?de():fe())},[N,b]),i(()=>{M||(ue&&b&&N!==`no-autoplay`&&de(),N===`on-viewport`&&fe())},[N,ue,b]),i(()=>{!j||y||o||F||!k.current||(k.current.currentTime=.01)},[o,y,F]);let he=t(!1);i(()=>{if(!he.current){he.current=!0;return}pe(((re(x)?x.get():(x??0)*.01)??0)||(F??0)/100)},[F,a,r,x]),i(()=>{if(re(x))return x.on(`change`,e=>pe(e))},[x]),be(()=>{A.current!==null&&k.current&&(!se&&u||!A.current)&&de()}),xe(()=>{k.current&&(se.current=k.current.ended,A.current=k.current.paused,fe())});let ge=c(()=>{if(n===`URL`)return r+``;if(n===`Upload`)return a+``},[n,a,r,F]);return i(()=>{oe&&k.current&&N===`on-mount`&&setTimeout(()=>de(),50)},[]),i(()=>{k.current&&!d&&(k.current.volume=(ee??0)/100)},[ee]),h(`video`,{onClick:T,onMouseEnter:D,onMouseLeave:O,onMouseDown:ie,onMouseUp:ae,src:ge,loop:u,ref:k,onSeeked:e=>S?.(e),onPause:e=>ne?.(e),onPlay:e=>C?.(e),onEnded:e=>w?.(e),autoPlay:me.current||N===`on-mount`||b&&N===`on-viewport`&&ue,preload:me.current?`auto`:M&&!y?`metadata`:N!==`on-mount`&&!P?`none`:`metadata`,poster:o&&!a&&r===Xe?`./assets/5ILRvlYXf72kHSVHqpa3snGzjU.jpg`:o&&y?y:void 0,onLoadedData:()=>{let e=k.current;e&&(e.currentTime<.3&&F>0&&pe((F??0)*.01),(me.current||N===`on-mount`||b&&N===`on-viewport`&&ue)&&de())},controls:s,muted:M?!0:d,playsInline:f,style:{cursor:T?`pointer`:`auto`,width:`100%`,height:`100%`,borderRadius:le,display:`block`,objectFit:m,backgroundColor:g,objectPosition:`50% 50%`}})}),I.displayName=`Video`,Qe=[`cover`,`fill`,`contain`,`scale-down`,`none`],A(I,{srcType:{type:P.Enum,displaySegmentedControl:!0,title:`Source`,options:[`URL`,`Upload`]},srcUrl:{type:P.String,title:`URL`,defaultValue:`./assets/MLWPbW1dUQawJLhhun3dBwpgJak.mp4`,hidden(e){return e.srcType===`Upload`}},srcFile:{type:P.File,title:`File`,allowedFileTypes:[`mp4`,`webm`],description:`Only MP4 and WebM`,hidden(e){return e.srcType===`URL`}},playing:{type:P.Boolean,title:`Playing`,enabledTitle:`Yes`,disabledTitle:`No`},...Be,posterEnabled:{type:P.Boolean,title:`Poster`,enabledTitle:`Yes`,disabledTitle:`No`},poster:{type:P.Image,title:`Image`,hidden:({posterEnabled:e})=>!e,description:`We recommend adding a poster. [Learn more](https://www.framer.com/help/articles/how-are-videos-optimized-in-framer/).`},backgroundColor:{type:P.Color,title:`Background`,defaultValue:`rgba(0,0,0,0)`},startTime:{title:`Start Time`,type:P.Number,min:0,max:100,step:.1,unit:`%`},loop:{type:P.Boolean,title:`Loop`,enabledTitle:`Yes`,disabledTitle:`No`},objectFit:{type:P.Enum,title:`Fit`,options:Qe,optionTitles:Qe.map(qe)},controls:{type:P.Boolean,title:`Controls`,enabledTitle:`Show`,disabledTitle:`Hide`,defaultValue:!1},muted:{type:P.Boolean,title:`Muted`,enabledTitle:`Yes`,disabledTitle:`No`},volume:{type:P.Number,max:100,min:0,unit:`%`,hidden:({muted:e})=>e,defaultValue:25},onEnd:{type:P.EventHandler},onSeeked:{type:P.EventHandler},onPause:{type:P.EventHandler},onPlay:{type:P.EventHandler},...ve})})),et=e((()=>{He()}));function tt({type:e,url:t,html:n,zoom:r,radius:i,border:a,style:o={}}){return e===`url`&&t?h(rt,{url:t,zoom:r,radius:i,border:a,style:o}):e===`html`&&n?h(at,{html:n,style:o}):h(nt,{style:o})}function nt({style:e}){return h(`div`,{style:{minHeight:ft(e),..._e,overflow:`hidden`,...e},children:h(`div`,{style:ht,children:`To embed a website or widget, add it to the properties\xA0panel.`})})}function rt({url:e,zoom:t,radius:n,border:r,style:a}){let s=!a.height;/[a-z]+:\/\//.test(e)||(e=`https://`+e);let c=Ie(),[l,u]=o(c?void 0:!1);return i(()=>{if(!c)return;let t=!0;u(void 0);async function n(){let n=await fetch(`https://api.framer.com/functions/check-iframe-url?url=`+encodeURIComponent(e));if(n.status==200){let{isBlocked:e}=await n.json();t&&u(e)}else{let e=await n.text();console.error(e),u(Error(`This site can’t be reached.`))}}return n().catch(e=>{console.error(e),u(e)}),()=>{t=!1}},[e]),c&&s?h(dt,{message:`URL embeds do not support auto height.`,style:a}):e.startsWith(`https://`)?l===void 0?h(ut,{}):l instanceof Error?h(dt,{message:l.message,style:a}):l===!0?h(dt,{message:`Can’t embed ${e} due to its content security policy.`,style:a}):h(`iframe`,{src:e,style:{...pt,...a,...r,zoom:t,borderRadius:n,transformOrigin:`top center`},loading:`lazy`,fetchPriority:c?`low`:`auto`,referrerPolicy:`no-referrer`,sandbox:it(c),allowFullScreen:!0,allow:`presentation; fullscreen; accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; clipboard-write`}):h(dt,{message:`Unsupported protocol.`,style:a})}function it(e){let t=[`allow-same-origin`,`allow-scripts`];return e||t.push(`allow-downloads`,`allow-forms`,`allow-modals`,`allow-orientation-lock`,`allow-pointer-lock`,`allow-popups`,`allow-popups-to-escape-sandbox`,`allow-presentation`,`allow-storage-access-by-user-activation`,`allow-top-navigation-by-user-activation`),t.join(` `)}function at({html:e,...t}){if(e.includes(`<\/script>`)){let n=e.includes(``),r=e.includes(``);return h(n||r?st:ot,{html:e,...t})}return h(ct,{html:e,...t})}function ot({html:e,style:n}){let r=t(),[a,s]=o(0);i(()=>{let e=r.current?.contentWindow;function t(t){if(t.source!==e)return;let n=t.data;if(typeof n!=`object`||!n)return;let r=n.embedHeight;typeof r==`number`&&s(r)}return d.addEventListener(`message`,t),e?.postMessage(`getEmbedHeight`,`*`),()=>{d.removeEventListener(`message`,t)}},[]);let c=`
${e}