interview-widget 3.0.5 → 3.0.6
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/dist/widget.es.js +32074 -14795
- package/dist/widget.umd.js +245 -16
- package/package.json +1 -1
package/dist/widget.umd.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
(function(Re,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],o):(Re=typeof globalThis<"u"?globalThis:Re||self,o(Re.InterviewWidget={},Re.jsxRuntime,Re.React,Re.ReactDOM))})(this,function(Re,o,y,W2){"use strict";var a7=Object.defineProperty;var i7=(Re,o,y)=>o in Re?a7(Re,o,{enumerable:!0,configurable:!0,writable:!0,value:y}):Re[o]=y;var Kt=(Re,o,y)=>i7(Re,typeof o!="symbol"?o+"":o,y);var Vc=typeof document<"u"?document.currentScript:null;const qc={},Sn={api:{baseUrl:"/api",retryConfig:{attempts:3,backoff:"exponential",baseDelay:1e3}},ui:{baseColor:"#3B82F6",borderRadius:"8px"},interview:{allow_answer_editing:!0,timers:{thinkingDuration:30,answeringDuration:120,editingDuration:30},stt:{provider:"groq",model:"whisper-large-v3-turbo",language:"en"},tts:{provider:"piper"},proctoring:{enabled:!0,gazeAnalysisEnabled:!0}}},Fc="iw-storage";function Fm(){if(!(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Vc&&Vc.tagName.toUpperCase()==="SCRIPT"&&Vc.src||new URL("widget.umd.js",document.baseURI).href}<"u"&&(qc!=null&&qc.VITE_IW_SECRET)))return typeof process<"u"&&process.env.NEXT_PUBLIC_IW_SECRET?process.env.NEXT_PUBLIC_IW_SECRET:typeof window<"u"&&window.__IW_SECRET__?window.__IW_SECRET__:"proctoring-data-seed"}const R2=Fm(),_s=30,Ym={SCREENSHOT:"screenshot"},Yc="AES-GCM",Xc=12;async function P2(e){const n=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",n);return crypto.subtle.importKey("raw",a,Yc,!1,["encrypt","decrypt"])}function Xm(){return crypto.getRandomValues(new Uint8Array(Xc))}async function Qm(e,t="default-seed"){try{const n=typeof e=="string"?e:JSON.stringify(e),i=new TextEncoder().encode(n),l=await P2(t),r=Xm(),s=await crypto.subtle.encrypt({name:Yc,iv:r},l,i),c=new Uint8Array(r.length+s.byteLength);return c.set(new Uint8Array(r),0),c.set(new Uint8Array(s),r.length),btoa(String.fromCharCode(...Array.from(c)))}catch(n){throw console.error("Encryption failed:",n),new Error("Failed to encrypt data")}}async function Km(e,t="default-seed"){try{const n=atob(e),a=new Uint8Array(n.length);for(let u=0;u<n.length;u++)a[u]=n.charCodeAt(u);const i=a.slice(0,Xc),l=a.slice(Xc),r=await P2(t),s=await crypto.subtle.decrypt({name:Yc,iv:i},r,l);return new TextDecoder().decode(s)}catch(n){throw console.error("Decryption failed:",n),new Error("Failed to decrypt data")}}async function Zm(e,t="default-seed"){return Qm(e,t)}async function Im(e,t="default-seed"){const n=await Km(e,t);try{return JSON.parse(n)}catch{return n}}const Wl=y.createContext(null),Jm=async()=>{try{const e=sessionStorage.getItem(Fc);if(e){const n=(await Im(e,R2)).state;return{logViolations:(n==null?void 0:n.logViolations)||[],totalViolations:(n==null?void 0:n.totalViolations)||0,gazeViolationCounters:(n==null?void 0:n.gazeViolationCounters)||{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:(n==null?void 0:n.referenceSet)??!1,referenceRef:(n==null?void 0:n.referenceRef)??{x:.5,y:.5,noseX:.5,noseY:.5}}}}catch(e){console.error("Failed to load proctoring data from session storage:",e)}return{logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}},Rl=async e=>{try{const t=await Zm({state:e,version:0},R2);sessionStorage.setItem(Fc,t)}catch(t){console.error("Failed to save proctoring data to session storage:",t)}},Wm=({children:e})=>{const t=y.useRef({logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}),n=y.useRef(new Set);y.useEffect(()=>{Jm().then(d=>{t.current=d,a()})},[]);const a=y.useCallback(()=>{n.current.forEach(d=>d())},[]),i=y.useCallback(d=>(n.current.add(d),()=>{n.current.delete(d)}),[]),l=y.useCallback(()=>t.current,[]),r=y.useCallback(d=>{t.current={...t.current,logViolations:[...t.current.logViolations,d],totalViolations:t.current.totalViolations+1},Rl(t.current),a()},[a]),s=y.useCallback(d=>{const g={...t.current.gazeViolationCounters};d==="looking_away"&&(g.lookingAwayCount+=1),d==="no_face_detected"&&(g.noFaceDetectedCount+=1),d==="multiple_faces"&&(g.multipleFacesCount+=1),g.totalGazeViolations=g.lookingAwayCount+g.noFaceDetectedCount+g.multipleFacesCount,t.current={...t.current,gazeViolationCounters:g},Rl(t.current),a()},[a]),c=y.useCallback(()=>{t.current={...t.current,logViolations:[],totalViolations:0},Rl(t.current),a()},[a]),u=y.useCallback(()=>{t.current={...t.current,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0}},Rl(t.current),a()},[a]),f=y.useCallback((d,g)=>{t.current={...t.current,referenceSet:d,referenceRef:g},Rl(t.current),a()},[a]),h=y.useMemo(()=>({getState:l,addViolation:r,clearViolations:c,subscribe:i,incrementGazeViolation:s,clearGazeViolationCounters:u,setReferenceData:f}),[l,r,c,i,s,u,f]);return o.jsx(Wl.Provider,{value:h,children:e})},$2=()=>{const e=y.useContext(Wl);if(!e)throw new Error("useProctoringStore must be used within a ProctoringProvider");const t=y.useSyncExternalStore(e.subscribe,e.getState,e.getState);return{logViolations:t.logViolations,totalViolations:t.totalViolations,addViolation:e.addViolation,clearViolations:e.clearViolations,gazeViolationCounters:t.gazeViolationCounters,referenceSet:t.referenceSet,referenceRef:t.referenceRef,incrementGazeViolation:e.incrementGazeViolation,clearGazeViolationCounters:e.clearGazeViolationCounters,setReferenceData:e.setReferenceData}},Rm=()=>{const e=y.useContext(Wl);if(!e)throw new Error("useViolations must be used within a ProctoringProvider");return y.useSyncExternalStore(e.subscribe,()=>e.getState().logViolations,()=>e.getState().logViolations)},Pm=()=>{const e=y.useContext(Wl);if(!e)throw new Error("useTotalViolations must be used within a ProctoringProvider");return y.useSyncExternalStore(e.subscribe,()=>e.getState().totalViolations,()=>e.getState().totalViolations)},$m=()=>{const e=y.useContext(Wl);if(!e)throw new Error("useProctoringActions must be used within a ProctoringProvider");return{addViolation:e.addViolation,clearViolations:e.clearViolations}},e1=y.createContext(null);function Qc({config:e={},children:t}){var a,i,l,r;const n={api:{...Sn.api,...e.api,retryConfig:{...Sn.api.retryConfig,...(a=e.api)==null?void 0:a.retryConfig}},ui:{...Sn.ui,...e.ui},interview:{...Sn.interview,...e.interview,timers:{...Sn.interview.timers,...(i=e.interview)==null?void 0:i.timers},stt:{...Sn.interview.stt,...(l=e.interview)==null?void 0:l.stt},tts:{...Sn.interview.tts,...(r=e.interview)==null?void 0:r.tts}}};return o.jsx(e1.Provider,{value:n,children:o.jsx(Wm,{children:t})})}function xs(){const e=y.useContext(e1);if(!e)throw new Error("useInterviewConfig must be used within an InterviewWidgetProvider. Wrap your component tree with <InterviewWidgetProvider config={...}>");return e}function t1(){return xs().api||Sn.api}function Pl(){return xs().ui||Sn.ui}function Kc(){return xs().interview||Sn.interview}function e6(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function t6(e,t,n){return"#"+[e,t,n].map(a=>{const i=Math.round(a).toString(16);return i.length===1?"0"+i:i}).join("")}function n6(e,t){const n=e6(e);if(!n)return e;const a=n.r+(255-n.r)*t,i=n.g+(255-n.g)*t,l=n.b+(255-n.b)*t;return t6(a,i,l)}function a6(e){return new Promise(t=>setTimeout(t,e))}function i6(e){return`linear-gradient(to left, ${n6(e,.4)}, ${e})`}const l6=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);function r6(e){try{const t=e.split(".");if(t.length!==3||!t[1])throw new Error("Invalid JWT token");const a=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=a.padEnd(a.length+(4-a.length%4)%4,"="),l=atob(i);return JSON.parse(l)}catch(t){return console.error("Error decoding JWT:",t),null}}const n1=e=>{var t;return!e||typeof e!="string"?"":(t=e.charAt(0))==null?void 0:t.toUpperCase()},Zc=e=>{const t=Math.max(0,Math.floor(e)),n=Math.floor(t/60).toString().padStart(2,"0"),a=(t%60).toString().padStart(2,"0");return`${n}:${a}`},$l=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),o.jsx("path",{d:"M12 9v4"}),o.jsx("path",{d:"M12 17h.01"})]}),s6=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-bolt-icon prefix__lucide-bolt",...e,children:[o.jsx("path",{d:"M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"}),o.jsx("circle",{cx:12,cy:12,r:4})]}),o6=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-camera-off-icon prefix__lucide-camera-off",...e,children:[o.jsx("path",{d:"M14.564 14.558a3 3 0 11-4.122-4.121M2 2l20 20"}),o.jsx("path",{d:"M20 20H4a2 2 0 01-2-2V9a2 2 0 012-2h1.997a2 2 0 00.819-.175M9.695 4.024A2 2 0 0110.004 4h3.993a2 2 0 011.76 1.05l.486.9A2 2 0 0018.003 7H20a2 2 0 012 2v7.344"})]}),As=e=>o.jsx("svg",{width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M0.75 5.5C0.75 5.5 2.35 6.4125 3.15 7.75C3.15 7.75 5.55 2.5 8.75 0.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),a1=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M12 2a10 10 0 0 1 7.38 16.75"}),o.jsx("path",{d:"M12 6v6l4 2"}),o.jsx("path",{d:"M2.5 8.875a10 10 0 0 0-.5 3"}),o.jsx("path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4"}),o.jsx("path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857"}),o.jsx("path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"})]}),c6=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M12 6v6l4 2"}),o.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),i1=e=>o.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",...e,children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),l1=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),u6=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),o.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),o.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),o.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),f6=e=>o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M2.66797 2H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M3.66797 2V3.35359C3.66797 4.18151 4.05252 4.96247 4.70874 5.46726L8.0013 8L11.2938 5.46726C11.9501 4.96247 12.3346 4.18151 12.3346 3.35359V2",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M3.66797 14V12.6464C3.66797 11.8185 4.05252 11.0375 4.70874 10.5327L8.0013 8L11.2938 10.5327C11.9501 11.0375 12.3346 11.8185 12.3346 12.6464V14",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M2.66797 14H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ic=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),o.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),o.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),o.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),r1=({className:e,...t})=>o.jsx("div",{children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`iw-animate-spin ${e}`,...t,children:[o.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.jsx("path",{d:"M12 6l0 -3"}),o.jsx("path",{d:"M16.25 7.75l2.15 -2.15"}),o.jsx("path",{d:"M18 12l3 0"}),o.jsx("path",{d:"M16.25 16.25l2.15 2.15"}),o.jsx("path",{d:"M12 18l0 3"}),o.jsx("path",{d:"M7.75 16.25l-2.15 2.15"}),o.jsx("path",{d:"M6 12l-3 0"}),o.jsx("path",{d:"M7.75 7.75l-2.15 -2.15"})]})}),d6=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M17 7V11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7Z",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22M12 22H15M12 22H9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),h6=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M2 2L22 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M4 11C4 15.4183 7.58172 19 12 19M12 19C13.9545 19 15.7454 18.2991 17.1348 17.1348M12 19V22M12 22H15M12 22H9M20 11C20 12.6514 19.4996 14.1859 18.6422 15.4603",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M7 6.98V11C7 13.7614 9.23858 16 12 16C13.1354 16 14.1647 15.6096 15.004 14.972M16.4387 13.244C16.7973 12.5545 17 11.8309 17 11V6.98C17 4.21858 14.7614 2 12 2C10.1312 2 8.53009 2.96527 7.672 4.484",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"})]}),g6=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),o.jsx("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),o.jsx("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]}),w6=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),o.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),o.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),o.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),m6=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),o.jsx("path",{d:"m9 12 2 2 4-4"})]}),y6=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-target-icon prefix__lucide-target",...e,children:[o.jsx("circle",{cx:12,cy:12,r:10}),o.jsx("circle",{cx:12,cy:12,r:6}),o.jsx("circle",{cx:12,cy:12,r:2})]}),p6=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-users-icon prefix__lucide-users",...e,children:[o.jsx("path",{d:"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M16 3.128a4 4 0 010 7.744M22 21v-2a4 4 0 00-3-3.87"}),o.jsx("circle",{cx:9,cy:7,r:4})]}),v6=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M11 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),b6=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M2.00195 2L21.9773 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M16.8517 16.8668C16.7225 17.8052 16.4666 18.4659 15.9596 18.9735C14.9357 19.9987 13.2878 19.9987 9.99206 19.9987H8.99329C5.69755 19.9987 4.04967 19.9987 3.02581 18.9735C2.00195 17.9484 2.00195 16.2985 2.00195 12.9987V10.9987C2.00195 7.69885 2.00195 6.04893 3.02581 5.0238C3.36833 4.68086 3.78068 4.45265 4.3012 4.30078",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M8.23633 4.00052C8.47821 4 8.73001 4 8.99223 4H9.99099C13.2868 4 14.9347 4 15.9585 5.02513C16.9823 6.05025 16.9823 7.70017 16.9823 11V12.7574M16.9823 9.23142L19.3019 7.52913C20.773 6.54073 21.449 7.17196 21.6675 7.64847C22.1192 8.92813 21.9769 11.3936 21.9769 14.5417C21.8704 16.555 21.5953 16.7719 21.3138 16.9939L21.3108 16.9962",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),er={FACE_DETECTED:"face_detected",NO_FACE:"no_face_detected",MULTIPLE_FACES:"multiple_faces",LOOKING_AWAY:"looking_away",CAMERA_ERROR:"camera_error"},s1={[er.FACE_DETECTED]:{icon:l1,iconColor:"iw-text-green-600",iconBg:"iw-bg-green-50",iconBorder:"iw-border-green-100",title:"All Good",subtitle:"Everything looks normal",description:"Your gaze is properly focused on the screen. Continue with your interview.",buttonText:"Continue"},[er.NO_FACE]:{icon:o6,iconColor:"iw-text-orange-600",iconBg:"iw-bg-orange-50",iconBorder:"iw-border-orange-100",title:"Face Not Detected",subtitle:"We can't see you in the camera",description:"Please ensure you're positioned properly in front of the camera and that your face is clearly visible.",buttonText:"I Understood"},[er.MULTIPLE_FACES]:{icon:p6,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Multiple People Detected",subtitle:"More than one person is visible",description:"For interview integrity, please ensure you are alone in the room and only your face is visible to the camera.",buttonText:"I Understood"},[er.LOOKING_AWAY]:{icon:y6,iconColor:"iw-text-amber-600",iconBg:"iw-bg-amber-50",iconBorder:"iw-border-amber-200/75",title:"Stay Focused",subtitle:"We noticed you looked away from the screen",description:"To ensure interview integrity, please keep your attention on the screen throughout the session.",buttonText:"I Understood"},[er.CAMERA_ERROR]:{icon:$l,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Camera Issue",subtitle:"There's a problem with your camera",description:"Please check your camera connection and permissions, then refresh the page to continue.",buttonText:"I Understood"}};function S6(e){var t;if(!navigator.onLine)return{type:"network",message:"No internet connection",retryable:!0,userMessage:"Please check your internet connection and try again."};if(e.name==="AbortError"||(t=e.message)!=null&&t.includes("timeout"))return{type:"timeout",message:"Request timed out",retryable:!0,userMessage:"The request is taking longer than expected. Please try again."};if(e.status){const{status:n}=e;if(n===401||n===403)return{type:"auth",status:n,message:"Authentication failed",retryable:!1,userMessage:"Your session has expired. Please refresh the page."};if(n===429)return{type:"rate-limit",status:n,message:"Too many requests",retryable:!0,userMessage:"Please wait a moment before trying again."};if(n>=500)return{type:"server",status:n,message:`Server error: ${n}`,retryable:!0,userMessage:"Our servers are experiencing issues. Please try again in a few moments."};if(n>=400)return{type:"client",status:n,message:`Client error: ${n}`,retryable:!1,userMessage:"There was an issue with your request. Please check your input."}}return{type:"unknown",message:e.message||"Unknown error occurred",retryable:!0,userMessage:"Something unexpected happened. Please try again.",originalError:e}}async function oa(e,t={},n={attempts:3,backoff:"exponential",baseDelay:1e3,maxDelay:1e4,jitter:!0}){let a;for(let i=1;i<=n.attempts;i++)try{const l=new AbortController,r=setTimeout(()=>l.abort(),6e4),s=await fetch(e,{...t,signal:l.signal});if(clearTimeout(r),s.status>=400&&s.status<500&&s.status!==429)return s;if(!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);return s}catch(l){a=l;const r=S6(l);if(!r.retryable||i===n.attempts)throw r;const s=E6(i,n);console.warn(`API request failed (attempt ${i}/${n.attempts}), retrying in ${s}ms:`,r.message),await new Promise(c=>setTimeout(c,s))}throw a}function E6(e,t){let n;return t.backoff==="exponential"?n=t.baseDelay*Math.pow(2,e-1):n=t.baseDelay,n=Math.min(n,t.maxDelay),t.jitter&&(n=n*(.5+Math.random()*.5)),Math.round(n)}const ca={v2:"/v2"},ua={GENERATE_QUESTION:e=>`${ca.v2}/interviews/${e}/next-question`,SCREENSHOT_UPLOAD:e=>`${ca.v2}/interviews/${e}/assets/upload-url`,CONFIRM_UPLOAD:e=>`${ca.v2}/interviews/assets/${e}/confirm`,TRANSCRIBE_ANSWER:e=>`${ca.v2}/interviews/${e}/transcribe-answer`,SUBMIT_ANSWER:e=>`${ca.v2}/interviews/${e}/submit-answer`,EXIT:e=>`${ca.v2}/interviews/${e}/exit`,CONFIG:e=>`${ca.v2}/interviews/${e}/config`,TRANSCRIPTION:e=>`${ca.v2}/interviews/${e}/transcript`};class o1{constructor(t={}){Kt(this,"config");this.config=t}updateConfig(t){this.config={...this.config,...t}}getHeaders(){var n;const t={"Content-Type":"application/json"};return(n=this.config)!=null&&n.authToken&&(t.Authorization=`Bearer ${this.config.authToken}`),t}getBaseUrl(){var t;return((t=this.config)==null?void 0:t.baseUrl)||"/api"}async generateQuestion({interviewId:t,isInterviewDone:n=!1}){const a=await oa(`${this.getBaseUrl()}${ua.GENERATE_QUESTION(t)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({interview_id:t,is_interview_done:n})});if(!a.ok)throw new Error(`Failed to get questions: ${a.status}`);return await a.json()}async submitAnswer({interviewId:t,qnaId:n,answer:a}){const i=await oa(`${this.getBaseUrl()}${ua.SUBMIT_ANSWER(t)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({qna_id:n,answer_text:a})});if(!i.ok)throw new Error(`Failed to submit answer: ${i.status}`);return await i.json()}async exitInterview(t){const n=await oa(`${this.getBaseUrl()}${ua.EXIT(t)}`,{method:"POST",headers:this.getHeaders()});if(!n.ok)throw new Error(`Failed to exit interview: ${n.status}`)}async getInterviewConfig(t){const n=await oa(`${this.getBaseUrl()}${ua.CONFIG(t)}`,{method:"GET",headers:this.getHeaders()});if(!n.ok)throw new Error(`Failed to get interview config: ${n.status}`);return await n.json()}async requestScreenshotUploadUrl(t,n=`screenshot-${Date.now()}.jpeg`){const a=await oa(`${this.getBaseUrl()}${ua.SCREENSHOT_UPLOAD(t)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({filename:n,mime_type:"image/jpeg",asset_type:Ym.SCREENSHOT})});if(!a.ok)throw new Error(`Failed to request screenshot upload URL: ${a.status}`);return await a.json()}async uploadScreenshot(t,n){const a=await fetch(t,{method:"PUT",body:n,headers:{"Content-Type":"image/jpeg"}});if(!a.ok)throw new Error(`Failed to upload screenshot: ${a.status}`)}async confirmScreenshotUpload(t){const n=await oa(`${this.getBaseUrl()}${ua.CONFIRM_UPLOAD(t)}`,{method:"POST",headers:this.getHeaders()});if(!n.ok)throw new Error(`Failed to confirm screenshot upload: ${n.status}`)}async getInterviewTranscription(t){const n=await oa(`${this.getBaseUrl()}${ua.TRANSCRIPTION(t)}`,{method:"GET",headers:{...this.getHeaders(),"x-auth-token":"interview-engine-api-key"}});if(!n.ok)throw new Error(`Failed to get interview transcription: ${n.status}`);return await n.json()}}const _6=new o1,x6=({gazeAnalysisEnabled:e,isModelLoaded:t,stats:n,statusMessage:a,loadingProgress:i})=>o.jsx("div",{className:"iw-w-full",children:o.jsxs("div",{className:"iw-border-strock iw-rounded-md iw-border iw-bg-gray-50 iw-p-4",children:[o.jsxs("h3",{className:"iw-m-0 iw-mb-2.5",children:["Status: ",a]}),i>0&&i<100&&o.jsxs("div",{className:"iw-mb-2.5",children:[o.jsx("div",{className:"iw-h-2 iw-w-full iw-rounded iw-bg-gray-300",children:o.jsx("div",{className:"iw-h-full iw-rounded iw-bg-blue-600 iw-transition-all iw-duration-300 iw-ease-out",style:{width:`${i}%`}})}),o.jsxs("small",{className:"iw-text-gray-600",children:["Loading model... ",i.toFixed(1),"%"]})]}),o.jsxs("div",{className:"iw-grid iw-grid-cols-2 iw-gap-2.5 iw-text-sm",children:[o.jsxs("div",{children:[o.jsx("strong",{children:"FPS:"})," ",o.jsx("span",{className:n.fps<15?"iw-text-red-600":n.fps<25?"iw-text-orange-500":"iw-text-green-600",children:n.fps})]}),o.jsxs("div",{children:[o.jsx("strong",{children:"Model:"})," ",t?"✓ Loaded":"✗ Loading"]}),e&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsx("strong",{children:"Engagement:"})," ",n.engagement.toFixed(1),"%"]}),o.jsxs("div",{children:[o.jsx("strong",{children:"Looking:"})," ",o.jsx("span",{className:n.isLookingAway?"iw-text-red-600":"iw-text-green-600",children:n.isLookingAway?"Away":"At Screen"})]})]})]}),n.referenceFaceNotDetected&&o.jsxs("div",{className:"iw-text-gray-dark iw-mt-2.5 iw-w-full iw-rounded-md iw-bg-[#ffeb3b] iw-p-2.5 iw-text-sm",children:[o.jsx("strong",{children:"Reference Face Not Detected"}),o.jsx("br",{}),"The previously set reference face is no longer in view."]}),n.multipleFacesDetected&&o.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-red-50 iw-p-2.5 iw-text-sm iw-text-red-700",children:[o.jsx("strong",{children:"Multiple Faces Detected"}),o.jsx("br",{}),"Please ensure only one person is in the frame."]}),!e&&o.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-blue-50 iw-p-2.5 iw-text-sm iw-text-blue-700",children:[o.jsx("strong",{children:"Gaze Analysis Disabled"}),o.jsx("br",{}),"Enable to track engagement and attention levels."]})]})}),A6=({showControls:e,isBubbleOpen:t,setIsBubbleOpen:n,setReference:a,clearCache:i,isModelLoaded:l,gazeAnalysisEnabled:r,referenceSet:s,showLandmarks:c,setShowLandmarks:u,showEngagementBar:f,setShowEngagementBar:h,handleToggleGazeAnalysis:d,stats:g,statusMessage:v,loadingProgress:S})=>e?o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:()=>n(!t),className:"iw-absolute iw-right-4 iw-bottom-4 iw-z-10 iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-full iw-text-white",children:o.jsx(s6,{className:"iw-size-4.5"})}),t&&o.jsxs("div",{className:"iw-absolute iw-right-4 iw-bottom-16 iw-z-10 iw-max-h-96 iw-w-80 iw-overflow-y-auto iw-rounded-md iw-bg-gray-50 iw-p-4 iw-shadow-lg",children:[o.jsx("h4",{className:"m-0 mb-2.5",children:"Controls"}),o.jsx("button",{onClick:a,disabled:!l||!r,className:`iw-mb-2.5 iw-block iw-w-full iw-rounded border-none iw-px-4 iw-py-2 iw-text-sm iw-text-white ${!l||!r?"iw-cursor-not-allowed iw-bg-gray-400":"iw-cursor-pointer iw-bg-blue-600 hover:iw-bg-blue-700"}`,children:s?"Reference Set ✓":"Set Reference"}),o.jsx("button",{onClick:i,className:"iw-mb-4 iw-block iw-w-full iw-cursor-pointer iw-rounded iw-border-none iw-bg-red-600 iw-px-4 iw-py-2 iw-text-sm iw-text-white hover:iw-bg-red-700",children:"Clear Model Cache"}),o.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-2.5",children:[o.jsxs("label",{className:"iw-flex iw-cursor-pointer iw-items-center iw-gap-2",children:[o.jsx("input",{type:"checkbox",checked:r,onChange:_=>d(_.target.checked)}),o.jsx("strong",{children:"Enable Gaze Analysis"})]}),o.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${r?"iw-opacity-100":"iw-opacity-60"}`,children:[o.jsx("input",{type:"checkbox",checked:c,onChange:_=>u(_.target.checked),disabled:!r}),"Show Landmarks"]}),o.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${r?"iw-opacity-100":"iw-opacity-60"}`,children:[o.jsx("input",{type:"checkbox",checked:f,onChange:_=>h(_.target.checked),disabled:!r}),"Show Engagement Bar"]})]}),s&&o.jsx(x6,{gazeAnalysisEnabled:r,isModelLoaded:l,loadingProgress:S,stats:g,statusMessage:v})]})]}):null;var Oi=typeof self<"u"?self:{};function tr(e,t){e:{for(var n=["CLOSURE_FLAGS"],a=Oi,i=0;i<n.length;i++)if((a=a[n[i]])==null){n=null;break e}n=a}return(e=n&&n[e])!=null?e:t}function Za(){throw Error("Invalid UTF8")}function c1(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}let Ts,Jc;const T6=typeof TextDecoder<"u";let N6;const M6=typeof TextEncoder<"u";function u1(e){if(M6)e=(N6||(N6=new TextEncoder)).encode(e);else{let n=0;const a=new Uint8Array(3*e.length);for(let i=0;i<e.length;i++){var t=e.charCodeAt(i);if(t<128)a[n++]=t;else{if(t<2048)a[n++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&i<e.length){const l=e.charCodeAt(++i);if(l>=56320&&l<=57343){t=1024*(t-55296)+l-56320+65536,a[n++]=t>>18|240,a[n++]=t>>12&63|128,a[n++]=t>>6&63|128,a[n++]=63&t|128;continue}i--}t=65533}a[n++]=t>>12|224,a[n++]=t>>6&63|128}a[n++]=63&t|128}}e=n===a.length?a:a.subarray(0,n)}return e}function f1(e){Oi.setTimeout(()=>{throw e},0)}var Wc,C6=tr(610401301,!1),d1=tr(748402147,!0),Rc=tr(824648567,!0),Pc=tr(824656860,tr(1,!0));function h1(){var e=Oi.navigator;return e&&(e=e.userAgent)?e:""}const g1=Oi.navigator;function Ns(e){return Ns[" "](e),e}Wc=g1&&g1.userAgentData||null,Ns[" "]=function(){};const w1={};let nr=null;function D6(e){const t=e.length;let n=3*t/4;n%3?n=Math.floor(n):"=.".indexOf(e[t-1])!=-1&&(n="=.".indexOf(e[t-2])!=-1?n-2:n-1);const a=new Uint8Array(n);let i=0;return function(l,r){function s(u){for(;c<l.length;){const f=l.charAt(c++),h=nr[f];if(h!=null)return h;if(!/^[\s\xa0]*$/.test(f))throw Error("Unknown base64 encoding at char: "+f)}return u}m1();let c=0;for(;;){const u=s(-1),f=s(0),h=s(64),d=s(64);if(d===64&&u===-1)break;r(u<<2|f>>4),h!=64&&(r(f<<4&240|h>>2),d!=64&&r(h<<6&192|d))}}(e,function(l){a[i++]=l}),i!==n?a.subarray(0,i):a}function m1(){if(!nr){nr={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let n=0;n<5;n++){const a=e.concat(t[n].split(""));w1[n]=a;for(let i=0;i<a.length;i++){const l=a[i];nr[l]===void 0&&(nr[l]=i)}}}}var O6=typeof Uint8Array<"u",y1=!(!(C6&&Wc&&Wc.brands.length>0)&&(h1().indexOf("Trident")!=-1||h1().indexOf("MSIE")!=-1))&&typeof btoa=="function";const p1=/[-_.]/g,z6={"-":"+",_:"/",".":"="};function k6(e){return z6[e]||""}function v1(e){if(!y1)return D6(e);e=p1.test(e)?e.replace(p1,k6):e,e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function $c(e){return O6&&e!=null&&e instanceof Uint8Array}var zi={};function Ia(){return L6||(L6=new En(null,zi))}function eu(e){b1(zi);var t=e.g;return(t=t==null||$c(t)?t:typeof t=="string"?v1(t):null)==null?t:e.g=t}var En=class{h(){return new Uint8Array(eu(this)||0)}constructor(e,t){if(b1(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}};let L6,U6;function b1(e){if(e!==zi)throw Error("illegal external caller")}function S1(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function tu(e){return S1(e=Error(e),"warning"),e}function ki(e,t){if(e!=null){var n=U6??(U6={}),a=n[e]||0;a>=t||(n[e]=a+1,S1(e=Error(),"incident"),f1(e))}}function Li(){return typeof BigInt=="function"}var Ui=typeof Symbol=="function"&&typeof Symbol()=="symbol";function _n(e,t,n=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?n&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}var B6=_n("jas",void 0,!0),E1=_n(void 0,"0di"),ar=_n(void 0,"1oa"),_t=_n(void 0,Symbol()),G6=_n(void 0,"0ub"),H6=_n(void 0,"0ubs"),nu=_n(void 0,"0ubsb"),j6=_n(void 0,"0actk"),Bi=_n("m_m","Pa",!0),_1=_n();const x1={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},A1=Object.defineProperties,z=Ui?B6:"Ga";var Ja;const T1=[];function ir(e,t){Ui||z in e||A1(e,x1),e[z]|=t}function je(e,t){Ui||z in e||A1(e,x1),e[z]=t}function lr(e){return ir(e,34),e}function rr(e){return ir(e,8192),e}je(T1,7),Ja=Object.freeze(T1);var Gi={};function xt(e,t){return t===void 0?e.h!==Wa&&!!(2&(0|e.v[z])):!!(2&t)&&e.h!==Wa}const Wa={};function au(e,t){if(e!=null){if(typeof e=="string")e=e?new En(e,zi):Ia();else if(e.constructor!==En)if($c(e))e=e.length?new En(new Uint8Array(e),zi):Ia();else{if(!t)throw Error();e=void 0}}return e}class N1{constructor(t,n,a){this.g=t,this.h=n,this.l=a}next(){const t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}}var V6=Object.freeze({});function M1(e,t,n){const a=128&t?0:-1,i=e.length;var l;(l=!!i)&&(l=(l=e[i-1])!=null&&typeof l=="object"&&l.constructor===Object);const r=i+(l?-1:0);for(t=128&t?1:0;t<r;t++)n(t-a,e[t]);if(l){e=e[i-1];for(const s in e)!isNaN(s)&&n(+s,e[s])}}var C1={};function Hi(e){return 128&e?C1:void 0}function Ms(e){return e.Na=!0,e}var q6=Ms(e=>typeof e=="number"),D1=Ms(e=>typeof e=="string"),F6=Ms(e=>typeof e=="boolean"),Cs=typeof Oi.BigInt=="function"&&typeof Oi.BigInt(0)=="bigint";function At(e){var t=e;if(D1(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(q6(t)&&!Number.isSafeInteger(t))throw Error(String(t));return Cs?BigInt(e):e=F6(e)?e?"1":"0":D1(e)?e.trim()||"0":String(e)}var iu=Ms(e=>Cs?e>=X6&&e<=K6:e[0]==="-"?O1(e,Y6):O1(e,Q6));const Y6=Number.MIN_SAFE_INTEGER.toString(),X6=Cs?BigInt(Number.MIN_SAFE_INTEGER):void 0,Q6=Number.MAX_SAFE_INTEGER.toString(),K6=Cs?BigInt(Number.MAX_SAFE_INTEGER):void 0;function O1(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let n=0;n<e.length;n++){const a=e[n],i=t[n];if(a>i)return!1;if(a<i)return!0}}const Z6=typeof Uint8Array.prototype.slice=="function";let I6,me=0,Oe=0;function z1(e){const t=e>>>0;me=t,Oe=(e-t)/4294967296>>>0}function ji(e){if(e<0){z1(-e);const[t,n]=cu(me,Oe);me=t>>>0,Oe=n>>>0}else z1(e)}function lu(e){const t=I6||(I6=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),Oe=0,me=t.getUint32(0,!0)}function ru(e,t){const n=4294967296*t+(e>>>0);return Number.isSafeInteger(n)?n:sr(e,t)}function J6(e,t){return At(Li()?BigInt.asUintN(64,(BigInt(t>>>0)<<BigInt(32))+BigInt(e>>>0)):sr(e,t))}function su(e,t){const n=2147483648&t;return n&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=ru(e,t))=="number"?n?-e:e:n?"-"+e:e}function k1(e,t){return Li()?At(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(t))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):At(ou(e,t))}function sr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var n=""+(4294967296*t+e);else Li()?n=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(n=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,e>=1e7&&(n+=e/1e7>>>0,e%=1e7),n>=1e7&&(t+=n/1e7>>>0,n%=1e7),n=t+L1(n)+L1(e));return n}function L1(e){return e=String(e),"0000000".slice(e.length)+e}function ou(e,t){if(2147483648&t)if(Li())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{const[n,a]=cu(e,t);e="-"+sr(n,a)}else e=sr(e,t);return e}function Ds(e){if(e.length<16)ji(Number(e));else if(Li())e=BigInt(e),me=Number(e&BigInt(4294967295))>>>0,Oe=Number(e>>BigInt(32)&BigInt(4294967295));else{const t=+(e[0]==="-");Oe=me=0;const n=e.length;for(let a=t,i=(n-t)%6+t;i<=n;a=i,i+=6){const l=Number(e.slice(a,i));Oe*=1e6,me=1e6*me+l,me>=4294967296&&(Oe+=Math.trunc(me/4294967296),Oe>>>=0,me>>>=0)}if(t){const[a,i]=cu(me,Oe);me=a,Oe=i}}}function cu(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function hn(e){return Array.prototype.slice.call(e)}const or=typeof BigInt=="function"?BigInt.asIntN:void 0,W6=typeof BigInt=="function"?BigInt.asUintN:void 0,Ra=Number.isSafeInteger,Os=Number.isFinite,Vi=Math.trunc,R6=At(0);function cr(e){if(e!=null&&typeof e!="number")throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);return e}function xn(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function ur(e){if(e!=null&&typeof e!="boolean"){var t=typeof e;throw Error(`Expected boolean but got ${t!="object"?t:e?Array.isArray(e)?"array":t:"null"}: ${e}`)}return e}function U1(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}const P6=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function fr(e){switch(typeof e){case"bigint":return!0;case"number":return Os(e);case"string":return P6.test(e);default:return!1}}function qi(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return Os(e)?0|e:void 0}function B1(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return Os(e)?e>>>0:void 0}function G1(e){const t=e.length;return(e[0]==="-"?t<20||t===20&&e<="-9223372036854775808":t<19||t===19&&e<="9223372036854775807")?e:(Ds(e),ou(me,Oe))}function uu(e){return e=Vi(e),Ra(e)||(ji(e),e=su(me,Oe)),e}function H1(e){var t=Vi(Number(e));return Ra(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),G1(e))}function j1(e){var t=Vi(Number(e));return Ra(t)?At(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),Li()?At(or(64,BigInt(e))):At(G1(e)))}function V1(e){return Ra(e)?e=At(uu(e)):(e=Vi(e),Ra(e)?e=String(e):(ji(e),e=ou(me,Oe)),e=At(e)),e}function $6(e){return e==null?e:typeof e=="bigint"?(iu(e)?e=Number(e):(e=or(64,e),e=iu(e)?Number(e):String(e)),e):fr(e)?typeof e=="number"?uu(e):H1(e):void 0}function zs(e){const t=typeof e;return e==null?e:t==="bigint"?At(or(64,e)):fr(e)?t==="string"?j1(e):V1(e):void 0}function q1(e){if(typeof e!="string")throw Error();return e}function dr(e){if(e!=null&&typeof e!="string")throw Error();return e}function Pe(e){return e==null||typeof e=="string"?e:void 0}function fu(e,t,n,a){return e!=null&&e[Bi]===Gi?e:Array.isArray(e)?((a=(n=0|e[z])|32&a|2&a)!==n&&je(e,a),new t(e)):(n?2&a?((e=t[E1])||(lr((e=new t).v),e=t[E1]=e),t=e):t=new t:t=void 0,t)}function e5(e,t,n){if(t)e:{if(!fr(t=e))throw tu("int64");switch(typeof t){case"string":t=j1(t);break e;case"bigint":t=At(or(64,t));break e;default:t=V1(t)}}else t=zs(e);return(e=t)==null?n?R6:void 0:e}const t5={};let n5=function(){try{return Ns(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class du{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,n){return this.g.set(t,n),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,n){return this.g.forEach(t,n)}[Symbol.iterator](){return this.entries()}}const a5=n5?(Object.setPrototypeOf(du.prototype,Map.prototype),Object.defineProperties(du.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),du):class extends Map{constructor(){super()}};function F1(e){return e}function hu(e){if(2&e.J)throw Error("Cannot mutate an immutable Map")}var Gn=class extends a5{constructor(e,t,n=F1,a=F1){super(),this.J=0|e[z],this.K=t,this.S=n,this.fa=this.K?i5:a;for(let i=0;i<e.length;i++){const l=e[i],r=n(l[0],!1,!0);let s=l[1];t?s===void 0&&(s=null):s=a(l[1],!1,!0,void 0,void 0,this.J),super.set(r,s)}}V(e){return rr(Array.from(super.entries(),e))}clear(){hu(this),super.clear()}delete(e){return hu(this),super.delete(this.S(e,!0,!1))}entries(){if(this.K){var e=super.keys();e=new N1(e,l5,this)}else e=super.entries();return e}values(){if(this.K){var e=super.keys();e=new N1(e,Gn.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.K?super.forEach((n,a,i)=>{e.call(t,i.get(a),a,i)}):super.forEach(e,t)}set(e,t){return hu(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.fa(t,!0,!0,this.K,!1,this.J))}Ma(e){const t=this.S(e[0],!1,!0);e=e[1],e=this.K?e===void 0?null:e:this.fa(e,!1,!0,void 0,!1,this.J),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);const t=super.get(e);if(t!==void 0){var n=this.K;return n?((n=this.fa(t,!1,!0,n,this.ra,this.J))!==t&&super.set(e,n),n):t}}[Symbol.iterator](){return this.entries()}};function i5(e,t,n,a,i,l){return e=fu(e,a,n,l),i&&(e=mu(e)),e}function l5(e){return[e,this.get(e)]}let r5;function Y1(){return r5||(r5=new Gn(lr([]),void 0,void 0,void 0,t5))}function ks(e){return _t?e[_t]:void 0}function Ls(e,t){for(const n in e)!isNaN(n)&&t(e,+n,e[n])}Gn.prototype.toJSON=void 0;var gu=class{};const s5={Ka:!0};function o5(e,t){t<100||ki(H6,1)}function Us(e,t,n,a){const i=a!==void 0;a=!!a;var l,r=_t;!i&&Ui&&r&&(l=e[r])&&Ls(l,o5),r=[];var s=e.length;let c;l=4294967295;let u=!1;const f=!!(64&t),h=f?128&t?0:-1:void 0;1&t||(c=s&&e[s-1],c!=null&&typeof c=="object"&&c.constructor===Object?l=--s:c=void 0,!f||128&t||i||(u=!0,l=l-h+h)),t=void 0;for(var d=0;d<s;d++){let g=e[d];if(g!=null&&(g=n(g,a))!=null)if(f&&d>=l){const v=d-h;(t??(t={}))[v]=g}else r[d]=g}if(c)for(let g in c){if((s=c[g])==null||(s=n(s,a))==null)continue;let v;d=+g,f&&!Number.isNaN(d)&&(v=d+h)<l?r[v]=s:(t??(t={}))[g]=s}return t&&(u?r.push(t):r[l]=t),i&&_t&&(e=ks(e))&&e instanceof gu&&(r[_t]=function(g){const v=new gu;return Ls(g,(S,_,w)=>{v[_]=hn(w)}),v.da=g.da,v}(e)),r}function c5(e){return e[0]=hr(e[0]),e[1]=hr(e[1]),e}function hr(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return iu(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(Array.isArray(e)){var t=0|e[z];return e.length===0&&1&t?void 0:Us(e,t,hr)}if(e!=null&&e[Bi]===Gi)return X1(e);if(e instanceof En){if((t=e.g)==null)e="";else if(typeof t=="string")e=t;else{if(y1){for(var n="",a=0,i=t.length-10240;a<i;)n+=String.fromCharCode.apply(null,t.subarray(a,a+=10240));n+=String.fromCharCode.apply(null,a?t.subarray(a):t),t=btoa(n)}else{n===void 0&&(n=0),m1(),n=w1[n],a=Array(Math.floor(t.length/3)),i=n[64]||"";let u=0,f=0;for(;u<t.length-2;u+=3){var l=t[u],r=t[u+1],s=t[u+2],c=n[l>>2];l=n[(3&l)<<4|r>>4],r=n[(15&r)<<2|s>>6],s=n[63&s],a[f++]=c+l+r+s}switch(c=0,s=i,t.length-u){case 2:s=n[(15&(c=t[u+1]))<<2]||i;case 1:t=t[u],a[f]=n[t>>2]+n[(3&t)<<4|c>>4]+s+i}t=a.join("")}e=e.g=t}return e}return e instanceof Gn?e=e.size!==0?e.V(c5):void 0:void 0}return e}function X1(e){return Us(e=e.v,0|e[z],hr)}let u5,f5;function Pa(e,t){return Q1(e,t[0],t[1])}function Q1(e,t,n,a=0){if(e==null){var i=32;n?(e=[n],i|=128):e=[],t&&(i=-16760833&i|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(i=0|e[z],d1&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(d1)throw Error("carr");ki(j6,5)}(),256&i)throw Error("farr");if(64&i)return(i|a)!==i&&je(e,i|a),e;if(n&&(i|=128,n!==e[0]))throw Error("mid");e:{i|=64;var l=(n=e).length;if(l){var r=l-1;const c=n[r];if(c!=null&&typeof c=="object"&&c.constructor===Object){if((r-=t=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var s in c)(l=+s)<r&&(n[l+t]=c[s],delete c[s]);i=-16760833&i|(1023&r)<<14;break e}}if(t){if((s=Math.max(t,l-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&s)<<14}}}return je(e,64|i|a),e}function d5(e,t){if(typeof e!="object")return e;if(Array.isArray(e)){var n=0|e[z];return e.length===0&&1&n?void 0:K1(e,n,t)}if(e!=null&&e[Bi]===Gi)return Z1(e);if(e instanceof Gn){if(2&(t=e.J))return e;if(!e.size)return;if(n=lr(e.V()),e.K)for(e=0;e<n.length;e++){const a=n[e];let i=a[1];i=i==null||typeof i!="object"?void 0:i!=null&&i[Bi]===Gi?Z1(i):Array.isArray(i)?K1(i,0|i[z],!!(32&t)):void 0,a[1]=i}return n}return e instanceof En?e:void 0}function K1(e,t,n){return 2&t||(!n||4096&t||16&t?e=Fi(e,t,!1,n&&!(16&t)):(ir(e,34),4&t&&Object.freeze(e))),e}function wu(e,t,n){return e=new e.constructor(t),n&&(e.h=Wa),e.m=Wa,e}function Z1(e){const t=e.v,n=0|t[z];return xt(e,n)?e:yu(e,t,n)?wu(e,t):Fi(t,n)}function Fi(e,t,n,a){return a??(a=!!(34&t)),e=Us(e,t,d5,a),a=32,n&&(a|=2),je(e,t=16769217&t|a),e}function mu(e){const t=e.v,n=0|t[z];return xt(e,n)?yu(e,t,n)?wu(e,t,!0):new e.constructor(Fi(t,n,!1)):e}function Yi(e){if(e.h!==Wa)return!1;var t=e.v;return ir(t=Fi(t,0|t[z]),2048),e.v=t,e.h=void 0,e.m=void 0,!0}function Xi(e){if(!Yi(e)&&xt(e,0|e.v[z]))throw Error()}function $a(e,t){t===void 0&&(t=0|e[z]),32&t&&!(4096&t)&&je(e,4096|t)}function yu(e,t,n){return!!(2&n)||!(!(32&n)||4096&n)&&(je(t,2|n),e.h=Wa,!0)}const h5=At(0),fa={};function de(e,t,n,a,i){if((t=Hn(e.v,t,n,i))!==null||a&&e.m!==Wa)return t}function Hn(e,t,n,a){if(t===-1)return null;const i=t+(n?0:-1),l=e.length-1;let r,s;if(!(l<1+(n?0:-1))){if(i>=l)if(r=e[l],r!=null&&typeof r=="object"&&r.constructor===Object)n=r[t],s=!0;else{if(i!==l)return;n=r}else n=e[i];if(a&&n!=null){if((a=a(n))==null)return a;if(!Object.is(a,n))return s?r[t]=a:e[i]=a,a}return n}}function ne(e,t,n,a){Xi(e),Ve(e=e.v,0|e[z],t,n,a)}function Ve(e,t,n,a,i){const l=n+(i?0:-1);var r=e.length-1;if(r>=1+(i?0:-1)&&l>=r){const s=e[r];if(s!=null&&typeof s=="object"&&s.constructor===Object)return s[n]=a,t}return l<=r?(e[l]=a,t):(a!==void 0&&(n>=(r=(t??(t=0|e[z]))>>14&1023||536870912)?a!=null&&(e[r+(i?0:-1)]={[n]:a}):e[l]=a),t)}function ei(){return V6===void 0?2:4}function ti(e,t,n,a,i){let l=e.v,r=0|l[z];a=xt(e,r)?1:a,i=!!i||a===3,a===2&&Yi(e)&&(l=e.v,r=0|l[z]);let s=(e=pu(l,t))===Ja?7:0|e[z],c=vu(s,r);var u=!(4&c);if(u){4&c&&(e=hn(e),s=0,c=ai(c,r),r=Ve(l,r,t,e));let f=0,h=0;for(;f<e.length;f++){const d=n(e[f]);d!=null&&(e[h++]=d)}h<f&&(e.length=h),n=-513&(4|c),c=n&=-1025,c&=-4097}return c!==s&&(je(e,c),2&c&&Object.freeze(e)),I1(e,c,l,r,t,a,u,i)}function I1(e,t,n,a,i,l,r,s){let c=t;return l===1||l===4&&(2&t||!(16&t)&&32&a)?ni(t)||((t|=!e.length||r&&!(4096&t)||32&a&&!(4096&t||16&t)?2:256)!==c&&je(e,t),Object.freeze(e)):(l===2&&ni(t)&&(e=hn(e),c=0,t=ai(t,a),a=Ve(n,a,i,e)),ni(t)||(s||(t|=16),t!==c&&je(e,t))),2&t||!(4096&t||16&t)||$a(n,a),e}function pu(e,t,n){return e=Hn(e,t,n),Array.isArray(e)?e:Ja}function vu(e,t){return 2&t&&(e|=2),1|e}function ni(e){return!!(2&e)&&!!(4&e)||!!(256&e)}function J1(e){return au(e,!0)}function W1(e){e=hn(e);for(let t=0;t<e.length;t++){const n=e[t]=hn(e[t]);Array.isArray(n[1])&&(n[1]=lr(n[1]))}return rr(e)}function da(e,t,n,a){Xi(e),Ve(e=e.v,0|e[z],t,(a==="0"?Number(n)===0:n===a)?void 0:n)}function Qi(e,t,n){if(2&t)throw Error();const a=Hi(t);let i=pu(e,n,a),l=i===Ja?7:0|i[z],r=vu(l,t);return(2&r||ni(r)||16&r)&&(r===l||ni(r)||je(i,r),i=hn(i),l=0,r=ai(r,t),Ve(e,t,n,i,a)),r&=-13,r!==l&&je(i,r),i}function bu(e,t){var n=n0;return Eu(Su(e=e.v),e,void 0,n)===t?t:-1}function Su(e){if(Ui)return e[ar]??(e[ar]=new Map);if(ar in e)return e[ar];const t=new Map;return Object.defineProperty(e,ar,{value:t}),t}function R1(e,t,n,a,i){const l=Su(e),r=Eu(l,e,t,n,i);return r!==a&&(r&&(t=Ve(e,t,r,void 0,i)),l.set(n,a)),t}function Eu(e,t,n,a,i){let l=e.get(a);if(l!=null)return l;l=0;for(let r=0;r<a.length;r++){const s=a[r];Hn(t,s,i)!=null&&(l!==0&&(n=Ve(t,n,l,void 0,i)),l=s)}return e.set(a,l),l}function _u(e,t,n){let a=0|e[z];const i=Hi(a),l=Hn(e,n,i);let r;if(l!=null&&l[Bi]===Gi){if(!xt(l))return Yi(l),l.v;r=l.v}else Array.isArray(l)&&(r=l);if(r){const s=0|r[z];2&s&&(r=Fi(r,s))}return r=Pa(r,t),r!==l&&Ve(e,a,n,r,i),r}function P1(e,t,n,a,i){let l=!1;if((a=Hn(e,a,i,r=>{const s=fu(r,n,!1,t);return l=s!==r&&s!=null,s}))!=null)return l&&!xt(a)&&$a(e,t),a}function J(e,t,n,a){let i=e.v,l=0|i[z];if((t=P1(i,l,t,n,a))==null)return t;if(l=0|i[z],!xt(e,l)){const r=mu(t);r!==t&&(Yi(e)&&(i=e.v,l=0|i[z]),l=Ve(i,l,n,t=r,a),$a(i,l))}return t}function $1(e,t,n,a,i,l,r,s){var c=xt(e,n);l=c?1:l,r=!!r||l===3,c=s&&!c,(l===2||c)&&Yi(e)&&(n=0|(t=e.v)[z]);var u=(e=pu(t,i))===Ja?7:0|e[z],f=vu(u,n);if(s=!(4&f)){var h=e,d=n;const g=!!(2&f);g&&(d|=2);let v=!g,S=!0,_=0,w=0;for(;_<h.length;_++){const m=fu(h[_],a,!1,d);if(m instanceof a){if(!g){const p=xt(m);v&&(v=!p),S&&(S=p)}h[w++]=m}}w<_&&(h.length=w),f|=4,f=S?-4097&f:4096|f,f=v?8|f:-9&f}if(f!==u&&(je(e,f),2&f&&Object.freeze(e)),c&&!(8&f||!e.length&&(l===1||l===4&&(2&f||!(16&f)&&32&n)))){for(ni(f)&&(e=hn(e),f=ai(f,n),n=Ve(t,n,i,e)),a=e,c=f,u=0;u<a.length;u++)(h=a[u])!==(f=mu(h))&&(a[u]=f);c|=8,je(e,f=c=a.length?4096|c:-4097&c)}return I1(e,f,t,n,i,l,s,r)}function jn(e,t,n){const a=e.v;return $1(e,a,0|a[z],t,n,ei(),!1,!0)}function eh(e){return e==null&&(e=void 0),e}function B(e,t,n,a,i){return ne(e,n,a=eh(a),i),a&&!xt(a)&&$a(e.v),e}function gr(e,t,n,a){e:{var i=a=eh(a);Xi(e);const l=e.v;let r=0|l[z];if(i==null){const s=Su(l);if(Eu(s,l,r,n)!==t)break e;s.set(n,0)}else r=R1(l,r,n,t);Ve(l,r,t,i)}a&&!xt(a)&&$a(e.v)}function ai(e,t){return-273&(2&t?2|e:-3&e)}function xu(e,t,n,a){var i=a;Xi(e),e=$1(e,a=e.v,0|a[z],n,t,2,!0),i=i??new n,e.push(i),t=n=e===Ja?7:0|e[z],(i=xt(i))?(n&=-9,e.length===1&&(n&=-4097)):n|=4096,n!==t&&je(e,n),i||$a(a)}function Zt(e,t,n){return qi(de(e,t,void 0,n))}function th(e){return(Pc?de(e,2,void 0,void 0,zs):zs(de(e,2)))??h5}function Ae(e,t){return de(e,t,void 0,void 0,xn)??0}function Vn(e,t,n){if(n!=null){if(typeof n!="number"||!Os(n))throw tu("int32");n|=0}ne(e,t,n)}function U(e,t,n){ne(e,t,cr(n))}function Tt(e,t,n){da(e,t,dr(n),"")}function Bs(e,t,n){{Xi(e);const r=e.v;let s=0|r[z];if(n==null)Ve(r,s,t);else{var a=e=n===Ja?7:0|n[z],i=ni(e),l=i||Object.isFrozen(n);for(i||(e=0),l||(n=hn(n),a=0,e=ai(e,s),l=!1),e|=5,e|=(4&e?512&e?512:1024&e?1024:0:void 0)??(Pc?1024:0),i=0;i<n.length;i++){const c=n[i],u=q1(c);Object.is(c,u)||(l&&(n=hn(n),a=0,e=ai(e,s),l=!1),n[i]=u)}e!==a&&(l&&(n=hn(n),e=ai(e,s)),je(n,e)),Ve(r,s,t,n)}}}function Gs(e,t,n){Xi(e),ti(e,t,Pe,2,!0).push(q1(n))}var Ki=class{constructor(e,t,n){if(this.buffer=e,n&&!t)throw Error();this.g=t}};function Au(e,t){if(typeof e=="string")return new Ki(v1(e),t);if(Array.isArray(e))return new Ki(new Uint8Array(e),t);if(e.constructor===Uint8Array)return new Ki(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new Ki(e,!1);if(e.constructor===En)return t=eu(e)||new Uint8Array(0),new Ki(t,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Ki(e,!1);throw Error()}function Zi(e,t){let n,a=0,i=0,l=0;const r=e.h;let s=e.g;do n=r[s++],a|=(127&n)<<l,l+=7;while(l<32&&128&n);if(l>32)for(i|=(127&n)>>4,l=3;l<32&&128&n;l+=7)n=r[s++],i|=(127&n)<<l;if(ii(e,s),!(128&n))return t(a>>>0,i>>>0);throw Error()}function Tu(e){let t=0,n=e.g;const a=n+10,i=e.h;for(;n<a;){const l=i[n++];if(t|=l,(128&l)==0)return ii(e,n),!!(127&t)}throw Error()}function ha(e){const t=e.h;let n=e.g,a=t[n++],i=127&a;if(128&a&&(a=t[n++],i|=(127&a)<<7,128&a&&(a=t[n++],i|=(127&a)<<14,128&a&&(a=t[n++],i|=(127&a)<<21,128&a&&(a=t[n++],i|=a<<28,128&a&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++])))))throw Error();return ii(e,n),i}function qn(e){return ha(e)>>>0}function Hs(e){var t=e.h;const n=e.g;var a=t[n],i=t[n+1];const l=t[n+2];return t=t[n+3],ii(e,e.g+4),e=2*((i=(a<<0|i<<8|l<<16|t<<24)>>>0)>>31)+1,a=i>>>23&255,i&=8388607,a==255?i?NaN:e*(1/0):a==0?1401298464324817e-60*e*i:e*Math.pow(2,a-150)*(i+8388608)}function g5(e){return ha(e)}function ii(e,t){if(e.g=t,t>e.l)throw Error()}function nh(e,t){if(t<0)throw Error();const n=e.g;if((t=n+t)>e.l)throw Error();return e.g=t,n}function ah(e,t){if(t==0)return Ia();var n=nh(e,t);return e.Y&&e.j?n=e.h.subarray(n,n+t):(e=e.h,n=n===(t=n+t)?new Uint8Array(0):Z6?e.slice(n,t):new Uint8Array(e.subarray(n,t))),n.length==0?Ia():new En(n,zi)}var ih=[];function lh(e,t,n,a){if(qs.length){const i=qs.pop();return i.o(a),i.g.init(e,t,n,a),i}return new w5(e,t,n,a)}function rh(e){e.g.clear(),e.l=-1,e.h=-1,qs.length<100&&qs.push(e)}function sh(e){var t=e.g;if(t.g==t.l)return!1;e.m=e.g.g;var n=qn(e.g);if(t=n>>>3,!((n&=7)>=0&&n<=5)||t<1)throw Error();return e.l=t,e.h=n,!0}function js(e){switch(e.h){case 0:e.h!=0?js(e):Tu(e.g);break;case 1:ii(e=e.g,e.g+8);break;case 2:if(e.h!=2)js(e);else{var t=qn(e.g);ii(e=e.g,e.g+t)}break;case 5:ii(e=e.g,e.g+4);break;case 3:for(t=e.l;;){if(!sh(e))throw Error();if(e.h==4){if(e.l!=t)throw Error();break}js(e)}break;default:throw Error()}}function wr(e,t,n){const a=e.g.l;var i=qn(e.g);let l=(i=e.g.g+i)-a;if(l<=0&&(e.g.l=i,n(t,e,void 0,void 0,void 0),l=i-e.g.g),l)throw Error();return e.g.g=i,e.g.l=a,t}function Nu(e){var t=qn(e.g),n=nh(e=e.g,t);if(e=e.h,T6){var a,i=e;(a=Jc)||(a=Jc=new TextDecoder("utf-8",{fatal:!0})),t=n+t,i=n===0&&t===i.length?i:i.subarray(n,t);try{var l=a.decode(i)}catch(s){if(Ts===void 0){try{a.decode(new Uint8Array([128]))}catch{}try{a.decode(new Uint8Array([97])),Ts=!0}catch{Ts=!1}}throw!Ts&&(Jc=void 0),s}}else{t=(l=n)+t,n=[];let s,c=null;for(;l<t;){var r=e[l++];r<128?n.push(r):r<224?l>=t?Za():(s=e[l++],r<194||(192&s)!=128?(l--,Za()):n.push((31&r)<<6|63&s)):r<240?l>=t-1?Za():(s=e[l++],(192&s)!=128||r===224&&s<160||r===237&&s>=160||(192&(a=e[l++]))!=128?(l--,Za()):n.push((15&r)<<12|(63&s)<<6|63&a)):r<=244?l>=t-2?Za():(s=e[l++],(192&s)!=128||s-144+(r<<28)>>30||(192&(a=e[l++]))!=128||(192&(i=e[l++]))!=128?(l--,Za()):(r=(7&r)<<18|(63&s)<<12|(63&a)<<6|63&i,r-=65536,n.push(55296+(r>>10&1023),56320+(1023&r)))):Za(),n.length>=8192&&(c=c1(c,n),n.length=0)}l=c1(c,n)}return l}function oh(e){const t=qn(e.g);return ah(e.g,t)}function Vs(e,t,n){var a=qn(e.g);for(a=e.g.g+a;e.g.g<a;)n.push(t(e.g))}var w5=class{constructor(e,t,n,a){if(ih.length){const i=ih.pop();i.init(e,t,n,a),e=i}else e=new class{constructor(i,l,r,s){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.init(i,l,r,s)}init(i,l,r,{Y:s=!1,ea:c=!1}={}){this.Y=s,this.ea=c,i&&(i=Au(i,this.ea),this.h=i.buffer,this.j=i.g,this.m=l||0,this.l=r!==void 0?this.m+r:this.h.length,this.g=this.m)}clear(){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.Y=!1}}(e,t,n,a);this.g=e,this.m=this.g.g,this.h=this.l=-1,this.o(a)}o({ha:e=!1}={}){this.ha=e}},qs=[];function ch(e){return e?/^\d+$/.test(e)?(Ds(e),new Mu(me,Oe)):null:m5||(m5=new Mu(0,0))}var Mu=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let m5;function uh(e){return e?/^-?\d+$/.test(e)?(Ds(e),new Cu(me,Oe)):null:y5||(y5=new Cu(0,0))}var Cu=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let y5;function Ii(e,t,n){for(;n>0||t>127;)e.g.push(127&t|128),t=(t>>>7|n<<25)>>>0,n>>>=7;e.g.push(t)}function Ji(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function Fs(e,t){if(t>=0)Ji(e,t);else{for(let n=0;n<9;n++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function Du(e){var t=me;e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function Wi(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function It(e,t,n){Ji(e.g,8*t+n)}function Ou(e,t){return It(e,t,2),t=e.g.end(),Wi(e,t),t.push(e.h),t}function zu(e,t){var n=t.pop();for(n=e.h+e.g.length()-n;n>127;)t.push(127&n|128),n>>>=7,e.h++;t.push(n),e.h++}function Ys(e,t,n){It(e,t,2),Ji(e.g,n.length),Wi(e,e.g.end()),Wi(e,n)}function Xs(e,t,n,a){n!=null&&(t=Ou(e,t),a(n,e),zu(e,t))}function An(){const e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var ku=An(),fh=An(),Lu=An(),Uu=An(),dh=An(),hh=An(),p5=An(),Qs=An(),gh=An(),wh=An();function Tn(e,t,n){var a=e.v;_t&&_t in a&&(a=a[_t])&&delete a[t.g],t.h?t.j(e,t.h,t.g,n,t.l):t.j(e,t.g,n,t.l)}var k=class{constructor(e,t){this.v=Q1(e,t,void 0,2048)}toJSON(){return X1(this)}j(){var i;var e=ey,t=this.v,n=e.g,a=_t;if(Ui&&a&&((i=t[a])==null?void 0:i[n])!=null&&ki(G6,3),t=e.g,_1&&_t&&_1===void 0&&(a=(n=this.v)[_t])&&(a=a.da))try{a(n,t,s5)}catch(l){f1(l)}return e.h?e.m(this,e.h,e.g,e.l):e.m(this,e.g,e.defaultValue,e.l)}clone(){const e=this.v,t=0|e[z];return yu(this,e,t)?wu(this,e,!0):new this.constructor(Fi(e,t,!1))}};k.prototype[Bi]=Gi,k.prototype.toString=function(){return this.v.toString()};var Ri=class{constructor(e,t,n){this.g=e,this.h=t,e=ku,this.l=!!e&&n===e||!1}};function Ks(e,t){return new Ri(e,t,ku)}function mh(e,t,n,a,i){Xs(e,n,Eh(t,a),i)}const v5=Ks(function(e,t,n,a,i){return e.h===2&&(wr(e,_u(t,a,n),i),!0)},mh),b5=Ks(function(e,t,n,a,i){return e.h===2&&(wr(e,_u(t,a,n),i),!0)},mh);var Zs=Symbol(),Is=Symbol(),Bu=Symbol(),yh=Symbol(),ph=Symbol();let vh,bh;function li(e,t,n,a){var i=a[e];if(i)return i;(i={}).qa=a,i.T=function(h){switch(typeof h){case"boolean":return u5||(u5=[0,void 0,!0]);case"number":return h>0?void 0:h===0?f5||(f5=[0,void 0]):[-h,void 0];case"string":return[0,h];case"object":return h}}(a[0]);var l=a[1];let r=1;l&&l.constructor===Object&&(i.ba=l,typeof(l=a[++r])=="function"&&(i.ma=!0,vh??(vh=l),bh??(bh=a[r+1]),l=a[r+=2]));const s={};for(;l&&Array.isArray(l)&&l.length&&typeof l[0]=="number"&&l[0]>0;){for(var c=0;c<l.length;c++)s[l[c]]=l;l=a[++r]}for(c=1;l!==void 0;){let h;typeof l=="number"&&(c+=l,l=a[++r]);var u=void 0;if(l instanceof Ri?h=l:(h=v5,r--),h==null?void 0:h.l){l=a[++r],u=a;var f=r;typeof l=="function"&&(l=l(),u[f]=l),u=l}for(f=c+1,typeof(l=a[++r])=="number"&&l<0&&(f-=l,l=a[++r]);c<f;c++){const d=s[c];u?n(i,c,h,u,d):t(i,c,h,d)}}return a[e]=i}function Sh(e){return Array.isArray(e)?e[0]instanceof Ri?e:[b5,e]:[e,void 0]}function Eh(e,t){return e instanceof k?e.v:Array.isArray(e)?Pa(e,t):void 0}function Gu(e,t,n,a){const i=n.g;e[t]=a?(l,r,s)=>i(l,r,s,a):i}function Hu(e,t,n,a,i){const l=n.g;let r,s;e[t]=(c,u,f)=>l(c,u,f,s||(s=li(Is,Gu,Hu,a).T),r||(r=ju(a)),i)}function ju(e){let t=e[Bu];if(t!=null)return t;const n=li(Is,Gu,Hu,e);return t=n.ma?(a,i)=>vh(a,i,n):(a,i)=>{for(;sh(i)&&i.h!=4;){var l=i.l,r=n[l];if(r==null){var s=n.ba;s&&(s=s[l])&&(s=E5(s))!=null&&(r=n[l]=s)}if(r==null||!r(i,a,l)){if(r=(s=i).m,js(s),s.ha)var c=void 0;else c=s.g.g-r,s.g.g=r,c=ah(s.g,c);r=void 0,s=a,c&&((r=s[_t]??(s[_t]=new gu))[l]??(r[l]=[])).push(c)}}return(a=ks(a))&&(a.da=n.qa[ph]),!0},e[Bu]=t,e[ph]=S5.bind(e),t}function S5(e,t,n,a){var i=this[Is];const l=this[Bu],r=Pa(void 0,i.T),s=ks(e);if(s){var c=!1,u=i.ba;if(u){if(i=(f,h,d)=>{if(d.length!==0)if(u[h])for(const g of d){f=lh(g);try{c=!0,l(r,f)}finally{rh(f)}}else a==null||a(e,h,d)},t==null)Ls(s,i);else if(s!=null){const f=s[t];f&&i(s,t,f)}if(c){let f=0|e[z];if(2&f&&2048&f&&!(n!=null&&n.Ka))throw Error();const h=Hi(f),d=(g,v)=>{if(Hn(e,g,h)!=null){if((n==null?void 0:n.Qa)===1)return;throw Error()}v!=null&&(f=Ve(e,f,g,v,h)),delete s[g]};t==null?M1(r,0|r[z],(g,v)=>{d(g,v)}):d(t,Hn(r,t,h))}}}}function E5(e){const t=(e=Sh(e))[0].g;if(e=e[1]){const n=ju(e),a=li(Is,Gu,Hu,e).T;return(i,l,r)=>t(i,l,r,a,n)}return t}function Js(e,t,n){e[t]=n.h}function Ws(e,t,n,a){let i,l;const r=n.h;e[t]=(s,c,u)=>r(s,c,u,l||(l=li(Zs,Js,Ws,a).T),i||(i=_h(a)))}function _h(e){let t=e[yh];if(!t){const n=li(Zs,Js,Ws,e);t=(a,i)=>xh(a,i,n),e[yh]=t}return t}function xh(e,t,n){M1(e,0|e[z],(a,i)=>{if(i!=null){var l=function(r,s){var c=r[s];if(c)return c;if((c=r.ba)&&(c=c[s])){var u=(c=Sh(c))[0].h;if(c=c[1]){const f=_h(c),h=li(Zs,Js,Ws,c).T;c=r.ma?bh(h,f):(d,g,v)=>u(d,g,v,h,f)}else c=u;return r[s]=c}}(n,a);l?l(t,i,a):a<500||ki(nu,3)}}),(e=ks(e))&&Ls(e,(a,i,l)=>{for(Wi(t,t.g.end()),a=0;a<l.length;a++)Wi(t,eu(l[a])||new Uint8Array(0))})}const _5=At(0);function Pi(e,t){if(Array.isArray(t)){var n=0|t[z];if(4&n)return t;for(var a=0,i=0;a<t.length;a++){const l=e(t[a]);l!=null&&(t[i++]=l)}return i<a&&(t.length=i),(e=-1537&(5|n))!==n&&je(t,e),2&e&&Object.freeze(t),t}}function lt(e,t,n){return new Ri(e,t,n)}function $i(e,t,n){return new Ri(e,t,n)}function Xe(e,t,n){Ve(e,0|e[z],t,n,Hi(0|e[z]))}var x5=Ks(function(e,t,n,a,i){if(e.h!==2)return!1;if(e=hn(e=wr(e,Pa([void 0,void 0],a),i)),i=Hi(a=0|t[z]),2&a)throw Error();let l=Hn(t,n,i);if(l instanceof Gn)2&l.J?(l=l.V(),l.push(e),Ve(t,a,n,l,i)):l.Ma(e);else if(Array.isArray(l)){var r=0|l[z];8192&r||je(l,r|=8192),2&r&&(l=W1(l),Ve(t,a,n,l,i)),l.push(e)}else Ve(t,a,n,rr([e]),i);return!0},function(e,t,n,a,i){if(t instanceof Gn)t.forEach((l,r)=>{Xs(e,n,Pa([r,l],a),i)});else if(Array.isArray(t)){for(let l=0;l<t.length;l++){const r=t[l];Array.isArray(r)&&Xs(e,n,Pa(r,a),i)}rr(t)}});function Ah(e,t,n){(t=xn(t))!=null&&(It(e,n,5),e=e.g,lu(t),Du(e))}function Th(e,t,n){if(t=function(a){if(a==null)return a;const i=typeof a;if(i==="bigint")return String(or(64,a));if(fr(a)){if(i==="string")return H1(a);if(i==="number")return uu(a)}}(t),t!=null&&(typeof t=="string"&&uh(t),t!=null))switch(It(e,n,0),typeof t){case"number":e=e.g,ji(t),Ii(e,me,Oe);break;case"bigint":n=BigInt.asUintN(64,t),n=new Cu(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),Ii(e.g,n.h,n.g);break;default:n=uh(t),Ii(e.g,n.h,n.g)}}function Nh(e,t,n){(t=qi(t))!=null&&t!=null&&(It(e,n,0),Fs(e.g,t))}function Mh(e,t,n){(t=U1(t))!=null&&(It(e,n,0),e.g.g.push(t?1:0))}function Ch(e,t,n){(t=Pe(t))!=null&&Ys(e,n,u1(t))}function Dh(e,t,n,a,i){Xs(e,n,Eh(t,a),i)}function Oh(e,t,n){(t=t==null||typeof t=="string"||t instanceof En?t:void 0)!=null&&Ys(e,n,Au(t,!0).buffer)}function zh(e,t,n){return(e.h===5||e.h===2)&&(t=Qi(t,0|t[z],n),e.h==2?Vs(e,Hs,t):t.push(Hs(e.g)),!0)}var ze=lt(function(e,t,n){return e.h===5&&(Xe(t,n,Hs(e.g)),!0)},Ah,Qs),A5=$i(zh,function(e,t,n){if((t=Pi(xn,t))!=null)for(let r=0;r<t.length;r++){var a=e,i=n,l=t[r];l!=null&&(It(a,i,5),a=a.g,lu(l),Du(a))}},Qs),Vu=$i(zh,function(e,t,n){if((t=Pi(xn,t))!=null&&t.length){It(e,n,2),Ji(e.g,4*t.length);for(let a=0;a<t.length;a++)n=e.g,lu(t[a]),Du(n)}},Qs),T5=lt(function(e,t,n){return e.h===5&&(Xe(t,n,(e=Hs(e.g))===0?void 0:e),!0)},Ah,Qs),ga=lt(function(e,t,n){return Rc?(e.h!==0?e=!1:(Xe(t,n,Zi(e.g,k1)),e=!0),e):e.h===0&&(Xe(t,n,Zi(e.g,su)),!0)},Th,hh),qu=lt(function(e,t,n){return Rc?(e.h!==0?t=!1:(Xe(t,n,(e=Zi(e.g,k1))===_5?void 0:e),t=!0),t):e.h===0&&(Xe(t,n,(e=Zi(e.g,su))===0?void 0:e),!0)},Th,hh),N5=lt(function(e,t,n){return Rc?(e.h!==0?e=!1:(Xe(t,n,Zi(e.g,J6)),e=!0),e):e.h===0&&(Xe(t,n,Zi(e.g,ru)),!0)},function(e,t,n){if(t=function(a){if(a==null)return a;var i=typeof a;if(i==="bigint")return String(W6(64,a));if(fr(a)){if(i==="string")return i=Vi(Number(a)),Ra(i)&&i>=0?a=String(i):((i=a.indexOf("."))!==-1&&(a=a.substring(0,i)),(i=a[0]!=="-"&&((i=a.length)<20||i===20&&a<="18446744073709551615"))||(Ds(a),a=sr(me,Oe))),a;if(i==="number")return(a=Vi(a))>=0&&Ra(a)||(ji(a),a=ru(me,Oe)),a}}(t),t!=null&&(typeof t=="string"&&ch(t),t!=null))switch(It(e,n,0),typeof t){case"number":e=e.g,ji(t),Ii(e,me,Oe);break;case"bigint":n=BigInt.asUintN(64,t),n=new Mu(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),Ii(e.g,n.h,n.g);break;default:n=ch(t),Ii(e.g,n.h,n.g)}},p5),Qe=lt(function(e,t,n){return e.h===0&&(Xe(t,n,ha(e.g)),!0)},Nh,Uu),mr=$i(function(e,t,n){return(e.h===0||e.h===2)&&(t=Qi(t,0|t[z],n),e.h==2?Vs(e,ha,t):t.push(ha(e.g)),!0)},function(e,t,n){if((t=Pi(qi,t))!=null&&t.length){n=Ou(e,n);for(let a=0;a<t.length;a++)Fs(e.g,t[a]);zu(e,n)}},Uu),el=lt(function(e,t,n){return e.h===0&&(Xe(t,n,(e=ha(e.g))===0?void 0:e),!0)},Nh,Uu),Te=lt(function(e,t,n){return e.h===0&&(Xe(t,n,Tu(e.g)),!0)},Mh,fh),ri=lt(function(e,t,n){return e.h===0&&(Xe(t,n,(e=Tu(e.g))===!1?void 0:e),!0)},Mh,fh),it=$i(function(e,t,n){return e.h===2&&(e=Nu(e),Qi(t,0|t[z],n).push(e),!0)},function(e,t,n){if((t=Pi(Pe,t))!=null)for(let r=0;r<t.length;r++){var a=e,i=n,l=t[r];l!=null&&Ys(a,i,u1(l))}},Lu),wa=lt(function(e,t,n){return e.h===2&&(Xe(t,n,(e=Nu(e))===""?void 0:e),!0)},Ch,Lu),se=lt(function(e,t,n){return e.h===2&&(Xe(t,n,Nu(e)),!0)},Ch,Lu),Ke=function(e,t,n=ku){return new Ri(e,t,n)}(function(e,t,n,a,i){return e.h===2&&(a=Pa(void 0,a),Qi(t,0|t[z],n).push(a),wr(e,a,i),!0)},function(e,t,n,a,i){if(Array.isArray(t)){for(let l=0;l<t.length;l++)Dh(e,t[l],n,a,i);1&(e=0|t[z])||je(t,1|e)}}),Ne=Ks(function(e,t,n,a,i,l){if(e.h!==2)return!1;let r=0|t[z];return R1(t,r,l,n,Hi(r)),wr(e,t=_u(t,a,n),i),!0},Dh),kh=lt(function(e,t,n){return e.h===2&&(Xe(t,n,oh(e)),!0)},Oh,gh),M5=$i(function(e,t,n){return(e.h===0||e.h===2)&&(t=Qi(t,0|t[z],n),e.h==2?Vs(e,qn,t):t.push(qn(e.g)),!0)},function(e,t,n){if((t=Pi(B1,t))!=null)for(let r=0;r<t.length;r++){var a=e,i=n,l=t[r];l!=null&&(It(a,i,0),Ji(a.g,l))}},dh),C5=lt(function(e,t,n){return e.h===0&&(Xe(t,n,(e=qn(e.g))===0?void 0:e),!0)},function(e,t,n){(t=B1(t))!=null&&t!=null&&(It(e,n,0),Ji(e.g,t))},dh),Nt=lt(function(e,t,n){return e.h===0&&(Xe(t,n,ha(e.g)),!0)},function(e,t,n){(t=qi(t))!=null&&(t=parseInt(t,10),It(e,n,0),Fs(e.g,t))},wh);class D5{constructor(t,n){var a=Mt;this.g=t,this.h=n,this.m=J,this.j=B,this.defaultValue=void 0,this.l=a.Oa!=null?C1:void 0}register(){Ns(this)}}function Nn(e,t){return new D5(e,t)}function ma(e,t){return(n,a)=>{{const l={ea:!0};a&&Object.assign(l,a),n=lh(n,void 0,void 0,l);try{const r=new e,s=r.v;ju(t)(s,n);var i=r}finally{rh(n)}}return i}}function Rs(e){return function(){const t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const r=this.g;return this.g=[],r}}}};xh(this.v,t,li(Zs,Js,Ws,e)),Wi(t,t.g.end());const n=new Uint8Array(t.h),a=t.l,i=a.length;let l=0;for(let r=0;r<i;r++){const s=a[r];n.set(s,l),l+=s.length}return t.l=[n],n}}var Lh=class extends k{constructor(e){super(e)}},Uh=[0,wa,lt(function(e,t,n){return e.h===2&&(Xe(t,n,(e=oh(e))===Ia()?void 0:e),!0)},function(e,t,n){if(t!=null){if(t instanceof k){const a=t.Ra;return void(a?(t=a(t),t!=null&&Ys(e,n,Au(t,!0).buffer)):ki(nu,3))}if(Array.isArray(t))return void ki(nu,3)}Oh(e,t,n)},gh)];let Fu,Bh=globalThis.trustedTypes;function Gh(e){var t;return Fu===void 0&&(Fu=function(){let n=null;if(!Bh)return n;try{const a=i=>i;n=Bh.createPolicy("goog#html",{createHTML:a,createScript:a,createScriptURL:a})}catch{}return n}()),e=(t=Fu)?t.createScriptURL(e):e,new class{constructor(n){this.g=n}toString(){return this.g+""}}(e)}function O5(e,...t){if(t.length===0)return Gh(e[0]);let n=e[0];for(let a=0;a<t.length;a++)n+=encodeURIComponent(t[a])+e[a+1];return Gh(n)}var Hh=[0,Qe,Nt,Te,-1,mr,Nt,-1,Te],z5=class extends k{constructor(e){super(e)}},jh=[0,Te,se,Te,Nt,-1,$i(function(e,t,n){return(e.h===0||e.h===2)&&(t=Qi(t,0|t[z],n),e.h==2?Vs(e,g5,t):t.push(ha(e.g)),!0)},function(e,t,n){if((t=Pi(qi,t))!=null&&t.length){n=Ou(e,n);for(let a=0;a<t.length;a++)Fs(e.g,t[a]);zu(e,n)}},wh),se,-1,[0,Te,-1],Nt,Te,-1],Vh=[0,3,Te,-1,2,[0,Qe],[0,Nt,Te],[0,se,-1],[0]],qh=[0,se,-2],Fh=class extends k{constructor(e){super(e)}},Yh=[0],Xh=[0,Qe,Te,1,Te,-4],Mt=class extends k{constructor(e){super(e,2)}},qe={};qe[336783863]=[0,se,Te,-1,Qe,[0,[1,2,3,4,5,6,7,8,9],Ne,Yh,Ne,jh,Ne,qh,Ne,Xh,Ne,Hh,Ne,[0,se,-2],Ne,[0,se,Nt],Ne,Vh,Ne,[0,Nt,-1,Te]],[0,se],Te,[0,[1,3],[2,4],Ne,[0,mr],-1,Ne,[0,it],-1,Ke,[0,se,-1]],se];var Qh=[0,qu,-1,ri,-3,qu,mr,wa,el,qu,-1,ri,el,ri,-2,wa];function he(e,t){Gs(e,3,t)}function K(e,t){Gs(e,4,t)}var dt=class extends k{constructor(e){super(e,500)}o(e){return B(this,0,7,e)}},yr=[-1,{}],Kh=[0,se,1,yr],Zh=[0,se,it,yr];function Jt(e,t){xu(e,1,dt,t)}function ye(e,t){Gs(e,10,t)}function W(e,t){Gs(e,15,t)}var Ct=class extends k{constructor(e){super(e,500)}o(e){return B(this,0,1001,e)}},Ih=[-500,Ke,[-500,wa,-1,it,-3,[-2,qe,Te],Ke,Uh,el,-1,Kh,Zh,Ke,[0,wa,ri],wa,Qh,el,it,987,it],4,Ke,[-500,se,-1,[-1,{}],998,se],Ke,[-500,se,it,-1,[-2,{},Te],997,it,-1],el,Ke,[-500,se,it,yr,998,it],it,el,Kh,Zh,Ke,[0,wa,-1,yr],it,-2,Qh,wa,-1,ri,[0,ri,C5],978,yr,Ke,Uh];Ct.prototype.g=Rs(Ih);var k5=ma(Ct,Ih),L5=class extends k{constructor(e){super(e)}},Jh=class extends k{constructor(e){super(e)}g(){return jn(this,L5,1)}},Wh=[0,Ke,[0,Qe,ze,se,-1]],Ps=ma(Jh,Wh),U5=class extends k{constructor(e){super(e)}},B5=class extends k{constructor(e){super(e)}},Yu=class extends k{constructor(e){super(e)}l(){return J(this,U5,2)}g(){return jn(this,B5,5)}},Rh=ma(class extends k{constructor(e){super(e)}},[0,it,mr,Vu,[0,Nt,[0,Qe,-3],[0,ze,-3],[0,Qe,-1,[0,Ke,[0,Qe,-2]]],Ke,[0,ze,-1,se,ze]],se,-1,ga,Ke,[0,Qe,ze],it,ga]),Ph=class extends k{constructor(e){super(e)}},tl=ma(class extends k{constructor(e){super(e)}},[0,Ke,[0,ze,-4]]),$h=class extends k{constructor(e){super(e)}},pr=ma(class extends k{constructor(e){super(e)}},[0,Ke,[0,ze,-4]]),G5=class extends k{constructor(e){super(e)}},H5=[0,Qe,-1,Vu,Nt],e0=class extends k{constructor(e){super(e)}};e0.prototype.g=Rs([0,ze,-4,ga]);var j5=class extends k{constructor(e){super(e)}},V5=ma(class extends k{constructor(e){super(e)}},[0,Ke,[0,1,Qe,se,Wh],ga]),t0=class extends k{constructor(e){super(e)}},q5=class extends k{constructor(e){super(e)}na(){const e=de(this,1,void 0,void 0,J1);return e??Ia()}},F5=class extends k{constructor(e){super(e)}},n0=[1,2],Y5=ma(class extends k{constructor(e){super(e)}},[0,Ke,[0,n0,Ne,[0,Vu],Ne,[0,kh],Qe,se],ga]),Xu=class extends k{constructor(e){super(e)}},a0=[0,se,Qe,ze,it,-1],i0=class extends k{constructor(e){super(e)}},X5=[0,Te,-1],l0=class extends k{constructor(e){super(e)}},$s=[1,2,3,4,5,6],eo=class extends k{constructor(e){super(e)}g(){return de(this,1,void 0,void 0,J1)!=null}l(){return Pe(de(this,2))!=null}},ve=class extends k{constructor(e){super(e)}g(){return U1(de(this,2))??!1}},r0=[0,kh,se,[0,Qe,ga,-1],[0,N5,ga]],ke=[0,r0,Te,[0,$s,Ne,Xh,Ne,jh,Ne,Hh,Ne,Yh,Ne,qh,Ne,Vh],Nt],to=class extends k{constructor(e){super(e)}},Qu=[0,ke,ze,-1,Qe],Q5=Nn(502141897,to);qe[502141897]=Qu;var K5=ma(class extends k{constructor(e){super(e)}},[0,[0,Nt,-1,A5,M5],H5]),s0=class extends k{constructor(e){super(e)}},o0=class extends k{constructor(e){super(e)}},Ku=[0,ke,ze,[0,ke],Te],Z5=Nn(508968150,o0);qe[508968150]=[0,ke,Qu,Ku,ze,[0,[0,r0]]],qe[508968149]=Ku;var nl=class extends k{constructor(e){super(e)}l(){return J(this,Xu,2)}g(){ne(this,2)}},c0=[0,ke,a0];qe[478825465]=c0;var I5=class extends k{constructor(e){super(e)}},u0=class extends k{constructor(e){super(e)}},Zu=class extends k{constructor(e){super(e)}},Iu=class extends k{constructor(e){super(e)}},f0=class extends k{constructor(e){super(e)}},d0=[0,ke,[0,ke],c0,-1],h0=[0,ke,ze,Qe],Ju=[0,ke,ze],g0=[0,ke,h0,Ju,ze],J5=Nn(479097054,f0);qe[479097054]=[0,ke,g0,d0],qe[463370452]=d0,qe[464864288]=h0;var W5=Nn(462713202,Iu);qe[462713202]=g0,qe[474472470]=Ju;var R5=class extends k{constructor(e){super(e)}},w0=class extends k{constructor(e){super(e)}},m0=class extends k{constructor(e){super(e)}},y0=class extends k{constructor(e){super(e)}},Wu=[0,ke,ze,-1,Qe],Ru=[0,ke,ze,Te];y0.prototype.g=Rs([0,ke,Ju,[0,ke],Qu,Ku,Wu,Ru]);var p0=class extends k{constructor(e){super(e)}},P5=Nn(456383383,p0);qe[456383383]=[0,ke,a0];var v0=class extends k{constructor(e){super(e)}},$5=Nn(476348187,v0);qe[476348187]=[0,ke,X5];var b0=class extends k{constructor(e){super(e)}},S0=class extends k{constructor(e){super(e)}},E0=[0,Nt,-1],ey=Nn(458105876,class extends k{constructor(e){super(e)}g(){let e;var t=this.v;const n=0|t[z];return e=xt(this,n),t=function(a,i,l,r){var s=S0;!r&&Yi(a)&&(l=0|(i=a.v)[z]);var c=Hn(i,2);if(a=!1,c==null){if(r)return Y1();c=[]}else if(c.constructor===Gn){if(!(2&c.J)||r)return c;c=c.V()}else Array.isArray(c)?a=!!(2&(0|c[z])):c=[];if(r){if(!c.length)return Y1();a||(a=!0,lr(c))}else a&&(a=!1,rr(c),c=W1(c));return!a&&32&l&&ir(c,32),l=Ve(i,l,2,r=new Gn(c,s,e5,void 0)),a||$a(i,l),r}(this,t,n,e),!e&&S0&&(t.ra=!0),t}});qe[458105876]=[0,E0,x5,[!0,ga,[0,se,-1,it]],[0,mr,Te,Nt]];var Pu=class extends k{constructor(e){super(e)}},_0=Nn(458105758,Pu);qe[458105758]=[0,ke,se,E0];var $u=class extends k{constructor(e){super(e)}},x0=[0,T5,-1,ri],ty=class extends k{constructor(e){super(e)}},A0=class extends k{constructor(e){super(e)}},ef=[1,2];A0.prototype.g=Rs([0,ef,Ne,x0,Ne,[0,Ke,x0]]);var T0=class extends k{constructor(e){super(e)}},ny=Nn(443442058,T0);qe[443442058]=[0,ke,se,Qe,ze,it,-1,Te,ze],qe[514774813]=Wu;var N0=class extends k{constructor(e){super(e)}},ay=Nn(516587230,N0);function tf(e,t){return t=t?t.clone():new Xu,e.displayNamesLocale!==void 0?ne(t,1,dr(e.displayNamesLocale)):e.displayNamesLocale===void 0&&ne(t,1),e.maxResults!==void 0?Vn(t,2,e.maxResults):"maxResults"in e&&ne(t,2),e.scoreThreshold!==void 0?U(t,3,e.scoreThreshold):"scoreThreshold"in e&&ne(t,3),e.categoryAllowlist!==void 0?Bs(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&ne(t,4),e.categoryDenylist!==void 0?Bs(t,5,e.categoryDenylist):"categoryDenylist"in e&&ne(t,5),t}function M0(e){const t=Number(e);return Number.isSafeInteger(t)?t:String(e)}function nf(e,t=-1,n=""){return{categories:e.map(a=>({index:Zt(a,1)??0??-1,score:Ae(a,2)??0,categoryName:Pe(de(a,3))??""??"",displayName:Pe(de(a,4))??""??""})),headIndex:t,headName:n}}function iy(e){const t={classifications:jn(e,j5,1).map(n=>{var a;return nf(((a=J(n,Jh,4))==null?void 0:a.g())??[],Zt(n,2)??0,Pe(de(n,3))??"")})};return function(n){return $6(Pc?de(n,2,void 0,void 0,zs):de(n,2))}(e)!=null&&(t.timestampMs=M0(th(e))),t}function C0(e){var r,s;var t=ti(e,3,xn,ei()),n=ti(e,2,qi,ei()),a=ti(e,1,Pe,ei()),i=ti(e,9,Pe,ei());const l={categories:[],keypoints:[]};for(let c=0;c<t.length;c++)l.categories.push({score:t[c],index:n[c]??-1,categoryName:a[c]??"",displayName:i[c]??""});if((t=(r=J(e,Yu,4))==null?void 0:r.l())&&(l.boundingBox={originX:Zt(t,1,fa)??0,originY:Zt(t,2,fa)??0,width:Zt(t,3,fa)??0,height:Zt(t,4,fa)??0,angle:0}),(s=J(e,Yu,4))==null?void 0:s.g().length)for(const c of J(e,Yu,4).g())l.keypoints.push({x:de(c,1,void 0,fa,xn)??0,y:de(c,2,void 0,fa,xn)??0,score:de(c,4,void 0,fa,xn)??0,label:Pe(de(c,3,void 0,fa))??""});return l}function no(e){const t=[];for(const n of jn(e,$h,1))t.push({x:Ae(n,1)??0,y:Ae(n,2)??0,z:Ae(n,3)??0,visibility:Ae(n,4)??0});return t}function vr(e){const t=[];for(const n of jn(e,Ph,1))t.push({x:Ae(n,1)??0,y:Ae(n,2)??0,z:Ae(n,3)??0,visibility:Ae(n,4)??0});return t}function D0(e){return Array.from(e,t=>t>127?t-256:t)}function O0(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let n=0,a=0,i=0;for(let l=0;l<e.length;l++)n+=e[l]*t[l],a+=e[l]*e[l],i+=t[l]*t[l];if(a<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(a*i)}let ao;qe[516587230]=[0,ke,Wu,Ru,ze],qe[518928384]=Ru;const ly=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function z0(){if(ao===void 0)try{await WebAssembly.instantiate(ly),ao=!0}catch{ao=!1}return ao}async function br(e,t=O5``){const n=await z0()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${n}.js`,wasmBinaryPath:`${t}/${e}_${n}.wasm`}}var si=class{};function k0(){var e=navigator;return typeof OffscreenCanvas<"u"&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}async function L0(e){if(typeof importScripts!="function"){const t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise((n,a)=>{t.addEventListener("load",()=>{n()},!1),t.addEventListener("error",i=>{a(i)},!1),document.body.appendChild(t)})}try{importScripts(e.toString())}catch(t){if(!(t instanceof TypeError))throw t;await self.import(e.toString())}}function U0(e){return e.videoWidth!==void 0?[e.videoWidth,e.videoHeight]:e.naturalWidth!==void 0?[e.naturalWidth,e.naturalHeight]:e.displayWidth!==void 0?[e.displayWidth,e.displayHeight]:[e.width,e.height]}function L(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function B0(e,t,n){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(n?e.i._bindTextureToStream(n):e.i._bindTextureToCanvas(),!(n=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);const[a,i]=U0(t);return!e.l||a===e.i.canvas.width&&i===e.i.canvas.height||(e.i.canvas.width=a,e.i.canvas.height=i),[a,i]}function G0(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const a=new Uint32Array(t.length);for(let i=0;i<t.length;i++)a[i]=e.i.stringToNewUTF8(t[i]);t=e.i._malloc(4*a.length),e.i.HEAPU32.set(a,t>>2),n(t);for(const i of a)e.i._free(i);e.i._free(t)}function Mn(e,t,n){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=n}function ya(e,t,n){let a=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(i,l,r)=>{l?(n(a,r),a=[]):a.push(i)}}si.forVisionTasks=function(e){return br("vision",e)},si.forTextTasks=function(e){return br("text",e)},si.forGenAiExperimentalTasks=function(e){return br("genai_experimental",e)},si.forGenAiTasks=function(e){return br("genai",e)},si.forAudioTasks=function(e){return br("audio",e)},si.isSimdSupported=function(){return z0()};async function ry(e,t,n,a){return e=await(async(i,l,r,s,c)=>{if(l&&await L0(l),!self.ModuleFactory||r&&(await L0(r),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&c&&((l=self.Module).locateFile=c.locateFile,c.mainScriptUrlOrBlob&&(l.mainScriptUrlOrBlob=c.mainScriptUrlOrBlob)),c=await self.ModuleFactory(self.Module||c),self.ModuleFactory=self.Module=void 0,new i(c,s)})(e,n.wasmLoaderPath,n.assetLoaderPath,t,{locateFile:i=>i.endsWith(".wasm")?n.wasmBinaryPath.toString():n.assetBinaryPath&&i.endsWith(".data")?n.assetBinaryPath.toString():i}),await e.o(a),e}function af(e,t){const n=J(e.baseOptions,eo,1)||new eo;typeof t=="string"?(ne(n,2,dr(t)),ne(n,1)):t instanceof Uint8Array&&(ne(n,1,au(t,!1)),ne(n,2)),B(e.baseOptions,0,1,n)}function H0(e){try{const t=e.H.length;if(t===1)throw Error(e.H[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.H.map(n=>n.message).join(", "))}finally{e.H=[]}}function D(e,t){e.C=Math.max(e.C,t)}function io(e,t){e.B=new dt,Tt(e.B,2,"PassThroughCalculator"),he(e.B,"free_memory"),K(e.B,"free_memory_unused_out"),ye(t,"free_memory"),Jt(t,e.B)}function al(e,t){he(e.B,t),K(e.B,t+"_unused_out")}function lo(e){e.g.addBoolToStream(!0,"free_memory",e.C)}var lf=class{constructor(e){this.g=e,this.H=[],this.C=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){var n,a,i,l,r,s;if(t){const c=e.baseOptions||{};if((n=e.baseOptions)!=null&&n.modelAssetBuffer&&((a=e.baseOptions)!=null&&a.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((i=J(this.baseOptions,eo,1))!=null&&i.g()||(l=J(this.baseOptions,eo,1))!=null&&l.l()||(r=e.baseOptions)!=null&&r.modelAssetBuffer||(s=e.baseOptions)!=null&&s.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(u,f){let h=J(u.baseOptions,l0,3);if(!h){var d=h=new l0,g=new Fh;gr(d,4,$s,g)}"delegate"in f&&(f.delegate==="GPU"?(f=h,d=new z5,gr(f,2,$s,d)):(f=h,d=new Fh,gr(f,4,$s,d))),B(u.baseOptions,0,3,h)}(this,c),c.modelAssetPath)return fetch(c.modelAssetPath.toString()).then(u=>{if(u.ok)return u.arrayBuffer();throw Error(`Failed to fetch model: ${c.modelAssetPath} (${u.status})`)}).then(u=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(u),!0,!1,!1),af(this,"/model.dat"),this.m(),this.L()});if(c.modelAssetBuffer instanceof Uint8Array)af(this,c.modelAssetBuffer);else if(c.modelAssetBuffer)return async function(u){const f=[];for(var h=0;;){const{done:d,value:g}=await u.read();if(d)break;f.push(g),h+=g.length}if(f.length===0)return new Uint8Array(0);if(f.length===1)return f[0];u=new Uint8Array(h),h=0;for(const d of f)u.set(d,h),h+=d.length;return u}(c.modelAssetBuffer).then(u=>{af(this,u),this.m(),this.L()})}return this.m(),this.L(),Promise.resolve()}L(){}ca(){let e;if(this.g.ca(t=>{e=k5(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((n,a)=>{this.H.push(Error(a))}),this.g.Ja(),this.g.setGraph(e,t),this.B=void 0,H0(this)}finishProcessing(){this.g.finishProcessing(),H0(this)}close(){this.B=void 0,this.g.closeGraph()}};function pa(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}lf.prototype.close=lf.prototype.close;class sy{constructor(t,n,a,i){this.g=t,this.h=n,this.m=a,this.l=i}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function j0(e,t,n){const a=e.g;if(n=pa(a.createShader(n),"Failed to create WebGL shader"),a.shaderSource(n,t),a.compileShader(n),!a.getShaderParameter(n,a.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${a.getShaderInfoLog(n)}`);return a.attachShader(e.h,n),n}function V0(e,t){const n=e.g,a=pa(n.createVertexArray(),"Failed to create vertex array");n.bindVertexArray(a);const i=pa(n.createBuffer(),"Failed to create buffer");n.bindBuffer(n.ARRAY_BUFFER,i),n.enableVertexAttribArray(e.O),n.vertexAttribPointer(e.O,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);const l=pa(n.createBuffer(),"Failed to create buffer");return n.bindBuffer(n.ARRAY_BUFFER,l),n.enableVertexAttribArray(e.L),n.vertexAttribPointer(e.L,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.bindVertexArray(null),new sy(n,a,i,l)}function rf(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function oy(e,t,n,a){return rf(e,t),e.h||(e.m(),e.D()),n?(e.u||(e.u=V0(e,!0)),n=e.u):(e.A||(e.A=V0(e,!1)),n=e.A),t.useProgram(e.h),n.bind(),e.l(),e=a(),n.g.bindVertexArray(null),e}function q0(e,t,n){return rf(e,t),e=pa(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function F0(e,t,n){rf(e,t),e.B||(e.B=pa(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.B),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0)}function cy(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var Y0=class{H(){return`
|
|
1
|
+
(function(ja,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],b):(ja=typeof globalThis<"u"?globalThis:ja||self,b(ja.InterviewWidget={},ja.jsxRuntime,ja.React,ja.ReactDOM))})(this,function(ja,b,j,Av){"use strict";var CM=Object.defineProperty;var DM=(ja,b,j)=>b in ja?CM(ja,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):ja[b]=j;var tu=(ja,b,j)=>DM(ja,typeof b!="symbol"?b+"":b,j);var _v=typeof document<"u"?document.currentScript:null;const xv={},Lo={api:{baseUrl:"/api",retryConfig:{attempts:3,backoff:"exponential",baseDelay:1e3}},ui:{baseColor:"#3B82F6",borderRadius:"8px"},interview:{allow_answer_editing:!0,timers:{thinkingDuration:30,answeringDuration:120,editingDuration:30},stt:{provider:"groq",model:"whisper-large-v3-turbo",language:"en"},tts:{provider:"piper"},proctoring:{enabled:!0,gazeAnalysisEnabled:!0}}},Mv="iw-storage";function TE(){if(!(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:_v&&_v.tagName.toUpperCase()==="SCRIPT"&&_v.src||new URL("widget.umd.js",document.baseURI).href}<"u"&&(xv!=null&&xv.VITE_IW_SECRET)))return typeof process<"u"&&process.env.NEXT_PUBLIC_IW_SECRET?process.env.NEXT_PUBLIC_IW_SECRET:typeof window<"u"&&window.__IW_SECRET__?window.__IW_SECRET__:"proctoring-data-seed"}const U6=TE(),hy=30,AE={SCREENSHOT:"screenshot"},Cv="AES-GCM",Dv=12;async function B6(i){const f=new TextEncoder().encode(i),h=await crypto.subtle.digest("SHA-256",f);return crypto.subtle.importKey("raw",h,Cv,!1,["encrypt","decrypt"])}function _E(){return crypto.getRandomValues(new Uint8Array(Dv))}async function xE(i,c="default-seed"){try{const f=typeof i=="string"?i:JSON.stringify(i),y=new TextEncoder().encode(f),w=await B6(c),E=_E(),A=await crypto.subtle.encrypt({name:Cv,iv:E},w,y),M=new Uint8Array(E.length+A.byteLength);return M.set(new Uint8Array(E),0),M.set(new Uint8Array(A),E.length),btoa(String.fromCharCode(...Array.from(M)))}catch(f){throw console.error("Encryption failed:",f),new Error("Failed to encrypt data")}}async function ME(i,c="default-seed"){try{const f=atob(i),h=new Uint8Array(f.length);for(let G=0;G<f.length;G++)h[G]=f.charCodeAt(G);const y=h.slice(0,Dv),w=h.slice(Dv),E=await B6(c),A=await crypto.subtle.decrypt({name:Cv,iv:y},E,w);return new TextDecoder().decode(A)}catch(f){throw console.error("Decryption failed:",f),new Error("Failed to decrypt data")}}async function CE(i,c="default-seed"){return xE(i,c)}async function DE(i,c="default-seed"){const f=await ME(i,c);try{return JSON.parse(f)}catch{return f}}const k2=j.createContext(null),OE=async()=>{try{const i=sessionStorage.getItem(Mv);if(i){const f=(await DE(i,U6)).state;return{logViolations:(f==null?void 0:f.logViolations)||[],totalViolations:(f==null?void 0:f.totalViolations)||0,gazeViolationCounters:(f==null?void 0:f.gazeViolationCounters)||{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:(f==null?void 0:f.referenceSet)??!1,referenceRef:(f==null?void 0:f.referenceRef)??{x:.5,y:.5,noseX:.5,noseY:.5}}}}catch(i){console.error("Failed to load proctoring data from session storage:",i)}return{logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}},X2=async i=>{try{const c=await CE({state:i,version:0},U6);sessionStorage.setItem(Mv,c)}catch(c){console.error("Failed to save proctoring data to session storage:",c)}},zE=({children:i})=>{const c=j.useRef({logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}),f=j.useRef(new Set);j.useEffect(()=>{OE().then(q=>{c.current=q,h()})},[]);const h=j.useCallback(()=>{f.current.forEach(q=>q())},[]),y=j.useCallback(q=>(f.current.add(q),()=>{f.current.delete(q)}),[]),w=j.useCallback(()=>c.current,[]),E=j.useCallback(q=>{c.current={...c.current,logViolations:[...c.current.logViolations,q],totalViolations:c.current.totalViolations+1},X2(c.current),h()},[h]),A=j.useCallback(q=>{const k={...c.current.gazeViolationCounters};q==="looking_away"&&(k.lookingAwayCount+=1),q==="no_face_detected"&&(k.noFaceDetectedCount+=1),q==="multiple_faces"&&(k.multipleFacesCount+=1),k.totalGazeViolations=k.lookingAwayCount+k.noFaceDetectedCount+k.multipleFacesCount,c.current={...c.current,gazeViolationCounters:k},X2(c.current),h()},[h]),M=j.useCallback(()=>{c.current={...c.current,logViolations:[],totalViolations:0},X2(c.current),h()},[h]),G=j.useCallback(()=>{c.current={...c.current,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0}},X2(c.current),h()},[h]),U=j.useCallback((q,k)=>{c.current={...c.current,referenceSet:q,referenceRef:k},X2(c.current),h()},[h]),N=j.useMemo(()=>({getState:w,addViolation:E,clearViolations:M,subscribe:y,incrementGazeViolation:A,clearGazeViolationCounters:G,setReferenceData:U}),[w,E,M,y,A,G,U]);return b.jsx(k2.Provider,{value:N,children:i})},H6=()=>{const i=j.useContext(k2);if(!i)throw new Error("useProctoringStore must be used within a ProctoringProvider");const c=j.useSyncExternalStore(i.subscribe,i.getState,i.getState);return{logViolations:c.logViolations,totalViolations:c.totalViolations,addViolation:i.addViolation,clearViolations:i.clearViolations,gazeViolationCounters:c.gazeViolationCounters,referenceSet:c.referenceSet,referenceRef:c.referenceRef,incrementGazeViolation:i.incrementGazeViolation,clearGazeViolationCounters:i.clearGazeViolationCounters,setReferenceData:i.setReferenceData}},NE=()=>{const i=j.useContext(k2);if(!i)throw new Error("useViolations must be used within a ProctoringProvider");return j.useSyncExternalStore(i.subscribe,()=>i.getState().logViolations,()=>i.getState().logViolations)},UE=()=>{const i=j.useContext(k2);if(!i)throw new Error("useTotalViolations must be used within a ProctoringProvider");return j.useSyncExternalStore(i.subscribe,()=>i.getState().totalViolations,()=>i.getState().totalViolations)},BE=()=>{const i=j.useContext(k2);if(!i)throw new Error("useProctoringActions must be used within a ProctoringProvider");return{addViolation:i.addViolation,clearViolations:i.clearViolations}},L6=j.createContext(null);function Ov({config:i={},children:c}){var h,y,w,E;const f={api:{...Lo.api,...i.api,retryConfig:{...Lo.api.retryConfig,...(h=i.api)==null?void 0:h.retryConfig}},ui:{...Lo.ui,...i.ui},interview:{...Lo.interview,...i.interview,timers:{...Lo.interview.timers,...(y=i.interview)==null?void 0:y.timers},stt:{...Lo.interview.stt,...(w=i.interview)==null?void 0:w.stt},tts:{...Lo.interview.tts,...(E=i.interview)==null?void 0:E.tts}}};return b.jsx(L6.Provider,{value:f,children:b.jsx(zE,{children:c})})}function my(){const i=j.useContext(L6);if(!i)throw new Error("useInterviewConfig must be used within an InterviewWidgetProvider. Wrap your component tree with <InterviewWidgetProvider config={...}>");return i}function G6(){return my().api||Lo.api}function Q2(){return my().ui||Lo.ui}function zv(){return my().interview||Lo.interview}function HE(i){const c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null}function LE(i,c,f){return"#"+[i,c,f].map(h=>{const y=Math.round(h).toString(16);return y.length===1?"0"+y:y}).join("")}function GE(i,c){const f=HE(i);if(!f)return i;const h=f.r+(255-f.r)*c,y=f.g+(255-f.g)*c,w=f.b+(255-f.b)*c;return LE(h,y,w)}function RE(i){return new Promise(c=>setTimeout(c,i))}function jE(i){return`linear-gradient(to left, ${GE(i,.4)}, ${i})`}const qE=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);function VE(i){try{const c=i.split(".");if(c.length!==3||!c[1])throw new Error("Invalid JWT token");const h=c[1].replace(/-/g,"+").replace(/_/g,"/"),y=h.padEnd(h.length+(4-h.length%4)%4,"="),w=atob(y);return JSON.parse(w)}catch(c){return console.error("Error decoding JWT:",c),null}}const R6=i=>{var c;return!i||typeof i!="string"?"":(c=i.charAt(0))==null?void 0:c.toUpperCase()},Nv=i=>{const c=Math.max(0,Math.floor(i)),f=Math.floor(c/60).toString().padStart(2,"0"),h=(c%60).toString().padStart(2,"0");return`${f}:${h}`},Z2=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),b.jsx("path",{d:"M12 9v4"}),b.jsx("path",{d:"M12 17h.01"})]}),YE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-bolt-icon prefix__lucide-bolt",...i,children:[b.jsx("path",{d:"M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"}),b.jsx("circle",{cx:12,cy:12,r:4})]}),kE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-camera-off-icon prefix__lucide-camera-off",...i,children:[b.jsx("path",{d:"M14.564 14.558a3 3 0 11-4.122-4.121M2 2l20 20"}),b.jsx("path",{d:"M20 20H4a2 2 0 01-2-2V9a2 2 0 012-2h1.997a2 2 0 00.819-.175M9.695 4.024A2 2 0 0110.004 4h3.993a2 2 0 011.76 1.05l.486.9A2 2 0 0018.003 7H20a2 2 0 012 2v7.344"})]}),gy=i=>b.jsx("svg",{width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:b.jsx("path",{d:"M0.75 5.5C0.75 5.5 2.35 6.4125 3.15 7.75C3.15 7.75 5.55 2.5 8.75 0.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),j6=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M12 2a10 10 0 0 1 7.38 16.75"}),b.jsx("path",{d:"M12 6v6l4 2"}),b.jsx("path",{d:"M2.5 8.875a10 10 0 0 0-.5 3"}),b.jsx("path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4"}),b.jsx("path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857"}),b.jsx("path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"})]}),XE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M12 6v6l4 2"}),b.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),q6=i=>b.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",...i,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),V6=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),b.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),QE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),ZE=i=>b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M2.66797 2H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M3.66797 2V3.35359C3.66797 4.18151 4.05252 4.96247 4.70874 5.46726L8.0013 8L11.2938 5.46726C11.9501 4.96247 12.3346 4.18151 12.3346 3.35359V2",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M3.66797 14V12.6464C3.66797 11.8185 4.05252 11.0375 4.70874 10.5327L8.0013 8L11.2938 10.5327C11.9501 11.0375 12.3346 11.8185 12.3346 12.6464V14",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M2.66797 14H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"})]}),Uv=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),Y6=({className:i,...c})=>b.jsx("div",{children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`iw-animate-spin ${i}`,...c,children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M12 6l0 -3"}),b.jsx("path",{d:"M16.25 7.75l2.15 -2.15"}),b.jsx("path",{d:"M18 12l3 0"}),b.jsx("path",{d:"M16.25 16.25l2.15 2.15"}),b.jsx("path",{d:"M12 18l0 3"}),b.jsx("path",{d:"M7.75 16.25l-2.15 2.15"}),b.jsx("path",{d:"M6 12l-3 0"}),b.jsx("path",{d:"M7.75 7.75l-2.15 -2.15"})]})}),JE=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M17 7V11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7Z",stroke:"currentColor",strokeWidth:"1.5"}),b.jsx("path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22M12 22H15M12 22H9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),KE=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M2 2L22 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M4 11C4 15.4183 7.58172 19 12 19M12 19C13.9545 19 15.7454 18.2991 17.1348 17.1348M12 19V22M12 22H15M12 22H9M20 11C20 12.6514 19.4996 14.1859 18.6422 15.4603",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M7 6.98V11C7 13.7614 9.23858 16 12 16C13.1354 16 14.1647 15.6096 15.004 14.972M16.4387 13.244C16.7973 12.5545 17 11.8309 17 11V6.98C17 4.21858 14.7614 2 12 2C10.1312 2 8.53009 2.96527 7.672 4.484",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"})]}),FE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),b.jsx("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),b.jsx("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]}),$E=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),IE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),b.jsx("path",{d:"m9 12 2 2 4-4"})]}),WE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-target-icon prefix__lucide-target",...i,children:[b.jsx("circle",{cx:12,cy:12,r:10}),b.jsx("circle",{cx:12,cy:12,r:6}),b.jsx("circle",{cx:12,cy:12,r:2})]}),PE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-users-icon prefix__lucide-users",...i,children:[b.jsx("path",{d:"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M16 3.128a4 4 0 010 7.744M22 21v-2a4 4 0 00-3-3.87"}),b.jsx("circle",{cx:9,cy:7,r:4})]}),eT=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M11 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5"}),b.jsx("path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),tT=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M2.00195 2L21.9773 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M16.8517 16.8668C16.7225 17.8052 16.4666 18.4659 15.9596 18.9735C14.9357 19.9987 13.2878 19.9987 9.99206 19.9987H8.99329C5.69755 19.9987 4.04967 19.9987 3.02581 18.9735C2.00195 17.9484 2.00195 16.2985 2.00195 12.9987V10.9987C2.00195 7.69885 2.00195 6.04893 3.02581 5.0238C3.36833 4.68086 3.78068 4.45265 4.3012 4.30078",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M8.23633 4.00052C8.47821 4 8.73001 4 8.99223 4H9.99099C13.2868 4 14.9347 4 15.9585 5.02513C16.9823 6.05025 16.9823 7.70017 16.9823 11V12.7574M16.9823 9.23142L19.3019 7.52913C20.773 6.54073 21.449 7.17196 21.6675 7.64847C22.1192 8.92813 21.9769 11.3936 21.9769 14.5417C21.8704 16.555 21.5953 16.7719 21.3138 16.9939L21.3108 16.9962",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),J2={FACE_DETECTED:"face_detected",NO_FACE:"no_face_detected",MULTIPLE_FACES:"multiple_faces",LOOKING_AWAY:"looking_away",CAMERA_ERROR:"camera_error"},k6={[J2.FACE_DETECTED]:{icon:V6,iconColor:"iw-text-green-600",iconBg:"iw-bg-green-50",iconBorder:"iw-border-green-100",title:"All Good",subtitle:"Everything looks normal",description:"Your gaze is properly focused on the screen. Continue with your interview.",buttonText:"Continue"},[J2.NO_FACE]:{icon:kE,iconColor:"iw-text-orange-600",iconBg:"iw-bg-orange-50",iconBorder:"iw-border-orange-100",title:"Face Not Detected",subtitle:"We can't see you in the camera",description:"Please ensure you're positioned properly in front of the camera and that your face is clearly visible.",buttonText:"I Understood"},[J2.MULTIPLE_FACES]:{icon:PE,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Multiple People Detected",subtitle:"More than one person is visible",description:"For interview integrity, please ensure you are alone in the room and only your face is visible to the camera.",buttonText:"I Understood"},[J2.LOOKING_AWAY]:{icon:WE,iconColor:"iw-text-amber-600",iconBg:"iw-bg-amber-50",iconBorder:"iw-border-amber-200/75",title:"Stay Focused",subtitle:"We noticed you looked away from the screen",description:"To ensure interview integrity, please keep your attention on the screen throughout the session.",buttonText:"I Understood"},[J2.CAMERA_ERROR]:{icon:Z2,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Camera Issue",subtitle:"There's a problem with your camera",description:"Please check your camera connection and permissions, then refresh the page to continue.",buttonText:"I Understood"}};function nT(i){var c;if(!navigator.onLine)return{type:"network",message:"No internet connection",retryable:!0,userMessage:"Please check your internet connection and try again."};if(i.name==="AbortError"||(c=i.message)!=null&&c.includes("timeout"))return{type:"timeout",message:"Request timed out",retryable:!0,userMessage:"The request is taking longer than expected. Please try again."};if(i.status){const{status:f}=i;if(f===401||f===403)return{type:"auth",status:f,message:"Authentication failed",retryable:!1,userMessage:"Your session has expired. Please refresh the page."};if(f===429)return{type:"rate-limit",status:f,message:"Too many requests",retryable:!0,userMessage:"Please wait a moment before trying again."};if(f>=500)return{type:"server",status:f,message:`Server error: ${f}`,retryable:!0,userMessage:"Our servers are experiencing issues. Please try again in a few moments."};if(f>=400)return{type:"client",status:f,message:`Client error: ${f}`,retryable:!1,userMessage:"There was an issue with your request. Please check your input."}}return{type:"unknown",message:i.message||"Unknown error occurred",retryable:!0,userMessage:"Something unexpected happened. Please try again.",originalError:i}}async function Is(i,c={},f={attempts:3,backoff:"exponential",baseDelay:1e3,maxDelay:1e4,jitter:!0}){let h;for(let y=1;y<=f.attempts;y++)try{const w=new AbortController,E=setTimeout(()=>w.abort(),6e4),A=await fetch(i,{...c,signal:w.signal});if(clearTimeout(E),A.status>=400&&A.status<500&&A.status!==429)return A;if(!A.ok)throw new Error(`HTTP ${A.status}: ${A.statusText}`);return A}catch(w){h=w;const E=nT(w);if(!E.retryable||y===f.attempts)throw E;const A=aT(y,f);console.warn(`API request failed (attempt ${y}/${f.attempts}), retrying in ${A}ms:`,E.message),await new Promise(M=>setTimeout(M,A))}throw h}function aT(i,c){let f;return c.backoff==="exponential"?f=c.baseDelay*Math.pow(2,i-1):f=c.baseDelay,f=Math.min(f,c.maxDelay),c.jitter&&(f=f*(.5+Math.random()*.5)),Math.round(f)}const Ws={v2:"/v2"},Ps={GENERATE_QUESTION:i=>`${Ws.v2}/interviews/${i}/next-question`,SCREENSHOT_UPLOAD:i=>`${Ws.v2}/interviews/${i}/assets/upload-url`,CONFIRM_UPLOAD:i=>`${Ws.v2}/interviews/assets/${i}/confirm`,TRANSCRIBE_ANSWER:i=>`${Ws.v2}/interviews/${i}/transcribe-answer`,SUBMIT_ANSWER:i=>`${Ws.v2}/interviews/${i}/submit-answer`,EXIT:i=>`${Ws.v2}/interviews/${i}/exit`,CONFIG:i=>`${Ws.v2}/interviews/${i}/config`,TRANSCRIPTION:i=>`${Ws.v2}/interviews/${i}/transcript`};class X6{constructor(c={}){tu(this,"config");this.config=c}updateConfig(c){this.config={...this.config,...c}}getHeaders(){var f;const c={"Content-Type":"application/json"};return(f=this.config)!=null&&f.authToken&&(c.Authorization=`Bearer ${this.config.authToken}`),c}getBaseUrl(){var c;return((c=this.config)==null?void 0:c.baseUrl)||"/api"}async generateQuestion({interviewId:c,isInterviewDone:f=!1}){const h=await Is(`${this.getBaseUrl()}${Ps.GENERATE_QUESTION(c)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({interview_id:c,is_interview_done:f})});if(!h.ok)throw new Error(`Failed to get questions: ${h.status}`);return await h.json()}async submitAnswer({interviewId:c,qnaId:f,answer:h}){const y=await Is(`${this.getBaseUrl()}${Ps.SUBMIT_ANSWER(c)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({qna_id:f,answer_text:h})});if(!y.ok)throw new Error(`Failed to submit answer: ${y.status}`);return await y.json()}async exitInterview(c){const f=await Is(`${this.getBaseUrl()}${Ps.EXIT(c)}`,{method:"POST",headers:this.getHeaders()});if(!f.ok)throw new Error(`Failed to exit interview: ${f.status}`)}async getInterviewConfig(c){const f=await Is(`${this.getBaseUrl()}${Ps.CONFIG(c)}`,{method:"GET",headers:this.getHeaders()});if(!f.ok)throw new Error(`Failed to get interview config: ${f.status}`);return await f.json()}async requestScreenshotUploadUrl(c,f=`screenshot-${Date.now()}.jpeg`){const h=await Is(`${this.getBaseUrl()}${Ps.SCREENSHOT_UPLOAD(c)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({filename:f,mime_type:"image/jpeg",asset_type:AE.SCREENSHOT})});if(!h.ok)throw new Error(`Failed to request screenshot upload URL: ${h.status}`);return await h.json()}async uploadScreenshot(c,f){const h=await fetch(c,{method:"PUT",body:f,headers:{"Content-Type":"image/jpeg"}});if(!h.ok)throw new Error(`Failed to upload screenshot: ${h.status}`)}async confirmScreenshotUpload(c){const f=await Is(`${this.getBaseUrl()}${Ps.CONFIRM_UPLOAD(c)}`,{method:"POST",headers:this.getHeaders()});if(!f.ok)throw new Error(`Failed to confirm screenshot upload: ${f.status}`)}async getInterviewTranscription(c){const f=await Is(`${this.getBaseUrl()}${Ps.TRANSCRIPTION(c)}`,{method:"GET",headers:{...this.getHeaders(),"x-auth-token":"interview-engine-api-key"}});if(!f.ok)throw new Error(`Failed to get interview transcription: ${f.status}`);return await f.json()}}const lT=new X6,iT=({gazeAnalysisEnabled:i,isModelLoaded:c,stats:f,statusMessage:h,loadingProgress:y})=>b.jsx("div",{className:"iw-w-full",children:b.jsxs("div",{className:"iw-border-strock iw-rounded-md iw-border iw-bg-gray-50 iw-p-4",children:[b.jsxs("h3",{className:"iw-m-0 iw-mb-2.5",children:["Status: ",h]}),y>0&&y<100&&b.jsxs("div",{className:"iw-mb-2.5",children:[b.jsx("div",{className:"iw-h-2 iw-w-full iw-rounded iw-bg-gray-300",children:b.jsx("div",{className:"iw-h-full iw-rounded iw-bg-blue-600 iw-transition-all iw-duration-300 iw-ease-out",style:{width:`${y}%`}})}),b.jsxs("small",{className:"iw-text-gray-600",children:["Loading model... ",y.toFixed(1),"%"]})]}),b.jsxs("div",{className:"iw-grid iw-grid-cols-2 iw-gap-2.5 iw-text-sm",children:[b.jsxs("div",{children:[b.jsx("strong",{children:"FPS:"})," ",b.jsx("span",{className:f.fps<15?"iw-text-red-600":f.fps<25?"iw-text-orange-500":"iw-text-green-600",children:f.fps})]}),b.jsxs("div",{children:[b.jsx("strong",{children:"Model:"})," ",c?"✓ Loaded":"✗ Loading"]}),i&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{children:[b.jsx("strong",{children:"Engagement:"})," ",f.engagement.toFixed(1),"%"]}),b.jsxs("div",{children:[b.jsx("strong",{children:"Looking:"})," ",b.jsx("span",{className:f.isLookingAway?"iw-text-red-600":"iw-text-green-600",children:f.isLookingAway?"Away":"At Screen"})]})]})]}),f.referenceFaceNotDetected&&b.jsxs("div",{className:"iw-text-gray-dark iw-mt-2.5 iw-w-full iw-rounded-md iw-bg-[#ffeb3b] iw-p-2.5 iw-text-sm",children:[b.jsx("strong",{children:"Reference Face Not Detected"}),b.jsx("br",{}),"The previously set reference face is no longer in view."]}),f.multipleFacesDetected&&b.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-red-50 iw-p-2.5 iw-text-sm iw-text-red-700",children:[b.jsx("strong",{children:"Multiple Faces Detected"}),b.jsx("br",{}),"Please ensure only one person is in the frame."]}),!i&&b.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-blue-50 iw-p-2.5 iw-text-sm iw-text-blue-700",children:[b.jsx("strong",{children:"Gaze Analysis Disabled"}),b.jsx("br",{}),"Enable to track engagement and attention levels."]})]})}),uT=({showControls:i,isBubbleOpen:c,setIsBubbleOpen:f,setReference:h,clearCache:y,isModelLoaded:w,gazeAnalysisEnabled:E,referenceSet:A,showLandmarks:M,setShowLandmarks:G,showEngagementBar:U,setShowEngagementBar:N,handleToggleGazeAnalysis:q,stats:k,statusMessage:ne,loadingProgress:oe})=>i?b.jsxs(b.Fragment,{children:[b.jsx("button",{onClick:()=>f(!c),className:"iw-absolute iw-right-4 iw-bottom-4 iw-z-10 iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-full iw-text-white",children:b.jsx(YE,{className:"iw-size-4.5"})}),c&&b.jsxs("div",{className:"iw-absolute iw-right-4 iw-bottom-16 iw-z-10 iw-max-h-96 iw-w-80 iw-overflow-y-auto iw-rounded-md iw-bg-gray-50 iw-p-4 iw-shadow-lg",children:[b.jsx("h4",{className:"m-0 mb-2.5",children:"Controls"}),b.jsx("button",{onClick:h,disabled:!w||!E,className:`iw-mb-2.5 iw-block iw-w-full iw-rounded border-none iw-px-4 iw-py-2 iw-text-sm iw-text-white ${!w||!E?"iw-cursor-not-allowed iw-bg-gray-400":"iw-cursor-pointer iw-bg-blue-600 hover:iw-bg-blue-700"}`,children:A?"Reference Set ✓":"Set Reference"}),b.jsx("button",{onClick:y,className:"iw-mb-4 iw-block iw-w-full iw-cursor-pointer iw-rounded iw-border-none iw-bg-red-600 iw-px-4 iw-py-2 iw-text-sm iw-text-white hover:iw-bg-red-700",children:"Clear Model Cache"}),b.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-2.5",children:[b.jsxs("label",{className:"iw-flex iw-cursor-pointer iw-items-center iw-gap-2",children:[b.jsx("input",{type:"checkbox",checked:E,onChange:ue=>q(ue.target.checked)}),b.jsx("strong",{children:"Enable Gaze Analysis"})]}),b.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${E?"iw-opacity-100":"iw-opacity-60"}`,children:[b.jsx("input",{type:"checkbox",checked:M,onChange:ue=>G(ue.target.checked),disabled:!E}),"Show Landmarks"]}),b.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${E?"iw-opacity-100":"iw-opacity-60"}`,children:[b.jsx("input",{type:"checkbox",checked:U,onChange:ue=>N(ue.target.checked),disabled:!E}),"Show Engagement Bar"]})]}),A&&b.jsx(iT,{gazeAnalysisEnabled:E,isModelLoaded:w,loadingProgress:oe,stats:k,statusMessage:ne})]})]}):null;var Qh=typeof self<"u"?self:{};function K2(i,c){e:{for(var f=["CLOSURE_FLAGS"],h=Qh,y=0;y<f.length;y++)if((h=h[f[y]])==null){f=null;break e}f=h}return(i=f&&f[i])!=null?i:c}function Xf(){throw Error("Invalid UTF8")}function Q6(i,c){return c=String.fromCharCode.apply(null,c),i==null?c:i+c}let py,Bv;const oT=typeof TextDecoder<"u";let cT;const sT=typeof TextEncoder<"u";function Z6(i){if(sT)i=(cT||(cT=new TextEncoder)).encode(i);else{let f=0;const h=new Uint8Array(3*i.length);for(let y=0;y<i.length;y++){var c=i.charCodeAt(y);if(c<128)h[f++]=c;else{if(c<2048)h[f++]=c>>6|192;else{if(c>=55296&&c<=57343){if(c<=56319&&y<i.length){const w=i.charCodeAt(++y);if(w>=56320&&w<=57343){c=1024*(c-55296)+w-56320+65536,h[f++]=c>>18|240,h[f++]=c>>12&63|128,h[f++]=c>>6&63|128,h[f++]=63&c|128;continue}y--}c=65533}h[f++]=c>>12|224,h[f++]=c>>6&63|128}h[f++]=63&c|128}}i=f===h.length?h:h.subarray(0,f)}return i}function J6(i){Qh.setTimeout(()=>{throw i},0)}var Hv,rT=K2(610401301,!1),K6=K2(748402147,!0),Lv=K2(824648567,!0),Gv=K2(824656860,K2(1,!0));function F6(){var i=Qh.navigator;return i&&(i=i.userAgent)?i:""}const $6=Qh.navigator;function yy(i){return yy[" "](i),i}Hv=$6&&$6.userAgentData||null,yy[" "]=function(){};const I6={};let F2=null;function fT(i){const c=i.length;let f=3*c/4;f%3?f=Math.floor(f):"=.".indexOf(i[c-1])!=-1&&(f="=.".indexOf(i[c-2])!=-1?f-2:f-1);const h=new Uint8Array(f);let y=0;return function(w,E){function A(G){for(;M<w.length;){const U=w.charAt(M++),N=F2[U];if(N!=null)return N;if(!/^[\s\xa0]*$/.test(U))throw Error("Unknown base64 encoding at char: "+U)}return G}W6();let M=0;for(;;){const G=A(-1),U=A(0),N=A(64),q=A(64);if(q===64&&G===-1)break;E(G<<2|U>>4),N!=64&&(E(U<<4&240|N>>2),q!=64&&E(N<<6&192|q))}}(i,function(w){h[y++]=w}),y!==f?h.subarray(0,y):h}function W6(){if(!F2){F2={};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"];for(let f=0;f<5;f++){const h=i.concat(c[f].split(""));I6[f]=h;for(let y=0;y<h.length;y++){const w=h[y];F2[w]===void 0&&(F2[w]=y)}}}}var dT=typeof Uint8Array<"u",P6=!(!(rT&&Hv&&Hv.brands.length>0)&&(F6().indexOf("Trident")!=-1||F6().indexOf("MSIE")!=-1))&&typeof btoa=="function";const e5=/[-_.]/g,hT={"-":"+",_:"/",".":"="};function mT(i){return hT[i]||""}function t5(i){if(!P6)return fT(i);i=e5.test(i)?i.replace(e5,mT):i,i=atob(i);const c=new Uint8Array(i.length);for(let f=0;f<i.length;f++)c[f]=i.charCodeAt(f);return c}function Rv(i){return dT&&i!=null&&i instanceof Uint8Array}var Zh={};function Qf(){return gT||(gT=new Go(null,Zh))}function jv(i){n5(Zh);var c=i.g;return(c=c==null||Rv(c)?c:typeof c=="string"?t5(c):null)==null?c:i.g=c}var Go=class{h(){return new Uint8Array(jv(this)||0)}constructor(i,c){if(n5(c),this.g=i,i!=null&&i.length===0)throw Error("ByteString should be constructed with non-empty values")}};let gT,pT;function n5(i){if(i!==Zh)throw Error("illegal external caller")}function a5(i,c){i.__closure__error__context__984382||(i.__closure__error__context__984382={}),i.__closure__error__context__984382.severity=c}function qv(i){return a5(i=Error(i),"warning"),i}function Jh(i,c){if(i!=null){var f=pT??(pT={}),h=f[i]||0;h>=c||(f[i]=h+1,a5(i=Error(),"incident"),J6(i))}}function Kh(){return typeof BigInt=="function"}var Fh=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Ro(i,c,f=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?f&&Symbol.for&&i?Symbol.for(i):i!=null?Symbol(i):Symbol():c}var yT=Ro("jas",void 0,!0),l5=Ro(void 0,"0di"),$2=Ro(void 0,"1oa"),fi=Ro(void 0,Symbol()),vT=Ro(void 0,"0ub"),wT=Ro(void 0,"0ubs"),Vv=Ro(void 0,"0ubsb"),bT=Ro(void 0,"0actk"),$h=Ro("m_m","Pa",!0),i5=Ro();const u5={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},o5=Object.defineProperties,Se=Fh?yT:"Ga";var Zf;const c5=[];function I2(i,c){Fh||Se in i||o5(i,u5),i[Se]|=c}function pa(i,c){Fh||Se in i||o5(i,u5),i[Se]=c}function W2(i){return I2(i,34),i}function P2(i){return I2(i,8192),i}pa(c5,7),Zf=Object.freeze(c5);var Ih={};function di(i,c){return c===void 0?i.h!==Jf&&!!(2&(0|i.v[Se])):!!(2&c)&&i.h!==Jf}const Jf={};function Yv(i,c){if(i!=null){if(typeof i=="string")i=i?new Go(i,Zh):Qf();else if(i.constructor!==Go)if(Rv(i))i=i.length?new Go(new Uint8Array(i),Zh):Qf();else{if(!c)throw Error();i=void 0}}return i}class s5{constructor(c,f,h){this.g=c,this.h=f,this.l=h}next(){const c=this.g.next();return c.done||(c.value=this.h.call(this.l,c.value)),c}[Symbol.iterator](){return this}}var ST=Object.freeze({});function r5(i,c,f){const h=128&c?0:-1,y=i.length;var w;(w=!!y)&&(w=(w=i[y-1])!=null&&typeof w=="object"&&w.constructor===Object);const E=y+(w?-1:0);for(c=128&c?1:0;c<E;c++)f(c-h,i[c]);if(w){i=i[y-1];for(const A in i)!isNaN(A)&&f(+A,i[A])}}var f5={};function Wh(i){return 128&i?f5:void 0}function vy(i){return i.Na=!0,i}var ET=vy(i=>typeof i=="number"),d5=vy(i=>typeof i=="string"),TT=vy(i=>typeof i=="boolean"),wy=typeof Qh.BigInt=="function"&&typeof Qh.BigInt(0)=="bigint";function hi(i){var c=i;if(d5(c)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(c))throw Error(String(c))}else if(ET(c)&&!Number.isSafeInteger(c))throw Error(String(c));return wy?BigInt(i):i=TT(i)?i?"1":"0":d5(i)?i.trim()||"0":String(i)}var kv=vy(i=>wy?i>=_T&&i<=MT:i[0]==="-"?h5(i,AT):h5(i,xT));const AT=Number.MIN_SAFE_INTEGER.toString(),_T=wy?BigInt(Number.MIN_SAFE_INTEGER):void 0,xT=Number.MAX_SAFE_INTEGER.toString(),MT=wy?BigInt(Number.MAX_SAFE_INTEGER):void 0;function h5(i,c){if(i.length>c.length)return!1;if(i.length<c.length||i===c)return!0;for(let f=0;f<i.length;f++){const h=i[f],y=c[f];if(h>y)return!1;if(h<y)return!0}}const CT=typeof Uint8Array.prototype.slice=="function";let DT,En=0,$n=0;function m5(i){const c=i>>>0;En=c,$n=(i-c)/4294967296>>>0}function Ph(i){if(i<0){m5(-i);const[c,f]=Kv(En,$n);En=c>>>0,$n=f>>>0}else m5(i)}function Xv(i){const c=DT||(DT=new DataView(new ArrayBuffer(8)));c.setFloat32(0,+i,!0),$n=0,En=c.getUint32(0,!0)}function Qv(i,c){const f=4294967296*c+(i>>>0);return Number.isSafeInteger(f)?f:em(i,c)}function OT(i,c){return hi(Kh()?BigInt.asUintN(64,(BigInt(c>>>0)<<BigInt(32))+BigInt(i>>>0)):em(i,c))}function Zv(i,c){const f=2147483648&c;return f&&(c=~c>>>0,(i=1+~i>>>0)==0&&(c=c+1>>>0)),typeof(i=Qv(i,c))=="number"?f?-i:i:f?"-"+i:i}function g5(i,c){return Kh()?hi(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(c))<<BigInt(32))+BigInt.asUintN(32,BigInt(i)))):hi(Jv(i,c))}function em(i,c){if(i>>>=0,(c>>>=0)<=2097151)var f=""+(4294967296*c+i);else Kh()?f=""+(BigInt(c)<<BigInt(32)|BigInt(i)):(i=(16777215&i)+6777216*(f=16777215&(i>>>24|c<<8))+6710656*(c=c>>16&65535),f+=8147497*c,c*=2,i>=1e7&&(f+=i/1e7>>>0,i%=1e7),f>=1e7&&(c+=f/1e7>>>0,f%=1e7),f=c+p5(f)+p5(i));return f}function p5(i){return i=String(i),"0000000".slice(i.length)+i}function Jv(i,c){if(2147483648&c)if(Kh())i=""+(BigInt(0|c)<<BigInt(32)|BigInt(i>>>0));else{const[f,h]=Kv(i,c);i="-"+em(f,h)}else i=em(i,c);return i}function by(i){if(i.length<16)Ph(Number(i));else if(Kh())i=BigInt(i),En=Number(i&BigInt(4294967295))>>>0,$n=Number(i>>BigInt(32)&BigInt(4294967295));else{const c=+(i[0]==="-");$n=En=0;const f=i.length;for(let h=c,y=(f-c)%6+c;y<=f;h=y,y+=6){const w=Number(i.slice(h,y));$n*=1e6,En=1e6*En+w,En>=4294967296&&($n+=Math.trunc(En/4294967296),$n>>>=0,En>>>=0)}if(c){const[h,y]=Kv(En,$n);En=h,$n=y}}}function Kv(i,c){return c=~c,i?i=1+~i:c+=1,[i,c]}function to(i){return Array.prototype.slice.call(i)}const tm=typeof BigInt=="function"?BigInt.asIntN:void 0,zT=typeof BigInt=="function"?BigInt.asUintN:void 0,Kf=Number.isSafeInteger,Sy=Number.isFinite,e0=Math.trunc,NT=hi(0);function nm(i){if(i!=null&&typeof i!="number")throw Error(`Value of float/double field must be a number, found ${typeof i}: ${i}`);return i}function jo(i){return i==null||typeof i=="number"?i:i==="NaN"||i==="Infinity"||i==="-Infinity"?Number(i):void 0}function am(i){if(i!=null&&typeof i!="boolean"){var c=typeof i;throw Error(`Expected boolean but got ${c!="object"?c:i?Array.isArray(i)?"array":c:"null"}: ${i}`)}return i}function y5(i){return i==null||typeof i=="boolean"?i:typeof i=="number"?!!i:void 0}const UT=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function lm(i){switch(typeof i){case"bigint":return!0;case"number":return Sy(i);case"string":return UT.test(i);default:return!1}}function t0(i){if(i==null)return i;if(typeof i=="string"&&i)i=+i;else if(typeof i!="number")return;return Sy(i)?0|i:void 0}function v5(i){if(i==null)return i;if(typeof i=="string"&&i)i=+i;else if(typeof i!="number")return;return Sy(i)?i>>>0:void 0}function w5(i){const c=i.length;return(i[0]==="-"?c<20||c===20&&i<="-9223372036854775808":c<19||c===19&&i<="9223372036854775807")?i:(by(i),Jv(En,$n))}function Fv(i){return i=e0(i),Kf(i)||(Ph(i),i=Zv(En,$n)),i}function b5(i){var c=e0(Number(i));return Kf(c)?String(c):((c=i.indexOf("."))!==-1&&(i=i.substring(0,c)),w5(i))}function S5(i){var c=e0(Number(i));return Kf(c)?hi(c):((c=i.indexOf("."))!==-1&&(i=i.substring(0,c)),Kh()?hi(tm(64,BigInt(i))):hi(w5(i)))}function E5(i){return Kf(i)?i=hi(Fv(i)):(i=e0(i),Kf(i)?i=String(i):(Ph(i),i=Jv(En,$n)),i=hi(i)),i}function BT(i){return i==null?i:typeof i=="bigint"?(kv(i)?i=Number(i):(i=tm(64,i),i=kv(i)?Number(i):String(i)),i):lm(i)?typeof i=="number"?Fv(i):b5(i):void 0}function Ey(i){const c=typeof i;return i==null?i:c==="bigint"?hi(tm(64,i)):lm(i)?c==="string"?S5(i):E5(i):void 0}function T5(i){if(typeof i!="string")throw Error();return i}function im(i){if(i!=null&&typeof i!="string")throw Error();return i}function qa(i){return i==null||typeof i=="string"?i:void 0}function $v(i,c,f,h){return i!=null&&i[$h]===Ih?i:Array.isArray(i)?((h=(f=0|i[Se])|32&h|2&h)!==f&&pa(i,h),new c(i)):(f?2&h?((i=c[l5])||(W2((i=new c).v),i=c[l5]=i),c=i):c=new c:c=void 0,c)}function HT(i,c,f){if(c)e:{if(!lm(c=i))throw qv("int64");switch(typeof c){case"string":c=S5(c);break e;case"bigint":c=hi(tm(64,c));break e;default:c=E5(c)}}else c=Ey(i);return(i=c)==null?f?NT:void 0:i}const LT={};let GT=function(){try{return yy(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class Iv{constructor(){this.g=new Map}get(c){return this.g.get(c)}set(c,f){return this.g.set(c,f),this.size=this.g.size,this}delete(c){return c=this.g.delete(c),this.size=this.g.size,c}clear(){this.g.clear(),this.size=this.g.size}has(c){return this.g.has(c)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(c,f){return this.g.forEach(c,f)}[Symbol.iterator](){return this.entries()}}const RT=GT?(Object.setPrototypeOf(Iv.prototype,Map.prototype),Object.defineProperties(Iv.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Iv):class extends Map{constructor(){super()}};function A5(i){return i}function Wv(i){if(2&i.J)throw Error("Cannot mutate an immutable Map")}var Hc=class extends RT{constructor(i,c,f=A5,h=A5){super(),this.J=0|i[Se],this.K=c,this.S=f,this.fa=this.K?jT:h;for(let y=0;y<i.length;y++){const w=i[y],E=f(w[0],!1,!0);let A=w[1];c?A===void 0&&(A=null):A=h(w[1],!1,!0,void 0,void 0,this.J),super.set(E,A)}}V(i){return P2(Array.from(super.entries(),i))}clear(){Wv(this),super.clear()}delete(i){return Wv(this),super.delete(this.S(i,!0,!1))}entries(){if(this.K){var i=super.keys();i=new s5(i,qT,this)}else i=super.entries();return i}values(){if(this.K){var i=super.keys();i=new s5(i,Hc.prototype.get,this)}else i=super.values();return i}forEach(i,c){this.K?super.forEach((f,h,y)=>{i.call(c,y.get(h),h,y)}):super.forEach(i,c)}set(i,c){return Wv(this),(i=this.S(i,!0,!1))==null?this:c==null?(super.delete(i),this):super.set(i,this.fa(c,!0,!0,this.K,!1,this.J))}Ma(i){const c=this.S(i[0],!1,!0);i=i[1],i=this.K?i===void 0?null:i:this.fa(i,!1,!0,void 0,!1,this.J),super.set(c,i)}has(i){return super.has(this.S(i,!1,!1))}get(i){i=this.S(i,!1,!1);const c=super.get(i);if(c!==void 0){var f=this.K;return f?((f=this.fa(c,!1,!0,f,this.ra,this.J))!==c&&super.set(i,f),f):c}}[Symbol.iterator](){return this.entries()}};function jT(i,c,f,h,y,w){return i=$v(i,h,f,w),y&&(i=tw(i)),i}function qT(i){return[i,this.get(i)]}let VT;function _5(){return VT||(VT=new Hc(W2([]),void 0,void 0,void 0,LT))}function Ty(i){return fi?i[fi]:void 0}function Ay(i,c){for(const f in i)!isNaN(f)&&c(i,+f,i[f])}Hc.prototype.toJSON=void 0;var Pv=class{};const YT={Ka:!0};function kT(i,c){c<100||Jh(wT,1)}function _y(i,c,f,h){const y=h!==void 0;h=!!h;var w,E=fi;!y&&Fh&&E&&(w=i[E])&&Ay(w,kT),E=[];var A=i.length;let M;w=4294967295;let G=!1;const U=!!(64&c),N=U?128&c?0:-1:void 0;1&c||(M=A&&i[A-1],M!=null&&typeof M=="object"&&M.constructor===Object?w=--A:M=void 0,!U||128&c||y||(G=!0,w=w-N+N)),c=void 0;for(var q=0;q<A;q++){let k=i[q];if(k!=null&&(k=f(k,h))!=null)if(U&&q>=w){const ne=q-N;(c??(c={}))[ne]=k}else E[q]=k}if(M)for(let k in M){if((A=M[k])==null||(A=f(A,h))==null)continue;let ne;q=+k,U&&!Number.isNaN(q)&&(ne=q+N)<w?E[ne]=A:(c??(c={}))[k]=A}return c&&(G?E.push(c):E[w]=c),y&&fi&&(i=Ty(i))&&i instanceof Pv&&(E[fi]=function(k){const ne=new Pv;return Ay(k,(oe,ue,P)=>{ne[ue]=to(P)}),ne.da=k.da,ne}(i)),E}function XT(i){return i[0]=um(i[0]),i[1]=um(i[1]),i}function um(i){switch(typeof i){case"number":return Number.isFinite(i)?i:""+i;case"bigint":return kv(i)?Number(i):""+i;case"boolean":return i?1:0;case"object":if(Array.isArray(i)){var c=0|i[Se];return i.length===0&&1&c?void 0:_y(i,c,um)}if(i!=null&&i[$h]===Ih)return x5(i);if(i instanceof Go){if((c=i.g)==null)i="";else if(typeof c=="string")i=c;else{if(P6){for(var f="",h=0,y=c.length-10240;h<y;)f+=String.fromCharCode.apply(null,c.subarray(h,h+=10240));f+=String.fromCharCode.apply(null,h?c.subarray(h):c),c=btoa(f)}else{f===void 0&&(f=0),W6(),f=I6[f],h=Array(Math.floor(c.length/3)),y=f[64]||"";let G=0,U=0;for(;G<c.length-2;G+=3){var w=c[G],E=c[G+1],A=c[G+2],M=f[w>>2];w=f[(3&w)<<4|E>>4],E=f[(15&E)<<2|A>>6],A=f[63&A],h[U++]=M+w+E+A}switch(M=0,A=y,c.length-G){case 2:A=f[(15&(M=c[G+1]))<<2]||y;case 1:c=c[G],h[U]=f[c>>2]+f[(3&c)<<4|M>>4]+A+y}c=h.join("")}i=i.g=c}return i}return i instanceof Hc?i=i.size!==0?i.V(XT):void 0:void 0}return i}function x5(i){return _y(i=i.v,0|i[Se],um)}let QT,ZT;function Ff(i,c){return M5(i,c[0],c[1])}function M5(i,c,f,h=0){if(i==null){var y=32;f?(i=[f],y|=128):i=[],c&&(y=-16760833&y|(1023&c)<<14)}else{if(!Array.isArray(i))throw Error("narr");if(y=0|i[Se],K6&&1&y)throw Error("rfarr");if(2048&y&&!(2&y)&&function(){if(K6)throw Error("carr");Jh(bT,5)}(),256&y)throw Error("farr");if(64&y)return(y|h)!==y&&pa(i,y|h),i;if(f&&(y|=128,f!==i[0]))throw Error("mid");e:{y|=64;var w=(f=i).length;if(w){var E=w-1;const M=f[E];if(M!=null&&typeof M=="object"&&M.constructor===Object){if((E-=c=128&y?0:-1)>=1024)throw Error("pvtlmt");for(var A in M)(w=+A)<E&&(f[w+c]=M[A],delete M[A]);y=-16760833&y|(1023&E)<<14;break e}}if(c){if((A=Math.max(c,w-(128&y?0:-1)))>1024)throw Error("spvt");y=-16760833&y|(1023&A)<<14}}}return pa(i,64|y|h),i}function JT(i,c){if(typeof i!="object")return i;if(Array.isArray(i)){var f=0|i[Se];return i.length===0&&1&f?void 0:C5(i,f,c)}if(i!=null&&i[$h]===Ih)return D5(i);if(i instanceof Hc){if(2&(c=i.J))return i;if(!i.size)return;if(f=W2(i.V()),i.K)for(i=0;i<f.length;i++){const h=f[i];let y=h[1];y=y==null||typeof y!="object"?void 0:y!=null&&y[$h]===Ih?D5(y):Array.isArray(y)?C5(y,0|y[Se],!!(32&c)):void 0,h[1]=y}return f}return i instanceof Go?i:void 0}function C5(i,c,f){return 2&c||(!f||4096&c||16&c?i=n0(i,c,!1,f&&!(16&c)):(I2(i,34),4&c&&Object.freeze(i))),i}function ew(i,c,f){return i=new i.constructor(c),f&&(i.h=Jf),i.m=Jf,i}function D5(i){const c=i.v,f=0|c[Se];return di(i,f)?i:nw(i,c,f)?ew(i,c):n0(c,f)}function n0(i,c,f,h){return h??(h=!!(34&c)),i=_y(i,c,JT,h),h=32,f&&(h|=2),pa(i,c=16769217&c|h),i}function tw(i){const c=i.v,f=0|c[Se];return di(i,f)?nw(i,c,f)?ew(i,c,!0):new i.constructor(n0(c,f,!1)):i}function a0(i){if(i.h!==Jf)return!1;var c=i.v;return I2(c=n0(c,0|c[Se]),2048),i.v=c,i.h=void 0,i.m=void 0,!0}function l0(i){if(!a0(i)&&di(i,0|i.v[Se]))throw Error()}function $f(i,c){c===void 0&&(c=0|i[Se]),32&c&&!(4096&c)&&pa(i,4096|c)}function nw(i,c,f){return!!(2&f)||!(!(32&f)||4096&f)&&(pa(c,2|f),i.h=Jf,!0)}const KT=hi(0),er={};function mn(i,c,f,h,y){if((c=Lc(i.v,c,f,y))!==null||h&&i.m!==Jf)return c}function Lc(i,c,f,h){if(c===-1)return null;const y=c+(f?0:-1),w=i.length-1;let E,A;if(!(w<1+(f?0:-1))){if(y>=w)if(E=i[w],E!=null&&typeof E=="object"&&E.constructor===Object)f=E[c],A=!0;else{if(y!==w)return;f=E}else f=i[y];if(h&&f!=null){if((h=h(f))==null)return h;if(!Object.is(h,f))return A?E[c]=h:i[y]=h,h}return f}}function Yt(i,c,f,h){l0(i),ya(i=i.v,0|i[Se],c,f,h)}function ya(i,c,f,h,y){const w=f+(y?0:-1);var E=i.length-1;if(E>=1+(y?0:-1)&&w>=E){const A=i[E];if(A!=null&&typeof A=="object"&&A.constructor===Object)return A[f]=h,c}return w<=E?(i[w]=h,c):(h!==void 0&&(f>=(E=(c??(c=0|i[Se]))>>14&1023||536870912)?h!=null&&(i[E+(y?0:-1)]={[f]:h}):i[w]=h),c)}function If(){return ST===void 0?2:4}function Wf(i,c,f,h,y){let w=i.v,E=0|w[Se];h=di(i,E)?1:h,y=!!y||h===3,h===2&&a0(i)&&(w=i.v,E=0|w[Se]);let A=(i=aw(w,c))===Zf?7:0|i[Se],M=lw(A,E);var G=!(4&M);if(G){4&M&&(i=to(i),A=0,M=ed(M,E),E=ya(w,E,c,i));let U=0,N=0;for(;U<i.length;U++){const q=f(i[U]);q!=null&&(i[N++]=q)}N<U&&(i.length=N),f=-513&(4|M),M=f&=-1025,M&=-4097}return M!==A&&(pa(i,M),2&M&&Object.freeze(i)),O5(i,M,w,E,c,h,G,y)}function O5(i,c,f,h,y,w,E,A){let M=c;return w===1||w===4&&(2&c||!(16&c)&&32&h)?Pf(c)||((c|=!i.length||E&&!(4096&c)||32&h&&!(4096&c||16&c)?2:256)!==M&&pa(i,c),Object.freeze(i)):(w===2&&Pf(c)&&(i=to(i),M=0,c=ed(c,h),h=ya(f,h,y,i)),Pf(c)||(A||(c|=16),c!==M&&pa(i,c))),2&c||!(4096&c||16&c)||$f(f,h),i}function aw(i,c,f){return i=Lc(i,c,f),Array.isArray(i)?i:Zf}function lw(i,c){return 2&c&&(i|=2),1|i}function Pf(i){return!!(2&i)&&!!(4&i)||!!(256&i)}function z5(i){return Yv(i,!0)}function N5(i){i=to(i);for(let c=0;c<i.length;c++){const f=i[c]=to(i[c]);Array.isArray(f[1])&&(f[1]=W2(f[1]))}return P2(i)}function tr(i,c,f,h){l0(i),ya(i=i.v,0|i[Se],c,(h==="0"?Number(f)===0:f===h)?void 0:f)}function i0(i,c,f){if(2&c)throw Error();const h=Wh(c);let y=aw(i,f,h),w=y===Zf?7:0|y[Se],E=lw(w,c);return(2&E||Pf(E)||16&E)&&(E===w||Pf(E)||pa(y,E),y=to(y),w=0,E=ed(E,c),ya(i,c,f,y,h)),E&=-13,E!==w&&pa(y,E),y}function iw(i,c){var f=RS;return ow(uw(i=i.v),i,void 0,f)===c?c:-1}function uw(i){if(Fh)return i[$2]??(i[$2]=new Map);if($2 in i)return i[$2];const c=new Map;return Object.defineProperty(i,$2,{value:c}),c}function U5(i,c,f,h,y){const w=uw(i),E=ow(w,i,c,f,y);return E!==h&&(E&&(c=ya(i,c,E,void 0,y)),w.set(f,h)),c}function ow(i,c,f,h,y){let w=i.get(h);if(w!=null)return w;w=0;for(let E=0;E<h.length;E++){const A=h[E];Lc(c,A,y)!=null&&(w!==0&&(f=ya(c,f,w,void 0,y)),w=A)}return i.set(h,w),w}function cw(i,c,f){let h=0|i[Se];const y=Wh(h),w=Lc(i,f,y);let E;if(w!=null&&w[$h]===Ih){if(!di(w))return a0(w),w.v;E=w.v}else Array.isArray(w)&&(E=w);if(E){const A=0|E[Se];2&A&&(E=n0(E,A))}return E=Ff(E,c),E!==w&&ya(i,h,f,E,y),E}function B5(i,c,f,h,y){let w=!1;if((h=Lc(i,h,y,E=>{const A=$v(E,f,!1,c);return w=A!==E&&A!=null,A}))!=null)return w&&!di(h)&&$f(i,c),h}function xt(i,c,f,h){let y=i.v,w=0|y[Se];if((c=B5(y,w,c,f,h))==null)return c;if(w=0|y[Se],!di(i,w)){const E=tw(c);E!==c&&(a0(i)&&(y=i.v,w=0|y[Se]),w=ya(y,w,f,c=E,h),$f(y,w))}return c}function H5(i,c,f,h,y,w,E,A){var M=di(i,f);w=M?1:w,E=!!E||w===3,M=A&&!M,(w===2||M)&&a0(i)&&(f=0|(c=i.v)[Se]);var G=(i=aw(c,y))===Zf?7:0|i[Se],U=lw(G,f);if(A=!(4&U)){var N=i,q=f;const k=!!(2&U);k&&(q|=2);let ne=!k,oe=!0,ue=0,P=0;for(;ue<N.length;ue++){const ye=$v(N[ue],h,!1,q);if(ye instanceof h){if(!k){const be=di(ye);ne&&(ne=!be),oe&&(oe=be)}N[P++]=ye}}P<ue&&(N.length=P),U|=4,U=oe?-4097&U:4096|U,U=ne?8|U:-9&U}if(U!==G&&(pa(i,U),2&U&&Object.freeze(i)),M&&!(8&U||!i.length&&(w===1||w===4&&(2&U||!(16&U)&&32&f)))){for(Pf(U)&&(i=to(i),U=ed(U,f),f=ya(c,f,y,i)),h=i,M=U,G=0;G<h.length;G++)(N=h[G])!==(U=tw(N))&&(h[G]=U);M|=8,pa(i,U=M=h.length?4096|M:-4097&M)}return O5(i,U,c,f,y,w,A,E)}function Gc(i,c,f){const h=i.v;return H5(i,h,0|h[Se],c,f,If(),!1,!0)}function L5(i){return i==null&&(i=void 0),i}function Ue(i,c,f,h,y){return Yt(i,f,h=L5(h),y),h&&!di(h)&&$f(i.v),i}function om(i,c,f,h){e:{var y=h=L5(h);l0(i);const w=i.v;let E=0|w[Se];if(y==null){const A=uw(w);if(ow(A,w,E,f)!==c)break e;A.set(f,0)}else E=U5(w,E,f,c);ya(w,E,c,y)}h&&!di(h)&&$f(i.v)}function ed(i,c){return-273&(2&c?2|i:-3&i)}function sw(i,c,f,h){var y=h;l0(i),i=H5(i,h=i.v,0|h[Se],f,c,2,!0),y=y??new f,i.push(y),c=f=i===Zf?7:0|i[Se],(y=di(y))?(f&=-9,i.length===1&&(f&=-4097)):f|=4096,f!==c&&pa(i,f),y||$f(h)}function nu(i,c,f){return t0(mn(i,c,void 0,f))}function G5(i){return(Gv?mn(i,2,void 0,void 0,Ey):Ey(mn(i,2)))??KT}function qn(i,c){return mn(i,c,void 0,void 0,jo)??0}function Rc(i,c,f){if(f!=null){if(typeof f!="number"||!Sy(f))throw qv("int32");f|=0}Yt(i,c,f)}function Oe(i,c,f){Yt(i,c,nm(f))}function mi(i,c,f){tr(i,c,im(f),"")}function xy(i,c,f){{l0(i);const E=i.v;let A=0|E[Se];if(f==null)ya(E,A,c);else{var h=i=f===Zf?7:0|f[Se],y=Pf(i),w=y||Object.isFrozen(f);for(y||(i=0),w||(f=to(f),h=0,i=ed(i,A),w=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??(Gv?1024:0),y=0;y<f.length;y++){const M=f[y],G=T5(M);Object.is(M,G)||(w&&(f=to(f),h=0,i=ed(i,A),w=!1),f[y]=G)}i!==h&&(w&&(f=to(f),i=ed(i,A)),pa(f,i)),ya(E,A,c,f)}}}function My(i,c,f){l0(i),Wf(i,c,qa,2,!0).push(T5(f))}var u0=class{constructor(i,c,f){if(this.buffer=i,f&&!c)throw Error();this.g=c}};function rw(i,c){if(typeof i=="string")return new u0(t5(i),c);if(Array.isArray(i))return new u0(new Uint8Array(i),c);if(i.constructor===Uint8Array)return new u0(i,!1);if(i.constructor===ArrayBuffer)return i=new Uint8Array(i),new u0(i,!1);if(i.constructor===Go)return c=jv(i)||new Uint8Array(0),new u0(c,!0,i);if(i instanceof Uint8Array)return i=i.constructor===Uint8Array?i:new Uint8Array(i.buffer,i.byteOffset,i.byteLength),new u0(i,!1);throw Error()}function o0(i,c){let f,h=0,y=0,w=0;const E=i.h;let A=i.g;do f=E[A++],h|=(127&f)<<w,w+=7;while(w<32&&128&f);if(w>32)for(y|=(127&f)>>4,w=3;w<32&&128&f;w+=7)f=E[A++],y|=(127&f)<<w;if(td(i,A),!(128&f))return c(h>>>0,y>>>0);throw Error()}function fw(i){let c=0,f=i.g;const h=f+10,y=i.h;for(;f<h;){const w=y[f++];if(c|=w,(128&w)==0)return td(i,f),!!(127&c)}throw Error()}function nr(i){const c=i.h;let f=i.g,h=c[f++],y=127&h;if(128&h&&(h=c[f++],y|=(127&h)<<7,128&h&&(h=c[f++],y|=(127&h)<<14,128&h&&(h=c[f++],y|=(127&h)<<21,128&h&&(h=c[f++],y|=h<<28,128&h&&128&c[f++]&&128&c[f++]&&128&c[f++]&&128&c[f++]&&128&c[f++])))))throw Error();return td(i,f),y}function jc(i){return nr(i)>>>0}function Cy(i){var c=i.h;const f=i.g;var h=c[f],y=c[f+1];const w=c[f+2];return c=c[f+3],td(i,i.g+4),i=2*((y=(h<<0|y<<8|w<<16|c<<24)>>>0)>>31)+1,h=y>>>23&255,y&=8388607,h==255?y?NaN:i*(1/0):h==0?1401298464324817e-60*i*y:i*Math.pow(2,h-150)*(y+8388608)}function FT(i){return nr(i)}function td(i,c){if(i.g=c,c>i.l)throw Error()}function R5(i,c){if(c<0)throw Error();const f=i.g;if((c=f+c)>i.l)throw Error();return i.g=c,f}function j5(i,c){if(c==0)return Qf();var f=R5(i,c);return i.Y&&i.j?f=i.h.subarray(f,f+c):(i=i.h,f=f===(c=f+c)?new Uint8Array(0):CT?i.slice(f,c):new Uint8Array(i.subarray(f,c))),f.length==0?Qf():new Go(f,Zh)}var q5=[];function V5(i,c,f,h){if(zy.length){const y=zy.pop();return y.o(h),y.g.init(i,c,f,h),y}return new $T(i,c,f,h)}function Y5(i){i.g.clear(),i.l=-1,i.h=-1,zy.length<100&&zy.push(i)}function k5(i){var c=i.g;if(c.g==c.l)return!1;i.m=i.g.g;var f=jc(i.g);if(c=f>>>3,!((f&=7)>=0&&f<=5)||c<1)throw Error();return i.l=c,i.h=f,!0}function Dy(i){switch(i.h){case 0:i.h!=0?Dy(i):fw(i.g);break;case 1:td(i=i.g,i.g+8);break;case 2:if(i.h!=2)Dy(i);else{var c=jc(i.g);td(i=i.g,i.g+c)}break;case 5:td(i=i.g,i.g+4);break;case 3:for(c=i.l;;){if(!k5(i))throw Error();if(i.h==4){if(i.l!=c)throw Error();break}Dy(i)}break;default:throw Error()}}function cm(i,c,f){const h=i.g.l;var y=jc(i.g);let w=(y=i.g.g+y)-h;if(w<=0&&(i.g.l=y,f(c,i,void 0,void 0,void 0),w=y-i.g.g),w)throw Error();return i.g.g=y,i.g.l=h,c}function dw(i){var c=jc(i.g),f=R5(i=i.g,c);if(i=i.h,oT){var h,y=i;(h=Bv)||(h=Bv=new TextDecoder("utf-8",{fatal:!0})),c=f+c,y=f===0&&c===y.length?y:y.subarray(f,c);try{var w=h.decode(y)}catch(A){if(py===void 0){try{h.decode(new Uint8Array([128]))}catch{}try{h.decode(new Uint8Array([97])),py=!0}catch{py=!1}}throw!py&&(Bv=void 0),A}}else{c=(w=f)+c,f=[];let A,M=null;for(;w<c;){var E=i[w++];E<128?f.push(E):E<224?w>=c?Xf():(A=i[w++],E<194||(192&A)!=128?(w--,Xf()):f.push((31&E)<<6|63&A)):E<240?w>=c-1?Xf():(A=i[w++],(192&A)!=128||E===224&&A<160||E===237&&A>=160||(192&(h=i[w++]))!=128?(w--,Xf()):f.push((15&E)<<12|(63&A)<<6|63&h)):E<=244?w>=c-2?Xf():(A=i[w++],(192&A)!=128||A-144+(E<<28)>>30||(192&(h=i[w++]))!=128||(192&(y=i[w++]))!=128?(w--,Xf()):(E=(7&E)<<18|(63&A)<<12|(63&h)<<6|63&y,E-=65536,f.push(55296+(E>>10&1023),56320+(1023&E)))):Xf(),f.length>=8192&&(M=Q6(M,f),f.length=0)}w=Q6(M,f)}return w}function X5(i){const c=jc(i.g);return j5(i.g,c)}function Oy(i,c,f){var h=jc(i.g);for(h=i.g.g+h;i.g.g<h;)f.push(c(i.g))}var $T=class{constructor(i,c,f,h){if(q5.length){const y=q5.pop();y.init(i,c,f,h),i=y}else i=new class{constructor(y,w,E,A){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.init(y,w,E,A)}init(y,w,E,{Y:A=!1,ea:M=!1}={}){this.Y=A,this.ea=M,y&&(y=rw(y,this.ea),this.h=y.buffer,this.j=y.g,this.m=w||0,this.l=E!==void 0?this.m+E:this.h.length,this.g=this.m)}clear(){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.Y=!1}}(i,c,f,h);this.g=i,this.m=this.g.g,this.h=this.l=-1,this.o(h)}o({ha:i=!1}={}){this.ha=i}},zy=[];function Q5(i){return i?/^\d+$/.test(i)?(by(i),new hw(En,$n)):null:IT||(IT=new hw(0,0))}var hw=class{constructor(i,c){this.h=i>>>0,this.g=c>>>0}};let IT;function Z5(i){return i?/^-?\d+$/.test(i)?(by(i),new mw(En,$n)):null:WT||(WT=new mw(0,0))}var mw=class{constructor(i,c){this.h=i>>>0,this.g=c>>>0}};let WT;function c0(i,c,f){for(;f>0||c>127;)i.g.push(127&c|128),c=(c>>>7|f<<25)>>>0,f>>>=7;i.g.push(c)}function s0(i,c){for(;c>127;)i.g.push(127&c|128),c>>>=7;i.g.push(c)}function Ny(i,c){if(c>=0)s0(i,c);else{for(let f=0;f<9;f++)i.g.push(127&c|128),c>>=7;i.g.push(1)}}function gw(i){var c=En;i.g.push(c>>>0&255),i.g.push(c>>>8&255),i.g.push(c>>>16&255),i.g.push(c>>>24&255)}function r0(i,c){c.length!==0&&(i.l.push(c),i.h+=c.length)}function au(i,c,f){s0(i.g,8*c+f)}function pw(i,c){return au(i,c,2),c=i.g.end(),r0(i,c),c.push(i.h),c}function yw(i,c){var f=c.pop();for(f=i.h+i.g.length()-f;f>127;)c.push(127&f|128),f>>>=7,i.h++;c.push(f),i.h++}function Uy(i,c,f){au(i,c,2),s0(i.g,f.length),r0(i,i.g.end()),r0(i,f)}function By(i,c,f,h){f!=null&&(c=pw(i,c),h(f,i),yw(i,c))}function qo(){const i=class{constructor(){throw Error()}};return Object.setPrototypeOf(i,i.prototype),i}var vw=qo(),J5=qo(),ww=qo(),bw=qo(),K5=qo(),F5=qo(),PT=qo(),Hy=qo(),$5=qo(),I5=qo();function Vo(i,c,f){var h=i.v;fi&&fi in h&&(h=h[fi])&&delete h[c.g],c.h?c.j(i,c.h,c.g,f,c.l):c.j(i,c.g,f,c.l)}var Ee=class{constructor(i,c){this.v=M5(i,c,void 0,2048)}toJSON(){return x5(this)}j(){var y;var i=HA,c=this.v,f=i.g,h=fi;if(Fh&&h&&((y=c[h])==null?void 0:y[f])!=null&&Jh(vT,3),c=i.g,i5&&fi&&i5===void 0&&(h=(f=this.v)[fi])&&(h=h.da))try{h(f,c,YT)}catch(w){J6(w)}return i.h?i.m(this,i.h,i.g,i.l):i.m(this,i.g,i.defaultValue,i.l)}clone(){const i=this.v,c=0|i[Se];return nw(this,i,c)?ew(this,i,!0):new this.constructor(n0(i,c,!1))}};Ee.prototype[$h]=Ih,Ee.prototype.toString=function(){return this.v.toString()};var f0=class{constructor(i,c,f){this.g=i,this.h=c,i=vw,this.l=!!i&&f===i||!1}};function Ly(i,c){return new f0(i,c,vw)}function W5(i,c,f,h,y){By(i,f,lS(c,h),y)}const eA=Ly(function(i,c,f,h,y){return i.h===2&&(cm(i,cw(c,h,f),y),!0)},W5),tA=Ly(function(i,c,f,h,y){return i.h===2&&(cm(i,cw(c,h,f),y),!0)},W5);var Gy=Symbol(),Ry=Symbol(),Sw=Symbol(),P5=Symbol(),eS=Symbol();let tS,nS;function nd(i,c,f,h){var y=h[i];if(y)return y;(y={}).qa=h,y.T=function(N){switch(typeof N){case"boolean":return QT||(QT=[0,void 0,!0]);case"number":return N>0?void 0:N===0?ZT||(ZT=[0,void 0]):[-N,void 0];case"string":return[0,N];case"object":return N}}(h[0]);var w=h[1];let E=1;w&&w.constructor===Object&&(y.ba=w,typeof(w=h[++E])=="function"&&(y.ma=!0,tS??(tS=w),nS??(nS=h[E+1]),w=h[E+=2]));const A={};for(;w&&Array.isArray(w)&&w.length&&typeof w[0]=="number"&&w[0]>0;){for(var M=0;M<w.length;M++)A[w[M]]=w;w=h[++E]}for(M=1;w!==void 0;){let N;typeof w=="number"&&(M+=w,w=h[++E]);var G=void 0;if(w instanceof f0?N=w:(N=eA,E--),N==null?void 0:N.l){w=h[++E],G=h;var U=E;typeof w=="function"&&(w=w(),G[U]=w),G=w}for(U=M+1,typeof(w=h[++E])=="number"&&w<0&&(U-=w,w=h[++E]);M<U;M++){const q=A[M];G?f(y,M,N,G,q):c(y,M,N,q)}}return h[i]=y}function aS(i){return Array.isArray(i)?i[0]instanceof f0?i:[tA,i]:[i,void 0]}function lS(i,c){return i instanceof Ee?i.v:Array.isArray(i)?Ff(i,c):void 0}function Ew(i,c,f,h){const y=f.g;i[c]=h?(w,E,A)=>y(w,E,A,h):y}function Tw(i,c,f,h,y){const w=f.g;let E,A;i[c]=(M,G,U)=>w(M,G,U,A||(A=nd(Ry,Ew,Tw,h).T),E||(E=Aw(h)),y)}function Aw(i){let c=i[Sw];if(c!=null)return c;const f=nd(Ry,Ew,Tw,i);return c=f.ma?(h,y)=>tS(h,y,f):(h,y)=>{for(;k5(y)&&y.h!=4;){var w=y.l,E=f[w];if(E==null){var A=f.ba;A&&(A=A[w])&&(A=aA(A))!=null&&(E=f[w]=A)}if(E==null||!E(y,h,w)){if(E=(A=y).m,Dy(A),A.ha)var M=void 0;else M=A.g.g-E,A.g.g=E,M=j5(A.g,M);E=void 0,A=h,M&&((E=A[fi]??(A[fi]=new Pv))[w]??(E[w]=[])).push(M)}}return(h=Ty(h))&&(h.da=f.qa[eS]),!0},i[Sw]=c,i[eS]=nA.bind(i),c}function nA(i,c,f,h){var y=this[Ry];const w=this[Sw],E=Ff(void 0,y.T),A=Ty(i);if(A){var M=!1,G=y.ba;if(G){if(y=(U,N,q)=>{if(q.length!==0)if(G[N])for(const k of q){U=V5(k);try{M=!0,w(E,U)}finally{Y5(U)}}else h==null||h(i,N,q)},c==null)Ay(A,y);else if(A!=null){const U=A[c];U&&y(A,c,U)}if(M){let U=0|i[Se];if(2&U&&2048&U&&!(f!=null&&f.Ka))throw Error();const N=Wh(U),q=(k,ne)=>{if(Lc(i,k,N)!=null){if((f==null?void 0:f.Qa)===1)return;throw Error()}ne!=null&&(U=ya(i,U,k,ne,N)),delete A[k]};c==null?r5(E,0|E[Se],(k,ne)=>{q(k,ne)}):q(c,Lc(E,c,N))}}}}function aA(i){const c=(i=aS(i))[0].g;if(i=i[1]){const f=Aw(i),h=nd(Ry,Ew,Tw,i).T;return(y,w,E)=>c(y,w,E,h,f)}return c}function jy(i,c,f){i[c]=f.h}function qy(i,c,f,h){let y,w;const E=f.h;i[c]=(A,M,G)=>E(A,M,G,w||(w=nd(Gy,jy,qy,h).T),y||(y=iS(h)))}function iS(i){let c=i[P5];if(!c){const f=nd(Gy,jy,qy,i);c=(h,y)=>uS(h,y,f),i[P5]=c}return c}function uS(i,c,f){r5(i,0|i[Se],(h,y)=>{if(y!=null){var w=function(E,A){var M=E[A];if(M)return M;if((M=E.ba)&&(M=M[A])){var G=(M=aS(M))[0].h;if(M=M[1]){const U=iS(M),N=nd(Gy,jy,qy,M).T;M=E.ma?nS(N,U):(q,k,ne)=>G(q,k,ne,N,U)}else M=G;return E[A]=M}}(f,h);w?w(c,y,h):h<500||Jh(Vv,3)}}),(i=Ty(i))&&Ay(i,(h,y,w)=>{for(r0(c,c.g.end()),h=0;h<w.length;h++)r0(c,jv(w[h])||new Uint8Array(0))})}const lA=hi(0);function d0(i,c){if(Array.isArray(c)){var f=0|c[Se];if(4&f)return c;for(var h=0,y=0;h<c.length;h++){const w=i(c[h]);w!=null&&(c[y++]=w)}return y<h&&(c.length=y),(i=-1537&(5|f))!==f&&pa(c,i),2&i&&Object.freeze(c),c}}function yl(i,c,f){return new f0(i,c,f)}function h0(i,c,f){return new f0(i,c,f)}function Ma(i,c,f){ya(i,0|i[Se],c,f,Wh(0|i[Se]))}var iA=Ly(function(i,c,f,h,y){if(i.h!==2)return!1;if(i=to(i=cm(i,Ff([void 0,void 0],h),y)),y=Wh(h=0|c[Se]),2&h)throw Error();let w=Lc(c,f,y);if(w instanceof Hc)2&w.J?(w=w.V(),w.push(i),ya(c,h,f,w,y)):w.Ma(i);else if(Array.isArray(w)){var E=0|w[Se];8192&E||pa(w,E|=8192),2&E&&(w=N5(w),ya(c,h,f,w,y)),w.push(i)}else ya(c,h,f,P2([i]),y);return!0},function(i,c,f,h,y){if(c instanceof Hc)c.forEach((w,E)=>{By(i,f,Ff([E,w],h),y)});else if(Array.isArray(c)){for(let w=0;w<c.length;w++){const E=c[w];Array.isArray(E)&&By(i,f,Ff(E,h),y)}P2(c)}});function oS(i,c,f){(c=jo(c))!=null&&(au(i,f,5),i=i.g,Xv(c),gw(i))}function cS(i,c,f){if(c=function(h){if(h==null)return h;const y=typeof h;if(y==="bigint")return String(tm(64,h));if(lm(h)){if(y==="string")return b5(h);if(y==="number")return Fv(h)}}(c),c!=null&&(typeof c=="string"&&Z5(c),c!=null))switch(au(i,f,0),typeof c){case"number":i=i.g,Ph(c),c0(i,En,$n);break;case"bigint":f=BigInt.asUintN(64,c),f=new mw(Number(f&BigInt(4294967295)),Number(f>>BigInt(32))),c0(i.g,f.h,f.g);break;default:f=Z5(c),c0(i.g,f.h,f.g)}}function sS(i,c,f){(c=t0(c))!=null&&c!=null&&(au(i,f,0),Ny(i.g,c))}function rS(i,c,f){(c=y5(c))!=null&&(au(i,f,0),i.g.g.push(c?1:0))}function fS(i,c,f){(c=qa(c))!=null&&Uy(i,f,Z6(c))}function dS(i,c,f,h,y){By(i,f,lS(c,h),y)}function hS(i,c,f){(c=c==null||typeof c=="string"||c instanceof Go?c:void 0)!=null&&Uy(i,f,rw(c,!0).buffer)}function mS(i,c,f){return(i.h===5||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,Cy,c):c.push(Cy(i.g)),!0)}var In=yl(function(i,c,f){return i.h===5&&(Ma(c,f,Cy(i.g)),!0)},oS,Hy),uA=h0(mS,function(i,c,f){if((c=d0(jo,c))!=null)for(let E=0;E<c.length;E++){var h=i,y=f,w=c[E];w!=null&&(au(h,y,5),h=h.g,Xv(w),gw(h))}},Hy),_w=h0(mS,function(i,c,f){if((c=d0(jo,c))!=null&&c.length){au(i,f,2),s0(i.g,4*c.length);for(let h=0;h<c.length;h++)f=i.g,Xv(c[h]),gw(f)}},Hy),oA=yl(function(i,c,f){return i.h===5&&(Ma(c,f,(i=Cy(i.g))===0?void 0:i),!0)},oS,Hy),ar=yl(function(i,c,f){return Lv?(i.h!==0?i=!1:(Ma(c,f,o0(i.g,g5)),i=!0),i):i.h===0&&(Ma(c,f,o0(i.g,Zv)),!0)},cS,F5),xw=yl(function(i,c,f){return Lv?(i.h!==0?c=!1:(Ma(c,f,(i=o0(i.g,g5))===lA?void 0:i),c=!0),c):i.h===0&&(Ma(c,f,(i=o0(i.g,Zv))===0?void 0:i),!0)},cS,F5),cA=yl(function(i,c,f){return Lv?(i.h!==0?i=!1:(Ma(c,f,o0(i.g,OT)),i=!0),i):i.h===0&&(Ma(c,f,o0(i.g,Qv)),!0)},function(i,c,f){if(c=function(h){if(h==null)return h;var y=typeof h;if(y==="bigint")return String(zT(64,h));if(lm(h)){if(y==="string")return y=e0(Number(h)),Kf(y)&&y>=0?h=String(y):((y=h.indexOf("."))!==-1&&(h=h.substring(0,y)),(y=h[0]!=="-"&&((y=h.length)<20||y===20&&h<="18446744073709551615"))||(by(h),h=em(En,$n))),h;if(y==="number")return(h=e0(h))>=0&&Kf(h)||(Ph(h),h=Qv(En,$n)),h}}(c),c!=null&&(typeof c=="string"&&Q5(c),c!=null))switch(au(i,f,0),typeof c){case"number":i=i.g,Ph(c),c0(i,En,$n);break;case"bigint":f=BigInt.asUintN(64,c),f=new hw(Number(f&BigInt(4294967295)),Number(f>>BigInt(32))),c0(i.g,f.h,f.g);break;default:f=Q5(c),c0(i.g,f.h,f.g)}},PT),Ca=yl(function(i,c,f){return i.h===0&&(Ma(c,f,nr(i.g)),!0)},sS,bw),sm=h0(function(i,c,f){return(i.h===0||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,nr,c):c.push(nr(i.g)),!0)},function(i,c,f){if((c=d0(t0,c))!=null&&c.length){f=pw(i,f);for(let h=0;h<c.length;h++)Ny(i.g,c[h]);yw(i,f)}},bw),m0=yl(function(i,c,f){return i.h===0&&(Ma(c,f,(i=nr(i.g))===0?void 0:i),!0)},sS,bw),Vn=yl(function(i,c,f){return i.h===0&&(Ma(c,f,fw(i.g)),!0)},rS,J5),ad=yl(function(i,c,f){return i.h===0&&(Ma(c,f,(i=fw(i.g))===!1?void 0:i),!0)},rS,J5),ul=h0(function(i,c,f){return i.h===2&&(i=dw(i),i0(c,0|c[Se],f).push(i),!0)},function(i,c,f){if((c=d0(qa,c))!=null)for(let E=0;E<c.length;E++){var h=i,y=f,w=c[E];w!=null&&Uy(h,y,Z6(w))}},ww),lr=yl(function(i,c,f){return i.h===2&&(Ma(c,f,(i=dw(i))===""?void 0:i),!0)},fS,ww),Pt=yl(function(i,c,f){return i.h===2&&(Ma(c,f,dw(i)),!0)},fS,ww),Da=function(i,c,f=vw){return new f0(i,c,f)}(function(i,c,f,h,y){return i.h===2&&(h=Ff(void 0,h),i0(c,0|c[Se],f).push(h),cm(i,h,y),!0)},function(i,c,f,h,y){if(Array.isArray(c)){for(let w=0;w<c.length;w++)dS(i,c[w],f,h,y);1&(i=0|c[Se])||pa(c,1|i)}}),Yn=Ly(function(i,c,f,h,y,w){if(i.h!==2)return!1;let E=0|c[Se];return U5(c,E,w,f,Wh(E)),cm(i,c=cw(c,h,f),y),!0},dS),gS=yl(function(i,c,f){return i.h===2&&(Ma(c,f,X5(i)),!0)},hS,$5),sA=h0(function(i,c,f){return(i.h===0||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,jc,c):c.push(jc(i.g)),!0)},function(i,c,f){if((c=d0(v5,c))!=null)for(let E=0;E<c.length;E++){var h=i,y=f,w=c[E];w!=null&&(au(h,y,0),s0(h.g,w))}},K5),rA=yl(function(i,c,f){return i.h===0&&(Ma(c,f,(i=jc(i.g))===0?void 0:i),!0)},function(i,c,f){(c=v5(c))!=null&&c!=null&&(au(i,f,0),s0(i.g,c))},K5),gi=yl(function(i,c,f){return i.h===0&&(Ma(c,f,nr(i.g)),!0)},function(i,c,f){(c=t0(c))!=null&&(c=parseInt(c,10),au(i,f,0),Ny(i.g,c))},I5);class fA{constructor(c,f){var h=pi;this.g=c,this.h=f,this.m=xt,this.j=Ue,this.defaultValue=void 0,this.l=h.Oa!=null?f5:void 0}register(){yy(this)}}function Yo(i,c){return new fA(i,c)}function ir(i,c){return(f,h)=>{{const w={ea:!0};h&&Object.assign(w,h),f=V5(f,void 0,void 0,w);try{const E=new i,A=E.v;Aw(c)(A,f);var y=E}finally{Y5(f)}}return y}}function Vy(i){return function(){const c=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const E=this.g;return this.g=[],E}}}};uS(this.v,c,nd(Gy,jy,qy,i)),r0(c,c.g.end());const f=new Uint8Array(c.h),h=c.l,y=h.length;let w=0;for(let E=0;E<y;E++){const A=h[E];f.set(A,w),w+=A.length}return c.l=[f],f}}var pS=class extends Ee{constructor(i){super(i)}},yS=[0,lr,yl(function(i,c,f){return i.h===2&&(Ma(c,f,(i=X5(i))===Qf()?void 0:i),!0)},function(i,c,f){if(c!=null){if(c instanceof Ee){const h=c.Ra;return void(h?(c=h(c),c!=null&&Uy(i,f,rw(c,!0).buffer)):Jh(Vv,3))}if(Array.isArray(c))return void Jh(Vv,3)}hS(i,c,f)},$5)];let Mw,vS=globalThis.trustedTypes;function wS(i){var c;return Mw===void 0&&(Mw=function(){let f=null;if(!vS)return f;try{const h=y=>y;f=vS.createPolicy("goog#html",{createHTML:h,createScript:h,createScriptURL:h})}catch{}return f}()),i=(c=Mw)?c.createScriptURL(i):i,new class{constructor(f){this.g=f}toString(){return this.g+""}}(i)}function dA(i,...c){if(c.length===0)return wS(i[0]);let f=i[0];for(let h=0;h<c.length;h++)f+=encodeURIComponent(c[h])+i[h+1];return wS(f)}var bS=[0,Ca,gi,Vn,-1,sm,gi,-1,Vn],hA=class extends Ee{constructor(i){super(i)}},SS=[0,Vn,Pt,Vn,gi,-1,h0(function(i,c,f){return(i.h===0||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,FT,c):c.push(nr(i.g)),!0)},function(i,c,f){if((c=d0(t0,c))!=null&&c.length){f=pw(i,f);for(let h=0;h<c.length;h++)Ny(i.g,c[h]);yw(i,f)}},I5),Pt,-1,[0,Vn,-1],gi,Vn,-1],ES=[0,3,Vn,-1,2,[0,Ca],[0,gi,Vn],[0,Pt,-1],[0]],TS=[0,Pt,-2],AS=class extends Ee{constructor(i){super(i)}},_S=[0],xS=[0,Ca,Vn,1,Vn,-4],pi=class extends Ee{constructor(i){super(i,2)}},va={};va[336783863]=[0,Pt,Vn,-1,Ca,[0,[1,2,3,4,5,6,7,8,9],Yn,_S,Yn,SS,Yn,TS,Yn,xS,Yn,bS,Yn,[0,Pt,-2],Yn,[0,Pt,gi],Yn,ES,Yn,[0,gi,-1,Vn]],[0,Pt],Vn,[0,[1,3],[2,4],Yn,[0,sm],-1,Yn,[0,ul],-1,Da,[0,Pt,-1]],Pt];var MS=[0,xw,-1,ad,-3,xw,sm,lr,m0,xw,-1,ad,m0,ad,-2,lr];function gn(i,c){My(i,3,c)}function yt(i,c){My(i,4,c)}var kl=class extends Ee{constructor(i){super(i,500)}o(i){return Ue(this,0,7,i)}},rm=[-1,{}],CS=[0,Pt,1,rm],DS=[0,Pt,ul,rm];function lu(i,c){sw(i,1,kl,c)}function Tn(i,c){My(i,10,c)}function Nt(i,c){My(i,15,c)}var yi=class extends Ee{constructor(i){super(i,500)}o(i){return Ue(this,0,1001,i)}},OS=[-500,Da,[-500,lr,-1,ul,-3,[-2,va,Vn],Da,yS,m0,-1,CS,DS,Da,[0,lr,ad],lr,MS,m0,ul,987,ul],4,Da,[-500,Pt,-1,[-1,{}],998,Pt],Da,[-500,Pt,ul,-1,[-2,{},Vn],997,ul,-1],m0,Da,[-500,Pt,ul,rm,998,ul],ul,m0,CS,DS,Da,[0,lr,-1,rm],ul,-2,MS,lr,-1,ad,[0,ad,rA],978,rm,Da,yS];yi.prototype.g=Vy(OS);var mA=ir(yi,OS),gA=class extends Ee{constructor(i){super(i)}},zS=class extends Ee{constructor(i){super(i)}g(){return Gc(this,gA,1)}},NS=[0,Da,[0,Ca,In,Pt,-1]],Yy=ir(zS,NS),pA=class extends Ee{constructor(i){super(i)}},yA=class extends Ee{constructor(i){super(i)}},Cw=class extends Ee{constructor(i){super(i)}l(){return xt(this,pA,2)}g(){return Gc(this,yA,5)}},US=ir(class extends Ee{constructor(i){super(i)}},[0,ul,sm,_w,[0,gi,[0,Ca,-3],[0,In,-3],[0,Ca,-1,[0,Da,[0,Ca,-2]]],Da,[0,In,-1,Pt,In]],Pt,-1,ar,Da,[0,Ca,In],ul,ar]),BS=class extends Ee{constructor(i){super(i)}},g0=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,In,-4]]),HS=class extends Ee{constructor(i){super(i)}},fm=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,In,-4]]),vA=class extends Ee{constructor(i){super(i)}},wA=[0,Ca,-1,_w,gi],LS=class extends Ee{constructor(i){super(i)}};LS.prototype.g=Vy([0,In,-4,ar]);var bA=class extends Ee{constructor(i){super(i)}},SA=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,1,Ca,Pt,NS],ar]),GS=class extends Ee{constructor(i){super(i)}},EA=class extends Ee{constructor(i){super(i)}na(){const i=mn(this,1,void 0,void 0,z5);return i??Qf()}},TA=class extends Ee{constructor(i){super(i)}},RS=[1,2],AA=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,RS,Yn,[0,_w],Yn,[0,gS],Ca,Pt],ar]),Dw=class extends Ee{constructor(i){super(i)}},jS=[0,Pt,Ca,In,ul,-1],qS=class extends Ee{constructor(i){super(i)}},_A=[0,Vn,-1],VS=class extends Ee{constructor(i){super(i)}},ky=[1,2,3,4,5,6],Xy=class extends Ee{constructor(i){super(i)}g(){return mn(this,1,void 0,void 0,z5)!=null}l(){return qa(mn(this,2))!=null}},Un=class extends Ee{constructor(i){super(i)}g(){return y5(mn(this,2))??!1}},YS=[0,gS,Pt,[0,Ca,ar,-1],[0,cA,ar]],Wn=[0,YS,Vn,[0,ky,Yn,xS,Yn,SS,Yn,bS,Yn,_S,Yn,TS,Yn,ES],gi],Qy=class extends Ee{constructor(i){super(i)}},Ow=[0,Wn,In,-1,Ca],xA=Yo(502141897,Qy);va[502141897]=Ow;var MA=ir(class extends Ee{constructor(i){super(i)}},[0,[0,gi,-1,uA,sA],wA]),kS=class extends Ee{constructor(i){super(i)}},XS=class extends Ee{constructor(i){super(i)}},zw=[0,Wn,In,[0,Wn],Vn],CA=Yo(508968150,XS);va[508968150]=[0,Wn,Ow,zw,In,[0,[0,YS]]],va[508968149]=zw;var p0=class extends Ee{constructor(i){super(i)}l(){return xt(this,Dw,2)}g(){Yt(this,2)}},QS=[0,Wn,jS];va[478825465]=QS;var DA=class extends Ee{constructor(i){super(i)}},ZS=class extends Ee{constructor(i){super(i)}},Nw=class extends Ee{constructor(i){super(i)}},Uw=class extends Ee{constructor(i){super(i)}},JS=class extends Ee{constructor(i){super(i)}},KS=[0,Wn,[0,Wn],QS,-1],FS=[0,Wn,In,Ca],Bw=[0,Wn,In],$S=[0,Wn,FS,Bw,In],OA=Yo(479097054,JS);va[479097054]=[0,Wn,$S,KS],va[463370452]=KS,va[464864288]=FS;var zA=Yo(462713202,Uw);va[462713202]=$S,va[474472470]=Bw;var NA=class extends Ee{constructor(i){super(i)}},IS=class extends Ee{constructor(i){super(i)}},WS=class extends Ee{constructor(i){super(i)}},PS=class extends Ee{constructor(i){super(i)}},Hw=[0,Wn,In,-1,Ca],Lw=[0,Wn,In,Vn];PS.prototype.g=Vy([0,Wn,Bw,[0,Wn],Ow,zw,Hw,Lw]);var e8=class extends Ee{constructor(i){super(i)}},UA=Yo(456383383,e8);va[456383383]=[0,Wn,jS];var t8=class extends Ee{constructor(i){super(i)}},BA=Yo(476348187,t8);va[476348187]=[0,Wn,_A];var n8=class extends Ee{constructor(i){super(i)}},a8=class extends Ee{constructor(i){super(i)}},l8=[0,gi,-1],HA=Yo(458105876,class extends Ee{constructor(i){super(i)}g(){let i;var c=this.v;const f=0|c[Se];return i=di(this,f),c=function(h,y,w,E){var A=a8;!E&&a0(h)&&(w=0|(y=h.v)[Se]);var M=Lc(y,2);if(h=!1,M==null){if(E)return _5();M=[]}else if(M.constructor===Hc){if(!(2&M.J)||E)return M;M=M.V()}else Array.isArray(M)?h=!!(2&(0|M[Se])):M=[];if(E){if(!M.length)return _5();h||(h=!0,W2(M))}else h&&(h=!1,P2(M),M=N5(M));return!h&&32&w&&I2(M,32),w=ya(y,w,2,E=new Hc(M,A,HT,void 0)),h||$f(y,w),E}(this,c,f,i),!i&&a8&&(c.ra=!0),c}});va[458105876]=[0,l8,iA,[!0,ar,[0,Pt,-1,ul]],[0,sm,Vn,gi]];var Gw=class extends Ee{constructor(i){super(i)}},i8=Yo(458105758,Gw);va[458105758]=[0,Wn,Pt,l8];var Rw=class extends Ee{constructor(i){super(i)}},u8=[0,oA,-1,ad],LA=class extends Ee{constructor(i){super(i)}},o8=class extends Ee{constructor(i){super(i)}},jw=[1,2];o8.prototype.g=Vy([0,jw,Yn,u8,Yn,[0,Da,u8]]);var c8=class extends Ee{constructor(i){super(i)}},GA=Yo(443442058,c8);va[443442058]=[0,Wn,Pt,Ca,In,ul,-1,Vn,In],va[514774813]=Hw;var s8=class extends Ee{constructor(i){super(i)}},RA=Yo(516587230,s8);function qw(i,c){return c=c?c.clone():new Dw,i.displayNamesLocale!==void 0?Yt(c,1,im(i.displayNamesLocale)):i.displayNamesLocale===void 0&&Yt(c,1),i.maxResults!==void 0?Rc(c,2,i.maxResults):"maxResults"in i&&Yt(c,2),i.scoreThreshold!==void 0?Oe(c,3,i.scoreThreshold):"scoreThreshold"in i&&Yt(c,3),i.categoryAllowlist!==void 0?xy(c,4,i.categoryAllowlist):"categoryAllowlist"in i&&Yt(c,4),i.categoryDenylist!==void 0?xy(c,5,i.categoryDenylist):"categoryDenylist"in i&&Yt(c,5),c}function r8(i){const c=Number(i);return Number.isSafeInteger(c)?c:String(i)}function Vw(i,c=-1,f=""){return{categories:i.map(h=>({index:nu(h,1)??0??-1,score:qn(h,2)??0,categoryName:qa(mn(h,3))??""??"",displayName:qa(mn(h,4))??""??""})),headIndex:c,headName:f}}function jA(i){const c={classifications:Gc(i,bA,1).map(f=>{var h;return Vw(((h=xt(f,zS,4))==null?void 0:h.g())??[],nu(f,2)??0,qa(mn(f,3))??"")})};return function(f){return BT(Gv?mn(f,2,void 0,void 0,Ey):mn(f,2))}(i)!=null&&(c.timestampMs=r8(G5(i))),c}function f8(i){var E,A;var c=Wf(i,3,jo,If()),f=Wf(i,2,t0,If()),h=Wf(i,1,qa,If()),y=Wf(i,9,qa,If());const w={categories:[],keypoints:[]};for(let M=0;M<c.length;M++)w.categories.push({score:c[M],index:f[M]??-1,categoryName:h[M]??"",displayName:y[M]??""});if((c=(E=xt(i,Cw,4))==null?void 0:E.l())&&(w.boundingBox={originX:nu(c,1,er)??0,originY:nu(c,2,er)??0,width:nu(c,3,er)??0,height:nu(c,4,er)??0,angle:0}),(A=xt(i,Cw,4))==null?void 0:A.g().length)for(const M of xt(i,Cw,4).g())w.keypoints.push({x:mn(M,1,void 0,er,jo)??0,y:mn(M,2,void 0,er,jo)??0,score:mn(M,4,void 0,er,jo)??0,label:qa(mn(M,3,void 0,er))??""});return w}function Zy(i){const c=[];for(const f of Gc(i,HS,1))c.push({x:qn(f,1)??0,y:qn(f,2)??0,z:qn(f,3)??0,visibility:qn(f,4)??0});return c}function dm(i){const c=[];for(const f of Gc(i,BS,1))c.push({x:qn(f,1)??0,y:qn(f,2)??0,z:qn(f,3)??0,visibility:qn(f,4)??0});return c}function d8(i){return Array.from(i,c=>c>127?c-256:c)}function h8(i,c){if(i.length!==c.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${i.length} vs. ${c.length}).`);let f=0,h=0,y=0;for(let w=0;w<i.length;w++)f+=i[w]*c[w],h+=i[w]*i[w],y+=c[w]*c[w];if(h<=0||y<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return f/Math.sqrt(h*y)}let Jy;va[516587230]=[0,Wn,Hw,Lw,In],va[518928384]=Lw;const qA=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function m8(){if(Jy===void 0)try{await WebAssembly.instantiate(qA),Jy=!0}catch{Jy=!1}return Jy}async function hm(i,c=dA``){const f=await m8()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${c}/${i}_${f}.js`,wasmBinaryPath:`${c}/${i}_${f}.wasm`}}var ld=class{};function g8(){var i=navigator;return typeof OffscreenCanvas<"u"&&(!function(c=navigator){return(c=c.userAgent).includes("Safari")&&!c.includes("Chrome")}(i)||!!((i=i.userAgent.match(/Version\/([\d]+).*Safari/))&&i.length>=1&&Number(i[1])>=17))}async function p8(i){if(typeof importScripts!="function"){const c=document.createElement("script");return c.src=i.toString(),c.crossOrigin="anonymous",new Promise((f,h)=>{c.addEventListener("load",()=>{f()},!1),c.addEventListener("error",y=>{h(y)},!1),document.body.appendChild(c)})}try{importScripts(i.toString())}catch(c){if(!(c instanceof TypeError))throw c;await self.import(i.toString())}}function y8(i){return i.videoWidth!==void 0?[i.videoWidth,i.videoHeight]:i.naturalWidth!==void 0?[i.naturalWidth,i.naturalHeight]:i.displayWidth!==void 0?[i.displayWidth,i.displayHeight]:[i.width,i.height]}function _e(i,c,f){i.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),f(c=i.i.stringToNewUTF8(c)),i.i._free(c)}function v8(i,c,f){if(!i.i.canvas)throw Error("No OpenGL canvas configured.");if(f?i.i._bindTextureToStream(f):i.i._bindTextureToCanvas(),!(f=i.i.canvas.getContext("webgl2")||i.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");i.i.gpuOriginForWebTexturesIsBottomLeft&&f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!0),f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,c),i.i.gpuOriginForWebTexturesIsBottomLeft&&f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!1);const[h,y]=y8(c);return!i.l||h===i.i.canvas.width&&y===i.i.canvas.height||(i.i.canvas.width=h,i.i.canvas.height=y),[h,y]}function w8(i,c,f){i.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const h=new Uint32Array(c.length);for(let y=0;y<c.length;y++)h[y]=i.i.stringToNewUTF8(c[y]);c=i.i._malloc(4*h.length),i.i.HEAPU32.set(h,c>>2),f(c);for(const y of h)i.i._free(y);i.i._free(c)}function ko(i,c,f){i.i.simpleListeners=i.i.simpleListeners||{},i.i.simpleListeners[c]=f}function ur(i,c,f){let h=[];i.i.simpleListeners=i.i.simpleListeners||{},i.i.simpleListeners[c]=(y,w,E)=>{w?(f(h,E),h=[]):h.push(y)}}ld.forVisionTasks=function(i){return hm("vision",i)},ld.forTextTasks=function(i){return hm("text",i)},ld.forGenAiExperimentalTasks=function(i){return hm("genai_experimental",i)},ld.forGenAiTasks=function(i){return hm("genai",i)},ld.forAudioTasks=function(i){return hm("audio",i)},ld.isSimdSupported=function(){return m8()};async function VA(i,c,f,h){return i=await(async(y,w,E,A,M)=>{if(w&&await p8(w),!self.ModuleFactory||E&&(await p8(E),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&M&&((w=self.Module).locateFile=M.locateFile,M.mainScriptUrlOrBlob&&(w.mainScriptUrlOrBlob=M.mainScriptUrlOrBlob)),M=await self.ModuleFactory(self.Module||M),self.ModuleFactory=self.Module=void 0,new y(M,A)})(i,f.wasmLoaderPath,f.assetLoaderPath,c,{locateFile:y=>y.endsWith(".wasm")?f.wasmBinaryPath.toString():f.assetBinaryPath&&y.endsWith(".data")?f.assetBinaryPath.toString():y}),await i.o(h),i}function Yw(i,c){const f=xt(i.baseOptions,Xy,1)||new Xy;typeof c=="string"?(Yt(f,2,im(c)),Yt(f,1)):c instanceof Uint8Array&&(Yt(f,1,Yv(c,!1)),Yt(f,2)),Ue(i.baseOptions,0,1,f)}function b8(i){try{const c=i.H.length;if(c===1)throw Error(i.H[0].message);if(c>1)throw Error("Encountered multiple errors: "+i.H.map(f=>f.message).join(", "))}finally{i.H=[]}}function ge(i,c){i.C=Math.max(i.C,c)}function Ky(i,c){i.B=new kl,mi(i.B,2,"PassThroughCalculator"),gn(i.B,"free_memory"),yt(i.B,"free_memory_unused_out"),Tn(c,"free_memory"),lu(c,i.B)}function y0(i,c){gn(i.B,c),yt(i.B,c+"_unused_out")}function Fy(i){i.g.addBoolToStream(!0,"free_memory",i.C)}var kw=class{constructor(i){this.g=i,this.H=[],this.C=0,this.g.setAutoRenderToScreen(!1)}l(i,c=!0){var f,h,y,w,E,A;if(c){const M=i.baseOptions||{};if((f=i.baseOptions)!=null&&f.modelAssetBuffer&&((h=i.baseOptions)!=null&&h.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((y=xt(this.baseOptions,Xy,1))!=null&&y.g()||(w=xt(this.baseOptions,Xy,1))!=null&&w.l()||(E=i.baseOptions)!=null&&E.modelAssetBuffer||(A=i.baseOptions)!=null&&A.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(G,U){let N=xt(G.baseOptions,VS,3);if(!N){var q=N=new VS,k=new AS;om(q,4,ky,k)}"delegate"in U&&(U.delegate==="GPU"?(U=N,q=new hA,om(U,2,ky,q)):(U=N,q=new AS,om(U,4,ky,q))),Ue(G.baseOptions,0,3,N)}(this,M),M.modelAssetPath)return fetch(M.modelAssetPath.toString()).then(G=>{if(G.ok)return G.arrayBuffer();throw Error(`Failed to fetch model: ${M.modelAssetPath} (${G.status})`)}).then(G=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(G),!0,!1,!1),Yw(this,"/model.dat"),this.m(),this.L()});if(M.modelAssetBuffer instanceof Uint8Array)Yw(this,M.modelAssetBuffer);else if(M.modelAssetBuffer)return async function(G){const U=[];for(var N=0;;){const{done:q,value:k}=await G.read();if(q)break;U.push(k),N+=k.length}if(U.length===0)return new Uint8Array(0);if(U.length===1)return U[0];G=new Uint8Array(N),N=0;for(const q of U)G.set(q,N),N+=q.length;return G}(M.modelAssetBuffer).then(G=>{Yw(this,G),this.m(),this.L()})}return this.m(),this.L(),Promise.resolve()}L(){}ca(){let i;if(this.g.ca(c=>{i=mA(c)}),!i)throw Error("Failed to retrieve CalculatorGraphConfig");return i}setGraph(i,c){this.g.attachErrorListener((f,h)=>{this.H.push(Error(h))}),this.g.Ja(),this.g.setGraph(i,c),this.B=void 0,b8(this)}finishProcessing(){this.g.finishProcessing(),b8(this)}close(){this.B=void 0,this.g.closeGraph()}};function or(i,c){if(!i)throw Error(`Unable to obtain required WebGL resource: ${c}`);return i}kw.prototype.close=kw.prototype.close;class YA{constructor(c,f,h,y){this.g=c,this.h=f,this.m=h,this.l=y}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function S8(i,c,f){const h=i.g;if(f=or(h.createShader(f),"Failed to create WebGL shader"),h.shaderSource(f,c),h.compileShader(f),!h.getShaderParameter(f,h.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${h.getShaderInfoLog(f)}`);return h.attachShader(i.h,f),f}function E8(i,c){const f=i.g,h=or(f.createVertexArray(),"Failed to create vertex array");f.bindVertexArray(h);const y=or(f.createBuffer(),"Failed to create buffer");f.bindBuffer(f.ARRAY_BUFFER,y),f.enableVertexAttribArray(i.O),f.vertexAttribPointer(i.O,2,f.FLOAT,!1,0,0),f.bufferData(f.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),f.STATIC_DRAW);const w=or(f.createBuffer(),"Failed to create buffer");return f.bindBuffer(f.ARRAY_BUFFER,w),f.enableVertexAttribArray(i.L),f.vertexAttribPointer(i.L,2,f.FLOAT,!1,0,0),f.bufferData(f.ARRAY_BUFFER,new Float32Array(c?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),f.STATIC_DRAW),f.bindBuffer(f.ARRAY_BUFFER,null),f.bindVertexArray(null),new YA(f,h,y,w)}function Xw(i,c){if(i.g){if(c!==i.g)throw Error("Cannot change GL context once initialized")}else i.g=c}function kA(i,c,f,h){return Xw(i,c),i.h||(i.m(),i.D()),f?(i.u||(i.u=E8(i,!0)),f=i.u):(i.A||(i.A=E8(i,!1)),f=i.A),c.useProgram(i.h),f.bind(),i.l(),i=h(),f.g.bindVertexArray(null),i}function T8(i,c,f){return Xw(i,c),i=or(c.createTexture(),"Failed to create texture"),c.bindTexture(c.TEXTURE_2D,i),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,f??c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,f??c.LINEAR),c.bindTexture(c.TEXTURE_2D,null),i}function A8(i,c,f){Xw(i,c),i.B||(i.B=or(c.createFramebuffer(),"Failed to create framebuffe.")),c.bindFramebuffer(c.FRAMEBUFFER,i.B),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,f,0)}function XA(i){var c;(c=i.g)==null||c.bindFramebuffer(i.g.FRAMEBUFFER,null)}var _8=class{H(){return`
|
|
2
2
|
precision mediump float;
|
|
3
3
|
varying vec2 vTex;
|
|
4
4
|
uniform sampler2D inputTexture;
|
|
5
5
|
void main() {
|
|
6
6
|
gl_FragColor = texture2D(inputTexture, vTex);
|
|
7
7
|
}
|
|
8
|
-
`}m(){const
|
|
8
|
+
`}m(){const i=this.g;if(this.h=or(i.createProgram(),"Failed to create WebGL program"),this.X=S8(this,`
|
|
9
9
|
attribute vec2 aVertex;
|
|
10
10
|
attribute vec2 aTex;
|
|
11
11
|
varying vec2 vTex;
|
|
12
12
|
void main(void) {
|
|
13
13
|
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
14
14
|
vTex = aTex;
|
|
15
|
-
}`,e.VERTEX_SHADER),this.W=j0(this,this.H(),e.FRAGMENT_SHADER),e.linkProgram(this.h),!e.getProgramParameter(this.h,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);this.O=e.getAttribLocation(this.h,"aVertex"),this.L=e.getAttribLocation(this.h,"aTex")}D(){}l(){}close(){if(this.h){const e=this.g;e.deleteProgram(this.h),e.deleteShader(this.X),e.deleteShader(this.W)}this.B&&this.g.deleteFramebuffer(this.B),this.A&&this.A.close(),this.u&&this.u.close()}};function Fn(e,t){switch(t){case 0:return e.g.find(n=>n instanceof Uint8Array);case 1:return e.g.find(n=>n instanceof Float32Array);case 2:return e.g.find(n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture);default:throw Error(`Type is not supported: ${t}`)}}function sf(e){var t=Fn(e,1);if(!t){if(t=Fn(e,0))t=new Float32Array(t).map(a=>a/255);else{t=new Float32Array(e.width*e.height);const a=il(e);var n=of(e);if(F0(n,a,X0(e)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){n=new Float32Array(e.width*e.height*4),a.readPixels(0,0,e.width,e.height,a.RGBA,a.FLOAT,n);for(let i=0,l=0;i<t.length;++i,l+=4)t[i]=n[l]}else a.readPixels(0,0,e.width,e.height,a.RED,a.FLOAT,t)}e.g.push(t)}return t}function X0(e){let t=Fn(e,2);if(!t){const n=il(e);t=K0(e);const a=sf(e),i=Q0(e);n.texImage2D(n.TEXTURE_2D,0,i,e.width,e.height,0,n.RED,n.FLOAT,a),cf(e)}return t}function il(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=pa(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function Q0(e){if(e=il(e),!ro)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))ro=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");ro=e.R16F}return ro}function of(e){return e.l||(e.l=new Y0),e.l}function K0(e){const t=il(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=Fn(e,2);return n||(n=q0(of(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(n),e.j=!0),t.bindTexture(t.TEXTURE_2D,n),n}function cf(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var ro,Ze=class{constructor(e,t,n,a,i,l,r){this.g=e,this.m=t,this.j=n,this.canvas=a,this.l=i,this.width=l,this.height=r,this.j&&--Z0===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Fa(){return!!Fn(this,0)}ka(){return!!Fn(this,1)}R(){return!!Fn(this,2)}ja(){return(t=Fn(e=this,0))||(t=sf(e),t=new Uint8Array(t.map(n=>Math.round(255*n))),e.g.push(t)),t;var e,t}ia(){return sf(this)}N(){return X0(this)}clone(){const e=[];for(const t of this.g){let n;if(t instanceof Uint8Array)n=new Uint8Array(t);else if(t instanceof Float32Array)n=new Float32Array(t);else{if(!(t instanceof WebGLTexture))throw Error(`Type is not supported: ${t}`);{const a=il(this),i=of(this);a.activeTexture(a.TEXTURE1),n=q0(i,a,this.m?a.LINEAR:a.NEAREST),a.bindTexture(a.TEXTURE_2D,n);const l=Q0(this);a.texImage2D(a.TEXTURE_2D,0,l,this.width,this.height,0,a.RED,a.FLOAT,null),a.bindTexture(a.TEXTURE_2D,null),F0(i,a,n),oy(i,a,!1,()=>{K0(this),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.drawArrays(a.TRIANGLE_FAN,0,4),cf(this)}),cy(i),cf(this)}}e.push(n)}return new Ze(e,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&il(this).deleteTexture(Fn(this,2)),Z0=-1}};Ze.prototype.close=Ze.prototype.close,Ze.prototype.clone=Ze.prototype.clone,Ze.prototype.getAsWebGLTexture=Ze.prototype.N,Ze.prototype.getAsFloat32Array=Ze.prototype.ia,Ze.prototype.getAsUint8Array=Ze.prototype.ja,Ze.prototype.hasWebGLTexture=Ze.prototype.R,Ze.prototype.hasFloat32Array=Ze.prototype.ka,Ze.prototype.hasUint8Array=Ze.prototype.Fa;var Z0=250;function gn(...e){return e.map(([t,n])=>({start:t,end:n}))}const uy=function(e){return class extends e{Ja(){this.i._registerModelResourcesGraphService()}}}((I0=class{constructor(e,t){this.l=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:k0()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(e){const t=await(await fetch(e)).arrayBuffer();e=!(e.endsWith(".pbtxt")||e.endsWith(".textproto")),this.setGraph(new Uint8Array(t),e)}setGraphFromString(e){this.setGraph(new TextEncoder().encode(e),!1)}setGraph(e,t){const n=e.length,a=this.i._malloc(n);this.i.HEAPU8.set(e,a),t?this.i._changeBinaryGraph(n,a):this.i._changeTextGraph(n,a),this.i._free(a)}configureAudio(e,t,n,a,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),L(this,a||"input_audio",l=>{L(this,i=i||"audio_header",r=>{this.i._configureAudio(l,r,e,t??0,n)})})}setAutoResizeCanvas(e){this.l=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ca(e){Mn(this,"__graph_config__",t=>{e(t)}),L(this,"__graph_config__",t=>{this.i._getGraphConfig(t,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(e){this.i.errorListener=e}attachEmptyPacketListener(e,t){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[e]=t}addAudioToStream(e,t,n){this.addAudioToStreamWithShape(e,0,0,t,n)}addAudioToStreamWithShape(e,t,n,a,i){const l=4*e.length;this.h!==l&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(l),this.h=l),this.i.HEAPF32.set(e,this.g/4),L(this,a,r=>{this.i._addAudioToInputStream(this.g,t,n,r,i)})}addGpuBufferToStream(e,t,n){L(this,t,a=>{const[i,l]=B0(this,e,a);this.i._addBoundTextureToStream(a,i,l,n)})}addBoolToStream(e,t,n){L(this,t,a=>{this.i._addBoolToInputStream(e,a,n)})}addDoubleToStream(e,t,n){L(this,t,a=>{this.i._addDoubleToInputStream(e,a,n)})}addFloatToStream(e,t,n){L(this,t,a=>{this.i._addFloatToInputStream(e,a,n)})}addIntToStream(e,t,n){L(this,t,a=>{this.i._addIntToInputStream(e,a,n)})}addUintToStream(e,t,n){L(this,t,a=>{this.i._addUintToInputStream(e,a,n)})}addStringToStream(e,t,n){L(this,t,a=>{L(this,e,i=>{this.i._addStringToInputStream(i,a,n)})})}addStringRecordToStream(e,t,n){L(this,t,a=>{G0(this,Object.keys(e),i=>{G0(this,Object.values(e),l=>{this.i._addFlatHashMapToInputStream(i,l,Object.keys(e).length,a,n)})})})}addProtoToStream(e,t,n,a){L(this,n,i=>{L(this,t,l=>{const r=this.i._malloc(e.length);this.i.HEAPU8.set(e,r),this.i._addProtoToInputStream(r,e.length,l,i,a),this.i._free(r)})})}addEmptyPacketToStream(e,t){L(this,e,n=>{this.i._addEmptyPacketToInputStream(n,t)})}addBoolVectorToStream(e,t,n){L(this,t,a=>{const i=this.i._allocateBoolVector(e.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(const l of e)this.i._addBoolVectorEntry(i,l);this.i._addBoolVectorToInputStream(i,a,n)})}addDoubleVectorToStream(e,t,n){L(this,t,a=>{const i=this.i._allocateDoubleVector(e.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(const l of e)this.i._addDoubleVectorEntry(i,l);this.i._addDoubleVectorToInputStream(i,a,n)})}addFloatVectorToStream(e,t,n){L(this,t,a=>{const i=this.i._allocateFloatVector(e.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(const l of e)this.i._addFloatVectorEntry(i,l);this.i._addFloatVectorToInputStream(i,a,n)})}addIntVectorToStream(e,t,n){L(this,t,a=>{const i=this.i._allocateIntVector(e.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(const l of e)this.i._addIntVectorEntry(i,l);this.i._addIntVectorToInputStream(i,a,n)})}addUintVectorToStream(e,t,n){L(this,t,a=>{const i=this.i._allocateUintVector(e.length);if(!i)throw Error("Unable to allocate new unsigned int vector on heap.");for(const l of e)this.i._addUintVectorEntry(i,l);this.i._addUintVectorToInputStream(i,a,n)})}addStringVectorToStream(e,t,n){L(this,t,a=>{const i=this.i._allocateStringVector(e.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(const l of e)L(this,l,r=>{this.i._addStringVectorEntry(i,r)});this.i._addStringVectorToInputStream(i,a,n)})}addBoolToInputSidePacket(e,t){L(this,t,n=>{this.i._addBoolToInputSidePacket(e,n)})}addDoubleToInputSidePacket(e,t){L(this,t,n=>{this.i._addDoubleToInputSidePacket(e,n)})}addFloatToInputSidePacket(e,t){L(this,t,n=>{this.i._addFloatToInputSidePacket(e,n)})}addIntToInputSidePacket(e,t){L(this,t,n=>{this.i._addIntToInputSidePacket(e,n)})}addUintToInputSidePacket(e,t){L(this,t,n=>{this.i._addUintToInputSidePacket(e,n)})}addStringToInputSidePacket(e,t){L(this,t,n=>{L(this,e,a=>{this.i._addStringToInputSidePacket(a,n)})})}addProtoToInputSidePacket(e,t,n){L(this,n,a=>{L(this,t,i=>{const l=this.i._malloc(e.length);this.i.HEAPU8.set(e,l),this.i._addProtoToInputSidePacket(l,e.length,i,a),this.i._free(l)})})}addBoolVectorToInputSidePacket(e,t){L(this,t,n=>{const a=this.i._allocateBoolVector(e.length);if(!a)throw Error("Unable to allocate new bool vector on heap.");for(const i of e)this.i._addBoolVectorEntry(a,i);this.i._addBoolVectorToInputSidePacket(a,n)})}addDoubleVectorToInputSidePacket(e,t){L(this,t,n=>{const a=this.i._allocateDoubleVector(e.length);if(!a)throw Error("Unable to allocate new double vector on heap.");for(const i of e)this.i._addDoubleVectorEntry(a,i);this.i._addDoubleVectorToInputSidePacket(a,n)})}addFloatVectorToInputSidePacket(e,t){L(this,t,n=>{const a=this.i._allocateFloatVector(e.length);if(!a)throw Error("Unable to allocate new float vector on heap.");for(const i of e)this.i._addFloatVectorEntry(a,i);this.i._addFloatVectorToInputSidePacket(a,n)})}addIntVectorToInputSidePacket(e,t){L(this,t,n=>{const a=this.i._allocateIntVector(e.length);if(!a)throw Error("Unable to allocate new int vector on heap.");for(const i of e)this.i._addIntVectorEntry(a,i);this.i._addIntVectorToInputSidePacket(a,n)})}addUintVectorToInputSidePacket(e,t){L(this,t,n=>{const a=this.i._allocateUintVector(e.length);if(!a)throw Error("Unable to allocate new unsigned int vector on heap.");for(const i of e)this.i._addUintVectorEntry(a,i);this.i._addUintVectorToInputSidePacket(a,n)})}addStringVectorToInputSidePacket(e,t){L(this,t,n=>{const a=this.i._allocateStringVector(e.length);if(!a)throw Error("Unable to allocate new string vector on heap.");for(const i of e)L(this,i,l=>{this.i._addStringVectorEntry(a,l)});this.i._addStringVectorToInputSidePacket(a,n)})}attachBoolListener(e,t){Mn(this,e,t),L(this,e,n=>{this.i._attachBoolListener(n)})}attachBoolVectorListener(e,t){ya(this,e,t),L(this,e,n=>{this.i._attachBoolVectorListener(n)})}attachIntListener(e,t){Mn(this,e,t),L(this,e,n=>{this.i._attachIntListener(n)})}attachIntVectorListener(e,t){ya(this,e,t),L(this,e,n=>{this.i._attachIntVectorListener(n)})}attachUintListener(e,t){Mn(this,e,t),L(this,e,n=>{this.i._attachUintListener(n)})}attachUintVectorListener(e,t){ya(this,e,t),L(this,e,n=>{this.i._attachUintVectorListener(n)})}attachDoubleListener(e,t){Mn(this,e,t),L(this,e,n=>{this.i._attachDoubleListener(n)})}attachDoubleVectorListener(e,t){ya(this,e,t),L(this,e,n=>{this.i._attachDoubleVectorListener(n)})}attachFloatListener(e,t){Mn(this,e,t),L(this,e,n=>{this.i._attachFloatListener(n)})}attachFloatVectorListener(e,t){ya(this,e,t),L(this,e,n=>{this.i._attachFloatVectorListener(n)})}attachStringListener(e,t){Mn(this,e,t),L(this,e,n=>{this.i._attachStringListener(n)})}attachStringVectorListener(e,t){ya(this,e,t),L(this,e,n=>{this.i._attachStringVectorListener(n)})}attachProtoListener(e,t,n){Mn(this,e,t),L(this,e,a=>{this.i._attachProtoListener(a,n||!1)})}attachProtoVectorListener(e,t,n){ya(this,e,t),L(this,e,a=>{this.i._attachProtoVectorListener(a,n||!1)})}attachAudioListener(e,t,n){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),Mn(this,e,(a,i)=>{a=new Float32Array(a.buffer,a.byteOffset,a.length/4),t(a,i)}),L(this,e,a=>{this.i._attachAudioListener(a,n||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends I0{get ga(){return this.i}pa(e,t,n){L(this,t,a=>{const[i,l]=B0(this,e,a);this.ga._addBoundTextureAsImageToStream(a,i,l,n)})}Z(e,t){Mn(this,e,t),L(this,e,n=>{this.ga._attachImageListener(n)})}aa(e,t){ya(this,e,t),L(this,e,n=>{this.ga._attachImageVectorListener(n)})}}));var I0,wn=class extends uy{};async function Z(e,t,n){return async function(a,i,l,r){return ry(a,i,l,r)}(e,n.canvas??(k0()?void 0:document.createElement("canvas")),t,n)}function J0(e,t,n,a){if(e.U){const l=new e0;if(n!=null&&n.regionOfInterest){if(!e.oa)throw Error("This task doesn't support region-of-interest.");var i=n.regionOfInterest;if(i.left>=i.right||i.top>=i.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(i.left<0||i.top<0||i.right>1||i.bottom>1)throw Error("Expected RectF values to be in [0,1].");U(l,1,(i.left+i.right)/2),U(l,2,(i.top+i.bottom)/2),U(l,4,i.right-i.left),U(l,3,i.bottom-i.top)}else U(l,1,.5),U(l,2,.5),U(l,4,1),U(l,3,1);if(n!=null&&n.rotationDegrees){if((n==null?void 0:n.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(U(l,5,-Math.PI*n.rotationDegrees/180),(n==null?void 0:n.rotationDegrees)%180!=0){const[r,s]=U0(t);n=Ae(l,3)*s/r,i=Ae(l,4)*r/s,U(l,4,n),U(l,3,i)}}e.g.addProtoToStream(l.g(),"mediapipe.NormalizedRect",e.U,a)}e.g.pa(t,e.X,a??performance.now()),e.finishProcessing()}function mn(e,t,n){var a;if((a=e.baseOptions)!=null&&a.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");J0(e,t,n,e.C+1)}function Cn(e,t,n,a){var i;if(!((i=e.baseOptions)!=null&&i.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");J0(e,t,n,a)}function ll(e,t,n,a){var i=t.data;const l=t.width,r=l*(t=t.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==r)throw Error("Unsupported channel count: "+i.length/r);return e=new Ze([i],n,!1,e.g.i.canvas,e.P,l,t),a?e.clone():e}var Dt=class extends lf{constructor(e,t,n,a){super(e),this.g=e,this.X=t,this.U=n,this.oa=a,this.P=new Y0}l(e,t=!0){if("runningMode"in e&&ne(this.baseOptions,2,ur(!!e.runningMode&&e.runningMode!=="IMAGE")),e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(e,t)}close(){this.P.close(),super.close()}};Dt.prototype.close=Dt.prototype.close;var Wt=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect_in",!1),this.j={detections:[]},B(e=this.h=new to,0,1,t=new ve),U(this.h,2,.5),U(this.h,3,.3)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return"minDetectionConfidence"in e&&U(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&U(this.h,3,e.minSuppressionThreshold??.3),this.l(e)}F(e,t){return this.j={detections:[]},mn(this,e,t),this.j}G(e,t,n){return this.j={detections:[]},Cn(this,e,n,t),this.j}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect_in"),W(e,"detections");const t=new Mt;Tn(t,Q5,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect_in"),K(n,"DETECTIONS:detections"),n.o(t),Jt(e,n),this.g.attachProtoVectorListener("detections",(a,i)=>{for(const l of a)a=Rh(l),this.j.detections.push(C0(a));D(this,i)}),this.g.attachEmptyPacketListener("detections",a=>{D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Wt.prototype.detectForVideo=Wt.prototype.G,Wt.prototype.detect=Wt.prototype.F,Wt.prototype.setOptions=Wt.prototype.o,Wt.createFromModelPath=async function(e,t){return Z(Wt,e,{baseOptions:{modelAssetPath:t}})},Wt.createFromModelBuffer=function(e,t){return Z(Wt,e,{baseOptions:{modelAssetBuffer:t}})},Wt.createFromOptions=function(e,t){return Z(Wt,e,t)};var uf=gn([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),ff=gn([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),df=gn([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),W0=gn([474,475],[475,476],[476,477],[477,474]),hf=gn([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),gf=gn([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),R0=gn([469,470],[470,471],[471,472],[472,469]),wf=gn([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),P0=[...uf,...ff,...df,...hf,...gf,...wf],$0=gn([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function e3(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var pe=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,B(e=this.h=new o0,0,1,t=new ve),this.A=new s0,B(this.h,0,3,this.A),this.u=new to,B(this.h,0,2,this.u),Vn(this.u,4,1),U(this.u,2,.5),U(this.A,2,.5),U(this.h,4,.5)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return"numFaces"in e&&Vn(this.u,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&U(this.u,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&U(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&U(this.A,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.l(e)}F(e,t){return e3(this),mn(this,e,t),this.j}G(e,t,n){return e3(this),Cn(this,e,n,t),this.j}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect"),W(e,"face_landmarks");const t=new Mt;Tn(t,Z5,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect"),K(n,"NORM_LANDMARKS:face_landmarks"),n.o(t),Jt(e,n),this.g.attachProtoVectorListener("face_landmarks",(a,i)=>{for(const l of a)a=pr(l),this.j.faceLandmarks.push(no(a));D(this,i)}),this.g.attachEmptyPacketListener("face_landmarks",a=>{D(this,a)}),this.outputFaceBlendshapes&&(W(e,"blendshapes"),K(n,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(a,i)=>{if(this.outputFaceBlendshapes)for(const l of a)a=Ps(l),this.j.faceBlendshapes.push(nf(a.g()??[]));D(this,i)}),this.g.attachEmptyPacketListener("blendshapes",a=>{D(this,a)})),this.outputFacialTransformationMatrixes&&(W(e,"face_geometry"),K(n,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(a,i)=>{if(this.outputFacialTransformationMatrixes)for(const l of a)(a=J(a=K5(l),G5,2))&&this.j.facialTransformationMatrixes.push({rows:Zt(a,1)??0??0,columns:Zt(a,2)??0??0,data:ti(a,3,xn,ei()).slice()??[]});D(this,i)}),this.g.attachEmptyPacketListener("face_geometry",a=>{D(this,a)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};pe.prototype.detectForVideo=pe.prototype.G,pe.prototype.detect=pe.prototype.F,pe.prototype.setOptions=pe.prototype.o,pe.createFromModelPath=function(e,t){return Z(pe,e,{baseOptions:{modelAssetPath:t}})},pe.createFromModelBuffer=function(e,t){return Z(pe,e,{baseOptions:{modelAssetBuffer:t}})},pe.createFromOptions=function(e,t){return Z(pe,e,t)},pe.FACE_LANDMARKS_LIPS=uf,pe.FACE_LANDMARKS_LEFT_EYE=ff,pe.FACE_LANDMARKS_LEFT_EYEBROW=df,pe.FACE_LANDMARKS_LEFT_IRIS=W0,pe.FACE_LANDMARKS_RIGHT_EYE=hf,pe.FACE_LANDMARKS_RIGHT_EYEBROW=gf,pe.FACE_LANDMARKS_RIGHT_IRIS=R0,pe.FACE_LANDMARKS_FACE_OVAL=wf,pe.FACE_LANDMARKS_CONTOURS=P0,pe.FACE_LANDMARKS_TESSELATION=$0;var mf=gn([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function t3(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function n3(e){return e.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:e.gestures,landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handedness:e.handedness,handednesses:e.handedness}}function a3(e,t=!0){const n=[];for(const i of e){var a=Ps(i);e=[];for(const l of a.g())a=t&&Zt(l,1)!=null?Zt(l,1)??0:-1,e.push({score:Ae(l,2)??0,index:a,categoryName:Pe(de(l,3))??""??"",displayName:Pe(de(l,4))??""??""});n.push(e)}return n}var Ot=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],B(e=this.j=new f0,0,1,t=new ve),this.u=new Iu,B(this.j,0,2,this.u),this.D=new Zu,B(this.u,0,3,this.D),this.A=new u0,B(this.u,0,2,this.A),this.h=new I5,B(this.j,0,3,this.h),U(this.A,2,.5),U(this.u,4,.5),U(this.D,2,.5)}get baseOptions(){return J(this.j,ve,1)}set baseOptions(e){B(this.j,0,1,e)}o(e){var i,l,r,s;if(Vn(this.A,3,e.numHands??1),"minHandDetectionConfidence"in e&&U(this.A,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&U(this.u,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&U(this.D,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new nl,n=t,a=tf(e.cannedGesturesClassifierOptions,(i=J(this.h,nl,3))==null?void 0:i.l());B(n,0,2,a),B(this.h,0,3,t)}else e.cannedGesturesClassifierOptions===void 0&&((l=J(this.h,nl,3))==null||l.g());return e.customGesturesClassifierOptions?(B(n=t=new nl,0,2,a=tf(e.customGesturesClassifierOptions,(r=J(this.h,nl,4))==null?void 0:r.l())),B(this.h,0,4,t)):e.customGesturesClassifierOptions===void 0&&((s=J(this.h,nl,4))==null||s.g()),this.l(e)}Ha(e,t){return t3(this),mn(this,e,t),n3(this)}Ia(e,t,n){return t3(this),Cn(this,e,n,t),n3(this)}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect"),W(e,"hand_gestures"),W(e,"hand_landmarks"),W(e,"world_hand_landmarks"),W(e,"handedness");const t=new Mt;Tn(t,J5,this.j);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect"),K(n,"HAND_GESTURES:hand_gestures"),K(n,"LANDMARKS:hand_landmarks"),K(n,"WORLD_LANDMARKS:world_hand_landmarks"),K(n,"HANDEDNESS:handedness"),n.o(t),Jt(e,n),this.g.attachProtoVectorListener("hand_landmarks",(a,i)=>{for(const l of a){a=pr(l);const r=[];for(const s of jn(a,$h,1))r.push({x:Ae(s,1)??0,y:Ae(s,2)??0,z:Ae(s,3)??0,visibility:Ae(s,4)??0});this.landmarks.push(r)}D(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",a=>{D(this,a)}),this.g.attachProtoVectorListener("world_hand_landmarks",(a,i)=>{for(const l of a){a=tl(l);const r=[];for(const s of jn(a,Ph,1))r.push({x:Ae(s,1)??0,y:Ae(s,2)??0,z:Ae(s,3)??0,visibility:Ae(s,4)??0});this.worldLandmarks.push(r)}D(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",a=>{D(this,a)}),this.g.attachProtoVectorListener("hand_gestures",(a,i)=>{this.gestures.push(...a3(a,!1)),D(this,i)}),this.g.attachEmptyPacketListener("hand_gestures",a=>{D(this,a)}),this.g.attachProtoVectorListener("handedness",(a,i)=>{this.handedness.push(...a3(a)),D(this,i)}),this.g.attachEmptyPacketListener("handedness",a=>{D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function i3(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}Ot.prototype.recognizeForVideo=Ot.prototype.Ia,Ot.prototype.recognize=Ot.prototype.Ha,Ot.prototype.setOptions=Ot.prototype.o,Ot.createFromModelPath=function(e,t){return Z(Ot,e,{baseOptions:{modelAssetPath:t}})},Ot.createFromModelBuffer=function(e,t){return Z(Ot,e,{baseOptions:{modelAssetBuffer:t}})},Ot.createFromOptions=function(e,t){return Z(Ot,e,t)},Ot.HAND_CONNECTIONS=mf;var zt=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],B(e=this.h=new Iu,0,1,t=new ve),this.u=new Zu,B(this.h,0,3,this.u),this.j=new u0,B(this.h,0,2,this.j),Vn(this.j,3,1),U(this.j,2,.5),U(this.u,2,.5),U(this.h,4,.5)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return"numHands"in e&&Vn(this.j,3,e.numHands??1),"minHandDetectionConfidence"in e&&U(this.j,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&U(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&U(this.u,2,e.minHandPresenceConfidence??.5),this.l(e)}F(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],mn(this,e,t),i3(this)}G(e,t,n){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Cn(this,e,n,t),i3(this)}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect"),W(e,"hand_landmarks"),W(e,"world_hand_landmarks"),W(e,"handedness");const t=new Mt;Tn(t,W5,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect"),K(n,"LANDMARKS:hand_landmarks"),K(n,"WORLD_LANDMARKS:world_hand_landmarks"),K(n,"HANDEDNESS:handedness"),n.o(t),Jt(e,n),this.g.attachProtoVectorListener("hand_landmarks",(a,i)=>{for(const l of a)a=pr(l),this.landmarks.push(no(a));D(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",a=>{D(this,a)}),this.g.attachProtoVectorListener("world_hand_landmarks",(a,i)=>{for(const l of a)a=tl(l),this.worldLandmarks.push(vr(a));D(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",a=>{D(this,a)}),this.g.attachProtoVectorListener("handedness",(a,i)=>{var l=this.handedness,r=l.push;const s=[];for(const c of a){a=Ps(c);const u=[];for(const f of a.g())u.push({score:Ae(f,2)??0,index:Zt(f,1)??0??-1,categoryName:Pe(de(f,3))??""??"",displayName:Pe(de(f,4))??""??""});s.push(u)}r.call(l,...s),D(this,i)}),this.g.attachEmptyPacketListener("handedness",a=>{D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};zt.prototype.detectForVideo=zt.prototype.G,zt.prototype.detect=zt.prototype.F,zt.prototype.setOptions=zt.prototype.o,zt.createFromModelPath=function(e,t){return Z(zt,e,{baseOptions:{modelAssetPath:t}})},zt.createFromModelBuffer=function(e,t){return Z(zt,e,{baseOptions:{modelAssetBuffer:t}})},zt.createFromOptions=function(e,t){return Z(zt,e,t)},zt.HAND_CONNECTIONS=mf;var l3=gn([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function r3(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function s3(e){try{if(!e.D)return e.h;e.D(e.h)}finally{lo(e)}}function so(e,t){e=pr(e),t.push(no(e))}var ge=class extends Dt{constructor(e,t){super(new wn(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,B(e=this.j=new y0,0,1,t=new ve),this.I=new Zu,B(this.j,0,2,this.I),this.W=new R5,B(this.j,0,3,this.W),this.u=new to,B(this.j,0,4,this.u),this.O=new s0,B(this.j,0,5,this.O),this.A=new w0,B(this.j,0,6,this.A),this.M=new m0,B(this.j,0,7,this.M),U(this.u,2,.5),U(this.u,3,.3),U(this.O,2,.5),U(this.A,2,.5),U(this.A,3,.3),U(this.M,2,.5),U(this.I,2,.5)}get baseOptions(){return J(this.j,ve,1)}set baseOptions(e){B(this.j,0,1,e)}o(e){return"minFaceDetectionConfidence"in e&&U(this.u,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&U(this.u,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&U(this.O,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&U(this.A,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&U(this.A,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&U(this.M,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&U(this.I,2,e.minHandLandmarksConfidence??.5),this.l(e)}F(e,t,n){const a=typeof t!="function"?t:{};return this.D=typeof t=="function"?t:n,r3(this),mn(this,e,a),s3(this)}G(e,t,n,a){const i=typeof n!="function"?n:{};return this.D=typeof n=="function"?n:a,r3(this),Cn(this,e,i,t),s3(this)}m(){var e=new Ct;ye(e,"input_frames_image"),W(e,"pose_landmarks"),W(e,"pose_world_landmarks"),W(e,"face_landmarks"),W(e,"left_hand_landmarks"),W(e,"left_hand_world_landmarks"),W(e,"right_hand_landmarks"),W(e,"right_hand_world_landmarks");const t=new Mt,n=new Lh;Tt(n,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),function(i,l){if(l!=null)if(Array.isArray(l))ne(i,2,Us(l,0,hr));else{if(!(typeof l=="string"||l instanceof En||$c(l)))throw Error("invalid value in Any.value field: "+l+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");da(i,2,au(l,!1),Ia())}}(n,this.j.g());const a=new dt;Tt(a,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),xu(a,8,Lh,n),he(a,"IMAGE:input_frames_image"),K(a,"POSE_LANDMARKS:pose_landmarks"),K(a,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),K(a,"FACE_LANDMARKS:face_landmarks"),K(a,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),K(a,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),K(a,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),K(a,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),a.o(t),Jt(e,a),io(this,e),this.g.attachProtoListener("pose_landmarks",(i,l)=>{so(i,this.h.poseLandmarks),D(this,l)}),this.g.attachEmptyPacketListener("pose_landmarks",i=>{D(this,i)}),this.g.attachProtoListener("pose_world_landmarks",(i,l)=>{var r=this.h.poseWorldLandmarks;i=tl(i),r.push(vr(i)),D(this,l)}),this.g.attachEmptyPacketListener("pose_world_landmarks",i=>{D(this,i)}),this.outputPoseSegmentationMasks&&(K(a,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),al(this,"pose_segmentation_mask"),this.g.Z("pose_segmentation_mask",(i,l)=>{this.h.poseSegmentationMasks=[ll(this,i,!0,!this.D)],D(this,l)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",i=>{this.h.poseSegmentationMasks=[],D(this,i)})),this.g.attachProtoListener("face_landmarks",(i,l)=>{so(i,this.h.faceLandmarks),D(this,l)}),this.g.attachEmptyPacketListener("face_landmarks",i=>{D(this,i)}),this.outputFaceBlendshapes&&(W(e,"extra_blendshapes"),K(a,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(i,l)=>{var r=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(i=Ps(i),r.push(nf(i.g()??[]))),D(this,l)}),this.g.attachEmptyPacketListener("extra_blendshapes",i=>{D(this,i)})),this.g.attachProtoListener("left_hand_landmarks",(i,l)=>{so(i,this.h.leftHandLandmarks),D(this,l)}),this.g.attachEmptyPacketListener("left_hand_landmarks",i=>{D(this,i)}),this.g.attachProtoListener("left_hand_world_landmarks",(i,l)=>{var r=this.h.leftHandWorldLandmarks;i=tl(i),r.push(vr(i)),D(this,l)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",i=>{D(this,i)}),this.g.attachProtoListener("right_hand_landmarks",(i,l)=>{so(i,this.h.rightHandLandmarks),D(this,l)}),this.g.attachEmptyPacketListener("right_hand_landmarks",i=>{D(this,i)}),this.g.attachProtoListener("right_hand_world_landmarks",(i,l)=>{var r=this.h.rightHandWorldLandmarks;i=tl(i),r.push(vr(i)),D(this,l)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",i=>{D(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ge.prototype.detectForVideo=ge.prototype.G,ge.prototype.detect=ge.prototype.F,ge.prototype.setOptions=ge.prototype.o,ge.createFromModelPath=function(e,t){return Z(ge,e,{baseOptions:{modelAssetPath:t}})},ge.createFromModelBuffer=function(e,t){return Z(ge,e,{baseOptions:{modelAssetBuffer:t}})},ge.createFromOptions=function(e,t){return Z(ge,e,t)},ge.HAND_CONNECTIONS=mf,ge.POSE_CONNECTIONS=l3,ge.FACE_LANDMARKS_LIPS=uf,ge.FACE_LANDMARKS_LEFT_EYE=ff,ge.FACE_LANDMARKS_LEFT_EYEBROW=df,ge.FACE_LANDMARKS_LEFT_IRIS=W0,ge.FACE_LANDMARKS_RIGHT_EYE=hf,ge.FACE_LANDMARKS_RIGHT_EYEBROW=gf,ge.FACE_LANDMARKS_RIGHT_IRIS=R0,ge.FACE_LANDMARKS_FACE_OVAL=wf,ge.FACE_LANDMARKS_CONTOURS=P0,ge.FACE_LANDMARKS_TESSELATION=$0;var Rt=class extends Dt{constructor(e,t){super(new wn(e,t),"input_image","norm_rect",!0),this.j={classifications:[]},B(e=this.h=new p0,0,1,t=new ve)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return B(this.h,0,2,tf(e,J(this.h,Xu,2))),this.l(e)}sa(e,t){return this.j={classifications:[]},mn(this,e,t),this.j}ta(e,t,n){return this.j={classifications:[]},Cn(this,e,n,t),this.j}m(){var e=new Ct;ye(e,"input_image"),ye(e,"norm_rect"),W(e,"classifications");const t=new Mt;Tn(t,P5,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),he(n,"IMAGE:input_image"),he(n,"NORM_RECT:norm_rect"),K(n,"CLASSIFICATIONS:classifications"),n.o(t),Jt(e,n),this.g.attachProtoListener("classifications",(a,i)=>{this.j=iy(V5(a)),D(this,i)}),this.g.attachEmptyPacketListener("classifications",a=>{D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Rt.prototype.classifyForVideo=Rt.prototype.ta,Rt.prototype.classify=Rt.prototype.sa,Rt.prototype.setOptions=Rt.prototype.o,Rt.createFromModelPath=function(e,t){return Z(Rt,e,{baseOptions:{modelAssetPath:t}})},Rt.createFromModelBuffer=function(e,t){return Z(Rt,e,{baseOptions:{modelAssetBuffer:t}})},Rt.createFromOptions=function(e,t){return Z(Rt,e,t)};var kt=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect",!0),this.h=new v0,this.embeddings={embeddings:[]},B(e=this.h,0,1,t=new ve)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){var t=this.h,n=J(this.h,i0,2);return n=n?n.clone():new i0,e.l2Normalize!==void 0?ne(n,1,ur(e.l2Normalize)):"l2Normalize"in e&&ne(n,1),e.quantize!==void 0?ne(n,2,ur(e.quantize)):"quantize"in e&&ne(n,2),B(t,0,2,n),this.l(e)}za(e,t){return mn(this,e,t),this.embeddings}Aa(e,t,n){return Cn(this,e,n,t),this.embeddings}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect"),W(e,"embeddings_out");const t=new Mt;Tn(t,$5,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect"),K(n,"EMBEDDINGS:embeddings_out"),n.o(t),Jt(e,n),this.g.attachProtoListener("embeddings_out",(a,i)=>{a=Y5(a),this.embeddings=function(l){return{embeddings:jn(l,F5,1).map(r=>{var u,f;const s={headIndex:Zt(r,3)??0??-1,headName:Pe(de(r,4))??""??""};var c=r.v;return P1(c,0|c[z],t0,bu(r,1))!==void 0?(r=ti(r=J(r,t0,bu(r,1),void 0),1,xn,ei()),s.floatEmbedding=r.slice()):(c=new Uint8Array(0),s.quantizedEmbedding=((f=(u=J(r,q5,bu(r,2),void 0))==null?void 0:u.na())==null?void 0:f.h())??c),s}),timestampMs:M0(th(l))}}(a),D(this,i)}),this.g.attachEmptyPacketListener("embeddings_out",a=>{D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};kt.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=O0(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=O0(D0(e.quantizedEmbedding),D0(t.quantizedEmbedding))}return e},kt.prototype.embedForVideo=kt.prototype.Aa,kt.prototype.embed=kt.prototype.za,kt.prototype.setOptions=kt.prototype.o,kt.createFromModelPath=function(e,t){return Z(kt,e,{baseOptions:{modelAssetPath:t}})},kt.createFromModelBuffer=function(e,t){return Z(kt,e,{baseOptions:{modelAssetBuffer:t}})},kt.createFromOptions=function(e,t){return Z(kt,e,t)};var yf=class{constructor(e,t,n){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=n}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach(n=>{n.close()}),(t=this.categoryMask)==null||t.close()}};function fy(e){var n,a;const t=function(i){return jn(i,dt,1)}(e.ca()).filter(i=>(Pe(de(i,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(e.u=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(((a=(n=J(t[0],Mt,7))==null?void 0:n.j())==null?void 0:a.g())??new Map).forEach((i,l)=>{e.u[Number(l)]=Pe(de(i,1))??""})}function o3(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function c3(e){try{const t=new yf(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{lo(e)}}yf.prototype.close=yf.prototype.close;var ht=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Pu,this.A=new b0,B(this.h,0,3,this.A),B(e=this.h,0,1,t=new ve)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?ne(this.h,2,dr(e.displayNamesLocale)):"displayNamesLocale"in e&&ne(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}L(){fy(this)}segment(e,t,n){const a=typeof t!="function"?t:{};return this.j=typeof t=="function"?t:n,o3(this),mn(this,e,a),c3(this)}La(e,t,n,a){const i=typeof n!="function"?n:{};return this.j=typeof n=="function"?n:a,o3(this),Cn(this,e,i,t),c3(this)}Da(){return this.u}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect");const t=new Mt;Tn(t,_0,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect"),n.o(t),Jt(e,n),io(this,e),this.outputConfidenceMasks&&(W(e,"confidence_masks"),K(n,"CONFIDENCE_MASKS:confidence_masks"),al(this,"confidence_masks"),this.g.aa("confidence_masks",(a,i)=>{this.confidenceMasks=a.map(l=>ll(this,l,!0,!this.j)),D(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",a=>{this.confidenceMasks=[],D(this,a)})),this.outputCategoryMask&&(W(e,"category_mask"),K(n,"CATEGORY_MASK:category_mask"),al(this,"category_mask"),this.g.Z("category_mask",(a,i)=>{this.categoryMask=ll(this,a,!1,!this.j),D(this,i)}),this.g.attachEmptyPacketListener("category_mask",a=>{this.categoryMask=void 0,D(this,a)})),W(e,"quality_scores"),K(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(a,i)=>{this.qualityScores=a,D(this,i)}),this.g.attachEmptyPacketListener("quality_scores",a=>{this.categoryMask=void 0,D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ht.prototype.getLabels=ht.prototype.Da,ht.prototype.segmentForVideo=ht.prototype.La,ht.prototype.segment=ht.prototype.segment,ht.prototype.setOptions=ht.prototype.o,ht.createFromModelPath=function(e,t){return Z(ht,e,{baseOptions:{modelAssetPath:t}})},ht.createFromModelBuffer=function(e,t){return Z(ht,e,{baseOptions:{modelAssetBuffer:t}})},ht.createFromOptions=function(e,t){return Z(ht,e,t)};var pf=class{constructor(e,t,n){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=n}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach(n=>{n.close()}),(t=this.categoryMask)==null||t.close()}};pf.prototype.close=pf.prototype.close;var Dn=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Pu,this.u=new b0,B(this.h,0,3,this.u),B(e=this.h,0,1,t=new ve)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}segment(e,t,n,a){const i=typeof n!="function"?n:{};if(this.j=typeof n=="function"?n:a,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,n=this.C+1,a=new A0,t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var l=new $u;da(l,3,ur(!0),!1),da(l,1,cr(t.keypoint.x),0),da(l,2,cr(t.keypoint.y),0),gr(a,1,ef,l)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");{const s=new ty;for(l of t.scribble)da(t=new $u,3,ur(!0),!1),da(t,1,cr(l.x),0),da(t,2,cr(l.y),0),xu(s,1,$u,t);gr(a,2,ef,s)}}this.g.addProtoToStream(a.g(),"mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest","roi_in",n),mn(this,e,i);e:{try{const s=new pf(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var r=s;break e}this.j(s)}finally{lo(this)}r=void 0}return r}m(){var e=new Ct;ye(e,"image_in"),ye(e,"roi_in"),ye(e,"norm_rect_in");const t=new Mt;Tn(t,_0,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),he(n,"IMAGE:image_in"),he(n,"ROI:roi_in"),he(n,"NORM_RECT:norm_rect_in"),n.o(t),Jt(e,n),io(this,e),this.outputConfidenceMasks&&(W(e,"confidence_masks"),K(n,"CONFIDENCE_MASKS:confidence_masks"),al(this,"confidence_masks"),this.g.aa("confidence_masks",(a,i)=>{this.confidenceMasks=a.map(l=>ll(this,l,!0,!this.j)),D(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",a=>{this.confidenceMasks=[],D(this,a)})),this.outputCategoryMask&&(W(e,"category_mask"),K(n,"CATEGORY_MASK:category_mask"),al(this,"category_mask"),this.g.Z("category_mask",(a,i)=>{this.categoryMask=ll(this,a,!1,!this.j),D(this,i)}),this.g.attachEmptyPacketListener("category_mask",a=>{this.categoryMask=void 0,D(this,a)})),W(e,"quality_scores"),K(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(a,i)=>{this.qualityScores=a,D(this,i)}),this.g.attachEmptyPacketListener("quality_scores",a=>{this.categoryMask=void 0,D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Dn.prototype.segment=Dn.prototype.segment,Dn.prototype.setOptions=Dn.prototype.o,Dn.createFromModelPath=function(e,t){return Z(Dn,e,{baseOptions:{modelAssetPath:t}})},Dn.createFromModelBuffer=function(e,t){return Z(Dn,e,{baseOptions:{modelAssetBuffer:t}})},Dn.createFromOptions=function(e,t){return Z(Dn,e,t)};var Pt=class extends Dt{constructor(e,t){super(new wn(e,t),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},B(e=this.h=new T0,0,1,t=new ve)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?ne(this.h,2,dr(e.displayNamesLocale)):"displayNamesLocale"in e&&ne(this.h,2),e.maxResults!==void 0?Vn(this.h,3,e.maxResults):"maxResults"in e&&ne(this.h,3),e.scoreThreshold!==void 0?U(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&ne(this.h,4),e.categoryAllowlist!==void 0?Bs(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&ne(this.h,5),e.categoryDenylist!==void 0?Bs(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&ne(this.h,6),this.l(e)}F(e,t){return this.j={detections:[]},mn(this,e,t),this.j}G(e,t,n){return this.j={detections:[]},Cn(this,e,n,t),this.j}m(){var e=new Ct;ye(e,"input_frame_gpu"),ye(e,"norm_rect"),W(e,"detections");const t=new Mt;Tn(t,ny,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),he(n,"IMAGE:input_frame_gpu"),he(n,"NORM_RECT:norm_rect"),K(n,"DETECTIONS:detections"),n.o(t),Jt(e,n),this.g.attachProtoVectorListener("detections",(a,i)=>{for(const l of a)a=Rh(l),this.j.detections.push(C0(a));D(this,i)}),this.g.attachEmptyPacketListener("detections",a=>{D(this,a)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Pt.prototype.detectForVideo=Pt.prototype.G,Pt.prototype.detect=Pt.prototype.F,Pt.prototype.setOptions=Pt.prototype.o,Pt.createFromModelPath=async function(e,t){return Z(Pt,e,{baseOptions:{modelAssetPath:t}})},Pt.createFromModelBuffer=function(e,t){return Z(Pt,e,{baseOptions:{modelAssetBuffer:t}})},Pt.createFromOptions=function(e,t){return Z(Pt,e,t)};var vf=class{constructor(e,t,n){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=n}close(){var e;(e=this.segmentationMasks)==null||e.forEach(t=>{t.close()})}};function u3(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function f3(e){try{const t=new vf(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.u)return t;e.u(t)}finally{lo(e)}}vf.prototype.close=vf.prototype.close;var Lt=class extends Dt{constructor(e,t){super(new wn(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,B(e=this.h=new N0,0,1,t=new ve),this.A=new m0,B(this.h,0,3,this.A),this.j=new w0,B(this.h,0,2,this.j),Vn(this.j,4,1),U(this.j,2,.5),U(this.A,2,.5),U(this.h,4,.5)}get baseOptions(){return J(this.h,ve,1)}set baseOptions(e){B(this.h,0,1,e)}o(e){return"numPoses"in e&&Vn(this.j,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&U(this.j,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&U(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&U(this.A,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.l(e)}F(e,t,n){const a=typeof t!="function"?t:{};return this.u=typeof t=="function"?t:n,u3(this),mn(this,e,a),f3(this)}G(e,t,n,a){const i=typeof n!="function"?n:{};return this.u=typeof n=="function"?n:a,u3(this),Cn(this,e,i,t),f3(this)}m(){var e=new Ct;ye(e,"image_in"),ye(e,"norm_rect"),W(e,"normalized_landmarks"),W(e,"world_landmarks"),W(e,"segmentation_masks");const t=new Mt;Tn(t,ay,this.h);const n=new dt;Tt(n,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),he(n,"IMAGE:image_in"),he(n,"NORM_RECT:norm_rect"),K(n,"NORM_LANDMARKS:normalized_landmarks"),K(n,"WORLD_LANDMARKS:world_landmarks"),n.o(t),Jt(e,n),io(this,e),this.g.attachProtoVectorListener("normalized_landmarks",(a,i)=>{this.landmarks=[];for(const l of a)a=pr(l),this.landmarks.push(no(a));D(this,i)}),this.g.attachEmptyPacketListener("normalized_landmarks",a=>{this.landmarks=[],D(this,a)}),this.g.attachProtoVectorListener("world_landmarks",(a,i)=>{this.worldLandmarks=[];for(const l of a)a=tl(l),this.worldLandmarks.push(vr(a));D(this,i)}),this.g.attachEmptyPacketListener("world_landmarks",a=>{this.worldLandmarks=[],D(this,a)}),this.outputSegmentationMasks&&(K(n,"SEGMENTATION_MASK:segmentation_masks"),al(this,"segmentation_masks"),this.g.aa("segmentation_masks",(a,i)=>{this.segmentationMasks=a.map(l=>ll(this,l,!0,!this.u)),D(this,i)}),this.g.attachEmptyPacketListener("segmentation_masks",a=>{this.segmentationMasks=[],D(this,a)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Lt.prototype.detectForVideo=Lt.prototype.G,Lt.prototype.detect=Lt.prototype.F,Lt.prototype.setOptions=Lt.prototype.o,Lt.createFromModelPath=function(e,t){return Z(Lt,e,{baseOptions:{modelAssetPath:t}})},Lt.createFromModelBuffer=function(e,t){return Z(Lt,e,{baseOptions:{modelAssetBuffer:t}})},Lt.createFromOptions=function(e,t){return Z(Lt,e,t)},Lt.POSE_CONNECTIONS=l3;const oo="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task",dy="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm",hy=()=>{const e=y.useRef(null),[t,n]=y.useState(!1),[a,i]=y.useState("Initializing..."),[l,r]=y.useState(0),[s,c]=y.useState(!1);y.useEffect(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(d=>{console.log("ServiceWorker registered:",d)}).catch(d=>{console.log("ServiceWorker registration failed:",d)})},[]);const u=async()=>"caches"in window?await(await caches.open("mediapipe-models-v1")).match(oo)!==void 0:!1,f=async()=>{try{const d=await fetch(oo),g=d.headers.get("content-length"),v=g?parseInt(g,10):0;if(!d.body)throw new Error("No response body");const S=d.body.getReader();let _=0;const w=[];for(;;){const{done:m,value:p}=await S.read();if(m)break;if(w.push(p),_+=p.length,v){const b=Math.round(_/v*100);r(b),i(`Downloading model... ${b}%`)}}return"caches"in window&&await(await caches.open("mediapipe-models-v1")).put(oo,new Response(new Blob(w),{headers:{"Content-Type":"application/octet-stream"}})),!0}catch(d){return console.error("Failed to preload model:",d),!1}};return y.useEffect(()=>{(async()=>{try{i("Checking cached models..."),await u()?i("Using cached model..."):(i("Model not cached. Downloading..."),await f()),i("Loading MediaPipe WASM...");const v=await si.forVisionTasks(dy);i("Creating face landmarker...");const S=await pe.createFromOptions(v,{baseOptions:{modelAssetPath:oo,delegate:"GPU"},runningMode:"VIDEO",outputFaceBlendshapes:!0,numFaces:2});e.current=S,n(!0),i("Model loaded successfully ✅")}catch(g){console.error("Model init error:",g),i(`Error: ${g==null?void 0:g.message}`),(g==null?void 0:g.name)==="NotAllowedError"&&c(!0)}})()},[]),{faceLandmarkerRef:e,isModelLoaded:t,statusMessage:a,setStatusMessage:i,loadingProgress:l,permissionDenied:s,clearCache:async()=>{"caches"in window&&(await caches.delete("mediapipe-models-v1"),i("Cache cleared. Please refresh to re-download models."))}}},gy=()=>{const[e,t]=y.useState(0),n=y.useRef({lastTime:0,frames:0,fps:0}),a=y.useCallback(()=>{const i=performance.now(),l=n.current;if(l.frames++,i-l.lastTime>=1e3){const r=Math.round(l.frames*1e3/(i-l.lastTime));t(r),l.frames=0,l.lastTime=i}},[]);return{fps:e,updateFPS:a}},wy=()=>{const e=y.useRef({value:100,isLookingAway:!1}),t=y.useCallback((l,r,s,c)=>{if(!l||!s||!r)return;const u=l.getContext("2d");if(!u)return;const{width:f,height:h}=l;if(u.clearRect(0,0,f,h),u.drawImage(r,0,0,f,h),c){u.fillStyle="#00FF00";for(const d of s)u.fillRect(d.x*f-.5,d.y*h-.5,1,1)}},[]),n=y.useCallback(l=>{const r=e.current.value/100,s=100,c=20,u=20,f=40;l.fillStyle="rgba(0, 0, 0, 0.3)",l.fillRect(u,f,c,s),l.fillStyle=`rgba(${Math.floor(255*(1-r))}, ${Math.floor(255*r)}, 0, 0.8)`;const h=s*r;l.fillRect(u,f+s-h,c,h),l.fillStyle="#FFFFFF",l.fillRect(u,f+s*(1-r),c,2)},[]),a=y.useCallback((l,r,s,c,u,f,h)=>{if(t(l,r,s,c),u&&f&&h){const d=l.getContext("2d");d&&n(d)}},[t,n]),i=y.useCallback((l,r)=>{const s=l.getContext("2d");s&&(s.clearRect(0,0,l.width,l.height),s.drawImage(r,0,0,l.width,l.height))},[]);return{drawLandmarks:t,drawEngagementBar:n,drawWithEngagementBar:a,clearCanvas:i,engagementRef:e}},my=50,yy=()=>{const[e,t]=y.useState(100),[n,a]=y.useState(!1),i=y.useRef(0),l=y.useCallback((r,s,c)=>{if(!c||r.length<468)return;const u=r[33],f=r[263],h=r[1];if(!u||!f||!h)return;const d=(u.x+f.x)*.5,g=(u.y+f.y)*.5,v=d-s.x,S=g-s.y,_=Math.sqrt(v*v+S*S),w=Math.abs(h.y-s.noseY)*100,m=Math.abs(h.x-s.noseX)*100,p=Math.max(0,100-(_*200+w+m)),b=p<my,T=performance.now();return T-i.current>100&&(t(p),a(b),i.current=T),{engagement:p,isLookingAway:b}},[]);return{engagement:e,isLookingAway:n,analyzeGaze:l,setEngagement:t,setIsLookingAway:a}},py=.05,vy=()=>{const[e,t]=y.useState(!1),[n,a]=y.useState(!1),i=y.useCallback((s,c)=>Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2)),[]),l=y.useCallback((s,c)=>{if(!s||!c)return 0;const u=[1,33,263,61,291,10,152];let f=0,h=0;const d=c[33],g=c[263],v=s[33],S=s[263];if(!d||!g||!v||!S)return 0;const _=i(d,g),w=i(v,S);if(_===0||w===0)return 0;for(const p of u){const b=c[p],T=s[p];if(b&&T){const N=d.x+(T.x-v.x)*_/w,x=d.y+(T.y-v.y)*_/w;f+=i(b,{x:N,y:x}),h++}}return h===0?0:f/h},[i]),r=y.useCallback((s,c,u,f)=>{if(!s.faceLandmarks||s.faceLandmarks.length===0)return c?(f("Reference face not detected."),a(!0),t(!1)):a(!1),null;if(c&&u){let h=null,d=0;for(const g of s.faceLandmarks)l(g,u)<py&&(h=g,d++);return d===1?(t(!1),a(!1),f("Reference face tracked."),h):d>1?(t(!0),a(!1),f("Multiple matching faces detected. Tracking suspended."),null):(t(!1),a(!0),f("Reference face not detected."),null)}else{s.faceLandmarks.length>1?(t(!0),f("Multiple faces detected. Set reference for single face tracking.")):(t(!1),f("No reference set. Detecting first face."));const h=s.faceLandmarks[0];return!h||h.length<468?null:h}},[l]);return{multipleFacesDetected:e,referenceFaceNotDetected:n,analyzeFace:r,setMultipleFacesDetected:t,setReferenceFaceNotDetected:a}},by=1e3,Sy=(e,t)=>{const[n,a]=y.useState(!1),[i,l]=y.useState("face_detected"),{incrementGazeViolation:r}=$2(),{multipleFacesDetected:s,referenceFaceNotDetected:c,isLookingAway:u}=e;y.useEffect(()=>{let d;return(u||s||c)&&t?d=setTimeout(()=>{a(!0),u?(l("looking_away"),r("looking_away")):s?(l("multiple_faces"),r("multiple_faces")):c&&(l("no_face_detected"),r("no_face_detected"))},by):(a(!1),l("face_detected")),()=>{clearTimeout(d)}},[u,s,c,t,r]);const f=y.useCallback(()=>s?"multiple_faces":c?"no_face_detected":u?"looking_away":"face_detected",[s,c,u]),h=y.useCallback(()=>{a(!1),l("face_detected")},[]);return{showGazeWarningModal:n,faceDetectionState:i,getWarningType:f,closeWarningModal:h,setShowGazeWarningModal:a,setFaceDetectionState:l}};class be extends Error{constructor(t,n,a=!1){super(t),this.code=n,this.recoverable=a,this.name="STTError"}}class Ey{constructor(t={}){Kt(this,"config");Kt(this,"mediaRecorder",null);Kt(this,"audioChunks",[]);Kt(this,"recordingStream",null);Kt(this,"autoStopTimeoutId",null);this.config={baseUrl:"http://localhost:8000",provider:"groq",model:"whisper-large-v3-turbo",language:"en",includeTimestamps:!1,temperature:0,...t}}updateConfig(t){this.config={...this.config,...t}}isRecordingSupported(){return!!(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function"&&window.MediaRecorder)}async startRecording(t,n){var a;if(!this.isRecordingSupported())throw new be("Audio recording is not supported in this browser","RECORDING_NOT_SUPPORTED",!1);if(this.isRecording())throw new be("Recording is already in progress","ALREADY_RECORDING",!0);try{this.recordingStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}}),this.audioChunks=[];const i=this.getSupportedMimeType();this.mediaRecorder=new MediaRecorder(this.recordingStream,{mimeType:i}),this.mediaRecorder.ondataavailable=l=>{var r;l.data.size>0&&(this.audioChunks.push(l.data),(r=n==null?void 0:n.onDataAvailable)==null||r.call(n,l.data))},this.mediaRecorder.onstop=()=>{var l;(l=n==null?void 0:n.onStop)==null||l.call(n)},this.mediaRecorder.onerror=l=>{var s;const r=new be(`Recording failed: ${l.error}`,"RECORDING_ERROR",!0);(s=n==null?void 0:n.onError)==null||s.call(n,r),this.cleanup()},this.mediaRecorder.start(100),(a=n==null?void 0:n.onStart)==null||a.call(n),t&&t>0&&(this.autoStopTimeoutId=setTimeout(()=>{this.isRecording()&&this.stopRecording()},t*1e3))}catch(i){if(this.cleanup(),i instanceof Error){if(i.name==="NotAllowedError"||i.name==="PermissionDeniedError")throw new be("Microphone permission was denied","PERMISSION_DENIED",!1);if(i.name==="NotFoundError")throw new be("No microphone found","NO_MICROPHONE",!1)}throw new be(`Failed to start recording: ${i instanceof Error?i.message:String(i)}`,"START_RECORDING_FAILED",!0)}}async stopRecording(){if(this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),!this.mediaRecorder||!this.isRecording())throw new be("No active recording to stop","NO_ACTIVE_RECORDING",!1);return new Promise((t,n)=>{if(!this.mediaRecorder){n(new be("MediaRecorder is null","MEDIARECORDER_NULL",!1));return}const a=this.mediaRecorder,i=()=>{try{const l=a.mimeType||"audio/webm",r=new Blob(this.audioChunks,{type:l});this.cleanup(),t(r)}catch(l){n(new be(`Failed to create audio blob: ${l instanceof Error?l.message:String(l)}`,"BLOB_CREATION_FAILED",!1))}};a.addEventListener("stop",i,{once:!0}),a.stop()})}async transcribe(t){const{audioBlob:n}=t;if(!n||n.size===0)throw new be("Audio blob is empty or invalid","INVALID_AUDIO",!1);try{const a=new FormData,i=new File([n],"recording.wav",{type:n.type||"audio/wav"});if(a.append("file",i),a.append("qna_id",this.config.qnaId||""),!this.config.interviewId)throw new be("Interview ID is missing from configuration","MISSING_INTERVIEW_ID",!1);const l=await oa(`${this.config.baseUrl}${ua.TRANSCRIBE_ANSWER(this.config.interviewId)}`,{method:"POST",headers:{accept:"application/json","X-STT-Provider":this.config.provider||"groq",...this.config.authToken&&{Authorization:`Bearer ${this.config.authToken}`}},body:a},{attempts:1,backoff:"exponential",baseDelay:1e3,maxDelay:3e3,jitter:!0});if(!l.ok){const s=await l.text();let c=`STT request failed: ${l.status} ${l.statusText}`;try{const u=JSON.parse(s);c=u.message||u.error||c}catch{c=s||c}throw new be(c,`HTTP_${l.status}`,l.status>=500)}return{transcript:(await l.json()).data.transcribed_text??""}}catch(a){throw a instanceof be?a:new be(`Transcription failed: ${a instanceof Error?a.message:String(a)}`,"TRANSCRIPTION_FAILED",!0)}}cancelRecording(){this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),this.mediaRecorder&&this.isRecording()&&this.mediaRecorder.stop(),this.cleanup()}isRecording(){return this.mediaRecorder!==null&&this.mediaRecorder.state==="recording"}getSupportedMimeType(){const t=["audio/webm","audio/webm;codecs=opus","audio/ogg;codecs=opus","audio/mp4","audio/wav"];for(const n of t)if(MediaRecorder.isTypeSupported(n))return n;return"audio/webm"}getRecordingStream(){return this.recordingStream}cleanup(){this.recordingStream&&(this.recordingStream.getTracks().forEach(t=>t.stop()),this.recordingStream=null),this.mediaRecorder=null,this.audioChunks=[],this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null)}}const rl=new Ey,_y=(e,t,n,a)=>{const i=y.useRef(null);return y.useEffect(()=>{if(!t)return;const l=async()=>{try{const c=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480},facingMode:"user"}});e.current&&(e.current.srcObject=c,e.current.onloadeddata=()=>{n()})}catch(c){console.error("Camera access error:",c),a("Camera access failed")}},r=i.current,s=e.current;return l(),()=>{r&&cancelAnimationFrame(r),s!=null&&s.srcObject&&s.srcObject.getTracks().forEach(u=>u.stop())}},[t,n]),y.useEffect(()=>{const l=rl.getRecordingStream();if(l&&e.current){e.current.srcObject=l;const r=l.getVideoTracks(),s=l.getAudioTracks(),c=()=>{console.log("Media track ended - permission may have been revoked")};[...r,...s].forEach(u=>{u.addEventListener("ended",c)})}},[]),{animationFrameRef:i}},xy=(e,t,n,a,i,l,r,s,c,u,f,h,d,g,v)=>{const S=y.useRef(null),_=y.useCallback(()=>{var b;const w=e.current,m=t.current,p=n.current;if(!w||w.readyState<2||!p||!m){S.current=requestAnimationFrame(_);return}a();try{const T=performance.now(),N=p.detectForVideo(w,T);if(((b=N.faceLandmarks)==null?void 0:b.length)>0){v(!1);const x=i(N,c,u.current,g);x?(l(m,w,x,f,h,d,c),c&&d&&s(x,u.current,d)):r(m,w)}else r(m,w),c?(v(!0),g("Reference face not detected.")):v(!1)}catch(T){console.error("Face detection error:",T)}S.current=requestAnimationFrame(_)},[e,t,n,a,i,l,r,s,c,u,f,h,d,g,v]);return{renderLoop:_,animationFrameRef:S}},Ay=(e,t,n,a)=>{const{referenceSet:i,referenceRef:l,setReferenceData:r}=$2(),s=y.useRef(l),c=y.useCallback(()=>{s.current=l},[l]),u=y.useCallback(()=>{var d;const f=e.current,h=t.current;if(console.log({faceLandmarker:f,video:h}),!(!f||!h))try{const g=performance.now(),v=f.detectForVideo(h,g);if((d=v.faceLandmarks)!=null&&d[0]){const S=v.faceLandmarks[0],_=S[33],w=S[263],m=S[1];_&&w&&m&&(s.current={x:(_.x+w.x)*.5,y:(_.y+w.y)*.5,noseX:m.x,noseY:m.y},r(!0,s.current),n("Reference set. Gaze tracking active."),console.log("Reference set. Gaze tracking active.",s.current),a&&a())}}catch(g){console.error("Set reference error:",g),n("Failed to set reference")}},[e,t,n,r,a]);return{referenceSet:i,referenceRef:s,setReference:u,syncReference:c}},bf=({isOpen:e,onClose:t,children:n,title:a,showCloseButton:i=!0,closeOnOverlayClick:l=!0,closeOnEscape:r=!0,className:s=""})=>{if(y.useEffect(()=>{if(!e||!r)return;const f=h=>{h.key==="Escape"&&t()};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e,r,t]),y.useEffect(()=>(e?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[e]),!e)return null;const c=f=>{l&&f.target===f.currentTarget&&t()},u=o.jsxs("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center",children:[o.jsx("div",{className:"iw-fixed iw-inset-0 iw-bg-black iw-bg-opacity-50 iw-transition-opacity",onClick:c}),o.jsxs("div",{className:`iw-relative iw-bg-white iw-rounded-lg iw-shadow-xl iw-max-w-md iw-w-full iw-mx-4 iw-max-h-[90vh] iw-overflow-hidden ${s}`,role:"dialog","aria-modal":"true","aria-labelledby":a?"dialog-title":void 0,children:[(a||i)&&o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-p-4 iw-border-b iw-border-gray-200",children:[a&&o.jsx("h2",{id:"dialog-title",className:"iw-text-lg iw-font-semibold iw-text-gray-900",children:a}),i&&o.jsx("button",{onClick:t,className:"iw-p-1 iw-text-gray-400 iw-hover:text-gray-600 iw-transition-colors iw-rounded iw-hover:bg-gray-100","aria-label":"Close dialog",children:o.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsx("div",{className:"iw-p-4 iw-overflow-y-auto",children:n})]})]});return W2.createPortal(u,document.body)},d3=({children:e,variant:t="primary",size:n="md",fullWidth:a=!1,isLoading:i=!1,disabled:l,className:r="",...s})=>{const c="iw-inline-flex iw-items-center iw-justify-center iw-rounded-md iw-font-medium iw-transition-colors iw-focus:outline-none iw-focus:ring-2 iw-focus:ring-primary-500 iw-focus:ring-offset-2",u={primary:"iw-bg-primary-600 iw-text-white iw-hover:bg-primary-700 iw-border iw-border-transparent",secondary:"iw-bg-primary-100 iw-text-primary-700 iw-hover:bg-primary-200 iw-border iw-border-transparent",outline:"iw-bg-transparent iw-text-primary-700 iw-border iw-border-primary-500 iw-hover:bg-primary-50",text:"iw-bg-transparent iw-text-primary-600 iw-hover:bg-primary-50 iw-border iw-border-transparent",gradient:"iw-text-white iw-border iw-border-transparent iw-bg-gradient-to-r iw-from-purple-500 iw-to-indigo-500 hover:iw-from-purple-600 hover:iw-to-indigo-600"},f={sm:"iw-px-3 iw-py-1.5 iw-text-sm",md:"iw-px-4 iw-py-2.5 iw-text-sm",lg:"iw-px-5 iw-py-3 iw-text-base"},h="iw-disabled:opacity-50 iw-disabled:cursor-not-allowed iw-disabled:pointer-events-none",d=a?"iw-w-full":"";return o.jsxs("button",{className:`${c} ${u[t]} ${f[n]} ${d} ${h} ${r}`,disabled:l||i,...s,children:[i&&o.jsx(r1,{height:16,width:16,style:{marginRight:"3px"}}),e]})},Sr=e=>{const{baseColor:t,borderRadius:n}=Pl(),{loading:a,children:i,...l}=e;return o.jsx(d3,{style:{background:i6(t),borderRadius:n},...l,children:a?o.jsx(r1,{}):i})};function Ty({isOpen:e,onClose:t,warningType:n}){const a=s1[n],i=a.icon,l=()=>{t()};return n==="face_detected"?null:o.jsx(bf,{isOpen:e,onClose:t,children:e&&o.jsx("div",{className:"iw-bg-white iw-border-white iw-border iw-p-0 iw-shadow-lg sm:iw-max-w-md",children:o.jsxs("div",{children:[o.jsx("div",{className:"iw-sr-only",children:a.description}),o.jsxs("div",{className:"iw-px-8 iw-py-8 iw-text-center",children:[o.jsx("div",{className:`iw-mx-auto iw-mb-6 iw-flex iw-h-16 iw-w-16 iw-items-center iw-justify-center iw-rounded-full ${a.iconBg} border ${a.iconBorder}`,children:o.jsx(i,{className:`iw-h-7 iw-w-7 ${a.iconColor}`})}),o.jsx("h1",{className:"iw-text-foreground iw-mb-3 iw-text-2xl iw-font-bold iw-tracking-tight",children:a.title}),o.jsx("h2",{className:"iw-text-gray-500 iw-mb-6 iw-text-base iw-font-medium",children:a.subtitle}),o.jsx("p",{className:"iw-text-neutral-400 iw-mx-auto iw-mb-8 iw-max-w-sm iw-text-sm iw-leading-relaxed",children:a.description}),o.jsx(Sr,{onClick:l,className:"iw-w-full iw-bg-gray-800 iw-text-white hover:iw-bg-gray-800",children:a.buttonText})]})]})})})}const h3=y.forwardRef(({className:e="",interviewId:t="",interview_duration:n,showProctoringUI:a=!0,onSetReference:i,isAnswering:l,onProctoringStatusChange:r,showStatusOverlay:s=!1},c)=>{var qm;const{authToken:u}=t1(),f=u?r6(u):null,{borderRadius:h}=Pl(),d=h??18,{proctoring:g}=Kc(),v=!!(g!=null&&g.gazeAnalysisEnabled),[S,_]=y.useState(!1),[w,m]=y.useState((g==null?void 0:g.showLandmarks)??!1),[p,b]=y.useState(a&&((g==null?void 0:g.showEngagementBar)??!0)),[T,N]=y.useState(v),[x,C]=y.useState(!1),A=y.useRef(null),O=y.useRef(null),_e=y.useRef(null),He=y.useRef(null),st=y.useCallback(async Et=>{const Es=A.current,ft=_e.current;if(!Es||!ft)return;const Jl=ft.getContext("2d");Jl&&(ft.width=Es.videoWidth,ft.height=Es.videoHeight,Jl.save(),Jl.scale(-1,1),Jl.drawImage(Es,-ft.width,0,ft.width,ft.height),Jl.restore(),await new Promise(jc=>ft.toBlob(jc,"image/jpeg")))},[_6,t]);y.useEffect(()=>{let Et;return l&&(C(!0),Et=setTimeout(()=>C(!1),1e3)),()=>{Et&&clearTimeout(Et)}},[l]);const{faceLandmarkerRef:un,isModelLoaded:St,statusMessage:M,setStatusMessage:j,loadingProgress:H,permissionDenied:$,clearCache:re}=hy(),{fps:ot,updateFPS:bn}=gy(),{drawWithEngagementBar:fn,clearCanvas:Qt,engagementRef:ct}=wy(),{engagement:ut,isLookingAway:dn,analyzeGaze:De,setEngagement:Qa,setIsLookingAway:Il}=yy(),{multipleFacesDetected:vs,referenceFaceNotDetected:bs,analyzeFace:I2,setMultipleFacesDetected:Uc,setReferenceFaceNotDetected:Mi}=vy(),{referenceSet:Ss,referenceRef:Bc,setReference:q,syncReference:xe}=Ay(un,A,j,i),Ci={multipleFacesDetected:vs,referenceFaceNotDetected:bs,isLookingAway:dn},{showGazeWarningModal:Gc,getWarningType:Hc,closeWarningModal:Hm,setShowGazeWarningModal:jm,setFaceDetectionState:Vm}=Sy(Ci,v&&!s);y.useEffect(()=>{if(r){const Et=Hc()||"face_detected";r(Et)}},[vs,bs,dn,Hc,r]);const{renderLoop:J8}=xy(A,O,un,bn,I2,fn,Qt,De,Ss,Bc,w,p,v,j,Mi);_y(A,St,J8,j),y.useEffect(()=>{xe()},[xe]),y.useEffect(()=>{ct&&ct.current&&(ct.current.value=ut,ct.current.isLookingAway=dn)},[ut,dn,ct]);const W8=y.useCallback(Et=>{N(Et),Et||(Qa(100),Il(!1))},[Qa,Il]),R8=y.useCallback(()=>{Il(!1),Uc(!1),Mi(!1),Vm("face_detected"),jm(!1),Hm()},[Il,Uc,Mi,Vm,jm,Hm]),P8={engagement:ut,fps:ot,isLookingAway:dn,multipleFacesDetected:vs,referenceFaceNotDetected:bs};return y.useEffect(()=>{const Et=[];return(async()=>{try{const ft=await navigator.mediaDevices.getUserMedia({video:!0,audio:!1});He.current=ft,A.current&&(A.current.srcObject=ft);const jc=(n??_s)*60*1e3/3,$8=[0,1,2].map((Di,Ka)=>({label:`capture-${Ka+1}`,start:Ka*jc,end:(Ka+1)*jc})),e7=(Di,Ka)=>Di===Ka?Di:Math.random()*(Ka-Di)+Di;$8.forEach(({label:Di,start:Ka,end:t7},n7)=>{let J2;n7===0?J2=3e3:J2=e7(Ka,t7),Et.push(setTimeout(()=>{st(Di)},J2))})}catch(ft){console.error("Error accessing camera:",ft)}})(),()=>{He.current&&He.current.getTracks().forEach(ft=>ft.stop()),Et.forEach(clearTimeout)}},[st]),y.useImperativeHandle(c,()=>({setReference:()=>{q()},stopCamera:()=>{He.current&&(He.current.getTracks().forEach(Et=>Et.stop()),He.current=null)}}),[q]),o.jsxs("div",{className:`iw-relative iw-h-full iw-w-full ${e}`,children:[$?o.jsxs("div",{className:"iw-rounded-md iw-border iw-border-red-600 iw-p-5 iw-text-red-600",children:[o.jsx("h2",{children:"Camera Permission Denied"}),o.jsx("p",{children:"Please allow camera access to use this application."})]}):o.jsx("div",{className:"iw-flex iw-w-full iw-h-full iw-justify-start iw-items-start",children:o.jsxs("div",{className:`iw-relative iw-max-w-full iw-max-h-full iw-aspect-video iw-rounded-2xl iw-overflow-hidden iw-bg-black ${x?"iw-animate-answer-start":""} ${l?"iw-border-4 iw-border-[#6296FB]":""}`,style:{width:"100%",height:"auto",minHeight:"0"},children:[o.jsx("video",{ref:A,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}}),v&&o.jsx("canvas",{ref:O,width:320,height:240,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)",borderRadius:d}}),o.jsx("canvas",{ref:_e,style:{display:"none"}}),a&&o.jsxs("div",{className:"iw-absolute iw-top-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#FFEBE6] iw-px-2 iw-py-1 iw-backdrop-blur-md",children:[o.jsx("div",{className:"iw-size-2 iw-animate-pulse iw-rounded-full iw-bg-red-500"}),o.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#E94315]",children:"RECORDING"})]}),a&&((qm=f==null?void 0:f.data)==null?void 0:qm.user_name)&&o.jsx("div",{className:"iw-absolute iw-z-50 iw-bottom-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#F1F5FE] iw-px-3 iw-py-1 iw-backdrop-blur-md",children:o.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#062260]",children:f.data.user_name})}),a&&o.jsx("div",{className:"iw-absolute iw-bottom-4 iw-right-4",children:o.jsx(A6,{showControls:(g==null?void 0:g.showControls)??!1,isBubbleOpen:S,setIsBubbleOpen:_,setReference:q,clearCache:re,isModelLoaded:St,gazeAnalysisEnabled:T&&v,referenceSet:Ss,showLandmarks:w,setShowLandmarks:m,showEngagementBar:p,setShowEngagementBar:b,handleToggleGazeAnalysis:W8,stats:P8,statusMessage:M,loadingProgress:H})}),s&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"iw-absolute iw-inset-0 iw-pointer-events-none iw-z-10 ",style:{background:"radial-gradient(ellipse 20% 40% at 50% 45%, transparent 99.5%, rgba(0,0,0,0.35) 100%)"}}),o.jsx("div",{className:"iw-absolute iw-bottom-2 iw-inset-x-0 iw-flex iw-justify-center iw-pointer-events-none iw-z-20",children:o.jsx(Ny,{status:Hc()??"face_detected"})})]})]})}),v&&Gc&&!s&&o.jsx(Ty,{isOpen:Gc,onClose:R8,warningType:Hc()})]})}),Ny=({status:e})=>{const t=s1[e];if(!t)return null;const n=e!=="face_detected";return o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-gap-2",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-px-3 iw-py-1 iw-rounded-full iw-backdrop-blur-md iw-shadow-sm transition-colors duration-300 iw-text-white",children:[o.jsx("div",{className:`iw-flex iw-h-4 iw-w-4 iw-items-center iw-size-2.5 iw-justify-center iw-rounded-full iw-text-white ${n?"iw-bg-[#E94315]":"iw-bg-[#22C55E]"}`,children:n?o.jsx(i1,{}):o.jsx(As,{})}),o.jsx("span",{className:"iw-text-sm iw-font-medium",children:e==="face_detected"?"Face detected clearly":t.title})]}),n&&o.jsx("span",{className:"iw-text-white iw-text-center iw-text-sm iw-drop-shadow-sm iw-max-w-[400px] iw-px-3 ",children:"Sit upright & look directly into the camera"})]})},g3=({micEnabled:e=!1,videoEnabled:t=!1,buttonText:n,onButtonClick:a,isAgreed:i,onAgreedToggle:l,showCheckbox:r=!0,showMediaIcons:s=!0,disabled:c=!1})=>{const u=c||!i||s&&(!e||!t);return o.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-w-full",children:[r&&o.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-4 iw-border iw-border-[#E7EAF1]",children:[o.jsx("div",{className:`iw-mt-0.5 iw-h-5 iw-w-5 iw-min-w-[20px] iw-rounded iw-border iw-flex iw-items-center iw-justify-center iw-cursor-pointer iw-transition-colors ${i?"iw-bg-[#062260] iw-border-[#062260]":"iw-bg-white iw-border-[#B3B9CB]"}`,onClick:f=>{f.stopPropagation(),l(!i)},children:i&&o.jsx(As,{className:"iw-size-3 iw-text-white"})}),o.jsx("label",{onClick:()=>l(!i),className:"iw-text-sm iw-text-[#062260] iw-font-medium iw-cursor-pointer iw-select-none",children:"By continuing, you acknowledge and consent to the use of your face data exclusively for interview monitoring"})]}),o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4",children:[s&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"iw-relative",children:[o.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${e?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:e?o.jsx(d6,{className:"iw-h-6 iw-w-6"}):o.jsx(h6,{className:"iw-h-6 iw-w-6"})}),e&&o.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:o.jsx(As,{className:"iw-h-2.5 iw-w-2.5"})})]}),o.jsxs("div",{className:"iw-relative",children:[o.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${t?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:t?o.jsx(v6,{className:"iw-h-6 iw-w-6"}):o.jsx(b6,{className:"iw-h-6 iw-w-6"})}),t&&o.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:o.jsx(As,{className:"iw-h-2.5 iw-w-2.5"})})]})]}),o.jsx(d3,{onClick:a,disabled:u,className:`iw-h-12 iw-flex-1 iw-max-w-[220px] !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold iw-border-none iw-rounded-lg ${u?"iw-opacity-50":"hover:iw-opacity-75"}`,children:n})]})]})},My=({steps:e,currentStepIndex:t})=>o.jsx("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4 iw-w-full iw-py-6",children:e.map((n,a)=>{const i=a<t,l=a===t;return o.jsxs(y.Fragment,{children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[o.jsx("div",{className:`iw-flex iw-size-9 iw-text-[#062260] iw-items-center iw-justify-center iw-rounded-full iw-font-semibold iw-border ${l||i?"iw-border-[#0EB00E] iw-bg-[#E9FFE6]":"iw-border-[#BDE0FD] iw-bg-[#E6F3FF]"}`,children:i?o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"20 6 9 17 4 12"})}):a+1}),o.jsx("span",{className:`iw-text-sm iw-font-medium ${l||i?"iw-text-[#062260]":"iw-text-[#5C6686]"}`,children:n.label})]}),a<e.length-1&&o.jsx("div",{className:"iw-flex-1 iw-max-w-[120px] iw-border-t iw-border-dotted iw-border-[#B3B9CB]"})]},a)})}),Cy=["Don't refresh or reload the page during your assessment","Don't switch tabs or open other applications while session is ongoing","Don't leave your position during the session","Don't disable or interfere with video/audio monitoring"],Dy=({isOpen:e,onStart:t,gazeEnabled:n=!1,videoFeedRef:a,interviewId:i="",interview_duration:l=_s})=>{const r=y.useRef(null),s=y.useRef(null),[c,u]=y.useState(!1),[f,h]=y.useState(!1),[d,g]=y.useState(0),[v,S]=y.useState(!1),_=y.useRef(null),w=y.useRef(null),m=A=>{_.current=A,a&&(typeof a=="function"?a(A):a.current=A)},p=()=>{s.current&&(s.current.getTracks().forEach(A=>A.stop()),s.current=null)},b=async()=>{try{const A=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:1280},height:{ideal:720}},audio:!0});s.current=A,r.current&&(r.current.srcObject=A),u(!0)}catch(A){console.error("Media permission error:",A);let O="Unable to access camera or microphone.";(A==null?void 0:A.name)==="NotAllowedError"?O="Permissions denied. Please allow access to camera and microphone.":(A==null?void 0:A.name)==="NotFoundError"?O="No camera/microphone found. Please connect a device and retry.":A!=null&&A.message&&(O=A.message),u(!1),console.log(O)}finally{}};if(y.useEffect(()=>{if(!e){p();return}return b(),()=>p()},[e]),y.useEffect(()=>()=>{w.current&&(clearInterval(w.current),w.current=null)},[]),!e)return null;const[T,N]=y.useState("face_detected"),x=async()=>{h(!0);const A=()=>{var O;return(O=_.current)==null?void 0:O.setReference()};A(),w.current&&clearInterval(w.current),w.current=setInterval(A,500)},C=[{label:n?"Calibrate your camera":"Camera & Mic permission"},{label:"Basic guidelines"}];return o.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-gray-900/40 iw-backdrop-blur-sm iw-p-4 iw-overflow-auto",children:o.jsxs("div",{className:"iw-w-full iw-max-w-[700px] iw-bg-white iw-rounded-xl iw-shadow-2xl iw-overflow-auto",children:[o.jsxs("div",{className:"iw-px-5 iw-pt-5",children:[o.jsx("h2",{className:"iw-text-[#062260] iw-text-2xl iw-font-medium iw-tracking-tight",children:"Final checks before you go live"}),o.jsx("div",{className:"iw-mt-4 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-3 iw-border iw-border-[#E7EAF1]",children:o.jsx("p",{className:"iw-text-[#5C6686] iw-text-sm iw-leading-relaxed",children:"To ensure the integrity of the interview process, this platform uses your device’s camera to monitor your face and gaze direction. We do not store any outside this session"})}),o.jsx("div",{className:"iw-mt-6 iw-border-b iw-border-dashed iw-border-[#B3B9CB] iw-w-full"}),o.jsx(My,{steps:C,currentStepIndex:d})]}),o.jsx("div",{className:"iw-px-5 iw-pb-5 iw-flex iw-flex-col iw-items-center",children:d===0?o.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-items-center iw-gap-6",children:[o.jsx("div",{className:"iw-w-full iw-max-w-[600px] iw-aspect-video iw-bg-slate-100 iw-rounded-2xl iw-overflow-hidden iw-relative iw-border iw-border-slate-200",children:n?o.jsx(h3,{ref:m,interviewId:i,interview_duration:l,showProctoringUI:!1,showStatusOverlay:!0,onProctoringStatusChange:N,onSetReference:()=>{w.current&&(clearInterval(w.current),w.current=null),h(!1),g(1)}}):o.jsx("video",{ref:r,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}})}),o.jsx(g3,{micEnabled:c,videoEnabled:c,buttonText:n?f?"Calibrating...":"Start calibrate":"Next",onButtonClick:()=>{n?x():g(1)},disabled:!v||n&&T!=="face_detected"||!n&&!c,isAgreed:v,onAgreedToggle:S})]}):o.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-gap-6",children:[o.jsx("div",{className:"iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5",children:Cy.map((A,O)=>o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[o.jsx("div",{className:"iw-flex iw-h-7 iw-w-7 iw-min-w-[28px] iw-items-center iw-justify-center iw-rounded-full iw-bg-[#DBEAFE] iw-text-[#062260] iw-text-xs iw-font-bold",children:O+1}),o.jsx("span",{className:"iw-text-[#5C6686] iw-font-medium",children:A})]},O))}),o.jsx(g3,{buttonText:"Start interview",onButtonClick:()=>{t(),p()},isAgreed:v,onAgreedToggle:S,showMediaIcons:!1})]})})]})})};var I=(e=>(e.IDLE="idle",e.FETCHING_QUESTION="fetching_question",e.READING_QUESTION="reading_question",e.THINKING="thinking",e.ANSWERING="answering",e.TRANSCRIBING="transcribing",e.EDITING="editing",e.SUBMITTING="submitting",e.COMPLETED="completed",e))(I||{});const w3={thinkingDuration:0,answeringDuration:120,editingDuration:30},m3={idle:{next:"fetching_question"},fetching_question:{next:"reading_question"},reading_question:{next:"answering"},thinking:{next:"answering",duration:0},answering:{next:"transcribing",duration:120},transcribing:{next:"editing"},editing:{next:"submitting",duration:30},submitting:{next:"completed"},completed:{next:"completed"}};class Oy{constructor(t={},n={}){Kt(this,"config");Kt(this,"state");Kt(this,"phaseIntervalId",null);Kt(this,"globalIntervalId",null);Kt(this,"callbacks");this.config={...w3,...t},this.callbacks=n,this.state={phase:"idle",currentPhaseTimeRemaining:0,totalTimeElapsed:0,currentQuestionNumber:0}}updateConfig(t){this.config={...this.config,...t}}getState(){return{...this.state}}startQuestion(){this.state.currentQuestionNumber===0&&this.startGlobalTimer(),this.state.currentQuestionNumber=this.state.currentQuestionNumber+1,this.state.phase="fetching_question",this.notifyChange()}nextPhase(){const t=this.state.phase;let n=m3[t];if(!n)return;if(n.next==="editing"&&this.config.editingDuration===0){const i=m3.editing;i&&(n=i)}this.stopPhaseTimer(),this.state.phase=n.next;const a=this.getDurationForPhase(n.next);a>0?(this.state.currentPhaseTimeRemaining=a,this.startPhaseTimer()):this.state.currentPhaseTimeRemaining=0,this.notifyChange()}completeInterview(){var t,n;this.stopGlobalTimer(),this.stopPhaseTimer(),this.state.phase="completed",(n=(t=this.callbacks).onInterviewEnd)==null||n.call(t),this.notifyChange()}destroy(){this.stopPhaseTimer(),this.stopGlobalTimer()}getDurationForPhase(t){switch(t){case"thinking":return this.config.thinkingDuration;case"answering":return this.config.answeringDuration;case"editing":return this.config.editingDuration;default:return 0}}startGlobalTimer(){this.globalIntervalId=setInterval(()=>{var t,n;this.state.totalTimeElapsed++,(n=(t=this.callbacks).onTick)==null||n.call(t,this.getState())},1e3)}stopGlobalTimer(){this.globalIntervalId&&(clearInterval(this.globalIntervalId),this.globalIntervalId=null)}startPhaseTimer(){this.phaseIntervalId=setInterval(()=>{this.state.currentPhaseTimeRemaining--,this.state.currentPhaseTimeRemaining<=0&&this.nextPhase()},1e3)}stopPhaseTimer(){this.phaseIntervalId&&(clearInterval(this.phaseIntervalId),this.phaseIntervalId=null)}notifyChange(){var t,n;(n=(t=this.callbacks).onPhaseChange)==null||n.call(t,this.state.phase,this.getState())}}function zy(e={}){const{config:t={},callbacks:n={}}=e,a=y.useRef(null);a.current||(a.current=new Oy(t,{}));const i=a.current,[l,r]=y.useState(i.getState()),s=y.useCallback(()=>{r(i.getState())},[i]);y.useEffect(()=>{const h={onPhaseChange:(d,g)=>{var v;s(),(v=n.onPhaseChange)==null||v.call(n,d,g)},onTick:d=>{var g;s(),(g=n.onTick)==null||g.call(n,d)},onInterviewEnd:()=>{var d;s(),(d=n.onInterviewEnd)==null||d.call(n)}};i.callbacks=h},[i,n,s]),y.useEffect(()=>{i.updateConfig(t)},[i,t]),y.useEffect(()=>()=>{i.destroy()},[i]);const c=y.useCallback(()=>{i.startQuestion(),s()},[i,s]),u=y.useCallback(()=>{i.nextPhase(),s()},[i,s]),f=y.useCallback(()=>{i.completeInterview(),s()},[i,s]);return{state:l,startQuestion:c,nextPhase:u,completeInterview:f,timerService:i}}function ky(e,t={}){const[n,a]=y.useState({data:null,loading:!1,error:null}),i=y.useCallback(async(...l)=>{var r,s,c,u;a(f=>({...f,loading:!0,error:null}));try{const f=await e(...l);a(h=>({...h,data:f,loading:!1,error:null})),(r=t.onSuccess)==null||r.call(t,f),(s=t.onSettled)==null||s.call(t,f,null)}catch(f){const h=f.type?f:{type:"unknown",message:f.message||"Unknown error",retryable:!0,userMessage:"Something went wrong. Please try again.",originalError:f};a(d=>({...d,loading:!1,error:h})),(c=t.onError)==null||c.call(t,h),(u=t.onSettled)==null||u.call(t,null,h)}},[e,t]);return{...n,execute:i}}const Ly=e=>{const[t,n]=y.useState(null),[a,i]=y.useState(!1),l=document,r=()=>!!(l.fullscreenEnabled||l.webkitFullscreenEnabled||l.mozFullScreenEnabled||l.msFullscreenEnabled),s=()=>l.fullscreenElement||l.webkitFullscreenElement||l.mozFullScreenElement||l.msFullscreenElement,c=async g=>{var v;try{if(!r())throw new Error("Fullscreen is not supported in this environment");g.requestFullscreen?await g.requestFullscreen():g.webkitRequestFullscreen?await g.webkitRequestFullscreen():g.mozRequestFullScreen?await g.mozRequestFullScreen():g.msRequestFullscreen&&await g.msRequestFullscreen()}catch(S){const _={name:"FullscreenError",message:S instanceof Error?S.message:"Failed to enter fullscreen"};n(_),(v=e==null?void 0:e.onError)==null||v.call(e,_)}},u=async()=>{var g;try{l.exitFullscreen?await l.exitFullscreen():l.webkitExitFullscreen?await l.webkitExitFullscreen():l.mozCancelFullScreen?await l.mozCancelFullScreen():l.msExitFullscreen&&await l.msExitFullscreen()}catch(v){const S={name:"FullscreenError",message:v instanceof Error?v.message:"Failed to exit fullscreen"};n(S),(g=e==null?void 0:e.onError)==null||g.call(e,S)}},f=y.useCallback(()=>{var v;const g=!!s();i(g),(v=e==null?void 0:e.onFullScreenChange)==null||v.call(e,g)},[e]);y.useEffect(()=>{const g=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];return g.forEach(v=>{document.addEventListener(v,f)}),()=>{g.forEach(v=>{document.removeEventListener(v,f)})}},[f]);const h=async g=>{n(null);const v=g??document.documentElement;await c(v)};return{isFullScreen:a,toggleFullScreen:async g=>{a?await u():await h(g)},enterFullScreen:h,exitFullScreen:u,error:t}};function y3(){const e=xs();return y.useMemo(()=>{const n=e.api||{};return new o1(n)},[e.api])}const Uy=e=>{y.useEffect(()=>{const t=a=>{(a.ctrlKey||a.metaKey)&&["c","v","a","t","n","w","r","s","p"].includes(a.key.toLowerCase())&&(a.preventDefault(),e({type:"blocked_shortcut",severity:"low",details:{action:"shortcut_pressed",reason:`Attempted to use a blocked keyboard shortcut: Ctrl + ${a.key}`}})),a.key.startsWith("F")&&a.key.length<=3&&(a.preventDefault(),e({type:"blocked_function_key",severity:"low",details:{action:"function_key_pressed",reason:`Attempted to use a blocked function key: ${a.key}`}})),a.altKey&&a.key==="Tab"&&(a.preventDefault(),e({type:"alt_tab_attempt",severity:"medium",details:{action:"alt_tab",reason:"Attempted to use the Alt + Tab shortcut"}}))},n=a=>{a.preventDefault(),e({type:"right_click_attempt",severity:"low",details:{action:"right_click",reason:"Attempted to use the right click"}})};return document.addEventListener("keydown",t),document.addEventListener("contextmenu",n),()=>{document.removeEventListener("keydown",t),document.removeEventListener("contextmenu",n)}},[e])},By=(e={})=>{const[t,n]=y.useState(!1),[a,i]=y.useState(!1),[l,r]=y.useState(null),[s,c]=y.useState(null),[u,f]=y.useState(null);e.config&&rl.updateConfig(e.config);const h=y.useCallback(async S=>{var _;try{c(null),r(null),f(null),await rl.startRecording(S,{onStart:()=>{var w;n(!0),(w=e.onStart)==null||w.call(e)},onStop:()=>{var w;n(!1),(w=e.onStop)==null||w.call(e)},onError:w=>{var p;const m=w instanceof be?w:new be(w.message,"RECORDING_ERROR",!0);c(m),n(!1),(p=e.onError)==null||p.call(e,m)}})}catch(w){const m=w instanceof be?w:new be(w instanceof Error?w.message:String(w),"START_FAILED",!1);throw c(m),n(!1),(_=e.onError)==null||_.call(e,m),m}},[]),d=y.useCallback(async()=>{var S,_;try{const w=await rl.stopRecording();return f(w),n(!1),(S=e.onStop)==null||S.call(e),w}catch(w){const m=w instanceof be?w:new be(w instanceof Error?w.message:String(w),"STOP_FAILED",!1);throw c(m),n(!1),(_=e.onError)==null||_.call(e,m),m}},[]),g=y.useCallback(async(S,_={})=>{var w,m;try{c(null),i(!0);const p={audioBlob:S,..._},b=await rl.transcribe(p);return r(b.transcript),i(!1),(w=e.onTranscriptionComplete)==null||w.call(e,b),b}catch(p){const b=p instanceof be?p:new be(p instanceof Error?p.message:String(p),"TRANSCRIPTION_FAILED",!0);throw c(b),i(!1),(m=e.onError)==null||m.call(e,b),b}},[]),v=y.useCallback(()=>{rl.cancelRecording(),n(!1),f(null)},[]);return{startRecording:h,stopRecording:d,transcribe:g,cancelRecording:v,isRecording:t,isTranscribing:a,transcript:l,error:s,audioBlob:u}},Gy=e=>{const t=y.useRef(null),n=y.useRef(!1);y.useEffect(()=>{const a=()=>{document.hidden&&(n.current=!0,t.current&&(clearTimeout(t.current),t.current=null),e({type:"tab_switch",severity:"high",details:{action:"tab_hidden",reason:"Attempted to switch tabs or applications"}}),setTimeout(()=>{n.current=!1},100))},i=()=>{n.current||(t.current=setTimeout(()=>{n.current||e({type:"focus_loss",severity:"medium",details:{action:"window_blur",reason:"Focus lost from the interview window"}}),t.current=null},50))};return document.addEventListener("visibilitychange",a),window.addEventListener("blur",i),()=>{document.removeEventListener("visibilitychange",a),window.removeEventListener("blur",i),t.current&&clearTimeout(t.current)}},[e])},Hy=()=>{y.useEffect(()=>{const e=document.createElement("style");return e.textContent=`
|
|
15
|
+
}`,i.VERTEX_SHADER),this.W=S8(this,this.H(),i.FRAGMENT_SHADER),i.linkProgram(this.h),!i.getProgramParameter(this.h,i.LINK_STATUS))throw Error(`Error during program linking: ${i.getProgramInfoLog(this.h)}`);this.O=i.getAttribLocation(this.h,"aVertex"),this.L=i.getAttribLocation(this.h,"aTex")}D(){}l(){}close(){if(this.h){const i=this.g;i.deleteProgram(this.h),i.deleteShader(this.X),i.deleteShader(this.W)}this.B&&this.g.deleteFramebuffer(this.B),this.A&&this.A.close(),this.u&&this.u.close()}};function qc(i,c){switch(c){case 0:return i.g.find(f=>f instanceof Uint8Array);case 1:return i.g.find(f=>f instanceof Float32Array);case 2:return i.g.find(f=>typeof WebGLTexture<"u"&&f instanceof WebGLTexture);default:throw Error(`Type is not supported: ${c}`)}}function Qw(i){var c=qc(i,1);if(!c){if(c=qc(i,0))c=new Float32Array(c).map(h=>h/255);else{c=new Float32Array(i.width*i.height);const h=v0(i);var f=Zw(i);if(A8(f,h,x8(i)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){f=new Float32Array(i.width*i.height*4),h.readPixels(0,0,i.width,i.height,h.RGBA,h.FLOAT,f);for(let y=0,w=0;y<c.length;++y,w+=4)c[y]=f[w]}else h.readPixels(0,0,i.width,i.height,h.RED,h.FLOAT,c)}i.g.push(c)}return c}function x8(i){let c=qc(i,2);if(!c){const f=v0(i);c=C8(i);const h=Qw(i),y=M8(i);f.texImage2D(f.TEXTURE_2D,0,y,i.width,i.height,0,f.RED,f.FLOAT,h),Jw(i)}return c}function v0(i){if(!i.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return i.h||(i.h=or(i.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),i.h}function M8(i){if(i=v0(i),!$y)if(i.getExtension("EXT_color_buffer_float")&&i.getExtension("OES_texture_float_linear")&&i.getExtension("EXT_float_blend"))$y=i.R32F;else{if(!i.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");$y=i.R16F}return $y}function Zw(i){return i.l||(i.l=new _8),i.l}function C8(i){const c=v0(i);c.viewport(0,0,i.width,i.height),c.activeTexture(c.TEXTURE0);let f=qc(i,2);return f||(f=T8(Zw(i),c,i.m?c.LINEAR:c.NEAREST),i.g.push(f),i.j=!0),c.bindTexture(c.TEXTURE_2D,f),f}function Jw(i){i.h.bindTexture(i.h.TEXTURE_2D,null)}var $y,Oa=class{constructor(i,c,f,h,y,w,E){this.g=i,this.m=c,this.j=f,this.canvas=h,this.l=y,this.width=w,this.height=E,this.j&&--D8===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Fa(){return!!qc(this,0)}ka(){return!!qc(this,1)}R(){return!!qc(this,2)}ja(){return(c=qc(i=this,0))||(c=Qw(i),c=new Uint8Array(c.map(f=>Math.round(255*f))),i.g.push(c)),c;var i,c}ia(){return Qw(this)}N(){return x8(this)}clone(){const i=[];for(const c of this.g){let f;if(c instanceof Uint8Array)f=new Uint8Array(c);else if(c instanceof Float32Array)f=new Float32Array(c);else{if(!(c instanceof WebGLTexture))throw Error(`Type is not supported: ${c}`);{const h=v0(this),y=Zw(this);h.activeTexture(h.TEXTURE1),f=T8(y,h,this.m?h.LINEAR:h.NEAREST),h.bindTexture(h.TEXTURE_2D,f);const w=M8(this);h.texImage2D(h.TEXTURE_2D,0,w,this.width,this.height,0,h.RED,h.FLOAT,null),h.bindTexture(h.TEXTURE_2D,null),A8(y,h,f),kA(y,h,!1,()=>{C8(this),h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),h.drawArrays(h.TRIANGLE_FAN,0,4),Jw(this)}),XA(y),Jw(this)}}i.push(f)}return new Oa(i,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&v0(this).deleteTexture(qc(this,2)),D8=-1}};Oa.prototype.close=Oa.prototype.close,Oa.prototype.clone=Oa.prototype.clone,Oa.prototype.getAsWebGLTexture=Oa.prototype.N,Oa.prototype.getAsFloat32Array=Oa.prototype.ia,Oa.prototype.getAsUint8Array=Oa.prototype.ja,Oa.prototype.hasWebGLTexture=Oa.prototype.R,Oa.prototype.hasFloat32Array=Oa.prototype.ka,Oa.prototype.hasUint8Array=Oa.prototype.Fa;var D8=250;function no(...i){return i.map(([c,f])=>({start:c,end:f}))}const QA=function(i){return class extends i{Ja(){this.i._registerModelResourcesGraphService()}}}((O8=class{constructor(i,c){this.l=!0,this.i=i,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",c!==void 0?this.i.canvas=c:g8()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(i){const c=await(await fetch(i)).arrayBuffer();i=!(i.endsWith(".pbtxt")||i.endsWith(".textproto")),this.setGraph(new Uint8Array(c),i)}setGraphFromString(i){this.setGraph(new TextEncoder().encode(i),!1)}setGraph(i,c){const f=i.length,h=this.i._malloc(f);this.i.HEAPU8.set(i,h),c?this.i._changeBinaryGraph(f,h):this.i._changeTextGraph(f,h),this.i._free(h)}configureAudio(i,c,f,h,y){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),_e(this,h||"input_audio",w=>{_e(this,y=y||"audio_header",E=>{this.i._configureAudio(w,E,i,c??0,f)})})}setAutoResizeCanvas(i){this.l=i}setAutoRenderToScreen(i){this.i._setAutoRenderToScreen(i)}setGpuBufferVerticalFlip(i){this.i.gpuOriginForWebTexturesIsBottomLeft=i}ca(i){ko(this,"__graph_config__",c=>{i(c)}),_e(this,"__graph_config__",c=>{this.i._getGraphConfig(c,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(i){this.i.errorListener=i}attachEmptyPacketListener(i,c){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[i]=c}addAudioToStream(i,c,f){this.addAudioToStreamWithShape(i,0,0,c,f)}addAudioToStreamWithShape(i,c,f,h,y){const w=4*i.length;this.h!==w&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(w),this.h=w),this.i.HEAPF32.set(i,this.g/4),_e(this,h,E=>{this.i._addAudioToInputStream(this.g,c,f,E,y)})}addGpuBufferToStream(i,c,f){_e(this,c,h=>{const[y,w]=v8(this,i,h);this.i._addBoundTextureToStream(h,y,w,f)})}addBoolToStream(i,c,f){_e(this,c,h=>{this.i._addBoolToInputStream(i,h,f)})}addDoubleToStream(i,c,f){_e(this,c,h=>{this.i._addDoubleToInputStream(i,h,f)})}addFloatToStream(i,c,f){_e(this,c,h=>{this.i._addFloatToInputStream(i,h,f)})}addIntToStream(i,c,f){_e(this,c,h=>{this.i._addIntToInputStream(i,h,f)})}addUintToStream(i,c,f){_e(this,c,h=>{this.i._addUintToInputStream(i,h,f)})}addStringToStream(i,c,f){_e(this,c,h=>{_e(this,i,y=>{this.i._addStringToInputStream(y,h,f)})})}addStringRecordToStream(i,c,f){_e(this,c,h=>{w8(this,Object.keys(i),y=>{w8(this,Object.values(i),w=>{this.i._addFlatHashMapToInputStream(y,w,Object.keys(i).length,h,f)})})})}addProtoToStream(i,c,f,h){_e(this,f,y=>{_e(this,c,w=>{const E=this.i._malloc(i.length);this.i.HEAPU8.set(i,E),this.i._addProtoToInputStream(E,i.length,w,y,h),this.i._free(E)})})}addEmptyPacketToStream(i,c){_e(this,i,f=>{this.i._addEmptyPacketToInputStream(f,c)})}addBoolVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateBoolVector(i.length);if(!y)throw Error("Unable to allocate new bool vector on heap.");for(const w of i)this.i._addBoolVectorEntry(y,w);this.i._addBoolVectorToInputStream(y,h,f)})}addDoubleVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateDoubleVector(i.length);if(!y)throw Error("Unable to allocate new double vector on heap.");for(const w of i)this.i._addDoubleVectorEntry(y,w);this.i._addDoubleVectorToInputStream(y,h,f)})}addFloatVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateFloatVector(i.length);if(!y)throw Error("Unable to allocate new float vector on heap.");for(const w of i)this.i._addFloatVectorEntry(y,w);this.i._addFloatVectorToInputStream(y,h,f)})}addIntVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateIntVector(i.length);if(!y)throw Error("Unable to allocate new int vector on heap.");for(const w of i)this.i._addIntVectorEntry(y,w);this.i._addIntVectorToInputStream(y,h,f)})}addUintVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateUintVector(i.length);if(!y)throw Error("Unable to allocate new unsigned int vector on heap.");for(const w of i)this.i._addUintVectorEntry(y,w);this.i._addUintVectorToInputStream(y,h,f)})}addStringVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateStringVector(i.length);if(!y)throw Error("Unable to allocate new string vector on heap.");for(const w of i)_e(this,w,E=>{this.i._addStringVectorEntry(y,E)});this.i._addStringVectorToInputStream(y,h,f)})}addBoolToInputSidePacket(i,c){_e(this,c,f=>{this.i._addBoolToInputSidePacket(i,f)})}addDoubleToInputSidePacket(i,c){_e(this,c,f=>{this.i._addDoubleToInputSidePacket(i,f)})}addFloatToInputSidePacket(i,c){_e(this,c,f=>{this.i._addFloatToInputSidePacket(i,f)})}addIntToInputSidePacket(i,c){_e(this,c,f=>{this.i._addIntToInputSidePacket(i,f)})}addUintToInputSidePacket(i,c){_e(this,c,f=>{this.i._addUintToInputSidePacket(i,f)})}addStringToInputSidePacket(i,c){_e(this,c,f=>{_e(this,i,h=>{this.i._addStringToInputSidePacket(h,f)})})}addProtoToInputSidePacket(i,c,f){_e(this,f,h=>{_e(this,c,y=>{const w=this.i._malloc(i.length);this.i.HEAPU8.set(i,w),this.i._addProtoToInputSidePacket(w,i.length,y,h),this.i._free(w)})})}addBoolVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateBoolVector(i.length);if(!h)throw Error("Unable to allocate new bool vector on heap.");for(const y of i)this.i._addBoolVectorEntry(h,y);this.i._addBoolVectorToInputSidePacket(h,f)})}addDoubleVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateDoubleVector(i.length);if(!h)throw Error("Unable to allocate new double vector on heap.");for(const y of i)this.i._addDoubleVectorEntry(h,y);this.i._addDoubleVectorToInputSidePacket(h,f)})}addFloatVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateFloatVector(i.length);if(!h)throw Error("Unable to allocate new float vector on heap.");for(const y of i)this.i._addFloatVectorEntry(h,y);this.i._addFloatVectorToInputSidePacket(h,f)})}addIntVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateIntVector(i.length);if(!h)throw Error("Unable to allocate new int vector on heap.");for(const y of i)this.i._addIntVectorEntry(h,y);this.i._addIntVectorToInputSidePacket(h,f)})}addUintVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateUintVector(i.length);if(!h)throw Error("Unable to allocate new unsigned int vector on heap.");for(const y of i)this.i._addUintVectorEntry(h,y);this.i._addUintVectorToInputSidePacket(h,f)})}addStringVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateStringVector(i.length);if(!h)throw Error("Unable to allocate new string vector on heap.");for(const y of i)_e(this,y,w=>{this.i._addStringVectorEntry(h,w)});this.i._addStringVectorToInputSidePacket(h,f)})}attachBoolListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachBoolListener(f)})}attachBoolVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachBoolVectorListener(f)})}attachIntListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachIntListener(f)})}attachIntVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachIntVectorListener(f)})}attachUintListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachUintListener(f)})}attachUintVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachUintVectorListener(f)})}attachDoubleListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachDoubleListener(f)})}attachDoubleVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachDoubleVectorListener(f)})}attachFloatListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachFloatListener(f)})}attachFloatVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachFloatVectorListener(f)})}attachStringListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachStringListener(f)})}attachStringVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachStringVectorListener(f)})}attachProtoListener(i,c,f){ko(this,i,c),_e(this,i,h=>{this.i._attachProtoListener(h,f||!1)})}attachProtoVectorListener(i,c,f){ur(this,i,c),_e(this,i,h=>{this.i._attachProtoVectorListener(h,f||!1)})}attachAudioListener(i,c,f){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),ko(this,i,(h,y)=>{h=new Float32Array(h.buffer,h.byteOffset,h.length/4),c(h,y)}),_e(this,i,h=>{this.i._attachAudioListener(h,f||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends O8{get ga(){return this.i}pa(i,c,f){_e(this,c,h=>{const[y,w]=v8(this,i,h);this.ga._addBoundTextureAsImageToStream(h,y,w,f)})}Z(i,c){ko(this,i,c),_e(this,i,f=>{this.ga._attachImageListener(f)})}aa(i,c){ur(this,i,c),_e(this,i,f=>{this.ga._attachImageVectorListener(f)})}}));var O8,ao=class extends QA{};async function bt(i,c,f){return async function(h,y,w,E){return VA(h,y,w,E)}(i,f.canvas??(g8()?void 0:document.createElement("canvas")),c,f)}function z8(i,c,f,h){if(i.U){const w=new LS;if(f!=null&&f.regionOfInterest){if(!i.oa)throw Error("This task doesn't support region-of-interest.");var y=f.regionOfInterest;if(y.left>=y.right||y.top>=y.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(y.left<0||y.top<0||y.right>1||y.bottom>1)throw Error("Expected RectF values to be in [0,1].");Oe(w,1,(y.left+y.right)/2),Oe(w,2,(y.top+y.bottom)/2),Oe(w,4,y.right-y.left),Oe(w,3,y.bottom-y.top)}else Oe(w,1,.5),Oe(w,2,.5),Oe(w,4,1),Oe(w,3,1);if(f!=null&&f.rotationDegrees){if((f==null?void 0:f.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(Oe(w,5,-Math.PI*f.rotationDegrees/180),(f==null?void 0:f.rotationDegrees)%180!=0){const[E,A]=y8(c);f=qn(w,3)*A/E,y=qn(w,4)*E/A,Oe(w,4,f),Oe(w,3,y)}}i.g.addProtoToStream(w.g(),"mediapipe.NormalizedRect",i.U,h)}i.g.pa(c,i.X,h??performance.now()),i.finishProcessing()}function lo(i,c,f){var h;if((h=i.baseOptions)!=null&&h.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");z8(i,c,f,i.C+1)}function Xo(i,c,f,h){var y;if(!((y=i.baseOptions)!=null&&y.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");z8(i,c,f,h)}function w0(i,c,f,h){var y=c.data;const w=c.width,E=w*(c=c.height);if((y instanceof Uint8Array||y instanceof Float32Array)&&y.length!==E)throw Error("Unsupported channel count: "+y.length/E);return i=new Oa([y],f,!1,i.g.i.canvas,i.P,w,c),h?i.clone():i}var vi=class extends kw{constructor(i,c,f,h){super(i),this.g=i,this.X=c,this.U=f,this.oa=h,this.P=new _8}l(i,c=!0){if("runningMode"in i&&Yt(this.baseOptions,2,am(!!i.runningMode&&i.runningMode!=="IMAGE")),i.canvas!==void 0&&this.g.i.canvas!==i.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(i,c)}close(){this.P.close(),super.close()}};vi.prototype.close=vi.prototype.close;var iu=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect_in",!1),this.j={detections:[]},Ue(i=this.h=new Qy,0,1,c=new Un),Oe(this.h,2,.5),Oe(this.h,3,.3)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"minDetectionConfidence"in i&&Oe(this.h,2,i.minDetectionConfidence??.5),"minSuppressionThreshold"in i&&Oe(this.h,3,i.minSuppressionThreshold??.3),this.l(i)}F(i,c){return this.j={detections:[]},lo(this,i,c),this.j}G(i,c,f){return this.j={detections:[]},Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect_in"),Nt(i,"detections");const c=new pi;Vo(c,xA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect_in"),yt(f,"DETECTIONS:detections"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("detections",(h,y)=>{for(const w of h)h=US(w),this.j.detections.push(f8(h));ge(this,y)}),this.g.attachEmptyPacketListener("detections",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};iu.prototype.detectForVideo=iu.prototype.G,iu.prototype.detect=iu.prototype.F,iu.prototype.setOptions=iu.prototype.o,iu.createFromModelPath=async function(i,c){return bt(iu,i,{baseOptions:{modelAssetPath:c}})},iu.createFromModelBuffer=function(i,c){return bt(iu,i,{baseOptions:{modelAssetBuffer:c}})},iu.createFromOptions=function(i,c){return bt(iu,i,c)};var Kw=no([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),Fw=no([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),$w=no([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),N8=no([474,475],[475,476],[476,477],[477,474]),Iw=no([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),Ww=no([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),U8=no([469,470],[470,471],[471,472],[472,469]),Pw=no([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),B8=[...Kw,...Fw,...$w,...Iw,...Ww,...Pw],H8=no([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function L8(i){i.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var An=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,Ue(i=this.h=new XS,0,1,c=new Un),this.A=new kS,Ue(this.h,0,3,this.A),this.u=new Qy,Ue(this.h,0,2,this.u),Rc(this.u,4,1),Oe(this.u,2,.5),Oe(this.A,2,.5),Oe(this.h,4,.5)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"numFaces"in i&&Rc(this.u,4,i.numFaces??1),"minFaceDetectionConfidence"in i&&Oe(this.u,2,i.minFaceDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.h,4,i.minTrackingConfidence??.5),"minFacePresenceConfidence"in i&&Oe(this.A,2,i.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in i&&(this.outputFaceBlendshapes=!!i.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in i&&(this.outputFacialTransformationMatrixes=!!i.outputFacialTransformationMatrixes),this.l(i)}F(i,c){return L8(this),lo(this,i,c),this.j}G(i,c,f){return L8(this),Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"face_landmarks");const c=new pi;Vo(c,CA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"NORM_LANDMARKS:face_landmarks"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("face_landmarks",(h,y)=>{for(const w of h)h=fm(w),this.j.faceLandmarks.push(Zy(h));ge(this,y)}),this.g.attachEmptyPacketListener("face_landmarks",h=>{ge(this,h)}),this.outputFaceBlendshapes&&(Nt(i,"blendshapes"),yt(f,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(h,y)=>{if(this.outputFaceBlendshapes)for(const w of h)h=Yy(w),this.j.faceBlendshapes.push(Vw(h.g()??[]));ge(this,y)}),this.g.attachEmptyPacketListener("blendshapes",h=>{ge(this,h)})),this.outputFacialTransformationMatrixes&&(Nt(i,"face_geometry"),yt(f,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(h,y)=>{if(this.outputFacialTransformationMatrixes)for(const w of h)(h=xt(h=MA(w),vA,2))&&this.j.facialTransformationMatrixes.push({rows:nu(h,1)??0??0,columns:nu(h,2)??0??0,data:Wf(h,3,jo,If()).slice()??[]});ge(this,y)}),this.g.attachEmptyPacketListener("face_geometry",h=>{ge(this,h)})),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};An.prototype.detectForVideo=An.prototype.G,An.prototype.detect=An.prototype.F,An.prototype.setOptions=An.prototype.o,An.createFromModelPath=function(i,c){return bt(An,i,{baseOptions:{modelAssetPath:c}})},An.createFromModelBuffer=function(i,c){return bt(An,i,{baseOptions:{modelAssetBuffer:c}})},An.createFromOptions=function(i,c){return bt(An,i,c)},An.FACE_LANDMARKS_LIPS=Kw,An.FACE_LANDMARKS_LEFT_EYE=Fw,An.FACE_LANDMARKS_LEFT_EYEBROW=$w,An.FACE_LANDMARKS_LEFT_IRIS=N8,An.FACE_LANDMARKS_RIGHT_EYE=Iw,An.FACE_LANDMARKS_RIGHT_EYEBROW=Ww,An.FACE_LANDMARKS_RIGHT_IRIS=U8,An.FACE_LANDMARKS_FACE_OVAL=Pw,An.FACE_LANDMARKS_CONTOURS=B8,An.FACE_LANDMARKS_TESSELATION=H8;var eb=no([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function G8(i){i.gestures=[],i.landmarks=[],i.worldLandmarks=[],i.handedness=[]}function R8(i){return i.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:i.gestures,landmarks:i.landmarks,worldLandmarks:i.worldLandmarks,handedness:i.handedness,handednesses:i.handedness}}function j8(i,c=!0){const f=[];for(const y of i){var h=Yy(y);i=[];for(const w of h.g())h=c&&nu(w,1)!=null?nu(w,1)??0:-1,i.push({score:qn(w,2)??0,index:h,categoryName:qa(mn(w,3))??""??"",displayName:qa(mn(w,4))??""??""});f.push(i)}return f}var wi=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ue(i=this.j=new JS,0,1,c=new Un),this.u=new Uw,Ue(this.j,0,2,this.u),this.D=new Nw,Ue(this.u,0,3,this.D),this.A=new ZS,Ue(this.u,0,2,this.A),this.h=new DA,Ue(this.j,0,3,this.h),Oe(this.A,2,.5),Oe(this.u,4,.5),Oe(this.D,2,.5)}get baseOptions(){return xt(this.j,Un,1)}set baseOptions(i){Ue(this.j,0,1,i)}o(i){var y,w,E,A;if(Rc(this.A,3,i.numHands??1),"minHandDetectionConfidence"in i&&Oe(this.A,2,i.minHandDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.u,4,i.minTrackingConfidence??.5),"minHandPresenceConfidence"in i&&Oe(this.D,2,i.minHandPresenceConfidence??.5),i.cannedGesturesClassifierOptions){var c=new p0,f=c,h=qw(i.cannedGesturesClassifierOptions,(y=xt(this.h,p0,3))==null?void 0:y.l());Ue(f,0,2,h),Ue(this.h,0,3,c)}else i.cannedGesturesClassifierOptions===void 0&&((w=xt(this.h,p0,3))==null||w.g());return i.customGesturesClassifierOptions?(Ue(f=c=new p0,0,2,h=qw(i.customGesturesClassifierOptions,(E=xt(this.h,p0,4))==null?void 0:E.l())),Ue(this.h,0,4,c)):i.customGesturesClassifierOptions===void 0&&((A=xt(this.h,p0,4))==null||A.g()),this.l(i)}Ha(i,c){return G8(this),lo(this,i,c),R8(this)}Ia(i,c,f){return G8(this),Xo(this,i,f,c),R8(this)}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"hand_gestures"),Nt(i,"hand_landmarks"),Nt(i,"world_hand_landmarks"),Nt(i,"handedness");const c=new pi;Vo(c,OA,this.j);const f=new kl;mi(f,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"HAND_GESTURES:hand_gestures"),yt(f,"LANDMARKS:hand_landmarks"),yt(f,"WORLD_LANDMARKS:world_hand_landmarks"),yt(f,"HANDEDNESS:handedness"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("hand_landmarks",(h,y)=>{for(const w of h){h=fm(w);const E=[];for(const A of Gc(h,HS,1))E.push({x:qn(A,1)??0,y:qn(A,2)??0,z:qn(A,3)??0,visibility:qn(A,4)??0});this.landmarks.push(E)}ge(this,y)}),this.g.attachEmptyPacketListener("hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("world_hand_landmarks",(h,y)=>{for(const w of h){h=g0(w);const E=[];for(const A of Gc(h,BS,1))E.push({x:qn(A,1)??0,y:qn(A,2)??0,z:qn(A,3)??0,visibility:qn(A,4)??0});this.worldLandmarks.push(E)}ge(this,y)}),this.g.attachEmptyPacketListener("world_hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("hand_gestures",(h,y)=>{this.gestures.push(...j8(h,!1)),ge(this,y)}),this.g.attachEmptyPacketListener("hand_gestures",h=>{ge(this,h)}),this.g.attachProtoVectorListener("handedness",(h,y)=>{this.handedness.push(...j8(h)),ge(this,y)}),this.g.attachEmptyPacketListener("handedness",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};function q8(i){return{landmarks:i.landmarks,worldLandmarks:i.worldLandmarks,handednesses:i.handedness,handedness:i.handedness}}wi.prototype.recognizeForVideo=wi.prototype.Ia,wi.prototype.recognize=wi.prototype.Ha,wi.prototype.setOptions=wi.prototype.o,wi.createFromModelPath=function(i,c){return bt(wi,i,{baseOptions:{modelAssetPath:c}})},wi.createFromModelBuffer=function(i,c){return bt(wi,i,{baseOptions:{modelAssetBuffer:c}})},wi.createFromOptions=function(i,c){return bt(wi,i,c)},wi.HAND_CONNECTIONS=eb;var bi=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ue(i=this.h=new Uw,0,1,c=new Un),this.u=new Nw,Ue(this.h,0,3,this.u),this.j=new ZS,Ue(this.h,0,2,this.j),Rc(this.j,3,1),Oe(this.j,2,.5),Oe(this.u,2,.5),Oe(this.h,4,.5)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"numHands"in i&&Rc(this.j,3,i.numHands??1),"minHandDetectionConfidence"in i&&Oe(this.j,2,i.minHandDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.h,4,i.minTrackingConfidence??.5),"minHandPresenceConfidence"in i&&Oe(this.u,2,i.minHandPresenceConfidence??.5),this.l(i)}F(i,c){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],lo(this,i,c),q8(this)}G(i,c,f){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Xo(this,i,f,c),q8(this)}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"hand_landmarks"),Nt(i,"world_hand_landmarks"),Nt(i,"handedness");const c=new pi;Vo(c,zA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"LANDMARKS:hand_landmarks"),yt(f,"WORLD_LANDMARKS:world_hand_landmarks"),yt(f,"HANDEDNESS:handedness"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("hand_landmarks",(h,y)=>{for(const w of h)h=fm(w),this.landmarks.push(Zy(h));ge(this,y)}),this.g.attachEmptyPacketListener("hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("world_hand_landmarks",(h,y)=>{for(const w of h)h=g0(w),this.worldLandmarks.push(dm(h));ge(this,y)}),this.g.attachEmptyPacketListener("world_hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("handedness",(h,y)=>{var w=this.handedness,E=w.push;const A=[];for(const M of h){h=Yy(M);const G=[];for(const U of h.g())G.push({score:qn(U,2)??0,index:nu(U,1)??0??-1,categoryName:qa(mn(U,3))??""??"",displayName:qa(mn(U,4))??""??""});A.push(G)}E.call(w,...A),ge(this,y)}),this.g.attachEmptyPacketListener("handedness",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};bi.prototype.detectForVideo=bi.prototype.G,bi.prototype.detect=bi.prototype.F,bi.prototype.setOptions=bi.prototype.o,bi.createFromModelPath=function(i,c){return bt(bi,i,{baseOptions:{modelAssetPath:c}})},bi.createFromModelBuffer=function(i,c){return bt(bi,i,{baseOptions:{modelAssetBuffer:c}})},bi.createFromOptions=function(i,c){return bt(bi,i,c)},bi.HAND_CONNECTIONS=eb;var V8=no([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function Y8(i){i.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function k8(i){try{if(!i.D)return i.h;i.D(i.h)}finally{Fy(i)}}function Iy(i,c){i=fm(i),c.push(Zy(i))}var pn=class extends vi{constructor(i,c){super(new ao(i,c),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,Ue(i=this.j=new PS,0,1,c=new Un),this.I=new Nw,Ue(this.j,0,2,this.I),this.W=new NA,Ue(this.j,0,3,this.W),this.u=new Qy,Ue(this.j,0,4,this.u),this.O=new kS,Ue(this.j,0,5,this.O),this.A=new IS,Ue(this.j,0,6,this.A),this.M=new WS,Ue(this.j,0,7,this.M),Oe(this.u,2,.5),Oe(this.u,3,.3),Oe(this.O,2,.5),Oe(this.A,2,.5),Oe(this.A,3,.3),Oe(this.M,2,.5),Oe(this.I,2,.5)}get baseOptions(){return xt(this.j,Un,1)}set baseOptions(i){Ue(this.j,0,1,i)}o(i){return"minFaceDetectionConfidence"in i&&Oe(this.u,2,i.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in i&&Oe(this.u,3,i.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in i&&Oe(this.O,2,i.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in i&&(this.outputFaceBlendshapes=!!i.outputFaceBlendshapes),"minPoseDetectionConfidence"in i&&Oe(this.A,2,i.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in i&&Oe(this.A,3,i.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in i&&Oe(this.M,2,i.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in i&&(this.outputPoseSegmentationMasks=!!i.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in i&&Oe(this.I,2,i.minHandLandmarksConfidence??.5),this.l(i)}F(i,c,f){const h=typeof c!="function"?c:{};return this.D=typeof c=="function"?c:f,Y8(this),lo(this,i,h),k8(this)}G(i,c,f,h){const y=typeof f!="function"?f:{};return this.D=typeof f=="function"?f:h,Y8(this),Xo(this,i,y,c),k8(this)}m(){var i=new yi;Tn(i,"input_frames_image"),Nt(i,"pose_landmarks"),Nt(i,"pose_world_landmarks"),Nt(i,"face_landmarks"),Nt(i,"left_hand_landmarks"),Nt(i,"left_hand_world_landmarks"),Nt(i,"right_hand_landmarks"),Nt(i,"right_hand_world_landmarks");const c=new pi,f=new pS;mi(f,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),function(y,w){if(w!=null)if(Array.isArray(w))Yt(y,2,_y(w,0,um));else{if(!(typeof w=="string"||w instanceof Go||Rv(w)))throw Error("invalid value in Any.value field: "+w+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");tr(y,2,Yv(w,!1),Qf())}}(f,this.j.g());const h=new kl;mi(h,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),sw(h,8,pS,f),gn(h,"IMAGE:input_frames_image"),yt(h,"POSE_LANDMARKS:pose_landmarks"),yt(h,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),yt(h,"FACE_LANDMARKS:face_landmarks"),yt(h,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),yt(h,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),yt(h,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),yt(h,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),h.o(c),lu(i,h),Ky(this,i),this.g.attachProtoListener("pose_landmarks",(y,w)=>{Iy(y,this.h.poseLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("pose_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("pose_world_landmarks",(y,w)=>{var E=this.h.poseWorldLandmarks;y=g0(y),E.push(dm(y)),ge(this,w)}),this.g.attachEmptyPacketListener("pose_world_landmarks",y=>{ge(this,y)}),this.outputPoseSegmentationMasks&&(yt(h,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),y0(this,"pose_segmentation_mask"),this.g.Z("pose_segmentation_mask",(y,w)=>{this.h.poseSegmentationMasks=[w0(this,y,!0,!this.D)],ge(this,w)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",y=>{this.h.poseSegmentationMasks=[],ge(this,y)})),this.g.attachProtoListener("face_landmarks",(y,w)=>{Iy(y,this.h.faceLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("face_landmarks",y=>{ge(this,y)}),this.outputFaceBlendshapes&&(Nt(i,"extra_blendshapes"),yt(h,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(y,w)=>{var E=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(y=Yy(y),E.push(Vw(y.g()??[]))),ge(this,w)}),this.g.attachEmptyPacketListener("extra_blendshapes",y=>{ge(this,y)})),this.g.attachProtoListener("left_hand_landmarks",(y,w)=>{Iy(y,this.h.leftHandLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("left_hand_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("left_hand_world_landmarks",(y,w)=>{var E=this.h.leftHandWorldLandmarks;y=g0(y),E.push(dm(y)),ge(this,w)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("right_hand_landmarks",(y,w)=>{Iy(y,this.h.rightHandLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("right_hand_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("right_hand_world_landmarks",(y,w)=>{var E=this.h.rightHandWorldLandmarks;y=g0(y),E.push(dm(y)),ge(this,w)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",y=>{ge(this,y)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};pn.prototype.detectForVideo=pn.prototype.G,pn.prototype.detect=pn.prototype.F,pn.prototype.setOptions=pn.prototype.o,pn.createFromModelPath=function(i,c){return bt(pn,i,{baseOptions:{modelAssetPath:c}})},pn.createFromModelBuffer=function(i,c){return bt(pn,i,{baseOptions:{modelAssetBuffer:c}})},pn.createFromOptions=function(i,c){return bt(pn,i,c)},pn.HAND_CONNECTIONS=eb,pn.POSE_CONNECTIONS=V8,pn.FACE_LANDMARKS_LIPS=Kw,pn.FACE_LANDMARKS_LEFT_EYE=Fw,pn.FACE_LANDMARKS_LEFT_EYEBROW=$w,pn.FACE_LANDMARKS_LEFT_IRIS=N8,pn.FACE_LANDMARKS_RIGHT_EYE=Iw,pn.FACE_LANDMARKS_RIGHT_EYEBROW=Ww,pn.FACE_LANDMARKS_RIGHT_IRIS=U8,pn.FACE_LANDMARKS_FACE_OVAL=Pw,pn.FACE_LANDMARKS_CONTOURS=B8,pn.FACE_LANDMARKS_TESSELATION=H8;var uu=class extends vi{constructor(i,c){super(new ao(i,c),"input_image","norm_rect",!0),this.j={classifications:[]},Ue(i=this.h=new e8,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return Ue(this.h,0,2,qw(i,xt(this.h,Dw,2))),this.l(i)}sa(i,c){return this.j={classifications:[]},lo(this,i,c),this.j}ta(i,c,f){return this.j={classifications:[]},Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"input_image"),Tn(i,"norm_rect"),Nt(i,"classifications");const c=new pi;Vo(c,UA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),gn(f,"IMAGE:input_image"),gn(f,"NORM_RECT:norm_rect"),yt(f,"CLASSIFICATIONS:classifications"),f.o(c),lu(i,f),this.g.attachProtoListener("classifications",(h,y)=>{this.j=jA(SA(h)),ge(this,y)}),this.g.attachEmptyPacketListener("classifications",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};uu.prototype.classifyForVideo=uu.prototype.ta,uu.prototype.classify=uu.prototype.sa,uu.prototype.setOptions=uu.prototype.o,uu.createFromModelPath=function(i,c){return bt(uu,i,{baseOptions:{modelAssetPath:c}})},uu.createFromModelBuffer=function(i,c){return bt(uu,i,{baseOptions:{modelAssetBuffer:c}})},uu.createFromOptions=function(i,c){return bt(uu,i,c)};var Si=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!0),this.h=new t8,this.embeddings={embeddings:[]},Ue(i=this.h,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){var c=this.h,f=xt(this.h,qS,2);return f=f?f.clone():new qS,i.l2Normalize!==void 0?Yt(f,1,am(i.l2Normalize)):"l2Normalize"in i&&Yt(f,1),i.quantize!==void 0?Yt(f,2,am(i.quantize)):"quantize"in i&&Yt(f,2),Ue(c,0,2,f),this.l(i)}za(i,c){return lo(this,i,c),this.embeddings}Aa(i,c,f){return Xo(this,i,f,c),this.embeddings}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"embeddings_out");const c=new pi;Vo(c,BA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"EMBEDDINGS:embeddings_out"),f.o(c),lu(i,f),this.g.attachProtoListener("embeddings_out",(h,y)=>{h=AA(h),this.embeddings=function(w){return{embeddings:Gc(w,TA,1).map(E=>{var G,U;const A={headIndex:nu(E,3)??0??-1,headName:qa(mn(E,4))??""??""};var M=E.v;return B5(M,0|M[Se],GS,iw(E,1))!==void 0?(E=Wf(E=xt(E,GS,iw(E,1),void 0),1,jo,If()),A.floatEmbedding=E.slice()):(M=new Uint8Array(0),A.quantizedEmbedding=((U=(G=xt(E,EA,iw(E,2),void 0))==null?void 0:G.na())==null?void 0:U.h())??M),A}),timestampMs:r8(G5(w))}}(h),ge(this,y)}),this.g.attachEmptyPacketListener("embeddings_out",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Si.cosineSimilarity=function(i,c){if(i.floatEmbedding&&c.floatEmbedding)i=h8(i.floatEmbedding,c.floatEmbedding);else{if(!i.quantizedEmbedding||!c.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");i=h8(d8(i.quantizedEmbedding),d8(c.quantizedEmbedding))}return i},Si.prototype.embedForVideo=Si.prototype.Aa,Si.prototype.embed=Si.prototype.za,Si.prototype.setOptions=Si.prototype.o,Si.createFromModelPath=function(i,c){return bt(Si,i,{baseOptions:{modelAssetPath:c}})},Si.createFromModelBuffer=function(i,c){return bt(Si,i,{baseOptions:{modelAssetBuffer:c}})},Si.createFromOptions=function(i,c){return bt(Si,i,c)};var tb=class{constructor(i,c,f){this.confidenceMasks=i,this.categoryMask=c,this.qualityScores=f}close(){var i,c;(i=this.confidenceMasks)==null||i.forEach(f=>{f.close()}),(c=this.categoryMask)==null||c.close()}};function ZA(i){var f,h;const c=function(y){return Gc(y,kl,1)}(i.ca()).filter(y=>(qa(mn(y,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(i.u=[],c.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");c.length===1&&(((h=(f=xt(c[0],pi,7))==null?void 0:f.j())==null?void 0:h.g())??new Map).forEach((y,w)=>{i.u[Number(w)]=qa(mn(y,1))??""})}function X8(i){i.categoryMask=void 0,i.confidenceMasks=void 0,i.qualityScores=void 0}function Q8(i){try{const c=new tb(i.confidenceMasks,i.categoryMask,i.qualityScores);if(!i.j)return c;i.j(c)}finally{Fy(i)}}tb.prototype.close=tb.prototype.close;var Xl=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gw,this.A=new n8,Ue(this.h,0,3,this.A),Ue(i=this.h,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return i.displayNamesLocale!==void 0?Yt(this.h,2,im(i.displayNamesLocale)):"displayNamesLocale"in i&&Yt(this.h,2),"outputCategoryMask"in i&&(this.outputCategoryMask=i.outputCategoryMask??!1),"outputConfidenceMasks"in i&&(this.outputConfidenceMasks=i.outputConfidenceMasks??!0),super.l(i)}L(){ZA(this)}segment(i,c,f){const h=typeof c!="function"?c:{};return this.j=typeof c=="function"?c:f,X8(this),lo(this,i,h),Q8(this)}La(i,c,f,h){const y=typeof f!="function"?f:{};return this.j=typeof f=="function"?f:h,X8(this),Xo(this,i,y,c),Q8(this)}Da(){return this.u}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect");const c=new pi;Vo(c,i8,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),f.o(c),lu(i,f),Ky(this,i),this.outputConfidenceMasks&&(Nt(i,"confidence_masks"),yt(f,"CONFIDENCE_MASKS:confidence_masks"),y0(this,"confidence_masks"),this.g.aa("confidence_masks",(h,y)=>{this.confidenceMasks=h.map(w=>w0(this,w,!0,!this.j)),ge(this,y)}),this.g.attachEmptyPacketListener("confidence_masks",h=>{this.confidenceMasks=[],ge(this,h)})),this.outputCategoryMask&&(Nt(i,"category_mask"),yt(f,"CATEGORY_MASK:category_mask"),y0(this,"category_mask"),this.g.Z("category_mask",(h,y)=>{this.categoryMask=w0(this,h,!1,!this.j),ge(this,y)}),this.g.attachEmptyPacketListener("category_mask",h=>{this.categoryMask=void 0,ge(this,h)})),Nt(i,"quality_scores"),yt(f,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(h,y)=>{this.qualityScores=h,ge(this,y)}),this.g.attachEmptyPacketListener("quality_scores",h=>{this.categoryMask=void 0,ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Xl.prototype.getLabels=Xl.prototype.Da,Xl.prototype.segmentForVideo=Xl.prototype.La,Xl.prototype.segment=Xl.prototype.segment,Xl.prototype.setOptions=Xl.prototype.o,Xl.createFromModelPath=function(i,c){return bt(Xl,i,{baseOptions:{modelAssetPath:c}})},Xl.createFromModelBuffer=function(i,c){return bt(Xl,i,{baseOptions:{modelAssetBuffer:c}})},Xl.createFromOptions=function(i,c){return bt(Xl,i,c)};var nb=class{constructor(i,c,f){this.confidenceMasks=i,this.categoryMask=c,this.qualityScores=f}close(){var i,c;(i=this.confidenceMasks)==null||i.forEach(f=>{f.close()}),(c=this.categoryMask)==null||c.close()}};nb.prototype.close=nb.prototype.close;var Qo=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gw,this.u=new n8,Ue(this.h,0,3,this.u),Ue(i=this.h,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"outputCategoryMask"in i&&(this.outputCategoryMask=i.outputCategoryMask??!1),"outputConfidenceMasks"in i&&(this.outputConfidenceMasks=i.outputConfidenceMasks??!0),super.l(i)}segment(i,c,f,h){const y=typeof f!="function"?f:{};if(this.j=typeof f=="function"?f:h,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,f=this.C+1,h=new o8,c.keypoint&&c.scribble)throw Error("Cannot provide both keypoint and scribble.");if(c.keypoint){var w=new Rw;tr(w,3,am(!0),!1),tr(w,1,nm(c.keypoint.x),0),tr(w,2,nm(c.keypoint.y),0),om(h,1,jw,w)}else{if(!c.scribble)throw Error("Must provide either a keypoint or a scribble.");{const A=new LA;for(w of c.scribble)tr(c=new Rw,3,am(!0),!1),tr(c,1,nm(w.x),0),tr(c,2,nm(w.y),0),sw(A,1,Rw,c);om(h,2,jw,A)}}this.g.addProtoToStream(h.g(),"mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest","roi_in",f),lo(this,i,y);e:{try{const A=new nb(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var E=A;break e}this.j(A)}finally{Fy(this)}E=void 0}return E}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"roi_in"),Tn(i,"norm_rect_in");const c=new pi;Vo(c,i8,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),gn(f,"IMAGE:image_in"),gn(f,"ROI:roi_in"),gn(f,"NORM_RECT:norm_rect_in"),f.o(c),lu(i,f),Ky(this,i),this.outputConfidenceMasks&&(Nt(i,"confidence_masks"),yt(f,"CONFIDENCE_MASKS:confidence_masks"),y0(this,"confidence_masks"),this.g.aa("confidence_masks",(h,y)=>{this.confidenceMasks=h.map(w=>w0(this,w,!0,!this.j)),ge(this,y)}),this.g.attachEmptyPacketListener("confidence_masks",h=>{this.confidenceMasks=[],ge(this,h)})),this.outputCategoryMask&&(Nt(i,"category_mask"),yt(f,"CATEGORY_MASK:category_mask"),y0(this,"category_mask"),this.g.Z("category_mask",(h,y)=>{this.categoryMask=w0(this,h,!1,!this.j),ge(this,y)}),this.g.attachEmptyPacketListener("category_mask",h=>{this.categoryMask=void 0,ge(this,h)})),Nt(i,"quality_scores"),yt(f,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(h,y)=>{this.qualityScores=h,ge(this,y)}),this.g.attachEmptyPacketListener("quality_scores",h=>{this.categoryMask=void 0,ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Qo.prototype.segment=Qo.prototype.segment,Qo.prototype.setOptions=Qo.prototype.o,Qo.createFromModelPath=function(i,c){return bt(Qo,i,{baseOptions:{modelAssetPath:c}})},Qo.createFromModelBuffer=function(i,c){return bt(Qo,i,{baseOptions:{modelAssetBuffer:c}})},Qo.createFromOptions=function(i,c){return bt(Qo,i,c)};var ou=class extends vi{constructor(i,c){super(new ao(i,c),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},Ue(i=this.h=new c8,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return i.displayNamesLocale!==void 0?Yt(this.h,2,im(i.displayNamesLocale)):"displayNamesLocale"in i&&Yt(this.h,2),i.maxResults!==void 0?Rc(this.h,3,i.maxResults):"maxResults"in i&&Yt(this.h,3),i.scoreThreshold!==void 0?Oe(this.h,4,i.scoreThreshold):"scoreThreshold"in i&&Yt(this.h,4),i.categoryAllowlist!==void 0?xy(this.h,5,i.categoryAllowlist):"categoryAllowlist"in i&&Yt(this.h,5),i.categoryDenylist!==void 0?xy(this.h,6,i.categoryDenylist):"categoryDenylist"in i&&Yt(this.h,6),this.l(i)}F(i,c){return this.j={detections:[]},lo(this,i,c),this.j}G(i,c,f){return this.j={detections:[]},Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"input_frame_gpu"),Tn(i,"norm_rect"),Nt(i,"detections");const c=new pi;Vo(c,GA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),gn(f,"IMAGE:input_frame_gpu"),gn(f,"NORM_RECT:norm_rect"),yt(f,"DETECTIONS:detections"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("detections",(h,y)=>{for(const w of h)h=US(w),this.j.detections.push(f8(h));ge(this,y)}),this.g.attachEmptyPacketListener("detections",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};ou.prototype.detectForVideo=ou.prototype.G,ou.prototype.detect=ou.prototype.F,ou.prototype.setOptions=ou.prototype.o,ou.createFromModelPath=async function(i,c){return bt(ou,i,{baseOptions:{modelAssetPath:c}})},ou.createFromModelBuffer=function(i,c){return bt(ou,i,{baseOptions:{modelAssetBuffer:c}})},ou.createFromOptions=function(i,c){return bt(ou,i,c)};var ab=class{constructor(i,c,f){this.landmarks=i,this.worldLandmarks=c,this.segmentationMasks=f}close(){var i;(i=this.segmentationMasks)==null||i.forEach(c=>{c.close()})}};function Z8(i){i.landmarks=[],i.worldLandmarks=[],i.segmentationMasks=void 0}function J8(i){try{const c=new ab(i.landmarks,i.worldLandmarks,i.segmentationMasks);if(!i.u)return c;i.u(c)}finally{Fy(i)}}ab.prototype.close=ab.prototype.close;var Ei=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,Ue(i=this.h=new s8,0,1,c=new Un),this.A=new WS,Ue(this.h,0,3,this.A),this.j=new IS,Ue(this.h,0,2,this.j),Rc(this.j,4,1),Oe(this.j,2,.5),Oe(this.A,2,.5),Oe(this.h,4,.5)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"numPoses"in i&&Rc(this.j,4,i.numPoses??1),"minPoseDetectionConfidence"in i&&Oe(this.j,2,i.minPoseDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.h,4,i.minTrackingConfidence??.5),"minPosePresenceConfidence"in i&&Oe(this.A,2,i.minPosePresenceConfidence??.5),"outputSegmentationMasks"in i&&(this.outputSegmentationMasks=i.outputSegmentationMasks??!1),this.l(i)}F(i,c,f){const h=typeof c!="function"?c:{};return this.u=typeof c=="function"?c:f,Z8(this),lo(this,i,h),J8(this)}G(i,c,f,h){const y=typeof f!="function"?f:{};return this.u=typeof f=="function"?f:h,Z8(this),Xo(this,i,y,c),J8(this)}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"normalized_landmarks"),Nt(i,"world_landmarks"),Nt(i,"segmentation_masks");const c=new pi;Vo(c,RA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"NORM_LANDMARKS:normalized_landmarks"),yt(f,"WORLD_LANDMARKS:world_landmarks"),f.o(c),lu(i,f),Ky(this,i),this.g.attachProtoVectorListener("normalized_landmarks",(h,y)=>{this.landmarks=[];for(const w of h)h=fm(w),this.landmarks.push(Zy(h));ge(this,y)}),this.g.attachEmptyPacketListener("normalized_landmarks",h=>{this.landmarks=[],ge(this,h)}),this.g.attachProtoVectorListener("world_landmarks",(h,y)=>{this.worldLandmarks=[];for(const w of h)h=g0(w),this.worldLandmarks.push(dm(h));ge(this,y)}),this.g.attachEmptyPacketListener("world_landmarks",h=>{this.worldLandmarks=[],ge(this,h)}),this.outputSegmentationMasks&&(yt(f,"SEGMENTATION_MASK:segmentation_masks"),y0(this,"segmentation_masks"),this.g.aa("segmentation_masks",(h,y)=>{this.segmentationMasks=h.map(w=>w0(this,w,!0,!this.u)),ge(this,y)}),this.g.attachEmptyPacketListener("segmentation_masks",h=>{this.segmentationMasks=[],ge(this,h)})),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Ei.prototype.detectForVideo=Ei.prototype.G,Ei.prototype.detect=Ei.prototype.F,Ei.prototype.setOptions=Ei.prototype.o,Ei.createFromModelPath=function(i,c){return bt(Ei,i,{baseOptions:{modelAssetPath:c}})},Ei.createFromModelBuffer=function(i,c){return bt(Ei,i,{baseOptions:{modelAssetBuffer:c}})},Ei.createFromOptions=function(i,c){return bt(Ei,i,c)},Ei.POSE_CONNECTIONS=V8;const Wy="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task",JA="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm",KA=()=>{const i=j.useRef(null),[c,f]=j.useState(!1),[h,y]=j.useState("Initializing..."),[w,E]=j.useState(0),[A,M]=j.useState(!1);j.useEffect(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(q=>{console.log("ServiceWorker registered:",q)}).catch(q=>{console.log("ServiceWorker registration failed:",q)})},[]);const G=async()=>"caches"in window?await(await caches.open("mediapipe-models-v1")).match(Wy)!==void 0:!1,U=async()=>{try{const q=await fetch(Wy),k=q.headers.get("content-length"),ne=k?parseInt(k,10):0;if(!q.body)throw new Error("No response body");const oe=q.body.getReader();let ue=0;const P=[];for(;;){const{done:ye,value:be}=await oe.read();if(ye)break;if(P.push(be),ue+=be.length,ne){const Te=Math.round(ue/ne*100);E(Te),y(`Downloading model... ${Te}%`)}}return"caches"in window&&await(await caches.open("mediapipe-models-v1")).put(Wy,new Response(new Blob(P),{headers:{"Content-Type":"application/octet-stream"}})),!0}catch(q){return console.error("Failed to preload model:",q),!1}};return j.useEffect(()=>{(async()=>{try{y("Checking cached models..."),await G()?y("Using cached model..."):(y("Model not cached. Downloading..."),await U()),y("Loading MediaPipe WASM...");const ne=await ld.forVisionTasks(JA);y("Creating face landmarker...");const oe=await An.createFromOptions(ne,{baseOptions:{modelAssetPath:Wy,delegate:"GPU"},runningMode:"VIDEO",outputFaceBlendshapes:!0,numFaces:2});i.current=oe,f(!0),y("Model loaded successfully ✅")}catch(k){console.error("Model init error:",k),y(`Error: ${k==null?void 0:k.message}`),(k==null?void 0:k.name)==="NotAllowedError"&&M(!0)}})()},[]),{faceLandmarkerRef:i,isModelLoaded:c,statusMessage:h,setStatusMessage:y,loadingProgress:w,permissionDenied:A,clearCache:async()=>{"caches"in window&&(await caches.delete("mediapipe-models-v1"),y("Cache cleared. Please refresh to re-download models."))}}},FA=()=>{const[i,c]=j.useState(0),f=j.useRef({lastTime:0,frames:0,fps:0}),h=j.useCallback(()=>{const y=performance.now(),w=f.current;if(w.frames++,y-w.lastTime>=1e3){const E=Math.round(w.frames*1e3/(y-w.lastTime));c(E),w.frames=0,w.lastTime=y}},[]);return{fps:i,updateFPS:h}},$A=()=>{const i=j.useRef({value:100,isLookingAway:!1}),c=j.useCallback((w,E,A,M)=>{if(!w||!A||!E)return;const G=w.getContext("2d");if(!G)return;const{width:U,height:N}=w;if(G.clearRect(0,0,U,N),G.drawImage(E,0,0,U,N),M){G.fillStyle="#00FF00";for(const q of A)G.fillRect(q.x*U-.5,q.y*N-.5,1,1)}},[]),f=j.useCallback(w=>{const E=i.current.value/100,A=100,M=20,G=20,U=40;w.fillStyle="rgba(0, 0, 0, 0.3)",w.fillRect(G,U,M,A),w.fillStyle=`rgba(${Math.floor(255*(1-E))}, ${Math.floor(255*E)}, 0, 0.8)`;const N=A*E;w.fillRect(G,U+A-N,M,N),w.fillStyle="#FFFFFF",w.fillRect(G,U+A*(1-E),M,2)},[]),h=j.useCallback((w,E,A,M,G,U,N)=>{if(c(w,E,A,M),G&&U&&N){const q=w.getContext("2d");q&&f(q)}},[c,f]),y=j.useCallback((w,E)=>{const A=w.getContext("2d");A&&(A.clearRect(0,0,w.width,w.height),A.drawImage(E,0,0,w.width,w.height))},[]);return{drawLandmarks:c,drawEngagementBar:f,drawWithEngagementBar:h,clearCanvas:y,engagementRef:i}},IA=50,WA=()=>{const[i,c]=j.useState(100),[f,h]=j.useState(!1),y=j.useRef(0),w=j.useCallback((E,A,M)=>{if(!M||E.length<468)return;const G=E[33],U=E[263],N=E[1];if(!G||!U||!N)return;const q=(G.x+U.x)*.5,k=(G.y+U.y)*.5,ne=q-A.x,oe=k-A.y,ue=Math.sqrt(ne*ne+oe*oe),P=Math.abs(N.y-A.noseY)*100,ye=Math.abs(N.x-A.noseX)*100,be=Math.max(0,100-(ue*200+P+ye)),Te=be<IA,nt=performance.now();return nt-y.current>100&&(c(be),h(Te),y.current=nt),{engagement:be,isLookingAway:Te}},[]);return{engagement:i,isLookingAway:f,analyzeGaze:w,setEngagement:c,setIsLookingAway:h}},PA=.05,e_=()=>{const[i,c]=j.useState(!1),[f,h]=j.useState(!1),y=j.useCallback((A,M)=>Math.sqrt(Math.pow(A.x-M.x,2)+Math.pow(A.y-M.y,2)),[]),w=j.useCallback((A,M)=>{if(!A||!M)return 0;const G=[1,33,263,61,291,10,152];let U=0,N=0;const q=M[33],k=M[263],ne=A[33],oe=A[263];if(!q||!k||!ne||!oe)return 0;const ue=y(q,k),P=y(ne,oe);if(ue===0||P===0)return 0;for(const be of G){const Te=M[be],nt=A[be];if(Te&&nt){const Be=q.x+(nt.x-ne.x)*ue/P,Qe=q.y+(nt.y-ne.y)*ue/P;U+=y(Te,{x:Be,y:Qe}),N++}}return N===0?0:U/N},[y]),E=j.useCallback((A,M,G,U)=>{if(!A.faceLandmarks||A.faceLandmarks.length===0)return M?(U("Reference face not detected."),h(!0),c(!1)):h(!1),null;if(M&&G){let N=null,q=0;for(const k of A.faceLandmarks)w(k,G)<PA&&(N=k,q++);return q===1?(c(!1),h(!1),U("Reference face tracked."),N):q>1?(c(!0),h(!1),U("Multiple matching faces detected. Tracking suspended."),null):(c(!1),h(!0),U("Reference face not detected."),null)}else{A.faceLandmarks.length>1?(c(!0),U("Multiple faces detected. Set reference for single face tracking.")):(c(!1),U("No reference set. Detecting first face."));const N=A.faceLandmarks[0];return!N||N.length<468?null:N}},[w]);return{multipleFacesDetected:i,referenceFaceNotDetected:f,analyzeFace:E,setMultipleFacesDetected:c,setReferenceFaceNotDetected:h}},t_=1e3,n_=(i,c)=>{const[f,h]=j.useState(!1),[y,w]=j.useState("face_detected"),{incrementGazeViolation:E}=H6(),{multipleFacesDetected:A,referenceFaceNotDetected:M,isLookingAway:G}=i;j.useEffect(()=>{let q;return(G||A||M)&&c?q=setTimeout(()=>{h(!0),G?(w("looking_away"),E("looking_away")):A?(w("multiple_faces"),E("multiple_faces")):M&&(w("no_face_detected"),E("no_face_detected"))},t_):(h(!1),w("face_detected")),()=>{clearTimeout(q)}},[G,A,M,c,E]);const U=j.useCallback(()=>A?"multiple_faces":M?"no_face_detected":G?"looking_away":"face_detected",[A,M,G]),N=j.useCallback(()=>{h(!1),w("face_detected")},[]);return{showGazeWarningModal:f,faceDetectionState:y,getWarningType:U,closeWarningModal:N,setShowGazeWarningModal:h,setFaceDetectionState:w}};class Bn extends Error{constructor(c,f,h=!1){super(c),this.code=f,this.recoverable=h,this.name="STTError"}}class a_{constructor(c={}){tu(this,"config");tu(this,"mediaRecorder",null);tu(this,"audioChunks",[]);tu(this,"recordingStream",null);tu(this,"autoStopTimeoutId",null);this.config={baseUrl:"http://localhost:8000",provider:"groq",model:"whisper-large-v3-turbo",language:"en",includeTimestamps:!1,temperature:0,...c}}updateConfig(c){this.config={...this.config,...c}}isRecordingSupported(){return!!(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function"&&window.MediaRecorder)}async startRecording(c,f){var h;if(!this.isRecordingSupported())throw new Bn("Audio recording is not supported in this browser","RECORDING_NOT_SUPPORTED",!1);if(this.isRecording())throw new Bn("Recording is already in progress","ALREADY_RECORDING",!0);try{this.recordingStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}}),this.audioChunks=[];const y=this.getSupportedMimeType();this.mediaRecorder=new MediaRecorder(this.recordingStream,{mimeType:y}),this.mediaRecorder.ondataavailable=w=>{var E;w.data.size>0&&(this.audioChunks.push(w.data),(E=f==null?void 0:f.onDataAvailable)==null||E.call(f,w.data))},this.mediaRecorder.onstop=()=>{var w;(w=f==null?void 0:f.onStop)==null||w.call(f)},this.mediaRecorder.onerror=w=>{var A;const E=new Bn(`Recording failed: ${w.error}`,"RECORDING_ERROR",!0);(A=f==null?void 0:f.onError)==null||A.call(f,E),this.cleanup()},this.mediaRecorder.start(100),(h=f==null?void 0:f.onStart)==null||h.call(f),c&&c>0&&(this.autoStopTimeoutId=setTimeout(()=>{this.isRecording()&&this.stopRecording()},c*1e3))}catch(y){if(this.cleanup(),y instanceof Error){if(y.name==="NotAllowedError"||y.name==="PermissionDeniedError")throw new Bn("Microphone permission was denied","PERMISSION_DENIED",!1);if(y.name==="NotFoundError")throw new Bn("No microphone found","NO_MICROPHONE",!1)}throw new Bn(`Failed to start recording: ${y instanceof Error?y.message:String(y)}`,"START_RECORDING_FAILED",!0)}}async stopRecording(){if(this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),!this.mediaRecorder||!this.isRecording())throw new Bn("No active recording to stop","NO_ACTIVE_RECORDING",!1);return new Promise((c,f)=>{if(!this.mediaRecorder){f(new Bn("MediaRecorder is null","MEDIARECORDER_NULL",!1));return}const h=this.mediaRecorder,y=()=>{try{const w=h.mimeType||"audio/webm",E=new Blob(this.audioChunks,{type:w});this.cleanup(),c(E)}catch(w){f(new Bn(`Failed to create audio blob: ${w instanceof Error?w.message:String(w)}`,"BLOB_CREATION_FAILED",!1))}};h.addEventListener("stop",y,{once:!0}),h.stop()})}async transcribe(c){const{audioBlob:f}=c;if(!f||f.size===0)throw new Bn("Audio blob is empty or invalid","INVALID_AUDIO",!1);try{const h=new FormData,y=new File([f],"recording.wav",{type:f.type||"audio/wav"});if(h.append("file",y),h.append("qna_id",this.config.qnaId||""),!this.config.interviewId)throw new Bn("Interview ID is missing from configuration","MISSING_INTERVIEW_ID",!1);const w=await Is(`${this.config.baseUrl}${Ps.TRANSCRIBE_ANSWER(this.config.interviewId)}`,{method:"POST",headers:{accept:"application/json","X-STT-Provider":this.config.provider||"groq",...this.config.authToken&&{Authorization:`Bearer ${this.config.authToken}`}},body:h},{attempts:1,backoff:"exponential",baseDelay:1e3,maxDelay:3e3,jitter:!0});if(!w.ok){const A=await w.text();let M=`STT request failed: ${w.status} ${w.statusText}`;try{const G=JSON.parse(A);M=G.message||G.error||M}catch{M=A||M}throw new Bn(M,`HTTP_${w.status}`,w.status>=500)}return{transcript:(await w.json()).data.transcribed_text??""}}catch(h){throw h instanceof Bn?h:new Bn(`Transcription failed: ${h instanceof Error?h.message:String(h)}`,"TRANSCRIPTION_FAILED",!0)}}cancelRecording(){this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),this.mediaRecorder&&this.isRecording()&&this.mediaRecorder.stop(),this.cleanup()}isRecording(){return this.mediaRecorder!==null&&this.mediaRecorder.state==="recording"}getSupportedMimeType(){const c=["audio/webm","audio/webm;codecs=opus","audio/ogg;codecs=opus","audio/mp4","audio/wav"];for(const f of c)if(MediaRecorder.isTypeSupported(f))return f;return"audio/webm"}getRecordingStream(){return this.recordingStream}cleanup(){this.recordingStream&&(this.recordingStream.getTracks().forEach(c=>c.stop()),this.recordingStream=null),this.mediaRecorder=null,this.audioChunks=[],this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null)}}const b0=new a_,l_=(i,c,f,h)=>{const y=j.useRef(null);return j.useEffect(()=>{if(!c)return;const w=async()=>{try{const M=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480},facingMode:"user"}});i.current&&(i.current.srcObject=M,i.current.onloadeddata=()=>{f()})}catch(M){console.error("Camera access error:",M),h("Camera access failed")}},E=y.current,A=i.current;return w(),()=>{E&&cancelAnimationFrame(E),A!=null&&A.srcObject&&A.srcObject.getTracks().forEach(G=>G.stop())}},[c,f]),j.useEffect(()=>{const w=b0.getRecordingStream();if(w&&i.current){i.current.srcObject=w;const E=w.getVideoTracks(),A=w.getAudioTracks(),M=()=>{console.log("Media track ended - permission may have been revoked")};[...E,...A].forEach(G=>{G.addEventListener("ended",M)})}},[]),{animationFrameRef:y}},i_=(i,c,f,h,y,w,E,A,M,G,U,N,q,k,ne)=>{const oe=j.useRef(null),ue=j.useCallback(()=>{var Te;const P=i.current,ye=c.current,be=f.current;if(!P||P.readyState<2||!be||!ye){oe.current=requestAnimationFrame(ue);return}h();try{const nt=performance.now(),Be=be.detectForVideo(P,nt);if(((Te=Be.faceLandmarks)==null?void 0:Te.length)>0){ne(!1);const Qe=y(Be,M,G.current,k);Qe?(w(ye,P,Qe,U,N,q,M),M&&q&&A(Qe,G.current,q)):E(ye,P)}else E(ye,P),M?(ne(!0),k("Reference face not detected.")):ne(!1)}catch(nt){console.error("Face detection error:",nt)}oe.current=requestAnimationFrame(ue)},[i,c,f,h,y,w,E,A,M,G,U,N,q,k,ne]);return{renderLoop:ue,animationFrameRef:oe}},u_=(i,c,f,h)=>{const{referenceSet:y,referenceRef:w,setReferenceData:E}=H6(),A=j.useRef(w),M=j.useCallback(()=>{A.current=w},[w]),G=j.useCallback(()=>{var q;const U=i.current,N=c.current;if(console.log({faceLandmarker:U,video:N}),!(!U||!N))try{const k=performance.now(),ne=U.detectForVideo(N,k);if((q=ne.faceLandmarks)!=null&&q[0]){const oe=ne.faceLandmarks[0],ue=oe[33],P=oe[263],ye=oe[1];ue&&P&&ye&&(A.current={x:(ue.x+P.x)*.5,y:(ue.y+P.y)*.5,noseX:ye.x,noseY:ye.y},E(!0,A.current),f("Reference set. Gaze tracking active."),console.log("Reference set. Gaze tracking active.",A.current),h&&h())}}catch(k){console.error("Set reference error:",k),f("Failed to set reference")}},[i,c,f,E,h]);return{referenceSet:y,referenceRef:A,setReference:G,syncReference:M}},lb=({isOpen:i,onClose:c,children:f,title:h,showCloseButton:y=!0,closeOnOverlayClick:w=!0,closeOnEscape:E=!0,className:A=""})=>{if(j.useEffect(()=>{if(!i||!E)return;const U=N=>{N.key==="Escape"&&c()};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[i,E,c]),j.useEffect(()=>(i?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[i]),!i)return null;const M=U=>{w&&U.target===U.currentTarget&&c()},G=b.jsxs("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center",children:[b.jsx("div",{className:"iw-fixed iw-inset-0 iw-bg-black iw-bg-opacity-50 iw-transition-opacity",onClick:M}),b.jsxs("div",{className:`iw-relative iw-bg-white iw-rounded-lg iw-shadow-xl iw-max-w-md iw-w-full iw-mx-4 iw-max-h-[90vh] iw-overflow-hidden ${A}`,role:"dialog","aria-modal":"true","aria-labelledby":h?"dialog-title":void 0,children:[(h||y)&&b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-p-4 iw-border-b iw-border-gray-200",children:[h&&b.jsx("h2",{id:"dialog-title",className:"iw-text-lg iw-font-semibold iw-text-gray-900",children:h}),y&&b.jsx("button",{onClick:c,className:"iw-p-1 iw-text-gray-400 iw-hover:text-gray-600 iw-transition-colors iw-rounded iw-hover:bg-gray-100","aria-label":"Close dialog",children:b.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),b.jsx("div",{className:"iw-p-4 iw-overflow-y-auto",children:f})]})]});return Av.createPortal(G,document.body)},K8=({children:i,variant:c="primary",size:f="md",fullWidth:h=!1,isLoading:y=!1,disabled:w,className:E="",...A})=>{const M="iw-inline-flex iw-items-center iw-justify-center iw-rounded-md iw-font-medium iw-transition-colors iw-focus:outline-none iw-focus:ring-2 iw-focus:ring-primary-500 iw-focus:ring-offset-2",G={primary:"iw-bg-primary-600 iw-text-white iw-hover:bg-primary-700 iw-border iw-border-transparent",secondary:"iw-bg-primary-100 iw-text-primary-700 iw-hover:bg-primary-200 iw-border iw-border-transparent",outline:"iw-bg-transparent iw-text-primary-700 iw-border iw-border-primary-500 iw-hover:bg-primary-50",text:"iw-bg-transparent iw-text-primary-600 iw-hover:bg-primary-50 iw-border iw-border-transparent",gradient:"iw-text-white iw-border iw-border-transparent iw-bg-gradient-to-r iw-from-purple-500 iw-to-indigo-500 hover:iw-from-purple-600 hover:iw-to-indigo-600"},U={sm:"iw-px-3 iw-py-1.5 iw-text-sm",md:"iw-px-4 iw-py-2.5 iw-text-sm",lg:"iw-px-5 iw-py-3 iw-text-base"},N="iw-disabled:opacity-50 iw-disabled:cursor-not-allowed iw-disabled:pointer-events-none",q=h?"iw-w-full":"";return b.jsxs("button",{className:`${M} ${G[c]} ${U[f]} ${q} ${N} ${E}`,disabled:w||y,...A,children:[y&&b.jsx(Y6,{height:16,width:16,style:{marginRight:"3px"}}),i]})},mm=i=>{const{baseColor:c,borderRadius:f}=Q2(),{loading:h,children:y,...w}=i;return b.jsx(K8,{style:{background:jE(c),borderRadius:f},...w,children:h?b.jsx(Y6,{}):y})};function o_({isOpen:i,onClose:c,warningType:f}){const h=k6[f],y=h.icon,w=()=>{c()};return f==="face_detected"?null:b.jsx(lb,{isOpen:i,onClose:c,children:i&&b.jsx("div",{className:"iw-bg-white iw-border-white iw-border iw-p-0 iw-shadow-lg sm:iw-max-w-md",children:b.jsxs("div",{children:[b.jsx("div",{className:"iw-sr-only",children:h.description}),b.jsxs("div",{className:"iw-px-8 iw-py-8 iw-text-center",children:[b.jsx("div",{className:`iw-mx-auto iw-mb-6 iw-flex iw-h-16 iw-w-16 iw-items-center iw-justify-center iw-rounded-full ${h.iconBg} border ${h.iconBorder}`,children:b.jsx(y,{className:`iw-h-7 iw-w-7 ${h.iconColor}`})}),b.jsx("h1",{className:"iw-text-foreground iw-mb-3 iw-text-2xl iw-font-bold iw-tracking-tight",children:h.title}),b.jsx("h2",{className:"iw-text-gray-500 iw-mb-6 iw-text-base iw-font-medium",children:h.subtitle}),b.jsx("p",{className:"iw-text-neutral-400 iw-mx-auto iw-mb-8 iw-max-w-sm iw-text-sm iw-leading-relaxed",children:h.description}),b.jsx(mm,{onClick:w,className:"iw-w-full iw-bg-gray-800 iw-text-white hover:iw-bg-gray-800",children:h.buttonText})]})]})})})}const F8=j.forwardRef(({className:i="",interviewId:c="",interview_duration:f,showProctoringUI:h=!0,onSetReference:y,isAnswering:w,onProctoringStatusChange:E,showStatusOverlay:A=!1},M)=>{var rr;const{authToken:G}=G6(),U=G?VE(G):null,{borderRadius:N}=Q2(),q=N??18,{proctoring:k}=zv(),ne=!!(k!=null&&k.gazeAnalysisEnabled),[oe,ue]=j.useState(!1),[P,ye]=j.useState((k==null?void 0:k.showLandmarks)??!1),[be,Te]=j.useState(h&&((k==null?void 0:k.showEngagementBar)??!0)),[nt,Be]=j.useState(ne),[Qe,xe]=j.useState(!1),me=j.useRef(null),ce=j.useRef(null),Ut=j.useRef(null),ke=j.useRef(null),He=j.useCallback(async wa=>{const Ko=me.current,sn=Ut.current;if(!Ko||!sn)return;const _n=sn.getContext("2d");_n&&(sn.width=Ko.videoWidth,sn.height=Ko.videoHeight,_n.save(),_n.scale(-1,1),_n.drawImage(Ko,-sn.width,0,sn.width,sn.height),_n.restore(),await new Promise(ol=>sn.toBlob(ol,"image/jpeg")))},[lT,c]);j.useEffect(()=>{let wa;return w&&(xe(!0),wa=setTimeout(()=>xe(!1),1e3)),()=>{wa&&clearTimeout(wa)}},[w]);const{faceLandmarkerRef:Ft,isModelLoaded:$t,statusMessage:V,setStatusMessage:ee,loadingProgress:ie,permissionDenied:ve,clearCache:Ce}=KA(),{fps:Et,updateFPS:st}=FA(),{drawWithEngagementBar:Xe,clearCanvas:Ze,engagementRef:Bt}=$A(),{engagement:en,isLookingAway:Pn,analyzeGaze:Vt,setEngagement:ea,setIsLookingAway:cu}=WA(),{multipleFacesDetected:fe,referenceFaceNotDetected:Ti,analyzeFace:io,setMultipleFacesDetected:Va,setReferenceFaceNotDetected:Ya}=e_(),{referenceSet:dt,referenceRef:Zo,setReference:Re,syncReference:kt}=u_(Ft,me,ee,y),ht={multipleFacesDetected:fe,referenceFaceNotDetected:Ti,isLookingAway:Pn},{showGazeWarningModal:Jo,getWarningType:Ql,closeWarningModal:Vc,setShowGazeWarningModal:Hn,setFaceDetectionState:S0}=n_(ht,ne&&!A);j.useEffect(()=>{if(E){const wa=Ql()||"face_detected";E(wa)}},[fe,Ti,Pn,Ql,E]);const{renderLoop:cr}=i_(me,ce,Ft,st,io,Xe,Ze,Vt,dt,Zo,P,be,ne,ee,Ya);l_(me,$t,cr,ee),j.useEffect(()=>{kt()},[kt]),j.useEffect(()=>{Bt&&Bt.current&&(Bt.current.value=en,Bt.current.isLookingAway=Pn)},[en,Pn,Bt]);const sr=j.useCallback(wa=>{Be(wa),wa||(ea(100),cu(!1))},[ea,cu]),su=j.useCallback(()=>{cu(!1),Va(!1),Ya(!1),S0("face_detected"),Hn(!1),Vc()},[cu,Va,Ya,S0,Hn,Vc]),ym={engagement:en,fps:Et,isLookingAway:Pn,multipleFacesDetected:fe,referenceFaceNotDetected:Ti};return j.useEffect(()=>{const wa=[];return(async()=>{try{const sn=await navigator.mediaDevices.getUserMedia({video:!0,audio:!1});ke.current=sn,me.current&&(me.current.srcObject=sn);const ol=(f??hy)*60*1e3/3,ba=[0,1,2].map((ru,Zl)=>({label:`capture-${Zl+1}`,start:Zl*ol,end:(Zl+1)*ol})),E0=(ru,Zl)=>ru===Zl?ru:Math.random()*(Zl-ru)+ru;ba.forEach(({label:ru,start:Zl,end:Ai},vl)=>{let Jl;vl===0?Jl=3e3:Jl=E0(Zl,Ai),wa.push(setTimeout(()=>{He(ru)},Jl))})}catch(sn){console.error("Error accessing camera:",sn)}})(),()=>{ke.current&&ke.current.getTracks().forEach(sn=>sn.stop()),wa.forEach(clearTimeout)}},[He]),j.useImperativeHandle(M,()=>({setReference:()=>{Re()},stopCamera:()=>{ke.current&&(ke.current.getTracks().forEach(wa=>wa.stop()),ke.current=null)}}),[Re]),b.jsxs("div",{className:`iw-relative iw-h-full iw-w-full ${i}`,children:[ve?b.jsxs("div",{className:"iw-rounded-md iw-border iw-border-red-600 iw-p-5 iw-text-red-600",children:[b.jsx("h2",{children:"Camera Permission Denied"}),b.jsx("p",{children:"Please allow camera access to use this application."})]}):b.jsx("div",{className:"iw-flex iw-w-full iw-h-full iw-justify-start iw-items-start",children:b.jsxs("div",{className:`iw-relative iw-max-w-full iw-max-h-full iw-aspect-video iw-rounded-2xl iw-overflow-hidden iw-bg-black ${Qe?"iw-animate-answer-start":""} ${w?"iw-border-4 iw-border-[#6296FB]":""}`,style:{width:"100%",height:"auto",minHeight:"0"},children:[b.jsx("video",{ref:me,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}}),ne&&b.jsx("canvas",{ref:ce,width:320,height:240,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)",borderRadius:q}}),b.jsx("canvas",{ref:Ut,style:{display:"none"}}),h&&b.jsxs("div",{className:"iw-absolute iw-top-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#FFEBE6] iw-px-2 iw-py-1 iw-backdrop-blur-md",children:[b.jsx("div",{className:"iw-size-2 iw-animate-pulse iw-rounded-full iw-bg-red-500"}),b.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#E94315]",children:"RECORDING"})]}),h&&((rr=U==null?void 0:U.data)==null?void 0:rr.user_name)&&b.jsx("div",{className:"iw-absolute iw-z-50 iw-bottom-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#F1F5FE] iw-px-3 iw-py-1 iw-backdrop-blur-md",children:b.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#062260]",children:U.data.user_name})}),h&&b.jsx("div",{className:"iw-absolute iw-bottom-4 iw-right-4",children:b.jsx(uT,{showControls:(k==null?void 0:k.showControls)??!1,isBubbleOpen:oe,setIsBubbleOpen:ue,setReference:Re,clearCache:Ce,isModelLoaded:$t,gazeAnalysisEnabled:nt&&ne,referenceSet:dt,showLandmarks:P,setShowLandmarks:ye,showEngagementBar:be,setShowEngagementBar:Te,handleToggleGazeAnalysis:sr,stats:ym,statusMessage:V,loadingProgress:ie})}),A&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"iw-absolute iw-inset-0 iw-pointer-events-none iw-z-10 ",style:{background:"radial-gradient(ellipse 20% 40% at 50% 45%, transparent 99.5%, rgba(0,0,0,0.35) 100%)"}}),b.jsx("div",{className:"iw-absolute iw-bottom-2 iw-inset-x-0 iw-flex iw-justify-center iw-pointer-events-none iw-z-20",children:b.jsx(c_,{status:Ql()??"face_detected"})})]})]})}),ne&&Jo&&!A&&b.jsx(o_,{isOpen:Jo,onClose:su,warningType:Ql()})]})}),c_=({status:i})=>{const c=k6[i];if(!c)return null;const f=i!=="face_detected";return b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-gap-2",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-px-3 iw-py-1 iw-rounded-full iw-backdrop-blur-md iw-shadow-sm transition-colors duration-300 iw-text-white",children:[b.jsx("div",{className:`iw-flex iw-h-4 iw-w-4 iw-items-center iw-size-2.5 iw-justify-center iw-rounded-full iw-text-white ${f?"iw-bg-[#E94315]":"iw-bg-[#22C55E]"}`,children:f?b.jsx(q6,{}):b.jsx(gy,{})}),b.jsx("span",{className:"iw-text-sm iw-font-medium",children:i==="face_detected"?"Face detected clearly":c.title})]}),f&&b.jsx("span",{className:"iw-text-white iw-text-center iw-text-sm iw-drop-shadow-sm iw-max-w-[400px] iw-px-3 ",children:"Sit upright & look directly into the camera"})]})},$8=({micEnabled:i=!1,videoEnabled:c=!1,buttonText:f,onButtonClick:h,isAgreed:y,onAgreedToggle:w,showCheckbox:E=!0,showMediaIcons:A=!0,disabled:M=!1})=>{const G=M||!y||A&&(!i||!c);return b.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-w-full",children:[E&&b.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-4 iw-border iw-border-[#E7EAF1]",children:[b.jsx("div",{className:`iw-mt-0.5 iw-h-5 iw-w-5 iw-min-w-[20px] iw-rounded iw-border iw-flex iw-items-center iw-justify-center iw-cursor-pointer iw-transition-colors ${y?"iw-bg-[#062260] iw-border-[#062260]":"iw-bg-white iw-border-[#B3B9CB]"}`,onClick:U=>{U.stopPropagation(),w(!y)},children:y&&b.jsx(gy,{className:"iw-size-3 iw-text-white"})}),b.jsx("label",{onClick:()=>w(!y),className:"iw-text-sm iw-text-[#062260] iw-font-medium iw-cursor-pointer iw-select-none",children:"By continuing, you acknowledge and consent to the use of your face data exclusively for interview monitoring"})]}),b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4",children:[A&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"iw-relative",children:[b.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${i?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:i?b.jsx(JE,{className:"iw-h-6 iw-w-6"}):b.jsx(KE,{className:"iw-h-6 iw-w-6"})}),i&&b.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:b.jsx(gy,{className:"iw-h-2.5 iw-w-2.5"})})]}),b.jsxs("div",{className:"iw-relative",children:[b.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${c?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:c?b.jsx(eT,{className:"iw-h-6 iw-w-6"}):b.jsx(tT,{className:"iw-h-6 iw-w-6"})}),c&&b.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:b.jsx(gy,{className:"iw-h-2.5 iw-w-2.5"})})]})]}),b.jsx(K8,{onClick:h,disabled:G,className:`iw-h-12 iw-flex-1 iw-max-w-[220px] !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold iw-border-none iw-rounded-lg ${G?"iw-opacity-50":"hover:iw-opacity-75"}`,children:f})]})]})},s_=({steps:i,currentStepIndex:c})=>b.jsx("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4 iw-w-full iw-py-6",children:i.map((f,h)=>{const y=h<c,w=h===c;return b.jsxs(j.Fragment,{children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[b.jsx("div",{className:`iw-flex iw-size-9 iw-text-[#062260] iw-items-center iw-justify-center iw-rounded-full iw-font-semibold iw-border ${w||y?"iw-border-[#0EB00E] iw-bg-[#E9FFE6]":"iw-border-[#BDE0FD] iw-bg-[#E6F3FF]"}`,children:y?b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("polyline",{points:"20 6 9 17 4 12"})}):h+1}),b.jsx("span",{className:`iw-text-sm iw-font-medium ${w||y?"iw-text-[#062260]":"iw-text-[#5C6686]"}`,children:f.label})]}),h<i.length-1&&b.jsx("div",{className:"iw-flex-1 iw-max-w-[120px] iw-border-t iw-border-dotted iw-border-[#B3B9CB]"})]},h)})}),r_=["Don't refresh or reload the page during your assessment","Don't switch tabs or open other applications while session is ongoing","Don't leave your position during the session","Don't disable or interfere with video/audio monitoring"],f_=({isOpen:i,onStart:c,gazeEnabled:f=!1,videoFeedRef:h,interviewId:y="",interview_duration:w=hy})=>{const E=j.useRef(null),A=j.useRef(null),[M,G]=j.useState(!1),[U,N]=j.useState(!1),[q,k]=j.useState(0),[ne,oe]=j.useState(!1),ue=j.useRef(null),P=j.useRef(null),ye=me=>{ue.current=me,h&&(typeof h=="function"?h(me):h.current=me)},be=()=>{A.current&&(A.current.getTracks().forEach(me=>me.stop()),A.current=null)},Te=async()=>{try{const me=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:1280},height:{ideal:720}},audio:!0});A.current=me,E.current&&(E.current.srcObject=me),G(!0)}catch(me){console.error("Media permission error:",me);let ce="Unable to access camera or microphone.";(me==null?void 0:me.name)==="NotAllowedError"?ce="Permissions denied. Please allow access to camera and microphone.":(me==null?void 0:me.name)==="NotFoundError"?ce="No camera/microphone found. Please connect a device and retry.":me!=null&&me.message&&(ce=me.message),G(!1),console.log(ce)}finally{}};if(j.useEffect(()=>{if(!i){be();return}return Te(),()=>be()},[i]),j.useEffect(()=>()=>{P.current&&(clearInterval(P.current),P.current=null)},[]),!i)return null;const[nt,Be]=j.useState("face_detected"),Qe=async()=>{N(!0);const me=()=>{var ce;return(ce=ue.current)==null?void 0:ce.setReference()};me(),P.current&&clearInterval(P.current),P.current=setInterval(me,500)},xe=[{label:f?"Calibrate your camera":"Camera & Mic permission"},{label:"Basic guidelines"}];return b.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-gray-900/40 iw-backdrop-blur-sm iw-p-4 iw-overflow-auto",children:b.jsxs("div",{className:"iw-w-full iw-max-w-[700px] iw-bg-white iw-rounded-xl iw-shadow-2xl iw-overflow-auto",children:[b.jsxs("div",{className:"iw-px-5 iw-pt-5",children:[b.jsx("h2",{className:"iw-text-[#062260] iw-text-2xl iw-font-medium iw-tracking-tight",children:"Final checks before you go live"}),b.jsx("div",{className:"iw-mt-4 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-3 iw-border iw-border-[#E7EAF1]",children:b.jsx("p",{className:"iw-text-[#5C6686] iw-text-sm iw-leading-relaxed",children:"To ensure the integrity of the interview process, this platform uses your device’s camera to monitor your face and gaze direction. We do not store any outside this session"})}),b.jsx("div",{className:"iw-mt-6 iw-border-b iw-border-dashed iw-border-[#B3B9CB] iw-w-full"}),b.jsx(s_,{steps:xe,currentStepIndex:q})]}),b.jsx("div",{className:"iw-px-5 iw-pb-5 iw-flex iw-flex-col iw-items-center",children:q===0?b.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-items-center iw-gap-6",children:[b.jsx("div",{className:"iw-w-full iw-max-w-[600px] iw-aspect-video iw-bg-slate-100 iw-rounded-2xl iw-overflow-hidden iw-relative iw-border iw-border-slate-200",children:f?b.jsx(F8,{ref:ye,interviewId:y,interview_duration:w,showProctoringUI:!1,showStatusOverlay:!0,onProctoringStatusChange:Be,onSetReference:()=>{P.current&&(clearInterval(P.current),P.current=null),N(!1),k(1)}}):b.jsx("video",{ref:E,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}})}),b.jsx($8,{micEnabled:M,videoEnabled:M,buttonText:f?U?"Calibrating...":"Start calibrate":"Next",onButtonClick:()=>{f?Qe():k(1)},disabled:!ne||f&&nt!=="face_detected"||!f&&!M,isAgreed:ne,onAgreedToggle:oe})]}):b.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-gap-6",children:[b.jsx("div",{className:"iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5",children:r_.map((me,ce)=>b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[b.jsx("div",{className:"iw-flex iw-h-7 iw-w-7 iw-min-w-[28px] iw-items-center iw-justify-center iw-rounded-full iw-bg-[#DBEAFE] iw-text-[#062260] iw-text-xs iw-font-bold",children:ce+1}),b.jsx("span",{className:"iw-text-[#5C6686] iw-font-medium",children:me})]},ce))}),b.jsx($8,{buttonText:"Start interview",onButtonClick:()=>{c(),be()},isAgreed:ne,onAgreedToggle:oe,showMediaIcons:!1})]})})]})})};var St=(i=>(i.IDLE="idle",i.FETCHING_QUESTION="fetching_question",i.READING_QUESTION="reading_question",i.THINKING="thinking",i.ANSWERING="answering",i.TRANSCRIBING="transcribing",i.EDITING="editing",i.SUBMITTING="submitting",i.COMPLETED="completed",i))(St||{});const I8={thinkingDuration:0,answeringDuration:120,editingDuration:30},W8={idle:{next:"fetching_question"},fetching_question:{next:"reading_question"},reading_question:{next:"answering"},thinking:{next:"answering",duration:0},answering:{next:"transcribing",duration:120},transcribing:{next:"editing"},editing:{next:"submitting",duration:30},submitting:{next:"completed"},completed:{next:"completed"}};class d_{constructor(c={},f={}){tu(this,"config");tu(this,"state");tu(this,"phaseIntervalId",null);tu(this,"globalIntervalId",null);tu(this,"callbacks");this.config={...I8,...c},this.callbacks=f,this.state={phase:"idle",currentPhaseTimeRemaining:0,totalTimeElapsed:0,currentQuestionNumber:0}}updateConfig(c){this.config={...this.config,...c}}getState(){return{...this.state}}startQuestion(){this.state.currentQuestionNumber===0&&this.startGlobalTimer(),this.state.currentQuestionNumber=this.state.currentQuestionNumber+1,this.state.phase="fetching_question",this.notifyChange()}nextPhase(){const c=this.state.phase;let f=W8[c];if(!f)return;if(f.next==="editing"&&this.config.editingDuration===0){const y=W8.editing;y&&(f=y)}this.stopPhaseTimer(),this.state.phase=f.next;const h=this.getDurationForPhase(f.next);h>0?(this.state.currentPhaseTimeRemaining=h,this.startPhaseTimer()):this.state.currentPhaseTimeRemaining=0,this.notifyChange()}completeInterview(){var c,f;this.stopGlobalTimer(),this.stopPhaseTimer(),this.state.phase="completed",(f=(c=this.callbacks).onInterviewEnd)==null||f.call(c),this.notifyChange()}destroy(){this.stopPhaseTimer(),this.stopGlobalTimer()}getDurationForPhase(c){switch(c){case"thinking":return this.config.thinkingDuration;case"answering":return this.config.answeringDuration;case"editing":return this.config.editingDuration;default:return 0}}startGlobalTimer(){this.globalIntervalId=setInterval(()=>{var c,f;this.state.totalTimeElapsed++,(f=(c=this.callbacks).onTick)==null||f.call(c,this.getState())},1e3)}stopGlobalTimer(){this.globalIntervalId&&(clearInterval(this.globalIntervalId),this.globalIntervalId=null)}startPhaseTimer(){this.phaseIntervalId=setInterval(()=>{this.state.currentPhaseTimeRemaining--,this.state.currentPhaseTimeRemaining<=0&&this.nextPhase()},1e3)}stopPhaseTimer(){this.phaseIntervalId&&(clearInterval(this.phaseIntervalId),this.phaseIntervalId=null)}notifyChange(){var c,f;(f=(c=this.callbacks).onPhaseChange)==null||f.call(c,this.state.phase,this.getState())}}function h_(i={}){const{config:c={},callbacks:f={}}=i,h=j.useRef(null);h.current||(h.current=new d_(c,{}));const y=h.current,[w,E]=j.useState(y.getState()),A=j.useCallback(()=>{E(y.getState())},[y]);j.useEffect(()=>{const N={onPhaseChange:(q,k)=>{var ne;A(),(ne=f.onPhaseChange)==null||ne.call(f,q,k)},onTick:q=>{var k;A(),(k=f.onTick)==null||k.call(f,q)},onInterviewEnd:()=>{var q;A(),(q=f.onInterviewEnd)==null||q.call(f)}};y.callbacks=N},[y,f,A]),j.useEffect(()=>{y.updateConfig(c)},[y,c]),j.useEffect(()=>()=>{y.destroy()},[y]);const M=j.useCallback(()=>{y.startQuestion(),A()},[y,A]),G=j.useCallback(()=>{y.nextPhase(),A()},[y,A]),U=j.useCallback(()=>{y.completeInterview(),A()},[y,A]);return{state:w,startQuestion:M,nextPhase:G,completeInterview:U,timerService:y}}function m_(i,c={}){const[f,h]=j.useState({data:null,loading:!1,error:null}),y=j.useCallback(async(...w)=>{var E,A,M,G;h(U=>({...U,loading:!0,error:null}));try{const U=await i(...w);h(N=>({...N,data:U,loading:!1,error:null})),(E=c.onSuccess)==null||E.call(c,U),(A=c.onSettled)==null||A.call(c,U,null)}catch(U){const N=U.type?U:{type:"unknown",message:U.message||"Unknown error",retryable:!0,userMessage:"Something went wrong. Please try again.",originalError:U};h(q=>({...q,loading:!1,error:N})),(M=c.onError)==null||M.call(c,N),(G=c.onSettled)==null||G.call(c,null,N)}},[i,c]);return{...f,execute:y}}const g_=i=>{const[c,f]=j.useState(null),[h,y]=j.useState(!1),w=document,E=()=>!!(w.fullscreenEnabled||w.webkitFullscreenEnabled||w.mozFullScreenEnabled||w.msFullscreenEnabled),A=()=>w.fullscreenElement||w.webkitFullscreenElement||w.mozFullScreenElement||w.msFullscreenElement,M=async k=>{var ne;try{if(!E())throw new Error("Fullscreen is not supported in this environment");k.requestFullscreen?await k.requestFullscreen():k.webkitRequestFullscreen?await k.webkitRequestFullscreen():k.mozRequestFullScreen?await k.mozRequestFullScreen():k.msRequestFullscreen&&await k.msRequestFullscreen()}catch(oe){const ue={name:"FullscreenError",message:oe instanceof Error?oe.message:"Failed to enter fullscreen"};f(ue),(ne=i==null?void 0:i.onError)==null||ne.call(i,ue)}},G=async()=>{var k;try{w.exitFullscreen?await w.exitFullscreen():w.webkitExitFullscreen?await w.webkitExitFullscreen():w.mozCancelFullScreen?await w.mozCancelFullScreen():w.msExitFullscreen&&await w.msExitFullscreen()}catch(ne){const oe={name:"FullscreenError",message:ne instanceof Error?ne.message:"Failed to exit fullscreen"};f(oe),(k=i==null?void 0:i.onError)==null||k.call(i,oe)}},U=j.useCallback(()=>{var ne;const k=!!A();y(k),(ne=i==null?void 0:i.onFullScreenChange)==null||ne.call(i,k)},[i]);j.useEffect(()=>{const k=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];return k.forEach(ne=>{document.addEventListener(ne,U)}),()=>{k.forEach(ne=>{document.removeEventListener(ne,U)})}},[U]);const N=async k=>{f(null);const ne=k??document.documentElement;await M(ne)};return{isFullScreen:h,toggleFullScreen:async k=>{h?await G():await N(k)},enterFullScreen:N,exitFullScreen:G,error:c}};function P8(){const i=my();return j.useMemo(()=>{const f=i.api||{};return new X6(f)},[i.api])}const p_=i=>{j.useEffect(()=>{const c=h=>{(h.ctrlKey||h.metaKey)&&["c","v","a","t","n","w","r","s","p"].includes(h.key.toLowerCase())&&(h.preventDefault(),i({type:"blocked_shortcut",severity:"low",details:{action:"shortcut_pressed",reason:`Attempted to use a blocked keyboard shortcut: Ctrl + ${h.key}`}})),h.key.startsWith("F")&&h.key.length<=3&&(h.preventDefault(),i({type:"blocked_function_key",severity:"low",details:{action:"function_key_pressed",reason:`Attempted to use a blocked function key: ${h.key}`}})),h.altKey&&h.key==="Tab"&&(h.preventDefault(),i({type:"alt_tab_attempt",severity:"medium",details:{action:"alt_tab",reason:"Attempted to use the Alt + Tab shortcut"}}))},f=h=>{h.preventDefault(),i({type:"right_click_attempt",severity:"low",details:{action:"right_click",reason:"Attempted to use the right click"}})};return document.addEventListener("keydown",c),document.addEventListener("contextmenu",f),()=>{document.removeEventListener("keydown",c),document.removeEventListener("contextmenu",f)}},[i])},y_=(i={})=>{const[c,f]=j.useState(!1),[h,y]=j.useState(!1),[w,E]=j.useState(null),[A,M]=j.useState(null),[G,U]=j.useState(null);i.config&&b0.updateConfig(i.config);const N=j.useCallback(async oe=>{var ue;try{M(null),E(null),U(null),await b0.startRecording(oe,{onStart:()=>{var P;f(!0),(P=i.onStart)==null||P.call(i)},onStop:()=>{var P;f(!1),(P=i.onStop)==null||P.call(i)},onError:P=>{var be;const ye=P instanceof Bn?P:new Bn(P.message,"RECORDING_ERROR",!0);M(ye),f(!1),(be=i.onError)==null||be.call(i,ye)}})}catch(P){const ye=P instanceof Bn?P:new Bn(P instanceof Error?P.message:String(P),"START_FAILED",!1);throw M(ye),f(!1),(ue=i.onError)==null||ue.call(i,ye),ye}},[]),q=j.useCallback(async()=>{var oe,ue;try{const P=await b0.stopRecording();return U(P),f(!1),(oe=i.onStop)==null||oe.call(i),P}catch(P){const ye=P instanceof Bn?P:new Bn(P instanceof Error?P.message:String(P),"STOP_FAILED",!1);throw M(ye),f(!1),(ue=i.onError)==null||ue.call(i,ye),ye}},[]),k=j.useCallback(async(oe,ue={})=>{var P,ye;try{M(null),y(!0);const be={audioBlob:oe,...ue},Te=await b0.transcribe(be);return E(Te.transcript),y(!1),(P=i.onTranscriptionComplete)==null||P.call(i,Te),Te}catch(be){const Te=be instanceof Bn?be:new Bn(be instanceof Error?be.message:String(be),"TRANSCRIPTION_FAILED",!0);throw M(Te),y(!1),(ye=i.onError)==null||ye.call(i,Te),Te}},[]),ne=j.useCallback(()=>{b0.cancelRecording(),f(!1),U(null)},[]);return{startRecording:N,stopRecording:q,transcribe:k,cancelRecording:ne,isRecording:c,isTranscribing:h,transcript:w,error:A,audioBlob:G}},v_=i=>{const c=j.useRef(null),f=j.useRef(!1);j.useEffect(()=>{const h=()=>{document.hidden&&(f.current=!0,c.current&&(clearTimeout(c.current),c.current=null),i({type:"tab_switch",severity:"high",details:{action:"tab_hidden",reason:"Attempted to switch tabs or applications"}}),setTimeout(()=>{f.current=!1},100))},y=()=>{f.current||(c.current=setTimeout(()=>{f.current||i({type:"focus_loss",severity:"medium",details:{action:"window_blur",reason:"Focus lost from the interview window"}}),c.current=null},50))};return document.addEventListener("visibilitychange",h),window.addEventListener("blur",y),()=>{document.removeEventListener("visibilitychange",h),window.removeEventListener("blur",y),c.current&&clearTimeout(c.current)}},[i])},w_=()=>{j.useEffect(()=>{const i=document.createElement("style");return i.textContent=`
|
|
16
16
|
* {
|
|
17
17
|
-webkit-user-select: none !important;
|
|
18
18
|
-moz-user-select: none !important;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
-ms-user-select: text !important;
|
|
26
26
|
user-select: text !important;
|
|
27
27
|
}
|
|
28
|
-
`,document.head.appendChild(
|
|
28
|
+
`,document.head.appendChild(i),()=>{document.head.removeChild(i)}},[])};class b_{constructor(){tu(this,"currentAudio",null)}async play(c,f){var h,y;try{if(this.stop(),(h=f==null?void 0:f.onStart)==null||h.call(f),!c)throw new Error("No audio data provided");const w=window.atob(c),E=new Uint8Array(w==null?void 0:w.length);for(let G=0;G<(w==null?void 0:w.length);G++)E[G]=w==null?void 0:w.charCodeAt(G);const A=new Blob([E],{type:"audio/wav"}),M=URL.createObjectURL(A);return this.currentAudio=new Audio(M),new Promise((G,U)=>{if(!this.currentAudio){U(new Error("Audio element not created"));return}const N=this.currentAudio;N.onended=()=>{var q;URL.revokeObjectURL(M),this.currentAudio=null,(q=f==null?void 0:f.onEnd)==null||q.call(f),G()},N.onerror=q=>{var ne;URL.revokeObjectURL(M),this.currentAudio=null;const k=new Error(`Audio playback failed: ${q}`);(ne=f==null?void 0:f.onError)==null||ne.call(f,k),U(k)},N.play().catch(q=>{var ne;URL.revokeObjectURL(M),this.currentAudio=null;const k=new Error(`Failed to play audio: ${q.message}`);(ne=f==null?void 0:f.onError)==null||ne.call(f,k),U(k)})})}catch(w){const E=w instanceof Error?w:new Error(`TTS Error: ${String(w)}`);throw(y=f==null?void 0:f.onError)==null||y.call(f,E),E}}stop(){this.currentAudio&&(this.currentAudio.pause(),this.currentAudio.currentTime=0,this.currentAudio=null)}isPlaying(){return this.currentAudio!==null&&!this.currentAudio.paused}}const e7=new b_,S_=(i={})=>{const[c,f]=j.useState(!1),[h,y]=j.useState(!1),[w,E]=j.useState(null),A=j.useCallback(async G=>{var U;try{E(null),y(!0),await e7.play(G,{onStart:()=>{var N;y(!1),f(!0),(N=i.onStart)==null||N.call(i)},onEnd:()=>{var N;f(!1),(N=i.onEnd)==null||N.call(i)},onError:N=>{var q;f(!1),y(!1),E(N),(q=i.onError)==null||q.call(i,N)}})}catch(N){const q=N instanceof Error?N:new Error(String(N));throw E(q),f(!1),y(!1),(U=i.onError)==null||U.call(i,q),q}},[i]),M=j.useCallback(()=>{e7.stop(),f(!1),y(!1)},[]);return{speak:A,stop:M,isPlaying:c,isLoading:h,error:w}},E_=({onViolation:i,onEnd:c,maxViolations:f=5})=>{const{addViolation:h}=BE(),y=NE(),w=UE(),E=j.useRef(w);j.useEffect(()=>{E.current=w},[w]);const A=j.useCallback(G=>{c&&c(G,E.current)},[c]);return{logViolation:j.useCallback(({type:G,severity:U,details:N})=>{const q={id:qE(),type:G,severity:U,details:N,timestamp:Date.now()};h(q);const k=E.current+1;i&&i(q,k),k>=f&&A("excessive_violations")},[h,i,f,A]),onInterviewEnd:A,violationCount:w,logList:y}},T_=()=>{j.useEffect(()=>{function i(){console.clear(),console.log(`
|
|
29
29
|
%c
|
|
30
30
|
╔═══════════════════════════════════════════════════════════════════════╗
|
|
31
31
|
║ ║
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
│ │
|
|
72
72
|
│ 💡 IMMEDIATE ACTION REQUIRED: │
|
|
73
73
|
│ Close developer tools to continue interview │
|
|
74
|
-
└─────────────────────────────────────────────────────────────┘`,"color: #ffd93d; font-size: 14px; font-family: monospace; background: rgba(255, 217, 61, 0.1); padding: 10px;")}const
|
|
74
|
+
└─────────────────────────────────────────────────────────────┘`,"color: #ffd93d; font-size: 14px; font-family: monospace; background: rgba(255, 217, 61, 0.1); padding: 10px;")}const c={open:!1,orientation:null},f=160,h=setInterval(()=>{window.outerHeight-window.innerHeight>f||window.outerWidth-window.innerWidth>f?c.open||(c.open=!0,c.orientation=window.outerWidth-window.innerWidth>f?"vertical":"horizontal",i()):c.open&&(c.open=!1,console.log("%c🌟 Developer tools closed. Interview continues smoothly! ✨","color: #4ecdc4; font-weight: bold; text-shadow: 0 0 10px #4ecdc4;"))},500),y=E=>{if(E.keyCode===123||E.ctrlKey&&E.shiftKey&&(E.keyCode===73||E.keyCode===74)||E.ctrlKey&&E.keyCode===85)return E.preventDefault(),console.log("%c🎭 Nice try! Keyboard shortcuts are disabled during interviews ✨","color: #ffd93d; font-weight: bold; text-shadow: 0 0 10px #ffd93d;"),!1},w=E=>(E.preventDefault(),console.log("%c🌈 Right-click menu disabled for interview integrity! 🎪","color: #ff9ff3; font-weight: bold; text-shadow: 0 0 10px #ff9ff3;"),!1);return document.addEventListener("keydown",y),document.addEventListener("contextmenu",w),()=>{clearInterval(h),document.removeEventListener("keydown",y),document.removeEventListener("contextmenu",w),delete window.showStats,delete window.interviewTips}},[])};var ib={exports:{}},gm={},Py={exports:{}},ub={};/**
|
|
75
75
|
* @license React
|
|
76
76
|
* scheduler.production.js
|
|
77
77
|
*
|
|
@@ -79,7 +79,15 @@
|
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the MIT license found in the
|
|
81
81
|
* LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/(function(
|
|
82
|
+
*/var t7;function A_(){return t7||(t7=1,function(i){function c(V,ee){var ie=V.length;V.push(ee);e:for(;0<ie;){var ve=ie-1>>>1,Ce=V[ve];if(0<y(Ce,ee))V[ve]=ee,V[ie]=Ce,ie=ve;else break e}}function f(V){return V.length===0?null:V[0]}function h(V){if(V.length===0)return null;var ee=V[0],ie=V.pop();if(ie!==ee){V[0]=ie;e:for(var ve=0,Ce=V.length,Et=Ce>>>1;ve<Et;){var st=2*(ve+1)-1,Xe=V[st],Ze=st+1,Bt=V[Ze];if(0>y(Xe,ie))Ze<Ce&&0>y(Bt,Xe)?(V[ve]=Bt,V[Ze]=ie,ve=Ze):(V[ve]=Xe,V[st]=ie,ve=st);else if(Ze<Ce&&0>y(Bt,ie))V[ve]=Bt,V[Ze]=ie,ve=Ze;else break e}}return ee}function y(V,ee){var ie=V.sortIndex-ee.sortIndex;return ie!==0?ie:V.id-ee.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;i.unstable_now=function(){return w.now()}}else{var E=Date,A=E.now();i.unstable_now=function(){return E.now()-A}}var M=[],G=[],U=1,N=null,q=3,k=!1,ne=!1,oe=!1,ue=!1,P=typeof setTimeout=="function"?setTimeout:null,ye=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function Te(V){for(var ee=f(G);ee!==null;){if(ee.callback===null)h(G);else if(ee.startTime<=V)h(G),ee.sortIndex=ee.expirationTime,c(M,ee);else break;ee=f(G)}}function nt(V){if(oe=!1,Te(V),!ne)if(f(M)!==null)ne=!0,Be||(Be=!0,ke());else{var ee=f(G);ee!==null&&$t(nt,ee.startTime-V)}}var Be=!1,Qe=-1,xe=5,me=-1;function ce(){return ue?!0:!(i.unstable_now()-me<xe)}function Ut(){if(ue=!1,Be){var V=i.unstable_now();me=V;var ee=!0;try{e:{ne=!1,oe&&(oe=!1,ye(Qe),Qe=-1),k=!0;var ie=q;try{t:{for(Te(V),N=f(M);N!==null&&!(N.expirationTime>V&&ce());){var ve=N.callback;if(typeof ve=="function"){N.callback=null,q=N.priorityLevel;var Ce=ve(N.expirationTime<=V);if(V=i.unstable_now(),typeof Ce=="function"){N.callback=Ce,Te(V),ee=!0;break t}N===f(M)&&h(M),Te(V)}else h(M);N=f(M)}if(N!==null)ee=!0;else{var Et=f(G);Et!==null&&$t(nt,Et.startTime-V),ee=!1}}break e}finally{N=null,q=ie,k=!1}ee=void 0}}finally{ee?ke():Be=!1}}}var ke;if(typeof be=="function")ke=function(){be(Ut)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Ft=He.port2;He.port1.onmessage=Ut,ke=function(){Ft.postMessage(null)}}else ke=function(){P(Ut,0)};function $t(V,ee){Qe=P(function(){V(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return q},i.unstable_next=function(V){switch(q){case 1:case 2:case 3:var ee=3;break;default:ee=q}var ie=q;q=ee;try{return V()}finally{q=ie}},i.unstable_requestPaint=function(){ue=!0},i.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ie=q;q=V;try{return ee()}finally{q=ie}},i.unstable_scheduleCallback=function(V,ee,ie){var ve=i.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ve+ie:ve):ie=ve,V){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=ie+Ce,V={id:U++,callback:ee,priorityLevel:V,startTime:ie,expirationTime:Ce,sortIndex:-1},ie>ve?(V.sortIndex=ie,c(G,V),f(M)===null&&V===f(G)&&(oe?(ye(Qe),Qe=-1):oe=!0,$t(nt,ie-ve))):(V.sortIndex=Ce,c(M,V),ne||k||(ne=!0,Be||(Be=!0,ke()))),V},i.unstable_shouldYield=ce,i.unstable_wrapCallback=function(V){var ee=q;return function(){var ie=q;q=ee;try{return V.apply(this,arguments)}finally{q=ie}}}}(ub)),ub}var ob={};/**
|
|
83
|
+
* @license React
|
|
84
|
+
* scheduler.development.js
|
|
85
|
+
*
|
|
86
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the MIT license found in the
|
|
89
|
+
* LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/var n7;function __(){return n7||(n7=1,function(i){process.env.NODE_ENV!=="production"&&function(){function c(){if(nt=!1,me){var V=i.unstable_now();ke=V;var ee=!0;try{e:{be=!1,Te&&(Te=!1,Qe(ce),ce=-1),ye=!0;var ie=P;try{t:{for(E(V),ue=h(k);ue!==null&&!(ue.expirationTime>V&&M());){var ve=ue.callback;if(typeof ve=="function"){ue.callback=null,P=ue.priorityLevel;var Ce=ve(ue.expirationTime<=V);if(V=i.unstable_now(),typeof Ce=="function"){ue.callback=Ce,E(V),ee=!0;break t}ue===h(k)&&y(k),E(V)}else y(k);ue=h(k)}if(ue!==null)ee=!0;else{var Et=h(ne);Et!==null&&G(A,Et.startTime-V),ee=!1}}break e}finally{ue=null,P=ie,ye=!1}ee=void 0}}finally{ee?He():me=!1}}}function f(V,ee){var ie=V.length;V.push(ee);e:for(;0<ie;){var ve=ie-1>>>1,Ce=V[ve];if(0<w(Ce,ee))V[ve]=ee,V[ie]=Ce,ie=ve;else break e}}function h(V){return V.length===0?null:V[0]}function y(V){if(V.length===0)return null;var ee=V[0],ie=V.pop();if(ie!==ee){V[0]=ie;e:for(var ve=0,Ce=V.length,Et=Ce>>>1;ve<Et;){var st=2*(ve+1)-1,Xe=V[st],Ze=st+1,Bt=V[Ze];if(0>w(Xe,ie))Ze<Ce&&0>w(Bt,Xe)?(V[ve]=Bt,V[Ze]=ie,ve=Ze):(V[ve]=Xe,V[st]=ie,ve=st);else if(Ze<Ce&&0>w(Bt,ie))V[ve]=Bt,V[Ze]=ie,ve=Ze;else break e}}return ee}function w(V,ee){var ie=V.sortIndex-ee.sortIndex;return ie!==0?ie:V.id-ee.id}function E(V){for(var ee=h(ne);ee!==null;){if(ee.callback===null)y(ne);else if(ee.startTime<=V)y(ne),ee.sortIndex=ee.expirationTime,f(k,ee);else break;ee=h(ne)}}function A(V){if(Te=!1,E(V),!be)if(h(k)!==null)be=!0,me||(me=!0,He());else{var ee=h(ne);ee!==null&&G(A,ee.startTime-V)}}function M(){return nt?!0:!(i.unstable_now()-ke<Ut)}function G(V,ee){ce=Be(function(){V(i.unstable_now())},ee)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var U=performance;i.unstable_now=function(){return U.now()}}else{var N=Date,q=N.now();i.unstable_now=function(){return N.now()-q}}var k=[],ne=[],oe=1,ue=null,P=3,ye=!1,be=!1,Te=!1,nt=!1,Be=typeof setTimeout=="function"?setTimeout:null,Qe=typeof clearTimeout=="function"?clearTimeout:null,xe=typeof setImmediate<"u"?setImmediate:null,me=!1,ce=-1,Ut=5,ke=-1;if(typeof xe=="function")var He=function(){xe(c)};else if(typeof MessageChannel<"u"){var Ft=new MessageChannel,$t=Ft.port2;Ft.port1.onmessage=c,He=function(){$t.postMessage(null)}}else He=function(){Be(c,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ut=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return P},i.unstable_next=function(V){switch(P){case 1:case 2:case 3:var ee=3;break;default:ee=P}var ie=P;P=ee;try{return V()}finally{P=ie}},i.unstable_requestPaint=function(){nt=!0},i.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ie=P;P=V;try{return ee()}finally{P=ie}},i.unstable_scheduleCallback=function(V,ee,ie){var ve=i.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ve+ie:ve):ie=ve,V){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=ie+Ce,V={id:oe++,callback:ee,priorityLevel:V,startTime:ie,expirationTime:Ce,sortIndex:-1},ie>ve?(V.sortIndex=ie,f(ne,V),h(k)===null&&V===h(ne)&&(Te?(Qe(ce),ce=-1):Te=!0,G(A,ie-ve))):(V.sortIndex=Ce,f(k,V),be||ye||(be=!0,me||(me=!0,He()))),V},i.unstable_shouldYield=M,i.unstable_wrapCallback=function(V){var ee=P;return function(){var ie=P;P=ee;try{return V.apply(this,arguments)}finally{P=ie}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ob)),ob}var a7;function l7(){return a7||(a7=1,process.env.NODE_ENV==="production"?Py.exports=A_():Py.exports=__()),Py.exports}/**
|
|
83
91
|
* @license React
|
|
84
92
|
* react-dom-client.production.js
|
|
85
93
|
*
|
|
@@ -87,15 +95,236 @@
|
|
|
87
95
|
*
|
|
88
96
|
* This source code is licensed under the MIT license found in the
|
|
89
97
|
* LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/var
|
|
91
|
-
at`)?" (<anonymous>)":-1<
|
|
92
|
-
`+
|
|
93
|
-
`),
|
|
94
|
-
`);for(
|
|
95
|
-
`+
|
|
96
|
-
Error generating stack: `+
|
|
97
|
-
`+a.stack}}var kf=Object.prototype.hasOwnProperty,Lf=Fe.unstable_scheduleCallback,Uf=Fe.unstable_cancelCallback,Wy=Fe.unstable_shouldYield,Ry=Fe.unstable_requestPaint,Ut=Fe.unstable_now,Py=Fe.unstable_getCurrentPriorityLevel,k3=Fe.unstable_ImmediatePriority,L3=Fe.unstable_UserBlockingPriority,wo=Fe.unstable_NormalPriority,$y=Fe.unstable_LowPriority,U3=Fe.unstable_IdlePriority,ep=Fe.log,tp=Fe.unstable_setDisableYieldValue,Nr=null,Bt=null;function Sa(e){if(typeof ep=="function"&&tp(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Nr,e)}catch{}}var Gt=Math.clz32?Math.clz32:ip,np=Math.log,ap=Math.LN2;function ip(e){return e>>>=0,e===0?32:31-(np(e)/ap|0)|0}var mo=256,yo=262144,po=4194304;function ui(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vo(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,l=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~l,a!==0?i=ui(a):(r&=s,r!==0?i=ui(r):n||(n=s&~e,n!==0&&(i=ui(n))))):(s=a&~l,s!==0?i=ui(s):r!==0?i=ui(r):n||(n=a&~e,n!==0&&(i=ui(n)))),i===0?0:t!==0&&t!==i&&!(t&l)&&(l=i&-i,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:i}function Mr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lp(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function B3(){var e=po;return po<<=1,!(po&62914560)&&(po=4194304),e}function Bf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rp(e,t,n,a,i,l){var r=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=r&~n;0<n;){var f=31-Gt(n),h=1<<f;s[f]=0,c[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var g=d[f];g!==null&&(g.lane&=-536870913)}n&=~h}a!==0&&G3(e,a,0),l!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=l&~(r&~t))}function G3(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function H3(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Gt(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function j3(e,t){var n=t&-t;return n=n&42?1:Gf(n),n&(e.suspendedLanes|t)?0:n}function Gf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hf(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function V3(){var e=R.p;return e!==0?e:(e=window.event,e===void 0?32:Am(e.type))}function q3(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var Ea=Math.random().toString(36).slice(2),$e="__reactFiber$"+Ea,gt="__reactProps$"+Ea,ul="__reactContainer$"+Ea,jf="__reactEvents$"+Ea,sp="__reactListeners$"+Ea,op="__reactHandles$"+Ea,F3="__reactResources$"+Ea,Dr="__reactMarker$"+Ea;function Vf(e){delete e[$e],delete e[gt],delete e[jf],delete e[sp],delete e[op]}function fl(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ul]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cm(e);e!==null;){if(n=e[$e])return n;e=cm(e)}return t}e=n,n=e.parentNode}return null}function dl(e){if(e=e[$e]||e[ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Or(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(E(33))}function hl(e){var t=e[F3];return t||(t=e[F3]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Dr]=!0}var Y3=new Set,X3={};function fi(e,t){gl(e,t),gl(e+"Capture",t)}function gl(e,t){for(X3[e]=t,e=0;e<t.length;e++)Y3.add(t[e])}var cp=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Q3={},K3={};function up(e){return kf.call(K3,e)?!0:kf.call(Q3,e)?!1:cp.test(e)?K3[e]=!0:(Q3[e]=!0,!1)}function bo(e,t,n){if(up(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function So(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Xn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fp(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,l=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){n=""+r,l.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qf(e){if(!e._valueTracker){var t=Z3(e)?"checked":"value";e._valueTracker=fp(e,t,""+e[t])}}function I3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Z3(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Eo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dp=/[\n"\\]/g;function en(e){return e.replace(dp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ff(e,t,n,a,i,l,r,s){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+$t(t)):e.value!==""+$t(t)&&(e.value=""+$t(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Yf(e,r,$t(t)):n!=null?Yf(e,r,$t(n)):a!=null&&e.removeAttribute("value"),i==null&&l!=null&&(e.defaultChecked=!!l),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+$t(s):e.removeAttribute("name")}function J3(e,t,n,a,i,l,r,s){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){qf(e);return}n=n!=null?""+$t(n):"",t=t!=null?""+$t(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),qf(e)}function Yf(e,t,n){t==="number"&&Eo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wl(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function W3(e,t,n){if(t!=null&&(t=""+$t(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+$t(n):""}function R3(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(E(92));if(Ar(a)){if(1<a.length)throw Error(E(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=$t(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),qf(e)}function ml(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function P3(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||hp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function $3(e,t,n){if(t!=null&&typeof t!="object")throw Error(E(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&P3(e,i,a)}else for(var l in t)t.hasOwnProperty(l)&&P3(e,l,t[l])}function Xf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function _o(e){return wp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qn(){}var Qf=null;function Kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,pl=null;function e4(e){var t=dl(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ff(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[gt]||null;if(!i)throw Error(E(90));Ff(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&I3(a)}break e;case"textarea":W3(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&wl(e,!!n.multiple,t,!1)}}}var Zf=!1;function t4(e,t,n){if(Zf)return e(t,n);Zf=!0;try{var a=e(t);return a}finally{if(Zf=!1,(yl!==null||pl!==null)&&(uc(),yl&&(t=yl,e=pl,pl=yl=null,e4(t),e)))for(t=0;t<e.length;t++)e4(e[t])}}function zr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[gt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),If=!1;if(Kn)try{var kr={};Object.defineProperty(kr,"passive",{get:function(){If=!0}}),window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{If=!1}var _a=null,Jf=null,xo=null;function n4(){if(xo)return xo;var e,t=Jf,n=t.length,a,i="value"in _a?_a.value:_a.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var r=n-e;for(a=1;a<=r&&t[n-a]===i[l-a];a++);return xo=i.slice(e,1<a?1-a:void 0)}function Ao(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function To(){return!0}function a4(){return!1}function wt(e){function t(n,a,i,l,r){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=l,this.target=r,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?To:a4,this.isPropagationStopped=a4,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),t}var di={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},No=wt(di),Lr=ce({},di,{view:0,detail:0}),mp=wt(Lr),Wf,Rf,Ur,Mo=ce({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ur&&(Ur&&e.type==="mousemove"?(Wf=e.screenX-Ur.screenX,Rf=e.screenY-Ur.screenY):Rf=Wf=0,Ur=e),Wf)},movementY:function(e){return"movementY"in e?e.movementY:Rf}}),i4=wt(Mo),yp=ce({},Mo,{dataTransfer:0}),pp=wt(yp),vp=ce({},Lr,{relatedTarget:0}),Pf=wt(vp),bp=ce({},di,{animationName:0,elapsedTime:0,pseudoElement:0}),Sp=wt(bp),Ep=ce({},di,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_p=wt(Ep),xp=ce({},di,{data:0}),l4=wt(xp),Ap={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Np={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Np[e])?!!t[e]:!1}function $f(){return Mp}var Cp=ce({},Lr,{key:function(e){if(e.key){var t=Ap[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(e){return e.type==="keypress"?Ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dp=wt(Cp),Op=ce({},Mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),r4=wt(Op),zp=ce({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),kp=wt(zp),Lp=ce({},di,{propertyName:0,elapsedTime:0,pseudoElement:0}),Up=wt(Lp),Bp=ce({},Mo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Gp=wt(Bp),Hp=ce({},di,{newState:0,oldState:0}),jp=wt(Hp),Vp=[9,13,27,32],ed=Kn&&"CompositionEvent"in window,Br=null;Kn&&"documentMode"in document&&(Br=document.documentMode);var qp=Kn&&"TextEvent"in window&&!Br,s4=Kn&&(!ed||Br&&8<Br&&11>=Br),o4=" ",c4=!1;function u4(e,t){switch(e){case"keyup":return Vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vl=!1;function Fp(e,t){switch(e){case"compositionend":return f4(t);case"keypress":return t.which!==32?null:(c4=!0,o4);case"textInput":return e=t.data,e===o4&&c4?null:e;default:return null}}function Yp(e,t){if(vl)return e==="compositionend"||!ed&&u4(e,t)?(e=n4(),xo=Jf=_a=null,vl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return s4&&t.locale!=="ko"?null:t.data;default:return null}}var Xp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function d4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xp[e.type]:t==="textarea"}function h4(e,t,n,a){yl?pl?pl.push(a):pl=[a]:yl=a,t=yc(t,"onChange"),0<t.length&&(n=new No("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Gr=null,Hr=null;function Qp(e){Jw(e,0)}function Co(e){var t=Or(e);if(I3(t))return e}function g4(e,t){if(e==="change")return t}var w4=!1;if(Kn){var td;if(Kn){var nd="oninput"in document;if(!nd){var m4=document.createElement("div");m4.setAttribute("oninput","return;"),nd=typeof m4.oninput=="function"}td=nd}else td=!1;w4=td&&(!document.documentMode||9<document.documentMode)}function y4(){Gr&&(Gr.detachEvent("onpropertychange",p4),Hr=Gr=null)}function p4(e){if(e.propertyName==="value"&&Co(Hr)){var t=[];h4(t,Hr,e,Kf(e)),t4(Qp,t)}}function Kp(e,t,n){e==="focusin"?(y4(),Gr=t,Hr=n,Gr.attachEvent("onpropertychange",p4)):e==="focusout"&&y4()}function Zp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Co(Hr)}function Ip(e,t){if(e==="click")return Co(t)}function Jp(e,t){if(e==="input"||e==="change")return Co(t)}function Wp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:Wp;function jr(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!kf.call(t,i)||!Ht(e[i],t[i]))return!1}return!0}function v4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function b4(e,t){var n=v4(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=v4(n)}}function S4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function E4(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Eo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Eo(e.document)}return t}function ad(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Rp=Kn&&"documentMode"in document&&11>=document.documentMode,bl=null,id=null,Vr=null,ld=!1;function _4(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ld||bl==null||bl!==Eo(a)||(a=bl,"selectionStart"in a&&ad(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Vr&&jr(Vr,a)||(Vr=a,a=yc(id,"onSelect"),0<a.length&&(t=new No("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=bl)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sl={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionrun:hi("Transition","TransitionRun"),transitionstart:hi("Transition","TransitionStart"),transitioncancel:hi("Transition","TransitionCancel"),transitionend:hi("Transition","TransitionEnd")},rd={},x4={};Kn&&(x4=document.createElement("div").style,"AnimationEvent"in window||(delete Sl.animationend.animation,delete Sl.animationiteration.animation,delete Sl.animationstart.animation),"TransitionEvent"in window||delete Sl.transitionend.transition);function gi(e){if(rd[e])return rd[e];if(!Sl[e])return e;var t=Sl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in x4)return rd[e]=t[n];return e}var A4=gi("animationend"),T4=gi("animationiteration"),N4=gi("animationstart"),Pp=gi("transitionrun"),$p=gi("transitionstart"),ev=gi("transitioncancel"),M4=gi("transitionend"),C4=new Map,sd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");sd.push("scrollEnd");function yn(e,t){C4.set(e,t),fi(t,[e])}var Do=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},tn=[],El=0,od=0;function Oo(){for(var e=El,t=od=El=0;t<e;){var n=tn[t];tn[t++]=null;var a=tn[t];tn[t++]=null;var i=tn[t];tn[t++]=null;var l=tn[t];if(tn[t++]=null,a!==null&&i!==null){var r=a.pending;r===null?i.next=i:(i.next=r.next,r.next=i),a.pending=i}l!==0&&D4(n,i,l)}}function zo(e,t,n,a){tn[El++]=e,tn[El++]=t,tn[El++]=n,tn[El++]=a,od|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function cd(e,t,n,a){return zo(e,t,n,a),ko(e)}function wi(e,t){return zo(e,null,null,t),ko(e)}function D4(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,l=e.return;l!==null;)l.childLanes|=n,a=l.alternate,a!==null&&(a.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(i=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,i&&t!==null&&(i=31-Gt(n),e=l.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),l):null}function ko(e){if(50<os)throw os=0,p2=null,Error(E(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _l={};function tv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,n,a){return new tv(e,t,n,a)}function ud(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zn(e,t){var n=e.alternate;return n===null?(n=jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function O4(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Lo(e,t,n,a,i,l){var r=0;if(a=e,typeof e=="function")ud(e)&&(r=1);else if(typeof e=="string")r=r8(e,n,zn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Tf:return e=jt(31,n,t,i),e.elementType=Tf,e.lanes=l,e;case sl:return mi(n.children,i,l,t);case M3:r=8,i|=24;break;case Sf:return e=jt(12,n,t,i|2),e.elementType=Sf,e.lanes=l,e;case _f:return e=jt(13,n,t,i),e.elementType=_f,e.lanes=l,e;case xf:return e=jt(19,n,t,i),e.elementType=xf,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yn:r=10;break e;case C3:r=9;break e;case Ef:r=11;break e;case Af:r=14;break e;case va:r=16,a=null;break e}r=29,n=Error(E(130,e===null?"null":typeof e,"")),a=null}return t=jt(r,n,t,i),t.elementType=e,t.type=a,t.lanes=l,t}function mi(e,t,n,a){return e=jt(7,e,a,t),e.lanes=n,e}function fd(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function z4(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function dd(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var k4=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var n=k4.get(e);return n!==void 0?n:(t={value:e,source:t,stack:z3(t)},k4.set(e,t),t)}return{value:e,source:t,stack:z3(t)}}var xl=[],Al=0,Uo=null,qr=0,an=[],ln=0,xa=null,kn=1,Ln="";function In(e,t){xl[Al++]=qr,xl[Al++]=Uo,Uo=e,qr=t}function L4(e,t,n){an[ln++]=kn,an[ln++]=Ln,an[ln++]=xa,xa=e;var a=kn;e=Ln;var i=32-Gt(a)-1;a&=~(1<<i),n+=1;var l=32-Gt(t)+i;if(30<l){var r=i-i%5;l=(a&(1<<r)-1).toString(32),a>>=r,i-=r,kn=1<<32-Gt(t)+i|n<<i|a,Ln=l+e}else kn=1<<l|n<<i|a,Ln=e}function hd(e){e.return!==null&&(In(e,1),L4(e,1,0))}function gd(e){for(;e===Uo;)Uo=xl[--Al],xl[Al]=null,qr=xl[--Al],xl[Al]=null;for(;e===xa;)xa=an[--ln],an[ln]=null,Ln=an[--ln],an[ln]=null,kn=an[--ln],an[ln]=null}function U4(e,t){an[ln++]=kn,an[ln++]=Ln,an[ln++]=xa,kn=t.id,Ln=t.overflow,xa=e}var et=null,ue=null,Q=!1,Aa=null,rn=!1,wd=Error(E(519));function Ta(e){var t=Error(E(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fr(nn(t,e)),wd}function B4(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[$e]=e,t[gt]=a,n){case"dialog":Y("cancel",t),Y("close",t);break;case"iframe":case"object":case"embed":Y("load",t);break;case"video":case"audio":for(n=0;n<us.length;n++)Y(us[n],t);break;case"source":Y("error",t);break;case"img":case"image":case"link":Y("error",t),Y("load",t);break;case"details":Y("toggle",t);break;case"input":Y("invalid",t),J3(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Y("invalid",t);break;case"textarea":Y("invalid",t),R3(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||$w(t.textContent,n)?(a.popover!=null&&(Y("beforetoggle",t),Y("toggle",t)),a.onScroll!=null&&Y("scroll",t),a.onScrollEnd!=null&&Y("scrollend",t),a.onClick!=null&&(t.onclick=Qn),t=!0):t=!1,t||Ta(e,!0)}function G4(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:et=et.return}}function Tl(e){if(e!==et)return!1;if(!Q)return G4(e),Q=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||k2(e.type,e.memoizedProps)),n=!n),n&&ue&&Ta(e),G4(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));ue=om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));ue=om(e)}else t===27?(t=ue,Va(e.type)?(e=H2,H2=null,ue=e):ue=t):ue=et?on(e.stateNode.nextSibling):null;return!0}function yi(){ue=et=null,Q=!1}function md(){var e=Aa;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Aa=null),e}function Fr(e){Aa===null?Aa=[e]:Aa.push(e)}var yd=On(null),pi=null,Jn=null;function Na(e,t,n){oe(yd,t._currentValue),t._currentValue=n}function Wn(e){e._currentValue=yd.current,Ie(yd)}function pd(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function vd(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){var r=i.child;l=l.firstContext;e:for(;l!==null;){var s=l;l=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),pd(l.return,n,e),a||(r=null);break e}l=s.next}}else if(i.tag===18){if(r=i.return,r===null)throw Error(E(341));r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),pd(r,n,e),r=null}else r=i.child;if(r!==null)r.return=i;else for(r=i;r!==null;){if(r===e){r=null;break}if(i=r.sibling,i!==null){i.return=r.return,r=i;break}r=r.return}i=r}}function Nl(e,t,n,a){e=null;for(var i=t,l=!1;i!==null;){if(!l){if(i.flags&524288)l=!0;else if(i.flags&262144)break}if(i.tag===10){var r=i.alternate;if(r===null)throw Error(E(387));if(r=r.memoizedProps,r!==null){var s=i.type;Ht(i.pendingProps.value,r.value)||(e!==null?e.push(s):e=[s])}}else if(i===fo.current){if(r=i.alternate,r===null)throw Error(E(387));r.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}i=i.return}e!==null&&vd(t,e,n,a),t.flags|=262144}function Bo(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function vi(e){pi=e,Jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return H4(pi,e)}function Go(e,t){return pi===null&&vi(e),H4(e,t)}function H4(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Jn===null){if(e===null)throw Error(E(308));Jn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jn=Jn.next=t;return n}var nv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},av=Fe.unstable_scheduleCallback,iv=Fe.unstable_NormalPriority,Le={$$typeof:Yn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bd(){return{controller:new nv,data:new Map,refCount:0}}function Yr(e){e.refCount--,e.refCount===0&&av(iv,function(){e.controller.abort()})}var Xr=null,Sd=0,Ml=0,Cl=null;function lv(e,t){if(Xr===null){var n=Xr=[];Sd=0,Ml=x2(),Cl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Sd++,t.then(j4,j4),t}function j4(){if(--Sd===0&&Xr!==null){Cl!==null&&(Cl.status="fulfilled");var e=Xr;Xr=null,Ml=0,Cl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var V4=G.S;G.S=function(e,t){_w=Ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lv(e,t),V4!==null&&V4(e,t)};var bi=On(null);function Ed(){var e=bi.current;return e!==null?e:le.pooledCache}function Ho(e,t){t===null?oe(bi,bi.current):oe(bi,t.pool)}function q4(){var e=Ed();return e===null?null:{parent:Le._currentValue,pool:e}}var Dl=Error(E(460)),_d=Error(E(474)),jo=Error(E(542)),Vo={then:function(){}};function F4(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Y4(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qn,Qn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Q4(e),e;default:if(typeof t.status=="string")t.then(Qn,Qn);else{if(e=le,e!==null&&100<e.shellSuspendCounter)throw Error(E(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Q4(e),e}throw Ei=t,Dl}}function Si(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ei=n,Dl):n}}var Ei=null;function X4(){if(Ei===null)throw Error(E(459));var e=Ei;return Ei=null,e}function Q4(e){if(e===Dl||e===jo)throw Error(E(483))}var Ol=null,Qr=0;function qo(e){var t=Qr;return Qr+=1,Ol===null&&(Ol=[]),Y4(Ol,e,t)}function Kr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fo(e,t){throw t.$$typeof===Ky?Error(E(525)):(e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function K4(e){function t(w,m){if(e){var p=w.deletions;p===null?(w.deletions=[m],w.flags|=16):p.push(m)}}function n(w,m){if(!e)return null;for(;m!==null;)t(w,m),m=m.sibling;return null}function a(w){for(var m=new Map;w!==null;)w.key!==null?m.set(w.key,w):m.set(w.index,w),w=w.sibling;return m}function i(w,m){return w=Zn(w,m),w.index=0,w.sibling=null,w}function l(w,m,p){return w.index=p,e?(p=w.alternate,p!==null?(p=p.index,p<m?(w.flags|=67108866,m):p):(w.flags|=67108866,m)):(w.flags|=1048576,m)}function r(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function s(w,m,p,b){return m===null||m.tag!==6?(m=fd(p,w.mode,b),m.return=w,m):(m=i(m,p),m.return=w,m)}function c(w,m,p,b){var T=p.type;return T===sl?f(w,m,p.props.children,b,p.key):m!==null&&(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===va&&Si(T)===m.type)?(m=i(m,p.props),Kr(m,p),m.return=w,m):(m=Lo(p.type,p.key,p.props,null,w.mode,b),Kr(m,p),m.return=w,m)}function u(w,m,p,b){return m===null||m.tag!==4||m.stateNode.containerInfo!==p.containerInfo||m.stateNode.implementation!==p.implementation?(m=dd(p,w.mode,b),m.return=w,m):(m=i(m,p.children||[]),m.return=w,m)}function f(w,m,p,b,T){return m===null||m.tag!==7?(m=mi(p,w.mode,b,T),m.return=w,m):(m=i(m,p),m.return=w,m)}function h(w,m,p){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=fd(""+m,w.mode,p),m.return=w,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case uo:return p=Lo(m.type,m.key,m.props,null,w.mode,p),Kr(p,m),p.return=w,p;case _r:return m=dd(m,w.mode,p),m.return=w,m;case va:return m=Si(m),h(w,m,p)}if(Ar(m)||xr(m))return m=mi(m,w.mode,p,null),m.return=w,m;if(typeof m.then=="function")return h(w,qo(m),p);if(m.$$typeof===Yn)return h(w,Go(w,m),p);Fo(w,m)}return null}function d(w,m,p,b){var T=m!==null?m.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return T!==null?null:s(w,m,""+p,b);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case uo:return p.key===T?c(w,m,p,b):null;case _r:return p.key===T?u(w,m,p,b):null;case va:return p=Si(p),d(w,m,p,b)}if(Ar(p)||xr(p))return T!==null?null:f(w,m,p,b,null);if(typeof p.then=="function")return d(w,m,qo(p),b);if(p.$$typeof===Yn)return d(w,m,Go(w,p),b);Fo(w,p)}return null}function g(w,m,p,b,T){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return w=w.get(p)||null,s(m,w,""+b,T);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case uo:return w=w.get(b.key===null?p:b.key)||null,c(m,w,b,T);case _r:return w=w.get(b.key===null?p:b.key)||null,u(m,w,b,T);case va:return b=Si(b),g(w,m,p,b,T)}if(Ar(b)||xr(b))return w=w.get(p)||null,f(m,w,b,T,null);if(typeof b.then=="function")return g(w,m,p,qo(b),T);if(b.$$typeof===Yn)return g(w,m,p,Go(m,b),T);Fo(m,b)}return null}function v(w,m,p,b){for(var T=null,N=null,x=m,C=m=0,A=null;x!==null&&C<p.length;C++){x.index>C?(A=x,x=null):A=x.sibling;var O=d(w,x,p[C],b);if(O===null){x===null&&(x=A);break}e&&x&&O.alternate===null&&t(w,x),m=l(O,m,C),N===null?T=O:N.sibling=O,N=O,x=A}if(C===p.length)return n(w,x),Q&&In(w,C),T;if(x===null){for(;C<p.length;C++)x=h(w,p[C],b),x!==null&&(m=l(x,m,C),N===null?T=x:N.sibling=x,N=x);return Q&&In(w,C),T}for(x=a(x);C<p.length;C++)A=g(x,w,C,p[C],b),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?C:A.key),m=l(A,m,C),N===null?T=A:N.sibling=A,N=A);return e&&x.forEach(function(_e){return t(w,_e)}),Q&&In(w,C),T}function S(w,m,p,b){if(p==null)throw Error(E(151));for(var T=null,N=null,x=m,C=m=0,A=null,O=p.next();x!==null&&!O.done;C++,O=p.next()){x.index>C?(A=x,x=null):A=x.sibling;var _e=d(w,x,O.value,b);if(_e===null){x===null&&(x=A);break}e&&x&&_e.alternate===null&&t(w,x),m=l(_e,m,C),N===null?T=_e:N.sibling=_e,N=_e,x=A}if(O.done)return n(w,x),Q&&In(w,C),T;if(x===null){for(;!O.done;C++,O=p.next())O=h(w,O.value,b),O!==null&&(m=l(O,m,C),N===null?T=O:N.sibling=O,N=O);return Q&&In(w,C),T}for(x=a(x);!O.done;C++,O=p.next())O=g(x,w,C,O.value,b),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?C:O.key),m=l(O,m,C),N===null?T=O:N.sibling=O,N=O);return e&&x.forEach(function(He){return t(w,He)}),Q&&In(w,C),T}function _(w,m,p,b){if(typeof p=="object"&&p!==null&&p.type===sl&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case uo:e:{for(var T=p.key;m!==null;){if(m.key===T){if(T=p.type,T===sl){if(m.tag===7){n(w,m.sibling),b=i(m,p.props.children),b.return=w,w=b;break e}}else if(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===va&&Si(T)===m.type){n(w,m.sibling),b=i(m,p.props),Kr(b,p),b.return=w,w=b;break e}n(w,m);break}else t(w,m);m=m.sibling}p.type===sl?(b=mi(p.props.children,w.mode,b,p.key),b.return=w,w=b):(b=Lo(p.type,p.key,p.props,null,w.mode,b),Kr(b,p),b.return=w,w=b)}return r(w);case _r:e:{for(T=p.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(w,m.sibling),b=i(m,p.children||[]),b.return=w,w=b;break e}else{n(w,m);break}else t(w,m);m=m.sibling}b=dd(p,w.mode,b),b.return=w,w=b}return r(w);case va:return p=Si(p),_(w,m,p,b)}if(Ar(p))return v(w,m,p,b);if(xr(p)){if(T=xr(p),typeof T!="function")throw Error(E(150));return p=T.call(p),S(w,m,p,b)}if(typeof p.then=="function")return _(w,m,qo(p),b);if(p.$$typeof===Yn)return _(w,m,Go(w,p),b);Fo(w,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,m!==null&&m.tag===6?(n(w,m.sibling),b=i(m,p),b.return=w,w=b):(n(w,m),b=fd(p,w.mode,b),b.return=w,w=b),r(w)):n(w,m)}return function(w,m,p,b){try{Qr=0;var T=_(w,m,p,b);return Ol=null,T}catch(x){if(x===Dl||x===jo)throw x;var N=jt(29,x,null,w.mode);return N.lanes=b,N.return=w,N}finally{}}}var _i=K4(!0),Z4=K4(!1),Ma=!1;function xd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ad(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,P&2){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ko(e),D4(e,null,n),t}return zo(e,a,t,n),ko(e)}function Zr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,H3(e,n)}}function Td(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?i=l=r:l=l.next=r,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Nd=!1;function Ir(){if(Nd){var e=Cl;if(e!==null)throw e}}function Jr(e,t,n,a){Nd=!1;var i=e.updateQueue;Ma=!1;var l=i.firstBaseUpdate,r=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,u=c.next;c.next=null,r===null?l=u:r.next=u,r=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==r&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=c))}if(l!==null){var h=i.baseState;r=0,f=u=c=null,s=l;do{var d=s.lane&-536870913,g=d!==s.lane;if(g?(X&d)===d:(a&d)===d){d!==0&&d===Ml&&(Nd=!0),f!==null&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var v=e,S=s;d=t;var _=n;switch(S.tag){case 1:if(v=S.payload,typeof v=="function"){h=v.call(_,h,d);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,d=typeof v=="function"?v.call(_,h,d):v,d==null)break e;h=ce({},h,d);break e;case 2:Ma=!0}}d=s.callback,d!==null&&(e.flags|=64,g&&(e.flags|=8192),g=i.callbacks,g===null?i.callbacks=[d]:g.push(d))}else g={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=g,c=h):f=f.next=g,r|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;g=s,s=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);f===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=f,l===null&&(i.shared.lanes=0),Ua|=r,e.lanes=r,e.memoizedState=h}}function I4(e,t){if(typeof e!="function")throw Error(E(191,e));e.call(t)}function J4(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)I4(n[e],t)}var zl=On(null),Yo=On(0);function W4(e,t){e=la,oe(Yo,e),oe(zl,t),la=e|t.baseLanes}function Md(){oe(Yo,la),oe(zl,zl.current)}function Cd(){la=Yo.current,Ie(zl),Ie(Yo)}var Vt=On(null),sn=null;function Oa(e){var t=e.alternate;oe(Me,Me.current&1),oe(Vt,e),sn===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(sn=e)}function Dd(e){oe(Me,Me.current),oe(Vt,e),sn===null&&(sn=e)}function R4(e){e.tag===22?(oe(Me,Me.current),oe(Vt,e),sn===null&&(sn=e)):za()}function za(){oe(Me,Me.current),oe(Vt,Vt.current)}function qt(e){Ie(Vt),sn===e&&(sn=null),Ie(Me)}var Me=On(0);function Xo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||B2(n)||G2(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rn=0,V=null,ae=null,Ue=null,Qo=!1,kl=!1,xi=!1,Ko=0,Wr=0,Ll=null,sv=0;function Se(){throw Error(E(321))}function Od(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function zd(e,t,n,a,i,l){return Rn=l,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?Lg:Zd,xi=!1,l=n(a,i),xi=!1,kl&&(l=$4(t,n,a,i)),P4(e),l}function P4(e){G.H=$r;var t=ae!==null&&ae.next!==null;if(Rn=0,Ue=ae=V=null,Qo=!1,Wr=0,Ll=null,t)throw Error(E(300));e===null||Be||(e=e.dependencies,e!==null&&Bo(e)&&(Be=!0))}function $4(e,t,n,a){V=e;var i=0;do{if(kl&&(Ll=null),Wr=0,kl=!1,25<=i)throw Error(E(301));if(i+=1,Ue=ae=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}G.H=Ug,l=t(n,a)}while(kl);return l}function ov(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Rr(t):t,e=e.useState()[0],(ae!==null?ae.memoizedState:null)!==e&&(V.flags|=1024),t}function kd(){var e=Ko!==0;return Ko=0,e}function Ld(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ud(e){if(Qo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qo=!1}Rn=0,Ue=ae=V=null,kl=!1,Wr=Ko=0,Ll=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?V.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Ce(){if(ae===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=Ue===null?V.memoizedState:Ue.next;if(t!==null)Ue=t,ae=e;else{if(e===null)throw V.alternate===null?Error(E(467)):Error(E(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},Ue===null?V.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Zo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rr(e){var t=Wr;return Wr+=1,Ll===null&&(Ll=[]),e=Y4(Ll,e,t),t=V,(Ue===null?t.memoizedState:Ue.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?Lg:Zd),e}function Io(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rr(e);if(e.$$typeof===Yn)return tt(e)}throw Error(E(438,String(e)))}function Bd(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=V.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Zo(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=Zy;return t.index++,n}function Pn(e,t){return typeof t=="function"?t(e):t}function Jo(e){var t=Ce();return Gd(t,ae,e)}function Gd(e,t,n){var a=e.queue;if(a===null)throw Error(E(311));a.lastRenderedReducer=n;var i=e.baseQueue,l=a.pending;if(l!==null){if(i!==null){var r=i.next;i.next=l.next,l.next=r}t.baseQueue=i=l,a.pending=null}if(l=e.baseState,i===null)e.memoizedState=l;else{t=i.next;var s=r=null,c=null,u=t,f=!1;do{var h=u.lane&-536870913;if(h!==u.lane?(X&h)===h:(Rn&h)===h){var d=u.revertLane;if(d===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Ml&&(f=!0);else if((Rn&d)===d){u=u.next,d===Ml&&(f=!0);continue}else h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(s=c=h,r=l):c=c.next=h,V.lanes|=d,Ua|=d;h=u.action,xi&&n(l,h),l=u.hasEagerState?u.eagerState:n(l,h)}else d={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(s=c=d,r=l):c=c.next=d,V.lanes|=h,Ua|=h;u=u.next}while(u!==null&&u!==t);if(c===null?r=l:c.next=s,!Ht(l,e.memoizedState)&&(Be=!0,f&&(n=Cl,n!==null)))throw n;e.memoizedState=l,e.baseState=r,e.baseQueue=c,a.lastRenderedState=l}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Hd(e){var t=Ce(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var r=i=i.next;do l=e(l,r.action),r=r.next;while(r!==i);Ht(l,t.memoizedState)||(Be=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,a]}function eg(e,t,n){var a=V,i=Ce(),l=Q;if(l){if(n===void 0)throw Error(E(407));n=n()}else n=t();var r=!Ht((ae||i).memoizedState,n);if(r&&(i.memoizedState=n,Be=!0),i=i.queue,qd(ag.bind(null,a,i,e),[e]),i.getSnapshot!==t||r||Ue!==null&&Ue.memoizedState.tag&1){if(a.flags|=2048,Ul(9,{destroy:void 0},ng.bind(null,a,i,n,t),null),le===null)throw Error(E(349));l||Rn&127||tg(a,t,n)}return n}function tg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=Zo(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ng(e,t,n,a){t.value=n,t.getSnapshot=a,ig(t)&&lg(e)}function ag(e,t,n){return n(function(){ig(t)&&lg(e)})}function ig(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function lg(e){var t=wi(e,2);t!==null&&bt(t,e,2)}function jd(e){var t=rt();if(typeof e=="function"){var n=e;if(e=n(),xi){Sa(!0);try{n()}finally{Sa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:e},t}function rg(e,t,n,a){return e.baseState=n,Gd(e,ae,typeof a=="function"?a:Pn)}function cv(e,t,n,a,i){if(Po(e))throw Error(E(485));if(e=t.action,e!==null){var l={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){l.listeners.push(r)}};G.T!==null?n(!0):l.isTransition=!1,a(l),n=t.pending,n===null?(l.next=t.pending=l,sg(t,l)):(l.next=n.next,t.pending=n.next=l)}}function sg(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var l=G.T,r={};G.T=r;try{var s=n(i,a),c=G.S;c!==null&&c(r,s),og(e,t,s)}catch(u){Vd(e,t,u)}finally{l!==null&&r.types!==null&&(l.types=r.types),G.T=l}}else try{l=n(i,a),og(e,t,l)}catch(u){Vd(e,t,u)}}function og(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){cg(e,t,a)},function(a){return Vd(e,t,a)}):cg(e,t,n)}function cg(e,t,n){t.status="fulfilled",t.value=n,ug(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,sg(e,n)))}function Vd(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ug(t),t=t.next;while(t!==a)}e.action=null}function ug(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fg(e,t){return t}function dg(e,t){if(Q){var n=le.formState;if(n!==null){e:{var a=V;if(Q){if(ue){t:{for(var i=ue,l=rn;i.nodeType!==8;){if(!l){i=null;break t}if(i=on(i.nextSibling),i===null){i=null;break t}}l=i.data,i=l==="F!"||l==="F"?i:null}if(i){ue=on(i.nextSibling),a=i.data==="F!";break e}}Ta(a)}a=!1}a&&(t=n[0])}}return n=rt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fg,lastRenderedState:t},n.queue=a,n=Og.bind(null,V,a),a.dispatch=n,a=jd(!1),l=Kd.bind(null,V,!1,a.queue),a=rt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=cv.bind(null,V,i,l,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function hg(e){var t=Ce();return gg(t,ae,e)}function gg(e,t,n){if(t=Gd(e,t,fg)[0],e=Jo(Pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Rr(t)}catch(r){throw r===Dl?jo:r}else a=t;t=Ce();var i=t.queue,l=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,Ul(9,{destroy:void 0},uv.bind(null,i,n),null)),[a,l,e]}function uv(e,t){e.action=t}function wg(e){var t=Ce(),n=ae;if(n!==null)return gg(t,n,e);Ce(),t=t.memoizedState,n=Ce();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ul(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=V.updateQueue,t===null&&(t=Zo(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function mg(){return Ce().memoizedState}function Wo(e,t,n,a){var i=rt();V.flags|=e,i.memoizedState=Ul(1|t,{destroy:void 0},n,a===void 0?null:a)}function Ro(e,t,n,a){var i=Ce();a=a===void 0?null:a;var l=i.memoizedState.inst;ae!==null&&a!==null&&Od(a,ae.memoizedState.deps)?i.memoizedState=Ul(t,l,n,a):(V.flags|=e,i.memoizedState=Ul(1|t,l,n,a))}function yg(e,t){Wo(8390656,8,e,t)}function qd(e,t){Ro(2048,8,e,t)}function fv(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=Zo(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function pg(e){var t=Ce().memoizedState;return fv({ref:t,nextImpl:e}),function(){if(P&2)throw Error(E(440));return t.impl.apply(void 0,arguments)}}function vg(e,t){return Ro(4,2,e,t)}function bg(e,t){return Ro(4,4,e,t)}function Sg(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eg(e,t,n){n=n!=null?n.concat([e]):null,Ro(4,4,Sg.bind(null,t,e),n)}function Fd(){}function _g(e,t){var n=Ce();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Od(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function xg(e,t){var n=Ce();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Od(t,a[1]))return a[0];if(a=e(),xi){Sa(!0);try{e()}finally{Sa(!1)}}return n.memoizedState=[a,t],a}function Yd(e,t,n){return n===void 0||Rn&1073741824&&!(X&261930)?e.memoizedState=t:(e.memoizedState=n,e=Aw(),V.lanes|=e,Ua|=e,n)}function Ag(e,t,n,a){return Ht(n,t)?n:zl.current!==null?(e=Yd(e,n,a),Ht(e,t)||(Be=!0),e):!(Rn&42)||Rn&1073741824&&!(X&261930)?(Be=!0,e.memoizedState=n):(e=Aw(),V.lanes|=e,Ua|=e,t)}function Tg(e,t,n,a,i){var l=R.p;R.p=l!==0&&8>l?l:8;var r=G.T,s={};G.T=s,Kd(e,!1,t,n);try{var c=i(),u=G.S;if(u!==null&&u(s,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=rv(c,a);Pr(e,t,f,Xt(e))}else Pr(e,t,a,Xt(e))}catch(h){Pr(e,t,{then:function(){},status:"rejected",reason:h},Xt())}finally{R.p=l,r!==null&&s.types!==null&&(r.types=s.types),G.T=r}}function dv(){}function Xd(e,t,n,a){if(e.tag!==5)throw Error(E(476));var i=Ng(e).queue;Tg(e,i,t,oi,n===null?dv:function(){return Mg(e),n(a)})}function Ng(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oi,baseState:oi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:oi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mg(e){var t=Ng(e);t.next===null&&(t=e.alternate.memoizedState),Pr(e,t.next.queue,{},Xt())}function Qd(){return tt(ws)}function Cg(){return Ce().memoizedState}function Dg(){return Ce().memoizedState}function hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=Ca(n);var a=Da(t,e,n);a!==null&&(bt(a,t,n),Zr(a,t,n)),t={cache:bd()},e.payload=t;return}t=t.return}}function gv(e,t,n){var a=Xt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Po(e)?zg(t,n):(n=cd(e,t,n,a),n!==null&&(bt(n,e,a),kg(n,t,a)))}function Og(e,t,n){var a=Xt();Pr(e,t,n,a)}function Pr(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Po(e))zg(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var r=t.lastRenderedState,s=l(r,n);if(i.hasEagerState=!0,i.eagerState=s,Ht(s,r))return zo(e,t,i,0),le===null&&Oo(),!1}catch{}finally{}if(n=cd(e,t,i,a),n!==null)return bt(n,e,a),kg(n,t,a),!0}return!1}function Kd(e,t,n,a){if(a={lane:2,revertLane:x2(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Po(e)){if(t)throw Error(E(479))}else t=cd(e,n,a,2),t!==null&&bt(t,e,2)}function Po(e){var t=e.alternate;return e===V||t!==null&&t===V}function zg(e,t){kl=Qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kg(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,H3(e,n)}}var $r={readContext:tt,use:Io,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useLayoutEffect:Se,useInsertionEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useSyncExternalStore:Se,useId:Se,useHostTransitionStatus:Se,useFormState:Se,useActionState:Se,useOptimistic:Se,useMemoCache:Se,useCacheRefresh:Se};$r.useEffectEvent=Se;var Lg={readContext:tt,use:Io,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:yg,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Wo(4194308,4,Sg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wo(4194308,4,e,t)},useInsertionEffect:function(e,t){Wo(4,2,e,t)},useMemo:function(e,t){var n=rt();t=t===void 0?null:t;var a=e();if(xi){Sa(!0);try{e()}finally{Sa(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=rt();if(n!==void 0){var i=n(t);if(xi){Sa(!0);try{n(t)}finally{Sa(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=gv.bind(null,V,e),[a.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=jd(e);var t=e.queue,n=Og.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Fd,useDeferredValue:function(e,t){var n=rt();return Yd(n,e,t)},useTransition:function(){var e=jd(!1);return e=Tg.bind(null,V,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=V,i=rt();if(Q){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),le===null)throw Error(E(349));X&127||tg(a,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,yg(ag.bind(null,a,l,e),[e]),a.flags|=2048,Ul(9,{destroy:void 0},ng.bind(null,a,l,n,t),null),n},useId:function(){var e=rt(),t=le.identifierPrefix;if(Q){var n=Ln,a=kn;n=(a&~(1<<32-Gt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ko++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=sv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qd,useFormState:dg,useActionState:dg,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Kd.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Bd,useCacheRefresh:function(){return rt().memoizedState=hv.bind(null,V)},useEffectEvent:function(e){var t=rt(),n={impl:e};return t.memoizedState=n,function(){if(P&2)throw Error(E(440));return n.impl.apply(void 0,arguments)}}},Zd={readContext:tt,use:Io,useCallback:_g,useContext:tt,useEffect:qd,useImperativeHandle:Eg,useInsertionEffect:vg,useLayoutEffect:bg,useMemo:xg,useReducer:Jo,useRef:mg,useState:function(){return Jo(Pn)},useDebugValue:Fd,useDeferredValue:function(e,t){var n=Ce();return Ag(n,ae.memoizedState,e,t)},useTransition:function(){var e=Jo(Pn)[0],t=Ce().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:eg,useId:Cg,useHostTransitionStatus:Qd,useFormState:hg,useActionState:hg,useOptimistic:function(e,t){var n=Ce();return rg(n,ae,e,t)},useMemoCache:Bd,useCacheRefresh:Dg};Zd.useEffectEvent=pg;var Ug={readContext:tt,use:Io,useCallback:_g,useContext:tt,useEffect:qd,useImperativeHandle:Eg,useInsertionEffect:vg,useLayoutEffect:bg,useMemo:xg,useReducer:Hd,useRef:mg,useState:function(){return Hd(Pn)},useDebugValue:Fd,useDeferredValue:function(e,t){var n=Ce();return ae===null?Yd(n,e,t):Ag(n,ae.memoizedState,e,t)},useTransition:function(){var e=Hd(Pn)[0],t=Ce().memoizedState;return[typeof e=="boolean"?e:Rr(e),t]},useSyncExternalStore:eg,useId:Cg,useHostTransitionStatus:Qd,useFormState:wg,useActionState:wg,useOptimistic:function(e,t){var n=Ce();return ae!==null?rg(n,ae,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Bd,useCacheRefresh:Dg};Ug.useEffectEvent=pg;function Id(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jd={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xt(),i=Ca(a);i.payload=t,n!=null&&(i.callback=n),t=Da(e,i,a),t!==null&&(bt(t,e,a),Zr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xt(),i=Ca(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Da(e,i,a),t!==null&&(bt(t,e,a),Zr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),a=Ca(n);a.tag=2,t!=null&&(a.callback=t),t=Da(e,a,n),t!==null&&(bt(t,e,n),Zr(t,e,n))}};function Bg(e,t,n,a,i,l,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,l,r):t.prototype&&t.prototype.isPureReactComponent?!jr(n,a)||!jr(i,l):!0}function Gg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Jd.enqueueReplaceState(t,t.state,null)}function Ai(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=ce({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function Hg(e){Do(e)}function jg(e){console.error(e)}function Vg(e){Do(e)}function $o(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function qg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Wd(e,t,n){return n=Ca(n),n.tag=3,n.payload={element:null},n.callback=function(){$o(e,t)},n}function Fg(e){return e=Ca(e),e.tag=3,e}function Yg(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var l=a.value;e.payload=function(){return i(l)},e.callback=function(){qg(t,n,a)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){qg(t,n,a),typeof i!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function wv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Nl(t,n,i,!0),n=Vt.current,n!==null){switch(n.tag){case 31:case 13:return sn===null?fc():n.alternate===null&&Ee===0&&(Ee=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Vo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),S2(e,a,i)),!1;case 22:return n.flags|=65536,a===Vo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),S2(e,a,i)),!1}throw Error(E(435,n.tag))}return S2(e,a,i),fc(),!1}if(Q)return t=Vt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==wd&&(e=Error(E(422),{cause:a}),Fr(nn(e,n)))):(a!==wd&&(t=Error(E(423),{cause:a}),Fr(nn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=nn(a,n),i=Wd(e.stateNode,a,i),Td(e,i),Ee!==4&&(Ee=2)),!1;var l=Error(E(520),{cause:a});if(l=nn(l,n),ss===null?ss=[l]:ss.push(l),Ee!==4&&(Ee=2),t===null)return!0;a=nn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Wd(n.stateNode,a,e),Td(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(Ba===null||!Ba.has(l))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Fg(i),Yg(i,e,n,a),Td(n,i),!1}n=n.return}while(n!==null);return!1}var Rd=Error(E(461)),Be=!1;function nt(e,t,n,a){t.child=e===null?Z4(t,null,n,a):_i(t,e.child,n,a)}function Xg(e,t,n,a,i){n=n.render;var l=t.ref;if("ref"in a){var r={};for(var s in a)s!=="ref"&&(r[s]=a[s])}else r=a;return vi(t),a=zd(e,t,n,r,l,i),s=kd(),e!==null&&!Be?(Ld(e,t,i),$n(e,t,i)):(Q&&s&&hd(t),t.flags|=1,nt(e,t,a,i),t.child)}function Qg(e,t,n,a,i){if(e===null){var l=n.type;return typeof l=="function"&&!ud(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,Kg(e,t,l,a,i)):(e=Lo(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!l2(e,i)){var r=l.memoizedProps;if(n=n.compare,n=n!==null?n:jr,n(r,a)&&e.ref===t.ref)return $n(e,t,i)}return t.flags|=1,e=Zn(l,a),e.ref=t.ref,e.return=t,t.child=e}function Kg(e,t,n,a,i){if(e!==null){var l=e.memoizedProps;if(jr(l,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=l,l2(e,i))e.flags&131072&&(Be=!0);else return t.lanes=e.lanes,$n(e,t,i)}return Pd(e,t,n,a,i)}function Zg(e,t,n,a){var i=a.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~l}else a=0,t.child=null;return Ig(e,t,l,n,a)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ho(t,l!==null?l.cachePool:null),l!==null?W4(t,l):Md(),R4(t);else return a=t.lanes=536870912,Ig(e,t,l!==null?l.baseLanes|n:n,n,a)}else l!==null?(Ho(t,l.cachePool),W4(t,l),za(),t.memoizedState=null):(e!==null&&Ho(t,null),Md(),za());return nt(e,t,i,n),t.child}function es(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ig(e,t,n,a,i){var l=Ed();return l=l===null?null:{parent:Le._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&Ho(t,null),Md(),R4(t),e!==null&&Nl(e,t,a,!0),t.childLanes=i,null}function ec(e,t){return t=nc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jg(e,t,n){return _i(t,e.child,null,n),e=ec(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function mv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Q){if(a.mode==="hidden")return e=ec(t,a),t.lanes=536870912,es(null,e);if(Dd(t),(e=ue)?(e=sm(e,rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:kn,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},n=z4(e),n.return=t,t.child=n,et=t,ue=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return ec(t,a)}var l=e.memoizedState;if(l!==null){var r=l.dehydrated;if(Dd(t),i)if(t.flags&256)t.flags&=-257,t=Jg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(E(558));else if(Be||Nl(e,t,n,!1),i=(n&e.childLanes)!==0,Be||i){if(a=le,a!==null&&(r=j3(a,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,wi(e,r),bt(a,e,r),Rd;fc(),t=Jg(e,t,n)}else e=l.treeContext,ue=on(r.nextSibling),et=t,Q=!0,Aa=null,rn=!1,e!==null&&U4(t,e),t=ec(t,a),t.flags|=4096;return t}return e=Zn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function tc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(E(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Pd(e,t,n,a,i){return vi(t),n=zd(e,t,n,a,void 0,i),a=kd(),e!==null&&!Be?(Ld(e,t,i),$n(e,t,i)):(Q&&a&&hd(t),t.flags|=1,nt(e,t,n,i),t.child)}function Wg(e,t,n,a,i,l){return vi(t),t.updateQueue=null,n=$4(t,a,n,i),P4(e),a=kd(),e!==null&&!Be?(Ld(e,t,l),$n(e,t,l)):(Q&&a&&hd(t),t.flags|=1,nt(e,t,n,l),t.child)}function Rg(e,t,n,a,i){if(vi(t),t.stateNode===null){var l=_l,r=n.contextType;typeof r=="object"&&r!==null&&(l=tt(r)),l=new n(a,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Jd,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=a,l.state=t.memoizedState,l.refs={},xd(t),r=n.contextType,l.context=typeof r=="object"&&r!==null?tt(r):_l,l.state=t.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Id(t,n,r,a),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(r=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),r!==l.state&&Jd.enqueueReplaceState(l,l.state,null),Jr(t,a,l,i),Ir(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){l=t.stateNode;var s=t.memoizedProps,c=Ai(n,s);l.props=c;var u=l.context,f=n.contextType;r=_l,typeof f=="object"&&f!==null&&(r=tt(f));var h=n.getDerivedStateFromProps;f=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s||u!==r)&&Gg(t,l,a,r),Ma=!1;var d=t.memoizedState;l.state=d,Jr(t,a,l,i),Ir(),u=t.memoizedState,s||d!==u||Ma?(typeof h=="function"&&(Id(t,n,h,a),u=t.memoizedState),(c=Ma||Bg(t,n,c,a,d,u,r))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),l.props=a,l.state=u,l.context=r,a=c):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,Ad(e,t),r=t.memoizedProps,f=Ai(n,r),l.props=f,h=t.pendingProps,d=l.context,u=n.contextType,c=_l,typeof u=="object"&&u!==null&&(c=tt(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(r!==h||d!==c)&&Gg(t,l,a,c),Ma=!1,d=t.memoizedState,l.state=d,Jr(t,a,l,i),Ir();var g=t.memoizedState;r!==h||d!==g||Ma||e!==null&&e.dependencies!==null&&Bo(e.dependencies)?(typeof s=="function"&&(Id(t,n,s,a),g=t.memoizedState),(f=Ma||Bg(t,n,f,a,d,g,c)||e!==null&&e.dependencies!==null&&Bo(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,g,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,g,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),l.props=a,l.state=g,l.context=c,a=f):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return l=a,tc(e,t),a=(t.flags&128)!==0,l||a?(l=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,n,i)):nt(e,t,n,i),t.memoizedState=l.state,e=t.child):e=$n(e,t,i),e}function Pg(e,t,n,a){return yi(),t.flags|=256,nt(e,t,n,a),t.child}var $d={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function e2(e){return{baseLanes:e,cachePool:q4()}}function t2(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Yt),e}function $g(e,t,n){var a=t.pendingProps,i=!1,l=(t.flags&128)!==0,r;if((r=l)||(r=e!==null&&e.memoizedState===null?!1:(Me.current&2)!==0),r&&(i=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(Q){if(i?Oa(t):za(),(e=ue)?(e=sm(e,rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:kn,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},n=z4(e),n.return=t,t.child=n,et=t,ue=null)):e=null,e===null)throw Ta(t);return G2(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,i?(za(),i=t.mode,s=nc({mode:"hidden",children:s},i),a=mi(a,i,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=e2(n),a.childLanes=t2(e,r,n),t.memoizedState=$d,es(null,a)):(Oa(t),n2(t,s))}var c=e.memoizedState;if(c!==null&&(s=c.dehydrated,s!==null)){if(l)t.flags&256?(Oa(t),t.flags&=-257,t=a2(e,t,n)):t.memoizedState!==null?(za(),t.child=e.child,t.flags|=128,t=null):(za(),s=a.fallback,i=t.mode,a=nc({mode:"visible",children:a.children},i),s=mi(s,i,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,_i(t,e.child,null,n),a=t.child,a.memoizedState=e2(n),a.childLanes=t2(e,r,n),t.memoizedState=$d,t=es(null,a));else if(Oa(t),G2(s)){if(r=s.nextSibling&&s.nextSibling.dataset,r)var u=r.dgst;r=u,a=Error(E(419)),a.stack="",a.digest=r,Fr({value:a,source:null,stack:null}),t=a2(e,t,n)}else if(Be||Nl(e,t,n,!1),r=(n&e.childLanes)!==0,Be||r){if(r=le,r!==null&&(a=j3(r,n),a!==0&&a!==c.retryLane))throw c.retryLane=a,wi(e,a),bt(r,e,a),Rd;B2(s)||fc(),t=a2(e,t,n)}else B2(s)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ue=on(s.nextSibling),et=t,Q=!0,Aa=null,rn=!1,e!==null&&U4(t,e),t=n2(t,a.children),t.flags|=4096);return t}return i?(za(),s=a.fallback,i=t.mode,c=e.child,u=c.sibling,a=Zn(c,{mode:"hidden",children:a.children}),a.subtreeFlags=c.subtreeFlags&65011712,u!==null?s=Zn(u,s):(s=mi(s,i,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,es(null,a),a=t.child,s=e.child.memoizedState,s===null?s=e2(n):(i=s.cachePool,i!==null?(c=Le._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=q4(),s={baseLanes:s.baseLanes|n,cachePool:i}),a.memoizedState=s,a.childLanes=t2(e,r,n),t.memoizedState=$d,es(e.child,a)):(Oa(t),n=e.child,e=n.sibling,n=Zn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function n2(e,t){return t=nc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function nc(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function a2(e,t,n){return _i(t,e.child,null,n),e=n2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ew(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),pd(e.return,t,n)}function i2(e,t,n,a,i,l){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:l}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i,r.treeForkCount=l)}function tw(e,t,n){var a=t.pendingProps,i=a.revealOrder,l=a.tail;a=a.children;var r=Me.current,s=(r&2)!==0;if(s?(r=r&1|2,t.flags|=128):r&=1,oe(Me,r),nt(e,t,a,n),a=Q?qr:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ew(e,n,t);else if(e.tag===19)ew(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Xo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),i2(t,!1,i,n,l,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Xo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}i2(t,!0,n,null,l,a);break;case"together":i2(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function $n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ua|=t.lanes,!(n&t.childLanes))if(e!==null){if(Nl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function l2(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Bo(e)))}function yv(e,t,n){switch(t.tag){case 3:ho(t,t.stateNode.containerInfo),Na(t,Le,e.memoizedState.cache),yi();break;case 27:case 5:Cf(t);break;case 4:ho(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Dd(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Oa(t),t.flags|=128,null):n&t.child.childLanes?$g(e,t,n):(Oa(t),e=$n(e,t,n),e!==null?e.sibling:null);Oa(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Nl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return tw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),oe(Me,Me.current),a)break;return null;case 22:return t.lanes=0,Zg(e,t,n,t.pendingProps);case 24:Na(t,Le,e.memoizedState.cache)}return $n(e,t,n)}function nw(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!l2(e,n)&&!(t.flags&128))return Be=!1,yv(e,t,n);Be=!!(e.flags&131072)}else Be=!1,Q&&t.flags&1048576&&L4(t,qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Si(t.elementType),t.type=e,typeof e=="function")ud(e)?(a=Ai(e,a),t.tag=1,t=Rg(null,t,e,a,n)):(t.tag=0,t=Pd(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===Ef){t.tag=11,t=Xg(null,t,e,a,n);break e}else if(i===Af){t.tag=14,t=Qg(null,t,e,a,n);break e}}throw t=Nf(e)||e,Error(E(306,t,""))}}return t;case 0:return Pd(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=Ai(a,t.pendingProps),Rg(e,t,a,i,n);case 3:e:{if(ho(t,t.stateNode.containerInfo),e===null)throw Error(E(387));a=t.pendingProps;var l=t.memoizedState;i=l.element,Ad(e,t),Jr(t,a,null,n);var r=t.memoizedState;if(a=r.cache,Na(t,Le,a),a!==l.cache&&vd(t,[Le],n,!0),Ir(),a=r.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=Pg(e,t,a,n);break e}else if(a!==i){i=nn(Error(E(424)),t),Fr(i),t=Pg(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ue=on(e.firstChild),et=t,Q=!0,Aa=null,rn=!0,n=Z4(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(yi(),a===i){t=$n(e,t,n);break e}nt(e,t,a,n)}t=t.child}return t;case 26:return tc(e,t),e===null?(n=hm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Q||(n=t.type,e=t.pendingProps,a=pc(ba.current).createElement(n),a[$e]=t,a[gt]=e,at(a,n,e),Je(a),t.stateNode=a):t.memoizedState=hm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Cf(t),e===null&&Q&&(a=t.stateNode=um(t.type,t.pendingProps,ba.current),et=t,rn=!0,i=ue,Va(t.type)?(H2=i,ue=on(a.firstChild)):ue=i),nt(e,t,t.pendingProps.children,n),tc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Q&&((i=a=ue)&&(a=Zv(a,t.type,t.pendingProps,rn),a!==null?(t.stateNode=a,et=t,ue=on(a.firstChild),rn=!1,i=!0):i=!1),i||Ta(t)),Cf(t),i=t.type,l=t.pendingProps,r=e!==null?e.memoizedProps:null,a=l.children,k2(i,l)?a=null:r!==null&&k2(i,r)&&(t.flags|=32),t.memoizedState!==null&&(i=zd(e,t,ov,null,null,n),ws._currentValue=i),tc(e,t),nt(e,t,a,n),t.child;case 6:return e===null&&Q&&((e=n=ue)&&(n=Iv(n,t.pendingProps,rn),n!==null?(t.stateNode=n,et=t,ue=null,e=!0):e=!1),e||Ta(t)),null;case 13:return $g(e,t,n);case 4:return ho(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_i(t,null,a,n):nt(e,t,a,n),t.child;case 11:return Xg(e,t,t.type,t.pendingProps,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Na(t,t.type,a.value),nt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,vi(t),i=tt(i),a=a(i),t.flags|=1,nt(e,t,a,n),t.child;case 14:return Qg(e,t,t.type,t.pendingProps,n);case 15:return Kg(e,t,t.type,t.pendingProps,n);case 19:return tw(e,t,n);case 31:return mv(e,t,n);case 22:return Zg(e,t,n,t.pendingProps);case 24:return vi(t),a=tt(Le),e===null?(i=Ed(),i===null&&(i=le,l=bd(),i.pooledCache=l,l.refCount++,l!==null&&(i.pooledCacheLanes|=n),i=l),t.memoizedState={parent:a,cache:i},xd(t),Na(t,Le,i)):(e.lanes&n&&(Ad(e,t),Jr(t,null,null,n),Ir()),i=e.memoizedState,l=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Na(t,Le,a)):(a=l.cache,Na(t,Le,a),a!==i.cache&&vd(t,[Le],n,!0))),nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(E(156,t.tag))}function ea(e){e.flags|=4}function r2(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Cw())e.flags|=8192;else throw Ei=Vo,_d}else e.flags&=-16777217}function aw(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t))if(Cw())e.flags|=8192;else throw Ei=Vo,_d}function ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?B3():536870912,e.lanes|=t,jl|=t)}function ts(e,t){if(!Q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function pv(e,t,n){var a=t.pendingProps;switch(gd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return fe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wn(Le),cl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Tl(t)?ea(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,md())),fe(t),null;case 26:var i=t.type,l=t.memoizedState;return e===null?(ea(t),l!==null?(fe(t),aw(t,l)):(fe(t),r2(t,i,null,a,n))):l?l!==e.memoizedState?(ea(t),fe(t),aw(t,l)):(fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ea(t),fe(t),r2(t,i,e,a,n)),null;case 27:if(go(t),n=ba.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ea(t);else{if(!a){if(t.stateNode===null)throw Error(E(166));return fe(t),null}e=zn.current,Tl(t)?B4(t):(e=um(i,a,n),t.stateNode=e,ea(t))}return fe(t),null;case 5:if(go(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ea(t);else{if(!a){if(t.stateNode===null)throw Error(E(166));return fe(t),null}if(l=zn.current,Tl(t))B4(t);else{var r=pc(ba.current);switch(l){case 1:l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":l=r.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is=="string"?r.createElement(i,{is:a.is}):r.createElement(i)}}l[$e]=t,l[gt]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)l.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=l;e:switch(at(l,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ea(t)}}return fe(t),r2(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ea(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(E(166));if(e=ba.current,Tl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=et,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||$w(e.nodeValue,n)),e||Ta(t,!0)}else e=pc(e).createTextNode(a),e[$e]=t,t.stateNode=e}return fe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Tl(t),n!==null){if(e===null){if(!a)throw Error(E(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(557));e[$e]=t}else yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fe(t),e=!1}else n=md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if(t.flags&128)throw Error(E(558))}return fe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Tl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[$e]=t}else yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fe(t),i=!1}else i=md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),t.flags&128?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ac(t,t.updateQueue),fe(t),null);case 4:return cl(),e===null&&M2(t.stateNode.containerInfo),fe(t),null;case 10:return Wn(t.type),fe(t),null;case 19:if(Ie(Me),a=t.memoizedState,a===null)return fe(t),null;if(i=(t.flags&128)!==0,l=a.rendering,l===null)if(i)ts(a,!1);else{if(Ee!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Xo(e),l!==null){for(t.flags|=128,ts(a,!1),e=l.updateQueue,t.updateQueue=e,ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)O4(n,e),n=n.sibling;return oe(Me,Me.current&1|2),Q&&In(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ut()>oc&&(t.flags|=128,i=!0,ts(a,!1),t.lanes=4194304)}else{if(!i)if(e=Xo(l),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ac(t,e),ts(a,!0),a.tail===null&&a.tailMode==="hidden"&&!l.alternate&&!Q)return fe(t),null}else 2*Ut()-a.renderingStartTime>oc&&n!==536870912&&(t.flags|=128,i=!0,ts(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(e=a.last,e!==null?e.sibling=l:t.child=l,a.last=l)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ut(),e.sibling=null,n=Me.current,oe(Me,i?n&1|2:n&1),Q&&In(t,a.treeForkCount),e):(fe(t),null);case 22:case 23:return qt(t),Cd(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),n=t.updateQueue,n!==null&&ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Ie(bi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wn(Le),fe(t),null;case 25:return null;case 30:return null}throw Error(E(156,t.tag))}function vv(e,t){switch(gd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(Le),cl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return go(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(E(340));yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Me),null;case 4:return cl(),null;case 10:return Wn(t.type),null;case 22:case 23:return qt(t),Cd(),e!==null&&Ie(bi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wn(Le),null;case 25:return null;default:return null}}function iw(e,t){switch(gd(t),t.tag){case 3:Wn(Le),cl();break;case 26:case 27:case 5:go(t);break;case 4:cl();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:Ie(Me);break;case 10:Wn(t.type);break;case 22:case 23:qt(t),Cd(),e!==null&&Ie(bi);break;case 24:Wn(Le)}}function ns(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var l=n.create,r=n.inst;a=l(),r.destroy=a}n=n.next}while(n!==i)}}catch(s){te(t,t.return,s)}}function ka(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var l=i.next;a=l;do{if((a.tag&e)===e){var r=a.inst,s=r.destroy;if(s!==void 0){r.destroy=void 0,i=t;var c=n,u=s;try{u()}catch(f){te(i,c,f)}}}a=a.next}while(a!==l)}}catch(f){te(t,t.return,f)}}function lw(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{J4(t,n)}catch(a){te(e,e.return,a)}}}function rw(e,t,n){n.props=Ai(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){te(e,t,a)}}function as(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){te(e,t,i)}}function Un(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){te(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){te(e,t,i)}else n.current=null}function sw(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){te(e,e.return,i)}}function s2(e,t,n){try{var a=e.stateNode;qv(a,e.type,n,t),a[gt]=t}catch(i){te(e,e.return,i)}}function ow(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function o2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ow(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Va(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function c2(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qn));else if(a!==4&&(a===27&&Va(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(c2(e,t,n),e=e.sibling;e!==null;)c2(e,t,n),e=e.sibling}function ic(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Va(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function cw(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);at(t,a,n),t[$e]=e,t[gt]=n}catch(l){te(e,e.return,l)}}var ta=!1,Ge=!1,u2=!1,uw=typeof WeakSet=="function"?WeakSet:Set,We=null;function bv(e,t){if(e=e.containerInfo,O2=Ac,e=E4(e),ad(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var r=0,s=-1,c=-1,u=0,f=0,h=e,d=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(s=r+i),h!==l||a!==0&&h.nodeType!==3||(c=r+a),h.nodeType===3&&(r+=h.nodeValue.length),(g=h.firstChild)!==null;)d=h,h=g;for(;;){if(h===e)break t;if(d===n&&++u===i&&(s=r),d===l&&++f===a&&(c=r),(g=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(z2={focusedElem:e,selectionRange:n},Ac=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,i=l.memoizedProps,l=l.memoizedState,a=n.stateNode;try{var v=Ai(n.type,i);e=a.getSnapshotBeforeUpdate(v,l),a.__reactInternalSnapshotBeforeUpdate=e}catch(S){te(n,n.return,S)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)U2(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":U2(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(E(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function fw(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:aa(e,n),a&4&&ns(5,n);break;case 1:if(aa(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(r){te(n,n.return,r)}else{var i=Ai(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){te(n,n.return,r)}}a&64&&lw(n),a&512&&as(n,n.return);break;case 3:if(aa(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{J4(e,t)}catch(r){te(n,n.return,r)}}break;case 27:t===null&&a&4&&cw(n);case 26:case 5:aa(e,n),t===null&&a&4&&sw(n),a&512&&as(n,n.return);break;case 12:aa(e,n);break;case 31:aa(e,n),a&4&&gw(e,n);break;case 13:aa(e,n),a&4&&ww(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Cv.bind(null,n),Jv(e,n))));break;case 22:if(a=n.memoizedState!==null||ta,!a){t=t!==null&&t.memoizedState!==null||Ge,i=ta;var l=Ge;ta=a,(Ge=t)&&!l?ia(e,n,(n.subtreeFlags&8772)!==0):aa(e,n),ta=i,Ge=l}break;case 30:break;default:aa(e,n)}}function dw(e){var t=e.alternate;t!==null&&(e.alternate=null,dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Vf(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var we=null,mt=!1;function na(e,t,n){for(n=n.child;n!==null;)hw(e,t,n),n=n.sibling}function hw(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Nr,n)}catch{}switch(n.tag){case 26:Ge||Un(n,t),na(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ge||Un(n,t);var a=we,i=mt;Va(n.type)&&(we=n.stateNode,mt=!1),na(e,t,n),ds(n.stateNode),we=a,mt=i;break;case 5:Ge||Un(n,t);case 6:if(a=we,i=mt,we=null,na(e,t,n),we=a,mt=i,we!==null)if(mt)try{(we.nodeType===9?we.body:we.nodeName==="HTML"?we.ownerDocument.body:we).removeChild(n.stateNode)}catch(l){te(n,t,l)}else try{we.removeChild(n.stateNode)}catch(l){te(n,t,l)}break;case 18:we!==null&&(mt?(e=we,lm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Zl(e)):lm(we,n.stateNode));break;case 4:a=we,i=mt,we=n.stateNode.containerInfo,mt=!0,na(e,t,n),we=a,mt=i;break;case 0:case 11:case 14:case 15:ka(2,n,t),Ge||ka(4,n,t),na(e,t,n);break;case 1:Ge||(Un(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&rw(n,t,a)),na(e,t,n);break;case 21:na(e,t,n);break;case 22:Ge=(a=Ge)||n.memoizedState!==null,na(e,t,n),Ge=a;break;default:na(e,t,n)}}function gw(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zl(e)}catch(n){te(t,t.return,n)}}}function ww(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zl(e)}catch(n){te(t,t.return,n)}}function Sv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uw),t;default:throw Error(E(435,e.tag))}}function lc(e,t){var n=Sv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=Dv.bind(null,e,a);a.then(i,i)}})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],l=e,r=t,s=r;e:for(;s!==null;){switch(s.tag){case 27:if(Va(s.type)){we=s.stateNode,mt=!1;break e}break;case 5:we=s.stateNode,mt=!1;break e;case 3:case 4:we=s.stateNode.containerInfo,mt=!0;break e}s=s.return}if(we===null)throw Error(E(160));hw(l,r,i),we=null,mt=!1,l=i.alternate,l!==null&&(l.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)mw(t,e),t=t.sibling}var pn=null;function mw(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),pt(e),a&4&&(ka(3,e,e.return),ns(3,e),ka(5,e,e.return));break;case 1:yt(t,e),pt(e),a&512&&(Ge||n===null||Un(n,n.return)),a&64&&ta&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=pn;if(yt(t,e),pt(e),a&512&&(Ge||n===null||Un(n,n.return)),a&4){var l=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":l=i.getElementsByTagName("title")[0],(!l||l[Dr]||l[$e]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=i.createElement(a),i.head.insertBefore(l,i.querySelector("head > title"))),at(l,a,n),l[$e]=e,Je(l),a=l;break e;case"link":var r=mm("link","href",i).get(a+(n.href||""));if(r){for(var s=0;s<r.length;s++)if(l=r[s],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(s,1);break t}}l=i.createElement(a),at(l,a,n),i.head.appendChild(l);break;case"meta":if(r=mm("meta","content",i).get(a+(n.content||""))){for(s=0;s<r.length;s++)if(l=r[s],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(s,1);break t}}l=i.createElement(a),at(l,a,n),i.head.appendChild(l);break;default:throw Error(E(468,a))}l[$e]=e,Je(l),a=l}e.stateNode=a}else ym(i,e.type,e.stateNode);else e.stateNode=wm(i,a,e.memoizedProps);else l!==a?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,a===null?ym(i,e.type,e.stateNode):wm(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&s2(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),pt(e),a&512&&(Ge||n===null||Un(n,n.return)),n!==null&&a&4&&s2(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),pt(e),a&512&&(Ge||n===null||Un(n,n.return)),e.flags&32){i=e.stateNode;try{ml(i,"")}catch(v){te(e,e.return,v)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,s2(e,i,n!==null?n.memoizedProps:i)),a&1024&&(u2=!0);break;case 6:if(yt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(E(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(v){te(e,e.return,v)}}break;case 3:if(Sc=null,i=pn,pn=vc(t.containerInfo),yt(t,e),pn=i,pt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Zl(t.containerInfo)}catch(v){te(e,e.return,v)}u2&&(u2=!1,yw(e));break;case 4:a=pn,pn=vc(e.stateNode.containerInfo),yt(t,e),pt(e),pn=a;break;case 12:yt(t,e),pt(e);break;case 31:yt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,lc(e,a)));break;case 13:yt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(sc=Ut()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,lc(e,a)));break;case 22:i=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=ta,f=Ge;if(ta=u||i,Ge=f||c,yt(t,e),Ge=f,ta=u,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||c||ta||Ge||Ti(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(l=c.stateNode,i)r=l.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{s=c.stateNode;var h=c.memoizedProps.style,d=h!=null&&h.hasOwnProperty("display")?h.display:null;s.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(v){te(c,c.return,v)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(v){te(c,c.return,v)}}}else if(t.tag===18){if(n===null){c=t;try{var g=c.stateNode;i?rm(g,!0):rm(c.stateNode,!1)}catch(v){te(c,c.return,v)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,lc(e,n))));break;case 19:yt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,lc(e,a)));break;case 30:break;case 21:break;default:yt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ow(a)){n=a;break}a=a.return}if(n==null)throw Error(E(160));switch(n.tag){case 27:var i=n.stateNode,l=o2(e);ic(e,l,i);break;case 5:var r=n.stateNode;n.flags&32&&(ml(r,""),n.flags&=-33);var s=o2(e);ic(e,s,r);break;case 3:case 4:var c=n.stateNode.containerInfo,u=o2(e);c2(e,u,c);break;default:throw Error(E(161))}}catch(f){te(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yw(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yw(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fw(e,t.alternate,t),t=t.sibling}function Ti(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ka(4,t,t.return),Ti(t);break;case 1:Un(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&rw(t,t.return,n),Ti(t);break;case 27:ds(t.stateNode);case 26:case 5:Un(t,t.return),Ti(t);break;case 22:t.memoizedState===null&&Ti(t);break;case 30:Ti(t);break;default:Ti(t)}e=e.sibling}}function ia(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,l=t,r=l.flags;switch(l.tag){case 0:case 11:case 15:ia(i,l,n),ns(4,l);break;case 1:if(ia(i,l,n),a=l,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){te(a,a.return,u)}if(a=l,i=a.updateQueue,i!==null){var s=a.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)I4(c[i],s)}catch(u){te(a,a.return,u)}}n&&r&64&&lw(l),as(l,l.return);break;case 27:cw(l);case 26:case 5:ia(i,l,n),n&&a===null&&r&4&&sw(l),as(l,l.return);break;case 12:ia(i,l,n);break;case 31:ia(i,l,n),n&&r&4&&gw(i,l);break;case 13:ia(i,l,n),n&&r&4&&ww(i,l);break;case 22:l.memoizedState===null&&ia(i,l,n),as(l,l.return);break;case 30:break;default:ia(i,l,n)}t=t.sibling}}function f2(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Yr(n))}function d2(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yr(e))}function vn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pw(e,t,n,a),t=t.sibling}function pw(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:vn(e,t,n,a),i&2048&&ns(9,t);break;case 1:vn(e,t,n,a);break;case 3:vn(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yr(e)));break;case 12:if(i&2048){vn(e,t,n,a),e=t.stateNode;try{var l=t.memoizedProps,r=l.id,s=l.onPostCommit;typeof s=="function"&&s(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){te(t,t.return,c)}}else vn(e,t,n,a);break;case 31:vn(e,t,n,a);break;case 13:vn(e,t,n,a);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?l._visibility&2?vn(e,t,n,a):is(e,t):l._visibility&2?vn(e,t,n,a):(l._visibility|=2,Bl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&f2(r,t);break;case 24:vn(e,t,n,a),i&2048&&d2(t.alternate,t);break;default:vn(e,t,n,a)}}function Bl(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,r=t,s=n,c=a,u=r.flags;switch(r.tag){case 0:case 11:case 15:Bl(l,r,s,c,i),ns(8,r);break;case 23:break;case 22:var f=r.stateNode;r.memoizedState!==null?f._visibility&2?Bl(l,r,s,c,i):is(l,r):(f._visibility|=2,Bl(l,r,s,c,i)),i&&u&2048&&f2(r.alternate,r);break;case 24:Bl(l,r,s,c,i),i&&u&2048&&d2(r.alternate,r);break;default:Bl(l,r,s,c,i)}t=t.sibling}}function is(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:is(n,a),i&2048&&f2(a.alternate,a);break;case 24:is(n,a),i&2048&&d2(a.alternate,a);break;default:is(n,a)}t=t.sibling}}var ls=8192;function Gl(e,t,n){if(e.subtreeFlags&ls)for(e=e.child;e!==null;)vw(e,t,n),e=e.sibling}function vw(e,t,n){switch(e.tag){case 26:Gl(e,t,n),e.flags&ls&&e.memoizedState!==null&&s8(n,pn,e.memoizedState,e.memoizedProps);break;case 5:Gl(e,t,n);break;case 3:case 4:var a=pn;pn=vc(e.stateNode.containerInfo),Gl(e,t,n),pn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ls,ls=16777216,Gl(e,t,n),ls=a):Gl(e,t,n));break;default:Gl(e,t,n)}}function bw(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function rs(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];We=a,Ew(a,e)}bw(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sw(e),e=e.sibling}function Sw(e){switch(e.tag){case 0:case 11:case 15:rs(e),e.flags&2048&&ka(9,e,e.return);break;case 3:rs(e);break;case 12:rs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,rc(e)):rs(e);break;default:rs(e)}}function rc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];We=a,Ew(a,e)}bw(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ka(8,t,t.return),rc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,rc(t));break;default:rc(t)}e=e.sibling}}function Ew(e,t){for(;We!==null;){var n=We;switch(n.tag){case 0:case 11:case 15:ka(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Yr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,We=a;else e:for(n=e;We!==null;){a=We;var i=a.sibling,l=a.return;if(dw(a),a===n){We=null;break e}if(i!==null){i.return=l,We=i;break e}We=l}}}var Ev={getCacheForType:function(e){var t=tt(Le),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return tt(Le).controller.signal}},_v=typeof WeakMap=="function"?WeakMap:Map,P=0,le=null,F=null,X=0,ee=0,Ft=null,La=!1,Hl=!1,h2=!1,la=0,Ee=0,Ua=0,Ni=0,g2=0,Yt=0,jl=0,ss=null,vt=null,w2=!1,sc=0,_w=0,oc=1/0,cc=null,Ba=null,Ye=0,Ga=null,Vl=null,ra=0,m2=0,y2=null,xw=null,os=0,p2=null;function Xt(){return P&2&&X!==0?X&-X:G.T!==null?x2():V3()}function Aw(){if(Yt===0)if(!(X&536870912)||Q){var e=yo;yo<<=1,!(yo&3932160)&&(yo=262144),Yt=e}else Yt=536870912;return e=Vt.current,e!==null&&(e.flags|=32),Yt}function bt(e,t,n){(e===le&&(ee===2||ee===9)||e.cancelPendingCommit!==null)&&(ql(e,0),Ha(e,X,Yt,!1)),Cr(e,n),(!(P&2)||e!==le)&&(e===le&&(!(P&2)&&(Ni|=n),Ee===4&&Ha(e,X,Yt,!1)),Bn(e))}function Tw(e,t,n){if(P&6)throw Error(E(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Mr(e,t),i=a?Tv(e,t):b2(e,t,!0),l=a;do{if(i===0){Hl&&!a&&Ha(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!xv(n)){i=b2(e,t,!1),l=!1;continue}if(i===2){if(l=t,e.errorRecoveryDisabledLanes&l)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var s=e;i=ss;var c=s.current.memoizedState.isDehydrated;if(c&&(ql(s,r).flags|=256),r=b2(s,r,!1),r!==2){if(h2&&!c){s.errorRecoveryDisabledLanes|=l,Ni|=l,i=4;break e}l=vt,vt=i,l!==null&&(vt===null?vt=l:vt.push.apply(vt,l))}i=r}if(l=!1,i!==2)continue}}if(i===1){ql(e,0),Ha(e,t,0,!0);break}e:{switch(a=e,l=i,l){case 0:case 1:throw Error(E(345));case 4:if((t&4194048)!==t)break;case 6:Ha(a,t,Yt,!La);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(E(329))}if((t&62914560)===t&&(i=sc+300-Ut(),10<i)){if(Ha(a,t,Yt,!La),vo(a,0,!0)!==0)break e;ra=t,a.timeoutHandle=am(Nw.bind(null,a,n,vt,cc,w2,t,Yt,Ni,jl,La,l,"Throttled",-0,0),i);break e}Nw(a,n,vt,cc,w2,t,Yt,Ni,jl,La,l,null,-0,0)}}break}while(!0);Bn(e)}function Nw(e,t,n,a,i,l,r,s,c,u,f,h,d,g){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qn},vw(t,l,h);var v=(l&62914560)===l?sc-Ut():(l&4194048)===l?_w-Ut():0;if(v=o8(h,v),v!==null){ra=l,e.cancelPendingCommit=v(Uw.bind(null,e,t,l,n,a,i,r,s,c,f,h,null,d,g)),Ha(e,l,r,!u);return}}Uw(e,t,l,n,a,i,r,s,c)}function xv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],l=i.getSnapshot;i=i.value;try{if(!Ht(l(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ha(e,t,n,a){t&=~g2,t&=~Ni,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var l=31-Gt(i),r=1<<l;a[l]=-1,i&=~r}n!==0&&G3(e,n,t)}function uc(){return P&6?!0:(cs(0),!1)}function v2(){if(F!==null){if(ee===0)var e=F.return;else e=F,Jn=pi=null,Ud(e),Ol=null,Qr=0,e=F;for(;e!==null;)iw(e.alternate,e),e=e.return;F=null}}function ql(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ra=0,v2(),le=e,F=n=Zn(e.current,null),X=t,ee=0,Ft=null,La=!1,Hl=Mr(e,t),h2=!1,jl=Yt=g2=Ni=Ua=Ee=0,vt=ss=null,w2=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Gt(a),l=1<<i;t|=e[i],a&=~l}return la=t,Oo(),n}function Mw(e,t){V=null,G.H=$r,t===Dl||t===jo?(t=X4(),ee=3):t===_d?(t=X4(),ee=4):ee=t===Rd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,F===null&&(Ee=1,$o(e,nn(t,e.current)))}function Cw(){var e=Vt.current;return e===null?!0:(X&4194048)===X?sn===null:(X&62914560)===X||X&536870912?e===sn:!1}function Dw(){var e=G.H;return G.H=$r,e===null?$r:e}function Ow(){var e=G.A;return G.A=Ev,e}function fc(){Ee=4,La||(X&4194048)!==X&&Vt.current!==null||(Hl=!0),!(Ua&134217727)&&!(Ni&134217727)||le===null||Ha(le,X,Yt,!1)}function b2(e,t,n){var a=P;P|=2;var i=Dw(),l=Ow();(le!==e||X!==t)&&(cc=null,ql(e,t)),t=!1;var r=Ee;e:do try{if(ee!==0&&F!==null){var s=F,c=Ft;switch(ee){case 8:v2(),r=6;break e;case 3:case 2:case 9:case 6:Vt.current===null&&(t=!0);var u=ee;if(ee=0,Ft=null,Fl(e,s,c,u),n&&Hl){r=0;break e}break;default:u=ee,ee=0,Ft=null,Fl(e,s,c,u)}}Av(),r=Ee;break}catch(f){Mw(e,f)}while(!0);return t&&e.shellSuspendCounter++,Jn=pi=null,P=a,G.H=i,G.A=l,F===null&&(le=null,X=0,Oo()),r}function Av(){for(;F!==null;)zw(F)}function Tv(e,t){var n=P;P|=2;var a=Dw(),i=Ow();le!==e||X!==t?(cc=null,oc=Ut()+500,ql(e,t)):Hl=Mr(e,t);e:do try{if(ee!==0&&F!==null){t=F;var l=Ft;t:switch(ee){case 1:ee=0,Ft=null,Fl(e,t,l,1);break;case 2:case 9:if(F4(l)){ee=0,Ft=null,kw(t);break}t=function(){ee!==2&&ee!==9||le!==e||(ee=7),Bn(e)},l.then(t,t);break e;case 3:ee=7;break e;case 4:ee=5;break e;case 7:F4(l)?(ee=0,Ft=null,kw(t)):(ee=0,Ft=null,Fl(e,t,l,7));break;case 5:var r=null;switch(F.tag){case 26:r=F.memoizedState;case 5:case 27:var s=F;if(r?pm(r):s.stateNode.complete){ee=0,Ft=null;var c=s.sibling;if(c!==null)F=c;else{var u=s.return;u!==null?(F=u,dc(u)):F=null}break t}}ee=0,Ft=null,Fl(e,t,l,5);break;case 6:ee=0,Ft=null,Fl(e,t,l,6);break;case 8:v2(),Ee=6;break e;default:throw Error(E(462))}}Nv();break}catch(f){Mw(e,f)}while(!0);return Jn=pi=null,G.H=a,G.A=i,P=n,F!==null?0:(le=null,X=0,Oo(),Ee)}function Nv(){for(;F!==null&&!Wy();)zw(F)}function zw(e){var t=nw(e.alternate,e,la);e.memoizedProps=e.pendingProps,t===null?dc(e):F=t}function kw(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wg(n,t,t.pendingProps,t.type,void 0,X);break;case 11:t=Wg(n,t,t.pendingProps,t.type.render,t.ref,X);break;case 5:Ud(t);default:iw(n,t),t=F=O4(t,la),t=nw(n,t,la)}e.memoizedProps=e.pendingProps,t===null?dc(e):F=t}function Fl(e,t,n,a){Jn=pi=null,Ud(t),Ol=null,Qr=0;var i=t.return;try{if(wv(e,i,t,n,X)){Ee=1,$o(e,nn(n,e.current)),F=null;return}}catch(l){if(i!==null)throw F=i,l;Ee=1,$o(e,nn(n,e.current)),F=null;return}t.flags&32768?(Q||a===1?e=!0:Hl||X&536870912?e=!1:(La=e=!0,(a===2||a===9||a===3||a===6)&&(a=Vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Lw(t,e)):dc(t)}function dc(e){var t=e;do{if(t.flags&32768){Lw(t,La);return}e=t.return;var n=pv(t.alternate,t,la);if(n!==null){F=n;return}if(t=t.sibling,t!==null){F=t;return}F=t=e}while(t!==null);Ee===0&&(Ee=5)}function Lw(e,t){do{var n=vv(e.alternate,e);if(n!==null){n.flags&=32767,F=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){F=e;return}F=e=n}while(e!==null);Ee=6,F=null}function Uw(e,t,n,a,i,l,r,s,c){e.cancelPendingCommit=null;do hc();while(Ye!==0);if(P&6)throw Error(E(327));if(t!==null){if(t===e.current)throw Error(E(177));if(l=t.lanes|t.childLanes,l|=od,rp(e,n,l,r,s,c),e===le&&(F=le=null,X=0),Vl=t,Ga=e,ra=n,m2=l,y2=i,xw=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Ov(wo,function(){return Vw(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=G.T,G.T=null,i=R.p,R.p=2,r=P,P|=4;try{bv(e,t,n)}finally{P=r,R.p=i,G.T=a}}Ye=1,Bw(),Gw(),Hw()}}function Bw(){if(Ye===1){Ye=0;var e=Ga,t=Vl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=G.T,G.T=null;var a=R.p;R.p=2;var i=P;P|=4;try{mw(t,e);var l=z2,r=E4(e.containerInfo),s=l.focusedElem,c=l.selectionRange;if(r!==s&&s&&s.ownerDocument&&S4(s.ownerDocument.documentElement,s)){if(c!==null&&ad(s)){var u=c.start,f=c.end;if(f===void 0&&(f=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(f,s.value.length);else{var h=s.ownerDocument||document,d=h&&h.defaultView||window;if(d.getSelection){var g=d.getSelection(),v=s.textContent.length,S=Math.min(c.start,v),_=c.end===void 0?S:Math.min(c.end,v);!g.extend&&S>_&&(r=_,_=S,S=r);var w=b4(s,S),m=b4(s,_);if(w&&m&&(g.rangeCount!==1||g.anchorNode!==w.node||g.anchorOffset!==w.offset||g.focusNode!==m.node||g.focusOffset!==m.offset)){var p=h.createRange();p.setStart(w.node,w.offset),g.removeAllRanges(),S>_?(g.addRange(p),g.extend(m.node,m.offset)):(p.setEnd(m.node,m.offset),g.addRange(p))}}}}for(h=[],g=s;g=g.parentNode;)g.nodeType===1&&h.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<h.length;s++){var b=h[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Ac=!!O2,z2=O2=null}finally{P=i,R.p=a,G.T=n}}e.current=t,Ye=2}}function Gw(){if(Ye===2){Ye=0;var e=Ga,t=Vl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=G.T,G.T=null;var a=R.p;R.p=2;var i=P;P|=4;try{fw(e,t.alternate,t)}finally{P=i,R.p=a,G.T=n}}Ye=3}}function Hw(){if(Ye===4||Ye===3){Ye=0,Ry();var e=Ga,t=Vl,n=ra,a=xw;t.subtreeFlags&10256||t.flags&10256?Ye=5:(Ye=0,Vl=Ga=null,jw(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ba=null),Hf(n),t=t.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Nr,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=G.T,i=R.p,R.p=2,G.T=null;try{for(var l=e.onRecoverableError,r=0;r<a.length;r++){var s=a[r];l(s.value,{componentStack:s.stack})}}finally{G.T=t,R.p=i}}ra&3&&hc(),Bn(e),i=e.pendingLanes,n&261930&&i&42?e===p2?os++:(os=0,p2=e):os=0,cs(0)}}function jw(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yr(t)))}function hc(){return Bw(),Gw(),Hw(),Vw()}function Vw(){if(Ye!==5)return!1;var e=Ga,t=m2;m2=0;var n=Hf(ra),a=G.T,i=R.p;try{R.p=32>n?32:n,G.T=null,n=y2,y2=null;var l=Ga,r=ra;if(Ye=0,Vl=Ga=null,ra=0,P&6)throw Error(E(331));var s=P;if(P|=4,Sw(l.current),pw(l,l.current,r,n),P=s,cs(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Nr,l)}catch{}return!0}finally{R.p=i,G.T=a,jw(e,t)}}function qw(e,t,n){t=nn(n,t),t=Wd(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(Cr(e,2),Bn(e))}function te(e,t,n){if(e.tag===3)qw(e,e,n);else for(;t!==null;){if(t.tag===3){qw(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ba===null||!Ba.has(a))){e=nn(n,e),n=Fg(2),a=Da(t,n,2),a!==null&&(Yg(n,a,t,e),Cr(a,2),Bn(a));break}}t=t.return}}function S2(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new _v;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(h2=!0,i.add(n),e=Mv.bind(null,e,t,n),t.then(e,e))}function Mv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,le===e&&(X&n)===n&&(Ee===4||Ee===3&&(X&62914560)===X&&300>Ut()-sc?!(P&2)&&ql(e,0):g2|=n,jl===X&&(jl=0)),Bn(e)}function Fw(e,t){t===0&&(t=B3()),e=wi(e,t),e!==null&&(Cr(e,t),Bn(e))}function Cv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fw(e,n)}function Dv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(E(314))}a!==null&&a.delete(t),Fw(e,n)}function Ov(e,t){return Lf(e,t)}var gc=null,Yl=null,E2=!1,wc=!1,_2=!1,ja=0;function Bn(e){e!==Yl&&e.next===null&&(Yl===null?gc=Yl=e:Yl=Yl.next=e),wc=!0,E2||(E2=!0,kv())}function cs(e,t){if(!_2&&wc){_2=!0;do for(var n=!1,a=gc;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var l=0;else{var r=a.suspendedLanes,s=a.pingedLanes;l=(1<<31-Gt(42|e)+1)-1,l&=i&~(r&~s),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,Kw(a,l))}else l=X,l=vo(a,a===le?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(l&3)||Mr(a,l)||(n=!0,Kw(a,l));a=a.next}while(n);_2=!1}}function zv(){Yw()}function Yw(){wc=E2=!1;var e=0;ja!==0&&Yv()&&(e=ja);for(var t=Ut(),n=null,a=gc;a!==null;){var i=a.next,l=Xw(a,t);l===0?(a.next=null,n===null?gc=i:n.next=i,i===null&&(Yl=n)):(n=a,(e!==0||l&3)&&(wc=!0)),a=i}Ye!==0&&Ye!==5||cs(e),ja!==0&&(ja=0)}function Xw(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var r=31-Gt(l),s=1<<r,c=i[r];c===-1?(!(s&n)||s&a)&&(i[r]=lp(s,t)):c<=t&&(e.expiredLanes|=s),l&=~s}if(t=le,n=X,n=vo(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ee===2||ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Uf(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Mr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Uf(a),Hf(n)){case 2:case 8:n=L3;break;case 32:n=wo;break;case 268435456:n=U3;break;default:n=wo}return a=Qw.bind(null,e),n=Lf(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Uf(a),e.callbackPriority=2,e.callbackNode=null,2}function Qw(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hc()&&e.callbackNode!==n)return null;var a=X;return a=vo(e,e===le?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Tw(e,a,t),Xw(e,Ut()),e.callbackNode!=null&&e.callbackNode===n?Qw.bind(null,e):null)}function Kw(e,t){if(hc())return null;Tw(e,t,!0)}function kv(){Qv(function(){P&6?Lf(k3,zv):Yw()})}function x2(){if(ja===0){var e=Ml;e===0&&(e=mo,mo<<=1,!(mo&261888)&&(mo=256)),ja=e}return ja}function Zw(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_o(""+e)}function Iw(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Lv(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var l=Zw((i[gt]||null).action),r=a.submitter;r&&(t=(t=r[gt]||null)?Zw(t.formAction):r.getAttribute("formAction"),t!==null&&(l=t,r=null));var s=new No("action","action",null,a,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ja!==0){var c=r?Iw(i,r):new FormData(i);Xd(n,{pending:!0,data:c,method:i.method,action:l},null,c)}}else typeof l=="function"&&(s.preventDefault(),c=r?Iw(i,r):new FormData(i),Xd(n,{pending:!0,data:c,method:i.method,action:l},l,c))},currentTarget:i}]})}}for(var A2=0;A2<sd.length;A2++){var T2=sd[A2],Uv=T2.toLowerCase(),Bv=T2[0].toUpperCase()+T2.slice(1);yn(Uv,"on"+Bv)}yn(A4,"onAnimationEnd"),yn(T4,"onAnimationIteration"),yn(N4,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(Pp,"onTransitionRun"),yn($p,"onTransitionStart"),yn(ev,"onTransitionCancel"),yn(M4,"onTransitionEnd"),gl("onMouseEnter",["mouseout","mouseover"]),gl("onMouseLeave",["mouseout","mouseover"]),gl("onPointerEnter",["pointerout","pointerover"]),gl("onPointerLeave",["pointerout","pointerover"]),fi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fi("onBeforeInput",["compositionend","keypress","textInput","paste"]),fi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var us="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(us));function Jw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var l=void 0;if(t)for(var r=a.length-1;0<=r;r--){var s=a[r],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==l&&i.isPropagationStopped())break e;l=s,i.currentTarget=u;try{l(i)}catch(f){Do(f)}i.currentTarget=null,l=c}else for(r=0;r<a.length;r++){if(s=a[r],c=s.instance,u=s.currentTarget,s=s.listener,c!==l&&i.isPropagationStopped())break e;l=s,i.currentTarget=u;try{l(i)}catch(f){Do(f)}i.currentTarget=null,l=c}}}}function Y(e,t){var n=t[jf];n===void 0&&(n=t[jf]=new Set);var a=e+"__bubble";n.has(a)||(Ww(t,e,2,!1),n.add(a))}function N2(e,t,n){var a=0;t&&(a|=4),Ww(n,e,a,t)}var mc="_reactListening"+Math.random().toString(36).slice(2);function M2(e){if(!e[mc]){e[mc]=!0,Y3.forEach(function(n){n!=="selectionchange"&&(Gv.has(n)||N2(n,!1,e),N2(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mc]||(t[mc]=!0,N2("selectionchange",!1,t))}}function Ww(e,t,n,a){switch(Am(t)){case 2:var i=f8;break;case 8:i=d8;break;default:i=Y2}n=i.bind(null,t,n,e),i=void 0,!If||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function C2(e,t,n,a,i){var l=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var s=a.stateNode.containerInfo;if(s===i)break;if(r===4)for(r=a.return;r!==null;){var c=r.tag;if((c===3||c===4)&&r.stateNode.containerInfo===i)return;r=r.return}for(;s!==null;){if(r=fl(s),r===null)return;if(c=r.tag,c===5||c===6||c===26||c===27){a=l=r;continue e}s=s.parentNode}}a=a.return}t4(function(){var u=l,f=Kf(n),h=[];e:{var d=C4.get(e);if(d!==void 0){var g=No,v=e;switch(e){case"keypress":if(Ao(n)===0)break e;case"keydown":case"keyup":g=Dp;break;case"focusin":v="focus",g=Pf;break;case"focusout":v="blur",g=Pf;break;case"beforeblur":case"afterblur":g=Pf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=i4;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=kp;break;case A4:case T4:case N4:g=Sp;break;case M4:g=Up;break;case"scroll":case"scrollend":g=mp;break;case"wheel":g=Gp;break;case"copy":case"cut":case"paste":g=_p;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=r4;break;case"toggle":case"beforetoggle":g=jp}var S=(t&4)!==0,_=!S&&(e==="scroll"||e==="scrollend"),w=S?d!==null?d+"Capture":null:d;S=[];for(var m=u,p;m!==null;){var b=m;if(p=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||p===null||w===null||(b=zr(m,w),b!=null&&S.push(fs(m,b,p))),_)break;m=m.return}0<S.length&&(d=new g(d,v,null,n,f),h.push({event:d,listeners:S}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&n!==Qf&&(v=n.relatedTarget||n.fromElement)&&(fl(v)||v[ul]))break e;if((g||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?fl(v):null,v!==null&&(_=Er(v),S=v.tag,v!==_||S!==5&&S!==27&&S!==6)&&(v=null)):(g=null,v=u),g!==v)){if(S=i4,b="onMouseLeave",w="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(S=r4,b="onPointerLeave",w="onPointerEnter",m="pointer"),_=g==null?d:Or(g),p=v==null?d:Or(v),d=new S(b,m+"leave",g,n,f),d.target=_,d.relatedTarget=p,b=null,fl(f)===u&&(S=new S(w,m+"enter",v,n,f),S.target=p,S.relatedTarget=_,b=S),_=b,g&&v)t:{for(S=Hv,w=g,m=v,p=0,b=w;b;b=S(b))p++;b=0;for(var T=m;T;T=S(T))b++;for(;0<p-b;)w=S(w),p--;for(;0<b-p;)m=S(m),b--;for(;p--;){if(w===m||m!==null&&w===m.alternate){S=w;break t}w=S(w),m=S(m)}S=null}else S=null;g!==null&&Rw(h,d,g,S,!1),v!==null&&_!==null&&Rw(h,_,v,S,!0)}}e:{if(d=u?Or(u):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var N=g4;else if(d4(d))if(w4)N=Jp;else{N=Zp;var x=Kp}else g=d.nodeName,!g||g.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Xf(u.elementType)&&(N=g4):N=Ip;if(N&&(N=N(e,u))){h4(h,N,n,f);break e}x&&x(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Yf(d,"number",d.value)}switch(x=u?Or(u):window,e){case"focusin":(d4(x)||x.contentEditable==="true")&&(bl=x,id=u,Vr=null);break;case"focusout":Vr=id=bl=null;break;case"mousedown":ld=!0;break;case"contextmenu":case"mouseup":case"dragend":ld=!1,_4(h,n,f);break;case"selectionchange":if(Rp)break;case"keydown":case"keyup":_4(h,n,f)}var C;if(ed)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else vl?u4(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(s4&&n.locale!=="ko"&&(vl||A!=="onCompositionStart"?A==="onCompositionEnd"&&vl&&(C=n4()):(_a=f,Jf="value"in _a?_a.value:_a.textContent,vl=!0)),x=yc(u,A),0<x.length&&(A=new l4(A,e,null,n,f),h.push({event:A,listeners:x}),C?A.data=C:(C=f4(n),C!==null&&(A.data=C)))),(C=qp?Fp(e,n):Yp(e,n))&&(A=yc(u,"onBeforeInput"),0<A.length&&(x=new l4("onBeforeInput","beforeinput",null,n,f),h.push({event:x,listeners:A}),x.data=C)),Lv(h,e,u,n,f)}Jw(h,t)})}function fs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yc(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,l=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||l===null||(i=zr(e,n),i!=null&&a.unshift(fs(e,i,l)),i=zr(e,t),i!=null&&a.push(fs(e,i,l))),e.tag===3)return a;e=e.return}return[]}function Hv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rw(e,t,n,a,i){for(var l=t._reactName,r=[];n!==null&&n!==a;){var s=n,c=s.alternate,u=s.stateNode;if(s=s.tag,c!==null&&c===a)break;s!==5&&s!==26&&s!==27||u===null||(c=u,i?(u=zr(n,l),u!=null&&r.unshift(fs(n,u,c))):i||(u=zr(n,l),u!=null&&r.push(fs(n,u,c)))),n=n.return}r.length!==0&&e.push({event:t,listeners:r})}var jv=/\r\n?/g,Vv=/\u0000|\uFFFD/g;function Pw(e){return(typeof e=="string"?e:""+e).replace(jv,`
|
|
98
|
-
`).replace(Vv,"")}function $w(e,t){return t=Pw(t),Pw(e)===t}function ie(e,t,n,a,i,l){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ml(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ml(e,""+a);break;case"className":So(e,"class",a);break;case"tabIndex":So(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":So(e,n,a);break;case"style":$3(e,a,l);break;case"data":if(t!=="object"){So(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=_o(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&ie(e,t,"name",i.name,i,null),ie(e,t,"formEncType",i.formEncType,i,null),ie(e,t,"formMethod",i.formMethod,i,null),ie(e,t,"formTarget",i.formTarget,i,null)):(ie(e,t,"encType",i.encType,i,null),ie(e,t,"method",i.method,i,null),ie(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=_o(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Qn);break;case"onScroll":a!=null&&Y("scroll",e);break;case"onScrollEnd":a!=null&&Y("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(E(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(E(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=_o(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Y("beforetoggle",e),Y("toggle",e),bo(e,"popover",a);break;case"xlinkActuate":Xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bo(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=gp.get(n)||n,bo(e,n,a))}}function D2(e,t,n,a,i,l){switch(n){case"style":$3(e,a,l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(E(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(E(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ml(e,a):(typeof a=="number"||typeof a=="bigint")&&ml(e,""+a);break;case"onScroll":a!=null&&Y("scroll",e);break;case"onScrollEnd":a!=null&&Y("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!X3.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),l=e[gt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,i),typeof a=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):bo(e,n,a)}}}function at(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",e),Y("load",e);var a=!1,i=!1,l;for(l in n)if(n.hasOwnProperty(l)){var r=n[l];if(r!=null)switch(l){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:ie(e,t,l,r,n,null)}}i&&ie(e,t,"srcSet",n.srcSet,n,null),a&&ie(e,t,"src",n.src,n,null);return;case"input":Y("invalid",e);var s=l=r=i=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var f=n[a];if(f!=null)switch(a){case"name":i=f;break;case"type":r=f;break;case"checked":c=f;break;case"defaultChecked":u=f;break;case"value":l=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(E(137,t));break;default:ie(e,t,a,f,n,null)}}J3(e,l,s,c,u,r,i,!1);return;case"select":Y("invalid",e),a=r=l=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":l=s;break;case"defaultValue":r=s;break;case"multiple":a=s;default:ie(e,t,i,s,n,null)}t=l,n=r,e.multiple=!!a,t!=null?wl(e,!!a,t,!1):n!=null&&wl(e,!!a,n,!0);return;case"textarea":Y("invalid",e),l=i=a=null;for(r in n)if(n.hasOwnProperty(r)&&(s=n[r],s!=null))switch(r){case"value":a=s;break;case"defaultValue":i=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(E(91));break;default:ie(e,t,r,s,n,null)}R3(e,a,i,l);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ie(e,t,c,a,n,null)}return;case"dialog":Y("beforetoggle",e),Y("toggle",e),Y("cancel",e),Y("close",e);break;case"iframe":case"object":Y("load",e);break;case"video":case"audio":for(a=0;a<us.length;a++)Y(us[a],e);break;case"image":Y("error",e),Y("load",e);break;case"details":Y("toggle",e);break;case"embed":case"source":case"link":Y("error",e),Y("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:ie(e,t,u,a,n,null)}return;default:if(Xf(t)){for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!==void 0&&D2(e,t,f,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(a=n[s],a!=null&&ie(e,t,s,a,n,null))}function qv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,l=null,r=null,s=null,c=null,u=null,f=null;for(g in n){var h=n[g];if(n.hasOwnProperty(g)&&h!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":c=h;default:a.hasOwnProperty(g)||ie(e,t,g,null,a,h)}}for(var d in a){var g=a[d];if(h=n[d],a.hasOwnProperty(d)&&(g!=null||h!=null))switch(d){case"type":l=g;break;case"name":i=g;break;case"checked":u=g;break;case"defaultChecked":f=g;break;case"value":r=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(E(137,t));break;default:g!==h&&ie(e,t,d,g,a,h)}}Ff(e,r,s,c,u,f,l,i);return;case"select":g=r=s=d=null;for(l in n)if(c=n[l],n.hasOwnProperty(l)&&c!=null)switch(l){case"value":break;case"multiple":g=c;default:a.hasOwnProperty(l)||ie(e,t,l,null,a,c)}for(i in a)if(l=a[i],c=n[i],a.hasOwnProperty(i)&&(l!=null||c!=null))switch(i){case"value":d=l;break;case"defaultValue":s=l;break;case"multiple":r=l;default:l!==c&&ie(e,t,i,l,a,c)}t=s,n=r,a=g,d!=null?wl(e,!!n,d,!1):!!a!=!!n&&(t!=null?wl(e,!!n,t,!0):wl(e,!!n,n?[]:"",!1));return;case"textarea":g=d=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ie(e,t,s,null,a,i)}for(r in a)if(i=a[r],l=n[r],a.hasOwnProperty(r)&&(i!=null||l!=null))switch(r){case"value":d=i;break;case"defaultValue":g=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(E(91));break;default:i!==l&&ie(e,t,r,i,a,l)}W3(e,d,g);return;case"option":for(var v in n)if(d=n[v],n.hasOwnProperty(v)&&d!=null&&!a.hasOwnProperty(v))switch(v){case"selected":e.selected=!1;break;default:ie(e,t,v,null,a,d)}for(c in a)if(d=a[c],g=n[c],a.hasOwnProperty(c)&&d!==g&&(d!=null||g!=null))switch(c){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ie(e,t,c,d,a,g)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var S in n)d=n[S],n.hasOwnProperty(S)&&d!=null&&!a.hasOwnProperty(S)&&ie(e,t,S,null,a,d);for(u in a)if(d=a[u],g=n[u],a.hasOwnProperty(u)&&d!==g&&(d!=null||g!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(E(137,t));break;default:ie(e,t,u,d,a,g)}return;default:if(Xf(t)){for(var _ in n)d=n[_],n.hasOwnProperty(_)&&d!==void 0&&!a.hasOwnProperty(_)&&D2(e,t,_,void 0,a,d);for(f in a)d=a[f],g=n[f],!a.hasOwnProperty(f)||d===g||d===void 0&&g===void 0||D2(e,t,f,d,a,g);return}}for(var w in n)d=n[w],n.hasOwnProperty(w)&&d!=null&&!a.hasOwnProperty(w)&&ie(e,t,w,null,a,d);for(h in a)d=a[h],g=n[h],!a.hasOwnProperty(h)||d===g||d==null&&g==null||ie(e,t,h,d,a,g)}function em(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],l=i.transferSize,r=i.initiatorType,s=i.duration;if(l&&s&&em(r)){for(r=0,s=i.responseEnd,a+=1;a<n.length;a++){var c=n[a],u=c.startTime;if(u>s)break;var f=c.transferSize,h=c.initiatorType;f&&em(h)&&(c=c.responseEnd,r+=f*(c<s?1:(s-u)/(c-u)))}if(--a,t+=8*(l+r)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var O2=null,z2=null;function pc(e){return e.nodeType===9?e:e.ownerDocument}function tm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function k2(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var L2=null;function Yv(){var e=window.event;return e&&e.type==="popstate"?e===L2?!1:(L2=e,!0):(L2=null,!1)}var am=typeof setTimeout=="function"?setTimeout:void 0,Xv=typeof clearTimeout=="function"?clearTimeout:void 0,im=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof im<"u"?function(e){return im.resolve(null).then(e).catch(Kv)}:am;function Kv(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function lm(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),Zl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ds(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ds(n);for(var l=n.firstChild;l;){var r=l.nextSibling,s=l.nodeName;l[Dr]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=r}}else n==="body"&&ds(e.ownerDocument.body);n=i}while(n);Zl(t)}function rm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function U2(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":U2(n),Vf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Zv(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Dr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function Iv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=on(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=on(e.nextSibling),e===null))return null;return e}function B2(e){return e.data==="$?"||e.data==="$~"}function G2(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function on(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var H2=null;function om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return on(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function cm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function um(e,t,n){switch(t=pc(n),e){case"html":if(e=t.documentElement,!e)throw Error(E(452));return e;case"head":if(e=t.head,!e)throw Error(E(453));return e;case"body":if(e=t.body,!e)throw Error(E(454));return e;default:throw Error(E(451))}}function ds(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Vf(e)}var cn=new Map,fm=new Set;function vc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=R.d;R.d={f:Wv,r:Rv,D:Pv,C:$v,L:e8,m:t8,X:a8,S:n8,M:i8};function Wv(){var e=sa.f(),t=uc();return e||t}function Rv(e){var t=dl(e);t!==null&&t.tag===5&&t.type==="form"?Mg(t):sa.r(e)}var Xl=typeof document>"u"?null:document;function dm(e,t,n){var a=Xl;if(a&&typeof t=="string"&&t){var i=en(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),fm.has(i)||(fm.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),at(t,"link",e),Je(t),a.head.appendChild(t)))}}function Pv(e){sa.D(e),dm("dns-prefetch",e,null)}function $v(e,t){sa.C(e,t),dm("preconnect",e,t)}function e8(e,t,n){sa.L(e,t,n);var a=Xl;if(a&&e&&t){var i='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+en(n.imageSizes)+'"]')):i+='[href="'+en(e)+'"]';var l=i;switch(t){case"style":l=Ql(e);break;case"script":l=Kl(e)}cn.has(l)||(e=ce({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cn.set(l,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(hs(l))||t==="script"&&a.querySelector(gs(l))||(t=a.createElement("link"),at(t,"link",e),Je(t),a.head.appendChild(t)))}}function t8(e,t){sa.m(e,t);var n=Xl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+en(a)+'"][href="'+en(e)+'"]',l=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Kl(e)}if(!cn.has(l)&&(e=ce({rel:"modulepreload",href:e},t),cn.set(l,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gs(l)))return}a=n.createElement("link"),at(a,"link",e),Je(a),n.head.appendChild(a)}}}function n8(e,t,n){sa.S(e,t,n);var a=Xl;if(a&&e){var i=hl(a).hoistableStyles,l=Ql(e);t=t||"default";var r=i.get(l);if(!r){var s={loading:0,preload:null};if(r=a.querySelector(hs(l)))s.loading=5;else{e=ce({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cn.get(l))&&j2(e,n);var c=r=a.createElement("link");Je(c),at(c,"link",e),c._p=new Promise(function(u,f){c.onload=u,c.onerror=f}),c.addEventListener("load",function(){s.loading|=1}),c.addEventListener("error",function(){s.loading|=2}),s.loading|=4,bc(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:s},i.set(l,r)}}}function a8(e,t){sa.X(e,t);var n=Xl;if(n&&e){var a=hl(n).hoistableScripts,i=Kl(e),l=a.get(i);l||(l=n.querySelector(gs(i)),l||(e=ce({src:e,async:!0},t),(t=cn.get(i))&&V2(e,t),l=n.createElement("script"),Je(l),at(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(i,l))}}function i8(e,t){sa.M(e,t);var n=Xl;if(n&&e){var a=hl(n).hoistableScripts,i=Kl(e),l=a.get(i);l||(l=n.querySelector(gs(i)),l||(e=ce({src:e,async:!0,type:"module"},t),(t=cn.get(i))&&V2(e,t),l=n.createElement("script"),Je(l),at(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(i,l))}}function hm(e,t,n,a){var i=(i=ba.current)?vc(i):null;if(!i)throw Error(E(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ql(n.href),n=hl(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ql(n.href);var l=hl(i).hoistableStyles,r=l.get(e);if(r||(i=i.ownerDocument||i,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,r),(l=i.querySelector(hs(e)))&&!l._p&&(r.instance=l,r.state.loading=5),cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cn.set(e,n),l||l8(i,e,n,r.state))),t&&a===null)throw Error(E(528,""));return r}if(t&&a!==null)throw Error(E(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kl(n),n=hl(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(E(444,e))}}function Ql(e){return'href="'+en(e)+'"'}function hs(e){return'link[rel="stylesheet"]['+e+"]"}function gm(e){return ce({},e,{"data-precedence":e.precedence,precedence:null})}function l8(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),at(t,"link",n),Je(t),e.head.appendChild(t))}function Kl(e){return'[src="'+en(e)+'"]'}function gs(e){return"script[async]"+e}function wm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=ce({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),at(a,"style",i),bc(a,n.precedence,e),t.instance=a;case"stylesheet":i=Ql(n.href);var l=e.querySelector(hs(i));if(l)return t.state.loading|=4,t.instance=l,Je(l),l;a=gm(n),(i=cn.get(i))&&j2(a,i),l=(e.ownerDocument||e).createElement("link"),Je(l);var r=l;return r._p=new Promise(function(s,c){r.onload=s,r.onerror=c}),at(l,"link",a),t.state.loading|=4,bc(l,n.precedence,e),t.instance=l;case"script":return l=Kl(n.src),(i=e.querySelector(gs(l)))?(t.instance=i,Je(i),i):(a=n,(i=cn.get(l))&&(a=ce({},n),V2(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),at(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(E(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,bc(a,n.precedence,e));return t.instance}function bc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,l=i,r=0;r<a.length;r++){var s=a[r];if(s.dataset.precedence===t)l=s;else if(l!==i)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function j2(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function V2(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Sc=null;function mm(e,t,n){if(Sc===null){var a=new Map,i=Sc=new Map;i.set(n,a)}else i=Sc,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var l=n[i];if(!(l[Dr]||l[$e]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var r=l.getAttribute(t)||"";r=e+r;var s=a.get(r);s?s.push(l):a.set(r,[l])}}return a}function ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function r8(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function pm(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function s8(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var i=Ql(a.href),l=t.querySelector(hs(i));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ec.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=l,Je(l);return}l=t.ownerDocument||t,a=gm(a),(i=cn.get(i))&&j2(a,i),l=l.createElement("link"),Je(l);var r=l;r._p=new Promise(function(s,c){r.onload=s,r.onerror=c}),at(l,"link",a),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Ec.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var q2=0;function o8(e,t){return e.stylesheets&&e.count===0&&xc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&xc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&q2===0&&(q2=62500*Fv());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xc(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>q2?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ec(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _c=null;function xc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_c=new Map,t.forEach(c8,e),_c=null,Ec.call(e))}function c8(e,t){if(!(t.state.loading&4)){var n=_c.get(e);if(n)var a=n.get(null);else{n=new Map,_c.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<i.length;l++){var r=i[l];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),a=r)}a&&n.set(null,a)}i=t.instance,r=i.getAttribute("data-precedence"),l=n.get(r)||a,l===a&&n.set(null,i),n.set(r,i),this.count++,a=Ec.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),l?l.parentNode.insertBefore(i,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ws={$$typeof:Yn,Provider:null,Consumer:null,_currentValue:oi,_currentValue2:oi,_threadCount:0};function u8(e,t,n,a,i,l,r,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bf(0),this.hiddenUpdates=Bf(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=l,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function vm(e,t,n,a,i,l,r,s,c,u,f,h){return e=new u8(e,t,n,r,c,u,f,h,s),t=1,l===!0&&(t|=24),l=jt(3,null,null,t),e.current=l,l.stateNode=e,t=bd(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:a,isDehydrated:n,cache:t},xd(l),e}function bm(e){return e?(e=_l,e):_l}function Sm(e,t,n,a,i,l){i=bm(i),a.context===null?a.context=i:a.pendingContext=i,a=Ca(t),a.payload={element:n},l=l===void 0?null:l,l!==null&&(a.callback=l),n=Da(e,a,t),n!==null&&(bt(n,e,t),Zr(n,e,t))}function Em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function F2(e,t){Em(e,t),(e=e.alternate)&&Em(e,t)}function _m(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&bt(t,e,67108864),F2(e,67108864)}}function xm(e){if(e.tag===13||e.tag===31){var t=Xt();t=Gf(t);var n=wi(e,t);n!==null&&bt(n,e,t),F2(e,t)}}var Ac=!0;function f8(e,t,n,a){var i=G.T;G.T=null;var l=R.p;try{R.p=2,Y2(e,t,n,a)}finally{R.p=l,G.T=i}}function d8(e,t,n,a){var i=G.T;G.T=null;var l=R.p;try{R.p=8,Y2(e,t,n,a)}finally{R.p=l,G.T=i}}function Y2(e,t,n,a){if(Ac){var i=X2(a);if(i===null)C2(e,t,a,Tc,n),Tm(e,a);else if(g8(i,e,t,n,a))a.stopPropagation();else if(Tm(e,a),t&4&&-1<h8.indexOf(e)){for(;i!==null;){var l=dl(i);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var r=ui(l.pendingLanes);if(r!==0){var s=l;for(s.pendingLanes|=2,s.entangledLanes|=2;r;){var c=1<<31-Gt(r);s.entanglements[1]|=c,r&=~c}Bn(l),!(P&6)&&(oc=Ut()+500,cs(0))}}break;case 31:case 13:s=wi(l,2),s!==null&&bt(s,l,2),uc(),F2(l,2)}if(l=X2(a),l===null&&C2(e,t,a,Tc,n),l===i)break;i=l}i!==null&&a.stopPropagation()}else C2(e,t,a,null,n)}}function X2(e){return e=Kf(e),Q2(e)}var Tc=null;function Q2(e){if(Tc=null,e=fl(e),e!==null){var t=Er(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=x3(t),e!==null)return e;e=null}else if(n===31){if(e=A3(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tc=e,null}function Am(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Py()){case k3:return 2;case L3:return 8;case wo:case $y:return 32;case U3:return 268435456;default:return 32}default:return 32}}var K2=!1,qa=null,Fa=null,Ya=null,ms=new Map,ys=new Map,Xa=[],h8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Tm(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Fa=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":ms.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ys.delete(t.pointerId)}}function ps(e,t,n,a,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:l,targetContainers:[i]},t!==null&&(t=dl(t),t!==null&&_m(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function g8(e,t,n,a,i){switch(t){case"focusin":return qa=ps(qa,e,t,n,a,i),!0;case"dragenter":return Fa=ps(Fa,e,t,n,a,i),!0;case"mouseover":return Ya=ps(Ya,e,t,n,a,i),!0;case"pointerover":var l=i.pointerId;return ms.set(l,ps(ms.get(l)||null,e,t,n,a,i)),!0;case"gotpointercapture":return l=i.pointerId,ys.set(l,ps(ys.get(l)||null,e,t,n,a,i)),!0}return!1}function Nm(e){var t=fl(e.target);if(t!==null){var n=Er(t);if(n!==null){if(t=n.tag,t===13){if(t=x3(n),t!==null){e.blockedOn=t,q3(e.priority,function(){xm(n)});return}}else if(t===31){if(t=A3(n),t!==null){e.blockedOn=t,q3(e.priority,function(){xm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=X2(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Qf=a,n.target.dispatchEvent(a),Qf=null}else return t=dl(n),t!==null&&_m(t),e.blockedOn=n,!1;t.shift()}return!0}function Mm(e,t,n){Nc(e)&&n.delete(t)}function w8(){K2=!1,qa!==null&&Nc(qa)&&(qa=null),Fa!==null&&Nc(Fa)&&(Fa=null),Ya!==null&&Nc(Ya)&&(Ya=null),ms.forEach(Mm),ys.forEach(Mm)}function Mc(e,t){e.blockedOn===t&&(e.blockedOn=null,K2||(K2=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,w8)))}var Cc=null;function Cm(e){Cc!==e&&(Cc=e,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,function(){Cc===e&&(Cc=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Q2(a||n)===null)continue;break}var l=dl(n);l!==null&&(e.splice(t,3),t-=3,Xd(l,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Zl(e){function t(c){return Mc(c,e)}qa!==null&&Mc(qa,e),Fa!==null&&Mc(Fa,e),Ya!==null&&Mc(Ya,e),ms.forEach(t),ys.forEach(t);for(var n=0;n<Xa.length;n++){var a=Xa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Xa.length&&(n=Xa[0],n.blockedOn===null);)Nm(n),n.blockedOn===null&&Xa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],l=n[a+1],r=i[gt]||null;if(typeof l=="function")r||Cm(n);else if(r){var s=null;if(l&&l.hasAttribute("formAction")){if(i=l,r=l[gt]||null)s=r.formAction;else if(Q2(i)!==null)continue}else s=r.action;typeof s=="function"?n[a+1]=s:(n.splice(a,3),a-=3),Cm(n)}}}function Dm(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(r){return i=r})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Z2(e){this._internalRoot=e}Dc.prototype.render=Z2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));var n=t.current,a=Xt();Sm(n,a,e,t,null,null)},Dc.prototype.unmount=Z2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sm(e.current,2,null,e,null,null),uc(),t[ul]=null}};function Dc(e){this._internalRoot=e}Dc.prototype.unstable_scheduleHydration=function(e){if(e){var t=V3();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xa.length&&t!==0&&t<Xa[n].priority;n++);Xa.splice(n,0,e),n===0&&Nm(e)}};var Om=E3.version;if(Om!=="19.2.0")throw Error(E(527,Om,"19.2.0"));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=Qy(t),e=e!==null?N3(e):null,e=e===null?null:e.stateNode,e};var m8={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oc.isDisabled&&Oc.supportsFiber)try{Nr=Oc.inject(m8),Bt=Oc}catch{}}co.createRoot=function(e,t){if(!_3(e))throw Error(E(299));var n=!1,a="",i=Hg,l=jg,r=Vg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=vm(e,1,!1,null,null,n,a,null,i,l,r,Dm),e[ul]=t.current,M2(e),new Z2(t)},co.hydrateRoot=function(e,t,n){if(!_3(e))throw Error(E(299));var a=!1,i="",l=Hg,r=jg,s=Vg,c=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=vm(e,1,!0,t,n??null,a,i,c,l,r,s,Dm),t.context=bm(null),n=t.current,a=Xt(),a=Gf(a),i=Ca(a),i.callback=null,Da(n,i,a),n=a,t.current.lanes=n,Cr(t,n),Bn(t),e[ul]=t.current,M2(e),new Dc(t)},co.version="19.2.0";function zm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zm)}catch(e){console.error(e)}}zm(),v3.exports=co;var y8=v3.exports;const p8=e=>o.jsx("span",{className:"iw-text-2xl",children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...e,children:[o.jsx("path",{d:"M0 0C9.01627 8.39148 22.9837 8.39148 32 0C23.6085 9.01627 23.6085 22.9837 32 32C22.9837 23.6085 9.01627 23.6085 0 32C8.39148 22.9837 8.39148 9.01627 0 0Z",fill:"url(#paint0_linear_6039_13039)"}),o.jsx("defs",{children:o.jsxs("linearGradient",{id:"paint0_linear_6039_13039",x1:"16",y1:"-3.5",x2:"41.5",y2:"29",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.210966",stopColor:"#1E06CB"}),o.jsx("stop",{offset:"0.740385",stopColor:"#DB38EF"})]})})]})}),v8=()=>o.jsx(Qc,{config:{api:{baseUrl:"http://localhost:8000/api",authToken:""},interview:{proctoring:{enabled:!1,gazeAnalysisEnabled:!1,showControls:!1,showEngagementBar:!1,showLandmarks:!1}}},children:o.jsx("div",{className:"interview-widget-container",children:o.jsx(Lc,{title:"Frontend Developer",brandName:"Previa",interviewId:"ea3cb06a-c168-4ad3-8084-4165a79473d3",className:"iw-rounded-none iw-shadow-none",onInterviewEnd:()=>{console.log("🎉🎉 Interview ended 🎉🎉"),window.location.reload(),sessionStorage.clear()},onInterviewDisqualify:()=>{console.log("❌ Interview disqualified ❌")}})})}),b8=document.getElementById("root");y8.createRoot(b8).render(o.jsx(v8,{}));const S8=(e,t,n)=>Math.max(t,Math.min(n,e)),km=e=>{const t=Math.max(0,Math.floor(e)),n=Math.floor(t/60).toString().padStart(2,"0"),a=(t%60).toString().padStart(2,"0");return`${n}:${a}`},zc=({total:e,remaining:t,size:n=64,strokeWidth:a=6,className:i="",showLabel:l=!0})=>{const r=Math.max(1,e||1),s=S8(t/r,0,1),{radius:c,circumference:u,dashOffset:f,center:h}=y.useMemo(()=>{const v=(n-a)/2,S=2*Math.PI*v,_=S*(1-s),w=Math.round(a)%2===1,m=n/2+(w?.5:0);return{radius:v,circumference:S,dashOffset:_,center:m}},[n,a,s]),d=y.useMemo(()=>s<=.25?"iw-stroke-red-500":s<=.5?"iw-stroke-yellow-500":"iw-stroke-green-500",[s]),g=s<=.25?"iw-animate-pulse":"";return o.jsxs("div",{className:`iw-relative iw-inline-flex iw-items-center iw-justify-center iw-rounded-full iw-bg-white ${i}`,style:{width:n,height:n},"aria-label":`Time remaining ${km(t)}`,role:"timer","aria-live":"polite",children:[o.jsx("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,preserveAspectRatio:"xMidYMid meet",children:o.jsxs("g",{transform:`rotate(-90 ${h} ${h})`,children:[o.jsx("circle",{cx:h,cy:h,r:c,className:"iw-stroke-gray-200",strokeWidth:a,fill:"none",shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke"}),o.jsx("circle",{cx:h,cy:h,r:c,className:`${d} ${g}`,strokeWidth:a,strokeLinecap:"round",fill:"none",strokeDasharray:u,strokeDashoffset:f,shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke",style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.2s ease"}})]})}),l?o.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:o.jsx("span",{className:`iw-text-[11px] iw-font-semibold iw-tabular-nums ${s<=.25?"iw-text-red-600":s<=.5?"iw-text-yellow-600":"iw-text-green-600"}`,children:km(t)})}):o.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:o.jsx(f6,{})})]})},E8=({timerState:e,answeringTime:t})=>{const n=(e==null?void 0:e.currentPhaseTimeRemaining)||0,a=t||w3.answeringDuration;return o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[o.jsx(zc,{total:a,remaining:n,size:50,strokeWidth:4,showLabel:!1,className:"iw-shadow-sm iw-border iw-border-gray-100"}),o.jsxs("div",{className:"iw-flex iw-flex-col",children:[o.jsx("span",{className:"iw-text-[#5C6686]",children:"Time left to answer"}),o.jsxs("span",{className:"iw-text-xl iw-font-bold iw-text-[#062260]",children:[Zc(n)," mins"]})]})]})},_8=({question:e,isLoading:t=!1,phase:n,brandName:a,timerState:i,answeringTime:l})=>o.jsx("div",{className:"iw-rounded-xl iw-mb-4 message-animation iw-text-gray-800 iw-py-1",children:o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[o.jsx("div",{className:`iw-flex iw-flex-col iw-items-center iw-justify-center iw-relative iw-h-16 iw-w-16 iw-shrink-0 iw-shadow iw-rounded-full iw-border-[#E8EEFE] iw-border-4 ${n===I.READING_QUESTION?"iw-animate-speaking":""}`,children:o.jsx("div",{className:"iw-bg-transparent iw-flex iw-items-center iw-justify-center iw-rounded-full iw-size-full",style:{backgroundImage:"linear-gradient(#B5D0FD, #FFFFFF)"},children:o.jsx(p8,{className:"iw-size-8"})})}),o.jsx(x8,{phase:n,question:e,isLoading:t,brandName:a,timerState:i,answeringTime:l})]})}),x8=({phase:e,question:t,isLoading:n,brandName:a,timerState:i,answeringTime:l})=>{const r=a||"We",s=a?"is":"are";if(n||e===I.FETCHING_QUESTION||e===I.IDLE)return o.jsxs("div",{className:"iw-animate-pulse iw-w-full iw-space-y-3 iw-mr-10",children:[o.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-full"}),o.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-3/4"})]});const c=()=>o.jsxs("span",{className:"iw-animate-dot-wave iw-ml-1",children:[o.jsx("span",{children:"."}),o.jsx("span",{children:"."}),o.jsx("span",{children:"."})]});switch(e){case I.ANSWERING:return o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-w-full",children:[o.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:["Listening",o.jsx(c,{})]}),o.jsx(E8,{timerState:i,answeringTime:l})]});case I.TRANSCRIBING:return o.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[r," ",s," analyzing your answer",o.jsx(c,{})]});case(I.EDITING||I.SUBMITTING):return o.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[r," ",s," waiting for your answer..."]});default:return o.jsx("p",{className:"iw-text-lg iw-leading-7",children:t==null?void 0:t.question})}},A8=({label:e,error:t,fullWidth:n=!1,className:a="",id:i,...l})=>{const r=i||`textarea-${Math.random().toString(36).substring(2,9)}`,s="iw-block iw-rounded-md iw-border iw-border-gray-300 iw-shadow-sm iw-px-4 iw-py-2 iw-text-sm iw-transition-all",c=t?"iw-border-red-500 iw-focus:border-red-500 iw-focus:ring-red-500":"",u=n?"iw-w-full":"",f=a.includes("iw-h-full")||n?"iw-h-full":"";return o.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col ${n?"iw-w-full":""}`,children:[e&&o.jsx("label",{htmlFor:r,className:"iw-block iw-text-sm iw-font-medium iw-text-gray-700 iw-mb-1",children:e}),o.jsx("textarea",{id:r,className:`${s} ${c} ${u} ${f} ${a}`,"aria-invalid":t?"true":"false",...l}),t&&o.jsx("p",{className:"iw-mt-1 iw-text-sm iw-text-red-600",children:t})]})},T8=({answerText:e,onAnswerChange:t,timerState:n,editingTime:a})=>o.jsxs("div",{className:"iw-w-full iw-bg-white iw-rounded-xl iw-border iw-border-[#84bbf5] iw-overflow-hidden iw-rounded-tr-none",children:[o.jsx("div",{className:"iw-p-2 iw-pb-0",children:o.jsx(A8,{value:e,onChange:t,placeholder:"Type your answer here...",className:"iw-w-full iw-h-64 iw-resize-none iw-bg-transparent iw-border-none iw-text-[#062260] iw-text-base iw-leading-relaxed focus-visible:iw-outline-0 iw-p-0",disabled:n.phase===I.SUBMITTING})}),o.jsxs("div",{className:"iw-bg-[#F1F5FE] iw-px-2 iw-py-2 iw-flex iw-items-center iw-justify-between iw-border-t iw-border-[#E8EEFE]",children:[o.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-medium iw-line-clamp-1",children:"Time left to edit answer"}),o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[o.jsx(zc,{total:a,remaining:n.currentPhaseTimeRemaining,size:32,strokeWidth:3,showLabel:!1}),o.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-bold",children:`${Zc(n.currentPhaseTimeRemaining)} mins`})]})]})]}),Lm=({children:e})=>o.jsx("div",{className:"iw-flex iw-flex-col iw-items-start iw-mt-3 iw-gap-1",children:e}),N8=({children:e})=>o.jsx("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-3 iw-gap-1",children:e}),M8=({questionNumber:e})=>o.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:[" Q",e]}),Um=({label:e})=>o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-text-sm iw-text-gray-500 iw-bg-[#F1F5FE] iw-px-4 iw-py-1.5 iw-rounded-full iw-my-2 iw-font-semibold",children:[e&&o.jsx("span",{className:"iw-font-medium",children:e}),o.jsxs("span",{className:"iw-animate-dot-wave iw-text-2xl",children:[o.jsx("span",{children:"."}),o.jsx("span",{children:"."}),o.jsx("span",{children:"."})]})]}),C8=({phase:e,questionNumber:t})=>{switch(e){case I.FETCHING_QUESTION:return o.jsxs(Lm,{children:[o.jsx(M8,{questionNumber:t+1}),o.jsx(Um,{})]});case I.ANSWERING:return o.jsx(N8,{children:o.jsx(Um,{label:"You"})});case I.TRANSCRIBING:return o.jsx(Lm,{children:o.jsxs("div",{className:"iw-flex iw-items-center iw-px-1 iw-py-1.5 iw-rounded-lg iw-mb-2 iw-text-sm iw-bg-[#F2E8FE]",children:[o.jsx("img",{src:"../../../../src/assets/transcribing.gif",alt:"Transcribing",className:"iw-h-8 iw-w-12"}),o.jsx("span",{className:"iw-text-sm iw-text-[#062260]",children:"Analyzing answer…"})]})});default:return null}},D8=({item:e,index:t,isCurrentQuestion:n=!1,isEditable:a=!1,answerText:i="",onAnswerChange:l,timerState:r,editingTime:s})=>{const c=a&&r&&s!==void 0,u=c||e.answer;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-start",children:[o.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:["Q",t+1]}),o.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tl-none",style:{backgroundColor:"#F1F5FE",border:n?"2px solid #84bbf5":"1px solid transparent"},children:e.question})]}),u&&o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-4",children:[o.jsx("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#F2E8FE",border:"1px solid #E9D5FF"},children:"You"}),c?o.jsx(T8,{answerText:i||"",onAnswerChange:l,timerState:r,editingTime:s}):o.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tr-none",style:{backgroundColor:"#F7F1FE"},children:e.answer})]}),n&&o.jsx(C8,{phase:r==null?void 0:r.phase,questionNumber:t+1})]})},O8=()=>o.jsx("div",{className:"iw-space-y-6 iw-animate-pulse",children:[1,2,3].map(e=>o.jsxs("div",{className:`iw-flex iw-flex-col ${e%2===0?"iw-items-end":"iw-items-start"} iw-gap-2`,children:[o.jsx("div",{className:"iw-h-8 iw-w-16 iw-bg-gray-200 iw-rounded-full"}),o.jsx("div",{className:"iw-h-24 iw-w-full iw-bg-gray-100 iw-rounded-xl"})]},e))}),z8=({transcript:e,isLoading:t,className:n="",bottomRef:a,isEditing:i,answerText:l,onAnswerChange:r,timerState:s,editingTime:c})=>o.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col iw-bg-white iw-scroll-smooth iw-p-6 iw-pr-2 iw-min-w-32 iw-border iw-rounded-tr-2xl iw-rounded-br-2xl iw-border-[#E8EEFE] ${n}`,children:[o.jsxs("div",{className:"iw-mb-6",children:[o.jsx("h2",{className:"iw-text-lg iw-font-semibold iw-mb-4",style:{color:"#062260"},children:"Interview transcript"}),o.jsx("div",{className:"iw-h-px iw-w-full iw-border-t iw-border-dashed iw-border-gray-300"})]}),o.jsxs("div",{className:"iw-flex-1 iw-overflow-y-auto iw-pr-2 iw-space-y-6 iw-scrollbar-thin iw-max-w-xl iw-pb-5",children:[t?o.jsx(O8,{}):e==null?void 0:e.map((u,f)=>o.jsx(D8,{item:u,index:f,isCurrentQuestion:f===(e==null?void 0:e.length)-1,isEditable:!!(f===(e==null?void 0:e.length)-1&&i),answerText:l||"",onAnswerChange:r||(()=>{}),timerState:s,editingTime:c},u.qna_id)),o.jsx("div",{ref:a})]})]}),k8=({interviewId:e,className:t="",currentQuestion:n,lastSubmittedAnswer:a,isEditing:i,answerText:l,onAnswerChange:r,timerState:s,editingTime:c})=>{const u=y3(),[f,h]=y.useState([]),[d,g]=y.useState(!0),v=y.useRef(null);return y.useEffect(()=>{var S;(S=v.current)==null||S.scrollIntoView({behavior:"smooth"})},[f,l,s==null?void 0:s.phase]),y.useEffect(()=>{(async()=>{var _;try{const w=await u.getInterviewTranscription(e);h(((_=w==null?void 0:w.data)==null?void 0:_.question_answers)||[])}catch(w){console.error("Failed to fetch transcript:",w)}finally{g(!1)}})()},[e,u]),y.useEffect(()=>{n&&h(S=>{if(S.some(m=>m.qna_id===n.qna_id))return S;const w={qna_id:n.qna_id,question:n.question,answer:null,question_generated_at:new Date().toISOString(),answer_submitted_at:null};return[...S,w]})},[n]),y.useEffect(()=>{a!=null&&a.answer?h(S=>S.map(_=>_.qna_id===a.qnaId?{..._,answer:a.answer,answer_submitted_at:new Date().toISOString()}:_)):l&&h(S=>S.map(_=>_.qna_id===(a==null?void 0:a.qnaId)?{..._,answer:l,answer_submitted_at:new Date().toISOString()}:_))},[a,l]),o.jsx(z8,{transcript:f,isLoading:d||(f==null?void 0:f.length)===0,className:t,bottomRef:v,isEditing:i,answerText:l,onAnswerChange:r,timerState:s,editingTime:c})},L8=({onClick:e,text:t="Submit response"})=>(y.useEffect(()=>{if(typeof window>"u")return;const n=a=>{const i=a.metaKey||a.ctrlKey,l=a.key===" ",r=a.target;r.tagName==="INPUT"||r.isContentEditable||i&&l&&(a.preventDefault(),e())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e]),o.jsx("div",{className:"iw-fixed iw-bottom-10 iw-left-1/4 iw-transform iw--translate-x-1/2 iw-z-50",children:o.jsxs("button",{onClick:e,className:"iw-flex iw-items-center iw-gap-3 iw-bg-[#4C6CFF] hover:iw-bg-[#4c6dffd5] iw-text-white iw-px-5 iw-py-3 iw-rounded-lg iw-shadow-lg iw-transition-all iw-duration-200 iw-group",children:[o.jsx("span",{className:"iw-font-semibold iw-text-sm",children:t}),o.jsx("span",{className:"iw-bg-white/90 iw-text-[#062260] iw-px-2 iw-py-1 iw-rounded iw-text-xs iw-font-mono iw-font-bold group-hover:iw-bg-white iw-transition-colors",children:"Press Ctrl / ⌘ + Space"})]})})),Bm=({brandName:e,currentQuestion:t,state:n,phase:a,className:i="",interviewId:l="",interview_duration:r=_s,videoFeedRef:s,lastSubmittedAnswer:c,onNextPhase:u,answerText:f,onAnswerChange:h,editingTime:d,answeringTime:g})=>o.jsxs("div",{className:`iw-px-4 iw-py-3 ${i} iw-h-[calc(100vh_-_120px)] iw-max-h-[calc(100vh_-_120px)] iw-flex iw-gap-0 iw-relative`,children:[o.jsxs("div",{className:"iw-flex iw-flex-col iw-flex-1 iw-p-5 iw-bg-white/50 iw-border iw-border-[#E8EEFE] iw-rounded-s-3xl iw-overflow-hidden",children:[o.jsx("div",{className:"iw-flex iw-items-start iw-justify-between iw-gap-3 iw-mb-4",children:o.jsx("div",{className:"iw-flex-1",children:o.jsx(_8,{question:t,isLoading:a===I.FETCHING_QUESTION||a===I.IDLE,phase:a,brandName:e,timerState:n,answeringTime:g})})}),o.jsx("div",{className:"iw-flex-1 iw-min-h-0 iw-rounded-[16px] iw-overflow-hidden iw-relative",children:o.jsx(h3,{ref:s,interviewId:l,interview_duration:r,isAnswering:a===I.ANSWERING})})]}),o.jsx("div",{className:"iw-interview-transcription iw-w-1/4 iw-min-w-32 iw-h-full",children:o.jsx(k8,{interviewId:l,currentQuestion:t,lastSubmittedAnswer:c,isEditing:a===I.EDITING,answerText:f,onAnswerChange:h,timerState:n,editingTime:d})}),u&&(a===I.ANSWERING||a===I.EDITING)&&o.jsx(L8,{onClick:u,text:a===I.ANSWERING?"Submit Response":"Submit Final Response"})]}),U8=({confirmExitInterview:e,isOpen:t,onClose:n})=>o.jsx(bf,{isOpen:t,onClose:n,title:"Exit Interview",closeOnOverlayClick:!1,children:o.jsxs("div",{className:"iw-space-y-5",children:[o.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-rounded-xl iw-p-2",children:[o.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-flex-none iw-items-center iw-justify-center iw-rounded-full iw-bg-rose-100 iw-text-rose-600",children:"!"}),o.jsxs("div",{className:"iw-space-y-2",children:[o.jsx("p",{className:"iw-text-sm iw-font-semibold iw-text-rose-600",children:"Leaving now will end your interview !"}),o.jsx("p",{className:"iw-text-sm iw-text-slate-500",children:"Are you sure you want to exit? All progress will be lost and you will not be able to resume."})]})]}),o.jsxs("div",{className:"iw-flex iw-flex-col-reverse iw-gap-2 sm:iw-flex-row sm:iw-items-center sm:iw-justify-end iw-pb-1",children:[o.jsx("button",{className:"iw-inline-flex iw-items-center iw-justify-center iw-rounded-lg iw-border iw-border-slate-200 iw-bg-white iw-px-4 iw-py-2 iw-text-sm iw-font-medium iw-text-slate-600 iw-shadow-sm iw-transition hover:iw-bg-slate-50",onClick:n,children:"Stay in interview"}),o.jsx("button",{className:"iw-inline-flex iw-items-center iw-justify-center iw-rounded-lg iw-px-4 iw-py-2 iw-text-sm iw-font-semibold iw-text-white iw-transition hover:iw-brightness-110",style:{background:"linear-gradient(to right, rgba(244, 63, 94, 0.8), rgba(225, 29, 72, 0.8))",boxShadow:"0 12px 30px -16px rgba(244, 63, 94, 0.65)"},onClick:e,children:"Confirm exit"})]})]})}),Gm=({title:e,brandName:t,brandLogo:n,onExit:a,totalDuration:i=30,elapsedTime:l=0})=>{const{baseColor:r}=Pl(),[s,c]=y.useState(!1),u=Math.min(l/(i*60)*100,100),f=()=>o.jsxs("div",{className:"iw-px-4 iw-pb-2 iw-flex iw-items-center iw-gap-3",children:[o.jsx("div",{className:"iw-flex-1 iw-h-4 iw-bg-[#F2F4F7] iw-rounded-full iw-overflow-hidden iw-border iw-border-blue-100 iw-relative",children:o.jsx("div",{className:"iw-h-full iw-bg-[#0EB00E] iw-rounded-full iw-transition-all iw-duration-1000 iw-ease-linear",style:{width:`${u}%`}})}),o.jsxs("div",{className:"iw-text-sm iw-font-medium iw-whitespace-nowrap",children:[o.jsx("span",{className:"iw-text-[#062260]",children:Zc(l)}),o.jsxs("span",{className:"iw-text-[#667085]",children:["/",i," Min"]})]})]});return o.jsxs("header",{className:"iw-w-full iw-text-gray-900 iw-shadow-sm",children:[o.jsxs("div",{className:"iw-mx-auto iw-flex iw-items-center iw-justify-between iw-p-4 iw-pt-1 iw-mb-2 iw-border-b iw-border-[#B3B9CB] iw-border-dashed",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2",children:[n||o.jsx("div",{className:"iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold",style:{backgroundColor:r},children:n1(t)}),o.jsx("p",{className:"iw-text-xl iw-font-semibold",children:t})]}),o.jsx("h1",{className:"iw-text-2xl iw-font-semibold iw-text-gradient-silver",children:e}),o.jsx("button",{className:"iw-text-sm iw-text-[#E94315] iw-min-w-10 iw-rounded-md hover:iw-bg-orange-100 iw-p-2",onClick:()=>c(!0),children:o.jsxs("span",{className:"iw-flex iw-items-center iw-gap-1 iw-text-[18px] iw-font-semibold iw-whitespace-nowrap",children:[o.jsx(i1,{className:"iw-text-[#E94315] iw-size-5"}),"Leave interview"]})})]}),o.jsx(f,{}),o.jsx("div",{className:"iw-h-px iw-bg-gray-200"}),o.jsx(U8,{isOpen:s,confirmExitInterview:()=>{a(),c(!1)},onClose:()=>c(!1)})]})},B8=({className:e="",width:t,height:n=56,barWidth:a=3,gap:i=2,fftSize:l=1024,smoothingTimeConstant:r=.8,mediaStream:s,startOnMount:c=!0})=>{const{baseColor:u}=Pl(),f=y.useRef(null),h=y.useRef(null),d=y.useRef(null),g=y.useRef(null),v=y.useRef(null),S=y.useRef(null),_=y.useRef(!1),[w,m]=y.useState(null);y.useEffect(()=>{if(t||!h.current)return;const b=h.current,T=()=>{const x=f.current;if(!x)return;const C=b.clientWidth,A=n;x.width=Math.max(1,Math.floor(C*window.devicePixelRatio||1)),x.height=Math.max(1,Math.floor(A*window.devicePixelRatio||1))},N=new ResizeObserver(T);return N.observe(b),T(),()=>N.disconnect()},[t,n]),y.useEffect(()=>{if(!t)return;const b=f.current;b&&(b.width=Math.max(1,Math.floor(t*(window.devicePixelRatio||1))),b.height=Math.max(1,Math.floor(n*(window.devicePixelRatio||1))))},[t,n]),y.useEffect(()=>{let b=!1;return(async()=>{try{const N=new(window.AudioContext||window.webkitAudioContext);d.current=N;let x=s;if(!x){if(!c)return;x=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),_.current=!0}if(b)return;const C=N.createAnalyser();C.fftSize=l,C.smoothingTimeConstant=r,g.current=C;const A=N.createMediaStreamSource(x);v.current=A,A.connect(C),p()}catch(N){m((N==null?void 0:N.message)||"Failed to initialize microphone")}})(),()=>{var N,x,C,A;b=!0,S.current&&cancelAnimationFrame(S.current);try{(N=v.current)==null||N.disconnect()}catch{}try{(x=g.current)==null||x.disconnect()}catch{}_.current&&((A=((C=v.current)==null?void 0:C.mediaStream)||void 0)==null||A.getTracks().forEach(O=>O.stop())),d.current&&d.current.state!=="closed"&&d.current.close()}},[s,l,r,c]);const p=()=>{const b=f.current,T=g.current;if(!b||!T)return;const N=b.getContext("2d");if(!N)return;const x=window.devicePixelRatio||1,C=b.width,A=b.height,O=T.frequencyBinCount,_e=new Uint8Array(O),He=()=>{S.current=requestAnimationFrame(He),T.getByteTimeDomainData(_e),N.clearRect(0,0,C,A),N.fillStyle="rgba(0,0,0,0)",N.fillRect(0,0,C,A);const st=Math.max(1,Math.floor(a*x)),un=Math.max(1,Math.floor(i*x)),St=st+un,M=Math.max(8,Math.floor((C+un)/St)),j=Math.floor(_e.length/M);for(let H=0;H<M;H++){const $=Math.min(_e.length-1,H*j),re=_e[$]/128-1,ot=Math.abs(re),bn=Math.pow(ot,.6),fn=Math.max(A*.06,bn*(A*.9)),Qt=H*St,ct=(A-fn)/2,ut=140-Math.min(140,140*ot),dn=85,De=48+Math.floor(12*(1-ot));N.fillStyle=`${u}`,N.shadowColor=`hsla(${ut}, ${dn}%, ${De}%, ${.25*ot})`,N.shadowBlur=8*ot;const Qa=Math.min(st/2,fn/2);G8(N,Qt,ct,st,fn,Qa),N.fill()}};He()};return o.jsxs("div",{ref:h,className:`iw-relative iw-w-full iw-overflow-hidden iw-rounded-md iw-bg-gray-50 ${e}`,style:{height:n},children:[o.jsx("canvas",{ref:f,className:"iw-w-full iw-h-full"}),w&&o.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center",children:o.jsx("span",{className:"iw-text-xs iw-text-red-600 iw-bg-red-50 iw-border iw-border-red-200 iw-px-2 iw-py-1 iw-rounded",children:w})})]})};function G8(e,t,n,a,i,l){const r=Math.min(l,a/2,i/2);e.beginPath(),e.moveTo(t+r,n),e.lineTo(t+a-r,n),e.quadraticCurveTo(t+a,n,t+a,n+r),e.lineTo(t+a,n+i-r),e.quadraticCurveTo(t+a,n+i,t+a-r,n+i),e.lineTo(t+r,n+i),e.quadraticCurveTo(t,n+i,t,n+i-r),e.lineTo(t,n+r),e.quadraticCurveTo(t,n,t+r,n),e.closePath()}const H8=({state:e,answeringTime:t,nextPhase:n,sttError:a})=>o.jsxs("div",{className:"iw-flex iw-flex-col iw-justify-between iw-h-full ",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between",children:[o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"You may start speaking now. We're listening...."}),o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[o.jsx(a1,{className:"iw-size-4 iw-text-orange-600"}),o.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to talk: "})]}),o.jsx(zc,{total:t,remaining:e.currentPhaseTimeRemaining,size:50,strokeWidth:4})]})]}),o.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"Done talking? Click the button to review your answer."})]}),o.jsxs("div",{children:[o.jsx(B8,{}),a&&o.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Recording error: ",a.message]})]}),o.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:o.jsx(Sr,{onClick:()=>{n()},children:"Transcribe My Answer"})})]});function j8(){const[e,t]=y.useState(!0),n=y.useMemo(()=>[0,1,2].map(a=>({id:a})),[]);return y.useEffect(()=>{const a=setInterval(()=>{t(i=>!i)},1500);return()=>clearInterval(a)},[]),o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-h-full",children:[o.jsx("div",{className:"iw-relative iw-w-80 iw-h-48 ","aria-hidden":!0,children:n.map((a,i)=>{const l=i*50,r=e?l:l+12,s=e?1:.08,c=i*140;return o.jsx("div",{role:"presentation",className:"iw-absolute iw-w-full iw-rounded-lg iw-p-4 iw-shadow-md iw-bg-gradient-to-b iw-from-gray-50 iw-to-gray-100 iw-overflow-hidden",style:{top:0,transform:`translateY(${r}px)`,opacity:s,transition:`transform 600ms cubic-bezier(.2,.9,.3,1) ${c}ms, opacity 400ms ease ${c}ms`},children:o.jsxs("div",{className:"iw-flex iw-gap-3 iw-items-center",children:[o.jsx("div",{className:"iw-w-10 iw-h-10 iw-bg-gray-300 iw-rounded iw-flex-shrink-0"}),o.jsxs("div",{className:"iw-flex-1 iw-space-y-2",children:[o.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-24"}),o.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-32"})]})]})},a.id)})}),o.jsx("div",{className:"iw-text-center",children:o.jsx("p",{className:"iw-text-gray-500 iw-font-medium",children:"Preparing your question..."})})]})}const V8=({size:e="192px",className:t,colors:n,animationDuration:a=20})=>{const l={...{bg:"oklch(95% 0.02 264.695)",c1:"oklch(75% 0.15 350)",c2:"oklch(80% 0.12 200)",c3:"oklch(78% 0.14 280)"},...n},r=parseInt(e.replace("px",""),10),s=r<50?Math.max(r*.008,1):Math.max(r*.015,4),c=r<50?Math.max(r*.004,1.2):Math.max(r*.008,1.5),u=r<50?Math.max(r*.004,.05):Math.max(r*.008,.1),f=r<50?Math.max(r*.004,.5):Math.max(r*.008,2),h=r<30?"0%":r<50?"5%":r<100?"15%":"25%",d=r<30?1.1:r<50?Math.max(c*1.2,1.3):c;return o.jsx("div",{className:`siri-orb ${t}`,style:{width:e,height:e,"--bg":l.bg,"--c1":l.c1,"--c2":l.c2,"--c3":l.c3,"--animation-duration":`${a}s`,"--blur-amount":`${s}px`,"--contrast-amount":d,"--dot-size":`${u}px`,"--shadow-spread":`${f}px`,"--mask-radius":h},children:o.jsx("style",{children:`
|
|
98
|
+
*/var i7;function x_(){if(i7)return gm;i7=1;var i=l7(),c=j,f=Av;function h(n){var l="https://react.dev/errors/"+n;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function w(n){var l=n,u=n;if(n.alternate)for(;l.return;)l=l.return;else{n=l;do l=n,l.flags&4098&&(u=l.return),n=l.return;while(n)}return l.tag===3?u:null}function E(n){if(n.tag===13){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function A(n){if(n.tag===31){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function M(n){if(w(n)!==n)throw Error(h(188))}function G(n){var l=n.alternate;if(!l){if(l=w(n),l===null)throw Error(h(188));return l!==n?null:n}for(var u=n,s=l;;){var m=u.return;if(m===null)break;var g=m.alternate;if(g===null){if(s=m.return,s!==null){u=s;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===u)return M(m),n;if(g===s)return M(m),l;g=g.sibling}throw Error(h(188))}if(u.return!==s.return)u=m,s=g;else{for(var S=!1,x=m.child;x;){if(x===u){S=!0,u=m,s=g;break}if(x===s){S=!0,s=m,u=g;break}x=x.sibling}if(!S){for(x=g.child;x;){if(x===u){S=!0,u=g,s=m;break}if(x===s){S=!0,s=g,u=m;break}x=x.sibling}if(!S)throw Error(h(189))}}if(u.alternate!==s)throw Error(h(190))}if(u.tag!==3)throw Error(h(188));return u.stateNode.current===u?n:l}function U(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n;for(n=n.child;n!==null;){if(l=U(n),l!==null)return l;n=n.sibling}return null}var N=Object.assign,q=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),ye=Symbol.for("react.consumer"),be=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),Be=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),Ut=Symbol.iterator;function ke(n){return n===null||typeof n!="object"?null:(n=Ut&&n[Ut]||n["@@iterator"],typeof n=="function"?n:null)}var He=Symbol.for("react.client.reference");function Ft(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===He?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case oe:return"Fragment";case P:return"Profiler";case ue:return"StrictMode";case nt:return"Suspense";case Be:return"SuspenseList";case me:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case ne:return"Portal";case be:return n.displayName||"Context";case ye:return(n._context.displayName||"Context")+".Consumer";case Te:var l=n.render;return n=n.displayName,n||(n=l.displayName||l.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Qe:return l=n.displayName||null,l!==null?l:Ft(n.type)||"Memo";case xe:l=n._payload,n=n._init;try{return Ft(n(l))}catch{}}return null}var $t=Array.isArray,V=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ve=[],Ce=-1;function Et(n){return{current:n}}function st(n){0>Ce||(n.current=ve[Ce],ve[Ce]=null,Ce--)}function Xe(n,l){Ce++,ve[Ce]=n.current,n.current=l}var Ze=Et(null),Bt=Et(null),en=Et(null),Pn=Et(null);function Vt(n,l){switch(Xe(en,l),Xe(Bt,n),Xe(Ze,null),l.nodeType){case 9:case 11:n=(n=l.documentElement)&&(n=n.namespaceURI)?g4(n):0;break;default:if(n=l.tagName,l=l.namespaceURI)l=g4(l),n=cp(l,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}st(Ze),Xe(Ze,n)}function ea(){st(Ze),st(Bt),st(en)}function cu(n){n.memoizedState!==null&&Xe(Pn,n);var l=Ze.current,u=cp(l,n.type);l!==u&&(Xe(Bt,n),Xe(Ze,u))}function fe(n){Bt.current===n&&(st(Ze),st(Bt)),Pn.current===n&&(st(Pn),vh._currentValue=ie)}var Ti,io;function Va(n){if(Ti===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);Ti=l&&l[1]||"",io=-1<u.stack.indexOf(`
|
|
99
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
100
|
+
`+Ti+n+io}var Ya=!1;function dt(n,l){if(!n||Ya)return"";Ya=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(l){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch($){var Z=$}Reflect.construct(n,[],ae)}else{try{ae.call()}catch($){Z=$}n.call(ae.prototype)}}else{try{throw Error()}catch($){Z=$}(ae=n())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch($){if($&&Z&&typeof $.stack=="string")return[$.stack,Z.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),S=g[0],x=g[1];if(S&&x){var z=S.split(`
|
|
101
|
+
`),Q=x.split(`
|
|
102
|
+
`);for(m=s=0;s<z.length&&!z[s].includes("DetermineComponentFrameRoot");)s++;for(;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;if(s===z.length||m===Q.length)for(s=z.length-1,m=Q.length-1;1<=s&&0<=m&&z[s]!==Q[m];)m--;for(;1<=s&&0<=m;s--,m--)if(z[s]!==Q[m]){if(s!==1||m!==1)do if(s--,m--,0>m||z[s]!==Q[m]){var I=`
|
|
103
|
+
`+z[s].replace(" at new "," at ");return n.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",n.displayName)),I}while(1<=s&&0<=m);break}}}finally{Ya=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?Va(u):""}function Zo(n,l){switch(n.tag){case 26:case 27:case 5:return Va(n.type);case 16:return Va("Lazy");case 13:return n.child!==l&&l!==null?Va("Suspense Fallback"):Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return dt(n.type,!1);case 11:return dt(n.type.render,!1);case 1:return dt(n.type,!0);case 31:return Va("Activity");default:return""}}function Re(n){try{var l="",u=null;do l+=Zo(n,u),u=n,n=n.return;while(n);return l}catch(s){return`
|
|
104
|
+
Error generating stack: `+s.message+`
|
|
105
|
+
`+s.stack}}var kt=Object.prototype.hasOwnProperty,ht=i.unstable_scheduleCallback,Jo=i.unstable_cancelCallback,Ql=i.unstable_shouldYield,Vc=i.unstable_requestPaint,Hn=i.unstable_now,S0=i.unstable_getCurrentPriorityLevel,cr=i.unstable_ImmediatePriority,sr=i.unstable_UserBlockingPriority,su=i.unstable_NormalPriority,ym=i.unstable_LowPriority,rr=i.unstable_IdlePriority,wa=i.log,Ko=i.unstable_setDisableYieldValue,sn=null,_n=null;function ol(n){if(typeof wa=="function"&&Ko(n),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(sn,n)}catch{}}var ba=Math.clz32?Math.clz32:Zl,E0=Math.log,ru=Math.LN2;function Zl(n){return n>>>=0,n===0?32:31-(E0(n)/ru|0)|0}var Ai=256,vl=262144,Jl=4194304;function Kl(n){var l=n&42;if(l!==0)return l;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function xn(n,l,u){var s=n.pendingLanes;if(s===0)return 0;var m=0,g=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var x=s&134217727;return x!==0?(s=x&~g,s!==0?m=Kl(s):(S&=x,S!==0?m=Kl(S):u||(u=x&~n,u!==0&&(m=Kl(u))))):(x=s&~g,x!==0?m=Kl(x):S!==0?m=Kl(S):u||(u=s&~n,u!==0&&(m=Kl(u)))),m===0?0:l!==0&&l!==m&&!(l&g)&&(g=m&-m,u=l&-l,g>=u||g===32&&(u&4194048)!==0)?l:m}function _i(n,l){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&l)===0}function fr(n,l){switch(n){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yc(){var n=Jl;return Jl<<=1,!(Jl&62914560)&&(Jl=4194304),n}function id(n){for(var l=[],u=0;31>u;u++)l.push(n);return l}function dr(n,l){n.pendingLanes|=l,l!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function T0(n,l,u,s,m,g){var S=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var x=n.entanglements,z=n.expirationTimes,Q=n.hiddenUpdates;for(u=S&~u;0<u;){var I=31-ba(u),ae=1<<I;x[I]=0,z[I]=-1;var Z=Q[I];if(Z!==null)for(Q[I]=null,I=0;I<Z.length;I++){var $=Z[I];$!==null&&($.lane&=-536870913)}u&=~ae}s!==0&&ud(n,s,0),g!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=g&~(S&~l))}function ud(n,l,u){n.pendingLanes|=l,n.suspendedLanes&=~l;var s=31-ba(l);n.entangledLanes|=l,n.entanglements[s]=n.entanglements[s]|1073741824|u&261930}function fu(n,l){var u=n.entangledLanes|=l;for(n=n.entanglements;u;){var s=31-ba(u),m=1<<s;m&l|n[s]&l&&(n[s]|=l),u&=~m}}function wl(n,l){var u=l&-l;return u=u&42?1:A0(u),u&(n.suspendedLanes|l)?0:u}function A0(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function vm(n){return n&=-n,2<n?8<n?n&134217727?32:268435456:8:2}function _0(){var n=ee.p;return n!==0?n:(n=window.event,n===void 0?32:wh(n.type))}function wm(n,l){var u=ee.p;try{return ee.p=n,l()}finally{ee.p=u}}var xi=Math.random().toString(36).slice(2),Ht="__reactFiber$"+xi,ka="__reactProps$"+xi,Fo="__reactContainer$"+xi,x0="__reactEvents$"+xi,bm="__reactListeners$"+xi,a3="__reactHandles$"+xi,Sm="__reactResources$"+xi,du="__reactMarker$"+xi;function M0(n){delete n[Ht],delete n[ka],delete n[x0],delete n[bm],delete n[a3]}function kc(n){var l=n[Ht];if(l)return l;for(var u=n.parentNode;u;){if(l=u[Fo]||u[Ht]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(n=Ji(n);n!==null;){if(u=n[Ht])return u;n=Ji(n)}return l}n=u,u=n.parentNode}return null}function Xc(n){if(n=n[Ht]||n[Fo]){var l=n.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return n}return null}function hr(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n.stateNode;throw Error(h(33))}function Qc(n){var l=n[Sm];return l||(l=n[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Mt(n){n[du]=!0}var Zc=new Set,$o={};function Io(n,l){hu(n,l),hu(n+"Capture",l)}function hu(n,l){for($o[n]=l,n=0;n<l.length;n++)Zc.add(l[n])}var C0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),D0={},mr={};function gr(n){return kt.call(mr,n)?!0:kt.call(D0,n)?!1:C0.test(n)?mr[n]=!0:(D0[n]=!0,!1)}function pr(n,l,u){if(gr(l))if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(l);return;case"boolean":var s=l.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(l);return}}n.setAttribute(l,""+u)}}function O0(n,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttribute(l,""+u)}}function uo(n,l,u,s){if(s===null)n.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(l,u,""+s)}}function bl(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function z0(n){var l=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Em(n,l,u){var s=Object.getOwnPropertyDescriptor(n.constructor.prototype,l);if(!n.hasOwnProperty(l)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var m=s.get,g=s.set;return Object.defineProperty(n,l,{configurable:!0,get:function(){return m.call(this)},set:function(S){u=""+S,g.call(this,S)}}),Object.defineProperty(n,l,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){n._valueTracker=null,delete n[l]}}}}function N0(n){if(!n._valueTracker){var l=z0(n)?"checked":"value";n._valueTracker=Em(n,l,""+n[l])}}function Tm(n){if(!n)return!1;var l=n._valueTracker;if(!l)return!0;var u=l.getValue(),s="";return n&&(s=z0(n)?n.checked?"true":"false":n.value),n=s,n!==u?(l.setValue(n),!0):!1}function od(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var cb=/[\n"\\]/g;function Sl(n){return n.replace(cb,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function cd(n,l,u,s,m,g,S,x){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),l!=null?S==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+bl(l)):n.value!==""+bl(l)&&(n.value=""+bl(l)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),l!=null?Jc(n,S,bl(l)):u!=null?Jc(n,S,bl(u)):s!=null&&n.removeAttribute("value"),m==null&&g!=null&&(n.defaultChecked=!!g),m!=null&&(n.checked=m&&typeof m!="function"&&typeof m!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.name=""+bl(x):n.removeAttribute("name")}function sd(n,l,u,s,m,g,S,x){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),l!=null||u!=null){if(!(g!=="submit"&&g!=="reset"||l!=null)){N0(n);return}u=u!=null?""+bl(u):"",l=l!=null?""+bl(l):u,x||l===n.value||(n.value=l),n.defaultValue=l}s=s??m,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=x?n.checked:!!s,n.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S),N0(n)}function Jc(n,l,u){l==="number"&&od(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function yr(n,l,u,s){if(n=n.options,l){l={};for(var m=0;m<u.length;m++)l["$"+u[m]]=!0;for(u=0;u<n.length;u++)m=l.hasOwnProperty("$"+n[u].value),n[u].selected!==m&&(n[u].selected=m),m&&s&&(n[u].defaultSelected=!0)}else{for(u=""+bl(u),l=null,m=0;m<n.length;m++){if(n[m].value===u){n[m].selected=!0,s&&(n[m].defaultSelected=!0);return}l!==null||n[m].disabled||(l=n[m])}l!==null&&(l.selected=!0)}}function Am(n,l,u){if(l!=null&&(l=""+bl(l),l!==n.value&&(n.value=l),u==null)){n.defaultValue!==l&&(n.defaultValue=l);return}n.defaultValue=u!=null?""+bl(u):""}function _m(n,l,u,s){if(l==null){if(s!=null){if(u!=null)throw Error(h(92));if($t(s)){if(1<s.length)throw Error(h(93));s=s[0]}u=s}u==null&&(u=""),l=u}u=bl(l),n.defaultValue=u,s=n.textContent,s===u&&s!==""&&s!==null&&(n.value=s),N0(n)}function mu(n,l){if(l){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=l;return}}n.textContent=l}var l3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function i3(n,l,u){var s=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?s?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="":s?n.setProperty(l,u):typeof u!="number"||u===0||l3.has(l)?l==="float"?n.cssFloat=u:n[l]=(""+u).trim():n[l]=u+"px"}function u3(n,l,u){if(l!=null&&typeof l!="object")throw Error(h(62));if(n=n.style,u!=null){for(var s in u)!u.hasOwnProperty(s)||l!=null&&l.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var m in l)s=l[m],l.hasOwnProperty(m)&&u[m]!==s&&i3(n,m,s)}else for(var g in l)l.hasOwnProperty(g)&&i3(n,g,l[g])}function xm(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fl(n){return rd.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Mi(){}var U0=null;function B0(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var gu=null,Kc=null;function fd(n){var l=Xc(n);if(l&&(n=l.stateNode)){var u=n[ka]||null;e:switch(n=l.stateNode,l.type){case"input":if(cd(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Sl(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var s=u[l];if(s!==n&&s.form===n.form){var m=s[ka]||null;if(!m)throw Error(h(90));cd(s,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(l=0;l<u.length;l++)s=u[l],s.form===n.form&&Tm(s)}break e;case"textarea":Am(n,u.value,u.defaultValue);break e;case"select":l=u.value,l!=null&&yr(n,!!u.multiple,l,!1)}}}var vr=!1;function Mm(n,l,u){if(vr)return n(l,u);vr=!0;try{var s=n(l);return s}finally{if(vr=!1,(gu!==null||Kc!==null)&&(ef(),gu&&(l=gu,n=Kc,Kc=gu=null,fd(l),n)))for(l=0;l<n.length;l++)fd(n[l])}}function ta(n,l){var u=n.stateNode;if(u===null)return null;var s=u[ka]||null;if(s===null)return null;u=s[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(h(231,l,typeof u));return u}var oo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=!1;if(oo)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){dd=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{dd=!1}var co=null,Cm=null,H0=null;function Dm(){if(H0)return H0;var n,l=Cm,u=l.length,s,m="value"in co?co.value:co.textContent,g=m.length;for(n=0;n<u&&l[n]===m[n];n++);var S=u-n;for(s=1;s<=S&&l[u-s]===m[g-s];s++);return H0=m.slice(n,1<s?1-s:void 0)}function L0(n){var l=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&l===13&&(n=13)):n=l,n===10&&(n=13),32<=n||n===13?n:0}function hd(){return!0}function o3(){return!1}function Sa(n){function l(u,s,m,g,S){this._reactName=u,this._targetInst=m,this.type=s,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var x in n)n.hasOwnProperty(x)&&(u=n[x],this[x]=u?u(g):g[x]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?hd:o3,this.isPropagationStopped=o3,this}return N(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=hd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=hd)},persist:function(){},isPersistent:hd}),l}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},md=Sa(Wo),br=N({},Wo,{view:0,detail:0}),rb=Sa(br),Om,zm,gd,G0=N({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$l,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==gd&&(gd&&n.type==="mousemove"?(Om=n.screenX-gd.screenX,zm=n.screenY-gd.screenY):zm=Om=0,gd=n),Om)},movementY:function(n){return"movementY"in n?n.movementY:zm}}),Sr=Sa(G0),c3=N({},G0,{dataTransfer:0}),s3=Sa(c3),r3=N({},br,{relatedTarget:0}),R0=Sa(r3),Nm=N({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),f3=Sa(Nm),Fc=N({},Wo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),$c=Sa(Fc),Ci=N({},Wo,{data:0}),d3=Sa(Ci),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},h3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Di(n){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(n):(n=h3[n])?!!l[n]:!1}function $l(){return Di}var j0=N({},br,{key:function(n){if(n.key){var l=Um[n.key]||n.key;if(l!=="Unidentified")return l}return n.type==="keypress"?(n=L0(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?pu[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$l,charCode:function(n){return n.type==="keypress"?L0(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?L0(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),q0=Sa(j0),Bm=N({},G0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oi=Sa(Bm),fb=N({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$l}),m3=Sa(fb),g3=N({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),db=Sa(g3),Hm=N({},G0,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),hb=Sa(Hm),p3=N({},Wo,{newState:0,oldState:0}),Lm=Sa(p3),V0=[9,13,27,32],Er=oo&&"CompositionEvent"in window,Ic=null;oo&&"documentMode"in document&&(Ic=document.documentMode);var za=oo&&"TextEvent"in window&&!Ic,Gm=oo&&(!Er||Ic&&8<Ic&&11>=Ic),pd=" ",Po=!1;function Y0(n,l){switch(n){case"keyup":return V0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Wc=!1;function y3(n,l){switch(n){case"compositionend":return Rm(l);case"keypress":return l.which!==32?null:(Po=!0,pd);case"textInput":return n=l.data,n===pd&&Po?null:n;default:return null}}function mb(n,l){if(Wc)return n==="compositionend"||!Er&&Y0(n,l)?(n=Dm(),H0=Cm=co=null,Wc=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Gm&&l.locale!=="ko"?null:l.data;default:return null}}var jm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yu(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l==="input"?!!jm[n.type]:l==="textarea"}function qm(n,l,u,s){gu?Kc?Kc.push(s):Kc=[s]:gu=s,l=dh(l,"onChange"),0<l.length&&(u=new md("onChange","change",null,u,s),n.push({event:u,listeners:l}))}var Pc=null,ec=null;function es(n){d4(n,0)}function Tr(n){var l=hr(n);if(Tm(l))return n}function Vm(n,l){if(n==="change")return l}var k0=!1;if(oo){var Xa;if(oo){var zi="oninput"in document;if(!zi){var Ym=document.createElement("div");Ym.setAttribute("oninput","return;"),zi=typeof Ym.oninput=="function"}Xa=zi}else Xa=!1;k0=Xa&&(!document.documentMode||9<document.documentMode)}function X0(){Pc&&(Pc.detachEvent("onpropertychange",Q0),ec=Pc=null)}function Q0(n){if(n.propertyName==="value"&&Tr(ec)){var l=[];qm(l,ec,n,B0(n)),Mm(es,l)}}function v3(n,l,u){n==="focusin"?(X0(),Pc=l,ec=u,Pc.attachEvent("onpropertychange",Q0)):n==="focusout"&&X0()}function w3(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Tr(ec)}function tc(n,l){if(n==="click")return Tr(l)}function ts(n,l){if(n==="input"||n==="change")return Tr(l)}function b3(n,l){return n===l&&(n!==0||1/n===1/l)||n!==n&&l!==l}var Na=typeof Object.is=="function"?Object.is:b3;function Il(n,l){if(Na(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;var u=Object.keys(n),s=Object.keys(l);if(u.length!==s.length)return!1;for(s=0;s<u.length;s++){var m=u[s];if(!kt.call(l,m)||!Na(n[m],l[m]))return!1}return!0}function km(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Xm(n,l){var u=km(n);n=0;for(var s;u;){if(u.nodeType===3){if(s=n+u.textContent.length,n<=l&&s>=l)return{node:u,offset:l-n};n=s}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=km(u)}}function ns(n,l){return n&&l?n===l?!0:n&&n.nodeType===3?!1:l&&l.nodeType===3?ns(n,l.parentNode):"contains"in n?n.contains(l):n.compareDocumentPosition?!!(n.compareDocumentPosition(l)&16):!1:!1}function nc(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var l=od(n.document);l instanceof n.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)n=l.contentWindow;else break;l=od(n.document)}return l}function yd(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l&&(l==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||l==="textarea"||n.contentEditable==="true")}var vd=oo&&"documentMode"in document&&11>=document.documentMode,ac=null,Ar=null,Wl=null,Ni=!1;function Z0(n,l,u){var s=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Ni||ac==null||ac!==od(s)||(s=ac,"selectionStart"in s&&yd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Wl&&Il(Wl,s)||(Wl=s,s=dh(Ar,"onSelect"),0<s.length&&(l=new md("onSelect","select",null,l,u),n.push({event:l,listeners:s}),l.target=ac)))}function so(n,l){var u={};return u[n.toLowerCase()]=l.toLowerCase(),u["Webkit"+n]="webkit"+l,u["Moz"+n]="moz"+l,u}var Ui={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionrun:so("Transition","TransitionRun"),transitionstart:so("Transition","TransitionStart"),transitioncancel:so("Transition","TransitionCancel"),transitionend:so("Transition","TransitionEnd")},_r={},lc={};oo&&(lc=document.createElement("div").style,"AnimationEvent"in window||(delete Ui.animationend.animation,delete Ui.animationiteration.animation,delete Ui.animationstart.animation),"TransitionEvent"in window||delete Ui.transitionend.transition);function Tt(n){if(_r[n])return _r[n];if(!Ui[n])return n;var l=Ui[n],u;for(u in l)if(l.hasOwnProperty(u)&&u in lc)return _r[n]=l[u];return n}var wd=Tt("animationend"),Qm=Tt("animationiteration"),J0=Tt("animationstart"),as=Tt("transitionrun"),bd=Tt("transitionstart"),vu=Tt("transitioncancel"),S3=Tt("transitionend"),wu=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xr.push("scrollEnd");function Qa(n,l){wu.set(n,l),Io(l,[n])}var ls=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},tn=[],na=0,Pl=0;function El(){for(var n=na,l=Pl=na=0;l<n;){var u=tn[l];tn[l++]=null;var s=tn[l];tn[l++]=null;var m=tn[l];tn[l++]=null;var g=tn[l];if(tn[l++]=null,s!==null&&m!==null){var S=s.pending;S===null?m.next=m:(m.next=S.next,S.next=m),s.pending=m}g!==0&&K0(u,m,g)}}function Tl(n,l,u,s){tn[na++]=n,tn[na++]=l,tn[na++]=u,tn[na++]=s,Pl|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function ei(n,l,u,s){return Tl(n,l,u,s),Sd(n)}function ro(n,l){return Tl(n,null,null,l),Sd(n)}function K0(n,l,u){n.lanes|=u;var s=n.alternate;s!==null&&(s.lanes|=u);for(var m=!1,g=n.return;g!==null;)g.childLanes|=u,s=g.alternate,s!==null&&(s.childLanes|=u),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(m=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,m&&l!==null&&(m=31-ba(u),n=g.hiddenUpdates,s=n[m],s===null?n[m]=[l]:s.push(l),l.lane=u|536870912),g):null}function Sd(n){if(50<Pr)throw Pr=0,ah=null,Error(h(185));for(var l=n.return;l!==null;)n=l,l=n.return;return n.tag===3?n.stateNode:null}var Za={};function E3(n,l,u,s){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(n,l,u,s){return new E3(n,l,u,s)}function is(n){return n=n.prototype,!(!n||!n.isReactComponent)}function fo(n,l){var u=n.alternate;return u===null?(u=yn(n.tag,l,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=l,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,l=n.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function Zm(n,l){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=l,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,l=u.dependencies,n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),n}function F0(n,l,u,s,m,g){var S=0;if(s=n,typeof n=="function")is(n)&&(S=1);else if(typeof n=="string")S=gp(n,u,Ze.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case me:return n=yn(31,u,l,m),n.elementType=me,n.lanes=g,n;case oe:return ho(u.children,m,g,l);case ue:S=8,m|=24;break;case P:return n=yn(12,u,l,m|2),n.elementType=P,n.lanes=g,n;case nt:return n=yn(13,u,l,m),n.elementType=nt,n.lanes=g,n;case Be:return n=yn(19,u,l,m),n.elementType=Be,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case be:S=10;break e;case ye:S=9;break e;case Te:S=11;break e;case Qe:S=14;break e;case xe:S=16,s=null;break e}S=29,u=Error(h(130,n===null?"null":typeof n,"")),s=null}return l=yn(S,u,l,m),l.elementType=n,l.type=s,l.lanes=g,l}function ho(n,l,u,s){return n=yn(7,n,s,l),n.lanes=u,n}function Mr(n,l,u){return n=yn(6,n,null,l),n.lanes=u,n}function Jm(n){var l=yn(18,null,null,0);return l.stateNode=n,l}function $0(n,l,u){return l=yn(4,n.children!==null?n.children:[],n.key,l),l.lanes=u,l.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},l}var Km=new WeakMap;function Al(n,l){if(typeof n=="object"&&n!==null){var u=Km.get(n);return u!==void 0?u:(l={value:n,source:l,stack:Re(l)},Km.set(n,l),l)}return{value:n,source:l,stack:Re(l)}}var _l=[],us=0,Ed=null,Mn=0,cl=[],Ja=0,Bi=null,sl=1,Hi="";function ti(n,l){_l[us++]=Mn,_l[us++]=Ed,Ed=n,Mn=l}function Fm(n,l,u){cl[Ja++]=sl,cl[Ja++]=Hi,cl[Ja++]=Bi,Bi=n;var s=sl;n=Hi;var m=32-ba(s)-1;s&=~(1<<m),u+=1;var g=32-ba(l)+m;if(30<g){var S=m-m%5;g=(s&(1<<S)-1).toString(32),s>>=S,m-=S,sl=1<<32-ba(l)+m|u<<m|s,Hi=g+n}else sl=1<<g|u<<m|s,Hi=n}function Cr(n){n.return!==null&&(ti(n,1),Fm(n,1,0))}function I0(n){for(;n===Ed;)Ed=_l[--us],_l[us]=null,Mn=_l[--us],_l[us]=null;for(;n===Bi;)Bi=cl[--Ja],cl[Ja]=null,Hi=cl[--Ja],cl[Ja]=null,sl=cl[--Ja],cl[Ja]=null}function Td(n,l){cl[Ja++]=sl,cl[Ja++]=Hi,cl[Ja++]=Bi,sl=l.id,Hi=l.overflow,Bi=n}var aa=null,Xt=null,ut=!1,bu=null,kn=!1,Su=Error(h(519));function ni(n){var l=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Or(Al(l,n)),Su}function Ad(n){var l=n.stateNode,u=n.type,s=n.memoizedProps;switch(l[Ht]=n,l[ka]=s,u){case"dialog":it("cancel",l),it("close",l);break;case"iframe":case"object":case"embed":it("load",l);break;case"video":case"audio":for(u=0;u<uf.length;u++)it(uf[u],l);break;case"source":it("error",l);break;case"img":case"image":case"link":it("error",l),it("load",l);break;case"details":it("toggle",l);break;case"input":it("invalid",l),sd(l,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":it("invalid",l);break;case"textarea":it("invalid",l),_m(l,s.value,s.defaultValue,s.children)}u=s.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||s.suppressHydrationWarning===!0||lp(l.textContent,u)?(s.popover!=null&&(it("beforetoggle",l),it("toggle",l)),s.onScroll!=null&&it("scroll",l),s.onScrollEnd!=null&&it("scrollend",l),s.onClick!=null&&(l.onclick=Mi),l=!0):l=!1,l||ni(n,!0)}function Dr(n){for(aa=n.return;aa;)switch(aa.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:aa=aa.return}}function Eu(n){if(n!==aa)return!1;if(!ut)return Dr(n),ut=!0,!1;var l=n.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||cf(n.type,n.memoizedProps)),u=!u),u&&Xt&&ni(n),Dr(n),l===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));Xt=e2(n)}else if(l===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));Xt=e2(n)}else l===27?(l=Xt,Zi(n.type)?(n=gh,gh=null,Xt=n):Xt=l):Xt=aa?al(n.stateNode.nextSibling):null;return!0}function ic(){Xt=aa=null,ut=!1}function $m(){var n=bu;return n!==null&&(dn===null?dn=n:dn.push.apply(dn,n),bu=null),n}function Or(n){bu===null?bu=[n]:bu.push(n)}var W0=Et(null),mo=null,Li=null;function Ka(n,l,u){Xe(W0,l._currentValue),l._currentValue=u}function Gi(n){n._currentValue=W0.current,st(W0)}function P0(n,l,u){for(;n!==null;){var s=n.alternate;if((n.childLanes&l)!==l?(n.childLanes|=l,s!==null&&(s.childLanes|=l)):s!==null&&(s.childLanes&l)!==l&&(s.childLanes|=l),n===u)break;n=n.return}}function Tu(n,l,u,s){var m=n.child;for(m!==null&&(m.return=n);m!==null;){var g=m.dependencies;if(g!==null){var S=m.child;g=g.firstContext;e:for(;g!==null;){var x=g;g=m;for(var z=0;z<l.length;z++)if(x.context===l[z]){g.lanes|=u,x=g.alternate,x!==null&&(x.lanes|=u),P0(g.return,u,n),s||(S=null);break e}g=x.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(h(341));S.lanes|=u,g=S.alternate,g!==null&&(g.lanes|=u),P0(S,u,n),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===n){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function la(n,l,u,s){n=null;for(var m=l,g=!1;m!==null;){if(!g){if(m.flags&524288)g=!0;else if(m.flags&262144)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(h(387));if(S=S.memoizedProps,S!==null){var x=m.type;Na(m.pendingProps.value,S.value)||(n!==null?n.push(x):n=[x])}}else if(m===Pn.current){if(S=m.alternate,S===null)throw Error(h(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(n!==null?n.push(vh):n=[vh])}m=m.return}n!==null&&Tu(l,n,u,s),l.flags|=262144}function os(n){for(n=n.firstContext;n!==null;){if(!Na(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function qe(n){mo=n,Li=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function le(n){return _d(mo,n)}function go(n,l){return mo===null&&qe(n),_d(n,l)}function _d(n,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},Li===null){if(n===null)throw Error(h(308));Li=l,n.dependencies={lanes:0,firstContext:l},n.flags|=524288}else Li=Li.next=l;return u}var vn=typeof AbortController<"u"?AbortController:function(){var n=[],l=this.signal={aborted:!1,addEventListener:function(u,s){n.push(s)}};this.abort=function(){l.aborted=!0,n.forEach(function(u){return u()})}},Im=i.unstable_scheduleCallback,Wm=i.unstable_NormalPriority,Cn={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xd(){return{controller:new vn,data:new Map,refCount:0}}function Md(n){n.refCount--,n.refCount===0&&Im(Wm,function(){n.controller.abort()})}var cs=null,Cd=0,uc=0,Ln=null;function Ct(n,l){if(cs===null){var u=cs=[];Cd=0,uc=Z1(),Ln={status:"pending",value:void 0,then:function(s){u.push(s)}}}return Cd++,l.then(Dd,Dd),l}function Dd(){if(--Cd===0&&cs!==null){Ln!==null&&(Ln.status="fulfilled");var n=cs;cs=null,uc=0,Ln=null;for(var l=0;l<n.length;l++)(0,n[l])()}}function Od(n,l){var u=[],s={status:"pending",value:null,reason:null,then:function(m){u.push(m)}};return n.then(function(){s.status="fulfilled",s.value=l;for(var m=0;m<u.length;m++)(0,u[m])(l)},function(m){for(s.status="rejected",s.reason=m,m=0;m<u.length;m++)(0,u[m])(void 0)}),s}var po=V.S;V.S=function(n,l){Qg=Hn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Ct(n,l),po!==null&&po(n,l)};var xl=Et(null);function Ml(){var n=xl.current;return n!==null?n:Gt.pooledCache}function zr(n,l){l===null?Xe(xl,xl.current):Xe(xl,l.pool)}function ss(){var n=Ml();return n===null?null:{parent:Cn._currentValue,pool:n}}var oc=Error(h(460)),rs=Error(h(474)),Nr=Error(h(542)),fs={then:function(){}};function Pm(n){return n=n.status,n==="fulfilled"||n==="rejected"}function eg(n,l,u){switch(u=n[u],u===void 0?n.push(l):u!==l&&(l.then(Mi,Mi),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,e1(n),n;default:if(typeof l.status=="string")l.then(Mi,Mi);else{if(n=Gt,n!==null&&100<n.shellSuspendCounter)throw Error(h(482));n=l,n.status="pending",n.then(function(s){if(l.status==="pending"){var m=l;m.status="fulfilled",m.value=s}},function(s){if(l.status==="pending"){var m=l;m.status="rejected",m.reason=s}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,e1(n),n}throw sc=l,oc}}function cc(n){try{var l=n._init;return l(n._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(sc=u,oc):u}}var sc=null;function tg(){if(sc===null)throw Error(h(459));var n=sc;return sc=null,n}function e1(n){if(n===oc||n===Nr)throw Error(h(483))}var rc=null,ds=0;function zd(n){var l=ds;return ds+=1,rc===null&&(rc=[]),eg(rc,n,l)}function Ur(n,l){l=l.props.ref,n.ref=l!==void 0?l:null}function Nd(n,l){throw l.$$typeof===q?Error(h(525)):(n=Object.prototype.toString.call(l),Error(h(31,n==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":n)))}function T3(n){function l(Y,L){if(n){var X=Y.deletions;X===null?(Y.deletions=[L],Y.flags|=16):X.push(L)}}function u(Y,L){if(!n)return null;for(;L!==null;)l(Y,L),L=L.sibling;return null}function s(Y){for(var L=new Map;Y!==null;)Y.key!==null?L.set(Y.key,Y):L.set(Y.index,Y),Y=Y.sibling;return L}function m(Y,L){return Y=fo(Y,L),Y.index=0,Y.sibling=null,Y}function g(Y,L,X){return Y.index=X,n?(X=Y.alternate,X!==null?(X=X.index,X<L?(Y.flags|=67108866,L):X):(Y.flags|=67108866,L)):(Y.flags|=1048576,L)}function S(Y){return n&&Y.alternate===null&&(Y.flags|=67108866),Y}function x(Y,L,X,te){return L===null||L.tag!==6?(L=Mr(X,Y.mode,te),L.return=Y,L):(L=m(L,X),L.return=Y,L)}function z(Y,L,X,te){var Ae=X.type;return Ae===oe?I(Y,L,X.props.children,te,X.key):L!==null&&(L.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===xe&&cc(Ae)===L.type)?(L=m(L,X.props),Ur(L,X),L.return=Y,L):(L=F0(X.type,X.key,X.props,null,Y.mode,te),Ur(L,X),L.return=Y,L)}function Q(Y,L,X,te){return L===null||L.tag!==4||L.stateNode.containerInfo!==X.containerInfo||L.stateNode.implementation!==X.implementation?(L=$0(X,Y.mode,te),L.return=Y,L):(L=m(L,X.children||[]),L.return=Y,L)}function I(Y,L,X,te,Ae){return L===null||L.tag!==7?(L=ho(X,Y.mode,te,Ae),L.return=Y,L):(L=m(L,X),L.return=Y,L)}function ae(Y,L,X){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Mr(""+L,Y.mode,X),L.return=Y,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case k:return X=F0(L.type,L.key,L.props,null,Y.mode,X),Ur(X,L),X.return=Y,X;case ne:return L=$0(L,Y.mode,X),L.return=Y,L;case xe:return L=cc(L),ae(Y,L,X)}if($t(L)||ke(L))return L=ho(L,Y.mode,X,null),L.return=Y,L;if(typeof L.then=="function")return ae(Y,zd(L),X);if(L.$$typeof===be)return ae(Y,go(Y,L),X);Nd(Y,L)}return null}function Z(Y,L,X,te){var Ae=L!==null?L.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Ae!==null?null:x(Y,L,""+X,te);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return X.key===Ae?z(Y,L,X,te):null;case ne:return X.key===Ae?Q(Y,L,X,te):null;case xe:return X=cc(X),Z(Y,L,X,te)}if($t(X)||ke(X))return Ae!==null?null:I(Y,L,X,te,null);if(typeof X.then=="function")return Z(Y,L,zd(X),te);if(X.$$typeof===be)return Z(Y,L,go(Y,X),te);Nd(Y,X)}return null}function $(Y,L,X,te,Ae){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Y=Y.get(X)||null,x(L,Y,""+te,Ae);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case k:return Y=Y.get(te.key===null?X:te.key)||null,z(L,Y,te,Ae);case ne:return Y=Y.get(te.key===null?X:te.key)||null,Q(L,Y,te,Ae);case xe:return te=cc(te),$(Y,L,X,te,Ae)}if($t(te)||ke(te))return Y=Y.get(X)||null,I(L,Y,te,Ae,null);if(typeof te.then=="function")return $(Y,L,X,zd(te),Ae);if(te.$$typeof===be)return $(Y,L,X,go(L,te),Ae);Nd(L,te)}return null}function he(Y,L,X,te){for(var Ae=null,gt=null,pe=L,Je=L=0,$e=null;pe!==null&&Je<X.length;Je++){pe.index>Je?($e=pe,pe=null):$e=pe.sibling;var wt=Z(Y,pe,X[Je],te);if(wt===null){pe===null&&(pe=$e);break}n&&pe&&wt.alternate===null&&l(Y,pe),L=g(wt,L,Je),gt===null?Ae=wt:gt.sibling=wt,gt=wt,pe=$e}if(Je===X.length)return u(Y,pe),ut&&ti(Y,Je),Ae;if(pe===null){for(;Je<X.length;Je++)pe=ae(Y,X[Je],te),pe!==null&&(L=g(pe,L,Je),gt===null?Ae=pe:gt.sibling=pe,gt=pe);return ut&&ti(Y,Je),Ae}for(pe=s(pe);Je<X.length;Je++)$e=$(pe,Y,Je,X[Je],te),$e!==null&&(n&&$e.alternate!==null&&pe.delete($e.key===null?Je:$e.key),L=g($e,L,Je),gt===null?Ae=$e:gt.sibling=$e,gt=$e);return n&&pe.forEach(function(Fi){return l(Y,Fi)}),ut&&ti(Y,Je),Ae}function ze(Y,L,X,te){if(X==null)throw Error(h(151));for(var Ae=null,gt=null,pe=L,Je=L=0,$e=null,wt=X.next();pe!==null&&!wt.done;Je++,wt=X.next()){pe.index>Je?($e=pe,pe=null):$e=pe.sibling;var Fi=Z(Y,pe,wt.value,te);if(Fi===null){pe===null&&(pe=$e);break}n&&pe&&Fi.alternate===null&&l(Y,pe),L=g(Fi,L,Je),gt===null?Ae=Fi:gt.sibling=Fi,gt=Fi,pe=$e}if(wt.done)return u(Y,pe),ut&&ti(Y,Je),Ae;if(pe===null){for(;!wt.done;Je++,wt=X.next())wt=ae(Y,wt.value,te),wt!==null&&(L=g(wt,L,Je),gt===null?Ae=wt:gt.sibling=wt,gt=wt);return ut&&ti(Y,Je),Ae}for(pe=s(pe);!wt.done;Je++,wt=X.next())wt=$(pe,Y,Je,wt.value,te),wt!==null&&(n&&wt.alternate!==null&&pe.delete(wt.key===null?Je:wt.key),L=g(wt,L,Je),gt===null?Ae=wt:gt.sibling=wt,gt=wt);return n&&pe.forEach(function(M4){return l(Y,M4)}),ut&&ti(Y,Je),Ae}function jt(Y,L,X,te){if(typeof X=="object"&&X!==null&&X.type===oe&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case k:e:{for(var Ae=X.key;L!==null;){if(L.key===Ae){if(Ae=X.type,Ae===oe){if(L.tag===7){u(Y,L.sibling),te=m(L,X.props.children),te.return=Y,Y=te;break e}}else if(L.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===xe&&cc(Ae)===L.type){u(Y,L.sibling),te=m(L,X.props),Ur(te,X),te.return=Y,Y=te;break e}u(Y,L);break}else l(Y,L);L=L.sibling}X.type===oe?(te=ho(X.props.children,Y.mode,te,X.key),te.return=Y,Y=te):(te=F0(X.type,X.key,X.props,null,Y.mode,te),Ur(te,X),te.return=Y,Y=te)}return S(Y);case ne:e:{for(Ae=X.key;L!==null;){if(L.key===Ae)if(L.tag===4&&L.stateNode.containerInfo===X.containerInfo&&L.stateNode.implementation===X.implementation){u(Y,L.sibling),te=m(L,X.children||[]),te.return=Y,Y=te;break e}else{u(Y,L);break}else l(Y,L);L=L.sibling}te=$0(X,Y.mode,te),te.return=Y,Y=te}return S(Y);case xe:return X=cc(X),jt(Y,L,X,te)}if($t(X))return he(Y,L,X,te);if(ke(X)){if(Ae=ke(X),typeof Ae!="function")throw Error(h(150));return X=Ae.call(X),ze(Y,L,X,te)}if(typeof X.then=="function")return jt(Y,L,zd(X),te);if(X.$$typeof===be)return jt(Y,L,go(Y,X),te);Nd(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,L!==null&&L.tag===6?(u(Y,L.sibling),te=m(L,X),te.return=Y,Y=te):(u(Y,L),te=Mr(X,Y.mode,te),te.return=Y,Y=te),S(Y)):u(Y,L)}return function(Y,L,X,te){try{ds=0;var Ae=jt(Y,L,X,te);return rc=null,Ae}catch(pe){if(pe===oc||pe===Nr)throw pe;var gt=yn(29,pe,null,Y.mode);return gt.lanes=te,gt.return=Y,gt}finally{}}}var fc=T3(!0),ng=T3(!1),yo=!1;function Ud(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function t1(n,l){n=n.updateQueue,l.updateQueue===n&&(l.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function vo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Cl(n,l,u){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,vt&2){var m=s.pending;return m===null?l.next=l:(l.next=m.next,m.next=l),s.pending=l,l=Sd(n),K0(n,null,u),l}return Tl(n,s,l,u),Sd(n)}function dc(n,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var s=l.lanes;s&=n.pendingLanes,u|=s,l.lanes=u,fu(n,u)}}function n1(n,l){var u=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,u===s)){var m=null,g=null;if(u=u.firstBaseUpdate,u!==null){do{var S={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};g===null?m=g=S:g=g.next=S,u=u.next}while(u!==null);g===null?m=g=l:g=g.next=l}else m=g=l;u={baseState:s.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=l:n.next=l,u.lastBaseUpdate=l}var ag=!1;function hc(){if(ag){var n=Ln;if(n!==null)throw n}}function Au(n,l,u,s){ag=!1;var m=n.updateQueue;yo=!1;var g=m.firstBaseUpdate,S=m.lastBaseUpdate,x=m.shared.pending;if(x!==null){m.shared.pending=null;var z=x,Q=z.next;z.next=null,S===null?g=Q:S.next=Q,S=z;var I=n.alternate;I!==null&&(I=I.updateQueue,x=I.lastBaseUpdate,x!==S&&(x===null?I.firstBaseUpdate=Q:x.next=Q,I.lastBaseUpdate=z))}if(g!==null){var ae=m.baseState;S=0,I=Q=z=null,x=g;do{var Z=x.lane&-536870913,$=Z!==x.lane;if($?(at&Z)===Z:(s&Z)===Z){Z!==0&&Z===uc&&(ag=!0),I!==null&&(I=I.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var he=n,ze=x;Z=l;var jt=u;switch(ze.tag){case 1:if(he=ze.payload,typeof he=="function"){ae=he.call(jt,ae,Z);break e}ae=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ze.payload,Z=typeof he=="function"?he.call(jt,ae,Z):he,Z==null)break e;ae=N({},ae,Z);break e;case 2:yo=!0}}Z=x.callback,Z!==null&&(n.flags|=64,$&&(n.flags|=8192),$=m.callbacks,$===null?m.callbacks=[Z]:$.push(Z))}else $={lane:Z,tag:x.tag,payload:x.payload,callback:x.callback,next:null},I===null?(Q=I=$,z=ae):I=I.next=$,S|=Z;if(x=x.next,x===null){if(x=m.shared.pending,x===null)break;$=x,x=$.next,$.next=null,m.lastBaseUpdate=$,m.shared.pending=null}}while(!0);I===null&&(z=ae),m.baseState=z,m.firstBaseUpdate=Q,m.lastBaseUpdate=I,g===null&&(m.shared.lanes=0),Xi|=S,n.lanes=S,n.memoizedState=ae}}function a1(n,l){if(typeof n!="function")throw Error(h(191,n));n.call(l)}function mc(n,l){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)a1(u[n],l)}var Xn=Et(null),hs=Et(0);function A3(n,l){n=ki,Xe(hs,n),Xe(Xn,l),ki=n|l.baseLanes}function Bd(){Xe(hs,ki),Xe(Xn,Xn.current)}function Br(){ki=hs.current,st(Xn),st(hs)}var Fa=Et(null),Dl=null;function _u(n){var l=n.alternate;Xe(nn,nn.current&1),Xe(Fa,n),Dl===null&&(l===null||Xn.current!==null||l.memoizedState!==null)&&(Dl=n)}function Hr(n){Xe(nn,nn.current),Xe(Fa,n),Dl===null&&(Dl=n)}function l1(n){n.tag===22?(Xe(nn,nn.current),Xe(Fa,n),Dl===null&&(Dl=n)):Ri()}function Ri(){Xe(nn,nn.current),Xe(Fa,Fa.current)}function $a(n){st(Fa),Dl===n&&(Dl=null),st(nn)}var nn=Et(0);function Lr(n){for(var l=n;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||ui(u)||xc(u)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var xu=0,Ke=null,Dt=null,Dn=null,ms=!1,gs=!1,wo=!1,Hd=0,Gr=0,gc=null,_3=0;function rn(){throw Error(h(321))}function bo(n,l){if(l===null)return!1;for(var u=0;u<l.length&&u<n.length;u++)if(!Na(n[u],l[u]))return!1;return!0}function Ld(n,l,u,s,m,g){return xu=g,Ke=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,V.H=n===null||n.memoizedState===null?U3:S1,wo=!1,g=u(s,m),wo=!1,gs&&(g=x3(l,u,s,m)),i1(n),g}function i1(n){V.H=Qd;var l=Dt!==null&&Dt.next!==null;if(xu=0,Dn=Dt=Ke=null,ms=!1,Gr=0,gc=null,l)throw Error(h(300));n===null||On||(n=n.dependencies,n!==null&&os(n)&&(On=!0))}function x3(n,l,u,s){Ke=n;var m=0;do{if(gs&&(gc=null),Gr=0,gs=!1,25<=m)throw Error(h(301));if(m+=1,Dn=Dt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}V.H=B3,g=l(u,s)}while(gs);return g}function gb(){var n=V.H,l=n.useState()[0];return l=typeof l.then=="function"?ys(l):l,n=n.useState()[0],(Dt!==null?Dt.memoizedState:null)!==n&&(Ke.flags|=1024),l}function u1(){var n=Hd!==0;return Hd=0,n}function ps(n,l,u){l.updateQueue=n.updateQueue,l.flags&=-2053,n.lanes&=~u}function Gd(n){if(ms){for(n=n.memoizedState;n!==null;){var l=n.queue;l!==null&&(l.pending=null),n=n.next}ms=!1}xu=0,Dn=Dt=Ke=null,gs=!1,Gr=Hd=0,gc=null}function ia(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?Ke.memoizedState=Dn=n:Dn=Dn.next=n,Dn}function wn(){if(Dt===null){var n=Ke.alternate;n=n!==null?n.memoizedState:null}else n=Dt.next;var l=Dn===null?Ke.memoizedState:Dn.next;if(l!==null)Dn=l,Dt=n;else{if(n===null)throw Ke.alternate===null?Error(h(467)):Error(h(310));Dt=n,n={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Dn===null?Ke.memoizedState=Dn=n:Dn=Dn.next=n}return Dn}function Rd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ys(n){var l=Gr;return Gr+=1,gc===null&&(gc=[]),n=eg(gc,n,l),l=Ke,(Dn===null?l.memoizedState:Dn.next)===null&&(l=l.alternate,V.H=l===null||l.memoizedState===null?U3:S1),n}function Rr(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ys(n);if(n.$$typeof===be)return le(n)}throw Error(h(438,String(n)))}function o1(n){var l=null,u=Ke.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var s=Ke.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(l={data:s.data.map(function(m){return m.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=Rd(),Ke.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(n),s=0;s<n;s++)u[s]=ce;return l.index++,u}function Mu(n,l){return typeof l=="function"?l(n):l}function Cu(n){var l=wn();return c1(l,Dt,n)}function c1(n,l,u){var s=n.queue;if(s===null)throw Error(h(311));s.lastRenderedReducer=u;var m=n.baseQueue,g=s.pending;if(g!==null){if(m!==null){var S=m.next;m.next=g.next,g.next=S}l.baseQueue=m=g,s.pending=null}if(g=n.baseState,m===null)n.memoizedState=g;else{l=m.next;var x=S=null,z=null,Q=l,I=!1;do{var ae=Q.lane&-536870913;if(ae!==Q.lane?(at&ae)===ae:(xu&ae)===ae){var Z=Q.revertLane;if(Z===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ae===uc&&(I=!0);else if((xu&Z)===Z){Q=Q.next,Z===uc&&(I=!0);continue}else ae={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(x=z=ae,S=g):z=z.next=ae,Ke.lanes|=Z,Xi|=Z;ae=Q.action,wo&&u(g,ae),g=Q.hasEagerState?Q.eagerState:u(g,ae)}else Z={lane:ae,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(x=z=Z,S=g):z=z.next=Z,Ke.lanes|=ae,Xi|=ae;Q=Q.next}while(Q!==null&&Q!==l);if(z===null?S=g:z.next=x,!Na(g,n.memoizedState)&&(On=!0,I&&(u=Ln,u!==null)))throw u;n.memoizedState=g,n.baseState=S,n.baseQueue=z,s.lastRenderedState=g}return m===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function s1(n){var l=wn(),u=l.queue;if(u===null)throw Error(h(311));u.lastRenderedReducer=n;var s=u.dispatch,m=u.pending,g=l.memoizedState;if(m!==null){u.pending=null;var S=m=m.next;do g=n(g,S.action),S=S.next;while(S!==m);Na(g,l.memoizedState)||(On=!0),l.memoizedState=g,l.baseQueue===null&&(l.baseState=g),u.lastRenderedState=g}return[g,s]}function lg(n,l,u){var s=Ke,m=wn(),g=ut;if(g){if(u===void 0)throw Error(h(407));u=u()}else u=l();var S=!Na((Dt||m).memoizedState,u);if(S&&(m.memoizedState=u,On=!0),m=m.queue,m1(r1.bind(null,s,m,n),[n]),m.getSnapshot!==l||S||Dn!==null&&Dn.memoizedState.tag&1){if(s.flags|=2048,ws(9,{destroy:void 0},ig.bind(null,s,m,u,l),null),Gt===null)throw Error(h(349));g||xu&127||jd(s,l,u)}return u}function jd(n,l,u){n.flags|=16384,n={getSnapshot:l,value:u},l=Ke.updateQueue,l===null?(l=Rd(),Ke.updateQueue=l,l.stores=[n]):(u=l.stores,u===null?l.stores=[n]:u.push(n))}function ig(n,l,u,s){l.value=u,l.getSnapshot=s,f1(l)&&d1(n)}function r1(n,l,u){return u(function(){f1(l)&&d1(n)})}function f1(n){var l=n.getSnapshot;n=n.value;try{var u=l();return!Na(n,u)}catch{return!0}}function d1(n){var l=ro(n,2);l!==null&&nl(l,n,2)}function ug(n){var l=ia();if(typeof n=="function"){var u=n;if(n=u(),wo){ol(!0);try{u()}finally{ol(!1)}}}return l.memoizedState=l.baseState=n,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:n},l}function ua(n,l,u,s){return n.baseState=u,c1(n,Dt,typeof s=="function"?s:Mu)}function M3(n,l,u,s,m){if(Xd(n))throw Error(h(485));if(n=l.action,n!==null){var g={payload:m,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};V.T!==null?u(!0):g.isTransition=!1,s(g),u=l.pending,u===null?(g.next=l.pending=g,og(l,g)):(g.next=u.next,l.pending=u.next=g)}}function og(n,l){var u=l.action,s=l.payload,m=n.state;if(l.isTransition){var g=V.T,S={};V.T=S;try{var x=u(m,s),z=V.S;z!==null&&z(S,x),cg(n,l,x)}catch(Q){vs(n,l,Q)}finally{g!==null&&S.types!==null&&(g.types=S.types),V.T=g}}else try{g=u(m,s),cg(n,l,g)}catch(Q){vs(n,l,Q)}}function cg(n,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(s){sg(n,l,s)},function(s){return vs(n,l,s)}):sg(n,l,u)}function sg(n,l,u){l.status="fulfilled",l.value=u,rg(l),n.state=u,l=n.pending,l!==null&&(u=l.next,u===l?n.pending=null:(u=u.next,l.next=u,og(n,u)))}function vs(n,l,u){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do l.status="rejected",l.reason=u,rg(l),l=l.next;while(l!==s)}n.action=null}function rg(n){n=n.listeners;for(var l=0;l<n.length;l++)(0,n[l])()}function qd(n,l){return l}function fg(n,l){if(ut){var u=Gt.formState;if(u!==null){e:{var s=Ke;if(ut){if(Xt){t:{for(var m=Xt,g=kn;m.nodeType!==8;){if(!g){m=null;break t}if(m=al(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){Xt=al(m.nextSibling),s=m.data==="F!";break e}}ni(s)}s=!1}s&&(l=u[0])}}return u=ia(),u.memoizedState=u.baseState=l,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qd,lastRenderedState:l},u.queue=s,u=w1.bind(null,Ke,s),s.dispatch=u,s=ug(!1),g=pc.bind(null,Ke,!1,s.queue),s=ia(),m={state:l,dispatch:null,action:n,pending:null},s.queue=m,u=M3.bind(null,Ke,m,g,u),m.dispatch=u,s.memoizedState=n,[l,u,!1]}function C3(n){var l=wn();return Vd(l,Dt,n)}function Vd(n,l,u){if(l=c1(n,l,qd)[0],n=Cu(Mu)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var s=ys(l)}catch(S){throw S===oc?Nr:S}else s=l;l=wn();var m=l.queue,g=m.dispatch;return u!==l.memoizedState&&(Ke.flags|=2048,ws(9,{destroy:void 0},dg.bind(null,m,u),null)),[s,g,n]}function dg(n,l){n.action=l}function hg(n){var l=wn(),u=Dt;if(u!==null)return Vd(l,u,n);wn(),l=l.memoizedState,u=wn();var s=u.queue.dispatch;return u.memoizedState=n,[l,s,!1]}function ws(n,l,u,s){return n={tag:n,create:u,deps:s,inst:l,next:null},l=Ke.updateQueue,l===null&&(l=Rd(),Ke.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=n.next=n:(s=u.next,u.next=n,n.next=s,l.lastEffect=n),n}function mg(){return wn().memoizedState}function jr(n,l,u,s){var m=ia();Ke.flags|=n,m.memoizedState=ws(1|l,{destroy:void 0},u,s===void 0?null:s)}function qr(n,l,u,s){var m=wn();s=s===void 0?null:s;var g=m.memoizedState.inst;Dt!==null&&s!==null&&bo(s,Dt.memoizedState.deps)?m.memoizedState=ws(l,g,u,s):(Ke.flags|=n,m.memoizedState=ws(1|l,g,u,s))}function h1(n,l){jr(8390656,8,n,l)}function m1(n,l){qr(2048,8,n,l)}function gg(n){Ke.flags|=4;var l=Ke.updateQueue;if(l===null)l=Rd(),Ke.updateQueue=l,l.events=[n];else{var u=l.events;u===null?l.events=[n]:u.push(n)}}function Yd(n){var l=wn().memoizedState;return gg({ref:l,nextImpl:n}),function(){if(vt&2)throw Error(h(440));return l.impl.apply(void 0,arguments)}}function g1(n,l){return qr(4,2,n,l)}function pg(n,l){return qr(4,4,n,l)}function p1(n,l){if(typeof l=="function"){n=n();var u=l(n);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return n=n(),l.current=n,function(){l.current=null}}function yg(n,l,u){u=u!=null?u.concat([n]):null,qr(4,4,p1.bind(null,l,n),u)}function ji(){}function y1(n,l){var u=wn();l=l===void 0?null:l;var s=u.memoizedState;return l!==null&&bo(l,s[1])?s[0]:(u.memoizedState=[n,l],n)}function D3(n,l){var u=wn();l=l===void 0?null:l;var s=u.memoizedState;if(l!==null&&bo(l,s[1]))return s[0];if(s=n(),wo){ol(!0);try{n()}finally{ol(!1)}}return u.memoizedState=[s,l],s}function kd(n,l,u){return u===void 0||xu&1073741824&&!(at&261930)?n.memoizedState=l:(n.memoizedState=u,n=X3(),Ke.lanes|=n,Xi|=n,u)}function Du(n,l,u,s){return Na(u,l)?u:Xn.current!==null?(n=kd(n,u,s),Na(n,l)||(On=!0),n):!(xu&42)||xu&1073741824&&!(at&261930)?(On=!0,n.memoizedState=u):(n=X3(),Ke.lanes|=n,Xi|=n,l)}function v1(n,l,u,s,m){var g=ee.p;ee.p=g!==0&&8>g?g:8;var S=V.T,x={};V.T=x,pc(n,!1,l,u);try{var z=m(),Q=V.S;if(Q!==null&&Q(x,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var I=Od(z,s);So(n,l,I,hl(n))}else So(n,l,s,hl(n))}catch(ae){So(n,l,{then:function(){},status:"rejected",reason:ae},hl())}finally{ee.p=g,S!==null&&x.types!==null&&(S.types=x.types),V.T=S}}function O3(){}function Vr(n,l,u,s){if(n.tag!==5)throw Error(h(476));var m=Yr(n).queue;v1(n,m,l,ie,u===null?O3:function(){return Lt(n),u(s)})}function Yr(n){var l=n.memoizedState;if(l!==null)return l;l={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:ie},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:u},next:null},n.memoizedState=l,n=n.alternate,n!==null&&(n.memoizedState=l),l}function Lt(n){var l=Yr(n);l.next===null&&(l=n.alternate.memoizedState),So(n,l.next.queue,{},hl())}function vg(){return le(vh)}function z3(){return wn().memoizedState}function wg(){return wn().memoizedState}function Ou(n){for(var l=n.return;l!==null;){switch(l.tag){case 24:case 3:var u=hl();n=vo(u);var s=Cl(l,n,u);s!==null&&(nl(s,l,u),dc(s,l,u)),l={cache:xd()},n.payload=l;return}l=l.return}}function N3(n,l,u){var s=hl();u={lane:s,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Xd(n)?b1(l,u):(u=ei(n,l,u,s),u!==null&&(nl(u,n,s),bg(u,l,s)))}function w1(n,l,u){var s=hl();So(n,l,u,s)}function So(n,l,u,s){var m={lane:s,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Xd(n))b1(l,m);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=l.lastRenderedReducer,g!==null))try{var S=l.lastRenderedState,x=g(S,u);if(m.hasEagerState=!0,m.eagerState=x,Na(x,S))return Tl(n,l,m,0),Gt===null&&El(),!1}catch{}finally{}if(u=ei(n,l,m,s),u!==null)return nl(u,n,s),bg(u,l,s),!0}return!1}function pc(n,l,u,s){if(s={lane:2,revertLane:Z1(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Xd(n)){if(l)throw Error(h(479))}else l=ei(n,u,s,2),l!==null&&nl(l,n,2)}function Xd(n){var l=n.alternate;return n===Ke||l!==null&&l===Ke}function b1(n,l){gs=ms=!0;var u=n.pending;u===null?l.next=l:(l.next=u.next,u.next=l),n.pending=l}function bg(n,l,u){if(u&4194048){var s=l.lanes;s&=n.pendingLanes,u|=s,l.lanes=u,fu(n,u)}}var Qd={readContext:le,use:Rr,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useLayoutEffect:rn,useInsertionEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useSyncExternalStore:rn,useId:rn,useHostTransitionStatus:rn,useFormState:rn,useActionState:rn,useOptimistic:rn,useMemoCache:rn,useCacheRefresh:rn};Qd.useEffectEvent=rn;var U3={readContext:le,use:Rr,useCallback:function(n,l){return ia().memoizedState=[n,l===void 0?null:l],n},useContext:le,useEffect:h1,useImperativeHandle:function(n,l,u){u=u!=null?u.concat([n]):null,jr(4194308,4,p1.bind(null,l,n),u)},useLayoutEffect:function(n,l){return jr(4194308,4,n,l)},useInsertionEffect:function(n,l){jr(4,2,n,l)},useMemo:function(n,l){var u=ia();l=l===void 0?null:l;var s=n();if(wo){ol(!0);try{n()}finally{ol(!1)}}return u.memoizedState=[s,l],s},useReducer:function(n,l,u){var s=ia();if(u!==void 0){var m=u(l);if(wo){ol(!0);try{u(l)}finally{ol(!1)}}}else m=l;return s.memoizedState=s.baseState=m,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:m},s.queue=n,n=n.dispatch=N3.bind(null,Ke,n),[s.memoizedState,n]},useRef:function(n){var l=ia();return n={current:n},l.memoizedState=n},useState:function(n){n=ug(n);var l=n.queue,u=w1.bind(null,Ke,l);return l.dispatch=u,[n.memoizedState,u]},useDebugValue:ji,useDeferredValue:function(n,l){var u=ia();return kd(u,n,l)},useTransition:function(){var n=ug(!1);return n=v1.bind(null,Ke,n.queue,!0,!1),ia().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,l,u){var s=Ke,m=ia();if(ut){if(u===void 0)throw Error(h(407));u=u()}else{if(u=l(),Gt===null)throw Error(h(349));at&127||jd(s,l,u)}m.memoizedState=u;var g={value:u,getSnapshot:l};return m.queue=g,h1(r1.bind(null,s,g,n),[n]),s.flags|=2048,ws(9,{destroy:void 0},ig.bind(null,s,g,u,l),null),u},useId:function(){var n=ia(),l=Gt.identifierPrefix;if(ut){var u=Hi,s=sl;u=(s&~(1<<32-ba(s)-1)).toString(32)+u,l="_"+l+"R_"+u,u=Hd++,0<u&&(l+="H"+u.toString(32)),l+="_"}else u=_3++,l="_"+l+"r_"+u.toString(32)+"_";return n.memoizedState=l},useHostTransitionStatus:vg,useFormState:fg,useActionState:fg,useOptimistic:function(n){var l=ia();l.memoizedState=l.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=pc.bind(null,Ke,!0,u),u.dispatch=l,[n,l]},useMemoCache:o1,useCacheRefresh:function(){return ia().memoizedState=Ou.bind(null,Ke)},useEffectEvent:function(n){var l=ia(),u={impl:n};return l.memoizedState=u,function(){if(vt&2)throw Error(h(440));return u.impl.apply(void 0,arguments)}}},S1={readContext:le,use:Rr,useCallback:y1,useContext:le,useEffect:m1,useImperativeHandle:yg,useInsertionEffect:g1,useLayoutEffect:pg,useMemo:D3,useReducer:Cu,useRef:mg,useState:function(){return Cu(Mu)},useDebugValue:ji,useDeferredValue:function(n,l){var u=wn();return Du(u,Dt.memoizedState,n,l)},useTransition:function(){var n=Cu(Mu)[0],l=wn().memoizedState;return[typeof n=="boolean"?n:ys(n),l]},useSyncExternalStore:lg,useId:z3,useHostTransitionStatus:vg,useFormState:C3,useActionState:C3,useOptimistic:function(n,l){var u=wn();return ua(u,Dt,n,l)},useMemoCache:o1,useCacheRefresh:wg};S1.useEffectEvent=Yd;var B3={readContext:le,use:Rr,useCallback:y1,useContext:le,useEffect:m1,useImperativeHandle:yg,useInsertionEffect:g1,useLayoutEffect:pg,useMemo:D3,useReducer:s1,useRef:mg,useState:function(){return s1(Mu)},useDebugValue:ji,useDeferredValue:function(n,l){var u=wn();return Dt===null?kd(u,n,l):Du(u,Dt.memoizedState,n,l)},useTransition:function(){var n=s1(Mu)[0],l=wn().memoizedState;return[typeof n=="boolean"?n:ys(n),l]},useSyncExternalStore:lg,useId:z3,useHostTransitionStatus:vg,useFormState:hg,useActionState:hg,useOptimistic:function(n,l){var u=wn();return Dt!==null?ua(u,Dt,n,l):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:o1,useCacheRefresh:wg};B3.useEffectEvent=Yd;function bs(n,l,u,s){l=n.memoizedState,u=u(s,l),u=u==null?l:N({},l,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var ai={enqueueSetState:function(n,l,u){n=n._reactInternals;var s=hl(),m=vo(s);m.payload=l,u!=null&&(m.callback=u),l=Cl(n,m,s),l!==null&&(nl(l,n,s),dc(l,n,s))},enqueueReplaceState:function(n,l,u){n=n._reactInternals;var s=hl(),m=vo(s);m.tag=1,m.payload=l,u!=null&&(m.callback=u),l=Cl(n,m,s),l!==null&&(nl(l,n,s),dc(l,n,s))},enqueueForceUpdate:function(n,l){n=n._reactInternals;var u=hl(),s=vo(u);s.tag=2,l!=null&&(s.callback=l),l=Cl(n,s,u),l!==null&&(nl(l,n,u),dc(l,n,u))}};function Sg(n,l,u,s,m,g,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,g,S):l.prototype&&l.prototype.isPureReactComponent?!Il(u,s)||!Il(m,g):!0}function H3(n,l,u,s){n=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,s),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,s),l.state!==n&&ai.enqueueReplaceState(l,l.state,null)}function yc(n,l){var u=l;if("ref"in l){u={};for(var s in l)s!=="ref"&&(u[s]=l[s])}if(n=n.defaultProps){u===l&&(u=N({},u));for(var m in n)u[m]===void 0&&(u[m]=n[m])}return u}function E1(n){ls(n)}function Eg(n){console.error(n)}function T1(n){ls(n)}function kr(n,l){try{var u=n.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(s){setTimeout(function(){throw s})}}function Zd(n,l,u){try{var s=n.onCaughtError;s(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Tg(n,l,u){return u=vo(u),u.tag=3,u.payload={element:null},u.callback=function(){kr(n,l)},u}function Ag(n){return n=vo(n),n.tag=3,n}function _g(n,l,u,s){var m=u.type.getDerivedStateFromError;if(typeof m=="function"){var g=s.value;n.payload=function(){return m(g)},n.callback=function(){Zd(l,u,s)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){Zd(l,u,s),typeof m!="function"&&(an===null?an=new Set([this]):an.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function pb(n,l,u,s,m){if(u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(l=u.alternate,l!==null&&la(l,u,m,!0),u=Fa.current,u!==null){switch(u.tag){case 31:case 13:return Dl===null?Y1():u.alternate===null&&Zt===0&&(Zt=3),u.flags&=-257,u.flags|=65536,u.lanes=m,s===fs?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([s]):l.add(s),uh(n,s,m)),!1;case 22:return u.flags|=65536,s===fs?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([s])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([s]):u.add(s)),uh(n,s,m)),!1}throw Error(h(435,u.tag))}return uh(n,s,m),Y1(),!1}if(ut)return l=Fa.current,l!==null?(!(l.flags&65536)&&(l.flags|=256),l.flags|=65536,l.lanes=m,s!==Su&&(n=Error(h(422),{cause:s}),Or(Al(n,u)))):(s!==Su&&(l=Error(h(423),{cause:s}),Or(Al(l,u))),n=n.current.alternate,n.flags|=65536,m&=-m,n.lanes|=m,s=Al(s,u),m=Tg(n.stateNode,s,m),n1(n,m),Zt!==4&&(Zt=2)),!1;var g=Error(h(520),{cause:s});if(g=Al(g,u),nh===null?nh=[g]:nh.push(g),Zt!==4&&(Zt=2),l===null)return!0;s=Al(s,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,n=m&-m,u.lanes|=n,n=Tg(u.stateNode,s,n),n1(u,n),!1;case 1:if(l=u.type,g=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(an===null||!an.has(g))))return u.flags|=65536,m&=-m,u.lanes|=m,m=Ag(m),_g(m,n,u,s),n1(u,m),!1}u=u.return}while(u!==null);return!1}var A1=Error(h(461)),On=!1;function It(n,l,u,s){l.child=n===null?ng(l,null,u,s):fc(l,n.child,u,s)}function xg(n,l,u,s,m){u=u.render;var g=l.ref;if("ref"in s){var S={};for(var x in s)x!=="ref"&&(S[x]=s[x])}else S=s;return qe(l),s=Ld(n,l,u,S,g,m),x=u1(),n!==null&&!On?(ps(n,l,m),Nl(n,l,m)):(ut&&x&&Cr(l),l.flags|=1,It(n,l,s,m),l.child)}function Mg(n,l,u,s,m){if(n===null){var g=u.type;return typeof g=="function"&&!is(g)&&g.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=g,Cg(n,l,g,s,m)):(n=F0(u.type,null,s,l,l.mode,m),n.ref=l.ref,n.return=l,l.child=n)}if(g=n.child,!M1(n,m)){var S=g.memoizedProps;if(u=u.compare,u=u!==null?u:Il,u(S,s)&&n.ref===l.ref)return Nl(n,l,m)}return l.flags|=1,n=fo(g,s),n.ref=l.ref,n.return=l,l.child=n}function Cg(n,l,u,s,m){if(n!==null){var g=n.memoizedProps;if(Il(g,s)&&n.ref===l.ref)if(On=!1,l.pendingProps=s=g,M1(n,m))n.flags&131072&&(On=!0);else return l.lanes=n.lanes,Nl(n,l,m)}return _1(n,l,u,s,m)}function L3(n,l,u,s){var m=s.children,g=n!==null?n.memoizedState:null;if(n===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if(l.flags&128){if(g=g!==null?g.baseLanes|u:u,n!==null){for(s=l.child=n.child,m=0;s!==null;)m=m|s.lanes|s.childLanes,s=s.sibling;s=m&~g}else s=0,l.child=null;return Ia(n,l,g,u,s)}if(u&536870912)l.memoizedState={baseLanes:0,cachePool:null},n!==null&&zr(l,g!==null?g.cachePool:null),g!==null?A3(l,g):Bd(),l1(l);else return s=l.lanes=536870912,Ia(n,l,g!==null?g.baseLanes|u:u,u,s)}else g!==null?(zr(l,g.cachePool),A3(l,g),Ri(),l.memoizedState=null):(n!==null&&zr(l,null),Bd(),Ri());return It(n,l,m,u),l.child}function vc(n,l){return n!==null&&n.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Ia(n,l,u,s,m){var g=Ml();return g=g===null?null:{parent:Cn._currentValue,pool:g},l.memoizedState={baseLanes:u,cachePool:g},n!==null&&zr(l,null),Bd(),l1(l),n!==null&&la(n,l,s,!0),l.childLanes=m,null}function Jd(n,l){return l=$d({mode:l.mode,children:l.children},n.mode),l.ref=n.ref,n.child=l,l.return=n,l}function Wa(n,l,u){return fc(l,n.child,null,u),n=Jd(l,l.pendingProps),n.flags|=2,$a(l),l.memoizedState=null,n}function G3(n,l,u){var s=l.pendingProps,m=(l.flags&128)!==0;if(l.flags&=-129,n===null){if(ut){if(s.mode==="hidden")return n=Jd(l,s),l.lanes=536870912,vc(null,n);if(Hr(l),(n=Xt)?(n=v4(n,kn),n=n!==null&&n.data==="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Bi!==null?{id:sl,overflow:Hi}:null,retryLane:536870912,hydrationErrors:null},u=Jm(n),u.return=l,l.child=u,aa=l,Xt=null)):n=null,n===null)throw ni(l);return l.lanes=536870912,null}return Jd(l,s)}var g=n.memoizedState;if(g!==null){var S=g.dehydrated;if(Hr(l),m)if(l.flags&256)l.flags&=-257,l=Wa(n,l,u);else if(l.memoizedState!==null)l.child=n.child,l.flags|=128,l=null;else throw Error(h(558));else if(On||la(n,l,u,!1),m=(u&n.childLanes)!==0,On||m){if(s=Gt,s!==null&&(S=wl(s,u),S!==0&&S!==g.retryLane))throw g.retryLane=S,ro(n,S),nl(s,n,S),A1;Y1(),l=Wa(n,l,u)}else n=g.treeContext,Xt=al(S.nextSibling),aa=l,ut=!0,bu=null,kn=!1,n!==null&&Td(l,n),l=Jd(l,s),l.flags|=4096;return l}return n=fo(n.child,{mode:s.mode,children:s.children}),n.ref=l.ref,l.child=n,n.return=l,n}function Ol(n,l){var u=l.ref;if(u===null)n!==null&&n.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(h(284));(n===null||n.ref!==u)&&(l.flags|=4194816)}}function _1(n,l,u,s,m){return qe(l),u=Ld(n,l,u,s,void 0,m),s=u1(),n!==null&&!On?(ps(n,l,m),Nl(n,l,m)):(ut&&s&&Cr(l),l.flags|=1,It(n,l,u,m),l.child)}function wc(n,l,u,s,m,g){return qe(l),l.updateQueue=null,u=x3(l,s,u,m),i1(n),s=u1(),n!==null&&!On?(ps(n,l,g),Nl(n,l,g)):(ut&&s&&Cr(l),l.flags|=1,It(n,l,u,g),l.child)}function Dg(n,l,u,s,m){if(qe(l),l.stateNode===null){var g=Za,S=u.contextType;typeof S=="object"&&S!==null&&(g=le(S)),g=new u(s,g),l.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=ai,l.stateNode=g,g._reactInternals=l,g=l.stateNode,g.props=s,g.state=l.memoizedState,g.refs={},Ud(l),S=u.contextType,g.context=typeof S=="object"&&S!==null?le(S):Za,g.state=l.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(bs(l,u,S,s),g.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&ai.enqueueReplaceState(g,g.state,null),Au(l,s,g,m),hc(),g.state=l.memoizedState),typeof g.componentDidMount=="function"&&(l.flags|=4194308),s=!0}else if(n===null){g=l.stateNode;var x=l.memoizedProps,z=yc(u,x);g.props=z;var Q=g.context,I=u.contextType;S=Za,typeof I=="object"&&I!==null&&(S=le(I));var ae=u.getDerivedStateFromProps;I=typeof ae=="function"||typeof g.getSnapshotBeforeUpdate=="function",x=l.pendingProps!==x,I||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x||Q!==S)&&H3(l,g,s,S),yo=!1;var Z=l.memoizedState;g.state=Z,Au(l,s,g,m),hc(),Q=l.memoizedState,x||Z!==Q||yo?(typeof ae=="function"&&(bs(l,u,ae,s),Q=l.memoizedState),(z=yo||Sg(l,u,z,s,Z,Q,S))?(I||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(l.flags|=4194308)):(typeof g.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=s,l.memoizedState=Q),g.props=s,g.state=Q,g.context=S,s=z):(typeof g.componentDidMount=="function"&&(l.flags|=4194308),s=!1)}else{g=l.stateNode,t1(n,l),S=l.memoizedProps,I=yc(u,S),g.props=I,ae=l.pendingProps,Z=g.context,Q=u.contextType,z=Za,typeof Q=="object"&&Q!==null&&(z=le(Q)),x=u.getDerivedStateFromProps,(Q=typeof x=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==ae||Z!==z)&&H3(l,g,s,z),yo=!1,Z=l.memoizedState,g.state=Z,Au(l,s,g,m),hc();var $=l.memoizedState;S!==ae||Z!==$||yo||n!==null&&n.dependencies!==null&&os(n.dependencies)?(typeof x=="function"&&(bs(l,u,x,s),$=l.memoizedState),(I=yo||Sg(l,u,I,s,Z,$,z)||n!==null&&n.dependencies!==null&&os(n.dependencies))?(Q||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,$,z),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,$,z)),typeof g.componentDidUpdate=="function"&&(l.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=1024),l.memoizedProps=s,l.memoizedState=$),g.props=s,g.state=$,g.context=z,s=I):(typeof g.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=1024),s=!1)}return g=s,Ol(n,l),s=(l.flags&128)!==0,g||s?(g=l.stateNode,u=s&&typeof u.getDerivedStateFromError!="function"?null:g.render(),l.flags|=1,n!==null&&s?(l.child=fc(l,n.child,null,m),l.child=fc(l,null,u,m)):It(n,l,u,m),l.memoizedState=g.state,n=l.child):n=Nl(n,l,m),n}function qi(n,l,u,s){return ic(),l.flags|=256,It(n,l,u,s),l.child}var Kd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fd(n){return{baseLanes:n,cachePool:ss()}}function zl(n,l,u){return n=n!==null?n.childLanes&~u:0,l&&(n|=tl),n}function Og(n,l,u){var s=l.pendingProps,m=!1,g=(l.flags&128)!==0,S;if((S=g)||(S=n!==null&&n.memoizedState===null?!1:(nn.current&2)!==0),S&&(m=!0,l.flags&=-129),S=(l.flags&32)!==0,l.flags&=-33,n===null){if(ut){if(m?_u(l):Ri(),(n=Xt)?(n=v4(n,kn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Bi!==null?{id:sl,overflow:Hi}:null,retryLane:536870912,hydrationErrors:null},u=Jm(n),u.return=l,l.child=u,aa=l,Xt=null)):n=null,n===null)throw ni(l);return xc(n)?l.lanes=32:l.lanes=536870912,null}var x=s.children;return s=s.fallback,m?(Ri(),m=l.mode,x=$d({mode:"hidden",children:x},m),s=ho(s,m,u,null),x.return=l,s.return=l,x.sibling=s,l.child=x,s=l.child,s.memoizedState=Fd(u),s.childLanes=zl(n,S,u),l.memoizedState=Kd,vc(null,s)):(_u(l),bc(l,x))}var z=n.memoizedState;if(z!==null&&(x=z.dehydrated,x!==null)){if(g)l.flags&256?(_u(l),l.flags&=-257,l=Ss(n,l,u)):l.memoizedState!==null?(Ri(),l.child=n.child,l.flags|=128,l=null):(Ri(),x=s.fallback,m=l.mode,s=$d({mode:"visible",children:s.children},m),x=ho(x,m,u,null),x.flags|=2,s.return=l,x.return=l,s.sibling=x,l.child=s,fc(l,n.child,null,u),s=l.child,s.memoizedState=Fd(u),s.childLanes=zl(n,S,u),l.memoizedState=Kd,l=vc(null,s));else if(_u(l),xc(x)){if(S=x.nextSibling&&x.nextSibling.dataset,S)var Q=S.dgst;S=Q,s=Error(h(419)),s.stack="",s.digest=S,Or({value:s,source:null,stack:null}),l=Ss(n,l,u)}else if(On||la(n,l,u,!1),S=(u&n.childLanes)!==0,On||S){if(S=Gt,S!==null&&(s=wl(S,u),s!==0&&s!==z.retryLane))throw z.retryLane=s,ro(n,s),nl(S,n,s),A1;ui(x)||Y1(),l=Ss(n,l,u)}else ui(x)?(l.flags|=192,l.child=n.child,l=null):(n=z.treeContext,Xt=al(x.nextSibling),aa=l,ut=!0,bu=null,kn=!1,n!==null&&Td(l,n),l=bc(l,s.children),l.flags|=4096);return l}return m?(Ri(),x=s.fallback,m=l.mode,z=n.child,Q=z.sibling,s=fo(z,{mode:"hidden",children:s.children}),s.subtreeFlags=z.subtreeFlags&65011712,Q!==null?x=fo(Q,x):(x=ho(x,m,u,null),x.flags|=2),x.return=l,s.return=l,s.sibling=x,l.child=s,vc(null,s),s=l.child,x=n.child.memoizedState,x===null?x=Fd(u):(m=x.cachePool,m!==null?(z=Cn._currentValue,m=m.parent!==z?{parent:z,pool:z}:m):m=ss(),x={baseLanes:x.baseLanes|u,cachePool:m}),s.memoizedState=x,s.childLanes=zl(n,S,u),l.memoizedState=Kd,vc(n.child,s)):(_u(l),u=n.child,n=u.sibling,u=fo(u,{mode:"visible",children:s.children}),u.return=l,u.sibling=null,n!==null&&(S=l.deletions,S===null?(l.deletions=[n],l.flags|=16):S.push(n)),l.child=u,l.memoizedState=null,u)}function bc(n,l){return l=$d({mode:"visible",children:l},n.mode),l.return=n,n.child=l}function $d(n,l){return n=yn(22,n,null,l),n.lanes=0,n}function Ss(n,l,u){return fc(l,n.child,null,u),n=bc(l,l.pendingProps.children),n.flags|=2,l.memoizedState=null,n}function Es(n,l,u){n.lanes|=l;var s=n.alternate;s!==null&&(s.lanes|=l),P0(n.return,l,u)}function x1(n,l,u,s,m,g){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:s,tail:u,tailMode:m,treeForkCount:g}:(S.isBackwards=l,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=u,S.tailMode=m,S.treeForkCount=g)}function zg(n,l,u){var s=l.pendingProps,m=s.revealOrder,g=s.tail;s=s.children;var S=nn.current,x=(S&2)!==0;if(x?(S=S&1|2,l.flags|=128):S&=1,Xe(nn,S),It(n,l,s,u),s=ut?Mn:0,!x&&n!==null&&n.flags&128)e:for(n=l.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Es(n,u,l);else if(n.tag===19)Es(n,u,l);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===l)break e;for(;n.sibling===null;){if(n.return===null||n.return===l)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(m){case"forwards":for(u=l.child,m=null;u!==null;)n=u.alternate,n!==null&&Lr(n)===null&&(m=u),u=u.sibling;u=m,u===null?(m=l.child,l.child=null):(m=u.sibling,u.sibling=null),x1(l,!1,m,u,g,s);break;case"backwards":case"unstable_legacy-backwards":for(u=null,m=l.child,l.child=null;m!==null;){if(n=m.alternate,n!==null&&Lr(n)===null){l.child=m;break}n=m.sibling,m.sibling=u,u=m,m=n}x1(l,!0,u,null,g,s);break;case"together":x1(l,!1,null,null,void 0,s);break;default:l.memoizedState=null}return l.child}function Nl(n,l,u){if(n!==null&&(l.dependencies=n.dependencies),Xi|=l.lanes,!(u&l.childLanes))if(n!==null){if(la(n,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(n!==null&&l.child!==n.child)throw Error(h(153));if(l.child!==null){for(n=l.child,u=fo(n,n.pendingProps),l.child=u,u.return=l;n.sibling!==null;)n=n.sibling,u=u.sibling=fo(n,n.pendingProps),u.return=l;u.sibling=null}return l.child}function M1(n,l){return n.lanes&l?!0:(n=n.dependencies,!!(n!==null&&os(n)))}function C1(n,l,u){switch(l.tag){case 3:Vt(l,l.stateNode.containerInfo),Ka(l,Cn,n.memoizedState.cache),ic();break;case 27:case 5:cu(l);break;case 4:Vt(l,l.stateNode.containerInfo);break;case 10:Ka(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Hr(l),null;break;case 13:var s=l.memoizedState;if(s!==null)return s.dehydrated!==null?(_u(l),l.flags|=128,null):u&l.child.childLanes?Og(n,l,u):(_u(l),n=Nl(n,l,u),n!==null?n.sibling:null);_u(l);break;case 19:var m=(n.flags&128)!==0;if(s=(u&l.childLanes)!==0,s||(la(n,l,u,!1),s=(u&l.childLanes)!==0),m){if(s)return zg(n,l,u);l.flags|=128}if(m=l.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Xe(nn,nn.current),s)break;return null;case 22:return l.lanes=0,L3(n,l,u,l.pendingProps);case 24:Ka(l,Cn,n.memoizedState.cache)}return Nl(n,l,u)}function Ng(n,l,u){if(n!==null)if(n.memoizedProps!==l.pendingProps)On=!0;else{if(!M1(n,u)&&!(l.flags&128))return On=!1,C1(n,l,u);On=!!(n.flags&131072)}else On=!1,ut&&l.flags&1048576&&Fm(l,Mn,l.index);switch(l.lanes=0,l.tag){case 16:e:{var s=l.pendingProps;if(n=cc(l.elementType),l.type=n,typeof n=="function")is(n)?(s=yc(n,s),l.tag=1,l=Dg(null,l,n,s,u)):(l.tag=0,l=_1(null,l,n,s,u));else{if(n!=null){var m=n.$$typeof;if(m===Te){l.tag=11,l=xg(null,l,n,s,u);break e}else if(m===Qe){l.tag=14,l=Mg(null,l,n,s,u);break e}}throw l=Ft(n)||n,Error(h(306,l,""))}}return l;case 0:return _1(n,l,l.type,l.pendingProps,u);case 1:return s=l.type,m=yc(s,l.pendingProps),Dg(n,l,s,m,u);case 3:e:{if(Vt(l,l.stateNode.containerInfo),n===null)throw Error(h(387));s=l.pendingProps;var g=l.memoizedState;m=g.element,t1(n,l),Au(l,s,null,u);var S=l.memoizedState;if(s=S.cache,Ka(l,Cn,s),s!==g.cache&&Tu(l,[Cn],u,!0),hc(),s=S.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:S.cache},l.updateQueue.baseState=g,l.memoizedState=g,l.flags&256){l=qi(n,l,s,u);break e}else if(s!==m){m=Al(Error(h(424)),l),Or(m),l=qi(n,l,s,u);break e}else{switch(n=l.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Xt=al(n.firstChild),aa=l,ut=!0,bu=null,kn=!0,u=ng(l,null,s,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(ic(),s===m){l=Nl(n,l,u);break e}It(n,l,s,u)}l=l.child}return l;case 26:return Ol(n,l),n===null?(u=df(l.type,null,l.pendingProps,null))?l.memoizedState=u:ut||(u=l.type,n=l.pendingProps,s=_c(en.current).createElement(u),s[Ht]=l,s[ka]=n,Ea(s,u,n),Mt(s),l.stateNode=s):l.memoizedState=df(l.type,n.memoizedProps,l.pendingProps,n.memoizedState),null;case 27:return cu(l),n===null&&ut&&(s=l.stateNode=rf(l.type,l.pendingProps,en.current),aa=l,kn=!0,m=Xt,Zi(l.type)?(gh=m,Xt=al(s.firstChild)):Xt=m),It(n,l,l.pendingProps.children,u),Ol(n,l),n===null&&(l.flags|=4194304),l.child;case 5:return n===null&&ut&&((m=s=Xt)&&(s=wb(s,l.type,l.pendingProps,kn),s!==null?(l.stateNode=s,aa=l,Xt=al(s.firstChild),kn=!1,m=!0):m=!1),m||ni(l)),cu(l),m=l.type,g=l.pendingProps,S=n!==null?n.memoizedProps:null,s=g.children,cf(m,g)?s=null:S!==null&&cf(m,S)&&(l.flags|=32),l.memoizedState!==null&&(m=Ld(n,l,gb,null,null,u),vh._currentValue=m),Ol(n,l),It(n,l,s,u),l.child;case 6:return n===null&&ut&&((n=u=Xt)&&(u=We(u,l.pendingProps,kn),u!==null?(l.stateNode=u,aa=l,Xt=null,n=!0):n=!1),n||ni(l)),null;case 13:return Og(n,l,u);case 4:return Vt(l,l.stateNode.containerInfo),s=l.pendingProps,n===null?l.child=fc(l,null,s,u):It(n,l,s,u),l.child;case 11:return xg(n,l,l.type,l.pendingProps,u);case 7:return It(n,l,l.pendingProps,u),l.child;case 8:return It(n,l,l.pendingProps.children,u),l.child;case 12:return It(n,l,l.pendingProps.children,u),l.child;case 10:return s=l.pendingProps,Ka(l,l.type,s.value),It(n,l,s.children,u),l.child;case 9:return m=l.type._context,s=l.pendingProps.children,qe(l),m=le(m),s=s(m),l.flags|=1,It(n,l,s,u),l.child;case 14:return Mg(n,l,l.type,l.pendingProps,u);case 15:return Cg(n,l,l.type,l.pendingProps,u);case 19:return zg(n,l,u);case 31:return G3(n,l,u);case 22:return L3(n,l,u,l.pendingProps);case 24:return qe(l),s=le(Cn),n===null?(m=Ml(),m===null&&(m=Gt,g=xd(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=u),m=g),l.memoizedState={parent:s,cache:m},Ud(l),Ka(l,Cn,m)):(n.lanes&u&&(t1(n,l),Au(l,null,null,u),hc()),m=n.memoizedState,g=l.memoizedState,m.parent!==s?(m={parent:s,cache:s},l.memoizedState=m,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=m),Ka(l,Cn,s)):(s=g.cache,Ka(l,Cn,s),s!==m.cache&&Tu(l,[Cn],u,!0))),It(n,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(h(156,l.tag))}function zu(n){n.flags|=4}function Ug(n,l,u,s,m){if((l=(n.mode&32)!==0)&&(l=!1),l){if(n.flags|=16777216,(m&335544128)===m)if(n.stateNode.complete)n.flags|=8192;else if(J3())n.flags|=8192;else throw sc=fs,rs}else n.flags&=-16777217}function Bg(n,l){if(l.type!=="stylesheet"||l.state.loading&4)n.flags&=-16777217;else if(n.flags|=16777216,!gl(l))if(J3())n.flags|=8192;else throw sc=fs,rs}function Ua(n,l){l!==null&&(n.flags|=4),n.flags&16384&&(l=n.tag!==22?Yc():536870912,n.lanes|=l,fn|=l)}function Xr(n,l){if(!ut)switch(n.tailMode){case"hidden":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var s=null;u!==null;)u.alternate!==null&&(s=u),u=u.sibling;s===null?l||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function je(n){var l=n.alternate!==null&&n.alternate.child===n.child,u=0,s=0;if(l)for(var m=n.child;m!==null;)u|=m.lanes|m.childLanes,s|=m.subtreeFlags&65011712,s|=m.flags&65011712,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)u|=m.lanes|m.childLanes,s|=m.subtreeFlags,s|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=s,n.childLanes=u,l}function R3(n,l,u){var s=l.pendingProps;switch(I0(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(l),null;case 1:return je(l),null;case 3:return u=l.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),l.memoizedState.cache!==s&&(l.flags|=2048),Gi(Cn),ea(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(Eu(l)?zu(l):n===null||n.memoizedState.isDehydrated&&!(l.flags&256)||(l.flags|=1024,$m())),je(l),null;case 26:var m=l.type,g=l.memoizedState;return n===null?(zu(l),g!==null?(je(l),Bg(l,g)):(je(l),Ug(l,m,null,s,u))):g?g!==n.memoizedState?(zu(l),je(l),Bg(l,g)):(je(l),l.flags&=-16777217):(n=n.memoizedProps,n!==s&&zu(l),je(l),Ug(l,m,n,s,u)),null;case 27:if(fe(l),u=en.current,m=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==s&&zu(l);else{if(!s){if(l.stateNode===null)throw Error(h(166));return je(l),null}n=Ze.current,Eu(l)?Ad(l):(n=rf(m,s,u),l.stateNode=n,zu(l))}return je(l),null;case 5:if(fe(l),m=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==s&&zu(l);else{if(!s){if(l.stateNode===null)throw Error(h(166));return je(l),null}if(g=Ze.current,Eu(l))Ad(l);else{var S=_c(en.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?g.multiple=!0:s.size&&(g.size=s.size);break;default:g=typeof s.is=="string"?S.createElement(m,{is:s.is}):S.createElement(m)}}g[Ht]=l,g[ka]=s;e:for(S=l.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===l)break e;for(;S.sibling===null;){if(S.return===null||S.return===l)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}l.stateNode=g;e:switch(Ea(g,m,s),m){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&zu(l)}}return je(l),Ug(l,l.type,n===null?null:n.memoizedProps,l.pendingProps,u),null;case 6:if(n&&l.stateNode!=null)n.memoizedProps!==s&&zu(l);else{if(typeof s!="string"&&l.stateNode===null)throw Error(h(166));if(n=en.current,Eu(l)){if(n=l.stateNode,u=l.memoizedProps,s=null,m=aa,m!==null)switch(m.tag){case 27:case 5:s=m.memoizedProps}n[Ht]=l,n=!!(n.nodeValue===u||s!==null&&s.suppressHydrationWarning===!0||lp(n.nodeValue,u)),n||ni(l,!0)}else n=_c(n).createTextNode(s),n[Ht]=l,l.stateNode=n}return je(l),null;case 31:if(u=l.memoizedState,n===null||n.memoizedState!==null){if(s=Eu(l),u!==null){if(n===null){if(!s)throw Error(h(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(557));n[Ht]=l}else ic(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;je(l),n=!1}else u=$m(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=u),n=!0;if(!n)return l.flags&256?($a(l),l):($a(l),null);if(l.flags&128)throw Error(h(558))}return je(l),null;case 13:if(s=l.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(m=Eu(l),s!==null&&s.dehydrated!==null){if(n===null){if(!m)throw Error(h(318));if(m=l.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(h(317));m[Ht]=l}else ic(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;je(l),m=!1}else m=$m(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=m),m=!0;if(!m)return l.flags&256?($a(l),l):($a(l),null)}return $a(l),l.flags&128?(l.lanes=u,l):(u=s!==null,n=n!==null&&n.memoizedState!==null,u&&(s=l.child,m=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(m=s.alternate.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==m&&(s.flags|=2048)),u!==n&&u&&(l.child.flags|=8192),Ua(l,l.updateQueue),je(l),null);case 4:return ea(),n===null&&of(l.stateNode.containerInfo),je(l),null;case 10:return Gi(l.type),je(l),null;case 19:if(st(nn),s=l.memoizedState,s===null)return je(l),null;if(m=(l.flags&128)!==0,g=s.rendering,g===null)if(m)Xr(s,!1);else{if(Zt!==0||n!==null&&n.flags&128)for(n=l.child;n!==null;){if(g=Lr(n),g!==null){for(l.flags|=128,Xr(s,!1),n=g.updateQueue,l.updateQueue=n,Ua(l,n),l.subtreeFlags=0,n=u,u=l.child;u!==null;)Zm(u,n),u=u.sibling;return Xe(nn,nn.current&1|2),ut&&ti(l,s.treeForkCount),l.child}n=n.sibling}s.tail!==null&&Hn()>At&&(l.flags|=128,m=!0,Xr(s,!1),l.lanes=4194304)}else{if(!m)if(n=Lr(g),n!==null){if(l.flags|=128,m=!0,n=n.updateQueue,l.updateQueue=n,Ua(l,n),Xr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!g.alternate&&!ut)return je(l),null}else 2*Hn()-s.renderingStartTime>At&&u!==536870912&&(l.flags|=128,m=!0,Xr(s,!1),l.lanes=4194304);s.isBackwards?(g.sibling=l.child,l.child=g):(n=s.last,n!==null?n.sibling=g:l.child=g,s.last=g)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=Hn(),n.sibling=null,u=nn.current,Xe(nn,m?u&1|2:u&1),ut&&ti(l,s.treeForkCount),n):(je(l),null);case 22:case 23:return $a(l),Br(),s=l.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(l.flags|=8192):s&&(l.flags|=8192),s?u&536870912&&!(l.flags&128)&&(je(l),l.subtreeFlags&6&&(l.flags|=8192)):je(l),u=l.updateQueue,u!==null&&Ua(l,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==u&&(l.flags|=2048),n!==null&&st(xl),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),Gi(Cn),je(l),null;case 25:return null;case 30:return null}throw Error(h(156,l.tag))}function j3(n,l){switch(I0(l),l.tag){case 1:return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 3:return Gi(Cn),ea(),n=l.flags,n&65536&&!(n&128)?(l.flags=n&-65537|128,l):null;case 26:case 27:case 5:return fe(l),null;case 31:if(l.memoizedState!==null){if($a(l),l.alternate===null)throw Error(h(340));ic()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 13:if($a(l),n=l.memoizedState,n!==null&&n.dehydrated!==null){if(l.alternate===null)throw Error(h(340));ic()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 19:return st(nn),null;case 4:return ea(),null;case 10:return Gi(l.type),null;case 22:case 23:return $a(l),Br(),n!==null&&st(xl),n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 24:return Gi(Cn),null;case 25:return null;default:return null}}function q3(n,l){switch(I0(l),l.tag){case 3:Gi(Cn),ea();break;case 26:case 27:case 5:fe(l);break;case 4:ea();break;case 31:l.memoizedState!==null&&$a(l);break;case 13:$a(l);break;case 19:st(nn);break;case 10:Gi(l.type);break;case 22:case 23:$a(l),Br(),n!==null&&st(xl);break;case 24:Gi(Cn)}}function li(n,l){try{var u=l.updateQueue,s=u!==null?u.lastEffect:null;if(s!==null){var m=s.next;u=m;do{if((u.tag&n)===n){s=void 0;var g=u.create,S=u.inst;s=g(),S.destroy=s}u=u.next}while(u!==m)}}catch(x){zt(l,l.return,x)}}function Ul(n,l,u){try{var s=l.updateQueue,m=s!==null?s.lastEffect:null;if(m!==null){var g=m.next;s=g;do{if((s.tag&n)===n){var S=s.inst,x=S.destroy;if(x!==void 0){S.destroy=void 0,m=l;var z=u,Q=x;try{Q()}catch(I){zt(m,z,I)}}}s=s.next}while(s!==g)}}catch(I){zt(l,l.return,I)}}function D1(n){var l=n.updateQueue;if(l!==null){var u=n.stateNode;try{mc(l,u)}catch(s){zt(n,n.return,s)}}}function Sc(n,l,u){u.props=yc(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(s){zt(n,l,s)}}function Nu(n,l){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof u=="function"?n.refCleanup=u(s):u.current=s}}catch(m){zt(n,l,m)}}function Vi(n,l){var u=n.ref,s=n.refCleanup;if(u!==null)if(typeof s=="function")try{s()}catch(m){zt(n,l,m)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(m){zt(n,l,m)}else u.current=null}function Hg(n){var l=n.type,u=n.memoizedProps,s=n.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&s.focus();break e;case"img":u.src?s.src=u.src:u.srcSet&&(s.srcset=u.srcSet)}}catch(m){zt(n,n.return,m)}}function O1(n,l,u){try{var s=n.stateNode;up(s,n.type,u,l),s[ka]=l}catch(m){zt(n,n.return,m)}}function Lg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Zi(n.type)||n.tag===4}function Qr(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Lg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Zi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Zr(n,l,u){var s=n.tag;if(s===5||s===6)n=n.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(n),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=Mi));else if(s!==4&&(s===27&&Zi(n.type)&&(u=n.stateNode,l=null),n=n.child,n!==null))for(Zr(n,l,u),n=n.sibling;n!==null;)Zr(n,l,u),n=n.sibling}function Jr(n,l,u){var s=n.tag;if(s===5||s===6)n=n.stateNode,l?u.insertBefore(n,l):u.appendChild(n);else if(s!==4&&(s===27&&Zi(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(Jr(n,l,u),n=n.sibling;n!==null;)Jr(n,l,u),n=n.sibling}function Gg(n){var l=n.stateNode,u=n.memoizedProps;try{for(var s=n.type,m=l.attributes;m.length;)l.removeAttributeNode(m[0]);Ea(l,s,u),l[Ht]=n,l[ka]=u}catch(g){zt(n,n.return,g)}}var Eo=!1,Gn=!1,z1=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,oa=null;function Kr(n,l){if(n=n.containerInfo,I1=Zn,n=nc(n),yd(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var s=u.getSelection&&u.getSelection();if(s&&s.rangeCount!==0){u=s.anchorNode;var m=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{u.nodeType,g.nodeType}catch{u=null;break e}var S=0,x=-1,z=-1,Q=0,I=0,ae=n,Z=null;t:for(;;){for(var $;ae!==u||m!==0&&ae.nodeType!==3||(x=S+m),ae!==g||s!==0&&ae.nodeType!==3||(z=S+s),ae.nodeType===3&&(S+=ae.nodeValue.length),($=ae.firstChild)!==null;)Z=ae,ae=$;for(;;){if(ae===n)break t;if(Z===u&&++Q===m&&(x=S),Z===g&&++I===s&&(z=S),($=ae.nextSibling)!==null)break;ae=Z,Z=ae.parentNode}ae=$}u=x===-1||z===-1?null:{start:x,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(W1={focusedElem:n,selectionRange:u},Zn=!1,oa=l;oa!==null;)if(l=oa,n=l.child,(l.subtreeFlags&1028)!==0&&n!==null)n.return=l,oa=n;else for(;oa!==null;){switch(l=oa,g=l.alternate,n=l.flags,l.tag){case 0:if(n&4&&(n=l.updateQueue,n=n!==null?n.events:null,n!==null))for(u=0;u<n.length;u++)m=n[u],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if(n&1024&&g!==null){n=void 0,u=l,m=g.memoizedProps,g=g.memoizedState,s=u.stateNode;try{var he=yc(u.type,m);n=s.getSnapshotBeforeUpdate(he,g),s.__reactInternalSnapshotBeforeUpdate=n}catch(ze){zt(u,u.return,ze)}}break;case 3:if(n&1024){if(n=l.stateNode.containerInfo,u=n.nodeType,u===9)mh(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":mh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(n&1024)throw Error(h(163))}if(n=l.sibling,n!==null){n.return=l.return,oa=n;break}oa=l.return}}function Id(n,l,u){var s=u.flags;switch(u.tag){case 0:case 11:case 15:To(n,u),s&4&&li(5,u);break;case 1:if(To(n,u),s&4)if(n=u.stateNode,l===null)try{n.componentDidMount()}catch(S){zt(u,u.return,S)}else{var m=yc(u.type,l.memoizedProps);l=l.memoizedState;try{n.componentDidUpdate(m,l,n.__reactInternalSnapshotBeforeUpdate)}catch(S){zt(u,u.return,S)}}s&64&&D1(u),s&512&&Nu(u,u.return);break;case 3:if(To(n,u),s&64&&(n=u.updateQueue,n!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{mc(n,l)}catch(S){zt(u,u.return,S)}}break;case 27:l===null&&s&4&&Gg(u);case 26:case 5:To(n,u),l===null&&s&4&&Hg(u),s&512&&Nu(u,u.return);break;case 12:To(n,u);break;case 31:To(n,u),s&4&&V3(n,u);break;case 13:To(n,u),s&4&&Vg(n,u),s&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=Bl.bind(null,u),sf(n,u))));break;case 22:if(s=u.memoizedState!==null||Eo,!s){l=l!==null&&l.memoizedState!==null||Gn,m=Eo;var g=Gn;Eo=s,(Gn=l)&&!g?Yi(n,u,(u.subtreeFlags&8772)!==0):To(n,u),Eo=m,Gn=g}break;case 30:break;default:To(n,u)}}function jg(n){var l=n.alternate;l!==null&&(n.alternate=null,jg(l)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(l=n.stateNode,l!==null&&M0(l)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Qt=null,Pa=!1;function Uu(n,l,u){for(u=u.child;u!==null;)qg(n,l,u),u=u.sibling}function qg(n,l,u){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(sn,u)}catch{}switch(u.tag){case 26:Gn||Vi(u,l),Uu(n,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Gn||Vi(u,l);var s=Qt,m=Pa;Zi(u.type)&&(Qt=u.stateNode,Pa=!1),Uu(n,l,u),Os(u.stateNode),Qt=s,Pa=m;break;case 5:Gn||Vi(u,l);case 6:if(s=Qt,m=Pa,Qt=null,Uu(n,l,u),Qt=s,Pa=m,Qt!==null)if(Pa)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(u.stateNode)}catch(g){zt(u,l,g)}else try{Qt.removeChild(u.stateNode)}catch(g){zt(u,l,g)}break;case 18:Qt!==null&&(Pa?(n=Qt,rp(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),bf(n)):rp(Qt,u.stateNode));break;case 4:s=Qt,m=Pa,Qt=u.stateNode.containerInfo,Pa=!0,Uu(n,l,u),Qt=s,Pa=m;break;case 0:case 11:case 14:case 15:Ul(2,u,l),Gn||Ul(4,u,l),Uu(n,l,u);break;case 1:Gn||(Vi(u,l),s=u.stateNode,typeof s.componentWillUnmount=="function"&&Sc(u,l,s)),Uu(n,l,u);break;case 21:Uu(n,l,u);break;case 22:Gn=(s=Gn)||u.memoizedState!==null,Uu(n,l,u),Gn=s;break;default:Uu(n,l,u)}}function V3(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{bf(n)}catch(u){zt(l,l.return,u)}}}function Vg(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{bf(n)}catch(u){zt(l,l.return,u)}}function Wd(n){switch(n.tag){case 31:case 13:case 19:var l=n.stateNode;return l===null&&(l=n.stateNode=new Rg),l;case 22:return n=n.stateNode,l=n._retryCache,l===null&&(l=n._retryCache=new Rg),l;default:throw Error(h(435,n.tag))}}function Pd(n,l){var u=Wd(n);l.forEach(function(s){if(!u.has(s)){u.add(s);var m=c4.bind(null,n,s);s.then(m,m)}})}function el(n,l){var u=l.deletions;if(u!==null)for(var s=0;s<u.length;s++){var m=u[s],g=n,S=l,x=S;e:for(;x!==null;){switch(x.tag){case 27:if(Zi(x.type)){Qt=x.stateNode,Pa=!1;break e}break;case 5:Qt=x.stateNode,Pa=!1;break e;case 3:case 4:Qt=x.stateNode.containerInfo,Pa=!0;break e}x=x.return}if(Qt===null)throw Error(h(160));qg(g,S,m),Qt=null,Pa=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)N1(l,n),l=l.sibling}var Fe=null;function N1(n,l){var u=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:el(l,n),rl(n),s&4&&(Ul(3,n,n.return),li(3,n),Ul(5,n,n.return));break;case 1:el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),s&64&&Eo&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?s:u.concat(s))));break;case 26:var m=Fe;if(el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),s&4){var g=u!==null?u.memoizedState:null;if(s=n.memoizedState,u===null)if(s===null)if(n.stateNode===null){e:{s=n.type,u=n.memoizedProps,m=m.ownerDocument||m;t:switch(s){case"title":g=m.getElementsByTagName("title")[0],(!g||g[du]||g[Ht]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(s),m.head.insertBefore(g,m.querySelector("head > title"))),Ea(g,s,u),g[Ht]=n,Mt(g),s=g;break e;case"link":var S=mp("link","href",m).get(s+(u.href||""));if(S){for(var x=0;x<S.length;x++)if(g=S[x],g.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&g.getAttribute("rel")===(u.rel==null?null:u.rel)&&g.getAttribute("title")===(u.title==null?null:u.title)&&g.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){S.splice(x,1);break t}}g=m.createElement(s),Ea(g,s,u),m.head.appendChild(g);break;case"meta":if(S=mp("meta","content",m).get(s+(u.content||""))){for(x=0;x<S.length;x++)if(g=S[x],g.getAttribute("content")===(u.content==null?null:""+u.content)&&g.getAttribute("name")===(u.name==null?null:u.name)&&g.getAttribute("property")===(u.property==null?null:u.property)&&g.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&g.getAttribute("charset")===(u.charSet==null?null:u.charSet)){S.splice(x,1);break t}}g=m.createElement(s),Ea(g,s,u),m.head.appendChild(g);break;default:throw Error(h(468,s))}g[Ht]=n,Mt(g),s=g}n.stateNode=s}else a2(m,n.type,n.stateNode);else n.stateNode=hp(m,s,n.memoizedProps);else g!==s?(g===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):g.count--,s===null?a2(m,n.type,n.stateNode):hp(m,s,n.memoizedProps)):s===null&&n.stateNode!==null&&O1(n,n.memoizedProps,u.memoizedProps)}break;case 27:el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),u!==null&&s&4&&O1(n,n.memoizedProps,u.memoizedProps);break;case 5:if(el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),n.flags&32){m=n.stateNode;try{mu(m,"")}catch(he){zt(n,n.return,he)}}s&4&&n.stateNode!=null&&(m=n.memoizedProps,O1(n,m,u!==null?u.memoizedProps:m)),s&1024&&(z1=!0);break;case 6:if(el(l,n),rl(n),s&4){if(n.stateNode===null)throw Error(h(162));s=n.memoizedProps,u=n.stateNode;try{u.nodeValue=s}catch(he){zt(n,n.return,he)}}break;case 3:if(gf=null,m=Fe,Fe=Ba(l.containerInfo),el(l,n),Fe=m,rl(n),s&4&&u!==null&&u.memoizedState.isDehydrated)try{bf(l.containerInfo)}catch(he){zt(n,n.return,he)}z1&&(z1=!1,Yg(n));break;case 4:s=Fe,Fe=Ba(n.stateNode.containerInfo),el(l,n),rl(n),Fe=s;break;case 12:el(l,n),rl(n);break;case 31:el(l,n),rl(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Pd(n,s)));break;case 13:el(l,n),rl(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Qi=Hn()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Pd(n,s)));break;case 22:m=n.memoizedState!==null;var z=u!==null&&u.memoizedState!==null,Q=Eo,I=Gn;if(Eo=Q||m,Gn=I||z,el(l,n),Gn=I,Eo=Q,rl(n),s&8192)e:for(l=n.stateNode,l._visibility=m?l._visibility&-2:l._visibility|1,m&&(u===null||z||Eo||Gn||Ts(n)),u=null,l=n;;){if(l.tag===5||l.tag===26){if(u===null){z=u=l;try{if(g=z.stateNode,m)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{x=z.stateNode;var ae=z.memoizedProps.style,Z=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;x.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(he){zt(z,z.return,he)}}}else if(l.tag===6){if(u===null){z=l;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(he){zt(z,z.return,he)}}}else if(l.tag===18){if(u===null){z=l;try{var $=z.stateNode;m?zn($,!0):zn(z.stateNode,!1)}catch(he){zt(z,z.return,he)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===n)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break e;for(;l.sibling===null;){if(l.return===null||l.return===n)break e;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}s&4&&(s=n.updateQueue,s!==null&&(u=s.retryQueue,u!==null&&(s.retryQueue=null,Pd(n,u))));break;case 19:el(l,n),rl(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Pd(n,s)));break;case 30:break;case 21:break;default:el(l,n),rl(n)}}function rl(n){var l=n.flags;if(l&2){try{for(var u,s=n.return;s!==null;){if(Lg(s)){u=s;break}s=s.return}if(u==null)throw Error(h(160));switch(u.tag){case 27:var m=u.stateNode,g=Qr(n);Jr(n,g,m);break;case 5:var S=u.stateNode;u.flags&32&&(mu(S,""),u.flags&=-33);var x=Qr(n);Jr(n,x,S);break;case 3:case 4:var z=u.stateNode.containerInfo,Q=Qr(n);Zr(n,Q,z);break;default:throw Error(h(161))}}catch(I){zt(n,n.return,I)}n.flags&=-3}l&4096&&(n.flags&=-4097)}function Yg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var l=n;Yg(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),n=n.sibling}}function To(n,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Id(n,l.alternate,l),l=l.sibling}function Ts(n){for(n=n.child;n!==null;){var l=n;switch(l.tag){case 0:case 11:case 14:case 15:Ul(4,l,l.return),Ts(l);break;case 1:Vi(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&Sc(l,l.return,u),Ts(l);break;case 27:Os(l.stateNode);case 26:case 5:Vi(l,l.return),Ts(l);break;case 22:l.memoizedState===null&&Ts(l);break;case 30:Ts(l);break;default:Ts(l)}n=n.sibling}}function Yi(n,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var s=l.alternate,m=n,g=l,S=g.flags;switch(g.tag){case 0:case 11:case 15:Yi(m,g,u),li(4,g);break;case 1:if(Yi(m,g,u),s=g,m=s.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Q){zt(s,s.return,Q)}if(s=g,m=s.updateQueue,m!==null){var x=s.stateNode;try{var z=m.shared.hiddenCallbacks;if(z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<z.length;m++)a1(z[m],x)}catch(Q){zt(s,s.return,Q)}}u&&S&64&&D1(g),Nu(g,g.return);break;case 27:Gg(g);case 26:case 5:Yi(m,g,u),u&&s===null&&S&4&&Hg(g),Nu(g,g.return);break;case 12:Yi(m,g,u);break;case 31:Yi(m,g,u),u&&S&4&&V3(m,g);break;case 13:Yi(m,g,u),u&&S&4&&Vg(m,g);break;case 22:g.memoizedState===null&&Yi(m,g,u),Nu(g,g.return);break;case 30:break;default:Yi(m,g,u)}l=l.sibling}}function U1(n,l){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&Md(u))}function B1(n,l){n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&Md(n))}function ii(n,l,u,s){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Fr(n,l,u,s),l=l.sibling}function Fr(n,l,u,s){var m=l.flags;switch(l.tag){case 0:case 11:case 15:ii(n,l,u,s),m&2048&&li(9,l);break;case 1:ii(n,l,u,s);break;case 3:ii(n,l,u,s),m&2048&&(n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&Md(n)));break;case 12:if(m&2048){ii(n,l,u,s),n=l.stateNode;try{var g=l.memoizedProps,S=g.id,x=g.onPostCommit;typeof x=="function"&&x(S,l.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(z){zt(l,l.return,z)}}else ii(n,l,u,s);break;case 31:ii(n,l,u,s);break;case 13:ii(n,l,u,s);break;case 23:break;case 22:g=l.stateNode,S=l.alternate,l.memoizedState!==null?g._visibility&2?ii(n,l,u,s):eh(n,l):g._visibility&2?ii(n,l,u,s):(g._visibility|=2,$r(n,l,u,s,(l.subtreeFlags&10256)!==0||!1)),m&2048&&U1(S,l);break;case 24:ii(n,l,u,s),m&2048&&B1(l.alternate,l);break;default:ii(n,l,u,s)}}function $r(n,l,u,s,m){for(m=m&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var g=n,S=l,x=u,z=s,Q=S.flags;switch(S.tag){case 0:case 11:case 15:$r(g,S,x,z,m),li(8,S);break;case 23:break;case 22:var I=S.stateNode;S.memoizedState!==null?I._visibility&2?$r(g,S,x,z,m):eh(g,S):(I._visibility|=2,$r(g,S,x,z,m)),m&&Q&2048&&U1(S.alternate,S);break;case 24:$r(g,S,x,z,m),m&&Q&2048&&B1(S.alternate,S);break;default:$r(g,S,x,z,m)}l=l.sibling}}function eh(n,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=n,s=l,m=s.flags;switch(s.tag){case 22:eh(u,s),m&2048&&U1(s.alternate,s);break;case 24:eh(u,s),m&2048&&B1(s.alternate,s);break;default:eh(u,s)}l=l.sibling}}var fl=8192;function Bu(n,l,u){if(n.subtreeFlags&fl)for(n=n.child;n!==null;)Y3(n,l,u),n=n.sibling}function Y3(n,l,u){switch(n.tag){case 26:Bu(n,l,u),n.flags&fl&&n.memoizedState!==null&&ju(u,Fe,n.memoizedState,n.memoizedProps);break;case 5:Bu(n,l,u);break;case 3:case 4:var s=Fe;Fe=Ba(n.stateNode.containerInfo),Bu(n,l,u),Fe=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=fl,fl=16777216,Bu(n,l,u),fl=s):Bu(n,l,u));break;default:Bu(n,l,u)}}function H1(n){var l=n.alternate;if(l!==null&&(n=l.child,n!==null)){l.child=null;do l=n.sibling,n.sibling=null,n=l;while(n!==null)}}function Ir(n){var l=n.deletions;if(n.flags&16){if(l!==null)for(var u=0;u<l.length;u++){var s=l[u];oa=s,L1(s,n)}H1(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)kg(n),n=n.sibling}function kg(n){switch(n.tag){case 0:case 11:case 15:Ir(n),n.flags&2048&&Ul(9,n,n.return);break;case 3:Ir(n);break;case 12:Ir(n);break;case 22:var l=n.stateNode;n.memoizedState!==null&&l._visibility&2&&(n.return===null||n.return.tag!==13)?(l._visibility&=-3,th(n)):Ir(n);break;default:Ir(n)}}function th(n){var l=n.deletions;if(n.flags&16){if(l!==null)for(var u=0;u<l.length;u++){var s=l[u];oa=s,L1(s,n)}H1(n)}for(n=n.child;n!==null;){switch(l=n,l.tag){case 0:case 11:case 15:Ul(8,l,l.return),th(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,th(l));break;default:th(l)}n=n.sibling}}function L1(n,l){for(;oa!==null;){var u=oa;switch(u.tag){case 0:case 11:case 15:Ul(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var s=u.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Md(u.memoizedState.cache)}if(s=u.child,s!==null)s.return=u,oa=s;else e:for(u=n;oa!==null;){s=oa;var m=s.sibling,g=s.return;if(jg(s),s===u){oa=null;break e}if(m!==null){m.return=g,oa=m;break e}oa=g}}}var k3={getCacheForType:function(n){var l=le(Cn),u=l.data.get(n);return u===void 0&&(u=n(),l.data.set(n,u)),u},cacheSignal:function(){return le(Cn).controller.signal}},Xg=typeof WeakMap=="function"?WeakMap:Map,vt=0,Gt=null,ot=null,at=0,Ot=0,Le=null,Hu=!1,Ec=!1,G1=!1,ki=0,Zt=0,Xi=0,As=0,R1=0,tl=0,fn=0,nh=null,dn=null,j1=!1,Qi=0,Qg=0,At=1/0,Wr=null,an=null,Qn=0,Ao=null,Tc=null,Lu=0,dl=0,q1=null,V1=null,Pr=0,ah=null;function hl(){return vt&2&&at!==0?at&-at:V.T!==null?Z1():_0()}function X3(){if(tl===0)if(!(at&536870912)||ut){var n=vl;vl<<=1,!(vl&3932160)&&(vl=262144),tl=n}else tl=536870912;return n=Fa.current,n!==null&&(n.flags|=32),tl}function nl(n,l,u){(n===Gt&&(Ot===2||Ot===9)||n.cancelPendingCommit!==null)&&(Gu(n,0),_o(n,at,tl,!1)),dr(n,u),(!(vt&2)||n!==Gt)&&(n===Gt&&(!(vt&2)&&(As|=u),Zt===4&&_o(n,at,tl,!1)),Ru(n))}function Q3(n,l,u){if(vt&6)throw Error(h(327));var s=!u&&(l&127)===0&&(l&n.expiredLanes)===0||_i(n,l),m=s?$3(n,l):k1(n,l,!0),g=s;do{if(m===0){Ec&&!s&&_o(n,l,0,!1);break}else{if(u=n.current.alternate,g&&!Z3(u)){m=k1(n,l,!1),g=!1;continue}if(m===2){if(g=l,n.errorRecoveryDisabledLanes&g)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){l=S;e:{var x=n;m=nh;var z=x.current.memoizedState.isDehydrated;if(z&&(Gu(x,S).flags|=256),S=k1(x,S,!1),S!==2){if(G1&&!z){x.errorRecoveryDisabledLanes|=g,As|=g,m=4;break e}g=dn,dn=m,g!==null&&(dn===null?dn=g:dn.push.apply(dn,g))}m=S}if(g=!1,m!==2)continue}}if(m===1){Gu(n,0),_o(n,l,0,!0);break}e:{switch(s=n,g=m,g){case 0:case 1:throw Error(h(345));case 4:if((l&4194048)!==l)break;case 6:_o(s,l,tl,!Hu);break e;case 2:dn=null;break;case 3:case 5:break;default:throw Error(h(329))}if((l&62914560)===l&&(m=Qi+300-Hn(),10<m)){if(_o(s,l,tl,!Hu),xn(s,0,!0)!==0)break e;Lu=l,s.timeoutHandle=hh(lh.bind(null,s,u,dn,Wr,j1,l,tl,As,fn,Hu,g,"Throttled",-0,0),m);break e}lh(s,u,dn,Wr,j1,l,tl,As,fn,Hu,g,null,-0,0)}}break}while(!0);Ru(n)}function lh(n,l,u,s,m,g,S,x,z,Q,I,ae,Z,$){if(n.timeoutHandle=-1,ae=l.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mi},Y3(l,g,ae);var he=(g&62914560)===g?Qi-Hn():(g&4194048)===g?Qg-Hn():0;if(he=pp(ae,he),he!==null){Lu=g,n.cancelPendingCommit=he(e4.bind(null,n,l,g,u,s,m,S,x,z,I,ae,null,Z,$)),_o(n,g,S,!Q);return}}e4(n,l,g,u,s,m,S,x,z)}function Z3(n){for(var l=n;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var s=0;s<u.length;s++){var m=u[s],g=m.getSnapshot;m=m.value;try{if(!Na(g(),m))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function _o(n,l,u,s){l&=~R1,l&=~As,n.suspendedLanes|=l,n.pingedLanes&=~l,s&&(n.warmLanes|=l),s=n.expirationTimes;for(var m=l;0<m;){var g=31-ba(m),S=1<<g;s[g]=-1,m&=~S}u!==0&&ud(n,u,l)}function ef(){return vt&6?!0:(Mo(0),!1)}function Zg(){if(ot!==null){if(Ot===0)var n=ot.return;else n=ot,Li=mo=null,Gd(n),rc=null,ds=0,n=ot;for(;n!==null;)q3(n.alternate,n),n=n.return;ot=null}}function Gu(n,l){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,p4(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Lu=0,Zg(),Gt=n,ot=u=fo(n.current,null),at=l,Ot=0,Le=null,Hu=!1,Ec=_i(n,l),G1=!1,fn=tl=R1=As=Xi=Zt=0,dn=nh=null,j1=!1,l&8&&(l|=l&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=l;0<s;){var m=31-ba(s),g=1<<m;l|=n[m],s&=~g}return ki=l,El(),u}function tf(n,l){Ke=null,V.H=Qd,l===oc||l===Nr?(l=tg(),Ot=3):l===rs?(l=tg(),Ot=4):Ot=l===A1?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Le=l,ot===null&&(Zt=1,kr(n,Al(l,n.current)))}function J3(){var n=Fa.current;return n===null?!0:(at&4194048)===at?Dl===null:(at&62914560)===at||at&536870912?n===Dl:!1}function K3(){var n=V.H;return V.H=Qd,n===null?Qd:n}function F3(){var n=V.A;return V.A=k3,n}function Y1(){Zt=4,Hu||(at&4194048)!==at&&Fa.current!==null||(Ec=!0),!(Xi&134217727)&&!(As&134217727)||Gt===null||_o(Gt,at,tl,!1)}function k1(n,l,u){var s=vt;vt|=2;var m=K3(),g=F3();(Gt!==n||at!==l)&&(Wr=null,Gu(n,l)),l=!1;var S=Zt;e:do try{if(Ot!==0&&ot!==null){var x=ot,z=Le;switch(Ot){case 8:Zg(),S=6;break e;case 3:case 2:case 9:case 6:Fa.current===null&&(l=!0);var Q=Ot;if(Ot=0,Le=null,_s(n,x,z,Q),u&&Ec){S=0;break e}break;default:Q=Ot,Ot=0,Le=null,_s(n,x,z,Q)}}yb(),S=Zt;break}catch(I){tf(n,I)}while(!0);return l&&n.shellSuspendCounter++,Li=mo=null,vt=s,V.H=m,V.A=g,ot===null&&(Gt=null,at=0,El()),S}function yb(){for(;ot!==null;)I3(ot)}function $3(n,l){var u=vt;vt|=2;var s=K3(),m=F3();Gt!==n||at!==l?(Wr=null,At=Hn()+500,Gu(n,l)):Ec=_i(n,l);e:do try{if(Ot!==0&&ot!==null){l=ot;var g=Le;t:switch(Ot){case 1:Ot=0,Le=null,_s(n,l,g,1);break;case 2:case 9:if(Pm(g)){Ot=0,Le=null,W3(l);break}l=function(){Ot!==2&&Ot!==9||Gt!==n||(Ot=7),Ru(n)},g.then(l,l);break e;case 3:Ot=7;break e;case 4:Ot=5;break e;case 7:Pm(g)?(Ot=0,Le=null,W3(l)):(Ot=0,Le=null,_s(n,l,g,7));break;case 5:var S=null;switch(ot.tag){case 26:S=ot.memoizedState;case 5:case 27:var x=ot;if(S?gl(S):x.stateNode.complete){Ot=0,Le=null;var z=x.sibling;if(z!==null)ot=z;else{var Q=x.return;Q!==null?(ot=Q,ih(Q)):ot=null}break t}}Ot=0,Le=null,_s(n,l,g,5);break;case 6:Ot=0,Le=null,_s(n,l,g,6);break;case 8:Zg(),Zt=6;break e;default:throw Error(h(462))}}Ac();break}catch(I){tf(n,I)}while(!0);return Li=mo=null,V.H=s,V.A=m,vt=u,ot!==null?0:(Gt=null,at=0,El(),Zt)}function Ac(){for(;ot!==null&&!Ql();)I3(ot)}function I3(n){var l=Ng(n.alternate,n,ki);n.memoizedProps=n.pendingProps,l===null?ih(n):ot=l}function W3(n){var l=n,u=l.alternate;switch(l.tag){case 15:case 0:l=wc(u,l,l.pendingProps,l.type,void 0,at);break;case 11:l=wc(u,l,l.pendingProps,l.type.render,l.ref,at);break;case 5:Gd(l);default:q3(u,l),l=ot=Zm(l,ki),l=Ng(u,l,ki)}n.memoizedProps=n.pendingProps,l===null?ih(n):ot=l}function _s(n,l,u,s){Li=mo=null,Gd(l),rc=null,ds=0;var m=l.return;try{if(pb(n,m,l,u,at)){Zt=1,kr(n,Al(u,n.current)),ot=null;return}}catch(g){if(m!==null)throw ot=m,g;Zt=1,kr(n,Al(u,n.current)),ot=null;return}l.flags&32768?(ut||s===1?n=!0:Ec||at&536870912?n=!1:(Hu=n=!0,(s===2||s===9||s===3||s===6)&&(s=Fa.current,s!==null&&s.tag===13&&(s.flags|=16384))),P3(l,n)):ih(l)}function ih(n){var l=n;do{if(l.flags&32768){P3(l,Hu);return}n=l.return;var u=R3(l.alternate,l,ki);if(u!==null){ot=u;return}if(l=l.sibling,l!==null){ot=l;return}ot=l=n}while(l!==null);Zt===0&&(Zt=5)}function P3(n,l){do{var u=j3(n.alternate,n);if(u!==null){u.flags&=32767,ot=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(n=n.sibling,n!==null)){ot=n;return}ot=n=u}while(n!==null);Zt=6,ot=null}function e4(n,l,u,s,m,g,S,x,z){n.cancelPendingCommit=null;do nf();while(Qn!==0);if(vt&6)throw Error(h(327));if(l!==null){if(l===n.current)throw Error(h(177));if(g=l.lanes|l.childLanes,g|=Pl,T0(n,u,g,S,x,z),n===Gt&&(ot=Gt=null,at=0),Tc=l,Ao=n,Lu=u,dl=g,q1=m,V1=s,l.subtreeFlags&10256||l.flags&10256?(n.callbackNode=null,n.callbackPriority=0,s4(su,function(){return i4(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(l.flags&13878)!==0,l.subtreeFlags&13878||s){s=V.T,V.T=null,m=ee.p,ee.p=2,S=vt,vt|=4;try{Kr(n,l,u)}finally{vt=S,ee.p=m,V.T=s}}Qn=1,t4(),n4(),a4()}}function t4(){if(Qn===1){Qn=0;var n=Ao,l=Tc,u=(l.flags&13878)!==0;if(l.subtreeFlags&13878||u){u=V.T,V.T=null;var s=ee.p;ee.p=2;var m=vt;vt|=4;try{N1(l,n);var g=W1,S=nc(n.containerInfo),x=g.focusedElem,z=g.selectionRange;if(S!==x&&x&&x.ownerDocument&&ns(x.ownerDocument.documentElement,x)){if(z!==null&&yd(x)){var Q=z.start,I=z.end;if(I===void 0&&(I=Q),"selectionStart"in x)x.selectionStart=Q,x.selectionEnd=Math.min(I,x.value.length);else{var ae=x.ownerDocument||document,Z=ae&&ae.defaultView||window;if(Z.getSelection){var $=Z.getSelection(),he=x.textContent.length,ze=Math.min(z.start,he),jt=z.end===void 0?ze:Math.min(z.end,he);!$.extend&&ze>jt&&(S=jt,jt=ze,ze=S);var Y=Xm(x,ze),L=Xm(x,jt);if(Y&&L&&($.rangeCount!==1||$.anchorNode!==Y.node||$.anchorOffset!==Y.offset||$.focusNode!==L.node||$.focusOffset!==L.offset)){var X=ae.createRange();X.setStart(Y.node,Y.offset),$.removeAllRanges(),ze>jt?($.addRange(X),$.extend(L.node,L.offset)):(X.setEnd(L.node,L.offset),$.addRange(X))}}}}for(ae=[],$=x;$=$.parentNode;)$.nodeType===1&&ae.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<ae.length;x++){var te=ae[x];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Zn=!!I1,W1=I1=null}finally{vt=m,ee.p=s,V.T=u}}n.current=l,Qn=2}}function n4(){if(Qn===2){Qn=0;var n=Ao,l=Tc,u=(l.flags&8772)!==0;if(l.subtreeFlags&8772||u){u=V.T,V.T=null;var s=ee.p;ee.p=2;var m=vt;vt|=4;try{Id(n,l.alternate,l)}finally{vt=m,ee.p=s,V.T=u}}Qn=3}}function a4(){if(Qn===4||Qn===3){Qn=0,Vc();var n=Ao,l=Tc,u=Lu,s=V1;l.subtreeFlags&10256||l.flags&10256?Qn=5:(Qn=0,Tc=Ao=null,l4(n,n.pendingLanes));var m=n.pendingLanes;if(m===0&&(an=null),vm(u),l=l.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(sn,l,void 0,(l.current.flags&128)===128)}catch{}if(s!==null){l=V.T,m=ee.p,ee.p=2,V.T=null;try{for(var g=n.onRecoverableError,S=0;S<s.length;S++){var x=s[S];g(x.value,{componentStack:x.stack})}}finally{V.T=l,ee.p=m}}Lu&3&&nf(),Ru(n),m=n.pendingLanes,u&261930&&m&42?n===ah?Pr++:(Pr=0,ah=n):Pr=0,Mo(0)}}function l4(n,l){(n.pooledCacheLanes&=l)===0&&(l=n.pooledCache,l!=null&&(n.pooledCache=null,Md(l)))}function nf(){return t4(),n4(),a4(),i4()}function i4(){if(Qn!==5)return!1;var n=Ao,l=dl;dl=0;var u=vm(Lu),s=V.T,m=ee.p;try{ee.p=32>u?32:u,V.T=null,u=q1,q1=null;var g=Ao,S=Lu;if(Qn=0,Tc=Ao=null,Lu=0,vt&6)throw Error(h(331));var x=vt;if(vt|=4,kg(g.current),Fr(g,g.current,S,u),vt=x,Mo(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(sn,g)}catch{}return!0}finally{ee.p=m,V.T=s,l4(n,l)}}function u4(n,l,u){l=Al(u,l),l=Tg(n.stateNode,l,2),n=Cl(n,l,2),n!==null&&(dr(n,2),Ru(n))}function zt(n,l,u){if(n.tag===3)u4(n,n,u);else for(;l!==null;){if(l.tag===3){u4(l,n,u);break}else if(l.tag===1){var s=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(an===null||!an.has(s))){n=Al(u,n),u=Ag(2),s=Cl(l,u,2),s!==null&&(_g(u,s,l,n),dr(s,2),Ru(s));break}}l=l.return}}function uh(n,l,u){var s=n.pingCache;if(s===null){s=n.pingCache=new Xg;var m=new Set;s.set(l,m)}else m=s.get(l),m===void 0&&(m=new Set,s.set(l,m));m.has(u)||(G1=!0,m.add(u),n=Jg.bind(null,n,l,u),l.then(n,n))}function Jg(n,l,u){var s=n.pingCache;s!==null&&s.delete(l),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Gt===n&&(at&u)===u&&(Zt===4||Zt===3&&(at&62914560)===at&&300>Hn()-Qi?!(vt&2)&&Gu(n,0):R1|=u,fn===at&&(fn=0)),Ru(n)}function o4(n,l){l===0&&(l=Yc()),n=ro(n,l),n!==null&&(dr(n,l),Ru(n))}function Bl(n){var l=n.memoizedState,u=0;l!==null&&(u=l.retryLane),o4(n,u)}function c4(n,l){var u=0;switch(n.tag){case 31:case 13:var s=n.stateNode,m=n.memoizedState;m!==null&&(u=m.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(h(314))}s!==null&&s.delete(l),o4(n,u)}function s4(n,l){return ht(n,l)}var af=null,xs=null,Kg=!1,X1=!1,Fg=!1,xo=0;function Ru(n){n!==xs&&n.next===null&&(xs===null?af=xs=n:xs=xs.next=n),X1=!0,Kg||(Kg=!0,ch())}function Mo(n,l){if(!Fg&&X1){Fg=!0;do for(var u=!1,s=af;s!==null;){if(n!==0){var m=s.pendingLanes;if(m===0)var g=0;else{var S=s.suspendedLanes,x=s.pingedLanes;g=(1<<31-ba(42|n)+1)-1,g&=m&~(S&~x),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(u=!0,Ms(s,g))}else g=at,g=xn(s,s===Gt?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),!(g&3)||_i(s,g)||(u=!0,Ms(s,g));s=s.next}while(u);Fg=!1}}function Q1(){$g()}function $g(){X1=Kg=!1;var n=0;xo!==0&&vb()&&(n=xo);for(var l=Hn(),u=null,s=af;s!==null;){var m=s.next,g=Ig(s,l);g===0?(s.next=null,u===null?af=m:u.next=m,m===null&&(xs=u)):(u=s,(n!==0||g&3)&&(X1=!0)),s=m}Qn!==0&&Qn!==5||Mo(n),xo!==0&&(xo=0)}function Ig(n,l){for(var u=n.suspendedLanes,s=n.pingedLanes,m=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var S=31-ba(g),x=1<<S,z=m[S];z===-1?(!(x&u)||x&s)&&(m[S]=fr(x,l)):z<=l&&(n.expiredLanes|=x),g&=~x}if(l=Gt,u=at,u=xn(n,n===l?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,u===0||n===l&&(Ot===2||Ot===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&Jo(s),n.callbackNode=null,n.callbackPriority=0;if(!(u&3)||_i(n,u)){if(l=u&-u,l===n.callbackPriority)return l;switch(s!==null&&Jo(s),vm(u)){case 2:case 8:u=sr;break;case 32:u=su;break;case 268435456:u=rr;break;default:u=su}return s=oh.bind(null,n),u=ht(u,s),n.callbackPriority=l,n.callbackNode=u,l}return s!==null&&s!==null&&Jo(s),n.callbackPriority=2,n.callbackNode=null,2}function oh(n,l){if(Qn!==0&&Qn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(nf()&&n.callbackNode!==u)return null;var s=at;return s=xn(n,n===Gt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Q3(n,s,l),Ig(n,Hn()),n.callbackNode!=null&&n.callbackNode===u?oh.bind(null,n):null)}function Ms(n,l){if(nf())return null;Q3(n,l,!0)}function ch(){y4(function(){vt&6?ht(cr,Q1):$g()})}function Z1(){if(xo===0){var n=uc;n===0&&(n=Ai,Ai<<=1,!(Ai&261888)&&(Ai=256)),xo=n}return xo}function r4(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Fl(""+n)}function Cs(n,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,n.id&&u.setAttribute("form",n.id),l.parentNode.insertBefore(u,l),n=new FormData(n),u.parentNode.removeChild(u),n}function sh(n,l,u,s,m){if(l==="submit"&&u&&u.stateNode===m){var g=r4((m[ka]||null).action),S=s.submitter;S&&(l=(l=S[ka]||null)?r4(l.formAction):S.getAttribute("formAction"),l!==null&&(g=l,S=null));var x=new md("action","action",null,s,m);n.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(xo!==0){var z=S?Cs(m,S):new FormData(m);Vr(u,{pending:!0,data:z,method:m.method,action:g},null,z)}}else typeof g=="function"&&(x.preventDefault(),z=S?Cs(m,S):new FormData(m),Vr(u,{pending:!0,data:z,method:m.method,action:g},g,z))},currentTarget:m}]})}}for(var J1=0;J1<xr.length;J1++){var lf=xr[J1],Wg=lf.toLowerCase(),Pg=lf[0].toUpperCase()+lf.slice(1);Qa(Wg,"on"+Pg)}Qa(wd,"onAnimationEnd"),Qa(Qm,"onAnimationIteration"),Qa(J0,"onAnimationStart"),Qa("dblclick","onDoubleClick"),Qa("focusin","onFocus"),Qa("focusout","onBlur"),Qa(as,"onTransitionRun"),Qa(bd,"onTransitionStart"),Qa(vu,"onTransitionCancel"),Qa(S3,"onTransitionEnd"),hu("onMouseEnter",["mouseout","mouseover"]),hu("onMouseLeave",["mouseout","mouseover"]),hu("onPointerEnter",["pointerout","pointerover"]),hu("onPointerLeave",["pointerout","pointerover"]),Io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Io("onBeforeInput",["compositionend","keypress","textInput","paste"]),Io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),f4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uf));function d4(n,l){l=(l&4)!==0;for(var u=0;u<n.length;u++){var s=n[u],m=s.event;s=s.listeners;e:{var g=void 0;if(l)for(var S=s.length-1;0<=S;S--){var x=s[S],z=x.instance,Q=x.currentTarget;if(x=x.listener,z!==g&&m.isPropagationStopped())break e;g=x,m.currentTarget=Q;try{g(m)}catch(I){ls(I)}m.currentTarget=null,g=z}else for(S=0;S<s.length;S++){if(x=s[S],z=x.instance,Q=x.currentTarget,x=x.listener,z!==g&&m.isPropagationStopped())break e;g=x,m.currentTarget=Q;try{g(m)}catch(I){ls(I)}m.currentTarget=null,g=z}}}}function it(n,l){var u=l[x0];u===void 0&&(u=l[x0]=new Set);var s=n+"__bubble";u.has(s)||(rh(l,n,2,!1),u.add(s))}function ep(n,l,u){var s=0;l&&(s|=4),rh(u,n,s,l)}var K1="_reactListening"+Math.random().toString(36).slice(2);function of(n){if(!n[K1]){n[K1]=!0,Zc.forEach(function(u){u!=="selectionchange"&&(f4.has(u)||ep(u,!1,n),ep(u,!0,n))});var l=n.nodeType===9?n:n.ownerDocument;l===null||l[K1]||(l[K1]=!0,ep("selectionchange",!1,l))}}function rh(n,l,u,s){switch(wh(l)){case 2:var m=qu;break;case 8:m=Vu;break;default:m=Ta}u=m.bind(null,l,u,n),m=void 0,!dd||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(m=!0),s?m!==void 0?n.addEventListener(l,u,{capture:!0,passive:m}):n.addEventListener(l,u,!0):m!==void 0?n.addEventListener(l,u,{passive:m}):n.addEventListener(l,u,!1)}function tp(n,l,u,s,m){var g=s;if(!(l&1)&&!(l&2)&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var x=s.stateNode.containerInfo;if(x===m)break;if(S===4)for(S=s.return;S!==null;){var z=S.tag;if((z===3||z===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;x!==null;){if(S=kc(x),S===null)return;if(z=S.tag,z===5||z===6||z===26||z===27){s=g=S;continue e}x=x.parentNode}}s=s.return}Mm(function(){var Q=g,I=B0(u),ae=[];e:{var Z=wu.get(n);if(Z!==void 0){var $=md,he=n;switch(n){case"keypress":if(L0(u)===0)break e;case"keydown":case"keyup":$=q0;break;case"focusin":he="focus",$=R0;break;case"focusout":he="blur",$=R0;break;case"beforeblur":case"afterblur":$=R0;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=s3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=m3;break;case wd:case Qm:case J0:$=f3;break;case S3:$=db;break;case"scroll":case"scrollend":$=rb;break;case"wheel":$=hb;break;case"copy":case"cut":case"paste":$=$c;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Oi;break;case"toggle":case"beforetoggle":$=Lm}var ze=(l&4)!==0,jt=!ze&&(n==="scroll"||n==="scrollend"),Y=ze?Z!==null?Z+"Capture":null:Z;ze=[];for(var L=Q,X;L!==null;){var te=L;if(X=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||X===null||Y===null||(te=ta(L,Y),te!=null&&ze.push(fh(L,te,X))),jt)break;L=L.return}0<ze.length&&(Z=new $(Z,he,null,u,I),ae.push({event:Z,listeners:ze}))}}if(!(l&7)){e:{if(Z=n==="mouseover"||n==="pointerover",$=n==="mouseout"||n==="pointerout",Z&&u!==U0&&(he=u.relatedTarget||u.fromElement)&&(kc(he)||he[Fo]))break e;if(($||Z)&&(Z=I.window===I?I:(Z=I.ownerDocument)?Z.defaultView||Z.parentWindow:window,$?(he=u.relatedTarget||u.toElement,$=Q,he=he?kc(he):null,he!==null&&(jt=w(he),ze=he.tag,he!==jt||ze!==5&&ze!==27&&ze!==6)&&(he=null)):($=null,he=Q),$!==he)){if(ze=Sr,te="onMouseLeave",Y="onMouseEnter",L="mouse",(n==="pointerout"||n==="pointerover")&&(ze=Oi,te="onPointerLeave",Y="onPointerEnter",L="pointer"),jt=$==null?Z:hr($),X=he==null?Z:hr(he),Z=new ze(te,L+"leave",$,u,I),Z.target=jt,Z.relatedTarget=X,te=null,kc(I)===Q&&(ze=new ze(Y,L+"enter",he,u,I),ze.target=X,ze.relatedTarget=jt,te=ze),jt=te,$&&he)t:{for(ze=h4,Y=$,L=he,X=0,te=Y;te;te=ze(te))X++;te=0;for(var Ae=L;Ae;Ae=ze(Ae))te++;for(;0<X-te;)Y=ze(Y),X--;for(;0<te-X;)L=ze(L),te--;for(;X--;){if(Y===L||L!==null&&Y===L.alternate){ze=Y;break t}Y=ze(Y),L=ze(L)}ze=null}else ze=null;$!==null&&F1(ae,Z,$,ze,!1),he!==null&&jt!==null&&F1(ae,jt,he,ze,!0)}}e:{if(Z=Q?hr(Q):window,$=Z.nodeName&&Z.nodeName.toLowerCase(),$==="select"||$==="input"&&Z.type==="file")var gt=Vm;else if(yu(Z))if(k0)gt=ts;else{gt=w3;var pe=v3}else $=Z.nodeName,!$||$.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?Q&&xm(Q.elementType)&&(gt=Vm):gt=tc;if(gt&&(gt=gt(n,Q))){qm(ae,gt,u,I);break e}pe&&pe(n,Z,Q),n==="focusout"&&Q&&Z.type==="number"&&Q.memoizedProps.value!=null&&Jc(Z,"number",Z.value)}switch(pe=Q?hr(Q):window,n){case"focusin":(yu(pe)||pe.contentEditable==="true")&&(ac=pe,Ar=Q,Wl=null);break;case"focusout":Wl=Ar=ac=null;break;case"mousedown":Ni=!0;break;case"contextmenu":case"mouseup":case"dragend":Ni=!1,Z0(ae,u,I);break;case"selectionchange":if(vd)break;case"keydown":case"keyup":Z0(ae,u,I)}var Je;if(Er)e:{switch(n){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Wc?Y0(n,u)&&($e="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&($e="onCompositionStart");$e&&(Gm&&u.locale!=="ko"&&(Wc||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Wc&&(Je=Dm()):(co=I,Cm="value"in co?co.value:co.textContent,Wc=!0)),pe=dh(Q,$e),0<pe.length&&($e=new d3($e,n,null,u,I),ae.push({event:$e,listeners:pe}),Je?$e.data=Je:(Je=Rm(u),Je!==null&&($e.data=Je)))),(Je=za?y3(n,u):mb(n,u))&&($e=dh(Q,"onBeforeInput"),0<$e.length&&(pe=new d3("onBeforeInput","beforeinput",null,u,I),ae.push({event:pe,listeners:$e}),pe.data=Je)),sh(ae,n,Q,u,I)}d4(ae,l)})}function fh(n,l,u){return{instance:n,listener:l,currentTarget:u}}function dh(n,l){for(var u=l+"Capture",s=[];n!==null;){var m=n,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=ta(n,u),m!=null&&s.unshift(fh(n,m,g)),m=ta(n,l),m!=null&&s.push(fh(n,m,g))),n.tag===3)return s;n=n.return}return[]}function h4(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function F1(n,l,u,s,m){for(var g=l._reactName,S=[];u!==null&&u!==s;){var x=u,z=x.alternate,Q=x.stateNode;if(x=x.tag,z!==null&&z===s)break;x!==5&&x!==26&&x!==27||Q===null||(z=Q,m?(Q=ta(u,g),Q!=null&&S.unshift(fh(u,Q,z))):m||(Q=ta(u,g),Q!=null&&S.push(fh(u,Q,z)))),u=u.return}S.length!==0&&n.push({event:l,listeners:S})}var m4=/\r\n?/g,np=/\u0000|\uFFFD/g;function ap(n){return(typeof n=="string"?n:""+n).replace(m4,`
|
|
106
|
+
`).replace(np,"")}function lp(n,l){return l=ap(l),ap(n)===l}function Rt(n,l,u,s,m,g){switch(u){case"children":typeof s=="string"?l==="body"||l==="textarea"&&s===""||mu(n,s):(typeof s=="number"||typeof s=="bigint")&&l!=="body"&&mu(n,""+s);break;case"className":O0(n,"class",s);break;case"tabIndex":O0(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":O0(n,u,s);break;case"style":u3(n,s,g);break;case"data":if(l!=="object"){O0(n,"data",s);break}case"src":case"href":if(s===""&&(l!=="a"||u!=="href")){n.removeAttribute(u);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(u);break}s=Fl(""+s),n.setAttribute(u,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(u==="formAction"?(l!=="input"&&Rt(n,l,"name",m.name,m,null),Rt(n,l,"formEncType",m.formEncType,m,null),Rt(n,l,"formMethod",m.formMethod,m,null),Rt(n,l,"formTarget",m.formTarget,m,null)):(Rt(n,l,"encType",m.encType,m,null),Rt(n,l,"method",m.method,m,null),Rt(n,l,"target",m.target,m,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(u);break}s=Fl(""+s),n.setAttribute(u,s);break;case"onClick":s!=null&&(n.onclick=Mi);break;case"onScroll":s!=null&&it("scroll",n);break;case"onScrollEnd":s!=null&&it("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(h(61));if(u=s.__html,u!=null){if(m.children!=null)throw Error(h(60));n.innerHTML=u}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}u=Fl(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(u,""+s):n.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":s===!0?n.setAttribute(u,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(u,s):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(u,s):n.removeAttribute(u);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(u):n.setAttribute(u,s);break;case"popover":it("beforetoggle",n),it("toggle",n),pr(n,"popover",s);break;case"xlinkActuate":uo(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":uo(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":uo(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":uo(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":uo(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":uo(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":uo(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":uo(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":uo(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":pr(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=sb.get(u)||u,pr(n,u,s))}}function ip(n,l,u,s,m,g){switch(u){case"style":u3(n,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(h(61));if(u=s.__html,u!=null){if(m.children!=null)throw Error(h(60));n.innerHTML=u}}break;case"children":typeof s=="string"?mu(n,s):(typeof s=="number"||typeof s=="bigint")&&mu(n,""+s);break;case"onScroll":s!=null&&it("scroll",n);break;case"onScrollEnd":s!=null&&it("scrollend",n);break;case"onClick":s!=null&&(n.onclick=Mi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$o.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(m=u.endsWith("Capture"),l=u.slice(2,m?u.length-7:void 0),g=n[ka]||null,g=g!=null?g[u]:null,typeof g=="function"&&n.removeEventListener(l,g,m),typeof s=="function")){typeof g!="function"&&g!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(l,s,m);break e}u in n?n[u]=s:s===!0?n.setAttribute(u,""):pr(n,u,s)}}}function Ea(n,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",n),it("load",n);var s=!1,m=!1,g;for(g in u)if(u.hasOwnProperty(g)){var S=u[g];if(S!=null)switch(g){case"src":s=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:Rt(n,l,g,S,u,null)}}m&&Rt(n,l,"srcSet",u.srcSet,u,null),s&&Rt(n,l,"src",u.src,u,null);return;case"input":it("invalid",n);var x=g=S=m=null,z=null,Q=null;for(s in u)if(u.hasOwnProperty(s)){var I=u[s];if(I!=null)switch(s){case"name":m=I;break;case"type":S=I;break;case"checked":z=I;break;case"defaultChecked":Q=I;break;case"value":g=I;break;case"defaultValue":x=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(h(137,l));break;default:Rt(n,l,s,I,u,null)}}sd(n,g,x,z,Q,S,m,!1);return;case"select":it("invalid",n),s=S=g=null;for(m in u)if(u.hasOwnProperty(m)&&(x=u[m],x!=null))switch(m){case"value":g=x;break;case"defaultValue":S=x;break;case"multiple":s=x;default:Rt(n,l,m,x,u,null)}l=g,u=S,n.multiple=!!s,l!=null?yr(n,!!s,l,!1):u!=null&&yr(n,!!s,u,!0);return;case"textarea":it("invalid",n),g=m=s=null;for(S in u)if(u.hasOwnProperty(S)&&(x=u[S],x!=null))switch(S){case"value":s=x;break;case"defaultValue":m=x;break;case"children":g=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(h(91));break;default:Rt(n,l,S,x,u,null)}_m(n,s,m,g);return;case"option":for(z in u)if(u.hasOwnProperty(z)&&(s=u[z],s!=null))switch(z){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Rt(n,l,z,s,u,null)}return;case"dialog":it("beforetoggle",n),it("toggle",n),it("cancel",n),it("close",n);break;case"iframe":case"object":it("load",n);break;case"video":case"audio":for(s=0;s<uf.length;s++)it(uf[s],n);break;case"image":it("error",n),it("load",n);break;case"details":it("toggle",n);break;case"embed":case"source":case"link":it("error",n),it("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in u)if(u.hasOwnProperty(Q)&&(s=u[Q],s!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:Rt(n,l,Q,s,u,null)}return;default:if(xm(l)){for(I in u)u.hasOwnProperty(I)&&(s=u[I],s!==void 0&&ip(n,l,I,s,u,void 0));return}}for(x in u)u.hasOwnProperty(x)&&(s=u[x],s!=null&&Rt(n,l,x,s,u,null))}function up(n,l,u,s){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,S=null,x=null,z=null,Q=null,I=null;for($ in u){var ae=u[$];if(u.hasOwnProperty($)&&ae!=null)switch($){case"checked":break;case"value":break;case"defaultValue":z=ae;default:s.hasOwnProperty($)||Rt(n,l,$,null,s,ae)}}for(var Z in s){var $=s[Z];if(ae=u[Z],s.hasOwnProperty(Z)&&($!=null||ae!=null))switch(Z){case"type":g=$;break;case"name":m=$;break;case"checked":Q=$;break;case"defaultChecked":I=$;break;case"value":S=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(h(137,l));break;default:$!==ae&&Rt(n,l,Z,$,s,ae)}}cd(n,S,x,z,Q,I,g,m);return;case"select":$=S=x=Z=null;for(g in u)if(z=u[g],u.hasOwnProperty(g)&&z!=null)switch(g){case"value":break;case"multiple":$=z;default:s.hasOwnProperty(g)||Rt(n,l,g,null,s,z)}for(m in s)if(g=s[m],z=u[m],s.hasOwnProperty(m)&&(g!=null||z!=null))switch(m){case"value":Z=g;break;case"defaultValue":x=g;break;case"multiple":S=g;default:g!==z&&Rt(n,l,m,g,s,z)}l=x,u=S,s=$,Z!=null?yr(n,!!u,Z,!1):!!s!=!!u&&(l!=null?yr(n,!!u,l,!0):yr(n,!!u,u?[]:"",!1));return;case"textarea":$=Z=null;for(x in u)if(m=u[x],u.hasOwnProperty(x)&&m!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Rt(n,l,x,null,s,m)}for(S in s)if(m=s[S],g=u[S],s.hasOwnProperty(S)&&(m!=null||g!=null))switch(S){case"value":Z=m;break;case"defaultValue":$=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(h(91));break;default:m!==g&&Rt(n,l,S,m,s,g)}Am(n,Z,$);return;case"option":for(var he in u)if(Z=u[he],u.hasOwnProperty(he)&&Z!=null&&!s.hasOwnProperty(he))switch(he){case"selected":n.selected=!1;break;default:Rt(n,l,he,null,s,Z)}for(z in s)if(Z=s[z],$=u[z],s.hasOwnProperty(z)&&Z!==$&&(Z!=null||$!=null))switch(z){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Rt(n,l,z,Z,s,$)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ze in u)Z=u[ze],u.hasOwnProperty(ze)&&Z!=null&&!s.hasOwnProperty(ze)&&Rt(n,l,ze,null,s,Z);for(Q in s)if(Z=s[Q],$=u[Q],s.hasOwnProperty(Q)&&Z!==$&&(Z!=null||$!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(h(137,l));break;default:Rt(n,l,Q,Z,s,$)}return;default:if(xm(l)){for(var jt in u)Z=u[jt],u.hasOwnProperty(jt)&&Z!==void 0&&!s.hasOwnProperty(jt)&&ip(n,l,jt,void 0,s,Z);for(I in s)Z=s[I],$=u[I],!s.hasOwnProperty(I)||Z===$||Z===void 0&&$===void 0||ip(n,l,I,Z,s,$);return}}for(var Y in u)Z=u[Y],u.hasOwnProperty(Y)&&Z!=null&&!s.hasOwnProperty(Y)&&Rt(n,l,Y,null,s,Z);for(ae in s)Z=s[ae],$=u[ae],!s.hasOwnProperty(ae)||Z===$||Z==null&&$==null||Rt(n,l,ae,Z,s,$)}function $1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType=="function"){for(var n=0,l=0,u=performance.getEntriesByType("resource"),s=0;s<u.length;s++){var m=u[s],g=m.transferSize,S=m.initiatorType,x=m.duration;if(g&&x&&$1(S)){for(S=0,x=m.responseEnd,s+=1;s<u.length;s++){var z=u[s],Q=z.startTime;if(Q>x)break;var I=z.transferSize,ae=z.initiatorType;I&&$1(ae)&&(z=z.responseEnd,S+=I*(z<x?1:(x-Q)/(z-Q)))}if(--s,l+=8*(g+S)/(m.duration/1e3),n++,10<n)break}}if(0<n)return l/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var I1=null,W1=null;function _c(n){return n.nodeType===9?n:n.ownerDocument}function g4(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cp(n,l){if(n===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&l==="foreignObject"?0:n}function cf(n,l){return n==="textarea"||n==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var P1=null;function vb(){var n=window.event;return n&&n.type==="popstate"?n===P1?!1:(P1=n,!0):(P1=null,!1)}var hh=typeof setTimeout=="function"?setTimeout:void 0,p4=typeof clearTimeout=="function"?clearTimeout:void 0,Ds=typeof Promise=="function"?Promise:void 0,y4=typeof queueMicrotask=="function"?queueMicrotask:typeof Ds<"u"?function(n){return Ds.resolve(null).then(n).catch(sp)}:hh;function sp(n){setTimeout(function(){throw n})}function Zi(n){return n==="head"}function rp(n,l){var u=l,s=0;do{var m=u.nextSibling;if(n.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"||u==="/&"){if(s===0){n.removeChild(m),bf(l);return}s--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")s++;else if(u==="html")Os(n.ownerDocument.documentElement);else if(u==="head"){u=n.ownerDocument.head,Os(u);for(var g=u.firstChild;g;){var S=g.nextSibling,x=g.nodeName;g[du]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&g.rel.toLowerCase()==="stylesheet"||u.removeChild(g),g=S}}else u==="body"&&Os(n.ownerDocument.body);u=m}while(u);bf(l)}function zn(n,l){var u=n;n=0;do{var s=u.nextSibling;if(u.nodeType===1?l?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(l?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),s&&s.nodeType===8)if(u=s.data,u==="/$"){if(n===0)break;n--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||n++;u=s}while(u)}function mh(n){var l=n.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":mh(u),M0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function wb(n,l,u,s){for(;n.nodeType===1;){var m=u;if(n.nodeName.toLowerCase()!==l.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[du])switch(l){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==m.rel||n.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||n.getAttribute("title")!==(m.title==null?null:m.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(m.src==null?null:m.src)||n.getAttribute("type")!==(m.type==null?null:m.type)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(l==="input"&&n.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=al(n.nextSibling),n===null)break}return null}function We(n,l,u){if(l==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=al(n.nextSibling),n===null))return null;return n}function v4(n,l){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=al(n.nextSibling),n===null))return null;return n}function ui(n){return n.data==="$?"||n.data==="$~"}function xc(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function sf(n,l){var u=n.ownerDocument;if(n.data==="$~")n._reactRetry=l;else if(n.data!=="$?"||u.readyState!=="loading")l();else{var s=function(){l(),u.removeEventListener("DOMContentLoaded",s)};u.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function al(n){for(;n!=null;n=n.nextSibling){var l=n.nodeType;if(l===1||l===3)break;if(l===8){if(l=n.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return n}var gh=null;function e2(n){n=n.nextSibling;for(var l=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"||u==="/&"){if(l===0)return al(n.nextSibling);l--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||l++}n=n.nextSibling}return null}function Ji(n){n=n.previousSibling;for(var l=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(l===0)return n;l--}else u!=="/$"&&u!=="/&"||l++}n=n.previousSibling}return null}function rf(n,l,u){switch(l=_c(u),n){case"html":if(n=l.documentElement,!n)throw Error(h(452));return n;case"head":if(n=l.head,!n)throw Error(h(453));return n;case"body":if(n=l.body,!n)throw Error(h(454));return n;default:throw Error(h(451))}}function Os(n){for(var l=n.attributes;l.length;)n.removeAttributeNode(l[0]);M0(n)}var ml=new Map,ph=new Set;function Ba(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Ki=ee.d;ee.d={f:bb,r:w4,D:F,C:_t,L:Sb,m:fp,X:Co,S:dp,M:Mc};function bb(){var n=Ki.f(),l=ef();return n||l}function w4(n){var l=Xc(n);l!==null&&l.tag===5&&l.type==="form"?Lt(l):Ki.r(n)}var ff=typeof document>"u"?null:document;function Rn(n,l,u){var s=ff;if(s&&typeof l=="string"&&l){var m=Sl(l);m='link[rel="'+n+'"][href="'+m+'"]',typeof u=="string"&&(m+='[crossorigin="'+u+'"]'),ph.has(m)||(ph.add(m),n={rel:n,crossOrigin:u,href:l},s.querySelector(m)===null&&(l=s.createElement("link"),Ea(l,"link",n),Mt(l),s.head.appendChild(l)))}}function F(n){Ki.D(n),Rn("dns-prefetch",n,null)}function _t(n,l){Ki.C(n,l),Rn("preconnect",n,l)}function Sb(n,l,u){Ki.L(n,l,u);var s=ff;if(s&&n&&l){var m='link[rel="preload"][as="'+Sl(l)+'"]';l==="image"&&u&&u.imageSrcSet?(m+='[imagesrcset="'+Sl(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(m+='[imagesizes="'+Sl(u.imageSizes)+'"]')):m+='[href="'+Sl(n)+'"]';var g=m;switch(l){case"style":g=Hl(n);break;case"script":g=zs(n)}ml.has(g)||(n=N({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:n,as:l},u),ml.set(g,n),s.querySelector(m)!==null||l==="style"&&s.querySelector(Cc(g))||l==="script"&&s.querySelector(mf(g))||(l=s.createElement("link"),Ea(l,"link",n),Mt(l),s.head.appendChild(l)))}}function fp(n,l){Ki.m(n,l);var u=ff;if(u&&n){var s=l&&typeof l.as=="string"?l.as:"script",m='link[rel="modulepreload"][as="'+Sl(s)+'"][href="'+Sl(n)+'"]',g=m;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=zs(n)}if(!ml.has(g)&&(n=N({rel:"modulepreload",href:n},l),ml.set(g,n),u.querySelector(m)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(mf(g)))return}s=u.createElement("link"),Ea(s,"link",n),Mt(s),u.head.appendChild(s)}}}function dp(n,l,u){Ki.S(n,l,u);var s=ff;if(s&&n){var m=Qc(s).hoistableStyles,g=Hl(n);l=l||"default";var S=m.get(g);if(!S){var x={loading:0,preload:null};if(S=s.querySelector(Cc(g)))x.loading=5;else{n=N({rel:"stylesheet",href:n,"data-precedence":l},u),(u=ml.get(g))&&t2(n,u);var z=S=s.createElement("link");Mt(z),Ea(z,"link",n),z._p=new Promise(function(Q,I){z.onload=Q,z.onerror=I}),z.addEventListener("load",function(){x.loading|=1}),z.addEventListener("error",function(){x.loading|=2}),x.loading|=4,yh(S,l,s)}S={type:"stylesheet",instance:S,count:1,state:x},m.set(g,S)}}}function Co(n,l){Ki.X(n,l);var u=ff;if(u&&n){var s=Qc(u).hoistableScripts,m=zs(n),g=s.get(m);g||(g=u.querySelector(mf(m)),g||(n=N({src:n,async:!0},l),(l=ml.get(m))&&n2(n,l),g=u.createElement("script"),Mt(g),Ea(g,"link",n),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(m,g))}}function Mc(n,l){Ki.M(n,l);var u=ff;if(u&&n){var s=Qc(u).hoistableScripts,m=zs(n),g=s.get(m);g||(g=u.querySelector(mf(m)),g||(n=N({src:n,async:!0,type:"module"},l),(l=ml.get(m))&&n2(n,l),g=u.createElement("script"),Mt(g),Ea(g,"link",n),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(m,g))}}function df(n,l,u,s){var m=(m=en.current)?Ba(m):null;if(!m)throw Error(h(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=Hl(u.href),u=Qc(m).hoistableStyles,s=u.get(l),s||(s={type:"style",instance:null,count:0,state:null},u.set(l,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=Hl(u.href);var g=Qc(m).hoistableStyles,S=g.get(n);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,S),(g=m.querySelector(Cc(n)))&&!g._p&&(S.instance=g,S.state.loading=5),ml.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ml.set(n,u),g||b4(m,n,u,S.state))),l&&s===null)throw Error(h(528,""));return S}if(l&&s!==null)throw Error(h(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=zs(u),u=Qc(m).hoistableScripts,s=u.get(l),s||(s={type:"script",instance:null,count:0,state:null},u.set(l,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,n))}}function Hl(n){return'href="'+Sl(n)+'"'}function Cc(n){return'link[rel="stylesheet"]['+n+"]"}function hf(n){return N({},n,{"data-precedence":n.precedence,precedence:null})}function b4(n,l,u,s){n.querySelector('link[rel="preload"][as="style"]['+l+"]")?s.loading=1:(l=n.createElement("link"),s.preload=l,l.addEventListener("load",function(){return s.loading|=1}),l.addEventListener("error",function(){return s.loading|=2}),Ea(l,"link",u),Mt(l),n.head.appendChild(l))}function zs(n){return'[src="'+Sl(n)+'"]'}function mf(n){return"script[async]"+n}function hp(n,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var s=n.querySelector('style[data-href~="'+Sl(u.href)+'"]');if(s)return l.instance=s,Mt(s),s;var m=N({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),Mt(s),Ea(s,"style",m),yh(s,u.precedence,n),l.instance=s;case"stylesheet":m=Hl(u.href);var g=n.querySelector(Cc(m));if(g)return l.state.loading|=4,l.instance=g,Mt(g),g;s=hf(u),(m=ml.get(m))&&t2(s,m),g=(n.ownerDocument||n).createElement("link"),Mt(g);var S=g;return S._p=new Promise(function(x,z){S.onload=x,S.onerror=z}),Ea(g,"link",s),l.state.loading|=4,yh(g,u.precedence,n),l.instance=g;case"script":return g=zs(u.src),(m=n.querySelector(mf(g)))?(l.instance=m,Mt(m),m):(s=u,(m=ml.get(g))&&(s=N({},u),n2(s,m)),n=n.ownerDocument||n,m=n.createElement("script"),Mt(m),Ea(m,"link",s),n.head.appendChild(m),l.instance=m);case"void":return null;default:throw Error(h(443,l.type))}else l.type==="stylesheet"&&!(l.state.loading&4)&&(s=l.instance,l.state.loading|=4,yh(s,u.precedence,n));return l.instance}function yh(n,l,u){for(var s=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=s.length?s[s.length-1]:null,g=m,S=0;S<s.length;S++){var x=s[S];if(x.dataset.precedence===l)g=x;else if(g!==m)break}g?g.parentNode.insertBefore(n,g.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(n,l.firstChild))}function t2(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.title==null&&(n.title=l.title)}function n2(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.integrity==null&&(n.integrity=l.integrity)}var gf=null;function mp(n,l,u){if(gf===null){var s=new Map,m=gf=new Map;m.set(u,s)}else m=gf,s=m.get(u),s||(s=new Map,m.set(u,s));if(s.has(n))return s;for(s.set(n,null),u=u.getElementsByTagName(n),m=0;m<u.length;m++){var g=u[m];if(!(g[du]||g[Ht]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(l)||"";S=n+S;var x=s.get(S);x?x.push(g):s.set(S,[g])}}return s}function a2(n,l,u){n=n.ownerDocument||n,n.head.insertBefore(u,l==="title"?n.querySelector("head > title"):null)}function gp(n,l,u){if(u===1||l.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return n=l.disabled,typeof l.precedence=="string"&&n==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function gl(n){return!(n.type==="stylesheet"&&!(n.state.loading&3))}function ju(n,l,u,s){if(u.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&!(u.state.loading&4)){if(u.instance===null){var m=Hl(s.href),g=l.querySelector(Cc(m));if(g){l=g._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(n.count++,n=l2.bind(n),l.then(n,n)),u.state.loading|=4,u.instance=g,Mt(g);return}g=l.ownerDocument||l,s=hf(s),(m=ml.get(m))&&t2(s,m),g=g.createElement("link"),Mt(g);var S=g;S._p=new Promise(function(x,z){S.onload=x,S.onerror=z}),Ea(g,"link",s),u.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(u,l),(l=u.state.preload)&&!(u.state.loading&3)&&(n.count++,u=l2.bind(n),l.addEventListener("load",u),l.addEventListener("error",u))}}var Ll=0;function pp(n,l){return n.stylesheets&&n.count===0&&u2(n,n.stylesheets),0<n.count||0<n.imgCount?function(u){var s=setTimeout(function(){if(n.stylesheets&&u2(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+l);0<n.imgBytes&&Ll===0&&(Ll=62500*op());var m=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&u2(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>Ll?50:800)+l);return n.unsuspend=u,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(m)}}:null}function l2(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)u2(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var i2=null;function u2(n,l){n.stylesheets=null,n.unsuspend!==null&&(n.count++,i2=new Map,l.forEach(ca,n),i2=null,l2.call(n))}function ca(n,l){if(!(l.state.loading&4)){var u=i2.get(n);if(u)var s=u.get(null);else{u=new Map,i2.set(n,u);for(var m=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var S=m[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(u.set(S.dataset.precedence,S),s=S)}s&&u.set(null,s)}m=l.instance,S=m.getAttribute("data-precedence"),g=u.get(S)||s,g===s&&u.set(null,m),u.set(S,m),this.count++,s=l2.bind(this),m.addEventListener("load",s),m.addEventListener("error",s),g?g.parentNode.insertBefore(m,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(m,n.firstChild)),l.state.loading|=4}}var vh={$$typeof:be,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function yp(n,l,u,s,m,g,S,x,z){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=id(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=id(0),this.hiddenUpdates=id(null),this.identifierPrefix=s,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function o2(n,l,u,s,m,g,S,x,z,Q,I,ae){return n=new yp(n,l,u,S,z,Q,I,ae,x),l=1,g===!0&&(l|=24),g=yn(3,null,null,l),n.current=g,g.stateNode=n,l=xd(),l.refCount++,n.pooledCache=l,l.refCount++,g.memoizedState={element:s,isDehydrated:u,cache:l},Ud(g),n}function Ns(n){return n?(n=Za,n):Za}function S4(n,l,u,s,m,g){m=Ns(m),s.context===null?s.context=m:s.pendingContext=m,s=vo(l),s.payload={element:u},g=g===void 0?null:g,g!==null&&(s.callback=g),u=Cl(n,s,l),u!==null&&(nl(u,n,l),dc(u,n,l))}function c2(n,l){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<l?u:l}}function vp(n,l){c2(n,l),(n=n.alternate)&&c2(n,l)}function E4(n){if(n.tag===13||n.tag===31){var l=ro(n,67108864);l!==null&&nl(l,n,67108864),vp(n,67108864)}}function Us(n){if(n.tag===13||n.tag===31){var l=hl();l=A0(l);var u=ro(n,l);u!==null&&nl(u,n,l),vp(n,l)}}var Zn=!0;function qu(n,l,u,s){var m=V.T;V.T=null;var g=ee.p;try{ee.p=2,Ta(n,l,u,s)}finally{ee.p=g,V.T=m}}function Vu(n,l,u,s){var m=V.T;V.T=null;var g=ee.p;try{ee.p=8,Ta(n,l,u,s)}finally{ee.p=g,V.T=m}}function Ta(n,l,u,s){if(Zn){var m=wp(s);if(m===null)tp(n,l,s,s2,u),Do(n,s);else if(Eb(m,n,l,u,s))s.stopPropagation();else if(Do(n,s),l&4&&-1<ll.indexOf(n)){for(;m!==null;){var g=Xc(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=Kl(g.pendingLanes);if(S!==0){var x=g;for(x.pendingLanes|=2,x.entangledLanes|=2;S;){var z=1<<31-ba(S);x.entanglements[1]|=z,S&=~z}Ru(g),!(vt&6)&&(At=Hn()+500,Mo(0))}}break;case 31:case 13:x=ro(g,2),x!==null&&nl(x,g,2),ef(),vp(g,2)}if(g=wp(s),g===null&&tp(n,l,s,s2,u),g===m)break;m=g}m!==null&&s.stopPropagation()}else tp(n,l,s,null,u)}}function wp(n){return n=B0(n),pf(n)}var s2=null;function pf(n){if(s2=null,n=kc(n),n!==null){var l=w(n);if(l===null)n=null;else{var u=l.tag;if(u===13){if(n=E(l),n!==null)return n;n=null}else if(u===31){if(n=A(l),n!==null)return n;n=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;n=null}else l!==n&&(n=null)}}return s2=n,null}function wh(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(S0()){case cr:return 2;case sr:return 8;case su:case ym:return 32;case rr:return 268435456;default:return 32}default:return 32}}var yf=!1,Jn=null,Aa=null,Ha=null,Dc=new Map,oi=new Map,ln=[],ll="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Do(n,l){switch(n){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Dc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(l.pointerId)}}function Bs(n,l,u,s,m,g){return n===null||n.nativeEvent!==g?(n={blockedOn:l,domEventName:u,eventSystemFlags:s,nativeEvent:g,targetContainers:[m]},l!==null&&(l=Xc(l),l!==null&&E4(l)),n):(n.eventSystemFlags|=s,l=n.targetContainers,m!==null&&l.indexOf(m)===-1&&l.push(m),n)}function Eb(n,l,u,s,m){switch(l){case"focusin":return Jn=Bs(Jn,n,l,u,s,m),!0;case"dragenter":return Aa=Bs(Aa,n,l,u,s,m),!0;case"mouseover":return Ha=Bs(Ha,n,l,u,s,m),!0;case"pointerover":var g=m.pointerId;return Dc.set(g,Bs(Dc.get(g)||null,n,l,u,s,m)),!0;case"gotpointercapture":return g=m.pointerId,oi.set(g,Bs(oi.get(g)||null,n,l,u,s,m)),!0}return!1}function T4(n){var l=kc(n.target);if(l!==null){var u=w(l);if(u!==null){if(l=u.tag,l===13){if(l=E(u),l!==null){n.blockedOn=l,wm(n.priority,function(){Us(u)});return}}else if(l===31){if(l=A(u),l!==null){n.blockedOn=l,wm(n.priority,function(){Us(u)});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function bh(n){if(n.blockedOn!==null)return!1;for(var l=n.targetContainers;0<l.length;){var u=wp(n.nativeEvent);if(u===null){u=n.nativeEvent;var s=new u.constructor(u.type,u);U0=s,u.target.dispatchEvent(s),U0=null}else return l=Xc(u),l!==null&&E4(l),n.blockedOn=u,!1;l.shift()}return!0}function vf(n,l,u){bh(n)&&u.delete(l)}function A4(){yf=!1,Jn!==null&&bh(Jn)&&(Jn=null),Aa!==null&&bh(Aa)&&(Aa=null),Ha!==null&&bh(Ha)&&(Ha=null),Dc.forEach(vf),oi.forEach(vf)}function Yu(n,l){n.blockedOn===l&&(n.blockedOn=null,yf||(yf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,A4)))}var wf=null;function _4(n){wf!==n&&(wf=n,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){wf===n&&(wf=null);for(var l=0;l<n.length;l+=3){var u=n[l],s=n[l+1],m=n[l+2];if(typeof s!="function"){if(pf(s||u)===null)continue;break}var g=Xc(u);g!==null&&(n.splice(l,3),l-=3,Vr(g,{pending:!0,data:m,method:u.method,action:s},s,m))}}))}function bf(n){function l(z){return Yu(z,n)}Jn!==null&&Yu(Jn,n),Aa!==null&&Yu(Aa,n),Ha!==null&&Yu(Ha,n),Dc.forEach(l),oi.forEach(l);for(var u=0;u<ln.length;u++){var s=ln[u];s.blockedOn===n&&(s.blockedOn=null)}for(;0<ln.length&&(u=ln[0],u.blockedOn===null);)T4(u),u.blockedOn===null&&ln.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(s=0;s<u.length;s+=3){var m=u[s],g=u[s+1],S=m[ka]||null;if(typeof g=="function")S||_4(u);else if(S){var x=null;if(g&&g.hasAttribute("formAction")){if(m=g,S=g[ka]||null)x=S.formAction;else if(pf(m)!==null)continue}else x=S.action;typeof x=="function"?u[s+1]=x:(u.splice(s,3),s-=3),_4(u)}}}function bp(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function l(){m!==null&&(m(),m=null),s||setTimeout(u,20)}function u(){if(!s&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,m=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(u,100),function(){s=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),m!==null&&(m(),m=null)}}}function r2(n){this._internalRoot=n}f2.prototype.render=r2.prototype.render=function(n){var l=this._internalRoot;if(l===null)throw Error(h(409));var u=l.current,s=hl();S4(u,s,n,l,null,null)},f2.prototype.unmount=r2.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var l=n.containerInfo;S4(n.current,2,null,n,null,null),ef(),l[Fo]=null}};function f2(n){this._internalRoot=n}f2.prototype.unstable_scheduleHydration=function(n){if(n){var l=_0();n={blockedOn:null,target:n,priority:l};for(var u=0;u<ln.length&&l!==0&&l<ln[u].priority;u++);ln.splice(u,0,n),u===0&&T4(n)}};var Sp=c.version;if(Sp!=="19.2.0")throw Error(h(527,Sp,"19.2.0"));ee.findDOMNode=function(n){var l=n._reactInternals;if(l===void 0)throw typeof n.render=="function"?Error(h(188)):(n=Object.keys(n).join(","),Error(h(268,n)));return n=G(l),n=n!==null?U(n):null,n=n===null?null:n.stateNode,n};var x4={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sh.isDisabled&&Sh.supportsFiber)try{sn=Sh.inject(x4),_n=Sh}catch{}}return gm.createRoot=function(n,l){if(!y(n))throw Error(h(299));var u=!1,s="",m=E1,g=Eg,S=T1;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),l=o2(n,1,!1,null,null,u,s,null,m,g,S,bp),n[Fo]=l.current,of(n),new r2(l)},gm.hydrateRoot=function(n,l,u){if(!y(n))throw Error(h(299));var s=!1,m="",g=E1,S=Eg,x=T1,z=null;return u!=null&&(u.unstable_strictMode===!0&&(s=!0),u.identifierPrefix!==void 0&&(m=u.identifierPrefix),u.onUncaughtError!==void 0&&(g=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(x=u.onRecoverableError),u.formState!==void 0&&(z=u.formState)),l=o2(n,1,!0,l,u??null,s,m,z,g,S,x,bp),l.context=Ns(null),u=l.current,s=hl(),s=A0(s),m=vo(s),m.callback=null,Cl(u,m,s),u=s,l.current.lanes=u,dr(l,u),Ru(l),n[Fo]=l.current,of(n),new f2(l)},gm.version="19.2.0",gm}var pm={};/**
|
|
107
|
+
* @license React
|
|
108
|
+
* react-dom-client.development.js
|
|
109
|
+
*
|
|
110
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the MIT license found in the
|
|
113
|
+
* LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/var u7;function M_(){return u7||(u7=1,process.env.NODE_ENV!=="production"&&function(){function i(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function c(e,t,a,o){if(a>=t.length)return o;var r=t[a],d=Rn(e)?e.slice():We({},e);return d[r]=c(e[r],t,a+1,o),d}function f(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return h(e,t,a,0)}}function h(e,t,a,o){var r=t[o],d=Rn(e)?e.slice():We({},e);return o+1===t.length?(d[a[o]]=d[r],Rn(d)?d.splice(r,1):delete d[r]):d[r]=h(e[r],t,a,o+1),d}function y(e,t,a){var o=t[a],r=Rn(e)?e.slice():We({},e);return a+1===t.length?(Rn(r)?r.splice(o,1):delete r[o],r):(r[o]=y(e[o],t,a+1),r)}function w(){return!1}function E(){return null}function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function G(){}function U(){}function N(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function q(e,t,a,o){return new mb(e,t,a,o)}function k(e,t){e.context===Af&&(F1(e.current,2,t,e,null,null),Ul())}function ne(e,t){if(Qu!==null){var a=t.staleFamilies;t=t.updatedFamilies,Wd(),y3(e.current,t,a),Ul()}}function oe(e){Qu=e}function ue(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function P(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function ye(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function be(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Te(e){if(P(e)!==e)throw Error("Unable to find node on an unmounted component.")}function nt(e){var t=e.alternate;if(!t){if(t=P(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var d=r.alternate;if(d===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===d.child){for(d=r.child;d;){if(d===a)return Te(r),e;if(d===o)return Te(r),t;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=r,o=d;else{for(var p=!1,v=r.child;v;){if(v===a){p=!0,a=r,o=d;break}if(v===o){p=!0,o=r,a=d;break}v=v.sibling}if(!p){for(v=d.child;v;){if(v===a){p=!0,a=d,o=r;break}if(v===o){p=!0,o=d,a=r;break}v=v.sibling}if(!p)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Be(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Be(e),t!==null)return t;e=e.sibling}return null}function Qe(e){return e===null||typeof e!="object"?null:(e=w4&&e[w4]||e["@@iterator"],typeof e=="function"?e:null)}function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ff?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sf:return"Fragment";case gh:return"Profiler";case al:return"StrictMode";case Os:return"Suspense";case ml:return"SuspenseList";case Ki:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case xc:return"Portal";case Ji:return e.displayName||"Context";case e2:return(e._context.displayName||"Context")+".Consumer";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ph:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case Ba:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}function me(e){return typeof e.tag=="number"?ce(e):typeof e.name=="string"?e.name:null}function ce(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(t);case 8:return t===al?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return ce(e.return)}return null}function Ut(e){return{current:e}}function ke(e,t){0>Co?console.error("Unexpected pop."):(t!==dp[Co]&&console.error("Unexpected Fiber popped."),e.current=fp[Co],fp[Co]=null,dp[Co]=null,Co--)}function He(e,t,a){Co++,fp[Co]=e.current,dp[Co]=a,e.current=t}function Ft(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function $t(e,t){He(Hl,t,e),He(df,e,e),He(Mc,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Z3(t):Ks;break;default:if(a=t.tagName,t=t.namespaceURI)t=Z3(t),t=_o(t,a);else switch(a){case"svg":t=V2;break;case"math":t=yv;break;default:t=Ks}}a=a.toLowerCase(),a=Tm(null,a),a={context:t,ancestorInfo:a},ke(Mc,e),He(Mc,a,e)}function V(e){ke(Mc,e),ke(df,e),ke(Hl,e)}function ee(){return Ft(Mc.current)}function ie(e){e.memoizedState!==null&&He(Cc,e,e);var t=Ft(Mc.current),a=e.type,o=_o(t.context,a);a=Tm(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(He(df,e,e),He(Mc,o,e))}function ve(e){df.current===e&&(ke(Mc,e),ke(df,e)),Cc.current===e&&(ke(Cc,e),ry._currentValue=Xh)}function Ce(){}function Et(){if(hf===0){b4=console.log,zs=console.info,mf=console.warn,hp=console.error,yh=console.group,t2=console.groupCollapsed,n2=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}hf++}function st(){if(hf--,hf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:We({},e,{value:b4}),info:We({},e,{value:zs}),warn:We({},e,{value:mf}),error:We({},e,{value:hp}),group:We({},e,{value:yh}),groupCollapsed:We({},e,{value:t2}),groupEnd:We({},e,{value:n2})})}0>hf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Xe(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
115
|
+
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
116
|
+
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
117
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Ze(e){if(gf===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gf=t&&t[1]||"",mp=-1<a.stack.indexOf(`
|
|
118
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
119
|
+
`+gf+e+mp}function Bt(e,t){if(!e||a2)return"";var a=gp.get(e);if(a!==void 0)return a;a2=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=F.H,F.H=null,Et();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(se){var J=se}Reflect.construct(e,[],D)}else{try{D.call()}catch(se){J=se}e.call(D.prototype)}}else{try{throw Error()}catch(se){J=se}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(se){if(se&&J&&typeof se.stack=="string")return[se.stack,J.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=r.DetermineComponentFrameRoot(),v=p[0],T=p[1];if(v&&T){var _=v.split(`
|
|
120
|
+
`),H=T.split(`
|
|
121
|
+
`);for(p=d=0;d<_.length&&!_[d].includes("DetermineComponentFrameRoot");)d++;for(;p<H.length&&!H[p].includes("DetermineComponentFrameRoot");)p++;if(d===_.length||p===H.length)for(d=_.length-1,p=H.length-1;1<=d&&0<=p&&_[d]!==H[p];)p--;for(;1<=d&&0<=p;d--,p--)if(_[d]!==H[p]){if(d!==1||p!==1)do if(d--,p--,0>p||_[d]!==H[p]){var R=`
|
|
122
|
+
`+_[d].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&gp.set(e,R),R}while(1<=d&&0<=p);break}}}finally{a2=!1,F.H=o,st(),Error.prepareStackTrace=a}return _=(_=e?e.displayName||e.name:"")?Ze(_):"",typeof e=="function"&&gp.set(e,_),_}function en(e,t){switch(e.tag){case 26:case 27:case 5:return Ze(e.type);case 16:return Ze("Lazy");case 13:return e.child!==t&&t!==null?Ze("Suspense Fallback"):Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 15:return Bt(e.type,!1);case 11:return Bt(e.type.render,!1);case 1:return Bt(e.type,!0);case 31:return Ze("Activity");default:return""}}function Pn(e){try{var t="",a=null;do{t+=en(e,a);var o=e._debugInfo;if(o)for(var r=o.length-1;0<=r;r--){var d=o[r];if(typeof d.name=="string"){var p=t;e:{var v=d.name,T=d.env,_=d.debugLocation;if(_!=null){var H=Xe(_),R=H.lastIndexOf(`
|
|
123
|
+
`),D=R===-1?H:H.slice(R+1);if(D.indexOf(v)!==-1){var J=`
|
|
124
|
+
`+D;break e}}J=Ze(v+(T?" ["+T+"]":""))}t=p+J}}a=e,e=e.return}while(e);return t}catch(se){return`
|
|
125
|
+
Error generating stack: `+se.message+`
|
|
126
|
+
`+se.stack}}function Vt(e){return(e=e?e.displayName||e.name:"")?Ze(e):""}function ea(){if(gl===null)return null;var e=gl._debugOwner;return e!=null?me(e):null}function cu(){if(gl===null)return"";var e=gl;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ze(e.type);break;case 13:t+=Ze("Suspense");break;case 19:t+=Ze("SuspenseList");break;case 31:t+=Ze("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Vt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Vt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var r=Xe(o);r!==""&&(t+=`
|
|
127
|
+
`+r)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
|
|
128
|
+
`+Xe(d))}else break;var p=t}catch(v){p=`
|
|
129
|
+
Error generating stack: `+v.message+`
|
|
130
|
+
`+v.stack}return p}function fe(e,t,a,o,r,d,p){var v=gl;Ti(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,r,d,p)):t(a,o,r,d,p)}finally{Ti(v)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ti(e){F.getCurrentStack=e===null?null:cu,ju=!1,gl=e}function io(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Va(e){try{return Ya(e),!1}catch{return!0}}function Ya(e){return""+e}function dt(e,t){if(Va(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,io(e)),Ya(e)}function Zo(e,t){if(Va(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,io(e)),Ya(e)}function Re(e){if(Va(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",io(e)),Ya(e)}function kt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Us=t.inject(e),Zn=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function ht(e){if(typeof vp=="function"&&E4(e),Zn&&typeof Zn.setStrictMode=="function")try{Zn.setStrictMode(Us,e)}catch(t){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",t))}}function Jo(e){return e>>>=0,e===0?32:31-(wp(e)/s2|0)|0}function Ql(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Vc(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,d=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=o&134217727;return v!==0?(o=v&~d,o!==0?r=Ql(o):(p&=v,p!==0?r=Ql(p):a||(a=v&~e,a!==0&&(r=Ql(a))))):(v=o&~d,v!==0?r=Ql(v):p!==0?r=Ql(p):a||(a=o&~e,a!==0&&(r=Ql(a)))),r===0?0:t!==0&&t!==r&&!(t&d)&&(d=r&-r,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:r}function Hn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function S0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function cr(){var e=yf;return yf<<=1,!(yf&62914560)&&(yf=4194304),e}function sr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function su(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ym(e,t,a,o,r,d){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,_=e.hiddenUpdates;for(a=p&~a;0<a;){var H=31-Ta(a),R=1<<H;v[H]=0,T[H]=-1;var D=_[H];if(D!==null)for(_[H]=null,H=0;H<D.length;H++){var J=D[H];J!==null&&(J.lane&=-536870913)}a&=~R}o!==0&&rr(e,o,0),d!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=d&~(p&~t))}function rr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Ta(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function wa(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Ta(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function Ko(e,t){var a=t&-t;return a=a&42?1:sn(a),a&(e.suspendedLanes|t)?0:a}function sn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _n(e,t,a){if(Vu)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Ta(a),r=1<<o;e[o].add(t),a&=~r}}function ol(e,t){if(Vu)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var r=31-Ta(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(d){var p=d.alternate;p!==null&&o.has(p)||o.add(d)}),r.clear()),t&=~e}}function ba(e){return e&=-e,Jn<e?Aa<e?e&134217727?Ha:Dc:Aa:Jn}function E0(){var e=_t.p;return e!==0?e:(e=window.event,e===void 0?Ha:I1(e.type))}function ru(e,t){var a=_t.p;try{return _t.p=e,t()}finally{_t.p=a}}function Zl(e){delete e[ln],delete e[ll],delete e[Bs],delete e[Eb],delete e[T4]}function Ai(e){var t=e[ln];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Do]||a[ln]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=xs(e);e!==null;){if(a=e[ln])return a;e=xs(e)}return t}e=a,a=e.parentNode}return null}function vl(e){if(e=e[ln]||e[Do]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Jl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Kl(e){var t=e[bh];return t||(t=e[bh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xn(e){e[vf]=!0}function _i(e,t){fr(e,t),fr(e+"Capture",t)}function fr(e,t){Yu[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Yu[e]=t;var a=e.toLowerCase();for(wf[a]=e,e==="onDoubleClick"&&(wf.ondblclick=e),e=0;e<t.length;e++)A4.add(t[e])}function Yc(e,t){_4[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function id(e){return Ll.call(r2,e)?!0:Ll.call(bp,e)?!1:bf.test(e)?r2[e]=!0:(bp[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function dr(e,t,a){if(id(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(dt(a,t),e===""+a?a:e)}}function T0(e,t,a){if(id(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}dt(a,t),e.setAttribute(t,""+a)}}function ud(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}dt(a,t),e.setAttribute(t,""+a)}}function fu(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}dt(o,a),e.setAttributeNS(t,a,""+o)}}function wl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Re(e),e;default:return""}}function A0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vm(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,d=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(p){Re(p),a=""+p,d.call(this,p)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(p){Re(p),a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _0(e){if(!e._valueTracker){var t=A0(e)?"checked":"value";e._valueTracker=vm(e,t,""+e[t])}}function wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=A0(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ht(e){return e.replace(f2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ka(e,t){t.checked===void 0||t.defaultChecked===void 0||x4||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component",t.type),x4=!0),t.value===void 0||t.defaultValue===void 0||Sp||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component",t.type),Sp=!0)}function Fo(e,t,a,o,r,d,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(dt(p,"type"),e.type=p):e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wl(t)):e.value!==""+wl(t)&&(e.value=""+wl(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?bm(e,p,wl(t)):a!=null?bm(e,p,wl(a)):o!=null&&e.removeAttribute("value"),r==null&&d!=null&&(e.defaultChecked=!!d),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?(dt(v,"name"),e.name=""+wl(v)):e.removeAttribute("name")}function x0(e,t,a,o,r,d,p,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(dt(d,"type"),e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){_0(e);return}a=a!=null?""+wl(a):"",t=t!=null?""+wl(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=v?e.checked:!!o,e.defaultChecked=!!o,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(dt(p,"name"),e.name=p),_0(e)}function bm(e,t,a){t==="number"&&xi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function a3(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?mh.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||n||(n=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||l||(l=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Sh||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Sh=!0)}function Sm(){var e=ea();return e?`
|
|
131
|
+
|
|
132
|
+
Check the render method of \``+e+"`.":""}function du(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{for(a=""+wl(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function M0(e,t){for(e=0;e<s.length;e++){var a=s[e];if(t[a]!=null){var o=Rn(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Sm()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Sm())}}t.value===void 0||t.defaultValue===void 0||u||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),u=!0)}function kc(e,t){t.value===void 0||t.defaultValue===void 0||m||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component"),m=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Xc(e,t,a){if(t!=null&&(t=""+wl(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wl(a):""}function hr(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Rn(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=wl(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),_0(e)}function Qc(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qc(e.children[0],t):e}function Mt(e){return" "+" ".repeat(e)}function Zc(e){return"+ "+" ".repeat(e)}function $o(e){return"- "+" ".repeat(e)}function Io(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function hu(e,t){return g.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function C0(e,t,a){var o=120-2*a;if(t===null)return Zc(a)+hu(e,o)+`
|
|
133
|
+
`;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>o-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Zc(a)+hu(e,o)+`
|
|
134
|
+
`+$o(a)+hu(t,o)+`
|
|
135
|
+
`}return Mt(a)+hu(e,o)+`
|
|
136
|
+
`}function D0(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function mr(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Rn(e))return"[...]";if(e.$$typeof===ui)return(t=xe(e.type))?"<"+t+">":"<...>";var a=D0(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var r=JSON.stringify(o);if(r!=='"'+o+'"'&&(o=r),t-=o.length-2,r=mr(e[o],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function gr(e,t){return typeof e!="string"||g.test(e)?"{"+mr(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function pr(e,t,a){var o=120-a.length-e.length,r=[],d;for(d in t)if(t.hasOwnProperty(d)&&d!=="children"){var p=gr(t[d],120-a.length-d.length-1);o-=d.length+p.length+2,r.push(d+"="+p)}return r.length===0?a+"<"+e+`>
|
|
137
|
+
`:0<o?a+"<"+e+" "+r.join(" ")+`>
|
|
138
|
+
`:a+"<"+e+`
|
|
139
|
+
`+a+" "+r.join(`
|
|
140
|
+
`+a+" ")+`
|
|
141
|
+
`+a+`>
|
|
142
|
+
`}function O0(e,t,a){var o="",r=We({},t),d;for(d in e)if(e.hasOwnProperty(d)){delete r[d];var p=120-2*a-d.length-2,v=mr(e[d],p);t.hasOwnProperty(d)?(p=mr(t[d],p),o+=Zc(a)+d+": "+v+`
|
|
143
|
+
`,o+=$o(a)+d+": "+p+`
|
|
144
|
+
`):o+=Zc(a)+d+": "+v+`
|
|
145
|
+
`}for(var T in r)r.hasOwnProperty(T)&&(e=mr(r[T],120-2*a-T.length-2),o+=$o(a)+T+": "+e+`
|
|
146
|
+
`);return o}function uo(e,t,a,o){var r="",d=new Map;for(_ in a)a.hasOwnProperty(_)&&d.set(_.toLowerCase(),_);if(d.size===1&&d.has("children"))r+=pr(e,t,Mt(o));else{for(var p in t)if(t.hasOwnProperty(p)&&p!=="children"){var v=120-2*(o+1)-p.length-1,T=d.get(p.toLowerCase());if(T!==void 0){d.delete(p.toLowerCase());var _=t[p];T=a[T];var H=gr(_,v);v=gr(T,v),typeof _=="object"&&_!==null&&typeof T=="object"&&T!==null&&D0(_)==="Object"&&D0(T)==="Object"&&(2<Object.keys(_).length||2<Object.keys(T).length||-1<H.indexOf("...")||-1<v.indexOf("..."))?r+=Mt(o+1)+p+`={{
|
|
147
|
+
`+O0(_,T,o+2)+Mt(o+1)+`}}
|
|
148
|
+
`:(r+=Zc(o+1)+p+"="+H+`
|
|
149
|
+
`,r+=$o(o+1)+p+"="+v+`
|
|
150
|
+
`)}else r+=Mt(o+1)+p+"="+gr(t[p],v)+`
|
|
151
|
+
`}d.forEach(function(R){if(R!=="children"){var D=120-2*(o+1)-R.length-1;r+=$o(o+1)+R+"="+gr(a[R],D)+`
|
|
152
|
+
`}}),r=r===""?Mt(o)+"<"+e+`>
|
|
153
|
+
`:Mt(o)+"<"+e+`
|
|
154
|
+
`+r+Mt(o)+`>
|
|
155
|
+
`}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(d="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(d=""+t),r+=C0(d,""+e,o+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+C0(""+t,null,o+1):r+C0(""+t,void 0,o+1)),r}function bl(e,t){var a=Io(e);if(a===null){for(a="",e=e.child;e;)a+=bl(e,t),e=e.sibling;return a}return Mt(t)+"<"+a+`>
|
|
156
|
+
`}function z0(e,t){var a=Qc(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Mt(t)+`...
|
|
157
|
+
`+z0(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var r=0;r<o.length;r++){var d=o[r].name;typeof d=="string"&&(a+=Mt(t)+"<"+d+`>
|
|
158
|
+
`,t++)}if(o="",r=e.fiber.pendingProps,e.fiber.tag===6)o=C0(r,e.serverProps,t),t++;else if(d=Io(e.fiber),d!==null)if(e.serverProps===void 0){o=t;var p=120-2*o-d.length-2,v="";for(_ in r)if(r.hasOwnProperty(_)&&_!=="children"){var T=gr(r[_],15);if(p-=_.length+T.length+2,0>p){v+=" ...";break}v+=" "+_+"="+T}o=Mt(o)+"<"+d+v+`>
|
|
159
|
+
`,t++}else e.serverProps===null?(o=pr(d,r,Zc(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=uo(d,r,e.serverProps,t),t++);var _="";for(r=e.fiber.child,d=0;r&&d<e.children.length;)p=e.children[d],p.fiber===r?(_+=z0(p,t),d++):_+=bl(r,t),r=r.sibling;for(r&&0<e.children.length&&(_+=Mt(t)+`...
|
|
160
|
+
`),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)d=r[e],_=typeof d=="string"?_+($o(t)+hu(d,120-2*t)+`
|
|
161
|
+
`):_+pr(d.type,d.props,$o(t));return a+o+_}function Em(e){try{return`
|
|
162
|
+
|
|
163
|
+
`+z0(e,0)}catch{return""}}function N0(e,t,a){for(var o=t,r=null,d=0;o;)o===e&&(d=0),r={fiber:o,children:r!==null?[r]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,o=o.return;return r!==null?Em(r).replaceAll(/^[+-]/gm,">"):""}function Tm(e,t){var a=We({},e||I),o={tag:t};return x.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),z.indexOf(t)!==-1&&(a.pTagInButtonScope=null),S.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=o),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function od(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return Q.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function cb(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Sl(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function cd(e,t){t=t||I;var a=t.current;if(t=(a=od(e,a&&a.tag,t.implicitRootScope)?null:a)?null:cb(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,ae[t])return!1;ae[t]=!0;var r=(t=gl)?Sl(t.return,o):null,d=t!==null&&r!==null?N0(r,t,null):"",p="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
164
|
+
This will cause a hydration error.%s`,p,o,a,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
165
|
+
This will cause a hydration error.%s`,p,o,d),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||fe(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
166
|
+
See this log for the ancestor stack trace.`,o,p)})),!1}function sd(e,t,a){if(a||od("#text",t,!1))return!0;if(a="#text|"+t,ae[a])return!1;ae[a]=!0;var o=(a=gl)?Sl(a,t):null;return a=a!==null&&o!==null?N0(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
167
|
+
This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
168
|
+
This will cause a hydration error.%s`,t,a),!1}function Jc(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function yr(e){return e.replace(Y,function(t,a){return a.toUpperCase()})}function Am(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?X.hasOwnProperty(t)&&X[t]||(X[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,yr(t.replace(jt,"ms-")))):ze.test(t)?X.hasOwnProperty(t)&&X[t]||(X[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!L.test(a)||te.hasOwnProperty(a)&&te[a]||(te[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(L,""))),typeof a=="number"&&(isNaN(a)?Ae||(Ae=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||gt||(gt=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||pe.has(t)?t==="float"?e.cssFloat=a:(Zo(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function _m(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var d=Z[r]||[r],p=0;p<d.length;p++)o[d[p]]=r}for(var v in t)if(t.hasOwnProperty(v)&&(!a||a[v]!==t[v]))for(r=Z[v]||[v],d=0;d<r.length;d++)o[r[d]]=v;v={};for(var T in t)for(r=Z[T]||[T],d=0;d<r.length;d++)v[r[d]]=T;T={};for(var _ in o)if(r=o[_],(d=v[_])&&r!==d&&(p=r+","+d,!T[p])){T[p]=!0,p=console;var H=t[r];p.error.call(p,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",H==null||typeof H=="boolean"||H===""?"Removing":"Updating",r,d)}}for(var R in a)!a.hasOwnProperty(R)||t!=null&&t.hasOwnProperty(R)||(R.indexOf("--")===0?e.setProperty(R,""):R==="float"?e.cssFloat="":e[R]="");for(var D in t)_=t[D],t.hasOwnProperty(D)&&a[D]!==_&&Am(e,D,_)}else for(o in t)t.hasOwnProperty(o)&&Am(e,o,t[o])}function mu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function l3(e){return wt.get(e)||e}function i3(e,t){if(Ll.call(d2,t)&&d2[t])return!0;if(ox.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=M4.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),d2[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),d2[t]=!0}if(ux.test(t)){if(e=t.toLowerCase(),e=M4.hasOwnProperty(e)?e:null,e==null)return d2[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),d2[t]=!0)}return!0}function u3(e,t){var a=[],o;for(o in t)i3(e,o)||a.push(o);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function xm(e,t,a,o){if(Ll.call(Gl,t)&&Gl[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Gl[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(r)?e[r]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),Gl[t]=!0;if(m7.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Gl[t]=!0}else if(m7.test(t))return cx.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Gl[t]=!0;if(sx.test(t)||rx.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gl[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gl[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Gl[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Gl[t]=!0;if(Fi.hasOwnProperty(r)){if(r=Fi[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Gl[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Gl[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Gl[t]=!0)}case"function":case"symbol":return Gl[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Gl[t]=!0}}return!0}function sb(e,t,a){var o=[],r;for(r in t)xm(e,r,t[r],a)||o.push(r);t=o.map(function(d){return"`"+d+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function rd(e){return fx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fl(){}function Mi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function U0(e){var t=vl(e);if(t&&(e=t.stateNode)){var a=e[ll]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(dt(t,"name"),a=a.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[ll]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Fo(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&wm(o)}break e;case"textarea":Xc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&du(e,!!a.multiple,t,!1)}}}function B0(e,t,a){if(Tb)return e(t,a);Tb=!0;try{var o=e(t);return o}finally{if(Tb=!1,(h2!==null||m2!==null)&&(Ul(),h2&&(t=h2,e=m2,m2=h2=null,U0(t),e)))for(t=0;t<e.length;t++)U0(e[t])}}function gu(e,t){var a=e.stateNode;if(a===null)return null;var o=a[ll]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Kc(){if(C4)return C4;var e,t=_b,a=t.length,o,r="value"in Sf?Sf.value:Sf.textContent,d=r.length;for(e=0;e<a&&t[e]===r[e];e++);var p=a-e;for(o=1;o<=p&&t[a-o]===r[d-o];o++);return C4=r.slice(e,1<o?1-o:void 0)}function fd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function Mm(){return!1}function ta(e){function t(a,o,r,d,p){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=d,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?vr:Mm,this.isPropagationStopped=Mm,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}function oo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ax[e])?!!t[e]:!1}function dd(){return oo}function wr(e,t){switch(e){case"keyup":return Lx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==v7;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Cm(e,t){switch(e){case"compositionend":return co(t);case"keypress":return t.which!==b7?null:(E7=!0,S7);case"textInput":return e=t.data,e===S7&&E7?null:e;default:return null}}function H0(e,t){if(g2)return e==="compositionend"||!Db&&wr(e,t)?(e=Kc(),C4=_b=Sf=null,g2=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return w7&&t.locale!=="ko"?null:t.data;default:return null}}function Dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rx[e.type]:t==="textarea"}function L0(e){if(!Oc)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function hd(e,t,a,o){h2?m2?m2.push(o):m2=[o]:h2=o,t=Xi(t,"onChange"),0<t.length&&(a=new D4("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function o3(e){Ot(e,0)}function Sa(e){var t=Jl(e);if(wm(t))return e}function Wo(e,t){if(e==="change")return t}function md(){Mp&&(Mp.detachEvent("onpropertychange",br),Cp=Mp=null)}function br(e){if(e.propertyName==="value"&&Sa(Cp)){var t=[];hd(t,Cp,e,Mi(e)),B0(o3,t)}}function rb(e,t,a){e==="focusin"?(md(),Mp=t,Cp=a,Mp.attachEvent("onpropertychange",br)):e==="focusout"&&md()}function Om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sa(Cp)}function zm(e,t){if(e==="click")return Sa(t)}function gd(e,t){if(e==="input"||e==="change")return Sa(t)}function G0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Sr(e,t){if(Rl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!Ll.call(t,r)||!Rl(e[r],t[r]))return!1}return!0}function c3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function s3(e,t){var a=c3(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=c3(a)}}function r3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?r3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function R0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=xi(e.document)}return t}function Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function f3(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zb||p2==null||p2!==xi(o)||(o=p2,"selectionStart"in o&&Nm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Dp&&Sr(Dp,o)||(Dp=o,o=Xi(Ob,"onSelect"),0<o.length&&(t=new D4("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=p2)))}function Fc(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function $c(e){if(Nb[e])return Nb[e];if(!y2[e])return e;var t=y2[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in A7)return Nb[e]=t[a];return e}function Ci(e,t){D7.set(e,t),_i(t,[e])}function d3(e){for(var t=z4,a=0;a<e.length;a++){var o=e[a];if(typeof o=="object"&&o!==null)if(Rn(o)&&o.length===2&&typeof o[0]=="string"){if(t!==z4&&t!==Gb)return Hb;t=Gb}else return Hb;else{if(typeof o=="function"||typeof o=="string"&&50<o.length||t!==z4&&t!==Lb)return Hb;t=Lb}}return t}function Um(e,t,a,o){for(var r in e)Ll.call(e,r)&&r[0]!=="_"&&pu(r,e[r],t,a,o)}function pu(e,t,a,o,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===ui){var d=xe(t.type)||"…",p=t.key;t=t.props;var v=Object.keys(t),T=v.length;if(p==null&&T===0){t="<"+d+" />";break}if(3>o||T===1&&v[0]==="children"&&p==null){t="<"+d+" … />";break}a.push([r+" ".repeat(o)+e,"<"+d]),p!==null&&pu("key",p,a,o+1,r),e=!1;for(var _ in t)_==="children"?t.children!=null&&(!Rn(t.children)||0<t.children.length)&&(e=!0):Ll.call(t,_)&&_[0]!=="_"&&pu(_,t[_],a,o+1,r);a.push(["",e?">…</"+d+">":"/>"]);return}if(d=Object.prototype.toString.call(t),d=d.slice(8,d.length-1),d==="Array"){if(_=d3(t),_===Lb||_===z4){t=JSON.stringify(t);break}else if(_===Gb){for(a.push([r+" ".repeat(o)+e,""]),e=0;e<t.length;e++)d=t[e],pu(d[0],d[1],a,o+1,r);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=a.length,pu(e,t.value,a,o,r),a.length>d){a=a[d],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(d=a.length,pu(e,t.reason,a,o,r),a.length>d)){a=a[d],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}d==="Object"&&(_=Object.getPrototypeOf(t))&&typeof _.constructor=="function"&&(d=_.constructor.name),a.push([r+" ".repeat(o)+e,d==="Object"?3>o?"":"…":d]),3>o&&Um(t,a,o+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===Qx?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+" ".repeat(o)+e,t])}function h3(e,t,a,o){var r=!0;for(p in e)p in t||(a.push([N4+" ".repeat(o)+p,"…"]),r=!1);for(var d in t)if(d in e){var p=e[d],v=t[d];if(p!==v){if(o===0&&d==="children")r=" ".repeat(o)+d,a.push([N4+r,"…"],[U4+r,"…"]);else{if(!(3<=o)){if(typeof p=="object"&&typeof v=="object"&&p!==null&&v!==null&&p.$$typeof===v.$$typeof)if(v.$$typeof===ui){if(p.type===v.type&&p.key===v.key){p=xe(v.type)||"…",r=" ".repeat(o)+d,p="<"+p+" … />",a.push([N4+r,p],[U4+r,p]),r=!1;continue}}else{var T=Object.prototype.toString.call(p),_=Object.prototype.toString.call(v);if(T===_&&(_==="[object Object]"||_==="[object Array]")){T=[N7+" ".repeat(o)+d,_==="[object Array]"?"Array":""],a.push(T),_=a.length,h3(p,v,a,o+1)?_===a.length&&(T[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof p=="function"&&typeof v=="function"&&p.name===v.name&&p.length===v.length&&(T=Function.prototype.toString.call(p),_=Function.prototype.toString.call(v),T===_)){p=v.name===""?"() => {}":v.name+"() {}",a.push([N7+" ".repeat(o)+d,p+" Referentially unequal function closure. Consider memoization."]);continue}}pu(d,p,a,o,N4),pu(d,v,a,o,U4)}r=!1}}else a.push([U4+" ".repeat(o)+d,"…"]),r=!1;return r}function Di(e){mt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function $l(e,t,a,o){un&&(Tf.start=t,Tf.end=a,Hs.color="warning",Hs.tooltipText=o,Hs.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Tf)):performance.measure(o,Tf))}function j0(e,t,a){$l(e,t,a,"Reconnect")}function q0(e,t,a,o,r){var d=ce(e);if(d!==null&&un){var p=e.alternate,v=e.actualDuration;if(p===null||p.child!==e.child)for(var T=e.child;T!==null;T=T.sibling)v-=T.actualDuration;o=.5>v?o?"tertiary-light":"primary-light":10>v?o?"tertiary":"primary":100>v?o?"tertiary-dark":"primary-dark":"error";var _=e.memoizedProps;v=e._debugTask,_!==null&&p!==null&&p.memoizedProps!==_?(T=[Zx],_=h3(p.memoizedProps,_,T,0),1<T.length&&(_&&!Ef&&!(p.lanes&r)&&100<e.actualDuration?(Ef=!0,T[0]=Jx,Hs.color="warning",Hs.tooltipText=U7):(Hs.color=o,Hs.tooltipText=d),Hs.properties=T,Tf.start=t,Tf.end=a,v!=null?v.run(performance.measure.bind(performance,""+d,Tf)):performance.measure(""+d,Tf))):v!=null?v.run(console.timeStamp.bind(console,d,t,a,ku,void 0,o)):console.timeStamp(d,t,a,ku,void 0,o)}}function Bm(e,t,a,o){if(un){var r=ce(e);if(r!==null){for(var d=null,p=[],v=0;v<o.length;v++){var T=o[v];d==null&&T.source!==null&&(d=T.source._debugTask),T=T.value,p.push(["Error",typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T)])}e.key!==null&&pu("key",e.key,p,0,""),e.memoizedProps!==null&&Um(e.memoizedProps,p,0,""),d==null&&(d=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:ku,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:p}}},d?d.run(performance.measure.bind(performance,""+r,e)):performance.measure(""+r,e)}}}function Oi(e,t,a,o,r){if(r!==null){if(un){var d=ce(e);if(d!==null){o=[];for(var p=0;p<r.length;p++){var v=r[p].value;o.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e.key!==null&&pu("key",e.key,o,0,""),e.memoizedProps!==null&&Um(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:ku,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+d,t)):performance.measure(""+d,t)}}}else d=ce(e),d!==null&&un&&(r=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,t,a,ku,void 0,r)):console.timeStamp(d,t,a,ku,void 0,r))}function fb(e,t,a,o){if(un&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,mt,rt,r)):console.timeStamp(a,e,t,mt,rt,r)}}function m3(e,t,a,o){!un||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,mt,rt,a)):console.timeStamp("Prewarm",e,t,mt,rt,a))}function g3(e,t,a,o){!un||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,mt,rt,a)):console.timeStamp("Suspended",e,t,mt,rt,a))}function db(e,t,a,o,r,d){if(un&&!(t<=e)){a=[];for(var p=0;p<o.length;p++){var v=o[p].value;a.push(["Recoverable Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:mt,trackGroup:rt,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},d?d.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Hm(e,t,a,o){!un||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,mt,rt,"error")):console.timeStamp("Errored",e,t,mt,rt,"error"))}function hb(e,t,a,o){!un||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,mt,rt,"secondary-light")):console.timeStamp(a,e,t,mt,rt,"secondary-light"))}function p3(e,t,a,o,r){if(un&&!(t<=e)){for(var d=[],p=0;p<a.length;p++){var v=a[p].value;d.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e={start:e,end:t,detail:{devtools:{color:"error",track:mt,trackGroup:rt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:d}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Lm(e,t,a){!un||t<=e||console.timeStamp("Animating",e,t,mt,rt,"secondary-dark")}function V0(){for(var e=v2,t=Rb=v2=0;t<e;){var a=Xu[t];Xu[t++]=null;var o=Xu[t];Xu[t++]=null;var r=Xu[t];Xu[t++]=null;var d=Xu[t];if(Xu[t++]=null,o!==null&&r!==null){var p=o.pending;p===null?r.next=r:(r.next=p.next,p.next=r),o.pending=r}d!==0&&Gm(a,r,d)}}function Er(e,t,a,o){Xu[v2++]=e,Xu[v2++]=t,Xu[v2++]=a,Xu[v2++]=o,Rb|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ic(e,t,a,o){return Er(e,t,a,o),pd(e)}function za(e,t){return Er(e,null,null,t),pd(e)}function Gm(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,d=e.return;d!==null;)d.childLanes|=a,o=d.alternate,o!==null&&(o.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&Op||(r=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,r&&t!==null&&(r=31-Ta(a),e=d.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),d):null}function pd(e){if(ay>sM)throw Rh=ay=0,ly=y6=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Rh>rM&&(Rh=0,ly=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&e.flags&4098&&ii(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&t.flags&4098&&ii(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function Po(e){if(Qu===null)return e;var t=Qu(e);return t===void 0?e:t.current}function Y0(e){if(Qu===null)return e;var t=Qu(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Po(e.render),e.render!==t)?(t={$$typeof:rf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Rm(e,t){if(Qu===null)return!1;var a=e.elementType;t=t.type;var o=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(o=!0);break;case 0:(typeof t=="function"||r===Ba)&&(o=!0);break;case 11:(r===rf||r===Ba)&&(o=!0);break;case 14:case 15:(r===ph||r===Ba)&&(o=!0);break;default:return!1}return!!(o&&(e=Qu(a),e!==void 0&&e===Qu(t)))}function Wc(e){Qu!==null&&typeof WeakSet=="function"&&(w2===null&&(w2=new WeakSet),w2.add(e))}function y3(e,t,a){do{var o=e,r=o.alternate,d=o.child,p=o.sibling,v=o.tag;o=o.type;var T=null;switch(v){case 0:case 15:case 1:T=o;break;case 11:T=o.render}if(Qu===null)throw Error("Expected resolveFamily to be set during hot reload.");var _=!1;if(o=!1,T!==null&&(T=Qu(T),T!==void 0&&(a.has(T)?o=!0:t.has(T)&&(v===1?o=!0:_=!0))),w2!==null&&(w2.has(e)||r!==null&&w2.has(r))&&(o=!0),o&&(e._debugNeedsRemount=!0),(o||_)&&(r=za(e,2),r!==null&&je(r,e,2)),d===null||o||y3(d,t,a),p===null)break;e=p}while(!0)}function mb(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,B7||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function jm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yu(e,t){var a=e.alternate;switch(a===null?(a=q(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=Po(e.type);break;case 1:a.type=Po(e.type);break;case 11:a.type=Y0(e.type)}return a}function qm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Pc(e,t,a,o,r,d){var p=0,v=e;if(typeof e=="function")jm(e)&&(p=1),v=Po(v);else if(typeof e=="string")p=ee(),p=d4(e,a,p)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ki:return t=q(31,a,t,r),t.elementType=Ki,t.lanes=d,t;case sf:return es(a.children,r,d,t);case al:p=8,r|=pl,r|=Oo;break;case gh:return e=a,o=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=q(12,e,t,o|Pe),t.elementType=gh,t.lanes=d,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Os:return t=q(13,a,t,r),t.elementType=Os,t.lanes=d,t;case ml:return t=q(19,a,t,r),t.elementType=ml,t.lanes=d,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ji:p=10;break e;case e2:p=9;break e;case rf:p=11,v=Y0(v);break e;case ph:p=14;break e;case Ba:p=16,v=null;break e}v="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":Rn(e)?a="array":e!==void 0&&e.$$typeof===ui?(a="<"+(xe(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(p=o?me(o):null)&&(v+=`
|
|
169
|
+
|
|
170
|
+
Check the render method of \``+p+"`."),p=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+v)),v=null}return t=q(p,a,t,r),t.elementType=e,t.type=v,t.lanes=d,t._debugOwner=o,t}function ec(e,t,a){return t=Pc(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function es(e,t,a,o){return e=q(7,e,o,t),e.lanes=a,e}function Tr(e,t,a){return e=q(6,e,null,t),e.lanes=a,e}function Vm(e){var t=q(18,null,null,Ge);return t.stateNode=e,t}function k0(e,t,a){return t=q(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xa(e,t){if(typeof e=="object"&&e!==null){var a=jb.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pn(t)},jb.set(e,t),t)}return{value:e,source:t,stack:Pn(t)}}function zi(e,t){tc(),b2[S2++]=zp,b2[S2++]=B4,B4=e,zp=t}function Ym(e,t,a){tc(),Zu[Ju++]=Gs,Zu[Ju++]=Rs,Zu[Ju++]=Th,Th=e;var o=Gs;e=Rs;var r=32-Ta(o)-1;o&=~(1<<r),a+=1;var d=32-Ta(t)+r;if(30<d){var p=r-r%5;d=(o&(1<<p)-1).toString(32),o>>=p,r-=p,Gs=1<<32-Ta(t)+r|a<<r|o,Rs=d+e}else Gs=1<<d|a<<r|o,Rs=e}function X0(e){tc(),e.return!==null&&(zi(e,1),Ym(e,1,0))}function Q0(e){for(;e===B4;)B4=b2[--S2],b2[S2]=null,zp=b2[--S2],b2[S2]=null;for(;e===Th;)Th=Zu[--Ju],Zu[Ju]=null,Rs=Zu[--Ju],Zu[Ju]=null,Gs=Zu[--Ju],Zu[Ju]=null}function v3(){return tc(),Th!==null?{id:Gs,overflow:Rs}:null}function w3(e,t){tc(),Zu[Ju++]=Gs,Zu[Ju++]=Rs,Zu[Ju++]=Th,Gs=t.id,Rs=t.overflow,Th=e}function tc(){ct||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ts(e,t){if(e.return===null){if($i===null)$i={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if($i.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");$i.distanceFromLeaf>t&&($i.distanceFromLeaf=t)}return $i}var a=ts(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function b3(){ct&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Na(e,t){zc||(e=ts(e,0),e.serverProps=null,t!==null&&(t=c4(t),e.serverTail.push(t)))}function Il(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=$i;throw o!==null&&($i=null,a=Em(o)),vd(Xa(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
171
|
+
|
|
172
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
173
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
174
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
175
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
176
|
+
- Invalid HTML tag nesting.
|
|
177
|
+
|
|
178
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
179
|
+
|
|
180
|
+
https://react.dev/link/hydration-mismatch`+a),e)),qb}function km(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[ln]=e,t[ll]=o,tl(a,o),a){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(a=0;a<iy.length;a++)Le(iy[a],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Yc("input",o),Le("invalid",t),ka(t,o),x0(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":a3(t,o);break;case"select":Yc("select",o),Le("invalid",t),M0(t,o);break;case"textarea":Yc("textarea",o),Le("invalid",t),kc(t,o),hr(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||Qg(t.textContent,a)?(o.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),o.onScroll!=null&&Le("scroll",t),o.onScrollEnd!=null&&Le("scrollend",t),o.onClick!=null&&(t.onclick=Fl),t=!0):t=!1,t||Il(e,!0)}function Xm(e){for(il=e.return;il;)switch(il.tag){case 5:case 31:case 13:Ku=!1;return;case 27:case 3:Ku=!0;return;default:il=il.return}}function ns(e){if(e!==il)return!1;if(!ct)return Xm(e),ct=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ef(e.type,e.memoizedProps)),a=!a),a&&on){for(a=on;a;){var o=ts(e,0),r=c4(a);o.serverTail.push(r),a=r.type==="Suspense"?af(a):Bl(a.nextSibling)}Il(e)}if(Xm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");on=af(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");on=af(e)}else t===27?(t=on,Ac(e.type)?(e=D6,D6=null,on=e):on=t):on=il?Bl(e.stateNode.nextSibling):null;return!0}function nc(){on=il=null,zc=ct=!1}function yd(){var e=_f;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),_f=null),e}function vd(e){_f===null?_f=[e]:_f.push(e)}function ac(){var e=$i;if(e!==null){$i=null;for(var t=Em(e);0<e.children.length;)e=e.children[0];fe(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
181
|
+
|
|
182
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
183
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
184
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
185
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
186
|
+
- Invalid HTML tag nesting.
|
|
187
|
+
|
|
188
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
189
|
+
|
|
190
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Ar(){E2=H4=null,T2=!1}function Wl(e,t,a){He(Vb,t._currentValue,e),t._currentValue=a,He(Yb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==L7&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=L7}function Ni(e,t){e._currentValue=Vb.current;var a=Yb.current;ke(Yb,t),e._currentRenderer=a,ke(Vb,t)}function Z0(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function so(e,t,a,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var d=r.dependencies;if(d!==null){var p=r.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=r;for(var T=0;T<t.length;T++)if(v.context===t[T]){d.lanes|=a,v=d.alternate,v!==null&&(v.lanes|=a),Z0(d.return,a,e),o||(p=null);break e}d=v.next}}else if(r.tag===18){if(p=r.return,p===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");p.lanes|=a,d=p.alternate,d!==null&&(d.lanes|=a),Z0(p,a,e),p=null}else p=r.child;if(p!==null)p.return=r;else for(p=r;p!==null;){if(p===e){p=null;break}if(r=p.sibling,r!==null){r.return=p.return,p=r;break}p=p.return}r=p}}function Ui(e,t,a,o){e=null;for(var r=t,d=!1;r!==null;){if(!d){if(r.flags&524288)d=!0;else if(r.flags&262144)break}if(r.tag===10){var p=r.alternate;if(p===null)throw Error("Should have a current fiber. This is a bug in React.");if(p=p.memoizedProps,p!==null){var v=r.type;Rl(r.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(r===Cc.current){if(p=r.alternate,p===null)throw Error("Should have a current fiber. This is a bug in React.");p.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ry):e=[ry])}r=r.return}e!==null&&so(t,e,a,o),t.flags|=262144}function _r(e){for(e=e.firstContext;e!==null;){if(!Rl(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function lc(e){H4=e,E2=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return T2&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Qm(H4,e)}function wd(e,t){return H4===null&&lc(e),Qm(e,t)}function Qm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},E2===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");E2=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else E2=E2.next=t;return a}function J0(){return{controller:new $x,data:new Map,refCount:0}}function as(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function bd(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&Ix(Wx,function(){e.controller.abort()})}function vu(e,t,a){e&127?0>Nc&&(Nc=ra(),Up=L4(t),kb=t,a!=null&&(Xb=ce(a)),(pt&(xa|Pi))!==Ra&&(Nn=!0,Mf=Np),e=tf(),t=Gu(),e!==A2||t!==Bp?A2=-1.1:t!==null&&(Mf=Np),xh=e,Bp=t):e&4194048&&0>Fu&&(Fu=ra(),Hp=L4(t),G7=t,a!=null&&(R7=ce(a)),0>Ys)&&(e=tf(),t=Gu(),(e!==Df||t!==Mh)&&(Df=-1.1),Cf=e,Mh=t)}function S3(e){if(0>Nc){Nc=ra(),Up=e._debugTask!=null?e._debugTask:null,(pt&(xa|Pi))!==Ra&&(Mf=Np);var t=tf(),a=Gu();t!==A2||a!==Bp?A2=-1.1:a!==null&&(Mf=Np),xh=t,Bp=a}0>Fu&&(Fu=ra(),Hp=e._debugTask!=null?e._debugTask:null,0>Ys)&&(e=tf(),t=Gu(),(e!==Df||t!==Mh)&&(Df=-1.1),Cf=e,Mh=t)}function wu(){var e=Ah;return Ah=0,e}function xr(e){var t=Ah;return Ah=e,t}function Qa(e){var t=Ah;return Ah+=e,t}function ls(){Ne=De=-1.1}function tn(){var e=De;return De=-1.1,e}function na(e){0<=e&&(De=e)}function Pl(){var e=bn;return bn=-0,e}function El(e){0<=e&&(bn=e)}function Tl(){var e=hn;return hn=null,e}function ei(){var e=Nn;return Nn=!1,e}function ro(e){jl=ra(),0>e.actualStartTime&&(e.actualStartTime=jl)}function K0(e){if(0<=jl){var t=ra()-jl;e.actualDuration+=t,e.selfBaseDuration=t,jl=-1}}function Sd(e){if(0<=jl){var t=ra()-jl;e.actualDuration+=t,jl=-1}}function Za(){if(0<=jl){var e=ra(),t=e-jl;jl=-1,Ah+=t,bn+=t,Ne=e}}function E3(e){hn===null&&(hn=[]),hn.push(e),qs===null&&(qs=[]),qs.push(e)}function yn(){jl=ra(),0>De&&(De=jl)}function is(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function fo(e,t){if(Gp===null){var a=Gp=[];Zb=0,Ch=Xg(),_2={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Zb++,t.then(Zm,Zm),t}function Zm(){if(--Zb===0&&(-1<Fu||(Ys=-1.1),Gp!==null)){_2!==null&&(_2.status="fulfilled");var e=Gp;Gp=null,Ch=0,_2=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function F0(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(o.status="rejected",o.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),o}function ho(){var e=Dh.current;return e!==null?e:Kt.pooledCache}function Mr(e,t){t===null?He(Dh,Dh.current,e):He(Dh,t.pool,e)}function Jm(){var e=ho();return e===null?null:{parent:sa._currentValue,pool:e}}function $0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Km(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Al(e,t,a){F.actQueue!==null&&(F.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Fl,Fl),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var r={name:typeof o=="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ed(e),e;default:if(typeof t.status=="string")t.then(Fl,Fl);else{if(e=Kt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(d){if(t.status==="pending"){var p=t;p.status="fulfilled",p.value=d}},function(d){if(t.status==="pending"){var p=t;p.status="rejected",p.reason=d}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ed(e),e}throw zh=t,Xp=!0,x2}}function _l(e){try{return aM(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(zh=t,Xp=!0,x2):t}}function us(){if(zh===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=zh;return zh=null,Xp=!1,e}function Ed(e){if(e===x2||e===X4)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Mn(e){var t=et;return e!=null&&(et=t===null?e:t.concat(e)),t}function cl(){var e=et;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function Ja(e,t,a){for(var o=Object.keys(e.props),r=0;r<o.length;r++){var d=o[r];if(d!=="children"&&d!=="key"){t===null&&(t=ec(e,a.mode,0),t._debugInfo=et,t.return=a),fe(t,function(p){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p)},d);break}}}function Bi(e){var t=Qp;return Qp+=1,M2===null&&(M2=$0()),Al(M2,e,t)}function sl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===v4?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
191
|
+
- Multiple copies of the "react" package is used.
|
|
192
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
193
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function ti(e,t){var a=cl();a!==null?a.run(Hi.bind(null,e,t)):Hi(e,t)}function Fm(e,t){var a=ce(e)||"Component";l9[a]||(l9[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
194
|
+
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
195
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function Cr(e,t){var a=cl();a!==null?a.run(Fm.bind(null,e,t)):Fm(e,t)}function I0(e,t){var a=ce(e)||"Component";i9[a]||(i9[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
196
|
+
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
197
|
+
<%s>%s</%s>`,a,t,a))}function Td(e,t){var a=cl();a!==null?a.run(I0.bind(null,e,t)):I0(e,t)}function aa(e){function t(C,O){if(e){var B=C.deletions;B===null?(C.deletions=[O],C.flags|=16):B.push(O)}}function a(C,O){if(!e)return null;for(;O!==null;)t(C,O),O=O.sibling;return null}function o(C){for(var O=new Map;C!==null;)C.key!==null?O.set(C.key,C):O.set(C.index,C),C=C.sibling;return O}function r(C,O){return C=yu(C,O),C.index=0,C.sibling=null,C}function d(C,O,B){return C.index=B,e?(B=C.alternate,B!==null?(B=B.index,B<O?(C.flags|=67108866,O):B):(C.flags|=67108866,O)):(C.flags|=1048576,O)}function p(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function v(C,O,B,W){return O===null||O.tag!==6?(O=Tr(B,C.mode,W),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=et,O):(O=r(O,B),O.return=C,O._debugInfo=et,O)}function T(C,O,B,W){var re=B.type;return re===sf?(O=H(C,O,B.props.children,W,B.key),Ja(B,O,C),O):O!==null&&(O.elementType===re||Rm(O,B)||typeof re=="object"&&re!==null&&re.$$typeof===Ba&&_l(re)===O.type)?(O=r(O,B.props),sl(O,B),O.return=C,O._debugOwner=B._owner,O._debugInfo=et,O):(O=ec(B,C.mode,W),sl(O,B),O.return=C,O._debugInfo=et,O)}function _(C,O,B,W){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=k0(B,C.mode,W),O.return=C,O._debugInfo=et,O):(O=r(O,B.children||[]),O.return=C,O._debugInfo=et,O)}function H(C,O,B,W,re){return O===null||O.tag!==7?(O=es(B,C.mode,W,re),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=et,O):(O=r(O,B),O.return=C,O._debugInfo=et,O)}function R(C,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Tr(""+O,C.mode,B),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=et,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case ui:return B=ec(O,C.mode,B),sl(B,O),B.return=C,C=Mn(O._debugInfo),B._debugInfo=et,et=C,B;case xc:return O=k0(O,C.mode,B),O.return=C,O._debugInfo=et,O;case Ba:var W=Mn(O._debugInfo);return O=_l(O),C=R(C,O,B),et=W,C}if(Rn(O)||Qe(O))return B=es(O,C.mode,B,null),B.return=C,B._debugOwner=C,B._debugTask=C._debugTask,C=Mn(O._debugInfo),B._debugInfo=et,et=C,B;if(typeof O.then=="function")return W=Mn(O._debugInfo),C=R(C,Bi(O),B),et=W,C;if(O.$$typeof===Ji)return R(C,wd(C,O),B);ti(C,O)}return typeof O=="function"&&Cr(C,O),typeof O=="symbol"&&Td(C,O),null}function D(C,O,B,W){var re=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return re!==null?null:v(C,O,""+B,W);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case ui:return B.key===re?(re=Mn(B._debugInfo),C=T(C,O,B,W),et=re,C):null;case xc:return B.key===re?_(C,O,B,W):null;case Ba:return re=Mn(B._debugInfo),B=_l(B),C=D(C,O,B,W),et=re,C}if(Rn(B)||Qe(B))return re!==null?null:(re=Mn(B._debugInfo),C=H(C,O,B,W,null),et=re,C);if(typeof B.then=="function")return re=Mn(B._debugInfo),C=D(C,O,Bi(B),W),et=re,C;if(B.$$typeof===Ji)return D(C,O,wd(C,B),W);ti(C,B)}return typeof B=="function"&&Cr(C,B),typeof B=="symbol"&&Td(C,B),null}function J(C,O,B,W,re){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return C=C.get(B)||null,v(O,C,""+W,re);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case ui:return B=C.get(W.key===null?B:W.key)||null,C=Mn(W._debugInfo),O=T(O,B,W,re),et=C,O;case xc:return C=C.get(W.key===null?B:W.key)||null,_(O,C,W,re);case Ba:var Ye=Mn(W._debugInfo);return W=_l(W),O=J(C,O,B,W,re),et=Ye,O}if(Rn(W)||Qe(W))return B=C.get(B)||null,C=Mn(W._debugInfo),O=H(O,B,W,re,null),et=C,O;if(typeof W.then=="function")return Ye=Mn(W._debugInfo),O=J(C,O,B,Bi(W),re),et=Ye,O;if(W.$$typeof===Ji)return J(C,O,B,wd(O,W),re);ti(O,W)}return typeof W=="function"&&Cr(O,W),typeof W=="symbol"&&Td(O,W),null}function se(C,O,B,W){if(typeof B!="object"||B===null)return W;switch(B.$$typeof){case ui:case xc:U(C,O,B);var re=B.key;if(typeof re!="string")break;if(W===null){W=new Set,W.add(re);break}if(!W.has(re)){W.add(re);break}fe(O,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",re)});break;case Ba:B=_l(B),se(C,O,B,W)}return W}function de(C,O,B,W){for(var re=null,Ye=null,Me=null,we=O,Ie=O=0,cn=null;we!==null&&Ie<B.length;Ie++){we.index>Ie?(cn=we,we=null):cn=we.sibling;var Fn=D(C,we,B[Ie],W);if(Fn===null){we===null&&(we=cn);break}re=se(C,Fn,B[Ie],re),e&&we&&Fn.alternate===null&&t(C,we),O=d(Fn,O,Ie),Me===null?Ye=Fn:Me.sibling=Fn,Me=Fn,we=cn}if(Ie===B.length)return a(C,we),ct&&zi(C,Ie),Ye;if(we===null){for(;Ie<B.length;Ie++)we=R(C,B[Ie],W),we!==null&&(re=se(C,we,B[Ie],re),O=d(we,O,Ie),Me===null?Ye=we:Me.sibling=we,Me=we);return ct&&zi(C,Ie),Ye}for(we=o(we);Ie<B.length;Ie++)cn=J(we,C,Ie,B[Ie],W),cn!==null&&(re=se(C,cn,B[Ie],re),e&&cn.alternate!==null&&we.delete(cn.key===null?Ie:cn.key),O=d(cn,O,Ie),Me===null?Ye=cn:Me.sibling=cn,Me=cn);return e&&we.forEach(function($s){return t(C,$s)}),ct&&zi(C,Ie),Ye}function Wt(C,O,B,W){if(B==null)throw Error("An iterable object provided no iterator.");for(var re=null,Ye=null,Me=O,we=O=0,Ie=null,cn=null,Fn=B.next();Me!==null&&!Fn.done;we++,Fn=B.next()){Me.index>we?(Ie=Me,Me=null):Ie=Me.sibling;var $s=D(C,Me,Fn.value,W);if($s===null){Me===null&&(Me=Ie);break}cn=se(C,$s,Fn.value,cn),e&&Me&&$s.alternate===null&&t(C,Me),O=d($s,O,we),Ye===null?re=$s:Ye.sibling=$s,Ye=$s,Me=Ie}if(Fn.done)return a(C,Me),ct&&zi(C,we),re;if(Me===null){for(;!Fn.done;we++,Fn=B.next())Me=R(C,Fn.value,W),Me!==null&&(cn=se(C,Me,Fn.value,cn),O=d(Me,O,we),Ye===null?re=Me:Ye.sibling=Me,Ye=Me);return ct&&zi(C,we),re}for(Me=o(Me);!Fn.done;we++,Fn=B.next())Ie=J(Me,C,we,Fn.value,W),Ie!==null&&(cn=se(C,Ie,Fn.value,cn),e&&Ie.alternate!==null&&Me.delete(Ie.key===null?we:Ie.key),O=d(Ie,O,we),Ye===null?re=Ie:Ye.sibling=Ie,Ye=Ie);return e&&Me.forEach(function(MM){return t(C,MM)}),ct&&zi(C,we),re}function ft(C,O,B,W){if(typeof B=="object"&&B!==null&&B.type===sf&&B.key===null&&(Ja(B,null,C),B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case ui:var re=Mn(B._debugInfo);e:{for(var Ye=B.key;O!==null;){if(O.key===Ye){if(Ye=B.type,Ye===sf){if(O.tag===7){a(C,O.sibling),W=r(O,B.props.children),W.return=C,W._debugOwner=B._owner,W._debugInfo=et,Ja(B,W,C),C=W;break e}}else if(O.elementType===Ye||Rm(O,B)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===Ba&&_l(Ye)===O.type){a(C,O.sibling),W=r(O,B.props),sl(W,B),W.return=C,W._debugOwner=B._owner,W._debugInfo=et,C=W;break e}a(C,O);break}else t(C,O);O=O.sibling}B.type===sf?(W=es(B.props.children,C.mode,W,B.key),W.return=C,W._debugOwner=C,W._debugTask=C._debugTask,W._debugInfo=et,Ja(B,W,C),C=W):(W=ec(B,C.mode,W),sl(W,B),W.return=C,W._debugInfo=et,C=W)}return C=p(C),et=re,C;case xc:e:{for(re=B,B=re.key;O!==null;){if(O.key===B)if(O.tag===4&&O.stateNode.containerInfo===re.containerInfo&&O.stateNode.implementation===re.implementation){a(C,O.sibling),W=r(O,re.children||[]),W.return=C,C=W;break e}else{a(C,O);break}else t(C,O);O=O.sibling}W=k0(re,C.mode,W),W.return=C,C=W}return p(C);case Ba:return re=Mn(B._debugInfo),B=_l(B),C=ft(C,O,B,W),et=re,C}if(Rn(B))return re=Mn(B._debugInfo),C=de(C,O,B,W),et=re,C;if(Qe(B)){if(re=Mn(B._debugInfo),Ye=Qe(B),typeof Ye!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Me=Ye.call(B);return Me===B?(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Me)!=="[object Generator]")&&(n9||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),n9=!0):B.entries!==Ye||$b||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$b=!0),C=Wt(C,O,Me,W),et=re,C}if(typeof B.then=="function")return re=Mn(B._debugInfo),C=ft(C,O,Bi(B),W),et=re,C;if(B.$$typeof===Ji)return ft(C,O,wd(C,B),W);ti(C,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(re=""+B,O!==null&&O.tag===6?(a(C,O.sibling),W=r(O,re),W.return=C,C=W):(a(C,O),W=Tr(re,C.mode,W),W.return=C,W._debugOwner=C,W._debugTask=C._debugTask,W._debugInfo=et,C=W),p(C)):(typeof B=="function"&&Cr(C,B),typeof B=="symbol"&&Td(C,B),a(C,O))}return function(C,O,B,W){var re=et;et=null;try{Qp=0;var Ye=ft(C,O,B,W);return M2=null,Ye}catch(cn){if(cn===x2||cn===X4)throw cn;var Me=q(29,cn,null,C.mode);Me.lanes=W,Me.return=C;var we=Me._debugInfo=et;if(Me._debugOwner=C._debugOwner,Me._debugTask=C._debugTask,we!=null){for(var Ie=we.length-1;0<=Ie;Ie--)if(typeof we[Ie].stack=="string"){Me._debugOwner=we[Ie],Me._debugTask=we[Ie].debugTask;break}}return Me}finally{et=re}}}function Xt(e,t){var a=Rn(e);return e=!a&&typeof Qe(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ut(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:o9,payload:null,callback:null,next:null}}function Su(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Wb===o&&!r9){var r=ce(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
198
|
+
|
|
199
|
+
Please update the following component: %s`,r),r9=!0}return(pt&xa)!==Ra?(r=o.pending,r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=pd(e),Gm(e,null,a),t):(Er(e,o,t,a),pd(e))}function ni(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,wa(e,a)}}function Ad(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?r=d=p:d=d.next=p,a=a.next}while(a!==null);d===null?r=d=t:d=d.next=t}else r=d=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Dr(){if(Pb){var e=_2;if(e!==null)throw e}}function Eu(e,t,a,o){Pb=!1;var r=e.updateQueue;Of=!1,Wb=r.shared;var d=r.firstBaseUpdate,p=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var T=v,_=T.next;T.next=null,p===null?d=_:p.next=_,p=T;var H=e.alternate;H!==null&&(H=H.updateQueue,v=H.lastBaseUpdate,v!==p&&(v===null?H.firstBaseUpdate=_:v.next=_,H.lastBaseUpdate=T))}if(d!==null){var R=r.baseState;p=0,H=_=T=null,v=d;do{var D=v.lane&-536870913,J=D!==v.lane;if(J?(tt&D)===D:(o&D)===D){D!==0&&D===Ch&&(Pb=!0),H!==null&&(H=H.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{D=e;var se=v,de=t,Wt=a;switch(se.tag){case c9:if(se=se.payload,typeof se=="function"){T2=!0;var ft=se.call(Wt,R,de);if(D.mode&pl){ht(!0);try{se.call(Wt,R,de)}finally{ht(!1)}}T2=!1,R=ft;break e}R=se;break e;case Ib:D.flags=D.flags&-65537|128;case o9:if(ft=se.payload,typeof ft=="function"){if(T2=!0,se=ft.call(Wt,R,de),D.mode&pl){ht(!0);try{ft.call(Wt,R,de)}finally{ht(!1)}}T2=!1}else se=ft;if(se==null)break e;R=We({},R,se);break e;case s9:Of=!0}}D=v.callback,D!==null&&(e.flags|=64,J&&(e.flags|=8192),J=r.callbacks,J===null?r.callbacks=[D]:J.push(D))}else J={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},H===null?(_=H=J,T=R):H=H.next=J,p|=D;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;J=v,v=J.next,J.next=null,r.lastBaseUpdate=J,r.shared.pending=null}}while(!0);H===null&&(T=R),r.baseState=T,r.firstBaseUpdate=_,r.lastBaseUpdate=H,d===null&&(r.shared.lanes=0),Uf|=p,e.lanes=p,e.memoizedState=R}Wb=null}function ic(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function $m(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)ic(a[e],t)}function Or(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ic(a[e],t)}function W0(e,t){var a=Bc;He(Z4,a,e),He(C2,t,e),Bc=a|t.baseLanes}function mo(e){He(Z4,Bc,e),He(C2,C2.current,e)}function Li(e){Bc=Z4.current,ke(C2,e),ke(Z4,e)}function Ka(e){var t=e.alternate;He(Kn,Kn.current&D2,e),He(Ii,e,e),$u===null&&(t===null||C2.current!==null||t.memoizedState!==null)&&($u=e)}function Gi(e){He(Kn,Kn.current,e),He(Ii,e,e),$u===null&&($u=e)}function P0(e){e.tag===22?(He(Kn,Kn.current,e),He(Ii,e,e),$u===null&&($u=e)):Tu(e)}function Tu(e){He(Kn,Kn.current,e),He(Ii,Ii.current,e)}function la(e){ke(Ii,e),$u===e&&($u=null),ke(Kn,e)}function os(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||uh(a)||Jg(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qe(){var e=K;Wu===null?Wu=[e]:Wu.push(e)}function le(){var e=K;if(Wu!==null&&(Qs++,Wu[Qs]!==e)){var t=ce(Ve);if(!f9.has(t)&&(f9.add(t),Wu!==null)){for(var a="",o=0;o<=Qs;o++){var r=Wu[o],d=o===Qs?e:r;for(r=o+1+". "+r;30>r.length;)r+=" ";r+=d+`
|
|
200
|
+
`,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
201
|
+
|
|
202
|
+
Previous render Next render
|
|
203
|
+
------------------------------------------------------
|
|
204
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
205
|
+
`,t,a)}}}function go(e){e==null||Rn(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K,typeof e)}function _d(){var e=ce(Ve);h9.has(e)||(h9.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function vn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
206
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
207
|
+
2. You might be breaking the Rules of Hooks
|
|
208
|
+
3. You might have more than one copy of React in the same app
|
|
209
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Im(e,t){if(Kp)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",K),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
210
|
+
|
|
211
|
+
Previous: %s
|
|
212
|
+
Incoming: %s`,K,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Rl(e[a],t[a]))return!1;return!0}function Wm(e,t,a,o,r,d){ks=d,Ve=t,Wu=e!==null?e._debugHookTypes:null,Qs=-1,Kp=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(d=ce(Ve),e6.has(d)||(e6.add(d),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",d===null?"An unknown Component":"<"+d+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e!==null&&e.memoizedState!==null?n6:Wu!==null?m9:t6,Uh=d=(t.mode&pl)!==Ge;var p=Jb(a,o,r);if(Uh=!1,z2&&(p=xd(t,a,o,r)),d){ht(!0);try{p=xd(t,a,o,r)}finally{ht(!1)}}return Cn(e,t),p}function Cn(e,t){t._debugHookTypes=Wu,t.dependencies===null?Xs!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Xs}):t.dependencies._debugThenableState=Xs,F.H=Fp;var a=Jt!==null&&Jt.next!==null;if(ks=0,Wu=K=fa=Jt=Ve=null,Qs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),K4=!1,Jp=0,Xs=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||da||(e=e.dependencies,e!==null&&_r(e)&&(da=!0)),Xp?(Xp=!1,e=!0):e=!1,e&&(t=ce(t)||"Unknown",d9.has(t)||e6.has(t)||(d9.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function xd(e,t,a,o){Ve=e;var r=0;do{if(z2&&(Xs=null),Jp=0,z2=!1,r>=iM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Kp=!1,fa=Jt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Qs=-1,F.H=g9,d=Jb(t,a,o)}while(z2);return d}function Md(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?Od(t):t,e=e.useState()[0],(Jt!==null?Jt.memoizedState:null)!==e&&(Ve.flags|=1024),t}function cs(){var e=F4!==0;return F4=0,e}function Cd(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Oo)!==Ge?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function uc(e){if(K4){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}K4=!1}ks=0,Wu=fa=Jt=Ve=null,Qs=-1,K=null,z2=!1,Jp=F4=0,Xs=null}function Ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fa===null?Ve.memoizedState=fa=e:fa=fa.next=e,fa}function Ct(){if(Jt===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Jt.next;var t=fa===null?Ve.memoizedState:fa.next;if(t!==null)fa=t,Jt=e;else{if(e===null)throw Ve.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Jt=e,e={memoizedState:Jt.memoizedState,baseState:Jt.baseState,baseQueue:Jt.baseQueue,queue:Jt.queue,next:null},fa===null?Ve.memoizedState=fa=e:fa=fa.next=e}return fa}function Dd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Od(e){var t=Jp;return Jp+=1,Xs===null&&(Xs=$0()),e=Al(Xs,e,t),t=Ve,(fa===null?t.memoizedState:fa.next)===null&&(t=t.alternate,F.H=t!==null&&t.memoizedState!==null?n6:t6),e}function po(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Od(e);if(e.$$typeof===Ji)return Tt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function xl(e){var t=null,a=Ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Dd(),Ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Kp)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=bb;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Ml(e,t){return typeof t=="function"?t(e):t}function zr(e,t,a){var o=Ln();if(a!==void 0){var r=a(t);if(Uh){ht(!0);try{a(t)}finally{ht(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=gb.bind(null,Ve,e),[o.memoizedState,e]}function ss(e){var t=Ct();return oc(t,Jt,e)}function oc(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var r=e.baseQueue,d=o.pending;if(d!==null){if(r!==null){var p=r.next;r.next=d.next,d.next=p}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=d,o.pending=null}if(d=e.baseState,r===null)e.memoizedState=d;else{t=r.next;var v=p=null,T=null,_=t,H=!1;do{var R=_.lane&-536870913;if(R!==_.lane?(tt&R)===R:(ks&R)===R){var D=_.revertLane;if(D===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),R===Ch&&(H=!0);else if((ks&D)===D){_=_.next,D===Ch&&(H=!0);continue}else R={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},T===null?(v=T=R,p=d):T=T.next=R,Ve.lanes|=D,Uf|=D;R=_.action,Uh&&a(d,R),d=_.hasEagerState?_.eagerState:a(d,R)}else D={lane:R,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},T===null?(v=T=D,p=d):T=T.next=D,Ve.lanes|=R,Uf|=R;_=_.next}while(_!==null&&_!==t);if(T===null?p=d:T.next=v,!Rl(d,e.memoizedState)&&(da=!0,H&&(a=_2,a!==null)))throw a;e.memoizedState=d,e.baseState=p,e.baseQueue=T,o.lastRenderedState=d}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function rs(e){var t=Ct(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var o=a.dispatch,r=a.pending,d=t.memoizedState;if(r!==null){a.pending=null;var p=r=r.next;do d=e(d,p.action),p=p.next;while(p!==r);Rl(d,t.memoizedState)||(da=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,o]}function Nr(e,t,a){var o=Ve,r=Ln();if(ct){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=a();O2||d===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),O2=!0)}else{if(d=t(),O2||(a=t(),Rl(d,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),O2=!0)),Kt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");tt&127||Pm(o,t,d)}return r.memoizedState=d,a={value:d,getSnapshot:t},r.queue=a,hs(cc.bind(null,o,a,e),[e]),o.flags|=2048,Au(Iu|Vl,{destroy:void 0},eg.bind(null,o,a,d,t),null),d}function fs(e,t,a){var o=Ve,r=Ct(),d=ct;if(d){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!O2){var p=t();Rl(a,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),O2=!0)}(p=!Rl((Jt||r).memoizedState,a))&&(r.memoizedState=a,da=!0),r=r.queue;var v=cc.bind(null,o,r,e);if(Xn(2048,Vl,v,[e]),r.getSnapshot!==t||p||fa!==null&&fa.memoizedState.tag&Iu){if(o.flags|=2048,Au(Iu|Vl,{destroy:void 0},eg.bind(null,o,r,a,t),null),Kt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||ks&127||Pm(o,t,a)}return a}function Pm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ve.updateQueue,t===null?(t=Dd(),Ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function eg(e,t,a,o){t.value=a,t.getSnapshot=o,sc(t)&&tg(e)}function cc(e,t,a){return a(function(){sc(t)&&(vu(2,"updateSyncExternalStore()",e),tg(e))})}function sc(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rl(e,a)}catch{return!0}}function tg(e){var t=za(e,2);t!==null&&je(t,e,2)}function e1(e){var t=Ln();if(typeof e=="function"){var a=e;if(e=a(),Uh){ht(!0);try{a()}finally{ht(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:e},t}function rc(e){e=e1(e);var t=e.queue,a=u1.bind(null,Ve,t);return t.dispatch=a,[e.memoizedState,a]}function ds(e){var t=Ln();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Gd.bind(null,Ve,!0,a),a.dispatch=t,[e,t]}function zd(e,t){var a=Ct();return Ur(a,Jt,e,t)}function Ur(e,t,a,o){return e.baseState=a,oc(e,Jt,typeof o=="function"?o:Ml)}function Nd(e,t){var a=Ct();return Jt!==null?Ur(a,Jt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function T3(e,t,a,o,r){if(ia(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var d={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){d.listeners.push(p)}};F.T!==null?a(!0):d.isTransition=!1,o(d),a=t.pending,a===null?(d.next=t.pending=d,fc(t,d)):(d.next=a.next,t.pending=a.next=d)}}function fc(e,t){var a=t.action,o=t.payload,r=e.state;if(t.isTransition){var d=F.T,p={};p._updatedFibers=new Set,F.T=p;try{var v=a(r,o),T=F.S;T!==null&&T(p,v),ng(e,t,v)}catch(_){Ud(e,t,_)}finally{d!==null&&p.types!==null&&(d.types!==null&&d.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=p.types),F.T=d,d===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{p=a(r,o),ng(e,t,p)}catch(_){Ud(e,t,_)}}function ng(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(F.asyncTransitions++,a.then(ms,ms),a.then(function(o){yo(e,t,o)},function(o){return Ud(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):yo(e,t,a)}function yo(e,t,a){t.status="fulfilled",t.value=a,t1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fc(e,a)))}function Ud(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,t1(t),t=t.next;while(t!==o)}e.action=null}function t1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vo(e,t){return t}function Cl(e,t){if(ct){var a=Kt.formState;if(a!==null){e:{var o=Ve;if(ct){if(on){t:{for(var r=on,d=Ku;r.nodeType!==8;){if(!d){r=null;break t}if(r=Bl(r.nextSibling),r===null){r=null;break t}}d=r.data,r=d===_6||d===eE?r:null}if(r){on=Bl(r.nextSibling),o=r.data===_6;break e}}Il(o)}o=!1}o&&(t=a[0])}}return a=Ln(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:t},a.queue=o,a=u1.bind(null,Ve,o),o.dispatch=a,o=e1(!1),d=Gd.bind(null,Ve,!1,o.queue),o=Ln(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=T3.bind(null,Ve,r,d,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function dc(e){var t=Ct();return n1(t,Jt,e)}function n1(e,t,a){if(t=oc(e,t,vo)[0],e=ss(Ml)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Od(t)}catch(p){throw p===x2?X4:p}else o=t;t=Ct();var r=t.queue,d=r.dispatch;return a!==t.memoizedState&&(Ve.flags|=2048,Au(Iu|Vl,{destroy:void 0},ag.bind(null,r,a),null)),[o,d,e]}function ag(e,t){e.action=t}function hc(e){var t=Ct(),a=Jt;if(a!==null)return n1(t,a,e);Ct(),t=t.memoizedState,a=Ct();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Au(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=Dd(),Ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function a1(e){var t=Ln();return e={current:e},t.memoizedState=e}function mc(e,t,a,o){var r=Ln();Ve.flags|=e,r.memoizedState=Au(Iu|t,{destroy:void 0},a,o===void 0?null:o)}function Xn(e,t,a,o){var r=Ct();o=o===void 0?null:o;var d=r.memoizedState.inst;Jt!==null&&o!==null&&Im(o,Jt.memoizedState.deps)?r.memoizedState=Au(t,d,a,o):(Ve.flags|=e,r.memoizedState=Au(Iu|t,d,a,o))}function hs(e,t){(Ve.mode&Oo)!==Ge?mc(276826112,Vl,e,t):mc(8390656,Vl,e,t)}function A3(e){Ve.flags|=4;var t=Ve.updateQueue;if(t===null)t=Dd(),Ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Bd(e){var t=Ln(),a={impl:e};return t.memoizedState=a,function(){if((pt&xa)!==Ra)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Br(e){var t=Ct().memoizedState;return A3({ref:t,nextImpl:e}),function(){if((pt&xa)!==Ra)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Fa(e,t){var a=4194308;return(Ve.mode&Oo)!==Ge&&(a|=134217728),mc(a,Wi,e,t)}function Dl(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function _u(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var o=4194308;(Ve.mode&Oo)!==Ge&&(o|=134217728),mc(o,Wi,Dl.bind(null,t,e),a)}function Hr(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Xn(4,Wi,Dl.bind(null,t,e),a)}function l1(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e}function Ri(e,t){var a=Ct();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Im(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function $a(e,t){var a=Ln();t=t===void 0?null:t;var o=e();if(Uh){ht(!0);try{e()}finally{ht(!1)}}return a.memoizedState=[o,t],o}function nn(e,t){var a=Ct();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Im(t,o[1]))return o[0];if(o=e(),Uh){ht(!0);try{e()}finally{ht(!1)}}return a.memoizedState=[o,t],o}function Lr(e,t){var a=Ln();return Dt(a,e,t)}function xu(e,t){var a=Ct();return Dn(a,Jt.memoizedState,e,t)}function Ke(e,t){var a=Ct();return Jt===null?Dt(a,e,t):Dn(a,Jt.memoizedState,e,t)}function Dt(e,t,a){return a===void 0||ks&1073741824&&!(tt&261930)?e.memoizedState=t:(e.memoizedState=a,e=Xr(),Ve.lanes|=e,Uf|=e,a)}function Dn(e,t,a,o){return Rl(a,t)?a:C2.current!==null?(e=Dt(e,a,o),Rl(e,t)||(da=!0),e):!(ks&42)||ks&1073741824&&!(tt&261930)?(da=!0,e.memoizedState=a):(e=Xr(),Ve.lanes|=e,Uf|=e,t)}function ms(){F.asyncTransitions--}function gs(e,t,a,o,r){var d=_t.p;_t.p=d!==0&&d<Aa?d:Aa;var p=F.T,v={};v._updatedFibers=new Set,F.T=v,Gd(e,!1,t,a);try{var T=r(),_=F.S;if(_!==null&&_(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){F.asyncTransitions++,T.then(ms,ms);var H=F0(T,o);ps(e,t,H,Ua(e))}else ps(e,t,o,Ua(e))}catch(R){ps(e,t,{then:function(){},status:"rejected",reason:R},Ua(e))}finally{_t.p=d,p!==null&&v.types!==null&&(p.types!==null&&p.types!==v.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),p.types=v.types),F.T=p,p===null&&v._updatedFibers&&(e=v._updatedFibers.size,v._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function wo(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Hd(e).queue;S3(e),gs(e,r,t,Xh,a===null?G:function(){return Gr(e),a(o)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xh,baseState:Xh,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:Xh},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gr(e){F.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),ps(e,t.next.queue,{},Ua(e))}function gc(){var e=e1(!1);return e=gs.bind(null,Ve,e.queue,!0,!1),Ln().memoizedState=e,[!1,e]}function _3(){var e=ss(Ml)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Od(e),t]}function rn(){var e=rs(Ml)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Od(e),t]}function bo(){return Tt(ry)}function Ld(){var e=Ln(),t=Kt.identifierPrefix;if(ct){var a=Rs,o=Gs;a=(o&~(1<<32-Ta(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=F4++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=lM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function i1(){return Ln().memoizedState=x3.bind(null,Ve)}function x3(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ua(a),r=kn(o),d=Su(a,r,o);d!==null&&(vu(o,"refresh()",e),je(d,a,o),ni(d,a,o)),e=J0(),t!=null&&d!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function gb(e,t,a){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ua(e);var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};ia(e)?wn(t,r):(r=Ic(e,t,r,o),r!==null&&(vu(o,"dispatch()",e),je(r,e,o),Rd(r,t,o)))}function u1(e,t,a){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ua(e),ps(e,t,a,o)&&vu(o,"setState()",e)}function ps(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ia(e))wn(t,r);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null)){var p=F.H;F.H=No;try{var v=t.lastRenderedState,T=d(v,a);if(r.hasEagerState=!0,r.eagerState=T,Rl(T,v))return Er(e,t,r,0),Kt===null&&V0(),!1}catch{}finally{F.H=p}}if(a=Ic(e,t,r,o),a!==null)return je(a,e,o),Rd(a,t,o),!0}return!1}function Gd(e,t,a,o){if(F.T===null&&Ch===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:Xg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ia(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ic(e,a,o,2),t!==null&&(vu(2,"setOptimistic()",e),je(t,e,2))}function ia(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function wn(e,t){z2=K4=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rd(e,t,a){if(a&4194048){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,wa(e,a)}}function ys(e){if(e!==null&&typeof e!="function"){var t=String(e);x9.has(t)||(x9.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Rr(e,t,a,o){var r=e.memoizedState,d=a(o,r);if(e.mode&pl){ht(!0);try{d=a(o,r)}finally{ht(!1)}}d===void 0&&(t=xe(t)||"Component",E9.has(t)||(E9.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=d==null?r:We({},r,d),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function o1(e,t,a,o,r,d,p){var v=e.stateNode;if(typeof v.shouldComponentUpdate=="function"){if(a=v.shouldComponentUpdate(o,d,p),e.mode&pl){ht(!0);try{a=v.shouldComponentUpdate(o,d,p)}finally{ht(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xe(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Sr(a,o)||!Sr(r,d):!0}function Mu(e,t,a,o){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==r&&(e=ce(e)||"Component",y9.has(e)||(y9.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),a6.enqueueReplaceState(t,t.state,null))}function Cu(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=We({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function c1(e){Bb(e),console.warn(`%s
|
|
213
|
+
|
|
214
|
+
%s
|
|
215
|
+
`,N2?"An error occurred in the <"+N2+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
216
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function s1(e){var t=N2?"The above error occurred in the <"+N2+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((l6||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var o=e.environmentName;e=[`%o
|
|
217
|
+
|
|
218
|
+
%s
|
|
219
|
+
|
|
220
|
+
%s
|
|
221
|
+
`,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,cE+" "+e[0],sE,bv+o+bv,rE):e.splice(0,0,cE,sE,bv+o+bv,rE),e.unshift(console),o=_M.apply(console.error,e),o()}else console.error(`%o
|
|
222
|
+
|
|
223
|
+
%s
|
|
224
|
+
|
|
225
|
+
%s
|
|
226
|
+
`,e,t,a)}function lg(e){Bb(e)}function jd(e,t){try{N2=t.source?ce(t.source):null,l6=null;var a=t.value;if(F.actQueue!==null)F.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function ig(e,t,a){try{N2=a.source?ce(a.source):null,l6=ce(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function r1(e,t,a){return a=kn(a),a.tag=Ib,a.payload={element:null},a.callback=function(){fe(t.source,jd,e,t)},a}function f1(e){return e=kn(e),e.tag=Ib,e}function d1(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var d=o.value;e.payload=function(){return r(d)},e.callback=function(){Wc(a),fe(o.source,ig,t,a,o)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Wc(a),fe(o.source,ig,t,a,o),typeof r!="function"&&(Hf===null?Hf=new Set([this]):Hf.add(this)),eM(this,o),typeof r=="function"||!(a.lanes&2)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ce(a)||"Unknown")})}function ug(e,t,a,o,r){if(a.flags|=32768,Vu&&Fr(e,r),o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&Ui(t,a,r,!0),ct&&(zc=!0),a=Ii.current,a!==null){switch(a.tag){case 31:case 13:return $u===null?Zr():a.alternate===null&&Sn===Js&&(Sn=W4),a.flags&=-257,a.flags|=65536,a.lanes=r,o===Q4?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),N1(e,o,r)),!1;case 22:return a.flags|=65536,o===Q4?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),N1(e,o,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return N1(e,o,r),Zr(),!1}if(ct)return zc=!0,t=Ii.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==qb&&vd(Xa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==qb&&vd(Xa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=Xa(o,a),r=r1(e.stateNode,o,r),Ad(e,r),Sn!==zf&&(Sn=Bh)),!1;var d=Xa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(ty===null?ty=[d]:ty.push(d),Sn!==zf&&(Sn=Bh),t===null)return!0;o=Xa(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=r1(a.stateNode,o,e),Ad(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Hf===null||!Hf.has(d))))return a.flags|=65536,r&=-r,a.lanes|=r,r=f1(r),d1(r,e,a,o),Ad(a,r),!1}a=a.return}while(a!==null);return!1}function ua(e,t,a,o){t.child=e===null?u9(t,null,a,o):Nh(t,e.child,a,o)}function M3(e,t,a,o,r){a=a.render;var d=t.ref;if("ref"in o){var p={};for(var v in o)v!=="ref"&&(p[v]=o[v])}else p=o;return lc(t),o=Wm(e,t,a,p,d,r),v=cs(),e!==null&&!da?(Cd(e,t,r),ji(e,t,r)):(ct&&v&&X0(t),t.flags|=1,ua(e,t,o,r),t.child)}function og(e,t,a,o,r){if(e===null){var d=a.type;return typeof d=="function"&&!jm(d)&&d.defaultProps===void 0&&a.compare===null?(a=Po(d),t.tag=15,t.type=a,jr(t,d),cg(e,t,a,o,r)):(e=Pc(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!y1(e,r)){var p=d.memoizedProps;if(a=a.compare,a=a!==null?a:Sr,a(p,o)&&e.ref===t.ref)return ji(e,t,r)}return t.flags|=1,e=yu(d,o),e.ref=t.ref,e.return=t,t.child=e}function cg(e,t,a,o,r){if(e!==null){var d=e.memoizedProps;if(Sr(d,o)&&e.ref===t.ref&&t.type===e.type)if(da=!1,t.pendingProps=o=d,y1(e,r))e.flags&131072&&(da=!0);else return t.lanes=e.lanes,ji(e,t,r)}return dg(e,t,a,o,r)}function sg(e,t,a,o){var r=o.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Op,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if(t.flags&128){if(d=d!==null?d.baseLanes|a:a,e!==null){for(o=t.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~d}else o=0,t.child=null;return rg(e,t,d,a,o)}if(a&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mr(t,d!==null?d.cachePool:null),d!==null?W0(t,d):mo(t),P0(t);else return o=t.lanes=536870912,rg(e,t,d!==null?d.baseLanes|a:a,a,o)}else d!==null?(Mr(t,d.cachePool),W0(t,d),Tu(t),t.memoizedState=null):(e!==null&&Mr(t,null),mo(t),Tu(t));return ua(e,t,r,a),t.child}function vs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Op,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rg(e,t,a,o,r){var d=ho();return d=d===null?null:{parent:sa._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&Mr(t,null),mo(t),P0(t),e!==null&&Ui(e,t,o,!0),t.childLanes=r,null}function qd(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
227
|
+
- <Activity %s>
|
|
228
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Yd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fg(e,t,a){return Nh(t,e.child,null,a),e=qd(t,t.pendingProps),e.flags|=2,la(t),t.memoizedState=null,e}function C3(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ct){if(o.mode==="hidden")return e=qd(t,o),t.lanes=536870912,vs(null,e);if(Gi(t),(e=on)?(a=zt(e,Ku),a=a!==null&&a.data===qh?a:null,a!==null&&(o={dehydrated:a,treeContext:v3(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=Vm(a),o.return=t,t.child=o,il=t,on=null)):a=null,a===null)throw Na(t,e),Il(t);return t.lanes=536870912,null}return qd(t,o)}var d=e.memoizedState;if(d!==null){var p=d.dehydrated;if(Gi(t),r)if(t.flags&256)t.flags&=-257,t=fg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(b3(),a&536870912&&Qr(t),da||Ui(e,t,a,!1),r=(a&e.childLanes)!==0,da||r){if(o=Kt,o!==null&&(p=Ko(o,a),p!==0&&p!==d.retryLane))throw d.retryLane=p,za(e,p),je(o,e,p),i6;Zr(),t=fg(e,t,a)}else e=d.treeContext,on=Bl(p.nextSibling),il=t,ct=!0,_f=null,zc=!1,$i=null,Ku=!1,e!==null&&w3(t,e),t=qd(t,o),t.flags|=4096;return t}return d=e.child,o={mode:o.mode,children:o.children},a&536870912&&a&e.lanes&&Qr(t),e=yu(d,o),e.ref=t.ref,t.child=e,e.return=t,e}function Vd(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function dg(e,t,a,o,r){if(a.prototype&&typeof a.prototype.render=="function"){var d=xe(a)||"Unknown";M9[d]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",d,d),M9[d]=!0)}return t.mode&pl&&zo.recordLegacyContextWarning(t,null),e===null&&(jr(t,t.type),a.contextTypes&&(d=xe(a)||"Unknown",D9[d]||(D9[d]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",d)))),lc(t),a=Wm(e,t,a,o,void 0,r),o=cs(),e!==null&&!da?(Cd(e,t,r),ji(e,t,r)):(ct&&o&&X0(t),t.flags|=1,ua(e,t,a,r),t.child)}function hg(e,t,a,o,r,d){return lc(t),Qs=-1,Kp=e!==null&&e.type!==t.type,t.updateQueue=null,a=xd(t,o,a,r),Cn(e,t),o=cs(),e!==null&&!da?(Cd(e,t,d),ji(e,t,d)):(ct&&o&&X0(t),t.flags|=1,ua(e,t,a,d),t.child)}function ws(e,t,a,o,r){switch(E(t)){case!1:var d=t.stateNode,p=new t.type(t.memoizedProps,d.context).state;d.updater.enqueueSetState(d,p,null);break;case!0:t.flags|=128,t.flags|=65536,d=Error("Simulated error coming from DevTools");var v=r&-r;if(t.lanes|=v,p=Kt,p===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");v=f1(v),d1(v,p,t,Xa(d,t)),Ad(t,v)}if(lc(t),t.stateNode===null){if(p=Af,d=a.contextType,"contextType"in a&&d!==null&&(d===void 0||d.$$typeof!==Ji)&&!_9.has(a)&&(_9.add(a),v=d===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof d!="object"?" However, it is set to a "+typeof d+".":d.$$typeof===e2?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",xe(a)||"Component",v)),typeof d=="object"&&d!==null&&(p=Tt(d)),d=new a(o,p),t.mode&pl){ht(!0);try{d=new a(o,p)}finally{ht(!1)}}if(p=t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=a6,t.stateNode=d,d._reactInternals=t,d._reactInternalInstance=p9,typeof a.getDerivedStateFromProps=="function"&&p===null&&(p=xe(a)||"Component",v9.has(p)||(v9.add(p),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",p,d.state===null?"null":"undefined",p))),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var T=v=p=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?p="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(p="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?v="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(v="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?T="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(T="UNSAFE_componentWillUpdate"),p!==null||v!==null||T!==null){d=xe(a)||"Component";var _=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";b9.has(d)||(b9.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
229
|
+
|
|
230
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
231
|
+
|
|
232
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
233
|
+
https://react.dev/link/unsafe-component-lifecycles`,d,_,p!==null?`
|
|
234
|
+
`+p:"",v!==null?`
|
|
235
|
+
`+v:"",T!==null?`
|
|
236
|
+
`+T:""))}}d=t.stateNode,p=xe(a)||"Component",d.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",p):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",p)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),a.childContextTypes&&!A9.has(a)&&(A9.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",p)),a.contextTypes&&!T9.has(a)&&(T9.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",p)),typeof d.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),a.prototype&&a.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xe(a)||"A pure component"),typeof d.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof d.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof d.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof d.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p),v=d.props!==o,d.props!==void 0&&v&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p),d.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof d.getSnapshotBeforeUpdate!="function"||typeof d.componentDidUpdate=="function"||w9.has(a)||(w9.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xe(a))),typeof d.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof d.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p),(v=d.state)&&(typeof v!="object"||Rn(v))&&console.error("%s.state: must be set to an object or null",p),typeof d.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p),d=t.stateNode,d.props=o,d.state=t.memoizedState,d.refs={},ut(t),p=a.contextType,d.context=typeof p=="object"&&p!==null?Tt(p):Af,d.state===o&&(p=xe(a)||"Component",S9.has(p)||(S9.add(p),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",p))),t.mode&pl&&zo.recordLegacyContextWarning(t,d),zo.recordUnsafeLifecycleWarnings(t,d),d.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Rr(t,a,p,o),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(p=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),p!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ce(t)||"Component"),a6.enqueueReplaceState(d,d.state,null)),Eu(t,o,d,r),Dr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728),d=!0}else if(e===null){d=t.stateNode;var H=t.memoizedProps;v=Cu(a,H),d.props=v;var R=d.context;T=a.contextType,p=Af,typeof T=="object"&&T!==null&&(p=Tt(T)),_=a.getDerivedStateFromProps,T=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function",H=t.pendingProps!==H,T||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(H||R!==p)&&Mu(t,d,o,p),Of=!1;var D=t.memoizedState;d.state=D,Eu(t,o,d,r),Dr(),R=t.memoizedState,H||D!==R||Of?(typeof _=="function"&&(Rr(t,a,_,o),R=t.memoizedState),(v=Of||o1(t,a,v,o,D,R,p))?(T||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=R),d.props=o,d.state=R,d.context=p,d=v):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728),d=!1)}else{d=t.stateNode,bu(e,t),p=t.memoizedProps,T=Cu(a,p),d.props=T,_=t.pendingProps,D=d.context,R=a.contextType,v=Af,typeof R=="object"&&R!==null&&(v=Tt(R)),H=a.getDerivedStateFromProps,(R=typeof H=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==_||D!==v)&&Mu(t,d,o,v),Of=!1,D=t.memoizedState,d.state=D,Eu(t,o,d,r),Dr();var J=t.memoizedState;p!==_||D!==J||Of||e!==null&&e.dependencies!==null&&_r(e.dependencies)?(typeof H=="function"&&(Rr(t,a,H,o),J=t.memoizedState),(T=Of||o1(t,a,T,o,D,J,v)||e!==null&&e.dependencies!==null&&_r(e.dependencies))?(R||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,J,v),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,J,v)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=J),d.props=o,d.state=J,d.context=v,d=T):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),d=!1)}if(v=d,Vd(e,t),p=(t.flags&128)!==0,v||p){if(v=t.stateNode,Ti(t),p&&typeof a.getDerivedStateFromError!="function")a=null,jl=-1;else if(a=Z7(v),t.mode&pl){ht(!0);try{Z7(v)}finally{ht(!1)}}t.flags|=1,e!==null&&p?(t.child=Nh(t,e.child,null,r),t.child=Nh(t,null,a,r)):ua(e,t,a,r),t.memoizedState=v.state,e=t.child}else e=ji(e,t,r);return r=t.stateNode,d&&r.props!==o&&(U2||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ce(t)||"a component"),U2=!0),e}function mg(e,t,a,o){return nc(),t.flags|=256,ua(e,t,a,o),t.child}function jr(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
237
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=xe(t)||"Unknown",O9[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),O9[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=xe(t)||"Unknown",C9[t]||(console.error("%s: Function components do not support contextType.",t),C9[t]=!0))}function qr(e){return{baseLanes:e,cachePool:Jm()}}function h1(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ri),e}function m1(e,t,a){var o,r=t.pendingProps;w(t)&&(t.flags|=128);var d=!1,p=(t.flags&128)!==0;if((o=p)||(o=e!==null&&e.memoizedState===null?!1:(Kn.current&Zp)!==0),o&&(d=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ct){if(d?Ka(t):Tu(t),(e=on)?(a=zt(e,Ku),a=a!==null&&a.data!==qh?a:null,a!==null&&(o={dehydrated:a,treeContext:v3(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=Vm(a),o.return=t,t.child=o,il=t,on=null)):a=null,a===null)throw Na(t,e),Il(t);return Jg(a)?t.lanes=32:t.lanes=536870912,null}var v=r.children;if(r=r.fallback,d){Tu(t);var T=t.mode;return v=Yd({mode:"hidden",children:v},T),r=es(r,T,a,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=qr(a),r.childLanes=h1(e,o,a),t.memoizedState=u6,vs(null,r)}return Ka(t),gg(t,v)}var _=e.memoizedState;if(_!==null){var H=_.dehydrated;if(H!==null){if(p)t.flags&256?(Ka(t),t.flags&=-257,t=g1(e,t,a)):t.memoizedState!==null?(Tu(t),t.child=e.child,t.flags|=128,t=null):(Tu(t),v=r.fallback,T=t.mode,r=Yd({mode:"visible",children:r.children},T),v=es(v,T,a,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,Nh(t,e.child,null,a),r=t.child,r.memoizedState=qr(a),r.childLanes=h1(e,o,a),t.memoizedState=u6,t=vs(null,r));else if(Ka(t),b3(),a&536870912&&Qr(t),Jg(H)){if(o=H.nextSibling&&H.nextSibling.dataset,o){v=o.dgst;var R=o.msg;T=o.stck;var D=o.cstck}d=R,o=v,r=T,H=D,v=d,T=H,v=Error(v||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),v.stack=r||"",v.digest=o,o=T===void 0?null:T,r={value:v,source:null,stack:o},typeof o=="string"&&jb.set(v,r),vd(r),t=g1(e,t,a)}else if(da||Ui(e,t,a,!1),o=(a&e.childLanes)!==0,da||o){if(o=Kt,o!==null&&(r=Ko(o,a),r!==0&&r!==_.retryLane))throw _.retryLane=r,za(e,r),je(o,e,r),i6;uh(H)||Zr(),t=g1(e,t,a)}else uh(H)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,on=Bl(H.nextSibling),il=t,ct=!0,_f=null,zc=!1,$i=null,Ku=!1,e!==null&&w3(t,e),t=gg(t,r.children),t.flags|=4096);return t}}return d?(Tu(t),v=r.fallback,T=t.mode,D=e.child,H=D.sibling,r=yu(D,{mode:"hidden",children:r.children}),r.subtreeFlags=D.subtreeFlags&65011712,H!==null?v=yu(H,v):(v=es(v,T,a,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,vs(null,r),r=t.child,v=e.child.memoizedState,v===null?v=qr(a):(T=v.cachePool,T!==null?(D=sa._currentValue,T=T.parent!==D?{parent:D,pool:D}:T):T=Jm(),v={baseLanes:v.baseLanes|a,cachePool:T}),r.memoizedState=v,r.childLanes=h1(e,o,a),t.memoizedState=u6,vs(e.child,r)):(_!==null&&(a&62914560)===a&&a&e.lanes&&Qr(t),Ka(t),a=e.child,e=a.sibling,a=yu(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function gg(e,t){return t=Yd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yd(e,t){return e=q(22,e,null,t),e.lanes=0,e}function g1(e,t,a){return Nh(t,e.child,null,a),e=gg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pg(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Z0(e.return,t,a)}function p1(e,t,a,o,r,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:d}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=a,p.tailMode=r,p.treeForkCount=d)}function yg(e,t,a){var o=t.pendingProps,r=o.revealOrder,d=o.tail,p=o.children,v=Kn.current;if((o=(v&Zp)!==0)?(v=v&D2|Zp,t.flags|=128):v&=D2,He(Kn,v,t),v=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!z9[v])if(z9[v]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);v=d??"null",I4[v]||(d==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(I4[v]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):d!=="visible"&&d!=="collapsed"&&d!=="hidden"?(I4[v]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',d)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(I4[v]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&p!==void 0&&p!==null&&p!==!1)if(Rn(p)){for(v=0;v<p.length;v++)if(!Xt(p[v],v))break e}else if(v=Qe(p),typeof v=="function"){if(v=v.call(p))for(var T=v.next(),_=0;!T.done;T=v.next()){if(!Xt(T.value,_))break e;_++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(ua(e,t,p,a),ct?(tc(),p=zp):p=0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pg(e,a,t);else if(e.tag===19)pg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&os(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),p1(t,!1,r,a,d,p);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&os(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}p1(t,!0,a,null,d,p);break;case"together":p1(t,!1,null,null,void 0,p);break;default:t.memoizedState=null}return t.child}function ji(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),jl=-1,Uf|=t.lanes,!(a&t.childLanes))if(e!==null){if(Ui(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=yu(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=yu(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function y1(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&_r(e)))}function D3(e,t,a){switch(t.tag){case 3:$t(t,t.stateNode.containerInfo),Wl(t,sa,e.memoizedState.cache),nc();break;case 27:case 5:ie(t);break;case 4:$t(t,t.stateNode.containerInfo);break;case 10:Wl(t,t.type,t.memoizedProps.value);break;case 12:a&t.childLanes&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gi(t),null;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ka(t),t.flags|=128,null):a&t.child.childLanes?m1(e,t,a):(Ka(t),e=ji(e,t,a),e!==null?e.sibling:null);Ka(t);break;case 19:var r=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Ui(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return yg(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),He(Kn,Kn.current,t),o)break;return null;case 22:return t.lanes=0,sg(e,t,a,t.pendingProps);case 24:Wl(t,sa,e.memoizedState.cache)}return ji(e,t,a)}function kd(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Pc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var r=o.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)da=!0;else{if(!y1(e,a)&&!(t.flags&128))return da=!1,D3(e,t,a);da=!!(e.flags&131072)}else da=!1,(o=ct)&&(tc(),o=(t.flags&1048576)!==0),o&&(o=t.index,tc(),Ym(t,zp,o));switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=_l(t.elementType),t.type=e,typeof e=="function")jm(e)?(o=Cu(e,o),t.tag=1,t.type=e=Po(e),t=ws(null,t,e,o,a)):(t.tag=0,jr(t,e),t.type=e=Po(e),t=dg(null,t,e,o,a));else{if(e!=null){if(r=e.$$typeof,r===rf){t.tag=11,t.type=e=Y0(e),t=M3(null,t,e,o,a);break e}else if(r===ph){t.tag=14,t=og(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Ba&&(t=" Did you wrap a component in React.lazy() more than once?"),a=xe(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return dg(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=Cu(o,t.pendingProps),ws(e,t,o,r,a);case 3:e:{if($t(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var d=t.memoizedState;r=d.element,bu(e,t),Eu(t,o,null,a);var p=t.memoizedState;if(o=p.cache,Wl(t,sa,o),o!==d.cache&&so(t,[sa],a,!0),Dr(),o=p.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=mg(e,t,o,a);break e}else if(o!==r){r=Xa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),vd(r),t=mg(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(on=Bl(e.firstChild),il=t,ct=!0,_f=null,zc=!1,$i=null,Ku=!0,a=u9(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(nc(),o===r){t=ji(e,t,a);break e}ua(e,t,o,a)}t=t.child}return t;case 26:return Vd(e,t),e===null?(a=Ig(t.type,null,t.pendingProps,null))?t.memoizedState=a:ct||(a=t.type,e=t.pendingProps,o=Ft(Hl.current),o=lh(o).createElement(a),o[ln]=t,o[ll]=e,an(o,a,e),xn(o),t.stateNode=o):t.memoizedState=Ig(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ie(t),e===null&&ct&&(o=Ft(Hl.current),r=ee(),o=t.stateNode=xo(t.type,t.pendingProps,o,r,!1),zc||(r=hl(o,t.type,t.pendingProps,r),r!==null&&(ts(t,0).serverProps=r)),il=t,Ku=!0,r=on,Ac(t.type)?(D6=r,on=Bl(o.firstChild)):on=r),ua(e,t,t.pendingProps.children,a),Vd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ct&&(d=ee(),o=cd(t.type,d.ancestorInfo),r=on,(p=!r)||(p=i4(r,t.type,t.pendingProps,Ku),p!==null?(t.stateNode=p,zc||(d=hl(p,t.type,t.pendingProps,d),d!==null&&(ts(t,0).serverProps=d)),il=t,on=Bl(p.firstChild),Ku=!1,d=!0):d=!1,p=!d),p&&(o&&Na(t,r),Il(t))),ie(t),r=t.type,d=t.pendingProps,p=e!==null?e.memoizedProps:null,o=d.children,ef(r,d)?o=null:p!==null&&ef(r,p)&&(t.flags|=32),t.memoizedState!==null&&(r=Wm(e,t,Md,null,null,a),ry._currentValue=r),Vd(e,t),ua(e,t,o,a),t.child;case 6:return e===null&&ct&&(a=t.pendingProps,e=ee(),o=e.ancestorInfo.current,a=o!=null?sd(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=on,(o=!e)||(o=u4(e,t.pendingProps,Ku),o!==null?(t.stateNode=o,il=t,on=null,o=!0):o=!1,o=!o),o&&(a&&Na(t,e),Il(t))),null;case 13:return m1(e,t,a);case 4:return $t(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Nh(t,null,o,a):ua(e,t,o,a),t.child;case 11:return M3(e,t,t.type,t.pendingProps,a);case 7:return ua(e,t,t.pendingProps,a),t.child;case 8:return ua(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,ua(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,r=t.pendingProps,d=r.value,"value"in r||N9||(N9=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Wl(t,o,d),ua(e,t,r.children,a),t.child;case 9:return r=t.type._context,o=t.pendingProps.children,typeof o!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),lc(t),r=Tt(r),o=Jb(o,r,void 0),t.flags|=1,ua(e,t,o,a),t.child;case 14:return og(e,t,t.type,t.pendingProps,a);case 15:return cg(e,t,t.type,t.pendingProps,a);case 19:return yg(e,t,a);case 31:return C3(e,t,a);case 22:return sg(e,t,a,t.pendingProps);case 24:return lc(t),o=Tt(sa),e===null?(r=ho(),r===null&&(r=Kt,d=J0(),r.pooledCache=d,as(d),d!==null&&(r.pooledCacheLanes|=a),r=d),t.memoizedState={parent:o,cache:r},ut(t),Wl(t,sa,r)):(e.lanes&a&&(bu(e,t),Eu(t,null,null,a),Dr()),r=e.memoizedState,d=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Wl(t,sa,o)):(o=d.cache,Wl(t,sa,o),o!==r.cache&&so(t,[sa],a,!0))),ua(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Du(e){e.flags|=4}function v1(e,t,a,o,r){if((t=(e.mode&Fx)!==Ge)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Hg())e.flags|=8192;else throw zh=Q4,Fb}else e.flags&=-16777217}function O3(e,t){if(t.type!=="stylesheet"||(t.state.loading&Pu)!==kh)e.flags&=-16777217;else if(e.flags|=16777216,!it(t))if(Hg())e.flags|=8192;else throw zh=Q4,Fb}function Vr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cr():536870912,e.lanes|=t,Gh|=t)}function Yr(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&Pe)!==Ge){for(var r=e.selfBaseDuration,d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,r+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Pe)!==Ge){r=e.actualDuration,d=e.selfBaseDuration;for(var p=e.child;p!==null;)a|=p.lanes|p.childLanes,o|=p.subtreeFlags,o|=p.flags,r+=p.actualDuration,d+=p.treeBaseDuration,p=p.sibling;e.actualDuration=r,e.treeBaseDuration=d}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function vg(e,t,a){var o=t.pendingProps;switch(Q0(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ni(sa,t),V(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ns(t)?(ac(),Du(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yd())),Lt(t),null;case 26:var r=t.type,d=t.memoizedState;return e===null?(Du(t),d!==null?(Lt(t),O3(t,d)):(Lt(t),v1(t,r,null,o,a))):d?d!==e.memoizedState?(Du(t),Lt(t),O3(t,d)):(Lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Du(t),Lt(t),v1(t,r,e,o,a)),null;case 27:if(ve(t),a=Ft(Hl.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Du(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Lt(t),null}e=ee(),ns(t)?km(t):(e=xo(r,o,a,e,!0),t.stateNode=e,Du(t))}return Lt(t),null;case 5:if(ve(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Du(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Lt(t),null}var p=ee();if(ns(t))km(t);else{switch(d=Ft(Hl.current),cd(r,p.ancestorInfo),p=p.context,d=lh(d),p){case V2:d=d.createElementNS($e,r);break;case yv:d=d.createElementNS(Je,r);break;default:switch(r){case"svg":d=d.createElementNS($e,r);break;case"math":d=d.createElementNS(Je,r);break;case"script":d=d.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof o.is=="string"?d.createElement("select",{is:o.is}):d.createElement("select"),o.multiple?d.multiple=!0:o.size&&(d.size=o.size);break;default:d=typeof o.is=="string"?d.createElement(r,{is:o.is}):d.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(d)!=="[object HTMLUnknownElement]"||Ll.call(nE,r)||(nE[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}d[ln]=t,d[ll]=o;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)d.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=d;e:switch(an(d,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Du(t)}}return Lt(t),v1(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Du(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Ft(Hl.current),a=ee(),ns(t)){if(e=t.stateNode,a=t.memoizedProps,r=!zc,o=null,d=il,d!==null)switch(d.tag){case 3:r&&(r=s4(e,a,o),r!==null&&(ts(t,0).serverProps=r));break;case 27:case 5:o=d.memoizedProps,r&&(r=s4(e,a,o),r!==null&&(ts(t,0).serverProps=r))}e[ln]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Qg(e.nodeValue,a)),e||Il(t,!0)}else r=a.ancestorInfo.current,r!=null&&sd(o,r.tag,a.ancestorInfo.implicitRootScope),e=lh(e).createTextNode(o),e[ln]=t,t.stateNode=e}return Lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=ns(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ln]=t,Lt(t),(t.mode&Pe)!==Ge&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else ac(),nc(),!(t.flags&128)&&(a=t.memoizedState=null),t.flags|=4,Lt(t),(t.mode&Pe)!==Ge&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=yd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(la(t),t):(la(t),null);if(t.flags&128)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Lt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=o,d=ns(t),r!==null&&r.dehydrated!==null){if(e===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d[ln]=t,Lt(t),(t.mode&Pe)!==Ge&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else ac(),nc(),!(t.flags&128)&&(r=t.memoizedState=null),t.flags|=4,Lt(t),(t.mode&Pe)!==Ge&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=yd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(la(t),t):(la(t),null)}return la(t),t.flags&128?(t.lanes=a,(t.mode&Pe)!==Ge&&is(t),t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vr(t,t.updateQueue),Lt(t),(t.mode&Pe)!==Ge&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return V(t),e===null&&Ec(t.stateNode.containerInfo),Lt(t),null;case 10:return Ni(t.type,t),Lt(t),null;case 19:if(ke(Kn,t),o=t.memoizedState,o===null)return Lt(t),null;if(r=(t.flags&128)!==0,d=o.rendering,d===null)if(r)Yr(o,!1);else{if(Sn!==Js||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(d=os(e),d!==null){for(t.flags|=128,Yr(o,!1),e=d.updateQueue,t.updateQueue=e,Vr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)qm(a,e),a=a.sibling;return He(Kn,Kn.current&D2|Zp,t),ct&&zi(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&ca()>lv&&(t.flags|=128,r=!0,Yr(o,!1),t.lanes=4194304)}else{if(!r)if(e=os(d),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Vr(t,e),Yr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!d.alternate&&!ct)return Lt(t),null}else 2*ca()-o.renderingStartTime>lv&&a!==536870912&&(t.flags|=128,r=!0,Yr(o,!1),t.lanes=4194304);o.isBackwards?(d.sibling=t.child,t.child=d):(e=o.last,e!==null?e.sibling=d:t.child=d,o.last=d)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ca(),e.sibling=null,a=Kn.current,a=r?a&D2|Zp:a&D2,He(Kn,a,t),ct&&zi(t,o.treeForkCount),e):(Lt(t),null);case 22:case 23:return la(t),Li(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?a&536870912&&!(t.flags&128)&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),a=t.updateQueue,a!==null&&Vr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&ke(Dh,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ni(sa,t),Lt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function z3(e,t){switch(Q0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 3:return Ni(sa,t),V(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(la(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 19:return ke(Kn,t),null;case 4:return V(t),null;case 10:return Ni(t.type,t),null;case 22:case 23:return la(t),Li(t),e!==null&&ke(Dh,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 24:return Ni(sa,t),null;case 25:return null;default:return null}}function wg(e,t){switch(Q0(t),t.tag){case 3:Ni(sa,t),V(t);break;case 26:case 27:case 5:ve(t);break;case 4:V(t);break;case 31:t.memoizedState!==null&&la(t);break;case 13:la(t);break;case 19:ke(Kn,t);break;case 10:Ni(t.type,t);break;case 22:case 23:la(t),Li(t),e!==null&&ke(Dh,t);break;case 24:Ni(sa,t)}}function Ou(e){return(e.mode&Pe)!==Ge}function N3(e,t){Ou(e)?(yn(),So(t,e),Za()):So(t,e)}function w1(e,t,a){Ou(e)?(yn(),pc(a,e,t),Za()):pc(a,e,t)}function So(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e&&(o=void 0,(e&ql)!==J4&&(R2=!0),o=fe(t,tM,a),(e&ql)!==J4&&(R2=!1),o!==void 0&&typeof o!="function")){var d=void 0;d=a.tag&Wi?"useLayoutEffect":a.tag&ql?"useInsertionEffect":"useEffect";var p=void 0;p=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then=="function"?`
|
|
238
|
+
|
|
239
|
+
It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
240
|
+
|
|
241
|
+
`+d+`(() => {
|
|
242
|
+
async function fetchData() {
|
|
243
|
+
// You can await here
|
|
244
|
+
const response = await MyAPI.getData(someId);
|
|
245
|
+
// ...
|
|
246
|
+
}
|
|
247
|
+
fetchData();
|
|
248
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
249
|
+
|
|
250
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,fe(t,function(v,T){console.error("%s must not return anything besides a function, which is used for clean-up.%s",v,T)},d,p)}a=a.next}while(a!==r)}}catch(v){Fe(t,t.return,v)}}function pc(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var d=r.next;o=d;do{if((o.tag&e)===e){var p=o.inst,v=p.destroy;v!==void 0&&(p.destroy=void 0,(e&ql)!==J4&&(R2=!0),r=t,fe(r,nM,r,a,v),(e&ql)!==J4&&(R2=!1))}o=o.next}while(o!==d)}}catch(T){Fe(t,t.return,T)}}function Xd(e,t){Ou(e)?(yn(),So(t,e),Za()):So(t,e)}function b1(e,t,a){Ou(e)?(yn(),pc(a,e,t),Za()):pc(a,e,t)}function bg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||U2||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(e)||"instance"));try{fe(e,Or,t,a)}catch(o){Fe(e,e.return,o)}}}function Qd(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function U3(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||U2||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(e)||"instance"));try{var r=Cu(e.type,a),d=fe(e,Qd,t,r,o);a=U9,d!==void 0||a.has(e.type)||(a.add(e.type),fe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ce(e))})),t.__reactInternalSnapshotBeforeUpdate=d}catch(p){Fe(e,e.return,p)}}function S1(e,t,a){a.props=Cu(e.type,e.memoizedProps),a.state=e.memoizedState,Ou(e)?(yn(),fe(e,W7,e,t,a),Za()):fe(e,W7,e,t,a)}function B3(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(Ou(e))try{yn(),e.refCleanup=t(a)}finally{Za()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ce(e)),t.current=a}}function bs(e,t){try{fe(e,B3,e)}catch(a){Fe(e,t,a)}}function ai(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{if(Ou(e))try{yn(),fe(e,o)}finally{Za(e)}else fe(e,o)}catch(r){Fe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(Ou(e))try{yn(),fe(e,a,null)}finally{Za(e)}else fe(e,a,null)}catch(r){Fe(e,t,r)}else a.current=null}function Sg(e,t,a,o){var r=e.memoizedProps,d=r.id,p=r.onCommit;r=r.onRender,t=t===null?"mount":"update",V4&&(t="nested-update"),typeof r=="function"&&r(d,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof p=="function"&&p(d,t,o,a)}function H3(e,t,a,o){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",V4&&(t="nested-update"),typeof r=="function"&&r(e,t,o,a)}function yc(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{fe(e,K3,o,t,a,e)}catch(r){Fe(e,e.return,r)}}function E1(e,t,a){try{fe(e,Y1,e.stateNode,e.type,a,t,e)}catch(o){Fe(e,e.return,o)}}function Eg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ac(e.type)||e.tag===4}function T1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ac(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kr(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?($3(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):($3(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Fl));else if(o!==4&&(o===27&&Ac(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(kr(e,t,a),e=e.sibling;e!==null;)kr(e,t,a),e=e.sibling}function Zd(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Ac(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zd(e,t,a),e=e.sibling;e!==null;)Zd(e,t,a),e=e.sibling}function Tg(e){for(var t,a=e.return;a!==null;){if(Eg(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=T1(e),Zd(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(k1(a),t.flags&=-33),t=T1(e),Zd(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=T1(e),kr(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Ag(e){var t=e.stateNode,a=e.memoizedProps;try{fe(e,Ru,e.type,a,t,e)}catch(o){Fe(e,e.return,o)}}function _g(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function pb(e,t){if(e=e.containerInfo,x6=Sv,e=R0(e),Nm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var p=0,v=-1,T=-1,_=0,H=0,R=e,D=null;t:for(;;){for(var J;R!==a||r!==0&&R.nodeType!==3||(v=p+r),R!==d||o!==0&&R.nodeType!==3||(T=p+o),R.nodeType===3&&(p+=R.nodeValue.length),(J=R.firstChild)!==null;)D=R,R=J;for(;;){if(R===e)break t;if(D===a&&++_===r&&(v=p),D===d&&++H===o&&(T=p),(J=R.nextSibling)!==null)break;R=D,D=R.parentNode}R=J}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(M6={focusedElem:e,selectionRange:a},Sv=!1,Ga=t;Ga!==null;)if(t=Ga,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ga=e;else for(;Ga!==null;){switch(e=t=Ga,a=e.alternate,r=e.flags,e.tag){case 0:if(r&4&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:r&1024&&a!==null&&U3(e,a);break;case 3:if(r&1024){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)nf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(r&1024)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ga=e;break}Ga=t.return}}function A1(e,t,a){var o=tn(),r=Pl(),d=Tl(),p=ei(),v=a.flags;switch(a.tag){case 0:case 11:case 15:Ol(e,a),v&4&&N3(a,Wi|Iu);break;case 1:if(Ol(e,a),v&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||U2||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(a)||"instance")),Ou(a)?(yn(),fe(a,Kb,a,e),Za()):fe(a,Kb,a,e);else{var T=Cu(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||U2||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(a)||"instance")),Ou(a)?(yn(),fe(a,F7,a,e,T,t,e.__reactInternalSnapshotBeforeUpdate),Za()):fe(a,F7,a,e,T,t,e.__reactInternalSnapshotBeforeUpdate)}v&64&&bg(a),v&512&&bs(a,a.return);break;case 3:if(t=wu(),Ol(e,a),v&64&&(v=a.updateQueue,v!==null)){if(T=null,a.child!==null)switch(a.child.tag){case 27:case 5:T=a.child.stateNode;break;case 1:T=a.child.stateNode}try{fe(a,Or,v,T)}catch(H){Fe(a,a.return,H)}}e.effectDuration+=xr(t);break;case 27:t===null&&v&4&&Ag(a);case 26:case 5:if(Ol(e,a),t===null){if(v&4)yc(a);else if(v&64){e=a.type,t=a.memoizedProps,T=a.stateNode;try{fe(a,F3,T,e,t,a)}catch(H){Fe(a,a.return,H)}}}v&512&&bs(a,a.return);break;case 12:if(v&4){v=wu(),Ol(e,a),e=a.stateNode,e.effectDuration+=Qa(v);try{fe(a,Sg,a,t,xf,e.effectDuration)}catch(H){Fe(a,a.return,H)}}else Ol(e,a);break;case 31:Ol(e,a),v&4&&Mg(e,a);break;case 13:Ol(e,a),v&4&&Cg(e,a),v&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(v=To.bind(null,a),o4(e,v))));break;case 22:if(v=a.memoizedState!==null||Zs,!v){t=t!==null&&t.memoizedState!==null||ha,T=Zs;var _=ha;Zs=v,(ha=t)&&!_?(qi(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&j0(a,De,Ne)):Ol(e,a),Zs=T,ha=_}break;case 30:break;default:Ol(e,a)}(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&((Nn||.05<bn)&&Oi(a,De,Ne,bn,hn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ne-De&&(_g(a.return.alternate,a.return)||$l(a,De,Ne,"Mount"))),na(o),El(r),hn=d,Nn=p}function On(e){var t=e.alternate;t!==null&&(e.alternate=null,On(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zl(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function It(e,t,a){for(a=a.child;a!==null;)xg(e,t,a),a=a.sibling}function xg(e,t,a){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(Us,a)}catch(_){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",_))}var o=tn(),r=Pl(),d=Tl(),p=ei();switch(a.tag){case 26:ha||ai(a,t),It(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:ha||ai(a,t);var v=ma,T=ci;Ac(a.type)&&(ma=a.stateNode,ci=!1),It(e,t,a),fe(a,Mo,a.stateNode),ma=v,ci=T;break;case 5:ha||ai(a,t);case 6:if(v=ma,T=ci,ma=null,It(e,t,a),ma=v,ci=T,ma!==null)if(ci)try{fe(a,W3,ma,a.stateNode)}catch(_){Fe(a,t,_)}else try{fe(a,I3,ma,a.stateNode)}catch(_){Fe(a,t,_)}break;case 18:ma!==null&&(ci?(e=ma,_s(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):_s(ma,a.stateNode));break;case 4:v=ma,T=ci,ma=a.stateNode.containerInfo,ci=!0,It(e,t,a),ma=v,ci=T;break;case 0:case 11:case 14:case 15:pc(ql,a,t),ha||w1(a,t,Wi),It(e,t,a);break;case 1:ha||(ai(a,t),v=a.stateNode,typeof v.componentWillUnmount=="function"&&S1(a,t,v)),It(e,t,a);break;case 21:It(e,t,a);break;case 22:ha=(v=ha)||a.memoizedState!==null,It(e,t,a),ha=v;break;default:It(e,t,a)}(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(a,De,Ne,bn,hn),na(o),El(r),hn=d,Nn=p}function Mg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fe(t,X1,e)}catch(a){Fe(t,t.return,a)}}}function Cg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fe(t,Fg,e)}catch(a){Fe(t,t.return,a)}}function L3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new B9),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new B9),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function vc(e,t){var a=L3(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Vu)if(B2!==null&&H2!==null)Fr(H2,B2);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=Ts.bind(null,e,o);o.then(r,r)}})}function Ia(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=e,d=t,p=a[o],v=tn(),T=d;e:for(;T!==null;){switch(T.tag){case 27:if(Ac(T.type)){ma=T.stateNode,ci=!1;break e}break;case 5:ma=T.stateNode,ci=!1;break e;case 3:case 4:ma=T.stateNode.containerInfo,ci=!0;break e}T=T.return}if(ma===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");xg(r,d,p),ma=null,ci=!1,(p.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(p,De,Ne,"Unmount"),na(v),r=p,d=r.alternate,d!==null&&(d.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jd(t,e),t=t.sibling}function Jd(e,t){var a=tn(),o=Pl(),r=Tl(),d=ei(),p=e.alternate,v=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ia(t,e),Wa(e),v&4&&(pc(ql|Iu,e,e.return),So(ql|Iu,e),w1(e,e.return,Wi|Iu));break;case 1:if(Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),v&64&&Zs&&(v=e.updateQueue,v!==null&&(p=v.callbacks,p!==null))){var T=v.shared.hiddenCallbacks;v.shared.hiddenCallbacks=T===null?p:T.concat(p)}break;case 26:if(T=Uo,Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),v&4){var _=p!==null?p.memoizedState:null;if(v=e.memoizedState,p===null)if(v===null)if(e.stateNode===null){e:{v=e.type,p=e.memoizedProps,T=T.ownerDocument||T;t:switch(v){case"title":_=T.getElementsByTagName("title")[0],(!_||_[vf]||_[ln]||_.namespaceURI===$e||_.hasAttribute("itemprop"))&&(_=T.createElement(v),T.head.insertBefore(_,T.querySelector("head > title"))),an(_,v,p),_[ln]=e,xn(_),v=_;break e;case"link":var H=uf("link","href",T).get(v+(p.href||""));if(H){for(var R=0;R<H.length;R++)if(_=H[R],_.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&_.getAttribute("rel")===(p.rel==null?null:p.rel)&&_.getAttribute("title")===(p.title==null?null:p.title)&&_.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){H.splice(R,1);break t}}_=T.createElement(v),an(_,v,p),T.head.appendChild(_);break;case"meta":if(H=uf("meta","content",T).get(v+(p.content||""))){for(R=0;R<H.length;R++)if(_=H[R],dt(p.content,"content"),_.getAttribute("content")===(p.content==null?null:""+p.content)&&_.getAttribute("name")===(p.name==null?null:p.name)&&_.getAttribute("property")===(p.property==null?null:p.property)&&_.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&_.getAttribute("charset")===(p.charSet==null?null:p.charSet)){H.splice(R,1);break t}}_=T.createElement(v),an(_,v,p),T.head.appendChild(_);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+v+'". This is a bug in React.')}_[ln]=e,xn(_),v=_}e.stateNode=v}else f4(T,e.type,e.stateNode);else e.stateNode=J1(T,v,e.memoizedProps);else _!==v?(_===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):_.count--,v===null?f4(T,e.type,e.stateNode):J1(T,v,e.memoizedProps)):v===null&&e.stateNode!==null&&E1(e,e.memoizedProps,p.memoizedProps)}break;case 27:Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),p!==null&&v&4&&E1(e,e.memoizedProps,p.memoizedProps);break;case 5:if(Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),e.flags&32){T=e.stateNode;try{fe(e,k1,T)}catch(de){Fe(e,e.return,de)}}v&4&&e.stateNode!=null&&(T=e.memoizedProps,E1(e,T,p!==null?p.memoizedProps:T)),v&1024&&(o6=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ia(t,e),Wa(e),v&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");v=e.memoizedProps,p=p!==null?p.memoizedProps:v,T=e.stateNode;try{fe(e,yb,T,p,v)}catch(de){Fe(e,e.return,de)}}break;case 3:if(T=wu(),vv=null,_=Uo,Uo=Q1(t.containerInfo),Ia(t,e),Uo=_,Wa(e),v&4&&p!==null&&p.memoizedState.isDehydrated)try{fe(e,Kg,t.containerInfo)}catch(de){Fe(e,e.return,de)}o6&&(o6=!1,G3(e)),t.effectDuration+=xr(T);break;case 4:v=Uo,Uo=Q1(e.stateNode.containerInfo),Ia(t,e),Wa(e),Uo=v;break;case 12:v=wu(),Ia(t,e),Wa(e),e.stateNode.effectDuration+=Qa(v);break;case 31:Ia(t,e),Wa(e),v&4&&(v=e.updateQueue,v!==null&&(e.updateQueue=null,vc(e,v)));break;case 13:Ia(t,e),Wa(e),e.child.flags&8192&&e.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(av=ca()),v&4&&(v=e.updateQueue,v!==null&&(e.updateQueue=null,vc(e,v)));break;case 22:T=e.memoizedState!==null;var D=p!==null&&p.memoizedState!==null,J=Zs,se=ha;if(Zs=J||T,ha=se||D,Ia(t,e),ha=se,Zs=J,D&&!T&&!J&&!se&&(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&j0(e,De,Ne),Wa(e),v&8192)e:for(t=e.stateNode,t._visibility=T?t._visibility&~Op:t._visibility|Op,!T||p===null||D||Zs||ha||(wc(e),(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(e,De,Ne,"Disconnect")),p=null,t=e;;){if(t.tag===5||t.tag===26){if(p===null){D=p=t;try{_=D.stateNode,T?fe(D,e4,_):fe(D,a4,D.stateNode,D.memoizedProps)}catch(de){Fe(D,D.return,de)}}}else if(t.tag===6){if(p===null){D=t;try{H=D.stateNode,T?fe(D,t4,H):fe(D,l4,H,D.memoizedProps)}catch(de){Fe(D,D.return,de)}}}else if(t.tag===18){if(p===null){D=t;try{R=D.stateNode,T?fe(D,P3,R):fe(D,n4,D.stateNode)}catch(de){Fe(D,D.return,de)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;p===t&&(p=null),t=t.return}p===t&&(p=null),t.sibling.return=t.return,t=t.sibling}v&4&&(v=e.updateQueue,v!==null&&(p=v.retryQueue,p!==null&&(v.retryQueue=null,vc(e,p))));break;case 19:Ia(t,e),Wa(e),v&4&&(v=e.updateQueue,v!==null&&(e.updateQueue=null,vc(e,v)));break;case 30:break;case 21:break;default:Ia(t,e),Wa(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&((Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Ne-De&&(_g(e.return.alternate,e.return)||$l(e,De,Ne,"Mount"))),na(a),El(o),hn=r,Nn=d}function Wa(e){var t=e.flags;if(t&2){try{fe(e,Tg,e)}catch(a){Fe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function G3(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;G3(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ol(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)A1(e,t.alternate,t),t=t.sibling}function _1(e){var t=tn(),a=Pl(),o=Tl(),r=ei();switch(e.tag){case 0:case 11:case 14:case 15:w1(e,e.return,Wi),wc(e);break;case 1:ai(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount=="function"&&S1(e,e.return,d),wc(e);break;case 27:fe(e,Mo,e.stateNode);case 26:case 5:ai(e,e.return),wc(e);break;case 22:e.memoizedState===null&&wc(e);break;case 30:wc(e);break;default:wc(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),na(t),El(a),hn=o,Nn=r}function wc(e){for(e=e.child;e!==null;)_1(e),e=e.sibling}function Dg(e,t,a,o){var r=tn(),d=Pl(),p=Tl(),v=ei(),T=a.flags;switch(a.tag){case 0:case 11:case 15:qi(e,a,o),N3(a,Wi);break;case 1:if(qi(e,a,o),t=a.stateNode,typeof t.componentDidMount=="function"&&fe(a,Kb,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{fe(a,$m,t,e)}catch(_){Fe(a,a.return,_)}}o&&T&64&&bg(a),bs(a,a.return);break;case 27:Ag(a);case 26:case 5:qi(e,a,o),o&&t===null&&T&4&&yc(a),bs(a,a.return);break;case 12:if(o&&T&4){T=wu(),qi(e,a,o),o=a.stateNode,o.effectDuration+=Qa(T);try{fe(a,Sg,a,t,xf,o.effectDuration)}catch(_){Fe(a,a.return,_)}}else qi(e,a,o);break;case 31:qi(e,a,o),o&&T&4&&Mg(e,a);break;case 13:qi(e,a,o),o&&T&4&&Cg(e,a);break;case 22:a.memoizedState===null&&qi(e,a,o),bs(a,a.return);break;case 30:break;default:qi(e,a,o)}(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(a,De,Ne,bn,hn),na(r),El(d),hn=p,Nn=v}function qi(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Dg(e,t.alternate,t,a),t=t.sibling}function Kd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&as(e),a!=null&&bd(a))}function Fd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(as(t),e!=null&&bd(e))}function zl(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var d=t.sibling;Og(e,t,a,o,d!==null?d.actualStartTime:r),t=d}}function Og(e,t,a,o,r){var d=tn(),p=Pl(),v=Tl(),T=ei(),_=Ef,H=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Pe)!==Ge&&0<t.actualStartTime&&t.flags&1&&q0(t,t.actualStartTime,r,_a,a),zl(e,t,a,o,r),H&2048&&Xd(t,Vl|Iu);break;case 1:(t.mode&Pe)!==Ge&&0<t.actualStartTime&&(t.flags&128?Bm(t,t.actualStartTime,r,[]):t.flags&1&&q0(t,t.actualStartTime,r,_a,a)),zl(e,t,a,o,r);break;case 3:var R=wu(),D=_a;_a=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,zl(e,t,a,o,r),_a=D,H&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(as(o),a!=null&&bd(a))),e.passiveEffectDuration+=xr(R);break;case 12:if(H&2048){H=wu(),zl(e,t,a,o,r),e=t.stateNode,e.passiveEffectDuration+=Qa(H);try{fe(t,H3,t,t.alternate,xf,e.passiveEffectDuration)}catch(J){Fe(t,t.return,J)}}else zl(e,t,a,o,r);break;case 31:H=_a,R=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,R!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(_a=!1,R=R.hydrationErrors,R!==null&&Bm(t,t.actualStartTime,r,R)):_a=!0):_a=!1,zl(e,t,a,o,r),_a=H;break;case 13:H=_a,R=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,R===null||R.dehydrated===null||D!==null&&D.dehydrated!==null?_a=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(_a=!1,R=R.hydrationErrors,R!==null&&Bm(t,t.actualStartTime,r,R)):_a=!0),zl(e,t,a,o,r),_a=H;break;case 23:break;case 22:D=t.stateNode,R=t.alternate,t.memoizedState!==null?D._visibility&Ls?zl(e,t,a,o,r):Ss(e,t,a,o,r):D._visibility&Ls?zl(e,t,a,o,r):(D._visibility|=Ls,bc(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Pe)===Ge||_a||(e=t.actualStartTime,0<=e&&.05<r-e&&j0(t,e,r),0<=De&&0<=Ne&&.05<Ne-De&&j0(t,De,Ne))),H&2048&&Kd(R,t);break;case 24:zl(e,t,a,o,r),H&2048&&Fd(t.alternate,t);break;default:zl(e,t,a,o,r)}(t.mode&Pe)!==Ge&&((e=!_a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&$l(t,a,r,"Mount")),0<=De&&0<=Ne&&((Nn||.05<bn)&&Oi(t,De,Ne,bn,hn),e&&.05<Ne-De&&$l(t,De,Ne,"Mount"))),na(d),El(p),hn=v,Nn=T,Ef=_}function bc(e,t,a,o,r,d){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var p=t.sibling;$d(e,t,a,o,r,p!==null?p.actualStartTime:d),t=p}}function $d(e,t,a,o,r,d){var p=tn(),v=Pl(),T=Tl(),_=ei(),H=Ef;r&&(t.mode&Pe)!==Ge&&0<t.actualStartTime&&t.flags&1&&q0(t,t.actualStartTime,d,_a,a);var R=t.flags;switch(t.tag){case 0:case 11:case 15:bc(e,t,a,o,r,d),Xd(t,Vl);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&Ls?bc(e,t,a,o,r,d):Ss(e,t,a,o,d):(D._visibility|=Ls,bc(e,t,a,o,r,d)),r&&R&2048&&Kd(t.alternate,t);break;case 24:bc(e,t,a,o,r,d),r&&R&2048&&Fd(t.alternate,t);break;default:bc(e,t,a,o,r,d)}(t.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(t,De,Ne,bn,hn),na(p),El(v),hn=T,Nn=_,Ef=H}function Ss(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var d=t.child;d!==null;){t=d.sibling;var p=e,v=a,T=o,_=t!==null?t.actualStartTime:r,H=Ef;(d.mode&Pe)!==Ge&&0<d.actualStartTime&&d.flags&1&&q0(d,d.actualStartTime,_,_a,v);var R=d.flags;switch(d.tag){case 22:Ss(p,d,v,T,_),R&2048&&Kd(d.alternate,d);break;case 24:Ss(p,d,v,T,_),R&2048&&Fd(d.alternate,d);break;default:Ss(p,d,v,T,_)}Ef=H,d=t}}function Es(e,t,a){if(e.subtreeFlags&$p)for(e=e.child;e!==null;)x1(e,t,a),e=e.sibling}function x1(e,t,a){switch(e.tag){case 26:Es(e,t,a),e.flags&$p&&e.memoizedState!==null&&ep(a,Uo,e.memoizedState,e.memoizedProps);break;case 5:Es(e,t,a);break;case 3:case 4:var o=Uo;Uo=Q1(e.stateNode.containerInfo),Es(e,t,a),Uo=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=$p,$p=16777216,Es(e,t,a),$p=o):Es(e,t,a));break;default:Es(e,t,a)}}function zg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],r=tn();Ga=o,zu(o,e),(o.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(o,De,Ne,"Unmount"),na(r)}zg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)M1(e),e=e.sibling}function M1(e){var t=tn(),a=Pl(),o=Tl(),r=ei();switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&b1(e,e.return,Vl|Iu);break;case 3:var d=wu();Nl(e),e.stateNode.passiveEffectDuration+=xr(d);break;case 12:d=wu(),Nl(e),e.stateNode.passiveEffectDuration+=Qa(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&Ls&&(e.return===null||e.return.tag!==13)?(d._visibility&=~Ls,C1(e),(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(e,De,Ne,"Disconnect")):Nl(e);break;default:Nl(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),na(t),El(a),Nn=r,hn=o}function C1(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],r=tn();Ga=o,zu(o,e),(o.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(o,De,Ne,"Unmount"),na(r)}zg(e)}for(e=e.child;e!==null;)Ng(e),e=e.sibling}function Ng(e){var t=tn(),a=Pl(),o=Tl(),r=ei();switch(e.tag){case 0:case 11:case 15:b1(e,e.return,Vl),C1(e);break;case 22:var d=e.stateNode;d._visibility&Ls&&(d._visibility&=~Ls,C1(e));break;default:C1(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),na(t),El(a),Nn=r,hn=o}function zu(e,t){for(;Ga!==null;){var a=Ga,o=a,r=t,d=tn(),p=Pl(),v=Tl(),T=ei();switch(o.tag){case 0:case 11:case 15:b1(o,r,Vl);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool,r!=null&&as(r));break;case 24:bd(o.memoizedState.cache)}if((o.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(o,De,Ne,bn,hn),na(d),El(p),Nn=T,hn=v,o=a.child,o!==null)o.return=a,Ga=o;else e:for(a=e;Ga!==null;){if(o=Ga,d=o.sibling,p=o.return,On(o),o===a){Ga=null;break e}if(d!==null){d.return=p,Ga=d;break e}Ga=p}}}function Ug(){oM.forEach(function(e){return e()})}function Bg(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||F.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ua(e){if((pt&xa)!==Ra&&tt!==0)return tt&-tt;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Xg()):E0()}function Xr(){if(ri===0)if(!(tt&536870912)||ct){var e=wh;wh<<=1,!(wh&3932160)&&(wh=262144),ri=e}else ri=536870912;return e=Ii.current,e!==null&&(e.flags|=32),ri}function je(e,t,a){if(R2&&console.error("useInsertionEffect must not schedule updates."),v6&&(ov=!0),(e===Kt&&(qt===Hh||qt===Lh)||e.cancelPendingCommit!==null)&&(Nu(e,0),li(e,tt,ri,!1)),su(e,a),(pt&xa)!==Ra&&e===Kt){if(ju)switch(t.tag){case 0:case 11:case 15:e=lt&&ce(lt)||"Unknown",F9.has(e)||(F9.add(e),t=ce(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:K9||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),K9=!0)}}else Vu&&_n(e,t,a),eh(t),e===Kt&&((pt&xa)===Ra&&(Bf|=a),Sn===zf&&li(e,tt,ri,!1)),fl(e)}function R3(e,t,a){if((pt&(xa|Pi))!==Ra)throw Error("Should not already be working.");if(tt!==0&<!==null){var o=lt,r=ca();switch(V7){case Pp:case Hh:var d=Lp;un&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",d,r,ku,void 0,"primary-light")):console.timeStamp("Suspended",d,r,ku,void 0,"primary-light"));break;case Lh:d=Lp,un&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",d,r,ku,void 0,"primary-light")):console.timeStamp("Action",d,r,ku,void 0,"primary-light"));break;default:un&&(o=r-Lp,3>o||console.timeStamp("Blocked",Lp,r,ku,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}d=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Hn(e,t))?Eo(e,t):Jr(e,t,!0);var p=a;do{if(d===Js){L2&&!a&&li(e,t,0,!1),t=qt,Lp=ra(),V7=t;break}else{if(o=ca(),r=e.current.alternate,p&&!q3(r)){Di(t),r=La,d=o,!un||d<=r||(jn?jn.run(console.timeStamp.bind(console,"Teared Render",r,d,mt,rt,"error")):console.timeStamp("Teared Render",r,d,mt,rt,"error")),Sc(t,o),d=Jr(e,t,!1),p=!1;continue}if(d===Bh){if(p=t,e.errorRecoveryDisabledLanes&p)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){Di(t),Hm(La,o,t,jn),Sc(t,o),t=v;e:{o=e,d=p,p=ty;var T=o.current.memoizedState.isDehydrated;if(T&&(Nu(o,v).flags|=256),v=Jr(o,v,!1),v!==Bh){if(r6&&!T){o.errorRecoveryDisabledLanes|=d,Bf|=d,d=zf;break e}o=Yl,Yl=p,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}d=v}if(p=!1,d!==Bh)continue;o=ca()}}if(d===Wp){Di(t),Hm(La,o,t,jn),Sc(t,o),Nu(e,0),li(e,t,0,!0);break}e:{switch(a=e,d){case Js:case Wp:throw Error("Root did not complete. This is a bug in React.");case zf:if((t&4194048)!==t)break;case P4:Di(t),m3(La,o,t,jn),Sc(t,o),r=t,r&127?R4=o:r&4194048&&(j4=o),li(a,t,ri,!Nf);break e;case Bh:Yl=null;break;case W4:case H9:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)Qt(a,r,t,Yl,ny,nv,ri,Bf,Gh,d,null,null,La,o);else{if((t&62914560)===t&&(p=av+R9-ca(),10<p)){if(li(a,t,ri,!Nf),Vc(a,0,!0)!==0)break e;Bo=t,a.timeoutHandle=aE(j3.bind(null,a,r,Yl,ny,nv,t,ri,Bf,Gh,Nf,d,"Throttled",La,o),p);break e}j3(a,r,Yl,ny,nv,t,ri,Bf,Gh,Nf,d,null,La,o)}}}break}while(!0);fl(e)}function j3(e,t,a,o,r,d,p,v,T,_,H,R,D,J){e.timeoutHandle=Yh;var se=t.subtreeFlags,de=null;if((se&8192||(se&16785408)===16785408)&&(de={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fl},x1(t,d,de),se=(d&62914560)===d?av-ca():(d&4194048)===d?G9-ca():0,se=K1(de,se),se!==null)){Bo=d,e.cancelPendingCommit=se(Qt.bind(null,e,t,d,a,o,r,p,v,T,H,de,de.waitingForViewTransition?"Waiting for the previous Animation":0<de.count?0<de.imgCount?"Suspended on CSS and Images":"Suspended on CSS":de.imgCount===1?"Suspended on an Image":0<de.imgCount?"Suspended on Images":null,D,J)),li(e,d,p,!_);return}Qt(e,t,d,a,o,r,p,v,T,H,de,R,D,J)}function q3(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],d=r.getSnapshot;r=r.value;try{if(!Rl(d(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function li(e,t,a,o){t&=~f6,t&=~Bf,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var d=31-Ta(r),p=1<<d;o[d]=-1,r&=~p}a!==0&&rr(e,a,t)}function Ul(){return(pt&(xa|Pi))===Ra?(Bu(0),!1):!0}function D1(){if(lt!==null){if(qt===si)var e=lt.return;else e=lt,Ar(),uc(e),M2=null,Qp=0,e=lt;for(;e!==null;)wg(e.alternate,e),e=e.return;lt=null}}function Sc(e,t){e&127&&(_h=t),e&4194048&&(Vs=t),e&62914560&&(j7=t),e&2080374784&&(q7=t)}function Nu(e,t){un&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",rt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",rt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",rt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",rt,"primary-light"));var a=La;if(La=ra(),tt!==0&&0<a){if(Di(tt),Sn===W4||Sn===zf)m3(a,La,t,jn);else{var o=La,r=jn;if(un&&!(o<=a)){var d=(t&738197653)===t?"tertiary-dark":"primary-dark",p=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,p,a,o,mt,rt,d)):console.timeStamp(p,a,o,mt,rt,d)}}Sc(tt,La)}if(a=jn,jn=null,t&127){jn=Up,r=0<=Nc&&Nc<_h?_h:Nc,o=0<=xh&&xh<_h?_h:xh,d=0<=o?o:0<=r?r:La,0<=R4?(Di(2),g3(R4,d,t,a)):q4&127,a=r;var v=o,T=Bp,_=0<A2,H=Mf===Np,R=Mf===G4;if(r=La,o=Up,d=kb,p=Xb,un){if(mt="Blocking",0<a?a>r&&(a=r):a=r,0<v?v>a&&(v=a):v=a,T!==null&&a>v){var D=_?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+T,v,a,mt,rt,D)):console.timeStamp(_?"Consecutive":"Event: "+T,v,a,mt,rt,D)}r>a&&(v=H?"error":(t&738197653)===t?"tertiary-light":"primary-light",H=R?"Promise Resolved":H?"Cascading Update":5<r-a?"Update Blocked":"Update",R=[],p!=null&&R.push(["Component name",p]),d!=null&&R.push(["Method name",d]),a={start:a,end:r,detail:{devtools:{properties:R,track:mt,trackGroup:rt,color:v}}},o?o.run(performance.measure.bind(performance,H,a)):performance.measure(H,a))}Nc=-1.1,Mf=0,Xb=kb=null,R4=-1.1,A2=xh,xh=-1.1,_h=ra()}if(t&4194048&&(jn=Hp,r=0<=Ys&&Ys<Vs?Vs:Ys,a=0<=Fu&&Fu<Vs?Vs:Fu,o=0<=Cf&&Cf<Vs?Vs:Cf,d=0<=o?o:0<=a?a:La,0<=j4?(Di(256),g3(j4,d,t,jn)):q4&4194048,R=o,v=Mh,T=0<Df,_=Qb===G4,d=La,o=Hp,p=G7,H=R7,un&&(mt="Transition",0<a?a>d&&(a=d):a=d,0<r?r>a&&(r=a):r=a,0<R?R>r&&(R=r):R=r,r>R&&v!==null&&(D=T?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+v,R,r,mt,rt,D)):console.timeStamp(T?"Consecutive":"Event: "+v,R,r,mt,rt,D)),a>r&&(o?o.run(console.timeStamp.bind(console,"Action",r,a,mt,rt,"primary-dark")):console.timeStamp("Action",r,a,mt,rt,"primary-dark")),d>a&&(r=_?"Promise Resolved":5<d-a?"Update Blocked":"Update",R=[],H!=null&&R.push(["Component name",H]),p!=null&&R.push(["Method name",p]),a={start:a,end:d,detail:{devtools:{properties:R,track:mt,trackGroup:rt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Fu=Ys=-1.1,Qb=0,j4=-1.1,Df=Cf,Cf=-1.1,Vs=ra()),t&62914560&&q4&62914560&&(Di(4194304),Lm(j7,La)),t&2080374784&&q4&2080374784&&(Di(268435456),Lm(q7,La)),a=e.timeoutHandle,a!==Yh&&(e.timeoutHandle=Yh,bM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Bo=0,D1(),Kt=e,lt=a=yu(e.current,null),tt=t,qt=si,eu=null,Nf=!1,L2=Hn(e,t),r6=!1,Sn=Js,Gh=ri=f6=Bf=Uf=0,Yl=ty=null,nv=!1,t&8&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)r=31-Ta(o),d=1<<r,t|=e[r],o&=~d;return Bc=t,V0(),e=z7(),1e3<e-O7&&(F.recentlyCreatedOwnerStacks=0,O7=e),zo.discardPendingWarnings(),a}function Vi(e,t){Ve=null,F.H=Fp,F.getCurrentStack=null,ju=!1,gl=null,t===x2||t===X4?(t=us(),qt=Pp):t===Fb?(t=us(),qt=L9):qt=t===i6?s6:t!==null&&typeof t=="object"&&typeof t.then=="function"?ey:ev,eu=t;var a=lt;a===null?(Sn=Wp,jd(e,Xa(t,e.current))):a.mode&Pe&&K0(a)}function Hg(){var e=Ii.current;return e===null?!0:(tt&4194048)===tt?$u===null:(tt&62914560)===tt||tt&536870912?e===$u:!1}function O1(){var e=F.H;return F.H=Fp,e===null?Fp:e}function Lg(){var e=F.A;return F.A=uM,e}function Qr(e){jn===null&&(jn=e._debugTask==null?null:e._debugTask)}function Zr(){Sn=zf,Nf||(tt&4194048)!==tt&&Ii.current!==null||(L2=!0),!(Uf&134217727)&&!(Bf&134217727)||Kt===null||li(Kt,tt,ri,!1)}function Jr(e,t,a){var o=pt;pt|=xa;var r=O1(),d=Lg();if(Kt!==e||tt!==t){if(Vu){var p=e.memoizedUpdaters;0<p.size&&(Fr(e,tt),p.clear()),ol(e,t)}ny=null,Nu(e,t)}t=!1,p=Sn;e:do try{if(qt!==si&<!==null){var v=lt,T=eu;switch(qt){case s6:D1(),p=P4;break e;case Pp:case Hh:case Lh:case ey:Ii.current===null&&(t=!0);var _=qt;if(qt=si,eu=null,Kr(e,v,T,_),a&&L2){p=Js;break e}break;default:_=qt,qt=si,eu=null,Kr(e,v,T,_)}}Gg(),p=Sn;break}catch(H){Vi(e,H)}while(!0);return t&&e.shellSuspendCounter++,Ar(),pt=o,F.H=r,F.A=d,lt===null&&(Kt=null,tt=0,V0()),p}function Gg(){for(;lt!==null;)z1(lt)}function Eo(e,t){var a=pt;pt|=xa;var o=O1(),r=Lg();if(Kt!==e||tt!==t){if(Vu){var d=e.memoizedUpdaters;0<d.size&&(Fr(e,tt),d.clear()),ol(e,t)}ny=null,lv=ca()+j9,Nu(e,t)}else L2=Hn(e,t);e:do try{if(qt!==si&<!==null)t:switch(t=lt,d=eu,qt){case ev:qt=si,eu=null,Kr(e,t,d,ev);break;case Hh:case Lh:if(Km(d)){qt=si,eu=null,Rg(t);break}t=function(){qt!==Hh&&qt!==Lh||Kt!==e||(qt=tv),fl(e)},d.then(t,t);break e;case Pp:qt=tv;break e;case L9:qt=c6;break e;case tv:Km(d)?(qt=si,eu=null,Rg(t)):(qt=si,eu=null,Kr(e,t,d,tv));break;case c6:var p=null;switch(lt.tag){case 26:p=lt.memoizedState;case 5:case 27:var v=lt;if(p?it(p):v.stateNode.complete){qt=si,eu=null;var T=v.sibling;if(T!==null)lt=T;else{var _=v.return;_!==null?(lt=_,Id(_)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}qt=si,eu=null,Kr(e,t,d,c6);break;case ey:qt=si,eu=null,Kr(e,t,d,ey);break;case s6:D1(),Sn=P4;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?Gg():Gn();break}catch(H){Vi(e,H)}while(!0);return Ar(),F.H=o,F.A=r,pt=a,lt!==null?Js:(Kt=null,tt=0,V0(),Sn)}function Gn(){for(;lt!==null&&!i2();)z1(lt)}function z1(e){var t=e.alternate;(e.mode&Pe)!==Ge?(ro(e),t=fe(e,kd,t,e,Bc),K0(e)):t=fe(e,kd,t,e,Bc),e.memoizedProps=e.pendingProps,t===null?Id(e):lt=t}function Rg(e){var t=fe(e,oa,e);e.memoizedProps=e.pendingProps,t===null?Id(e):lt=t}function oa(e){var t=e.alternate,a=(e.mode&Pe)!==Ge;switch(a&&ro(e),e.tag){case 15:case 0:t=hg(t,e,e.pendingProps,e.type,void 0,tt);break;case 11:t=hg(t,e,e.pendingProps,e.type.render,e.ref,tt);break;case 5:uc(e);default:wg(t,e),e=lt=qm(e,Bc),t=kd(t,e,Bc)}return a&&K0(e),t}function Kr(e,t,a,o){Ar(),uc(t),M2=null,Qp=0;var r=t.return;try{if(ug(e,r,t,a,tt)){Sn=Wp,jd(e,Xa(a,e.current)),lt=null;return}}catch(d){if(r!==null)throw lt=r,d;Sn=Wp,jd(e,Xa(a,e.current)),lt=null;return}t.flags&32768?(ct||o===ev?e=!0:L2||tt&536870912?e=!1:(Nf=e=!0,(o===Hh||o===Lh||o===Pp||o===ey)&&(o=Ii.current,o!==null&&o.tag===13&&(o.flags|=16384))),jg(t,e)):Id(t)}function Id(e){var t=e;do{if(t.flags&32768){jg(t,Nf);return}var a=t.alternate;if(e=t.return,ro(t),a=fe(t,vg,a,t,Bc),(t.mode&Pe)!==Ge&&Sd(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);Sn===Js&&(Sn=H9)}function jg(e,t){do{var a=z3(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&Pe)!==Ge){Sd(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);Sn=P4,lt=null}function Qt(e,t,a,o,r,d,p,v,T,_,H,R,D,J){e.cancelPendingCommit=null;do Wd();while(ga!==Lf);if(zo.flushLegacyContextWarning(),zo.flushPendingUnsafeLifecycleWarnings(),(pt&(xa|Pi))!==Ra)throw Error("Should not already be working.");if(Di(a),_===Bh?Hm(D,J,a,jn):o!==null?db(D,J,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,jn):fb(D,J,a,jn),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(d=t.lanes|t.childLanes,d|=Rb,ym(e,a,d,p,v,T),e===Kt&&(lt=Kt=null,tt=0),G2=t,Gf=e,Bo=a,m6=d,p6=r,Q9=o,g6=J,Z9=R,Ho=iv,J9=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$r(Ns,function(){return cy=window.event,Ho===iv&&(Ho=h6),Pd(),null})):(e.callbackNode=null,e.callbackPriority=0),qs=null,xf=ra(),R!==null&&hb(J,xf,R,jn),o=(t.flags&13878)!==0,t.subtreeFlags&13878||o){o=F.T,F.T=null,r=_t.p,_t.p=Jn,p=pt,pt|=Pi;try{pb(e,t,a)}finally{pt=p,_t.p=r,F.T=o}}ga=V9,Pa(),Uu(),qg()}}function Pa(){if(ga===V9){ga=Lf;var e=Gf,t=G2,a=Bo,o=(t.flags&13878)!==0;if(t.subtreeFlags&13878||o){o=F.T,F.T=null;var r=_t.p;_t.p=Jn;var d=pt;pt|=Pi;try{B2=a,H2=e,ls(),Jd(t,e),H2=B2=null,a=M6;var p=R0(e.containerInfo),v=a.focusedElem,T=a.selectionRange;if(p!==v&&v&&v.ownerDocument&&r3(v.ownerDocument.documentElement,v)){if(T!==null&&Nm(v)){var _=T.start,H=T.end;if(H===void 0&&(H=_),"selectionStart"in v)v.selectionStart=_,v.selectionEnd=Math.min(H,v.value.length);else{var R=v.ownerDocument||document,D=R&&R.defaultView||window;if(D.getSelection){var J=D.getSelection(),se=v.textContent.length,de=Math.min(T.start,se),Wt=T.end===void 0?de:Math.min(T.end,se);!J.extend&&de>Wt&&(p=Wt,Wt=de,de=p);var ft=s3(v,de),C=s3(v,Wt);if(ft&&C&&(J.rangeCount!==1||J.anchorNode!==ft.node||J.anchorOffset!==ft.offset||J.focusNode!==C.node||J.focusOffset!==C.offset)){var O=R.createRange();O.setStart(ft.node,ft.offset),J.removeAllRanges(),de>Wt?(J.addRange(O),J.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),J.addRange(O))}}}}for(R=[],J=v;J=J.parentNode;)J.nodeType===1&&R.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<R.length;v++){var B=R[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Sv=!!x6,M6=x6=null}finally{pt=d,_t.p=r,F.T=o}}e.current=t,ga=Y9}}function Uu(){if(ga===Y9){ga=Lf;var e=J9;if(e!==null){xf=ra();var t=js,a=xf;!un||a<=t||console.timeStamp(e,t,a,mt,rt,"secondary-light")}e=Gf,t=G2,a=Bo;var o=(t.flags&8772)!==0;if(t.subtreeFlags&8772||o){o=F.T,F.T=null;var r=_t.p;_t.p=Jn;var d=pt;pt|=Pi;try{B2=a,H2=e,ls(),A1(e,t.alternate,t),H2=B2=null}finally{pt=d,_t.p=r,F.T=o}}e=g6,t=Z9,js=ra(),e=t===null?e:xf,t=js,a=Ho===d6,o=jn,qs!==null?p3(e,t,qs,!1,o):!un||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,mt,rt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,mt,rt,a?"error":"secondary-dark")),ga=k9}}function qg(){if(ga===X9||ga===k9){if(ga===X9){var e=js;js=ra();var t=js,a=Ho===d6;!un||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,mt,rt,a?" error":"secondary-light"),Ho!==d6&&(Ho=q9)}ga=Lf,u2(),e=Gf;var o=G2;t=Bo,a=Q9;var r=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;r?ga=uv:(ga=Lf,G2=Gf=null,Vg(e,e.pendingLanes),Rh=0,ly=null);var d=e.pendingLanes;if(d===0&&(Hf=null),r||B1(e),d=ba(t),o=o.stateNode,Zn&&typeof Zn.onCommitFiberRoot=="function")try{var p=(o.current.flags&128)===128;switch(d){case Jn:var v=yp;break;case Aa:v=o2;break;case Ha:v=Ns;break;case Dc:v=c2;break;default:v=Ns}Zn.onCommitFiberRoot(Us,o,v,p)}catch(R){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",R))}if(Vu&&e.memoizedUpdaters.clear(),Ug(),a!==null){p=F.T,v=_t.p,_t.p=Jn,F.T=null;try{var T=e.onRecoverableError;for(o=0;o<a.length;o++){var _=a[o],H=V3(_.stack);fe(_.source,T,_.value,H)}}finally{F.T=p,_t.p=v}}Bo&3&&Wd(),fl(e),d=e.pendingLanes,t&261930&&d&42?(Y4=!0,e===y6?ay++:(ay=0,y6=e)):ay=0,r||Sc(t,js),Bu(0)}}function V3(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Vg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bd(t)))}function Wd(){return Pa(),Uu(),qg(),Pd()}function Pd(){if(ga!==uv)return!1;var e=Gf,t=m6;m6=0;var a=ba(Bo),o=Ha>a?Ha:a;a=F.T;var r=_t.p;try{_t.p=o,F.T=null;var d=p6;p6=null,o=Gf;var p=Bo;if(ga=Lf,G2=Gf=null,Bo=0,(pt&(xa|Pi))!==Ra)throw Error("Cannot flush passive effects while already rendering.");Di(p),v6=!0,ov=!1;var v=0;if(qs=null,v=ca(),Ho===q9)Lm(js,v,Px);else{var T=js,_=v,H=Ho===h6;!un||_<=T||(jn?jn.run(console.timeStamp.bind(console,H?"Waiting for Paint":"Waiting",T,_,mt,rt,"secondary-light")):console.timeStamp(H?"Waiting for Paint":"Waiting",T,_,mt,rt,"secondary-light"))}T=pt,pt|=Pi;var R=o.current;ls(),M1(R);var D=o.current;R=g6,ls(),Og(o,D,p,d,R),B1(o),pt=T;var J=ca();if(D=v,R=jn,qs!==null?p3(D,J,qs,!0,R):!un||J<=D||(R?R.run(console.timeStamp.bind(console,"Remaining Effects",D,J,mt,rt,"secondary-dark")):console.timeStamp("Remaining Effects",D,J,mt,rt,"secondary-dark")),Sc(p,J),Bu(0,!1),ov?o===ly?Rh++:(Rh=0,ly=o):Rh=0,ov=v6=!1,Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(Us,o)}catch(de){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",de))}var se=o.current.stateNode;return se.effectDuration=0,se.passiveEffectDuration=0,!0}finally{_t.p=r,F.T=a,Vg(e,t)}}function el(e,t,a){t=Xa(a,t),E3(t),t=r1(e.stateNode,t,2),e=Su(e,t,2),e!==null&&(su(e,2),fl(e))}function Fe(e,t,a){if(R2=!1,e.tag===3)el(e,e,a);else{for(;t!==null;){if(t.tag===3){el(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Hf===null||!Hf.has(o))){e=Xa(a,e),E3(e),a=f1(2),o=Su(t,a,2),o!==null&&(d1(a,o,t,e),su(o,2),fl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
251
|
+
|
|
252
|
+
Error message:
|
|
253
|
+
|
|
254
|
+
%s`,a)}}function N1(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new cM;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(r6=!0,r.add(a),o=rl.bind(null,e,t,a),Vu&&Fr(e,a),t.then(o,o))}function rl(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,a&127?0>Nc&&(_h=Nc=ra(),Up=L4("Promise Resolved"),Mf=G4):a&4194048&&0>Fu&&(Vs=Fu=ra(),Hp=L4("Promise Resolved"),Qb=G4),Bg()&&F.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
255
|
+
|
|
256
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
257
|
+
|
|
258
|
+
act(() => {
|
|
259
|
+
/* finish loading suspended data */
|
|
260
|
+
});
|
|
261
|
+
/* assert on the output */
|
|
262
|
+
|
|
263
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Kt===e&&(tt&a)===a&&(Sn===zf||Sn===W4&&(tt&62914560)===tt&&ca()-av<R9?(pt&xa)===Ra&&Nu(e,0):f6|=a,Gh===tt&&(Gh=0)),fl(e)}function Yg(e,t){t===0&&(t=cr()),e=za(e,t),e!==null&&(su(e,t),fl(e))}function To(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yg(e,a)}function Ts(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),Yg(e,a)}function Yi(e,t,a){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var o=e,r=t,d=r.type===al;d=a||d,r.tag!==22?r.flags&67108864?d&&fe(r,U1,o,r):Yi(o,r,d):r.memoizedState===null&&(d&&r.flags&8192?fe(r,U1,o,r):r.subtreeFlags&67108864&&fe(r,Yi,o,r,d)),t=t.sibling}}function U1(e,t){ht(!0);try{_1(t),Ng(t),Dg(e,t.alternate,t,!1),$d(e,t,0,null,!1,0)}finally{ht(!1)}}function B1(e){var t=!0;e.current.mode&(pl|Oo)||(t=!1),Yi(e,e.current,t)}function ii(e){if((pt&xa)===Ra){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=ce(e)||"ReactComponent",cv!==null){if(cv.has(t))return;cv.add(t)}else cv=new Set([t]);fe(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Fr(e,t){Vu&&e.memoizedUpdaters.forEach(function(a){_n(e,a,t)})}function $r(e,t){var a=F.actQueue;return a!==null?(a.push(t),fM):pp(e,t)}function eh(e){Bg()&&F.actQueue===null&&fe(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
264
|
+
|
|
265
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
266
|
+
|
|
267
|
+
act(() => {
|
|
268
|
+
/* fire events that update state */
|
|
269
|
+
});
|
|
270
|
+
/* assert on the output */
|
|
271
|
+
|
|
272
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ce(e))})}function fl(e){e!==j2&&e.next===null&&(j2===null?sv=j2=e:j2=j2.next=e),rv=!0,F.actQueue!==null?b6||(b6=!0,k3()):w6||(w6=!0,k3())}function Bu(e,t){if(!S6&&rv){S6=!0;do for(var a=!1,o=sv;o!==null;){if(e!==0){var r=o.pendingLanes;if(r===0)var d=0;else{var p=o.suspendedLanes,v=o.pingedLanes;d=(1<<31-Ta(42|e)+1)-1,d&=r&~(p&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,th(o,d))}else d=tt,d=Vc(o,o===Kt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Yh),!(d&3)||Hn(o,d)||(a=!0,th(o,d));o=o.next}while(a);S6=!1}}function Y3(){cy=window.event,H1()}function H1(){rv=b6=w6=!1;var e=0;Rf!==0&&Zg()&&(e=Rf);for(var t=ca(),a=null,o=sv;o!==null;){var r=o.next,d=Ir(o,t);d===0?(o.next=null,a===null?sv=r:a.next=r,r===null&&(j2=a)):(a=o,(e!==0||d&3)&&(rv=!0)),o=r}ga!==Lf&&ga!==uv||Bu(e),Rf!==0&&(Rf=0)}function Ir(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var p=31-Ta(d),v=1<<p,T=r[p];T===-1?(!(v&a)||v&o)&&(r[p]=S0(v,t)):T<=t&&(e.expiredLanes|=v),d&=~v}if(t=Kt,a=tt,a=Vc(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Yh),o=e.callbackNode,a===0||e===t&&(qt===Hh||qt===Lh)||e.cancelPendingCommit!==null)return o!==null&&L1(o),e.callbackNode=null,e.callbackPriority=0;if(!(a&3)||Hn(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&o!==E6)L1(o);else return t;switch(ba(a)){case Jn:case Aa:a=o2;break;case Ha:a=Ns;break;case Dc:a=c2;break;default:a=Ns}return o=kg.bind(null,e),F.actQueue!==null?(F.actQueue.push(o),a=E6):a=pp(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&L1(o),e.callbackPriority=2,e.callbackNode=null,2}function kg(e,t){if(Y4=V4=!1,cy=window.event,ga!==Lf&&ga!==uv)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ho===iv&&(Ho=h6),Wd()&&e.callbackNode!==a)return null;var o=tt;return o=Vc(e,e===Kt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Yh),o===0?null:(R3(e,o,t),Ir(e,ca()),e.callbackNode!=null&&e.callbackNode===a?kg.bind(null,e):null)}function th(e,t){if(Wd())return null;V4=Y4,Y4=!1,R3(e,t,!0)}function L1(e){e!==E6&&e!==null&&l2(e)}function k3(){F.actQueue!==null&&F.actQueue.push(function(){return H1(),null}),SM(function(){(pt&(xa|Pi))!==Ra?pp(yp,Y3):H1()})}function Xg(){if(Rf===0){var e=Ch;e===0&&(e=pf,pf<<=1,!(pf&261888)&&(pf=256)),Rf=e}return Rf}function vt(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(dt(e,"action"),rd(""+e))}function Gt(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ot(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var d=vt((r[ll]||null).action),p=o.submitter;p&&(t=(t=p[ll]||null)?vt(t.formAction):p.getAttribute("formAction"),t!==null&&(d=t,p=null));var v=new D4("action","action",null,o,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Rf!==0){var T=p?Gt(r,p):new FormData(r),_={pending:!0,data:T,method:r.method,action:d};Object.freeze(_),wo(a,_,null,T)}}else typeof d=="function"&&(v.preventDefault(),T=p?Gt(r,p):new FormData(r),_={pending:!0,data:T,method:r.method,action:d},Object.freeze(_),wo(a,_,d,T))},currentTarget:r}]})}}function at(e,t,a){e.currentTarget=a;try{t(e)}catch(o){Bb(o)}e.currentTarget=null}function Ot(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var r=void 0,d=o.event;if(o=o.listeners,t)for(var p=o.length-1;0<=p;p--){var v=o[p],T=v.instance,_=v.currentTarget;if(v=v.listener,T!==r&&d.isPropagationStopped())break e;T!==null?fe(T,at,d,v,_):at(d,v,_),r=T}else for(p=0;p<o.length;p++){if(v=o[p],T=v.instance,_=v.currentTarget,v=v.listener,T!==r&&d.isPropagationStopped())break e;T!==null?fe(T,at,d,v,_):at(d,v,_),r=T}}}}function Le(e,t){T6.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[Bs];a===void 0&&(a=t[Bs]=new Set);var o=e+"__bubble";a.has(o)||(G1(t,e,2,!1),a.add(o))}function Hu(e,t,a){T6.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),G1(a,e,o,t)}function Ec(e){if(!e[fv]){e[fv]=!0,A4.forEach(function(a){a!=="selectionchange"&&(T6.has(a)||Hu(a,!1,e),Hu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fv]||(t[fv]=!0,Hu("selectionchange",!1,t))}}function G1(e,t,a,o){switch(I1(t)){case Jn:var r=ip;break;case Aa:r=Ea;break;default:r=up}a=r.bind(null,t,a,e),r=void 0,!Ab||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function ki(e,t,a,o,r){var d=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var v=o.stateNode.containerInfo;if(v===r)break;if(p===4)for(p=o.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===r)return;p=p.return}for(;v!==null;){if(p=Ai(v),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){o=d=p;continue e}v=v.parentNode}}o=o.return}B0(function(){var _=d,H=Mi(a),R=[];e:{var D=D7.get(e);if(D!==void 0){var J=D4,se=e;switch(e){case"keypress":if(fd(a)===0)break e;case"keydown":case"keyup":J=xx;break;case"focusin":se="focus",J=Cb;break;case"focusout":se="blur",J=Cb;break;case"beforeblur":case"afterblur":J=Cb;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=g7;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=mx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=Dx;break;case _7:case x7:case M7:J=yx;break;case C7:J=zx;break;case"scroll":case"scrollend":J=dx;break;case"wheel":J=Ux;break;case"copy":case"cut":case"paste":J=wx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=y7;break;case"toggle":case"beforetoggle":J=Hx}var de=(t&4)!==0,Wt=!de&&(e==="scroll"||e==="scrollend"),ft=de?D!==null?D+"Capture":null:D;de=[];for(var C=_,O;C!==null;){var B=C;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||ft===null||(B=gu(C,ft),B!=null&&de.push(Zt(C,B,O))),Wt)break;C=C.return}0<de.length&&(D=new J(D,se,null,a,H),R.push({event:D,listeners:de}))}}if(!(t&7)){e:{if(D=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",D&&a!==Ep&&(se=a.relatedTarget||a.fromElement)&&(Ai(se)||se[Do]))break e;if((J||D)&&(D=H.window===H?H:(D=H.ownerDocument)?D.defaultView||D.parentWindow:window,J?(se=a.relatedTarget||a.toElement,J=_,se=se?Ai(se):null,se!==null&&(Wt=P(se),de=se.tag,se!==Wt||de!==5&&de!==27&&de!==6)&&(se=null)):(J=null,se=_),J!==se)){if(de=g7,B="onMouseLeave",ft="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(de=y7,B="onPointerLeave",ft="onPointerEnter",C="pointer"),Wt=J==null?D:Jl(J),O=se==null?D:Jl(se),D=new de(B,C+"leave",J,a,H),D.target=Wt,D.relatedTarget=O,B=null,Ai(H)===_&&(de=new de(ft,C+"enter",se,a,H),de.target=O,de.relatedTarget=Wt,B=de),Wt=B,J&&se)t:{for(de=As,ft=J,C=se,O=0,B=ft;B;B=de(B))O++;B=0;for(var W=C;W;W=de(W))B++;for(;0<O-B;)ft=de(ft),O--;for(;0<B-O;)C=de(C),B--;for(;O--;){if(ft===C||C!==null&&ft===C.alternate){de=ft;break t}ft=de(ft),C=de(C)}de=null}else de=null;J!==null&&R1(R,D,J,de,!1),se!==null&&Wt!==null&&R1(R,Wt,se,de,!0)}}e:{if(D=_?Jl(_):window,J=D.nodeName&&D.nodeName.toLowerCase(),J==="select"||J==="input"&&D.type==="file")var re=Wo;else if(Dm(D))if(T7)re=gd;else{re=Om;var Ye=rb}else J=D.nodeName,!J||J.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?_&&mu(_.elementType)&&(re=Wo):re=zm;if(re&&(re=re(e,_))){hd(R,re,a,H);break e}Ye&&Ye(e,D,_),e==="focusout"&&_&&D.type==="number"&&_.memoizedProps.value!=null&&bm(D,"number",D.value)}switch(Ye=_?Jl(_):window,e){case"focusin":(Dm(Ye)||Ye.contentEditable==="true")&&(p2=Ye,Ob=_,Dp=null);break;case"focusout":Dp=Ob=p2=null;break;case"mousedown":zb=!0;break;case"contextmenu":case"mouseup":case"dragend":zb=!1,f3(R,a,H);break;case"selectionchange":if(jx)break;case"keydown":case"keyup":f3(R,a,H)}var Me;if(Db)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else g2?wr(e,a)&&(we="onCompositionEnd"):e==="keydown"&&a.keyCode===v7&&(we="onCompositionStart");we&&(w7&&a.locale!=="ko"&&(g2||we!=="onCompositionStart"?we==="onCompositionEnd"&&g2&&(Me=Kc()):(Sf=H,_b="value"in Sf?Sf.value:Sf.textContent,g2=!0)),Ye=Xi(_,we),0<Ye.length&&(we=new p7(we,e,null,a,H),R.push({event:we,listeners:Ye}),Me?we.data=Me:(Me=co(a),Me!==null&&(we.data=Me)))),(Me=Gx?Cm(e,a):H0(e,a))&&(we=Xi(_,"onBeforeInput"),0<we.length&&(Ye=new Sx("onBeforeInput","beforeinput",null,a,H),R.push({event:Ye,listeners:we}),Ye.data=Me)),ot(R,e,_,a,H)}Ot(R,t)})}function Zt(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xi(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,d=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||d===null||(r=gu(e,a),r!=null&&o.unshift(Zt(e,r,d)),r=gu(e,t),r!=null&&o.push(Zt(e,r,d))),e.tag===3)return o;e=e.return}return[]}function As(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function R1(e,t,a,o,r){for(var d=t._reactName,p=[];a!==null&&a!==o;){var v=a,T=v.alternate,_=v.stateNode;if(v=v.tag,T!==null&&T===o)break;v!==5&&v!==26&&v!==27||_===null||(T=_,r?(_=gu(a,d),_!=null&&p.unshift(Zt(a,_,T))):r||(_=gu(a,d),_!=null&&p.push(Zt(a,_,T)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}function tl(e,t){u3(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||h7||(h7=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Yu,possibleRegistrationNames:wf};mu(e)||typeof t.is=="string"||sb(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function fn(e,t,a,o){t!==a&&(a=Qi(a),Qi(t)!==a&&(o[e]=t))}function nh(e,t,a){t.forEach(function(o){a[Ao(o)]=o==="style"?Tc(e):e.getAttribute(o)})}function dn(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function j1(e,t){return e=e.namespaceURI===Je||e.namespaceURI===$e?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Qi(e){return Va(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",io(e)),Ya(e)),(typeof e=="string"?e:""+e).replace(dM,`
|
|
273
|
+
`).replace(hM,"")}function Qg(e,t){return t=Qi(t),Qi(e)===t}function At(e,t,a,o,r,d){switch(a){case"children":typeof o=="string"?(sd(o,t,!1),t==="body"||t==="textarea"&&o===""||Jc(e,o)):(typeof o=="number"||typeof o=="bigint")&&(sd(""+o,t,!1),t!=="body"&&Jc(e,""+o));break;case"className":ud(e,"class",o);break;case"tabIndex":ud(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ud(e,a,o);break;case"style":_m(e,o,d);break;case"data":if(t!=="object"){ud(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}dt(o,a),o=rd(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o=="function"&&(r.encType==null&&r.method==null||mv||(mv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||hv||(hv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||dv?t!=="button"||r.type==null||r.type==="submit"||dv?typeof o=="function"&&(r.name==null||W9||(W9=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||mv||(mv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||hv||(hv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(dv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(dv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&At(e,t,"name",r.name,r,null),At(e,t,"formEncType",r.formEncType,r,null),At(e,t,"formMethod",r.formMethod,r,null),At(e,t,"formTarget",r.formTarget,r,null)):(At(e,t,"encType",r.encType,r,null),At(e,t,"method",r.method,r,null),At(e,t,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}dt(o,a),o=rd(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!="function"&&dn(a,o),e.onclick=Fl);break;case"onScroll":o!=null&&(typeof o!="function"&&dn(a,o),Le("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!="function"&&dn(a,o),Le("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}dt(o,a),a=rd(""+o),e.setAttributeNS(jh,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?(dt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||gv[a]||(gv[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?(dt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?(dt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):(dt(o,a),e.setAttribute(a,o));break;case"popover":Le("beforetoggle",e),Le("toggle",e),T0(e,"popover",o);break;case"xlinkActuate":fu(e,jh,"xlink:actuate",o);break;case"xlinkArcrole":fu(e,jh,"xlink:arcrole",o);break;case"xlinkRole":fu(e,jh,"xlink:role",o);break;case"xlinkShow":fu(e,jh,"xlink:show",o);break;case"xlinkTitle":fu(e,jh,"xlink:title",o);break;case"xlinkType":fu(e,jh,"xlink:type",o);break;case"xmlBase":fu(e,A6,"xml:base",o);break;case"xmlLang":fu(e,A6,"xml:lang",o);break;case"xmlSpace":fu(e,A6,"xml:space",o);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),T0(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":P9||o==null||typeof o!="object"||(P9=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=l3(a),T0(e,a,o)):Yu.hasOwnProperty(a)&&o!=null&&typeof o!="function"&&dn(a,o)}}function Wr(e,t,a,o,r,d){switch(a){case"style":_m(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o=="string"?Jc(e,o):(typeof o=="number"||typeof o=="bigint")&&Jc(e,""+o);break;case"onScroll":o!=null&&(typeof o!="function"&&dn(a,o),Le("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!="function"&&dn(a,o),Le("scrollend",e));break;case"onClick":o!=null&&(typeof o!="function"&&dn(a,o),e.onclick=Fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Yu.hasOwnProperty(a))o!=null&&typeof o!="function"&&dn(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),d=e[ll]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,r),typeof o=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,r);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):T0(e,a,o)}}}function an(e,t,a){switch(tl(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var o=!1,r=!1,d;for(d in a)if(a.hasOwnProperty(d)){var p=a[d];if(p!=null)switch(d){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:At(e,t,d,p,a,null)}}r&&At(e,t,"srcSet",a.srcSet,a,null),o&&At(e,t,"src",a.src,a,null);return;case"input":Yc("input",a),Le("invalid",e);var v=d=p=r=null,T=null,_=null;for(o in a)if(a.hasOwnProperty(o)){var H=a[o];if(H!=null)switch(o){case"name":r=H;break;case"type":p=H;break;case"checked":T=H;break;case"defaultChecked":_=H;break;case"value":d=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:At(e,t,o,H,a,null)}}ka(e,a),x0(e,d,v,T,_,p,r,!1);return;case"select":Yc("select",a),Le("invalid",e),o=p=d=null;for(r in a)if(a.hasOwnProperty(r)&&(v=a[r],v!=null))switch(r){case"value":d=v;break;case"defaultValue":p=v;break;case"multiple":o=v;default:At(e,t,r,v,a,null)}M0(e,a),t=d,a=p,e.multiple=!!o,t!=null?du(e,!!o,t,!1):a!=null&&du(e,!!o,a,!0);return;case"textarea":Yc("textarea",a),Le("invalid",e),d=r=o=null;for(p in a)if(a.hasOwnProperty(p)&&(v=a[p],v!=null))switch(p){case"value":o=v;break;case"defaultValue":r=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:At(e,t,p,v,a,null)}kc(e,a),hr(e,o,r,d);return;case"option":a3(e,a);for(T in a)if(a.hasOwnProperty(T)&&(o=a[T],o!=null))switch(T){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:At(e,t,T,o,a,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(o=0;o<iy.length;o++)Le(iy[o],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in a)if(a.hasOwnProperty(_)&&(o=a[_],o!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:At(e,t,_,o,a,null)}return;default:if(mu(t)){for(H in a)a.hasOwnProperty(H)&&(o=a[H],o!==void 0&&Wr(e,t,H,o,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(o=a[v],o!=null&&At(e,t,v,o,a,null))}function Qn(e,t,a,o){switch(tl(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,d=null,p=null,v=null,T=null,_=null,H=null;for(J in a){var R=a[J];if(a.hasOwnProperty(J)&&R!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":T=R;default:o.hasOwnProperty(J)||At(e,t,J,null,o,R)}}for(var D in o){var J=o[D];if(R=a[D],o.hasOwnProperty(D)&&(J!=null||R!=null))switch(D){case"type":d=J;break;case"name":r=J;break;case"checked":_=J;break;case"defaultChecked":H=J;break;case"value":p=J;break;case"defaultValue":v=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:J!==R&&At(e,t,D,J,o,R)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||I9||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),I9=!0),!t||o||$9||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),$9=!0),Fo(e,p,v,T,_,H,d,r);return;case"select":J=p=v=D=null;for(d in a)if(T=a[d],a.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":J=T;default:o.hasOwnProperty(d)||At(e,t,d,null,o,T)}for(r in o)if(d=o[r],T=a[r],o.hasOwnProperty(r)&&(d!=null||T!=null))switch(r){case"value":D=d;break;case"defaultValue":v=d;break;case"multiple":p=d;default:d!==T&&At(e,t,r,d,o,T)}o=v,t=p,a=J,D!=null?du(e,!!t,D,!1):!!a!=!!t&&(o!=null?du(e,!!t,o,!0):du(e,!!t,t?[]:"",!1));return;case"textarea":J=D=null;for(v in a)if(r=a[v],a.hasOwnProperty(v)&&r!=null&&!o.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:At(e,t,v,null,o,r)}for(p in o)if(r=o[p],d=a[p],o.hasOwnProperty(p)&&(r!=null||d!=null))switch(p){case"value":D=r;break;case"defaultValue":J=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==d&&At(e,t,p,r,o,d)}Xc(e,D,J);return;case"option":for(var se in a)if(D=a[se],a.hasOwnProperty(se)&&D!=null&&!o.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:At(e,t,se,null,o,D)}for(T in o)if(D=o[T],J=a[T],o.hasOwnProperty(T)&&D!==J&&(D!=null||J!=null))switch(T){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:At(e,t,T,D,o,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in a)D=a[de],a.hasOwnProperty(de)&&D!=null&&!o.hasOwnProperty(de)&&At(e,t,de,null,o,D);for(_ in o)if(D=o[_],J=a[_],o.hasOwnProperty(_)&&D!==J&&(D!=null||J!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:At(e,t,_,D,o,J)}return;default:if(mu(t)){for(var Wt in a)D=a[Wt],a.hasOwnProperty(Wt)&&D!==void 0&&!o.hasOwnProperty(Wt)&&Wr(e,t,Wt,void 0,o,D);for(H in o)D=o[H],J=a[H],!o.hasOwnProperty(H)||D===J||D===void 0&&J===void 0||Wr(e,t,H,D,o,J);return}}for(var ft in a)D=a[ft],a.hasOwnProperty(ft)&&D!=null&&!o.hasOwnProperty(ft)&&At(e,t,ft,null,o,D);for(R in o)D=o[R],J=a[R],!o.hasOwnProperty(R)||D===J||D==null&&J==null||At(e,t,R,D,o,J)}function Ao(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Tc(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function Lu(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,r=o="",d;for(d in t)if(t.hasOwnProperty(d)){var p=t[d];p!=null&&typeof p!="boolean"&&p!==""&&(d.indexOf("--")===0?(Zo(p,d),o+=r+d+":"+(""+p).trim()):typeof p!="number"||p===0||pe.has(d)?(Zo(p,d),o+=r+d.replace($,"-$1").toLowerCase().replace(he,"-ms-")+":"+(""+p).trim()):o+=r+d.replace($,"-$1").toLowerCase().replace(he,"-ms-")+":"+p+"px",r=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=Qi(o),Qi(t)!==o&&(a.style=Tc(e)))}}function dl(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(dt(o,t),e===""+o)return}fn(t,e,o,d)}function q1(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}fn(t,e,o,d)}function V1(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(dt(o,a),e===""+o)return}fn(t,e,o,d)}function Pr(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(dt(o,t),e===""+o))return}fn(t,e,o,d)}function ah(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(dt(o,t),a=rd(""+o),e===a)return}fn(t,e,o,d)}function hl(e,t,a,o){for(var r={},d=new Set,p=e.attributes,v=0;v<p.length;v++)switch(p[v].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(p[v].name)}if(mu(t)){for(var T in a)if(a.hasOwnProperty(T)){var _=a[T];if(_!=null){if(Yu.hasOwnProperty(T))typeof _!="function"&&dn(T,_);else if(a.suppressHydrationWarning!==!0)switch(T){case"children":typeof _!="string"&&typeof _!="number"||fn("children",e.textContent,_,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":p=e.innerHTML,_=_?_.__html:void 0,_!=null&&(_=j1(e,_),fn(T,p,_,r));continue;case"style":d.delete(T),Lu(e,_,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(T.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",T);continue;case"className":d.delete("class"),p=dr(e,"class",_),fn("className",p,_,r);continue;default:o.context===Ks&&t!=="svg"&&t!=="math"?d.delete(T.toLowerCase()):d.delete(T),p=dr(e,T,_),fn(T,p,_,r)}}}}else for(_ in a)if(a.hasOwnProperty(_)&&(T=a[_],T!=null)){if(Yu.hasOwnProperty(_))typeof T!="function"&&dn(_,T);else if(a.suppressHydrationWarning!==!0)switch(_){case"children":typeof T!="string"&&typeof T!="number"||fn("children",e.textContent,T,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":p=e.innerHTML,T=T?T.__html:void 0,T!=null&&(T=j1(e,T),p!==T&&(r[_]={__html:p}));continue;case"className":dl(e,_,"class",T,d,r);continue;case"tabIndex":dl(e,_,"tabindex",T,d,r);continue;case"style":d.delete(_),Lu(e,T,r);continue;case"multiple":d.delete(_),fn(_,e.multiple,T,r);continue;case"muted":d.delete(_),fn(_,e.muted,T,r);continue;case"autoFocus":d.delete("autofocus"),fn(_,e.autofocus,T,r);continue;case"data":if(t!=="object"){d.delete(_),p=e.getAttribute("data"),fn(_,p,T,r);continue}case"src":case"href":if(!(T!==""||t==="a"&&_==="href"||t==="object"&&_==="data")){console.error(_==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',_,_);continue}ah(e,_,_,T,d,r);continue;case"action":case"formAction":if(p=e.getAttribute(_),typeof T=="function"){d.delete(_.toLowerCase()),_==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(p===mM){d.delete(_.toLowerCase()),fn(_,"function",T,r);continue}ah(e,_,_.toLowerCase(),T,d,r);continue;case"xlinkHref":ah(e,_,"xlink:href",T,d,r);continue;case"contentEditable":V1(e,_,"contenteditable",T,d,r);continue;case"spellCheck":V1(e,_,"spellcheck",T,d,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":V1(e,_,_,T,d,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q1(e,_,_.toLowerCase(),T,d,r);continue;case"capture":case"download":e:{v=e;var H=p=_,R=r;if(d.delete(H),v=v.getAttribute(H),v===null)switch(typeof T){case"undefined":case"function":case"symbol":break e;default:if(T===!1)break e}else if(T!=null)switch(typeof T){case"function":case"symbol":break;case"boolean":if(T===!0&&v==="")break e;break;default:if(dt(T,p),v===""+T)break e}fn(p,v,T,R)}continue;case"cols":case"rows":case"size":case"span":e:{if(v=e,H=p=_,R=r,d.delete(H),v=v.getAttribute(H),v===null)switch(typeof T){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(T)||1>T)break e}else if(T!=null)switch(typeof T){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(T)||1>T)&&(dt(T,p),v===""+T))break e}fn(p,v,T,R)}continue;case"rowSpan":Pr(e,_,"rowspan",T,d,r);continue;case"start":Pr(e,_,_,T,d,r);continue;case"xHeight":dl(e,_,"x-height",T,d,r);continue;case"xlinkActuate":dl(e,_,"xlink:actuate",T,d,r);continue;case"xlinkArcrole":dl(e,_,"xlink:arcrole",T,d,r);continue;case"xlinkRole":dl(e,_,"xlink:role",T,d,r);continue;case"xlinkShow":dl(e,_,"xlink:show",T,d,r);continue;case"xlinkTitle":dl(e,_,"xlink:title",T,d,r);continue;case"xlinkType":dl(e,_,"xlink:type",T,d,r);continue;case"xmlBase":dl(e,_,"xml:base",T,d,r);continue;case"xmlLang":dl(e,_,"xml:lang",T,d,r);continue;case"xmlSpace":dl(e,_,"xml:space",T,d,r);continue;case"inert":T!==""||gv[_]||(gv[_]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",_)),q1(e,_,_,T,d,r);continue;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){v=l3(_),p=!1,o.context===Ks&&t!=="svg"&&t!=="math"?d.delete(v.toLowerCase()):(H=_.toLowerCase(),H=Fi.hasOwnProperty(H)&&Fi[H]||null,H!==null&&H!==_&&(p=!0,d.delete(H)),d.delete(v));e:if(H=e,R=v,v=T,id(R))if(H.hasAttribute(R))H=H.getAttribute(R),dt(v,R),v=H===""+v?v:H;else{switch(typeof v){case"function":case"symbol":break e;case"boolean":if(H=R.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")break e}v=v===void 0?void 0:null}else v=void 0;p||fn(_,v,T,r)}}}return 0<d.size&&a.suppressHydrationWarning!==!0&&nh(e,d,r),Object.keys(r).length===0?null:r}function X3(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function nl(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Q3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],d=r.transferSize,p=r.initiatorType,v=r.duration;if(d&&v&&nl(p)){for(p=0,v=r.responseEnd,o+=1;o<a.length;o++){var T=a[o],_=T.startTime;if(_>v)break;var H=T.transferSize,R=T.initiatorType;H&&nl(R)&&(T=T.responseEnd,p+=H*(T<v?1:(v-_)/(T-_)))}if(--o,t+=8*(d+p)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function lh(e){return e.nodeType===9?e:e.ownerDocument}function Z3(e){switch(e){case $e:return V2;case Je:return yv;default:return Ks}}function _o(e,t){if(e===Ks)switch(t){case"svg":return V2;case"math":return yv;default:return Ks}return e===V2&&t==="foreignObject"?Ks:e}function ef(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Zg(){var e=window.event;return e&&e.type==="popstate"?e===C6?!1:(C6=e,!0):(C6=null,!1)}function Gu(){var e=window.event;return e&&e!==cy?e.type:null}function tf(){var e=window.event;return e&&e!==cy?e.timeStamp:-1.1}function J3(e){setTimeout(function(){throw e})}function K3(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function F3(){}function Y1(e,t,a,o){Qn(e,t,a,o),e[ll]=o}function k1(e){Jc(e,"")}function yb(e,t,a){e.nodeValue=a}function $3(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[ll]||null;if(t!==null){var a=vl(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,fe(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,fe(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ac(e){return e==="head"}function I3(e,t){e.removeChild(t)}function W3(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function _s(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===oy||a===pv){if(o===0){e.removeChild(r),Ds(t);return}o--}else if(a===uy||a===jf||a===Vh||a===q2||a===qh)o++;else if(a===pM)Mo(e.ownerDocument.documentElement);else if(a===vM){a=e.ownerDocument.head,Mo(a);for(var d=a.firstChild;d;){var p=d.nextSibling,v=d.nodeName;d[vf]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=p}}else a===yM&&Mo(e.ownerDocument.body);a=r}while(a);Ds(t)}function ih(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===oy){if(e===0)break;e--}else a!==uy&&a!==jf&&a!==Vh&&a!==q2||e++;a=o}while(a)}function P3(e){ih(e,!0)}function e4(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function t4(e){e.nodeValue=""}function n4(e){ih(e,!1)}function a4(e,t){t=t[wM],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function l4(e,t){e.nodeValue=t}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":nf(a),Zl(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function i4(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[vf])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){dt(r.name,"name");var d=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Bl(e.nextSibling),e===null)break}return null}function u4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bl(e.nextSibling),e===null))return null;return e}function zt(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bl(e.nextSibling),e===null))return null;return e}function uh(e){return e.data===jf||e.data===Vh}function Jg(e){return e.data===q2||e.data===jf&&e.ownerDocument.readyState!==tE}function o4(e,t){var a=e.ownerDocument;if(e.data===Vh)e._reactRetry=t;else if(e.data!==jf||a.readyState!==tE)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Bl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===uy||t===q2||t===jf||t===Vh||t===qh||t===_6||t===eE)break;if(t===oy||t===pv)return null}}return e}function c4(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,r=0;r<o.length;r++){var d=o[r];a[Ao(d.name)]=d.name.toLowerCase()==="style"?Tc(e):d.value}return{type:t,props:a}}return e.nodeType===8?e.data===qh?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function s4(e,t,a){return a===null||a[gM]!==!0?(e.nodeValue===t?e=null:(t=Qi(t),e=Qi(e.nodeValue)===t?null:e.nodeValue),e):null}function af(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===oy||a===pv){if(t===0)return Bl(e.nextSibling);t--}else a!==uy&&a!==q2&&a!==jf&&a!==Vh&&a!==qh||t++}e=e.nextSibling}return null}function xs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===uy||a===q2||a===jf||a===Vh||a===qh){if(t===0)return e;t--}else a!==oy&&a!==pv||t++}e=e.previousSibling}return null}function Kg(e){Ds(e)}function X1(e){Ds(e)}function Fg(e){Ds(e)}function xo(e,t,a,o,r){switch(r&&cd(e,o.ancestorInfo),t=lh(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Ru(e,t,a,o){if(!a[Do]&&vl(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);an(a,e,t),a[ln]=o,a[ll]=t}function Mo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zl(e)}function Q1(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function $g(e,t,a){var o=Y2;if(o&&typeof t=="string"&&t){var r=Ht(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),oE.has(r)||(oE.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),an(t,"link",e),xn(t),o.head.appendChild(t)))}}function Ig(e,t,a,o){var r=(r=Hl.current)?Q1(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ms(a.href),t=Kl(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ms(a.href);var d=Kl(r).hoistableStyles,p=d.get(e);if(!p&&(r=r.ownerDocument||r,p={type:"stylesheet",instance:null,count:0,state:{loading:kh,preload:null}},d.set(e,p),(d=r.querySelector(ch(e)))&&!d._p&&(p.instance=d,p.state.loading=sy|Pu),!eo.has(e))){var v={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};eo.set(e,v),d||r4(r,e,v,p.state)}if(t&&o===null)throw a=`
|
|
274
|
+
|
|
275
|
+
- `+oh(t)+`
|
|
276
|
+
+ `+oh(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return p}if(t&&o!==null)throw a=`
|
|
277
|
+
|
|
278
|
+
- `+oh(t)+`
|
|
279
|
+
+ `+oh(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Cs(a),t=Kl(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function oh(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Ll.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Ll.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Ll.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Ms(e){return'href="'+Ht(e)+'"'}function ch(e){return'link[rel="stylesheet"]['+e+"]"}function Z1(e){return We({},e,{"data-precedence":e.precedence,precedence:null})}function r4(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=sy:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=sy}),t.addEventListener("error",function(){return o.loading|=iE}),an(t,"link",a),xn(t),e.head.appendChild(t))}function Cs(e){return'[src="'+Ht(e)+'"]'}function sh(e){return"script[async]"+e}function J1(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Ht(a.href)+'"]');if(o)return t.instance=o,xn(o),o;var r=We({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),xn(o),an(o,"style",r),lf(o,a.precedence,e),t.instance=o;case"stylesheet":r=Ms(a.href);var d=e.querySelector(ch(r));if(d)return t.state.loading|=Pu,t.instance=d,xn(d),d;o=Z1(a),(r=eo.get(r))&&Wg(o,r),d=(e.ownerDocument||e).createElement("link"),xn(d);var p=d;return p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),an(d,"link",o),t.state.loading|=Pu,lf(d,a.precedence,e),t.instance=d;case"script":return d=Cs(a.src),(r=e.querySelector(sh(d)))?(t.instance=r,xn(r),r):(o=a,(r=eo.get(d))&&(o=We({},a),Pg(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),xn(r),an(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Pu)===kh&&(o=t.instance,t.state.loading|=Pu,lf(o,a.precedence,e));return t.instance}function lf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,d=r,p=0;p<o.length;p++){var v=o[p];if(v.dataset.precedence===t)d=v;else if(d!==r)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Wg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function uf(e,t,a){if(vv===null){var o=new Map,r=vv=new Map;r.set(a,o)}else r=vv,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var d=a[r];if(!(d[vf]||d[ln]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==$e){var p=d.getAttribute(t)||"";p=e+p;var v=o.get(p);v?v.push(d):o.set(p,[d])}}return o}function f4(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function d4(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===V2||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,d=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),d!=null&&a.push("`disabled`"),r=X3(a,"and"),r+=a.length===1?" prop":" props",d=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,d,r)}o&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function it(e){return!(e.type==="stylesheet"&&(e.state.loading&uE)===kh)}function ep(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&Pu)===kh){if(a.instance===null){var r=Ms(o.href),d=t.querySelector(ch(r));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=of.bind(e),t.then(e,e)),a.state.loading|=Pu,a.instance=d,xn(d);return}d=t.ownerDocument||t,o=Z1(o),(r=eo.get(r))&&Wg(o,r),d=d.createElement("link"),xn(d);var p=d;p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),an(d,"link",o),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&uE)===kh&&(e.count++,a=of.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function K1(e,t){return e.stylesheets&&e.count===0&&rh(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&rh(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},EM+t);0<e.imgBytes&&O6===0&&(O6=125*Q3()*AM);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rh(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>O6?50:TM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function of(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function rh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wv=new Map,t.forEach(tp,e),wv=null,of.call(e))}function tp(e,t){if(!(t.state.loading&Pu)){var a=wv.get(e);if(a)var o=a.get(z6);else{a=new Map,wv.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<r.length;d++){var p=r[d];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),o=p)}o&&a.set(z6,o)}r=t.instance,p=r.getAttribute("data-precedence"),d=a.get(p)||o,d===o&&a.set(z6,r),a.set(p,r),this.count++,o=of.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),d?d.parentNode.insertBefore(r,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Pu}}function fh(e,t,a,o,r,d,p,v,T){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Yh,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=d,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function dh(e,t,a,o,r,d,p,v,T,_,H,R){return e=new fh(e,t,a,p,T,_,H,R,v),t=Kx,d===!0&&(t|=pl|Oo),t|=Pe,d=q(3,null,null,t),e.current=d,d.stateNode=e,t=J0(),as(t),e.pooledCache=t,as(t),d.memoizedState={element:o,isDehydrated:a,cache:t},ut(d),e}function h4(e){return e?(e=Af,e):Af}function F1(e,t,a,o,r,d){if(Zn&&typeof Zn.onScheduleFiberRoot=="function")try{Zn.onScheduleFiberRoot(Us,o,a)}catch(p){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",p))}r=h4(r),o.context===null?o.context=r:o.pendingContext=r,ju&&gl!==null&&!fE&&(fE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
280
|
+
|
|
281
|
+
Check the render method of %s.`,ce(gl)||"Unknown")),o=kn(t),o.payload={element:a},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),o.callback=d),a=Su(e,o,t),a!==null&&(vu(t,"root.render()",null),je(a,e,t),ni(a,e,t))}function m4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function np(e,t){m4(e,t),(e=e.alternate)&&m4(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=za(e,67108864);t!==null&&je(t,e,67108864),np(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=Ua(e);t=sn(t);var a=za(e,t);a!==null&&je(a,e,t),np(e,t)}}function Rt(){return gl}function ip(e,t,a,o){var r=F.T;F.T=null;var d=_t.p;try{_t.p=Jn,up(e,t,a,o)}finally{_t.p=d,F.T=r}}function Ea(e,t,a,o){var r=F.T;F.T=null;var d=_t.p;try{_t.p=Aa,up(e,t,a,o)}finally{_t.p=d,F.T=r}}function up(e,t,a,o){if(Sv){var r=$1(o);if(r===null)ki(e,t,o,Ev,a),W1(e,o);else if(g4(r,e,t,a,o))o.stopPropagation();else if(W1(e,o),t&4&&-1<xM.indexOf(e)){for(;r!==null;){var d=vl(r);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var p=Ql(d.pendingLanes);if(p!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var T=1<<31-Ta(p);v.entanglements[1]|=T,p&=~T}fl(d),(pt&(xa|Pi))===Ra&&(lv=ca()+j9,Bu(0))}}break;case 31:case 13:v=za(d,2),v!==null&&je(v,d,2),Ul(),np(d,2)}if(d=$1(o),d===null&&ki(e,t,o,Ev,a),d===r)break;r=d}r!==null&&o.stopPropagation()}else ki(e,t,o,null,a)}}function $1(e){return e=Mi(e),op(e)}function op(e){if(Ev=null,e=Ai(e),e!==null){var t=P(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=ye(t),e!==null)return e;e=null}else if(a===31){if(e=be(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ev=e,null}function I1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Jn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Aa;case"message":switch(vh()){case yp:return Jn;case o2:return Aa;case Ns:case S4:return Ha;case c2:return Dc;default:return Ha}default:return Ha}}function W1(e,t){switch(e){case"focusin":case"focusout":qf=null;break;case"dragenter":case"dragleave":Vf=null;break;case"mouseover":case"mouseout":Yf=null;break;case"pointerover":case"pointerout":fy.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dy.delete(t.pointerId)}}function _c(e,t,a,o,r,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:d,targetContainers:[r]},t!==null&&(t=vl(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function g4(e,t,a,o,r){switch(t){case"focusin":return qf=_c(qf,e,t,a,o,r),!0;case"dragenter":return Vf=_c(Vf,e,t,a,o,r),!0;case"mouseover":return Yf=_c(Yf,e,t,a,o,r),!0;case"pointerover":var d=r.pointerId;return fy.set(d,_c(fy.get(d)||null,e,t,a,o,r)),!0;case"gotpointercapture":return d=r.pointerId,dy.set(d,_c(dy.get(d)||null,e,t,a,o,r)),!0}return!1}function cp(e){var t=Ai(e.target);if(t!==null){var a=P(t);if(a!==null){if(t=a.tag,t===13){if(t=ye(a),t!==null){e.blockedOn=t,ru(e.priority,function(){lp(a)});return}}else if(t===31){if(t=be(a),t!==null){e.blockedOn=t,ru(e.priority,function(){lp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$1(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),r=o;Ep!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ep=r,a.target.dispatchEvent(o),Ep===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ep=null}else return t=vl(a),t!==null&&ap(t),e.blockedOn=a,!1;t.shift()}return!0}function P1(e,t,a){cf(e)&&a.delete(t)}function vb(){N6=!1,qf!==null&&cf(qf)&&(qf=null),Vf!==null&&cf(Vf)&&(Vf=null),Yf!==null&&cf(Yf)&&(Yf=null),fy.forEach(P1),dy.forEach(P1)}function hh(e,t){e.blockedOn===t&&(e.blockedOn=null,N6||(N6=!0,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,vb)))}function p4(e){Tv!==e&&(Tv=e,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,function(){Tv===e&&(Tv=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!="function"){if(op(o||a)===null)continue;break}var d=vl(a);d!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:o},Object.freeze(a),wo(d,a,o,r))}}))}function Ds(e){function t(T){return hh(T,e)}qf!==null&&hh(qf,e),Vf!==null&&hh(Vf,e),Yf!==null&&hh(Yf,e),fy.forEach(t),dy.forEach(t);for(var a=0;a<kf.length;a++){var o=kf[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<kf.length&&(a=kf[0],a.blockedOn===null);)cp(a),a.blockedOn===null&&kf.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],d=a[o+1],p=r[ll]||null;if(typeof d=="function")p||p4(a);else if(p){var v=null;if(d&&d.hasAttribute("formAction")){if(r=d,p=d[ll]||null)v=p.formAction;else if(op(r)!==null)continue}else v=p.action;typeof v=="function"?a[o+1]=v:(a.splice(o,3),o-=3),p4(a)}}}function y4(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(p){return r=p})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function sp(e){this._internalRoot=e}function Zi(e){this._internalRoot=e}function rp(e){e[Do]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var zn=l7(),mh=j,wb=Av,We=Object.assign,v4=Symbol.for("react.element"),ui=Symbol.for("react.transitional.element"),xc=Symbol.for("react.portal"),sf=Symbol.for("react.fragment"),al=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),e2=Symbol.for("react.consumer"),Ji=Symbol.for("react.context"),rf=Symbol.for("react.forward_ref"),Os=Symbol.for("react.suspense"),ml=Symbol.for("react.suspense_list"),ph=Symbol.for("react.memo"),Ba=Symbol.for("react.lazy"),Ki=Symbol.for("react.activity"),bb=Symbol.for("react.memo_cache_sentinel"),w4=Symbol.iterator,ff=Symbol.for("react.client.reference"),Rn=Array.isArray,F=mh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_t=wb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sb=Object.freeze({pending:!1,data:null,method:null,action:null}),fp=[],dp=[],Co=-1,Mc=Ut(null),df=Ut(null),Hl=Ut(null),Cc=Ut(null),hf=0,b4,zs,mf,hp,yh,t2,n2;Ce.__reactDisabledLog=!0;var gf,mp,a2=!1,gp=new(typeof WeakMap=="function"?WeakMap:Map),gl=null,ju=!1,Ll=Object.prototype.hasOwnProperty,pp=zn.unstable_scheduleCallback,l2=zn.unstable_cancelCallback,i2=zn.unstable_shouldYield,u2=zn.unstable_requestPaint,ca=zn.unstable_now,vh=zn.unstable_getCurrentPriorityLevel,yp=zn.unstable_ImmediatePriority,o2=zn.unstable_UserBlockingPriority,Ns=zn.unstable_NormalPriority,S4=zn.unstable_LowPriority,c2=zn.unstable_IdlePriority,vp=zn.log,E4=zn.unstable_setDisableYieldValue,Us=null,Zn=null,qu=!1,Vu=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ta=Math.clz32?Math.clz32:Jo,wp=Math.log,s2=Math.LN2,pf=256,wh=262144,yf=4194304,Jn=2,Aa=8,Ha=32,Dc=268435456,oi=Math.random().toString(36).slice(2),ln="__reactFiber$"+oi,ll="__reactProps$"+oi,Do="__reactContainer$"+oi,Bs="__reactEvents$"+oi,Eb="__reactListeners$"+oi,T4="__reactHandles$"+oi,bh="__reactResources$"+oi,vf="__reactMarker$"+oi,A4=new Set,Yu={},wf={},_4={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},bf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bp={},r2={},f2=/[\n"\\]/g,Sp=!1,x4=!1,Sh=!1,n=!1,l=!1,u=!1,s=["value","defaultValue"],m=!1,g=/["'&<>\n\t]|^\s|\s$/,S="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),x="applet caption html table td th marquee object template foreignObject desc title".split(" "),z=x.concat(["button"]),Q="dd dt li option optgroup p rp rt".split(" "),I={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ae={},Z={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},$=/([A-Z])/g,he=/^ms-/,ze=/^(?:webkit|moz|o)[A-Z]/,jt=/^-ms-/,Y=/-(.)/g,L=/;\s*$/,X={},te={},Ae=!1,gt=!1,pe=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Je="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",wt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Fi={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},M4={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},d2={},ux=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ox=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h7=!1,Gl={},m7=/^on./,cx=/^on[^A-Z]/,sx=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rx=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Ep=null,h2=null,m2=null,Tb=!1,Oc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=!1;if(Oc)try{var Tp={};Object.defineProperty(Tp,"passive",{get:function(){Ab=!0}}),window.addEventListener("test",Tp,Tp),window.removeEventListener("test",Tp,Tp)}catch{Ab=!1}var Sf=null,_b=null,C4=null,Eh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},D4=ta(Eh),Ap=We({},Eh,{view:0,detail:0}),dx=ta(Ap),xb,Mb,_p,O4=We({},Ap,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_p&&(_p&&e.type==="mousemove"?(xb=e.screenX-_p.screenX,Mb=e.screenY-_p.screenY):Mb=xb=0,_p=e),xb)},movementY:function(e){return"movementY"in e?e.movementY:Mb}}),g7=ta(O4),hx=We({},O4,{dataTransfer:0}),mx=ta(hx),gx=We({},Ap,{relatedTarget:0}),Cb=ta(gx),px=We({},Eh,{animationName:0,elapsedTime:0,pseudoElement:0}),yx=ta(px),vx=We({},Eh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wx=ta(vx),bx=We({},Eh,{data:0}),p7=ta(bx),Sx=p7,Ex={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ax={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_x=We({},Ap,{key:function(e){if(e.key){var t=Ex[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dd,charCode:function(e){return e.type==="keypress"?fd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xx=ta(_x),Mx=We({},O4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y7=ta(Mx),Cx=We({},Ap,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dd}),Dx=ta(Cx),Ox=We({},Eh,{propertyName:0,elapsedTime:0,pseudoElement:0}),zx=ta(Ox),Nx=We({},O4,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ux=ta(Nx),Bx=We({},Eh,{newState:0,oldState:0}),Hx=ta(Bx),Lx=[9,13,27,32],v7=229,Db=Oc&&"CompositionEvent"in window,xp=null;Oc&&"documentMode"in document&&(xp=document.documentMode);var Gx=Oc&&"TextEvent"in window&&!xp,w7=Oc&&(!Db||xp&&8<xp&&11>=xp),b7=32,S7=String.fromCharCode(b7),E7=!1,g2=!1,Rx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Mp=null,Cp=null,T7=!1;Oc&&(T7=L0("input")&&(!document.documentMode||9<document.documentMode));var Rl=typeof Object.is=="function"?Object.is:G0,jx=Oc&&"documentMode"in document&&11>=document.documentMode,p2=null,Ob=null,Dp=null,zb=!1,y2={animationend:Fc("Animation","AnimationEnd"),animationiteration:Fc("Animation","AnimationIteration"),animationstart:Fc("Animation","AnimationStart"),transitionrun:Fc("Transition","TransitionRun"),transitionstart:Fc("Transition","TransitionStart"),transitioncancel:Fc("Transition","TransitionCancel"),transitionend:Fc("Transition","TransitionEnd")},Nb={},A7={};Oc&&(A7=document.createElement("div").style,"AnimationEvent"in window||(delete y2.animationend.animation,delete y2.animationiteration.animation,delete y2.animationstart.animation),"TransitionEvent"in window||delete y2.transitionend.transition);var _7=$c("animationend"),x7=$c("animationiteration"),M7=$c("animationstart"),qx=$c("transitionrun"),Vx=$c("transitionstart"),Yx=$c("transitioncancel"),C7=$c("transitionend"),D7=new Map,Ub="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ub.push("scrollEnd");var O7=0;if(typeof performance=="object"&&typeof performance.now=="function")var kx=performance,z7=function(){return kx.now()};else{var Xx=Date;z7=function(){return Xx.now()}}var Bb=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qx="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",z4=0,Hb=1,Lb=2,Gb=3,N4="– ",U4="+ ",N7=" ",un=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ku="Components ⚛",rt="Scheduler ⚛",mt="Blocking",Ef=!1,Hs={color:"primary",properties:null,tooltipText:"",track:ku},Tf={start:-0,end:-0,detail:{devtools:Hs}},Zx=["Changed Props",""],U7="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Jx=["Changed Props",U7],Op=1,Ls=2,Xu=[],v2=0,Rb=0,Af={};Object.freeze(Af);var Qu=null,w2=null,Ge=0,Kx=1,Pe=2,pl=8,Oo=16,Fx=32,B7=!1;try{var H7=Object.preventExtensions({})}catch{B7=!0}var jb=new WeakMap,b2=[],S2=0,B4=null,zp=0,Zu=[],Ju=0,Th=null,Gs=1,Rs="",il=null,on=null,ct=!1,zc=!1,$i=null,_f=null,Ku=!1,qb=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vb=Ut(null),Yb=Ut(null),L7={},H4=null,E2=null,T2=!1,$x=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ix=zn.unstable_scheduleCallback,Wx=zn.unstable_NormalPriority,sa={$$typeof:Ji,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ra=zn.unstable_now,L4=console.createTask?console.createTask:function(){return null},Np=1,G4=2,La=-0,xf=-0,js=-0,qs=null,jl=-1.1,Ah=-0,bn=-0,De=-1.1,Ne=-1.1,hn=null,Nn=!1,_h=-0,Nc=-1.1,Up=null,Mf=0,kb=null,Xb=null,xh=-1.1,Bp=null,A2=-1.1,R4=-1.1,Vs=-0,Ys=-1.1,Fu=-1.1,Qb=0,Hp=null,G7=null,R7=null,Cf=-1.1,Mh=null,Df=-1.1,j4=-1.1,j7=-0,q7=-0,q4=0,Px=null,V7=0,Lp=-1.1,V4=!1,Y4=!1,Gp=null,Zb=0,Ch=0,_2=null,Y7=F.S;F.S=function(e,t){if(G9=ca(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Ys&&0>Fu){Ys=ra();var a=tf(),o=Gu();(a!==Df||o!==Mh)&&(Df=-1.1),Cf=a,Mh=o}fo(e,t)}Y7!==null&&Y7(e,t)};var Dh=Ut(null),zo={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Rp=[],jp=[],qp=[],Vp=[],Yp=[],kp=[],Oh=new Set;zo.recordUnsafeLifecycleWarnings=function(e,t){Oh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Rp.push(e),e.mode&pl&&typeof t.UNSAFE_componentWillMount=="function"&&jp.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qp.push(e),e.mode&pl&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Vp.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Yp.push(e),e.mode&pl&&typeof t.UNSAFE_componentWillUpdate=="function"&&kp.push(e))},zo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Rp.length&&(Rp.forEach(function(v){e.add(ce(v)||"Component"),Oh.add(v.type)}),Rp=[]);var t=new Set;0<jp.length&&(jp.forEach(function(v){t.add(ce(v)||"Component"),Oh.add(v.type)}),jp=[]);var a=new Set;0<qp.length&&(qp.forEach(function(v){a.add(ce(v)||"Component"),Oh.add(v.type)}),qp=[]);var o=new Set;0<Vp.length&&(Vp.forEach(function(v){o.add(ce(v)||"Component"),Oh.add(v.type)}),Vp=[]);var r=new Set;0<Yp.length&&(Yp.forEach(function(v){r.add(ce(v)||"Component"),Oh.add(v.type)}),Yp=[]);var d=new Set;if(0<kp.length&&(kp.forEach(function(v){d.add(ce(v)||"Component"),Oh.add(v.type)}),kp=[]),0<t.size){var p=N(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
282
|
+
|
|
283
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
284
|
+
|
|
285
|
+
Please update the following components: %s`,p)}0<o.size&&(p=N(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
286
|
+
|
|
287
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
288
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
289
|
+
|
|
290
|
+
Please update the following components: %s`,p)),0<d.size&&(p=N(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
291
|
+
|
|
292
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
293
|
+
|
|
294
|
+
Please update the following components: %s`,p)),0<e.size&&(p=N(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
295
|
+
|
|
296
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
297
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
298
|
+
|
|
299
|
+
Please update the following components: %s`,p)),0<a.size&&(p=N(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
300
|
+
|
|
301
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
302
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
303
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
304
|
+
|
|
305
|
+
Please update the following components: %s`,p)),0<r.size&&(p=N(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
306
|
+
|
|
307
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
308
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
309
|
+
|
|
310
|
+
Please update the following components: %s`,p))};var k4=new Map,k7=new Set;zo.recordLegacyContextWarning=function(e,t){for(var a=null,o=e;o!==null;)o.mode&pl&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!k7.has(e.type)&&(o=k4.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(o===void 0&&(o=[],k4.set(a,o)),o.push(e))},zo.flushLegacyContextWarning=function(){k4.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(ce(r)||"Component"),k7.add(r.type)});var o=N(a);fe(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
311
|
+
|
|
312
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
313
|
+
|
|
314
|
+
Please update the following components: %s
|
|
315
|
+
|
|
316
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},zo.discardPendingWarnings=function(){Rp=[],jp=[],qp=[],Vp=[],Yp=[],kp=[],k4=new Map};var X7={react_stack_bottom_frame:function(e,t,a){var o=ju;ju=!0;try{return e(t,a)}finally{ju=o}}},Jb=X7.react_stack_bottom_frame.bind(X7),Q7={react_stack_bottom_frame:function(e){var t=ju;ju=!0;try{return e.render()}finally{ju=t}}},Z7=Q7.react_stack_bottom_frame.bind(Q7),J7={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Fe(e,e.return,a)}}},Kb=J7.react_stack_bottom_frame.bind(J7),K7={react_stack_bottom_frame:function(e,t,a,o,r){try{t.componentDidUpdate(a,o,r)}catch(d){Fe(e,e.return,d)}}},F7=K7.react_stack_bottom_frame.bind(K7),$7={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},eM=$7.react_stack_bottom_frame.bind($7),I7={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Fe(e,t,o)}}},W7=I7.react_stack_bottom_frame.bind(I7),P7={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},tM=P7.react_stack_bottom_frame.bind(P7),e9={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Fe(e,t,o)}}},nM=e9.react_stack_bottom_frame.bind(e9),t9={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},aM=t9.react_stack_bottom_frame.bind(t9),x2=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Fb=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),X4=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Q4={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},zh=null,Xp=!1,M2=null,Qp=0,et=null,$b,n9=$b=!1,a9={},l9={},i9={};U=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=ce(e),r=o||"null";if(!a9[r]){a9[r]=!0,a=a._owner,e=e._debugOwner;var d="";e&&typeof e.tag=="number"&&(r=ce(e))&&(d=`
|
|
317
|
+
|
|
318
|
+
Check the render method of \``+r+"`."),d||o&&(d=`
|
|
319
|
+
|
|
320
|
+
Check the top-level render call using <`+o+">.");var p="";a!=null&&e!==a&&(o=null,typeof a.tag=="number"?o=ce(a):typeof a.name=="string"&&(o=a.name),o&&(p=" It was passed a child from "+o+".")),fe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,p)})}}};var Nh=aa(!0),u9=aa(!1),o9=0,c9=1,s9=2,Ib=3,Of=!1,r9=!1,Wb=null,Pb=!1,C2=Ut(null),Z4=Ut(0),Ii=Ut(null),$u=null,D2=1,Zp=2,Kn=Ut(0),J4=0,Iu=1,ql=2,Wi=4,Vl=8,O2,f9=new Set,d9=new Set,e6=new Set,h9=new Set,ks=0,Ve=null,Jt=null,fa=null,K4=!1,z2=!1,Uh=!1,F4=0,Jp=0,Xs=null,lM=0,iM=25,K=null,Wu=null,Qs=-1,Kp=!1,Fp={readContext:Tt,use:po,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useLayoutEffect:vn,useInsertionEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useSyncExternalStore:vn,useId:vn,useHostTransitionStatus:vn,useFormState:vn,useActionState:vn,useOptimistic:vn,useMemoCache:vn,useCacheRefresh:vn};Fp.useEffectEvent=vn;var t6=null,m9=null,n6=null,g9=null,Uc=null,No=null,$4=null;t6={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",qe(),go(t),l1(e,t)},useContext:function(e){return K="useContext",qe(),Tt(e)},useEffect:function(e,t){return K="useEffect",qe(),go(t),hs(e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",qe(),go(a),_u(e,t,a)},useInsertionEffect:function(e,t){K="useInsertionEffect",qe(),go(t),mc(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",qe(),go(t),Fa(e,t)},useMemo:function(e,t){K="useMemo",qe(),go(t);var a=F.H;F.H=Uc;try{return $a(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",qe();var o=F.H;F.H=Uc;try{return zr(e,t,a)}finally{F.H=o}},useRef:function(e){return K="useRef",qe(),a1(e)},useState:function(e){K="useState",qe();var t=F.H;F.H=Uc;try{return rc(e)}finally{F.H=t}},useDebugValue:function(){K="useDebugValue",qe()},useDeferredValue:function(e,t){return K="useDeferredValue",qe(),Lr(e,t)},useTransition:function(){return K="useTransition",qe(),gc()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",qe(),Nr(e,t,a)},useId:function(){return K="useId",qe(),Ld()},useFormState:function(e,t){return K="useFormState",qe(),_d(),Cl(e,t)},useActionState:function(e,t){return K="useActionState",qe(),Cl(e,t)},useOptimistic:function(e){return K="useOptimistic",qe(),ds(e)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",qe(),i1()},useEffectEvent:function(e){return K="useEffectEvent",qe(),Bd(e)}},m9={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",le(),l1(e,t)},useContext:function(e){return K="useContext",le(),Tt(e)},useEffect:function(e,t){return K="useEffect",le(),hs(e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",le(),_u(e,t,a)},useInsertionEffect:function(e,t){K="useInsertionEffect",le(),mc(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",le(),Fa(e,t)},useMemo:function(e,t){K="useMemo",le();var a=F.H;F.H=Uc;try{return $a(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",le();var o=F.H;F.H=Uc;try{return zr(e,t,a)}finally{F.H=o}},useRef:function(e){return K="useRef",le(),a1(e)},useState:function(e){K="useState",le();var t=F.H;F.H=Uc;try{return rc(e)}finally{F.H=t}},useDebugValue:function(){K="useDebugValue",le()},useDeferredValue:function(e,t){return K="useDeferredValue",le(),Lr(e,t)},useTransition:function(){return K="useTransition",le(),gc()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",le(),Nr(e,t,a)},useId:function(){return K="useId",le(),Ld()},useActionState:function(e,t){return K="useActionState",le(),Cl(e,t)},useFormState:function(e,t){return K="useFormState",le(),_d(),Cl(e,t)},useOptimistic:function(e){return K="useOptimistic",le(),ds(e)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",le(),i1()},useEffectEvent:function(e){return K="useEffectEvent",le(),Bd(e)}},n6={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",le(),Ri(e,t)},useContext:function(e){return K="useContext",le(),Tt(e)},useEffect:function(e,t){K="useEffect",le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",le();var a=F.H;F.H=No;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",le();var o=F.H;F.H=No;try{return ss(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",le(),Ct().memoizedState},useState:function(){K="useState",le();var e=F.H;F.H=No;try{return ss(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",le()},useDeferredValue:function(e,t){return K="useDeferredValue",le(),xu(e,t)},useTransition:function(){return K="useTransition",le(),_3()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",le(),fs(e,t,a)},useId:function(){return K="useId",le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",le(),_d(),dc(e)},useActionState:function(e){return K="useActionState",le(),dc(e)},useOptimistic:function(e,t){return K="useOptimistic",le(),zd(e,t)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",le(),Br(e)}},g9={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",le(),Ri(e,t)},useContext:function(e){return K="useContext",le(),Tt(e)},useEffect:function(e,t){K="useEffect",le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",le();var a=F.H;F.H=$4;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",le();var o=F.H;F.H=$4;try{return rs(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",le(),Ct().memoizedState},useState:function(){K="useState",le();var e=F.H;F.H=$4;try{return rs(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",le()},useDeferredValue:function(e,t){return K="useDeferredValue",le(),Ke(e,t)},useTransition:function(){return K="useTransition",le(),rn()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",le(),fs(e,t,a)},useId:function(){return K="useId",le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",le(),_d(),hc(e)},useActionState:function(e){return K="useActionState",le(),hc(e)},useOptimistic:function(e,t){return K="useOptimistic",le(),Nd(e,t)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",le(),Br(e)}},Uc={readContext:function(e){return M(),Tt(e)},use:function(e){return A(),po(e)},useCallback:function(e,t){return K="useCallback",A(),qe(),l1(e,t)},useContext:function(e){return K="useContext",A(),qe(),Tt(e)},useEffect:function(e,t){return K="useEffect",A(),qe(),hs(e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",A(),qe(),_u(e,t,a)},useInsertionEffect:function(e,t){K="useInsertionEffect",A(),qe(),mc(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",A(),qe(),Fa(e,t)},useMemo:function(e,t){K="useMemo",A(),qe();var a=F.H;F.H=Uc;try{return $a(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",A(),qe();var o=F.H;F.H=Uc;try{return zr(e,t,a)}finally{F.H=o}},useRef:function(e){return K="useRef",A(),qe(),a1(e)},useState:function(e){K="useState",A(),qe();var t=F.H;F.H=Uc;try{return rc(e)}finally{F.H=t}},useDebugValue:function(){K="useDebugValue",A(),qe()},useDeferredValue:function(e,t){return K="useDeferredValue",A(),qe(),Lr(e,t)},useTransition:function(){return K="useTransition",A(),qe(),gc()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",A(),qe(),Nr(e,t,a)},useId:function(){return K="useId",A(),qe(),Ld()},useFormState:function(e,t){return K="useFormState",A(),qe(),Cl(e,t)},useActionState:function(e,t){return K="useActionState",A(),qe(),Cl(e,t)},useOptimistic:function(e){return K="useOptimistic",A(),qe(),ds(e)},useMemoCache:function(e){return A(),xl(e)},useHostTransitionStatus:bo,useCacheRefresh:function(){return K="useCacheRefresh",qe(),i1()},useEffectEvent:function(e){return K="useEffectEvent",A(),qe(),Bd(e)}},No={readContext:function(e){return M(),Tt(e)},use:function(e){return A(),po(e)},useCallback:function(e,t){return K="useCallback",A(),le(),Ri(e,t)},useContext:function(e){return K="useContext",A(),le(),Tt(e)},useEffect:function(e,t){K="useEffect",A(),le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",A(),le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",A(),le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",A(),le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",A(),le();var a=F.H;F.H=No;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",A(),le();var o=F.H;F.H=No;try{return ss(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",A(),le(),Ct().memoizedState},useState:function(){K="useState",A(),le();var e=F.H;F.H=No;try{return ss(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",A(),le()},useDeferredValue:function(e,t){return K="useDeferredValue",A(),le(),xu(e,t)},useTransition:function(){return K="useTransition",A(),le(),_3()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",A(),le(),fs(e,t,a)},useId:function(){return K="useId",A(),le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",A(),le(),dc(e)},useActionState:function(e){return K="useActionState",A(),le(),dc(e)},useOptimistic:function(e,t){return K="useOptimistic",A(),le(),zd(e,t)},useMemoCache:function(e){return A(),xl(e)},useHostTransitionStatus:bo,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",A(),le(),Br(e)}},$4={readContext:function(e){return M(),Tt(e)},use:function(e){return A(),po(e)},useCallback:function(e,t){return K="useCallback",A(),le(),Ri(e,t)},useContext:function(e){return K="useContext",A(),le(),Tt(e)},useEffect:function(e,t){K="useEffect",A(),le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",A(),le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",A(),le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",A(),le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",A(),le();var a=F.H;F.H=No;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",A(),le();var o=F.H;F.H=No;try{return rs(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",A(),le(),Ct().memoizedState},useState:function(){K="useState",A(),le();var e=F.H;F.H=No;try{return rs(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",A(),le()},useDeferredValue:function(e,t){return K="useDeferredValue",A(),le(),Ke(e,t)},useTransition:function(){return K="useTransition",A(),le(),rn()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",A(),le(),fs(e,t,a)},useId:function(){return K="useId",A(),le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",A(),le(),hc(e)},useActionState:function(e){return K="useActionState",A(),le(),hc(e)},useOptimistic:function(e,t){return K="useOptimistic",A(),le(),Nd(e,t)},useMemoCache:function(e){return A(),xl(e)},useHostTransitionStatus:bo,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",A(),le(),Br(e)}};var p9={},y9=new Set,v9=new Set,w9=new Set,b9=new Set,S9=new Set,E9=new Set,T9=new Set,A9=new Set,_9=new Set,x9=new Set;Object.freeze(p9);var a6={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ua(e),r=kn(o);r.payload=t,a!=null&&(ys(a),r.callback=a),t=Su(e,r,o),t!==null&&(vu(o,"this.setState()",e),je(t,e,o),ni(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ua(e),r=kn(o);r.tag=c9,r.payload=t,a!=null&&(ys(a),r.callback=a),t=Su(e,r,o),t!==null&&(vu(o,"this.replaceState()",e),je(t,e,o),ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ua(e),o=kn(a);o.tag=s9,t!=null&&(ys(t),o.callback=t),t=Su(e,o,a),t!==null&&(vu(a,"this.forceUpdate()",e),je(t,e,a),ni(t,e,a))}},N2=null,l6=null,i6=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),da=!1,M9={},C9={},D9={},O9={},U2=!1,z9={},I4={},u6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},N9=!1,U9=null;U9=new Set;var Zs=!1,ha=!1,o6=!1,B9=typeof WeakSet=="function"?WeakSet:Set,Ga=null,B2=null,H2=null,ma=null,ci=!1,Uo=null,_a=!1,$p=8192,uM={getCacheForType:function(e){var t=Tt(sa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Tt(sa).controller.signal},getOwner:function(){return gl}};if(typeof Symbol=="function"&&Symbol.for){var Ip=Symbol.for;Ip("selector.component"),Ip("selector.has_pseudo_class"),Ip("selector.role"),Ip("selector.test_id"),Ip("selector.text")}var oM=[],cM=typeof WeakMap=="function"?WeakMap:Map,Ra=0,xa=2,Pi=4,Js=0,Wp=1,Bh=2,W4=3,zf=4,P4=6,H9=5,pt=Ra,Kt=null,lt=null,tt=0,si=0,ev=1,Hh=2,Pp=3,L9=4,c6=5,ey=6,tv=7,s6=8,Lh=9,qt=si,eu=null,Nf=!1,L2=!1,r6=!1,Bc=0,Sn=Js,Uf=0,Bf=0,f6=0,ri=0,Gh=0,ty=null,Yl=null,nv=!1,av=0,G9=0,R9=300,lv=1/0,j9=500,ny=null,jn=null,Hf=null,iv=0,d6=1,h6=2,q9=3,Lf=0,V9=1,Y9=2,k9=3,X9=4,uv=5,ga=0,Gf=null,G2=null,Bo=0,m6=0,g6=-0,p6=null,Q9=null,Z9=null,Ho=iv,J9=null,sM=50,ay=0,y6=null,v6=!1,ov=!1,rM=50,Rh=0,ly=null,R2=!1,cv=null,K9=!1,F9=new Set,fM={},sv=null,j2=null,w6=!1,b6=!1,rv=!1,S6=!1,Rf=0,E6={};(function(){for(var e=0;e<Ub.length;e++){var t=Ub[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Ci(a,"on"+t)}Ci(_7,"onAnimationEnd"),Ci(x7,"onAnimationIteration"),Ci(M7,"onAnimationStart"),Ci("dblclick","onDoubleClick"),Ci("focusin","onFocus"),Ci("focusout","onBlur"),Ci(qx,"onTransitionRun"),Ci(Vx,"onTransitionStart"),Ci(Yx,"onTransitionCancel"),Ci(C7,"onTransitionEnd")})(),fr("onMouseEnter",["mouseout","mouseover"]),fr("onMouseLeave",["mouseout","mouseover"]),fr("onPointerEnter",["pointerout","pointerover"]),fr("onPointerLeave",["pointerout","pointerover"]),_i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_i("onBeforeInput",["compositionend","keypress","textInput","paste"]),_i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iy="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iy)),fv="_reactListening"+Math.random().toString(36).slice(2),$9=!1,I9=!1,dv=!1,W9=!1,hv=!1,mv=!1,P9=!1,gv={},dM=/\r\n?/g,hM=/\u0000|\uFFFD/g,jh="http://www.w3.org/1999/xlink",A6="http://www.w3.org/XML/1998/namespace",mM="javascript:throw new Error('React form unexpectedly submitted.')",gM="suppressHydrationWarning",qh="&",pv="/&",uy="$",oy="/$",jf="$?",Vh="$~",q2="$!",pM="html",yM="body",vM="head",_6="F!",eE="F",tE="loading",wM="style",Ks=0,V2=1,yv=2,x6=null,M6=null,nE={dialog:!0,webview:!0},C6=null,cy=void 0,aE=typeof setTimeout=="function"?setTimeout:void 0,bM=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=-1,lE=typeof Promise=="function"?Promise:void 0,SM=typeof queueMicrotask=="function"?queueMicrotask:typeof lE<"u"?function(e){return lE.resolve(null).then(e).catch(J3)}:aE,D6=null,kh=0,sy=1,iE=2,uE=3,Pu=4,eo=new Map,oE=new Set,Fs=_t.d;_t.d={f:function(){var e=Fs.f(),t=Ul();return e||t},r:function(e){var t=vl(e);t!==null&&t.tag===5&&t.type==="form"?Gr(t):Fs.r(e)},D:function(e){Fs.D(e),$g("dns-prefetch",e,null)},C:function(e,t){Fs.C(e,t),$g("preconnect",e,t)},L:function(e,t,a){Fs.L(e,t,a);var o=Y2;if(o&&e&&t){var r='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Ht(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Ht(a.imageSizes)+'"]')):r+='[href="'+Ht(e)+'"]';var d=r;switch(t){case"style":d=Ms(e);break;case"script":d=Cs(e)}eo.has(d)||(e=We({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),eo.set(d,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(ch(d))||t==="script"&&o.querySelector(sh(d))||(t=o.createElement("link"),an(t,"link",e),xn(t),o.head.appendChild(t)))}},m:function(e,t){Fs.m(e,t);var a=Y2;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Ht(o)+'"][href="'+Ht(e)+'"]',d=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Cs(e)}if(!eo.has(d)&&(e=We({rel:"modulepreload",href:e},t),eo.set(d,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(sh(d)))return}o=a.createElement("link"),an(o,"link",e),xn(o),a.head.appendChild(o)}}},X:function(e,t){Fs.X(e,t);var a=Y2;if(a&&e){var o=Kl(a).hoistableScripts,r=Cs(e),d=o.get(r);d||(d=a.querySelector(sh(r)),d||(e=We({src:e,async:!0},t),(t=eo.get(r))&&Pg(e,t),d=a.createElement("script"),xn(d),an(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}},S:function(e,t,a){Fs.S(e,t,a);var o=Y2;if(o&&e){var r=Kl(o).hoistableStyles,d=Ms(e);t=t||"default";var p=r.get(d);if(!p){var v={loading:kh,preload:null};if(p=o.querySelector(ch(d)))v.loading=sy|Pu;else{e=We({rel:"stylesheet",href:e,"data-precedence":t},a),(a=eo.get(d))&&Wg(e,a);var T=p=o.createElement("link");xn(T),an(T,"link",e),T._p=new Promise(function(_,H){T.onload=_,T.onerror=H}),T.addEventListener("load",function(){v.loading|=sy}),T.addEventListener("error",function(){v.loading|=iE}),v.loading|=Pu,lf(p,t,o)}p={type:"stylesheet",instance:p,count:1,state:v},r.set(d,p)}}},M:function(e,t){Fs.M(e,t);var a=Y2;if(a&&e){var o=Kl(a).hoistableScripts,r=Cs(e),d=o.get(r);d||(d=a.querySelector(sh(r)),d||(e=We({src:e,async:!0,type:"module"},t),(t=eo.get(r))&&Pg(e,t),d=a.createElement("script"),xn(d),an(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}}};var Y2=typeof document>"u"?null:document,vv=null,EM=6e4,TM=800,AM=500,O6=0,z6=null,wv=null,Xh=Sb,ry={$$typeof:Ji,Provider:null,Consumer:null,_currentValue:Xh,_currentValue2:Xh,_threadCount:0},cE="%c%s%c",sE="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rE="",bv=" ",_M=Function.prototype.bind,fE=!1,dE=null,hE=null,mE=null,gE=null,pE=null,yE=null,vE=null,wE=null,bE=null,SE=null;dE=function(e,t,a,o){t=i(e,t),t!==null&&(a=c(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=za(e,2),a!==null&&je(a,e,2))},hE=function(e,t,a){t=i(e,t),t!==null&&(a=y(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=za(e,2),a!==null&&je(a,e,2))},mE=function(e,t,a,o){t=i(e,t),t!==null&&(a=f(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=za(e,2),a!==null&&je(a,e,2))},gE=function(e,t,a){e.pendingProps=c(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=za(e,2),t!==null&&je(t,e,2)},pE=function(e,t){e.pendingProps=y(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=za(e,2),t!==null&&je(t,e,2)},yE=function(e,t,a){e.pendingProps=f(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=za(e,2),t!==null&&je(t,e,2)},vE=function(e){var t=za(e,2);t!==null&&je(t,e,2)},wE=function(e){var t=cr(),a=za(e,t);a!==null&&je(a,e,t)},bE=function(e){E=e},SE=function(e){w=e};var Sv=!0,Ev=null,N6=!1,qf=null,Vf=null,Yf=null,fy=new Map,dy=new Map,kf=[],xM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Tv=null;if(Zi.prototype.render=sp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ue(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,r=Ua(o);F1(o,r,a,t,null,null)},Zi.prototype.unmount=sp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(pt&(xa|Pi))!==Ra&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),F1(e.current,2,null,e,null,null),Ul(),t[Do]=null}},Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=E0();e={blockedOn:null,target:e,priority:t};for(var a=0;a<kf.length&&t!==0&&t<kf[a].priority;a++);kf.splice(a,0,e),a===0&&cp(e)}},function(){var e=mh.version;if(e!=="19.2.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
321
|
+
- react: `+(e+`
|
|
322
|
+
- react-dom: 19.2.0
|
|
323
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),_t.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=nt(t),e=e!==null?Be(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.0"};return e.overrideHookState=dE,e.overrideHookStateDeletePath=hE,e.overrideHookStateRenamePath=mE,e.overrideProps=gE,e.overridePropsDeletePath=pE,e.overridePropsRenamePath=yE,e.scheduleUpdate=vE,e.scheduleRetry=wE,e.setErrorHandler=bE,e.setSuspenseHandler=SE,e.scheduleRefresh=ne,e.scheduleRoot=k,e.setRefreshHandler=oe,e.getCurrentFiber=Rt,kt(e)}()&&Oc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var EE=window.location.protocol;/^(https?|file):$/.test(EE)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(EE==="file:"?`
|
|
324
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}pm.createRoot=function(e,t){if(!ue(e))throw Error("Target container is not a DOM element.");rp(e);var a=!1,o="",r=c1,d=s1,p=lg;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ui&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
325
|
+
|
|
326
|
+
let root = createRoot(domContainer);
|
|
327
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=dh(e,1,!1,null,null,a,o,null,r,d,p,y4),e[Do]=t.current,Ec(e),new sp(t)},pm.hydrateRoot=function(e,t,a){if(!ue(e))throw Error("Target container is not a DOM element.");rp(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,r="",d=c1,p=s1,v=lg,T=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=dh(e,1,!0,t,a??null,o,r,T,d,p,v,y4),t.context=h4(null),a=t.current,o=Ua(a),o=sn(o),r=kn(o),r.callback=null,Su(a,r,o),vu(o,"hydrateRoot()",null),a=o,t.current.lanes=a,su(t,a),fl(t),e[Do]=t.current,Ec(e),new Zi(t)},pm.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),pm}function o7(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o7)}catch(i){console.error(i)}}}process.env.NODE_ENV==="production"?(o7(),ib.exports=x_()):ib.exports=M_();var C_=ib.exports;const D_=i=>b.jsx("span",{className:"iw-text-2xl",children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...i,children:[b.jsx("path",{d:"M0 0C9.01627 8.39148 22.9837 8.39148 32 0C23.6085 9.01627 23.6085 22.9837 32 32C22.9837 23.6085 9.01627 23.6085 0 32C8.39148 22.9837 8.39148 9.01627 0 0Z",fill:"url(#paint0_linear_6039_13039)"}),b.jsx("defs",{children:b.jsxs("linearGradient",{id:"paint0_linear_6039_13039",x1:"16",y1:"-3.5",x2:"41.5",y2:"29",gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:"0.210966",stopColor:"#1E06CB"}),b.jsx("stop",{offset:"0.740385",stopColor:"#DB38EF"})]})})]})}),O_=()=>b.jsx(Ov,{config:{api:{baseUrl:"http://localhost:8000/api",authToken:""},interview:{proctoring:{enabled:!1,gazeAnalysisEnabled:!1,showControls:!1,showEngagementBar:!1,showLandmarks:!1}}},children:b.jsx("div",{className:"interview-widget-container",children:b.jsx(n3,{title:"Frontend Developer",brandName:"Previa",interviewId:"ea3cb06a-c168-4ad3-8084-4165a79473d3",className:"iw-rounded-none iw-shadow-none",onInterviewEnd:()=>{console.log("🎉🎉 Interview ended 🎉🎉"),window.location.reload(),sessionStorage.clear()},onInterviewDisqualify:()=>{console.log("❌ Interview disqualified ❌")}})})}),z_=document.getElementById("root");C_.createRoot(z_).render(b.jsx(O_,{}));const N_=(i,c,f)=>Math.max(c,Math.min(f,i)),c7=i=>{const c=Math.max(0,Math.floor(i)),f=Math.floor(c/60).toString().padStart(2,"0"),h=(c%60).toString().padStart(2,"0");return`${f}:${h}`},e3=({total:i,remaining:c,size:f=64,strokeWidth:h=6,className:y="",showLabel:w=!0})=>{const E=Math.max(1,i||1),A=N_(c/E,0,1),{radius:M,circumference:G,dashOffset:U,center:N}=j.useMemo(()=>{const ne=(f-h)/2,oe=2*Math.PI*ne,ue=oe*(1-A),P=Math.round(h)%2===1,ye=f/2+(P?.5:0);return{radius:ne,circumference:oe,dashOffset:ue,center:ye}},[f,h,A]),q=j.useMemo(()=>A<=.25?"iw-stroke-red-500":A<=.5?"iw-stroke-yellow-500":"iw-stroke-green-500",[A]),k=A<=.25?"iw-animate-pulse":"";return b.jsxs("div",{className:`iw-relative iw-inline-flex iw-items-center iw-justify-center iw-rounded-full iw-bg-white ${y}`,style:{width:f,height:f},"aria-label":`Time remaining ${c7(c)}`,role:"timer","aria-live":"polite",children:[b.jsx("svg",{width:f,height:f,viewBox:`0 0 ${f} ${f}`,preserveAspectRatio:"xMidYMid meet",children:b.jsxs("g",{transform:`rotate(-90 ${N} ${N})`,children:[b.jsx("circle",{cx:N,cy:N,r:M,className:"iw-stroke-gray-200",strokeWidth:h,fill:"none",shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke"}),b.jsx("circle",{cx:N,cy:N,r:M,className:`${q} ${k}`,strokeWidth:h,strokeLinecap:"round",fill:"none",strokeDasharray:G,strokeDashoffset:U,shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke",style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.2s ease"}})]})}),w?b.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:b.jsx("span",{className:`iw-text-[11px] iw-font-semibold iw-tabular-nums ${A<=.25?"iw-text-red-600":A<=.5?"iw-text-yellow-600":"iw-text-green-600"}`,children:c7(c)})}):b.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:b.jsx(ZE,{})})]})},U_=({timerState:i,answeringTime:c})=>{const f=(i==null?void 0:i.currentPhaseTimeRemaining)||0,h=c||I8.answeringDuration;return b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[b.jsx(e3,{total:h,remaining:f,size:50,strokeWidth:4,showLabel:!1,className:"iw-shadow-sm iw-border iw-border-gray-100"}),b.jsxs("div",{className:"iw-flex iw-flex-col",children:[b.jsx("span",{className:"iw-text-[#5C6686]",children:"Time left to answer"}),b.jsxs("span",{className:"iw-text-xl iw-font-bold iw-text-[#062260]",children:[Nv(f)," mins"]})]})]})},B_=({question:i,isLoading:c=!1,phase:f,brandName:h,timerState:y,answeringTime:w})=>b.jsx("div",{className:"iw-rounded-xl iw-mb-4 message-animation iw-text-gray-800 iw-py-1",children:b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[b.jsx("div",{className:`iw-flex iw-flex-col iw-items-center iw-justify-center iw-relative iw-h-16 iw-w-16 iw-shrink-0 iw-shadow iw-rounded-full iw-border-[#E8EEFE] iw-border-4 ${f===St.READING_QUESTION?"iw-animate-speaking":""}`,children:b.jsx("div",{className:"iw-bg-transparent iw-flex iw-items-center iw-justify-center iw-rounded-full iw-size-full",style:{backgroundImage:"linear-gradient(#B5D0FD, #FFFFFF)"},children:b.jsx(D_,{className:"iw-size-8"})})}),b.jsx(H_,{phase:f,question:i,isLoading:c,brandName:h,timerState:y,answeringTime:w})]})}),H_=({phase:i,question:c,isLoading:f,brandName:h,timerState:y,answeringTime:w})=>{const E=h||"We",A=h?"is":"are";if(f||i===St.FETCHING_QUESTION||i===St.IDLE)return b.jsxs("div",{className:"iw-animate-pulse iw-w-full iw-space-y-3 iw-mr-10",children:[b.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-full"}),b.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-3/4"})]});const M=()=>b.jsxs("span",{className:"iw-animate-dot-wave iw-ml-1",children:[b.jsx("span",{children:"."}),b.jsx("span",{children:"."}),b.jsx("span",{children:"."})]});switch(i){case St.ANSWERING:return b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-w-full",children:[b.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:["Listening",b.jsx(M,{})]}),b.jsx(U_,{timerState:y,answeringTime:w})]});case St.TRANSCRIBING:return b.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[E," ",A," analyzing your answer",b.jsx(M,{})]});case(St.EDITING||St.SUBMITTING):return b.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[E," ",A," waiting for your answer..."]});default:return b.jsx("p",{className:"iw-text-lg iw-leading-7",children:c==null?void 0:c.question})}},L_=({label:i,error:c,fullWidth:f=!1,className:h="",id:y,...w})=>{const E=y||`textarea-${Math.random().toString(36).substring(2,9)}`,A="iw-block iw-rounded-md iw-border iw-border-gray-300 iw-shadow-sm iw-px-4 iw-py-2 iw-text-sm iw-transition-all",M=c?"iw-border-red-500 iw-focus:border-red-500 iw-focus:ring-red-500":"",G=f?"iw-w-full":"",U=h.includes("iw-h-full")||f?"iw-h-full":"";return b.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col ${f?"iw-w-full":""}`,children:[i&&b.jsx("label",{htmlFor:E,className:"iw-block iw-text-sm iw-font-medium iw-text-gray-700 iw-mb-1",children:i}),b.jsx("textarea",{id:E,className:`${A} ${M} ${G} ${U} ${h}`,"aria-invalid":c?"true":"false",...w}),c&&b.jsx("p",{className:"iw-mt-1 iw-text-sm iw-text-red-600",children:c})]})},G_=({answerText:i,onAnswerChange:c,timerState:f,editingTime:h})=>b.jsxs("div",{className:"iw-w-full iw-bg-white iw-rounded-xl iw-border iw-border-[#84bbf5] iw-overflow-hidden iw-rounded-tr-none",children:[b.jsx("div",{className:"iw-p-2 iw-pb-0",children:b.jsx(L_,{value:i,onChange:c,placeholder:"Type your answer here...",className:"iw-w-full iw-h-64 iw-resize-none iw-bg-transparent iw-border-none iw-text-[#062260] iw-text-base iw-leading-relaxed focus-visible:iw-outline-0 iw-p-0",disabled:f.phase===St.SUBMITTING})}),b.jsxs("div",{className:"iw-bg-[#F1F5FE] iw-px-2 iw-py-2 iw-flex iw-items-center iw-justify-between iw-border-t iw-border-[#E8EEFE]",children:[b.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-medium iw-line-clamp-1",children:"Time left to edit answer"}),b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[b.jsx(e3,{total:h,remaining:f.currentPhaseTimeRemaining,size:32,strokeWidth:3,showLabel:!1}),b.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-bold",children:`${Nv(f.currentPhaseTimeRemaining)} mins`})]})]})]}),s7=({children:i})=>b.jsx("div",{className:"iw-flex iw-flex-col iw-items-start iw-mt-3 iw-gap-1",children:i}),R_=({children:i})=>b.jsx("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-3 iw-gap-1",children:i}),j_=({questionNumber:i})=>b.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:[" Q",i]}),r7=({label:i})=>b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-text-sm iw-text-gray-500 iw-bg-[#F1F5FE] iw-px-4 iw-py-1.5 iw-rounded-full iw-my-2 iw-font-semibold",children:[i&&b.jsx("span",{className:"iw-font-medium",children:i}),b.jsxs("span",{className:"iw-animate-dot-wave iw-text-2xl",children:[b.jsx("span",{children:"."}),b.jsx("span",{children:"."}),b.jsx("span",{children:"."})]})]}),q_=({phase:i,questionNumber:c})=>{switch(i){case St.FETCHING_QUESTION:return b.jsxs(s7,{children:[b.jsx(j_,{questionNumber:c+1}),b.jsx(r7,{})]});case St.ANSWERING:return b.jsx(R_,{children:b.jsx(r7,{label:"You"})});case St.TRANSCRIBING:return b.jsx(s7,{children:b.jsxs("div",{className:"iw-flex iw-items-center iw-px-1 iw-py-1.5 iw-rounded-lg iw-mb-2 iw-text-sm iw-bg-[#F2E8FE]",children:[b.jsx("img",{src:"../../../../src/assets/transcribing.gif",alt:"Transcribing",className:"iw-h-8 iw-w-12"}),b.jsx("span",{className:"iw-text-sm iw-text-[#062260]",children:"Analyzing answer…"})]})});default:return null}},V_=({item:i,index:c,isCurrentQuestion:f=!1,isEditable:h=!1,answerText:y="",onAnswerChange:w,timerState:E,editingTime:A})=>{const M=h&&E&&A!==void 0,G=M||i.answer;return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-start",children:[b.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:["Q",c+1]}),b.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tl-none",style:{backgroundColor:"#F1F5FE",border:f?"2px solid #84bbf5":"1px solid transparent"},children:i.question})]}),G&&b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-4",children:[b.jsx("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#F2E8FE",border:"1px solid #E9D5FF"},children:"You"}),M?b.jsx(G_,{answerText:y||"",onAnswerChange:w,timerState:E,editingTime:A}):b.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tr-none",style:{backgroundColor:"#F7F1FE"},children:i.answer})]}),f&&b.jsx(q_,{phase:E==null?void 0:E.phase,questionNumber:c+1})]})},Y_=()=>b.jsx("div",{className:"iw-space-y-6 iw-animate-pulse",children:[1,2,3].map(i=>b.jsxs("div",{className:`iw-flex iw-flex-col ${i%2===0?"iw-items-end":"iw-items-start"} iw-gap-2`,children:[b.jsx("div",{className:"iw-h-8 iw-w-16 iw-bg-gray-200 iw-rounded-full"}),b.jsx("div",{className:"iw-h-24 iw-w-full iw-bg-gray-100 iw-rounded-xl"})]},i))}),k_=({transcript:i,isLoading:c,className:f="",bottomRef:h,isEditing:y,answerText:w,onAnswerChange:E,timerState:A,editingTime:M})=>b.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col iw-bg-white iw-scroll-smooth iw-p-6 iw-pr-2 iw-min-w-32 iw-border iw-rounded-tr-2xl iw-rounded-br-2xl iw-border-[#E8EEFE] ${f}`,children:[b.jsxs("div",{className:"iw-mb-6",children:[b.jsx("h2",{className:"iw-text-lg iw-font-semibold iw-mb-4",style:{color:"#062260"},children:"Interview transcript"}),b.jsx("div",{className:"iw-h-px iw-w-full iw-border-t iw-border-dashed iw-border-gray-300"})]}),b.jsxs("div",{className:"iw-flex-1 iw-overflow-y-auto iw-pr-2 iw-space-y-6 iw-scrollbar-thin iw-max-w-xl iw-pb-5",children:[c?b.jsx(Y_,{}):i==null?void 0:i.map((G,U)=>b.jsx(V_,{item:G,index:U,isCurrentQuestion:U===(i==null?void 0:i.length)-1,isEditable:!!(U===(i==null?void 0:i.length)-1&&y),answerText:w||"",onAnswerChange:E||(()=>{}),timerState:A,editingTime:M},G.qna_id)),b.jsx("div",{ref:h})]})]}),X_=({interviewId:i,className:c="",currentQuestion:f,lastSubmittedAnswer:h,isEditing:y,answerText:w,onAnswerChange:E,timerState:A,editingTime:M})=>{const G=P8(),[U,N]=j.useState([]),[q,k]=j.useState(!0),ne=j.useRef(null);return j.useEffect(()=>{var oe;(oe=ne.current)==null||oe.scrollIntoView({behavior:"smooth"})},[U,w,A==null?void 0:A.phase]),j.useEffect(()=>{(async()=>{var ue;try{const P=await G.getInterviewTranscription(i);N(((ue=P==null?void 0:P.data)==null?void 0:ue.question_answers)||[])}catch(P){console.error("Failed to fetch transcript:",P)}finally{k(!1)}})()},[i,G]),j.useEffect(()=>{f&&N(oe=>{if(oe.some(ye=>ye.qna_id===f.qna_id))return oe;const P={qna_id:f.qna_id,question:f.question,answer:null,question_generated_at:new Date().toISOString(),answer_submitted_at:null};return[...oe,P]})},[f]),j.useEffect(()=>{h!=null&&h.answer?N(oe=>oe.map(ue=>ue.qna_id===h.qnaId?{...ue,answer:h.answer,answer_submitted_at:new Date().toISOString()}:ue)):w&&N(oe=>oe.map(ue=>ue.qna_id===(h==null?void 0:h.qnaId)?{...ue,answer:w,answer_submitted_at:new Date().toISOString()}:ue))},[h,w]),b.jsx(k_,{transcript:U,isLoading:q||(U==null?void 0:U.length)===0,className:c,bottomRef:ne,isEditing:y,answerText:w,onAnswerChange:E,timerState:A,editingTime:M})},Q_=({onClick:i,text:c="Submit response"})=>(j.useEffect(()=>{if(typeof window>"u")return;const f=h=>{const y=h.metaKey||h.ctrlKey,w=h.key===" ",E=h.target;E.tagName==="INPUT"||E.isContentEditable||y&&w&&(h.preventDefault(),i())};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[i]),b.jsx("div",{className:"iw-fixed iw-bottom-10 iw-left-1/4 iw-transform iw--translate-x-1/2 iw-z-50",children:b.jsxs("button",{onClick:i,className:"iw-flex iw-items-center iw-gap-3 iw-bg-[#4C6CFF] hover:iw-bg-[#4c6dffd5] iw-text-white iw-px-5 iw-py-3 iw-rounded-lg iw-shadow-lg iw-transition-all iw-duration-200 iw-group",children:[b.jsx("span",{className:"iw-font-semibold iw-text-sm",children:c}),b.jsx("span",{className:"iw-bg-white/90 iw-text-[#062260] iw-px-2 iw-py-1 iw-rounded iw-text-xs iw-font-mono iw-font-bold group-hover:iw-bg-white iw-transition-colors",children:"Press Ctrl / ⌘ + Space"})]})})),f7=({brandName:i,currentQuestion:c,state:f,phase:h,className:y="",interviewId:w="",interview_duration:E=hy,videoFeedRef:A,lastSubmittedAnswer:M,onNextPhase:G,answerText:U,onAnswerChange:N,editingTime:q,answeringTime:k})=>b.jsxs("div",{className:`iw-px-4 iw-py-3 ${y} iw-h-[calc(100vh_-_120px)] iw-max-h-[calc(100vh_-_120px)] iw-flex iw-gap-0 iw-relative`,children:[b.jsxs("div",{className:"iw-flex iw-flex-col iw-flex-1 iw-p-5 iw-bg-white/50 iw-border iw-border-[#E8EEFE] iw-rounded-s-3xl iw-overflow-hidden",children:[b.jsx("div",{className:"iw-flex iw-items-start iw-justify-between iw-gap-3 iw-mb-4",children:b.jsx("div",{className:"iw-flex-1",children:b.jsx(B_,{question:c,isLoading:h===St.FETCHING_QUESTION||h===St.IDLE,phase:h,brandName:i,timerState:f,answeringTime:k})})}),b.jsx("div",{className:"iw-flex-1 iw-min-h-0 iw-rounded-[16px] iw-overflow-hidden iw-relative",children:b.jsx(F8,{ref:A,interviewId:w,interview_duration:E,isAnswering:h===St.ANSWERING})})]}),b.jsx("div",{className:"iw-interview-transcription iw-w-1/4 iw-min-w-32 iw-h-full",children:b.jsx(X_,{interviewId:w,currentQuestion:c,lastSubmittedAnswer:M,isEditing:h===St.EDITING,answerText:U,onAnswerChange:N,timerState:f,editingTime:q})}),G&&(h===St.ANSWERING||h===St.EDITING)&&b.jsx(Q_,{onClick:G,text:h===St.ANSWERING?"Submit Response":"Submit Final Response"})]}),Z_=({confirmExitInterview:i,isOpen:c,onClose:f})=>b.jsx(lb,{isOpen:c,onClose:f,title:"Exit Interview",closeOnOverlayClick:!1,children:b.jsxs("div",{className:"iw-space-y-5",children:[b.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-rounded-xl iw-p-2",children:[b.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-flex-none iw-items-center iw-justify-center iw-rounded-full iw-bg-rose-100 iw-text-rose-600",children:"!"}),b.jsxs("div",{className:"iw-space-y-2",children:[b.jsx("p",{className:"iw-text-sm iw-font-semibold iw-text-rose-600",children:"Leaving now will end your interview !"}),b.jsx("p",{className:"iw-text-sm iw-text-slate-500",children:"Are you sure you want to exit? All progress will be lost and you will not be able to resume."})]})]}),b.jsxs("div",{className:"iw-flex iw-flex-col-reverse iw-gap-2 sm:iw-flex-row sm:iw-items-center sm:iw-justify-end iw-pb-1",children:[b.jsx("button",{className:"iw-inline-flex iw-items-center iw-justify-center iw-rounded-lg iw-border iw-border-slate-200 iw-bg-white iw-px-4 iw-py-2 iw-text-sm iw-font-medium iw-text-slate-600 iw-shadow-sm iw-transition hover:iw-bg-slate-50",onClick:f,children:"Stay in interview"}),b.jsx("button",{className:"iw-inline-flex iw-items-center iw-justify-center iw-rounded-lg iw-px-4 iw-py-2 iw-text-sm iw-font-semibold iw-text-white iw-transition hover:iw-brightness-110",style:{background:"linear-gradient(to right, rgba(244, 63, 94, 0.8), rgba(225, 29, 72, 0.8))",boxShadow:"0 12px 30px -16px rgba(244, 63, 94, 0.65)"},onClick:i,children:"Confirm exit"})]})]})}),d7=({title:i,brandName:c,brandLogo:f,onExit:h,totalDuration:y=30,elapsedTime:w=0})=>{const{baseColor:E}=Q2(),[A,M]=j.useState(!1),G=Math.min(w/(y*60)*100,100),U=()=>b.jsxs("div",{className:"iw-px-4 iw-pb-2 iw-flex iw-items-center iw-gap-3",children:[b.jsx("div",{className:"iw-flex-1 iw-h-4 iw-bg-[#F2F4F7] iw-rounded-full iw-overflow-hidden iw-border iw-border-blue-100 iw-relative",children:b.jsx("div",{className:"iw-h-full iw-bg-[#0EB00E] iw-rounded-full iw-transition-all iw-duration-1000 iw-ease-linear",style:{width:`${G}%`}})}),b.jsxs("div",{className:"iw-text-sm iw-font-medium iw-whitespace-nowrap",children:[b.jsx("span",{className:"iw-text-[#062260]",children:Nv(w)}),b.jsxs("span",{className:"iw-text-[#667085]",children:["/",y," Min"]})]})]});return b.jsxs("header",{className:"iw-w-full iw-text-gray-900 iw-shadow-sm",children:[b.jsxs("div",{className:"iw-mx-auto iw-flex iw-items-center iw-justify-between iw-p-4 iw-pt-1 iw-mb-2 iw-border-b iw-border-[#B3B9CB] iw-border-dashed",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2",children:[f||b.jsx("div",{className:"iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold",style:{backgroundColor:E},children:R6(c)}),b.jsx("p",{className:"iw-text-xl iw-font-semibold",children:c})]}),b.jsx("h1",{className:"iw-text-2xl iw-font-semibold iw-text-gradient-silver",children:i}),b.jsx("button",{className:"iw-text-sm iw-text-[#E94315] iw-min-w-10 iw-rounded-md hover:iw-bg-orange-100 iw-p-2",onClick:()=>M(!0),children:b.jsxs("span",{className:"iw-flex iw-items-center iw-gap-1 iw-text-[18px] iw-font-semibold iw-whitespace-nowrap",children:[b.jsx(q6,{className:"iw-text-[#E94315] iw-size-5"}),"Leave interview"]})})]}),b.jsx(U,{}),b.jsx("div",{className:"iw-h-px iw-bg-gray-200"}),b.jsx(Z_,{isOpen:A,confirmExitInterview:()=>{h(),M(!1)},onClose:()=>M(!1)})]})},J_=({className:i="",width:c,height:f=56,barWidth:h=3,gap:y=2,fftSize:w=1024,smoothingTimeConstant:E=.8,mediaStream:A,startOnMount:M=!0})=>{const{baseColor:G}=Q2(),U=j.useRef(null),N=j.useRef(null),q=j.useRef(null),k=j.useRef(null),ne=j.useRef(null),oe=j.useRef(null),ue=j.useRef(!1),[P,ye]=j.useState(null);j.useEffect(()=>{if(c||!N.current)return;const Te=N.current,nt=()=>{const Qe=U.current;if(!Qe)return;const xe=Te.clientWidth,me=f;Qe.width=Math.max(1,Math.floor(xe*window.devicePixelRatio||1)),Qe.height=Math.max(1,Math.floor(me*window.devicePixelRatio||1))},Be=new ResizeObserver(nt);return Be.observe(Te),nt(),()=>Be.disconnect()},[c,f]),j.useEffect(()=>{if(!c)return;const Te=U.current;Te&&(Te.width=Math.max(1,Math.floor(c*(window.devicePixelRatio||1))),Te.height=Math.max(1,Math.floor(f*(window.devicePixelRatio||1))))},[c,f]),j.useEffect(()=>{let Te=!1;return(async()=>{try{const Be=new(window.AudioContext||window.webkitAudioContext);q.current=Be;let Qe=A;if(!Qe){if(!M)return;Qe=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),ue.current=!0}if(Te)return;const xe=Be.createAnalyser();xe.fftSize=w,xe.smoothingTimeConstant=E,k.current=xe;const me=Be.createMediaStreamSource(Qe);ne.current=me,me.connect(xe),be()}catch(Be){ye((Be==null?void 0:Be.message)||"Failed to initialize microphone")}})(),()=>{var Be,Qe,xe,me;Te=!0,oe.current&&cancelAnimationFrame(oe.current);try{(Be=ne.current)==null||Be.disconnect()}catch{}try{(Qe=k.current)==null||Qe.disconnect()}catch{}ue.current&&((me=((xe=ne.current)==null?void 0:xe.mediaStream)||void 0)==null||me.getTracks().forEach(ce=>ce.stop())),q.current&&q.current.state!=="closed"&&q.current.close()}},[A,w,E,M]);const be=()=>{const Te=U.current,nt=k.current;if(!Te||!nt)return;const Be=Te.getContext("2d");if(!Be)return;const Qe=window.devicePixelRatio||1,xe=Te.width,me=Te.height,ce=nt.frequencyBinCount,Ut=new Uint8Array(ce),ke=()=>{oe.current=requestAnimationFrame(ke),nt.getByteTimeDomainData(Ut),Be.clearRect(0,0,xe,me),Be.fillStyle="rgba(0,0,0,0)",Be.fillRect(0,0,xe,me);const He=Math.max(1,Math.floor(h*Qe)),Ft=Math.max(1,Math.floor(y*Qe)),$t=He+Ft,V=Math.max(8,Math.floor((xe+Ft)/$t)),ee=Math.floor(Ut.length/V);for(let ie=0;ie<V;ie++){const ve=Math.min(Ut.length-1,ie*ee),Ce=Ut[ve]/128-1,Et=Math.abs(Ce),st=Math.pow(Et,.6),Xe=Math.max(me*.06,st*(me*.9)),Ze=ie*$t,Bt=(me-Xe)/2,en=140-Math.min(140,140*Et),Pn=85,Vt=48+Math.floor(12*(1-Et));Be.fillStyle=`${G}`,Be.shadowColor=`hsla(${en}, ${Pn}%, ${Vt}%, ${.25*Et})`,Be.shadowBlur=8*Et;const ea=Math.min(He/2,Xe/2);K_(Be,Ze,Bt,He,Xe,ea),Be.fill()}};ke()};return b.jsxs("div",{ref:N,className:`iw-relative iw-w-full iw-overflow-hidden iw-rounded-md iw-bg-gray-50 ${i}`,style:{height:f},children:[b.jsx("canvas",{ref:U,className:"iw-w-full iw-h-full"}),P&&b.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center",children:b.jsx("span",{className:"iw-text-xs iw-text-red-600 iw-bg-red-50 iw-border iw-border-red-200 iw-px-2 iw-py-1 iw-rounded",children:P})})]})};function K_(i,c,f,h,y,w){const E=Math.min(w,h/2,y/2);i.beginPath(),i.moveTo(c+E,f),i.lineTo(c+h-E,f),i.quadraticCurveTo(c+h,f,c+h,f+E),i.lineTo(c+h,f+y-E),i.quadraticCurveTo(c+h,f+y,c+h-E,f+y),i.lineTo(c+E,f+y),i.quadraticCurveTo(c,f+y,c,f+y-E),i.lineTo(c,f+E),i.quadraticCurveTo(c,f,c+E,f),i.closePath()}const F_=({state:i,answeringTime:c,nextPhase:f,sttError:h})=>b.jsxs("div",{className:"iw-flex iw-flex-col iw-justify-between iw-h-full ",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between",children:[b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"You may start speaking now. We're listening...."}),b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[b.jsx(j6,{className:"iw-size-4 iw-text-orange-600"}),b.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to talk: "})]}),b.jsx(e3,{total:c,remaining:i.currentPhaseTimeRemaining,size:50,strokeWidth:4})]})]}),b.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"Done talking? Click the button to review your answer."})]}),b.jsxs("div",{children:[b.jsx(J_,{}),h&&b.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Recording error: ",h.message]})]}),b.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:b.jsx(mm,{onClick:()=>{f()},children:"Transcribe My Answer"})})]});function $_(){const[i,c]=j.useState(!0),f=j.useMemo(()=>[0,1,2].map(h=>({id:h})),[]);return j.useEffect(()=>{const h=setInterval(()=>{c(y=>!y)},1500);return()=>clearInterval(h)},[]),b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-h-full",children:[b.jsx("div",{className:"iw-relative iw-w-80 iw-h-48 ","aria-hidden":!0,children:f.map((h,y)=>{const w=y*50,E=i?w:w+12,A=i?1:.08,M=y*140;return b.jsx("div",{role:"presentation",className:"iw-absolute iw-w-full iw-rounded-lg iw-p-4 iw-shadow-md iw-bg-gradient-to-b iw-from-gray-50 iw-to-gray-100 iw-overflow-hidden",style:{top:0,transform:`translateY(${E}px)`,opacity:A,transition:`transform 600ms cubic-bezier(.2,.9,.3,1) ${M}ms, opacity 400ms ease ${M}ms`},children:b.jsxs("div",{className:"iw-flex iw-gap-3 iw-items-center",children:[b.jsx("div",{className:"iw-w-10 iw-h-10 iw-bg-gray-300 iw-rounded iw-flex-shrink-0"}),b.jsxs("div",{className:"iw-flex-1 iw-space-y-2",children:[b.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-24"}),b.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-32"})]})]})},h.id)})}),b.jsx("div",{className:"iw-text-center",children:b.jsx("p",{className:"iw-text-gray-500 iw-font-medium",children:"Preparing your question..."})})]})}const I_=({size:i="192px",className:c,colors:f,animationDuration:h=20})=>{const w={...{bg:"oklch(95% 0.02 264.695)",c1:"oklch(75% 0.15 350)",c2:"oklch(80% 0.12 200)",c3:"oklch(78% 0.14 280)"},...f},E=parseInt(i.replace("px",""),10),A=E<50?Math.max(E*.008,1):Math.max(E*.015,4),M=E<50?Math.max(E*.004,1.2):Math.max(E*.008,1.5),G=E<50?Math.max(E*.004,.05):Math.max(E*.008,.1),U=E<50?Math.max(E*.004,.5):Math.max(E*.008,2),N=E<30?"0%":E<50?"5%":E<100?"15%":"25%",q=E<30?1.1:E<50?Math.max(M*1.2,1.3):M;return b.jsx("div",{className:`siri-orb ${c}`,style:{width:i,height:i,"--bg":w.bg,"--c1":w.c1,"--c2":w.c2,"--c3":w.c3,"--animation-duration":`${h}s`,"--blur-amount":`${A}px`,"--contrast-amount":q,"--dot-size":`${G}px`,"--shadow-spread":`${U}px`,"--mask-radius":N},children:b.jsx("style",{children:`
|
|
99
328
|
@property --angle {
|
|
100
329
|
syntax: "<angle>";
|
|
101
330
|
inherits: false;
|
|
@@ -200,4 +429,4 @@ Error generating stack: `+a.message+`
|
|
|
200
429
|
animation: none;
|
|
201
430
|
}
|
|
202
431
|
}
|
|
203
|
-
`})})};function q8({ttsError:e}){return o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-w-full iw-h-full",children:[o.jsx(V8,{size:"80px"}),e&&o.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Audio playback failed: ",e.message]}),o.jsx("p",{className:"iw-text- iw-text-gray-700",children:"Your AI interviewer is speaking..."})]})}const F8=({state:e,thinkingTime:t,nextPhase:n})=>o.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-items-center iw-justify-center iw-text-center iw-h-full ",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Get Ready to Answer"}),o.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"After 30-seconds thinking time, recording will start automatically, or you can begin recording early by clicking the button below."})]}),o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[o.jsx(a1,{className:"iw-size-4 iw-text-orange-600"}),o.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to think: "})]}),o.jsx(zc,{total:t,remaining:e.currentPhaseTimeRemaining,size:50,strokeWidth:4})]}),o.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:o.jsx(Sr,{onClick:()=>{n()},children:"Start Answering"})})]}),Y8=({sttError:e,editingDuration:t})=>o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-h-full",children:[o.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 60 60",fill:"none",children:[o.jsx("rect",{width:60,height:60,rx:30,fill:"url(#prefix__paint0_linear_1460_12482)"}),o.jsx("path",{d:"M28.127 14c.276 7.685 6.442 13.851 14.127 14.127-7.684.276-13.85 6.442-14.127 14.127-.275-7.685-6.442-13.851-14.126-14.127 7.684-.276 13.85-6.442 14.126-14.127zM38.937 31.873A7.331 7.331 0 0046 38.937 7.331 7.331 0 0038.937 46a7.331 7.331 0 00-7.064-7.063 7.331 7.331 0 007.064-7.064z",fill:"#fff"}),o.jsx("defs",{children:o.jsxs("linearGradient",{id:"prefix__paint0_linear_1460_12482",x1:30,y1:-6.563,x2:77.813,y2:54.375,gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:.211,stopColor:"#5C92FA"}),o.jsx("stop",{offset:1,stopColor:"#A75FFD"})]})})]}),o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1 iw-mt-3",children:"Just a moment... We're analyzing your response"}),o.jsxs("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:["After transcription, you'll have ",t||30," sec to review your answer."]}),e&&o.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Transcription error: ",e.message,e.recoverable&&" (attempting to continue)"]})]}),kc=5;function X8({isOpen:e,onClose:t,warningCount:n,violationType:a,onDisqualify:i}){const[l,r]=y.useState(10),s=y.useRef(t);if(y.useEffect(()=>{s.current=t},[t]),y.useEffect(()=>{if(!e)return;const d=setInterval(()=>{r(g=>g<=1?(s.current(),10):g-1)},1e3);return()=>clearInterval(d)},[e]),y.useEffect(()=>{e&&r(10)},[e]),y.useEffect(()=>(e?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[e]),!e)return null;const u=(()=>{switch(a){case"tab_switch":return{title:"Tab Switch Detected",description:"You attempted to switch to another tab or reload application.",icon:o.jsx(l1,{className:"iw-h-5 iw-w-5"})};case"fullscreen_exit":return{title:"Full Screen Exit Detected",description:"You attempted to exit full screen mode.",icon:o.jsx(g6,{className:"iw-h-5 iw-w-5"})};case"focus_loss":return{title:"Focus Loss Detected",description:"You lost focus from the interview window.",icon:o.jsx(u6,{className:"iw-h-5 iw-w-5"})};case"blocked_shortcut":return{title:"Keyboard Shortcut Blocked",description:"You attempted to use a blocked keyboard shortcut.",icon:o.jsx(Ic,{className:"iw-h-5 iw-w-5"})};case"right_click_attempt":return{title:"Right Click Attempted",description:"You attempted to use the right click.",icon:o.jsx(w6,{className:"iw-h-5 iw-w-5"})};case"alt_tab_attempt":return{title:"Alt + Tab Attempted",description:"You attempted to use the Alt + Tab shortcut.",icon:o.jsx(Ic,{className:"iw-h-5 iw-w-5"})};case"blocked_function_key":return{title:"Function Key Blocked",description:"You attempted to use a blocked function key.",icon:o.jsx(Ic,{className:"iw-h-5 iw-w-5"})};default:return{title:"Violation Detected",description:"You attempted to perform an action that is not allowed.",icon:o.jsx($l,{className:"iw-h-5 iw-w-5"})}}})(),f=kc-n,h=()=>{n+1>kc?i():t()};return o.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-black/60 iw-p-4 iw-backdrop-blur-sm",children:o.jsxs("div",{className:"iw-w-full iw-max-w-md iw-rounded-2xl iw-border iw-border-gray-100 iw-bg-white iw-shadow-xl",children:[o.jsxs("div",{className:"iw-p-6 iw-pb-0",children:[o.jsxs("div",{className:"iw-mb-6 iw-flex iw-items-start iw-gap-4",children:[o.jsx("div",{className:"iw-flex iw-h-12 iw-w-12 iw-flex-shrink-0 iw-items-center iw-justify-center iw-rounded-2xl iw-bg-red-50",children:o.jsx($l,{className:"iw-h-6 iw-w-6 iw-text-red-500"})}),o.jsxs("div",{className:"iw-flex-1",children:[o.jsx("h2",{className:"iw-mb-1 iw-text-xl iw-font-semibold iw-text-gray-900",children:"Security Violation"}),o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[o.jsx("span",{className:"iw-text-sm iw-text-gray-500",children:"Warning"}),o.jsx("div",{className:"iw-flex iw-gap-1",children:Array.from({length:kc}).map((d,g)=>o.jsx("div",{className:`iw-h-2 iw-w-2 iw-rounded-full ${g<=n-1?"iw-bg-red-500":"iw-bg-gray-200"}`},g))}),o.jsxs("span",{className:"iw-text-sm iw-text-gray-500",children:["(",n,"/",kc,")"]})]})]})]}),o.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-border iw-border-red-100 iw-p-5",style:{background:"linear-gradient(to right, rgb(254, 242, 242), rgb(254, 245, 235))",borderColor:"rgb(254, 226, 226)"},children:o.jsxs("div",{className:"iw-flex iw-items-start iw-gap-4",children:[o.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-xl iw-bg-white iw-shadow-sm",children:u.icon}),o.jsxs("div",{className:"iw-flex-1",children:[o.jsx("h3",{className:"iw-mb-2 iw-font-semibold iw-text-gray-900",children:u.title}),o.jsx("p",{className:"iw-text-sm iw-leading-relaxed iw-text-gray-700",children:u.description}),o.jsxs("div",{className:"iw-mt-3 iw-flex iw-items-center iw-gap-2 iw-text-xs iw-text-red-600",children:[o.jsx(m6,{className:"iw-h-3 iw-w-3"}),o.jsx("span",{children:"This action is monitored for interview integrity"})]})]})]})}),o.jsxs("div",{className:"iw-mb-5 iw-grid iw-grid-cols-2 iw-gap-3",children:[o.jsx("div",{className:"iw-rounded-xl iw-border iw-border-amber-200 iw-bg-amber-50 iw-p-4",children:o.jsxs("div",{className:"iw-text-center",children:[o.jsx("div",{className:"iw-mb-1 iw-text-2xl iw-font-bold iw-text-amber-600",children:f}),o.jsx("div",{className:"iw-text-xs iw-font-medium iw-text-amber-700",children:"Warnings Left"})]})}),o.jsx("div",{className:"iw-border-primary-100 iw-bg-primary-50 iw-rounded-xl iw-border iw-p-4",children:o.jsxs("div",{className:"iw-text-center",children:[o.jsxs("div",{className:"iw-mb-1 iw-flex iw-items-center iw-justify-center iw-gap-1.5",children:[o.jsx(c6,{className:"iw-text-primary-600 iw-h-4 iw-w-4"}),o.jsx("span",{className:"iw-text-primary-600 iw-text-2xl iw-font-bold",children:l})]}),o.jsx("div",{className:"iw-text-primary-700 iw-text-xs iw-font-medium",children:"Auto Close"})]})})]}),f===1&&o.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-p-4 iw-text-white",style:{background:"linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(239, 68, 68, 0.9))"},children:o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[o.jsx("div",{className:"iw-flex iw-h-8 iw-w-8 iw-items-center iw-justify-center iw-rounded-full iw-bg-white/20",children:o.jsx($l,{className:"iw-h-4 iw-w-4"})}),o.jsxs("div",{children:[o.jsx("div",{className:"iw-text-sm iw-font-semibold",children:"Final Warning"}),o.jsx("div",{className:"iw-text-xs iw-text-red-100",children:"Next violation will disqualify you from this interview"})]})]})})]}),o.jsxs("div",{className:"iw-p-6 iw-pt-0",children:[o.jsx(Sr,{onClick:h,className:"iw-h-12 iw-w-full iw-rounded-xl iw-bg-gray-800 iw-text-sm iw-font-medium iw-text-white iw-hover:bg-gray-800",children:"I Understand - Continue Interview"}),o.jsx("p",{className:"iw-text-gray-500 iw-mt-3 iw-text-center iw-text-xs",children:"Please maintain focus and avoid switching tabs, exiting fullscreen, using shortcuts or right-clicking."})]})]})})}const Q8=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}),o.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),K8=({showHardReloadWarning:e,onContinue:t})=>{const n=()=>{t()};return o.jsxs(bf,{isOpen:e,onClose:n,closeOnOverlayClick:!1,closeOnEscape:!1,showCloseButton:!1,className:"iw-max-w-lg iw-px-2 iw-rounded-xl",children:[o.jsx("div",{className:"iw-absolute iw-inset-x-0 iw-top-0 iw-h-1 iw-bg-gradient-to-r iw-from-red-500 iw-to-red-600"}),o.jsx("div",{className:"iw-space-y-1 iw-pb-2 iw-pt-3",children:o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[o.jsx($l,{className:"iw-w-5 iw-h-5 iw-text-red-500"}),o.jsx("h3",{className:"iw-text-xl iw-font-semibold iw-text-red-500",children:"Full Screen Exit Detected"})]})}),o.jsx("div",{className:"iw-pt-4 iw-pb-6",children:o.jsx("p",{className:"iw-text-center iw-text-sm iw-leading-relaxed iw-text-gray-500/90",children:"Exiting full screen mode or reloading this page during the session is strictly prohibited. Any attempt to do so will be recorded and may lead to penalties."})}),o.jsx("div",{className:"iw-pt-2 iw-pb-4",children:o.jsxs("button",{onClick:n,className:"iw-w-full iw-flex iw-items-center iw-justify-center iw-gap-2 iw-px-4 iw-py-3 iw-bg-gray-100 iw-text-gray-600 iw-rounded-md iw-font-medium iw-transition-colors hover:iw-bg-gray-200 focus:iw-outline-none focus:iw-ring-2 focus:iw-ring-gray-400 focus:iw-ring-offset-2",children:[o.jsx(Q8,{className:"iw-size-4"}),"Continue Session"]})})]})},Z8=y.forwardRef(({children:e,onDisqualify:t},n)=>{const[a,i]=y.useState(!1),[l,r]=y.useState(!1),[s,c]=y.useState(!1),[u,f]=y.useState("fullscreen_exit"),{logViolation:h,violationCount:d}=qy({maxViolations:5,onViolation:w=>{l||(i(!0),f(w.type))}}),{enterFullScreen:g,isFullScreen:v,exitFullScreen:S}=Ly({onFullScreenChange(w){!w&&!l&&!s&&(i(!0),h({type:"fullscreen_exit",severity:"high",details:{action:"fullscreen_exit",reason:"Attempted to exit full screen mode"}})),w&&c(!1)}});y.useEffect(()=>{g()},[]),y.useImperativeHandle(n,()=>({exitFullScreenIntentionally:async()=>{c(!0),i(!1),r(!1);try{document.fullscreenElement&&await document.exitFullscreen()}catch(w){console.error("Failed to exit fullscreen:",w)}}}),[]),Gy(h),Uy(h),Hy(),Fy();const _=()=>{r(!0),S(),i(!1),t==null||t()};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"iw-relative iw-h-full iw-w-full",children:e}),o.jsx(X8,{warningCount:d,isOpen:a,violationType:u,onClose:()=>{i(!1),g()},onDisqualify:_}),!a&&d>0&&!l&&!s&&o.jsx(K8,{showHardReloadWarning:!v,logViolation:h,onContinue:g})]})}),I8=({interviewTitle:e,brandName:t="Novara",brandLogo:n,interviewId:a,onComplete:i,onDisqualify:l,className:r="",videoFeedRef:s})=>{var Bc;const c=y3(),{baseUrl:u,authToken:f}=t1(),{timers:h,stt:d,proctoring:g}=Kc(),v=y.useRef(null),[S,_]=y.useState(null),[w,m]=y.useState(""),[p,b]=y.useState(null),[T,N]=y.useState(_s),[x,C]=y.useState(!0),A=y.useRef(""),O=y.useRef(null);y.useEffect(()=>{(async()=>{try{const xe=await c.getInterviewConfig(a);xe!=null&&xe.data&&(xe.data.duration_in_minutes&&N(xe.data.duration_in_minutes),typeof xe.data.allow_answer_editing=="boolean"&&C(xe.data.allow_answer_editing))}catch(xe){console.error("Failed to fetch interview config:",xe)}})()},[a]);const _e={thinkingTime:(h==null?void 0:h.thinkingDuration)||0,answeringTime:(h==null?void 0:h.answeringDuration)||120,editingTime:x?(h==null?void 0:h.editingDuration)||30:0},{thinkingTime:He,answeringTime:st,editingTime:un}=_e;y.useEffect(()=>{A.current=w},[w]);const St=y.useRef(!1),{speak:M,stop:j,error:H}=Vy({onEnd:()=>{St.current=!1,De()},onError:()=>{St.current||(St.current=!0,De())}}),$=y.useRef(!1),re=y.useRef(!1),{startRecording:ot,stopRecording:bn,transcribe:fn,cancelRecording:Qt,error:ct}=By({config:{baseUrl:u,provider:d==null?void 0:d.provider,model:d==null?void 0:d.model,language:d==null?void 0:d.language,authToken:f,qnaId:((Bc=O.current)==null?void 0:Bc.qna_id)||"",interviewId:a},onStart:()=>{$.current=!1,re.current=!1},onStop:()=>{},onTranscriptionComplete:q=>{m(q.transcript),re.current||(re.current=!0,De())},onError:q=>{console.error("STT Error:",q),$.current||($.current=!0,De())}}),{state:ut,startQuestion:dn,nextPhase:De,completeInterview:Qa}=zy({config:{answeringDuration:st,editingDuration:un},callbacks:{onPhaseChange:q=>{switch(q){case I.FETCHING_QUESTION:Il();break;case I.READING_QUESTION:bs();break;case I.ANSWERING:I2();break;case I.TRANSCRIBING:Uc();break;case I.SUBMITTING:vs();break}},onInterviewEnd:()=>{i==null||i()}}});y.useEffect(()=>{dn()},[]);const{execute:Il}=ky(async()=>{const q=await c.generateQuestion({interviewId:a});return O.current=q.data,q},{onSuccess:async q=>{q&&q.data&&(m(""),_(q.data),De())},onError:q=>{console.error("Failed to fetch questions:",q)}}),vs=y.useCallback(async()=>{var q;try{const xe=A.current,Ci=((q=O.current)==null?void 0:q.qna_id)||"";await c.submitAnswer({interviewId:a,qnaId:Ci,answer:xe}),b({qnaId:Ci,answer:xe})}catch(xe){console.error("Failed to submit answer:",xe)}dn()},[c,a,dn]),bs=y.useCallback(async()=>{var q;if((q=O.current)!=null&&q.question)if(O.current.question_audio_data_base64)try{St.current=!1,await M(O.current.question_audio_data_base64),O.current.is_interview_done&&Qa()}catch(xe){console.error("Failed to speak question:",xe),De()}else console.warn("No audio data available for question"),await a6(2e3),De();else De()},[M,De,Qa]),I2=y.useCallback(async()=>{try{await ot(st)}catch(q){console.error("Failed to start recording:",q),De()}},[ot,De]),Uc=y.useCallback(async()=>{try{const q=await bn();await fn(q)}catch(q){console.error("STT processing failed:",q),!$.current&&!re.current&&($.current=!0,De())}},[bn,fn,De]),Mi=y.useCallback(async q=>{var xe,Ci;j(),Qt(),s&&"current"in s&&((xe=s.current)==null||xe.stopCamera()),await((Ci=v.current)==null?void 0:Ci.exitFullScreenIntentionally());try{await c.exitInterview(a)}catch(Gc){console.error("API call failed:",Gc)}finally{q==null||q(),Qa(),sessionStorage.removeItem(Fc)}},[a,j,c]),Ss=()=>{const{phase:q}=ut;switch(q){case I.IDLE:return o.jsxs("div",{className:"iw-text-center iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-2 iw-h-full",children:[o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Ready to start the Interview?"}),o.jsx("p",{className:"iw-max-w-xl iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:`You will be asked a series of behavioral and technical questions. For each one you'll get a short thinking period, then a timed recording window. We'll transcribe your response so you can review and edit it before submitting. Click "Start Interview" when you're ready.`}),o.jsx(Sr,{onClick:dn,className:"iw-mt-2 iw-w-40",children:"Start Interview"})]});case I.FETCHING_QUESTION:return o.jsx(j8,{});case I.READING_QUESTION:return o.jsx(q8,{ttsError:H});case I.THINKING:return o.jsx(F8,{state:ut,thinkingTime:He,nextPhase:De});case I.ANSWERING:return o.jsx(H8,{state:ut,answeringTime:st,nextPhase:De,sttError:ct});case I.TRANSCRIBING:return o.jsx(Y8,{sttError:ct,editingDuration:un});case I.EDITING:case I.SUBMITTING:return null;case I.COMPLETED:return null;default:return null}};return o.jsx(o.Fragment,{children:g!=null&&g.enabled?o.jsxs(Z8,{ref:v,onDisqualify:()=>Mi(l),children:[o.jsx(Gm,{title:e,brandName:t,brandLogo:n,totalDuration:T,elapsedTime:ut.totalTimeElapsed,onExit:()=>Mi()}),o.jsx(Bm,{brandName:t,currentQuestion:S,state:ut,phase:ut.phase,className:r,interviewId:a,interview_duration:T,videoFeedRef:s,lastSubmittedAnswer:p,onNextPhase:De,answerText:w,onAnswerChange:q=>m(q.target.value),editingTime:un,answeringTime:st,children:Ss()})]}):o.jsxs(o.Fragment,{children:[o.jsx(Gm,{title:e,brandName:t,brandLogo:n,totalDuration:T,elapsedTime:ut.totalTimeElapsed,onExit:()=>Mi()}),o.jsx(Bm,{brandName:t,currentQuestion:S,state:ut,phase:ut.phase,className:r,interviewId:a,interview_duration:T,videoFeedRef:s,lastSubmittedAnswer:p,onNextPhase:De,answerText:w,onAnswerChange:q=>m(q.target.value),editingTime:un,answeringTime:st,children:Ss()})]})})},Lc=({title:e,brandName:t,brandLogo:n,interviewId:a,onInterviewEnd:i,onInterviewDisqualify:l,className:r=""})=>{const{baseColor:s}=Pl(),[c,u]=y.useState(!1),[f,h]=y.useState(!0),[d,g]=y.useState(!1),{proctoring:v}=Kc(),S=y.useRef(null),_=y.useRef(null),w=(v==null?void 0:v.gazeAnalysisEnabled)===!0,m=()=>{u(!0),h(!1)};return y.useEffect(()=>{if(c&&d&&_.current&&w)try{_.current.setReference()}finally{g(!1)}},[c,d,w]),c?o.jsx("div",{className:"interview-widget-container",children:o.jsx("div",{ref:S,className:`iw-flex iw-flex-col iw-rounded-xl iw-shadow-lg iw-overflow-hidden iw-h-[calc(100vh-1rem)] ${r}`,children:o.jsx("div",{className:"iw-h-[calc(100vh-1rem)] iw-flex iw-flex-col iw-justify-between gap-1",children:o.jsx(I8,{interviewTitle:e??"Interview",brandName:t??"Novara",brandLogo:n,interviewId:a,className:r,onComplete:i??(()=>{}),onDisqualify:l,videoFeedRef:_})})})}):o.jsxs("div",{className:"interview-widget-container",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2 iw-mx-auto iw-p-2 iw-max-w-[1800px]",children:[n||o.jsx("div",{className:"iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold",style:{backgroundColor:s},children:n1(t)}),o.jsx("p",{className:"iw-text-xl iw-font-semibold",children:t})]}),o.jsx(Dy,{isOpen:f,gazeEnabled:w,onStart:m,onRequestCalibration:()=>g(!0),videoFeedRef:_,interviewId:a})]})};typeof window<"u"&&(window.InterviewWidget={InterviewWidget:Lc,InterviewWidgetProvider:Qc}),Re.InterviewWidget=Lc,Re.InterviewWidgetProvider=Qc,Re.default=Lc,Object.defineProperties(Re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
432
|
+
`})})};function W_({ttsError:i}){return b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-w-full iw-h-full",children:[b.jsx(I_,{size:"80px"}),i&&b.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Audio playback failed: ",i.message]}),b.jsx("p",{className:"iw-text- iw-text-gray-700",children:"Your AI interviewer is speaking..."})]})}const P_=({state:i,thinkingTime:c,nextPhase:f})=>b.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-items-center iw-justify-center iw-text-center iw-h-full ",children:[b.jsxs("div",{children:[b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Get Ready to Answer"}),b.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"After 30-seconds thinking time, recording will start automatically, or you can begin recording early by clicking the button below."})]}),b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[b.jsx(j6,{className:"iw-size-4 iw-text-orange-600"}),b.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to think: "})]}),b.jsx(e3,{total:c,remaining:i.currentPhaseTimeRemaining,size:50,strokeWidth:4})]}),b.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:b.jsx(mm,{onClick:()=>{f()},children:"Start Answering"})})]}),ex=({sttError:i,editingDuration:c})=>b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-h-full",children:[b.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 60 60",fill:"none",children:[b.jsx("rect",{width:60,height:60,rx:30,fill:"url(#prefix__paint0_linear_1460_12482)"}),b.jsx("path",{d:"M28.127 14c.276 7.685 6.442 13.851 14.127 14.127-7.684.276-13.85 6.442-14.127 14.127-.275-7.685-6.442-13.851-14.126-14.127 7.684-.276 13.85-6.442 14.126-14.127zM38.937 31.873A7.331 7.331 0 0046 38.937 7.331 7.331 0 0038.937 46a7.331 7.331 0 00-7.064-7.063 7.331 7.331 0 007.064-7.064z",fill:"#fff"}),b.jsx("defs",{children:b.jsxs("linearGradient",{id:"prefix__paint0_linear_1460_12482",x1:30,y1:-6.563,x2:77.813,y2:54.375,gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:.211,stopColor:"#5C92FA"}),b.jsx("stop",{offset:1,stopColor:"#A75FFD"})]})})]}),b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1 iw-mt-3",children:"Just a moment... We're analyzing your response"}),b.jsxs("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:["After transcription, you'll have ",c||30," sec to review your answer."]}),i&&b.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Transcription error: ",i.message,i.recoverable&&" (attempting to continue)"]})]}),t3=5;function tx({isOpen:i,onClose:c,warningCount:f,violationType:h,onDisqualify:y}){const[w,E]=j.useState(10),A=j.useRef(c);if(j.useEffect(()=>{A.current=c},[c]),j.useEffect(()=>{if(!i)return;const q=setInterval(()=>{E(k=>k<=1?(A.current(),10):k-1)},1e3);return()=>clearInterval(q)},[i]),j.useEffect(()=>{i&&E(10)},[i]),j.useEffect(()=>(i?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[i]),!i)return null;const G=(()=>{switch(h){case"tab_switch":return{title:"Tab Switch Detected",description:"You attempted to switch to another tab or reload application.",icon:b.jsx(V6,{className:"iw-h-5 iw-w-5"})};case"fullscreen_exit":return{title:"Full Screen Exit Detected",description:"You attempted to exit full screen mode.",icon:b.jsx(FE,{className:"iw-h-5 iw-w-5"})};case"focus_loss":return{title:"Focus Loss Detected",description:"You lost focus from the interview window.",icon:b.jsx(QE,{className:"iw-h-5 iw-w-5"})};case"blocked_shortcut":return{title:"Keyboard Shortcut Blocked",description:"You attempted to use a blocked keyboard shortcut.",icon:b.jsx(Uv,{className:"iw-h-5 iw-w-5"})};case"right_click_attempt":return{title:"Right Click Attempted",description:"You attempted to use the right click.",icon:b.jsx($E,{className:"iw-h-5 iw-w-5"})};case"alt_tab_attempt":return{title:"Alt + Tab Attempted",description:"You attempted to use the Alt + Tab shortcut.",icon:b.jsx(Uv,{className:"iw-h-5 iw-w-5"})};case"blocked_function_key":return{title:"Function Key Blocked",description:"You attempted to use a blocked function key.",icon:b.jsx(Uv,{className:"iw-h-5 iw-w-5"})};default:return{title:"Violation Detected",description:"You attempted to perform an action that is not allowed.",icon:b.jsx(Z2,{className:"iw-h-5 iw-w-5"})}}})(),U=t3-f,N=()=>{f+1>t3?y():c()};return b.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-black/60 iw-p-4 iw-backdrop-blur-sm",children:b.jsxs("div",{className:"iw-w-full iw-max-w-md iw-rounded-2xl iw-border iw-border-gray-100 iw-bg-white iw-shadow-xl",children:[b.jsxs("div",{className:"iw-p-6 iw-pb-0",children:[b.jsxs("div",{className:"iw-mb-6 iw-flex iw-items-start iw-gap-4",children:[b.jsx("div",{className:"iw-flex iw-h-12 iw-w-12 iw-flex-shrink-0 iw-items-center iw-justify-center iw-rounded-2xl iw-bg-red-50",children:b.jsx(Z2,{className:"iw-h-6 iw-w-6 iw-text-red-500"})}),b.jsxs("div",{className:"iw-flex-1",children:[b.jsx("h2",{className:"iw-mb-1 iw-text-xl iw-font-semibold iw-text-gray-900",children:"Security Violation"}),b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[b.jsx("span",{className:"iw-text-sm iw-text-gray-500",children:"Warning"}),b.jsx("div",{className:"iw-flex iw-gap-1",children:Array.from({length:t3}).map((q,k)=>b.jsx("div",{className:`iw-h-2 iw-w-2 iw-rounded-full ${k<=f-1?"iw-bg-red-500":"iw-bg-gray-200"}`},k))}),b.jsxs("span",{className:"iw-text-sm iw-text-gray-500",children:["(",f,"/",t3,")"]})]})]})]}),b.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-border iw-border-red-100 iw-p-5",style:{background:"linear-gradient(to right, rgb(254, 242, 242), rgb(254, 245, 235))",borderColor:"rgb(254, 226, 226)"},children:b.jsxs("div",{className:"iw-flex iw-items-start iw-gap-4",children:[b.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-xl iw-bg-white iw-shadow-sm",children:G.icon}),b.jsxs("div",{className:"iw-flex-1",children:[b.jsx("h3",{className:"iw-mb-2 iw-font-semibold iw-text-gray-900",children:G.title}),b.jsx("p",{className:"iw-text-sm iw-leading-relaxed iw-text-gray-700",children:G.description}),b.jsxs("div",{className:"iw-mt-3 iw-flex iw-items-center iw-gap-2 iw-text-xs iw-text-red-600",children:[b.jsx(IE,{className:"iw-h-3 iw-w-3"}),b.jsx("span",{children:"This action is monitored for interview integrity"})]})]})]})}),b.jsxs("div",{className:"iw-mb-5 iw-grid iw-grid-cols-2 iw-gap-3",children:[b.jsx("div",{className:"iw-rounded-xl iw-border iw-border-amber-200 iw-bg-amber-50 iw-p-4",children:b.jsxs("div",{className:"iw-text-center",children:[b.jsx("div",{className:"iw-mb-1 iw-text-2xl iw-font-bold iw-text-amber-600",children:U}),b.jsx("div",{className:"iw-text-xs iw-font-medium iw-text-amber-700",children:"Warnings Left"})]})}),b.jsx("div",{className:"iw-border-primary-100 iw-bg-primary-50 iw-rounded-xl iw-border iw-p-4",children:b.jsxs("div",{className:"iw-text-center",children:[b.jsxs("div",{className:"iw-mb-1 iw-flex iw-items-center iw-justify-center iw-gap-1.5",children:[b.jsx(XE,{className:"iw-text-primary-600 iw-h-4 iw-w-4"}),b.jsx("span",{className:"iw-text-primary-600 iw-text-2xl iw-font-bold",children:w})]}),b.jsx("div",{className:"iw-text-primary-700 iw-text-xs iw-font-medium",children:"Auto Close"})]})})]}),U===1&&b.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-p-4 iw-text-white",style:{background:"linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(239, 68, 68, 0.9))"},children:b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[b.jsx("div",{className:"iw-flex iw-h-8 iw-w-8 iw-items-center iw-justify-center iw-rounded-full iw-bg-white/20",children:b.jsx(Z2,{className:"iw-h-4 iw-w-4"})}),b.jsxs("div",{children:[b.jsx("div",{className:"iw-text-sm iw-font-semibold",children:"Final Warning"}),b.jsx("div",{className:"iw-text-xs iw-text-red-100",children:"Next violation will disqualify you from this interview"})]})]})})]}),b.jsxs("div",{className:"iw-p-6 iw-pt-0",children:[b.jsx(mm,{onClick:N,className:"iw-h-12 iw-w-full iw-rounded-xl iw-bg-gray-800 iw-text-sm iw-font-medium iw-text-white iw-hover:bg-gray-800",children:"I Understand - Continue Interview"}),b.jsx("p",{className:"iw-text-gray-500 iw-mt-3 iw-text-center iw-text-xs",children:"Please maintain focus and avoid switching tabs, exiting fullscreen, using shortcuts or right-clicking."})]})]})})}const nx=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}),b.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),ax=({showHardReloadWarning:i,onContinue:c})=>{const f=()=>{c()};return b.jsxs(lb,{isOpen:i,onClose:f,closeOnOverlayClick:!1,closeOnEscape:!1,showCloseButton:!1,className:"iw-max-w-lg iw-px-2 iw-rounded-xl",children:[b.jsx("div",{className:"iw-absolute iw-inset-x-0 iw-top-0 iw-h-1 iw-bg-gradient-to-r iw-from-red-500 iw-to-red-600"}),b.jsx("div",{className:"iw-space-y-1 iw-pb-2 iw-pt-3",children:b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[b.jsx(Z2,{className:"iw-w-5 iw-h-5 iw-text-red-500"}),b.jsx("h3",{className:"iw-text-xl iw-font-semibold iw-text-red-500",children:"Full Screen Exit Detected"})]})}),b.jsx("div",{className:"iw-pt-4 iw-pb-6",children:b.jsx("p",{className:"iw-text-center iw-text-sm iw-leading-relaxed iw-text-gray-500/90",children:"Exiting full screen mode or reloading this page during the session is strictly prohibited. Any attempt to do so will be recorded and may lead to penalties."})}),b.jsx("div",{className:"iw-pt-2 iw-pb-4",children:b.jsxs("button",{onClick:f,className:"iw-w-full iw-flex iw-items-center iw-justify-center iw-gap-2 iw-px-4 iw-py-3 iw-bg-gray-100 iw-text-gray-600 iw-rounded-md iw-font-medium iw-transition-colors hover:iw-bg-gray-200 focus:iw-outline-none focus:iw-ring-2 focus:iw-ring-gray-400 focus:iw-ring-offset-2",children:[b.jsx(nx,{className:"iw-size-4"}),"Continue Session"]})})]})},lx=j.forwardRef(({children:i,onDisqualify:c},f)=>{const[h,y]=j.useState(!1),[w,E]=j.useState(!1),[A,M]=j.useState(!1),[G,U]=j.useState("fullscreen_exit"),{logViolation:N,violationCount:q}=E_({maxViolations:5,onViolation:P=>{w||(y(!0),U(P.type))}}),{enterFullScreen:k,isFullScreen:ne,exitFullScreen:oe}=g_({onFullScreenChange(P){!P&&!w&&!A&&(y(!0),N({type:"fullscreen_exit",severity:"high",details:{action:"fullscreen_exit",reason:"Attempted to exit full screen mode"}})),P&&M(!1)}});j.useEffect(()=>{k()},[]),j.useImperativeHandle(f,()=>({exitFullScreenIntentionally:async()=>{M(!0),y(!1),E(!1);try{document.fullscreenElement&&await document.exitFullscreen()}catch(P){console.error("Failed to exit fullscreen:",P)}}}),[]),v_(N),p_(N),w_(),T_();const ue=()=>{E(!0),oe(),y(!1),c==null||c()};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"iw-relative iw-h-full iw-w-full",children:i}),b.jsx(tx,{warningCount:q,isOpen:h,violationType:G,onClose:()=>{y(!1),k()},onDisqualify:ue}),!h&&q>0&&!w&&!A&&b.jsx(ax,{showHardReloadWarning:!ne,logViolation:N,onContinue:k})]})}),ix=({interviewTitle:i,brandName:c="Novara",brandLogo:f,interviewId:h,onComplete:y,onDisqualify:w,className:E="",videoFeedRef:A})=>{var Zo;const M=P8(),{baseUrl:G,authToken:U}=G6(),{timers:N,stt:q,proctoring:k}=zv(),ne=j.useRef(null),[oe,ue]=j.useState(null),[P,ye]=j.useState(""),[be,Te]=j.useState(null),[nt,Be]=j.useState(hy),[Qe,xe]=j.useState(!0),me=j.useRef(""),ce=j.useRef(null);j.useEffect(()=>{(async()=>{try{const kt=await M.getInterviewConfig(h);kt!=null&&kt.data&&(kt.data.duration_in_minutes&&Be(kt.data.duration_in_minutes),typeof kt.data.allow_answer_editing=="boolean"&&xe(kt.data.allow_answer_editing))}catch(kt){console.error("Failed to fetch interview config:",kt)}})()},[h]);const Ut={thinkingTime:(N==null?void 0:N.thinkingDuration)||0,answeringTime:(N==null?void 0:N.answeringDuration)||120,editingTime:Qe?(N==null?void 0:N.editingDuration)||30:0},{thinkingTime:ke,answeringTime:He,editingTime:Ft}=Ut;j.useEffect(()=>{me.current=P},[P]);const $t=j.useRef(!1),{speak:V,stop:ee,error:ie}=S_({onEnd:()=>{$t.current=!1,Vt()},onError:()=>{$t.current||($t.current=!0,Vt())}}),ve=j.useRef(!1),Ce=j.useRef(!1),{startRecording:Et,stopRecording:st,transcribe:Xe,cancelRecording:Ze,error:Bt}=y_({config:{baseUrl:G,provider:q==null?void 0:q.provider,model:q==null?void 0:q.model,language:q==null?void 0:q.language,authToken:U,qnaId:((Zo=ce.current)==null?void 0:Zo.qna_id)||"",interviewId:h},onStart:()=>{ve.current=!1,Ce.current=!1},onStop:()=>{},onTranscriptionComplete:Re=>{ye(Re.transcript),Ce.current||(Ce.current=!0,Vt())},onError:Re=>{console.error("STT Error:",Re),ve.current||(ve.current=!0,Vt())}}),{state:en,startQuestion:Pn,nextPhase:Vt,completeInterview:ea}=h_({config:{answeringDuration:He,editingDuration:Ft},callbacks:{onPhaseChange:Re=>{switch(Re){case St.FETCHING_QUESTION:cu();break;case St.READING_QUESTION:Ti();break;case St.ANSWERING:io();break;case St.TRANSCRIBING:Va();break;case St.SUBMITTING:fe();break}},onInterviewEnd:()=>{y==null||y()}}});j.useEffect(()=>{Pn()},[]);const{execute:cu}=m_(async()=>{const Re=await M.generateQuestion({interviewId:h});return ce.current=Re.data,Re},{onSuccess:async Re=>{Re&&Re.data&&(ye(""),ue(Re.data),Vt())},onError:Re=>{console.error("Failed to fetch questions:",Re)}}),fe=j.useCallback(async()=>{var Re;try{const kt=me.current,ht=((Re=ce.current)==null?void 0:Re.qna_id)||"";await M.submitAnswer({interviewId:h,qnaId:ht,answer:kt}),Te({qnaId:ht,answer:kt})}catch(kt){console.error("Failed to submit answer:",kt)}Pn()},[M,h,Pn]),Ti=j.useCallback(async()=>{var Re;if((Re=ce.current)!=null&&Re.question)if(ce.current.question_audio_data_base64)try{$t.current=!1,await V(ce.current.question_audio_data_base64),ce.current.is_interview_done&&ea()}catch(kt){console.error("Failed to speak question:",kt),Vt()}else console.warn("No audio data available for question"),await RE(2e3),Vt();else Vt()},[V,Vt,ea]),io=j.useCallback(async()=>{try{await Et(He)}catch(Re){console.error("Failed to start recording:",Re),Vt()}},[Et,Vt]),Va=j.useCallback(async()=>{try{const Re=await st();await Xe(Re)}catch(Re){console.error("STT processing failed:",Re),!ve.current&&!Ce.current&&(ve.current=!0,Vt())}},[st,Xe,Vt]),Ya=j.useCallback(async Re=>{var kt,ht;ee(),Ze(),A&&"current"in A&&((kt=A.current)==null||kt.stopCamera()),await((ht=ne.current)==null?void 0:ht.exitFullScreenIntentionally());try{await M.exitInterview(h)}catch(Jo){console.error("API call failed:",Jo)}finally{Re==null||Re(),ea(),sessionStorage.removeItem(Mv)}},[h,ee,M]),dt=()=>{const{phase:Re}=en;switch(Re){case St.IDLE:return b.jsxs("div",{className:"iw-text-center iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-2 iw-h-full",children:[b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Ready to start the Interview?"}),b.jsx("p",{className:"iw-max-w-xl iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:`You will be asked a series of behavioral and technical questions. For each one you'll get a short thinking period, then a timed recording window. We'll transcribe your response so you can review and edit it before submitting. Click "Start Interview" when you're ready.`}),b.jsx(mm,{onClick:Pn,className:"iw-mt-2 iw-w-40",children:"Start Interview"})]});case St.FETCHING_QUESTION:return b.jsx($_,{});case St.READING_QUESTION:return b.jsx(W_,{ttsError:ie});case St.THINKING:return b.jsx(P_,{state:en,thinkingTime:ke,nextPhase:Vt});case St.ANSWERING:return b.jsx(F_,{state:en,answeringTime:He,nextPhase:Vt,sttError:Bt});case St.TRANSCRIBING:return b.jsx(ex,{sttError:Bt,editingDuration:Ft});case St.EDITING:case St.SUBMITTING:return null;case St.COMPLETED:return null;default:return null}};return b.jsx(b.Fragment,{children:k!=null&&k.enabled?b.jsxs(lx,{ref:ne,onDisqualify:()=>Ya(w),children:[b.jsx(d7,{title:i,brandName:c,brandLogo:f,totalDuration:nt,elapsedTime:en.totalTimeElapsed,onExit:()=>Ya()}),b.jsx(f7,{brandName:c,currentQuestion:oe,state:en,phase:en.phase,className:E,interviewId:h,interview_duration:nt,videoFeedRef:A,lastSubmittedAnswer:be,onNextPhase:Vt,answerText:P,onAnswerChange:Re=>ye(Re.target.value),editingTime:Ft,answeringTime:He,children:dt()})]}):b.jsxs(b.Fragment,{children:[b.jsx(d7,{title:i,brandName:c,brandLogo:f,totalDuration:nt,elapsedTime:en.totalTimeElapsed,onExit:()=>Ya()}),b.jsx(f7,{brandName:c,currentQuestion:oe,state:en,phase:en.phase,className:E,interviewId:h,interview_duration:nt,videoFeedRef:A,lastSubmittedAnswer:be,onNextPhase:Vt,answerText:P,onAnswerChange:Re=>ye(Re.target.value),editingTime:Ft,answeringTime:He,children:dt()})]})})},n3=({title:i,brandName:c,brandLogo:f,interviewId:h,onInterviewEnd:y,onInterviewDisqualify:w,className:E=""})=>{const{baseColor:A}=Q2(),[M,G]=j.useState(!1),[U,N]=j.useState(!0),[q,k]=j.useState(!1),{proctoring:ne}=zv(),oe=j.useRef(null),ue=j.useRef(null),P=(ne==null?void 0:ne.gazeAnalysisEnabled)===!0,ye=()=>{G(!0),N(!1)};return j.useEffect(()=>{if(M&&q&&ue.current&&P)try{ue.current.setReference()}finally{k(!1)}},[M,q,P]),M?b.jsx("div",{className:"interview-widget-container",children:b.jsx("div",{ref:oe,className:`iw-flex iw-flex-col iw-rounded-xl iw-shadow-lg iw-overflow-hidden iw-h-[calc(100vh-1rem)] ${E}`,children:b.jsx("div",{className:"iw-h-[calc(100vh-1rem)] iw-flex iw-flex-col iw-justify-between gap-1",children:b.jsx(ix,{interviewTitle:i??"Interview",brandName:c??"Novara",brandLogo:f,interviewId:h,className:E,onComplete:y??(()=>{}),onDisqualify:w,videoFeedRef:ue})})})}):b.jsxs("div",{className:"interview-widget-container",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2 iw-mx-auto iw-p-2 iw-max-w-[1800px]",children:[f||b.jsx("div",{className:"iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold",style:{backgroundColor:A},children:R6(c)}),b.jsx("p",{className:"iw-text-xl iw-font-semibold",children:c})]}),b.jsx(f_,{isOpen:U,gazeEnabled:P,onStart:ye,onRequestCalibration:()=>k(!0),videoFeedRef:ue,interviewId:h})]})};typeof window<"u"&&(window.InterviewWidget={InterviewWidget:n3,InterviewWidgetProvider:Ov}),ja.InterviewWidget=n3,ja.InterviewWidgetProvider=Ov,ja.default=n3,Object.defineProperties(ja,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|