import{t as e}from"./rolldown-runtime.BB3S47xo.mjs";import{A as t,B as n,E as r,F as i,H as a,I as o,L as s,M as c,N as l,_ as u,b as d,c as f,l as p,o as m,s as h}from"./react.UZZKdtaS.mjs";import{C as g,a as _,r as v,t as y}from"./motion.B1SDLVbr.mjs";import{A as b,C as x,Ct as S,D as C,Dt as w,E as T,Et as ee,F as E,G as D,I as O,K as k,O as te,S as A,Tt as j,U as M,W as N,Z as P,_t as F,a as I,bt as L,c as R,dt as ne,h as z,ht as re,j as B,jt as ie,k as ae,kt as oe,lt as se,n as ce,o as V,p as le,pt as ue,q as de,s as H,ut as U,v as W,vt as G,wt as fe,xt as pe,y as me}from"./framer.Ypvh2MRC.mjs";import{i as he,n as K,r as ge,t as _e}from"./Nn1gYl8oI.m5OsZHFn.mjs";import{i as ve,n as ye,r as be,t as xe}from"./HLBx5FEd4.BW6d0Fxq.mjs";import{n as Se,t as Ce}from"./Hvg1vDm9u.BwfqIwNm.mjs";import{d as we,n as Te,o as Ee,p as De,r as Oe,t as ke}from"./bpm48CH8T.DXJ0WPEU.mjs";import{At as q,Ot as Ae,jt as je,kt as Me}from"./shared-lib.vt3xH8Ni.mjs";import{i as Ne,t as Pe}from"./NTOo6yMZM.wCnABcjl.mjs";import{d as Fe,f as Ie,h as Le,l as Re,m as ze,p as Be,u as Ve}from"./Xj0VnfH5K.CDva2Y_p.mjs";import{i as He,n as Ue,r as We,t as Ge}from"./gGPzsVnLS.XtF3WoHd.mjs";import{i as Ke,n as qe,r as Je,t as Ye}from"./WJJyCc90q.ChmN6kzX.mjs";import{i as Xe,n as Ze,r as Qe,t as $e}from"./z40C27sBZ.C9uCkFB2.mjs";import{a as et,c as tt,r as nt}from"./x8iY10A5Z.DUbposGk.mjs";import{n as rt,t as J}from"./Phosphor.EJE_zE4C.mjs";import{a as it,c as at,d as ot,f as st,g as ct,h as lt,i as ut,l as dt,m as ft,n as pt,o as mt,p as ht,r as gt,s as _t,t as vt,u as yt}from"./WB_bmShQP.BY06W3Ur.mjs";import{n as bt,r as xt}from"./aMGJ7EGoY.BoWojtKp.mjs";var St=e((()=>{Oe()}));function Ct({type:e,url:t,html:n,zoom:r,radius:i,border:a,style:o={}}){return e===`url`&&t?f(Tt,{url:t,zoom:r,radius:i,border:a,style:o}):e===`html`&&n?f(Dt,{html:n,style:o}):f(wt,{style:o})}function wt({style:e}){return f(`div`,{style:{minHeight:Pt(e),...De,overflow:`hidden`,...e},children:f(`div`,{style:Lt,children:`To embed a website or widget, add it to the properties\xA0panel.`})})}function Tt({url:e,zoom:t,radius:n,border:r,style:a}){let o=!a.height;/[a-z]+:\/\//.test(e)||(e=`https://`+e);let c=Ee(),[l,u]=s(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&&o?f(Nt,{message:`URL embeds do not support auto height.`,style:a}):e.startsWith(`https://`)?l===void 0?f(Mt,{}):l instanceof Error?f(Nt,{message:l.message,style:a}):l===!0?f(Nt,{message:`Can’t embed ${e} due to its content security policy.`,style:a}):f(`iframe`,{src:e,style:{...Ft,...a,...r,zoom:t,borderRadius:n,transformOrigin:`top center`},loading:`lazy`,fetchPriority:c?`low`:`auto`,referrerPolicy:`no-referrer`,sandbox:Et(c)}):f(Nt,{message:`Unsupported protocol.`,style:a})}function Et(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 Dt({html:e,...t}){if(e.includes(`<\/script>`)){let n=e.includes(``),r=e.includes(``);return f(n||r?kt:Ot,{html:e,...t})}return f(At,{html:e,...t})}function Ot({html:e,style:n}){let r=t(),[o,c]=s(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`&&c(r)}return a.addEventListener(`message`,t),e?.postMessage(`getEmbedHeight`,`*`),()=>{a.removeEventListener(`message`,t)}},[]);let l=` ${e}