import{s as Z,f as l,l as F,a as k,g as i,h,m as G,d as f,c as E,D as J,j as m,i as tt,r as t,w as et,u as at,C as rt,z as nt}from"../chunks/scheduler.2f9f1739.js";import{S as st,i as ot,b as K,d as M,m as Q,a as R,t as W,e as X,f as lt}from"../chunks/index.f9f1dac6.js";import{s as it}from"../chunks/index.63ca82d4.js";import{e as ct,g as dt}from"../chunks/index.b11ac8a0.js";import{F as Y}from"../chunks/fa.139e50c6.js";import{p as ft}from"../chunks/stores.c8a8c810.js";function mt(p){let n,e,r,b,$,y,c,T=p[1].message+"",H,I,d,s,g,N,_,q="Go Home",P,o,u,V,x,L="Go Back",j,C,z,O;return g=new Y({props:{icon:ct}}),u=new Y({props:{icon:dt}}),{c(){n=l("div"),e=l("div"),r=l("h1"),b=F("Error "),$=F(p[0]),y=k(),c=l("p"),H=F(T),I=k(),d=l("div"),s=l("a"),K(g.$$.fragment),N=k(),_=l("span"),_.textContent=q,P=k(),o=l("button"),K(u.$$.fragment),V=k(),x=l("span"),x.textContent=L,this.h()},l(a){n=i(a,"DIV",{class:!0});var w=h(n);e=i(w,"DIV",{class:!0});var v=h(e);r=i(v,"H1",{class:!0});var B=h(r);b=G(B,"Error "),$=G(B,p[0]),B.forEach(f),y=E(v),c=i(v,"P",{class:!0});var U=h(c);H=G(U,T),U.forEach(f),I=E(v),d=i(v,"DIV",{class:!0});var A=h(d);s=i(A,"A",{href:!0,class:!0});var D=h(s);M(g.$$.fragment,D),N=E(D),_=i(D,"SPAN",{"data-svelte-h":!0}),J(_)!=="svelte-9m9ct5"&&(_.textContent=q),D.forEach(f),P=E(A),o=i(A,"BUTTON",{class:!0});var S=h(o);M(u.$$.fragment,S),V=E(S),x=i(S,"SPAN",{"data-svelte-h":!0}),J(x)!=="svelte-b8zy85"&&(x.textContent=L),S.forEach(f),A.forEach(f),v.forEach(f),w.forEach(f),this.h()},h(){m(r,"class","text-4xl font-bold mb-4 text-orange-500 dark:text-orange-300"),m(c,"class","text-stone-700 dark:text-orange-200 mb-6"),m(s,"href","/"),m(s,"class","flex items-center space-x-2 bg-orange-300 dark:bg-orange-700 hover:bg-orange-400 dark:hover:bg-orange-600 text-stone-900 dark:text-orange-100 font-bold py-2 px-4 rounded-lg transition duration-300"),m(o,"class","flex items-center space-x-2 bg-orange-200 dark:bg-stone-700 hover:bg-orange-300 dark:hover:bg-stone-600 text-stone-800 dark:text-orange-100 font-bold py-2 px-4 rounded-lg transition duration-300"),m(d,"class","flex space-x-4"),m(e,"class","w-full max-w-lg p-8 rounded-2xl border-orange-300 dark:border-orange-700 bg-orange-50 dark:bg-stone-800 text-stone-900 dark:text-orange-100"),m(n,"class","flex items-center justify-center min-h-screen")},m(a,w){tt(a,n,w),t(n,e),t(e,r),t(r,b),t(r,$),t(e,y),t(e,c),t(c,H),t(e,I),t(e,d),t(d,s),Q(g,s,null),t(s,N),t(s,_),t(d,P),t(d,o),Q(u,o,null),t(o,V),t(o,x),C=!0,z||(O=et(o,"click",p[2]),z=!0)},p:at,i(a){C||(R(g.$$.fragment,a),R(u.$$.fragment,a),a&&(j||rt(()=>{j=lt(e,it,{duration:300,start:.95}),j.start()})),C=!0)},o(a){W(g.$$.fragment,a),W(u.$$.fragment,a),C=!1},d(a){a&&f(n),X(g),X(u),z=!1,O()}}}function pt(p,n,e){let r;nt(p,ft,c=>e(3,r=c));let b=r.status,$=r.error;return[b,$,()=>history.back()]}class bt extends st{constructor(n){super(),ot(this,n,pt,mt,Z,{})}}export{bt as component};