1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,438165,e=>{"use strict";let t;var r,n,a=e.i(646298),o=e.i(717890),s=e.i(112344),i=e.i(991462),l=e.i(984025);function c(e){let t=Error(e);return t.source="ulid",t}let u="0123456789ABCDEFGHJKMNPQRSTVWXYZ",d=u.length,p=(r||(r=function(t=!1,r){r||(r="u">typeof window?window:null);let n=r&&(r.crypto||r.msCrypto);if(n)return()=>{let e=new Uint8Array(1);return n.getRandomValues(e),e[0]/255};try{let t=e.r(958073);return()=>t.randomBytes(1).readUInt8()/255}catch(e){}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return()=>Math.random()}throw c("secure crypto unusable, insecure Math.random not allowed")}()),function(e){return isNaN(e)&&(e=Date.now()),function(e,t){let r;if(isNaN(e))throw Error(e+" must be a number");if(e>0xffffffffffff)throw c("cannot encode time greater than 281474976710655");if(e<0)throw c("time must be positive");if(!1===Number.isInteger(Number(e)))throw c("time must be an integer");let n="";for(;t>0;t--)r=e%d,n=u.charAt(r)+n,e=(e-r)/d;return n}(e,10)+function(e,t){let r="";for(;e>0;e--)r=function(e){let t=Math.floor(e()*d);return t===d&&(t=d-1),u.charAt(t)}(t)+r;return r}(16,r)}),h="ethconf_session_id",f="ethconf_session_expiry";function m(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)(),r=(0,o.useRef)(null),[n]=(0,s.useMutation)(l.default.updateUserSessionActivity),a=(0,o.useCallback)((e,t={})=>{window.location.hostname.includes("localhost")||window.location.hostname.includes("127.0.0.1")||n({variables:{input:{id:function(){let e=localStorage.getItem(h),t=localStorage.getItem(f),r=Date.now();if(e&&t&&r<Number.parseInt(t,10))return localStorage.setItem(f,String(r+144e5)),e;let n=p();return localStorage.setItem(h,n),localStorage.setItem(f,String(r+144e5)),n}(),path:e,params:Object.keys(t).length>0?t:null,referrer:document.referrer,userAgent:navigator.userAgent,domain:window.location.host||window.location.hostname}}}).catch(console.error)},[n]);return(0,o.useEffect)(()=>{let n=`${e}${t?.toString()?`?${t.toString()}`:""}`;r.current!==n&&(r.current=n,a(e,Object.fromEntries(t)))},[e,t,a]),null}var y=e.i(279132),b=e.i(165607),g=e.i(285465),v=e.i(553010);let x=(0,v.default)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]),w=(0,v.default)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]),S=(0,v.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),j=(0,v.default)("scan-line",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]);var k=e.i(419913),C=e.i(754219),O=e.i(17209),A=e.i(299352),E=e.i(301321);let q=(0,O.default)(()=>e.A(650879).then(e=>e.Scanner),{loadableGenerated:{modules:[976682]},ssr:!1});function N({onScan:e,open:t,onOpenChange:r,children:n,title:s="Scan QR Code"}){let[i,l]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),d=t??i,p=e=>{r?.(e),void 0===t&&l(e),u(!1)};return(0,a.jsxs)(E.Drawer,{onOpenChange:p,open:d,children:[(0,a.jsx)(E.DrawerTrigger,{asChild:!0,children:n}),(0,a.jsx)(E.DrawerContent,{children:(0,a.jsxs)("div",{className:"mx-auto w-full max-w-sm",children:[(0,a.jsx)(E.DrawerHeader,{children:(0,a.jsx)(E.DrawerTitle,{children:s})}),(0,a.jsx)("div",{className:"px-4",children:(0,a.jsx)("div",{className:"relative aspect-square w-full overflow-hidden rounded-2xl bg-black",children:d?(0,a.jsx)(q,{components:{finder:!0,torch:!0},constraints:{facingMode:"environment"},formats:["qr_code"],onError:e=>{C.toast.error(e instanceof Error?e.message:"Scanner error")},onScan:t=>{if(0!==t.length){var r;r=t[0].rawValue,u(!0),setTimeout(()=>{p(!1)},1e3),e(r)}},paused:c,scanDelay:300,sound:!1,styles:{container:{width:"100%",height:"100%"},video:{width:"100%",height:"100%",objectFit:"cover"}}}):null})}),(0,a.jsx)(E.DrawerFooter,{className:"pb-[calc(env(safe-area-inset-bottom)+2rem)]",children:(0,a.jsx)(E.DrawerClose,{asChild:!0,children:(0,a.jsx)(A.Button,{className:"w-full",type:"button",variant:"outline",children:"Close"})})})]})})]})}var Q=e.i(761386),R=e.i(252428);let M=[{href:"/dashboard",icon:S,isActive:e=>"/dashboard"===e,label:"Home"},{href:"/schedule",icon:g.CalendarDaysIcon,isActive:e=>e.startsWith("/schedule"),label:"Schedule"},{icon:j,isActive:()=>!1,label:"Scan",type:"scan"},{href:"/dashboard/connect",icon:w,isActive:e=>e.startsWith("/dashboard/connect"),label:"Connect"},{href:"/dashboard/quest",icon:x,isActive:e=>e.startsWith("/dashboard/quest"),label:"Quest"}];function P({className:e}){let t=(0,i.usePathname)()??"/",r=(0,i.useRouter)(),{openAttendeeProfile:n}=(0,y.useAttendeeProfile)(),{data:o}=(0,b.useQuery)(l.default.isAuthenticated,{errorPolicy:"all"}),[c]=(0,s.useMutation)(l.default.registerQRScan),u=(0,Q.default)(),d=async e=>{try{let{data:t}=await c({variables:{data:e}}),r=t?.registerQRScan;r?.status==="success"&&C.toast.success(r.message),r?.status==="failed"&&
1C.toast.warning(r.message);let a=r?.interaction,o=a?.target?.user;if(a?.type==="attendee_met"&&o?.uuid)return void n({id:a.targetId,uuid:o.uuid,name:o.name,firstName:null,lastName:null,title:o.title??null,jobFunction:o.jobFunction??null,avatar:o.avatar??null,organization:null})}catch(e){C.toast.error(e instanceof Error?e.message:"Failed to register QR scan")}let t=new URLSearchParams({scan:e,tab:"scans"});r.push(`/dashboard/profile?${t.toString()}`)};return u&&o?.getUserSelf?(0,a.jsx)("div",{className:(0,R.cn)("w-full pointer-events-none fixed inset-x-0 z-50 flex justify-center bottom-0 pb-[calc(env(safe-area-inset-top)+1.5rem)]",e,"hidden"),children:(0,a.jsx)("nav",{"aria-label":"Bottom navigation bar",className:(0,R.cn)("grid h-16 items-center gap-x-2 rounded-full bg-white/70 py-1.5 px-2.5 shadow-[0_18px_50px_rgba(15,3,33,0.45)] ring-1 ring-black/5 backdrop-blur-lg grid-cols-[1fr_1fr_1.2fr_1fr_1fr] pointer-events-auto w-[calc(100vw-6rem)] min-w-60"),children:M.map(e=>{let r=e.icon;if("type"in e&&"scan"===e.type)return(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsx)(N,{onScan:d,children:(0,a.jsx)("button",{"aria-label":e.label,className:"flex size-12 items-center justify-center rounded-full bg-ethconf-purple text-white shadow-[0_6px_16px_rgba(15,3,33,0.35)] transition-transform focus-visible:outline-none",type:"button",children:(0,a.jsx)(r,{"aria-hidden":"true",className:"size-6",strokeWidth:2})})})},e.label);let n=e.isActive(t);return(0,a.jsxs)(k.default,{"aria-current":n?"page":void 0,className:(0,R.cn)("flex flex-col gap-1 h-12 min-w-0 items-center justify-end px-1 pb-1.5 pt-1 text-muted-foreground transition-colors focus-visible:outline-none",n&&"text-ethconf-purple"),href:e.href,children:[(0,a.jsx)(r,{"aria-hidden":"true",className:(0,R.cn)("size-5 stroke-[1.5]","Home"===e.label&&"translate-y-px",n&&"stroke-[2.5]")}),(0,a.jsx)("span",{className:(0,R.cn)("text-[10px] font-semibold leading-none",n&&"font-bold"),children:e.label})]},e.label)})})}):null}var _=e.i(90994),_=_,L=e.i(319581),L=L;let T=(0,v.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var D=e.i(38329),I=e.i(342709),I=I;let $=({...e})=>(0,a.jsx)(C.Toaster,{className:"toaster group",icons:{success:(0,a.jsx)(_.default,{className:"size-4"}),info:(0,a.jsx)(T,{className:"size-4"}),warning:(0,a.jsx)(I.default,{className:"size-4"}),error:(0,a.jsx)(L.default,{className:"size-4"}),loading:(0,a.jsx)(D.Loader2Icon,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},theme:"light",...e});var F=e.i(854244),z=e.i(270408),H=z,U=e.i(321751);class V extends H.ApolloLink{constructor(e={}){super((t,r)=>{let n=t.client,a=n.queryManager.clientOptions,o=t.getContext();{let{name:r,version:n,transport:s="headers"}=(0,U.compact)({},a.clientAwareness,e.clientAwareness,o.clientAwareness);"headers"===s&&t.setContext(({headers:e})=>({headers:(0,U.compact)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,U.compact)({},a.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,U.compact)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,U.compact)({"apollographql-library-name":"@apollo/client","apollographql-library-version":n.version},e)}))}return r(t)})}}var B=e.i(516165),J=z,W=e.i(382718),G=e.i(65920);function K(e,t){return(0,G.getOperationDefinition)(e)?.operation===t}var Y=e.i(701482),X=e.i(278192),Z=e.i(117281),ee=e.i(501535),et=e.i(367524),er=e.i(552238);class en extends Error{static is(e){return(0,er.isBranded)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,er.brand)(this),Object.setPrototypeOf(this,en.prototype)}}
1class ea extends Error{static is(e){return(0,er.isBranded)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,er.brand)(this),Object.setPrototypeOf(this,ea.prototype)}}var eo=e.i(896293);let{hasOwnProperty:es}=Object.prototype;async function*ei(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),a=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),o="\r\n--"+(a?a[1]??a[2]??a[3]??"-":"-"),s="";(0,Z.invariant)(e.body&&"function"==typeof e.body.getReader,62);let i=e.body.getReader(),l=!1,c=!1,u=()=>c&&"-"==s[0]&&"-"==s[1];try{for(;!l;){({value:t,done:l}=await i.read());let e="string"==typeof t?t:r.decode(t),n=s.length-o.length+1,a=(s+=e).indexOf(o,n);for(;a>-1&&!u();){let e;c=!0,[e,s]=[s.slice(0,a),s.slice(a+o.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),a=e.slice(r+1).trim();t[n]=a}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),a=s.indexOf(o)}if(u())return}throw Error("premature end of multipart body")}finally{i.cancel()}}async function el(e,t){for await(let r of ei(e)){let n=ec(e,r);if(0!=Object.keys(n).length)if((0,eo.isNonNullObject)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[et.PROTOCOL_ERRORS_SYMBOL]:new ee.CombinedProtocolErrors(n.errors??[])}),t(e)}else t(n)}}function ec(e,t){if(e.status>=300)throw new en(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new ea(r,{response:e,bodyText:t})}}var eu=e.i(6968);let ed={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},ep=(e,t)=>t(e),eh=(0,X.maybe)(()=>fetch);function ef(){}class em extends J.ApolloLink{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=ep,includeExtensions:a,preserveHeaderCase:o,useGETForQueries:s,includeUnusedVariables:i=!1,...l}=e;Y.__DEV__&&(e=>{(0,Z.invariant)(e||"u">typeof fetch,61)})(r||eh);const c={http:(0,U.compact)({includeExtensions:a,preserveHeaderCase:o}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{var a,o;let l,u,d,p=(l=e.getContext().uri)||("function"==typeof t?t(e):t||"/graphql"),h=e.getContext(),f={...h.http};K(e.query,"subscription")&&(f.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...f.accept||[]]);let{options:m,body:y}=function(e,t,...r){let n={},a={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),a={...a,...e.http}}),n.headers=function(e,t){if(!t){let t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,a.preserveHeaderCase);let{operationName:o,extensions:s,variables:i,query:l}=e,c={operationName:o,variables:i};return a.includeExtensions&&Object.keys(s||{}).length&&(c.extensions=s),a.includeQuery&&(c.query=t(l,eu.print)),{options:n,body:c}}(e,n,ed,c,{http:f,options:h.fetchOptions,credentials:h.credentials,headers:h.headers});y.variables&&!i&&(a=y.variables,o=e.query,u={...a},d=new Set(Object.keys(a)),(0,W.visit)(o,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&d.delete(e.name.value)}}),d.forEach(e=>{delete u[e]}),y.variables=u);let b=new AbortController,g=()=>{b=void 0};if(m.signal){let e=m.signal,t=()=>{b?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),g=()=>{b?.signal.removeEventListener("abort",g),b=void 0,e.removeEventListener("abort",t),g=ef},b.signal.addEventListener("abort",g,{once:!0})}return m.signal=b.signal,s&&!K(e.query,"mutation")&&(m.method="GET"),new B.Observable(t=>{if("GET"===m.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let a="",o=e,s=e.indexOf("#");-1!==s&&(a=e.substr(s),o=e.substr(0,s));let i=-1===o.indexOf("?")?"?":"&";return{newURI:o+i+r.join("&")+a}}(p,y);if(t)throw t;p=e}else m.body=JSON.stringify(y);let n=r||(0,X.maybe)(()=>fetch)||eh,a=t.next.bind(t);return n(p,m).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?el(t,a):(t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new ea(r,{response:e,bodyText:t})}return ec(e,t)}(t,r);if(!Array.isArray(n)&&!es.call(n,"data")&&!es.call(n,"errors"))throw new en(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n}))(t).then(a)}).then(()=>{g(),t.complete()}).catch(e=>{g(),t.error(e)}),()=>{b&&b.abort()}})})}}class ey extends z.ApolloLink{constructor(e={}){const{left:t,right:r,request:n}=z.ApolloLink.from([new V(e),new em(e)]);super(n),Object.assign(this,{left:t,right:r})}}var eb=z,eg=e.i(668550),ev=e.i(899024),ex=e.i(933564),ew=e.i(40512),eS=e.i(955126),ej=e.i(897275),ek=e.i(240957),eC=e.i(18668),eO=e.i(445676),eA=e.i(321246);let eE=({client:e,children:t})=>{let r=(0,eA.getApolloContext)(),n=o.useContext(r),a=o.useMemo(()=>({...n,client:e||n.client}),[n,e]);return(0,Z.invariant)(a.client,38),o.createElement(r.Provider,{value:a},t)};e.i(227827),e.i(292989),e.i(962994),e.i(797311),e.i(451057);var eq=e.i(657869);eb.ApolloLink,eb.ApolloLink,eb.ApolloLink;var eN={pkg:"@apollo/client-react-streaming"},eQ=Symbol.for("apollo.source_package"),eR=class extends eg.InMemoryCache{static info=eN;[eQ];constructor(e){super(e);const t=this.constructor.info;this[eQ]=`${t.pkg}:InMemoryCache`}},eM=(0,o.createContext)(null),eP={},e_=Symbol.for("apollo.tee.readableStreamController"),eL=Symbol.for("apollo.read.readableStream");function eT(e,t){return Object.assign(t,{[eL]:e})}var eD=class extends eb.ApolloLink{constructor(){super((e,t)=>{let r=e.getContext()[e_];if(r){let n=r(),a=()=>{try{n.close()}catch{}};return new B.Observable(r=>{let o=!0;return t(e).subscribe({next(e){n.enqueue({type:"next",value:e}),o&&r.next(e)},error(e){n.enqueue({type:"error"}),a(),o&&r.error(e)},complete(){n.enqueue({type:"completed"}),a(),o&&r.complete()}}),()=>{o=!1}})}return t(e)})}},eI=class extends eb.ApolloLink{constructor(){super((e,t)=>{let r=e.getContext()[eL];return r?new B.Observable(n=>{let a=!1,o=(()=>{try{return r.getReader()}catch{}})();if(!o){let r=t(e).subscribe(n);return()=>r.unsubscribe()}let s=!1;l(o).finally(()=>{n.closed||s||n.complete()});let i=()=>{a=!0,o.cancel()};return()=>i();async function l(r){let o;for(;!a&&!o?.done&&(o=await r.read(),!a);
1)if(o.value)switch(o.value.type){case"next":n.next(o.value.value);break;case"completed":n.complete();break;case"error":{i(),s=!0;let r=t(e).subscribe(n);i=()=>r.unsubscribe()}}}}):t(e)})}};function e$(e){return{...e,query:(0,ev.gql)((0,eu.print)((0,ev.gql)(e.query)))}}function eF(e){let t=(0,eO.useApolloClient)(),r=!!(e&&e.$__apollo_queryRef);r&&function(e,t){var r,n,a;let o,s,i;if((0,eC.unwrapQueryRef)(e))return;let{$__apollo_queryRef:{options:l,stream:c}}=e,u=e$(l),d=(r=t,n=u,a={...u,fetchPolicy:"network-only",context:eK(eT(c.pipeThrough(new eq.JSONDecodeStream),{...u.context,queryDeduplication:!0}))},Y.__DEV__&&(0,Z.invariant)(n.nextFetchPolicy===a.nextFetchPolicy,"Encountered an unexpected bug in @apollo/client-react-streaming. Please file an issue."),s={context:{},...(o=r.watchQuery(n)).options},o.applyOptions(a),i=new eC.InternalQueryReference(o,{autoDisposeTimeoutMs:r.defaultOptions.react?.suspense?.autoDisposeTimeoutMs}),o.applyOptions({...s,fetchPolicy:o.options.fetchPolicy===a.fetchPolicy?s.fetchPolicy:o.options.fetchPolicy}),i);Object.assign(e,(0,eC.wrapQueryRef)(d))}(e,t);let n=(0,eC.unwrapQueryRef)(e);return(0,o.useEffect)(()=>{if(r)return n.softRetain()},[r,n]),e}var ez={useFragment:e=>eH(e,["data","complete","missing","dataState"]),useQuery:e=>eH(e,["data","loading","networkStatus","dataState"]),useSuspenseQuery:e=>eH(e,["data","networkStatus","dataState"]),useReadQuery:e=>eH(t=>e(eF(t)),["data","networkStatus","dataState"]),useQueryRefHandlers:e=>eH(t=>e(eF(t)),[]),useSuspenseFragment:e=>eH(e,["data"])};function eH(e,t){return(...r)=>{let n=e(...r);if(0==t.length)return n;let a=function(e){let t=(0,o.useContext)(eM);if(!t)throw Error("useTransportValue must be used within a streaming-specific ApolloProvider");let r=t.useStaticValueRef(e),n=(0,o.useSyncExternalStore)(()=>()=>{},()=>0,()=>r.current===eP?0:+!(0,ek.equal)(e,r.current));return 0===n&&(r.current=eP),1===n?r.current:e}((0,o.useMemo)(()=>{let e={};for(let r of t)e[r]=n[r];return e},[n]));return(0,o.useMemo)(()=>({...n,...a}),[n,a])}}function eU(e,t,r){if(e[eQ]!==`${t.pkg}:${r}`)throw Error(`When using \`${r}\` in streaming SSR, you must use the \`${r}\` export provided by \`"${t.pkg}"\`.`)}function eV(e){return e.queryManager}var eB=Symbol.for("apollo.hook.wrappers"),eJ=class extends ex.ApolloClient{static info=eN;[eQ];constructor(e){const t=[];"ssrMode"in e&&(delete e.ssrMode,t.push("The `ssrMode` option is not supported in %s. Please remove it from your %s constructor options.")),"ssrForceFetchDelay"in e&&(delete e.ssrForceFetchDelay,t.push("The `ssrForceFetchDelay` option is not supported in %s. Please remove it from your %s constructor options.")),super(e);const r=this.constructor.info;for(const e of(this[eQ]=`${r.pkg}:ApolloClient`,t))console.warn(e,r.pkg,"ApolloClient");eU(this.cache,r,"InMemoryCache"),this.setLink(this.link)}setLink(e){super.setLink.call(this,eb.ApolloLink.from([new eI,new eD,e]))}},eW=class extends eJ{constructor(e){super(e),this.onQueryStarted=this.onQueryStarted.bind(this),eV(this)[eB]=ez}simulatedStreamingQueries=new Map;onQueryStarted({options:e,id:t}){let r,n,a=e$(e),[o,s]=(n=new ReadableStream({start(e){r=e}}),[r,n]),i=eV(this);i.fetchQuery({...a,query:i.transform(a.query),fetchPolicy:"network-only",context:eK(eT(s,{...a.context,queryDeduplication:!0}))}),this.simulatedStreamingQueries.set(t,{controller:o,options:a})}onQueryProgress=e=>{let t=this.simulatedStreamingQueries.get(e.id);if(!t)return;let r=eV(this).incrementalHandler;"error"===e.type||"next"===e.type&&(r.isIncrementalResult(e.value)?r.extractErrors(e.value):e.value.errors)?(this.simulatedStreamingQueries.delete(e.id),Z.invariant.debug("Query failed on server, rerunning in browser:",t.options),this.rerunSimulatedQuery(t)):"completed"===e.type?(this.simulatedStreamingQueries.delete(e.id),t.controller.enqueue(e)):"next"===e.type&&t.controller.enqueue(e)};rerunSimulatedQueries=()=>{for(let[e,t]of this.simulatedStreamingQueries)this.simulatedStreamingQueries.delete(e),Z.invariant.debug("streaming connection closed before server query could be fully transported, rerunning:",t.options),this.rerunSimulatedQuery(t)};rerunSimulatedQuery=e=>{var t;let r=eV(this);r.fetchQuery({...e.options,fetchPolicy:"no-cache",query:r.transform(e.options.query),context:eK((t=()=>e.controller,Object.assign({...e.options.context,queryDeduplication:!1},{[e_]:t})))})}},eG=Symbol.for("apollo.dataTransport.skip");function eK(e){return Object.assign(e,{[eG]:!0})}var eY=class extends eW{},eX=class extends eY{},eZ=Symbol.for("ApolloClientSingleton"),e0=Symbol.for("ApolloSSRDataTransport"),e1=Symbol.for("apollo.hookRehydrationCache");function e2(e){return e}var e5={},e8={pkg:"@apollo/client-integration-nextjs",client:"ApolloClient",cache:"InMemoryCache"},e4=class extends eX{static info=e8},e6=class extends eR{static info=e8},e3=(n=(({reviveFromStream:e=e2})=>function({children:t,onQueryEvent:r,rerunSimulatedQueries:n}){let a=(0,o.useRef)(window[e1]??={});!function({onQueryEvent:e,onRehydrate:t,revive:r}){var n;let a;n=n=>{let a=r(n);for(let r of(Z.invariant.debug("received data from the server:",a),t(a.rehydrate),a.events))e(r)},Array.isArray(a=window[e0]||[])&&(window[e0]={push:(...e)=>{for(let t of e)n(t)}},window[e0].push(...a))}({onQueryEvent:r,onRehydrate(e){Object.assign(a.current,e)},revive:e}),(0,o.useEffect)(()=>
1{if("complete"!==document.readyState)return window.addEventListener("load",n,{once:!0}),()=>window.removeEventListener("load",n);n()},[n]);let s=(0,o.useCallback)(function(e){let t=(0,o.useId)(),r=a.current,n=(0,o.useRef)(e5);return n.current===e5&&(r&&t in r?(n.current=r[t],delete r[t]):n.current=e),n},[]);return o.default.createElement(eM.Provider,{value:(0,o.useMemo)(()=>({useStaticValueRef:s}),[s])},t)})({useInsertHtml(){let e=(0,o.useContext)(i.ServerInsertedHTMLContext);return e||(()=>{})}}),(t=({makeClient:e,children:r,...a})=>{let s=(0,o.useRef)(void 0);return s.current||(s.current=window[eZ]??=e(),eU(s.current,t.info,"ApolloClient")),o.default.createElement(eE,{client:s.current},o.default.createElement(n,{onQueryEvent:e=>"started"===e.type?s.current.onQueryStarted(e):s.current.onQueryProgress(e),rerunSimulatedQueries:s.current.rerunSimulatedQueries,registerDispatchRequestStarted:s.current.watchQueryQueue?.register,...a},r))}).info=eN,t);e3.info=e8;var e7=e.i(515150);function e9(){let e=new ey({uri:`${e7.config.origin}/api/graphql`,fetchOptions:{credentials:"include",cache:"no-store"}});return new e4({cache:new e6,link:e})}function te({children:e}){return(0,a.jsx)(e3,{makeClient:e9,children:e})}var tt=e.i(182597);e.s(["default",0,function({children:e}){return(0,o.useEffect)(()=>{e7.config.isLocal||(0,F.initGA)()},[]),(0,a.jsx)(te,{children:(0,a.jsx)(tt.ServiceWorkerProvider,{children:(0,a.jsxs)(y.default,{children:[e,(0,a.jsx)(o.Suspense,{children:(0,a.jsx)(P,{})}),(0,a.jsx)($,{richColors:!0}),(0,a.jsx)(o.Suspense,{children:(0,a.jsx)(m,{})})]})})})}],438165)},958073,(e,t,r)=>{}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.