(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,226188,e=>{"use strict";var t=e.i(902875),n=e.i(247865),r=e.i(352825),o=e.i(632137),a=e.i(695881);let s="https://www.instagram.com/embed.js",i=(0,a.createLogger)("useInstagramScript"),c=null;function d(){return"function"==typeof window.instgrm?.Embeds?.process}let l=({url:e,size:a})=>{let{isLoaded:l}=function(){let[e,t]=(0,n.useState)(d);return(0,n.useEffect)(()=>{e||(c||(c=new Promise(e=>{if(d())return void e();let t=document.createElement("script");t.src=s,t.async=!0,t.onload=()=>e(),t.onerror=()=>{i.warn("Instagram embed.js failed to load",s),e()},document.body.appendChild(t)}))).then(()=>t(!0))},[e]),{isLoaded:e}}();return(0,n.useEffect)(()=>{l&&window.instgrm?.Embeds?.process?.()},[l,e,a]),(0,r.preload)(s,{as:"script"}),(0,t.jsx)("div",{children:(0,t.jsx)("blockquote",{className:(0,o.cn)("instagram-media","!my-4 w-[calc(100%-2px)] !min-w-auto !rounded-lg !border-0 !bg-transparent !shadow-lg","hero"===a?"":"max-w-[538px]"),"data-instgrm-permalink":e,"data-instgrm-version":14})},`${e}-${a}`)};e.s(["InstagramEmbed",0,l,"default",0,l],226188)},331097,function(e){e.n(e.i(226188))}]);