import{j as t,r as e}from"./react-DQbAL1IW.js";import{u as r}from"./gsap_react-DC2p8wio.js";import{g as s}from"./gsap-myPL_ycN.js";import{P as n}from"./builder.io_partytown-CGo_KZzj.js";import{c as i,O as o,j as a}from"./react-router-iOXnssWC.js";/* empty css                             */import{b as c}from"./remix-run_router-BAz99oL9.js";import{u as l}from"./useScramble-DyRhLOxZ.js";import{L as m,M as d,a as p,S as j,b as h}from"./remix-run_react-DKJaRXk4.js";import"./cookie-CXUWDbkB.js";import"./react-router-dom-CMlU3FW0.js";import"./react-dom-C-xPXgqN.js";import"./scheduler-CmR-7K7A.js";import"./turbo-stream-D9NJx7zj.js";import"./remix-run_server-runtime-BTiKZhkm.js";function f({title:e}){const{ref:r}=l({scramble:8,text:e});return t.jsx("h1",{style:{color:"#FFFFFF",fontFamily:"DotGothic16, sans-serif",fontSize:"3rem",fontWeight:600},"aria-label":e,ref:r})}function x({error:r}){return e.useEffect((()=>{const t=setTimeout((()=>{window.location.reload()}),6e4);return()=>{clearTimeout(t)}}),[]),c(r)?t.jsx("main",{style:{display:"grid",height:"100dvh",padding:"1rem",placeItems:"center",width:"100%"},children:t.jsxs("div",{style:{display:"grid",gap:"1rem",maxWidth:"80ch",placeItems:"center"},children:[t.jsx(e.Suspense,{fallback:t.jsx("h1",{children:`${r.status} | ${r.statusText}`}),children:t.jsx(f,{title:`${r.status} | ${r.statusText}`})}),t.jsx(m,{style:{border:"1px solid #FFFFFF",borderRadius:"0.5rem",color:"#FFFFFF",fontFamily:"DotGothic16, sans-serif",fontSize:"1.5rem",padding:"0.5rem 1rem"},to:"/",children:"トップページへ戻る"})]})}):t.jsx("main",{style:{display:"grid",height:"100dvh",padding:"1rem",placeItems:"center",width:"100%"},children:t.jsxs("div",{style:{display:"grid",gap:"1rem",maxWidth:"80ch",placeItems:"center"},children:[t.jsx(e.Suspense,{fallback:t.jsx("h1",{children:"エラーが発生したようです"}),children:t.jsx(f,{title:"エラーが発生したようです"})}),t.jsx("button",{style:{border:"1px solid #FFFFFF",borderRadius:"0.5rem",color:"#FFFFFF",fontFamily:"DotGothic16, sans-serif",fontSize:"1.5rem",padding:"0.5rem 1rem"},onClick:()=>{window.location.reload()},type:"button",children:"再読み込み"})]})})}function g(){const t=i(),r=e.useCallback((e=>{t(e.redirectTo,{replace:!1,state:{originalUrl:e.originalUrl,redirected:!0}})}),[t]);return e.useEffect((()=>{const t=window.fetch;return window.fetch=async(...e)=>(async t=>{if(t.headers.get("X-Remix-Redirect"))try{const e=await t.json();if("remix-redirect"===e.type)return r(e),new Response(null,{status:204})}catch(e){console.error("Failed to process redirect:",e)}return t})(await t(...e)),()=>{window.fetch=t}}),[r]),null}function u({children:e,noIndex:r,title:s}){return t.jsxs("html",{lang:"ja-JP",children:[t.jsxs("head",{children:[t.jsx("meta",{charSet:"utf-8",content:"utf-8"}),t.jsx("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),t.jsx("meta",{content:"第59回鈴鹿高専祭公式サイト",name:"description"}),t.jsx("meta",{content:"第59回 鈴鹿高専祭",property:"og:title"}),t.jsx("meta",{content:"第59回鈴鹿高専祭公式サイト",property:"og:description"}),t.jsx("meta",{content:"https://snct-fes.info",property:"og:url"}),t.jsx("meta",{content:"https://www.snct-fes.info/ogp.png",property:"og:image"}),t.jsx("meta",{content:"https://www.snct-fes.info/ogp.png",property:"og:image:url"}),t.jsx("meta",{content:"第59回 鈴鹿高専祭",property:"og:image:alt"}),t.jsx("meta",{content:"website",property:"og:type"}),t.jsx("meta",{content:"summary_large_image",name:"twitter:card"}),t.jsx("meta",{content:"第59回 鈴鹿高専祭",name:"twitter:title"}),t.jsx("meta",{content:"第59回鈴鹿高専祭公式サイト",name:"twitter:description"}),t.jsx("meta",{content:"https://www.snct-fes.info/ogp.png",name:"twitter:image"}),t.jsx("meta",{content:"第59回 鈴鹿高専祭",name:"twitter:image:alt"}),t.jsx("meta",{content:"@KOSENFESTA",name:"twitter:site"}),t.jsx("link",{href:"https://fonts.googleapis.com",rel:"preconnect"}),t.jsx("link",{crossOrigin:"anonymous",href:"https://fonts.gstatic.com",rel:"preconnect"}),t.jsx("link",{href:"https://fonts.googleapis.com/css2?family=DotGothic16&family=Jura:wght@300&family=Inter:wght@400;600&family=Noto+Sans+JP:wght@400;600&family=Roboto+Mono&display=swap",rel:"stylesheet"}),t.jsx("link",{href:"/favicon.svg",rel:"icon",type:"image/svg+xml"}),t.jsx("link",{href:"/favicon.ico",rel:"icon",sizes:"any"}),r&&t.jsx("meta",{content:"noindex",name:"robots"}),t.jsxs(t.Fragment,{children:[t.jsx(n,{forward:["dataLayer.push"]}),t.jsx("script",{dangerouslySetInnerHTML:{__html:"\n\t\t\t\t\t\t\t\t\t(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n\t\t\t\t\t\t\t\t\tnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n\t\t\t\t\t\t\t\t\tj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n\t\t\t\t\t\t\t\t\t'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n\t\t\t\t\t\t\t\t\t})(window,document,'script','dataLayer','GTM-KLPTTQ82');\n\t\t\t\t\t\t\t\t"},type:"text/partytown"})]}),t.jsx(d,{}),t.jsx(p,{}),s?t.jsx("title",{"data-title-override":"",children:s}):t.jsx("title",{children:"第59回 鈴鹿高専祭"})]}),t.jsxs("body",{children:[t.jsx("main",{children:e}),t.jsx(j,{}),t.jsx(h,{}),t.jsx(g,{})]})]})}function w(){return e.useEffect((()=>{s.registerPlugin(r)}),[]),t.jsx(u,{children:t.jsx(e.Suspense,{fallback:null,children:t.jsx(o,{})})})}function y(){const e=a();return t.jsx(u,{noIndex:!0,title:"Error",children:t.jsx(x,{error:e})})}export{y as ErrorBoundary,w as default};
