PageSourceSearch

https://algoarcade-beta.vercel.app/_next/static/chunks/fb3f1e541fb8c380.js

js algoarcade-beta.vercel.app collected 2026-10-03 06:14:47 UTC 27,163 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,304994,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},n=new class{#e=t;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function r(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",()=>r,"timeoutManager",()=>n])},442799,e=>{"use strict";var t=e.i(304994),n="undefined"==typeof window||"Deno"in globalThis;function r(){}function s(e,t){return"function"==typeof e?e(t):e}function i(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function o(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==d(a,t.options))return!1}else if(!f(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!s||s===t.state.fetchStatus)&&(!i||!!i(t))}function l(e,t){let{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(i))return!1}else if(!f(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&(!s||!!s(t))}function d(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function f(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>f(e[n],t[n]))}var p=Object.prototype.hasOwnProperty;function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!g(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!g(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(n=>{t.timeoutManager.setTimeout(n,e)})}function w(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=y(t)&&y(n);if(!r&&!(v(t)&&v(n)))return n;let s=(r?t:Object.keys(t)).length,i=r?n:Object.keys(n),a=i.length,o=r?Array(a):{},c=0;for(let u=0;u<a;u++){let a=r?u:i[u],l=t[a],d=n[a];if(l===d){o[a]=l,(r?u<s:p.call(t,a))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){o[a]=d;continue}let h=e(l,d);o[a]=h,h===l&&c++}return s===a&&c===s?t:o}(e,t):t}function E(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function S(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var T=Symbol();function O(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==T?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function R(e,t){return"function"==typeof e?e(...t):!!e}e.s(["addToEnd",()=>E,"addToStart",()=>S,"ensureQueryFn",()=>O,"functionalUpdate",()=>s,"hashKey",()=>h,"hashQueryKeyByOptions",()=>d,"isServer",()=>n,"isValidTimeout",()=>i,"matchMutation",()=>l,"matchQuery",()=>u,"noop",()=>r,"partialMatchKey",()=>f,"replaceData",()=>w,"resolveEnabled",()=>c,"resolveStaleTime",()=>o,"shallowEqualObjects",()=>m,"shouldThrowError",()=>R,"skipToken",()=>T,"sleep",()=>b,"timeUntilStale",()=>a])},714470,e=>{"use strict";let t,n,r,s,i,a;var o=e.i(304994).systemSetTimeoutZero,c=(t=[],n=0,r=e=>{e()},s=e=>{e()},i=o,{batch:e=>{let a;n++;try{a=e()}finally{let e;--n||(e=t,t=[],e.length&&i(()=>{s(()=>{e.forEach(e=>{r(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{n?t.push(e):i(()=>{r(e)})},setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{i=e}});e.s(["notifyManager",()=>c])},84021,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",()=>t])},503808,e=>{"use strict";var t=e.i(84021),n=e.i(442799),r=new class extends t.Subscribable{#n;#r;#s;constructor(){super(),this.#s=e=>{if(!n.isServer&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#s=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",()=>r])},374953,229375,787888,e=>{"use strict";var t=e.i(503808),n=e.i(84021),r=e.i(442799),s=new class extends n.Subscribable{#i=!0;#r;#s;constructor(){super(),this.#s=e=>{if(!r.isServer&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#r||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#s=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function i(){let e,t,n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||s.isOnline()}e.s(["onlineManager",()=>s],229375),e.s(["pendingThenable",()=>i],787888);var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){let n,u=!1,l=0,d=i(),h=()=>t.focusManager.isFocused()&&("always"===e.networkMode||s.isOnline())&&e.canRun(),f=()=>o(e.networkMode)&&e.canRun(),p=e=>{"pending"===d.status&&(n?.(),d.resolve(e))},m=e=>{"pending"===d.status&&(n?.(),d.reject(e))},y=()=>new Promise(t=>{n=e=>{("pending"!==d.status||h())&&t(e)},e.onPause?.()}).then(()=>{n=void 0,"pending"===d.status&&e.onContinue?.()}),v=()=>{let t;if("pending"!==d.status)return;let n=0===l?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if("pending"!==d.status)return;let n=e.retry??3*!r.isServer,s=e.retryDelay??a,i="function"==typeof s?s(l,t):s,o=!0===n||"number"==typeof n&&l<n||"function"==typeof n&&n(l,t);u||!o?m(t):(l++,e.onFail?.(l,t),(0,r.sleep)(i).then(()=>h()?void 0:y()).then(()=>{u?m(t):v()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let n=new c(t);m(n),e.onCancel?.(n)}},continue:()=>(n?.(),d),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1},canStart:f,start:()=>(f()?v():y().then(v),d)}}e.s(["CancelledError",()=>c,"canFetch",()=>o,"createRetryer",()=>u],374953)},431674,e=>{"use strict";var t=e.i(304994),n=e.i(442799),r=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.isValidTimeout)(this.gcTime)&&(this.#a=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.isServer?1/0:3e5))}clearGcTimeout(){this.#a&&(t.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",()=>r])},348712,e=>{"use strict";var t=e.i(514499),n=e.i(681099),r=t.createContext(void 0),s=e=>{let n=t.useContext(r);if(e)return e;if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n},i=({client:e,children:s})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,n.jsx)(r.Provider,{value:e,children:s}));e.s(["QueryClientProvider",()=>i,"useQueryClient",()=>s])},509533,e=>{"use strict";function t(e){return Array.isArray(e)?e:null==e?[]:[e]}let n="orpc";class r extends Error{constructor(...e){super(...e),this.name="AbortError"}}function s(){return globalThis["__@orpc/[email protected]/otel/config__"]}function i(e,t={},n){let r=s()?.tracer;return r?.startSpan(e,t,n)}function a(e,t,n={}){if(!e)return;let r=function(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return"code"in e&&("string"==typeof e.code||"number"==typeof e.code)&&(t.code=e.code),t}return{message:String(e)}}(t);e.recordException(r),n.signal?.aborted&&n.signal.reason===t||e.setStatus({code:2,message:r.message})}async function o({name:e,context:t,...n},r){let i=s()?.tracer;if(!i)return r();let o=async e=>{try{return await r(e)}catch(t){throw a(e,t,n),t}finally{e.end()}};return t?i.startActiveSpan(e,n,t,o):i.startActiveSpan(e,n,o)}async function c(e,t){let n=s();if(!e||!n)return t();
1let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function u(e){return!!e&&"object"==typeof e&&"next"in e&&"function"==typeof e.next&&Symbol.asyncIterator in e&&"function"==typeof e[Symbol.asyncIterator]}let l=Symbol.for("asyncDispose"),d=Symbol.asyncDispose??l;class h{#o=!1;#c=!1;#r;#u;constructor(e,t){this.#r=t,this.#u=function(e){let t=Promise.resolve();return(...n)=>t=t.catch(()=>{}).then(()=>e(...n))}(async()=>{if(this.#o)return{done:!0,value:void 0};try{let t=await e();return t.done&&(this.#o=!0),t}catch(e){throw this.#o=!0,e}finally{this.#o&&!this.#c&&(this.#c=!0,await this.#r("next"))}})}next(){return this.#u()}async return(e){return this.#o=!0,this.#c||(this.#c=!0,await this.#r("return")),{done:!0,value:e}}async throw(e){throw this.#o=!0,this.#c||(this.#c=!0,await this.#r("throw")),e}async [d](){this.#o=!0,this.#c||(this.#c=!0,await this.#r("dispose"))}[Symbol.asyncIterator](){return this}}function f({name:e,...t},n){let r;return new h(async()=>{r??=i(e);try{let e=await c(r,()=>n.next());return r?.addEvent(e.done?"completed":"yielded"),e}catch(e){throw a(r,e,t),e}},async e=>{try{"next"!==e&&await c(r,()=>n.return?.())}catch(e){throw a(r,e,t),e}finally{r?.end()}})}function p(e,t,n){let r=(t,s)=>{let i=e[s];return i?i({...t,next:(e=t)=>r(e,s+1)}):n(t)};return r(t,0)}function m(e){if(e)return JSON.parse(e)}function y(e){return JSON.stringify(e)}function v(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function g(e){return!!e&&("object"==typeof e||"function"==typeof e)}function b(e,...t){return"function"==typeof e?e(...t):e}let w=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;class E extends TypeError{}class S extends TypeError{}class T extends Error{data;constructor(e){super(e?.message??"An error event was received",e),this.data=e?.data}}class O{constructor(e={}){this.options=e}incomplete="";feed(e){this.incomplete+=e;let t=this.incomplete.lastIndexOf("\n\n");if(-1===t)return;let n=this.incomplete.slice(0,t).split(/\n\n/);for(let e of(this.incomplete=this.incomplete.slice(t+2),n)){let t=function(e){let t=e.replace(/\n+$/,"").split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let e of t){let t=e.indexOf(":"),r=-1===t?e:e.slice(0,t),s=-1===t?"":e.slice(t+1).replace(/^\s/,"");if(0===t)n.comments.push(s);else if("data"===r)n.data??="",n.data+=`${s}
2`;else if("event"===r)n.event=s;else if("id"===r)n.id=s;else if("retry"===r){let e=Number.parseInt(s);Number.isInteger(e)&&e>=0&&e.toString()===s&&(n.retry=e)}}return n.data=n.data?.replace(/\n$/,""),n}(`${e}
3
4`);this.options.onEvent&&this.options.onEvent(t)}this.incomplete=""}end(){if(this.incomplete)throw new S("Event Iterator ended before complete")}}class R extends TransformStream{constructor(){let e;super({start(t){e=new O({onEvent:e=>{t.enqueue(e)}})},transform(t){e.feed(t)},flush(){e.end()}})}}function x(e){if(e.includes("\n"))throw new E("Event's id must not contain a newline character")}function I(e){if(!Number.isInteger(e)||e<0)throw new E("Event's retry must be a integer and >= 0")}function A(e){if(e.includes("\n"))throw new E("Event's comment must not contain a newline character")}function C(e){let t="";if(t+=function(e){let t="";for(let n of e??[])A(n),t+=`: ${n}
5`;return t}(e.comments),void 0!==e.event){if(e.event.includes("\n"))throw new E("Event's event must not contain a newline character");t+=`event: ${e.event}
6`}return void 0!==e.retry&&(I(e.retry),t+=`retry: ${e.retry}
7`),void 0!==e.id&&(x(e.id),t+=`id: ${e.id}
8`),t+=function(e){let t=e?.split(/\n/)??[],n="";for(let e of t)n+=`data: ${e}
9`;return n}(e.data),t+="\n"}let _=Symbol("ORPC_EVENT_SOURCE_META");function P(e,t){if(void 0===t.id&&void 0===t.retry&&!t.comments?.length)return e;if(void 0!==t.id&&x(t.id),void 0!==t.retry&&I(t.retry),void 0!==t.comments)for(let e of t.comments)A(e);return new Proxy(e,{get:(e,n,r)=>n===_?t:Reflect.get(e,n,r)})}function N(e){return g(e)?Reflect.get(e,_):void 0}function j(e,t={}){return e.forEach((e,n)=>{Array.isArray(t[n])?t[n].push(e):void 0!==t[n]?t[n]=[t[n],e]:t[n]=e}),t}let U={BAD_REQUEST:{status:400,message:"Bad Request"},UNAUTHORIZED:{status:401,message:"Unauthorized"},FORBIDDEN:{status:403,message:"Forbidden"},NOT_FOUND:{status:404,message:"Not Found"},METHOD_NOT_SUPPORTED:{status:405,message:"Method Not Supported"},NOT_ACCEPTABLE:{status:406,message:"Not Acceptable"},TIMEOUT:{status:408,message:"Request Timeout"},CONFLICT:{status:409,message:"Conflict"},PRECONDITION_FAILED:{status:412,message:"Precondition Failed"},PAYLOAD_TOO_LARGE:{status:413,message:"Payload Too Large"},UNSUPPORTED_MEDIA_TYPE:{status:415,message:"Unsupported Media Type"},UNPROCESSABLE_CONTENT:{status:422,message:"Unprocessable Content"},TOO_MANY_REQUESTS:{status:429,message:"Too Many Requests"},CLIENT_CLOSED_REQUEST:{status:499,message:"Client Closed Request"},INTERNAL_SERVER_ERROR:{status:500,message:"Internal Server Error"}
9,NOT_IMPLEMENTED:{status:501,message:"Not Implemented"},BAD_GATEWAY:{status:502,message:"Bad Gateway"},SERVICE_UNAVAILABLE:{status:503,message:"Service Unavailable"},GATEWAY_TIMEOUT:{status:504,message:"Gateway Timeout"}},z=Symbol.for("__@orpc/[email protected]/error/ORPC_ERROR_CONSTRUCTORS__");globalThis[z]??=new WeakSet;let L=globalThis[z];class D extends Error{defined;code;status;data;constructor(e,...t){const n=t[0]??{};if(void 0!==n.status&&!M(n.status))throw Error("[ORPCError] Invalid error status code.");super(function(e,t){return t||U[e]?.message||e}(e,n.message),n),this.code=e,this.status=n.status??U[e]?.status??500,this.defined=n.defined??!1,this.data=n.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(L.has(this)){let t=g(e)?Object.getPrototypeOf(e)?.constructor:null;if(t&&L.has(t))return!0}return super[Symbol.hasInstance](e)}}function M(e){return e<200||e>=400}function F(e){if(!v(e))return!1;let t=["defined","code","status","message","data"];return!Object.keys(e).some(e=>!t.includes(e))&&"defined"in e&&"boolean"==typeof e.defined&&"code"in e&&"string"==typeof e.code&&"status"in e&&"number"==typeof e.status&&M(e.status)&&"message"in e&&"string"==typeof e.message}function k(e,t={}){return new D(e.code,{...t,...e})}function q(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=N(e);t&&g(n)&&(n=P(n,t))}return n};return new h(async()=>{let{done:r,value:s}=await (async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),i=await t.value(s,r);if(i!==s){let e=N(s);e&&g(i)&&(i=P(i,e))}return{done:r,value:i}},async()=>{try{await e.return?.()}catch(e){throw await n(e)}})}L.add(D);class ${plugins;constructor(e=[]){this.plugins=[...e].sort((e,t)=>(e.order??0)-(t.order??0))}init(e){for(let t of this.plugins)t.init?.(e)}}class B{constructor(e,n,r={}){this.codec=e,this.sender=n,new $(r.plugins).init(r),this.interceptors=t(r.interceptors),this.clientInterceptors=t(r.clientInterceptors)}interceptors;clientInterceptors;call(e,t,r){return o({name:`${n}.${e.join("/")}`,signal:r.signal},i=>(i?.setAttribute("rpc.system",n),i?.setAttribute("rpc.method",e.join(".")),u(t)&&(t=f({name:"consume_event_iterator_input",signal:r.signal},t)),p(this.interceptors,{...r,path:e,input:t},async({path:e,input:t,...n})=>{let r,a=s(),c=a?.trace.getActiveSpan()??i;c&&a&&(r=a?.trace.setSpan(a.context.active(),c));let l=await o({name:"encode_request",context:r},()=>this.codec.encode(e,t,n)),d=await p(this.clientInterceptors,{...n,input:t,path:e,request:l},({input:e,path:t,request:n,...s})=>o({name:"send_request",signal:s.signal,context:r},()=>this.sender.call(n,s,t,e))),h=await o({name:"decode_response",context:r},()=>this.codec.decode(d,n,e,t));return u(h)?f({name:"consume_event_iterator_output",signal:n.signal},h):h})))}}class K{customSerializers;constructor(e={}){if(this.customSerializers=e.customJsonSerializers??[],this.customSerializers.length!==new Set(this.customSerializers.map(e=>e.type)).size)throw Error("Custom serializer type must be unique.")}serialize(e,t=[],n=[],r=[],s=[]){for(let i of this.customSerializers)if(i.condition(e)){let a=this.serialize(i.serialize(e),t,n,r,s);return n.push([i.type,...t]),a}if(e instanceof Blob)return r.push(t),s.push(e),[e,n,r,s];if("bigint"==typeof e)return n.push([0,...t]),[e.toString(),n,r,s];if(e instanceof Date)return(n.push([1,...t]),Number.isNaN(e.getTime()))?[null,n,r,s]:[e.toISOString(),n,r,s];if(Number.isNaN(e))return n.push([2,...t]),[null,n,r,s];if(e instanceof URL)return n.push([4,...t]),[e.toString(),n,r,s];if(e instanceof RegExp)return n.push([5,...t]),[e.toString(),n,r,s];if(e instanceof Set){let i=this.serialize(Array.from(e),t,n,r,s);return n.push([6,...t]),i}if(e instanceof Map){let i=this.serialize(Array.from(e.entries()),t,n,r,s);return n.push([7,...t]),i}if(Array.isArray(e))return[e.map((e,i)=>void 0===e?(n.push([3,...t,i]),e):this.serialize(e,[...t,i],n,r,s)[0]),n,r,s];if(v(e)){let i={};for(let a in e)("toJSON"!==a||"function"!=typeof e[a])&&(i[a]=this.serialize(e[a],[...t,a],n,r,s)[0]);return[i,n,r,s]}return[e,n,r,s]}deserialize(e,t,n,r){let s={data:e};
9for(let e of(n&&r&&n.forEach((e,t)=>{let n=s,i="data";e.forEach(e=>{n=n[i],i=e}),n[i]=r(t)}),t)){let t=e[0],n=s,r="data";for(let t=1;t<e.length;t++)n=n[r],r=e[t];for(let e of this.customSerializers)if(e.type===t){n[r]=e.deserialize(n[r]);break}switch(t){case 0:n[r]=BigInt(n[r]);break;case 1:n[r]=new Date(n[r]??"Invalid Date");break;case 2:n[r]=NaN;break;case 3:n[r]=void 0;break;case 4:n[r]=new URL(n[r]);break;case 5:{let[,e,t]=n[r].match(/^\/(.*)\/([a-z]*)$/);n[r]=new RegExp(e,t);break}case 6:n[r]=new Set(n[r]);break;case 7:n[r]=new Map(n[r])}}return s.data}}class G{constructor(e,t){this.serializer=e,this.baseUrl=t.url,this.maxUrlLength=t.maxUrlLength??2083,this.fallbackMethod=t.fallbackMethod??"POST",this.expectedMethod=t.method??this.fallbackMethod,this.headers=t.headers??{}}baseUrl;maxUrlLength;fallbackMethod;expectedMethod;headers;async encode(e,n,r){var s;let i="function"==typeof(s=await b(this.headers,r,e,n)).forEach?j(s):s;void 0!==r.lastEventId&&(i=function(e,n){let r={...e};for(let e in n)Array.isArray(n[e])?r[e]=[...t(r[e]),...n[e]]:void 0!==n[e]&&(Array.isArray(r[e])?r[e]=[...r[e],n[e]]:void 0!==r[e]?r[e]=[r[e],n[e]]:r[e]=n[e]);return r}(i,{"last-event-id":r.lastEventId}));let a=await b(this.expectedMethod,r,e,n),o=new URL(await b(this.baseUrl,r,e,n));o.pathname=`${o.pathname.replace(/\/$/,"")}/${e.map(encodeURIComponent).join("/")}`;let c=this.serializer.serialize(n);if("GET"===a&&!(c instanceof FormData)&&!u(c)){let t=await b(this.maxUrlLength,r,e,n),s=new URL(o);if(s.searchParams.append("data",y(c)),s.toString().length<=t)return{body:void 0,method:a,headers:i,url:s,signal:r.signal}}return{url:o,method:"GET"===a?this.fallbackMethod:a,headers:i,body:c,signal:r.signal}}async decode(e){let t=!M(e.status),n=await (async()=>{let t=!1;try{let n=await e.body();return t=!0,this.serializer.deserialize(n)}catch(e){if(!t)throw Error("Cannot parse response body, please check the response body and content-type.",{cause:e});throw Error("Invalid RPC response format.",{cause:e})}})();if(!t){var r;if(F(n))throw k(n);throw new D((r=e.status,Object.entries(U).find(([,e])=>e.status===r)?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"),{status:e.status,data:{...e,body:n}})}return n}}class Q{constructor(e){this.jsonSerializer=e}serialize(e){return u(e)?q(e,{value:async e=>this.#l(e,!1),error:async e=>new T({data:this.#l((e instanceof D?e:new D("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})).toJSON(),!1),cause:e})}):this.#l(e,!0)}#l(e,t){let[n,r,s,i]=this.jsonSerializer.serialize(e),a=0===r.length?void 0:r;if(!t||0===i.length)return{json:n,meta:a};let o=new FormData;return o.set("data",y({json:n,meta:a,maps:s})),i.forEach((e,t)=>{o.set(t.toString(),e)}),o}deserialize(e){return u(e)?q(e,{value:async e=>this.#d(e),error:async e=>{if(!(e instanceof T))return e;let t=this.#d(e.data);return F(t)?k(t,{cause:e}):new T({data:t,cause:e})}}):this.#d(e)}#d(e){if(void 0===e)return;if(!(e instanceof FormData))return this.jsonSerializer.deserialize(e.json,e.meta??[]);let t=JSON.parse(e.get("data"));return this.jsonSerializer.deserialize(t.json,t.meta??[],t.maps,t=>e.get(t.toString()))}}class J extends B{constructor(e,t){super(new G(new Q(new K(t)),t),e,t)}}class W extends ${initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e)}}class V{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new W(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=t(e.adapterInterceptors)}async call(e,t,n,s){let l=function(e,t={}){let n=function(e,t=new Headers){for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else void 0!==r&&t.append(n,r);return t}(e.headers),r=function(e,t,n={}){let r=t.get("content-disposition");if(t.delete("content-type"),t.delete("content-disposition"),void 0!==e){if(e instanceof Blob){var s;let n,i;return t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",r??(n=(s=e instanceof File?e.name:"blob").replace(/"/g,'\\"'),i=encodeURIComponent(s).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>
9String.fromCharCode(Number.parseInt(t,16))),`inline; filename="${n}"; filename*=utf-8''${i}`)),e}return e instanceof FormData||e instanceof URLSearchParams?e:u(e)?(t.set("content-type","text/event-stream"),function(e,t={}){let n,r,s=t.eventIteratorKeepAliveEnabled??!0,o=t.eventIteratorKeepAliveInterval??5e3,u=t.eventIteratorKeepAliveComment??"",l=t.eventIteratorInitialCommentEnabled??!0,d=t.eventIteratorInitialComment??"",h=!1;return new ReadableStream({start(e){r=i("stream_event_iterator"),l&&e.enqueue(C({comments:[d]}))},async pull(t){try{s&&(n=setInterval(()=>{t.enqueue(C({comments:[u]})),r?.addEvent("keepalive")},o));let i=await c(r,()=>e.next());if(clearInterval(n),h)return;let a=N(i.value);if(!i.done||void 0!==i.value||void 0!==a){let e=i.done?"done":"message";t.enqueue(C({...a,event:e,data:y(i.value)})),r?.addEvent(e)}i.done&&(t.close(),r?.end())}catch(e){if(clearInterval(n),h)return;e instanceof T?(t.enqueue(C({...N(e),event:"error",data:y(e.data)})),r?.addEvent("error"),t.close()):(a(r,e),t.error(e)),r?.end()}},async cancel(){try{h=!0,clearInterval(n),r?.addEvent("cancelled"),await c(r,()=>e.return?.())}catch(e){throw a(r,e),e}finally{r?.end()}}}).pipeThrough(new TextEncoderStream)}(e,n)):(t.set("content-type","application/json"),y(e))}}(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}(e,this.toFetchRequestOptions);return function(e,t={}){var n;let s;return{body:(n=()=>(function(e,t={}){return o({name:"parse_standard_body",signal:t.signal},async()=>{let n=e.headers.get("content-disposition");if("string"==typeof n){let t=function(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&"string"==typeof t[2]){var n=t[2];try{return decodeURIComponent(n)}catch{return n}}let r=e.match(/filename="((?:\\"|[^"])*)"/i);if(r&&"string"==typeof r[1])return r[1].replace(/\\"/g,'"')}(n)??"blob",r=await e.blob();return new File([r],t,{type:r.type})}let s=e.headers.get("content-type");if(!s||s.startsWith("application/json"))return m(await e.text());if(s.startsWith("multipart/form-data"))return await e.formData();if(s.startsWith("application/x-www-form-urlencoded"))return new URLSearchParams(await e.text());if(s.startsWith("text/event-stream"))return function(e,t={}){let n,s=e?.pipeThrough(new TextDecoderStream).pipeThrough(new R),o=s?.getReader(),u=!1;return new h(async()=>{n??=i("consume_event_iterator_stream");try{for(;;){if(void 0===o)return{done:!0,value:void 0};let{done:e,value:t}=await c(n,()=>o.read());if(e){if(u)throw new r("Stream was cancelled");return{done:!0,value:void 0}}switch(t.event){case"message":{let e=m(t.data);return g(e)&&(e=P(e,t)),n?.addEvent("message"),{done:!1,value:e}}case"error":{let e=new T({data:m(t.data)});throw e=P(e,t),n?.addEvent("error"),e}case"done":{let e=m(t.data);return g(e)&&(e=P(e,t)),n?.addEvent("done"),{done:!0,value:e}}default:n?.addEvent("maybe_keepalive")}}}catch(e){throw e instanceof T||a(n,e,t),e}},async e=>{try{"next"!==e&&(u=!0,n?.addEvent("cancelled")),await c(n,()=>o?.cancel())}catch(e){throw a(n,e,t),e}finally{n?.end()}})}(e.body,t);if(s.startsWith("text/plain"))return await e.text();let o=await e.blob();return new File([o],"blob",{type:o.type})})})(e,t),()=>{if(s)return s.result;let e=n();return s={result:e},e}),status:e.status,get headers(){let t=j(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:!0}),t},set headers(value){Object.defineProperty(this,"headers",{value,writable:!0})}}}(await p(this.adapterInterceptors,{...t,request:l,path:n,input:s,init:{redirect:"manual"}},({request:e,path:t,input:n,init:r,...s})=>this.fetch(e,r,s,t,n)),{signal:l.signal})}}let H=new class extends J{constructor(e){super(new V(e),e)}}({url:()=>`${window.location.origin}/rpc`}),Y=globalThis.$client??function e(t,n={}){let r=n.path??[];return function e(t){return new Proxy(t,{get(t,n,r){let s=Reflect.get(t,n,r);return"then"!==n||"function"!=typeof s?s:new Proxy(s,{apply(n,r,s){if(2!==s.length||s.some(e=>{var t;return!("function"==typeof(t=e)&&w.test(t.toString()))}))return Reflect.apply(n,r,s);let i=!0;s[0].call(r,e(new Proxy(t,{get:(e,t,n)=>{if(i&&"then"===t){i=!1;return}return Reflect.get(e,t,n)}})))}})}})}(new Proxy(async(...[e,n={}])=>await t.call(r,e,{...n,context:n.context??{}}),{get:(s,i)=>"string"!=typeof i?Reflect.get(s,i):e(t,{...n,path:[...r,i]})}))}(H);e.s(["client",0,Y],509533)}]);

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.