(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4889],{90239:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let s=i(57437),r=i(2265);e.default=function(t){let{html:e,height:i=null,width:n=null,children:a,dataNtpc:o=""}=t;return(0,r.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(o)}})},[o]),(0,s.jsxs)(s.Fragment,{children:[a,e?(0,s.jsx)("div",{style:{height:null!=i?"".concat(i,"px"):"auto",width:null!=n?"".concat(n,"px"):"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})}},64404:function(t,e,i){"use strict";var s;let r;Object.defineProperty(e,"__esModule",{value:!0}),e.sendGAEvent=e.GoogleAnalytics=void 0;let n=i(57437),a=i(2265),o=(s=i(31877))&&s.__esModule?s:{default:s};e.GoogleAnalytics=function(t){let{gaId:e,dataLayerName:i="dataLayer"}=t;return void 0===r&&(r=i),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(i,"'] = window['").concat(i,"'] || [];\n          function gtag(){window['").concat(i,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(e,"');")}}),(0,n.jsx)(o.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(e)})]})},e.sendGAEvent=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(void 0===r){console.warn("@next/third-parties: GA has not been initialized");return}window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))}},27640:function(t,e,i){"use strict";var s;let r;Object.defineProperty(e,"__esModule",{value:!0}),e.sendGTMEvent=e.GoogleTagManager=void 0;let n=i(57437),a=i(2265),o=(s=i(31877))&&s.__esModule?s:{default:s};e.GoogleTagManager=function(t){let{gtmId:e,dataLayerName:i="dataLayer",auth:s,preview:u,dataLayer:l}=t;void 0===r&&(r=i);let c="dataLayer"!==i?"&l=".concat(i):"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(l?"w[l].push(".concat(JSON.stringify(l),")"):"","\n      })(window,'").concat(i,"');")}}),(0,n.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(e).concat(c).concat(s?"&gtm_auth=".concat(s):"").concat(u?"&gtm_preview=".concat(u,"&gtm_cookies_win=x"):"")})]})},e.sendGTMEvent=t=>{if(void 0===r){console.warn("@next/third-parties: GTM has not been initialized");return}window[r]?window[r].push(t):console.warn("@next/third-parties: GTM dataLayer ".concat(r," does not exist"))}},16463:function(t,e,i){"use strict";var s=i(71169);i.o(s,"redirect")&&i.d(e,{redirect:function(){return s.redirect}}),i.o(s,"useParams")&&i.d(e,{useParams:function(){return s.useParams}}),i.o(s,"usePathname")&&i.d(e,{usePathname:function(){return s.usePathname}}),i.o(s,"useRouter")&&i.d(e,{useRouter:function(){return s.useRouter}}),i.o(s,"useSearchParams")&&i.d(e,{useSearchParams:function(){return s.useSearchParams}}),i.o(s,"useServerInsertedHTML")&&i.d(e,{useServerInsertedHTML:function(){return s.useServerInsertedHTML}})},31877:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return r.a}});var s=i(84080),r=i.n(s),n={};for(var a in s)"default"!==a&&(n[a]=(function(t){return s[t]}).bind(0,a));i.d(e,n)},40905:function(t,e){"use strict";let i;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{DOMAttributeNames:function(){return s},default:function(){return a},isEqualNode:function(){return n}});let s={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r(t){let{type:e,props:i}=t,r=document.createElement(e);for(let t in i){if(!i.hasOwnProperty(t)||"children"===t||"dangerouslySetInnerHTML"===t||void 0===i[t])continue;let n=s[t]||t.toLowerCase();"script"===e&&("async"===n||"defer"===n||"noModule"===n)?r[n]=!!i[t]:r.setAttribute(n,i[t])}let{children:n,dangerouslySetInnerHTML:a}=i;return a?r.innerHTML=a.__html||"":n&&(r.textContent="string"==typeof n?n:Array.isArray(n)?n.join(""):""),r}function n(t,e){if(t instanceof HTMLElement&&e instanceof HTMLElement){let i=e.getAttribute("nonce");if(i&&!t.getAttribute("nonce")){let s=e.cloneNode(!0);return s.setAttribute("nonce",""),s.nonce=i,i===t.nonce&&t.isEqualNode(s)}}return t.isEqualNode(e)}function a(){return{mountedInstances:new Set,updateHead:t=>{let e={};t.forEach(t=>{if("link"===t.type&&t.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+t.props["data-href"]+'"]'))return;t.props.href=t.props["data-href"],t.props["data-href"]=void 0}let i=e[t.type]||[];i.push(t),e[t.type]=i});let s=e.title?e.title[0]:null,r="";if(s){let{children:t}=s.props;r="string"==typeof t?t:Array.isArray(t)?t.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach(t=>{i(t,e[t]||[])})}}}i=(t,e)=>{let i=document.getElementsByTagName("head")[0],s=i.querySelector("meta[name=next-head-count]"),a=Number(s.content),o=[];for(let e=0,i=s.previousElementSibling;e<a;e++,i=(null==i?void 0:i.previousElementSibling)||null){var u;(null==i?void 0:null==(u=i.tagName)?void 0:u.toLowerCase())===t&&o.push(i)}let l=e.map(r).filter(t=>{for(let e=0,i=o.length;e<i;e++)if(n(o[e],t))return o.splice(e,1),!1;return!0});o.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),l.forEach(t=>i.insertBefore(t,s)),s.content=(a-o.length+l.length).toString()},("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},49189:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},s="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},84080:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return b},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g}});let s=i(99920),r=i(41452),n=i(57437),a=s._(i(54887)),o=r._(i(2265)),u=i(36590),l=i(40905),c=i(49189),h=new Map,d=new Set,f=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=t=>{if(a.default.preinit){t.forEach(t=>{a.default.preinit(t,{as:"style"})});return}if("undefined"!=typeof window){let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}},y=t=>{let{src:e,id:i,onLoad:s=()=>{},onReady:r=null,dangerouslySetInnerHTML:n,children:a="",strategy:o="afterInteractive",onError:u,stylesheets:c}=t,y=i||e;if(y&&d.has(y))return;if(h.has(e)){d.add(y),h.get(e).then(s,u);return}let m=()=>{r&&r(),d.add(y)},g=document.createElement("script"),v=new Promise((t,e)=>{g.addEventListener("load",function(e){t(),s&&s.call(this,e),m()}),g.addEventListener("error",function(t){e(t)})}).catch(function(t){u&&u(t)});for(let[i,s]of(n?(g.innerHTML=n.__html||"",m()):a?(g.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):e&&(g.src=e,h.set(e,v)),Object.entries(t))){if(void 0===s||f.includes(i))continue;let t=l.DOMAttributeNames[i]||i.toLowerCase();g.setAttribute(t,s)}"worker"===o&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",o),c&&p(c),document.body.appendChild(g)};function m(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>y(t))}):y(t)}function g(t){t.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(t=>{let e=t.id||t.getAttribute("src");d.add(e)})}function v(t){let{id:e,src:i="",onLoad:s=()=>{},onReady:r=null,strategy:l="afterInteractive",onError:h,stylesheets:f,...p}=t,{updateScripts:m,scripts:g,getIsSsr:v,appDir:b,nonce:w}=(0,o.useContext)(u.HeadManagerContext),_=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let t=e||i;_.current||(r&&t&&d.has(t)&&r(),_.current=!0)},[r,e,i]);let C=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{!C.current&&("afterInteractive"===l?y(t):"lazyOnload"===l&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>y(t)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>y(t))})),C.current=!0)},[t,l]),("beforeInteractive"===l||"worker"===l)&&(m?(g[l]=(g[l]||[]).concat([{id:e,src:i,onLoad:s,onReady:r,onError:h,...p}]),m(g)):v&&v()?d.add(e||i):v&&!v()&&y(t)),b){if(f&&f.forEach(t=>{a.default.preinit(t,{as:"style"})}),"beforeInteractive"===l)return i?(a.default.preload(i,p.integrity?{as:"script",integrity:p.integrity,nonce:w}:{as:"script",nonce:w}),(0,n.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([i,{...p,id:e}])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,n.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p,id:e}])+")"}}));"afterInteractive"===l&&i&&a.default.preload(i,p.integrity?{as:"script",integrity:p.integrity,nonce:w}:{as:"script",nonce:w})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let b=v;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},58033:function(t,e,i){"use strict";t.exports=i(43398)},75956:function(t){t.exports={style:{fontFamily:"'__League_Gothic_617276', '__League_Gothic_Fallback_617276'",fontStyle:"normal"},className:"__className_617276",variable:"__variable_617276"}},63434:function(t){t.exports={style:{fontFamily:"'__Source_Sans_3_fd76fa', '__Source_Sans_3_Fallback_fd76fa'",fontStyle:"normal"},className:"__className_fd76fa",variable:"__variable_fd76fa"}},92812:function(t,e,i){"use strict";i.d(e,{R:function(){return o},m:function(){return a}});var s=i(69948),r=i(43494),n=i(30924),a=class extends r.F{#t;#e;#i;#s;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.defaultOptions,this.#i=t.mutationCache,this.#t=[],this.state=t.state||o(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.#e,...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){let e="pending"===this.state.status;try{if(!e){this.#r({type:"pending",variables:t}),await this.#i.config.onMutate?.(t,this);let e=await this.options.onMutate?.(t);e!==this.state.context&&this.#r({type:"pending",context:e,variables:t})}let i=await (this.#s=(0,n.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#r({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#s.promise);return await this.#i.config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await this.#i.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),this.#r({type:"success",data:i}),i}catch(e){try{throw await this.#i.config.onError?.(e,t,this.state.context,this),await this.options.onError?.(e,t,this.state.context),await this.#i.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,e,t,this.state.context),e}finally{this.#r({type:"error",error:e})}}}#r(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,n.Kw)(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.V.batch(()=>{this.#t.forEach(e=>{e.onMutationUpdate(t)}),this.#i.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},2459:function(t,e,i){"use strict";i.d(e,{A:function(){return o},z:function(){return u}});var s=i(56298),r=i(69948),n=i(30924),a=i(43494),o=class extends a.F{#n;#a;#o;#s;#t;#e;#u;constructor(t){super(),this.#u=!1,this.#e=t.defaultOptions,this.setOptions(t.options),this.#t=[],this.#o=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#n=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,i=void 0!==e,s=i?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#n,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.#e,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#t.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(t,e){let i=(0,s.oE)(this.state.data,t,this.options);return this.#r({data:i,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),i}setState(t,e){this.#r({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#s?.promise;return this.#s?.cancel(t),e?e.then(s.ZT).catch(s.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#n)}isActive(){return this.#t.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.#t.some(t=>t.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!(0,s.Kp)(this.state.dataUpdatedAt,t)}onFocus(){let t=this.#t.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){let t=this.#t.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.#t.includes(t)&&(this.#t=this.#t.filter(e=>e!==t),this.#t.length||(this.#s&&(this.#u?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.#t.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}fetch(t,e){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.#t.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let i=new AbortController,r={queryKey:this.queryKey,meta:this.meta},a=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#u=!0,i.signal)})};a(r);let o={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==s.CN?(this.#u=!1,this.options.persister)?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};a(o),this.options.behavior?.onFetch(o,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#r({type:"fetch",meta:o.fetchOptions?.meta});let u=t=>{(0,n.DV)(t)&&t.silent||this.#r({type:"error",error:t}),(0,n.DV)(t)||(this.#o.config.onError?.(t,this),this.#o.config.onSettled?.(this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#s=(0,n.Mz)({fn:o.fetchFn,abort:i.abort.bind(i),onSuccess:t=>{if(void 0===t){u(Error(`${this.queryHash} data is undefined`));return}this.setData(t),this.#o.config.onSuccess?.(t,this),this.#o.config.onSettled?.(t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(t,e)=>{this.#r({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode}),this.#s.promise}#r(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...u(e.data,this.options),fetchMeta:t.meta??null};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if((0,n.DV)(i)&&i.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),r.V.batch(()=>{this.#t.forEach(t=>{t.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:t})})}};function u(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.Kw)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}},66094:function(t,e,i){"use strict";i.d(e,{S:function(){return f}});var s=i(56298),r=i(2459),n=i(69948),a=i(49010),o=class extends a.l{constructor(t={}){super(),this.config=t,this.#l=new Map}#l;build(t,e,i){let n=e.queryKey,a=e.queryHash??(0,s.Rm)(n,e),o=this.get(a);return o||(o=new r.A({cache:this,queryKey:n,queryHash:a,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(n)}),this.add(o)),o}add(t){this.#l.has(t.queryHash)||(this.#l.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#l.get(t.queryHash);e&&(t.destroy(),e===t&&this.#l.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){n.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#l.get(t)}getAll(){return[...this.#l.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,s._x)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,s._x)(t,e)):e}notify(t){n.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){n.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){n.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},u=i(92812),l=class extends a.l{constructor(t={}){super(),this.config=t,this.#c=[],this.#h=0}#c;#h;#d;build(t,e,i){let s=new u.m({mutationCache:this,mutationId:++this.#h,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){this.#c.push(t),this.notify({type:"added",mutation:t})}remove(t){this.#c=this.#c.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){n.V.batch(()=>{this.#c.forEach(t=>{this.remove(t)})})}getAll(){return this.#c}find(t){let e={exact:!0,...t};return this.#c.find(t=>(0,s.X7)(e,t))}findAll(t={}){return this.#c.filter(e=>(0,s.X7)(t,e))}notify(t){n.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){return this.#d=(this.#d??Promise.resolve()).then(()=>{let t=this.#c.filter(t=>t.state.isPaused);return n.V.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(s.ZT)),Promise.resolve()))}).then(()=>{this.#d=void 0}),this.#d}},c=i(34939),h=i(49937);function d(t,{pages:e,pageParams:i}){let s=e.length-1;return t.getNextPageParam(e[s],e,i[s],i)}var f=class{#f;#i;#e;#p;#y;#m;#g;#v;constructor(t={}){this.#f=t.queryCache||new o,this.#i=t.mutationCache||new l,this.#e=t.defaultOptions||{},this.#p=new Map,this.#y=new Map,this.#m=0}mount(){this.#m++,1===this.#m&&(this.#g=c.j.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#f.onFocus())}),this.#v=h.N.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#f.onOnline())}))}unmount(){this.#m--,0===this.#m&&(this.#g?.(),this.#g=void 0,this.#v?.(),this.#v=void 0)}isFetching(t){return this.#f.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#i.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#f.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.getQueryData(t.queryKey);if(void 0===e)return this.fetchQuery(t);{let i=this.defaultQueryOptions(t),s=this.#f.build(this,i);return t.revalidateIfStale&&s.isStaleByTime(i.staleTime)&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,i){let r=this.defaultQueryOptions({queryKey:t}),n=this.#f.get(r.queryHash),a=n?.state.data,o=(0,s.SE)(e,a);if(void 0!==o)return this.#f.build(this,r).setData(o,{...i,manual:!0})}setQueriesData(t,e,i){return n.V.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#f.get(e.queryHash)?.state}removeQueries(t){let e=this.#f;n.V.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let i=this.#f,s={type:"active",...t};return n.V.batch(()=>(i.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(s,e)))}cancelQueries(t={},e={}){let i={revert:!0,...e};return Promise.all(n.V.batch(()=>this.#f.findAll(t).map(t=>t.cancel(i)))).then(s.ZT).catch(s.ZT)}invalidateQueries(t={},e={}){return n.V.batch(()=>{if(this.#f.findAll(t).forEach(t=>{t.invalidate()}),"none"===t.refetchType)return Promise.resolve();let i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){let i={...e,cancelRefetch:e?.cancelRefetch??!0};return Promise.all(n.V.batch(()=>this.#f.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(s.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(s.ZT)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let i=this.#f.build(this,e);return i.isStaleByTime(e.staleTime)?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s.ZT).catch(s.ZT)}fetchInfiniteQuery(t){var e;return t.behavior=(e=t.pages,{onFetch:(t,i)=>{let r=async()=>{let i;let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],u=!1,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},c=t.options.queryFn&&t.options.queryFn!==s.CN?t.options.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.options.queryHash}'`)),h=async(e,i,r)=>{if(u)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:i,direction:r?"backward":"forward",meta:t.options.meta};l(n);let a=await c(n),{maxPages:o}=t.options,h=r?s.Ht:s.VX;return{pages:h(e.pages,a,o),pageParams:h(e.pageParams,i,o)}};if(n&&a.length){let t="backward"===n,e={pages:a,pageParams:o},s=(t?function(t,{pages:e,pageParams:i}){return t.getPreviousPageParam?.(e[0],e,i[0],i)}:d)(r,e);i=await h(e,s,t)}else{i=await h({pages:[],pageParams:[]},o[0]??r.initialPageParam);let t=e??a.length;for(let e=1;e<t;e++){let t=d(r,i);i=await h(i,t)}}return i};t.options.persister?t.fetchFn=()=>t.options.persister?.(r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=r}}),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s.ZT).catch(s.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#f}getMutationCache(){return this.#i}getDefaultOptions(){return this.#e}setDefaultOptions(t){this.#e=t}setQueryDefaults(t,e){this.#p.set((0,s.Ym)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#p.values()],i={};return e.forEach(e=>{(0,s.to)(t,e.queryKey)&&(i={...i,...e.defaultOptions})}),i}setMutationDefaults(t,e){this.#y.set((0,s.Ym)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#y.values()],i={};return e.forEach(e=>{(0,s.to)(t,e.mutationKey)&&(i={...i,...e.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#e.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,s.Rm)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),!0!==e.enabled&&e.queryFn===s.CN&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#e.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#f.clear(),this.#i.clear()}}},79839:function(t,e,i){"use strict";i.d(e,{t:function(){return s}});var s=function(){return null}},54636:function(t,e,i){"use strict";i.d(e,{V:function(){return p}});var s=i(93191);function r(t){return t.state.isPaused}function n(t){return"success"===t.state.status}var a=i(2265),o=i(56298),u=i(16463),l={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},c=/[&><\u2028\u2029]/g;function h(t){return t.replace(c,t=>l[t])}var d=i(57437);Symbol("serialized");var f=function(){let t=a.createContext(null);return{Provider:function(e){let i="__RQ".concat(a.useId()),s=h(JSON.stringify(i)),[r]=a.useState(()=>{var t;return null!==(t=e.transformer)&&void 0!==t?t:{serialize:t=>t,deserialize:t=>t}}),[n]=a.useState(()=>"undefined"!=typeof window?{push(){}}:[]),l=a.useRef(0);if((0,u.useServerInsertedHTML)(()=>{var t,i;if(n.push(...null!==(i=null===(t=e.onFlush)||void 0===t?void 0:t.call(e))&&void 0!==i?i:[]),!n.length)return null;let a=n.map(t=>r.serialize(t)).map(t=>JSON.stringify(t)).join(",");n.length=0;let o=["window[".concat(s,"] = window[").concat(s,"] || [];"),"window[".concat(s,"].push(").concat(h(a),");")];return(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:o.join("")}},l.current++)}),!o.sk){var c,f;let t=window;if(!(null===(c=t[i])||void 0===c?void 0:c.initialized)){let s=function(){for(var t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];let n=i.map(t=>r.deserialize(t));e.onEntries(n)};s(...null!==(f=t[i])&&void 0!==f?f:[]),t[i]={initialized:!0,push:s}}}return(0,d.jsx)(t.Provider,{value:{stream:n,id:i},children:e.children})},context:t}}();function p(t){let e=(0,s.NL)(t.queryClient),[i]=a.useState(()=>new Set);return"undefined"==typeof window&&e.getQueryCache().subscribe(t=>{switch(t.type){case"added":case"updated":i.add(t.query.queryHash)}}),(0,d.jsx)(f.Provider,{onFlush:()=>{var s,a,o,u;let l=null!==(u=null===(a=t.options)||void 0===a?void 0:null===(s=a.dehydrate)||void 0===s?void 0:s.shouldDehydrateQuery)&&void 0!==u?u:n,c=function(t,e={}){let i=e.shouldDehydrateMutation??r,s=t.getMutationCache().getAll().flatMap(t=>i(t)?[{mutationKey:t.options.mutationKey,state:t.state,...t.meta&&{meta:t.meta}}]:[]),a=e.shouldDehydrateQuery??n;return{mutations:s,queries:t.getQueryCache().getAll().flatMap(t=>a(t)?[{state:t.state,queryKey:t.queryKey,queryHash:t.queryHash,...t.meta&&{meta:t.meta}}]:[])}}(e,{...null===(o=t.options)||void 0===o?void 0:o.dehydrate,shouldDehydrateQuery:t=>i.has(t.queryHash)&&l(t)});return(i.clear(),c.queries.length)?[c]:[]},onEntries:i=>{for(let r of i){var s;!function(t,e,i){if("object"!=typeof e||null===e)return;let s=t.getMutationCache(),r=t.getQueryCache(),n=e.mutations||[],a=e.queries||[];n.forEach(e=>{s.build(t,{...i?.defaultOptions?.mutations,mutationKey:e.mutationKey,meta:e.meta},e.state)}),a.forEach(({queryKey:e,state:s,queryHash:n,meta:a})=>{let o=r.get(n);if(o){if(o.state.dataUpdatedAt<s.dataUpdatedAt){let{fetchStatus:t,...e}=s;o.setState(e)}return}r.build(t,{...i?.defaultOptions?.queries,queryKey:e,queryHash:n,meta:a},{...s,fetchStatus:"idle"})})}(e,r,null===(s=t.options)||void 0===s?void 0:s.hydrate)}},transformer:t.transformer,children:t.children})}}}]);