1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,274583,e=>{"use strict";let t=["account_action_impression","account_action_cta","account_action_provider_recovery","account_action_reactivation_canceled","account_action_reactivation_prepared","account_action_card_verification","account_action_fallback_checkout","account_action_reactivation_scheduled","account_action_dismissed","account_action_paid_redemption","checkout_exit_offer_shown","checkout_exit_offer_expired","checkout_exit_offer_continue","checkout_exit_offer_leave","checkout_recovery_redirect","pricing_view","billing_interval_defaulted","promo_offer_ready","promo_expired_seen","billing_interval_selected","plan_cta_click","checkout_started","checkout_payment_reconciliation_required","checkout_card_callback_error","checkout_card_execute_error","checkout_card_execute_requested","checkout_card_recovery_redirect","checkout_card_recovery_paid","checkout_provider_redirect","checkout_card_completed_inline","checkout_card_session_requested","checkout_card_session_discount_fallback","checkout_card_session_error","checkout_card_quote_rejected","checkout_card_session_created","checkout_card_recovery_failed","checkout_payment_method_clicked","checkout_card_submitted","checkout_card_error","checkout_provider_error","player_saved","watch_confirmation_opened","watch_created","auth_intent_restored","lookup_completed","lookup_failed","evidence_brief_viewed","sponsor_impression","sponsor_click"],r={plan:{enum:["observer","analyst","strategist","detective","wipe_pass","Observer","Wipe Pass","Strategist","Detective","Detective Monthly","Detective Yearly","Strategist Monthly","Strategist Yearly","binoculars","opt-out","strategist-yearly","detective-yearly","binocular-mini","binocular-scout","binocular-pro"]},source:{enum:["hero","stats","profile","my_players","players_drive","saved_player","watch_control","save","drive","signin","steam","mfa","pricing","dashboard","account","opt_out_value_prompt"]},source_page:{enum:["pricing","pricing_checkout","pricing_plan_cta","checkout","account","reactivation"]},outcome:{enum:["success","unavailable","restored","redirect","failed","empty","partial","locked","canceled","saved","created","replayed","full"]},reason:{enum:["dismissed","user_canceled","expired","capacity","unavailable","not_eligible","plan_required","rollout_disabled"]},lookup_type:{enum:["public","discord","email","deepsearch","server_bans"]},provider:{enum:["myfatoorah","paypro","paypal","nowpayments","stripe","card","crypto"]},billing_interval:{enum:["weekly","monthly","yearly"]},checkout_type:{enum:["subscription","one_time","binoculars","opt_out","gem_pack"]},action_type:{enum:["billing_recovery","reactivation","payment_failed","subscription_expiring","subscription_expired"]},mode:{enum:["immediate","scheduled","renewal","reactivation","new_card","saved_card"]},capability:{enum:["portal","email","card_verification","checkout","unsupported"]},payment_method:{enum:["card","paypal","crypto","apple_pay","google_pay"]},exit_trigger:{enum:["close_button","escape","desktop_exit_intent","backdrop","back_button"]},sponsor:{enum:["tradeit"]},placement:{enum:["home","profile","pricing","footer","dashboard","hero","player_profile","home_featured","profile_inline","pricing_footer","player-left","player-right","site-footer","gift-popup","rewards"]},locale:{enum:["en","es","ru","zh-Hans","ar"]},monitoring_active:{type:"boolean"},replayed:{type:"boolean"},is_authenticated:{type:"boolean"},modal_mode:{type:"boolean"},unique_click:{type:"boolean"},projected_access_loss:{type:"boolean"},attempt_count:{type:"number",min:0,max:1e6},max_attempts:{type:"number",min:0,max:1e6},discount_percent:{type:"number",min:0,max:100},configured_amount_off:{type:"number",min:0,max:1e6},discount_amount:{type:"number",min:0,max:1e6},seconds_remaining:{type:"number",min:0,max:1e6},duration_ms:{type:"number",min:0,max:1e6},result_count:{type:"number",min:0,max:1e6},campaign:{enum:["rustwho-tradeit-2026-09"]}};e.s(["analyticsPath",0,function(e){let t;if("string"!=typeof e||e.length>2048||!e.startsWith("/")||e.startsWith("//")||/[\\\\\x00-\x20]/.test(e))return"/other";try{t=new URL(e,"https://analytics.invalid").pathname}catch{return"/other"}return(t=t.replace(/^\/(?:en|es|ru|ar|zh-Hans)(?=\/|$)/,"")||"/",/^\/(?:stats|share)\//.test(t))?t.startsWith("/stats/")?"/stats/:player":"/share/:player":/^\/(?:guides|compare)\//.test(t)?t.startsWith("/guides/")?"/guides/:article":"/compare/:tool":["/","/
1pricing","/pricing/checkout","/pricing/checkout/detective-trial","/pricing/checkout/free-month","/hero","/discord","/email","/account","/account/profile","/account/security","/account/subscription","/account/reactivation/checkout","/account/usage-history","/account/history","/dashboard","/dashboard/rewards","/dashboard/watchlist","/dashboard/player-drive","/dashboard/investigations","/auth/signin","/auth/steam/callback","/auth/forgot-password","/auth/reset-password","/redeem","/redeem/hone/complete","/binoculars","/guides","/compare","/in-game-informer","/in-game-rust-commands","/contact","/about","/privacy","/terms"].includes(t)?t:"/other"},"analyticsReferrer",0,function(e){try{let t=new URL(e),r=t.hostname.toLowerCase();if("rustwho.com"===r||"www.rustwho.com"===r)return"internal";if(["google.com","www.google.com","bing.com","www.bing.com","duckduckgo.com"].includes(r))return"search";if(["discord.com","discord.gg","www.youtube.com","youtube.com","reddit.com","www.reddit.com","x.com","twitter.com"].includes(r))return"social";return["http:","https:"].includes(t.protocol)?"external":null}catch{return null}},"analyticsVisitor",0,function(e){return"string"==typeof e&&(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^\d{13}-[0-9a-f]{1,16}$/.test(e))?e:null},"cleanSiteProperties",0,function(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};let t={};for(let[n,i]of Object.entries(r)){let r=e[n];if(null===r){t[n]=null;continue}i.enum&&i.enum.includes(r)||"boolean"===i.type&&"boolean"==typeof r?t[n]=r:"number"===i.type&&"number"==typeof r&&Number.isFinite(r)&&r>=i.min&&r<=i.max&&(t[n]=r)}return t},"isSiteEvent",0,function(e){return"string"==typeof e&&t.includes(e)}],274583)},957113,e=>{"use strict";function t(){return"u">typeof window}e.i(247167);function r(){return(t()?window.vam:"production")||"production"}function n(){return"production"===r()}var i=e.i(317800),a=e.i(274583);let s="rw_site_analytics_visitor";e.s(["trackSiteEvent",0,function(e,o){if(!(0,a.isSiteEvent)(e))return;let u=(0,a.cleanSiteProperties)(o);try{!function(e,i){var a,s;if(!t()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(n())console.warn(e);else throw Error(e);return}if(!i){null==(a=window.va)||a.call(window,"event",{name:e,options:void 0});return}try{let t=function(e,t){if(!e)return;let r=e,n=[];for(let[i,a]of Object.entries(e))"object"==typeof a&&null!==a&&(t.strip?r=function(e,{[e]:t,...r}){return r}(i,r):n.push(i));if(n.length>0&&!t.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}(i,{strip:n()});null==(s=window.va)||s.call(window,"event",{name:e,data:t,options:void 0})}catch(e){e instanceof Error&&"development"===r()&&console.error(e)}}(e,u)}catch{}let c=JSON.stringify({eventName:e,properties:u,visitorKey:function(){try{let e=window.localStorage.getItem(s);if((0,a.analyticsVisitor)(e))return e;let t="u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return window.localStorage.setItem(s,t),t}catch{return null}}(),pagePath:(0,a.analyticsPath)(window.location.pathname),referrer:(0,a.analyticsReferrer)(document.referrer)}),l=`${i.FETCH_RUSTWHO_BASE}/analytics/event`;try{if(navigator.sendBeacon){let e=new Blob([c],{type:"application/json"});if(navigator.sendBeacon(l,e))return}}catch{}fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:c,keepalive:!0}).catch(()=>{})}],957113)},37727,e=>{"use strict";var t=e.i(841947);e.s(["X",()=>t.default])},246349,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},590246,e=>{"use strict";let t=(0,e.i(33550).default)("outline","external-link","ExternalLink",[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]]);e.s(["IconExternalLink",0,t],590246)},662650,e=>{"use strict";let t=(0,e.i(33550).default)("outline","brand-youtube","BrandYoutube",[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3z",key:"svg-1"}]]);e.s(["IconBrandYoutube",0,t],662650)},966310,e=>{"use strict";var t=e.i(271645);e.s(["useCommittedTranslationRef",0,function(e){let r=(0,t.useRef)(e);return(0,t.useLayoutEffect)(()=>{r.current=e},[e]),r}])},513932,e=>{"use strict";let t=(0,e.i(33550).default)("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]]);e.s(["IconLoader2",0,t],513932)},270652,e=>{"use strict";let t=(0,e.i(33550).default)("outline","arrow-right","ArrowRight",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]]);e.s(["IconArrowRight",0,t],270652)},518716,e=>{"use strict";let t=(0,e.i(33550).default)("outline","refresh","Refresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);e.s(["IconRefresh",0,t],518716)},945174,e=>{"use strict";function t(e){return(e??"").trim().toLowerCase()}let r=new Set(["chargeback","charged_back","expired","failed","inactive","refunded","reversed","revoked","suspended","terminated","voided"]);function n(e){let r=t(e??null).replace(/[_-]+/g," ");return r.includes("detective")?"detective":r.includes("strategist")?"strategist":r.includes("wipe pass")||r.includes("wipepass")||r.includes("analyst")||r.includes("weekly")?"wipe-pass":"observer"}function i(e){return e.plan_name??e.plan_type??null}function a(e){let t=n(e);return"wipe-pass"===t||"strategist"===t||"detective"===t}function s(e,n=new Date,i,a){if(void 0!==a)return!0===a;let o=t(i??null);if(r.has(o))return!1;if("active"===o||"trialing"===o||"lifetime"===o)return!0;
1if(!e)return""===o;let u=new Date(e);return Number.isFinite(u.getTime())&&u>=n}e.s(["filterPaidSubscriptionRows",0,function(e){let r=["analyst","wipe pass","wipepass","wipe-pass","wipe_pass","strategist","detective","weekly","monthly","yearly"];return e.filter(e=>{let n=t(i(e));return r.some(e=>n.includes(e))&&!n.includes("pack")})},"hasActiveDetectivePlan",0,function(e,t=new Date){return e.some(e=>"detective"===n(i(e))&&s(e.current_period_end,t,e.status,e.access_active))},"hasActivePaidPlan",0,function(e,t=new Date){return e.some(e=>s(e.current_period_end,t,e.status,e.access_active))},"hasActiveStrategistPlan",0,function(e,t=new Date){return e.some(e=>"strategist"===n(i(e))&&s(e.current_period_end,t,e.status,e.access_active))},"hasActiveWipePassPlan",0,function(e,t=new Date){return e.some(e=>"wipe-pass"===n(i(e))&&s(e.current_period_end,t,e.status,e.access_active))},"hasInformerPlanAccess",0,function(e,r=new Date){return e.some(e=>{let n=i(e);return!t(n).includes("pack")&&a(n)&&s(e.current_period_end,r,e.status,e.access_active)})},"hasInformerPlanTier",0,a,"isSubscriptionActive",0,s,"isSubscriptionRenewalOff",0,function(e){if(!e)return!1;let t=(e.status??"").trim().toLowerCase();return!!(!0===e.cancel_at_period_end||["canceled","cancelled","canceling","cancelling"].includes(t))||!(!1===e.cancel_at_period_end&&["active","trialing"].includes(t))&&!!e.canceled_at},"normalizeAccessPlanName",0,n])},27858,734368,e=>{"use strict";var t=e.i(317800),r=e.i(257661),n=e.i(945174);class i{cache=new Map;pending=new Map;generations=new Map;get(e){return this.cache.get(e)??null}getGeneration(e){return this.generations.get(e)??0}invalidate(e){let t=this.getGeneration(e)+1;return this.generations.set(e,t),this.cache.delete(e),t}commit(e,t,r,n=Date.now()){return this.getGeneration(e)===t&&(this.cache.set(e,{data:r,fetchedAt:n}),!0)}replace(e,t,r=Date.now()){let n=this.invalidate(e);return this.cache.set(e,{data:t,fetchedAt:r}),n}run(e,t){let r=this.getGeneration(e),n=this.pending.get(e);if(n&&n.generation===r&&(!t.force||n.force&&n.requestKey===(t.requestKey??"force")))return n.promise;let i=t.force?this.invalidate(e):r,a=t.request(i).finally(()=>{this.pending.get(e)?.promise===a&&this.pending.delete(e)}),s={generation:i,force:t.force,requestKey:t.requestKey??(t.force?"force":"normal"),promise:a};return this.pending.set(e,s),a}clear(){for(let e of new Set([...this.cache.keys(),...this.pending.keys(),...this.generations.keys()]))this.generations.set(e,this.getGeneration(e)+1);this.cache.clear(),this.pending.clear()}}e.s(["RefreshableRequestCache",0,i],734368);let a=new i;async function s(e){let{data:{user:t},error:r}=await e.auth.getUser();return!r&&t?.id?t.id:null}async function o(e,i={}){let u=await s(e);if(!u||i.expectedUserId&&u!==i.expectedUserId)throw Error("Viewer plan account could not be verified.");let c=a.get(u),l=Date.now();return!i.force&&c&&l-c.fetchedAt<3e5?c.data:a.run(u,{force:!0===i.force,request:async o=>{let d=await (0,r.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/private/viewer-plan`,{method:"GET",signal:i.signal},{expectedUserId:u}),h=d.ok?await d.json().catch(()=>({})):null;if(i.signal?.aborted||await s(e)!==u)throw Error("Viewer plan account changed while the request was in progress.");if(a.getGeneration(u)!==o)throw Error("Viewer plan request was superseded by an account update.");if(!d.ok){if((429===d.status||d.status>=500)&&c&&l-c.fetchedAt<9e5)return c.data;throw Error("Viewer plan could not be refreshed.")}let f=(0,n.normalizeAccessPlanName)("string"==typeof h?.plan?h.plan:"observer");return a.commit(u,o,f),f}})}e.s(["clearCurrentViewerPlanCache",0,function(){a.clear()},"fetchCurrentViewerPlan",0,o,"invalidateCurrentViewerPlan",0,function(e){a.invalidate(e)}],27858)},427734,e=>{"use strict";var t=e.i(317800),r=e.i(257661),n=e.i(734368),i=e.i(27858);let a=new Set(["canceled","cancelled","canceling","cancelling","refunded","revoked","terminated"]);function s(e,t=new Date){if(e?.access_active!==void 0&&!0!==e.access_active)return!1;let r=e?.recovery;if(!r||"recovering"!==String(r.state).trim().toLowerCase()||e?.cancel_at_period_end===!0||e?.canceled_at)return!1;let n=String(e?.status??"").trim().toLowerCase();if(a.has(n))return!1;let i=r.grace_expires_at?new Date(r.grace_expires_at).getTime():NaN;return Number.isFinite(i)&&i>t.getTime()}let o="rustwho:subscriptions-updated",u=new n.RefreshableRequestCache;async function c(e){try{let{data:{user:t},error:r}=await e.auth.getUser();if(r)return null;let n="string"==typeof t?.id?t.id.trim():"";return n?{userId:n}:null}catch{return null}}function l(e){return`user:${e.userId}`}async function d(e,t){let r=await c(e);if(r?.userId!==t.userId)throw Error("Subscription viewer changed while the request was in progress.")}async function h(e,t,r){var n;if(!r.isCurrent())return!1;let a=await c(e);
1if(a?.userId!==r.userId||!r.isCurrent())return!1;let s=l(r);return u.replace(s,t),(0,i.invalidateCurrentViewerPlan)(r.userId),n={userId:r.userId},window.dispatchEvent(new CustomEvent(o,{detail:n})),!0}async function f(e,n={}){let i=await c(e);if(!i){if(n.expectedUserId)throw Error("Subscription viewer could not be verified before the request started.");return[]}if(n.expectedUserId&&i.userId!==n.expectedUserId)throw Error("Subscription viewer changed before the request started.");let a=l(i),s=u.get(a),o=Date.now();return!n.force&&s&&o-s.fetchedAt<6e4?s.data:u.run(a,{force:!0===n.force,requestKey:!1===n.allowStaleFallback?"authoritative":"standard",request:async c=>{var l;let h;try{h=await (0,r.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/private/subscriptions`,{method:"GET"},{timeoutMs:12e3})}catch(t){if(!1!==n.allowStaleFallback&&s&&o-s.fetchedAt<6e5)return await d(e,i),s.data;throw t}if(!h.ok){if((429===h.status||h.status>=500)&&!1!==n.allowStaleFallback&&s&&o-s.fetchedAt<6e5)return await d(e,i),s.data;throw Error(`Failed to load subscriptions (${h.status})`)}let f=await h.json().catch(()=>({})),p=Array.isArray(l=f?.subscriptions)?l.flatMap(e=>{if(!e||"object"!=typeof e||Array.isArray(e))return[];let t={...e};return Object.prototype.hasOwnProperty.call(e,"access_active")&&(t.access_active=!0===e.access_active),[t]}):[];return await d(e,i),u.commit(a,c,p),p}})}e.s(["CURRENT_USER_SUBSCRIPTIONS_UPDATED_EVENT",0,o,"clearCurrentUserSubscriptionsCache",0,function(){u.clear(),(0,i.clearCurrentViewerPlanCache)()},"fetchCurrentUserSubscriptions",0,f,"getActiveBillingRecoverySubscription",0,function(e,t=new Date){return e.find(e=>s(e,t))??null},"hasActiveBillingRecovery",0,s,"publishCurrentUserSubscriptions",0,h])},146874,e=>{"use strict";let t=(0,e.i(33550).default)("outline","alert-triangle","AlertTriangle",[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);e.s(["IconAlertTriangle",0,t],146874)},105674,e=>{"use strict";let t=(0,e.i(33550).default)("outline","shield-check","ShieldCheck",[["path",{d:"M11.46 20.846a12 12 0 0 1 -7.96 -14.846a12 12 0 0 0 8.5 -3a12 12 0 0 0 8.5 3a12 12 0 0 1 -.09 7.06",key:"svg-0"}],["path",{d:"M15 19l2 2l4 -4",key:"svg-1"}]]);e.s(["IconShieldCheck",0,t],105674)},884313,e=>{"use strict";let t=(0,e.i(33550).default)("outline","credit-card","CreditCard",[["path",{d:"M3 5m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M3 10l18 0",key:"svg-1"}],["path",{d:"M7 15l.01 0",key:"svg-2"}],["path",{d:"M11 15l2 0",key:"svg-3"}]]);e.s(["IconCreditCard",0,t],884313)},635758,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(404948),i=e.i(679607),a=e.i(647163);let s=(0,r.createContext)({enabled:!1,startProgress:()=>void 0,setProgress:()=>void 0,finishProgress:()=>void 0});function o(e){return Math.min(Math.max(e,0),1)}e.s(["PremiumMotionProvider",0,function({children:e}){let u=(0,n.usePathname)(),[c,l]=(0,r.useState)(!1),[d,h]=(0,r.useState)(0),f=(0,r.useRef)(null),p=(0,r.useRef)(null),y=(0,r.useRef)(!1),m=(0,r.useCallback)(()=>{f.current&&(window.clearTimeout(f.current),f.current=null),p.current&&(window.clearInterval(p.current),p.current=null)},[]),_=(0,r.useCallback)(e=>{i.ENABLE_PREMIUM_MOTION_POLISH&&(p.current&&window.clearInterval(p.current),p.current=window.setInterval(()=>{h(t=>{if(t>=e)return p.current&&(window.clearInterval(p.current),p.current=null),t;let r=Math.max(.012,(e-t)*.18);return o(t+r)})},150))},[]),g=(0,r.useCallback)(e=>{i.ENABLE_PREMIUM_MOTION_POLISH&&(m(),l(!0),h(t=>{let r=e?.initial??i.PREMIUM_ROUTE_INITIAL_PROGRESS;return o(t>0?Math.max(t,r):r)}),_(e?.trickleTo??i.PREMIUM_ROUTE_TRICKLE_TARGET))},[_,m]),v=(0,r.useCallback)(e=>{i.ENABLE_PREMIUM_MOTION_POLISH&&(m(),l(!0),h(o(e)))},[m]),w=(0,r.useCallback)(()=>{i.ENABLE_PREMIUM_MOTION_POLISH&&(m(),l(!0),h(1),f.current=window.setTimeout(()=>{l(!1),h(0)},i.PREMIUM_MOTION_DURATIONS.settle+120))},[m]);(0,r.useEffect)(()=>
1{if(!i.ENABLE_PREMIUM_MOTION_POLISH)return;if(!y.current){y.current=!0;return}let e=window.setTimeout(()=>{w()},0);return()=>{window.clearTimeout(e)}},[w,u]),(0,r.useEffect)(()=>{if(!i.ENABLE_PREMIUM_MOTION_POLISH)return;let e=e=>{let t;if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let r=e.target,n=r?.closest("a[href]");if(!n||"_blank"===n.target||n.hasAttribute("download")||"true"===n.dataset.noProgressRail)return;let i=n.getAttribute("href");if(!(!i||i.startsWith("#")||i.startsWith("mailto:")||i.startsWith("tel:"))){try{t=new URL(n.href,window.location.href)}catch{return}t.origin!==window.location.origin||`${window.location.pathname}${window.location.search}`!=`${t.pathname}${t.search}`&&g()}};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[g]);let b=(0,r.useMemo)(()=>({enabled:i.ENABLE_PREMIUM_MOTION_POLISH,startProgress:g,setProgress:v,finishProgress:w}),[w,v,g]);return(0,t.jsxs)(s.Provider,{value:b,children:[i.ENABLE_PREMIUM_MOTION_POLISH?(0,t.jsxs)("div",{"aria-hidden":!0,className:(0,a.cn)("premium-progress-rail pointer-events-none fixed inset-x-0 top-0 z-[200] h-[2px]",c?"opacity-100":"opacity-0"),children:[(0,t.jsx)("div",{className:"premium-progress-rail__track"}),(0,t.jsx)("div",{className:"premium-progress-rail__glow",style:{width:`${100*d}%`}}),(0,t.jsx)("div",{className:"premium-progress-rail__bar",style:{width:`${100*d}%`}})]}):null,e]})},"usePremiumProgressRail",0,function(){return(0,r.useContext)(s)}])},678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),i=e.i(843476);function a(e){var r;let a,s=(r=e,(a=t.forwardRef((e,r)=>{let{children:i,...a}=e;if(t.isValidElement(i)){var s;let e,o,u=(s=i,(o=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(o=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(a,i.props);return i.type!==t.Fragment&&(c.ref=r?(0,n.composeRefs)(r,u):u),t.cloneElement(i,c)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,a),u=t.forwardRef((e,r)=>{let{children:n,...a}=e,u=t.Children.toArray(n),c=u.find(o);if(c){let e=c.props.children,n=u.map(r=>r!==c?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(s,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(s,{...a,ref:r,children:n})});return u.displayName=`${e}.Slot`,u}var s=Symbol("radix.slottable");function o(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}var u=new WeakMap;function c(e,t){var r,n;let i,a,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(r=e,n=t,i=r.length,(s=(a=l(n))>=0?a:i+a)<0||s>=i?-1:s);return -1===o?void 0:e[o]}function l(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),a=this.#e.length,s=l(e),o=s>=0?s:a+s,u=o<0||o>=a?-1:o;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!i;s<0&&o++;let d=[...this.#e],h=!1;for(let e=o;e<c;e++)if(o===e){let a=d[e];d[e]===t&&(a=d[e+1]),i&&this.delete(t),n=this.get(a),this.set(t,r)}else{h||d[e-1]!==t||(h=!0);let r=d[h?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=c(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=c(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return c(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let s=e+"CollectionProvider",[o,u]=(0,r.createContextScope)(s),[c,l]=o(s,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,a=t.default.useRef(null),s=t.default.useRef(new Map).current;return(0,i.jsx)(c,{scope:r,itemMap:s,collectionRef:a,children:n})};d.displayName=s;let h=e+"CollectionSlot",f=a(h),p=t.default.forwardRef((e,t)=>{let{scope:r,children:a}=e,s=l(h,r),o=(0,n.useComposedRefs)(t,s.collectionRef);return(0,i.jsx)(f,{ref:o,children:a})});p.displayName=h;let y=e+"CollectionItemSlot",m="data-radix-collection-item",_=a(y),g=t.default.forwardRef((e,r)=>{let{scope:a,children:s,...o}=e,u=t.default.useRef(null),c=(0,n.useComposedRefs)(r,u),d=l(y,a);return t.default.useEffect(()=>(d.itemMap.set(u,{ref:u,...o}),()=>void d.itemMap.delete(u))),(0,i.jsx)(_,{...{[m]:""},ref:c,children:s})});return g.displayName=y,[{Provider:d,Slot:p,ItemSlot:g},function(r){let n=l(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},u]}],75830)},848611,e=>{"use strict";var t=e.i(317800),r=e.i(257661),n=e.i(20299);let i={state:"not_connected",online:!1,onlineVerified:!1,lastHeartbeatAt:null},a={email:null,linked:!1,linkedSource:null,steamid:null,verifiedOwner:!1,verifiedSteamId:null,personaName:null,avatarUrl:null,steamLoginDisabledAt:null,web_oo:!1,app_oo:!1,tracker_oo:!1,created_at:null,rustPlusConnection:i},s=new Map,o=new Map;async function u(e){let t=await (0,n.getCachedSessionUser)(e);return t?.email?t.email.trim().toLowerCase():"anonymous"}async function c(e,n={}){let l=await u(e),d=s.get(l),h=Date.now();if(!n.force&&d&&h-d.fetchedAt<6e4)return d.data;let f=o.get(l);if(f)return f;let p=(async()=>{var n;let o=await (0,r.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/private/steam-link`,{method:"GET"},{timeoutMs:1e4}).catch(()=>null);if(!o)return d?.data??a;if(!o.ok)return 429===o.status&&d&&h-d.fetchedAt<6e5?d.data:d?.data??a;let u=await o.json().catch(()=>null);if(!u||"object"!=typeof u)return d?.data??a;let c={email:"string"==typeof u.email?u.email:null,linked:!0===u.linked,linkedSource:"steam-auth"===u.linkedSource||"opt_out"===u.linkedSource||"informer"===u.linkedSource?u.linkedSource:null,steamid:"string"==typeof u.steamid?u.steamid:null,verifiedOwner:!0===u.verifiedOwner,verifiedSteamId:"string"==typeof u.verifiedSteamId?u.verifiedSteamId:null,personaName:"string"==typeof u.personaName?u.personaName:null,avatarUrl:"string"==typeof u.avatarUrl?u.avatarUrl:null,steamLoginDisabledAt:"string"==typeof u.steamLoginDisabledAt?u.steamLoginDisabledAt:null,web_oo:!0===u.web_oo,app_oo:!0===u.app_oo,tracker_oo:!0===u.tracker_oo,created_at:"string"==typeof u.created_at?u.created_at:null,rustPlusConnection:(n=u.rustPlusConnection)&&"object"==typeof n?{state:"credentials_saved"===n.state||"paired"===n.state||"online"===n.state?n.state:"not_connected",online:!0===n.online||!1!==n.online&&null,onlineVerified:!0===n.onlineVerified,lastHeartbeatAt:"string"==typeof n.lastHeartbeatAt?n.lastHeartbeatAt:null}:i};return s.set(l,{data:c,fetchedAt:Date.now()}),c})().finally(()=>{o.delete(l)});return o.set(l,p),p}e.s(["clearSteamLinkCache",0,function(){s.clear(),o.clear()},"fetchCurrentSteamLink",0,c])},249909,e=>{"use strict";let t="rustwho:binoculars-sync";e.s(["BINOCULARS_SYNC_EVENT",0,t,"publishBinocularValue",0,function(e){window.dispatchEvent(new CustomEvent(t,{detail:{value:e}}))}])},461661,e=>{"use strict";let t=(0,e.i(33550).default)("outline","arrow-up-right","ArrowUpRight",[["path",{d:"M17 7l-10 10",key:"svg-0"}],["path",{d:"M8 7l9 0l0 9",key:"svg-1"}]]);e.s(["IconArrowUpRight",0,t],461661)},848719,e=>{"use strict";let t=(0,e.i(33550).default)("outline","search","Search",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);e.s(["IconSearch",0,t],848719)},345794,e=>{"use strict";let t=(0,e.i(33550).default)("outline","brand-x","BrandX",[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16z",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]]);e.s(["IconBrandX",0,t],345794)},516015,(e,t,r)=>{},898547,(e,t,r)=>{var n=e.i(247167);e.r(516015);var i=e.r(271645),a=i&&"object"==typeof i&&"default"in i?i:{default:i},s=void 0!==n.default&&n.default.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,a=void 0===i?s:i;c(o(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(o(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
1typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(o(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+l(e+"-"+r)),d[n]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=n||new u({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),n&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=a,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),y=i.createContext(null);function m(){return new p}function _(){return i.useContext(y)}y.displayName="StyleSheetContext";var g=a.default.useInsertionEffect||a.default.useLayoutEffect,v="u">typeof window?m():void 0;function w(e){var t=v||_();return t&&("u"<typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}w.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,n=i.useContext(y),s=i.useState(function(){return n||t||m()})[0];return a.default.createElement(y.Provider,{value:s},r)},r.createStyleRegistry=m,r.style=w,r.useStyleRegistry=_},437902,(e,t,r)=>{t.exports=e.r(898547).style},992571,e=>{"use strict";var t=e.i(619273);function r(e,{pages:t,pageParams:n}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function n(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=r(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=n(e,t)},"infiniteQueryBehavior",0,function(e){return{onFetch:(i,a)=>
1{let s=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,u=i.state.data?.pages||[],c=i.state.data?.pageParams||[],l={pages:[],pageParams:[]},d=0,h=async()=>{let a=!1,h=(0,t.ensureQueryFn)(i.options,i.fetchOptions),f=async(e,r,n)=>{let s;if(a)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let o=(Object.defineProperty(s={client:i.client,queryKey:i.queryKey,pageParam:r,direction:n?"backward":"forward",meta:i.options.meta},"signal",{enumerable:!0,get:()=>(i.signal.aborted?a=!0:i.signal.addEventListener("abort",()=>{a=!0}),i.signal)}),s),u=await h(o),{maxPages:c}=i.options,l=n?t.addToStart:t.addToEnd;return{pages:l(e.pages,u,c),pageParams:l(e.pageParams,r,c)}};if(o&&u.length){let e="backward"===o,t={pages:u,pageParams:c},i=(e?n:r)(s,t);l=await f(t,i,e)}else{let t=e??u.length;do{let e=0===d?c[0]??s.initialPageParam:r(s,l);if(d>0&&null==e)break;l=await f(l,e),d++}while(d<t)}return l};i.options.persister?i.fetchFn=()=>i.options.persister?.(h,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},a):i.fetchFn=h}}}])},833521,e=>{"use strict";let t;var r=e.i(619273),n=e.i(286491),i=e.i(540143),a=e.i(915823),s=class extends a.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,i){let a=t.queryKey,s=t.queryHash??(0,r.hashQueryKeyByOptions)(a,t),o=this.get(s);return o||(o=new n.Query({client:e,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o=e.i(114272),u=a,c=class extends u.Subscribable{constructor(e={}){super(),this.config=e,this.#r=new Set,this.#n=new Map,this.#i=0}#r;#n;#i;build(e,t,r){let n=new o.Mutation({client:e,mutationCache:this,mutationId:++this.#i,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#r.add(e);let t=l(e);if("string"==typeof t){let r=this.#n.get(t);r?r.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#r.delete(e)){let t=l(e);if("string"==typeof t){let r=this.#n.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let r=this.#n.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#n.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#r.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#r.clear(),this.#n.clear()})}getAll(){return Array.from(this.#r)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function l(e){return e.options.scope?.id}var d=e.i(175555),h=e.i(814448),f=e.i(992571),p=class{#a;#s;#o;#u;#c;#l;#d;#h;constructor(e={}){this.#a=e.queryCache||new s,this.#s=e.mutationCache||new c,this.#o=e.defaultOptions||{},this.#u=new Map,this.#c=new Map,this.#l=0}mount(){this.#l++,1===this.#l&&(this.#d=d.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onFocus())}),this.#h=h.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#a.onOnline())}))}unmount(){this.#l--,0===this.#l&&(this.#d?.(),this.#d=void 0,this.#h?.(),this.#h=void 0)}isFetching(e){return this.#a.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#s.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#a.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#a.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#a.get(i.queryHash),s=a?.state.data,o=(0,r.functionalUpdate)(t,s);if(void 0!==o)return this.#a.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(e,t,r){return i.notifyManager.batch(()=>this.#a.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#a.get(t.queryHash)?.state}removeQueries(e){let t=this.#a;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#a;return i.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(i.notifyManager.batch(()=>this.#a.findAll(e).map(e=>e.cancel(n)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#a.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#a.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#a.build(this,t);return n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e.behavior=(0,f.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,f.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return h.onlineManager.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#a}getMutationCache(){return this.#s}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#u.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#u.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#c.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#c.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#a.clear(),this.#s.clear()}},y=e.i(920755);e.s(["getQueryCache",0,function(){return t??=function(e){let t,r=new p({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}),n=0,i=new Set;if(e){let e=(0,y.createClient)(),a=0,s=e=>{if(t===e)return;let a=t;
1t=e,void 0!==a&&(r.cancelQueries(),r.clear(),n+=1,i.forEach(e=>e()))};e.auth.onAuthStateChange((e,t)=>{a+=1,s(t?.user.id??null)});let o=a;e.auth.getSession().then(({data:e})=>{a===o&&s(e.session?.user.id??null)}).catch(()=>{})}return{client:r,getSnapshot:()=>n,getServerSnapshot:()=>0,subscribe:e=>(i.add(e),()=>{i.delete(e)})}}(!0)}],833521)},879664,e=>{"use strict";let t=(0,e.i(475254).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"}]]);e.s(["default",0,t])},123287,e=>{"use strict";let t=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},666051,e=>{"use strict";let t=(0,e.i(33550).default)("outline","clock-hour-4","ClockHour4",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12l3 2",key:"svg-1"}],["path",{d:"M12 7v5",key:"svg-2"}]]);e.s(["IconClockHour4",0,t],666051)},942484,e=>{"use strict";let t=(0,e.i(33550).default)("outline","gift","Gift",[["path",{d:"M3 8m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M12 8l0 13",key:"svg-1"}],["path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7",key:"svg-2"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5",key:"svg-3"}]]);e.s(["IconGift",0,t],942484)},269305,992227,e=>{"use strict";var t=e.i(317800);function r(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:null}function n(e,t=256){if("string"!=typeof e)return null;let r=e.trim();return r&&r.length<=t?r:null}function i(e){let t=n(e,64);if(!t)return null;let r=new Date(t).getTime();return Number.isFinite(r)?new Date(r).toISOString():null}function a(e){return"myfatoorah"===e||"paypro"===e?e:null}function s(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0?e:null}function o(e){let t="number"==typeof e?e:"string"==typeof e&&e.trim()?Number(e):NaN;return Number.isFinite(t)&&t>=0&&t<=1e6?t:null}function u(e){let t=r(e);if(!t)return null;let i=n(t.name,80),a=n(t.slug,80),s=n(t.billing_interval,40);return i&&a&&s?{name:i,slug:a,billingInterval:s}:null}function c(e){let t=r(e);return t&&10===t.percent&&"first_resumed_term_only"===t.scope?{percent:10,scope:"first_resumed_term_only"}:null}function l(e){let t=r(e);if(!t)return null;let i=n(t.currency,3)?.toUpperCase()??null,a=o(t.discounted_first_term),s=o(t.standard_renewal);return i&&/^[A-Z]{3}$/.test(i)&&null!==a&&null!==s&&!(a>s)?{currency:i,discountedFirstTerm:a,standardRenewal:s}:null}function d(e){let t,o,d,h,f,p,y,m,_,g,v,w,b,S,k,C,A,E,O=r(e);if(!O||!("action"in O))return null;let I=i(O.server_time);if(!I)return null;if(null===O.action)return{action:null,serverTime:I};let R=r(O.action);if(!R)return null;let M="payment_recovery"===R.type?(t=a(R.provider),o=n(R.subscription_id),d=i(R.cutoff),h=s(R.attempt_count),f=s(R.max_attempts),p=r(R.repair),y=p?.capability,t&&o&&d&&null!==h&&null!==f&&!(f<1)&&!(h>f)&&("update_payment_method"===y||"checkout_repair"===y)&&p?.endpoint==="/checkout/recovery/fix-payment"?{type:"payment_recovery",provider:t,subscriptionId:o,cutoff:d,attemptCount:h,maxAttempts:f,repair:{capability:y,endpoint:"/checkout/recovery/fix-payment"}}:null):"canceled_winback"===R.type?(m=n(R.offer_id),_=a(R.provider),g=u(R.plan),v=i(R.access_cutoff),w=void 0!==R.offer_expires_at,b=null==R.offer_started_at?null:i(R.offer_started_at),S=w?i(R.offer_expires_at):v,k=c(R.discount),C=l(R.pricing),A=i(R.next_charge_at),E=null===R.successor_plan_name||void 0===R.successor_plan_name?null:n(R.successor_plan_name,80),m&&_&&g&&v&&S&&(null==R.offer_started_at||b)&&(!b||w)&&k&&C&&A&&("all_paid_access"===R.projected_access_loss||"tier_downgrade"===R.projected_access_loss)&&("resume_at_expiry"===R.mode||"checkout_required"===R.mode)&&"exposed"===R.cohort&&(null===R.successor_plan_name||void 0===R.successor_plan_name||E)&&("tier_downgrade"!==R.projected_access_loss||E)&&("all_paid_access"!==R.projected_access_loss||null===E)?{type:"canceled_winback",offerId:m,provider:_,plan:g,accessCutoff:v,offerStartedAt:b,offerExpiresAt:S,discount:k,projectedAccessLoss:R.projected_access_loss,downgradeToPlan:E,mode:R.mode,pricing:C,nextChargeAt:A,cohort:"exposed"}:null):null;if(!M)return null;let x=new Date(I).getTime(),P=new Date("payment_recovery"===M.type?M.cutoff:M.accessCutoff).getTime()-x;if(P<=0)return null;if("canceled_winback"===M.type){let e=new Date(M.offerExpiresAt).getTime(),t=M.offerStartedAt?new Date(M.offerStartedAt).getTime():null,r=e-x;if(r<=0||r>10368e5||null!==t&&(t>x||e<=t||e-t>10368e5)||void 0===R.offer_expires_at&&P>6048e5)return null}return{action:M,serverTime:I}}function h(e){let t=r(e);if(!t)return null;let s=n(t.intent_id),o=u(t.plan),d=a(t.provider),h=i(t.access_cutoff),f=null==t.offer_started_at?null:i(t.offer_started_at),p=null==t.offer_expires_at?null:i(t.offer_expires_at),y=c(t.discount),m=l(t.pricing),_=i(t.next_charge_at),g=function(e){if(null==e)return null;let t=r(e);if(!t||"confirm"!==t.type&&"card_verification"!==t.type&&"checkout"!==t.type&&"none"!==t.type&&"refresh"!==t.type)return null;let i=null===t.url||void 0===t.url?null:n(t.url,2048);return null===t.url||void 0===t.url||i?{type:t.type,url:i}:null}(t.next_action),v=Object.prototype.hasOwnProperty.call(t,"cancel_available_until"),w=Object.prototype.hasOwnProperty.call(t,"can_cancel"),b=v?i(t.cancel_available_until):null,S=w&&"boolean"==typeof t.can_cancel?t.can_cancel:null,k="scheduled"===t.state&&"paypro"===d&&"resume_at_expiry"===t.mode;return!s||!o||!d||!h||null!=t.offer_started_at&&!f||null!=t.offer_expires_at&&!p||!y||!m||!_||"prepared"!==t.state&&"scheduled"!==t.state&&"verification_required"!==t.state&&"checkout_required"!==t.state&&"completed"!==t.state||"resume_at_expiry"!==t.mode&&"checkout_required"!==t.mode||"at_expiry"!==t.payment_timing&&"today"!==t.payment_timing||null!==t.next_action&&void 0!==t.next_action&&!g||v!==w||v!==k||v&&(!b||null===S)||b&&_&&new Date(b).getTime()>=new Date(_).getTime()||!0===S&&"scheduled"!==t.state?null:{intentId:s,state:t.state,mode:t.mode,plan:o,provider:d,accessCutoff:h,...f?{offerStartedAt:f}:{},...p?{offerExpiresAt:p}:{},discount:y,pricing:m,nextChargeAt:_,paymentTiming:t.payment_timing,nextAction:g,cancelAvailableUntil:b,canCancel:S}}function f(e){let t=r(e),i=n(t?.intent_id);return i&&t?.state==="canceled"&&!0===t.canceled?{intentId:i,state:"canceled",canceled:!0}:null}function p(e){let t=r(e),i=n(t?.intent_id),a=n(t?.session_id,500),s=n(t?.country_code,2)?.toUpperCase()??null;return i&&a&&s&&/^[A-Z]{2}$/.test(s)?{intentId:i,sessionId:a,countryCode:s}:null}let y=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function m(e){let t=u(e.plan),r=i(e.access_cutoff),n=l(e.pricing),a=i(e.next_renewal_at);return"myfatoorah"!==e.provider||"checkout_required"!==e.mode||"today"!==e.payment_timing||!t||!["weekly","monthly","yearly"].includes(t.billingInterval)||!r||!n||"USD"!==n.currency||!a||new Date(a).getTime()<=new Date(r).getTime()?null:{provider:"myfatoorah",mode:"checkout_required",plan:t,accessCutoff:r,pricing:n,nextRenewalAt:a,paymentTiming:"today"}}function _(e){let t=r(e);if(!t)return null;let i=m(t),a=n(t.intent_id),s=n(t.checkout_intent_id),u=n(t.session_id,500),c=n(t.encryption_key,4096),l=o(t.amount);return i&&a&&y.test(a)&&s&&y.test(s)&&u&&c&&null!==l&&!(l<=0)&&Math.round(100*l)===Math.round(100*i.pricing.discountedFirstTerm)?{...i,intentId:a,checkoutIntentId:s,sessionId:u,encryptionKey:c,amount:l}:null}function g(e){let t=r(e);if(!t)return null;let i=m(t),a=n(t.intent_id),s=n(t.checkout_intent_id),o=n(t.status_url,1024),u=null===t.payment_url||void 0===t.payment_url||""===t.payment_url?null:n(t.payment_url,2048),c=t.payment_status,l=t.payment_outcome;return i&&a&&y.test(a)&&s&&y.test(s)&&o&&function(e,t){try{let r=new URL(e,"https://rustwho.invalid");return"https://rustwho.invalid"===r.origin&&"/checkout/reactivation/myfatoorah/status"===r.pathname&&1===r.searchParams.size&&r.searchParams.get("intentId")?.toLowerCase()===t.toLowerCase()}catch{return!1}}(o,a)&&("paid"===c||"pending"===c||"failed"===c||"reconciliation_required"===c)&&("paid"===l||"uncertain"===l||"failed"===l||"reconciliation_required"===l)&&"boolean"==typeof t.payment_completed&&"boolean"==typeof t.reconciliation_required&&t.payment_completed===("paid"===c)&&t.reconciliation_required===("reconciliation_required"===c)&&("paid"!==c||"paid"===l)&&("failed"!==c||"failed"===l)&&("reconciliation_required"!==c||"reconciliation_required"===l)&&(null===t.payment_url||void 0===t.payment_url||""===t.payment_url||u)?{...i,intentId:a,checkoutIntentId:s,paymentCompleted:t.payment_completed,paymentStatus:c,paymentOutcome:l,reconciliationRequired:t.reconciliation_required,statusUrl:o,paymentUrl:u}:null}e.s(["getAccountActionCountdown",0,function(e,t=Date.now()){let r=new Date(e).getTime(),n=r-t;return!Number.isFinite(r)||n<=0?{days:0,hours:0,expired:!0}:{days:Math.floor(n/864e5),hours:Math.floor(n/36e5%24),expired:!1}},"parseAccountActionResponse",0,d,"parseCanceledReactivationIntent",0,f,"parseMyFatoorahReactivationCheckoutSession",0,_,"parseMyFatoorahReactivationPaymentState",0,g,"parseReactivationIntentSummary",0,h,"parseReactivationVerificationSession",0,p],992227);var v=e.i(257661);let w="rustwho:account-action-updated";
1class b extends Error{status;code;constructor(e,t,r=null){super(e),this.name="AccountActionRequestError",this.status=t,this.code=r}}async function S(e){let{data:{session:t}}=await e.auth.getSession();return t?.user?.id??null}async function k(e,t,r){if(await S(e)!==t)throw new b(`Account viewer changed ${r} the request.`,409,"VIEWER_CHANGED")}async function C(e){return e.json().catch(()=>null)}async function A(e,t){let r=await C(e);if(!e.ok){var n,i;let a=(n=r,i=t,!n||"object"!=typeof n||Array.isArray(n)?{message:i,code:null}:{message:"string"==typeof n.message&&n.message.trim()?n.message.trim():i,code:"string"==typeof n.error&&n.error.trim()?n.error.trim():null});throw new b(a.message,e.status,a.code)}return r}async function E(e,r,n){await k(e,r,"before");let i=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/private/account-action`,{method:"GET",cache:"no-store",signal:n},{timeoutMs:12e3}),a=d(await A(i,"Could not check account billing actions."));if(!a)throw new b("The account action response could not be verified.",502,"INVALID_ACCOUNT_ACTION");return await k(e,r,"after"),a}async function O(e,r,n,i,a){await k(e,r,"before");let s=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}${n}`,{method:"POST",headers:{"Idempotency-Key":a},body:JSON.stringify(i)},{timeoutMs:2e4}),o=h(await A(s,"Could not prepare the secure reactivation."));if(!o)throw new b("The reactivation response could not be verified.",502,"INVALID_REACTIVATION_RESPONSE");return await k(e,r,"after"),o}async function I(e,r,n,i){await k(e,r,"before");let a=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/checkout/reactivation/cancel`,{method:"POST",headers:{"Idempotency-Key":i},body:JSON.stringify({intent_id:n})},{timeoutMs:15e3}),s=f(await A(a,"Could not cancel the reactivation request."));if(!s)throw new b("The cancellation response could not be verified.",502,"INVALID_REACTIVATION_CANCEL_RESPONSE");return await k(e,r,"after"),s}async function R(e,r,n,i){await k(e,r,"before");let a=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/checkout/reactivation/verification/session`,{method:"POST",headers:{"Idempotency-Key":i},body:JSON.stringify({intent_id:n})},{timeoutMs:2e4}),s=p(await A(a,"Could not prepare secure card verification."));if(!s)throw new b("The card-verification session could not be verified.",502,"INVALID_VERIFICATION_SESSION");if(s.intentId.toLowerCase()!==n.toLowerCase())throw new b("The card-verification session did not match this reactivation.",502,"VERIFICATION_INTENT_MISMATCH");return await k(e,r,"after"),s}async function M(e,r,n,i,a){await k(e,r,"before");let s=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/checkout/reactivation/verification/complete`,{method:"POST",headers:{"Idempotency-Key":a},body:JSON.stringify({intent_id:n,session_id:i})},{timeoutMs:25e3}),o=h(await A(s,"Could not confirm secure card verification."));if(!o)throw new b("The verification result could not be verified.",502,"INVALID_VERIFICATION_RESULT");return await k(e,r,"after"),o}async function x(e,r,n,i){await k(e,r,"before");let a=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/checkout/reactivation/myfatoorah/session`,{method:"POST",headers:{"Idempotency-Key":i},body:JSON.stringify({intent_id:n})},{timeoutMs:25e3}),s=_(await A(a,"Could not prepare secure reactivation checkout."));if(!s||s.intentId.toLowerCase()!==n.toLowerCase())throw new b("The reactivation checkout session could not be verified.",502,"INVALID_REACTIVATION_CHECKOUT_SESSION");return await k(e,r,"after"),s}async function P(e,r,n,i,a){await k(e,r,"before");let s=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/checkout/reactivation/myfatoorah/execute`,{method:"POST",headers:{"Idempotency-Key":a},body:JSON.stringify({intent_id:n,session_id:i})},{timeoutMs:45e3}),o=g(await A(s,"Could not confirm the reactivation payment."));if(!o||o.intentId.toLowerCase()!==n.toLowerCase())throw new b("The reactivation payment response could not be verified.",502,"INVALID_REACTIVATION_PAYMENT_RESPONSE");return await k(e,r,"after"),o}async function T(e,r,n,i){await k(e,r,"before");let a=await (0,v.fetchPrivate)(e,`${t.FETCH_RUSTWHO_BASE}/checkout/reactivation/myfatoorah/status?intentId=${encodeURIComponent(n)}
1`,{method:"GET",cache:"no-store",signal:i},{timeoutMs:2e4}),s=g(await A(a,"Could not check the reactivation payment status."));if(!s||s.intentId.toLowerCase()!==n.toLowerCase())throw new b("The reactivation payment status could not be verified.",502,"INVALID_REACTIVATION_PAYMENT_STATUS");return await k(e,r,"after"),s}e.s(["ACCOUNT_ACTION_UPDATED_EVENT",0,w,"AccountActionRequestError",0,b,"cancelSubscriptionReactivation",0,I,"completeSubscriptionReactivationVerification",0,M,"confirmSubscriptionReactivation",0,function(e,t,r,n){return O(e,t,"/checkout/reactivation/confirm",{intent_id:r,consent:!0},n)},"createAccountActionIdempotencyKey",0,function(){if("u">typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();throw new b("This browser cannot safely start a billing action.",400,"IDEMPOTENCY_UNAVAILABLE")},"createMyFatoorahReactivationCheckoutSession",0,x,"createSubscriptionReactivationVerificationSession",0,R,"executeMyFatoorahReactivationCheckout",0,P,"fetchCurrentAccountAction",0,E,"fetchMyFatoorahReactivationCheckoutStatus",0,T,"prepareSubscriptionReactivation",0,function(e,t,r,n){return O(e,t,"/checkout/reactivation/prepare",{offer_id:r},n)},"publishAccountActionUpdated",0,function(){window.dispatchEvent(new Event(w))}],269305)},582458,e=>{"use strict";let t=(0,e.i(475254).default)("triangle-alert",[["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",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},401039,e=>{"use strict";let t=(0,e.i(33550).default)("outline","shopping-cart","ShoppingCart",[["path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M17 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M17 17h-11v-14h-2",key:"svg-2"}],["path",{d:"M6 5l14 1l-1 7h-13",key:"svg-3"}]]);e.s(["IconShoppingCart",0,t],401039)},905255,e=>{"use strict";var t=e.i(271645),r=e.i(266027),n=e.i(912598),i=e.i(249909),a=e.i(674573),s=e.i(920755),o=e.i(257661);function u(e){if("number"==typeof e&&Number.isFinite(e))return Math.max(0,Math.floor(e));if("string"==typeof e){let t=Number.parseInt(e,10);if(Number.isFinite(t))return Math.max(0,t)}return 0}e.s(["useBinocularBalance",0,function(e){let c=(0,n.useQueryClient)(),l=["binocular-balance",e??"guest"];(0,t.useEffect)(()=>{function e(e){let t=e.detail;c.setQueryData(l,(e=0)=>t?.value!==void 0?u(t.value):t?.delta!==void 0?Math.max(0,e+Math.trunc(t.delta)):e)}return window.addEventListener(i.BINOCULARS_SYNC_EVENT,e),()=>window.removeEventListener(i.BINOCULARS_SYNC_EVENT,e)},[c,e]);let d=(0,r.useQuery)({queryKey:l,enabled:!!e,staleTime:3e5,refetchOnMount:!1,refetchOnWindowFocus:!1,queryFn:async()=>{let e=(0,a.isSignalLocalMode)()?await (0,o.fetchPrivate)((0,s.createClient)(),`${(0,a.signalLocalApi)()}/private/binoculars`):await fetch("/api/binoculars",{credentials:"include"});if(!e.ok)throw Error(`Failed to load binocular balance (${e.status})`);return u((await e.json()).binoculars)}});return{...d,binoculars:e?d.data??0:0,isLoading:!!e&&d.isLoading,isUnavailable:!!(e&&d.isError&&void 0===d.data)}}])},547410,e=>{"use strict";let t=(0,e.i(33550).default)("outline","users","Users",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);e.s(["IconUsers",0,t],547410)},918057,e=>{"use strict";let t=Object.freeze(["en","es","ru","zh-Hans","ar"]);function r(e){return"string"==typeof e&&t.includes(e)}function n(e){if("string"!=typeof e||!e.startsWith("/")||/[\u0000-\u001f\u007f\\]/u.test(e))return null;let t=e.indexOf("#"),n=t<0?"":e.slice(t),i=t<0?e:e.slice(0,t),a=i.indexOf("?"),s=a<0?"":i.slice(a),o=a<0?i:i.slice(0,a);if(o.includes("//"))return null;for(let e of o.split("/")){let t;try{t=decodeURIComponent(e)}catch{return null}if("."===t||".."===t||/[/\\\u0000-\u001f\u007f]/u.test(t))return null}let u=o.split("/")[1],c=r(u),l=c?u:"en",d=c?o.slice(u.length+1)||"/":o;return Object.freeze({pathname:o,search:s,hash:n,locale:l,hasLocalePrefix:c,unprefixedPathname:d})}e.s(["buildLocalizedHref",0,function(e,t){if(!r(t))throw RangeError("Unsupported site locale");let i=n(e);
1if(!i)throw TypeError("Expected an unambiguous same-site href");let a="en"===t?i.unprefixedPathname:`/${t}${"/"===i.unprefixedPathname?"":i.unprefixedPathname}`;return`${a}${i.search}${i.hash}`},"matchBrowserLocale",0,function(e){for(let{tag:t}of"string"==typeof e?e.split(",").map((e,t)=>{let[r,...n]=e.trim().split(";").map(e=>e.trim());if(!r||n.length>1)return null;let i=1;if(n.length){let e=/^q=(0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/i.exec(n[0]);if(!e)return null;i=Number(e[1])}return i>0?{tag:r,quality:i,index:t}:null}).filter(Boolean).sort((e,t)=>t.quality-e.quality||e.index-t.index):Array.isArray(e)?e.filter(e=>"string"==typeof e).map(e=>({tag:e})):[]){let e=function(e){try{let t=new Intl.Locale(e);if(["en","es","ru","ar"].includes(t.language))return t.language;if("zh"!==t.language)return null;return"Hans"===t.maximize().script?"zh-Hans":null}catch{return null}}(t.trim());if(e)return e}return null},"parseSiteHref",0,n])},565157,e=>{"use strict";let t=(0,e.i(475254).default)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Globe2",0,t],565157)},851682,332486,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(861745),i=e.i(948148);e.i(404948);var a=e.i(477977),s=e.i(87848),o=e.i(920755),u=e.i(317800),c=e.i(257661);class l extends Error{code;status;constructor(e,t){super(e),this.code=e,this.status=t,this.name="LanguagePreferenceError"}}async function d(e,t,r){let n=await (0,c.fetchPrivate)(e,`${u.FETCH_RUSTWHO_BASE}/private/language-preferences`,{...t,cache:"no-store"},{timeoutMs:12e3,expectedUserId:r}),i=await n.json().catch(()=>null);if(!n.ok)throw new l("string"==typeof i?.code?i.code:"LANGUAGE_PREFERENCE_FAILED",n.status);if(!i||"object"!=typeof i||null!==i.websiteLanguage&&!(0,s.isLocale)(i.websiteLanguage)||!Array.isArray(i.handledInformerLanguages)||!i.handledInformerLanguages.every(s.isLocale))throw new l("LANGUAGE_RESPONSE_INVALID",502);return{websiteLanguage:i.websiteLanguage,handledInformerLanguages:[...new Set(i.handledInformerLanguages)]}}function h(e,t,r){return d(e,{method:"GET",signal:r},t)}function f(e,t,r){if(!(0,s.isLocale)(t))throw TypeError("Unsupported website language");return d(e,{method:"PATCH",body:JSON.stringify({websiteLanguage:t})},r)}function p(e,t,r){if(!(0,s.isLocale)(t))throw TypeError("Unsupported informer language");return d(e,{method:"PATCH",body:JSON.stringify({handledInformerLanguage:t})},r)}async function y(e,t,r){if(!(0,s.isLocale)(t))throw TypeError("Unsupported informer language");let n=await (0,c.fetchPrivate)(e,`${u.FETCH_RUSTWHO_BASE}/private/informer-settings`,{method:"PATCH",body:JSON.stringify({informer_language:t}),cache:"no-store"},{timeoutMs:15e3,expectedUserId:r});if(!n.ok)throw new l("INFORMER_LANGUAGE_SAVE_FAILED",n.status);window.dispatchEvent(new Event("rw-informer-status-refresh"))}e.s(["acknowledgeInformerLanguageSuggestion",0,p,"getLanguagePreferences",0,h,"saveInformerLanguage",0,y,"saveWebsiteLanguage",0,f],332486);var m=e.i(846696),_=e.i(918057);let g=(0,r.createContext)(null);function v(){let e=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(`${s.LOCALE_COOKIE}=`)),t=e?.slice(s.LOCALE_COOKIE.length+1);return(0,s.isLocale)(t)?t:null}function w(e){document.cookie=`${s.LOCALE_COOKIE}=${e}; Path=/; Max-Age=31536000; SameSite=Lax${"https:"===location.protocol?"; Secure":""}`}e.s(["LanguagePreferenceProvider",0,function({children:e}){let u=(0,r.useMemo)(()=>(0,o.createClient)(),[]),c=(0,a.useRouter)(),l=(0,n.useLocale)(),d=(0,i.useTranslations)("localeUI"),[y,b]=(0,r.useState)(null),S=(0,r.useRef)(null),[k,C]=(0,r.useState)(null),[A,E]=(0,r.useState)(!1),[O,I]=(0,r.useState)(!1),R=(0,r.useRef)(!1),M=(0,r.useRef)(0),x=(0,r.useRef)(null),P=(0,r.useRef)(null),T=(0,r.useRef)(null);(0,r.useEffect)(()=>{x.current??="/"===window.location.pathname,P.current??=v();let e=!0,t=t=>{e&&S.current!==t&&(S.current=t,M.current++,C(null),E(!t),b(t))};u.auth.getSession().then(({data:r})=>{e&&(t(r.session?.user.id??null),r.session||E(!0))});let{data:{subscription:r}}=u.auth.onAuthStateChange((r,n)=>{t(n?.user.id??null),!n&&e&&E(!0)});return()=>{e=!1,r.unsubscribe()}},[u]),(0,r.useEffect)(()=>
1{if(!y)return;let e=new AbortController,t=M.current;return h(u,y,e.signal).then(r=>{!e.signal.aborted&&t===M.current&&S.current===y&&(C(r),E(!0),r.websiteLanguage&&!P.current&&(w(r.websiteLanguage),x.current&&"/"===window.location.pathname&&T.current!==y&&(T.current=y,r.websiteLanguage!==l&&c.replace(`/${window.location.search}${window.location.hash}`,{locale:r.websiteLanguage,scroll:!1}))))}).catch(()=>{}),()=>e.abort()},[y,l,c,u]);let L=(0,r.useCallback)(async e=>{if(!(0,s.isLocale)(e)||R.current)return!1;let t=()=>(function({href:e,embeddedPaymentActive:t=!1}){if(t)return!0;let r=(0,_.parseSiteHref)(e);if(!r)return!1;let n=r.unprefixedPathname.replace(/\/$/,"")||"/";return!!(/^\/account\/reactivation\/(?:checkout|verify)(?:\/|$)/.test(n)||/^\/pricing\/checkout(?:\/|$)/.test(n))||"/pricing"===n&&new URLSearchParams(r.search).getAll("checkout").includes("1")})({href:`${window.location.pathname}${window.location.search}`,embeddedPaymentActive:!!document.querySelector('[data-rustwho-payment-active="true"]')});if(e!==l&&t())return m.toast.info(d("checkoutLanguageNotice")),!1;R.current=!0,M.current++,x.current=!1,I(!0);try{let{data:r}=await u.auth.getSession();if(e!==l&&t())return m.toast.info(d("checkoutLanguageNotice")),!1;let n=r.session?.user.id??null;if(n){let t=await f(u,e,n);if(S.current!==n)return!1;S.current===n&&(C(t),E(!0))}if(e!==l&&t())return m.toast.info(d("checkoutLanguageNotice")),!1;w(e);let i=`${(0,s.stripLocalePath)(window.location.pathname)}${window.location.search}${window.location.hash}`;return e!==l&&c.replace(i,{locale:e,scroll:!1}),!0}catch{return m.toast.error(d("saveFailed")),!1}finally{R.current=!1,I(!1)}},[l,c,u,d]),N=(0,r.useCallback)(async e=>{let t=S.current;if(!t)throw Error("Authentication required");let r=await p(u,e,t);S.current===t&&C(e=>({websiteLanguage:e?.websiteLanguage??r.websiteLanguage,handledInformerLanguages:[...new Set([...e?.handledInformerLanguages??[],...r.handledInformerLanguages])]}))},[u]),q=(0,r.useMemo)(()=>({accountId:y,preferences:k,preferencesReady:A,choosingLanguage:O,chooseLanguage:L,acknowledgeInformerSuggestion:N}),[y,k,A,O,L,N]);return(0,t.jsx)(g.Provider,{value:q,children:e})},"readSavedBrowserLanguage",0,v,"useLanguagePreferences",0,function(){let e=(0,r.useContext)(g);if(!e)throw Error("Language preferences require LanguagePreferenceProvider");return e},"useOptionalLanguagePreferences",0,function(){return(0,r.useContext)(g)}],851682)},717521,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},531278,e=>{"use strict";var t=e.i(717521);e.s(["Loader2",()=>t.default])},586318,e=>{"use strict";var t=e.i(271645),r=e.i(843476),n=Object.defineProperty,i=(e,t)=>n(e,"name",{value:t,configurable:!0}),a=t.createContext(void 0),s=i(e=>{let{dir:t,children:n}=e;return(0,r.jsx)(a.Provider,{value:t,children:n})},"DirectionProvider");function o(e){let r=t.useContext(a);return e||r||"ltr"}i(o,"useDirection"),e.s(["DirectionProvider",0,s,"useDirection",0,o])},456224,e=>{"use strict";var t=e.i(843476),r=e.i(565157),n=e.i(531278),i=e.i(861745),a=e.i(948148),s=e.i(87848),o=e.i(851682),u=e.i(463415),c=e.i(647163);e.s(["LanguageSelector",0,function({compact:e=!1,className:l}){let d=(0,i.useLocale)(),h=(0,a.useTranslations)("localeUI"),f=(0,o.useOptionalLanguagePreferences)();return f?(0,t.jsxs)(u.DropdownMenu,{dir:"ar"===d?"rtl":"ltr",children:[(0,t.jsx)(u.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",disabled:f.choosingLanguage,"aria-label":h("chooseLanguage"),title:h("chooseLanguage"),className:(0,c.cn)("inline-flex min-h-9 min-w-9 items-center justify-center gap-2 rounded-lg border border-white/10 bg-white/[0.025] px-2.5 text-xs font-medium text-slate-300 transition-colors hover:border-white/20 hover:bg-white/[0.07] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300 disabled:opacity-60",l),children:[f.choosingLanguage?(0,t.jsx)(n.Loader2,{className:"size-4 animate-spin","aria-hidden":!0}):(0,t.jsx)(r.Globe2,{className:"size-4","aria-hidden":!0}),!e&&(0,t.jsx)("span",{lang:d,dir:"auto",children:s.languageNames[d]})]})}),(0,t.jsx)(u.DropdownMenuContent,{align:"end",className:"min-w-44 border-white/10 bg-[#101217] p-1.5 text-slate-100",children:(0,t.jsx)(u.DropdownMenuRadioGroup,{value:d,children:s.locales.map(e=>(0,t.jsx)(u.DropdownMenuRadioItem,{value:e,disabled:f.choosingLanguage,onSelect:t=>{t.preventDefault(),f.chooseLanguage(e)},className:"flex min-h-10 cursor-pointer items-center gap-3 rounded-md pe-3 focus:bg-white/10 focus:text-white data-[state=checked]:text-amber-200",children:(0,t.jsx)("span",{lang:e,dir:"auto",className:"grow",children:s.languageNames[e]})},e))})})]}):null}])}]);
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.