PageSourceSearch

https://openjii.org/_next/static/chunks/3gqspwlweal0y.js

js openjii.org collected 2026-09-24 14:26:48 UTC 31,110 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,391395,330186,e=>{"use strict";var t=e.i(843476),r=e.i(248256),s=e.i(522016),i=e.i(618566),a=e.i(720565),n=e.i(882635),o=e.i(981831),l=e.i(622589);let c=[{code:"en-US",name:"English",flag:"🇺🇸"},{code:"de-DE",name:"Deutsch",flag:"🇩🇪"}];e.s(["LanguageSwitcher",0,function({locale:e,variant:u="default"}){let h=(0,i.usePathname)(),d=(0,a.useFeatureFlagEnabled)(n.FEATURE_FLAGS.MULTI_LANGUAGE)?c:c.filter(e=>"en-US"===e.code);return d.length<=1?null:(0,t.jsxs)(l.DropdownMenu,{children:[(0,t.jsx)(l.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(o.Button,{variant:"ghost",size:"header"===u?"icon":"sm","aria-label":"Switch language",className:"header"===u?"text-foreground hover:bg-accent hover:text-accent-foreground":"",children:(0,t.jsx)(r.Globe,{className:"header"===u?"h-5 w-5":"h-4 w-4"})})}),(0,t.jsx)(l.DropdownMenuContent,{align:"end",children:d.map(r=>{var i;let a;return(0,t.jsx)(l.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(s.default,{href:(i=r.code,a=h.replace(`/${e}`,"")||"/",`/${i}${a}`),className:`w-full cursor-pointer ${r.code===e?"bg-accent":""}`,children:[(0,t.jsx)("span",{className:"mr-2",children:r.flag}),r.name]})},r.code)})})]})}],391395);let u=(0,e.i(475254).default)("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["MessageCircleQuestion",0,u],330186)},708670,e=>{"use strict";var t=e.i(843476),r=e.i(391395),s=e.i(284614),i=e.i(694351),a=e.i(810980),n=e.i(292270);let o=(0,e.i(475254).default)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]);var l=e.i(946948),c=e.i(330186),u=e.i(664659),h=e.i(657688),d=e.i(522016),p=e.i(618566),f=e.i(271645),m=e.i(762782),y=e.i(92326);e.i(257620);var v=e.i(424017),g=e.i(432245),b=e.i(981831),x=e.i(622589),w=e.i(264399);let R="hover:bg-transparent focus:bg-transparent dark:hover:bg-transparent focus-visible:border-brand-accent focus-visible:ring-brand-accent/50";function k({locale:e,session:r,displayName:i,avatarUrl:a}){let{t:o}=(0,v.useTranslation)(),l=(0,p.useRouter)(),[c,h]=(0,f.useState)(!1),y=(0,m.useSignOut)();if(!r?.user)return null;let w=async()=>{await y.mutateAsync(),l.push("/")};return(0,t.jsxs)(x.DropdownMenu,{open:c,onOpenChange:h,children:[(0,t.jsx)(x.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(b.Button,{variant:"ghost",size:"sm",className:`group flex gap-2 ${R}`,"aria-label":o("auth.userMenu","User menu"),children:[a?(0,t.jsxs)(g.Avatar,{className:"group-hover:bg-brand-chrome-accent h-6 w-6 rounded-full transition-all duration-200 group-hover:shadow-[0_0_10px_var(--brand-accent)]",children:[(0,t.jsx)(g.AvatarImage,{src:a,alt:i}),(0,t.jsx)(g.AvatarFallback,{children:(0,t.jsx)(s.User,{className:"h-4 w-4"})})]}):(0,t.jsx)(s.User,{className:"group-hover:text-brand-accent h-4 w-4 transition-all duration-200 group-hover:drop-shadow-[0_0_10px_var(--brand-accent)]"}),(0,t.jsx)(u.ChevronDown,{className:`group-hover:text-brand-accent h-4 w-4 transition-all duration-300 ${c?"rotate-180":"rotate-0"}`})]})}),(0,t.jsxs)(x.DropdownMenuContent,{align:"end",className:"w-56",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-2 py-1.5 text-sm",children:[a&&(0,t.jsxs)(g.Avatar,{className:"h-8 w-8",children:[(0,t.jsx)(g.AvatarImage,{src:a,alt:i}),(0,t.jsx)(g.AvatarFallback,{children:(0,t.jsx)(s.User,{className:"h-4 w-4"})})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:"truncate font-medium",children:i}),(0,t.jsx)("span",{className:"text-muted-foreground truncate text-xs",children:r.user.email})]})]}),(0,t.jsx)(x.DropdownMenuSeparator,{}),(0,t.jsx)(x.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.default,{href:`/${e}/platform/account`,className:"flex w-full cursor-default items-center",children:[(0,t.jsx)(g.Avatar,{className:"bg-muted mr-2 h-4 w-4",children:(0,t.jsx)(g.AvatarFallback,{className:"rounded-lg",children:(0,t.jsx)(s.User,{className:"h-4 w-4"})})}),o("auth.account")]})}),(0,t.jsxs)(x.DropdownMenuItem,{onClick:w,disabled:y.isPending,className:"flex w-full cursor-default items-center",children:[(0,t.jsx)(n.LogOut,{className:"mr-2 h-4 w-4"}),o("auth.signOut","Sign Out")]})]})]})}e.s(["UnifiedNavbar",0,function({locale:e,session:u,isHomePage:j=!1}){let{t:M}=(0,v.useTranslation)(),O=(0,p.usePathname)(),S=(0,p.useRouter)(),[I,Q]=(0,f.useState)(!0),[C,N]=(0,f.useState)(0),T=(0,m.useSignOut)(),{data:E}=(0,y.useGetUserProfile)(u?.user.id??""),A=E?.firstName&&E.lastName?`${E.firstName} ${E.lastName}`:"",D=async()=>{await T.mutateAsync(),S.push("/")};(0,f.useEffect)(()=>{let e=()=>{let e=document.documentElement.style.getPropertyValue("--banner-offset");N(e?parseFloat(e):0)};e();let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),()=>t.disconnect()},[]),(0,f.useEffect)(()=>
1{if(!j)return;let e=new IntersectionObserver(([e])=>{Q(e.isIntersecting)},{threshold:0,rootMargin:`-${64+C}px 0px 0px 0px`}),t=document.querySelector("main > section:first-child");return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[j,C]);let U=(0,f.useMemo)(()=>[{href:`/${e}`,label:M("navigation.home","Home"),icon:i.Home,isActive:O===`/${e}`||O===`/${e}/`},{href:`/${e}/about`,label:M("navigation.about","About JII"),icon:s.User,isActive:O.startsWith(`/${e}/about`)},{href:`/${e}/blog`,label:M("navigation.blog","Blog"),icon:a.BookOpen,isActive:O.startsWith(`/${e}/blog`)},{href:`/${e}/faq`,label:M("navigation.faq","FAQ"),icon:c.MessageCircleQuestion,isActive:O.startsWith(`/${e}/faq`)},{href:`/${e}/platform`,label:M("navigation.platform","Platform"),icon:l.Sprout,isActive:O.startsWith(`/${e}/platform`)||O.startsWith(`/${e}/login`)||O.startsWith(`/${e}/register`)||O.startsWith("/api/auth/verify-request")||O.startsWith(`/${e}/verify-request`)}],[e,M,O]),F=O.startsWith(`/${e}/cookie-settings`)||O.startsWith(`/${e}/cookie-policy`)||O.startsWith(`/${e}/terms-and-conditions`)||O.startsWith(`/${e}/about`)||O.startsWith(`/${e}/blog`)||O.startsWith(`/${e}/faq`)||O.startsWith(`/${e}/releases`)||O.startsWith(`/${e}/policies`),$=j&&!I||F;return(0,t.jsxs)("header",{className:"pointer-events-auto sticky left-0 z-50 w-full",style:{top:"var(--banner-offset, 0px)"},children:[(0,t.jsx)("div",{"aria-hidden":"true",className:`bg-linear-to-b from-black/80 to-transparent absolute inset-0 -z-10 transition-opacity duration-300 ${$?"opacity-0":"opacity-100"}`}),(0,t.jsx)("div",{"aria-hidden":"true",className:`bg-brand-chrome border-brand-chrome-border absolute inset-0 -z-10 border-b shadow-lg transition-opacity duration-300 ${$?"opacity-100":"opacity-0"}`}),(0,t.jsxs)("nav",{className:`mx-auto grid h-16 max-w-7xl grid-cols-3 items-center px-6 ${$?"text-brand-chrome-foreground":"text-white"}`,children:[(0,t.jsx)("div",{className:"col-start-1 col-end-2 flex items-center",children:(0,t.jsx)(h.default,{src:"/openJII_logo_RGB_horizontal_yellow_transparentBG.png",alt:"openJII logo",width:j?85:135,height:40,className:"h-10 w-auto max-w-none shrink-0"})}),(0,t.jsx)("div",{className:"col-start-2 col-end-3 hidden items-center justify-center space-x-6 md:flex",children:U.map(e=>{let r=e.icon,s="rounded-sm focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-brand-accent",i=e.isActive?`flex items-center space-x-2 text-sm font-medium text-brand-accent font-bold ${s}`:`flex items-center space-x-2 text-sm font-medium transition-colors hover:text-brand-accent ${s}`,a=e.isActive?"h-4 w-4 text-brand-accent":"h-4 w-4 group-hover:text-brand-accent";return(0,t.jsxs)(d.default,{href:e.href,className:`${i} group`,"aria-current":e.isActive?"page":void 0,children:[(0,t.jsx)(r,{className:a}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:e.label})]},e.href)})}),(0,t.jsxs)("div",{className:"col-start-3 col-end-4 flex items-center justify-end space-x-3 justify-self-end md:justify-end",children:[(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(k,{locale:e,session:u,displayName:A,avatarUrl:E?.avatarUrl})}),(0,t.jsx)(r.LanguageSwitcher,{locale:e}),(0,t.jsx)(w.ThemeToggle,{className:`hover:text-brand-accent ${R}`,labels:{toggle:M("common.toggleTheme"),switchToLight:M("common.switchToLightMode"),switchToDark:M("common.switchToDarkMode")}}),(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsxs)(x.DropdownMenu,{children:[(0,t.jsx)(x.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(b.Button,{variant:"ghost",size:"sm","aria-label":M("navigation.menu","Navigation menu"),className:`group ${R}`,children:(0,t.jsx)(o,{className:"group-hover:text-brand-accent h-4 w-4 transition-colors duration-200"})})}),(0,t.jsxs)(x.DropdownMenuContent,{align:"end",className:"w-56",children:[U.map(e=>{let r=e.icon;return(0,t.jsx)(x.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.default,{href:e.href,className:`flex items-center space-x-3 ${e.isActive?"bg-accent text-accent-foreground":""}`,"aria-current":e.isActive?"page":void 0,children:[(0,t.jsx)(r,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:e.label})]})},e.href)}),u?.user&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.DropdownMenuSeparator,{}),(0,t.jsxs)("div",{className:"flex items-center gap-3 px-2 py-1.5 text-sm",children:[E?.avatarUrl&&(0,t.jsxs)(g.Avatar,{className:"h-6 w-6",children:[(0,t.jsx)(g.AvatarImage,{src:E.avatarUrl,alt:A}),(0,t.jsx)(g.AvatarFallback,{children:(0,t.jsx)(s.User,{className:"h-3 w-3"})})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:A}),(0,t.jsx)("span",{className:"text-muted-foreground truncate text-xs",children:u.user.email})]})]}),(0,t.jsx)(x.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.default,{href:`/${e}/platform/account`,className:"flex w-full cursor-default items-center",children:[(0,t.jsx)(g.Avatar,{className:"bg-muted mr-2 h-4 w-4",children:(0,t.jsx)(g.AvatarFallback,{className:"rounded-lg",children:(0,t.jsx)(s.User,{className:"h-4 w-4"})})}),M("auth.account")]})}),(0,t.jsxs)(x.DropdownMenuItem,{onClick:D,disabled:T.isPending,className:"flex w-full cursor-default items-center",children:[(0,t.jsx)(n.LogOut,{className:"mr-2 h-4 w-4"}),M("auth.signOut","Sign Out")]})]})]})]})})]})]})]})}],708670)},762782,e=>{"use strict";var t=e.i(906670),r=e.i(424125),s=e.i(509533),i=e.i(954616),a=e.i(912598),n=e.i(623914),o=e.i(278645);e.s(["useSignOut",0,function(){let e=(0,a.useQueryClient)();return(0,i.useMutation)({mutationFn:async()=>{await o.authClient.signOut()},onSuccess:async()=>
1{for(let i of(e.setQueryData(["auth","session"],null),e.invalidateQueries({queryKey:["auth"]}),[s.orpc.sharing.listGrants.key(),s.orpc.sharing.searchGranteeOrganizations.key(),s.orpc.users.listInvitations.key(),s.orpc.experiments.getMyJoinRequest.key(),s.orpc.users.getDeletionBlockers.key(),s.orpc.search.globalSearch.key(),(0,t.myOrganizationInvitationsFamily)(),...(0,r.allResourceCacheFamilies)()]))e.removeQueries({queryKey:i});await (0,n.revalidateAuth)()}})}])},812178,e=>{"use strict";var t=e.i(509533);e.s(["listQueryKeys",0,{experiments:()=>[t.orpc.experiments.listExperiments.key()],protocols:()=>[t.orpc.protocols.listProtocols.key()],macros:()=>[t.orpc.macros.listMacros.key()],workbooks:()=>[t.orpc.workbooks.listWorkbooks.key()]}])},906670,e=>{"use strict";var t=e.i(436983),r=e.i(509533);let s=["auth","organization"];function i(){return[...s,"my-invitations"]}function a(){return[r.orpc.organizations.listMyOrganizations.key(),r.orpc.organizations.listOrganizations.key(),r.orpc.organizations.getOrganization.key(),r.orpc.search.globalSearch.key()]}function n(){return[r.orpc.organizations.listGranteeTeams.key(),r.orpc.sharing.listGrants.key()]}async function o(e,t){for(let r of t)await e.invalidateQueries({queryKey:r})}e.s(["ORGANIZATION_AUTH_QUERY_KEY",0,s,"invalidateFamilies",0,o,"myOrganizationInvitationsFamily",0,i,"myOrganizationInvitationsQueryKey",0,function(e){return(0,t.withPrincipal)(i(),e)},"organizationAuthFamilies",0,function(){return[[...s]]},"organizationInvitationsQueryKey",0,function(e,r){return(0,t.withPrincipal)([...s,"invitations",r],e)},"organizationMembershipFamilies",0,function(){return[...a(),r.orpc.organizations.listOrganizationMembers.key(),r.orpc.organizations.listOrganizationJoinRequests.key(),r.orpc.organizations.listOrganizationTeams.key(),...n(),[...s,"member-rows"]]},"organizationProfileFamilies",0,a,"organizationTeamFamilies",0,function(){return[r.orpc.organizations.listOrganizationTeams.key(),r.orpc.search.globalSearch.key(),...n()]}])},436983,e=>{"use strict";let t="anonymous";e.s(["ANONYMOUS_PRINCIPAL",0,t,"withPrincipal",0,function(e,r){return[...e,{principal:r??t}]}])},92326,e=>{"use strict";var t=e.i(509533),r=e.i(266027);e.s(["useGetUserProfile",0,(e,s=!0)=>(0,r.useQuery)(t.orpc.users.getUserProfile.queryOptions({input:{id:e},enabled:s&&!!e,retry:(e,t)=>("object"!=typeof t||!("status"in t)||404!==t.status)&&e<3}))])},424125,e=>{"use strict";var t=e.i(812178),r=e.i(509533);let s={experiment:()=>[r.orpc.experiments.getExperiment.key(),r.orpc.experiments.getExperimentAccess.key(),...t.listQueryKeys.experiments()],macro:()=>[r.orpc.macros.getMacro.key(),...t.listQueryKeys.macros()],protocol:()=>[r.orpc.protocols.getProtocol.key(),...t.listQueryKeys.protocols()],workbook:()=>[r.orpc.workbooks.getWorkbook.key(),...t.listQueryKeys.workbooks()],device:()=>[r.orpc.iot.getIotDevice.key(),r.orpc.iot.listIotDevices.key()],device_group:()=>[r.orpc.iot.getIotDeviceGroup.key(),r.orpc.iot.listIotDeviceGroups.key()]};e.s(["allResourceCacheFamilies",0,function(){return Object.values(s).flatMap(e=>e())},"resourceCacheKeys",0,function(e,s){switch(e){case"experiment":return[r.orpc.experiments.getExperiment.queryKey({input:{id:s}}),r.orpc.experiments.getExperimentAccess.queryKey({input:{id:s}}),...t.listQueryKeys.experiments()];case"macro":return[r.orpc.macros.getMacro.queryKey({input:{id:s}}),...t.listQueryKeys.macros()];case"protocol":return[r.orpc.protocols.getProtocol.queryKey({input:{id:s}}),...t.listQueryKeys.protocols()];case"workbook":return[r.orpc.workbooks.getWorkbook.queryKey({input:{id:s}}),...t.listQueryKeys.workbooks()];case"device":return[r.orpc.iot.getIotDevice.queryKey({input:{deviceId:s}}),r.orpc.iot.listIotDevices.key()];case"device_group":return[r.orpc.iot.getIotDeviceGroup.queryKey({input:{groupId:s}}),r.orpc.iot.listIotDeviceGroups.key()]}}])},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),s=e.i(820783),i=e.i(991918),a=e.i(843476);e.s(["createCollection",0,function(e){let n=e+"CollectionProvider",[o,l]=(0,r.createContextScope)(n),[c,u]=o(n,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:r,children:s}=e,i=t.useRef(null),n=t.useRef(new Map).current;return(0,a.jsx)(c,{scope:r,itemMap:n,collectionRef:i,children:s})};h.displayName=n;let d=e+"CollectionSlot",p=(0,i.createSlot)(d),f=t.forwardRef((e,t)=>
1{let{scope:r,children:i}=e,n=u(d,r),o=(0,s.useComposedRefs)(t,n.collectionRef);return(0,a.jsx)(p,{ref:o,children:i})});f.displayName=d;let m=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,i.createSlot)(m),g=t.forwardRef((e,r)=>{let{scope:i,children:n,...o}=e,l=t.useRef(null),c=(0,s.useComposedRefs)(r,l),h=u(m,i);return t.useEffect(()=>(h.itemMap.set(l,{ref:l,...o}),()=>void h.itemMap.delete(l))),(0,a.jsx)(v,{...{[y]:""},ref:c,children:n})});return g.displayName=m,[{Provider:h,Slot:f,ItemSlot:g},function(r){let s=u(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},l]}])},586318,e=>{"use strict";var t=e.i(271645);e.i(843476);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let s=t.useContext(r);return e||s||"ltr"}])},954616,e=>{"use strict";var t=e.i(271645),r=e.i(114272),s=e.i(540143),i=e.i(915823),a=e.i(619273),n=class extends i.Subscribable{#e;#t=void 0;#r;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,a.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,a.hashKey)(t.mutationKey)!==(0,a.hashKey)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#a()}mutate(e,t){return this.#s=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#i(){let e=this.#r?.state??(0,r.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#a(e){s.notifyManager.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},o=e.i(912598);e.s(["useMutation",0,function(e,r){let i=(0,o.useQueryClient)(r),[l]=t.useState(()=>new n(i,e));t.useEffect(()=>{l.setOptions(e)},[l,e]);let c=t.useSyncExternalStore(t.useCallback(e=>l.subscribe(s.notifyManager.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=t.useCallback((e,t)=>{l.mutate(e,t).catch(a.noop)},[l]);if(c.error&&(0,a.shouldThrowError)(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:u,mutateAsync:c.mutate}}],954616)},266027,e=>{"use strict";let t;var r=e.i(175555),s=e.i(273911),i=e.i(540143),a=e.i(286491),n=e.i(915823),o=e.i(793803),l=e.i(619273),c=e.i(180166),u=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#n=null,this.#o=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#l=void 0;#c=void 0;#t=void 0;#u;#h;#o;#n;#d;#p;#f;#m;#y;#v;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#l.addObserver(this),h(this.#l,this.options)?this.#b():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#l,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#l,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#R(),this.#l.removeObserver(this)}setOptions(e){let t=this.options,r=this.#l;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.resolveEnabled)(this.options.enabled,this.#l))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#l.setOptions(this.options),t._defaulted&&!(0,l.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#l,observer:this});let s=this.hasListeners();s&&p(this.#l,r,this.options,t)&&this.#b(),this.updateResult(),s&&(this.#l!==r||(0,l.resolveEnabled)(this.options.enabled,this.#l)!==(0,l.resolveEnabled)(t.enabled,this.#l)||(0,l.resolveStaleTime)(this.options.staleTime,this.#l)!==(0,l.resolveStaleTime)(t.staleTime,this.#l))&&this.#j();let i=this.#M();s&&(this.#l!==r||(0,l.resolveEnabled)(this.options.enabled,this.#l)!==(0,l.resolveEnabled)(t.enabled,this.#l)||i!==this.#v)&&this.#O(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,l.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#t=i,this.#h=this.options,this.#u=this.#l.
1state),i}getCurrentResult(){return this.#t}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#o.status||this.#o.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#l}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#b({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#b(e){this.#k();let t=this.#l.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.noop)),t}#j(){this.#w();let e=(0,l.resolveStaleTime)(this.options.staleTime,this.#l);if(s.environmentManager.isServer()||this.#t.isStale||!(0,l.isValidTimeout)(e))return;let t=(0,l.timeUntilStale)(this.#t.dataUpdatedAt,e);this.#m=c.timeoutManager.setTimeout(()=>{this.#t.isStale||this.updateResult()},t+1)}#M(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#l):this.options.refetchInterval)??!1}#O(e){this.#R(),this.#v=e,!s.environmentManager.isServer()&&!1!==(0,l.resolveEnabled)(this.options.enabled,this.#l)&&(0,l.isValidTimeout)(this.#v)&&0!==this.#v&&(this.#y=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#b()},this.#v))}#x(){this.#j(),this.#O(this.#M())}#w(){this.#m&&(c.timeoutManager.clearTimeout(this.#m),this.#m=void 0)}#R(){this.#y&&(c.timeoutManager.clearInterval(this.#y),this.#y=void 0)}createResult(e,t){let r,s=this.#l,i=this.options,n=this.#t,c=this.#u,u=this.#h,d=e!==s?e.state:this.#c,{state:m}=e,y={...m},v=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),o=r&&p(e,s,t,i);(n||o)&&(y={...y,...(0,a.fetchState)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:x}=y;r=y.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===x){let e;n?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=n.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,void 0!==e&&(x="success",r=(0,l.replaceData)(n?.data,e,t),v=!0)}if(t.select&&void 0!==r&&!w)if(n&&r===c?.data&&t.select===this.#d)r=this.#p;else try{this.#d=t.select,r=t.select(r),r=(0,l.replaceData)(n?.data,r,t),this.#p=r,this.#n=null}catch(e){this.#n=e}this.#n&&(g=this.#n,r=this.#p,b=Date.now(),x="error");let R="fetching"===y.fetchStatus,k="pending"===x,j="error"===x,M=k&&R,O=void 0!==r,S={status:x,fetchStatus:y.fetchStatus,isPending:k,isSuccess:"success"===x,isError:j,isInitialLoading:M,isLoading:M,data:r,dataUpdatedAt:y.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>d.dataUpdateCount||y.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!k,isLoadingError:j&&!O,isPaused:"paused"===y.fetchStatus,isPlaceholderData:v,isRefetchError:j&&O,isStale:f(e,t),refetch:this.refetch,promise:this.#o,isEnabled:!1!==(0,l.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==S.data,r="error"===S.status&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{i(this.#o=S.promise=(0,o.pendingThenable)())},n=this.#o;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||S.data!==n.value)&&a();break;case"rejected":r&&S.error===n.reason||a()}}return S}updateResult(){let e=this.#t,t=this.createResult(this.#l,this.options);
1if(this.#u=this.#l.state,this.#h=this.options,void 0!==this.#u.data&&(this.#f=this.#l),(0,l.shallowEqualObjects)(t,e))return;this.#t=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#g.size)return!0;let s=new Set(r??this.#g);return this.options.throwOnError&&s.add("error"),Object.keys(this.#t).some(t=>this.#t[t]!==e[t]&&s.has(t))};this.#a({listeners:r()})}#k(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#l)return;let t=this.#l;this.#l=e,this.#c=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#a(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#e.getQueryCache().notify({query:this.#l,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,l.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,l.resolveEnabled)(t.enabled,e)&&"static"!==(0,l.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,l.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,l.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,l.resolveStaleTime)(t.staleTime,e))}var m=e.i(271645),y=e.i(912598);e.i(843476);var v=m.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),g=m.createContext(!1);g.Provider;var b=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,r){let a,n=m.useContext(g),o=m.useContext(v),c=(0,y.useQueryClient)(r),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u);let h=c.getQueryCache().get(u.queryHash);if(u._optimisticResults=n?"isRestoring":"optimistic",u.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=u.staleTime;u.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof u.gcTime&&(u.gcTime=Math.max(u.gcTime,1e3))}a=h?.state.error&&"function"==typeof u.throwOnError?(0,l.shouldThrowError)(u.throwOnError,[h.state.error,h]):u.throwOnError,(u.suspense||u.experimental_prefetchInRender||a)&&!o.isReset()&&(u.retryOnMount=!1),m.useEffect(()=>{o.clearReset()},[o]);let d=!c.getQueryCache().get(u.queryHash),[p]=m.useState(()=>new t(c,u)),f=p.getOptimisticResult(u),x=!n&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=x?p.subscribe(i.notifyManager.batchCalls(e)):l.noop;return p.updateResult(),t},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),m.useEffect(()=>{p.setOptions(u)},[u,p]),u?.suspense&&f.isPending)throw b(u,p,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,l.shouldThrowError)(r,[e.error,s])))({result:f,errorResetBoundary:o,throwOnError:u.throwOnError,query:h,suspense:u.suspense}))throw f.error;if(c.getDefaultOptions().queries?._experimental_afterQuery?.(u,f),u.experimental_prefetchInRender&&!s.environmentManager.isServer()&&f.isLoading&&f.isFetching&&!n){let e=d?b(u,p,o):h?.promise;e?.catch(l.noop).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?f:p.trackResult(f)}(e,u,t)}],266027)},810980,e=>{"use strict";let t=(0,e.i(475254).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",0,t],810980)},248256,e=>{"use strict";let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],248256)},694351,e=>{"use strict";let t=(0,e.i(475254).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-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);e.s(["Home",0,t],694351)},292270,e=>{"use strict";let t=(0,e.i(475254).default)("log-out",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);e.s(["LogOut",0,t],292270)},946948,e=>{"use strict";let t=(0,e.i(475254).default)("sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);e.s(["Sprout",0,t],946948)},284614,e=>{"use strict";let t=(0,e.i(475254).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],284614)},95187,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var s={callServer:function(){return a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var i in s)Object.defineProperty(r,i,{enumerable:!0,get:s[i]});let a=e.r(132120),n=e.r(92245),o=e.r(235326)},623914,e=>{"use strict";var t=e.i(95187);let r=(0,t.createServerReference)("00e4a5b29df4ea7f07b54d6509fb0f255a5cf4e5b5",t.callServer,void 0,t.findSourceMapURL,"revalidateAuth");e.s(["revalidateAuth",0,r])},183144,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(640602);let i=r.forwardRef(({className:e,type:r,trim:i,onBlur:a,...n},o)=>(0,t.jsx)("input",{type:r,className:(0,s.cn)("border-input shadow-xs selection:bg-primary selection:text-primary-foreground file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,onBlur:i?e=>{if(i){let t=e.target.value.trim();if(e.target.value!==t&&(e.target.value=t,n.onChange)){let r={...e,target:{...e.target,value:t}};n.onChange(r)}}a&&a(e)}:a,...n}));i.displayName="Input",e.s(["Input",0,i])}]);

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.