qpilot 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +45 -19
- package/.next/standalone/.next/app-path-routes-manifest.json +6 -3
- package/.next/standalone/.next/build-manifest.json +4 -4
- package/.next/standalone/.next/prerender-manifest.json +31 -7
- package/.next/standalone/.next/routes-manifest.json +6 -0
- package/.next/standalone/.next/server/app/_not-found/page.js +2 -2
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
- package/.next/standalone/.next/server/app/api/run/[id]/answer/route.js +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/answer/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/answer/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/pause/route.js +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/pause/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/pause/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/shot/[num]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/shot/[num]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/shot/[num]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/stream/route.js +2 -2
- package/.next/standalone/.next/server/app/api/run/[id]/stream/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/run/[id]/stream/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/run/route.js +5 -5
- package/.next/standalone/.next/server/app/api/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/run/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/route.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/runs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/settings/models/route.js +1 -0
- package/.next/standalone/.next/server/app/api/settings/models/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/settings/models/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/settings/route.js +1 -0
- package/.next/standalone/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/icon.svg/route.js +1 -1
- package/.next/standalone/.next/server/app/icon.svg.body +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +4 -4
- package/.next/standalone/.next/server/app/page.js +3 -3
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/run/[id]/page.js +2 -2
- package/.next/standalone/.next/server/app/run/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/run/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page.js +2 -0
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/settings.html +1 -0
- package/.next/standalone/.next/server/app/settings.meta +7 -0
- package/.next/standalone/.next/server/app/settings.rsc +22 -0
- package/.next/standalone/.next/server/app-paths-manifest.json +6 -3
- package/.next/standalone/.next/server/chunks/117.js +1 -0
- package/.next/standalone/.next/server/chunks/12.js +1 -0
- package/.next/standalone/.next/server/chunks/{436.js → 163.js} +1 -1
- package/.next/standalone/.next/server/chunks/168.js +3 -0
- package/.next/standalone/.next/server/chunks/454.js +1 -1
- package/.next/standalone/.next/server/chunks/864.js +1 -0
- package/.next/standalone/.next/server/edge-runtime-webpack.js +2 -0
- package/.next/standalone/.next/server/functions-config-manifest.json +5 -3
- package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/.next/server/middleware-manifest.json +28 -2
- package/.next/standalone/.next/server/middleware.js +14 -0
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/31-1c2a3eeb8e019e61.js +1 -0
- package/.next/standalone/.next/static/chunks/777-fd275b814609177f.js +1 -0
- package/.next/standalone/.next/static/chunks/798-d4ad8791de5691eb.js +1 -0
- package/.next/standalone/.next/static/chunks/934-97e8acde71124af1.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/answer/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/pause/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/shot/[num]/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/stream/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/run/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/runs/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/settings/models/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/settings/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/standalone/.next/static/chunks/app/layout-662806276d567675.js +1 -0
- package/.next/standalone/.next/static/chunks/app/page-a5128dbb0726b27f.js +1 -0
- package/.next/standalone/.next/static/chunks/app/run/[id]/page-657e04995da73df5.js +1 -0
- package/.next/standalone/.next/static/chunks/app/settings/page-ca6715866c73dcf1.js +1 -0
- package/.next/standalone/.next/static/chunks/main-c56f7c24c865a153.js +1 -0
- package/.next/standalone/.next/static/css/d44803215e16790d.css +3 -0
- package/.next/standalone/.next/static/hLCHLsmQIuQhDSh9WjZhW/_buildManifest.js +1 -0
- package/.next/standalone/package.json +1 -1
- package/.next/static/chunks/31-1c2a3eeb8e019e61.js +1 -0
- package/.next/static/chunks/777-fd275b814609177f.js +1 -0
- package/.next/static/chunks/798-d4ad8791de5691eb.js +1 -0
- package/.next/static/chunks/934-97e8acde71124af1.js +1 -0
- package/.next/static/chunks/app/api/run/[id]/answer/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/run/[id]/pause/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/run/[id]/shot/[num]/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/run/[id]/stream/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/run/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/runs/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/settings/models/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/api/settings/route-3d2cf3d88ec0f399.js +1 -0
- package/.next/static/chunks/app/layout-662806276d567675.js +1 -0
- package/.next/static/chunks/app/page-a5128dbb0726b27f.js +1 -0
- package/.next/static/chunks/app/run/[id]/page-657e04995da73df5.js +1 -0
- package/.next/static/chunks/app/settings/page-ca6715866c73dcf1.js +1 -0
- package/.next/static/chunks/main-c56f7c24c865a153.js +1 -0
- package/.next/static/css/d44803215e16790d.css +3 -0
- package/.next/static/hLCHLsmQIuQhDSh9WjZhW/_buildManifest.js +1 -0
- package/README.md +13 -0
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/801.js +0 -1
- package/.next/standalone/.next/static/chunks/662-486fc9b77e778f35.js +0 -1
- package/.next/standalone/.next/static/chunks/775-9eefc3d620ea42a3.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/answer/route-dbf7e38d06a84434.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/pause/route-dbf7e38d06a84434.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/shot/[num]/route-dbf7e38d06a84434.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/run/[id]/stream/route-dbf7e38d06a84434.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/run/route-dbf7e38d06a84434.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runs/route-dbf7e38d06a84434.js +0 -1
- package/.next/standalone/.next/static/chunks/app/layout-6818616dc0d82320.js +0 -1
- package/.next/standalone/.next/static/chunks/app/page-56375c9e96da21ab.js +0 -1
- package/.next/standalone/.next/static/chunks/app/run/[id]/page-109b9cc55ebeb74b.js +0 -1
- package/.next/standalone/.next/static/chunks/main-47f909ba4ae65767.js +0 -1
- package/.next/standalone/.next/static/css/4aa9ce635c4228de.css +0 -3
- package/.next/standalone/.next/static/yBlQ2iusqn6pYA_sNRIqs/_buildManifest.js +0 -1
- package/.next/static/chunks/662-486fc9b77e778f35.js +0 -1
- package/.next/static/chunks/775-9eefc3d620ea42a3.js +0 -1
- package/.next/static/chunks/app/api/run/[id]/answer/route-dbf7e38d06a84434.js +0 -1
- package/.next/static/chunks/app/api/run/[id]/pause/route-dbf7e38d06a84434.js +0 -1
- package/.next/static/chunks/app/api/run/[id]/shot/[num]/route-dbf7e38d06a84434.js +0 -1
- package/.next/static/chunks/app/api/run/[id]/stream/route-dbf7e38d06a84434.js +0 -1
- package/.next/static/chunks/app/api/run/route-dbf7e38d06a84434.js +0 -1
- package/.next/static/chunks/app/api/runs/route-dbf7e38d06a84434.js +0 -1
- package/.next/static/chunks/app/layout-6818616dc0d82320.js +0 -1
- package/.next/static/chunks/app/page-56375c9e96da21ab.js +0 -1
- package/.next/static/chunks/app/run/[id]/page-109b9cc55ebeb74b.js +0 -1
- package/.next/static/chunks/main-47f909ba4ae65767.js +0 -1
- package/.next/static/css/4aa9ce635c4228de.css +0 -3
- package/.next/static/yBlQ2iusqn6pYA_sNRIqs/_buildManifest.js +0 -1
- /package/.next/standalone/.next/static/{yBlQ2iusqn6pYA_sNRIqs → hLCHLsmQIuQhDSh9WjZhW}/_ssgManifest.js +0 -0
- /package/.next/static/{yBlQ2iusqn6pYA_sNRIqs → hLCHLsmQIuQhDSh9WjZhW}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{845:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>K});var n=s(5155),a=s(63),r=s(2115),l=s(2619),i=s.n(l),c=s(6479);let o=(0,c.A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),d=(0,c.A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),u=(0,c.A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),x=(0,c.A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);var h=s(4788);let m=(0,c.A)("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),p=(0,c.A)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),f=(0,c.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var g=s(9746);let v=(0,c.A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var b=s(3916);let k=(0,c.A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var j=s(8215),y=s(8316),w=s(5352),N=s(3410),z=s(7003),A=s(5016);function M(e){let{className:t,...s}=e;return(0,n.jsx)("textarea",{"data-slot":"textarea",className:(0,A.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),...s})}var S=s(6329),C=s(2391),E=s(6555);let F=new Set(["running","waiting","paused"]),D="rounded-xl border border-border overflow-hidden",I="px-4 py-2.5 bg-surface",P="text-[10.5px] font-semibold uppercase tracking-widest text-subtle",R="",L=[],O=null,$=new Set,H=[],_=[],q=!1,B=!1,T=null,V=null,U=null;function K(){let e=(0,a.useRouter)(),t=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(null),y=(0,r.useRef)(null),[w,N]=(0,r.useState)(R),[K,Q]=(0,r.useState)(!1),[Z,G]=(0,r.useState)(null),[X,ee]=(0,r.useState)(!1),[et,es]=(0,r.useState)(!1),[en,ea]=(0,r.useState)(!1),[er,el]=(0,r.useState)(L),[ei,ec]=(0,r.useState)(O),[eo,ed]=(0,r.useState)(H),[eu,ex]=(0,r.useState)([]),[eh,em]=(0,r.useState)($),[ep,ef]=(0,r.useState)(_),[eg,ev]=(0,r.useState)(q),[eb,ek]=(0,r.useState)(()=>Date.now()),[ej,ey]=(0,r.useState)("en"),ew=(0,C.jd)(ej).home;function eN(e){R=e,N(e)}function ez(e){$=e,em(e)}function eA(e){let t="function"==typeof e?e(_):e;_=t,ef([...t])}async function eM(e){var t;eN(await e.file.text()),O=t=e.name,ec(t)}async function eS(e,t){let s=new FormData;for(let n of(s.append("testCase",e),s.append("headless",String(t)),H))s.append("files",n);let n=await fetch("/api/run",{method:"POST",body:s}),a=await n.json();if(!n.ok)throw Error(a.error||"error");return a.id}async function eC(t){if(w.trim()){Q(!0),G(null);try{let s=await eS(w,t);e.push("/run/".concat(s))}catch(e){G(e instanceof Error?e.message:String(e)),Q(!1)}}}async function eE(){B=!0;let e=T;e&&fetch("/api/run/".concat(e,"/pause"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"pause"})}).catch(()=>{})}async function eF(e){let t=er.filter(e=>eh.has(e.name));if(!t.length)return;let s=t.map(e=>({file:e,id:null,status:"queued"}));eA(s),q=!0,ev(!0),B=!1,T=null,V=Date.now(),U=null;for(let t=0;t<s.length;t++){if(B){eA(e=>e.map((e,s)=>s>=t?{...e,status:"skipped"}:e));break}let n=Date.now();eA(e=>e.map((e,s)=>s===t?{...e,status:"running",startedAt:n}:e));try{let n=await s[t].file.file.text(),a=await eS(n,e);T=a,eA(e=>e.map((e,s)=>s===t?{...e,id:a}:e));let r=await function(e){return new Promise(t=>{let s=new EventSource("/api/run/".concat(e,"/stream")),n=setInterval(()=>{B&&(clearInterval(n),s.close(),t("paused"))},150);s.onmessage=e=>{var a;let r=null==(a=JSON.parse(e.data).run)?void 0:a.status;if(B){clearInterval(n),s.close(),t("paused");return}r&&!F.has(r)&&(clearInterval(n),s.close(),t(r))},s.onerror=()=>{clearInterval(n),s.close(),t("error")}})}(a),l=Date.now();if(eA(e=>e.map((e,s)=>s===t?{...e,status:r,finishedAt:l}:e)),B){eA(e=>e.map((e,s)=>s>t?{...e,status:"skipped"}:e));break}}catch(e){eA(e=>e.map((e,s)=>s===t?{...e,status:"error",finishedAt:Date.now()}:e))}}T=null,U=Date.now(),q=!1,ev(!1),fetch("/api/runs").then(e=>e.ok?e.json():[]).then(ex).catch(()=>{})}(0,r.useEffect)(()=>{var e;(null==(e=navigator.language)?void 0:e.toLowerCase().startsWith("ru"))&&ey("ru")},[]),(0,r.useEffect)(()=>{if(!eg)return;let e=setInterval(()=>ek(Date.now()),1e3);return()=>clearInterval(e)},[eg]),(0,r.useEffect)(()=>{fetch("/api/runs").then(e=>e.ok?e.json():[]).then(ex).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.ok?e.json():null).then(t=>{t&&!t.configured&&e.replace("/settings?welcome=1")}).catch(()=>{})},[]),(0,r.useEffect)(()=>{let e=y.current;e&&ea(e.scrollHeight>364)},[w]),(0,r.useEffect)(()=>{if(!q)return;let e=setInterval(()=>{ef([..._]),ev(q),q||clearInterval(e)},200);return()=>clearInterval(e)},[]),(0,r.useEffect)(()=>{if(eg)(0,S.O)("running");else if(_.length>0){let e=_.some(e=>"failed"===e.status||"error"===e.status),t=_.every(e=>"passed"===e.status);(0,S.O)(e?"failed":t?"passed":"default")}},[eg]),(0,r.useEffect)(()=>()=>{(0,S.g)()},[]);let eD=eh.size,eI=er.length>0&&eh.size===er.length,eP=eD>0,eR=er.length>0&&!eP,eL=er.length>0?"max-w-3xl":"max-w-2xl";return(0,n.jsxs)("main",{className:"flex flex-col items-center min-h-screen px-6 pt-20 pb-24",children:[(0,n.jsxs)("div",{className:"absolute right-4 top-4 flex items-center gap-2 sm:right-6 sm:top-6",children:[(0,n.jsx)(E.U,{labels:(0,C.jd)(ej).settings}),(0,n.jsxs)(i(),{href:"/settings",title:ew.settings,className:"inline-flex items-center gap-1.5 rounded-lg border border-border bg-surface px-2.5 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-surface-hover transition-colors",children:[(0,n.jsx)(o,{className:"size-3.5"}),(0,n.jsx)("span",{className:"hidden sm:inline",children:ew.settings})]})]}),(0,n.jsx)("div",{className:"flex items-center justify-center size-11 rounded-2xl border border-border bg-surface-hover mb-6 shadow-lg",children:(0,n.jsx)(d,{className:"size-5 text-foreground/80"})}),(0,n.jsx)("h1",{className:"text-3xl font-semibold tracking-tight mb-2",children:"QA Agent"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground mb-10",children:ew.tagline}),(0,n.jsxs)("div",{className:(0,A.cn)("w-full space-y-3",eL),children:[(0,n.jsx)("input",{ref:l,type:"file",webkitdirectory:"",multiple:!0,className:"hidden",onChange:function(e){var t;let s=Array.from(null!=(t=e.target.files)?t:[]).filter(e=>e.name.endsWith(".md")).map(e=>({name:e.webkitRelativePath||e.name,file:e}));s.sort((e,t)=>e.name.localeCompare(t.name)),L=s,el(s),O=null,ec(null),ez(new Set),eA([]),e.target.value=""}}),(0,n.jsx)("input",{ref:s,type:"file",accept:".md,text/markdown",className:"hidden",onChange:function(e){var t;let s=null==(t=e.target.files)?void 0:t[0];if(!s)return;let n=new FileReader;n.onload=e=>{var t;"string"==typeof(null==(t=e.target)?void 0:t.result)&&eN(e.target.result)},n.readAsText(s,"utf-8"),e.target.value=""}}),(0,n.jsx)("input",{ref:c,type:"file",multiple:!0,className:"hidden",onChange:function(e){var t;!function(e){if(!e.length)return;let t=e.find(e=>e.size>0x1900000);if(t)return G('"'.concat(t.name,'" is larger than ').concat(25," MB"));let s=new Map(eo.map(e=>[e.name,e]));for(let t of e)s.set(t.name,t);let n=[...s.values()];if(n.length>10)return G("At most ".concat(10," attachments per run"));G(null),H=n,ed(n)}(Array.from(null!=(t=e.target.files)?t:[])),e.target.value=""}}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsxs)(z.$,{type:"button",variant:"outline",size:"sm",onClick:()=>{var e;return null==(e=l.current)?void 0:e.click()},className:"gap-2 text-muted-foreground hover:text-foreground",children:[(0,n.jsx)(u,{className:"size-4"}),ew.chooseFolder]}),(0,n.jsxs)(z.$,{type:"button",variant:"outline",size:"sm",onClick:()=>{var e;return null==(e=s.current)?void 0:e.click()},className:"gap-2 text-muted-foreground hover:text-foreground",children:[(0,n.jsx)(x,{className:"size-4"}),ew.uploadMd]}),er.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"text-xs text-muted-foreground",children:[er.length," .md ",ew.files]}),(0,n.jsx)(z.$,{type:"button",variant:"ghost",size:"sm",onClick:function(){var e;L=e=[],el(e),O=null,ec(null),ez(new Set),eA([])},title:ew.clearList,className:"ml-auto size-7 p-0 text-subtle hover:text-foreground",children:(0,n.jsx)(h.A,{className:"size-3.5"})})]})]}),(0,n.jsxs)("div",{className:(0,A.cn)(eR&&"flex gap-4 items-start"),children:[er.length>0&&(0,n.jsxs)("div",{className:(0,A.cn)(eR?"w-64 shrink-0":"w-full","space-y-3"),children:[(0,n.jsxs)("ul",{className:(0,A.cn)(D,"divide-y divide-border"),children:[(0,n.jsx)("li",{children:(0,n.jsxs)("div",{className:(0,A.cn)(I,"flex items-center gap-3 py-2"),children:[(0,n.jsxs)("button",{type:"button",onClick:function(){ez(eh.size===er.length?new Set:new Set(er.map(e=>e.name)))},className:"flex items-center gap-2 shrink-0 text-subtle hover:text-foreground transition-colors",children:[eI?(0,n.jsx)(m,{className:"size-4 text-foreground/75"}):(0,n.jsx)(p,{className:"size-4"}),(0,n.jsx)("span",{className:"text-[11px] text-muted-foreground select-none",children:eD>0?"".concat(eD," ").concat(ew.selected):ew.selectAll})]}),eD>0&&!eg&&(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[(0,n.jsxs)(z.$,{type:"button",size:"sm",className:"h-7 gap-1.5 text-xs font-medium",onClick:()=>eF(!0),children:[(0,n.jsx)(f,{className:"size-3.5"}),ew.runN," ",eD]}),(0,n.jsxs)(z.$,{type:"button",size:"sm",variant:"secondary",className:"h-7 gap-1.5 text-xs",onClick:()=>eF(!1),children:[(0,n.jsx)(f,{className:"size-3.5"}),ew.withPreview]})]}),eg&&(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,n.jsx)(g.A,{className:"size-3.5 text-subtle animate-spin"}),(0,n.jsx)(z.$,{type:"button",size:"sm",variant:"ghost",className:"h-7 text-xs text-destructive hover:text-destructive",onClick:eE,children:ew.stop})]})]})}),er.map(e=>(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)("button",{type:"button",onClick:()=>(function(e){let t=new Set(eh);t.has(e)?t.delete(e):t.add(e),ez(t)})(e.name),className:"shrink-0 px-4 py-2.5 text-subtle hover:text-foreground transition-colors",children:eh.has(e.name)?(0,n.jsx)(m,{className:"size-4 text-foreground/75"}):(0,n.jsx)(p,{className:"size-4"})}),(0,n.jsx)("button",{type:"button",onClick:()=>eM(e),className:(0,A.cn)("flex-1 text-left py-2.5 pr-4 text-sm font-mono transition-colors truncate",ei===e.name?"text-foreground":"text-muted-foreground hover:text-foreground"),children:e.name})]},e.name))]}),ep.length>0&&(0,n.jsxs)("div",{className:D,children:[(0,n.jsxs)("div",{className:(0,A.cn)(I,"flex items-center gap-2"),children:[(0,n.jsx)("span",{className:P,children:ew.batchRun}),V&&(0,n.jsx)("span",{className:"ml-auto text-[11px] font-mono tabular-nums text-subtle",children:(0,A.a)((null!=U?U:eb)-V)})]}),(0,n.jsx)("ul",{className:"divide-y divide-border",children:ep.map((e,t)=>{var s;return(0,n.jsxs)("li",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,n.jsx)(J,{status:e.status}),e.id?(0,n.jsx)(i(),{href:"/run/".concat(e.id),className:"flex-1 min-w-0 text-sm font-mono text-foreground/75 hover:text-foreground truncate transition-colors",children:e.file.name}):(0,n.jsx)("span",{className:"flex-1 min-w-0 text-sm font-mono text-subtle truncate",children:e.file.name}),(0,n.jsx)("span",{className:"shrink-0 text-[11px] font-mono tabular-nums text-faint",children:e.startedAt?(0,A.a)((null!=(s=e.finishedAt)?s:"running"===e.status?eb:e.startedAt)-e.startedAt):""}),"queued"!==e.status&&"running"!==e.status&&"skipped"!==e.status&&(0,n.jsx)("span",{className:(0,A.cn)("shrink-0 text-[10.5px] font-semibold uppercase tracking-wide","passed"===e.status?"text-success":"failed"===e.status||"error"===e.status?"text-destructive":"text-subtle"),children:e.status})]},t)})})]})]}),!eP&&(0,n.jsxs)("form",{ref:t,onSubmit:function(e){e.preventDefault(),eC(!0)},className:(0,A.cn)("space-y-3",eR&&"flex-1 min-w-0"),children:[(0,n.jsxs)("div",{className:(0,A.cn)("relative rounded-xl border transition-all duration-200",X?"border-border-strong ring-3 ring-ring/15":"border-border"),children:[(0,n.jsx)(M,{ref:y,placeholder:ew.placeholder,value:w,onChange:e=>eN(e.target.value),onFocus:()=>ee(!0),onBlur:()=>ee(!1),onKeyDown:e=>{if((e.metaKey||e.ctrlKey)&&"Enter"===e.key){var s;e.preventDefault(),null==(s=t.current)||s.requestSubmit()}},rows:16,className:(0,A.cn)("min-h-[320px] font-mono text-[12.5px] leading-relaxed resize-none border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0 rounded-xl p-4 overflow-y-auto",et?"max-h-[65vh]":"max-h-[360px]",en&&"pb-9")}),en&&(0,n.jsx)("button",{type:"button",onClick:()=>es(e=>!e),className:"absolute bottom-2 right-3 flex items-center gap-1 rounded-md border border-border bg-background/80 backdrop-blur px-2 py-1 text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:et?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{className:"size-3.5"}),ew.collapse]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.A,{className:"size-3.5"}),ew.expand]})})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(z.$,{type:"submit",disabled:!w.trim()||K,size:"lg",className:"gap-2 font-medium",children:K?ew.running:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{className:"size-4"}),ew.run]})}),(0,n.jsx)(z.$,{type:"button",disabled:!w.trim()||K,size:"lg",variant:"secondary",onClick:()=>eC(!1),className:"gap-2",children:K?ew.running:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{className:"size-4"}),ew.runPreview]})}),(0,n.jsxs)(z.$,{type:"button",variant:"ghost",size:"lg",onClick:()=>eN('TC-001 — Login and add item to cart\nURL: https://www.saucedemo.com/\nCredentials: standard_user / secret_sauce\n\nSteps:\n1. Open the home page.\n Expected: login form with Username and Password fields is visible.\n2. Enter Username "standard_user" and Password "secret_sauce", click Login.\n Expected: Products page opens with 6 items.\n3. Click "Add to cart" on "Sauce Labs Backpack".\n Expected: cart counter shows 1.\n4. Click the cart icon.\n Expected: cart contains exactly one item — Sauce Labs Backpack at $29.99.'),className:"ml-auto text-muted-foreground hover:text-foreground",children:[(0,n.jsx)(k,{className:"size-4"}),ew.example]})]})]})]}),(0,n.jsx)(W,{t:(0,C.jd)(ej).home,files:eo,onPick:()=>{var e;return null==(e=c.current)?void 0:e.click()},onRemove:function(e){var t;H=t=eo.filter(t=>t.name!==e),ed(t)}}),Z&&(0,n.jsxs)("div",{className:"flex items-start gap-2 rounded-xl border border-destructive/25 bg-destructive/[0.06] px-4 py-3",children:[(0,n.jsx)(j.A,{className:"size-4 shrink-0 text-destructive mt-px"}),(0,n.jsx)("span",{className:"text-xs leading-relaxed text-destructive",children:Z})]})]}),eu.length>0&&(0,n.jsxs)("div",{className:(0,A.cn)("w-full mt-12",eL),children:[(0,n.jsx)("div",{className:(0,A.cn)(P,"mb-3"),children:ew.recentRuns}),(0,n.jsx)("ul",{className:"space-y-1.5",children:eu.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(i(),{href:"/run/".concat(e.id),className:"flex items-center gap-3 rounded-xl border border-border px-4 py-3 hover:bg-surface-hover transition-colors",children:[(0,n.jsx)(Y,{status:e.status}),(0,n.jsx)("span",{className:"flex-1 min-w-0 text-sm text-foreground/80 truncate",children:e.title}),(0,n.jsx)("span",{className:"shrink-0 text-[11px] text-subtle font-mono tabular-nums",children:function(e){let t=new Date(e),s=new Date;return t.getDate()===s.getDate()&&t.getMonth()===s.getMonth()&&t.getFullYear()===s.getFullYear()?t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):t.toLocaleDateString([],{month:"short",day:"numeric"})+" "+t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}(e.createdAt)})]})},e.id))})]})]})}function W(e){let{files:t,onPick:s,onRemove:a,t:r}=e;return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,n.jsxs)(z.$,{type:"button",variant:"ghost",size:"sm",onClick:s,className:"gap-2 text-muted-foreground hover:text-foreground",children:[(0,n.jsx)(y.A,{className:"size-3.5"}),t.length?r.addFile:r.attach]}),0===t.length?(0,n.jsx)("span",{className:"text-[11px] text-subtle",children:r.attachHint}):t.map(e=>{var t;return(0,n.jsxs)("span",{className:"group inline-flex items-center gap-1.5 rounded-lg border border-border bg-surface pl-2.5 pr-1 py-1",children:[(0,n.jsx)("span",{className:"text-[11px] font-mono text-foreground/75 max-w-[180px] truncate",children:e.name}),(0,n.jsx)("span",{className:"text-[10px] tabular-nums text-subtle",children:(t=e.size)<1024?"".concat(t," B"):t<1048576?"".concat(Math.round(t/1024)," KB"):"".concat((t/1024/1024).toFixed(1)," MB")}),(0,n.jsx)("button",{type:"button",onClick:()=>a(e.name),title:"".concat(r.remove," ").concat(e.name),className:"rounded p-0.5 text-subtle hover:text-destructive transition-colors",children:(0,n.jsx)(h.A,{className:"size-3"})})]},e.name)})]})}function J(e){let{status:t}=e;return"running"===t?(0,n.jsx)(g.A,{className:"size-3.5 shrink-0 text-subtle animate-spin"}):"passed"===t?(0,n.jsx)(w.A,{className:"size-3.5 shrink-0 text-success",strokeWidth:2.5}):"failed"===t||"error"===t?(0,n.jsx)(j.A,{className:"size-3.5 shrink-0 text-destructive"}):"paused"===t?(0,n.jsx)("span",{className:"size-3.5 shrink-0 text-[10px] text-subtle font-mono",children:"▐▐"}):"skipped"===t?(0,n.jsx)("span",{className:"size-3.5 shrink-0 text-[10px] text-faint font-mono",children:"—"}):(0,n.jsx)("span",{className:"size-3.5 shrink-0 rounded-sm border border-border-strong inline-block"})}function Y(e){let{status:t}=e;return"passed"===t?(0,n.jsx)(w.A,{className:"size-3.5 shrink-0 text-success",strokeWidth:2.5}):"failed"===t||"error"===t?(0,n.jsx)(j.A,{className:"size-3.5 shrink-0 text-destructive"}):(0,n.jsx)(N.A,{className:"size-3.5 shrink-0 text-subtle"})}},2324:(e,t,s)=>{Promise.resolve().then(s.bind(s,845))},3410:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});let n=(0,s(6479).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},4788:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});let n=(0,s(6479).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6329:(e,t,s)=>{"use strict";function n(e){return"data:image/svg+xml,".concat(encodeURIComponent(e))}function a(e){let t=document.querySelector('link[rel="icon"]');t||(t=Object.assign(document.createElement("link"),{rel:"icon"}),document.head.appendChild(t)),t.href=e}function r(e){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">'.concat(e,"</svg>")}s.d(t,{O:()=>u,g:()=>x});let l=Array.from({length:10},(e,t)=>{let s=t/10*Math.PI*2-Math.PI/2,a=.65*Math.PI,l=12+10*Math.cos(s),i=12+10*Math.sin(s),c=12+10*Math.cos(s+a),o=12+10*Math.sin(s+a);return n(r('<circle cx="12" cy="12" r="10" stroke="#38bdf8" stroke-width="2.5" fill="none" opacity="0.15"/>'+'<path d="M'.concat(l.toFixed(3)," ").concat(i.toFixed(3)," A10 10 0 0 1 ").concat(c.toFixed(3)," ").concat(o.toFixed(3),'" stroke="#38bdf8" stroke-width="2.5" fill="none" stroke-linecap="round"/>')))}),i={passed:n(r('<circle cx="12" cy="12" r="10" fill="#22c55e"/><path d="M7 12.5l3.5 3.5 6.5-7" stroke="white" stroke-width="2.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>')),failed:n(r('<circle cx="12" cy="12" r="10" fill="#ef4444"/><path d="M8 8l8 8M16 8l-8 8" stroke="white" stroke-width="2.2" stroke-linecap="round"/>')),error:n(r('<circle cx="12" cy="12" r="10" fill="#ef4444"/><path d="M8 8l8 8M16 8l-8 8" stroke="white" stroke-width="2.2" stroke-linecap="round"/>')),waiting:n(r('<circle cx="12" cy="12" r="10" fill="#facc15"/><path d="M12 7v5.5l3 3" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>')),paused:n(r('<circle cx="12" cy="12" r="10" fill="#64748b"/><path d="M9 8v8M15 8v8" stroke="white" stroke-width="2.2" stroke-linecap="round"/>')),default:n(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="'.concat(e,'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">').concat('<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>').concat(t,"</svg>")}("#7c7c8a"))},c=null,o=0;function d(){c&&(clearInterval(c),c=null)}function u(e){var t;if(d(),"running"===e){o=0,a(l[0]),c=setInterval(()=>{a(l[o=(o+1)%10])},100);return}a(null!=(t=i[e])?t:i.default)}function x(){d(),a(i.default)}},8316:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});let n=(0,s(6479).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])}},e=>{e.O(0,[31,934,441,255,358],()=>e(e.s=2324)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[170],{2391:(e,t,n)=>{"use strict";n.d(t,{jd:()=>a});let s={back:"Back",newRun:"New run",notFound:"Run not found — it may have finished and been cleared from memory.",steps:"steps",passedCount:"passed",warnCount:"warn",failedCount:"failed",waitingForPlan:"waiting for plan…",noSteps:"no steps were run",pause:"Pause",resume:"Resume",waitingToStart:"waiting for agent to start…",endedBeforePlan:"The run ended before the agent produced a plan.",seeReason:"See the reason below.",summary:"Summary",testCase:"Test case",attached:"Attached",noEvents:"no events for this step",runFinished:"Run finished",stepLabel:"Step",asking:"Asking",userAnswered:"User answered",needInput:"Agent needs input",submit:"Submit",sending:"Sending…",secretPlaceholder:"OTP / password",answerPlaceholder:"answer",status:{running:{label:"Running",sub:"agent is executing steps"},waiting:{label:"Waiting",sub:"agent needs your input"},paused:{label:"Paused",sub:"run is paused"},passed:{label:"Passed",sub:"all steps passed"},failed:{label:"Failed",sub:"some steps failed"},error:{label:"Error",sub:"agent crashed"}},home:{tagline:"Paste a test case. Watch it run.",chooseFolder:"Choose folder",uploadMd:"Upload .md",files:"files",clearList:"Clear file list",selectAll:"Select all",selected:"selected",run:"Run",runN:"Run",withPreview:"With preview",runPreview:"Run with preview",running:"Running…",stop:"Stop",example:"Example",placeholder:"Paste your test case here…",expand:"Expand",collapse:"Collapse",batchRun:"Batch run",recentRuns:"Recent runs",attach:"Attach files",addFile:"Add file",attachHint:"optional — images, CSV or documents the test needs to upload",remove:"Remove",settings:"Settings"},stepStatus:{queued:"queued",pass:"pass",warn:"warn",fail:"fail",skipped:"skipped",running:"running"},settings:{title:"Settings",back:"Back",model:"Model",provider:"Provider",anthropic:"Anthropic (Claude)",custom:"OpenAI-compatible",apiKey:"Anthropic API key",apiToken:"API token",keySaved:"Saved key {hint} — leave empty to keep it",keyFromEnv:"Using {hint} from the environment — leave empty to keep it",keyRebind:"Re-enter the key for this address — the saved key is only sent to the base URL it was saved with",modelLabel:"Model",modelHintAnthropic:"Loaded live from Anthropic: every model your key can use.",modelHintCustom:"Loaded from the endpoint's /models list. The model must support tool calling.",modelsLoading:"Loading models…",modelsNeedKey:"Enter the API key to load the models",refreshModels:"Reload the list",modelSearch:"Find a model or type its id…",noModels:"No matching models",useTyped:"Use “{id}”",chooseModel:"Choose a model",defaultTag:"default",baseUrl:"Base URL",baseUrlHintAnthropic:"Only to reach Claude through a corporate proxy. Leave empty for api.anthropic.com.",baseUrlHintCustom:"The endpoint's OpenAI-compatible root, usually ending in /v1.",optional:"optional",appearance:"Appearance",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",save:"Save",saving:"Saving…",saved:"Saved",storedIn:"Stored in {path}",welcome:"Connect a model to get started",welcomeSub:"qpilot drives the browser with an AI model. Add your API key below — you can change it here any time."},action:{opening:"Opening",readingPage:"Reading page",readingBlock:"Reading block",clicking:"Clicking",clickingElement:"Clicking element",filling:"Filling",selecting:"Selecting",hovering:"Hovering",hoveringElement:"Hovering element",scrollingTo:"Scrolling to",scrolling:"Scrolling",inside:"inside",pressing:"Pressing",closingOverlay:"Closing overlay",waiting:"Waiting",askingUser:"Asking user",uploading:"Uploading",to:"to",down:"down",up:"up",right:"right",left:"left"}},r={en:s,ru:{back:"Назад",newRun:"Новый прогон",notFound:"Прогон не найден — возможно, он завершился и был вытеснен из памяти.",steps:"шагов",passedCount:"успешно",warnCount:"предупреждений",failedCount:"провалено",waitingForPlan:"ждём план…",noSteps:"шаги не выполнялись",pause:"Пауза",resume:"Продолжить",waitingToStart:"ждём запуска агента…",endedBeforePlan:"Прогон завершился до того, как агент составил план.",seeReason:"Причина — ниже.",summary:"Итог",testCase:"Тест-кейс",attached:"Вложения",noEvents:"событий по этому шагу нет",runFinished:"Прогон завершён",stepLabel:"Шаг",asking:"Спрашивает",userAnswered:"Пользователь ответил",needInput:"Агенту нужен ввод",submit:"Отправить",sending:"Отправка…",secretPlaceholder:"код / пароль",answerPlaceholder:"ответ",status:{running:{label:"Выполняется",sub:"агент проходит шаги"},waiting:{label:"Ожидание",sub:"агенту нужен ваш ввод"},paused:{label:"Пауза",sub:"прогон приостановлен"},passed:{label:"Успешно",sub:"все шаги пройдены"},failed:{label:"Провален",sub:"часть шагов не прошла"},error:{label:"Ошибка",sub:"агент упал"}},home:{tagline:"Вставьте тест-кейс. Смотрите, как он проходит.",chooseFolder:"Выбрать папку",uploadMd:"Загрузить .md",files:"файлов",clearList:"Очистить список",selectAll:"Выбрать все",selected:"выбрано",run:"Запустить",runN:"Запустить",withPreview:"С превью",runPreview:"Запустить с превью",running:"Запускаем…",stop:"Остановить",example:"Пример",placeholder:"Вставьте сюда свой тест-кейс…",expand:"Развернуть",collapse:"Свернуть",batchRun:"Пакетный прогон",recentRuns:"Последние прогоны",attach:"Прикрепить файлы",addFile:"Добавить файл",attachHint:"необязательно — картинки, CSV или документы, которые нужно загрузить в тесте",remove:"Убрать",settings:"Настройки"},stepStatus:{queued:"в очереди",pass:"успех",warn:"внимание",fail:"провал",skipped:"пропущен",running:"выполняется"},settings:{title:"Настройки",back:"Назад",model:"Модель",provider:"Провайдер",anthropic:"Anthropic (Claude)",custom:"OpenAI-совместимый",apiKey:"API-ключ Anthropic",apiToken:"API-токен",keySaved:"Сохранён ключ {hint} — оставьте пустым, чтобы не менять",keyFromEnv:"Используется {hint} из переменных окружения — оставьте пустым, чтобы не менять",keyRebind:"Введите ключ заново для этого адреса — сохранённый ключ отправляется только на тот Base URL, с которым его сохранили",modelLabel:"Модель",modelHintAnthropic:"Список загружается из Anthropic: все модели, доступные вашему ключу.",modelHintCustom:"Список берётся из /models на сервере. Модель должна поддерживать tool calling.",modelsLoading:"Загружаю модели…",modelsNeedKey:"Введите API-ключ, чтобы загрузить модели",refreshModels:"Обновить список",modelSearch:"Найти модель или ввести её ID…",noModels:"Подходящих моделей нет",useTyped:"Использовать \xab{id}\xbb",chooseModel:"Выберите модель",defaultTag:"по умолчанию",baseUrl:"Base URL",baseUrlHintAnthropic:"Только для доступа к Claude через корпоративный прокси. Оставьте пустым для api.anthropic.com.",baseUrlHintCustom:"Корень OpenAI-совместимого API, обычно заканчивается на /v1.",optional:"необязательно",appearance:"Внешний вид",theme:"Тема",themeSystem:"Системная",themeLight:"Светлая",themeDark:"Тёмная",save:"Сохранить",saving:"Сохраняю…",saved:"Сохранено",storedIn:"Хранится в {path}",welcome:"Подключите модель, чтобы начать",welcomeSub:"qpilot управляет браузером с помощью ИИ-модели. Укажите API-ключ ниже — поменять его можно здесь в любой момент."},action:{opening:"Открывает",readingPage:"Читает страницу",readingBlock:"Читает блок",clicking:"Кликает",clickingElement:"Кликает по элементу",filling:"Заполняет",selecting:"Выбирает",hovering:"Наводит на",hoveringElement:"Наводит на элемент",scrollingTo:"Скроллит к",scrolling:"Скроллит",inside:"внутри",pressing:"Нажимает",closingOverlay:"Закрывает оверлей",waiting:"Ждёт",askingUser:"Спрашивает пользователя",uploading:"Загружает",to:"в",down:"вниз",up:"вверх",right:"вправо",left:"влево"}}};function a(e){var t;return null!=(t=r[null!=e?e:"en"])?t:s}},3990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>K});var s=n(5155),r=n(2115),a=n(2619),i=n.n(a),o=n(3229),l=n(3228),d=n(2638),c=n(3410),u=n(9746),p=n(8215),g=n(7212),m=n(3916),x=n(8316),h=n(7274),f=n(5352),b=n(4788),v=n(6329),w=n(2391),j=n(1083),k=n(2027),N=n(3101),y=n(5016);let S=(0,N.F)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function A(e){let{className:t,variant:n="default",render:s,...r}=e;return(0,k.C)({defaultTagName:"span",props:(0,j.v6)({className:(0,y.cn)(S({variant:n}),t)},r),render:s,state:{slot:"badge",variant:n}})}var C=n(7003),z=n(4036),P=n(5949),M=n(4915),I=n(8502),R=n(8905),E=n(989);function F(e){let{...t}=e;return(0,s.jsx)(z.D,{"data-slot":"dialog",...t})}function T(e){let{...t}=e;return(0,s.jsx)(P.Z,{"data-slot":"dialog-portal",...t})}function L(e){let{className:t,...n}=e;return(0,s.jsx)(M.X,{"data-slot":"dialog-overlay",className:(0,y.cn)("fixed inset-0 isolate z-50 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",t),...n})}function O(e){let{className:t,children:n,showCloseButton:r=!0,...a}=e;return(0,s.jsxs)(T,{children:[(0,s.jsx)(L,{}),(0,s.jsxs)(I.h,{"data-slot":"dialog-content",className:(0,y.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t),...a,children:[n,r&&(0,s.jsxs)(R.H,{"data-slot":"dialog-close",render:(0,s.jsx)(C.$,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,s.jsx)(b.A,{}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function U(e){let{className:t,...n}=e;return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,y.cn)("flex flex-col gap-2",t),...n})}function B(e){let{className:t,...n}=e;return(0,s.jsx)(E.L,{"data-slot":"dialog-title",className:(0,y.cn)("font-heading text-base leading-none font-medium",t),...n})}var _=n(6170),q=n(8521),H=n(2577),D=n(1127);function W(e){let{...t}=e;return(0,s.jsx)(q.N,{"data-slot":"collapsible",...t})}function V(e){let{...t}=e;return(0,s.jsx)(H.R,{"data-slot":"collapsible-trigger",...t})}function $(e){let{...t}=e;return(0,s.jsx)(D.j,{"data-slot":"collapsible-content",...t})}function K(e){var t,n,a,h,f;let{params:b}=e,{id:j}=(0,r.use)(b),[k,N]=(0,r.useState)(null),[S,A]=(0,r.useState)([]),[z,P]=(0,r.useState)(!1),[M,I]=(0,r.useState)(null),[R,E]=(0,r.useState)(()=>Date.now()),[T,L]=(0,r.useState)(!1),U=(0,r.useRef)(!1);(0,r.useEffect)(()=>{U.current=!1;let e=new EventSource("/api/run/".concat(j,"/stream"));return e.onmessage=e=>{let t=JSON.parse(e.data);if(U.current=!0,t.events?A(t.events):t.event&&A(e=>[...e,t.event]),N({...t.run,events:[]}),!["running","waiting","paused"].includes(t.run.status)){var n,s,r,a,i;let e=null!=(i=null!=(a=null==(n=t.event)?void 0:n.ts)?a:null==(r=t.events)||null==(s=r.at(-1))?void 0:s.ts)?i:Date.now();I(t=>null!=t?t:e)}},e.onerror=()=>{e.close(),U.current||P(!0)},()=>e.close()},[j]);let B=(0,w.jd)(null==k?void 0:k.language),_=null!=(n=null==k?void 0:k.status)?n:"running",q=null!=(a=null==k?void 0:k.steps)?a:[],H=q.filter(e=>"pass"===e.status).length,D=q.filter(e=>"fail"===e.status).length,K=q.filter(e=>"warn"===e.status).length,G="running"===_||"waiting"===_,X=G||"paused"===_;async function Z(){X&&(L(!0),await fetch("/api/run/".concat(j,"/pause"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"paused"===_?"resume":"pause"})}).catch(()=>{}),L(!1))}let Y=G&&null!=(h=null==(t=q.find(e=>"queued"===e.status))?void 0:t.num)?h:null;(0,r.useEffect)(()=>{if(!G)return;let e=setInterval(()=>E(Date.now()),1e3);return()=>clearInterval(e)},[G]),(0,r.useEffect)(()=>((0,v.O)(_),()=>{(0,v.g)()}),[_]),(0,r.useEffect)(()=>{if(!(null==k?void 0:k.title))return;let e=document.title;return document.title=k.title,()=>{document.title=e}},[null==k?void 0:k.title]),(0,r.useEffect)(()=>{var e;null!=Y&&(null==(e=document.getElementById("step-".concat(Y)))||e.scrollIntoView({behavior:"smooth",block:"center"}))},[Y]);let et=k?(null!=M?M:R)-k.createdAt:0,es=q.filter(e=>"queued"!==e.status).length,er=q.length?es/q.length*100:0,ea=[];for(let e of q){let t=ea[ea.length-1];t&&t.title===e.group?t.steps.push(e):ea.push({title:e.group,steps:[e]})}return z?(0,s.jsxs)("main",{className:"flex flex-col items-center justify-center min-h-screen px-6 text-center",children:[(0,s.jsx)("p",{className:"text-6xl font-semibold text-faint mb-4",children:"404"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mb-6",children:B.notFound}),(0,s.jsxs)(i(),{href:"/",className:"inline-flex items-center gap-1.5 text-sm text-foreground/75 hover:text-foreground transition-colors",children:[(0,s.jsx)(o.A,{className:"size-3.5"}),B.newRun]})]}):(0,s.jsxs)("main",{className:"mx-auto max-w-2xl px-6 pt-10 pb-24",children:[(0,s.jsxs)(i(),{href:"/",className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors mb-8",children:[(0,s.jsx)(o.A,{className:"size-3.5"}),B.back]}),(0,s.jsxs)("section",{className:"mb-8",children:[(0,s.jsx)(Q,{status:_,t:B}),(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight mt-5 break-words text-foreground/90",children:null!=(f=null==k?void 0:k.title)?f:j}),k&&(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 mt-1.5",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground font-mono",children:q.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"text-foreground/75",children:[es,"/",q.length," ",B.steps]}),H>0&&(0,s.jsxs)("span",{className:"text-success ml-2",children:["\xb7 ",H," ",B.passedCount]}),K>0&&(0,s.jsxs)("span",{className:"text-warning ml-2",children:["\xb7 ",K," ",B.warnCount]}),D>0&&(0,s.jsxs)("span",{className:"text-destructive ml-2",children:["\xb7 ",D," ",B.failedCount]})]}):(0,s.jsx)("span",{className:"text-subtle",children:X?B.waitingForPlan:B.noSteps})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[X&&(0,s.jsx)(C.$,{variant:"ghost",size:"sm",onClick:Z,disabled:T||"waiting"===_,className:"h-7 px-2 text-muted-foreground hover:text-foreground",children:"paused"===_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.A,{className:"size-3.5 mr-1"}),B.resume]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{className:"size-3.5 mr-1"}),B.pause]})}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground font-mono tabular-nums",children:[(0,s.jsx)(c.A,{className:"size-3"}),(0,y.a)(et)]})]})]}),q.length>0&&(0,s.jsx)("div",{className:"relative mt-3 h-[3px] rounded-full bg-surface-hover overflow-hidden",children:(0,s.jsx)("div",{className:(0,y.cn)("absolute inset-y-0 left-0 rounded-full transition-all duration-700 ease-out","failed"===_||"error"===_?"bg-destructive":"bg-success"),style:{width:"".concat(er,"%")}})})]}),(0,s.jsxs)("section",{className:"space-y-2",children:[0===q.length&&(X?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,s.jsx)(u.A,{className:"size-5 text-faint animate-spin mb-3"}),(0,s.jsx)("p",{className:"text-sm text-subtle",children:B.waitingToStart})]}):(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,s.jsx)(p.A,{className:"size-5 text-faint mb-3"}),(0,s.jsx)("p",{className:"text-sm text-subtle",children:B.endedBeforePlan}),(0,s.jsx)("p",{className:"text-xs text-subtle mt-1",children:B.seeReason})]})),ea.map((e,t)=>(0,s.jsxs)("div",{className:"space-y-2",children:[e.title&&(0,s.jsx)("div",{className:"pt-4 first:pt-0 text-[10.5px] font-semibold uppercase tracking-widest text-subtle",children:e.title}),e.steps.map((e,t)=>(0,s.jsx)("div",{id:"step-".concat(e.num),className:"scroll-mt-6",children:(0,s.jsx)(ee,{t:B,step:e,displayNum:t+1,active:e.num===Y,events:S.filter(t=>t.stepNum===e.num)})},e.num))]},t))]}),(null==k?void 0:k.summary)&&(0,s.jsxs)("div",{className:"mt-6 rounded-xl border border-border bg-card/60 px-4 py-3",children:[(0,s.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-widest text-subtle mb-1.5",children:B.summary}),(0,s.jsx)("div",{className:"text-sm leading-relaxed text-foreground/80",children:k.summary})]}),(null==k?void 0:k.testCase)&&(0,s.jsx)(W,{className:"mt-3",children:(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card/60 overflow-hidden",children:[(0,s.jsxs)(V,{className:"group w-full flex items-center justify-between px-4 py-3 hover:bg-surface transition-colors",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-subtle",children:B.testCase}),(0,s.jsx)(g.A,{className:"size-3.5 text-faint group-data-open:hidden"}),(0,s.jsx)(m.A,{className:"size-3.5 text-faint hidden group-data-open:inline"})]}),(0,s.jsx)($,{children:(0,s.jsx)("pre",{className:"px-4 pb-4 text-[11.5px] font-mono leading-relaxed text-foreground/75 whitespace-pre-wrap break-words border-t border-border pt-3",children:k.testCase})})]})}),(null==k?void 0:k.attachments)&&k.attachments.length>0&&(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-widest text-subtle mr-1",children:[(0,s.jsx)(x.A,{className:"size-3"}),B.attached]}),k.attachments.map(e=>{var t;return(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border border-border bg-surface px-2.5 py-1",children:[(0,s.jsx)("span",{className:"text-[11px] font-mono text-foreground/75 max-w-[200px] truncate",children:e.name}),(0,s.jsx)("span",{className:"text-[10px] tabular-nums text-subtle",children:(t=e.size)<1024?"".concat(t," B"):t<1048576?"".concat(Math.round(t/1024)," KB"):"".concat((t/1024/1024).toFixed(1)," MB")})]},e.name)})]}),("passed"===_||"failed"===_)&&(0,s.jsx)(J,{}),(0,s.jsx)(F,{open:!!(null==k?void 0:k.pending),children:(0,s.jsx)(O,{showCloseButton:!1,children:(null==k?void 0:k.pending)&&(0,s.jsx)(en,{runId:j,question:k.pending,t:B})})})]})}function J(){return(0,s.jsxs)("a",{href:"https://github.com/broxhq/qpilot",target:"_blank",rel:"noreferrer",className:"group mt-6 flex items-center gap-3 rounded-xl border border-border bg-card/60 px-4 py-3 transition-colors hover:border-warning/30 hover:bg-warning/[0.03]",children:[(0,s.jsx)(h.A,{className:"size-4 shrink-0 text-subtle transition-colors group-hover:text-warning group-hover:fill-warning"}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"text-sm text-foreground/80",children:["Did qpilot save you time?"," ",(0,s.jsx)("span",{className:"text-foreground/95 group-hover:text-warning transition-colors",children:"Star it on GitHub"})]}),(0,s.jsx)("div",{className:"text-xs text-subtle",children:"A ⭐ helps more people find it — takes two seconds."})]})]})}let G={running:{icon:(0,s.jsx)(u.A,{className:"size-4 animate-spin"}),color:"text-foreground/75",bg:"bg-surface-hover",border:"border-border"},waiting:{icon:(0,s.jsx)(p.A,{className:"size-4"}),color:"text-warning",bg:"bg-warning/10",border:"border-warning/20"},paused:{icon:(0,s.jsx)(d.A,{className:"size-4"}),color:"text-foreground/75",bg:"bg-surface-hover",border:"border-border"},passed:{icon:(0,s.jsx)(f.A,{className:"size-4",strokeWidth:2.5}),color:"text-success",bg:"bg-success/10",border:"border-success/20"},failed:{icon:(0,s.jsx)(b.A,{className:"size-4",strokeWidth:2.5}),color:"text-destructive",bg:"bg-destructive/10",border:"border-destructive/20"},error:{icon:(0,s.jsx)(p.A,{className:"size-4"}),color:"text-destructive",bg:"bg-destructive/10",border:"border-destructive/20"}};function Q(e){var t,n;let{status:r,t:a}=e,i=null!=(t=G[r])?t:G.running,o=null!=(n=a.status[r])?n:a.status.running;return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:(0,y.cn)("flex items-center justify-center size-9 rounded-xl border transition-colors",i.bg,i.border,i.color),children:i.icon}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:(0,y.cn)("text-sm font-semibold tracking-tight",i.color),children:o.label}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:o.sub})]})]})}let X={queued:{border:"border-l-border-strong",badge:"bg-surface-hover text-subtle",bg:""},pass:{border:"border-l-success/60",badge:"bg-success/10 text-success",bg:""},warn:{border:"border-l-warning/60",badge:"bg-warning/10 text-warning",bg:""},fail:{border:"border-l-destructive/60",badge:"bg-destructive/10 text-destructive",bg:"bg-destructive/[0.03]"},skipped:{border:"border-l-border-strong",badge:"bg-surface text-faint",bg:""}},Z={border:"border-l-warning/80",badge:"bg-warning/10 text-warning",bg:"bg-warning/[0.03]"};function Y(e){if("action"===e.kind&&("report_step"===e.toolName||"finish"===e.toolName||"set_plan"===e.toolName))return!1;if("observation"===e.kind){var t;let n=null!=(t=e.text)?t:"";return n.startsWith("Error:")||n.startsWith("[debug]")}return!0}function ee(e){var t,n;let{step:a,events:i,active:o,displayNum:l,t:d}=e,c=null!=(t=X[a.status])?t:X.queued,p=o?{...c,...Z}:c,x=i.filter(Y),h=o||"fail"===a.status,[f,b]=(0,r.useState)(h);return(0,r.useEffect)(()=>b(h),[h]),(0,s.jsx)(W,{open:f,onOpenChange:b,children:(0,s.jsxs)("div",{className:(0,y.cn)("rounded-xl border border-border border-l-2 overflow-hidden transition-colors",p.border,p.bg),children:[(0,s.jsxs)(V,{className:"group w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-surface transition-colors",children:[(0,s.jsx)(A,{className:(0,y.cn)("border-0 text-[9.5px] tracking-widest font-semibold shrink-0 gap-1 uppercase rounded-md px-1.5",p.badge),children:o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.A,{className:"size-2.5 animate-spin"}),d.stepStatus.running]}):null!=(n=d.stepStatus[a.status])?n:a.status}),(0,s.jsxs)("span",{className:"flex-1 min-w-0 text-[13px] text-foreground/80",children:[(0,s.jsx)("span",{className:"text-subtle mr-2 font-mono text-[11px]",children:String(null!=l?l:a.num).padStart(2,"0")}),a.description]}),(0,s.jsx)(g.A,{className:"size-3.5 text-faint shrink-0 group-data-open:hidden"}),(0,s.jsx)(m.A,{className:"size-3.5 text-faint shrink-0 hidden group-data-open:inline"})]}),a.evidence&&(0,s.jsx)("div",{className:"px-4 pb-3 -mt-0.5 text-[11.5px] text-muted-foreground leading-relaxed font-mono",children:a.evidence}),(0,s.jsx)($,{children:(0,s.jsxs)("div",{className:"px-4 pb-4 pt-3 space-y-3 border-t border-border",children:[a.screenshot&&(0,s.jsx)("a",{href:a.screenshot,target:"_blank",rel:"noreferrer",className:"block rounded-lg overflow-hidden border border-border hover:border-border-strong transition-colors",children:(0,s.jsx)("img",{src:a.screenshot,alt:"screenshot step ".concat(a.num),className:"max-h-64 w-full object-contain bg-surface"})}),x.length>0?(0,s.jsx)("div",{className:"space-y-0.5",children:x.map((e,t)=>(0,s.jsx)(et,{event:e,t:d},t))}):(0,s.jsx)("div",{className:"text-[11px] text-faint",children:d.noEvents})]})})]})})}function et(e){let{event:t,t:n}=e,{icon:r,text:a,cls:i}=function(e,t){var n,s,r,a,i,o,l,d,c,u,p,g,m;switch(e.kind){case"action":return{icon:"→",text:function(e,t){var n,s,r,a,i,o,l,d,c;let u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,w.jd)("en"),p=null!=t?t:{},g=u.action;switch(e){case"navigate":return"".concat(g.opening," ").concat(null!=(n=p.url)?n:"");case"snapshot":return p.near?"".concat(g.readingBlock,' "').concat(p.near,'"'):g.readingPage;case"click":return p.name?"".concat(g.clicking,' "').concat(p.name,'"'):g.clickingElement;case"fill":return p.name?"".concat(g.filling,' "').concat(p.name,'" → "').concat(null!=(s=p.value)?s:"",'"'):"".concat(g.filling,' "').concat(null!=(r=p.value)?r:"",'"');case"select":return p.name?"".concat(g.selecting,' "').concat(null!=(a=p.value)?a:"",'" — "').concat(p.name,'"'):"".concat(g.selecting,' "').concat(null!=(i=p.value)?i:"",'"');case"hover":return p.name?"".concat(g.hovering,' "').concat(p.name,'"'):g.hoveringElement;case"scroll_to":return"".concat(g.scrollingTo," ").concat(p.text?'"'.concat(p.text,'"'):null!=(o=p.ref)?o:"");case"scroll":{let e=[Number(p.y)?"".concat(Number(p.y)>0?g.down:g.up," ").concat(Math.abs(Number(p.y)),"px"):"",Number(p.x)?"".concat(Number(p.x)>0?g.right:g.left," ").concat(Math.abs(Number(p.x)),"px"):""].filter(Boolean).join(", "),t=p.ref?" ".concat(g.inside," ").concat(p.ref):"";return"".concat(g.scrolling," ").concat(e||"0px").concat(t)}case"press":return"".concat(g.pressing," ").concat(null!=(l=p.key)?l:"");case"upload_file":return"".concat(g.uploading,' "').concat(null!=(d=p.file)?d:"",'"').concat(p.name?" ".concat(g.to,' "').concat(p.name,'"'):"");case"dismiss":return g.closingOverlay;case"wait":return"".concat(g.waiting," ").concat(null!=(c=p.ms)?c:""," ms");case"ask_user":return g.askingUser;default:return null!=e?e:"action"}}(e.toolName,e.toolInput,t),cls:"text-foreground/75"};case"step":{let i=null!=(r=null==(n=e.step)?void 0:n.status)?r:"",o="pass"===i?"text-success":"fail"===i?"text-destructive":"text-warning";return{icon:"pass"===i?"✓":"fail"===i?"✗":"!",text:"".concat(t.stepLabel," ").concat(null==(s=e.step)?void 0:s.num," — ").concat((null!=(a=t.stepStatus[i])?a:i).toUpperCase()),cls:o}}case"observation":{let t=null!=(i=e.text)?i:"";if(t.startsWith("Error:"))return{icon:"✗",text:t,cls:"text-destructive"};return{icon:"\xb7",text:t,cls:"text-subtle"}}case"question":return{icon:"?",text:"".concat(t.asking,": ").concat(null!=(l=null==(o=e.question)?void 0:o.prompt)?l:""),cls:"text-warning"};case"answer":return{icon:"✎",text:t.userAnswered,cls:"text-foreground/75"};case"thought":return{icon:"›",text:null!=(d=e.text)?d:"",cls:"text-subtle italic"};case"done":return{icon:"■",text:"".concat(t.runFinished," — ").concat(null!=(g=null!=(p=null==(c=t.status[null!=(u=e.status)?u:""])?void 0:c.label)?p:e.status)?g:""),cls:"text-foreground/75"};case"error":return{icon:"✗",text:null!=(m=e.text)?m:"",cls:"text-destructive"};default:return{icon:"\xb7",text:"",cls:"text-faint"}}}(t,n),o=new Date(t.ts).toLocaleTimeString("en-US",{hour12:!1});return(0,s.jsxs)("div",{className:"flex gap-2.5 text-[11.5px] leading-relaxed items-baseline font-mono",children:[(0,s.jsx)("span",{className:"shrink-0 tabular-nums text-faint text-[10px]",children:o}),(0,s.jsx)("span",{className:(0,y.cn)("shrink-0 w-3.5 text-center",i),children:r}),(0,s.jsx)("span",{className:(0,y.cn)("min-w-0 break-words",i),children:a})]})}function en(e){let{runId:t,question:n,t:a}=e,[i,o]=(0,r.useState)(""),[l,d]=(0,r.useState)(!1),[c,u]=(0,r.useState)(null);async function g(e){if(e.preventDefault(),i){d(!0),u(null);try{let e=await fetch("/api/run/".concat(t,"/answer"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({questionId:n.id,answer:i})});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error||"HTTP ".concat(e.status))}o("")}catch(e){u(e instanceof Error?e.message:String(e)),d(!1)}}}return(0,s.jsxs)("form",{onSubmit:g,className:"space-y-4",children:[(0,s.jsx)(U,{children:(0,s.jsxs)(B,{className:"flex items-center gap-2 text-base",children:[(0,s.jsx)(p.A,{className:"size-4 text-warning shrink-0"}),a.needInput]})}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n.prompt}),(0,s.jsx)(_.p,{autoFocus:!0,type:n.secret?"password":"text",value:i,onChange:e=>o(e.target.value),placeholder:n.secret?a.secretPlaceholder:a.answerPlaceholder,className:"font-mono"}),c&&(0,s.jsx)("p",{className:"text-destructive text-xs",children:c}),(0,s.jsx)(C.$,{type:"submit",disabled:!i||l,className:"w-full",children:l?a.sending:a.submit})]})}},5016:(e,t,n)=>{"use strict";n.d(t,{a:()=>i,cn:()=>a});var s=n(2821),r=n(5889);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.QP)((0,s.$)(t))}function i(e){let t=Math.max(0,Math.floor(e/1e3));return"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))}},6170:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var s=n(5155);n(2115);var r=n(2045),a=n(5016);function i(e){let{className:t,type:n,...i}=e;return(0,s.jsx)(r.p,{type:n,"data-slot":"input",className:(0,a.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),...i})}},6329:(e,t,n)=>{"use strict";function s(e){return"data:image/svg+xml,".concat(encodeURIComponent(e))}function r(e){let t=document.querySelector('link[rel="icon"]');t||(t=Object.assign(document.createElement("link"),{rel:"icon"}),document.head.appendChild(t)),t.href=e}function a(e){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">'.concat(e,"</svg>")}n.d(t,{O:()=>u,g:()=>p});let i=Array.from({length:10},(e,t)=>{let n=t/10*Math.PI*2-Math.PI/2,r=.65*Math.PI,i=12+10*Math.cos(n),o=12+10*Math.sin(n),l=12+10*Math.cos(n+r),d=12+10*Math.sin(n+r);return s(a('<circle cx="12" cy="12" r="10" stroke="#38bdf8" stroke-width="2.5" fill="none" opacity="0.15"/>'+'<path d="M'.concat(i.toFixed(3)," ").concat(o.toFixed(3)," A10 10 0 0 1 ").concat(l.toFixed(3)," ").concat(d.toFixed(3),'" stroke="#38bdf8" stroke-width="2.5" fill="none" stroke-linecap="round"/>')))}),o={passed:s(a('<circle cx="12" cy="12" r="10" fill="#22c55e"/><path d="M7 12.5l3.5 3.5 6.5-7" stroke="white" stroke-width="2.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>')),failed:s(a('<circle cx="12" cy="12" r="10" fill="#ef4444"/><path d="M8 8l8 8M16 8l-8 8" stroke="white" stroke-width="2.2" stroke-linecap="round"/>')),error:s(a('<circle cx="12" cy="12" r="10" fill="#ef4444"/><path d="M8 8l8 8M16 8l-8 8" stroke="white" stroke-width="2.2" stroke-linecap="round"/>')),waiting:s(a('<circle cx="12" cy="12" r="10" fill="#facc15"/><path d="M12 7v5.5l3 3" stroke="white" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>')),paused:s(a('<circle cx="12" cy="12" r="10" fill="#64748b"/><path d="M9 8v8M15 8v8" stroke="white" stroke-width="2.2" stroke-linecap="round"/>')),default:s(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="'.concat(e,'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">').concat('<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>').concat(t,"</svg>")}("#7c7c8a"))},l=null,d=0;function c(){l&&(clearInterval(l),l=null)}function u(e){var t;if(c(),"running"===e){d=0,r(i[0]),l=setInterval(()=>{r(i[d=(d+1)%10])},100);return}r(null!=(t=o[e])?t:o.default)}function p(){c(),r(o.default)}},7003:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var s=n(5155),r=n(9574),a=n(3101),i=n(5016);let o=(0,a.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:n="default",size:a="default",...l}=e;return(0,s.jsx)(r.$,{"data-slot":"button",className:(0,i.cn)(o({variant:n,size:a,className:t})),...l})}},9578:(e,t,n)=>{Promise.resolve().then(n.bind(n,3990))}},e=>{e.O(0,[31,777,798,441,255,358],()=>e(e.s=9578)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{6170:(e,t,s)=>{"use strict";s.d(t,{p:()=>l});var r=s(5155);s(2115);var a=s(2045),n=s(5016);function l(e){let{className:t,type:s,...l}=e;return(0,r.jsx)(a.p,{type:s,"data-slot":"input",className:(0,n.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),...l})}},7414:(e,t,s)=>{Promise.resolve().then(s.bind(s,7961))},7961:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>S});var r=s(5155),a=s(2115),n=s(2619),l=s.n(n),i=s(63),o=s(3229),d=s(6479);let c=(0,d.A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),u=(0,d.A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),x=(0,d.A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var p=s(8215),m=s(5352),h=s(9746);let f=(0,d.A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);var b=s(3916),v=s(7003),g=s(6170),j=s(6555),y=s(5016),k=s(2391);let N="rounded-xl border border-border bg-card shadow-sm",w="text-[13px] font-medium text-foreground",C="text-xs leading-relaxed text-subtle",M=e=>(null!=e?e:"").trim().replace(/\/+$/,"");function S(){return(0,r.jsx)(a.Suspense,{children:(0,r.jsx)(z,{})})}function z(){var e;let t=(0,i.useRouter)(),s="1"===(0,i.useSearchParams)().get("welcome"),[n,d]=(0,a.useState)("en"),b=(0,k.jd)(n).settings,[S,z]=(0,a.useState)(null),[T,U]=(0,a.useState)("anthropic"),[R,H]=(0,a.useState)(""),[P,K]=(0,a.useState)(""),[_,O]=(0,a.useState)(""),[q,F]=(0,a.useState)(!1),[B,D]=(0,a.useState)(null),[J,$]=(0,a.useState)(!1),[I,W]=(0,a.useState)(null),[G,Q]=(0,a.useState)(!1),[V,X]=(0,a.useState)(null),Y=(0,a.useRef)(0);(0,a.useEffect)(()=>{var e;(null==(e=navigator.language)?void 0:e.toLowerCase().startsWith("ru"))&&d("ru"),fetch("/api/settings").then(e=>e.json()).then(e=>{z(e),U(e.provider),K(e.baseURL),O(e.model),et(e.provider,"",e.baseURL,e)}).catch(()=>{})},[]);let Z=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return!!((null==s?void 0:s.hasKey)&&s.provider===e&&M(s.baseURL)===M(t))},ee=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S;return!!(t.trim()||Z(e,s,r))};async function et(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S,a=++Y.current;if(X(null),!ee(e,t,s,r)||"custom"===e&&!s.trim())return void W(null);Q(!0);try{let r=await fetch("/api/settings/models",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e,apiKey:t,baseURL:s})}),n=await r.json().catch(()=>({}));if(a!==Y.current)return;if(!r.ok)throw Error(n.error||"HTTP ".concat(r.status));W(n.models)}catch(e){if(a!==Y.current)return;W(null),X(e instanceof Error?e.message:String(e))}finally{a===Y.current&&Q(!1)}}async function es(e){e.preventDefault(),F(!0),D(null);try{let e=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:T,apiKey:R,model:_,baseURL:P})}),r=await e.json().catch(()=>({}));if(!e.ok)throw Error(r.error||"HTTP ".concat(e.status));if(z(r),H(""),s)return void t.push("/");$(!0),setTimeout(()=>$(!1),2500)}catch(e){D(e instanceof Error?e.message:String(e))}finally{F(!1)}}let er=!!((null==S?void 0:S.hasKey)&&S.provider===T),ea=!S||!er||R.trim()?null:Z(T,P)?("env"===S.source?b.keyFromEnv:b.keySaved).replace("{hint}",S.keyHint):b.keyRebind,en=_||("anthropic"===T&&null!=(e=null==S?void 0:S.defaultModel)?e:"");return(0,r.jsxs)("main",{className:"mx-auto max-w-xl px-6 pt-10 pb-24",children:[(0,r.jsxs)(l(),{href:"/",className:"inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors mb-8",children:[(0,r.jsx)(o.A,{className:"size-3.5"}),b.back]}),(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight mb-6",children:b.title}),s&&S&&!S.configured&&(0,r.jsxs)("div",{className:"mb-6 flex gap-3 rounded-xl border border-ring/30 bg-ring/[0.07] px-4 py-3.5",children:[(0,r.jsx)(c,{className:"size-4 shrink-0 mt-0.5 text-ring"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-sm font-medium",children:b.welcome}),(0,r.jsx)("div",{className:(0,y.cn)(C,"mt-0.5"),children:b.welcomeSub})]})]}),(0,r.jsxs)("form",{onSubmit:es,className:(0,y.cn)(N,"mb-6"),children:[(0,r.jsx)(L,{icon:(0,r.jsx)(u,{className:"size-4"}),title:b.model}),(0,r.jsxs)("div",{className:"space-y-5 px-5 pb-5",children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:w,children:b.provider}),(0,r.jsx)("div",{role:"radiogroup",className:"grid grid-cols-2 gap-1 rounded-lg border border-border bg-surface p-1",children:["anthropic","custom"].map(e=>(0,r.jsx)("button",{type:"button",role:"radio","aria-checked":T===e,onClick:()=>(function(e){if(e===T)return;U(e),H(""),O(e===(null==S?void 0:S.provider)?S.model:"");let t=e===(null==S?void 0:S.provider)?S.baseURL:"";K(t),W(null),et(e,"",t)})(e),className:(0,y.cn)("rounded-md px-3 py-1.5 text-sm transition-colors",T===e?"bg-background text-foreground font-medium shadow-sm ring-1 ring-border":"text-muted-foreground hover:text-foreground"),children:"anthropic"===e?b.anthropic:b.custom},e))})]}),"custom"===T&&(0,r.jsx)(E,{label:b.baseUrl,hint:b.baseUrlHintCustom,children:(0,r.jsx)(g.p,{value:P,onChange:e=>K(e.target.value),onBlur:()=>et(),placeholder:"https://…/v1",spellCheck:!1,autoComplete:"off",className:"font-mono text-[13px]"})}),(0,r.jsx)(E,{label:"anthropic"===T?b.apiKey:b.apiToken,hint:null!=ea?ea:void 0,children:(0,r.jsx)(g.p,{type:"password",value:R,onChange:e=>H(e.target.value),onBlur:()=>{R.trim()&&et()},placeholder:Z(T,P)?"••••••••":"anthropic"===T?"sk-ant-…":"",spellCheck:!1,autoComplete:"off",autoFocus:s,className:"font-mono text-[13px]"})}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:w,children:b.modelLabel}),(0,r.jsxs)("button",{type:"button",onClick:()=>et(),disabled:G||!ee(T,R),className:"inline-flex items-center gap-1 text-xs text-subtle hover:text-foreground disabled:opacity-50 disabled:pointer-events-none transition-colors",children:[(0,r.jsx)(x,{className:(0,y.cn)("size-3",G&&"animate-spin")}),b.refreshModels]})]}),(0,r.jsx)(A,{t:b,value:en,models:I,loading:G,defaultModel:"anthropic"===T?null==S?void 0:S.defaultModel:void 0,onChange:O}),V?(0,r.jsxs)("div",{className:"flex items-start gap-1.5 text-xs leading-relaxed text-destructive",children:[(0,r.jsx)(p.A,{className:"size-3.5 shrink-0 mt-px"}),(0,r.jsx)("span",{className:"break-words min-w-0",children:V})]}):(0,r.jsx)("div",{className:C,children:ee(T,R)?"anthropic"===T?b.modelHintAnthropic:b.modelHintCustom:b.modelsNeedKey})]}),"anthropic"===T&&(0,r.jsx)(E,{label:b.baseUrl,optional:b.optional,hint:b.baseUrlHintAnthropic,children:(0,r.jsx)(g.p,{value:P,onChange:e=>K(e.target.value),onBlur:()=>et(),placeholder:"https://api.anthropic.com",spellCheck:!1,autoComplete:"off",className:"font-mono text-[13px]"})}),B&&(0,r.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-destructive/30 bg-destructive/[0.07] px-3 py-2.5 text-xs leading-relaxed text-destructive",children:[(0,r.jsx)(p.A,{className:"size-3.5 shrink-0 mt-px"}),(0,r.jsx)("span",{className:"break-words min-w-0",children:B})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 border-t border-border bg-surface px-5 py-3 rounded-b-xl",children:[(0,r.jsx)("span",{className:"mr-auto min-w-0 truncate text-[11px] font-mono text-faint",children:S&&b.storedIn.replace("{path}",S.configPath.replace(/^\/(Users|home)\/[^/]+/,"~"))}),J&&(0,r.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-success",children:[(0,r.jsx)(m.A,{className:"size-3.5"}),b.saved]}),(0,r.jsxs)(v.$,{type:"submit",disabled:q||!S,className:"gap-1.5 px-4",children:[q&&(0,r.jsx)(h.A,{className:"size-3.5 animate-spin"}),q?b.saving:b.save]})]})]}),(0,r.jsxs)("section",{className:N,children:[(0,r.jsx)(L,{icon:(0,r.jsx)(f,{className:"size-4"}),title:b.appearance}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 px-5 pb-5",children:[(0,r.jsx)("span",{className:w,children:b.theme}),(0,r.jsx)(j.U,{labels:b,withLabels:!0})]})]})]})}function L(e){let{icon:t,title:s}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-2 px-5 pt-4 pb-4 text-sm font-semibold",children:[(0,r.jsx)("span",{className:"text-subtle",children:t}),s]})}function E(e){let{label:t,hint:s,optional:a,children:n}=e;return(0,r.jsxs)("label",{className:"block space-y-2",children:[(0,r.jsxs)("span",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:w,children:t}),a&&(0,r.jsx)("span",{className:"text-[11px] text-faint",children:a})]}),n,s&&(0,r.jsx)("span",{className:(0,y.cn)(C,"block"),children:s})]})}function A(e){var t,s;let{t:n,value:l,models:i,loading:o,defaultModel:d,onChange:c}=e,[u,x]=(0,a.useState)(!1),[p,f]=(0,a.useState)(""),v=(0,a.useRef)(null);s=()=>x(!1),(0,a.useEffect)(()=>{if(!u)return;let e=e=>{var t;(null==(t=v.current)?void 0:t.contains(e.target))||s()},t=e=>{"Escape"===e.key&&s()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[u]),(0,a.useEffect)(()=>{u&&f("")},[u]);let j=null==i?void 0:i.find(e=>e.id===l),k=p.trim().toLowerCase(),N=(null!=i?i:[]).filter(e=>!k||e.id.toLowerCase().includes(k)||e.name.toLowerCase().includes(k)),w=p.trim(),C=w&&!(null!=i?i:[]).some(e=>e.id===w);function M(e){c(e),x(!1)}return(0,r.jsxs)("div",{ref:v,className:"relative",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),"aria-expanded":u,className:(0,y.cn)("flex w-full items-center gap-3 rounded-lg border border-input bg-transparent px-3 py-2 text-left transition-colors","hover:border-border-strong focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30",u&&"border-border-strong"),children:[(0,r.jsx)("span",{className:"min-w-0 flex-1",children:l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"block truncate text-sm text-foreground",children:null!=(t=null==j?void 0:j.name)?t:l}),j&&j.name!==j.id&&(0,r.jsx)("span",{className:"block truncate font-mono text-[11px] text-subtle",children:j.id})]}):(0,r.jsx)("span",{className:"text-sm text-subtle",children:n.chooseModel})}),o?(0,r.jsx)(h.A,{className:"size-4 shrink-0 animate-spin text-subtle"}):(0,r.jsx)(b.A,{className:"size-4 shrink-0 text-subtle"})]}),u&&(0,r.jsxs)("div",{className:"absolute inset-x-0 top-full z-40 mt-1.5 overflow-hidden rounded-xl border border-border bg-popover shadow-xl",children:[(0,r.jsx)("div",{className:"border-b border-border p-2",children:(0,r.jsx)(g.p,{value:p,onChange:e=>f(e.target.value),autoFocus:!0,placeholder:n.modelSearch,spellCheck:!1,onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),1===N.length||N[0]&&!C?M(N[0].id):C&&M(w))},className:"h-8 font-mono text-[12.5px]"})}),(0,r.jsxs)("ul",{className:"max-h-80 overflow-y-auto py-1",children:[o&&!i&&(0,r.jsxs)("li",{className:"flex items-center gap-2 px-3 py-2.5 text-xs text-subtle",children:[(0,r.jsx)(h.A,{className:"size-3.5 animate-spin"}),n.modelsLoading]}),N.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",onClick:()=>M(e.id),className:"flex w-full items-start gap-2.5 px-3 py-2 text-left hover:bg-surface-hover transition-colors",children:[(0,r.jsx)(m.A,{className:(0,y.cn)("size-3.5 shrink-0 mt-0.5",e.id===l?"text-foreground":"opacity-0")}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"truncate text-sm text-foreground",children:e.name}),e.id===d&&(0,r.jsx)("span",{className:"shrink-0 rounded border border-border px-1.5 text-[10px] text-subtle",children:n.defaultTag})]}),e.name!==e.id&&(0,r.jsx)("span",{className:"block truncate font-mono text-[11px] text-subtle",children:e.id})]}),e.created&&(0,r.jsx)("span",{className:"shrink-0 pt-0.5 text-[11px] tabular-nums text-faint",children:e.created.slice(0,10)})]})},e.id)),i&&0===N.length&&!C&&(0,r.jsx)("li",{className:"px-3 py-2.5 text-xs text-subtle",children:n.noModels}),C&&(0,r.jsx)("li",{children:(0,r.jsxs)("button",{type:"button",onClick:()=>M(w),className:"flex w-full items-center gap-2.5 border-t border-border px-3 py-2 text-left text-sm text-muted-foreground hover:bg-surface-hover hover:text-foreground transition-colors",children:[(0,r.jsx)("span",{className:"size-3.5 shrink-0"}),(0,r.jsx)("span",{className:"truncate",children:n.useTyped.replace("{id}",w)})]})})]})]})]})}}},e=>{e.O(0,[31,777,934,441,255,358],()=>e(e.s=7414)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[792],{159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return s}});let n=r(9308),o=r(781),a=r(3239),i=r(9239),u=r(1500);function l(e,t,r){let n={},l=1,s=[];for(let c of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),i=c.match(u.PARAMETER_PATTERN);if(e&&i&&i[2]){let{key:t,optional:r,repeat:o}=(0,u.parseMatchedParameter)(i[2]);n[t]={pos:l++,repeat:o,optional:r},s.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(i&&i[2]){let{key:e,repeat:t,optional:o}=(0,u.parseMatchedParameter)(i[2]);n[e]={pos:l++,repeat:t,optional:o},r&&i[1]&&s.push("/"+(0,a.escapeStringRegexp)(i[1]));let c=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&i[1]&&(c=c.substring(1)),s.push(c)}else s.push("/"+(0,a.escapeStringRegexp)(c));t&&i&&i[3]&&s.push((0,a.escapeStringRegexp)(i[3]))}return{parameterizedRoute:s.join(""),groups:n}}function s(e,t){let{includeSuffix:r=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:o=!1}=void 0===t?{}:t,{parameterizedRoute:a,groups:i}=l(e,r,n),u=a;return o||(u+="(?:/)?"),{re:RegExp("^"+u+"$"),groups:i}}function c(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:o,routeKeys:i,keyPrefix:l,backreferenceDuplicateKeys:s}=e,{key:c,optional:f,repeat:d}=(0,u.parseMatchedParameter)(o),p=c.replace(/\W/g,"");l&&(p=""+l+p);let h=!1;(0===p.length||p.length>30)&&(h=!0),isNaN(parseInt(p.slice(0,1)))||(h=!0),h&&(p=n());let _=p in i;l?i[p]=""+l+c:i[p]=c;let m=r?(0,a.escapeStringRegexp)(r):"";return t=_&&s?"\\k<"+p+">":d?"(?<"+p+">.+?)":"(?<"+p+">[^/]+?)",f?"(?:/"+m+t+")?":"/"+m+t}function f(e,t,r,l,s){let f,d=(f=0,()=>{let e="",t=++f;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},h=[];for(let f of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)),i=f.match(u.PARAMETER_PATTERN);if(e&&i&&i[2])h.push(c({getSafeRouteKey:d,interceptionMarker:i[1],segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:s}));else if(i&&i[2]){l&&i[1]&&h.push("/"+(0,a.escapeStringRegexp)(i[1]));let e=c({getSafeRouteKey:d,segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:s});l&&i[1]&&(e=e.substring(1)),h.push(e)}else h.push("/"+(0,a.escapeStringRegexp)(f));r&&i&&i[3]&&h.push((0,a.escapeStringRegexp)(i[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:p}}function d(e,t){var r,n,o;let a=f(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(o=t.backreferenceDuplicateKeys)&&o),i=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(i+="(?:/)?"),{...s(e,t),namedRegex:"^"+i+"$",routeKeys:a.routeKeys}}function p(e,t){let{parameterizedRoute:r}=l(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=f(e,!1,!1,!1,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(2585);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},342:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,i]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===i)continue;let u=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&o(u)?e[u]=!!i:e.setAttribute(u,String(i)),(!1===i||"SCRIPT"===e.tagName&&o(u)&&(!i||"false"===i))&&(e.setAttribute(u,""),e.removeAttribute(u))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(8365)._(r(7825)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(1775),o=r(4933);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return s}}),r(4252),r(5358);let n=r(7233),o=r(1112),a=r(8757),i=r(4047);function u(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let l=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,l,{})}function c(e){return e&&l in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,s(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return h().then(r=>{if(!(t in r))throw s(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let o=r[t].map(t=>e+"/_next/"+(0,i.encodeURIPath)(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(s(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw s(e)})),t}return{whenEntrypoint:e=>u(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return u(r,a,()=>{let o;return p(_(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(i)),Promise.all(o.map(l))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,s(Object.defineProperty(Error("Route did not complete loading: "+r),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(s(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},563:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(1082),o=r(159);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(405),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?"/"+a:t+"/"+a;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=i.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:a}}},785:(e,t,r)=>{"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();let r=document.documentElement;r.dataset.scrollBehavior;let n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(6456)},840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(2585);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},1033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>o.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class _ extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},1082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let n=r(1033),o=r(1137);function a(e){let{re:t,groups:r}=e;return(0,o.safeRouteMatcher)(e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,t]of Object.entries(r)){let r=o[t.pos];void 0!==r&&(t.repeat?i[e]=r.split("/").map(e=>a(e)):i[e]=a(r))}return i})}},1112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1137:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{safeCompile:function(){return i},safePathToRegexp:function(){return a},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return l}});let n=r(9509),o=r(2117);function a(e,t,r){if("string"!=typeof e)return(0,n.pathToRegexp)(e,t,r);let a=(0,o.hasAdjacentParameterIssues)(e),i=a?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,n.pathToRegexp)(i,t,r)}catch(i){if(!a)try{let a=(0,o.normalizeAdjacentParameters)(e);return(0,n.pathToRegexp)(a,t,r)}catch(e){}throw i}}function i(e,t){let r=(0,o.hasAdjacentParameterIssues)(e),a=r?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,n.compile)(a,t)}catch(a){if(!r)try{let r=(0,o.normalizeAdjacentParameters)(e);return(0,n.compile)(r,t)}catch(e){}throw a}}function u(e,t){let r=(0,n.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,o.stripParameterSeparators)(t.params)}}}function l(e){return t=>{let r=e(t);return!!r&&(0,o.stripParameterSeparators)(r)}}},1277:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},1291:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},1500:(e,t)=>{"use strict";function r(e,t,r,n,a){let i=e[t];if(a&&a.has(t)?i=a.get(t):Array.isArray(i)?i=i.map(e=>encodeURIComponent(e)):"string"==typeof i&&(i=encodeURIComponent(i)),!i){let a="oc"===r;if("c"===r||a)return a?{param:t,value:null,type:r,treeSegment:[t,"",r]}:{param:t,value:i=n.split("/").slice(1).flatMap(t=>{var r;let n=o(t);return null!=(r=e[n.key])?r:n.key}),type:r,treeSegment:[t,i.join("/"),r]}}return{param:t,value:i,treeSegment:[t,Array.isArray(i)?i.join("/"):i,r],type:r}}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PARAMETER_PATTERN:function(){return n},getDynamicParam:function(){return r},parseMatchedParameter:function(){return a},parseParameter:function(){return o}});let n=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function o(e){let t=e.match(n);return t?a(t[2]):a(e)}function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},1646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=n._(r(7918)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{req:t,res:r,err:n}=e;return{statusCode:r&&r.statusCode?r.statusCode:n?n.statusCode:404,hostname:window.location.hostname}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsxs)(o.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,o.jsxs)(o.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1775:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},1854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(4252)._(r(4232)),o=r(3258),a=n.default.createContext(o.imageConfigDefault)},1905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(2585);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},2117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return a},stripParameterSeparators:function(){return i}});let r="_NEXTSEP_";function n(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${r}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${r}`)}function a(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function i(e){let t={};for(let[n,o]of Object.entries(e))"string"==typeof o?t[n]=o.replace(RegExp(`^${r}`),""):Array.isArray(o)?t[n]=o.map(e=>"string"==typeof e?e.replace(RegExp(`^${r}`),""):e):t[n]=o;return t}},2129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(9239),o=r(840),a=r(1905),i=r(2560);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},2133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(4252),o=r(9011),a=r(718),i=n._(r(5358)),u=r(9266),l=r(8668),s=r(5402),c=r(9239),f=r(425);r(3309);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[{regexp:"^(?:\\/(_next\\/data\\/[^/]{1,}))?\\/api(?:\\/((?:[^\\/#\\?]+?)(?:\\/(?:[^\\/#\\?]+?))*))?(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$",originalSource:"/api/:path*"}],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Object.defineProperty(Error('Route name should start with a "/", got "'+_+'"'),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});var m=e.skipInterpolation?h:(0,l.isDynamicRoute)(_)?(0,a.interpolateAs)(f,h,d).result:_;let g=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(m,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+g+p,!0)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2326:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},2479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(4232),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},2560:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(840),o=r(321);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},2585:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},2712:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(4802),o=r(8668)},2860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(321);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},3004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8757),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},3250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(8365),o=r(7876),a=n._(r(4232)),i=r(9440),u=r(2712),l=r(7426),s=r(159);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e,t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},3258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},3309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return Z},APP_PATHS_MANIFEST:function(){return g},APP_PATH_ROUTES_MANIFEST:function(){return E},AdapterOutputType:function(){return a},BARREL_OPTIMIZATION_PREFIX:function(){return G},BLOCKED_PAGES:function(){return k},BUILD_ID_FILE:function(){return F},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return B},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return H},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return en},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return er},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return U},DEFAULT_RUNTIME_WEBPACK:function(){return ea},DEFAULT_SANS_SERIF_FONT:function(){return ec},DEFAULT_SERIF_FONT:function(){return es},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return M},DEV_CLIENT_PAGES_MANIFEST:function(){return w},DYNAMIC_CSS_MANIFEST:function(){return $},EDGE_RUNTIME_WEBPACK:function(){return ei},EDGE_UNSUPPORTED_NODE_APIS:function(){return e_},EXPORT_DETAIL:function(){return S},EXPORT_MARKER:function(){return O},FUNCTIONS_CONFIG_MANIFEST:function(){return P},IMAGES_MANIFEST:function(){return A},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return K},MIDDLEWARE_BUILD_MANIFEST:function(){return V},MIDDLEWARE_MANIFEST:function(){return C},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Y},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return W},NEXT_FONT_MANIFEST:function(){return R},PAGES_MANIFEST:function(){return _},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return f},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return T},REACT_LOADABLE_MANIFEST:function(){return L},ROUTES_MANIFEST:function(){return j},RSC_MODULE_TYPES:function(){return eh},SERVER_DIRECTORY:function(){return D},SERVER_FILES_MANIFEST:function(){return x},SERVER_PROPS_ID:function(){return el},SERVER_REFERENCE_MANIFEST:function(){return z},STATIC_PROPS_ID:function(){return eu},STATIC_STATUS_PAGES:function(){return ef},STRING_LITERAL_DROP_BUNDLE:function(){return X},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return v},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ed},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return N},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return I},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ep},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l},WEBPACK_STATS:function(){return m}});let n=r(4252)._(r(563)),o={client:"client",server:"server",edgeServer:"edge-server"};var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.PRERENDER="PRERENDER",e.STATIC_FILE="STATIC_FILE",e.MIDDLEWARE="MIDDLEWARE",e}({});let i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="/_not-found",l=""+u+"/page",s="phase-export",c="phase-production-build",f="phase-production-server",d="phase-development-server",p="phase-test",h="phase-info",_="pages-manifest.json",m="webpack-stats.json",g="app-paths-manifest.json",E="app-path-routes-manifest.json",y="build-manifest.json",b="app-build-manifest.json",P="functions-config-manifest.json",v="subresource-integrity-manifest",R="next-font-manifest",O="export-marker.json",S="export-detail.json",T="prerender-manifest.json",j="routes-manifest.json",A="images-manifest.json",x="required-server-files.json",w="_devPagesManifest.json",C="middleware-manifest.json",I="_clientMiddlewareManifest.json",N="client-build-manifest.json",M="_devMiddlewareManifest.json",L="react-loadable-manifest.json",D="server",U=["next.config.js","next.config.mjs","next.config.ts"],F="BUILD_ID",k=["/_document","/_app","/_error"],B="public",H="static",X="__NEXT_DROP_CLIENT_FILE__",W="__NEXT_BUILTIN_DOCUMENT__",G="__barrel_optimize__",q="client-reference-manifest",z="server-reference-manifest",V="middleware-build-manifest",Y="middleware-react-loadable-manifest",K="interception-route-rewrite-manifest",$="dynamic-css-manifest",J="main",Q=""+J+"-app",Z="app-pages-internals",ee="react-refresh",et="amp",er="webpack",en="polyfills",eo=Symbol(en),ea="webpack-runtime",ei="edge-runtime-webpack",eu="__N_SSG",el="__N_SSP",es={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ec={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ef=["/500"],ed=1,ep=6e3,eh={client:"client",server:"server"},e_=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],em=new Set([J,ee,et,Q]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3378:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},3428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(8804),o=r(6500);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(4252)._(r(4232)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},3824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(4252);let n=r(7876);r(4232);let o=r(6763);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let o=r.get(t);o||(o=t.map(e=>e.toLowerCase()),r.set(t,o));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),u=o.indexOf(i);return u<0?{pathname:e}:(n=t[u],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},4047:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},4252:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},4267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return V},matchesMiddleware:function(){return D}});let n=r(4252),o=r(8365),a=r(9239),i=r(425),u=r(7665),l=o._(r(6240)),s=r(8524),c=r(3847),f=n._(r(4622)),d=r(1033),p=r(8668),h=r(5402),_=r(1082),m=r(159),g=r(359);r(2133);let E=r(2585),y=r(9266),b=r(7535),P=r(9116),v=r(9011),R=r(2860),O=r(8004),S=r(2326),T=r(7136),j=r(2129),A=r(9328),x=r(5790),w=r(4316),C=r(1277),I=r(718),N=r(785),M=r(9308);function L(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,E.parsePath)(e.asPath),n=(0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,v.addBasePath)((0,y.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function U(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,o]=(0,O.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=U(n),o=o?U(o):o;let l=i?n:(0,v.addBasePath)(n),s=r?U((0,O.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,v.addBasePath)(s)}}function k(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get(M.MATCHED_PATH_HEADER);if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,y.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,T.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});t.pathname=f=(0,v.addBasePath)(r.pathname)}if(!i.includes(s)){let e=k(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:k((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,m.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,E.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,E.parsePath)(s),t=(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(s=null==e?void 0:e.method)?s:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=X(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let u=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?X(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[f]=Promise.resolve(e)),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:"HEAD"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,v.addBasePath)((0,y.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,o){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:u}=r(8076);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,i.getClientBuildManifest)())}catch(t){if(console.error(t),o)return!0;return q({url:(0,v.addBasePath)((0,y.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new u(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new u(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,f=!1;for(let{as:r,allowMatchCurrent:i}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),d=(0,v.addBasePath)((0,y.addLocale)(t,n||this.locale));if(i||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var u,l,s;for(let e of(c=c||!!(null==(u=this._bfl_s)?void 0:u.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!f&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&(null==(s=this._bfl_d)?void 0:s.contains(r))){f=!0;break}}}if(c||f){if(o)return!0;return q({url:(0,v.addBasePath)((0,y.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,O,S,T,j,w,N;let M,U;if(!(0,x.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===n._h;B||n.shallow||await this._bfl(r,void 0,n.locale);let X=B||n._shouldResolveHref||(0,E.parsePath)(t).pathname===(0,E.parsePath)(r).pathname,W={...this.state},G=!0!==this.isReady;this.isReady=!0;let z=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let Y=W.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,J={shallow:K};this._inFlightRoute&&this.clc&&(z||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,v.addBasePath)((0,y.addLocale)((0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,b.removeLocale)((0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Z=Y!==W.locale;if(!B&&this.onlyAHashChange(Q)&&!Z){W.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(Q);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[M,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,_.getRouteMatcher)((0,m.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await D({asPath:r,locale:W.locale,router:this});if(B&&eu&&(X=!1),X&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=k(et,M),ee.pathname!==et&&(et=ee.pathname,ee.pathname=(0,v.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,x.isLocalURL)(r))return q({url:r,router:this}),!1;en=(0,b.removeLocale)((0,P.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,m.getRouteRegex)(eo);el=(0,_.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,I.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,C.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Object.defineProperty(Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}B||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:W.locale,isPreview:W.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ei});if(B||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,R.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,v.addBasePath)((0,y.addLocale)(new URL(r,location.href).pathname,W.locale),!0);(0,R.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a)if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);else return q({url:a.destination,router:this}),new Promise(()=>{});let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=k(r.pathname,M);let{url:o,as:a}=F(this,t,t);return this.change(e,o,a,n)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}B&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)||null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(O=a.props)?void 0:O.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&W.route===(null!=(S=a.route)?S:eo),d=null!=(T=n.scroll)?T:!B&&!s,g=null!=o?o:d?{x:0,y:0}:null,E={...W,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(B&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(w=self.__NEXT_DATA__.props)||null==(j=w.pageProps)?void 0:j.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(E,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(B&&!g&&!G&&!Z&&(0,A.compareRouterStates)(E,this.state))){try{await this.set(E,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw B||V.events.emit("routeChangeError",a.error,Q,J),a.error;B||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:G()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),q({url:n,router:this}),L();console.error(e);try{let n,{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:m}=e,E=t;try{var y,b,v,R;let e=this.components[E];if(u.shallow&&e&&this.route===E)return e;let t=z({route:E,router:this});f&&(e=void 0);let l=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:m?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},T=h&&!_?null:await B({fetchData:()=>W(O),asPath:m?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(T&&("/_error"===r||"/404"===r)&&(T.effect=void 0),h&&(T?T.json=self.__NEXT_DATA__.props:T={json:self.__NEXT_DATA__.props}),t(),(null==T||null==(y=T.effect)?void 0:y.type)==="redirect-internal"||(null==T||null==(b=T.effect)?void 0:b.type)==="redirect-external")return T.effect;if((null==T||null==(v=T.effect)?void 0:v.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(T.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(E=t,r=T.effect.resolvedHref,n={...n,...T.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(T.effect.parsedAs.pathname,this.locales).pathname),e=this.components[E],u.shallow&&e&&this.route===E&&!f))return{...e,route:E}}if((0,S.isAPIRoute)(E))return q({url:o,router:this}),new Promise(()=>{});let j=l||await this.fetchComponent(E).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),A=null==T||null==(R=T.response)?void 0:R.headers.get("x-middleware-skip"),x=j.__N_SSG||j.__N_SSP;A&&(null==T?void 0:T.dataHref)&&delete this.sdc[T.dataHref];let{props:w,cacheKey:C}=await this._getData(async()=>{if(x){if((null==T?void 0:T.json)&&!A)return{cacheKey:T.cacheKey,props:T.json};let e=(null==T?void 0:T.dataHref)?T.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&O.dataHref&&C&&delete this.sdc[C],this.isPreview||!j.__N_SSG||h||W(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),w.pageProps=Object.assign({},w.pageProps),j.props=w,j.route=E,j.query=n,j.resolvedAs=i,this.components[E]=j,j}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,N.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,w.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await D({asPath:t,locale:f,router:this});n.pathname=k(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,_.getRouteMatcher)((0,m.getRouteRegex)(n.pathname))((0,E.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let y=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==y?void 0:y.effect.type)==="rewrite"&&(n.pathname=y.effect.resolvedHref,i=y.effect.resolvedHref,u={...u,...y.effect.parsedAs.query},c=y.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==y?void 0:y.effect.type)==="redirect-external")return;let b=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&W({dataHref:(null==y?void 0:y.json)?null==y?void 0:y.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:o,App:i,wrapApp:u,Component:l,err:s,subscription:c,isFallback:f,locale:_,locales:m,defaultLocale:E,domainLocales:y,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,v.addBasePath)(this.asPath)||l!==(0,v.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let P=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:l,initial:!0,props:n,err:s,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=V.events,this.pageLoader=o;let R=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!R&&!self.location.search),this.state={route:P,pathname:e,query:t,asPath:R?e:r,isPreview:!!b,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),o,n),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},4316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return a},getBotType:function(){return l},isBot:function(){return u}});let n=r(2974),o=/Googlebot(?!-)|Googlebot$/i,a=n.HTML_LIMITED_BOT_UA_RE.source;function i(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function u(e){return o.test(e)||i(e)}function l(e){return o.test(e)?"dom":i(e)?"html":void 0}},4324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},4387:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext(null)},4622:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},4802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(r.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(n)if(i){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,r),this.restSlugName=r,o="[...]"}else{if(i)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;n<e.length;n++){let a=t(e[n]);r[a]=n,o[n]=a}return n(o).map(t=>e[r[t]])}},4933:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",i="__DEFAULT__"},4968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(9239),o=r(2585),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=r(6763),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e)if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},5139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=r(1033);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5358:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},5364:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(5861)},5402:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(1033),o=r(7825);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:u,searchParams:l,search:s,hash:c,href:f,origin:d}=new URL(e,i);if(d!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:u,query:r?(0,o.searchParamsToUrlQuery)(l):void 0,search:s,hash:c,href:f.slice(d.length),slashes:void 0}}},5790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(1033),o=r(2860);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},5861:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?l=n.concat(l):c=-1,l.length&&d())}function d(){if(!s){var e=u(f);s=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||s||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,n),i=!1}finally{i&&delete r[e]}return a.exports}n.ab="//",e.exports=n(229)}()},6175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3021),r(7647);let n=r(6450);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(7891);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},6336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},6450:(e,t,r)=>{"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let _=r(8365);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return X},hydrate:function(){return el},initialize:function(){return z},router:function(){return n},version:function(){return H}});let m=r(4252),g=r(7876);r(1291);let E=m._(r(4232)),y=m._(r(8944)),b=r(4324),P=m._(r(4622)),v=r(4387),R=r(785),O=r(8668),S=r(7825),T=r(3378),j=r(1033),A=r(7311),x=m._(r(7962)),w=m._(r(2155)),C=r(5025),I=r(6763),N=r(6240),M=r(1854),L=r(9116),D=r(2860),U=r(3669),F=r(3250),k=r(9440),B=r(9452);r(9272),r(3428);let H="15.5.18",X=(0,P.default)(),W=e=>[].slice.call(e),G=!1;class q extends E.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search||G)||o.props&&o.props.__N_SSG&&(location.search||G))&&n.replace(n.pathname+"?"+String((0,S.assign)((0,S.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!G}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function z(e){void 0===e&&(e={}),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,T.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,j.getURL)(),(0,D.hasBasePath)(a)&&(a=(0,L.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(7665);e(o.scriptLoader)}i=new w.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,x.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function V(e,t){return(0,g.jsx)(e,{...t})}function Y(e){var t;let{children:r}=e,o=E.default.useMemo(()=>(0,F.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(q,{fn:e=>$({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(U.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(k.SearchParamsContext.Provider,{value:(0,F.adaptForSearchParams)(n),children:(0,g.jsx)(F.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(k.PathParamsContext.Provider,{value:(0,F.adaptForPathParams)(n),children:(0,g.jsx)(v.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,g.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(M.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let K=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(Y,{children:V(e,r)})};function $(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>_._(r(1646))).then(n=>Promise.resolve().then(()=>_._(r(5139))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=K(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,j.loadGetInitialProps)(t,f)).then(t=>ei({...e,err:u,Component:l,styleSheets:s,props:t}))})}function J(e){let{callback:t}=e;return E.default.useLayoutEffect(()=>t(),[t]),null}let Q={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},Z={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},ee=null,et=!0;function er(){[Q.beforeRender,Q.afterHydrate,Q.afterRender,Q.routeChange].forEach(e=>performance.clearMarks(e))}function en(){j.ST&&(performance.mark(Q.afterHydrate),performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(Z.beforeHydration,Q.navigationStart,Q.beforeRender),performance.measure(Z.hydration,Q.beforeRender,Q.afterHydrate)),d&&performance.getEntriesByName(Z.hydration).forEach(d),er())}function eo(){if(!j.ST)return;performance.mark(Q.afterRender);let e=performance.getEntriesByName(Q.routeChange,"mark");e.length&&(performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(Z.routeChangeToRender,e[0].name,Q.beforeRender),performance.measure(Z.render,Q.beforeRender,Q.afterRender),d&&(performance.getEntriesByName(Z.render).forEach(d),performance.getEntriesByName(Z.routeChangeToRender).forEach(d))),er(),[Z.routeChangeToRender,Z.render].forEach(e=>performance.clearMeasures(e)))}function ea(e){let{callbacks:t,children:r}=e;return E.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function ei(e){let t,r,{App:o,Component:a,props:i,err:l}=e,f="initial"in e?void 0:e.styleSheets;a=a||s.Component;let d={...i=i||s.props,Component:a,err:l,router:n};s=d;let p=!1,h=new Promise((e,t)=>{c&&c(),r=()=>{c=null,e()},c=()=>{p=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function _(){r()}!function(){if(!f)return;let e=new Set(W(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");f.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(J,{callback:function(){if(f&&!p){let e=new Set(f.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n<r.length;++n)e.has(r[n])?t[n].removeAttribute("media"):t[n].setAttribute("media","x");let n=document.querySelector("noscript[data-n-css]");n&&f.forEach(e=>{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,R.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(Y,{children:[V(o,d),(0,g.jsx)(A.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});var b=u;j.ST&&performance.mark(Q.beforeRender);let P=(t=et?en:eo,(0,g.jsx)(ea,{callbacks:[t,_],children:m}));return ee?(0,E.default.startTransition)(()=>{ee.render(P)}):(ee=y.default.hydrateRoot(b,P,{onRecoverableError:B.onRecoverableError}),et=!1),h}async function eu(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await $(e);try{await ei(e)}catch(r){let t=(0,N.getProperError)(r);if(t.cancelled)throw t;await $({...e,err:t})}}async function el(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,N.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,I.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:K,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>eu(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),G=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),eu(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},6500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return i}});let n=r(3666),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,i=t.slice(2,-2).join(";"),u=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof i&&!isNaN(u)&&u in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(4252),o=n._(r(4232)),a=n._(r(4267)),i=r(4387),u=n._(r(6240)),l=n._(r(3824)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return d()[e](...r)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o="on"+e.charAt(0).toUpperCase()+e.substring(1);if(s[o])try{s[o](...r)}catch(e){console.error("Error when running the Router event: "+o),console.error((0,u.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=s;function h(){let e=o.default.useContext(i.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function _(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.router=new a.default(...t),s.readyCallbacks.forEach(e=>e()),s.readyCallbacks=[],s.router}function m(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return e[r](...n)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(3847),o=r(8091),a=r(321);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},7233:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(4232),o=r(8477),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7426:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},7535:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(2585),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7647:(e,t,r)=>{"use strict";e.exports=r(9393)},7665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return E},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let n=r(4252),o=r(8365),a=r(7876),i=n._(r(8477)),u=o._(r(4232)),l=r(4324),s=r(348),c=r(1112),f=r(8170),d=new Map,p=new Set,h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:u="",strategy:l="afterInteractive",onError:c,stylesheets:f}=e,h=r||t;if(h&&p.has(h))return;if(d.has(t)){p.add(h),d.get(t).then(n,c);return}let _=()=>{o&&o(),p.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(m.innerHTML=a.__html||"",_()):u?(m.textContent="string"==typeof u?u:Array.isArray(u)?u.join(""):"",_()):t&&(m.src=t,d.set(t,g)),(0,s.setAttributesFromProps)(m,e),"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),f&&(e=>{if(i.default.preinit)return e.forEach(e=>{i.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(f),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:d,stylesheets:_,...m}=e,{updateScripts:g,scripts:E,getIsSsr:y,appDir:b,nonce:P}=(0,u.useContext)(l.HeadManagerContext);P=m.nonce||P;let v=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;v.current||(o&&e&&p.has(e)&&o(),v.current=!0)},[o,t,r]);let R=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!R.current){if("afterInteractive"===s)h(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}));R.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(E[s]=(E[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:d,...m,nonce:P}]),g(E)):y&&y()?p.add(t||r):y&&!y()&&h({...e,nonce:P})),b){if(_&&_.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))+")"}});else return i.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:P,crossOrigin:m.crossOrigin}:{as:"script",nonce:P,crossOrigin:m.crossOrigin}),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,f.htmlEscapeJsonString)(JSON.stringify([r,{...m,id:t}]))+")"}});"afterInteractive"===s&&r&&i.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:P,crossOrigin:m.crossOrigin}:{as:"script",nonce:P,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let E=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7825:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},7891:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},7918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return _},defaultHead:function(){return f}});let n=r(4252),o=r(8365),a=r(7876),i=o._(r(4232)),u=n._(r(2479)),l=r(5066),s=r(4324),c=r(8438);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(6456);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!i)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}return a}}()).reverse().map((e,t)=>{let r=e.key||t;return i.default.cloneElement(e,{key:r})})}let _=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},isEqualNode:function(){return o}});let n=r(348);function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function a(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"])if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;else e.props.href=e.props["data-href"],e.props["data-href"]=void 0;let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,a="";if(r){let{children:e}=r.props;a="string"==typeof e?e:Array.isArray(e)?e.join(""):""}a!==document.title&&(document.title=a),["meta","base","link","style","script"].forEach(e=>{!function(e,t){let r=document.querySelector("head");if(!r)return;let a=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&a.add(e)}let i=[];for(let e=0;e<t.length;e++){let r=function(e){let{type:t,props:r}=e,o=document.createElement(t);(0,n.setAttributesFromProps)(o,r);let{children:a,dangerouslySetInnerHTML:i}=r;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),o}(t[e]);r.setAttribute("data-next-head","");let u=!0;for(let e of a)if(o(e,r)){a.delete(e),u=!1;break}u&&i.push(r)}for(let e of a){var u;null==(u=e.parentNode)||u.removeChild(e)}for(let e of i)"meta"===e.tagName.toLowerCase()&&null!==e.getAttribute("charset")&&r.prepend(e),r.appendChild(e)}(e,t[e]||[])})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});let n=r(7825),o=r(359),a=r(1277),i=r(1033),u=r(4968),l=r(5790),s=r(2712),c=r(718),f=r(159),d=r(1082);function p(e,t,r){let p,h="string"==typeof t?t:(0,o.formatWithValidation)(t),_=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),m=_?h.slice(_[0].length):h;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(m);h=(_?_[0]:"")+t}if(!(0,l.isLocalURL)(h))return r?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,s.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,f.getRouteRegex)(e.pathname);(0,d.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{let e=new URL(h,p);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8076:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},8091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(321);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},8170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return i}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},a=/[&"'<>]/g;function i(e){return e.replace(n,e=>r[e])}function u(e){return e.replace(a,e=>o[e])}},8365:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})},8438:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},8524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(2712),o=r(342);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},8668:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let n=r(781),o=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function i(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):o.test(e)}},8757:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},8804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return u},getAccessFallbackHTTPStatus:function(){return i},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function i(e){return Number(e.digest.split(";")[1])}function u(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(840),o=r(4968);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9116:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(2860),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9239:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},9266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(4968);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9272:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(4252)._(r(4622));class o{end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return M},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return I},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return Y},GSSP_COMPONENT_MEMBER_ERROR:function(){return J},GSSP_NO_RETURNED_VALUE:function(){return K},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return j},INSTRUMENTATION_HOOK_FILENAME:function(){return w},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return u},MIDDLEWARE_FILENAME:function(){return A},MIDDLEWARE_LOCATION_REGEXP:function(){return x},NEXT_BODY_SUFFIX:function(){return g},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return E},NEXT_CACHE_TAG_MAX_ITEMS:function(){return v},NEXT_CACHE_TAG_MAX_LENGTH:function(){return R},NEXT_DATA_SUFFIX:function(){return _},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return i},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return P},NON_STANDARD_NODE_ENV:function(){return Q},PAGES_DIR_ALIAS:function(){return C},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return s},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return X},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return H},RSC_ACTION_ENCRYPTION_ALIAS:function(){return B},RSC_ACTION_PROXY_ALIAS:function(){return U},RSC_ACTION_VALIDATE_ALIAS:function(){return D},RSC_CACHE_WRAPPER_ALIAS:function(){return F},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return k},RSC_MOD_REF_PROXY_ALIAS:function(){return L},RSC_PREFETCH_SUFFIX:function(){return c},RSC_SEGMENTS_DIR_SUFFIX:function(){return f},RSC_SEGMENT_SUFFIX:function(){return d},RSC_SUFFIX:function(){return p},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return G},SERVER_PROPS_SSG_CONFLICT:function(){return q},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Z},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return W},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return z},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return $},WEBPACK_LAYERS:function(){return en},WEBPACK_RESOURCE_QUERIES:function(){return eo}});let r="text/plain",n="text/html; charset=utf-8",o="application/json; charset=utf-8",a="nxtP",i="nxtI",u="x-matched-path",l="x-prerender-revalidate",s="x-prerender-revalidate-if-generated",c=".prefetch.rsc",f=".segments",d=".segment.rsc",p=".rsc",h=".action",_=".json",m=".meta",g=".body",E="x-next-cache-tags",y="x-next-revalidated-tags",b="x-next-revalidate-tag-token",P="next-resume",v=128,R=256,O=1024,S="_N_T_",T=31536e3,j=0xfffffffe,A="middleware",x=`(?:src/)?${A}`,w="instrumentation",C="private-next-pages",I="private-dot-next",N="private-next-root-dir",M="private-next-app-dir",L="private-next-rsc-mod-ref-proxy",D="private-next-rsc-action-validate",U="private-next-rsc-server-reference",F="private-next-rsc-cache-wrapper",k="private-next-rsc-track-dynamic-import",B="private-next-rsc-action-encryption",H="private-next-rsc-action-client-wrapper",X="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",W="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",G="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",q="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",z="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Y="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",K="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",$="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",J="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Q='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Z="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},er={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},en={...er,GROUP:{builtinReact:[er.reactServerComponents,er.actionBrowser],serverOnly:[er.reactServerComponents,er.actionBrowser,er.instrument,er.middleware],neutralTarget:[er.apiNode,er.apiEdge],clientOnly:[er.serverSideRendering,er.appPagesBrowser],bundled:[er.reactServerComponents,er.actionBrowser,er.serverSideRendering,er.appPagesBrowser,er.shared,er.instrument,er.middleware],appPages:[er.reactServerComponents,er.serverSideRendering,er.appPagesBrowser,er.actionBrowser]}},eo={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},9328:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},9393:()=>{},9440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(4232),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},9452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRecoverableError:function(){return l},onRecoverableError:function(){return s}});let n=r(4252),o=r(6336),a=n._(r(6240)),i=r(3004),u=new WeakSet;function l(e){return u.has(e)}let s=e=>{let t=(0,a.default)(e)&&"cause"in e?e.cause:e;(0,o.isBailoutToCSRError)(t)||(0,i.reportGlobalError)(t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9509:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var o="",a=r+1;a<e.length;){var i=e.charCodeAt(a);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){o+=e[a++];continue}break}if(!o)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=a;continue}if("("===n){var u=1,l="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--u){a++;break}}else if("("===e[a]&&(u++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(u)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,i=t.delimiter,u=void 0===i?"/#?":i,l=[],s=0,c=0,f="",d=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var n=r[c],o=n.type,a=n.index;throw TypeError("Unexpected ".concat(o," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},_=function(e){for(var t=0;t<u.length;t++){var r=u[t];if(e.indexOf(r)>-1)return!0}return!1},m=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||_(r)?"[^".concat(o(u),"]+?"):"(?:(?!".concat(o(r),")[^").concat(o(u),"])+?")};c<r.length;){var g=d("CHAR"),E=d("NAME"),y=d("PATTERN");if(E||y){var b=g||"";-1===a.indexOf(b)&&(f+=b,b=""),f&&(l.push(f),f=""),l.push({name:E||s++,prefix:b,suffix:"",pattern:y||m(b),modifier:d("MODIFIER")||""});continue}var P=g||d("ESCAPED_CHAR");if(P){f+=P;continue}if(f&&(l.push(f),f=""),d("OPEN")){var b=h(),v=d("NAME")||"",R=d("PATTERN")||"",O=h();p("CLOSE"),l.push({name:v||(R?s++:""),pattern:v&&!R?m(b):R,prefix:b,suffix:O,modifier:d("MODIFIER")||""});continue}p("END")}return l}function r(e,t){void 0===t&&(t={});var r=a(t),n=t.encode,o=void 0===n?function(e){return e}:n,i=t.validate,u=void 0===i||i,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var a=e[n];if("string"==typeof a){r+=a;continue}var i=t?t[a.name]:void 0,s="?"===a.modifier||"*"===a.modifier,c="*"===a.modifier||"+"===a.modifier;if(Array.isArray(i)){if(!c)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===i.length){if(s)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var f=0;f<i.length;f++){var d=o(i[f],a);if(u&&!l[n].test(d))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));r+=a.prefix+d+a.suffix}continue}if("string"==typeof i||"number"==typeof i){var d=o(String(i),a);if(u&&!l[n].test(d))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(d,'"'));r+=a.prefix+d+a.suffix;continue}if(!s){var p=c?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(p))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,o=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],i=n.index,u=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?u[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return o(e,r)}):u[r.name]=o(n[e],r)}}(l);return{path:a,index:i,params:u}}}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function i(e,t,r){void 0===r&&(r={});for(var n=r.strict,i=void 0!==n&&n,u=r.start,l=r.end,s=r.encode,c=void 0===s?function(e){return e}:s,f=r.delimiter,d=r.endsWith,p="[".concat(o(void 0===d?"":d),"]|$"),h="[".concat(o(void 0===f?"/#?":f),"]"),_=void 0===u||u?"^":"",m=0;m<e.length;m++){var g=e[m];if("string"==typeof g)_+=o(c(g));else{var E=o(c(g.prefix)),y=o(c(g.suffix));if(g.pattern)if(t&&t.push(g),E||y)if("+"===g.modifier||"*"===g.modifier){var b="*"===g.modifier?"?":"";_+="(?:".concat(E,"((?:").concat(g.pattern,")(?:").concat(y).concat(E,"(?:").concat(g.pattern,"))*)").concat(y,")").concat(b)}else _+="(?:".concat(E,"(").concat(g.pattern,")").concat(y,")").concat(g.modifier);else{if("+"===g.modifier||"*"===g.modifier)throw TypeError('Can not repeat "'.concat(g.name,'" without a prefix and suffix'));_+="(".concat(g.pattern,")").concat(g.modifier)}else _+="(?:".concat(E).concat(y,")").concat(g.modifier)}}if(void 0===l||l)i||(_+="".concat(h,"?")),_+=r.endsWith?"(?=".concat(p,")"):"$";else{var P=e[e.length-1],v="string"==typeof P?h.indexOf(P[P.length-1])>-1:void 0===P;i||(_+="(?:".concat(h,"(?=").concat(p,"))?")),v||(_+="(?=".concat(h,"|").concat(p,")"))}return new RegExp(_,a(r))}function u(t,r,n){if(t instanceof RegExp){var o;if(!r)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,c=l.exec(t.source);c;)r.push({name:c[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(t.source);return t}return Array.isArray(t)?(o=t.map(function(e){return u(e,r,n).source}),new RegExp("(?:".concat(o.join("|"),")"),a(n))):i(e(t,n),r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,n){return r(e(t,n),n)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return n(u(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=i,t.pathToRegexp=u})(),e.exports=t})()}},e=>{e.O(0,[593],()=>e(e.s=6175)),_N_E=e.O()}]);
|