1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8722dfc1-a2c5-b202-6554-2bc3998cf137")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1661,e=>{"use strict";var t,r,n,i,a,s=e.i(843476),o=e.i(271645),u=e.i(526732),l=e.i(363178),c=e.i(619273),f=e.i(286491),h=e.i(540143),p=e.i(915823),d=class extends p.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let n=t.queryKey,i=t.queryHash??(0,c.hashQueryKeyByOptions)(n,t),a=this.get(i);return a||(a=new f.Query({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){h.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,c.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,c.matchQuery)(e,t)):t}notify(e){h.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},y=e.i(114272),m=p,g=class extends m.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#n=0}#t;#r;#n;build(e,t,r){let n=new y.Mutation({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);let t=b(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=b(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=b(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=b(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){h.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,c.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,c.matchMutation)(e,t))}notify(e){h.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(c.noop))))}};function b(e){return e.options.scope?.id}var v=e.i(175555),w=e.i(814448),O=e.i(992571),E=class{#i;#a;#s;#o;#u;#l;#c;#f;constructor(e={}){this.#i=e.queryCache||new d,this.#a=e.mutationCache||new g,this.#s=e.defaultOptions||{},this.#o=new Map,this.#u=new Map,this.#l=0}mount(){this.#l++,1===this.#l&&(this.#c=v.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onFocus())}),this.#f=w.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onOnline())}))}unmount(){this.#l--,0===this.#l&&(this.#c?.(),this.#c=void 0,this.#f?.(),this.#f=void 0)}isFetching(e){return this.#i.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#i.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,c.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#i.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),i=this.#i.get(n.queryHash),a=i?.state.data,s=(0,c.functionalUpdate)(t,a);if(void 0!==s)return this.#i.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return h.notifyManager.batch(()=>this.#i.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state}removeQueries(e){let t=this.#i;h.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#i;return h.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(h.notifyManager.batch(()=>this.#i.findAll(e).map(e=>e.cancel(r)))).then(c.noop).catch(c.noop)}invalidateQueries(e,t={}){return h.notifyManager.batch(()=>(this.#i.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 r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(h.notifyManager.batch(()=>this.#i.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(c.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(c.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#i.build(this,t);return r.isStaleByTime((0,c.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(c.noop).catch(c.noop)}fetchInfiniteQuery(e){return e.behavior=(0,O.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(c.noop).catch(c.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,O.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return w.onlineManager.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#i}getMutationCache(){return this.#a}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#o.set((0,c.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],r={};return t.forEach(t=>{(0,c.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#u.set((0,c.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#u.values()],r={};return t.forEach(t=>{(0,c.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,c.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===c.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#i.clear(),this.#a.clear()}},P=e.i(912598);e.i(944362);var j=e.i(819769),S=e.i(320183);let T=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function A(e){let t=null,r=null;function n(){let n=function(t){let r=[[]],n=0;for(;;){let i=t[n];if(!i)break;let a=r[r.length-1];if(i.aborted){i.reject?.(Error("Aborted")),n++;continue}if(e.validate(a.concat(i).map(e=>e.key))){a.push(i),n++;continue}if(0===a.length){i.reject?.(Error("Input is too big for a single dispatch")),n++;continue}r.push([])}return r}(t);for(let i of(clearTimeout(r),r=null,t=null,n)){if(!i.length)continue;let t={items:i};for(let e of i)e.batch=t;e.fetch(t.items.map(e=>e.key)).then(async e=>{for(let r of(await Promise.all(e.map(async(e,r)=>{let n=t.items[r];try{let t=await Promise.resolve(e);n.resolve?.(t)}catch(e){n.reject?.(e)}n.batch=null,n.reject=null,n.resolve=null})),t.items))r.reject?.(Error("Missing result")),r.batch=null}).catch(e=>{for(let r of t.items)r.reject?.(e),r.batch=null})}}return{load:function(e){let i={aborted:!1,key:e,batch:null,resolve:T,reject:T},a=new Promise((e,r)=>{i.reject=r,i.resolve=e,t||(t=[]),t.push(i)});return r||(r=setTimeout(n)),a}}}var k=e.i(541730),C=e.i(742018);let q={query:"GET",mutation:"POST",subscription:"PATCH"};function x(e){return"input"in e?e.transformer.input.serialize(e.input):function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[r]=n}return t}(e.inputs.map(t=>e.transformer.input.serialize(t)))}let M=e=>{let t=e.url.split("?"),r=t[0].replace(/\/$/,"")+"/"+e.path,n=[];if(t[1]&&n.push(t[1]),"inputs"in e&&n.push("batch=1"),"query"===e.type||"subscription"===e.type){let t=x(e);void 0!==t&&"POST"!==e.methodOverride&&n.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return n.length&&(r+="?"+n.join("&")),r},I=e=>{if("query"===e.type&&"POST"!==e.methodOverride)return;let t=x(e);return void 0!==t?JSON.stringify(t):void 0};
2class Q extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}}async function R(e){var t=e.signal;if(t?.aborted){if(t.throwIfAborted?.(),"u">typeof DOMException)throw new DOMException("AbortError","AbortError");throw new Q}let r=e.getUrl(e),n=e.getBody(e),{type:i}=e,a=await (async()=>{let t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),s={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0,...a};return(function(e){if(e)return e;if("u">typeof window&&"function"==typeof window.fetch)return window.fetch;if("u">typeof globalThis&&"function"==typeof globalThis.fetch)return globalThis.fetch;throw Error("No fetch implementation found")})(e.fetch)(r,{method:e.methodOverride??q[i],signal:e.signal,body:n,headers:s})}async function _(e){let t={},r=await R(e);t.response=r;let n=await r.json();return t.responseJSON=n,{json:n,meta:t}}class D{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class N{constructor(e){this.generateIdentifier=e,this.kv=new D}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class z extends N{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function H(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function K(e,t){return -1!==e.indexOf(t)}function B(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(t(n))return n}}class U{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return function(e,t){let r=function(e){if("values"in Object)return Object.values(e);let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}}let V=e=>void 0===e,F=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),L=e=>F(e)&&0===Object.keys(e).length,$=e=>Array.isArray(e),J=e=>e instanceof Map,G=e=>e instanceof Set,Y=e=>"Symbol"===Object.prototype.toString.call(e).slice(8,-1),W=e=>e instanceof Error,X=e=>"number"==typeof e&&isNaN(e),Z=e=>e.replace(/\\/g,"\\\\").replace(/\./g,"\\."),ee=e=>e.map(String).map(Z).join("."),et=(e,t)=>{let r=[],n="";for(let i=0;i<e.length;i++){let a=e.charAt(i);if(!t&&"\\"===a){let t=e.charAt(i+1);if("\\"===t){n+="\\",i++;continue}if("."!==t)throw Error("invalid path")}if("\\"===a&&"."===e.charAt(i+1)){n+=".",i++;continue}if("."===a){r.push(n),n="";continue}n+=a}let i=n;return r.push(i),r};function er(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let en=[er(V,"undefined",()=>null,()=>void 0),er(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"u">typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),er(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),er(W,"Error",(e,t)=>{let r={name:e.name,message:e.message};return"cause"in e&&(r.cause=e.cause),t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{let r=Error(e.message,{cause:e.cause});return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),er(e=>e instanceof RegExp,"regexp",e=>""+e,e=>new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))),er(G,"set",e=>[...e.values()],e=>new Set(e)),er(J,"map",e=>[...e.entries()],e=>new Map(e)),er(e=>X(e)||e===1/0||e===-1/0,"number",e=>X(e)?"NaN":e>0?"Infinity":"-Infinity",Number),er(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),er(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function ei(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let ea=ei((e,t)=>!!Y(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{let n=r.symbolRegistry.getValue(t[1]);
2if(!n)throw Error("Trying to deserialize unknown symbol");return n}),es=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),eo=ei(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let r=es[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function eu(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}let el=ei(eu,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};let n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{let n=r.classRegistry.getValue(t[1]);if(!n)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),e)}),ec=ei((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{let n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),ef=[el,ea,ec,eo],eh=(e,t)=>{let r=B(ef,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};let n=B(en,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation}},ep={};en.forEach(e=>{ep[e.annotation]=e});let ed=(e,t)=>{if(t>e.size)throw Error("index out of bounds");let r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function ey(e){if(K(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(K(e,"prototype"))throw Error("prototype is not allowed as a property");if(K(e,"constructor"))throw Error("constructor is not allowed as a property")}let em=(e,t,r)=>{if(ey(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if($(n))n=n[+r];else if(F(n))n=n[r];else if(G(n))n=ed(n,+r);else if(J(n)){if(e===t.length-2)break;let i=+r,a=0==+t[++e]?"key":"value",s=ed(n,i);switch(a){case"key":n=s;break;case"value":n=n.get(s)}}}let i=t[t.length-1];if($(n)?n[+i]=r(n[+i]):F(n)&&(n[i]=r(n[i])),G(n)){let e=ed(n,+i),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(J(n)){let e=ed(n,+t[t.length-2]);switch(0==+i?"key":"value"){case"key":{let t=r(e);n.set(t,n.get(e)),t!==e&&n.delete(e);break}case"value":n.set(e,r(n.get(e)))}}return e},eg=(e,t,r,n,i=[],a=[],s=new Map)=>{let o=(e=>"boolean"==typeof e||null===e||V(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||Y(e))(e);if(!o){let r;(r=t.get(e))?r.push(i):t.set(e,[i]);let a=s.get(e);if(a)return n?{transformedValue:null}:a}if(!(F(e)||$(e)||J(e)||G(e)||W(e)||eu(e,r))){let t=eh(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return o||s.set(e,n),n}if(K(a,e))return{transformedValue:null};let u=eh(e,r),l=u?.value??e,c=$(l)?[]:{},f={};H(l,(o,u)=>{if("__proto__"===u||"constructor"===u||"prototype"===u)throw Error(`Detected property ${u}. This is a prototype pollution risk, please remove it from your object.`);let l=eg(o,t,r,n,[...i,u],[...a,e],s);c[u]=l.transformedValue,$(l.annotations)?f[Z(u)]=l.annotations:F(l.annotations)&&H(l.annotations,(e,t)=>{f[Z(u)+"."+t]=e})});let h=L(f)?{transformedValue:c,annotations:u?[u.type]:void 0}:{transformedValue:c,annotations:u?[u.type,f]:f};return o||s.set(e,h),h};function eb(e){return Object.prototype.toString.call(e).slice(8,-1)}function ev(e){return"Array"===eb(e)}class ew{constructor({dedupe:e=!1}={}){this.classRegistry=new z,this.symbolRegistry=new N(e=>e.description??""),this.customTransformerRegistry=new U,this.allowedErrorProps=[],this.dedupe=e}serialize(e){var t;let r,n,i=new Map,a=eg(e,i,this,this.dedupe),s={json:a.transformedValue};a.annotations&&(s.meta={...s.meta,values:a.annotations});let o=(t=this.dedupe,r={},(i.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;0===i.length?n=a.map(ee):r[ee(i)]=a.map(ee)}),n)?L(r)?[n]:[n,r]:L(r)?void 0:r);return o&&(s.meta={...s.meta,referentialEqualities:o}),s.meta&&(s.meta.v=1),s}deserialize(e,t){var r,n,i,a;let{json:s,meta:o}=e,u=t?.inPlace?s:function e(t,r={}){return ev(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==eb(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,i)=>{var a;let s;if("__proto__"===i||ev(r.props)&&!r.props.includes(i))return n;let o=e(t[i],r);return a=r.nonenumerable,"enumerable"==(s=({}).propertyIsEnumerable.call(t,i)?"enumerable":"nonenumerable")&&(n[i]=o),a&&"nonenumerable"===s&&Object.defineProperty(n,i,{value:o,enumerable:!1,writable:!0,configurable:!0}),n},{})}(s);return o?.values&&(r=u,n=o.values,i=o.v??0,a=this,function e(t,r,n,i=[]){if(!t)return;let a=n<1;if(!$(t))return void H(t,(t,s)=>e(t,r,n,[...i,...et(s,a)]));let[s,o]=t;o&&H(o,(t,s)=>{e(t,r,n,[...i,...et(s,a)])}),r(s,i)}(n,(e,t)=>{r=em(r,t,t=>((e,t,r)=>{if($(t))switch(t[0]){case"symbol":return ea.untransform(e,t,r);case"class":return el.untransform(e,t,r);
2case"custom":return ec.untransform(e,t,r);case"typed-array":return eo.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}{let n=ep[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}})(t,e,a))},i),u=r),o?.referentialEqualities&&(u=function(e,t,r){let n=r<1;function i(t,r){let i=((e,t)=>{ey(t);for(let r=0;r<t.length;r++){let n=t[r];if(G(e))e=ed(e,+n);else if(J(e)){let i=+n,a=0==+t[++r]?"key":"value",s=ed(e,i);switch(a){case"key":e=s;break;case"value":e=e.get(s)}}else e=e[n]}return e})(e,et(r,n));t.map(e=>et(e,n)).forEach(t=>{e=em(e,t,()=>i)})}if($(t)){let[r,a]=t;r.forEach(t=>{e=em(e,et(t,n),()=>e)}),a&&H(a,i)}else H(t,i);return e}(u,o.referentialEqualities,o.v??0)),u}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}ew.defaultInstance=new ew,ew.serialize=ew.defaultInstance.serialize.bind(ew.defaultInstance),ew.deserialize=ew.defaultInstance.deserialize.bind(ew.defaultInstance),ew.stringify=ew.defaultInstance.stringify.bind(ew.defaultInstance),ew.parse=ew.defaultInstance.parse.bind(ew.defaultInstance),ew.registerClass=ew.defaultInstance.registerClass.bind(ew.defaultInstance),ew.registerSymbol=ew.defaultInstance.registerSymbol.bind(ew.defaultInstance),ew.registerCustom=ew.defaultInstance.registerCustom.bind(ew.defaultInstance),ew.allowErrorProps=ew.defaultInstance.allowErrorProps.bind(ew.defaultInstance),ew.serialize,ew.deserialize,ew.stringify,ew.parse,ew.registerClass,ew.registerCustom,ew.registerSymbol,ew.allowErrorProps;var eO=e.i(166892);function eE({children:e}){let[t]=(0,o.useState)(()=>new E({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(e,t)=>t?.data?.httpStatus!==401&&t?.data?.httpStatus!==403&&e<2}}})),[r]=(0,o.useState)(()=>{var e,t;let r,n,i;return eO.trpc.createClient({links:[(r={url:(t=e={url:"/api/trpc",transformer:ew}).url.toString(),fetch:t.fetch,transformer:(0,C.getTransformer)(t.transformer),methodOverride:t.methodOverride},n=e.maxURLLength??1/0,i=e.maxItems??1/0,()=>{let t=t=>({validate(e){if(n===1/0&&i===1/0)return!0;if(e.length>i)return!1;let a=e.map(e=>e.path).join(","),s=e.map(e=>e.input);return M({...r,type:t,path:a,inputs:s,signal:null}).length<=n},async fetch(n){let i=n.map(e=>e.path).join(","),a=n.map(e=>e.input),s=function(...e){let t=new AbortController,r=e.length,n=0,i=()=>{++n===r&&t.abort()};for(let t of e)t?.aborted?i():t?.addEventListener("abort",i,{once:!0});return t.signal}(...n.map(e=>e.signal)),o=await _({...{...r,path:i,inputs:a,type:t,headers:()=>e.headers?"function"==typeof e.headers?e.headers({opList:n}):e.headers:{},signal:s},contentTypeHeader:"application/json",getUrl:M,getBody:I});return(Array.isArray(o.json)?o.json:n.map(()=>o.json)).map(e=>({meta:o.meta,json:e}))}}),a={query:A(t("query")),mutation:A(t("mutation"))};return({op:e})=>(0,j.observable)(t=>{let n;if("subscription"===e.type)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");return a[e.type].load(e).then(e=>{n=e;let i=(0,S.transformResult)(e.json,r.transformer.output);i.ok?(t.next({context:e.meta,result:i.result}),t.complete()):t.error(k.TRPCClientError.from(i.error,{meta:e.meta}))}).catch(e=>{t.error(k.TRPCClientError.from(e,{meta:n?.meta}))}),()=>{}})})]})});return(0,s.jsx)(eO.trpc.Provider,{client:r,queryClient:t,children:(0,s.jsx)(P.QueryClientProvider,{client:t,children:e})})}var eP=e.i(618566);function ej(){let e=(0,eP.usePathname)(),t=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useEffect)(()=>{function n(){if(t.current===e)return;t.current=e;let r=performance.getEntriesByType("navigation")[0];if(!r)return;let n={pathname:e,ttfb:r.responseStart-r.startTime,domReady:r.domContentLoadedEventEnd-r.startTime,loadTime:r.loadEventEnd-r.startTime},a=performance.getEntriesByType("paint").find(e=>"first-contentful-paint"===e.name);a&&(n.fcp=a.startTime);try{let e=new PerformanceObserver(t=>{let r=t.getEntries(),a=r[r.length-1];a&&(n.lcp=a.startTime),e.disconnect(),i(n)});e.observe({type:"largest-contentful-paint",buffered:!0})}catch{i(n)}}function i(e){try{navigator.sendBeacon("/api/perf",JSON.stringify(e))}catch{}}r.current??=.2>Math.random(),r.current&&t.current!==e&&("complete"===document.readyState?setTimeout(n,100):window.addEventListener("load",()=>setTimeout(n,100),{once:!0}))},[e]),null}function eS(){let e=(0,eP.usePathname)(),{data:t,status:r}=(0,u.useSession)(),n=(0,o.useRef)(null);return(0,o.useEffect)(()=>
2{if("loading"!==r){try{if("1"===localStorage.getItem("bizmoon-analytics-opt-out"))return}catch{}if(e&&n.current!==e){n.current=e;try{let r=function(){try{let e=document.cookie.match(/(?:^|;\s*)bz_aid=([0-9a-fA-F-]{8,64})/);if(e)return e[1];let t=crypto.randomUUID(),r="https:"===location.protocol?"; Secure":"";return document.cookie=`bz_aid=${t}; path=/; max-age=31536000; SameSite=Lax${r}`,t}catch{return null}}();if(!r)return;let n=new URLSearchParams(location.search),i=e=>n.get(e)?.slice(0,200)||void 0;navigator.sendBeacon("/api/t",JSON.stringify({anonId:r,pathname:e,userId:t?.user?.id??void 0,referrer:function(){try{let e=document.referrer;if(!e||new URL(e).origin===location.origin)return;return e.slice(0,500)}catch{return}}(),utmSource:i("utm_source"),utmMedium:i("utm_medium"),utmCampaign:i("utm_campaign")}))}catch{}}}},[e,r,t?.user?.id]),null}var eT=e.i(669430),eA=(t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),ek=(0,o.createContext)({get client(){return a},bootstrap:void 0});function eC(e){var t,r,n=e.children,i=e.client,s=e.apiKey,u=e.options,l=(0,o.useRef)(null),c=(0,o.useMemo)(function(){if(i)return s&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),u&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i;var e=a;return s||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),e},[i,s,JSON.stringify(u)]);return(0,o.useEffect)(function(){if(!i&&s){var e=a,t=l.current;t?(s!==t.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),u&&!function e(t,r,n){if(void 0===n&&(n=new WeakMap),t===r)return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;if(n.has(t)&&n.get(t)===r)return!0;n.set(t,r);var i=Object.keys(t),a=Object.keys(r);if(i.length!==a.length)return!1;for(var s=0;s<i.length;s++){var o=i[s];if(!a.includes(o)||!e(t[o],r[o],n))return!1}return!0}(u,t.options)&&e.set_config(u)):(e.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),e.init(s,u)),l.current={apiKey:s,options:null!=u?u:{}}}},[i,s,JSON.stringify(u)]),o.default.createElement(ek.Provider,{value:{client:c,bootstrap:null!=(t=null==u?void 0:u.bootstrap)?t:null==(r=null==i?void 0:i.config)?void 0:r.bootstrap}},n)}var eq=function(e){return"function"==typeof e},ex=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||"[object Error]"===t||"[object Exception]"===t||"[object DOMException]"===t||"[object DOMError]"===t},eM=function(e,t){for(var r=new WeakSet,n=e;!r.has(n);){if(r.add(n),!ex(n.cause)){void 0!==n.cause&&(t.cause=n.cause),n.cause=t;return}n=n.cause}},eI=function(e,t){if(!t)return e;var r=Error(ex(e)?e.message:"Primitive value captured as exception: ".concat(String(e)));return(r.name="React ErrorBoundary ".concat(ex(e)?e.name:"Error"),r.stack=t,ex(e))?(eM(e,r),e):r},eQ={componentStack:null,exceptionEvent:null,error:null};r=i=function(e){function t(t){var r=e.call(this,t)||this;return r.state=eQ,r}return eA(t,e),t.prototype.componentDidCatch=function(e,t){var r,n=this.props.additionalProperties;eq(n)?r=n(e,t):"object"==typeof n&&(r=n);var i=this.context.client,a=t.componentStack,s=i.captureException(eI(e,a),r);this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:s})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,n=this.state;if(null==n.componentStack)return eq(t)?t():t;var i=eq(r)?o.default.createElement(r,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent}):r;return o.default.isValidElement(i)?i:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),o.default.createElement(o.default.Fragment,null))},t}(o.default.Component),"symbol"==typeof(n="PostHogErrorBoundary")&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(r,"name",{configurable:!0,value:n}),i.contextType=ek,a=eT.default;var eR=e.i(306552);function e_(){let e=(0,eP.usePathname)(),t=(0,eP.useSearchParams)();return(0,o.useEffect)(()=>
2{if(!eR.POSTHOG_TOKEN||!e)return;let r=t.toString()?`${e}?${t.toString()}`:e;eT.default.capture("$pageview",{$current_url:r})},[e,t]),null}function eD(){let{data:e}=(0,u.useSession)();return(0,o.useEffect)(()=>{eR.POSTHOG_TOKEN&&e?.user?.id&&eT.default.identify(e.user.id,{name:e.user.name??void 0,email:e.user.email??void 0})},[e]),null}function eN({children:e}){return((0,o.useEffect)(()=>{(0,eR.initPostHog)()},[]),eR.POSTHOG_TOKEN)?(0,s.jsxs)(eC,{client:eT.default,children:[(0,s.jsx)(e_,{}),(0,s.jsx)(eD,{}),e]}):(0,s.jsx)(s.Fragment,{children:e})}e.s(["Providers",0,function({children:e}){return(0,s.jsx)(u.SessionProvider,{children:(0,s.jsx)(l.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:(0,s.jsx)(o.Suspense,{fallback:null,children:(0,s.jsx)(eN,{children:(0,s.jsxs)(eE,{children:[e,(0,s.jsx)(ej,{}),(0,s.jsx)(eS,{})]})})})})})}],1661)},713354,e=>{"use strict";var t=e.i(843476),r=e.i(123287),r=r,n=e.i(879664),n=n,i=e.i(717521),i=i;let a=(0,e.i(475254).default)("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var s=e.i(582458),s=s,o=e.i(363178),u=e.i(846696);e.s(["Toaster",0,({...e})=>{let{theme:l="system"}=(0,o.useTheme)();return(0,t.jsx)(u.Toaster,{theme:l,className:"toaster group",icons:{success:(0,t.jsx)(r.default,{className:"size-4"}),info:(0,t.jsx)(n.default,{className:"size-4"}),warning:(0,t.jsx)(s.default,{className:"size-4"}),error:(0,t.jsx)(a,{className:"size-4"}),loading:(0,t.jsx)(i.default,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})}],713354)}]); 3 4//# debugId=8722dfc1-a2c5-b202-6554-2bc3998cf137
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.