(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[463],{5094:function(e,t,r){"use strict";r.d(t,{b:function(){return a}});var n=r(2983);function a(e,t=[]){let r=[],a=()=>{let t=r.map(e=>(0,n.createContext)(e));return function(r){let a=(null==r?void 0:r[e])||t;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...r,[e]:a}}),[r,a])}};return a.scopeName=e,[function(t,a){let l=(0,n.createContext)(a),u=r.length;function o(t){let{scope:r,children:a,...o}=t,s=(null==r?void 0:r[e][u])||l,i=(0,n.useMemo)(()=>o,Object.values(o));return(0,n.createElement)(s.Provider,{value:i},a)}return r=[...r,a],o.displayName=t+"Provider",[o,function(r,o){let s=(null==o?void 0:o[e][u])||l,i=(0,n.useContext)(s);if(i)return i;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e),l=a[`__scope${n}`];return{...t,...l}},{});return(0,n.useMemo)(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}(a,...t)]}},6248:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/setup",function(){return r(73)}])},73:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var n=r(7458),a=r(148),l=r(2983),u=r(7364),o=r(5094),s=r(8871);let i="Progress",[c,d]=(0,o.b)(i),[f,m]=c(i),p=(0,l.forwardRef)((e,t)=>{let{__scopeProgress:r,value:n,max:a,getValueLabel:o=h,...i}=e,c=g(a)?a:100,d=N(n,c)?n:null,m=_(d)?o(d,c):void 0;return(0,l.createElement)(f,{scope:r,value:d,max:c},(0,l.createElement)(s.WV.div,(0,u.Z)({"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":_(d)?d:void 0,"aria-valuetext":m,role:"progressbar","data-state":x(d,c),"data-value":null!=d?d:void 0,"data-max":c},i,{ref:t})))});p.propTypes={max(e,t,r){let n=e[t],a=String(n);return n&&!g(n)?Error(`Invalid prop \`max\` of value \`${a}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,r){let n=e[t],a=String(n),l=g(e.max)?e.max:100;return null==n||N(n,l)?null:Error(`Invalid prop \`value\` of value \`${a}\` supplied to \`${r}\`. The \`value\` prop must be:
  - a positive number
  - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
  - \`null\` if the progress is indeterminate.

Defaulting to \`null\`.`)}};let v=(0,l.forwardRef)((e,t)=>{var r;let{__scopeProgress:n,...a}=e,o=m("ProgressIndicator",n);return(0,l.createElement)(s.WV.div,(0,u.Z)({"data-state":x(o.value,o.max),"data-value":null!==(r=o.value)&&void 0!==r?r:void 0,"data-max":o.max},a,{ref:t}))});function h(e,t){return`${Math.round(e/t*100)}%`}function x(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function _(e){return"number"==typeof e}function g(e){return _(e)&&!isNaN(e)&&e>0}function N(e,t){return _(e)&&!isNaN(e)&&e<=t&&e>=0}var b=r(4274);let w=l.forwardRef((e,t)=>{let{className:r,value:a,...l}=e;return(0,n.jsx)(p,{ref:t,className:(0,b.cn)("relative h-4 w-full overflow-hidden rounded-full bg-slate-200 dark:bg-slate-800",r),...l,children:(0,n.jsx)(v,{className:"h-full w-full flex-1 bg-slate-900 transition-all dark:bg-slate-400",style:{transform:"translateX(-".concat(100-(a||0),"%)")}})})});w.displayName=p.displayName;let E=()=>{let[e,t]=(0,l.useState)(null),[r,u]=(0,l.useState)(0);(0,l.useEffect)(()=>{let e=setInterval(()=>{u(e=>e>=100?100:e+.02)},1);return()=>clearInterval(e)},[]);let o=(0,a.useRouter)();return(0,l.useEffect)(()=>{{let e=localStorage.getItem("__T3_UI_DATA__");if(!e){o.push("/");return}t(e)}},[o]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{children:"Setting up your project..."}),(0,n.jsx)("p",{children:"Wait for everything to finish..."}),(0,n.jsx)("div",{className:"mt-12",children:(0,n.jsx)(w,{value:r})})]}),!!e&&(0,n.jsx)("div",{id:"doneDataElement",className:"hidden",children:e})]})};var j=E},4274:function(e,t,r){"use strict";r.d(t,{cn:function(){return l}});var n=r(4517),a=r(4015);let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m)((0,n.W)(t))}},148:function(e,t,r){e.exports=r(920)}},function(e){e.O(0,[868,774,888,179],function(){return e(e.s=6248)}),_N_E=e.O()}]);