const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GynaekologieV3-DJ0f2Wcu.js","assets/ParallaxBanner-BgOa7zzv.js","assets/accordion-BP5yB5MG.js","assets/stethoscope-CQ3zPHW1.js","assets/book-open-CYU--ONU.js","assets/droplets-DJIuClne.js","assets/microscope-Bp8c1KQr.js","assets/Praxisbedarf-7UZQl3DJ.js","assets/heart-pulse-XlV8Nxdb.js","assets/shopping-cart-C8u6-rsC.js","assets/clock-BSGHe6r8.js","assets/zap-Dmn4TJAr.js","assets/file-text-D3sBNtiz.js","assets/Sprechstundenbedarf-UkTn26B-.js","assets/TechnischerService-CZBoNWuz.js","assets/settings-BRoZuxFO.js","assets/Praxisplanung-P7rkIhEc.js","assets/layers-CzOOIZE8.js","assets/Praxisportal-Cz63GEbh.js","assets/lock-B3bOY3tK.js","assets/Hygienemanagement-CVnLnD54.js","assets/clipboard-list-CclU-yU6.js","assets/trending-up-CUHt5Mmi.js","assets/graduation-cap-CpIJbj7f.js","assets/star-CJpir8NK.js","assets/Praxisgruendung-DgZXdKBP.js","assets/lamp-CEaKfFpG.js","assets/Kontakt-Di2fRsQ4.js","assets/circle-check-C2KSy7B6.js","assets/circle-alert-DEjFHSRQ.js","assets/MediMatic-BnK3YwYY.js","assets/VitalographPneumotrac-DKIoC3Dc.js","assets/wind-BpAbS8b1.js","assets/wifi-DqVlQSuc.js","assets/printer-BX4v31j4.js","assets/VitalographAlphaConnect-BYViJ0xw.js","assets/download-Dvg-5I0q.js","assets/chevron-up-DKNfHppb.js","assets/BosoTM2450-Caqrh0e4.js","assets/MelagVacuklav-DDakflMy.js","assets/chart-column-Iej1yBTD.js","assets/MieleThermodesinfektor-ByaX2cET.js","assets/thermometer-CsvRu06K.js","assets/EdanF3Ctg-C8g_sN9Z.js","assets/Impressum-r4Knpmbe.js","assets/UnserTeam-CEhHERHF.js","assets/car-CBTnEX9B.js","assets/eye-Oinx__HL.js","assets/UnserTeam-CIGW-MKW.css","assets/Karriere-BpV8pJ49.js","assets/Aufbereitung-dKh4OTw4.js","assets/Autoklaven-jp4Vgtuu.js","assets/Thermodesinfektoren-CV37hDGL.js","assets/Medizintechnik-BsK484Vq.js","assets/OPLeuchten-PSySw1s6.js","assets/Chirurgie-Cw1tztIX.js","assets/Kreditorenbuchhalter-BJLx_WT7.js","assets/calendar-BNpqJxmZ.js","assets/FahrerMontagetechniker-u1KzJVgo.js","assets/MieleHnoExtra-te1EUIjO.js","assets/Retouren-QycYEofn.js","assets/circle-x-CfitKR1A.js","assets/GynStuehle-BZlDqJGg.js","assets/settings-2-BwkaLGds.js","assets/AdminLogin-DfgF9JrA.js","assets/useAdminAuth-C-3tmlGw.js","assets/eye-off-_hoZNZX7.js","assets/AdminPanel-CVLQ1FpQ.js","assets/AdminLayout-CjrLBB0p.js","assets/refresh-cw-CJrT_vFE.js","assets/circle-fbAPf1cC.js","assets/trash-2-COgR7UCV.js","assets/plus-BeYm-VJp.js","assets/save-kuawI76o.js","assets/toggle-right-BdGp2kXg.js","assets/GynNewsAdmin-lqt9V95q.js","assets/SearchIndexAdmin-D-Aofg5O.js","assets/info-DG-HGfsS.js","assets/RetourenAdmin-DEuLWN9a.js","assets/KatalogBestellungenAdmin-gdxl3T2L.js","assets/EmailEinstellungenAdmin-C1GhmUjG.js","assets/EmailLogAdmin-C2vR-YyA.js","assets/SeoReportAdmin-nRrZ21Un.js","assets/AnalyseAdmin-CxMCYlV4.js"])))=>i.map(i=>d[i]);
function Wj(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();var $7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ih={exports:{}},Zo={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qb;function Jj(){if(Qb)return Zo;Qb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;return o=c.ref,{$$typeof:e,type:s,key:u,ref:o!==void 0?o:null,props:c}}return Zo.Fragment=t,Zo.jsx=r,Zo.jsxs=r,Zo}var Fb;function eO(){return Fb||(Fb=1,Ih.exports=Jj()),Ih.exports}var g=eO(),ys=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(){}},tO={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},nO=class{#t=tO;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},ss=new nO;function rO(e){setTimeout(e,0)}var fs=typeof window>"u"||"Deno"in globalThis;function Dt(){}function iO(e,t){return typeof e=="function"?e(t):e}function zm(e){return typeof e=="number"&&e>=0&&e!==1/0}function rS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wi(e,t){return typeof e=="function"?e(t):e}function zn(e,t){return typeof e=="function"?e(t):e}function Yb(e,t){const{type:r="all",exact:s,fetchStatus:o,predicate:c,queryKey:u,stale:f}=e;if(u){if(s){if(t.queryHash!==Up(u,t.options))return!1}else if(!cl(t.queryKey,u))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||c&&!c(t))}function Xb(e,t){const{exact:r,status:s,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(r){if(Ei(t.options.mutationKey)!==Ei(c))return!1}else if(!cl(t.options.mutationKey,c))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function Up(e,t){return(t?.queryKeyHashFn||Ei)(e)}function Ei(e){return JSON.stringify(e,(t,r)=>Nm(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function cl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>cl(e[r],t[r])):!1}var sO=Object.prototype.hasOwnProperty;function Vp(e,t){if(e===t)return e;const r=Wb(e)&&Wb(t);if(!r&&!(Nm(e)&&Nm(t)))return t;const o=(r?e:Object.keys(e)).length,c=r?t:Object.keys(t),u=c.length,f=r?new Array(u):{};let h=0;for(let m=0;m<u;m++){const v=r?m:c[m],y=e[v],x=t[v];if(y===x){f[v]=y,(r?m<o:sO.call(e,v))&&h++;continue}if(y===null||x===null||typeof y!="object"||typeof x!="object"){f[v]=x;continue}const w=Vp(y,x);f[v]=w,w===y&&h++}return o===u&&h===o?e:f}function ul(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Wb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nm(e){if(!Jb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Jb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Jb(e){return Object.prototype.toString.call(e)==="[object Object]"}function aO(e){return new Promise(t=>{ss.setTimeout(t,e)})}function Mm(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Vp(e,t):t}function oO(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function lO(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var pn=Symbol();function iS(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===pn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function sS(e,t){return typeof e=="function"?e(...t):!!e}var cO=class extends ys{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!fs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Bp=new cO;function Rm(){let e,t;const r=new Promise((o,c)=>{e=o,t=c});r.status="pending",r.catch(()=>{});function s(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},r.reject=o=>{s({status:"rejected",reason:o}),t(o)},r}var uO=rO;function fO(){let e=[],t=0,r=f=>{f()},s=f=>{f()},o=uO;const c=f=>{t?e.push(f):o(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{s(()=>{f.forEach(h=>{r(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{c(()=>{f(...h)})},schedule:c,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{o=f}}}var at=fO(),dO=class extends ys{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!fs&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},Mu=new dO;function hO(e){return Math.min(1e3*2**e,3e4)}function aS(e){return(e??"online")==="online"?Mu.isOnline():!0}var Dm=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function oS(e){let t=!1,r=0,s;const o=Rm(),c=()=>o.status!=="pending",u=_=>{if(!c()){const N=new Dm(_);x(N),e.onCancel?.(N)}},f=()=>{t=!0},h=()=>{t=!1},m=()=>Bp.isFocused()&&(e.networkMode==="always"||Mu.isOnline())&&e.canRun(),v=()=>aS(e.networkMode)&&e.canRun(),y=_=>{c()||(s?.(),o.resolve(_))},x=_=>{c()||(s?.(),o.reject(_))},w=()=>new Promise(_=>{s=N=>{(c()||m())&&_(N)},e.onPause?.()}).then(()=>{s=void 0,c()||e.onContinue?.()}),T=()=>{if(c())return;let _;const N=r===0?e.initialPromise:void 0;try{_=N??e.fn()}catch(k){_=Promise.reject(k)}Promise.resolve(_).then(y).catch(k=>{if(c())return;const L=e.retry??(fs?0:3),C=e.retryDelay??hO,B=typeof C=="function"?C(r,k):C,U=L===!0||typeof L=="number"&&r<L||typeof L=="function"&&L(r,k);if(t||!U){x(k);return}r++,e.onFail?.(r,k),aO(B).then(()=>m()?void 0:w()).then(()=>{t?x(k):T()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s?.(),o),cancelRetry:f,continueRetry:h,canStart:v,start:()=>(v()?T():w().then(T),o)}}var lS=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zm(this.gcTime)&&(this.#t=ss.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(ss.clearTimeout(this.#t),this.#t=void 0)}},mO=class extends lS{#t;#e;#n;#i;#r;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ex(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=ex(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=Mm(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Dt).catch(Dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>zn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>wi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!rS(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},o=()=>{const f=iS(this.options,t),m=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(v),v})();return this.#o=!1,this.options.persister?this.options.persister(f,m,this):f(m)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return s(f),f})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#a({type:"fetch",meta:u.fetchOptions?.meta}),this.#r=oS({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof Dm&&f.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Dm){if(f.silent)return this.#r.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#a({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...cS(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?s:void 0,s;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),at.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function cS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:aS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ex(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Al=class extends ys{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#o=Rm(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#i=void 0;#r;#s;#o;#a;#h;#f;#d;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),tx(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pm(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pm(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!ul(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&nx(this.#e,r,this.options,t)&&this.#m(),this.updateResult(),s&&(this.#e!==r||zn(this.options.enabled,this.#e)!==zn(t.enabled,this.#e)||wi(this.options.staleTime,this.#e)!==wi(t.staleTime,this.#e))&&this.#g();const o=this.#y();s&&(this.#e!==r||zn(this.options.enabled,this.#e)!==zn(t.enabled,this.#e)||o!==this.#l)&&this.#v(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return gO(this,r)&&(this.#i=r,this.#s=this.options,this.#r=this.#e.state),r}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),t?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#m(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Dt)),t}#g(){this.#x();const e=wi(this.options.staleTime,this.#e);if(fs||this.#i.isStale||!zm(e))return;const r=rS(this.#i.dataUpdatedAt,e)+1;this.#c=ss.setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(fs||zn(this.options.enabled,this.#e)===!1||!zm(this.#l)||this.#l===0)&&(this.#u=ss.setInterval(()=>{(this.options.refetchIntervalInBackground||Bp.isFocused())&&this.#m()},this.#l))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#c&&(ss.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(ss.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#e,s=this.options,o=this.#i,c=this.#r,u=this.#s,h=e!==r?e.state:this.#n,{state:m}=e;let v={...m},y=!1,x;if(t._optimisticResults){const D=this.hasListeners(),W=!D&&tx(e,t),te=D&&nx(e,r,t,s);(W||te)&&(v={...v,...cS(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:w,errorUpdatedAt:T,status:_}=v;x=v.data;let N=!1;if(t.placeholderData!==void 0&&x===void 0&&_==="pending"){let D;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(D=o.data,N=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,D!==void 0&&(_="success",x=Mm(o?.data,D,t),y=!0)}if(t.select&&x!==void 0&&!N)if(o&&x===c?.data&&t.select===this.#h)x=this.#f;else try{this.#h=t.select,x=t.select(x),x=Mm(o?.data,x,t),this.#f=x,this.#a=null}catch(D){this.#a=D}this.#a&&(w=this.#a,x=this.#f,T=Date.now(),_="error");const k=v.fetchStatus==="fetching",L=_==="pending",C=_==="error",B=L&&k,U=x!==void 0,j={status:_,fetchStatus:v.fetchStatus,isPending:L,isSuccess:_==="success",isError:C,isInitialLoading:B,isLoading:B,data:x,dataUpdatedAt:v.dataUpdatedAt,error:w,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>h.dataUpdateCount||v.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!L,isLoadingError:C&&!U,isPaused:v.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&U,isStale:Hp(e,t),refetch:this.refetch,promise:this.#o,isEnabled:zn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=F=>{j.status==="error"?F.reject(j.error):j.data!==void 0&&F.resolve(j.data)},W=()=>{const F=this.#o=j.promise=Rm();D(F)},te=this.#o;switch(te.status){case"pending":e.queryHash===r.queryHash&&D(te);break;case"fulfilled":(j.status==="error"||j.data!==te.value)&&W();break;case"rejected":(j.status!=="error"||j.error!==te.reason)&&W();break}}return j}updateResult(){const e=this.#i,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#s=this.options,this.#r.data!==void 0&&(this.#d=this.#e),ul(t,e))return;this.#i=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#p.size)return!0;const c=new Set(o??this.#p);return this.options.throwOnError&&c.add("error"),Object.keys(this.#i).some(u=>{const f=u;return this.#i[f]!==e[f]&&c.has(f)})};this.#E({listeners:r()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(e){at.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function pO(e,t){return zn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function tx(e,t){return pO(e,t)||e.state.data!==void 0&&Pm(e,t,t.refetchOnMount)}function Pm(e,t,r){if(zn(t.enabled,e)!==!1&&wi(t.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&Hp(e,t)}return!1}function nx(e,t,r,s){return(e!==t||zn(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Hp(e,r)}function Hp(e,t){return zn(t.enabled,e)!==!1&&e.isStaleByTime(wi(t.staleTime,e))}function gO(e,t){return!ul(e.getCurrentResult(),t)}function Ru(e){return{onFetch:(t,r)=>{const s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const m=async()=>{let v=!1;const y=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},x=iS(t.options,t.fetchOptions),w=async(T,_,N)=>{if(v)return Promise.reject();if(_==null&&T.pages.length)return Promise.resolve(T);const L=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:_,direction:N?"backward":"forward",meta:t.options.meta};return y(H),H})(),C=await x(L),{maxPages:B}=t.options,U=N?lO:oO;return{pages:U(T.pages,C,B),pageParams:U(T.pageParams,_,B)}};if(o&&c.length){const T=o==="backward",_=T?uS:Lm,N={pages:c,pageParams:u},k=_(s,N);f=await w(N,k,T)}else{const T=e??c.length;do{const _=h===0?u[0]??s.initialPageParam:Lm(s,f);if(h>0&&_==null)break;f=await w(f,_),h++}while(h<T)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=m}}}function Lm(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function uS(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function yO(e,t){return t?Lm(e,t)!=null:!1}function vO(e,t){return!t||!e.getPreviousPageParam?!1:uS(e,t)!=null}var fS=class extends Al{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Ru()})}getOptimisticResult(e){return e.behavior=Ru(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,s=super.createResult(e,t),{isFetching:o,isRefetching:c,isError:u,isRefetchError:f}=s,h=r.fetchMeta?.fetchMore?.direction,m=u&&h==="forward",v=o&&h==="forward",y=u&&h==="backward",x=o&&h==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:yO(t,r.data),hasPreviousPage:vO(t,r.data),isFetchNextPageError:m,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:x,isRefetchError:f&&!m&&!y,isRefetching:c&&!v&&!x}}},bO=class extends lS{#t;#e;#n;#i;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||dS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=oS({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#r({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#i.canStart();try{if(s)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,r);const u=await this.options.onMutate?.(e,r);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:o})}const c=await this.#i.start();return await this.#n.config.onSuccess?.(c,e,this.state.context,this,r),await this.options.onSuccess?.(c,e,this.state.context,r),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(c,null,e,this.state.context,r),this.#r({type:"success",data:c}),c}catch(c){try{throw await this.#n.config.onError?.(c,e,this.state.context,this,r),await this.options.onError?.(c,e,this.state.context,r),await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,c,e,this.state.context,r),c}finally{this.#r({type:"error",error:c})}}finally{this.#n.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),at.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function dS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xO=class extends ys{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,r){const s=new bO({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#t.add(e);const t=Jc(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Jc(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Jc(e);if(typeof t=="string"){const s=this.#e.get(t)?.find(o=>o.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=Jc(e);return typeof t=="string"?this.#e.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){at.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Xb(t,r))}findAll(e={}){return this.getAll().filter(t=>Xb(e,t))}notify(e){at.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return at.batch(()=>Promise.all(e.map(t=>t.continue().catch(Dt))))}};function Jc(e){return e.options.scope?.id}var wO=class extends ys{#t;#e=void 0;#n;#i;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),ul(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Ei(r.mutationKey)!==Ei(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#s()}mutate(t,r){return this.#i=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??dS();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){at.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,r,s,o),this.#i.onSettled?.(t.data,null,r,s,o)):t?.type==="error"&&(this.#i.onError?.(t.error,r,s,o),this.#i.onSettled?.(void 0,t.error,r,s,o))}this.listeners.forEach(r=>{r(this.#e)})})}};function rx(e,t){const r=new Set(t);return e.filter(s=>!r.has(s))}function SO(e,t,r){const s=e.slice(0);return s[t]=r,s}var EO=class extends ys{#t;#e;#n;#i;#r;#s;#o;#a;#h=[];constructor(e,t,r){super(),this.#t=e,this.#i=r,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#i=t,at.batch(()=>{const r=this.#r,s=this.#c(this.#n);this.#h=s,s.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const o=s.map(v=>v.observer),c=o.map(v=>v.getCurrentResult()),u=r.length!==o.length,f=o.some((v,y)=>v!==r[y]),h=u||f,m=h?!0:c.some((v,y)=>{const x=this.#e[y];return!x||!ul(v,x)});!h&&!m||(h&&(this.#r=o),this.#e=c,this.hasListeners()&&(h&&(rx(r,o).forEach(v=>{v.destroy()}),rx(o,r).forEach(v=>{v.subscribe(y=>{this.#u(v,y)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const r=this.#c(e),s=r.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[s,o=>this.#d(o??s,t),()=>this.#f(s,r)]}#f(e,t){return t.map((r,s)=>{const o=e[s];return r.defaultedQueryOptions.notifyOnChangeProps?o:r.observer.trackResult(o,c=>{t.forEach(u=>{u.observer.trackProp(c)})})})}#d(e,t){return t?((!this.#s||this.#e!==this.#a||t!==this.#o)&&(this.#o=t,this.#a=this.#e,this.#s=Vp(this.#s,t(e))),this.#s):e}#c(e){const t=new Map(this.#r.map(s=>[s.options.queryHash,s])),r=[];return e.forEach(s=>{const o=this.#t.defaultQueryOptions(s),c=t.get(o.queryHash);c?r.push({defaultedQueryOptions:o,observer:c}):r.push({defaultedQueryOptions:o,observer:new Al(this.#t,o)})}),r}#u(e,t){const r=this.#r.indexOf(e);r!==-1&&(this.#e=SO(this.#e,r,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#s,t=this.#f(this.#e,this.#h),r=this.#d(t,this.#i?.combine);e!==r&&at.batch(()=>{this.listeners.forEach(s=>{s(this.#e)})})}}},TO=class extends ys{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const s=t.queryKey,o=t.queryHash??Up(s,t);let c=this.get(o);return c||(c=new mO({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){at.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Yb(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>Yb(e,r)):t}notify(e){at.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){at.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){at.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_O=class{#t;#e;#n;#i;#r;#s;#o;#a;constructor(e={}){this.#t=e.queryCache||new TO,this.#e=e.mutationCache||new xO,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=Bp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=Mu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(wi(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),c=this.#t.get(s.queryHash)?.state.data,u=iO(t,c);if(u!==void 0)return this.#t.build(this,s).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return at.batch(()=>this.#t.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;at.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return at.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=at.batch(()=>this.#t.findAll(e).map(o=>o.cancel(r)));return Promise.all(s).then(Dt).catch(Dt)}invalidateQueries(e,t={}){return at.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=at.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(Dt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Dt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(wi(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dt).catch(Dt)}fetchInfiniteQuery(e){return e.behavior=Ru(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dt).catch(Dt)}ensureInfiniteQueryData(e){return e.behavior=Ru(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(Ei(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(s=>{cl(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#r.set(Ei(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{cl(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Up(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===pn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},$h={exports:{}},Te={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ix;function AO(){if(ix)return Te;ix=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=x&&O[x]||O["@@iterator"],typeof O=="function"?O:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,N={};function k(O,Q,$){this.props=O,this.context=Q,this.refs=N,this.updater=$||T}k.prototype.isReactComponent={},k.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Q,"setState")},k.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function L(){}L.prototype=k.prototype;function C(O,Q,$){this.props=O,this.context=Q,this.refs=N,this.updater=$||T}var B=C.prototype=new L;B.constructor=C,_(B,k.prototype),B.isPureReactComponent=!0;var U=Array.isArray;function H(){}var j={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function W(O,Q,$){var Y=$.ref;return{$$typeof:e,type:O,key:Q,ref:Y!==void 0?Y:null,props:$}}function te(O,Q){return W(O.type,Q,O.props)}function F(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function G(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function($){return Q[$]})}var oe=/\/+/g;function ae(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?G(""+O.key):Q.toString(36)}function ce(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(H,H):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function A(O,Q,$,Y,ie){var pe=typeof O;(pe==="undefined"||pe==="boolean")&&(O=null);var fe=!1;if(O===null)fe=!0;else switch(pe){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(O.$$typeof){case e:case t:fe=!0;break;case v:return fe=O._init,A(fe(O._payload),Q,$,Y,ie)}}if(fe)return ie=ie(O),fe=Y===""?"."+ae(O,0):Y,U(ie)?($="",fe!=null&&($=fe.replace(oe,"$&/")+"/"),A(ie,Q,$,"",function(_t){return _t})):ie!=null&&(F(ie)&&(ie=te(ie,$+(ie.key==null||O&&O.key===ie.key?"":(""+ie.key).replace(oe,"$&/")+"/")+fe)),Q.push(ie)),1;fe=0;var xe=Y===""?".":Y+":";if(U(O))for(var De=0;De<O.length;De++)Y=O[De],pe=xe+ae(Y,De),fe+=A(Y,Q,$,pe,ie);else if(De=w(O),typeof De=="function")for(O=De.call(O),De=0;!(Y=O.next()).done;)Y=Y.value,pe=xe+ae(Y,De++),fe+=A(Y,Q,$,pe,ie);else if(pe==="object"){if(typeof O.then=="function")return A(ce(O),Q,$,Y,ie);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return fe}function R(O,Q,$){if(O==null)return O;var Y=[],ie=0;return A(O,Y,"","",function(pe){return Q.call($,pe,ie++)}),Y}function P(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function($){(O._status===0||O._status===-1)&&(O._status=1,O._result=$)},function($){(O._status===0||O._status===-1)&&(O._status=2,O._result=$)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var re=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},le={map:R,forEach:function(O,Q,$){R(O,function(){Q.apply(this,arguments)},$)},count:function(O){var Q=0;return R(O,function(){Q++}),Q},toArray:function(O){return R(O,function(Q){return Q})||[]},only:function(O){if(!F(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Te.Activity=y,Te.Children=le,Te.Component=k,Te.Fragment=r,Te.Profiler=o,Te.PureComponent=C,Te.StrictMode=s,Te.Suspense=h,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Te.__COMPILER_RUNTIME={__proto__:null,c:function(O){return j.H.useMemoCache(O)}},Te.cache=function(O){return function(){return O.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(O,Q,$){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var Y=_({},O.props),ie=O.key;if(Q!=null)for(pe in Q.key!==void 0&&(ie=""+Q.key),Q)!D.call(Q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Q.ref===void 0||(Y[pe]=Q[pe]);var pe=arguments.length-2;if(pe===1)Y.children=$;else if(1<pe){for(var fe=Array(pe),xe=0;xe<pe;xe++)fe[xe]=arguments[xe+2];Y.children=fe}return W(O.type,ie,Y)},Te.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},Te.createElement=function(O,Q,$){var Y,ie={},pe=null;if(Q!=null)for(Y in Q.key!==void 0&&(pe=""+Q.key),Q)D.call(Q,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ie[Y]=Q[Y]);var fe=arguments.length-2;if(fe===1)ie.children=$;else if(1<fe){for(var xe=Array(fe),De=0;De<fe;De++)xe[De]=arguments[De+2];ie.children=xe}if(O&&O.defaultProps)for(Y in fe=O.defaultProps,fe)ie[Y]===void 0&&(ie[Y]=fe[Y]);return W(O,pe,ie)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(O){return{$$typeof:f,render:O}},Te.isValidElement=F,Te.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:P}},Te.memo=function(O,Q){return{$$typeof:m,type:O,compare:Q===void 0?null:Q}},Te.startTransition=function(O){var Q=j.T,$={};j.T=$;try{var Y=O(),ie=j.S;ie!==null&&ie($,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(H,re)}catch(pe){re(pe)}finally{Q!==null&&$.types!==null&&(Q.types=$.types),j.T=Q}},Te.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Te.use=function(O){return j.H.use(O)},Te.useActionState=function(O,Q,$){return j.H.useActionState(O,Q,$)},Te.useCallback=function(O,Q){return j.H.useCallback(O,Q)},Te.useContext=function(O){return j.H.useContext(O)},Te.useDebugValue=function(){},Te.useDeferredValue=function(O,Q){return j.H.useDeferredValue(O,Q)},Te.useEffect=function(O,Q){return j.H.useEffect(O,Q)},Te.useEffectEvent=function(O){return j.H.useEffectEvent(O)},Te.useId=function(){return j.H.useId()},Te.useImperativeHandle=function(O,Q,$){return j.H.useImperativeHandle(O,Q,$)},Te.useInsertionEffect=function(O,Q){return j.H.useInsertionEffect(O,Q)},Te.useLayoutEffect=function(O,Q){return j.H.useLayoutEffect(O,Q)},Te.useMemo=function(O,Q){return j.H.useMemo(O,Q)},Te.useOptimistic=function(O,Q){return j.H.useOptimistic(O,Q)},Te.useReducer=function(O,Q,$){return j.H.useReducer(O,Q,$)},Te.useRef=function(O){return j.H.useRef(O)},Te.useState=function(O){return j.H.useState(O)},Te.useSyncExternalStore=function(O,Q,$){return j.H.useSyncExternalStore(O,Q,$)},Te.useTransition=function(){return j.H.useTransition()},Te.version="19.2.1",Te}var sx;function tf(){return sx||(sx=1,$h.exports=AO()),$h.exports}var S=tf();const se=_l(S),hS=Wj({__proto__:null,default:se},[S]);var mS=S.createContext(void 0),jl=e=>{const t=S.useContext(mS);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jO=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(mS.Provider,{value:e,children:t})),pS=S.createContext(!1),gS=()=>S.useContext(pS);pS.Provider;function OO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var CO=S.createContext(OO()),yS=()=>S.useContext(CO),vS=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},bS=e=>{S.useEffect(()=>{e.clearReset()},[e])},xS=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||sS(r,[e.error,s])),qp=(e,t)=>t.state.data===void 0,wS=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},SS=(e,t)=>e.isLoading&&e.isFetching&&!t,Um=(e,t)=>e?.suspense&&t.isPending,Du=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function ES({queries:e,...t},r){const s=jl(r),o=gS(),c=yS(),u=S.useMemo(()=>e.map(_=>{const N=s.defaultQueryOptions(_);return N._optimisticResults=o?"isRestoring":"optimistic",N}),[e,s,o]);u.forEach(_=>{wS(_),vS(_,c)}),bS(c);const[f]=S.useState(()=>new EO(s,u,t)),[h,m,v]=f.getOptimisticResult(u,t.combine),y=!o&&t.subscribed!==!1;S.useSyncExternalStore(S.useCallback(_=>y?f.subscribe(at.batchCalls(_)):Dt,[f,y]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),S.useEffect(()=>{f.setQueries(u,t)},[u,t,f]);const w=h.some((_,N)=>Um(u[N],_))?h.flatMap((_,N)=>{const k=u[N];if(k){const L=new Al(s,k);if(Um(k,_))return Du(k,L,c);SS(_,o)&&Du(k,L,c)}return[]}):[];if(w.length>0)throw Promise.all(w);const T=h.find((_,N)=>{const k=u[N];return k&&xS({result:_,errorResetBoundary:c,throwOnError:k.throwOnError,query:s.getQueryCache().get(k.queryHash),suspense:k.suspense})});if(T?.error)throw T.error;return m(v())}function nf(e,t,r){const s=gS(),o=yS(),c=jl(r),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=s?"isRestoring":"optimistic",wS(u),vS(u,o),bS(o);const f=!c.getQueryCache().get(u.queryHash),[h]=S.useState(()=>new t(c,u)),m=h.getOptimisticResult(u),v=!s&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(y=>{const x=v?h.subscribe(at.batchCalls(y)):Dt;return h.updateResult(),x},[h,v]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),S.useEffect(()=>{h.setOptions(u)},[u,h]),Um(u,m))throw Du(u,h,o);if(xS({result:m,errorResetBoundary:o,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,m),u.experimental_prefetchInRender&&!fs&&SS(m,s)&&(f?Du(u,h,o):c.getQueryCache().get(u.queryHash)?.promise)?.catch(Dt).finally(()=>{h.updateResult()}),u.notifyOnChangeProps?m:h.trackResult(m)}function kO(e,t){return nf(e,Al,t)}function zO(e,t){return nf({...e,enabled:!0,suspense:!0,throwOnError:qp,placeholderData:void 0},Al,t)}function NO(e,t){return nf({...e,enabled:!0,suspense:!0,throwOnError:qp},fS,t)}function MO(e,t){return ES({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:qp,enabled:!0,placeholderData:void 0}))},t)}function RO(e,t){const r=jl(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function DO(e,t){const r=jl(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function PO(e,t){const r=jl(t),[s]=S.useState(()=>new wO(r,e));S.useEffect(()=>{s.setOptions(e)},[s,e]);const o=S.useSyncExternalStore(S.useCallback(u=>s.subscribe(at.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=S.useCallback((u,f)=>{s.mutate(u,f).catch(Dt)},[s]);if(o.error&&sS(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}function LO(e,t){return nf(e,fS,t)}function ds(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function UO(){return Object.create(null)}const VO=typeof Symbol=="function"&&!!Symbol.asyncIterator;function TS(e){return VO&&ds(e)&&Symbol.asyncIterator in e}var BO=Object.create,_S=Object.defineProperty,HO=Object.getOwnPropertyDescriptor,AS=Object.getOwnPropertyNames,qO=Object.getPrototypeOf,IO=Object.prototype.hasOwnProperty,Ol=(e,t)=>function(){return t||(0,e[AS(e)[0]])((t={exports:{}}).exports,t),t.exports},$O=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=AS(t),c=0,u=o.length,f;c<u;c++)f=o[c],!IO.call(e,f)&&f!==r&&_S(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(s=HO(t,f))||s.enumerable});return e},rf=(e,t,r)=>(r=e!=null?BO(qO(e)):{},$O(_S(r,"default",{value:e,enumerable:!0}),e));const jS=()=>{},ax=e=>{Object.freeze&&Object.freeze(e)};function OS(e,t,r){var s;const o=t.join(".");return(s=r[o])!==null&&s!==void 0||(r[o]=new Proxy(jS,{get(c,u){if(!(typeof u!="string"||u==="then"))return OS(e,[...t,u],r)},apply(c,u,f){const h=t[t.length-1];if(h==="valueOf"||h==="toString"||h==="toJSON")return`tRPC.proxy(${t.slice(0,-1).join(".")})`;let m={args:f,path:t};return h==="call"?m={args:f.length>=2?[f[1]]:[],path:t.slice(0,-1)}:h==="apply"&&(m={args:f.length>=2?f[1]:[],path:t.slice(0,-1)}),ax(m.args),ax(m.path),e(m)}})),r[o]}const sf=e=>OS(e,[],UO()),Ip=e=>new Proxy(jS,{get(t,r){if(r!=="then")return e(r)}});var CS=Ol({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(s){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,r(s)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ZO=Ol({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=CS().default;function s(o,c){if(r(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var f=u.call(o,c||"default");if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),GO=Ol({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=CS().default,s=ZO();function o(c){var u=s(c,"string");return r(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),kS=Ol({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=GO();function s(o,c,u){return(c=r(c))in o?Object.defineProperty(o,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[c]=u,o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),$p=Ol({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=kS();function s(c,u){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(c,m).enumerable})),f.push.apply(f,h)}return f}function o(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?s(Object(f),!0).forEach(function(h){r(c,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):s(Object(f)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(f,h))})}return c}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});rf($p());rf(kS());var eu=rf($p());function KO(e,t){if("error"in e){const s=t.deserialize(e.error);return{ok:!1,error:(0,eu.default)((0,eu.default)({},e),{},{error:s})}}return{ok:!0,result:(0,eu.default)((0,eu.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Zh=class extends Error{constructor(){super("Unable to transform response from server")}};function QO(e,t){let r;try{r=KO(e,t)}catch{throw new Zh}if(!r.ok&&(!ds(r.error.error)||typeof r.error.error.code!="number"))throw new Zh;if(r.ok&&!ds(r.result))throw new Zh;return r}rf($p());function af(e){const t={subscribe(r){let s=null,o=!1,c=!1,u=!1;function f(){if(s===null){u=!0;return}c||(c=!0,typeof s=="function"?s():s&&s.unsubscribe())}return s=e({next(h){var m;o||(m=r.next)===null||m===void 0||m.call(r,h)},error(h){var m;o||(o=!0,(m=r.error)===null||m===void 0||m.call(r,h),f())},complete(){var h;o||(o=!0,(h=r.complete)===null||h===void 0||h.call(r),f())}}),u&&f(),{unsubscribe:f}},pipe(...r){return r.reduce(FO,t)}};return t}function FO(e,t){return t(e)}function YO(e){const t=new AbortController;return new Promise((s,o)=>{let c=!1;function u(){c||(c=!0,f.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const f=e.subscribe({next(h){c=!0,s(h),u()},error(h){o(h)},complete(){t.abort(),u()}})})}var XO=Object.create,zS=Object.defineProperty,WO=Object.getOwnPropertyDescriptor,NS=Object.getOwnPropertyNames,JO=Object.getPrototypeOf,eC=Object.prototype.hasOwnProperty,Ci=(e,t)=>function(){return t||(0,e[NS(e)[0]])((t={exports:{}}).exports,t),t.exports},tC=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=NS(t),c=0,u=o.length,f;c<u;c++)f=o[c],!eC.call(e,f)&&f!==r&&zS(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(s=WO(t,f))||s.enumerable});return e},vs=(e,t,r)=>(r=e!=null?XO(JO(e)):{},tC(t||!e||!e.__esModule?zS(r,"default",{value:e,enumerable:!0}):r,e)),nC=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function r(s,o){if(s==null)return{};var c={};for(var u in s)if({}.hasOwnProperty.call(s,u)){if(o.includes(u))continue;c[u]=s[u]}return c}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),rC=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=nC();function s(o,c){if(o==null)return{};var u,f,h=r(o,c);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);for(f=0;f<m.length;f++)u=m[f],c.includes(u)||{}.propertyIsEnumerable.call(o,u)&&(h[u]=o[u])}return h}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),MS=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(s){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,r(s)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),iC=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=MS().default;function s(o,c){if(r(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var f=u.call(o,c||"default");if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),sC=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=MS().default,s=iC();function o(c){var u=s(c,"string");return r(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),aC=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=sC();function s(o,c,u){return(c=r(c))in o?Object.defineProperty(o,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[c]=u,o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Cl=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=aC();function s(c,u){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(c,m).enumerable})),f.push.apply(f,h)}return f}function o(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?s(Object(f),!0).forEach(function(h){r(c,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):s(Object(f)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(f,h))})}return c}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),oC=vs(rC(),1),ox=vs(Cl(),1);const lC=["cursor","direction"];function nr(e,t,r){const s=e.flatMap(o=>o.split("."));if(!t&&(!r||r==="any"))return s.length?[s]:[];if(r==="infinite"&&ds(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:c}=t,u=(0,oC.default)(t,lC);return[s,{input:u,type:"infinite"}]}return[s,(0,ox.default)((0,ox.default)({},typeof t<"u"&&t!==pn&&{input:t}),r&&r!=="any"&&{type:r})]}function bu(e){return nr(e,void 0,"any")}var cC=Object.create,RS=Object.defineProperty,uC=Object.getOwnPropertyDescriptor,DS=Object.getOwnPropertyNames,fC=Object.getPrototypeOf,dC=Object.prototype.hasOwnProperty,cr=(e,t)=>function(){return t||(0,e[DS(e)[0]])((t={exports:{}}).exports,t),t.exports},hC=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=DS(t),c=0,u=o.length,f;c<u;c++)f=o[c],!dC.call(e,f)&&f!==r&&RS(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(s=uC(t,f))||s.enumerable});return e},ut=(e,t,r)=>(r=e!=null?cC(fC(e)):{},hC(t||!e||!e.__esModule?RS(r,"default",{value:e,enumerable:!0}):r,e)),PS=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(s){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,r(s)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),mC=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=PS().default;function s(o,c){if(r(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var f=u.call(o,c||"default");if(r(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),pC=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=PS().default,s=mC();function o(c){var u=s(c,"string");return r(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),bs=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=pC();function s(o,c,u){return(c=r(c))in o?Object.defineProperty(o,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[c]=u,o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Kn=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=bs();function s(c,u){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(c,m).enumerable})),f.push.apply(f,h)}return f}function o(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?s(Object(f),!0).forEach(function(h){r(c,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):s(Object(f)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(f,h))})}return c}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function gC(e){return t=>{let r=0,s=null;const o=[];function c(){s||(s=t.subscribe({next(f){for(const m of o){var h;(h=m.next)===null||h===void 0||h.call(m,f)}},error(f){for(const m of o){var h;(h=m.error)===null||h===void 0||h.call(m,f)}},complete(){for(const h of o){var f;(f=h.complete)===null||f===void 0||f.call(h)}}}))}function u(){if(r===0&&s){const f=s;s=null,f.unsubscribe()}}return af(f=>(r++,o.push(f),c(),{unsubscribe(){r--,u();const h=o.findIndex(m=>m===f);h>-1&&o.splice(h,1)}}))}}function yC(e){let t=e;const r=[],s=u=>{t!==void 0&&u.next(t),r.push(u)},o=u=>{r.splice(r.indexOf(u),1)},c=af(u=>(s(u),()=>{o(u)}));return c.next=u=>{if(t!==u){t=u;for(const f of r)f.next(u)}},c.get=()=>t,c}function vC(e){return af(t=>{function r(o=0,c=e.op){const u=e.links[o];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:c,next(h){return r(o+1,h)}})}return r().subscribe(t)})}var tu=ut(bs(),1),ha=ut(Kn(),1);function bC(e){return e instanceof Pu}function xC(e){return ds(e)&&ds(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function wC(e,t){return typeof e=="string"?e:ds(e)&&typeof e.message=="string"?e.message:t}var Pu=class xu extends Error{constructor(t,r){var s,o;const c=r?.cause;super(t,{cause:c}),(0,tu.default)(this,"cause",void 0),(0,tu.default)(this,"shape",void 0),(0,tu.default)(this,"data",void 0),(0,tu.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=c,this.shape=r==null||(s=r.result)===null||s===void 0?void 0:s.error,this.data=r==null||(o=r.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,xu.prototype)}static from(t,r={}){const s=t;return bC(s)?(r.meta&&(s.meta=(0,ha.default)((0,ha.default)({},s.meta),r.meta)),s):xC(s)?new xu(s.error.message,(0,ha.default)((0,ha.default)({},r),{},{result:s,cause:r.cause})):new xu(wC(s,"Unknown error"),(0,ha.default)((0,ha.default)({},r),{},{cause:s}))}};function SC(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const lx=e=>typeof e=="function";function EC(e){if(e)return e;if(typeof window<"u"&&lx(window.fetch))return window.fetch;if(typeof globalThis<"u"&&lx(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var tl=ut(Kn());function TC(e){return{url:e.url.toString(),fetch:e.fetch,transformer:SC(e.transformer),methodOverride:e.methodOverride}}function _C(e){const t={};for(let r=0;r<e.length;r++){const s=e[r];t[r]=s}return t}const AC={query:"GET",mutation:"POST",subscription:"PATCH"};function LS(e){return"input"in e?e.transformer.input.serialize(e.input):_C(e.inputs.map(t=>e.transformer.input.serialize(t)))}const US=e=>{const t=e.url.split("?");let s=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const c=LS(e);c!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(c))}`)}return o.length&&(s+="?"+o.join("&")),s},jC=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=LS(e);return t!==void 0?JSON.stringify(t):void 0},OC=e=>NC((0,tl.default)((0,tl.default)({},e),{},{contentTypeHeader:"application/json",getUrl:US,getBody:jC}));var CC=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const kC=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new CC};async function zC(e){var t,r;kC(e.signal);const s=e.getUrl(e),o=e.getBody(e),c=(t=e.methodOverride)!==null&&t!==void 0?t:AC[e.type],u=await(async()=>{const h=await e.headers();return Symbol.iterator in h?Object.fromEntries(h):h})(),f=(0,tl.default)((0,tl.default)((0,tl.default)({},e.contentTypeHeader&&c!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[(r=e.trpcAcceptHeaderKey)!==null&&r!==void 0?r:"trpc-accept"]:e.trpcAcceptHeader}:void 0),u);return EC(e.fetch)(s,{method:c,signal:e.signal,body:o,headers:f})}async function NC(e){const t={},r=await zC(e);t.response=r;const s=await r.json();return t.responseJSON=s,{json:s,meta:t}}ut(Kn(),1);const cx=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ux(e){let t=null,r=null;const s=()=>{clearTimeout(r),r=null,t=null};function o(f){const h=[[]];let m=0;for(;;){const x=f[m];if(!x)break;const w=h[h.length-1];if(x.aborted){var v;(v=x.reject)===null||v===void 0||v.call(x,new Error("Aborted")),m++;continue}if(e.validate(w.concat(x).map(_=>_.key))){w.push(x),m++;continue}if(w.length===0){var y;(y=x.reject)===null||y===void 0||y.call(x,new Error("Input is too big for a single dispatch")),m++;continue}h.push([])}return h}function c(){const f=o(t);s();for(const h of f){if(!h.length)continue;const m={items:h};for(const y of h)y.batch=m;e.fetch(m.items.map(y=>y.key)).then(async y=>{await Promise.all(y.map(async(w,T)=>{const _=m.items[T];try{var N;const L=await Promise.resolve(w);(N=_.resolve)===null||N===void 0||N.call(_,L)}catch(L){var k;(k=_.reject)===null||k===void 0||k.call(_,L)}_.batch=null,_.reject=null,_.resolve=null}));for(const w of m.items){var x;(x=w.reject)===null||x===void 0||x.call(w,new Error("Missing result")),w.batch=null}}).catch(y=>{for(const w of m.items){var x;(x=w.reject)===null||x===void 0||x.call(w,y),w.batch=null}})}}function u(f){var h;const m={aborted:!1,key:f,batch:null,resolve:cx,reject:cx},v=new Promise((y,x)=>{var w;m.reject=x,m.resolve=y,(w=t)!==null&&w!==void 0||(t=[]),t.push(m)});return(h=r)!==null&&h!==void 0||(r=setTimeout(c)),v}return{load:u}}function MC(...e){const t=new AbortController,r=e.length;let s=0;const o=()=>{++s===r&&t.abort()};for(const c of e)c?.aborted?o():c?.addEventListener("abort",o,{once:!0});return t.signal}var nu=ut(Kn(),1);function RC(e){var t,r;const s=TC(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,c=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const u=v=>({validate(y){if(o===1/0&&c===1/0)return!0;if(y.length>c)return!1;const x=y.map(_=>_.path).join(","),w=y.map(_=>_.input);return US((0,nu.default)((0,nu.default)({},s),{},{type:v,path:x,inputs:w,signal:null})).length<=o},async fetch(y){const x=y.map(L=>L.path).join(","),w=y.map(L=>L.input),T=MC(...y.map(L=>L.signal)),_=await OC((0,nu.default)((0,nu.default)({},s),{},{path:x,inputs:w,type:v,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:y}):e.headers:{}},signal:T}));return(Array.isArray(_.json)?_.json:y.map(()=>_.json)).map(L=>({meta:_.meta,json:L}))}}),f=ux(u("query")),h=ux(u("mutation")),m={query:f,mutation:h};return({op:v})=>af(y=>{/* istanbul ignore if -- @preserve */if(v.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const w=m[v.type].load(v);let T;return w.then(_=>{T=_;const N=QO(_.json,s.transformer.output);if(!N.ok){y.error(Pu.from(N.error,{meta:_.meta}));return}y.next({context:_.meta,result:N.result}),y.complete()}).catch(_=>{y.error(Pu.from(_,{meta:T?.meta}))}),()=>{}})}}ut(Kn(),1);const VS=(e,...t)=>typeof e=="function"?e(...t):e;ut(bs(),1);function DC(){let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),resolve:e,reject:t}}async function PC(e){const t=await VS(e.url);if(!e.connectionParams)return t;const s=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+s}async function LC(e,t){const r={method:"connectionParams",data:await VS(e)};return t.encode(r)}ut(bs(),1);var yi=ut(bs(),1);function UC(e){const{promise:t,resolve:r,reject:s}=DC();return e.addEventListener("open",()=>{e.removeEventListener("error",s),r()}),e.addEventListener("error",s),t}function VC(e,{intervalMs:t,pongTimeoutMs:r}){let s,o;function c(){s=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},r)},t)}function u(){clearTimeout(s),c()}function f(){clearTimeout(o),u()}e.addEventListener("open",c),e.addEventListener("message",({data:h})=>{clearTimeout(s),c(),h==="PONG"&&f()}),e.addEventListener("close",()=>{clearTimeout(s),clearTimeout(o)})}var BC=class Vm{constructor(t){var r;if((0,yi.default)(this,"id",++Vm.connectCount),(0,yi.default)(this,"WebSocketPonyfill",void 0),(0,yi.default)(this,"urlOptions",void 0),(0,yi.default)(this,"keepAliveOpts",void 0),(0,yi.default)(this,"encoder",void 0),(0,yi.default)(this,"wsObservable",yC(null)),(0,yi.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Vm.connectCount;const r=PC(t.urlOptions).then(s=>new t.WebSocketPonyfill(s));t.openPromise=r.then(async s=>{t.ws=s,s.binaryType="arraybuffer",s.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&VC(s,t.keepAliveOpts),s.addEventListener("close",()=>{t.ws===s&&(t.ws=null)}),await UC(s),t.urlOptions.connectionParams&&s.send(await LC(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,yi.default)(BC,"connectCount",0);ut(bs(),1);ut(Kn(),1);var Gh=ut(bs(),1),fx=ut(Kn(),1),of=class{constructor(e){(0,Gh.default)(this,"links",void 0),(0,Gh.default)(this,"runtime",void 0),(0,Gh.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return vC({links:this.links,op:(0,fx.default)((0,fx.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(gC())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await YO(r)).result.data}catch(r){throw Pu.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(o){switch(o.result.type){case"state":{var c;(c=r.onConnectionStateChange)===null||c===void 0||c.call(r,o.result);break}case"started":{var u;(u=r.onStarted)===null||u===void 0||u.call(r,{context:o.context});break}case"stopped":{var f;(f=r.onStopped)===null||f===void 0||f.call(r);break}case"data":case void 0:{var h;(h=r.onData)===null||h===void 0||h.call(r,o.result.data);break}}},error(o){var c;(c=r.onError)===null||c===void 0||c.call(r,o)},complete(){var o;(o=r.onComplete)===null||o===void 0||o.call(r)}})}};const BS=Symbol.for("trpc_untypedClient"),HC={query:"query",mutate:"mutation",subscribe:"subscription"},qC=e=>HC[e];function HS(e){const t=sf(({path:r,args:s})=>{const o=[...r],c=qC(o.pop()),u=o.join(".");return e[c](u,...s)});return Ip(r=>r===BS?e:t[r])}function IC(e){const t=new of(e);return HS(t)}function Zp(e){return e[BS]}ut(Kn(),1);ut(Kn(),1);var $C=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(o){var c,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(c=o[u])!=null)return c.call(o);if(f&&(c=o[f])!=null)return new s(c.call(o));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function s(o){function c(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return s=function(f){this.s=f,this.n=f.next},s.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):c(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):c(h.apply(this.s,arguments))}},new s(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});ut($C(),1);ut(Kn(),1);var ZC=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var s=typeof SuppressedError=="function"?SuppressedError:function(f,h){var m=Error();return m.name="SuppressedError",m.error=f,m.suppressed=h,m},o={},c=[];function u(f,h){if(h!=null){if(Object(h)!==h)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(f)var m=h[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(m===void 0&&(m=h[Symbol.dispose||Symbol.for("Symbol.dispose")],f))var v=m;if(typeof m!="function")throw new TypeError("Object is not disposable.");v&&(m=function(){try{v.call(h)}catch(x){return Promise.reject(x)}}),c.push({v:h,d:m,a:f})}else f&&c.push({d:h,a:f});return h}return{e:o,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var h,m=this.e,v=0;function y(){for(;h=c.pop();)try{if(!h.a&&v===1)return v=0,c.push(h),Promise.resolve().then(y);if(h.d){var w=h.d.call(h.v);if(h.a)return v|=2,Promise.resolve(w).then(y,x)}else v|=1}catch(T){return x(T)}if(v===1)return m!==o?Promise.reject(m):Promise.resolve();if(m!==o)throw m}function x(w){return m=m!==o?new s(w,m):w,y()}return y()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),qS=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(s,o){this.v=s,this.k=o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),GC=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=qS();function s(o){return new r(o,0)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),KC=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=qS();function s(c){return function(){return new o(c.apply(this,arguments))}}function o(c){var u,f;function h(v,y){try{var x=c[v](y),w=x.value,T=w instanceof r;Promise.resolve(T?w.v:w).then(function(_){if(T){var N=v==="return"?"return":"next";if(!w.k||_.done)return h(N,_);_=c[N](_).value}m(x.done?"return":"normal",_)},function(_){h("throw",_)})}catch(_){m("throw",_)}}function m(v,y){switch(v){case"return":u.resolve({value:y,done:!0});break;case"throw":u.reject(y);break;default:u.resolve({value:y,done:!1})}(u=u.next)?h(u.key,u.arg):f=null}this._invoke=function(v,y){return new Promise(function(x,w){var T={key:v,arg:y,resolve:x,reject:w,next:null};f?f=f.next=T:(u=f=T,h(v,y))})},typeof c.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(c){return this._invoke("next",c)},o.prototype.throw=function(c){return this._invoke("throw",c)},o.prototype.return=function(c){return this._invoke("return",c)},t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});ut(ZC(),1);ut(GC(),1);ut(KC(),1);ut(Kn(),1);function QC(e){return sf(({path:t,args:r})=>{var s;const o=[...t],c=o.pop();if(c==="useMutation")return e[c](o,...r);if(c==="_def")return{path:o};const[u,...f]=r,h=(s=f[0])!==null&&s!==void 0?s:{};return e[c](o,u,h)})}var Kh;const FC=["client","ssrContext","ssrState","abortOnUnmount"],YC=(Kh=S.createContext)===null||Kh===void 0?void 0:Kh.call(hS,null),XC=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function WC(e){return sf(t=>{const r=[...t.path],s=r.pop(),o=[...t.args],c=o.shift(),u=XC(s),f=nr(r,c,u);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(r,f,o[0]),queryOptions:()=>e.queryOptions(r,f,...o),fetch:()=>e.fetchQuery(f,...o),fetchInfinite:()=>e.fetchInfiniteQuery(f,o[0]),prefetch:()=>e.prefetchQuery(f,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(f,o[0]),ensureData:()=>e.ensureQueryData(f,...o),invalidate:()=>e.invalidateQueries(f,...o),reset:()=>e.resetQueries(f,...o),refetch:()=>e.refetchQueries(f,...o),cancel:()=>e.cancelQuery(f,...o),setData:()=>{e.setQueryData(f,o[0],o[1])},setQueriesData:()=>e.setQueriesData(f,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(f,o[0],o[1])},getData:()=>e.getQueryData(f),getInfiniteData:()=>e.getInfiniteQueryData(f),setMutationDefaults:()=>e.setMutationDefaults(bu(r),c),getMutationDefaults:()=>e.getMutationDefaults(bu(r)),isMutating:()=>e.isMutating({mutationKey:bu(r)})}[s]()})}function JC(e){const t=HS(e.client),r=WC(e);return Ip(s=>{const o=s;return o==="client"?t:FC.includes(o)?e[o]:r[s]})}var ek=vs(Cl(),1);function dx(e){const t=e instanceof of?e:Zp(e);return sf(r=>{const s=r.path,o=s.join("."),[c,u]=r.args;return(0,ek.default)({queryKey:nr(s,c,"query"),queryFn:()=>t.query(o,c,u?.trpc)},u)})}var Qh=vs(Cl(),1);function qt(e,t,r){var s;const o=e[0];let c=(s=e[1])===null||s===void 0?void 0:s.input;if(r){var u;c=(0,Qh.default)((0,Qh.default)((0,Qh.default)({},(u=c)!==null&&u!==void 0?u:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[o.join("."),c,t?.trpc]}var tk=Ci({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(o){var c,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(c=o[u])!=null)return c.call(o);if(f&&(c=o[f])!=null)return new s(c.call(o));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function s(o){function c(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return s=function(f){this.s=f,this.n=f.next},s.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):c(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):c(h.apply(this.s,arguments))}},new s(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),nk=vs(tk(),1);function Bm(e){return{path:e.path.join(".")}}function Go(e){const t=Bm(e);return S.useMemo(()=>t,[t])}async function IS(e,t,r){const o=t.getQueryCache().build(t,{queryKey:r});o.setState({data:[],status:"success"});const c=[];var u=!1,f=!1,h;try{for(var m=(0,nk.default)(e),v;u=!(v=await m.next()).done;u=!1){const y=v.value;c.push(y),o.setState({data:[...c]})}}catch(y){f=!0,h=y}finally{try{u&&m.return!=null&&await m.return()}finally{if(f)throw h}}return c}var Ve=vs(Cl(),1);function rk(e){const{client:t,queryClient:r}=e,s=t instanceof of?t:Zp(t);return{infiniteQueryOptions:(o,c,u)=>{var f,h;const m=((f=c[1])===null||f===void 0?void 0:f.input)===pn,v=async y=>{var x;const w=(0,Ve.default)((0,Ve.default)({},u),{},{trpc:(0,Ve.default)((0,Ve.default)({},u?.trpc),!(u==null||(x=u.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:y.signal}:{signal:null})});return await s.query(...qt(c,w,{direction:y.direction,pageParam:y.pageParam}))};return Object.assign((0,Ve.default)((0,Ve.default)({},u),{},{initialData:u?.initialData,queryKey:c,queryFn:m?pn:v,initialPageParam:(h=u?.initialCursor)!==null&&h!==void 0?h:null}),{trpc:Bm({path:o})})},queryOptions:(o,c,u)=>{var f;const h=((f=c[1])===null||f===void 0?void 0:f.input)===pn,m=async v=>{var y;const x=(0,Ve.default)((0,Ve.default)({},u),{},{trpc:(0,Ve.default)((0,Ve.default)({},u?.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:v.signal}:{signal:null})}),w=await s.query(...qt(c,x));return TS(w)?IS(w,r,c):w};return Object.assign((0,Ve.default)((0,Ve.default)({},u),{},{initialData:u?.initialData,queryKey:c,queryFn:h?pn:m}),{trpc:Bm({path:o})})},fetchQuery:(o,c)=>r.fetchQuery((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o,queryFn:()=>s.query(...qt(o,c))})),fetchInfiniteQuery:(o,c)=>{var u;return r.fetchInfiniteQuery((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o,queryFn:({pageParam:f,direction:h})=>s.query(...qt(o,c,{pageParam:f,direction:h})),initialPageParam:(u=c?.initialCursor)!==null&&u!==void 0?u:null}))},prefetchQuery:(o,c)=>r.prefetchQuery((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o,queryFn:()=>s.query(...qt(o,c))})),prefetchInfiniteQuery:(o,c)=>{var u;return r.prefetchInfiniteQuery((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o,queryFn:({pageParam:f,direction:h})=>s.query(...qt(o,c,{pageParam:f,direction:h})),initialPageParam:(u=c?.initialCursor)!==null&&u!==void 0?u:null}))},ensureQueryData:(o,c)=>r.ensureQueryData((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o,queryFn:()=>s.query(...qt(o,c))})),invalidateQueries:(o,c,u)=>r.invalidateQueries((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o}),u),resetQueries:(o,c,u)=>r.resetQueries((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o}),u),refetchQueries:(o,c,u)=>r.refetchQueries((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o}),u),cancelQuery:(o,c)=>r.cancelQueries({queryKey:o},c),setQueryData:(o,c,u)=>r.setQueryData(o,c,u),setQueriesData:(o,c,u,f)=>r.setQueriesData((0,Ve.default)((0,Ve.default)({},c),{},{queryKey:o}),u,f),getQueryData:o=>r.getQueryData(o),setInfiniteQueryData:(o,c,u)=>r.setQueryData(o,c,u),getInfiniteQueryData:o=>r.getQueryData(o),setMutationDefaults:(o,c)=>{const u=o[0],f=h=>s.mutation(...qt([u,{input:h}],e));return r.setMutationDefaults(o,typeof c=="function"?c({canonicalMutationFn:f}):c)},getMutationDefaults:o=>r.getMutationDefaults(o),isMutating:o=>r.isMutating((0,Ve.default)((0,Ve.default)({},o),{},{exact:!0}))}}var ue=vs(Cl());const hx=(e,t)=>new Proxy(e,{get(s,o){return t(o),s[o]}});function ik(e){var t,r;const s=(t=void 0)!==null&&t!==void 0?t:U=>U.originalFn(),o=(r=void 0)!==null&&r!==void 0?r:YC,c=IC,u=U=>{var H;const{abortOnUnmount:j=!1,queryClient:D,ssrContext:W}=U,[te,F]=S.useState((H=U.ssrState)!==null&&H!==void 0?H:!1),G=U.client instanceof of?U.client:Zp(U.client),oe=S.useMemo(()=>rk({client:G,queryClient:D}),[G,D]),ae=S.useMemo(()=>(0,ue.default)({abortOnUnmount:j,queryClient:D,client:G,ssrContext:W??null,ssrState:te},oe),[j,G,oe,D,W,te]);return S.useEffect(()=>{F(ce=>ce?"mounted":!1)},[]),g.jsx(o.Provider,{value:ae,children:U.children})};function f(){const U=S.useContext(o);if(!U)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return U}function h(U,H){var j;const{queryClient:D,ssrState:W}=f();return W&&W!=="mounted"&&((j=D.getQueryCache().find({queryKey:U}))===null||j===void 0?void 0:j.state.status)==="error"?(0,ue.default)({retryOnMount:!1},H):H}function m(U,H,j){var D,W,te,F,G;const oe=f(),{abortOnUnmount:ae,client:ce,ssrState:A,queryClient:R,prefetchQuery:P}=oe,re=nr(U,H,"query"),le=R.getQueryDefaults(re),O=H===pn;typeof window>"u"&&A==="prepass"&&(j==null||(D=j.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((W=j?.enabled)!==null&&W!==void 0?W:le?.enabled)!==!1&&!O&&!R.getQueryCache().find({queryKey:re})&&P(re,j);const Q=h(re,(0,ue.default)((0,ue.default)({},le),j)),$=(te=(F=j==null||(G=j.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&te!==void 0?te:ae,Y=kO((0,ue.default)((0,ue.default)({},Q),{},{queryKey:re,queryFn:O?H:async ie=>{const pe=(0,ue.default)((0,ue.default)({},Q),{},{trpc:(0,ue.default)((0,ue.default)({},Q?.trpc),$?{signal:ie.signal}:{signal:null})}),fe=await ce.query(...qt(re,pe));return TS(fe)?IS(fe,R,re):fe}}),R);return Y.trpc=Go({path:U}),Y}function v(U,H,j){var D,W,te;const F=f(),G=nr(U,H,"query"),oe=H===pn,ae=(D=(W=j==null||(te=j.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&D!==void 0?D:F.abortOnUnmount;RO((0,ue.default)((0,ue.default)({},j),{},{queryKey:G,queryFn:oe?H:ce=>{const A={trpc:(0,ue.default)((0,ue.default)({},j?.trpc),ae?{signal:ce.signal}:{})};return F.client.query(...qt(G,A))}}))}function y(U,H,j){var D,W,te;const F=f(),G=nr(U,H,"query"),oe=(D=(W=j==null||(te=j.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&D!==void 0?D:F.abortOnUnmount,ae=zO((0,ue.default)((0,ue.default)({},j),{},{queryKey:G,queryFn:ce=>{const A=(0,ue.default)((0,ue.default)({},j),{},{trpc:(0,ue.default)((0,ue.default)({},j?.trpc),oe?{signal:ce.signal}:{signal:null})});return F.client.query(...qt(G,A))}}),F.queryClient);return ae.trpc=Go({path:U}),[ae.data,ae]}function x(U,H){const{client:j,queryClient:D}=f(),W=bu(U),te=D.defaultMutationOptions(D.getMutationDefaults(W)),F=PO((0,ue.default)((0,ue.default)({},H),{},{mutationKey:W,mutationFn:G=>j.mutation(...qt([U,{input:G}],H)),onSuccess(...G){var oe,ae;return s({originalFn:()=>{var A,R,P;return(A=H==null||(R=H.onSuccess)===null||R===void 0?void 0:R.call(H,...G))!==null&&A!==void 0?A:te==null||(P=te.onSuccess)===null||P===void 0?void 0:P.call(te,...G)},queryClient:D,meta:(oe=(ae=H?.meta)!==null&&ae!==void 0?ae:te?.meta)!==null&&oe!==void 0?oe:{}})}}),D);return F.trpc=Go({path:U}),F}const w={data:void 0,error:null,status:"idle"},T={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(U,H,j){var D;const W=(D=j?.enabled)!==null&&D!==void 0?D:H!==pn,te=Ei(nr(U,H,"any")),{client:F}=f(),G=S.useRef(j);S.useEffect(()=>{G.current=j});const[oe]=S.useState(new Set([])),ae=S.useCallback(O=>{oe.add(O)},[oe]),ce=S.useRef(null),A=S.useCallback(O=>{const Q=P.current,$=P.current=O(Q);let Y=!1;for(const ie of oe)if(Q[ie]!==$[ie]){Y=!0;break}Y&&le(hx($,ae))},[ae,oe]),R=S.useCallback(()=>{var O;if((O=ce.current)===null||O===void 0||O.unsubscribe(),!W){A(()=>(0,ue.default)((0,ue.default)({},w),{},{reset:R}));return}A(()=>(0,ue.default)((0,ue.default)({},T),{},{reset:R}));const Q=F.subscription(U.join("."),H??void 0,{onStarted:()=>{var $,Y;($=(Y=G.current).onStarted)===null||$===void 0||$.call(Y),A(ie=>(0,ue.default)((0,ue.default)({},ie),{},{status:"pending",error:null}))},onData:$=>{var Y,ie;(Y=(ie=G.current).onData)===null||Y===void 0||Y.call(ie,$),A(pe=>(0,ue.default)((0,ue.default)({},pe),{},{status:"pending",data:$,error:null}))},onError:$=>{var Y,ie;(Y=(ie=G.current).onError)===null||Y===void 0||Y.call(ie,$),A(pe=>(0,ue.default)((0,ue.default)({},pe),{},{status:"error",error:$}))},onConnectionStateChange:$=>{A(Y=>{switch($.state){case"idle":return(0,ue.default)((0,ue.default)({},Y),{},{status:$.state,error:null,data:void 0});case"connecting":return(0,ue.default)((0,ue.default)({},Y),{},{error:$.error,status:$.state});case"pending":return Y}})},onComplete:()=>{var $,Y;($=(Y=G.current).onComplete)===null||$===void 0||$.call(Y),A(ie=>(0,ue.default)((0,ue.default)({},ie),{},{status:"idle",error:null,data:void 0}))}});ce.current=Q},[F,te,W,A]);S.useEffect(()=>(R(),()=>{var O;(O=ce.current)===null||O===void 0||O.unsubscribe()}),[R]);const P=S.useRef(W?(0,ue.default)((0,ue.default)({},T),{},{reset:R}):(0,ue.default)((0,ue.default)({},w),{},{reset:R})),[re,le]=S.useState(hx(P.current,ae));return re}function N(U,H,j){var D,W,te,F,G;const{client:oe,ssrState:ae,prefetchInfiniteQuery:ce,queryClient:A,abortOnUnmount:R}=f(),P=nr(U,H,"infinite"),re=A.getQueryDefaults(P),le=H===pn;typeof window>"u"&&ae==="prepass"&&(j==null||(D=j.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((W=j?.enabled)!==null&&W!==void 0?W:re?.enabled)!==!1&&!le&&!A.getQueryCache().find({queryKey:P})&&ce(P,(0,ue.default)((0,ue.default)({},re),j));const O=h(P,(0,ue.default)((0,ue.default)({},re),j)),Q=(te=j==null||(F=j.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&te!==void 0?te:R,$=LO((0,ue.default)((0,ue.default)({},O),{},{initialPageParam:(G=j.initialCursor)!==null&&G!==void 0?G:null,persister:j.persister,queryKey:P,queryFn:le?H:Y=>{var ie;const pe=(0,ue.default)((0,ue.default)({},O),{},{trpc:(0,ue.default)((0,ue.default)({},O?.trpc),Q?{signal:Y.signal}:{signal:null})});return oe.query(...qt(P,pe,{pageParam:(ie=Y.pageParam)!==null&&ie!==void 0?ie:j.initialCursor,direction:Y.direction}))}}),A);return $.trpc=Go({path:U}),$}function k(U,H,j){var D,W,te;const F=f(),G=nr(U,H,"infinite"),oe=F.queryClient.getQueryDefaults(G),ae=H===pn,ce=h(G,(0,ue.default)((0,ue.default)({},oe),j)),A=(D=j==null||(W=j.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&D!==void 0?D:F.abortOnUnmount;DO((0,ue.default)((0,ue.default)({},j),{},{initialPageParam:(te=j.initialCursor)!==null&&te!==void 0?te:null,queryKey:G,queryFn:ae?H:R=>{var P;const re=(0,ue.default)((0,ue.default)({},ce),{},{trpc:(0,ue.default)((0,ue.default)({},ce?.trpc),A?{signal:R.signal}:{})});return F.client.query(...qt(G,re,{pageParam:(P=R.pageParam)!==null&&P!==void 0?P:j.initialCursor,direction:R.direction}))}}))}function L(U,H,j){var D,W,te;const F=f(),G=nr(U,H,"infinite"),oe=F.queryClient.getQueryDefaults(G),ae=h(G,(0,ue.default)((0,ue.default)({},oe),j)),ce=(D=j==null||(W=j.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&D!==void 0?D:F.abortOnUnmount,A=NO((0,ue.default)((0,ue.default)({},j),{},{initialPageParam:(te=j.initialCursor)!==null&&te!==void 0?te:null,queryKey:G,queryFn:R=>{var P;const re=(0,ue.default)((0,ue.default)({},ae),{},{trpc:(0,ue.default)((0,ue.default)({},ae?.trpc),ce?{signal:R.signal}:{})});return F.client.query(...qt(G,re,{pageParam:(P=R.pageParam)!==null&&P!==void 0?P:j.initialCursor,direction:R.direction}))}}),F.queryClient);return A.trpc=Go({path:U}),[A.data,A]}return{Provider:u,createClient:c,useContext:f,useUtils:f,useQuery:m,usePrefetchQuery:v,useSuspenseQuery:y,useQueries:(U,H)=>{const{ssrState:j,queryClient:D,prefetchQuery:W,client:te}=f(),F=dx(te),G=U(F);if(typeof window>"u"&&j==="prepass")for(const ae of G){var oe;const ce=ae;((oe=ce.trpc)===null||oe===void 0?void 0:oe.ssr)!==!1&&!D.getQueryCache().find({queryKey:ce.queryKey})&&W(ce.queryKey,ce)}return ES({queries:G.map(ae=>(0,ue.default)((0,ue.default)({},ae),{},{queryKey:ae.queryKey})),combine:H?.combine},D)},useSuspenseQueries:U=>{const{queryClient:H,client:j}=f(),D=dx(j),W=U(D),te=MO({queries:W.map(F=>(0,ue.default)((0,ue.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},H);return[te.map(F=>F.data),te]},useMutation:x,useSubscription:_,useInfiniteQuery:N,usePrefetchInfiniteQuery:k,useSuspenseInfiniteQuery:L}}function sk(e){const t=QC(e);return Ip(r=>r==="useContext"||r==="useUtils"?()=>{const s=e.useUtils();return S.useMemo(()=>JC(s),[s])}:e.hasOwnProperty(r)?e[r]:t[r])}function ak(e){const t=ik();return sk(t)}const Si=ak();var Fh={exports:{}},Ko={},Yh={exports:{}},Xh={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var mx;function ok(){return mx||(mx=1,(function(e){function t(A,R){var P=A.length;A.push(R);e:for(;0<P;){var re=P-1>>>1,le=A[re];if(0<o(le,R))A[re]=R,A[P]=le,P=re;else break e}}function r(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var R=A[0],P=A.pop();if(P!==R){A[0]=P;e:for(var re=0,le=A.length,O=le>>>1;re<O;){var Q=2*(re+1)-1,$=A[Q],Y=Q+1,ie=A[Y];if(0>o($,P))Y<le&&0>o(ie,$)?(A[re]=ie,A[Y]=P,re=Y):(A[re]=$,A[Q]=P,re=Q);else if(Y<le&&0>o(ie,P))A[re]=ie,A[Y]=P,re=Y;else break e}}return R}function o(A,R){var P=A.sortIndex-R.sortIndex;return P!==0?P:A.id-R.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],m=[],v=1,y=null,x=3,w=!1,T=!1,_=!1,N=!1,k=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function B(A){for(var R=r(m);R!==null;){if(R.callback===null)s(m);else if(R.startTime<=A)s(m),R.sortIndex=R.expirationTime,t(h,R);else break;R=r(m)}}function U(A){if(_=!1,B(A),!T)if(r(h)!==null)T=!0,H||(H=!0,G());else{var R=r(m);R!==null&&ce(U,R.startTime-A)}}var H=!1,j=-1,D=5,W=-1;function te(){return N?!0:!(e.unstable_now()-W<D)}function F(){if(N=!1,H){var A=e.unstable_now();W=A;var R=!0;try{e:{T=!1,_&&(_=!1,L(j),j=-1),w=!0;var P=x;try{t:{for(B(A),y=r(h);y!==null&&!(y.expirationTime>A&&te());){var re=y.callback;if(typeof re=="function"){y.callback=null,x=y.priorityLevel;var le=re(y.expirationTime<=A);if(A=e.unstable_now(),typeof le=="function"){y.callback=le,B(A),R=!0;break t}y===r(h)&&s(h),B(A)}else s(h);y=r(h)}if(y!==null)R=!0;else{var O=r(m);O!==null&&ce(U,O.startTime-A),R=!1}}break e}finally{y=null,x=P,w=!1}R=void 0}}finally{R?G():H=!1}}}var G;if(typeof C=="function")G=function(){C(F)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ae=oe.port2;oe.port1.onmessage=F,G=function(){ae.postMessage(null)}}else G=function(){k(F,0)};function ce(A,R){j=k(function(){A(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(A){switch(x){case 1:case 2:case 3:var R=3;break;default:R=x}var P=x;x=R;try{return A()}finally{x=P}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(A,R){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var P=x;x=A;try{return R()}finally{x=P}},e.unstable_scheduleCallback=function(A,R,P){var re=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?re+P:re):P=re,A){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=P+le,A={id:v++,callback:R,priorityLevel:A,startTime:P,expirationTime:le,sortIndex:-1},P>re?(A.sortIndex=P,t(m,A),r(h)===null&&A===r(m)&&(_?(L(j),j=-1):_=!0,ce(U,P-re))):(A.sortIndex=le,t(h,A),T||w||(T=!0,H||(H=!0,G()))),A},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(A){var R=x;return function(){var P=x;x=R;try{return A.apply(this,arguments)}finally{x=P}}}})(Xh)),Xh}var px;function lk(){return px||(px=1,Yh.exports=ok()),Yh.exports}var Wh={exports:{}},Rt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var gx;function ck(){if(gx)return Rt;gx=1;var e=tf();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:m,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Rt.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return c(h,m,null,v)},Rt.flushSync=function(h){var m=u.T,v=s.p;try{if(u.T=null,s.p=2,h)return h()}finally{u.T=m,s.p=v,s.d.f()}},Rt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},Rt.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Rt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,y=f(v,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:w}):v==="script"&&s.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Rt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=f(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},Rt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=f(v,m.crossOrigin);s.d.L(h,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Rt.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=f(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},Rt.requestFormReset=function(h){s.d.r(h)},Rt.unstable_batchedUpdates=function(h,m){return h(m)},Rt.useFormState=function(h,m,v){return u.H.useFormState(h,m,v)},Rt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Rt.version="19.2.1",Rt}var yx;function $S(){if(yx)return Wh.exports;yx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Wh.exports=ck(),Wh.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vx;function uk(){if(vx)return Ko;vx=1;var e=lk(),t=tf(),r=$S();function s(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var i=n,a=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(a=i.return),n=i.return;while(n)}return i.tag===3?a:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(c(n)!==n)throw Error(s(188))}function m(n){var i=n.alternate;if(!i){if(i=c(n),i===null)throw Error(s(188));return i!==n?null:n}for(var a=n,l=i;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){a=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return h(d),n;if(p===l)return h(d),i;p=p.sibling}throw Error(s(188))}if(a.return!==l.return)a=d,l=p;else{for(var b=!1,E=d.child;E;){if(E===a){b=!0,a=d,l=p;break}if(E===l){b=!0,l=d,a=p;break}E=E.sibling}if(!b){for(E=p.child;E;){if(E===a){b=!0,a=p,l=d;break}if(E===l){b=!0,l=p,a=d;break}E=E.sibling}if(!b)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?n:i}function v(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=v(n),i!==null)return i;n=n.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),C=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function G(n){return n===null||typeof n!="object"?null:(n=F&&n[F]||n["@@iterator"],typeof n=="function"?n:null)}var oe=Symbol.for("react.client.reference");function ae(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===oe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _:return"Fragment";case k:return"Profiler";case N:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList";case W:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case T:return"Portal";case C:return n.displayName||"Context";case L:return(n._context.displayName||"Context")+".Consumer";case B:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case j:return i=n.displayName||null,i!==null?i:ae(n.type)||"Memo";case D:i=n._payload,n=n._init;try{return ae(n(i))}catch{}}return null}var ce=Array.isArray,A=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},re=[],le=-1;function O(n){return{current:n}}function Q(n){0>le||(n.current=re[le],re[le]=null,le--)}function $(n,i){le++,re[le]=n.current,n.current=i}var Y=O(null),ie=O(null),pe=O(null),fe=O(null);function xe(n,i){switch($(pe,i),$(ie,n),$(Y,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?yb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=yb(i),n=vb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Q(Y),$(Y,n)}function De(){Q(Y),Q(ie),Q(pe)}function _t(n){n.memoizedState!==null&&$(fe,n);var i=Y.current,a=vb(i,n.type);i!==a&&($(ie,n),$(Y,a))}function Lt(n){ie.current===n&&(Q(Y),Q(ie)),fe.current===n&&(Q(fe),Ho._currentValue=P)}var At,dr;function Rn(n){if(At===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);At=i&&i[1]||"",dr=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+At+n+dr}var Fa=!1;function _s(n,i){if(!n||Fa)return"";Fa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(K){var Z=K}Reflect.construct(n,[],ee)}else{try{ee.call()}catch(K){Z=K}n.call(ee.prototype)}}else{try{throw Error()}catch(K){Z=K}(ee=n())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(K){if(K&&Z&&typeof K.stack=="string")return[K.stack,Z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),b=p[0],E=p[1];if(b&&E){var z=b.split(`
`),I=E.split(`
`);for(d=l=0;l<z.length&&!z[l].includes("DetermineComponentFrameRoot");)l++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(l===z.length||d===I.length)for(l=z.length-1,d=I.length-1;1<=l&&0<=d&&z[l]!==I[d];)d--;for(;1<=l&&0<=d;l--,d--)if(z[l]!==I[d]){if(l!==1||d!==1)do if(l--,d--,0>d||z[l]!==I[d]){var X=`
`+z[l].replace(" at new "," at ");return n.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",n.displayName)),X}while(1<=l&&0<=d);break}}}finally{Fa=!1,Error.prepareStackTrace=a}return(a=n?n.displayName||n.name:"")?Rn(a):""}function Ni(n,i){switch(n.tag){case 26:case 27:case 5:return Rn(n.type);case 16:return Rn("Lazy");case 13:return n.child!==i&&i!==null?Rn("Suspense Fallback"):Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 15:return _s(n.type,!1);case 11:return _s(n.type.render,!1);case 1:return _s(n.type,!0);case 31:return Rn("Activity");default:return""}}function Ya(n){try{var i="",a=null;do i+=Ni(n,a),a=n,n=n.return;while(n);return i}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var rn=Object.prototype.hasOwnProperty,Xa=e.unstable_scheduleCallback,Wa=e.unstable_cancelCallback,Ut=e.unstable_shouldYield,qr=e.unstable_requestPaint,Vt=e.unstable_now,zf=e.unstable_getCurrentPriorityLevel,Mi=e.unstable_ImmediatePriority,Vl=e.unstable_UserBlockingPriority,Ri=e.unstable_NormalPriority,Ja=e.unstable_LowPriority,hr=e.unstable_IdlePriority,Bl=e.log,Ir=e.unstable_setDisableYieldValue,Di=null,Bt=null;function Dn(n){if(typeof Bl=="function"&&Ir(n),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Di,n)}catch{}}var Nt=Math.clz32?Math.clz32:Qn,Nf=Math.log,eo=Math.LN2;function Qn(n){return n>>>=0,n===0?32:31-(Nf(n)/eo|0)|0}var As=256,js=262144,Pi=4194304;function Fn(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function we(n,i,a){var l=n.pendingLanes;if(l===0)return 0;var d=0,p=n.suspendedLanes,b=n.pingedLanes;n=n.warmLanes;var E=l&134217727;return E!==0?(l=E&~p,l!==0?d=Fn(l):(b&=E,b!==0?d=Fn(b):a||(a=E&~n,a!==0&&(d=Fn(a))))):(E=l&~p,E!==0?d=Fn(E):b!==0?d=Fn(b):a||(a=l&~n,a!==0&&(d=Fn(a)))),d===0?0:i!==0&&i!==d&&(i&p)===0&&(p=d&-d,a=i&-i,p>=a||p===32&&(a&4194048)!==0)?i:d}function Xe(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function xt(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mt(){var n=Pi;return Pi<<=1,(Pi&62914560)===0&&(Pi=4194304),n}function $r(n){for(var i=[],a=0;31>a;a++)i.push(n);return i}function et(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function $t(n,i,a,l,d,p){var b=n.pendingLanes;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0;var E=n.entanglements,z=n.expirationTimes,I=n.hiddenUpdates;for(a=b&~a;0<a;){var X=31-Nt(a),ee=1<<X;E[X]=0,z[X]=-1;var Z=I[X];if(Z!==null)for(I[X]=null,X=0;X<Z.length;X++){var K=Z[X];K!==null&&(K.lane&=-536870913)}a&=~ee}l!==0&&Li(n,l,0),p!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=p&~(b&~i))}function Li(n,i,a){n.pendingLanes|=i,n.suspendedLanes&=~i;var l=31-Nt(i);n.entangledLanes|=i,n.entanglements[l]=n.entanglements[l]|1073741824|a&261930}function Zt(n,i){var a=n.entangledLanes|=i;for(n=n.entanglements;a;){var l=31-Nt(a),d=1<<l;d&i|n[l]&i&&(n[l]|=i),a&=~d}}function Gt(n,i){var a=i&-i;return a=(a&42)!==0?1:Os(a),(a&(n.suspendedLanes|i))!==0?0:a}function Os(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Pn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Mf(){var n=R.p;return n!==0?n:(n=window.event,n===void 0?32:Hb(n.type))}function ry(n,i){var a=R.p;try{return R.p=n,i()}finally{R.p=a}}var Zr=Math.random().toString(36).slice(2),jt="__reactFiber$"+Zr,Kt="__reactProps$"+Zr,Cs="__reactContainer$"+Zr,Rf="__reactEvents$"+Zr,H_="__reactListeners$"+Zr,q_="__reactHandles$"+Zr,iy="__reactResources$"+Zr,to="__reactMarker$"+Zr;function Df(n){delete n[jt],delete n[Kt],delete n[Rf],delete n[H_],delete n[q_]}function ks(n){var i=n[jt];if(i)return i;for(var a=n.parentNode;a;){if(i=a[Cs]||a[jt]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(n=_b(n);n!==null;){if(a=n[jt])return a;n=_b(n)}return i}n=a,a=n.parentNode}return null}function zs(n){if(n=n[jt]||n[Cs]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function no(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(s(33))}function Ns(n){var i=n[iy];return i||(i=n[iy]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function wt(n){n[to]=!0}var sy=new Set,ay={};function Ui(n,i){Ms(n,i),Ms(n+"Capture",i)}function Ms(n,i){for(ay[n]=i,n=0;n<i.length;n++)sy.add(i[n])}var I_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oy={},ly={};function $_(n){return rn.call(ly,n)?!0:rn.call(oy,n)?!1:I_.test(n)?ly[n]=!0:(oy[n]=!0,!1)}function Hl(n,i,a){if($_(i))if(a===null)n.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+a)}}function ql(n,i,a){if(a===null)n.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+a)}}function mr(n,i,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttributeNS(i,a,""+l)}}function yn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function cy(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Z_(n,i,a){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,p=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){a=""+b,p.call(this,b)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Pf(n){if(!n._valueTracker){var i=cy(n)?"checked":"value";n._valueTracker=Z_(n,i,""+n[i])}}function uy(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var a=i.getValue(),l="";return n&&(l=cy(n)?n.checked?"true":"false":n.value),n=l,n!==a?(i.setValue(n),!0):!1}function Il(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var G_=/[\n"\\]/g;function vn(n){return n.replace(G_,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Lf(n,i,a,l,d,p,b,E){n.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?n.type=b:n.removeAttribute("type"),i!=null?b==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+yn(i)):n.value!==""+yn(i)&&(n.value=""+yn(i)):b!=="submit"&&b!=="reset"||n.removeAttribute("value"),i!=null?Uf(n,b,yn(i)):a!=null?Uf(n,b,yn(a)):l!=null&&n.removeAttribute("value"),d==null&&p!=null&&(n.defaultChecked=!!p),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+yn(E):n.removeAttribute("name")}function fy(n,i,a,l,d,p,b,E){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),i!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Pf(n);return}a=a!=null?""+yn(a):"",i=i!=null?""+yn(i):a,E||i===n.value||(n.value=i),n.defaultValue=i}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=E?n.checked:!!l,n.defaultChecked=!!l,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.name=b),Pf(n)}function Uf(n,i,a){i==="number"&&Il(n.ownerDocument)===n||n.defaultValue===""+a||(n.defaultValue=""+a)}function Rs(n,i,a,l){if(n=n.options,i){i={};for(var d=0;d<a.length;d++)i["$"+a[d]]=!0;for(a=0;a<n.length;a++)d=i.hasOwnProperty("$"+n[a].value),n[a].selected!==d&&(n[a].selected=d),d&&l&&(n[a].defaultSelected=!0)}else{for(a=""+yn(a),i=null,d=0;d<n.length;d++){if(n[d].value===a){n[d].selected=!0,l&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.selected=!0)}}function dy(n,i,a){if(i!=null&&(i=""+yn(i),i!==n.value&&(n.value=i),a==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=a!=null?""+yn(a):""}function hy(n,i,a,l){if(i==null){if(l!=null){if(a!=null)throw Error(s(92));if(ce(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),i=a}a=yn(i),n.defaultValue=a,l=n.textContent,l===a&&l!==""&&l!==null&&(n.value=l),Pf(n)}function Ds(n,i){if(i){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=i;return}}n.textContent=i}var K_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function my(n,i,a){var l=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":l?n.setProperty(i,a):typeof a!="number"||a===0||K_.has(i)?i==="float"?n.cssFloat=a:n[i]=(""+a).trim():n[i]=a+"px"}function py(n,i,a){if(i!=null&&typeof i!="object")throw Error(s(62));if(n=n.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var d in i)l=i[d],i.hasOwnProperty(d)&&a[d]!==l&&my(n,d,l)}else for(var p in i)i.hasOwnProperty(p)&&my(n,p,i[p])}function Vf(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),F_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $l(n){return F_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function pr(){}var Bf=null;function Hf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ps=null,Ls=null;function gy(n){var i=zs(n);if(i&&(n=i.stateNode)){var a=n[Kt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Lf(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+vn(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var l=a[i];if(l!==n&&l.form===n.form){var d=l[Kt]||null;if(!d)throw Error(s(90));Lf(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<a.length;i++)l=a[i],l.form===n.form&&uy(l)}break e;case"textarea":dy(n,a.value,a.defaultValue);break e;case"select":i=a.value,i!=null&&Rs(n,!!a.multiple,i,!1)}}}var qf=!1;function yy(n,i,a){if(qf)return n(i,a);qf=!0;try{var l=n(i);return l}finally{if(qf=!1,(Ps!==null||Ls!==null)&&(zc(),Ps&&(i=Ps,n=Ls,Ls=Ps=null,gy(i),n)))for(i=0;i<n.length;i++)gy(n[i])}}function ro(n,i){var a=n.stateNode;if(a===null)return null;var l=a[Kt]||null;if(l===null)return null;a=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(s(231,i,typeof a));return a}var gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),If=!1;if(gr)try{var io={};Object.defineProperty(io,"passive",{get:function(){If=!0}}),window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{If=!1}var Gr=null,$f=null,Zl=null;function vy(){if(Zl)return Zl;var n,i=$f,a=i.length,l,d="value"in Gr?Gr.value:Gr.textContent,p=d.length;for(n=0;n<a&&i[n]===d[n];n++);var b=a-n;for(l=1;l<=b&&i[a-l]===d[p-l];l++);return Zl=d.slice(n,1<l?1-l:void 0)}function Gl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Kl(){return!0}function by(){return!1}function Qt(n){function i(a,l,d,p,b){this._reactName=a,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(a=n[E],this[E]=a?a(p):p[E]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Kl:by,this.isPropagationStopped=by,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Kl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Kl)},persist:function(){},isPersistent:Kl}),i}var Vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ql=Qt(Vi),so=y({},Vi,{view:0,detail:0}),Y_=Qt(so),Zf,Gf,ao,Fl=y({},so,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ao&&(ao&&n.type==="mousemove"?(Zf=n.screenX-ao.screenX,Gf=n.screenY-ao.screenY):Gf=Zf=0,ao=n),Zf)},movementY:function(n){return"movementY"in n?n.movementY:Gf}}),xy=Qt(Fl),X_=y({},Fl,{dataTransfer:0}),W_=Qt(X_),J_=y({},so,{relatedTarget:0}),Kf=Qt(J_),eA=y({},Vi,{animationName:0,elapsedTime:0,pseudoElement:0}),tA=Qt(eA),nA=y({},Vi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),rA=Qt(nA),iA=y({},Vi,{data:0}),wy=Qt(iA),sA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lA(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=oA[n])?!!i[n]:!1}function Qf(){return lA}var cA=y({},so,{key:function(n){if(n.key){var i=sA[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Gl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?aA[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qf,charCode:function(n){return n.type==="keypress"?Gl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Gl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),uA=Qt(cA),fA=y({},Fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sy=Qt(fA),dA=y({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qf}),hA=Qt(dA),mA=y({},Vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),pA=Qt(mA),gA=y({},Fl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),yA=Qt(gA),vA=y({},Vi,{newState:0,oldState:0}),bA=Qt(vA),xA=[9,13,27,32],Ff=gr&&"CompositionEvent"in window,oo=null;gr&&"documentMode"in document&&(oo=document.documentMode);var wA=gr&&"TextEvent"in window&&!oo,Ey=gr&&(!Ff||oo&&8<oo&&11>=oo),Ty=" ",_y=!1;function Ay(n,i){switch(n){case"keyup":return xA.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Us=!1;function SA(n,i){switch(n){case"compositionend":return jy(i);case"keypress":return i.which!==32?null:(_y=!0,Ty);case"textInput":return n=i.data,n===Ty&&_y?null:n;default:return null}}function EA(n,i){if(Us)return n==="compositionend"||!Ff&&Ay(n,i)?(n=vy(),Zl=$f=Gr=null,Us=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ey&&i.locale!=="ko"?null:i.data;default:return null}}var TA={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Oy(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!TA[n.type]:i==="textarea"}function Cy(n,i,a,l){Ps?Ls?Ls.push(l):Ls=[l]:Ps=l,i=Uc(i,"onChange"),0<i.length&&(a=new Ql("onChange","change",null,a,l),n.push({event:a,listeners:i}))}var lo=null,co=null;function _A(n){fb(n,0)}function Yl(n){var i=no(n);if(uy(i))return n}function ky(n,i){if(n==="change")return i}var zy=!1;if(gr){var Yf;if(gr){var Xf="oninput"in document;if(!Xf){var Ny=document.createElement("div");Ny.setAttribute("oninput","return;"),Xf=typeof Ny.oninput=="function"}Yf=Xf}else Yf=!1;zy=Yf&&(!document.documentMode||9<document.documentMode)}function My(){lo&&(lo.detachEvent("onpropertychange",Ry),co=lo=null)}function Ry(n){if(n.propertyName==="value"&&Yl(co)){var i=[];Cy(i,co,n,Hf(n)),yy(_A,i)}}function AA(n,i,a){n==="focusin"?(My(),lo=i,co=a,lo.attachEvent("onpropertychange",Ry)):n==="focusout"&&My()}function jA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Yl(co)}function OA(n,i){if(n==="click")return Yl(i)}function CA(n,i){if(n==="input"||n==="change")return Yl(i)}function kA(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var sn=typeof Object.is=="function"?Object.is:kA;function uo(n,i){if(sn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var a=Object.keys(n),l=Object.keys(i);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var d=a[l];if(!rn.call(i,d)||!sn(n[d],i[d]))return!1}return!0}function Dy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Py(n,i){var a=Dy(n);n=0;for(var l;a;){if(a.nodeType===3){if(l=n+a.textContent.length,n<=i&&l>=i)return{node:a,offset:i-n};n=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Dy(a)}}function Ly(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Ly(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Uy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Il(n.document);i instanceof n.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)n=i.contentWindow;else break;i=Il(n.document)}return i}function Wf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var zA=gr&&"documentMode"in document&&11>=document.documentMode,Vs=null,Jf=null,fo=null,ed=!1;function Vy(n,i,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ed||Vs==null||Vs!==Il(l)||(l=Vs,"selectionStart"in l&&Wf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),fo&&uo(fo,l)||(fo=l,l=Uc(Jf,"onSelect"),0<l.length&&(i=new Ql("onSelect","select",null,i,a),n.push({event:i,listeners:l}),i.target=Vs)))}function Bi(n,i){var a={};return a[n.toLowerCase()]=i.toLowerCase(),a["Webkit"+n]="webkit"+i,a["Moz"+n]="moz"+i,a}var Bs={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionrun:Bi("Transition","TransitionRun"),transitionstart:Bi("Transition","TransitionStart"),transitioncancel:Bi("Transition","TransitionCancel"),transitionend:Bi("Transition","TransitionEnd")},td={},By={};gr&&(By=document.createElement("div").style,"AnimationEvent"in window||(delete Bs.animationend.animation,delete Bs.animationiteration.animation,delete Bs.animationstart.animation),"TransitionEvent"in window||delete Bs.transitionend.transition);function Hi(n){if(td[n])return td[n];if(!Bs[n])return n;var i=Bs[n],a;for(a in i)if(i.hasOwnProperty(a)&&a in By)return td[n]=i[a];return n}var Hy=Hi("animationend"),qy=Hi("animationiteration"),Iy=Hi("animationstart"),NA=Hi("transitionrun"),MA=Hi("transitionstart"),RA=Hi("transitioncancel"),$y=Hi("transitionend"),Zy=new Map,nd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");nd.push("scrollEnd");function Ln(n,i){Zy.set(n,i),Ui(i,[n])}var Xl=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},bn=[],Hs=0,rd=0;function Wl(){for(var n=Hs,i=rd=Hs=0;i<n;){var a=bn[i];bn[i++]=null;var l=bn[i];bn[i++]=null;var d=bn[i];bn[i++]=null;var p=bn[i];if(bn[i++]=null,l!==null&&d!==null){var b=l.pending;b===null?d.next=d:(d.next=b.next,b.next=d),l.pending=d}p!==0&&Gy(a,d,p)}}function Jl(n,i,a,l){bn[Hs++]=n,bn[Hs++]=i,bn[Hs++]=a,bn[Hs++]=l,rd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function id(n,i,a,l){return Jl(n,i,a,l),ec(n)}function qi(n,i){return Jl(n,null,null,i),ec(n)}function Gy(n,i,a){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a);for(var d=!1,p=n.return;p!==null;)p.childLanes|=a,l=p.alternate,l!==null&&(l.childLanes|=a),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(d=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,d&&i!==null&&(d=31-Nt(a),n=p.hiddenUpdates,l=n[d],l===null?n[d]=[i]:l.push(i),i.lane=a|536870912),p):null}function ec(n){if(50<Ro)throw Ro=0,hh=null,Error(s(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var qs={};function DA(n,i,a,l){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(n,i,a,l){return new DA(n,i,a,l)}function sd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function yr(n,i){var a=n.alternate;return a===null?(a=an(n.tag,i,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=i,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&65011712,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,i=n.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a.refCleanup=n.refCleanup,a}function Ky(n,i){n.flags&=65011714;var a=n.alternate;return a===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=a.childLanes,n.lanes=a.lanes,n.child=a.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=a.memoizedProps,n.memoizedState=a.memoizedState,n.updateQueue=a.updateQueue,n.type=a.type,i=a.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function tc(n,i,a,l,d,p){var b=0;if(l=n,typeof n=="function")sd(n)&&(b=1);else if(typeof n=="string")b=Bj(n,a,Y.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case W:return n=an(31,a,i,d),n.elementType=W,n.lanes=p,n;case _:return Ii(a.children,d,p,i);case N:b=8,d|=24;break;case k:return n=an(12,a,i,d|2),n.elementType=k,n.lanes=p,n;case U:return n=an(13,a,i,d),n.elementType=U,n.lanes=p,n;case H:return n=an(19,a,i,d),n.elementType=H,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:b=10;break e;case L:b=9;break e;case B:b=11;break e;case j:b=14;break e;case D:b=16,l=null;break e}b=29,a=Error(s(130,n===null?"null":typeof n,"")),l=null}return i=an(b,a,i,d),i.elementType=n,i.type=l,i.lanes=p,i}function Ii(n,i,a,l){return n=an(7,n,l,i),n.lanes=a,n}function ad(n,i,a){return n=an(6,n,null,i),n.lanes=a,n}function Qy(n){var i=an(18,null,null,0);return i.stateNode=n,i}function od(n,i,a){return i=an(4,n.children!==null?n.children:[],n.key,i),i.lanes=a,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Fy=new WeakMap;function xn(n,i){if(typeof n=="object"&&n!==null){var a=Fy.get(n);return a!==void 0?a:(i={value:n,source:i,stack:Ya(i)},Fy.set(n,i),i)}return{value:n,source:i,stack:Ya(i)}}var Is=[],$s=0,nc=null,ho=0,wn=[],Sn=0,Kr=null,Yn=1,Xn="";function vr(n,i){Is[$s++]=ho,Is[$s++]=nc,nc=n,ho=i}function Yy(n,i,a){wn[Sn++]=Yn,wn[Sn++]=Xn,wn[Sn++]=Kr,Kr=n;var l=Yn;n=Xn;var d=32-Nt(l)-1;l&=~(1<<d),a+=1;var p=32-Nt(i)+d;if(30<p){var b=d-d%5;p=(l&(1<<b)-1).toString(32),l>>=b,d-=b,Yn=1<<32-Nt(i)+d|a<<d|l,Xn=p+n}else Yn=1<<p|a<<d|l,Xn=n}function ld(n){n.return!==null&&(vr(n,1),Yy(n,1,0))}function cd(n){for(;n===nc;)nc=Is[--$s],Is[$s]=null,ho=Is[--$s],Is[$s]=null;for(;n===Kr;)Kr=wn[--Sn],wn[Sn]=null,Xn=wn[--Sn],wn[Sn]=null,Yn=wn[--Sn],wn[Sn]=null}function Xy(n,i){wn[Sn++]=Yn,wn[Sn++]=Xn,wn[Sn++]=Kr,Yn=i.id,Xn=i.overflow,Kr=n}var Ot=null,Fe=null,Pe=!1,Qr=null,En=!1,ud=Error(s(519));function Fr(n){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw mo(xn(i,n)),ud}function Wy(n){var i=n.stateNode,a=n.type,l=n.memoizedProps;switch(i[jt]=n,i[Kt]=l,a){case"dialog":Ne("cancel",i),Ne("close",i);break;case"iframe":case"object":case"embed":Ne("load",i);break;case"video":case"audio":for(a=0;a<Po.length;a++)Ne(Po[a],i);break;case"source":Ne("error",i);break;case"img":case"image":case"link":Ne("error",i),Ne("load",i);break;case"details":Ne("toggle",i);break;case"input":Ne("invalid",i),fy(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ne("invalid",i);break;case"textarea":Ne("invalid",i),hy(i,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||l.suppressHydrationWarning===!0||pb(i.textContent,a)?(l.popover!=null&&(Ne("beforetoggle",i),Ne("toggle",i)),l.onScroll!=null&&Ne("scroll",i),l.onScrollEnd!=null&&Ne("scrollend",i),l.onClick!=null&&(i.onclick=pr),i=!0):i=!1,i||Fr(n,!0)}function Jy(n){for(Ot=n.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Ot=Ot.return}}function Zs(n){if(n!==Ot)return!1;if(!Pe)return Jy(n),Pe=!0,!1;var i=n.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=n.type,a=!(a!=="form"&&a!=="button")||Oh(n.type,n.memoizedProps)),a=!a),a&&Fe&&Fr(n),Jy(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Fe=Tb(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Fe=Tb(n)}else i===27?(i=Fe,ci(n.type)?(n=Mh,Mh=null,Fe=n):Fe=i):Fe=Ot?_n(n.stateNode.nextSibling):null;return!0}function $i(){Fe=Ot=null,Pe=!1}function fd(){var n=Qr;return n!==null&&(Wt===null?Wt=n:Wt.push.apply(Wt,n),Qr=null),n}function mo(n){Qr===null?Qr=[n]:Qr.push(n)}var dd=O(null),Zi=null,br=null;function Yr(n,i,a){$(dd,i._currentValue),i._currentValue=a}function xr(n){n._currentValue=dd.current,Q(dd)}function hd(n,i,a){for(;n!==null;){var l=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),n===a)break;n=n.return}}function md(n,i,a,l){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var p=d.dependencies;if(p!==null){var b=d.child;p=p.firstContext;e:for(;p!==null;){var E=p;p=d;for(var z=0;z<i.length;z++)if(E.context===i[z]){p.lanes|=a,E=p.alternate,E!==null&&(E.lanes|=a),hd(p.return,a,n),l||(b=null);break e}p=E.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(s(341));b.lanes|=a,p=b.alternate,p!==null&&(p.lanes|=a),hd(b,a,n),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===n){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Gs(n,i,a,l){n=null;for(var d=i,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(s(387));if(b=b.memoizedProps,b!==null){var E=d.type;sn(d.pendingProps.value,b.value)||(n!==null?n.push(E):n=[E])}}else if(d===fe.current){if(b=d.alternate,b===null)throw Error(s(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Ho):n=[Ho])}d=d.return}n!==null&&md(i,n,a,l),i.flags|=262144}function rc(n){for(n=n.firstContext;n!==null;){if(!sn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Gi(n){Zi=n,br=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Ct(n){return ev(Zi,n)}function ic(n,i){return Zi===null&&Gi(n),ev(n,i)}function ev(n,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},br===null){if(n===null)throw Error(s(308));br=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else br=br.next=i;return a}var PA=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(a,l){n.push(l)}};this.abort=function(){i.aborted=!0,n.forEach(function(a){return a()})}},LA=e.unstable_scheduleCallback,UA=e.unstable_NormalPriority,ft={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pd(){return{controller:new PA,data:new Map,refCount:0}}function po(n){n.refCount--,n.refCount===0&&LA(UA,function(){n.controller.abort()})}var go=null,gd=0,Ks=0,Qs=null;function VA(n,i){if(go===null){var a=go=[];gd=0,Ks=bh(),Qs={status:"pending",value:void 0,then:function(l){a.push(l)}}}return gd++,i.then(tv,tv),i}function tv(){if(--gd===0&&go!==null){Qs!==null&&(Qs.status="fulfilled");var n=go;go=null,Ks=0,Qs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function BA(n,i){var a=[],l={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return n.then(function(){l.status="fulfilled",l.value=i;for(var d=0;d<a.length;d++)(0,a[d])(i)},function(d){for(l.status="rejected",l.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),l}var nv=A.S;A.S=function(n,i){V0=Vt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&VA(n,i),nv!==null&&nv(n,i)};var Ki=O(null);function yd(){var n=Ki.current;return n!==null?n:Ke.pooledCache}function sc(n,i){i===null?$(Ki,Ki.current):$(Ki,i.pool)}function rv(){var n=yd();return n===null?null:{parent:ft._currentValue,pool:n}}var Fs=Error(s(460)),vd=Error(s(474)),ac=Error(s(542)),oc={then:function(){}};function iv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function sv(n,i,a){switch(a=n[a],a===void 0?n.push(i):a!==i&&(i.then(pr,pr),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ov(n),n;default:if(typeof i.status=="string")i.then(pr,pr);else{if(n=Ke,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=i,n.status="pending",n.then(function(l){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=l}},function(l){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ov(n),n}throw Fi=i,Fs}}function Qi(n){try{var i=n._init;return i(n._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Fi=a,Fs):a}}var Fi=null;function av(){if(Fi===null)throw Error(s(459));var n=Fi;return Fi=null,n}function ov(n){if(n===Fs||n===ac)throw Error(s(483))}var Ys=null,yo=0;function lc(n){var i=yo;return yo+=1,Ys===null&&(Ys=[]),sv(Ys,n,i)}function vo(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function cc(n,i){throw i.$$typeof===x?Error(s(525)):(n=Object.prototype.toString.call(i),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function lv(n){function i(V,M){if(n){var q=V.deletions;q===null?(V.deletions=[M],V.flags|=16):q.push(M)}}function a(V,M){if(!n)return null;for(;M!==null;)i(V,M),M=M.sibling;return null}function l(V){for(var M=new Map;V!==null;)V.key!==null?M.set(V.key,V):M.set(V.index,V),V=V.sibling;return M}function d(V,M){return V=yr(V,M),V.index=0,V.sibling=null,V}function p(V,M,q){return V.index=q,n?(q=V.alternate,q!==null?(q=q.index,q<M?(V.flags|=67108866,M):q):(V.flags|=67108866,M)):(V.flags|=1048576,M)}function b(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function E(V,M,q,J){return M===null||M.tag!==6?(M=ad(q,V.mode,J),M.return=V,M):(M=d(M,q),M.return=V,M)}function z(V,M,q,J){var ye=q.type;return ye===_?X(V,M,q.props.children,J,q.key):M!==null&&(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===D&&Qi(ye)===M.type)?(M=d(M,q.props),vo(M,q),M.return=V,M):(M=tc(q.type,q.key,q.props,null,V.mode,J),vo(M,q),M.return=V,M)}function I(V,M,q,J){return M===null||M.tag!==4||M.stateNode.containerInfo!==q.containerInfo||M.stateNode.implementation!==q.implementation?(M=od(q,V.mode,J),M.return=V,M):(M=d(M,q.children||[]),M.return=V,M)}function X(V,M,q,J,ye){return M===null||M.tag!==7?(M=Ii(q,V.mode,J,ye),M.return=V,M):(M=d(M,q),M.return=V,M)}function ee(V,M,q){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=ad(""+M,V.mode,q),M.return=V,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case w:return q=tc(M.type,M.key,M.props,null,V.mode,q),vo(q,M),q.return=V,q;case T:return M=od(M,V.mode,q),M.return=V,M;case D:return M=Qi(M),ee(V,M,q)}if(ce(M)||G(M))return M=Ii(M,V.mode,q,null),M.return=V,M;if(typeof M.then=="function")return ee(V,lc(M),q);if(M.$$typeof===C)return ee(V,ic(V,M),q);cc(V,M)}return null}function Z(V,M,q,J){var ye=M!==null?M.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ye!==null?null:E(V,M,""+q,J);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return q.key===ye?z(V,M,q,J):null;case T:return q.key===ye?I(V,M,q,J):null;case D:return q=Qi(q),Z(V,M,q,J)}if(ce(q)||G(q))return ye!==null?null:X(V,M,q,J,null);if(typeof q.then=="function")return Z(V,M,lc(q),J);if(q.$$typeof===C)return Z(V,M,ic(V,q),J);cc(V,q)}return null}function K(V,M,q,J,ye){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return V=V.get(q)||null,E(M,V,""+J,ye);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case w:return V=V.get(J.key===null?q:J.key)||null,z(M,V,J,ye);case T:return V=V.get(J.key===null?q:J.key)||null,I(M,V,J,ye);case D:return J=Qi(J),K(V,M,q,J,ye)}if(ce(J)||G(J))return V=V.get(q)||null,X(M,V,J,ye,null);if(typeof J.then=="function")return K(V,M,q,lc(J),ye);if(J.$$typeof===C)return K(V,M,q,ic(M,J),ye);cc(M,J)}return null}function de(V,M,q,J){for(var ye=null,Le=null,ge=M,Ce=M=0,Re=null;ge!==null&&Ce<q.length;Ce++){ge.index>Ce?(Re=ge,ge=null):Re=ge.sibling;var Ue=Z(V,ge,q[Ce],J);if(Ue===null){ge===null&&(ge=Re);break}n&&ge&&Ue.alternate===null&&i(V,ge),M=p(Ue,M,Ce),Le===null?ye=Ue:Le.sibling=Ue,Le=Ue,ge=Re}if(Ce===q.length)return a(V,ge),Pe&&vr(V,Ce),ye;if(ge===null){for(;Ce<q.length;Ce++)ge=ee(V,q[Ce],J),ge!==null&&(M=p(ge,M,Ce),Le===null?ye=ge:Le.sibling=ge,Le=ge);return Pe&&vr(V,Ce),ye}for(ge=l(ge);Ce<q.length;Ce++)Re=K(ge,V,Ce,q[Ce],J),Re!==null&&(n&&Re.alternate!==null&&ge.delete(Re.key===null?Ce:Re.key),M=p(Re,M,Ce),Le===null?ye=Re:Le.sibling=Re,Le=Re);return n&&ge.forEach(function(mi){return i(V,mi)}),Pe&&vr(V,Ce),ye}function ve(V,M,q,J){if(q==null)throw Error(s(151));for(var ye=null,Le=null,ge=M,Ce=M=0,Re=null,Ue=q.next();ge!==null&&!Ue.done;Ce++,Ue=q.next()){ge.index>Ce?(Re=ge,ge=null):Re=ge.sibling;var mi=Z(V,ge,Ue.value,J);if(mi===null){ge===null&&(ge=Re);break}n&&ge&&mi.alternate===null&&i(V,ge),M=p(mi,M,Ce),Le===null?ye=mi:Le.sibling=mi,Le=mi,ge=Re}if(Ue.done)return a(V,ge),Pe&&vr(V,Ce),ye;if(ge===null){for(;!Ue.done;Ce++,Ue=q.next())Ue=ee(V,Ue.value,J),Ue!==null&&(M=p(Ue,M,Ce),Le===null?ye=Ue:Le.sibling=Ue,Le=Ue);return Pe&&vr(V,Ce),ye}for(ge=l(ge);!Ue.done;Ce++,Ue=q.next())Ue=K(ge,V,Ce,Ue.value,J),Ue!==null&&(n&&Ue.alternate!==null&&ge.delete(Ue.key===null?Ce:Ue.key),M=p(Ue,M,Ce),Le===null?ye=Ue:Le.sibling=Ue,Le=Ue);return n&&ge.forEach(function(Xj){return i(V,Xj)}),Pe&&vr(V,Ce),ye}function Ge(V,M,q,J){if(typeof q=="object"&&q!==null&&q.type===_&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case w:e:{for(var ye=q.key;M!==null;){if(M.key===ye){if(ye=q.type,ye===_){if(M.tag===7){a(V,M.sibling),J=d(M,q.props.children),J.return=V,V=J;break e}}else if(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===D&&Qi(ye)===M.type){a(V,M.sibling),J=d(M,q.props),vo(J,q),J.return=V,V=J;break e}a(V,M);break}else i(V,M);M=M.sibling}q.type===_?(J=Ii(q.props.children,V.mode,J,q.key),J.return=V,V=J):(J=tc(q.type,q.key,q.props,null,V.mode,J),vo(J,q),J.return=V,V=J)}return b(V);case T:e:{for(ye=q.key;M!==null;){if(M.key===ye)if(M.tag===4&&M.stateNode.containerInfo===q.containerInfo&&M.stateNode.implementation===q.implementation){a(V,M.sibling),J=d(M,q.children||[]),J.return=V,V=J;break e}else{a(V,M);break}else i(V,M);M=M.sibling}J=od(q,V.mode,J),J.return=V,V=J}return b(V);case D:return q=Qi(q),Ge(V,M,q,J)}if(ce(q))return de(V,M,q,J);if(G(q)){if(ye=G(q),typeof ye!="function")throw Error(s(150));return q=ye.call(q),ve(V,M,q,J)}if(typeof q.then=="function")return Ge(V,M,lc(q),J);if(q.$$typeof===C)return Ge(V,M,ic(V,q),J);cc(V,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,M!==null&&M.tag===6?(a(V,M.sibling),J=d(M,q),J.return=V,V=J):(a(V,M),J=ad(q,V.mode,J),J.return=V,V=J),b(V)):a(V,M)}return function(V,M,q,J){try{yo=0;var ye=Ge(V,M,q,J);return Ys=null,ye}catch(ge){if(ge===Fs||ge===ac)throw ge;var Le=an(29,ge,null,V.mode);return Le.lanes=J,Le.return=V,Le}finally{}}}var Yi=lv(!0),cv=lv(!1),Xr=!1;function bd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xd(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Wr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Jr(n,i,a){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Be&2)!==0){var d=l.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),l.pending=i,i=ec(n),Gy(n,null,a),i}return Jl(n,l,i,a),ec(n)}function bo(n,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var l=i.lanes;l&=n.pendingLanes,a|=l,i.lanes=a,Zt(n,a)}}function wd(n,i){var a=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=b:p=p.next=b,a=a.next}while(a!==null);p===null?d=p=i:p=p.next=i}else d=p=i;a={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=i:n.next=i,a.lastBaseUpdate=i}var Sd=!1;function xo(){if(Sd){var n=Qs;if(n!==null)throw n}}function wo(n,i,a,l){Sd=!1;var d=n.updateQueue;Xr=!1;var p=d.firstBaseUpdate,b=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var z=E,I=z.next;z.next=null,b===null?p=I:b.next=I,b=z;var X=n.alternate;X!==null&&(X=X.updateQueue,E=X.lastBaseUpdate,E!==b&&(E===null?X.firstBaseUpdate=I:E.next=I,X.lastBaseUpdate=z))}if(p!==null){var ee=d.baseState;b=0,X=I=z=null,E=p;do{var Z=E.lane&-536870913,K=Z!==E.lane;if(K?(Me&Z)===Z:(l&Z)===Z){Z!==0&&Z===Ks&&(Sd=!0),X!==null&&(X=X.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var de=n,ve=E;Z=i;var Ge=a;switch(ve.tag){case 1:if(de=ve.payload,typeof de=="function"){ee=de.call(Ge,ee,Z);break e}ee=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=ve.payload,Z=typeof de=="function"?de.call(Ge,ee,Z):de,Z==null)break e;ee=y({},ee,Z);break e;case 2:Xr=!0}}Z=E.callback,Z!==null&&(n.flags|=64,K&&(n.flags|=8192),K=d.callbacks,K===null?d.callbacks=[Z]:K.push(Z))}else K={lane:Z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},X===null?(I=X=K,z=ee):X=X.next=K,b|=Z;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;K=E,E=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);X===null&&(z=ee),d.baseState=z,d.firstBaseUpdate=I,d.lastBaseUpdate=X,p===null&&(d.shared.lanes=0),ii|=b,n.lanes=b,n.memoizedState=ee}}function uv(n,i){if(typeof n!="function")throw Error(s(191,n));n.call(i)}function fv(n,i){var a=n.callbacks;if(a!==null)for(n.callbacks=null,n=0;n<a.length;n++)uv(a[n],i)}var Xs=O(null),uc=O(0);function dv(n,i){n=Cr,$(uc,n),$(Xs,i),Cr=n|i.baseLanes}function Ed(){$(uc,Cr),$(Xs,Xs.current)}function Td(){Cr=uc.current,Q(Xs),Q(uc)}var on=O(null),Tn=null;function ei(n){var i=n.alternate;$(ot,ot.current&1),$(on,n),Tn===null&&(i===null||Xs.current!==null||i.memoizedState!==null)&&(Tn=n)}function _d(n){$(ot,ot.current),$(on,n),Tn===null&&(Tn=n)}function hv(n){n.tag===22?($(ot,ot.current),$(on,n),Tn===null&&(Tn=n)):ti()}function ti(){$(ot,ot.current),$(on,on.current)}function ln(n){Q(on),Tn===n&&(Tn=null),Q(ot)}var ot=O(0);function fc(n){for(var i=n;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||zh(a)||Nh(a)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var wr=0,je=null,$e=null,dt=null,dc=!1,Ws=!1,Xi=!1,hc=0,So=0,Js=null,HA=0;function rt(){throw Error(s(321))}function Ad(n,i){if(i===null)return!1;for(var a=0;a<i.length&&a<n.length;a++)if(!sn(n[a],i[a]))return!1;return!0}function jd(n,i,a,l,d,p){return wr=p,je=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,A.H=n===null||n.memoizedState===null?Yv:qd,Xi=!1,p=a(l,d),Xi=!1,Ws&&(p=pv(i,a,l,d)),mv(n),p}function mv(n){A.H=_o;var i=$e!==null&&$e.next!==null;if(wr=0,dt=$e=je=null,dc=!1,So=0,Js=null,i)throw Error(s(300));n===null||ht||(n=n.dependencies,n!==null&&rc(n)&&(ht=!0))}function pv(n,i,a,l){je=n;var d=0;do{if(Ws&&(Js=null),So=0,Ws=!1,25<=d)throw Error(s(301));if(d+=1,dt=$e=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}A.H=Xv,p=i(a,l)}while(Ws);return p}function qA(){var n=A.H,i=n.useState()[0];return i=typeof i.then=="function"?Eo(i):i,n=n.useState()[0],($e!==null?$e.memoizedState:null)!==n&&(je.flags|=1024),i}function Od(){var n=hc!==0;return hc=0,n}function Cd(n,i,a){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~a}function kd(n){if(dc){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}dc=!1}wr=0,dt=$e=je=null,Ws=!1,So=hc=0,Js=null}function Ht(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?je.memoizedState=dt=n:dt=dt.next=n,dt}function lt(){if($e===null){var n=je.alternate;n=n!==null?n.memoizedState:null}else n=$e.next;var i=dt===null?je.memoizedState:dt.next;if(i!==null)dt=i,$e=n;else{if(n===null)throw je.alternate===null?Error(s(467)):Error(s(310));$e=n,n={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},dt===null?je.memoizedState=dt=n:dt=dt.next=n}return dt}function mc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(n){var i=So;return So+=1,Js===null&&(Js=[]),n=sv(Js,n,i),i=je,(dt===null?i.memoizedState:dt.next)===null&&(i=i.alternate,A.H=i===null||i.memoizedState===null?Yv:qd),n}function pc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Eo(n);if(n.$$typeof===C)return Ct(n)}throw Error(s(438,String(n)))}function zd(n){var i=null,a=je.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=mc(),je.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(n),l=0;l<n;l++)a[l]=te;return i.index++,a}function Sr(n,i){return typeof i=="function"?i(n):i}function gc(n){var i=lt();return Nd(i,$e,n)}function Nd(n,i,a){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var d=n.baseQueue,p=l.pending;if(p!==null){if(d!==null){var b=d.next;d.next=p.next,p.next=b}i.baseQueue=d=p,l.pending=null}if(p=n.baseState,d===null)n.memoizedState=p;else{i=d.next;var E=b=null,z=null,I=i,X=!1;do{var ee=I.lane&-536870913;if(ee!==I.lane?(Me&ee)===ee:(wr&ee)===ee){var Z=I.revertLane;if(Z===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),ee===Ks&&(X=!0);else if((wr&Z)===Z){I=I.next,Z===Ks&&(X=!0);continue}else ee={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(E=z=ee,b=p):z=z.next=ee,je.lanes|=Z,ii|=Z;ee=I.action,Xi&&a(p,ee),p=I.hasEagerState?I.eagerState:a(p,ee)}else Z={lane:ee,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(E=z=Z,b=p):z=z.next=Z,je.lanes|=ee,ii|=ee;I=I.next}while(I!==null&&I!==i);if(z===null?b=p:z.next=E,!sn(p,n.memoizedState)&&(ht=!0,X&&(a=Qs,a!==null)))throw a;n.memoizedState=p,n.baseState=b,n.baseQueue=z,l.lastRenderedState=p}return d===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Md(n){var i=lt(),a=i.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var l=a.dispatch,d=a.pending,p=i.memoizedState;if(d!==null){a.pending=null;var b=d=d.next;do p=n(p,b.action),b=b.next;while(b!==d);sn(p,i.memoizedState)||(ht=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),a.lastRenderedState=p}return[p,l]}function gv(n,i,a){var l=je,d=lt(),p=Pe;if(p){if(a===void 0)throw Error(s(407));a=a()}else a=i();var b=!sn(($e||d).memoizedState,a);if(b&&(d.memoizedState=a,ht=!0),d=d.queue,Pd(bv.bind(null,l,d,n),[n]),d.getSnapshot!==i||b||dt!==null&&dt.memoizedState.tag&1){if(l.flags|=2048,ea(9,{destroy:void 0},vv.bind(null,l,d,a,i),null),Ke===null)throw Error(s(349));p||(wr&127)!==0||yv(l,i,a)}return a}function yv(n,i,a){n.flags|=16384,n={getSnapshot:i,value:a},i=je.updateQueue,i===null?(i=mc(),je.updateQueue=i,i.stores=[n]):(a=i.stores,a===null?i.stores=[n]:a.push(n))}function vv(n,i,a,l){i.value=a,i.getSnapshot=l,xv(i)&&wv(n)}function bv(n,i,a){return a(function(){xv(i)&&wv(n)})}function xv(n){var i=n.getSnapshot;n=n.value;try{var a=i();return!sn(n,a)}catch{return!0}}function wv(n){var i=qi(n,2);i!==null&&Jt(i,n,2)}function Rd(n){var i=Ht();if(typeof n=="function"){var a=n;if(n=a(),Xi){Dn(!0);try{a()}finally{Dn(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:n},i}function Sv(n,i,a,l){return n.baseState=a,Nd(n,$e,typeof l=="function"?l:Sr)}function IA(n,i,a,l,d){if(bc(n))throw Error(s(485));if(n=i.action,n!==null){var p={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};A.T!==null?a(!0):p.isTransition=!1,l(p),a=i.pending,a===null?(p.next=i.pending=p,Ev(i,p)):(p.next=a.next,i.pending=a.next=p)}}function Ev(n,i){var a=i.action,l=i.payload,d=n.state;if(i.isTransition){var p=A.T,b={};A.T=b;try{var E=a(d,l),z=A.S;z!==null&&z(b,E),Tv(n,i,E)}catch(I){Dd(n,i,I)}finally{p!==null&&b.types!==null&&(p.types=b.types),A.T=p}}else try{p=a(d,l),Tv(n,i,p)}catch(I){Dd(n,i,I)}}function Tv(n,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){_v(n,i,l)},function(l){return Dd(n,i,l)}):_v(n,i,a)}function _v(n,i,a){i.status="fulfilled",i.value=a,Av(i),n.state=a,i=n.pending,i!==null&&(a=i.next,a===i?n.pending=null:(a=a.next,i.next=a,Ev(n,a)))}function Dd(n,i,a){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=a,Av(i),i=i.next;while(i!==l)}n.action=null}function Av(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function jv(n,i){return i}function Ov(n,i){if(Pe){var a=Ke.formState;if(a!==null){e:{var l=je;if(Pe){if(Fe){t:{for(var d=Fe,p=En;d.nodeType!==8;){if(!p){d=null;break t}if(d=_n(d.nextSibling),d===null){d=null;break t}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){Fe=_n(d.nextSibling),l=d.data==="F!";break e}}Fr(l)}l=!1}l&&(i=a[0])}}return a=Ht(),a.memoizedState=a.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jv,lastRenderedState:i},a.queue=l,a=Kv.bind(null,je,l),l.dispatch=a,l=Rd(!1),p=Hd.bind(null,je,!1,l.queue),l=Ht(),d={state:i,dispatch:null,action:n,pending:null},l.queue=d,a=IA.bind(null,je,d,p,a),d.dispatch=a,l.memoizedState=n,[i,a,!1]}function Cv(n){var i=lt();return kv(i,$e,n)}function kv(n,i,a){if(i=Nd(n,i,jv)[0],n=gc(Sr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=Eo(i)}catch(b){throw b===Fs?ac:b}else l=i;i=lt();var d=i.queue,p=d.dispatch;return a!==i.memoizedState&&(je.flags|=2048,ea(9,{destroy:void 0},$A.bind(null,d,a),null)),[l,p,n]}function $A(n,i){n.action=i}function zv(n){var i=lt(),a=$e;if(a!==null)return kv(i,a,n);lt(),i=i.memoizedState,a=lt();var l=a.queue.dispatch;return a.memoizedState=n,[i,l,!1]}function ea(n,i,a,l){return n={tag:n,create:a,deps:l,inst:i,next:null},i=je.updateQueue,i===null&&(i=mc(),je.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=n.next=n:(l=a.next,a.next=n,n.next=l,i.lastEffect=n),n}function Nv(){return lt().memoizedState}function yc(n,i,a,l){var d=Ht();je.flags|=n,d.memoizedState=ea(1|i,{destroy:void 0},a,l===void 0?null:l)}function vc(n,i,a,l){var d=lt();l=l===void 0?null:l;var p=d.memoizedState.inst;$e!==null&&l!==null&&Ad(l,$e.memoizedState.deps)?d.memoizedState=ea(i,p,a,l):(je.flags|=n,d.memoizedState=ea(1|i,p,a,l))}function Mv(n,i){yc(8390656,8,n,i)}function Pd(n,i){vc(2048,8,n,i)}function ZA(n){je.flags|=4;var i=je.updateQueue;if(i===null)i=mc(),je.updateQueue=i,i.events=[n];else{var a=i.events;a===null?i.events=[n]:a.push(n)}}function Rv(n){var i=lt().memoizedState;return ZA({ref:i,nextImpl:n}),function(){if((Be&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function Dv(n,i){return vc(4,2,n,i)}function Pv(n,i){return vc(4,4,n,i)}function Lv(n,i){if(typeof i=="function"){n=n();var a=i(n);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Uv(n,i,a){a=a!=null?a.concat([n]):null,vc(4,4,Lv.bind(null,i,n),a)}function Ld(){}function Vv(n,i){var a=lt();i=i===void 0?null:i;var l=a.memoizedState;return i!==null&&Ad(i,l[1])?l[0]:(a.memoizedState=[n,i],n)}function Bv(n,i){var a=lt();i=i===void 0?null:i;var l=a.memoizedState;if(i!==null&&Ad(i,l[1]))return l[0];if(l=n(),Xi){Dn(!0);try{n()}finally{Dn(!1)}}return a.memoizedState=[l,i],l}function Ud(n,i,a){return a===void 0||(wr&1073741824)!==0&&(Me&261930)===0?n.memoizedState=i:(n.memoizedState=a,n=H0(),je.lanes|=n,ii|=n,a)}function Hv(n,i,a,l){return sn(a,i)?a:Xs.current!==null?(n=Ud(n,a,l),sn(n,i)||(ht=!0),n):(wr&42)===0||(wr&1073741824)!==0&&(Me&261930)===0?(ht=!0,n.memoizedState=a):(n=H0(),je.lanes|=n,ii|=n,i)}function qv(n,i,a,l,d){var p=R.p;R.p=p!==0&&8>p?p:8;var b=A.T,E={};A.T=E,Hd(n,!1,i,a);try{var z=d(),I=A.S;if(I!==null&&I(E,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var X=BA(z,l);To(n,i,X,fn(n))}else To(n,i,l,fn(n))}catch(ee){To(n,i,{then:function(){},status:"rejected",reason:ee},fn())}finally{R.p=p,b!==null&&E.types!==null&&(b.types=E.types),A.T=b}}function GA(){}function Vd(n,i,a,l){if(n.tag!==5)throw Error(s(476));var d=Iv(n).queue;qv(n,d,i,P,a===null?GA:function(){return $v(n),a(l)})}function Iv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:P},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sr,lastRenderedState:a},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function $v(n){var i=Iv(n);i.next===null&&(i=n.alternate.memoizedState),To(n,i.next.queue,{},fn())}function Bd(){return Ct(Ho)}function Zv(){return lt().memoizedState}function Gv(){return lt().memoizedState}function KA(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var a=fn();n=Wr(a);var l=Jr(i,n,a);l!==null&&(Jt(l,i,a),bo(l,i,a)),i={cache:pd()},n.payload=i;return}i=i.return}}function QA(n,i,a){var l=fn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bc(n)?Qv(i,a):(a=id(n,i,a,l),a!==null&&(Jt(a,n,l),Fv(a,i,l)))}function Kv(n,i,a){var l=fn();To(n,i,a,l)}function To(n,i,a,l){var d={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bc(n))Qv(i,d);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var b=i.lastRenderedState,E=p(b,a);if(d.hasEagerState=!0,d.eagerState=E,sn(E,b))return Jl(n,i,d,0),Ke===null&&Wl(),!1}catch{}finally{}if(a=id(n,i,d,l),a!==null)return Jt(a,n,l),Fv(a,i,l),!0}return!1}function Hd(n,i,a,l){if(l={lane:2,revertLane:bh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bc(n)){if(i)throw Error(s(479))}else i=id(n,a,l,2),i!==null&&Jt(i,n,2)}function bc(n){var i=n.alternate;return n===je||i!==null&&i===je}function Qv(n,i){Ws=dc=!0;var a=n.pending;a===null?i.next=i:(i.next=a.next,a.next=i),n.pending=i}function Fv(n,i,a){if((a&4194048)!==0){var l=i.lanes;l&=n.pendingLanes,a|=l,i.lanes=a,Zt(n,a)}}var _o={readContext:Ct,use:pc,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};_o.useEffectEvent=rt;var Yv={readContext:Ct,use:pc,useCallback:function(n,i){return Ht().memoizedState=[n,i===void 0?null:i],n},useContext:Ct,useEffect:Mv,useImperativeHandle:function(n,i,a){a=a!=null?a.concat([n]):null,yc(4194308,4,Lv.bind(null,i,n),a)},useLayoutEffect:function(n,i){return yc(4194308,4,n,i)},useInsertionEffect:function(n,i){yc(4,2,n,i)},useMemo:function(n,i){var a=Ht();i=i===void 0?null:i;var l=n();if(Xi){Dn(!0);try{n()}finally{Dn(!1)}}return a.memoizedState=[l,i],l},useReducer:function(n,i,a){var l=Ht();if(a!==void 0){var d=a(i);if(Xi){Dn(!0);try{a(i)}finally{Dn(!1)}}}else d=i;return l.memoizedState=l.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},l.queue=n,n=n.dispatch=QA.bind(null,je,n),[l.memoizedState,n]},useRef:function(n){var i=Ht();return n={current:n},i.memoizedState=n},useState:function(n){n=Rd(n);var i=n.queue,a=Kv.bind(null,je,i);return i.dispatch=a,[n.memoizedState,a]},useDebugValue:Ld,useDeferredValue:function(n,i){var a=Ht();return Ud(a,n,i)},useTransition:function(){var n=Rd(!1);return n=qv.bind(null,je,n.queue,!0,!1),Ht().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,a){var l=je,d=Ht();if(Pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=i(),Ke===null)throw Error(s(349));(Me&127)!==0||yv(l,i,a)}d.memoizedState=a;var p={value:a,getSnapshot:i};return d.queue=p,Mv(bv.bind(null,l,p,n),[n]),l.flags|=2048,ea(9,{destroy:void 0},vv.bind(null,l,p,a,i),null),a},useId:function(){var n=Ht(),i=Ke.identifierPrefix;if(Pe){var a=Xn,l=Yn;a=(l&~(1<<32-Nt(l)-1)).toString(32)+a,i="_"+i+"R_"+a,a=hc++,0<a&&(i+="H"+a.toString(32)),i+="_"}else a=HA++,i="_"+i+"r_"+a.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:Bd,useFormState:Ov,useActionState:Ov,useOptimistic:function(n){var i=Ht();i.memoizedState=i.baseState=n;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=Hd.bind(null,je,!0,a),a.dispatch=i,[n,i]},useMemoCache:zd,useCacheRefresh:function(){return Ht().memoizedState=KA.bind(null,je)},useEffectEvent:function(n){var i=Ht(),a={impl:n};return i.memoizedState=a,function(){if((Be&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},qd={readContext:Ct,use:pc,useCallback:Vv,useContext:Ct,useEffect:Pd,useImperativeHandle:Uv,useInsertionEffect:Dv,useLayoutEffect:Pv,useMemo:Bv,useReducer:gc,useRef:Nv,useState:function(){return gc(Sr)},useDebugValue:Ld,useDeferredValue:function(n,i){var a=lt();return Hv(a,$e.memoizedState,n,i)},useTransition:function(){var n=gc(Sr)[0],i=lt().memoizedState;return[typeof n=="boolean"?n:Eo(n),i]},useSyncExternalStore:gv,useId:Zv,useHostTransitionStatus:Bd,useFormState:Cv,useActionState:Cv,useOptimistic:function(n,i){var a=lt();return Sv(a,$e,n,i)},useMemoCache:zd,useCacheRefresh:Gv};qd.useEffectEvent=Rv;var Xv={readContext:Ct,use:pc,useCallback:Vv,useContext:Ct,useEffect:Pd,useImperativeHandle:Uv,useInsertionEffect:Dv,useLayoutEffect:Pv,useMemo:Bv,useReducer:Md,useRef:Nv,useState:function(){return Md(Sr)},useDebugValue:Ld,useDeferredValue:function(n,i){var a=lt();return $e===null?Ud(a,n,i):Hv(a,$e.memoizedState,n,i)},useTransition:function(){var n=Md(Sr)[0],i=lt().memoizedState;return[typeof n=="boolean"?n:Eo(n),i]},useSyncExternalStore:gv,useId:Zv,useHostTransitionStatus:Bd,useFormState:zv,useActionState:zv,useOptimistic:function(n,i){var a=lt();return $e!==null?Sv(a,$e,n,i):(a.baseState=n,[n,a.queue.dispatch])},useMemoCache:zd,useCacheRefresh:Gv};Xv.useEffectEvent=Rv;function Id(n,i,a,l){i=n.memoizedState,a=a(l,i),a=a==null?i:y({},i,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var $d={enqueueSetState:function(n,i,a){n=n._reactInternals;var l=fn(),d=Wr(l);d.payload=i,a!=null&&(d.callback=a),i=Jr(n,d,l),i!==null&&(Jt(i,n,l),bo(i,n,l))},enqueueReplaceState:function(n,i,a){n=n._reactInternals;var l=fn(),d=Wr(l);d.tag=1,d.payload=i,a!=null&&(d.callback=a),i=Jr(n,d,l),i!==null&&(Jt(i,n,l),bo(i,n,l))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var a=fn(),l=Wr(a);l.tag=2,i!=null&&(l.callback=i),i=Jr(n,l,a),i!==null&&(Jt(i,n,a),bo(i,n,a))}};function Wv(n,i,a,l,d,p,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,p,b):i.prototype&&i.prototype.isPureReactComponent?!uo(a,l)||!uo(d,p):!0}function Jv(n,i,a,l){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,l),i.state!==n&&$d.enqueueReplaceState(i,i.state,null)}function Wi(n,i){var a=i;if("ref"in i){a={};for(var l in i)l!=="ref"&&(a[l]=i[l])}if(n=n.defaultProps){a===i&&(a=y({},a));for(var d in n)a[d]===void 0&&(a[d]=n[d])}return a}function e0(n){Xl(n)}function t0(n){console.error(n)}function n0(n){Xl(n)}function xc(n,i){try{var a=n.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function r0(n,i,a){try{var l=n.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Zd(n,i,a){return a=Wr(a),a.tag=3,a.payload={element:null},a.callback=function(){xc(n,i)},a}function i0(n){return n=Wr(n),n.tag=3,n}function s0(n,i,a,l){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=l.value;n.payload=function(){return d(p)},n.callback=function(){r0(i,a,l)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(n.callback=function(){r0(i,a,l),typeof d!="function"&&(si===null?si=new Set([this]):si.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function FA(n,i,a,l,d){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=a.alternate,i!==null&&Gs(i,a,d,!0),a=on.current,a!==null){switch(a.tag){case 31:case 13:return Tn===null?Nc():a.alternate===null&&it===0&&(it=3),a.flags&=-257,a.flags|=65536,a.lanes=d,l===oc?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([l]):i.add(l),gh(n,l,d)),!1;case 22:return a.flags|=65536,l===oc?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([l]):a.add(l)),gh(n,l,d)),!1}throw Error(s(435,a.tag))}return gh(n,l,d),Nc(),!1}if(Pe)return i=on.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,l!==ud&&(n=Error(s(422),{cause:l}),mo(xn(n,a)))):(l!==ud&&(i=Error(s(423),{cause:l}),mo(xn(i,a))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,l=xn(l,a),d=Zd(n.stateNode,l,d),wd(n,d),it!==4&&(it=2)),!1;var p=Error(s(520),{cause:l});if(p=xn(p,a),Mo===null?Mo=[p]:Mo.push(p),it!==4&&(it=2),i===null)return!0;l=xn(l,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,n=d&-d,a.lanes|=n,n=Zd(a.stateNode,l,n),wd(a,n),!1;case 1:if(i=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(si===null||!si.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=i0(d),s0(d,n,a,l),wd(a,d),!1}a=a.return}while(a!==null);return!1}var Gd=Error(s(461)),ht=!1;function kt(n,i,a,l){i.child=n===null?cv(i,null,a,l):Yi(i,n.child,a,l)}function a0(n,i,a,l,d){a=a.render;var p=i.ref;if("ref"in l){var b={};for(var E in l)E!=="ref"&&(b[E]=l[E])}else b=l;return Gi(i),l=jd(n,i,a,b,p,d),E=Od(),n!==null&&!ht?(Cd(n,i,d),Er(n,i,d)):(Pe&&E&&ld(i),i.flags|=1,kt(n,i,l,d),i.child)}function o0(n,i,a,l,d){if(n===null){var p=a.type;return typeof p=="function"&&!sd(p)&&p.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=p,l0(n,i,p,l,d)):(n=tc(a.type,null,l,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(p=n.child,!eh(n,d)){var b=p.memoizedProps;if(a=a.compare,a=a!==null?a:uo,a(b,l)&&n.ref===i.ref)return Er(n,i,d)}return i.flags|=1,n=yr(p,l),n.ref=i.ref,n.return=i,i.child=n}function l0(n,i,a,l,d){if(n!==null){var p=n.memoizedProps;if(uo(p,l)&&n.ref===i.ref)if(ht=!1,i.pendingProps=l=p,eh(n,d))(n.flags&131072)!==0&&(ht=!0);else return i.lanes=n.lanes,Er(n,i,d)}return Kd(n,i,a,l,d)}function c0(n,i,a,l){var d=l.children,p=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,n!==null){for(l=i.child=n.child,d=0;l!==null;)d=d|l.lanes|l.childLanes,l=l.sibling;l=d&~p}else l=0,i.child=null;return u0(n,i,p,a,l)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&sc(i,p!==null?p.cachePool:null),p!==null?dv(i,p):Ed(),hv(i);else return l=i.lanes=536870912,u0(n,i,p!==null?p.baseLanes|a:a,a,l)}else p!==null?(sc(i,p.cachePool),dv(i,p),ti(),i.memoizedState=null):(n!==null&&sc(i,null),Ed(),ti());return kt(n,i,d,a),i.child}function Ao(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function u0(n,i,a,l,d){var p=yd();return p=p===null?null:{parent:ft._currentValue,pool:p},i.memoizedState={baseLanes:a,cachePool:p},n!==null&&sc(i,null),Ed(),hv(i),n!==null&&Gs(n,i,l,!0),i.childLanes=d,null}function wc(n,i){return i=Ec({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function f0(n,i,a){return Yi(i,n.child,null,a),n=wc(i,i.pendingProps),n.flags|=2,ln(i),i.memoizedState=null,n}function YA(n,i,a){var l=i.pendingProps,d=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Pe){if(l.mode==="hidden")return n=wc(i,l),i.lanes=536870912,Ao(null,n);if(_d(i),(n=Fe)?(n=Eb(n,En),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Kr!==null?{id:Yn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},a=Qy(n),a.return=i,i.child=a,Ot=i,Fe=null)):n=null,n===null)throw Fr(i);return i.lanes=536870912,null}return wc(i,l)}var p=n.memoizedState;if(p!==null){var b=p.dehydrated;if(_d(i),d)if(i.flags&256)i.flags&=-257,i=f0(n,i,a);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(s(558));else if(ht||Gs(n,i,a,!1),d=(a&n.childLanes)!==0,ht||d){if(l=Ke,l!==null&&(b=Gt(l,a),b!==0&&b!==p.retryLane))throw p.retryLane=b,qi(n,b),Jt(l,n,b),Gd;Nc(),i=f0(n,i,a)}else n=p.treeContext,Fe=_n(b.nextSibling),Ot=i,Pe=!0,Qr=null,En=!1,n!==null&&Xy(i,n),i=wc(i,l),i.flags|=4096;return i}return n=yr(n.child,{mode:l.mode,children:l.children}),n.ref=i.ref,i.child=n,n.return=i,n}function Sc(n,i){var a=i.ref;if(a===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(n===null||n.ref!==a)&&(i.flags|=4194816)}}function Kd(n,i,a,l,d){return Gi(i),a=jd(n,i,a,l,void 0,d),l=Od(),n!==null&&!ht?(Cd(n,i,d),Er(n,i,d)):(Pe&&l&&ld(i),i.flags|=1,kt(n,i,a,d),i.child)}function d0(n,i,a,l,d,p){return Gi(i),i.updateQueue=null,a=pv(i,l,a,d),mv(n),l=Od(),n!==null&&!ht?(Cd(n,i,p),Er(n,i,p)):(Pe&&l&&ld(i),i.flags|=1,kt(n,i,a,p),i.child)}function h0(n,i,a,l,d){if(Gi(i),i.stateNode===null){var p=qs,b=a.contextType;typeof b=="object"&&b!==null&&(p=Ct(b)),p=new a(l,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=$d,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=l,p.state=i.memoizedState,p.refs={},bd(i),b=a.contextType,p.context=typeof b=="object"&&b!==null?Ct(b):qs,p.state=i.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Id(i,a,b,l),p.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&$d.enqueueReplaceState(p,p.state,null),wo(i,l,p,d),xo(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(n===null){p=i.stateNode;var E=i.memoizedProps,z=Wi(a,E);p.props=z;var I=p.context,X=a.contextType;b=qs,typeof X=="object"&&X!==null&&(b=Ct(X));var ee=a.getDerivedStateFromProps;X=typeof ee=="function"||typeof p.getSnapshotBeforeUpdate=="function",E=i.pendingProps!==E,X||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E||I!==b)&&Jv(i,p,l,b),Xr=!1;var Z=i.memoizedState;p.state=Z,wo(i,l,p,d),xo(),I=i.memoizedState,E||Z!==I||Xr?(typeof ee=="function"&&(Id(i,a,ee,l),I=i.memoizedState),(z=Xr||Wv(i,a,z,l,Z,I,b))?(X||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=I),p.props=l,p.state=I,p.context=b,l=z):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{p=i.stateNode,xd(n,i),b=i.memoizedProps,X=Wi(a,b),p.props=X,ee=i.pendingProps,Z=p.context,I=a.contextType,z=qs,typeof I=="object"&&I!==null&&(z=Ct(I)),E=a.getDerivedStateFromProps,(I=typeof E=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==ee||Z!==z)&&Jv(i,p,l,z),Xr=!1,Z=i.memoizedState,p.state=Z,wo(i,l,p,d),xo();var K=i.memoizedState;b!==ee||Z!==K||Xr||n!==null&&n.dependencies!==null&&rc(n.dependencies)?(typeof E=="function"&&(Id(i,a,E,l),K=i.memoizedState),(X=Xr||Wv(i,a,X,l,Z,K,z)||n!==null&&n.dependencies!==null&&rc(n.dependencies))?(I||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,K,z),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,K,z)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=K),p.props=l,p.state=K,p.context=z,l=X):(typeof p.componentDidUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===n.memoizedProps&&Z===n.memoizedState||(i.flags|=1024),l=!1)}return p=l,Sc(n,i),l=(i.flags&128)!==0,p||l?(p=i.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,n!==null&&l?(i.child=Yi(i,n.child,null,d),i.child=Yi(i,null,a,d)):kt(n,i,a,d),i.memoizedState=p.state,n=i.child):n=Er(n,i,d),n}function m0(n,i,a,l){return $i(),i.flags|=256,kt(n,i,a,l),i.child}var Qd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fd(n){return{baseLanes:n,cachePool:rv()}}function Yd(n,i,a){return n=n!==null?n.childLanes&~a:0,i&&(n|=un),n}function p0(n,i,a){var l=i.pendingProps,d=!1,p=(i.flags&128)!==0,b;if((b=p)||(b=n!==null&&n.memoizedState===null?!1:(ot.current&2)!==0),b&&(d=!0,i.flags&=-129),b=(i.flags&32)!==0,i.flags&=-33,n===null){if(Pe){if(d?ei(i):ti(),(n=Fe)?(n=Eb(n,En),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Kr!==null?{id:Yn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},a=Qy(n),a.return=i,i.child=a,Ot=i,Fe=null)):n=null,n===null)throw Fr(i);return Nh(n)?i.lanes=32:i.lanes=536870912,null}var E=l.children;return l=l.fallback,d?(ti(),d=i.mode,E=Ec({mode:"hidden",children:E},d),l=Ii(l,d,a,null),E.return=i,l.return=i,E.sibling=l,i.child=E,l=i.child,l.memoizedState=Fd(a),l.childLanes=Yd(n,b,a),i.memoizedState=Qd,Ao(null,l)):(ei(i),Xd(i,E))}var z=n.memoizedState;if(z!==null&&(E=z.dehydrated,E!==null)){if(p)i.flags&256?(ei(i),i.flags&=-257,i=Wd(n,i,a)):i.memoizedState!==null?(ti(),i.child=n.child,i.flags|=128,i=null):(ti(),E=l.fallback,d=i.mode,l=Ec({mode:"visible",children:l.children},d),E=Ii(E,d,a,null),E.flags|=2,l.return=i,E.return=i,l.sibling=E,i.child=l,Yi(i,n.child,null,a),l=i.child,l.memoizedState=Fd(a),l.childLanes=Yd(n,b,a),i.memoizedState=Qd,i=Ao(null,l));else if(ei(i),Nh(E)){if(b=E.nextSibling&&E.nextSibling.dataset,b)var I=b.dgst;b=I,l=Error(s(419)),l.stack="",l.digest=b,mo({value:l,source:null,stack:null}),i=Wd(n,i,a)}else if(ht||Gs(n,i,a,!1),b=(a&n.childLanes)!==0,ht||b){if(b=Ke,b!==null&&(l=Gt(b,a),l!==0&&l!==z.retryLane))throw z.retryLane=l,qi(n,l),Jt(b,n,l),Gd;zh(E)||Nc(),i=Wd(n,i,a)}else zh(E)?(i.flags|=192,i.child=n.child,i=null):(n=z.treeContext,Fe=_n(E.nextSibling),Ot=i,Pe=!0,Qr=null,En=!1,n!==null&&Xy(i,n),i=Xd(i,l.children),i.flags|=4096);return i}return d?(ti(),E=l.fallback,d=i.mode,z=n.child,I=z.sibling,l=yr(z,{mode:"hidden",children:l.children}),l.subtreeFlags=z.subtreeFlags&65011712,I!==null?E=yr(I,E):(E=Ii(E,d,a,null),E.flags|=2),E.return=i,l.return=i,l.sibling=E,i.child=l,Ao(null,l),l=i.child,E=n.child.memoizedState,E===null?E=Fd(a):(d=E.cachePool,d!==null?(z=ft._currentValue,d=d.parent!==z?{parent:z,pool:z}:d):d=rv(),E={baseLanes:E.baseLanes|a,cachePool:d}),l.memoizedState=E,l.childLanes=Yd(n,b,a),i.memoizedState=Qd,Ao(n.child,l)):(ei(i),a=n.child,n=a.sibling,a=yr(a,{mode:"visible",children:l.children}),a.return=i,a.sibling=null,n!==null&&(b=i.deletions,b===null?(i.deletions=[n],i.flags|=16):b.push(n)),i.child=a,i.memoizedState=null,a)}function Xd(n,i){return i=Ec({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Ec(n,i){return n=an(22,n,null,i),n.lanes=0,n}function Wd(n,i,a){return Yi(i,n.child,null,a),n=Xd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function g0(n,i,a){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i),hd(n.return,i,a)}function Jd(n,i,a,l,d,p){var b=n.memoizedState;b===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:d,treeForkCount:p}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=a,b.tailMode=d,b.treeForkCount=p)}function y0(n,i,a){var l=i.pendingProps,d=l.revealOrder,p=l.tail;l=l.children;var b=ot.current,E=(b&2)!==0;if(E?(b=b&1|2,i.flags|=128):b&=1,$(ot,b),kt(n,i,l,a),l=Pe?ho:0,!E&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&g0(n,a,i);else if(n.tag===19)g0(n,a,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(a=i.child,d=null;a!==null;)n=a.alternate,n!==null&&fc(n)===null&&(d=a),a=a.sibling;a=d,a===null?(d=i.child,i.child=null):(d=a.sibling,a.sibling=null),Jd(i,!1,d,a,p,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=i.child,i.child=null;d!==null;){if(n=d.alternate,n!==null&&fc(n)===null){i.child=d;break}n=d.sibling,d.sibling=a,a=d,d=n}Jd(i,!0,a,null,p,l);break;case"together":Jd(i,!1,null,null,void 0,l);break;default:i.memoizedState=null}return i.child}function Er(n,i,a){if(n!==null&&(i.dependencies=n.dependencies),ii|=i.lanes,(a&i.childLanes)===0)if(n!==null){if(Gs(n,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(s(153));if(i.child!==null){for(n=i.child,a=yr(n,n.pendingProps),i.child=a,a.return=i;n.sibling!==null;)n=n.sibling,a=a.sibling=yr(n,n.pendingProps),a.return=i;a.sibling=null}return i.child}function eh(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&rc(n)))}function XA(n,i,a){switch(i.tag){case 3:xe(i,i.stateNode.containerInfo),Yr(i,ft,n.memoizedState.cache),$i();break;case 27:case 5:_t(i);break;case 4:xe(i,i.stateNode.containerInfo);break;case 10:Yr(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,_d(i),null;break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(ei(i),i.flags|=128,null):(a&i.child.childLanes)!==0?p0(n,i,a):(ei(i),n=Er(n,i,a),n!==null?n.sibling:null);ei(i);break;case 19:var d=(n.flags&128)!==0;if(l=(a&i.childLanes)!==0,l||(Gs(n,i,a,!1),l=(a&i.childLanes)!==0),d){if(l)return y0(n,i,a);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),$(ot,ot.current),l)break;return null;case 22:return i.lanes=0,c0(n,i,a,i.pendingProps);case 24:Yr(i,ft,n.memoizedState.cache)}return Er(n,i,a)}function v0(n,i,a){if(n!==null)if(n.memoizedProps!==i.pendingProps)ht=!0;else{if(!eh(n,a)&&(i.flags&128)===0)return ht=!1,XA(n,i,a);ht=(n.flags&131072)!==0}else ht=!1,Pe&&(i.flags&1048576)!==0&&Yy(i,ho,i.index);switch(i.lanes=0,i.tag){case 16:e:{var l=i.pendingProps;if(n=Qi(i.elementType),i.type=n,typeof n=="function")sd(n)?(l=Wi(n,l),i.tag=1,i=h0(null,i,n,l,a)):(i.tag=0,i=Kd(null,i,n,l,a));else{if(n!=null){var d=n.$$typeof;if(d===B){i.tag=11,i=a0(null,i,n,l,a);break e}else if(d===j){i.tag=14,i=o0(null,i,n,l,a);break e}}throw i=ae(n)||n,Error(s(306,i,""))}}return i;case 0:return Kd(n,i,i.type,i.pendingProps,a);case 1:return l=i.type,d=Wi(l,i.pendingProps),h0(n,i,l,d,a);case 3:e:{if(xe(i,i.stateNode.containerInfo),n===null)throw Error(s(387));l=i.pendingProps;var p=i.memoizedState;d=p.element,xd(n,i),wo(i,l,null,a);var b=i.memoizedState;if(l=b.cache,Yr(i,ft,l),l!==p.cache&&md(i,[ft],a,!0),xo(),l=b.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:b.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=m0(n,i,l,a);break e}else if(l!==d){d=xn(Error(s(424)),i),mo(d),i=m0(n,i,l,a);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Fe=_n(n.firstChild),Ot=i,Pe=!0,Qr=null,En=!0,a=cv(i,null,l,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===d){i=Er(n,i,a);break e}kt(n,i,l,a)}i=i.child}return i;case 26:return Sc(n,i),n===null?(a=Cb(i.type,null,i.pendingProps,null))?i.memoizedState=a:Pe||(a=i.type,n=i.pendingProps,l=Vc(pe.current).createElement(a),l[jt]=i,l[Kt]=n,zt(l,a,n),wt(l),i.stateNode=l):i.memoizedState=Cb(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return _t(i),n===null&&Pe&&(l=i.stateNode=Ab(i.type,i.pendingProps,pe.current),Ot=i,En=!0,d=Fe,ci(i.type)?(Mh=d,Fe=_n(l.firstChild)):Fe=d),kt(n,i,i.pendingProps.children,a),Sc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Pe&&((d=l=Fe)&&(l=jj(l,i.type,i.pendingProps,En),l!==null?(i.stateNode=l,Ot=i,Fe=_n(l.firstChild),En=!1,d=!0):d=!1),d||Fr(i)),_t(i),d=i.type,p=i.pendingProps,b=n!==null?n.memoizedProps:null,l=p.children,Oh(d,p)?l=null:b!==null&&Oh(d,b)&&(i.flags|=32),i.memoizedState!==null&&(d=jd(n,i,qA,null,null,a),Ho._currentValue=d),Sc(n,i),kt(n,i,l,a),i.child;case 6:return n===null&&Pe&&((n=a=Fe)&&(a=Oj(a,i.pendingProps,En),a!==null?(i.stateNode=a,Ot=i,Fe=null,n=!0):n=!1),n||Fr(i)),null;case 13:return p0(n,i,a);case 4:return xe(i,i.stateNode.containerInfo),l=i.pendingProps,n===null?i.child=Yi(i,null,l,a):kt(n,i,l,a),i.child;case 11:return a0(n,i,i.type,i.pendingProps,a);case 7:return kt(n,i,i.pendingProps,a),i.child;case 8:return kt(n,i,i.pendingProps.children,a),i.child;case 12:return kt(n,i,i.pendingProps.children,a),i.child;case 10:return l=i.pendingProps,Yr(i,i.type,l.value),kt(n,i,l.children,a),i.child;case 9:return d=i.type._context,l=i.pendingProps.children,Gi(i),d=Ct(d),l=l(d),i.flags|=1,kt(n,i,l,a),i.child;case 14:return o0(n,i,i.type,i.pendingProps,a);case 15:return l0(n,i,i.type,i.pendingProps,a);case 19:return y0(n,i,a);case 31:return YA(n,i,a);case 22:return c0(n,i,a,i.pendingProps);case 24:return Gi(i),l=Ct(ft),n===null?(d=yd(),d===null&&(d=Ke,p=pd(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),i.memoizedState={parent:l,cache:d},bd(i),Yr(i,ft,d)):((n.lanes&a)!==0&&(xd(n,i),wo(i,null,null,a),xo()),d=n.memoizedState,p=i.memoizedState,d.parent!==l?(d={parent:l,cache:l},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Yr(i,ft,l)):(l=p.cache,Yr(i,ft,l),l!==d.cache&&md(i,[ft],a,!0))),kt(n,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function Tr(n){n.flags|=4}function th(n,i,a,l,d){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(Z0())n.flags|=8192;else throw Fi=oc,vd}else n.flags&=-16777217}function b0(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Rb(i))if(Z0())n.flags|=8192;else throw Fi=oc,vd}function Tc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Mt():536870912,n.lanes|=i,ia|=i)}function jo(n,i){if(!Pe)switch(n.tailMode){case"hidden":i=n.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Ye(n){var i=n.alternate!==null&&n.alternate.child===n.child,a=0,l=0;if(i)for(var d=n.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags&65011712,l|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)a|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=l,n.childLanes=a,i}function WA(n,i,a){var l=i.pendingProps;switch(cd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(i),null;case 1:return Ye(i),null;case 3:return a=i.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),xr(ft),De(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(n===null||n.child===null)&&(Zs(i)?Tr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,fd())),Ye(i),null;case 26:var d=i.type,p=i.memoizedState;return n===null?(Tr(i),p!==null?(Ye(i),b0(i,p)):(Ye(i),th(i,d,null,l,a))):p?p!==n.memoizedState?(Tr(i),Ye(i),b0(i,p)):(Ye(i),i.flags&=-16777217):(n=n.memoizedProps,n!==l&&Tr(i),Ye(i),th(i,d,n,l,a)),null;case 27:if(Lt(i),a=pe.current,d=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&Tr(i);else{if(!l){if(i.stateNode===null)throw Error(s(166));return Ye(i),null}n=Y.current,Zs(i)?Wy(i):(n=Ab(d,l,a),i.stateNode=n,Tr(i))}return Ye(i),null;case 5:if(Lt(i),d=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&Tr(i);else{if(!l){if(i.stateNode===null)throw Error(s(166));return Ye(i),null}if(p=Y.current,Zs(i))Wy(i);else{var b=Vc(pe.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?p.multiple=!0:l.size&&(p.size=l.size);break;default:p=typeof l.is=="string"?b.createElement(d,{is:l.is}):b.createElement(d)}}p[jt]=i,p[Kt]=l;e:for(b=i.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===i)break e;for(;b.sibling===null;){if(b.return===null||b.return===i)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}i.stateNode=p;e:switch(zt(p,d,l),d){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Tr(i)}}return Ye(i),th(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,a),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==l&&Tr(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(s(166));if(n=pe.current,Zs(i)){if(n=i.stateNode,a=i.memoizedProps,l=null,d=Ot,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}n[jt]=i,n=!!(n.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||pb(n.nodeValue,a)),n||Fr(i,!0)}else n=Vc(n).createTextNode(l),n[jt]=i,i.stateNode=n}return Ye(i),null;case 31:if(a=i.memoizedState,n===null||n.memoizedState!==null){if(l=Zs(i),a!==null){if(n===null){if(!l)throw Error(s(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[jt]=i}else $i(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ye(i),n=!1}else a=fd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=a),n=!0;if(!n)return i.flags&256?(ln(i),i):(ln(i),null);if((i.flags&128)!==0)throw Error(s(558))}return Ye(i),null;case 13:if(l=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Zs(i),l!==null&&l.dehydrated!==null){if(n===null){if(!d)throw Error(s(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[jt]=i}else $i(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ye(i),d=!1}else d=fd(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(ln(i),i):(ln(i),null)}return ln(i),(i.flags&128)!==0?(i.lanes=a,i):(a=l!==null,n=n!==null&&n.memoizedState!==null,a&&(l=i.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==d&&(l.flags|=2048)),a!==n&&a&&(i.child.flags|=8192),Tc(i,i.updateQueue),Ye(i),null);case 4:return De(),n===null&&Eh(i.stateNode.containerInfo),Ye(i),null;case 10:return xr(i.type),Ye(i),null;case 19:if(Q(ot),l=i.memoizedState,l===null)return Ye(i),null;if(d=(i.flags&128)!==0,p=l.rendering,p===null)if(d)jo(l,!1);else{if(it!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(p=fc(n),p!==null){for(i.flags|=128,jo(l,!1),n=p.updateQueue,i.updateQueue=n,Tc(i,n),i.subtreeFlags=0,n=a,a=i.child;a!==null;)Ky(a,n),a=a.sibling;return $(ot,ot.current&1|2),Pe&&vr(i,l.treeForkCount),i.child}n=n.sibling}l.tail!==null&&Vt()>Cc&&(i.flags|=128,d=!0,jo(l,!1),i.lanes=4194304)}else{if(!d)if(n=fc(p),n!==null){if(i.flags|=128,d=!0,n=n.updateQueue,i.updateQueue=n,Tc(i,n),jo(l,!0),l.tail===null&&l.tailMode==="hidden"&&!p.alternate&&!Pe)return Ye(i),null}else 2*Vt()-l.renderingStartTime>Cc&&a!==536870912&&(i.flags|=128,d=!0,jo(l,!1),i.lanes=4194304);l.isBackwards?(p.sibling=i.child,i.child=p):(n=l.last,n!==null?n.sibling=p:i.child=p,l.last=p)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Vt(),n.sibling=null,a=ot.current,$(ot,d?a&1|2:a&1),Pe&&vr(i,l.treeForkCount),n):(Ye(i),null);case 22:case 23:return ln(i),Td(),l=i.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(a&536870912)!==0&&(i.flags&128)===0&&(Ye(i),i.subtreeFlags&6&&(i.flags|=8192)):Ye(i),a=i.updateQueue,a!==null&&Tc(i,a.retryQueue),a=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==a&&(i.flags|=2048),n!==null&&Q(Ki),null;case 24:return a=null,n!==null&&(a=n.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),xr(ft),Ye(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function JA(n,i){switch(cd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return xr(ft),De(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Lt(i),null;case 31:if(i.memoizedState!==null){if(ln(i),i.alternate===null)throw Error(s(340));$i()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(ln(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(s(340));$i()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Q(ot),null;case 4:return De(),null;case 10:return xr(i.type),null;case 22:case 23:return ln(i),Td(),n!==null&&Q(Ki),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return xr(ft),null;case 25:return null;default:return null}}function x0(n,i){switch(cd(i),i.tag){case 3:xr(ft),De();break;case 26:case 27:case 5:Lt(i);break;case 4:De();break;case 31:i.memoizedState!==null&&ln(i);break;case 13:ln(i);break;case 19:Q(ot);break;case 10:xr(i.type);break;case 22:case 23:ln(i),Td(),n!==null&&Q(Ki);break;case 24:xr(ft)}}function Oo(n,i){try{var a=i.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var d=l.next;a=d;do{if((a.tag&n)===n){l=void 0;var p=a.create,b=a.inst;l=p(),b.destroy=l}a=a.next}while(a!==d)}}catch(E){qe(i,i.return,E)}}function ni(n,i,a){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&n)===n){var b=l.inst,E=b.destroy;if(E!==void 0){b.destroy=void 0,d=i;var z=a,I=E;try{I()}catch(X){qe(d,z,X)}}}l=l.next}while(l!==p)}}catch(X){qe(i,i.return,X)}}function w0(n){var i=n.updateQueue;if(i!==null){var a=n.stateNode;try{fv(i,a)}catch(l){qe(n,n.return,l)}}}function S0(n,i,a){a.props=Wi(n.type,n.memoizedProps),a.state=n.memoizedState;try{a.componentWillUnmount()}catch(l){qe(n,i,l)}}function Co(n,i){try{var a=n.ref;if(a!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof a=="function"?n.refCleanup=a(l):a.current=l}}catch(d){qe(n,i,d)}}function Wn(n,i){var a=n.ref,l=n.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(d){qe(n,i,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){qe(n,i,d)}else a.current=null}function E0(n){var i=n.type,a=n.memoizedProps,l=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(d){qe(n,n.return,d)}}function nh(n,i,a){try{var l=n.stateNode;wj(l,n.type,a,i),l[Kt]=i}catch(d){qe(n,n.return,d)}}function T0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ci(n.type)||n.tag===4}function rh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||T0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ci(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function ih(n,i,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(n,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(n),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=pr));else if(l!==4&&(l===27&&ci(n.type)&&(a=n.stateNode,i=null),n=n.child,n!==null))for(ih(n,i,a),n=n.sibling;n!==null;)ih(n,i,a),n=n.sibling}function _c(n,i,a){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?a.insertBefore(n,i):a.appendChild(n);else if(l!==4&&(l===27&&ci(n.type)&&(a=n.stateNode),n=n.child,n!==null))for(_c(n,i,a),n=n.sibling;n!==null;)_c(n,i,a),n=n.sibling}function _0(n){var i=n.stateNode,a=n.memoizedProps;try{for(var l=n.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);zt(i,l,a),i[jt]=n,i[Kt]=a}catch(p){qe(n,n.return,p)}}var _r=!1,mt=!1,sh=!1,A0=typeof WeakSet=="function"?WeakSet:Set,St=null;function ej(n,i){if(n=n.containerInfo,Ah=Gc,n=Uy(n),Wf(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var d=l.anchorOffset,p=l.focusNode;l=l.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var b=0,E=-1,z=-1,I=0,X=0,ee=n,Z=null;t:for(;;){for(var K;ee!==a||d!==0&&ee.nodeType!==3||(E=b+d),ee!==p||l!==0&&ee.nodeType!==3||(z=b+l),ee.nodeType===3&&(b+=ee.nodeValue.length),(K=ee.firstChild)!==null;)Z=ee,ee=K;for(;;){if(ee===n)break t;if(Z===a&&++I===d&&(E=b),Z===p&&++X===l&&(z=b),(K=ee.nextSibling)!==null)break;ee=Z,Z=ee.parentNode}ee=K}a=E===-1||z===-1?null:{start:E,end:z}}else a=null}a=a||{start:0,end:0}}else a=null;for(jh={focusedElem:n,selectionRange:a},Gc=!1,St=i;St!==null;)if(i=St,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,St=n;else for(;St!==null;){switch(i=St,p=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(a=0;a<n.length;a++)d=n[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,a=i,d=p.memoizedProps,p=p.memoizedState,l=a.stateNode;try{var de=Wi(a.type,d);n=l.getSnapshotBeforeUpdate(de,p),l.__reactInternalSnapshotBeforeUpdate=n}catch(ve){qe(a,a.return,ve)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,a=n.nodeType,a===9)kh(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":kh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=i.sibling,n!==null){n.return=i.return,St=n;break}St=i.return}}function j0(n,i,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:jr(n,a),l&4&&Oo(5,a);break;case 1:if(jr(n,a),l&4)if(n=a.stateNode,i===null)try{n.componentDidMount()}catch(b){qe(a,a.return,b)}else{var d=Wi(a.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(d,i,n.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(a,a.return,b)}}l&64&&w0(a),l&512&&Co(a,a.return);break;case 3:if(jr(n,a),l&64&&(n=a.updateQueue,n!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{fv(n,i)}catch(b){qe(a,a.return,b)}}break;case 27:i===null&&l&4&&_0(a);case 26:case 5:jr(n,a),i===null&&l&4&&E0(a),l&512&&Co(a,a.return);break;case 12:jr(n,a);break;case 31:jr(n,a),l&4&&k0(n,a);break;case 13:jr(n,a),l&4&&z0(n,a),l&64&&(n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(a=cj.bind(null,a),Cj(n,a))));break;case 22:if(l=a.memoizedState!==null||_r,!l){i=i!==null&&i.memoizedState!==null||mt,d=_r;var p=mt;_r=l,(mt=i)&&!p?Or(n,a,(a.subtreeFlags&8772)!==0):jr(n,a),_r=d,mt=p}break;case 30:break;default:jr(n,a)}}function O0(n){var i=n.alternate;i!==null&&(n.alternate=null,O0(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Df(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var We=null,Ft=!1;function Ar(n,i,a){for(a=a.child;a!==null;)C0(n,i,a),a=a.sibling}function C0(n,i,a){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Di,a)}catch{}switch(a.tag){case 26:mt||Wn(a,i),Ar(n,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:mt||Wn(a,i);var l=We,d=Ft;ci(a.type)&&(We=a.stateNode,Ft=!1),Ar(n,i,a),Uo(a.stateNode),We=l,Ft=d;break;case 5:mt||Wn(a,i);case 6:if(l=We,d=Ft,We=null,Ar(n,i,a),We=l,Ft=d,We!==null)if(Ft)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(a.stateNode)}catch(p){qe(a,i,p)}else try{We.removeChild(a.stateNode)}catch(p){qe(a,i,p)}break;case 18:We!==null&&(Ft?(n=We,wb(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,a.stateNode),da(n)):wb(We,a.stateNode));break;case 4:l=We,d=Ft,We=a.stateNode.containerInfo,Ft=!0,Ar(n,i,a),We=l,Ft=d;break;case 0:case 11:case 14:case 15:ni(2,a,i),mt||ni(4,a,i),Ar(n,i,a);break;case 1:mt||(Wn(a,i),l=a.stateNode,typeof l.componentWillUnmount=="function"&&S0(a,i,l)),Ar(n,i,a);break;case 21:Ar(n,i,a);break;case 22:mt=(l=mt)||a.memoizedState!==null,Ar(n,i,a),mt=l;break;default:Ar(n,i,a)}}function k0(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{da(n)}catch(a){qe(i,i.return,a)}}}function z0(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{da(n)}catch(a){qe(i,i.return,a)}}function tj(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new A0),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new A0),i;default:throw Error(s(435,n.tag))}}function Ac(n,i){var a=tj(n);i.forEach(function(l){if(!a.has(l)){a.add(l);var d=uj.bind(null,n,l);l.then(d,d)}})}function Yt(n,i){var a=i.deletions;if(a!==null)for(var l=0;l<a.length;l++){var d=a[l],p=n,b=i,E=b;e:for(;E!==null;){switch(E.tag){case 27:if(ci(E.type)){We=E.stateNode,Ft=!1;break e}break;case 5:We=E.stateNode,Ft=!1;break e;case 3:case 4:We=E.stateNode.containerInfo,Ft=!0;break e}E=E.return}if(We===null)throw Error(s(160));C0(p,b,d),We=null,Ft=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)N0(i,n),i=i.sibling}var Un=null;function N0(n,i){var a=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Yt(i,n),Xt(n),l&4&&(ni(3,n,n.return),Oo(3,n),ni(5,n,n.return));break;case 1:Yt(i,n),Xt(n),l&512&&(mt||a===null||Wn(a,a.return)),l&64&&_r&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(a=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var d=Un;if(Yt(i,n),Xt(n),l&512&&(mt||a===null||Wn(a,a.return)),l&4){var p=a!==null?a.memoizedState:null;if(l=n.memoizedState,a===null)if(l===null)if(n.stateNode===null){e:{l=n.type,a=n.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":p=d.getElementsByTagName("title")[0],(!p||p[to]||p[jt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(l),d.head.insertBefore(p,d.querySelector("head > title"))),zt(p,l,a),p[jt]=n,wt(p),l=p;break e;case"link":var b=Nb("link","href",d).get(l+(a.href||""));if(b){for(var E=0;E<b.length;E++)if(p=b[E],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(E,1);break t}}p=d.createElement(l),zt(p,l,a),d.head.appendChild(p);break;case"meta":if(b=Nb("meta","content",d).get(l+(a.content||""))){for(E=0;E<b.length;E++)if(p=b[E],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(E,1);break t}}p=d.createElement(l),zt(p,l,a),d.head.appendChild(p);break;default:throw Error(s(468,l))}p[jt]=n,wt(p),l=p}n.stateNode=l}else Mb(d,n.type,n.stateNode);else n.stateNode=zb(d,l,n.memoizedProps);else p!==l?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,l===null?Mb(d,n.type,n.stateNode):zb(d,l,n.memoizedProps)):l===null&&n.stateNode!==null&&nh(n,n.memoizedProps,a.memoizedProps)}break;case 27:Yt(i,n),Xt(n),l&512&&(mt||a===null||Wn(a,a.return)),a!==null&&l&4&&nh(n,n.memoizedProps,a.memoizedProps);break;case 5:if(Yt(i,n),Xt(n),l&512&&(mt||a===null||Wn(a,a.return)),n.flags&32){d=n.stateNode;try{Ds(d,"")}catch(de){qe(n,n.return,de)}}l&4&&n.stateNode!=null&&(d=n.memoizedProps,nh(n,d,a!==null?a.memoizedProps:d)),l&1024&&(sh=!0);break;case 6:if(Yt(i,n),Xt(n),l&4){if(n.stateNode===null)throw Error(s(162));l=n.memoizedProps,a=n.stateNode;try{a.nodeValue=l}catch(de){qe(n,n.return,de)}}break;case 3:if(qc=null,d=Un,Un=Bc(i.containerInfo),Yt(i,n),Un=d,Xt(n),l&4&&a!==null&&a.memoizedState.isDehydrated)try{da(i.containerInfo)}catch(de){qe(n,n.return,de)}sh&&(sh=!1,M0(n));break;case 4:l=Un,Un=Bc(n.stateNode.containerInfo),Yt(i,n),Xt(n),Un=l;break;case 12:Yt(i,n),Xt(n);break;case 31:Yt(i,n),Xt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ac(n,l)));break;case 13:Yt(i,n),Xt(n),n.child.flags&8192&&n.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Oc=Vt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ac(n,l)));break;case 22:d=n.memoizedState!==null;var z=a!==null&&a.memoizedState!==null,I=_r,X=mt;if(_r=I||d,mt=X||z,Yt(i,n),mt=X,_r=I,Xt(n),l&8192)e:for(i=n.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(a===null||z||_r||mt||Ji(n)),a=null,i=n;;){if(i.tag===5||i.tag===26){if(a===null){z=a=i;try{if(p=z.stateNode,d)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{E=z.stateNode;var ee=z.memoizedProps.style,Z=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;E.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(de){qe(z,z.return,de)}}}else if(i.tag===6){if(a===null){z=i;try{z.stateNode.nodeValue=d?"":z.memoizedProps}catch(de){qe(z,z.return,de)}}}else if(i.tag===18){if(a===null){z=i;try{var K=z.stateNode;d?Sb(K,!0):Sb(z.stateNode,!1)}catch(de){qe(z,z.return,de)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=n.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ac(n,a))));break;case 19:Yt(i,n),Xt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ac(n,l)));break;case 30:break;case 21:break;default:Yt(i,n),Xt(n)}}function Xt(n){var i=n.flags;if(i&2){try{for(var a,l=n.return;l!==null;){if(T0(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var d=a.stateNode,p=rh(n);_c(n,p,d);break;case 5:var b=a.stateNode;a.flags&32&&(Ds(b,""),a.flags&=-33);var E=rh(n);_c(n,E,b);break;case 3:case 4:var z=a.stateNode.containerInfo,I=rh(n);ih(n,I,z);break;default:throw Error(s(161))}}catch(X){qe(n,n.return,X)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function M0(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;M0(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function jr(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)j0(n,i.alternate,i),i=i.sibling}function Ji(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:ni(4,i,i.return),Ji(i);break;case 1:Wn(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&S0(i,i.return,a),Ji(i);break;case 27:Uo(i.stateNode);case 26:case 5:Wn(i,i.return),Ji(i);break;case 22:i.memoizedState===null&&Ji(i);break;case 30:Ji(i);break;default:Ji(i)}n=n.sibling}}function Or(n,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,d=n,p=i,b=p.flags;switch(p.tag){case 0:case 11:case 15:Or(d,p,a),Oo(4,p);break;case 1:if(Or(d,p,a),l=p,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(I){qe(l,l.return,I)}if(l=p,d=l.updateQueue,d!==null){var E=l.stateNode;try{var z=d.shared.hiddenCallbacks;if(z!==null)for(d.shared.hiddenCallbacks=null,d=0;d<z.length;d++)uv(z[d],E)}catch(I){qe(l,l.return,I)}}a&&b&64&&w0(p),Co(p,p.return);break;case 27:_0(p);case 26:case 5:Or(d,p,a),a&&l===null&&b&4&&E0(p),Co(p,p.return);break;case 12:Or(d,p,a);break;case 31:Or(d,p,a),a&&b&4&&k0(d,p);break;case 13:Or(d,p,a),a&&b&4&&z0(d,p);break;case 22:p.memoizedState===null&&Or(d,p,a),Co(p,p.return);break;case 30:break;default:Or(d,p,a)}i=i.sibling}}function ah(n,i){var a=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==a&&(n!=null&&n.refCount++,a!=null&&po(a))}function oh(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&po(n))}function Vn(n,i,a,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)R0(n,i,a,l),i=i.sibling}function R0(n,i,a,l){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Vn(n,i,a,l),d&2048&&Oo(9,i);break;case 1:Vn(n,i,a,l);break;case 3:Vn(n,i,a,l),d&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&po(n)));break;case 12:if(d&2048){Vn(n,i,a,l),n=i.stateNode;try{var p=i.memoizedProps,b=p.id,E=p.onPostCommit;typeof E=="function"&&E(b,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(z){qe(i,i.return,z)}}else Vn(n,i,a,l);break;case 31:Vn(n,i,a,l);break;case 13:Vn(n,i,a,l);break;case 23:break;case 22:p=i.stateNode,b=i.alternate,i.memoizedState!==null?p._visibility&2?Vn(n,i,a,l):ko(n,i):p._visibility&2?Vn(n,i,a,l):(p._visibility|=2,ta(n,i,a,l,(i.subtreeFlags&10256)!==0||!1)),d&2048&&ah(b,i);break;case 24:Vn(n,i,a,l),d&2048&&oh(i.alternate,i);break;default:Vn(n,i,a,l)}}function ta(n,i,a,l,d){for(d=d&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=n,b=i,E=a,z=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:ta(p,b,E,z,d),Oo(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?ta(p,b,E,z,d):ko(p,b):(X._visibility|=2,ta(p,b,E,z,d)),d&&I&2048&&ah(b.alternate,b);break;case 24:ta(p,b,E,z,d),d&&I&2048&&oh(b.alternate,b);break;default:ta(p,b,E,z,d)}i=i.sibling}}function ko(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=n,l=i,d=l.flags;switch(l.tag){case 22:ko(a,l),d&2048&&ah(l.alternate,l);break;case 24:ko(a,l),d&2048&&oh(l.alternate,l);break;default:ko(a,l)}i=i.sibling}}var zo=8192;function na(n,i,a){if(n.subtreeFlags&zo)for(n=n.child;n!==null;)D0(n,i,a),n=n.sibling}function D0(n,i,a){switch(n.tag){case 26:na(n,i,a),n.flags&zo&&n.memoizedState!==null&&Hj(a,Un,n.memoizedState,n.memoizedProps);break;case 5:na(n,i,a);break;case 3:case 4:var l=Un;Un=Bc(n.stateNode.containerInfo),na(n,i,a),Un=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=zo,zo=16777216,na(n,i,a),zo=l):na(n,i,a));break;default:na(n,i,a)}}function P0(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function No(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var l=i[a];St=l,U0(l,n)}P0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)L0(n),n=n.sibling}function L0(n){switch(n.tag){case 0:case 11:case 15:No(n),n.flags&2048&&ni(9,n,n.return);break;case 3:No(n);break;case 12:No(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,jc(n)):No(n);break;default:No(n)}}function jc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var l=i[a];St=l,U0(l,n)}P0(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:ni(8,i,i.return),jc(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,jc(i));break;default:jc(i)}n=n.sibling}}function U0(n,i){for(;St!==null;){var a=St;switch(a.tag){case 0:case 11:case 15:ni(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:po(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,St=l;else e:for(a=n;St!==null;){l=St;var d=l.sibling,p=l.return;if(O0(l),l===a){St=null;break e}if(d!==null){d.return=p,St=d;break e}St=p}}}var nj={getCacheForType:function(n){var i=Ct(ft),a=i.data.get(n);return a===void 0&&(a=n(),i.data.set(n,a)),a},cacheSignal:function(){return Ct(ft).controller.signal}},rj=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ke=null,ze=null,Me=0,He=0,cn=null,ri=!1,ra=!1,lh=!1,Cr=0,it=0,ii=0,es=0,ch=0,un=0,ia=0,Mo=null,Wt=null,uh=!1,Oc=0,V0=0,Cc=1/0,kc=null,si=null,yt=0,ai=null,sa=null,kr=0,fh=0,dh=null,B0=null,Ro=0,hh=null;function fn(){return(Be&2)!==0&&Me!==0?Me&-Me:A.T!==null?bh():Mf()}function H0(){if(un===0)if((Me&536870912)===0||Pe){var n=js;js<<=1,(js&3932160)===0&&(js=262144),un=n}else un=536870912;return n=on.current,n!==null&&(n.flags|=32),un}function Jt(n,i,a){(n===Ke&&(He===2||He===9)||n.cancelPendingCommit!==null)&&(aa(n,0),oi(n,Me,un,!1)),et(n,a),((Be&2)===0||n!==Ke)&&(n===Ke&&((Be&2)===0&&(es|=a),it===4&&oi(n,Me,un,!1)),Jn(n))}function q0(n,i,a){if((Be&6)!==0)throw Error(s(327));var l=!a&&(i&127)===0&&(i&n.expiredLanes)===0||Xe(n,i),d=l?aj(n,i):ph(n,i,!0),p=l;do{if(d===0){ra&&!l&&oi(n,i,0,!1);break}else{if(a=n.current.alternate,p&&!ij(a)){d=ph(n,i,!1),p=!1;continue}if(d===2){if(p=i,n.errorRecoveryDisabledLanes&p)var b=0;else b=n.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){i=b;e:{var E=n;d=Mo;var z=E.current.memoizedState.isDehydrated;if(z&&(aa(E,b).flags|=256),b=ph(E,b,!1),b!==2){if(lh&&!z){E.errorRecoveryDisabledLanes|=p,es|=p,d=4;break e}p=Wt,Wt=d,p!==null&&(Wt===null?Wt=p:Wt.push.apply(Wt,p))}d=b}if(p=!1,d!==2)continue}}if(d===1){aa(n,0),oi(n,i,0,!0);break}e:{switch(l=n,p=d,p){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:oi(l,i,un,!ri);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(d=Oc+300-Vt(),10<d)){if(oi(l,i,un,!ri),we(l,0,!0)!==0)break e;kr=i,l.timeoutHandle=bb(I0.bind(null,l,a,Wt,kc,uh,i,un,es,ia,ri,p,"Throttled",-0,0),d);break e}I0(l,a,Wt,kc,uh,i,un,es,ia,ri,p,null,-0,0)}}break}while(!0);Jn(n)}function I0(n,i,a,l,d,p,b,E,z,I,X,ee,Z,K){if(n.timeoutHandle=-1,ee=i.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pr},D0(i,p,ee);var de=(p&62914560)===p?Oc-Vt():(p&4194048)===p?V0-Vt():0;if(de=qj(ee,de),de!==null){kr=p,n.cancelPendingCommit=de(X0.bind(null,n,i,p,a,l,d,b,E,z,X,ee,null,Z,K)),oi(n,p,b,!I);return}}X0(n,i,p,a,l,d,b,E,z)}function ij(n){for(var i=n;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var d=a[l],p=d.getSnapshot;d=d.value;try{if(!sn(p(),d))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function oi(n,i,a,l){i&=~ch,i&=~es,n.suspendedLanes|=i,n.pingedLanes&=~i,l&&(n.warmLanes|=i),l=n.expirationTimes;for(var d=i;0<d;){var p=31-Nt(d),b=1<<p;l[p]=-1,d&=~b}a!==0&&Li(n,a,i)}function zc(){return(Be&6)===0?(Do(0),!1):!0}function mh(){if(ze!==null){if(He===0)var n=ze.return;else n=ze,br=Zi=null,kd(n),Ys=null,yo=0,n=ze;for(;n!==null;)x0(n.alternate,n),n=n.return;ze=null}}function aa(n,i){var a=n.timeoutHandle;a!==-1&&(n.timeoutHandle=-1,Tj(a)),a=n.cancelPendingCommit,a!==null&&(n.cancelPendingCommit=null,a()),kr=0,mh(),Ke=n,ze=a=yr(n.current,null),Me=i,He=0,cn=null,ri=!1,ra=Xe(n,i),lh=!1,ia=un=ch=es=ii=it=0,Wt=Mo=null,uh=!1,(i&8)!==0&&(i|=i&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=i;0<l;){var d=31-Nt(l),p=1<<d;i|=n[d],l&=~p}return Cr=i,Wl(),a}function $0(n,i){je=null,A.H=_o,i===Fs||i===ac?(i=av(),He=3):i===vd?(i=av(),He=4):He=i===Gd?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,cn=i,ze===null&&(it=1,xc(n,xn(i,n.current)))}function Z0(){var n=on.current;return n===null?!0:(Me&4194048)===Me?Tn===null:(Me&62914560)===Me||(Me&536870912)!==0?n===Tn:!1}function G0(){var n=A.H;return A.H=_o,n===null?_o:n}function K0(){var n=A.A;return A.A=nj,n}function Nc(){it=4,ri||(Me&4194048)!==Me&&on.current!==null||(ra=!0),(ii&134217727)===0&&(es&134217727)===0||Ke===null||oi(Ke,Me,un,!1)}function ph(n,i,a){var l=Be;Be|=2;var d=G0(),p=K0();(Ke!==n||Me!==i)&&(kc=null,aa(n,i)),i=!1;var b=it;e:do try{if(He!==0&&ze!==null){var E=ze,z=cn;switch(He){case 8:mh(),b=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(i=!0);var I=He;if(He=0,cn=null,oa(n,E,z,I),a&&ra){b=0;break e}break;default:I=He,He=0,cn=null,oa(n,E,z,I)}}sj(),b=it;break}catch(X){$0(n,X)}while(!0);return i&&n.shellSuspendCounter++,br=Zi=null,Be=l,A.H=d,A.A=p,ze===null&&(Ke=null,Me=0,Wl()),b}function sj(){for(;ze!==null;)Q0(ze)}function aj(n,i){var a=Be;Be|=2;var l=G0(),d=K0();Ke!==n||Me!==i?(kc=null,Cc=Vt()+500,aa(n,i)):ra=Xe(n,i);e:do try{if(He!==0&&ze!==null){i=ze;var p=cn;t:switch(He){case 1:He=0,cn=null,oa(n,i,p,1);break;case 2:case 9:if(iv(p)){He=0,cn=null,F0(i);break}i=function(){He!==2&&He!==9||Ke!==n||(He=7),Jn(n)},p.then(i,i);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:iv(p)?(He=0,cn=null,F0(i)):(He=0,cn=null,oa(n,i,p,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var E=ze;if(b?Rb(b):E.stateNode.complete){He=0,cn=null;var z=E.sibling;if(z!==null)ze=z;else{var I=E.return;I!==null?(ze=I,Mc(I)):ze=null}break t}}He=0,cn=null,oa(n,i,p,5);break;case 6:He=0,cn=null,oa(n,i,p,6);break;case 8:mh(),it=6;break e;default:throw Error(s(462))}}oj();break}catch(X){$0(n,X)}while(!0);return br=Zi=null,A.H=l,A.A=d,Be=a,ze!==null?0:(Ke=null,Me=0,Wl(),it)}function oj(){for(;ze!==null&&!Ut();)Q0(ze)}function Q0(n){var i=v0(n.alternate,n,Cr);n.memoizedProps=n.pendingProps,i===null?Mc(n):ze=i}function F0(n){var i=n,a=i.alternate;switch(i.tag){case 15:case 0:i=d0(a,i,i.pendingProps,i.type,void 0,Me);break;case 11:i=d0(a,i,i.pendingProps,i.type.render,i.ref,Me);break;case 5:kd(i);default:x0(a,i),i=ze=Ky(i,Cr),i=v0(a,i,Cr)}n.memoizedProps=n.pendingProps,i===null?Mc(n):ze=i}function oa(n,i,a,l){br=Zi=null,kd(i),Ys=null,yo=0;var d=i.return;try{if(FA(n,d,i,a,Me)){it=1,xc(n,xn(a,n.current)),ze=null;return}}catch(p){if(d!==null)throw ze=d,p;it=1,xc(n,xn(a,n.current)),ze=null;return}i.flags&32768?(Pe||l===1?n=!0:ra||(Me&536870912)!==0?n=!1:(ri=n=!0,(l===2||l===9||l===3||l===6)&&(l=on.current,l!==null&&l.tag===13&&(l.flags|=16384))),Y0(i,n)):Mc(i)}function Mc(n){var i=n;do{if((i.flags&32768)!==0){Y0(i,ri);return}n=i.return;var a=WA(i.alternate,i,Cr);if(a!==null){ze=a;return}if(i=i.sibling,i!==null){ze=i;return}ze=i=n}while(i!==null);it===0&&(it=5)}function Y0(n,i){do{var a=JA(n.alternate,n);if(a!==null){a.flags&=32767,ze=a;return}if(a=n.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(n=n.sibling,n!==null)){ze=n;return}ze=n=a}while(n!==null);it=6,ze=null}function X0(n,i,a,l,d,p,b,E,z){n.cancelPendingCommit=null;do Rc();while(yt!==0);if((Be&6)!==0)throw Error(s(327));if(i!==null){if(i===n.current)throw Error(s(177));if(p=i.lanes|i.childLanes,p|=rd,$t(n,a,p,b,E,z),n===Ke&&(ze=Ke=null,Me=0),sa=i,ai=n,kr=a,fh=p,dh=d,B0=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,fj(Ri,function(){return nb(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,d=R.p,R.p=2,b=Be,Be|=4;try{ej(n,i,a)}finally{Be=b,R.p=d,A.T=l}}yt=1,W0(),J0(),eb()}}function W0(){if(yt===1){yt=0;var n=ai,i=sa,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var l=R.p;R.p=2;var d=Be;Be|=4;try{N0(i,n);var p=jh,b=Uy(n.containerInfo),E=p.focusedElem,z=p.selectionRange;if(b!==E&&E&&E.ownerDocument&&Ly(E.ownerDocument.documentElement,E)){if(z!==null&&Wf(E)){var I=z.start,X=z.end;if(X===void 0&&(X=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(X,E.value.length);else{var ee=E.ownerDocument||document,Z=ee&&ee.defaultView||window;if(Z.getSelection){var K=Z.getSelection(),de=E.textContent.length,ve=Math.min(z.start,de),Ge=z.end===void 0?ve:Math.min(z.end,de);!K.extend&&ve>Ge&&(b=Ge,Ge=ve,ve=b);var V=Py(E,ve),M=Py(E,Ge);if(V&&M&&(K.rangeCount!==1||K.anchorNode!==V.node||K.anchorOffset!==V.offset||K.focusNode!==M.node||K.focusOffset!==M.offset)){var q=ee.createRange();q.setStart(V.node,V.offset),K.removeAllRanges(),ve>Ge?(K.addRange(q),K.extend(M.node,M.offset)):(q.setEnd(M.node,M.offset),K.addRange(q))}}}}for(ee=[],K=E;K=K.parentNode;)K.nodeType===1&&ee.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ee.length;E++){var J=ee[E];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Gc=!!Ah,jh=Ah=null}finally{Be=d,R.p=l,A.T=a}}n.current=i,yt=2}}function J0(){if(yt===2){yt=0;var n=ai,i=sa,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var l=R.p;R.p=2;var d=Be;Be|=4;try{j0(n,i.alternate,i)}finally{Be=d,R.p=l,A.T=a}}yt=3}}function eb(){if(yt===4||yt===3){yt=0,qr();var n=ai,i=sa,a=kr,l=B0;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?yt=5:(yt=0,sa=ai=null,tb(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(si=null),Pn(a),i=i.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Di,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=A.T,d=R.p,R.p=2,A.T=null;try{for(var p=n.onRecoverableError,b=0;b<l.length;b++){var E=l[b];p(E.value,{componentStack:E.stack})}}finally{A.T=i,R.p=d}}(kr&3)!==0&&Rc(),Jn(n),d=n.pendingLanes,(a&261930)!==0&&(d&42)!==0?n===hh?Ro++:(Ro=0,hh=n):Ro=0,Do(0)}}function tb(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,po(i)))}function Rc(){return W0(),J0(),eb(),nb()}function nb(){if(yt!==5)return!1;var n=ai,i=fh;fh=0;var a=Pn(kr),l=A.T,d=R.p;try{R.p=32>a?32:a,A.T=null,a=dh,dh=null;var p=ai,b=kr;if(yt=0,sa=ai=null,kr=0,(Be&6)!==0)throw Error(s(331));var E=Be;if(Be|=4,L0(p.current),R0(p,p.current,b,a),Be=E,Do(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Di,p)}catch{}return!0}finally{R.p=d,A.T=l,tb(n,i)}}function rb(n,i,a){i=xn(a,i),i=Zd(n.stateNode,i,2),n=Jr(n,i,2),n!==null&&(et(n,2),Jn(n))}function qe(n,i,a){if(n.tag===3)rb(n,n,a);else for(;i!==null;){if(i.tag===3){rb(i,n,a);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(si===null||!si.has(l))){n=xn(a,n),a=i0(2),l=Jr(i,a,2),l!==null&&(s0(a,l,i,n),et(l,2),Jn(l));break}}i=i.return}}function gh(n,i,a){var l=n.pingCache;if(l===null){l=n.pingCache=new rj;var d=new Set;l.set(i,d)}else d=l.get(i),d===void 0&&(d=new Set,l.set(i,d));d.has(a)||(lh=!0,d.add(a),n=lj.bind(null,n,i,a),i.then(n,n))}function lj(n,i,a){var l=n.pingCache;l!==null&&l.delete(i),n.pingedLanes|=n.suspendedLanes&a,n.warmLanes&=~a,Ke===n&&(Me&a)===a&&(it===4||it===3&&(Me&62914560)===Me&&300>Vt()-Oc?(Be&2)===0&&aa(n,0):ch|=a,ia===Me&&(ia=0)),Jn(n)}function ib(n,i){i===0&&(i=Mt()),n=qi(n,i),n!==null&&(et(n,i),Jn(n))}function cj(n){var i=n.memoizedState,a=0;i!==null&&(a=i.retryLane),ib(n,a)}function uj(n,i){var a=0;switch(n.tag){case 31:case 13:var l=n.stateNode,d=n.memoizedState;d!==null&&(a=d.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(i),ib(n,a)}function fj(n,i){return Xa(n,i)}var Dc=null,la=null,yh=!1,Pc=!1,vh=!1,li=0;function Jn(n){n!==la&&n.next===null&&(la===null?Dc=la=n:la=la.next=n),Pc=!0,yh||(yh=!0,hj())}function Do(n,i){if(!vh&&Pc){vh=!0;do for(var a=!1,l=Dc;l!==null;){if(n!==0){var d=l.pendingLanes;if(d===0)var p=0;else{var b=l.suspendedLanes,E=l.pingedLanes;p=(1<<31-Nt(42|n)+1)-1,p&=d&~(b&~E),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,lb(l,p))}else p=Me,p=we(l,l===Ke?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(p&3)===0||Xe(l,p)||(a=!0,lb(l,p));l=l.next}while(a);vh=!1}}function dj(){sb()}function sb(){Pc=yh=!1;var n=0;li!==0&&Ej()&&(n=li);for(var i=Vt(),a=null,l=Dc;l!==null;){var d=l.next,p=ab(l,i);p===0?(l.next=null,a===null?Dc=d:a.next=d,d===null&&(la=a)):(a=l,(n!==0||(p&3)!==0)&&(Pc=!0)),l=d}yt!==0&&yt!==5||Do(n),li!==0&&(li=0)}function ab(n,i){for(var a=n.suspendedLanes,l=n.pingedLanes,d=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var b=31-Nt(p),E=1<<b,z=d[b];z===-1?((E&a)===0||(E&l)!==0)&&(d[b]=xt(E,i)):z<=i&&(n.expiredLanes|=E),p&=~E}if(i=Ke,a=Me,a=we(n,n===i?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,a===0||n===i&&(He===2||He===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Wa(l),n.callbackNode=null,n.callbackPriority=0;if((a&3)===0||Xe(n,a)){if(i=a&-a,i===n.callbackPriority)return i;switch(l!==null&&Wa(l),Pn(a)){case 2:case 8:a=Vl;break;case 32:a=Ri;break;case 268435456:a=hr;break;default:a=Ri}return l=ob.bind(null,n),a=Xa(a,l),n.callbackPriority=i,n.callbackNode=a,i}return l!==null&&l!==null&&Wa(l),n.callbackPriority=2,n.callbackNode=null,2}function ob(n,i){if(yt!==0&&yt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var a=n.callbackNode;if(Rc()&&n.callbackNode!==a)return null;var l=Me;return l=we(n,n===Ke?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(q0(n,l,i),ab(n,Vt()),n.callbackNode!=null&&n.callbackNode===a?ob.bind(null,n):null)}function lb(n,i){if(Rc())return null;q0(n,i,!0)}function hj(){_j(function(){(Be&6)!==0?Xa(Mi,dj):sb()})}function bh(){if(li===0){var n=Ks;n===0&&(n=As,As<<=1,(As&261888)===0&&(As=256)),li=n}return li}function cb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$l(""+n)}function ub(n,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,n.id&&a.setAttribute("form",n.id),i.parentNode.insertBefore(a,i),n=new FormData(n),a.parentNode.removeChild(a),n}function mj(n,i,a,l,d){if(i==="submit"&&a&&a.stateNode===d){var p=cb((d[Kt]||null).action),b=l.submitter;b&&(i=(i=b[Kt]||null)?cb(i.formAction):b.getAttribute("formAction"),i!==null&&(p=i,b=null));var E=new Ql("action","action",null,l,d);n.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(li!==0){var z=b?ub(d,b):new FormData(d);Vd(a,{pending:!0,data:z,method:d.method,action:p},null,z)}}else typeof p=="function"&&(E.preventDefault(),z=b?ub(d,b):new FormData(d),Vd(a,{pending:!0,data:z,method:d.method,action:p},p,z))},currentTarget:d}]})}}for(var xh=0;xh<nd.length;xh++){var wh=nd[xh],pj=wh.toLowerCase(),gj=wh[0].toUpperCase()+wh.slice(1);Ln(pj,"on"+gj)}Ln(Hy,"onAnimationEnd"),Ln(qy,"onAnimationIteration"),Ln(Iy,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(NA,"onTransitionRun"),Ln(MA,"onTransitionStart"),Ln(RA,"onTransitionCancel"),Ln($y,"onTransitionEnd"),Ms("onMouseEnter",["mouseout","mouseover"]),Ms("onMouseLeave",["mouseout","mouseover"]),Ms("onPointerEnter",["pointerout","pointerover"]),Ms("onPointerLeave",["pointerout","pointerover"]),Ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ui("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),yj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Po));function fb(n,i){i=(i&4)!==0;for(var a=0;a<n.length;a++){var l=n[a],d=l.event;l=l.listeners;e:{var p=void 0;if(i)for(var b=l.length-1;0<=b;b--){var E=l[b],z=E.instance,I=E.currentTarget;if(E=E.listener,z!==p&&d.isPropagationStopped())break e;p=E,d.currentTarget=I;try{p(d)}catch(X){Xl(X)}d.currentTarget=null,p=z}else for(b=0;b<l.length;b++){if(E=l[b],z=E.instance,I=E.currentTarget,E=E.listener,z!==p&&d.isPropagationStopped())break e;p=E,d.currentTarget=I;try{p(d)}catch(X){Xl(X)}d.currentTarget=null,p=z}}}}function Ne(n,i){var a=i[Rf];a===void 0&&(a=i[Rf]=new Set);var l=n+"__bubble";a.has(l)||(db(i,n,2,!1),a.add(l))}function Sh(n,i,a){var l=0;i&&(l|=4),db(a,n,l,i)}var Lc="_reactListening"+Math.random().toString(36).slice(2);function Eh(n){if(!n[Lc]){n[Lc]=!0,sy.forEach(function(a){a!=="selectionchange"&&(yj.has(a)||Sh(a,!1,n),Sh(a,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Lc]||(i[Lc]=!0,Sh("selectionchange",!1,i))}}function db(n,i,a,l){switch(Hb(i)){case 2:var d=Zj;break;case 8:d=Gj;break;default:d=Uh}a=d.bind(null,i,a,n),d=void 0,!If||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),l?d!==void 0?n.addEventListener(i,a,{capture:!0,passive:d}):n.addEventListener(i,a,!0):d!==void 0?n.addEventListener(i,a,{passive:d}):n.addEventListener(i,a,!1)}function Th(n,i,a,l,d){var p=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var E=l.stateNode.containerInfo;if(E===d)break;if(b===4)for(b=l.return;b!==null;){var z=b.tag;if((z===3||z===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;E!==null;){if(b=ks(E),b===null)return;if(z=b.tag,z===5||z===6||z===26||z===27){l=p=b;continue e}E=E.parentNode}}l=l.return}yy(function(){var I=p,X=Hf(a),ee=[];e:{var Z=Zy.get(n);if(Z!==void 0){var K=Ql,de=n;switch(n){case"keypress":if(Gl(a)===0)break e;case"keydown":case"keyup":K=uA;break;case"focusin":de="focus",K=Kf;break;case"focusout":de="blur",K=Kf;break;case"beforeblur":case"afterblur":K=Kf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=xy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=W_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=hA;break;case Hy:case qy:case Iy:K=tA;break;case $y:K=pA;break;case"scroll":case"scrollend":K=Y_;break;case"wheel":K=yA;break;case"copy":case"cut":case"paste":K=rA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Sy;break;case"toggle":case"beforetoggle":K=bA}var ve=(i&4)!==0,Ge=!ve&&(n==="scroll"||n==="scrollend"),V=ve?Z!==null?Z+"Capture":null:Z;ve=[];for(var M=I,q;M!==null;){var J=M;if(q=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||q===null||V===null||(J=ro(M,V),J!=null&&ve.push(Lo(M,J,q))),Ge)break;M=M.return}0<ve.length&&(Z=new K(Z,de,null,a,X),ee.push({event:Z,listeners:ve}))}}if((i&7)===0){e:{if(Z=n==="mouseover"||n==="pointerover",K=n==="mouseout"||n==="pointerout",Z&&a!==Bf&&(de=a.relatedTarget||a.fromElement)&&(ks(de)||de[Cs]))break e;if((K||Z)&&(Z=X.window===X?X:(Z=X.ownerDocument)?Z.defaultView||Z.parentWindow:window,K?(de=a.relatedTarget||a.toElement,K=I,de=de?ks(de):null,de!==null&&(Ge=c(de),ve=de.tag,de!==Ge||ve!==5&&ve!==27&&ve!==6)&&(de=null)):(K=null,de=I),K!==de)){if(ve=xy,J="onMouseLeave",V="onMouseEnter",M="mouse",(n==="pointerout"||n==="pointerover")&&(ve=Sy,J="onPointerLeave",V="onPointerEnter",M="pointer"),Ge=K==null?Z:no(K),q=de==null?Z:no(de),Z=new ve(J,M+"leave",K,a,X),Z.target=Ge,Z.relatedTarget=q,J=null,ks(X)===I&&(ve=new ve(V,M+"enter",de,a,X),ve.target=q,ve.relatedTarget=Ge,J=ve),Ge=J,K&&de)t:{for(ve=vj,V=K,M=de,q=0,J=V;J;J=ve(J))q++;J=0;for(var ye=M;ye;ye=ve(ye))J++;for(;0<q-J;)V=ve(V),q--;for(;0<J-q;)M=ve(M),J--;for(;q--;){if(V===M||M!==null&&V===M.alternate){ve=V;break t}V=ve(V),M=ve(M)}ve=null}else ve=null;K!==null&&hb(ee,Z,K,ve,!1),de!==null&&Ge!==null&&hb(ee,Ge,de,ve,!0)}}e:{if(Z=I?no(I):window,K=Z.nodeName&&Z.nodeName.toLowerCase(),K==="select"||K==="input"&&Z.type==="file")var Le=ky;else if(Oy(Z))if(zy)Le=CA;else{Le=jA;var ge=AA}else K=Z.nodeName,!K||K.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?I&&Vf(I.elementType)&&(Le=ky):Le=OA;if(Le&&(Le=Le(n,I))){Cy(ee,Le,a,X);break e}ge&&ge(n,Z,I),n==="focusout"&&I&&Z.type==="number"&&I.memoizedProps.value!=null&&Uf(Z,"number",Z.value)}switch(ge=I?no(I):window,n){case"focusin":(Oy(ge)||ge.contentEditable==="true")&&(Vs=ge,Jf=I,fo=null);break;case"focusout":fo=Jf=Vs=null;break;case"mousedown":ed=!0;break;case"contextmenu":case"mouseup":case"dragend":ed=!1,Vy(ee,a,X);break;case"selectionchange":if(zA)break;case"keydown":case"keyup":Vy(ee,a,X)}var Ce;if(Ff)e:{switch(n){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Us?Ay(n,a)&&(Re="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(Ey&&a.locale!=="ko"&&(Us||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Us&&(Ce=vy()):(Gr=X,$f="value"in Gr?Gr.value:Gr.textContent,Us=!0)),ge=Uc(I,Re),0<ge.length&&(Re=new wy(Re,n,null,a,X),ee.push({event:Re,listeners:ge}),Ce?Re.data=Ce:(Ce=jy(a),Ce!==null&&(Re.data=Ce)))),(Ce=wA?SA(n,a):EA(n,a))&&(Re=Uc(I,"onBeforeInput"),0<Re.length&&(ge=new wy("onBeforeInput","beforeinput",null,a,X),ee.push({event:ge,listeners:Re}),ge.data=Ce)),mj(ee,n,I,a,X)}fb(ee,i)})}function Lo(n,i,a){return{instance:n,listener:i,currentTarget:a}}function Uc(n,i){for(var a=i+"Capture",l=[];n!==null;){var d=n,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=ro(n,a),d!=null&&l.unshift(Lo(n,d,p)),d=ro(n,i),d!=null&&l.push(Lo(n,d,p))),n.tag===3)return l;n=n.return}return[]}function vj(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function hb(n,i,a,l,d){for(var p=i._reactName,b=[];a!==null&&a!==l;){var E=a,z=E.alternate,I=E.stateNode;if(E=E.tag,z!==null&&z===l)break;E!==5&&E!==26&&E!==27||I===null||(z=I,d?(I=ro(a,p),I!=null&&b.unshift(Lo(a,I,z))):d||(I=ro(a,p),I!=null&&b.push(Lo(a,I,z)))),a=a.return}b.length!==0&&n.push({event:i,listeners:b})}var bj=/\r\n?/g,xj=/\u0000|\uFFFD/g;function mb(n){return(typeof n=="string"?n:""+n).replace(bj,`
`).replace(xj,"")}function pb(n,i){return i=mb(i),mb(n)===i}function Ze(n,i,a,l,d,p){switch(a){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Ds(n,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Ds(n,""+l);break;case"className":ql(n,"class",l);break;case"tabIndex":ql(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ql(n,a,l);break;case"style":py(n,l,p);break;case"data":if(i!=="object"){ql(n,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||a!=="href")){n.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=$l(""+l),n.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(i!=="input"&&Ze(n,i,"name",d.name,d,null),Ze(n,i,"formEncType",d.formEncType,d,null),Ze(n,i,"formMethod",d.formMethod,d,null),Ze(n,i,"formTarget",d.formTarget,d,null)):(Ze(n,i,"encType",d.encType,d,null),Ze(n,i,"method",d.method,d,null),Ze(n,i,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(a);break}l=$l(""+l),n.setAttribute(a,l);break;case"onClick":l!=null&&(n.onclick=pr);break;case"onScroll":l!=null&&Ne("scroll",n);break;case"onScrollEnd":l!=null&&Ne("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}a=$l(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""+l):n.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,""):n.removeAttribute(a);break;case"capture":case"download":l===!0?n.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(a,l):n.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(a,l):n.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(a):n.setAttribute(a,l);break;case"popover":Ne("beforetoggle",n),Ne("toggle",n),Hl(n,"popover",l);break;case"xlinkActuate":mr(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":mr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":mr(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":mr(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":mr(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":mr(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":mr(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":mr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":mr(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Hl(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Q_.get(a)||a,Hl(n,a,l))}}function _h(n,i,a,l,d,p){switch(a){case"style":py(n,l,p);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(d.children!=null)throw Error(s(60));n.innerHTML=a}}break;case"children":typeof l=="string"?Ds(n,l):(typeof l=="number"||typeof l=="bigint")&&Ds(n,""+l);break;case"onScroll":l!=null&&Ne("scroll",n);break;case"onScrollEnd":l!=null&&Ne("scrollend",n);break;case"onClick":l!=null&&(n.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ay.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),i=a.slice(2,d?a.length-7:void 0),p=n[Kt]||null,p=p!=null?p[a]:null,typeof p=="function"&&n.removeEventListener(i,p,d),typeof l=="function")){typeof p!="function"&&p!==null&&(a in n?n[a]=null:n.hasAttribute(a)&&n.removeAttribute(a)),n.addEventListener(i,l,d);break e}a in n?n[a]=l:l===!0?n.setAttribute(a,""):Hl(n,a,l)}}}function zt(n,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",n),Ne("load",n);var l=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var b=a[p];if(b!=null)switch(p){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Ze(n,i,p,b,a,null)}}d&&Ze(n,i,"srcSet",a.srcSet,a,null),l&&Ze(n,i,"src",a.src,a,null);return;case"input":Ne("invalid",n);var E=p=b=d=null,z=null,I=null;for(l in a)if(a.hasOwnProperty(l)){var X=a[l];if(X!=null)switch(l){case"name":d=X;break;case"type":b=X;break;case"checked":z=X;break;case"defaultChecked":I=X;break;case"value":p=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,i));break;default:Ze(n,i,l,X,a,null)}}fy(n,p,E,z,I,b,d,!1);return;case"select":Ne("invalid",n),l=b=p=null;for(d in a)if(a.hasOwnProperty(d)&&(E=a[d],E!=null))switch(d){case"value":p=E;break;case"defaultValue":b=E;break;case"multiple":l=E;default:Ze(n,i,d,E,a,null)}i=p,a=b,n.multiple=!!l,i!=null?Rs(n,!!l,i,!1):a!=null&&Rs(n,!!l,a,!0);return;case"textarea":Ne("invalid",n),p=d=l=null;for(b in a)if(a.hasOwnProperty(b)&&(E=a[b],E!=null))switch(b){case"value":l=E;break;case"defaultValue":d=E;break;case"children":p=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:Ze(n,i,b,E,a,null)}hy(n,l,d,p);return;case"option":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(n,i,z,l,a,null)}return;case"dialog":Ne("beforetoggle",n),Ne("toggle",n),Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":Ne("load",n);break;case"video":case"audio":for(l=0;l<Po.length;l++)Ne(Po[l],n);break;case"image":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"embed":case"source":case"link":Ne("error",n),Ne("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in a)if(a.hasOwnProperty(I)&&(l=a[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Ze(n,i,I,l,a,null)}return;default:if(Vf(i)){for(X in a)a.hasOwnProperty(X)&&(l=a[X],l!==void 0&&_h(n,i,X,l,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(l=a[E],l!=null&&Ze(n,i,E,l,a,null))}function wj(n,i,a,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,b=null,E=null,z=null,I=null,X=null;for(K in a){var ee=a[K];if(a.hasOwnProperty(K)&&ee!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":z=ee;default:l.hasOwnProperty(K)||Ze(n,i,K,null,l,ee)}}for(var Z in l){var K=l[Z];if(ee=a[Z],l.hasOwnProperty(Z)&&(K!=null||ee!=null))switch(Z){case"type":p=K;break;case"name":d=K;break;case"checked":I=K;break;case"defaultChecked":X=K;break;case"value":b=K;break;case"defaultValue":E=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,i));break;default:K!==ee&&Ze(n,i,Z,K,l,ee)}}Lf(n,b,E,z,I,X,p,d);return;case"select":K=b=E=Z=null;for(p in a)if(z=a[p],a.hasOwnProperty(p)&&z!=null)switch(p){case"value":break;case"multiple":K=z;default:l.hasOwnProperty(p)||Ze(n,i,p,null,l,z)}for(d in l)if(p=l[d],z=a[d],l.hasOwnProperty(d)&&(p!=null||z!=null))switch(d){case"value":Z=p;break;case"defaultValue":E=p;break;case"multiple":b=p;default:p!==z&&Ze(n,i,d,p,l,z)}i=E,a=b,l=K,Z!=null?Rs(n,!!a,Z,!1):!!l!=!!a&&(i!=null?Rs(n,!!a,i,!0):Rs(n,!!a,a?[]:"",!1));return;case"textarea":K=Z=null;for(E in a)if(d=a[E],a.hasOwnProperty(E)&&d!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Ze(n,i,E,null,l,d)}for(b in l)if(d=l[b],p=a[b],l.hasOwnProperty(b)&&(d!=null||p!=null))switch(b){case"value":Z=d;break;case"defaultValue":K=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==p&&Ze(n,i,b,d,l,p)}dy(n,Z,K);return;case"option":for(var de in a)if(Z=a[de],a.hasOwnProperty(de)&&Z!=null&&!l.hasOwnProperty(de))switch(de){case"selected":n.selected=!1;break;default:Ze(n,i,de,null,l,Z)}for(z in l)if(Z=l[z],K=a[z],l.hasOwnProperty(z)&&Z!==K&&(Z!=null||K!=null))switch(z){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Ze(n,i,z,Z,l,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in a)Z=a[ve],a.hasOwnProperty(ve)&&Z!=null&&!l.hasOwnProperty(ve)&&Ze(n,i,ve,null,l,Z);for(I in l)if(Z=l[I],K=a[I],l.hasOwnProperty(I)&&Z!==K&&(Z!=null||K!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,i));break;default:Ze(n,i,I,Z,l,K)}return;default:if(Vf(i)){for(var Ge in a)Z=a[Ge],a.hasOwnProperty(Ge)&&Z!==void 0&&!l.hasOwnProperty(Ge)&&_h(n,i,Ge,void 0,l,Z);for(X in l)Z=l[X],K=a[X],!l.hasOwnProperty(X)||Z===K||Z===void 0&&K===void 0||_h(n,i,X,Z,l,K);return}}for(var V in a)Z=a[V],a.hasOwnProperty(V)&&Z!=null&&!l.hasOwnProperty(V)&&Ze(n,i,V,null,l,Z);for(ee in l)Z=l[ee],K=a[ee],!l.hasOwnProperty(ee)||Z===K||Z==null&&K==null||Ze(n,i,ee,Z,l,K)}function gb(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sj(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var d=a[l],p=d.transferSize,b=d.initiatorType,E=d.duration;if(p&&E&&gb(b)){for(b=0,E=d.responseEnd,l+=1;l<a.length;l++){var z=a[l],I=z.startTime;if(I>E)break;var X=z.transferSize,ee=z.initiatorType;X&&gb(ee)&&(z=z.responseEnd,b+=X*(z<E?1:(E-I)/(z-I)))}if(--l,i+=8*(p+b)/(d.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Ah=null,jh=null;function Vc(n){return n.nodeType===9?n:n.ownerDocument}function yb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Oh(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ch=null;function Ej(){var n=window.event;return n&&n.type==="popstate"?n===Ch?!1:(Ch=n,!0):(Ch=null,!1)}var bb=typeof setTimeout=="function"?setTimeout:void 0,Tj=typeof clearTimeout=="function"?clearTimeout:void 0,xb=typeof Promise=="function"?Promise:void 0,_j=typeof queueMicrotask=="function"?queueMicrotask:typeof xb<"u"?function(n){return xb.resolve(null).then(n).catch(Aj)}:bb;function Aj(n){setTimeout(function(){throw n})}function ci(n){return n==="head"}function wb(n,i){var a=i,l=0;do{var d=a.nextSibling;if(n.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(l===0){n.removeChild(d),da(i);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Uo(n.ownerDocument.documentElement);else if(a==="head"){a=n.ownerDocument.head,Uo(a);for(var p=a.firstChild;p;){var b=p.nextSibling,E=p.nodeName;p[to]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}else a==="body"&&Uo(n.ownerDocument.body);a=d}while(a);da(i)}function Sb(n,i){var a=n;n=0;do{var l=a.nextSibling;if(a.nodeType===1?i?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(i?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(n===0)break;n--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||n++;a=l}while(a)}function kh(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":kh(a),Df(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}n.removeChild(a)}}function jj(n,i,a,l){for(;n.nodeType===1;){var d=a;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[to])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=_n(n.nextSibling),n===null)break}return null}function Oj(n,i,a){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=_n(n.nextSibling),n===null))return null;return n}function Eb(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=_n(n.nextSibling),n===null))return null;return n}function zh(n){return n.data==="$?"||n.data==="$~"}function Nh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Cj(n,i){var a=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||a.readyState!=="loading")i();else{var l=function(){i(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function _n(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Mh=null;function Tb(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"||a==="/&"){if(i===0)return _n(n.nextSibling);i--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||i++}n=n.nextSibling}return null}function _b(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(i===0)return n;i--}else a!=="/$"&&a!=="/&"||i++}n=n.previousSibling}return null}function Ab(n,i,a){switch(i=Vc(a),n){case"html":if(n=i.documentElement,!n)throw Error(s(452));return n;case"head":if(n=i.head,!n)throw Error(s(453));return n;case"body":if(n=i.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function Uo(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Df(n)}var An=new Map,jb=new Set;function Bc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var zr=R.d;R.d={f:kj,r:zj,D:Nj,C:Mj,L:Rj,m:Dj,X:Lj,S:Pj,M:Uj};function kj(){var n=zr.f(),i=zc();return n||i}function zj(n){var i=zs(n);i!==null&&i.tag===5&&i.type==="form"?$v(i):zr.r(n)}var ca=typeof document>"u"?null:document;function Ob(n,i,a){var l=ca;if(l&&typeof i=="string"&&i){var d=vn(i);d='link[rel="'+n+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),jb.has(d)||(jb.add(d),n={rel:n,crossOrigin:a,href:i},l.querySelector(d)===null&&(i=l.createElement("link"),zt(i,"link",n),wt(i),l.head.appendChild(i)))}}function Nj(n){zr.D(n),Ob("dns-prefetch",n,null)}function Mj(n,i){zr.C(n,i),Ob("preconnect",n,i)}function Rj(n,i,a){zr.L(n,i,a);var l=ca;if(l&&n&&i){var d='link[rel="preload"][as="'+vn(i)+'"]';i==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+vn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+vn(a.imageSizes)+'"]')):d+='[href="'+vn(n)+'"]';var p=d;switch(i){case"style":p=ua(n);break;case"script":p=fa(n)}An.has(p)||(n=y({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:n,as:i},a),An.set(p,n),l.querySelector(d)!==null||i==="style"&&l.querySelector(Vo(p))||i==="script"&&l.querySelector(Bo(p))||(i=l.createElement("link"),zt(i,"link",n),wt(i),l.head.appendChild(i)))}}function Dj(n,i){zr.m(n,i);var a=ca;if(a&&n){var l=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+vn(l)+'"][href="'+vn(n)+'"]',p=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=fa(n)}if(!An.has(p)&&(n=y({rel:"modulepreload",href:n},i),An.set(p,n),a.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bo(p)))return}l=a.createElement("link"),zt(l,"link",n),wt(l),a.head.appendChild(l)}}}function Pj(n,i,a){zr.S(n,i,a);var l=ca;if(l&&n){var d=Ns(l).hoistableStyles,p=ua(n);i=i||"default";var b=d.get(p);if(!b){var E={loading:0,preload:null};if(b=l.querySelector(Vo(p)))E.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":i},a),(a=An.get(p))&&Rh(n,a);var z=b=l.createElement("link");wt(z),zt(z,"link",n),z._p=new Promise(function(I,X){z.onload=I,z.onerror=X}),z.addEventListener("load",function(){E.loading|=1}),z.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Hc(b,i,l)}b={type:"stylesheet",instance:b,count:1,state:E},d.set(p,b)}}}function Lj(n,i){zr.X(n,i);var a=ca;if(a&&n){var l=Ns(a).hoistableScripts,d=fa(n),p=l.get(d);p||(p=a.querySelector(Bo(d)),p||(n=y({src:n,async:!0},i),(i=An.get(d))&&Dh(n,i),p=a.createElement("script"),wt(p),zt(p,"link",n),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}function Uj(n,i){zr.M(n,i);var a=ca;if(a&&n){var l=Ns(a).hoistableScripts,d=fa(n),p=l.get(d);p||(p=a.querySelector(Bo(d)),p||(n=y({src:n,async:!0,type:"module"},i),(i=An.get(d))&&Dh(n,i),p=a.createElement("script"),wt(p),zt(p,"link",n),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(d,p))}}function Cb(n,i,a,l){var d=(d=pe.current)?Bc(d):null;if(!d)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=ua(a.href),a=Ns(d).hoistableStyles,l=a.get(i),l||(l={type:"style",instance:null,count:0,state:null},a.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){n=ua(a.href);var p=Ns(d).hoistableStyles,b=p.get(n);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,b),(p=d.querySelector(Vo(n)))&&!p._p&&(b.instance=p,b.state.loading=5),An.has(n)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},An.set(n,a),p||Vj(d,n,a,b.state))),i&&l===null)throw Error(s(528,""));return b}if(i&&l!==null)throw Error(s(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=fa(a),a=Ns(d).hoistableScripts,l=a.get(i),l||(l={type:"script",instance:null,count:0,state:null},a.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function ua(n){return'href="'+vn(n)+'"'}function Vo(n){return'link[rel="stylesheet"]['+n+"]"}function kb(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function Vj(n,i,a,l){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=n.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),zt(i,"link",a),wt(i),n.head.appendChild(i))}function fa(n){return'[src="'+vn(n)+'"]'}function Bo(n){return"script[async]"+n}function zb(n,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var l=n.querySelector('style[data-href~="'+vn(a.href)+'"]');if(l)return i.instance=l,wt(l),l;var d=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),wt(l),zt(l,"style",d),Hc(l,a.precedence,n),i.instance=l;case"stylesheet":d=ua(a.href);var p=n.querySelector(Vo(d));if(p)return i.state.loading|=4,i.instance=p,wt(p),p;l=kb(a),(d=An.get(d))&&Rh(l,d),p=(n.ownerDocument||n).createElement("link"),wt(p);var b=p;return b._p=new Promise(function(E,z){b.onload=E,b.onerror=z}),zt(p,"link",l),i.state.loading|=4,Hc(p,a.precedence,n),i.instance=p;case"script":return p=fa(a.src),(d=n.querySelector(Bo(p)))?(i.instance=d,wt(d),d):(l=a,(d=An.get(p))&&(l=y({},a),Dh(l,d)),n=n.ownerDocument||n,d=n.createElement("script"),wt(d),zt(d,"link",l),n.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,Hc(l,a.precedence,n));return i.instance}function Hc(n,i,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,p=d,b=0;b<l.length;b++){var E=l[b];if(E.dataset.precedence===i)p=E;else if(p!==d)break}p?p.parentNode.insertBefore(n,p.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(n,i.firstChild))}function Rh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Dh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var qc=null;function Nb(n,i,a){if(qc===null){var l=new Map,d=qc=new Map;d.set(a,l)}else d=qc,l=d.get(a),l||(l=new Map,d.set(a,l));if(l.has(n))return l;for(l.set(n,null),a=a.getElementsByTagName(n),d=0;d<a.length;d++){var p=a[d];if(!(p[to]||p[jt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(i)||"";b=n+b;var E=l.get(b);E?E.push(p):l.set(b,[p])}}return l}function Mb(n,i,a){n=n.ownerDocument||n,n.head.insertBefore(a,i==="title"?n.querySelector("head > title"):null)}function Bj(n,i,a){if(a===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Rb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Hj(n,i,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=ua(l.href),p=i.querySelector(Vo(d));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Ic.bind(n),i.then(n,n)),a.state.loading|=4,a.instance=p,wt(p);return}p=i.ownerDocument||i,l=kb(l),(d=An.get(d))&&Rh(l,d),p=p.createElement("link"),wt(p);var b=p;b._p=new Promise(function(E,z){b.onload=E,b.onerror=z}),zt(p,"link",l),a.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(n.count++,a=Ic.bind(n),i.addEventListener("load",a),i.addEventListener("error",a))}}var Ph=0;function qj(n,i){return n.stylesheets&&n.count===0&&Zc(n,n.stylesheets),0<n.count||0<n.imgCount?function(a){var l=setTimeout(function(){if(n.stylesheets&&Zc(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+i);0<n.imgBytes&&Ph===0&&(Ph=62500*Sj());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Zc(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>Ph?50:800)+i);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(d)}}:null}function Ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var $c=null;function Zc(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,$c=new Map,i.forEach(Ij,n),$c=null,Ic.call(n))}function Ij(n,i){if(!(i.state.loading&4)){var a=$c.get(n);if(a)var l=a.get(null);else{a=new Map,$c.set(n,a);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var b=d[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),l=b)}l&&a.set(null,l)}d=i.instance,b=d.getAttribute("data-precedence"),p=a.get(b)||l,p===l&&a.set(null,d),a.set(b,d),this.count++,l=Ic.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),p?p.parentNode.insertBefore(d,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),i.state.loading|=4}}var Ho={$$typeof:C,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function $j(n,i,a,l,d,p,b,E,z){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$r(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$r(0),this.hiddenUpdates=$r(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function Db(n,i,a,l,d,p,b,E,z,I,X,ee){return n=new $j(n,i,a,b,z,I,X,ee,E),i=1,p===!0&&(i|=24),p=an(3,null,null,i),n.current=p,p.stateNode=n,i=pd(),i.refCount++,n.pooledCache=i,i.refCount++,p.memoizedState={element:l,isDehydrated:a,cache:i},bd(p),n}function Pb(n){return n?(n=qs,n):qs}function Lb(n,i,a,l,d,p){d=Pb(d),l.context===null?l.context=d:l.pendingContext=d,l=Wr(i),l.payload={element:a},p=p===void 0?null:p,p!==null&&(l.callback=p),a=Jr(n,l,i),a!==null&&(Jt(a,n,i),bo(a,n,i))}function Ub(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<i?a:i}}function Lh(n,i){Ub(n,i),(n=n.alternate)&&Ub(n,i)}function Vb(n){if(n.tag===13||n.tag===31){var i=qi(n,67108864);i!==null&&Jt(i,n,67108864),Lh(n,67108864)}}function Bb(n){if(n.tag===13||n.tag===31){var i=fn();i=Os(i);var a=qi(n,i);a!==null&&Jt(a,n,i),Lh(n,i)}}var Gc=!0;function Zj(n,i,a,l){var d=A.T;A.T=null;var p=R.p;try{R.p=2,Uh(n,i,a,l)}finally{R.p=p,A.T=d}}function Gj(n,i,a,l){var d=A.T;A.T=null;var p=R.p;try{R.p=8,Uh(n,i,a,l)}finally{R.p=p,A.T=d}}function Uh(n,i,a,l){if(Gc){var d=Vh(l);if(d===null)Th(n,i,l,Kc,a),qb(n,l);else if(Qj(d,n,i,a,l))l.stopPropagation();else if(qb(n,l),i&4&&-1<Kj.indexOf(n)){for(;d!==null;){var p=zs(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=Fn(p.pendingLanes);if(b!==0){var E=p;for(E.pendingLanes|=2,E.entangledLanes|=2;b;){var z=1<<31-Nt(b);E.entanglements[1]|=z,b&=~z}Jn(p),(Be&6)===0&&(Cc=Vt()+500,Do(0))}}break;case 31:case 13:E=qi(p,2),E!==null&&Jt(E,p,2),zc(),Lh(p,2)}if(p=Vh(l),p===null&&Th(n,i,l,Kc,a),p===d)break;d=p}d!==null&&l.stopPropagation()}else Th(n,i,l,null,a)}}function Vh(n){return n=Hf(n),Bh(n)}var Kc=null;function Bh(n){if(Kc=null,n=ks(n),n!==null){var i=c(n);if(i===null)n=null;else{var a=i.tag;if(a===13){if(n=u(i),n!==null)return n;n=null}else if(a===31){if(n=f(i),n!==null)return n;n=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Kc=n,null}function Hb(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zf()){case Mi:return 2;case Vl:return 8;case Ri:case Ja:return 32;case hr:return 268435456;default:return 32}default:return 32}}var Hh=!1,ui=null,fi=null,di=null,qo=new Map,Io=new Map,hi=[],Kj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qb(n,i){switch(n){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":qo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Io.delete(i.pointerId)}}function $o(n,i,a,l,d,p){return n===null||n.nativeEvent!==p?(n={blockedOn:i,domEventName:a,eventSystemFlags:l,nativeEvent:p,targetContainers:[d]},i!==null&&(i=zs(i),i!==null&&Vb(i)),n):(n.eventSystemFlags|=l,i=n.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),n)}function Qj(n,i,a,l,d){switch(i){case"focusin":return ui=$o(ui,n,i,a,l,d),!0;case"dragenter":return fi=$o(fi,n,i,a,l,d),!0;case"mouseover":return di=$o(di,n,i,a,l,d),!0;case"pointerover":var p=d.pointerId;return qo.set(p,$o(qo.get(p)||null,n,i,a,l,d)),!0;case"gotpointercapture":return p=d.pointerId,Io.set(p,$o(Io.get(p)||null,n,i,a,l,d)),!0}return!1}function Ib(n){var i=ks(n.target);if(i!==null){var a=c(i);if(a!==null){if(i=a.tag,i===13){if(i=u(a),i!==null){n.blockedOn=i,ry(n.priority,function(){Bb(a)});return}}else if(i===31){if(i=f(a),i!==null){n.blockedOn=i,ry(n.priority,function(){Bb(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Qc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var a=Vh(n.nativeEvent);if(a===null){a=n.nativeEvent;var l=new a.constructor(a.type,a);Bf=l,a.target.dispatchEvent(l),Bf=null}else return i=zs(a),i!==null&&Vb(i),n.blockedOn=a,!1;i.shift()}return!0}function $b(n,i,a){Qc(n)&&a.delete(i)}function Fj(){Hh=!1,ui!==null&&Qc(ui)&&(ui=null),fi!==null&&Qc(fi)&&(fi=null),di!==null&&Qc(di)&&(di=null),qo.forEach($b),Io.forEach($b)}function Fc(n,i){n.blockedOn===i&&(n.blockedOn=null,Hh||(Hh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Fj)))}var Yc=null;function Zb(n){Yc!==n&&(Yc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yc===n&&(Yc=null);for(var i=0;i<n.length;i+=3){var a=n[i],l=n[i+1],d=n[i+2];if(typeof l!="function"){if(Bh(l||a)===null)continue;break}var p=zs(a);p!==null&&(n.splice(i,3),i-=3,Vd(p,{pending:!0,data:d,method:a.method,action:l},l,d))}}))}function da(n){function i(z){return Fc(z,n)}ui!==null&&Fc(ui,n),fi!==null&&Fc(fi,n),di!==null&&Fc(di,n),qo.forEach(i),Io.forEach(i);for(var a=0;a<hi.length;a++){var l=hi[a];l.blockedOn===n&&(l.blockedOn=null)}for(;0<hi.length&&(a=hi[0],a.blockedOn===null);)Ib(a),a.blockedOn===null&&hi.shift();if(a=(n.ownerDocument||n).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var d=a[l],p=a[l+1],b=d[Kt]||null;if(typeof p=="function")b||Zb(a);else if(b){var E=null;if(p&&p.hasAttribute("formAction")){if(d=p,b=p[Kt]||null)E=b.formAction;else if(Bh(d)!==null)continue}else E=b.action;typeof E=="function"?a[l+1]=E:(a.splice(l,3),l-=3),Zb(a)}}}function Gb(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function i(){d!==null&&(d(),d=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),d!==null&&(d(),d=null)}}}function qh(n){this._internalRoot=n}Xc.prototype.render=qh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(s(409));var a=i.current,l=fn();Lb(a,l,n,i,null,null)},Xc.prototype.unmount=qh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Lb(n.current,2,null,n,null,null),zc(),i[Cs]=null}};function Xc(n){this._internalRoot=n}Xc.prototype.unstable_scheduleHydration=function(n){if(n){var i=Mf();n={blockedOn:null,target:n,priority:i};for(var a=0;a<hi.length&&i!==0&&i<hi[a].priority;a++);hi.splice(a,0,n),a===0&&Ib(n)}};var Kb=t.version;if(Kb!=="19.2.1")throw Error(s(527,Kb,"19.2.1"));R.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=m(i),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var Yj={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wc.isDisabled&&Wc.supportsFiber)try{Di=Wc.inject(Yj),Bt=Wc}catch{}}return Ko.createRoot=function(n,i){if(!o(n))throw Error(s(299));var a=!1,l="",d=e0,p=t0,b=n0;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError)),i=Db(n,1,!1,null,null,a,l,null,d,p,b,Gb),n[Cs]=i.current,Eh(n),new qh(i)},Ko.hydrateRoot=function(n,i,a){if(!o(n))throw Error(s(299));var l=!1,d="",p=e0,b=t0,E=n0,z=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(z=a.formState)),i=Db(n,1,!0,i,a??null,l,d,z,p,b,E,Gb),i.context=Pb(null),a=i.current,l=fn(),l=Os(l),d=Wr(l),d.callback=null,Jr(a,d,l),a=l,i.current.lanes=a,et(i,a),Jn(i),n[Cs]=i.current,Eh(n),new Xc(i)},Ko.version="19.2.1",Ko}var bx;function fk(){if(bx)return Fh.exports;bx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fh.exports=uk(),Fh.exports}var dk=fk(),Jh,xx;function hk(){if(xx)return Jh;xx=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(c,u){if(c===u)return!0;if(c&&u&&typeof c=="object"&&typeof u=="object"){if(c.constructor!==u.constructor)return!1;var f,h,m;if(Array.isArray(c)){if(f=c.length,f!=u.length)return!1;for(h=f;h--!==0;)if(!o(c[h],u[h]))return!1;return!0}var v;if(t&&c instanceof Map&&u instanceof Map){if(c.size!==u.size)return!1;for(v=c.entries();!(h=v.next()).done;)if(!u.has(h.value[0]))return!1;for(v=c.entries();!(h=v.next()).done;)if(!o(h.value[1],u.get(h.value[0])))return!1;return!0}if(r&&c instanceof Set&&u instanceof Set){if(c.size!==u.size)return!1;for(v=c.entries();!(h=v.next()).done;)if(!u.has(h.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(c)&&ArrayBuffer.isView(u)){if(f=c.length,f!=u.length)return!1;for(h=f;h--!==0;)if(c[h]!==u[h])return!1;return!0}if(c.constructor===RegExp)return c.source===u.source&&c.flags===u.flags;if(c.valueOf!==Object.prototype.valueOf&&typeof c.valueOf=="function"&&typeof u.valueOf=="function")return c.valueOf()===u.valueOf();if(c.toString!==Object.prototype.toString&&typeof c.toString=="function"&&typeof u.toString=="function")return c.toString()===u.toString();if(m=Object.keys(c),f=m.length,f!==Object.keys(u).length)return!1;for(h=f;h--!==0;)if(!Object.prototype.hasOwnProperty.call(u,m[h]))return!1;if(e&&c instanceof Element)return!1;for(h=f;h--!==0;)if(!((m[h]==="_owner"||m[h]==="__v"||m[h]==="__o")&&c.$$typeof)&&!o(c[m[h]],u[m[h]]))return!1;return!0}return c!==c&&u!==u}return Jh=function(u,f){try{return o(u,f)}catch(h){if((h.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw h}},Jh}var mk=hk();const pk=_l(mk);var em,wx;function gk(){if(wx)return em;wx=1;var e=function(t,r,s,o,c,u,f,h){if(!t){var m;if(r===void 0)m=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var v=[s,o,c,u,f,h],y=0;m=new Error(r.replace(/%s/g,function(){return v[y++]})),m.name="Invariant Violation"}throw m.framesToPop=1,m}};return em=e,em}var yk=gk();const Sx=_l(yk);var tm,Ex;function vk(){return Ex||(Ex=1,tm=function(t,r,s,o){var c=s?s.call(o,t,r):void 0;if(c!==void 0)return!!c;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var u=Object.keys(t),f=Object.keys(r);if(u.length!==f.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(r),m=0;m<u.length;m++){var v=u[m];if(!h(v))return!1;var y=t[v],x=r[v];if(c=s?s.call(o,y,x,v):void 0,c===!1||c===void 0&&y!==x)return!1}return!0}),tm}var bk=vk();const xk=_l(bk);var ZS=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ZS||{}),nm={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Tx=Object.values(ZS),Gp={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},wk=Object.entries(Gp).reduce((e,[t,r])=>(e[r]=t,e),{}),qn="data-rh",Oa={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ca=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const s=e[r];if(Object.prototype.hasOwnProperty.call(s,t))return s[t]}return null},Sk=e=>{let t=Ca(e,"title");const r=Ca(e,Oa.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const s=Ca(e,Oa.DEFAULT_TITLE);return t||s||void 0},Ek=e=>Ca(e,Oa.ON_CHANGE_CLIENT_STATE)||(()=>{}),rm=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,s)=>({...r,...s}),{}),Tk=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,s)=>{if(!r.length){const o=Object.keys(s);for(let c=0;c<o.length;c+=1){const f=o[c].toLowerCase();if(e.indexOf(f)!==-1&&s[f])return r.concat(s)}}return r},[]),_k=e=>console&&typeof console.warn=="function"&&console.warn(e),Qo=(e,t,r)=>{const s={};return r.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&_k(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,c)=>{const u={};c.filter(h=>{let m;const v=Object.keys(h);for(let x=0;x<v.length;x+=1){const w=v[x],T=w.toLowerCase();t.indexOf(T)!==-1&&!(m==="rel"&&h[m].toLowerCase()==="canonical")&&!(T==="rel"&&h[T].toLowerCase()==="stylesheet")&&(m=T),t.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(m=w)}if(!m||!h[m])return!1;const y=h[m].toLowerCase();return s[m]||(s[m]={}),u[m]||(u[m]={}),s[m][y]?!1:(u[m][y]=!0,!0)}).reverse().forEach(h=>o.push(h));const f=Object.keys(u);for(let h=0;h<f.length;h+=1){const m=f[h],v={...s[m],...u[m]};s[m]=v}return o},[]).reverse()},Ak=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},jk=e=>({baseTag:Tk(["href"],e),bodyAttributes:rm("bodyAttributes",e),defer:Ca(e,Oa.DEFER),encode:Ca(e,Oa.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:rm("htmlAttributes",e),linkTags:Qo("link",["rel","href"],e),metaTags:Qo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Qo("noscript",["innerHTML"],e),onChangeClientState:Ek(e),scriptTags:Qo("script",["src","innerHTML"],e),styleTags:Qo("style",["cssText"],e),title:Sk(e),titleAttributes:rm("titleAttributes",e),prioritizeSeoTags:Ak(e,Oa.PRIORITIZE_SEO_TAGS)}),GS=e=>Array.isArray(e)?e.join(""):e,Ok=(e,t)=>{const r=Object.keys(e);for(let s=0;s<r.length;s+=1)if(t[r[s]]&&t[r[s]].includes(e[r[s]]))return!0;return!1},im=(e,t)=>Array.isArray(e)?e.reduce((r,s)=>(Ok(s,t)?r.priority.push(s):r.default.push(s),r),{priority:[],default:[]}):{default:e,priority:[]},_x=(e,t)=>({...e,[t]:void 0}),Ck=["noscript","script","style"],Hm=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),KS=e=>Object.keys(e).reduce((t,r)=>{const s=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${s}`:s},""),kk=(e,t,r,s)=>{const o=KS(r),c=GS(t);return o?`<${e} ${qn}="true" ${o}>${Hm(c,s)}</${e}>`:`<${e} ${qn}="true">${Hm(c,s)}</${e}>`},zk=(e,t,r=!0)=>t.reduce((s,o)=>{const c=o,u=Object.keys(c).filter(m=>!(m==="innerHTML"||m==="cssText")).reduce((m,v)=>{const y=typeof c[v]>"u"?v:`${v}="${Hm(c[v],r)}"`;return m?`${m} ${y}`:y},""),f=c.innerHTML||c.cssText||"",h=Ck.indexOf(e)===-1;return`${s}<${e} ${qn}="true" ${u}${h?"/>":`>${f}</${e}>`}`},""),QS=(e,t={})=>Object.keys(e).reduce((r,s)=>{const o=Gp[s];return r[o||s]=e[s],r},t),Nk=(e,t,r)=>{const s={key:t,[qn]:!0},o=QS(r,s);return[se.createElement("title",o,t)]},wu=(e,t)=>t.map((r,s)=>{const o={key:s,[qn]:!0};return Object.keys(r).forEach(c=>{const f=Gp[c]||c;if(f==="innerHTML"||f==="cssText"){const h=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:h}}else o[f]=r[c]}),se.createElement(e,o)}),kn=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>Nk(e,t.title,t.titleAttributes),toString:()=>kk(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>QS(t),toString:()=>KS(t)};default:return{toComponent:()=>wu(e,t),toString:()=>zk(e,t,r)}}},Mk=({metaTags:e,linkTags:t,scriptTags:r,encode:s})=>{const o=im(e,nm.meta),c=im(t,nm.link),u=im(r,nm.script);return{priorityMethods:{toComponent:()=>[...wu("meta",o.priority),...wu("link",c.priority),...wu("script",u.priority)],toString:()=>`${kn("meta",o.priority,s)} ${kn("link",c.priority,s)} ${kn("script",u.priority,s)}`},metaTags:o.default,linkTags:c.default,scriptTags:u.default}},Rk=e=>{const{baseTag:t,bodyAttributes:r,encode:s=!0,htmlAttributes:o,noscriptTags:c,styleTags:u,title:f="",titleAttributes:h,prioritizeSeoTags:m}=e;let{linkTags:v,metaTags:y,scriptTags:x}=e,w={toComponent:()=>{},toString:()=>""};return m&&({priorityMethods:w,linkTags:v,metaTags:y,scriptTags:x}=Mk(e)),{priority:w,base:kn("base",t,s),bodyAttributes:kn("bodyAttributes",r,s),htmlAttributes:kn("htmlAttributes",o,s),link:kn("link",v,s),meta:kn("meta",y,s),noscript:kn("noscript",c,s),script:kn("script",x,s),style:kn("style",u,s),title:kn("title",{title:f,titleAttributes:h},s)}},qm=Rk,ru=[],FS=!!(typeof window<"u"&&window.document&&window.document.createElement),Im=class{instances=[];canUseDOM=FS;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ru:this.instances,add:e=>{(this.canUseDOM?ru:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ru:this.instances).indexOf(e);(this.canUseDOM?ru:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=qm({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Dk={},YS=se.createContext(Dk),XS=class WS extends S.Component{static canUseDOM=FS;helmetData;constructor(t){super(t),this.helmetData=new Im(this.props.context||{},WS.canUseDOM)}render(){return se.createElement(YS.Provider,{value:this.helmetData.value},this.props.children)}},ma=(e,t)=>{const r=document.head||document.querySelector("head"),s=r.querySelectorAll(`${e}[${qn}]`),o=[].slice.call(s),c=[];let u;return t&&t.length&&t.forEach(f=>{const h=document.createElement(e);for(const m in f)if(Object.prototype.hasOwnProperty.call(f,m))if(m==="innerHTML")h.innerHTML=f.innerHTML;else if(m==="cssText")h.styleSheet?h.styleSheet.cssText=f.cssText:h.appendChild(document.createTextNode(f.cssText));else{const v=m,y=typeof f[v]>"u"?"":f[v];h.setAttribute(m,y)}h.setAttribute(qn,"true"),o.some((m,v)=>(u=v,h.isEqualNode(m)))?o.splice(u,1):c.push(h)}),o.forEach(f=>f.parentNode?.removeChild(f)),c.forEach(f=>r.appendChild(f)),{oldTags:o,newTags:c}},$m=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const s=r.getAttribute(qn),o=s?s.split(","):[],c=[...o],u=Object.keys(t);for(const f of u){const h=t[f]||"";r.getAttribute(f)!==h&&r.setAttribute(f,h),o.indexOf(f)===-1&&o.push(f);const m=c.indexOf(f);m!==-1&&c.splice(m,1)}for(let f=c.length-1;f>=0;f-=1)r.removeAttribute(c[f]);o.length===c.length?r.removeAttribute(qn):r.getAttribute(qn)!==u.join(",")&&r.setAttribute(qn,u.join(","))},Pk=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=GS(e)),$m("title",t)},Ax=(e,t)=>{const{baseTag:r,bodyAttributes:s,htmlAttributes:o,linkTags:c,metaTags:u,noscriptTags:f,onChangeClientState:h,scriptTags:m,styleTags:v,title:y,titleAttributes:x}=e;$m("body",s),$m("html",o),Pk(y,x);const w={baseTag:ma("base",r),linkTags:ma("link",c),metaTags:ma("meta",u),noscriptTags:ma("noscript",f),scriptTags:ma("script",m),styleTags:ma("style",v)},T={},_={};Object.keys(w).forEach(N=>{const{newTags:k,oldTags:L}=w[N];k.length&&(T[N]=k),L.length&&(_[N]=w[N].oldTags)}),t&&t(),h(e,T,_)},Fo=null,Lk=e=>{Fo&&cancelAnimationFrame(Fo),e.defer?Fo=requestAnimationFrame(()=>{Ax(e,()=>{Fo=null})}):(Ax(e),Fo=null)},Uk=Lk,jx=class extends S.Component{rendered=!1;shouldComponentUpdate(e){return!xk(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let r=null;const s=jk(e.get().map(o=>{const c={...o.props};return delete c.context,c}));XS.canUseDOM?Uk(s):qm&&(r=qm(s)),t(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Vk=class extends S.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!pk(_x(this.props,"helmetData"),_x(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,s){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,s)}]}}mapObjectTypeChildren(e,t,r,s){switch(e.type){case"title":return{...t,[e.type]:s,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(s=>{r={...r,[s]:e[s]}}),r}warnOnInvalidChildren(e,t){return Sx(Tx.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Tx.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Sx(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return se.Children.forEach(e,s=>{if(!s||!s.props)return;const{children:o,...c}=s.props,u=Object.keys(c).reduce((h,m)=>(h[wk[m]||m]=c[m],h),{});let{type:f}=s;switch(typeof f=="symbol"?f=f.toString():this.warnOnInvalidChildren(s,o),f){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(s,r,u,o);break;default:t=this.mapObjectTypeChildren(s,t,u,o);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:s}=t;if(e&&(r=this.mapChildrenToProps(e,r)),s&&!(s instanceof Im)){const o=s;s=new Im(o.context,!0),delete r.helmetData}return s?se.createElement(jx,{...r,context:s.value}):se.createElement(YS.Consumer,null,o=>se.createElement(jx,{...r,context:o}))}},Bk=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),JS=(function(){function e(t){this.generateIdentifier=t,this.kv=new Bk}return e.prototype.register=function(t,r){this.kv.getByValue(t)||(r||(r=this.generateIdentifier(t)),this.kv.set(r,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),Hk=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(s[c]=o[c])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function s(){this.constructor=t}t.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}})(),qk=(function(e){Hk(t,e);function t(){var r=e.call(this,function(s){return s.name})||this;return r.classToAllowedProps=new Map,r}return t.prototype.register=function(r,s){typeof s=="object"?(s.allowProps&&this.classToAllowedProps.set(r,s.allowProps),e.prototype.register.call(this,r,s.identifier)):e.prototype.register.call(this,r,s)},t.prototype.getAllowedProps=function(r){return this.classToAllowedProps.get(r)},t})(JS),Ik=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(f){u={error:f}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(u)throw u.error}}return c};function $k(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}function Zk(e,t){var r=$k(e);if("find"in r)return r.find(t);for(var s=r,o=0;o<s.length;o++){var c=s[o];if(t(c))return c}}function Ma(e,t){Object.entries(e).forEach(function(r){var s=Ik(r,2),o=s[0],c=s[1];return t(c,o)})}function Su(e,t){return e.indexOf(t)!==-1}function Ox(e,t){for(var r=0;r<e.length;r++){var s=e[r];if(t(s))return s}}var Gk=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return Zk(this.transfomers,function(r){return r.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),Kk=function(e){return Object.prototype.toString.call(e).slice(8,-1)},e2=function(e){return typeof e>"u"},Qk=function(e){return e===null},fl=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},Zm=function(e){return fl(e)&&Object.keys(e).length===0},Ti=function(e){return Array.isArray(e)},Fk=function(e){return typeof e=="string"},Yk=function(e){return typeof e=="number"&&!isNaN(e)},Xk=function(e){return typeof e=="boolean"},Wk=function(e){return e instanceof RegExp},dl=function(e){return e instanceof Map},hl=function(e){return e instanceof Set},t2=function(e){return Kk(e)==="Symbol"},Jk=function(e){return e instanceof Date&&!isNaN(e.valueOf())},e5=function(e){return e instanceof Error},Cx=function(e){return typeof e=="number"&&isNaN(e)},t5=function(e){return Xk(e)||Qk(e)||e2(e)||Yk(e)||Fk(e)||t2(e)},n5=function(e){return typeof e=="bigint"},r5=function(e){return e===1/0||e===-1/0},i5=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},s5=function(e){return e instanceof URL},n2=function(e){return e.replace(/\./g,"\\.")},sm=function(e){return e.map(String).map(n2).join(".")},nl=function(e){for(var t=[],r="",s=0;s<e.length;s++){var o=e.charAt(s),c=o==="\\"&&e.charAt(s+1)===".";if(c){r+=".",s++;continue}var u=o===".";if(u){t.push(r),r="";continue}r+=o}var f=r;return t.push(f),t},Gm=function(){return Gm=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gm.apply(this,arguments)},Km=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(f){u={error:f}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(u)throw u.error}}return c},Qm=function(e,t){for(var r=0,s=t.length,o=e.length;r<s;r++,o++)e[o]=t[r];return e};function er(e,t,r,s){return{isApplicable:e,annotation:t,transform:r,untransform:s}}var r2=[er(e2,"undefined",function(){return null},function(){}),er(n5,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),er(Jk,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),er(e5,"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(s){r[s]=e[s]}),r},function(e,t){var r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(s){r[s]=e[s]}),r}),er(Wk,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),er(hl,"set",function(e){return Qm([],Km(e.values()))},function(e){return new Set(e)}),er(dl,"map",function(e){return Qm([],Km(e.entries()))},function(e){return new Map(e)}),er(function(e){return Cx(e)||r5(e)},"number",function(e){return Cx(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),er(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),er(s5,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function lf(e,t,r,s){return{isApplicable:e,annotation:t,transform:r,untransform:s}}var i2=lf(function(e,t){if(t2(e)){var r=!!t.symbolRegistry.getIdentifier(e);return r}return!1},function(e,t){var r=t.symbolRegistry.getIdentifier(e);return["symbol",r]},function(e){return e.description},function(e,t,r){var s=r.symbolRegistry.getValue(t[1]);if(!s)throw new Error("Trying to deserialize unknown symbol");return s}),a5=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),s2=lf(i5,function(e){return["typed-array",e.constructor.name]},function(e){return Qm([],Km(e))},function(e,t){var r=a5[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function a2(e,t){if(e?.constructor){var r=!!t.classRegistry.getIdentifier(e.constructor);return r}return!1}var o2=lf(a2,function(e,t){var r=t.classRegistry.getIdentifier(e.constructor);return["class",r]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return Gm({},e);var s={};return r.forEach(function(o){s[o]=e[o]}),s},function(e,t,r){var s=r.classRegistry.getValue(t[1]);if(!s)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(s.prototype),e)}),l2=lf(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return["custom",r.name]},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return r.serialize(e)},function(e,t,r){var s=r.customTransformerRegistry.findByName(t[1]);if(!s)throw new Error("Trying to deserialize unknown custom value");return s.deserialize(e)}),o5=[o2,i2,l2,s2],kx=function(e,t){var r=Ox(o5,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var s=Ox(r2,function(o){return o.isApplicable(e,t)});if(s)return{value:s.transform(e,t),type:s.annotation}},c2={};r2.forEach(function(e){c2[e.annotation]=e});var l5=function(e,t,r){if(Ti(t))switch(t[0]){case"symbol":return i2.untransform(e,t,r);case"class":return o2.untransform(e,t,r);case"custom":return l2.untransform(e,t,r);case"typed-array":return s2.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}else{var s=c2[t];if(!s)throw new Error("Unknown transformation: "+t);return s.untransform(e,r)}},ba=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function u2(e){if(Su(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Su(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Su(e,"constructor"))throw new Error("constructor is not allowed as a property")}var c5=function(e,t){u2(t);for(var r=0;r<t.length;r++){var s=t[r];if(hl(e))e=ba(e,+s);else if(dl(e)){var o=+s,c=+t[++r]==0?"key":"value",u=ba(e,o);switch(c){case"key":e=u;break;case"value":e=e.get(u);break}}else e=e[s]}return e},Fm=function(e,t,r){if(u2(t),t.length===0)return r(e);for(var s=e,o=0;o<t.length-1;o++){var c=t[o];if(Ti(s)){var u=+c;s=s[u]}else if(fl(s))s=s[c];else if(hl(s)){var f=+c;s=ba(s,f)}else if(dl(s)){var h=o===t.length-2;if(h)break;var f=+c,m=+t[++o]==0?"key":"value",v=ba(s,f);switch(m){case"key":s=v;break;case"value":s=s.get(v);break}}}var y=t[t.length-1];if(Ti(s)?s[+y]=r(s[+y]):fl(s)&&(s[y]=r(s[y])),hl(s)){var x=ba(s,+y),w=r(x);x!==w&&(s.delete(x),s.add(w))}if(dl(s)){var f=+t[t.length-2],T=ba(s,f),m=+y==0?"key":"value";switch(m){case"key":{var _=r(T);s.set(_,s.get(T)),_!==T&&s.delete(T);break}case"value":{s.set(T,r(s.get(T)));break}}}return e},Dr=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(f){u={error:f}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(u)throw u.error}}return c},xi=function(e,t){for(var r=0,s=t.length,o=e.length;r<s;r++,o++)e[o]=t[r];return e};function Ym(e,t,r){if(r===void 0&&(r=[]),!!e){if(!Ti(e)){Ma(e,function(u,f){return Ym(u,t,xi(xi([],Dr(r)),Dr(nl(f))))});return}var s=Dr(e,2),o=s[0],c=s[1];c&&Ma(c,function(u,f){Ym(u,t,xi(xi([],Dr(r)),Dr(nl(f))))}),t(o,r)}}function u5(e,t,r){return Ym(t,function(s,o){e=Fm(e,o,function(c){return l5(c,s,r)})}),e}function f5(e,t){function r(u,f){var h=c5(e,nl(f));u.map(nl).forEach(function(m){e=Fm(e,m,function(){return h})})}if(Ti(t)){var s=Dr(t,2),o=s[0],c=s[1];o.forEach(function(u){e=Fm(e,nl(u),function(){return e})}),c&&Ma(c,r)}else Ma(t,r);return e}var d5=function(e,t){return fl(e)||Ti(e)||dl(e)||hl(e)||a2(e,t)};function h5(e,t,r){var s=r.get(e);s?s.push(t):r.set(e,[t])}function m5(e,t){var r={},s=void 0;return e.forEach(function(o){if(!(o.length<=1)){t||(o=o.map(function(h){return h.map(String)}).sort(function(h,m){return h.length-m.length}));var c=Dr(o),u=c[0],f=c.slice(1);u.length===0?s=f.map(sm):r[sm(u)]=f.map(sm)}}),s?Zm(r)?[s]:[s,r]:Zm(r)?void 0:r}var f2=function(e,t,r,s,o,c,u){var f;o===void 0&&(o=[]),c===void 0&&(c=[]),u===void 0&&(u=new Map);var h=t5(e);if(!h){h5(e,o,t);var m=u.get(e);if(m)return s?{transformedValue:null}:m}if(!d5(e,r)){var v=kx(e,r),y=v?{transformedValue:v.value,annotations:[v.type]}:{transformedValue:e};return h||u.set(e,y),y}if(Su(c,e))return{transformedValue:null};var x=kx(e,r),w=(f=x?.value)!==null&&f!==void 0?f:e,T=Ti(w)?[]:{},_={};Ma(w,function(k,L){var C=f2(k,t,r,s,xi(xi([],Dr(o)),[L]),xi(xi([],Dr(c)),[e]),u);T[L]=C.transformedValue,Ti(C.annotations)?_[L]=C.annotations:fl(C.annotations)&&Ma(C.annotations,function(B,U){_[n2(L)+"."+U]=B})});var N=Zm(_)?{transformedValue:T,annotations:x?[x.type]:void 0}:{transformedValue:T,annotations:x?[x.type,_]:_};return h||u.set(e,N),N};function d2(e){return Object.prototype.toString.call(e).slice(8,-1)}function zx(e){return d2(e)==="Array"}function p5(e){if(d2(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function g5(e,t,r,s,o){const c={}.propertyIsEnumerable.call(s,t)?"enumerable":"nonenumerable";c==="enumerable"&&(e[t]=r),o&&c==="nonenumerable"&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}function Xm(e,t={}){if(zx(e))return e.map(o=>Xm(o,t));if(!p5(e))return e;const r=Object.getOwnPropertyNames(e),s=Object.getOwnPropertySymbols(e);return[...r,...s].reduce((o,c)=>{if(zx(t.props)&&!t.props.includes(c))return o;const u=e[c],f=Xm(u,t);return g5(o,c,f,e,t.nonenumerable),o},{})}var is=function(){return is=Object.assign||function(e){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},is.apply(this,arguments)},y5=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(f){u={error:f}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(u)throw u.error}}return c},v5=function(e,t){for(var r=0,s=t.length,o=e.length;r<s;r++,o++)e[o]=t[r];return e},Br=(function(){function e(t){var r=t===void 0?{}:t,s=r.dedupe,o=s===void 0?!1:s;this.classRegistry=new qk,this.symbolRegistry=new JS(function(c){var u;return(u=c.description)!==null&&u!==void 0?u:""}),this.customTransformerRegistry=new Gk,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var r=new Map,s=f2(t,r,this,this.dedupe),o={json:s.transformedValue};s.annotations&&(o.meta=is(is({},o.meta),{values:s.annotations}));var c=m5(r,this.dedupe);return c&&(o.meta=is(is({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(t){var r=t.json,s=t.meta,o=Xm(r);return s?.values&&(o=u5(o,s.values,this)),s?.referentialEqualities&&(o=f5(o,s.referentialEqualities)),o},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,r){this.classRegistry.register(t,r)},e.prototype.registerSymbol=function(t,r){this.symbolRegistry.register(t,r)},e.prototype.registerCustom=function(t,r){this.customTransformerRegistry.register(is({name:r},t))},e.prototype.allowErrorProps=function(){for(var t,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];(t=this.allowedErrorProps).push.apply(t,v5([],y5(r)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();Br.serialize;Br.deserialize;Br.stringify;Br.parse;Br.registerClass;Br.registerCustom;Br.registerSymbol;Br.allowErrorProps;const b5="modulepreload",x5=function(e){return"/"+e},Nx={},Oe=function(t,r,s){let o=Promise.resolve();if(r&&r.length>0){let h=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");o=h(r.map(m=>{if(m=x5(m),m in Nx)return;Nx[m]=!0;const v=m.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":b5,v||(x.as="script"),x.crossOrigin="",x.href=m,f&&x.setAttribute("nonce",f),document.head.appendChild(x),v)return new Promise((w,T)=>{x.addEventListener("load",w),x.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return t().catch(c)})};var w5=(e,t,r,s,o,c,u,f)=>{let h=document.documentElement,m=["light","dark"];function v(w){(Array.isArray(e)?e:[e]).forEach(T=>{let _=T==="class",N=_&&c?o.map(k=>c[k]||k):o;_?(h.classList.remove(...N),h.classList.add(c&&c[w]?c[w]:w)):h.setAttribute(T,w)}),y(w)}function y(w){f&&m.includes(w)&&(h.style.colorScheme=w)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)v(s);else try{let w=localStorage.getItem(t)||r,T=u&&w==="system"?x():w;v(T)}catch{}},S5=S.createContext(void 0),E5={setTheme:e=>{},themes:[]},T5=()=>{var e;return(e=S.useContext(S5))!=null?e:E5};S.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:o,defaultTheme:c,value:u,themes:f,nonce:h,scriptProps:m})=>{let v=JSON.stringify([r,t,c,e,f,u,s,o]).slice(1,-1);return S.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${w5.toString()})(${v})`}})});var Kp=$S();const _5=_l(Kp);function A5(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const j5=e=>{switch(e){case"success":return k5;case"info":return N5;case"warning":return z5;case"error":return M5;default:return null}},O5=Array(12).fill(0),C5=({visible:e,className:t})=>se.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},se.createElement("div",{className:"sonner-spinner"},O5.map((r,s)=>se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),k5=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),z5=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),N5=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),M5=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),R5=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},se.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),se.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),D5=()=>{const[e,t]=se.useState(document.hidden);return se.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Wm=1;class P5{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:s,...o}=t,c=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Wm++,u=this.toasts.find(h=>h.id===c),f=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...t,id:c,title:s}),{...h,...t,id:c,dismissible:f,title:s}):h):this.addToast({title:s,...o,dismissible:f,id:c}),c},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let c=s!==void 0,u;const f=o.then(async m=>{if(u=["resolve",m],se.isValidElement(m))c=!1,this.create({id:s,type:"default",message:m});else if(U5(m)&&!m.ok){c=!1;const y=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,x=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description,T=typeof y=="object"&&!se.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:x,...T})}else if(m instanceof Error){c=!1;const y=typeof r.error=="function"?await r.error(m):r.error,x=typeof r.description=="function"?await r.description(m):r.description,T=typeof y=="object"&&!se.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:x,...T})}else if(r.success!==void 0){c=!1;const y=typeof r.success=="function"?await r.success(m):r.success,x=typeof r.description=="function"?await r.description(m):r.description,T=typeof y=="object"&&!se.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:x,...T})}}).catch(async m=>{if(u=["reject",m],r.error!==void 0){c=!1;const v=typeof r.error=="function"?await r.error(m):r.error,y=typeof r.description=="function"?await r.description(m):r.description,w=typeof v=="object"&&!se.isValidElement(v)?v:{message:v};this.create({id:s,type:"error",description:y,...w})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),r.finally==null||r.finally.call(r)}),h=()=>new Promise((m,v)=>f.then(()=>u[0]==="reject"?v(u[1]):m(u[1])).catch(v));return typeof s!="string"&&typeof s!="number"?{unwrap:h}:Object.assign(s,{unwrap:h})},this.custom=(t,r)=>{const s=r?.id||Wm++;return this.create({jsx:t(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const en=new P5,L5=(e,t)=>{const r=t?.id||Wm++;return en.addToast({title:e,...t,id:r}),r},U5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",V5=L5,B5=()=>en.toasts,H5=()=>en.getActiveToasts(),G7=Object.assign(V5,{success:en.success,info:en.info,warning:en.warning,error:en.error,custom:en.custom,message:en.message,promise:en.promise,dismiss:en.dismiss,loading:en.loading},{getHistory:B5,getToasts:H5});A5("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function iu(e){return e.label!==void 0}const q5=3,I5="24px",$5="16px",Mx=4e3,Z5=356,G5=14,K5=45,Q5=200;function tr(...e){return e.filter(Boolean).join(" ")}function F5(e){const[t,r]=e.split("-"),s=[];return t&&s.push(t),r&&s.push(r),s}const Y5=e=>{var t,r,s,o,c,u,f,h,m;const{invert:v,toast:y,unstyled:x,interacting:w,setHeights:T,visibleToasts:_,heights:N,index:k,toasts:L,expanded:C,removeToast:B,defaultRichColors:U,closeButton:H,style:j,cancelButtonStyle:D,actionButtonStyle:W,className:te="",descriptionClassName:F="",duration:G,position:oe,gap:ae,expandByDefault:ce,classNames:A,icons:R,closeButtonAriaLabel:P="Close toast"}=e,[re,le]=se.useState(null),[O,Q]=se.useState(null),[$,Y]=se.useState(!1),[ie,pe]=se.useState(!1),[fe,xe]=se.useState(!1),[De,_t]=se.useState(!1),[Lt,At]=se.useState(!1),[dr,Rn]=se.useState(0),[Fa,_s]=se.useState(0),Ni=se.useRef(y.duration||G||Mx),Ya=se.useRef(null),rn=se.useRef(null),Xa=k===0,Wa=k+1<=_,Ut=y.type,qr=y.dismissible!==!1,Vt=y.className||"",zf=y.descriptionClassName||"",Mi=se.useMemo(()=>N.findIndex(we=>we.toastId===y.id)||0,[N,y.id]),Vl=se.useMemo(()=>{var we;return(we=y.closeButton)!=null?we:H},[y.closeButton,H]),Ri=se.useMemo(()=>y.duration||G||Mx,[y.duration,G]),Ja=se.useRef(0),hr=se.useRef(0),Bl=se.useRef(0),Ir=se.useRef(null),[Di,Bt]=oe.split("-"),Dn=se.useMemo(()=>N.reduce((we,Xe,xt)=>xt>=Mi?we:we+Xe.height,0),[N,Mi]),Nt=D5(),Nf=y.invert||v,eo=Ut==="loading";hr.current=se.useMemo(()=>Mi*ae+Dn,[Mi,Dn]),se.useEffect(()=>{Ni.current=Ri},[Ri]),se.useEffect(()=>{Y(!0)},[]),se.useEffect(()=>{const we=rn.current;if(we){const Xe=we.getBoundingClientRect().height;return _s(Xe),T(xt=>[{toastId:y.id,height:Xe,position:y.position},...xt]),()=>T(xt=>xt.filter(Mt=>Mt.toastId!==y.id))}},[T,y.id]),se.useLayoutEffect(()=>{if(!$)return;const we=rn.current,Xe=we.style.height;we.style.height="auto";const xt=we.getBoundingClientRect().height;we.style.height=Xe,_s(xt),T(Mt=>Mt.find(et=>et.toastId===y.id)?Mt.map(et=>et.toastId===y.id?{...et,height:xt}:et):[{toastId:y.id,height:xt,position:y.position},...Mt])},[$,y.title,y.description,T,y.id,y.jsx,y.action,y.cancel]);const Qn=se.useCallback(()=>{pe(!0),Rn(hr.current),T(we=>we.filter(Xe=>Xe.toastId!==y.id)),setTimeout(()=>{B(y)},Q5)},[y,B,T,hr]);se.useEffect(()=>{if(y.promise&&Ut==="loading"||y.duration===1/0||y.type==="loading")return;let we;return C||w||Nt?(()=>{if(Bl.current<Ja.current){const Mt=new Date().getTime()-Ja.current;Ni.current=Ni.current-Mt}Bl.current=new Date().getTime()})():(()=>{Ni.current!==1/0&&(Ja.current=new Date().getTime(),we=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Qn()},Ni.current))})(),()=>clearTimeout(we)},[C,w,y,Ut,Nt,Qn]),se.useEffect(()=>{y.delete&&(Qn(),y.onDismiss==null||y.onDismiss.call(y,y))},[Qn,y.delete]);function As(){var we;if(R?.loading){var Xe;return se.createElement("div",{className:tr(A?.loader,y==null||(Xe=y.classNames)==null?void 0:Xe.loader,"sonner-loader"),"data-visible":Ut==="loading"},R.loading)}return se.createElement(C5,{className:tr(A?.loader,y==null||(we=y.classNames)==null?void 0:we.loader),visible:Ut==="loading"})}const js=y.icon||R?.[Ut]||j5(Ut);var Pi,Fn;return se.createElement("li",{tabIndex:0,ref:rn,className:tr(te,Vt,A?.toast,y==null||(t=y.classNames)==null?void 0:t.toast,A?.default,A?.[Ut],y==null||(r=y.classNames)==null?void 0:r[Ut]),"data-sonner-toast":"","data-rich-colors":(Pi=y.richColors)!=null?Pi:U,"data-styled":!(y.jsx||y.unstyled||x),"data-mounted":$,"data-promise":!!y.promise,"data-swiped":Lt,"data-removed":ie,"data-visible":Wa,"data-y-position":Di,"data-x-position":Bt,"data-index":k,"data-front":Xa,"data-swiping":fe,"data-dismissible":qr,"data-type":Ut,"data-invert":Nf,"data-swipe-out":De,"data-swipe-direction":O,"data-expanded":!!(C||ce&&$),"data-testid":y.testId,style:{"--index":k,"--toasts-before":k,"--z-index":L.length-k,"--offset":`${ie?dr:hr.current}px`,"--initial-height":ce?"auto":`${Fa}px`,...j,...y.style},onDragEnd:()=>{xe(!1),le(null),Ir.current=null},onPointerDown:we=>{we.button!==2&&(eo||!qr||(Ya.current=new Date,Rn(hr.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(xe(!0),Ir.current={x:we.clientX,y:we.clientY})))},onPointerUp:()=>{var we,Xe,xt;if(De||!qr)return;Ir.current=null;const Mt=Number(((we=rn.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),$r=Number(((Xe=rn.current)==null?void 0:Xe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((xt=Ya.current)==null?void 0:xt.getTime()),$t=re==="x"?Mt:$r,Li=Math.abs($t)/et;if(Math.abs($t)>=K5||Li>.11){Rn(hr.current),y.onDismiss==null||y.onDismiss.call(y,y),Q(re==="x"?Mt>0?"right":"left":$r>0?"down":"up"),Qn(),_t(!0);return}else{var Zt,Gt;(Zt=rn.current)==null||Zt.style.setProperty("--swipe-amount-x","0px"),(Gt=rn.current)==null||Gt.style.setProperty("--swipe-amount-y","0px")}At(!1),xe(!1),le(null)},onPointerMove:we=>{var Xe,xt,Mt;if(!Ir.current||!qr||((Xe=window.getSelection())==null?void 0:Xe.toString().length)>0)return;const et=we.clientY-Ir.current.y,$t=we.clientX-Ir.current.x;var Li;const Zt=(Li=e.swipeDirections)!=null?Li:F5(oe);!re&&(Math.abs($t)>1||Math.abs(et)>1)&&le(Math.abs($t)>Math.abs(et)?"x":"y");let Gt={x:0,y:0};const Os=Pn=>1/(1.5+Math.abs(Pn)/20);if(re==="y"){if(Zt.includes("top")||Zt.includes("bottom"))if(Zt.includes("top")&&et<0||Zt.includes("bottom")&&et>0)Gt.y=et;else{const Pn=et*Os(et);Gt.y=Math.abs(Pn)<Math.abs(et)?Pn:et}}else if(re==="x"&&(Zt.includes("left")||Zt.includes("right")))if(Zt.includes("left")&&$t<0||Zt.includes("right")&&$t>0)Gt.x=$t;else{const Pn=$t*Os($t);Gt.x=Math.abs(Pn)<Math.abs($t)?Pn:$t}(Math.abs(Gt.x)>0||Math.abs(Gt.y)>0)&&At(!0),(xt=rn.current)==null||xt.style.setProperty("--swipe-amount-x",`${Gt.x}px`),(Mt=rn.current)==null||Mt.style.setProperty("--swipe-amount-y",`${Gt.y}px`)}},Vl&&!y.jsx&&Ut!=="loading"?se.createElement("button",{"aria-label":P,"data-disabled":eo,"data-close-button":!0,onClick:eo||!qr?()=>{}:()=>{Qn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:tr(A?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Fn=R?.close)!=null?Fn:R5):null,(Ut||y.icon||y.promise)&&y.icon!==null&&(R?.[Ut]!==null||y.icon)?se.createElement("div",{"data-icon":"",className:tr(A?.icon,y==null||(o=y.classNames)==null?void 0:o.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||As():null,y.type!=="loading"?js:null):null,se.createElement("div",{"data-content":"",className:tr(A?.content,y==null||(c=y.classNames)==null?void 0:c.content)},se.createElement("div",{"data-title":"",className:tr(A?.title,y==null||(u=y.classNames)==null?void 0:u.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?se.createElement("div",{"data-description":"",className:tr(F,zf,A?.description,y==null||(f=y.classNames)==null?void 0:f.description)},typeof y.description=="function"?y.description():y.description):null),se.isValidElement(y.cancel)?y.cancel:y.cancel&&iu(y.cancel)?se.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||D,onClick:we=>{iu(y.cancel)&&qr&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,we),Qn())},className:tr(A?.cancelButton,y==null||(h=y.classNames)==null?void 0:h.cancelButton)},y.cancel.label):null,se.isValidElement(y.action)?y.action:y.action&&iu(y.action)?se.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||W,onClick:we=>{iu(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,we),!we.defaultPrevented&&Qn())},className:tr(A?.actionButton,y==null||(m=y.classNames)==null?void 0:m.actionButton)},y.action.label):null)};function Rx(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function X5(e,t){const r={};return[e,t].forEach((s,o)=>{const c=o===1,u=c?"--mobile-offset":"--offset",f=c?$5:I5;function h(m){["top","right","bottom","left"].forEach(v=>{r[`${u}-${v}`]=typeof m=="number"?`${m}px`:m})}typeof s=="number"||typeof s=="string"?h(s):typeof s=="object"?["top","right","bottom","left"].forEach(m=>{s[m]===void 0?r[`${u}-${m}`]=f:r[`${u}-${m}`]=typeof s[m]=="number"?`${s[m]}px`:s[m]}):h(f)}),r}const W5=se.forwardRef(function(t,r){const{id:s,invert:o,position:c="bottom-right",hotkey:u=["altKey","KeyT"],expand:f,closeButton:h,className:m,offset:v,mobileOffset:y,theme:x="light",richColors:w,duration:T,style:_,visibleToasts:N=q5,toastOptions:k,dir:L=Rx(),gap:C=G5,icons:B,containerAriaLabel:U="Notifications"}=t,[H,j]=se.useState([]),D=se.useMemo(()=>s?H.filter($=>$.toasterId===s):H.filter($=>!$.toasterId),[H,s]),W=se.useMemo(()=>Array.from(new Set([c].concat(D.filter($=>$.position).map($=>$.position)))),[D,c]),[te,F]=se.useState([]),[G,oe]=se.useState(!1),[ae,ce]=se.useState(!1),[A,R]=se.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=se.useRef(null),re=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),le=se.useRef(null),O=se.useRef(!1),Q=se.useCallback($=>{j(Y=>{var ie;return(ie=Y.find(pe=>pe.id===$.id))!=null&&ie.delete||en.dismiss($.id),Y.filter(({id:pe})=>pe!==$.id)})},[]);return se.useEffect(()=>en.subscribe($=>{if($.dismiss){requestAnimationFrame(()=>{j(Y=>Y.map(ie=>ie.id===$.id?{...ie,delete:!0}:ie))});return}setTimeout(()=>{_5.flushSync(()=>{j(Y=>{const ie=Y.findIndex(pe=>pe.id===$.id);return ie!==-1?[...Y.slice(0,ie),{...Y[ie],...$},...Y.slice(ie+1)]:[$,...Y]})})})}),[H]),se.useEffect(()=>{if(x!=="system"){R(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window>"u")return;const $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:Y})=>{R(Y?"dark":"light")})}catch{$.addListener(({matches:ie})=>{try{R(ie?"dark":"light")}catch(pe){console.error(pe)}})}},[x]),se.useEffect(()=>{H.length<=1&&oe(!1)},[H]),se.useEffect(()=>{const $=Y=>{var ie;if(u.every(xe=>Y[xe]||Y.code===xe)){var fe;oe(!0),(fe=P.current)==null||fe.focus()}Y.code==="Escape"&&(document.activeElement===P.current||(ie=P.current)!=null&&ie.contains(document.activeElement))&&oe(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[u]),se.useEffect(()=>{if(P.current)return()=>{le.current&&(le.current.focus({preventScroll:!0}),le.current=null,O.current=!1)}},[P.current]),se.createElement("section",{ref:r,"aria-label":`${U} ${re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map(($,Y)=>{var ie;const[pe,fe]=$.split("-");return D.length?se.createElement("ol",{key:$,dir:L==="auto"?Rx():L,tabIndex:-1,ref:P,className:m,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":pe,"data-x-position":fe,style:{"--front-toast-height":`${((ie=te[0])==null?void 0:ie.height)||0}px`,"--width":`${Z5}px`,"--gap":`${C}px`,..._,...X5(v,y)},onBlur:xe=>{O.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(O.current=!1,le.current&&(le.current.focus({preventScroll:!0}),le.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||O.current||(O.current=!0,le.current=xe.relatedTarget)},onMouseEnter:()=>oe(!0),onMouseMove:()=>oe(!0),onMouseLeave:()=>{ae||oe(!1)},onDragEnd:()=>oe(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},D.filter(xe=>!xe.position&&Y===0||xe.position===$).map((xe,De)=>{var _t,Lt;return se.createElement(Y5,{key:xe.id,icons:B,index:De,toast:xe,defaultRichColors:w,duration:(_t=k?.duration)!=null?_t:T,className:k?.className,descriptionClassName:k?.descriptionClassName,invert:o,visibleToasts:N,closeButton:(Lt=k?.closeButton)!=null?Lt:h,interacting:ae,position:$,style:k?.style,unstyled:k?.unstyled,classNames:k?.classNames,cancelButtonStyle:k?.cancelButtonStyle,actionButtonStyle:k?.actionButtonStyle,closeButtonAriaLabel:k?.closeButtonAriaLabel,removeToast:Q,toasts:D.filter(At=>At.position==xe.position),heights:te.filter(At=>At.position==xe.position),setHeights:F,expandByDefault:f,gap:C,expanded:G,swipeDirections:t.swipeDirections})})):null}))}),J5=({...e})=>{const{theme:t="system"}=T5();return g.jsx(W5,{theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Mr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function Dx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function h2(...e){return t=>{let r=!1;const s=e.map(o=>{const c=Dx(o,t);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():Dx(e[o],null)}}}}function xs(...e){return S.useCallback(h2(...e),e)}function m2(e,t=[]){let r=[];function s(c,u){const f=S.createContext(u),h=r.length;r=[...r,u];const m=y=>{const{scope:x,children:w,...T}=y,_=x?.[e]?.[h]||f,N=S.useMemo(()=>T,Object.values(T));return g.jsx(_.Provider,{value:N,children:w})};m.displayName=c+"Provider";function v(y,x){const w=x?.[e]?.[h]||f,T=S.useContext(w);if(T)return T;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[m,v]}const o=()=>{const c=r.map(u=>S.createContext(u));return function(f){const h=f?.[e]||c;return S.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[s,ez(o,...t)]}function ez(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const u=s.reduce((f,{useScope:h,scopeName:m})=>{const y=h(c)[`__scope${m}`];return{...f,...y}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}function tz(e){const t=nz(e),r=S.forwardRef((s,o)=>{const{children:c,...u}=s,f=S.Children.toArray(c),h=f.find(iz);if(h){const m=h.props.children,v=f.map(y=>y===h?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:y);return g.jsx(t,{...u,ref:o,children:S.isValidElement(m)?S.cloneElement(m,void 0,v):null})}return g.jsx(t,{...u,ref:o,children:c})});return r.displayName=`${e}.Slot`,r}function nz(e){const t=S.forwardRef((r,s)=>{const{children:o,...c}=r;if(S.isValidElement(o)){const u=az(o),f=sz(c,o.props);return o.type!==S.Fragment&&(f.ref=s?h2(s,u):u),S.cloneElement(o,f)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p2=Symbol("radix.slottable");function rz(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=p2,t}function iz(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p2}function sz(e,t){const r={...t};for(const s in t){const o=e[s],c=t[s];/^on[A-Z]/.test(s)?o&&c?r[s]=(...f)=>{const h=c(...f);return o(...f),h}:o&&(r[s]=o):s==="style"?r[s]={...o,...c}:s==="className"&&(r[s]=[o,c].filter(Boolean).join(" "))}return{...e,...r}}function az(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var oz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ws=oz.reduce((e,t)=>{const r=tz(`Primitive.${t}`),s=S.forwardRef((o,c)=>{const{asChild:u,...f}=o,h=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...f,ref:c})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function lz(e,t){e&&Kp.flushSync(()=>e.dispatchEvent(t))}function cf(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>t.current?.(...r),[])}function cz(e,t=globalThis?.document){const r=cf(e);S.useEffect(()=>{const s=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[r,t])}var uz="DismissableLayer",Jm="dismissableLayer.update",fz="dismissableLayer.pointerDownOutside",dz="dismissableLayer.focusOutside",Px,g2=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y2=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...h}=e,m=S.useContext(g2),[v,y]=S.useState(null),x=v?.ownerDocument??globalThis?.document,[,w]=S.useState({}),T=xs(t,j=>y(j)),_=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),k=_.indexOf(N),L=v?_.indexOf(v):-1,C=m.layersWithOutsidePointerEventsDisabled.size>0,B=L>=k,U=pz(j=>{const D=j.target,W=[...m.branches].some(te=>te.contains(D));!B||W||(o?.(j),u?.(j),j.defaultPrevented||f?.())},x),H=gz(j=>{const D=j.target;[...m.branches].some(te=>te.contains(D))||(c?.(j),u?.(j),j.defaultPrevented||f?.())},x);return cz(j=>{L===m.layers.size-1&&(s?.(j),!j.defaultPrevented&&f&&(j.preventDefault(),f()))},x),S.useEffect(()=>{if(v)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Px=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),Lx(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Px)}},[v,x,r,m]),S.useEffect(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),Lx())},[v,m]),S.useEffect(()=>{const j=()=>w({});return document.addEventListener(Jm,j),()=>document.removeEventListener(Jm,j)},[]),g.jsx(ws.div,{...h,ref:T,style:{pointerEvents:C?B?"auto":"none":void 0,...e.style},onFocusCapture:Mr(e.onFocusCapture,H.onFocusCapture),onBlurCapture:Mr(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:Mr(e.onPointerDownCapture,U.onPointerDownCapture)})});y2.displayName=uz;var hz="DismissableLayerBranch",mz=S.forwardRef((e,t)=>{const r=S.useContext(g2),s=S.useRef(null),o=xs(t,s);return S.useEffect(()=>{const c=s.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),g.jsx(ws.div,{...e,ref:o})});mz.displayName=hz;function pz(e,t=globalThis?.document){const r=cf(e),s=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const c=f=>{if(f.target&&!s.current){let h=function(){v2(fz,r,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);s.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>s.current=!0}}function gz(e,t=globalThis?.document){const r=cf(e),s=S.useRef(!1);return S.useEffect(()=>{const o=c=>{c.target&&!s.current&&v2(dz,r,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Lx(){const e=new CustomEvent(Jm);document.dispatchEvent(e)}function v2(e,t,r,{discrete:s}){const o=r.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),s?lz(o,c):o.dispatchEvent(c)}var ml=globalThis?.document?S.useLayoutEffect:()=>{};const yz=["top","right","bottom","left"],_i=Math.min,mn=Math.max,Lu=Math.round,su=Math.floor,ir=e=>({x:e,y:e}),vz={left:"right",right:"left",bottom:"top",top:"bottom"},bz={start:"end",end:"start"};function ep(e,t,r){return mn(e,_i(t,r))}function Lr(e,t){return typeof e=="function"?e(t):e}function Ur(e){return e.split("-")[0]}function Ua(e){return e.split("-")[1]}function Qp(e){return e==="x"?"y":"x"}function Fp(e){return e==="y"?"height":"width"}const xz=new Set(["top","bottom"]);function rr(e){return xz.has(Ur(e))?"y":"x"}function Yp(e){return Qp(rr(e))}function wz(e,t,r){r===void 0&&(r=!1);const s=Ua(e),o=Yp(e),c=Fp(o);let u=o==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=Uu(u)),[u,Uu(u)]}function Sz(e){const t=Uu(e);return[tp(e),t,tp(t)]}function tp(e){return e.replace(/start|end/g,t=>bz[t])}const Ux=["left","right"],Vx=["right","left"],Ez=["top","bottom"],Tz=["bottom","top"];function _z(e,t,r){switch(e){case"top":case"bottom":return r?t?Vx:Ux:t?Ux:Vx;case"left":case"right":return t?Ez:Tz;default:return[]}}function Az(e,t,r,s){const o=Ua(e);let c=_z(Ur(e),r==="start",s);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(tp)))),c}function Uu(e){return e.replace(/left|right|bottom|top/g,t=>vz[t])}function jz(e){return{top:0,right:0,bottom:0,left:0,...e}}function b2(e){return typeof e!="number"?jz(e):{top:e,right:e,bottom:e,left:e}}function Vu(e){const{x:t,y:r,width:s,height:o}=e;return{width:s,height:o,top:r,left:t,right:t+s,bottom:r+o,x:t,y:r}}function Bx(e,t,r){let{reference:s,floating:o}=e;const c=rr(t),u=Yp(t),f=Fp(u),h=Ur(t),m=c==="y",v=s.x+s.width/2-o.width/2,y=s.y+s.height/2-o.height/2,x=s[f]/2-o[f]/2;let w;switch(h){case"top":w={x:v,y:s.y-o.height};break;case"bottom":w={x:v,y:s.y+s.height};break;case"right":w={x:s.x+s.width,y};break;case"left":w={x:s.x-o.width,y};break;default:w={x:s.x,y:s.y}}switch(Ua(t)){case"start":w[u]-=x*(r&&m?-1:1);break;case"end":w[u]+=x*(r&&m?-1:1);break}return w}const Oz=async(e,t,r)=>{const{placement:s="bottom",strategy:o="absolute",middleware:c=[],platform:u}=r,f=c.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y}=Bx(m,s,h),x=s,w={},T=0;for(let _=0;_<f.length;_++){const{name:N,fn:k}=f[_],{x:L,y:C,data:B,reset:U}=await k({x:v,y,initialPlacement:s,placement:x,strategy:o,middlewareData:w,rects:m,platform:u,elements:{reference:e,floating:t}});v=L??v,y=C??y,w={...w,[N]:{...w[N],...B}},U&&T<=50&&(T++,typeof U=="object"&&(U.placement&&(x=U.placement),U.rects&&(m=U.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):U.rects),{x:v,y}=Bx(m,x,h)),_=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:w}};async function pl(e,t){var r;t===void 0&&(t={});const{x:s,y:o,platform:c,rects:u,elements:f,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:w=0}=Lr(t,e),T=b2(w),N=f[x?y==="floating"?"reference":"floating":y],k=Vu(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(N)))==null||r?N:N.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(f.floating)),boundary:m,rootBoundary:v,strategy:h})),L=y==="floating"?{x:s,y:o,width:u.floating.width,height:u.floating.height}:u.reference,C=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f.floating)),B=await(c.isElement==null?void 0:c.isElement(C))?await(c.getScale==null?void 0:c.getScale(C))||{x:1,y:1}:{x:1,y:1},U=Vu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:L,offsetParent:C,strategy:h}):L);return{top:(k.top-U.top+T.top)/B.y,bottom:(U.bottom-k.bottom+T.bottom)/B.y,left:(k.left-U.left+T.left)/B.x,right:(U.right-k.right+T.right)/B.x}}const Cz=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:o,rects:c,platform:u,elements:f,middlewareData:h}=t,{element:m,padding:v=0}=Lr(e,t)||{};if(m==null)return{};const y=b2(v),x={x:r,y:s},w=Yp(o),T=Fp(w),_=await u.getDimensions(m),N=w==="y",k=N?"top":"left",L=N?"bottom":"right",C=N?"clientHeight":"clientWidth",B=c.reference[T]+c.reference[w]-x[w]-c.floating[T],U=x[w]-c.reference[w],H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let j=H?H[C]:0;(!j||!await(u.isElement==null?void 0:u.isElement(H)))&&(j=f.floating[C]||c.floating[T]);const D=B/2-U/2,W=j/2-_[T]/2-1,te=_i(y[k],W),F=_i(y[L],W),G=te,oe=j-_[T]-F,ae=j/2-_[T]/2+D,ce=ep(G,ae,oe),A=!h.arrow&&Ua(o)!=null&&ae!==ce&&c.reference[T]/2-(ae<G?te:F)-_[T]/2<0,R=A?ae<G?ae-G:ae-oe:0;return{[w]:x[w]+R,data:{[w]:ce,centerOffset:ae-ce-R,...A&&{alignmentOffset:R}},reset:A}}}),kz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:o,middlewareData:c,rects:u,initialPlacement:f,platform:h,elements:m}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:_=!0,...N}=Lr(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const k=Ur(o),L=rr(f),C=Ur(f)===f,B=await(h.isRTL==null?void 0:h.isRTL(m.floating)),U=x||(C||!_?[Uu(f)]:Sz(f)),H=T!=="none";!x&&H&&U.push(...Az(f,_,T,B));const j=[f,...U],D=await pl(t,N),W=[];let te=((s=c.flip)==null?void 0:s.overflows)||[];if(v&&W.push(D[k]),y){const ae=wz(o,u,B);W.push(D[ae[0]],D[ae[1]])}if(te=[...te,{placement:o,overflows:W}],!W.every(ae=>ae<=0)){var F,G;const ae=(((F=c.flip)==null?void 0:F.index)||0)+1,ce=j[ae];if(ce&&(!(y==="alignment"?L!==rr(ce):!1)||te.every(P=>rr(P.placement)===L?P.overflows[0]>0:!0)))return{data:{index:ae,overflows:te},reset:{placement:ce}};let A=(G=te.filter(R=>R.overflows[0]<=0).sort((R,P)=>R.overflows[1]-P.overflows[1])[0])==null?void 0:G.placement;if(!A)switch(w){case"bestFit":{var oe;const R=(oe=te.filter(P=>{if(H){const re=rr(P.placement);return re===L||re==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(re=>re>0).reduce((re,le)=>re+le,0)]).sort((P,re)=>P[1]-re[1])[0])==null?void 0:oe[0];R&&(A=R);break}case"initialPlacement":A=f;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Hx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qx(e){return yz.some(t=>e[t]>=0)}const zz=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:s="referenceHidden",...o}=Lr(e,t);switch(s){case"referenceHidden":{const c=await pl(t,{...o,elementContext:"reference"}),u=Hx(c,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:qx(u)}}}case"escaped":{const c=await pl(t,{...o,altBoundary:!0}),u=Hx(c,r.floating);return{data:{escapedOffsets:u,escaped:qx(u)}}}default:return{}}}}},x2=new Set(["left","top"]);async function Nz(e,t){const{placement:r,platform:s,elements:o}=e,c=await(s.isRTL==null?void 0:s.isRTL(o.floating)),u=Ur(r),f=Ua(r),h=rr(r)==="y",m=x2.has(u)?-1:1,v=c&&h?-1:1,y=Lr(t,e);let{mainAxis:x,crossAxis:w,alignmentAxis:T}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof T=="number"&&(w=f==="end"?T*-1:T),h?{x:w*v,y:x*m}:{x:x*m,y:w*v}}const Mz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:o,y:c,placement:u,middlewareData:f}=t,h=await Nz(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:o+h.x,y:c+h.y,data:{...h,placement:u}}}}},Rz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:o}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:f={fn:N=>{let{x:k,y:L}=N;return{x:k,y:L}}},...h}=Lr(e,t),m={x:r,y:s},v=await pl(t,h),y=rr(Ur(o)),x=Qp(y);let w=m[x],T=m[y];if(c){const N=x==="y"?"top":"left",k=x==="y"?"bottom":"right",L=w+v[N],C=w-v[k];w=ep(L,w,C)}if(u){const N=y==="y"?"top":"left",k=y==="y"?"bottom":"right",L=T+v[N],C=T-v[k];T=ep(L,T,C)}const _=f.fn({...t,[x]:w,[y]:T});return{..._,data:{x:_.x-r,y:_.y-s,enabled:{[x]:c,[y]:u}}}}}},Dz=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:s,placement:o,rects:c,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:m=!0}=Lr(e,t),v={x:r,y:s},y=rr(o),x=Qp(y);let w=v[x],T=v[y];const _=Lr(f,t),N=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(h){const C=x==="y"?"height":"width",B=c.reference[x]-c.floating[C]+N.mainAxis,U=c.reference[x]+c.reference[C]-N.mainAxis;w<B?w=B:w>U&&(w=U)}if(m){var k,L;const C=x==="y"?"width":"height",B=x2.has(Ur(o)),U=c.reference[y]-c.floating[C]+(B&&((k=u.offset)==null?void 0:k[y])||0)+(B?0:N.crossAxis),H=c.reference[y]+c.reference[C]+(B?0:((L=u.offset)==null?void 0:L[y])||0)-(B?N.crossAxis:0);T<U?T=U:T>H&&(T=H)}return{[x]:w,[y]:T}}}},Pz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,s;const{placement:o,rects:c,platform:u,elements:f}=t,{apply:h=()=>{},...m}=Lr(e,t),v=await pl(t,m),y=Ur(o),x=Ua(o),w=rr(o)==="y",{width:T,height:_}=c.floating;let N,k;y==="top"||y==="bottom"?(N=y,k=x===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(k=y,N=x==="end"?"top":"bottom");const L=_-v.top-v.bottom,C=T-v.left-v.right,B=_i(_-v[N],L),U=_i(T-v[k],C),H=!t.middlewareData.shift;let j=B,D=U;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(D=C),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(j=L),H&&!x){const te=mn(v.left,0),F=mn(v.right,0),G=mn(v.top,0),oe=mn(v.bottom,0);w?D=T-2*(te!==0||F!==0?te+F:mn(v.left,v.right)):j=_-2*(G!==0||oe!==0?G+oe:mn(v.top,v.bottom))}await h({...t,availableWidth:D,availableHeight:j});const W=await u.getDimensions(f.floating);return T!==W.width||_!==W.height?{reset:{rects:!0}}:{}}}};function uf(){return typeof window<"u"}function Va(e){return w2(e)?(e.nodeName||"").toLowerCase():"#document"}function gn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(w2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function w2(e){return uf()?e instanceof Node||e instanceof gn(e).Node:!1}function $n(e){return uf()?e instanceof Element||e instanceof gn(e).Element:!1}function or(e){return uf()?e instanceof HTMLElement||e instanceof gn(e).HTMLElement:!1}function Ix(e){return!uf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gn(e).ShadowRoot}const Lz=new Set(["inline","contents"]);function kl(e){const{overflow:t,overflowX:r,overflowY:s,display:o}=Zn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&!Lz.has(o)}const Uz=new Set(["table","td","th"]);function Vz(e){return Uz.has(Va(e))}const Bz=[":popover-open",":modal"];function ff(e){return Bz.some(t=>{try{return e.matches(t)}catch{return!1}})}const Hz=["transform","translate","scale","rotate","perspective"],qz=["transform","translate","scale","rotate","perspective","filter"],Iz=["paint","layout","strict","content"];function Xp(e){const t=Wp(),r=$n(e)?Zn(e):e;return Hz.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||qz.some(s=>(r.willChange||"").includes(s))||Iz.some(s=>(r.contain||"").includes(s))}function $z(e){let t=Ai(e);for(;or(t)&&!Ra(t);){if(Xp(t))return t;if(ff(t))return null;t=Ai(t)}return null}function Wp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Zz=new Set(["html","body","#document"]);function Ra(e){return Zz.has(Va(e))}function Zn(e){return gn(e).getComputedStyle(e)}function df(e){return $n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ai(e){if(Va(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ix(e)&&e.host||ur(e);return Ix(t)?t.host:t}function S2(e){const t=Ai(e);return Ra(t)?e.ownerDocument?e.ownerDocument.body:e.body:or(t)&&kl(t)?t:S2(t)}function gl(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=S2(e),c=o===((s=e.ownerDocument)==null?void 0:s.body),u=gn(o);if(c){const f=np(u);return t.concat(u,u.visualViewport||[],kl(o)?o:[],f&&r?gl(f):[])}return t.concat(o,gl(o,[],r))}function np(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function E2(e){const t=Zn(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=or(e),c=o?e.offsetWidth:r,u=o?e.offsetHeight:s,f=Lu(r)!==c||Lu(s)!==u;return f&&(r=c,s=u),{width:r,height:s,$:f}}function Jp(e){return $n(e)?e:e.contextElement}function ka(e){const t=Jp(e);if(!or(t))return ir(1);const r=t.getBoundingClientRect(),{width:s,height:o,$:c}=E2(t);let u=(c?Lu(r.width):r.width)/s,f=(c?Lu(r.height):r.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const Gz=ir(0);function T2(e){const t=gn(e);return!Wp()||!t.visualViewport?Gz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kz(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==gn(e)?!1:t}function hs(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),c=Jp(e);let u=ir(1);t&&(s?$n(s)&&(u=ka(s)):u=ka(e));const f=Kz(c,r,s)?T2(c):ir(0);let h=(o.left+f.x)/u.x,m=(o.top+f.y)/u.y,v=o.width/u.x,y=o.height/u.y;if(c){const x=gn(c),w=s&&$n(s)?gn(s):s;let T=x,_=np(T);for(;_&&s&&w!==T;){const N=ka(_),k=_.getBoundingClientRect(),L=Zn(_),C=k.left+(_.clientLeft+parseFloat(L.paddingLeft))*N.x,B=k.top+(_.clientTop+parseFloat(L.paddingTop))*N.y;h*=N.x,m*=N.y,v*=N.x,y*=N.y,h+=C,m+=B,T=gn(_),_=np(T)}}return Vu({width:v,height:y,x:h,y:m})}function hf(e,t){const r=df(e).scrollLeft;return t?t.left+r:hs(ur(e)).left+r}function _2(e,t){const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-hf(e,r),o=r.top+t.scrollTop;return{x:s,y:o}}function Qz(e){let{elements:t,rect:r,offsetParent:s,strategy:o}=e;const c=o==="fixed",u=ur(s),f=t?ff(t.floating):!1;if(s===u||f&&c)return r;let h={scrollLeft:0,scrollTop:0},m=ir(1);const v=ir(0),y=or(s);if((y||!y&&!c)&&((Va(s)!=="body"||kl(u))&&(h=df(s)),or(s))){const w=hs(s);m=ka(s),v.x=w.x+s.clientLeft,v.y=w.y+s.clientTop}const x=u&&!y&&!c?_2(u,h):ir(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-h.scrollLeft*m.x+v.x+x.x,y:r.y*m.y-h.scrollTop*m.y+v.y+x.y}}function Fz(e){return Array.from(e.getClientRects())}function Yz(e){const t=ur(e),r=df(e),s=e.ownerDocument.body,o=mn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),c=mn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let u=-r.scrollLeft+hf(e);const f=-r.scrollTop;return Zn(s).direction==="rtl"&&(u+=mn(t.clientWidth,s.clientWidth)-o),{width:o,height:c,x:u,y:f}}const $x=25;function Xz(e,t){const r=gn(e),s=ur(e),o=r.visualViewport;let c=s.clientWidth,u=s.clientHeight,f=0,h=0;if(o){c=o.width,u=o.height;const v=Wp();(!v||v&&t==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const m=hf(s);if(m<=0){const v=s.ownerDocument,y=v.body,x=getComputedStyle(y),w=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,T=Math.abs(s.clientWidth-y.clientWidth-w);T<=$x&&(c-=T)}else m<=$x&&(c+=m);return{width:c,height:u,x:f,y:h}}const Wz=new Set(["absolute","fixed"]);function Jz(e,t){const r=hs(e,!0,t==="fixed"),s=r.top+e.clientTop,o=r.left+e.clientLeft,c=or(e)?ka(e):ir(1),u=e.clientWidth*c.x,f=e.clientHeight*c.y,h=o*c.x,m=s*c.y;return{width:u,height:f,x:h,y:m}}function Zx(e,t,r){let s;if(t==="viewport")s=Xz(e,r);else if(t==="document")s=Yz(ur(e));else if($n(t))s=Jz(t,r);else{const o=T2(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vu(s)}function A2(e,t){const r=Ai(e);return r===t||!$n(r)||Ra(r)?!1:Zn(r).position==="fixed"||A2(r,t)}function eN(e,t){const r=t.get(e);if(r)return r;let s=gl(e,[],!1).filter(f=>$n(f)&&Va(f)!=="body"),o=null;const c=Zn(e).position==="fixed";let u=c?Ai(e):e;for(;$n(u)&&!Ra(u);){const f=Zn(u),h=Xp(u);!h&&f.position==="fixed"&&(o=null),(c?!h&&!o:!h&&f.position==="static"&&!!o&&Wz.has(o.position)||kl(u)&&!h&&A2(e,u))?s=s.filter(v=>v!==u):o=f,u=Ai(u)}return t.set(e,s),s}function tN(e){let{element:t,boundary:r,rootBoundary:s,strategy:o}=e;const u=[...r==="clippingAncestors"?ff(t)?[]:eN(t,this._c):[].concat(r),s],f=u[0],h=u.reduce((m,v)=>{const y=Zx(t,v,o);return m.top=mn(y.top,m.top),m.right=_i(y.right,m.right),m.bottom=_i(y.bottom,m.bottom),m.left=mn(y.left,m.left),m},Zx(t,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function nN(e){const{width:t,height:r}=E2(e);return{width:t,height:r}}function rN(e,t,r){const s=or(t),o=ur(t),c=r==="fixed",u=hs(e,!0,c,t);let f={scrollLeft:0,scrollTop:0};const h=ir(0);function m(){h.x=hf(o)}if(s||!s&&!c)if((Va(t)!=="body"||kl(o))&&(f=df(t)),s){const w=hs(t,!0,c,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}else o&&m();c&&!s&&o&&m();const v=o&&!s&&!c?_2(o,f):ir(0),y=u.left+f.scrollLeft-h.x-v.x,x=u.top+f.scrollTop-h.y-v.y;return{x:y,y:x,width:u.width,height:u.height}}function am(e){return Zn(e).position==="static"}function Gx(e,t){if(!or(e)||Zn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ur(e)===r&&(r=r.ownerDocument.body),r}function j2(e,t){const r=gn(e);if(ff(e))return r;if(!or(e)){let o=Ai(e);for(;o&&!Ra(o);){if($n(o)&&!am(o))return o;o=Ai(o)}return r}let s=Gx(e,t);for(;s&&Vz(s)&&am(s);)s=Gx(s,t);return s&&Ra(s)&&am(s)&&!Xp(s)?r:s||$z(e)||r}const iN=async function(e){const t=this.getOffsetParent||j2,r=this.getDimensions,s=await r(e.floating);return{reference:rN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function sN(e){return Zn(e).direction==="rtl"}const aN={convertOffsetParentRelativeRectToViewportRelativeRect:Qz,getDocumentElement:ur,getClippingRect:tN,getOffsetParent:j2,getElementRects:iN,getClientRects:Fz,getDimensions:nN,getScale:ka,isElement:$n,isRTL:sN};function O2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oN(e,t){let r=null,s;const o=ur(e);function c(){var f;clearTimeout(s),(f=r)==null||f.disconnect(),r=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),c();const m=e.getBoundingClientRect(),{left:v,top:y,width:x,height:w}=m;if(f||t(),!x||!w)return;const T=su(y),_=su(o.clientWidth-(v+x)),N=su(o.clientHeight-(y+w)),k=su(v),C={rootMargin:-T+"px "+-_+"px "+-N+"px "+-k+"px",threshold:mn(0,_i(1,h))||1};let B=!0;function U(H){const j=H[0].intersectionRatio;if(j!==h){if(!B)return u();j?u(!1,j):s=setTimeout(()=>{u(!1,1e-7)},1e3)}j===1&&!O2(m,e.getBoundingClientRect())&&u(),B=!1}try{r=new IntersectionObserver(U,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(U,C)}r.observe(e)}return u(!0),c}function lN(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,m=Jp(e),v=o||c?[...m?gl(m):[],...gl(t)]:[];v.forEach(k=>{o&&k.addEventListener("scroll",r,{passive:!0}),c&&k.addEventListener("resize",r)});const y=m&&f?oN(m,r):null;let x=-1,w=null;u&&(w=new ResizeObserver(k=>{let[L]=k;L&&L.target===m&&w&&(w.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var C;(C=w)==null||C.observe(t)})),r()}),m&&!h&&w.observe(m),w.observe(t));let T,_=h?hs(e):null;h&&N();function N(){const k=hs(e);_&&!O2(_,k)&&r(),_=k,T=requestAnimationFrame(N)}return r(),()=>{var k;v.forEach(L=>{o&&L.removeEventListener("scroll",r),c&&L.removeEventListener("resize",r)}),y?.(),(k=w)==null||k.disconnect(),w=null,h&&cancelAnimationFrame(T)}}const cN=Mz,uN=Rz,fN=kz,dN=Pz,hN=zz,Kx=Cz,mN=Dz,pN=(e,t,r)=>{const s=new Map,o={platform:aN,...r},c={...o.platform,_c:s};return Oz(e,t,{...o,platform:c})};var gN=typeof document<"u",yN=function(){},Eu=gN?S.useLayoutEffect:yN;function Bu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,s,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(s=r;s--!==0;)if(!Bu(e[s],t[s]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(t,o[s]))return!1;for(s=r;s--!==0;){const c=o[s];if(!(c==="_owner"&&e.$$typeof)&&!Bu(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function C2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qx(e,t){const r=C2(e);return Math.round(t*r)/r}function om(e){const t=S.useRef(e);return Eu(()=>{t.current=e}),t}function vN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:s=[],platform:o,elements:{reference:c,floating:u}={},transform:f=!0,whileElementsMounted:h,open:m}=e,[v,y]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=S.useState(s);Bu(x,s)||w(s);const[T,_]=S.useState(null),[N,k]=S.useState(null),L=S.useCallback(P=>{P!==H.current&&(H.current=P,_(P))},[]),C=S.useCallback(P=>{P!==j.current&&(j.current=P,k(P))},[]),B=c||T,U=u||N,H=S.useRef(null),j=S.useRef(null),D=S.useRef(v),W=h!=null,te=om(h),F=om(o),G=om(m),oe=S.useCallback(()=>{if(!H.current||!j.current)return;const P={placement:t,strategy:r,middleware:x};F.current&&(P.platform=F.current),pN(H.current,j.current,P).then(re=>{const le={...re,isPositioned:G.current!==!1};ae.current&&!Bu(D.current,le)&&(D.current=le,Kp.flushSync(()=>{y(le)}))})},[x,t,r,F,G]);Eu(()=>{m===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,y(P=>({...P,isPositioned:!1})))},[m]);const ae=S.useRef(!1);Eu(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Eu(()=>{if(B&&(H.current=B),U&&(j.current=U),B&&U){if(te.current)return te.current(B,U,oe);oe()}},[B,U,oe,te,W]);const ce=S.useMemo(()=>({reference:H,floating:j,setReference:L,setFloating:C}),[L,C]),A=S.useMemo(()=>({reference:B,floating:U}),[B,U]),R=S.useMemo(()=>{const P={position:r,left:0,top:0};if(!A.floating)return P;const re=Qx(A.floating,v.x),le=Qx(A.floating,v.y);return f?{...P,transform:"translate("+re+"px, "+le+"px)",...C2(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:le}},[r,f,A.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:oe,refs:ce,elements:A,floatingStyles:R}),[v,oe,ce,A,R])}const bN=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:o}=typeof e=="function"?e(r):e;return s&&t(s)?s.current!=null?Kx({element:s.current,padding:o}).fn(r):{}:s?Kx({element:s,padding:o}).fn(r):{}}}},xN=(e,t)=>({...cN(e),options:[e,t]}),wN=(e,t)=>({...uN(e),options:[e,t]}),SN=(e,t)=>({...mN(e),options:[e,t]}),EN=(e,t)=>({...fN(e),options:[e,t]}),TN=(e,t)=>({...dN(e),options:[e,t]}),_N=(e,t)=>({...hN(e),options:[e,t]}),AN=(e,t)=>({...bN(e),options:[e,t]});var jN="Arrow",k2=S.forwardRef((e,t)=>{const{children:r,width:s=10,height:o=5,...c}=e;return g.jsx(ws.svg,{...c,ref:t,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});k2.displayName=jN;var ON=k2;function CN(e){const[t,r]=S.useState(void 0);return ml(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let u,f;if("borderBoxSize"in c){const h=c.borderBoxSize,m=Array.isArray(h)?h[0]:h;u=m.inlineSize,f=m.blockSize}else u=e.offsetWidth,f=e.offsetHeight;r({width:u,height:f})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else r(void 0)},[e]),t}var z2="Popper",[N2,M2]=m2(z2),[K7,R2]=N2(z2),D2="PopperAnchor",P2=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:s,...o}=e,c=R2(D2,r),u=S.useRef(null),f=xs(t,u),h=S.useRef(null);return S.useEffect(()=>{const m=h.current;h.current=s?.current||u.current,m!==h.current&&c.onAnchorChange(h.current)}),s?null:g.jsx(ws.div,{...o,ref:f})});P2.displayName=D2;var eg="PopperContent",[kN,zN]=N2(eg),L2=S.forwardRef((e,t)=>{const{__scopePopper:r,side:s="bottom",sideOffset:o=0,align:c="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:w="optimized",onPlaced:T,..._}=e,N=R2(eg,r),[k,L]=S.useState(null),C=xs(t,fe=>L(fe)),[B,U]=S.useState(null),H=CN(B),j=H?.width??0,D=H?.height??0,W=s+(c!=="center"?"-"+c:""),te=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},F=Array.isArray(m)?m:[m],G=F.length>0,oe={padding:te,boundary:F.filter(MN),altBoundary:G},{refs:ae,floatingStyles:ce,placement:A,isPositioned:R,middlewareData:P}=vN({strategy:"fixed",placement:W,whileElementsMounted:(...fe)=>lN(...fe,{animationFrame:w==="always"}),elements:{reference:N.anchor},middleware:[xN({mainAxis:o+D,alignmentAxis:u}),h&&wN({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?SN():void 0,...oe}),h&&EN({...oe}),TN({...oe,apply:({elements:fe,rects:xe,availableWidth:De,availableHeight:_t})=>{const{width:Lt,height:At}=xe.reference,dr=fe.floating.style;dr.setProperty("--radix-popper-available-width",`${De}px`),dr.setProperty("--radix-popper-available-height",`${_t}px`),dr.setProperty("--radix-popper-anchor-width",`${Lt}px`),dr.setProperty("--radix-popper-anchor-height",`${At}px`)}}),B&&AN({element:B,padding:f}),RN({arrowWidth:j,arrowHeight:D}),x&&_N({strategy:"referenceHidden",...oe})]}),[re,le]=B2(A),O=cf(T);ml(()=>{R&&O?.()},[R,O]);const Q=P.arrow?.x,$=P.arrow?.y,Y=P.arrow?.centerOffset!==0,[ie,pe]=S.useState();return ml(()=>{k&&pe(window.getComputedStyle(k).zIndex)},[k]),g.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:R?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(kN,{scope:r,placedSide:re,onArrowChange:U,arrowX:Q,arrowY:$,shouldHideArrow:Y,children:g.jsx(ws.div,{"data-side":re,"data-align":le,..._,ref:C,style:{..._.style,animation:R?void 0:"none"}})})})});L2.displayName=eg;var U2="PopperArrow",NN={top:"bottom",right:"left",bottom:"top",left:"right"},V2=S.forwardRef(function(t,r){const{__scopePopper:s,...o}=t,c=zN(U2,s),u=NN[c.placedSide];return g.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:g.jsx(ON,{...o,ref:r,style:{...o.style,display:"block"}})})});V2.displayName=U2;function MN(e){return e!==null}var RN=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:s,middlewareData:o}=t,u=o.arrow?.centerOffset!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[m,v]=B2(r),y={start:"0%",center:"50%",end:"100%"}[v],x=(o.arrow?.x??0)+f/2,w=(o.arrow?.y??0)+h/2;let T="",_="";return m==="bottom"?(T=u?y:`${x}px`,_=`${-h}px`):m==="top"?(T=u?y:`${x}px`,_=`${s.floating.height+h}px`):m==="right"?(T=`${-h}px`,_=u?y:`${w}px`):m==="left"&&(T=`${s.floating.width+h}px`,_=u?y:`${w}px`),{data:{x:T,y:_}}}});function B2(e){const[t,r="center"]=e.split("-");return[t,r]}var DN=P2,PN=L2,LN=V2;function UN(e,t){return S.useReducer((r,s)=>t[r][s]??r,e)}var H2=e=>{const{present:t,children:r}=e,s=VN(t),o=typeof r=="function"?r({present:s.isPresent}):S.Children.only(r),c=xs(s.ref,BN(o));return typeof r=="function"||s.isPresent?S.cloneElement(o,{ref:c}):null};H2.displayName="Presence";function VN(e){const[t,r]=S.useState(),s=S.useRef(null),o=S.useRef(e),c=S.useRef("none"),u=e?"mounted":"unmounted",[f,h]=UN(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=au(s.current);c.current=f==="mounted"?m:"none"},[f]),ml(()=>{const m=s.current,v=o.current;if(v!==e){const x=c.current,w=au(m);e?h("MOUNT"):w==="none"||m?.display==="none"?h("UNMOUNT"):h(v&&x!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),ml(()=>{if(t){let m;const v=t.ownerDocument.defaultView??window,y=w=>{const _=au(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&_&&(h("ANIMATION_END"),!o.current)){const N=t.style.animationFillMode;t.style.animationFillMode="forwards",m=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},x=w=>{w.target===t&&(c.current=au(s.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{v.clearTimeout(m),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(m=>{s.current=m?getComputedStyle(m):null,r(m)},[])}}function au(e){return e?.animationName||"none"}function BN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var HN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qN="VisuallyHidden",q2=S.forwardRef((e,t)=>g.jsx(ws.span,{...e,ref:t,style:{...HN,...e.style}}));q2.displayName=qN;var IN=q2,[mf]=m2("Tooltip",[M2]),tg=M2(),I2="TooltipProvider",$N=700,Fx="tooltip.open",[ZN,$2]=mf(I2),Z2=e=>{const{__scopeTooltip:t,delayDuration:r=$N,skipDelayDuration:s=300,disableHoverableContent:o=!1,children:c}=e,u=S.useRef(!0),f=S.useRef(!1),h=S.useRef(0);return S.useEffect(()=>{const m=h.current;return()=>window.clearTimeout(m)},[]),g.jsx(ZN,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,s)},[s]),isPointerInTransitRef:f,onPointerInTransitChange:S.useCallback(m=>{f.current=m},[]),disableHoverableContent:o,children:c})};Z2.displayName=I2;var G2="Tooltip",[Q7,pf]=mf(G2),rp="TooltipTrigger",GN=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,o=pf(rp,r),c=$2(rp,r),u=tg(r),f=S.useRef(null),h=xs(t,f,o.onTriggerChange),m=S.useRef(!1),v=S.useRef(!1),y=S.useCallback(()=>m.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(DN,{asChild:!0,...u,children:g.jsx(ws.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...s,ref:h,onPointerMove:Mr(e.onPointerMove,x=>{x.pointerType!=="touch"&&!v.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:Mr(e.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:Mr(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Mr(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:Mr(e.onBlur,o.onClose),onClick:Mr(e.onClick,o.onClose)})})});GN.displayName=rp;var KN="TooltipPortal",[F7,QN]=mf(KN,{forceMount:void 0}),Da="TooltipContent",FN=S.forwardRef((e,t)=>{const r=QN(Da,e.__scopeTooltip),{forceMount:s=r.forceMount,side:o="top",...c}=e,u=pf(Da,e.__scopeTooltip);return g.jsx(H2,{present:s||u.open,children:u.disableHoverableContent?g.jsx(K2,{side:o,...c,ref:t}):g.jsx(YN,{side:o,...c,ref:t})})}),YN=S.forwardRef((e,t)=>{const r=pf(Da,e.__scopeTooltip),s=$2(Da,e.__scopeTooltip),o=S.useRef(null),c=xs(t,o),[u,f]=S.useState(null),{trigger:h,onClose:m}=r,v=o.current,{onPointerInTransitChange:y}=s,x=S.useCallback(()=>{f(null),y(!1)},[y]),w=S.useCallback((T,_)=>{const N=T.currentTarget,k={x:T.clientX,y:T.clientY},L=tM(k,N.getBoundingClientRect()),C=nM(k,L),B=rM(_.getBoundingClientRect()),U=sM([...C,...B]);f(U),y(!0)},[y]);return S.useEffect(()=>()=>x(),[x]),S.useEffect(()=>{if(h&&v){const T=N=>w(N,v),_=N=>w(N,h);return h.addEventListener("pointerleave",T),v.addEventListener("pointerleave",_),()=>{h.removeEventListener("pointerleave",T),v.removeEventListener("pointerleave",_)}}},[h,v,w,x]),S.useEffect(()=>{if(u){const T=_=>{const N=_.target,k={x:_.clientX,y:_.clientY},L=h?.contains(N)||v?.contains(N),C=!iM(k,u);L?x():C&&(x(),m())};return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[h,v,u,m,x]),g.jsx(K2,{...e,ref:c})}),[XN,WN]=mf(G2,{isInside:!1}),JN=rz("TooltipContent"),K2=S.forwardRef((e,t)=>{const{__scopeTooltip:r,children:s,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:u,...f}=e,h=pf(Da,r),m=tg(r),{onClose:v}=h;return S.useEffect(()=>(document.addEventListener(Fx,v),()=>document.removeEventListener(Fx,v)),[v]),S.useEffect(()=>{if(h.trigger){const y=x=>{x.target?.contains(h.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,v]),g.jsx(y2,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:g.jsxs(PN,{"data-state":h.stateAttribute,...m,...f,ref:t,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(JN,{children:s}),g.jsx(XN,{scope:r,isInside:!0,children:g.jsx(IN,{id:h.contentId,role:"tooltip",children:o||s})})]})})});FN.displayName=Da;var Q2="TooltipArrow",eM=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,o=tg(r);return WN(Q2,r).isInside?null:g.jsx(LN,{...o,...s,ref:t})});eM.displayName=Q2;function tM(e,t){const r=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),c=Math.abs(t.left-e.x);switch(Math.min(r,s,o,c)){case c:return"left";case o:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function nM(e,t,r=5){const s=[];switch(t){case"top":s.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":s.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":s.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":s.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return s}function rM(e){const{top:t,right:r,bottom:s,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:s},{x:o,y:s}]}function iM(e,t){const{x:r,y:s}=e;let o=!1;for(let c=0,u=t.length-1;c<t.length;u=c++){const f=t[c],h=t[u],m=f.x,v=f.y,y=h.x,x=h.y;v>s!=x>s&&r<(y-m)*(s-v)/(x-v)+m&&(o=!o)}return o}function sM(e){const t=e.slice();return t.sort((r,s)=>r.x<s.x?-1:r.x>s.x?1:r.y<s.y?-1:r.y>s.y?1:0),aM(t)}function aM(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const o=e[s];for(;t.length>=2;){const c=t[t.length-1],u=t[t.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let s=e.length-1;s>=0;s--){const o=e[s];for(;r.length>=2;){const c=r[r.length-1],u=r[r.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var oM=Z2;function F2(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=F2(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function lM(){for(var e,t,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=F2(e))&&(s&&(s+=" "),s+=t);return s}const ng="-",cM=e=>{const t=fM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{const f=u.split(ng);return f[0]===""&&f.length!==1&&f.shift(),Y2(f,t)||uM(u)},getConflictingClassGroupIds:(u,f)=>{const h=r[u]||[];return f&&s[u]?[...h,...s[u]]:h}}},Y2=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),o=s?Y2(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const c=e.join(ng);return t.validators.find(({validator:u})=>u(c))?.classGroupId},Yx=/^\[(.+)\]$/,uM=e=>{if(Yx.test(e)){const t=Yx.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},fM=e=>{const{theme:t,classGroups:r}=e,s={nextPart:new Map,validators:[]};for(const o in r)ip(r[o],s,o,t);return s},ip=(e,t,r,s)=>{e.forEach(o=>{if(typeof o=="string"){const c=o===""?t:Xx(t,o);c.classGroupId=r;return}if(typeof o=="function"){if(dM(o)){ip(o(s),t,r,s);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([c,u])=>{ip(u,Xx(t,c),r,s)})})},Xx=(e,t)=>{let r=e;return t.split(ng).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},dM=e=>e.isThemeGetter,hM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const o=(c,u)=>{r.set(c,u),t++,t>e&&(t=0,s=r,r=new Map)};return{get(c){let u=r.get(c);if(u!==void 0)return u;if((u=s.get(c))!==void 0)return o(c,u),u},set(c,u){r.has(c)?r.set(c,u):o(c,u)}}},sp="!",ap=":",mM=ap.length,pM=e=>{const{prefix:t,experimentalParseClassName:r}=e;let s=o=>{const c=[];let u=0,f=0,h=0,m;for(let T=0;T<o.length;T++){let _=o[T];if(u===0&&f===0){if(_===ap){c.push(o.slice(h,T)),h=T+mM;continue}if(_==="/"){m=T;continue}}_==="["?u++:_==="]"?u--:_==="("?f++:_===")"&&f--}const v=c.length===0?o:o.substring(h),y=gM(v),x=y!==v,w=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:w}};if(t){const o=t+ap,c=s;s=u=>u.startsWith(o)?c(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(r){const o=s;s=c=>r({className:c,parseClassName:o})}return s},gM=e=>e.endsWith(sp)?e.substring(0,e.length-1):e.startsWith(sp)?e.substring(1):e,yM=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let c=[];return s.forEach(u=>{u[0]==="["||t[u]?(o.push(...c.sort(),u),c=[]):c.push(u)}),o.push(...c.sort()),o}},vM=e=>({cache:hM(e.cacheSize),parseClassName:pM(e),sortModifiers:yM(e),...cM(e)}),bM=/\s+/,xM=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],f=e.trim().split(bM);let h="";for(let m=f.length-1;m>=0;m-=1){const v=f[m],{isExternal:y,modifiers:x,hasImportantModifier:w,baseClassName:T,maybePostfixModifierPosition:_}=r(v);if(y){h=v+(h.length>0?" "+h:h);continue}let N=!!_,k=s(N?T.substring(0,_):T);if(!k){if(!N){h=v+(h.length>0?" "+h:h);continue}if(k=s(T),!k){h=v+(h.length>0?" "+h:h);continue}N=!1}const L=c(x).join(":"),C=w?L+sp:L,B=C+k;if(u.includes(B))continue;u.push(B);const U=o(k,N);for(let H=0;H<U.length;++H){const j=U[H];u.push(C+j)}h=v+(h.length>0?" "+h:h)}return h};function wM(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=X2(t))&&(s&&(s+=" "),s+=r);return s}const X2=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=X2(e[s]))&&(r&&(r+=" "),r+=t);return r};function SM(e,...t){let r,s,o,c=u;function u(h){const m=t.reduce((v,y)=>y(v),e());return r=vM(m),s=r.cache.get,o=r.cache.set,c=f,f(h)}function f(h){const m=s(h);if(m)return m;const v=xM(h,r);return o(h,v),v}return function(){return c(wM.apply(null,arguments))}}const vt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},W2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,EM=/^\d+\/\d+$/,TM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_M=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,AM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=e=>EM.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),pi=e=>!!e&&Number.isInteger(Number(e)),lm=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Nr=e=>TM.test(e),CM=()=>!0,kM=e=>_M.test(e)&&!AM.test(e),eE=()=>!1,zM=e=>jM.test(e),NM=e=>OM.test(e),MM=e=>!he(e)&&!me(e),RM=e=>Ba(e,rE,eE),he=e=>W2.test(e),ts=e=>Ba(e,iE,kM),cm=e=>Ba(e,VM,ke),Wx=e=>Ba(e,tE,eE),DM=e=>Ba(e,nE,NM),ou=e=>Ba(e,sE,zM),me=e=>J2.test(e),Yo=e=>Ha(e,iE),PM=e=>Ha(e,BM),Jx=e=>Ha(e,tE),LM=e=>Ha(e,rE),UM=e=>Ha(e,nE),lu=e=>Ha(e,sE,!0),Ba=(e,t,r)=>{const s=W2.exec(e);return s?s[1]?t(s[1]):r(s[2]):!1},Ha=(e,t,r=!1)=>{const s=J2.exec(e);return s?s[1]?t(s[1]):r:!1},tE=e=>e==="position"||e==="percentage",nE=e=>e==="image"||e==="url",rE=e=>e==="length"||e==="size"||e==="bg-size",iE=e=>e==="length",VM=e=>e==="number",BM=e=>e==="family-name",sE=e=>e==="shadow",HM=()=>{const e=vt("color"),t=vt("font"),r=vt("text"),s=vt("font-weight"),o=vt("tracking"),c=vt("leading"),u=vt("breakpoint"),f=vt("container"),h=vt("spacing"),m=vt("radius"),v=vt("shadow"),y=vt("inset-shadow"),x=vt("text-shadow"),w=vt("drop-shadow"),T=vt("blur"),_=vt("perspective"),N=vt("aspect"),k=vt("ease"),L=vt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...B(),me,he],H=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],D=()=>[me,he,h],W=()=>[pa,"full","auto",...D()],te=()=>[pi,"none","subgrid",me,he],F=()=>["auto",{span:["full",pi,me,he]},pi,me,he],G=()=>[pi,"auto",me,he],oe=()=>["auto","min","max","fr",me,he],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...D()],R=()=>[pa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],P=()=>[e,me,he],re=()=>[...B(),Jx,Wx,{position:[me,he]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",LM,RM,{size:[me,he]}],Q=()=>[lm,Yo,ts],$=()=>["","none","full",m,me,he],Y=()=>["",ke,Yo,ts],ie=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[ke,lm,Jx,Wx],xe=()=>["","none",T,me,he],De=()=>["none",ke,me,he],_t=()=>["none",ke,me,he],Lt=()=>[ke,me,he],At=()=>[pa,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nr],breakpoint:[Nr],color:[CM],container:[Nr],"drop-shadow":[Nr],ease:["in","out","in-out"],font:[MM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nr],shadow:[Nr],spacing:["px",ke],text:[Nr],"text-shadow":[Nr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pa,he,me,N]}],container:["container"],columns:[{columns:[ke,he,me,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[pi,"auto",me,he]}],basis:[{basis:[pa,"full","auto",f,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,pa,"auto","initial","none",he]}],grow:[{grow:["",ke,me,he]}],shrink:[{shrink:["",ke,me,he]}],order:[{order:[pi,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],w:[{w:[f,"screen",...R()]}],"min-w":[{"min-w":[f,"screen","none",...R()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",r,Yo,ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,me,cm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lm,he]}],"font-family":[{font:[PM,he,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,he]}],"line-clamp":[{"line-clamp":[ke,"none",me,cm]}],leading:[{leading:[c,...D()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",me,ts]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[ke,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pi,me,he],radial:["",me,he],conic:[pi,me,he]},UM,DM]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,me,he]}],"outline-w":[{outline:["",ke,Yo,ts]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",v,lu,ou]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",y,lu,ou]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[ke,ts]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",x,lu,ou]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[ke,me,he]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:xe()}],brightness:[{brightness:[ke,me,he]}],contrast:[{contrast:[ke,me,he]}],"drop-shadow":[{"drop-shadow":["","none",w,lu,ou]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",ke,me,he]}],"hue-rotate":[{"hue-rotate":[ke,me,he]}],invert:[{invert:["",ke,me,he]}],saturate:[{saturate:[ke,me,he]}],sepia:[{sepia:["",ke,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[ke,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[ke,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,me,he]}],"backdrop-invert":[{"backdrop-invert":["",ke,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[ke,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[ke,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",me,he]}],ease:[{ease:["linear","initial",k,me,he]}],delay:[{delay:[ke,me,he]}],animate:[{animate:["none",L,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,me,he]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:_t()}],"scale-x":[{"scale-x":_t()}],"scale-y":[{"scale-y":_t()}],"scale-z":[{"scale-z":_t()}],"scale-3d":["scale-3d"],skew:[{skew:Lt()}],"skew-x":[{"skew-x":Lt()}],"skew-y":[{"skew-y":Lt()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:At()}],"translate-x":[{"translate-x":At()}],"translate-y":[{"translate-y":At()}],"translate-z":[{"translate-z":At()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[ke,Yo,ts,cm]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qM=SM(HM);function IM(...e){return qM(lM(e))}function $M({delayDuration:e=0,...t}){return g.jsx(oM,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function ZM(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,s,o,c,u=[],f="",h=e.split("/");for(h[0]||h.shift();o=h.shift();)r=o[0],r==="*"?(u.push(r),f+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(s=o.indexOf("?",1),c=o.indexOf(".",1),u.push(o.substring(1,~s?s:~c?c:o.length)),f+=~s&&!~c?"(?:/([^/]+?))?":"/([^/]+?)",~c&&(f+=(~s?"?":"")+"\\"+o.substring(c))):f+="/"+o;return{keys:u,pattern:new RegExp("^"+f+(t?"(?=$|/)":"/?$"),"i")}}var um={exports:{}},fm={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e1;function GM(){if(e1)return fm;e1=1;var e=tf();function t(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var r=typeof Object.is=="function"?Object.is:t,s=e.useState,o=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function f(y,x){var w=x(),T=s({inst:{value:w,getSnapshot:x}}),_=T[0].inst,N=T[1];return c(function(){_.value=w,_.getSnapshot=x,h(_)&&N({inst:_})},[y,w,x]),o(function(){return h(_)&&N({inst:_}),y(function(){h(_)&&N({inst:_})})},[y]),u(w),w}function h(y){var x=y.getSnapshot;y=y.value;try{var w=x();return!r(y,w)}catch{return!0}}function m(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return fm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,fm}var t1;function KM(){return t1||(t1=1,um.exports=GM()),um.exports}var QM=KM();const FM=hS.useInsertionEffect,YM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",XM=YM?S.useLayoutEffect:S.useEffect,WM=FM||XM,aE=e=>{const t=S.useRef([e,(...r)=>t[0](...r)]).current;return WM(()=>{t[0]=e}),t[1]},JM="popstate",rg="pushState",ig="replaceState",eR="hashchange",n1=[JM,rg,ig,eR],tR=e=>{for(const t of n1)addEventListener(t,e);return()=>{for(const t of n1)removeEventListener(t,e)}},oE=(e,t)=>QM.useSyncExternalStore(tR,e,t),nR=()=>location.search,rR=({ssrSearch:e=""}={})=>oE(nR,()=>e),r1=()=>location.pathname,iR=({ssrPath:e}={})=>oE(r1,e?()=>e:r1),sR=(e,{replace:t=!1,state:r=null}={})=>history[t?ig:rg](r,"",e),aR=(e={})=>[iR(e),sR],i1=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[i1]>"u"){for(const e of[rg,ig]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),s=new Event(e);return s.arguments=arguments,dispatchEvent(s),r}}Object.defineProperty(window,i1,{value:!0})}const oR=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",lE=(e="")=>e==="/"?"":e,lR=(e,t)=>e[0]==="~"?e.slice(1):lE(t)+e,cR=(e="",t)=>oR(op(lE(e)),op(t)),uR=e=>e[0]==="?"?e.slice(1):e,op=e=>{try{return decodeURI(e)}catch{return e}},fR=e=>op(uR(e)),cE={hook:aR,searchHook:rR,parser:ZM,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},uE=S.createContext(cE),qa=()=>S.useContext(uE),fE={},dE=S.createContext(fE),dR=()=>S.useContext(dE),gf=e=>{const[t,r]=e.hook(e);return[cR(e.base,t),aE((s,o)=>r(lR(s,e.base),o))]},Ia=()=>gf(qa()),Y7=()=>{const e=qa();return fR(e.searchHook(e))},hE=(e,t,r,s)=>{const{pattern:o,keys:c}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",s),u=o.exec(r)||[],[f,...h]=u;return f!==void 0?[!0,(()=>{const m=c!==!1?Object.fromEntries(c.map((y,x)=>[y,h[x]])):u.groups;let v={...h};return m&&Object.assign(v,m),v})(),...s?[f]:[]]:[!1,null]},hR=({children:e,...t})=>{const r=qa(),s=t.hook?cE:r;let o=s;const[c,u]=t.ssrPath?.split("?")??[];u&&(t.ssrSearch=u,t.ssrPath=c),t.hrefs=t.hrefs??t.hook?.hrefs;let f=S.useRef({}),h=f.current,m=h;for(let v in s){const y=v==="base"?s[v]+(t[v]||""):t[v]||s[v];h===m&&y!==m[v]&&(f.current=m={...m}),m[v]=y,(y!==s[v]||y!==o[v])&&(o=m)}return S.createElement(uE.Provider,{value:o,children:e})},s1=({children:e,component:t},r)=>t?S.createElement(t,{params:r}):typeof e=="function"?e(r):e,mR=e=>{let t=S.useRef(fE);const r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([s,o])=>o!==r[s])?e:r},Ee=({path:e,nest:t,match:r,...s})=>{const o=qa(),[c]=gf(o),[u,f,h]=r??hE(o.parser,e,c,t),m=mR({...dR(),...f});if(!u)return null;const v=h?S.createElement(hR,{base:h},s1(s,m)):s1(s,m);return S.createElement(dE.Provider,{value:m,children:v})},gi=S.forwardRef((e,t)=>{const r=qa(),[s,o]=gf(r),{to:c="",href:u=c,onClick:f,asChild:h,children:m,className:v,replace:y,state:x,...w}=e,T=aE(N=>{N.ctrlKey||N.metaKey||N.altKey||N.shiftKey||N.button!==0||(f?.(N),N.defaultPrevented||(N.preventDefault(),o(u,e)))}),_=r.hrefs(u[0]==="~"?u.slice(1):r.base+u,r);return h&&S.isValidElement(m)?S.cloneElement(m,{onClick:T,href:_}):S.createElement("a",{...w,onClick:T,href:_,className:v?.call?v(s===u):v,children:m,ref:t})}),lp=e=>Array.isArray(e)?e.flatMap(t=>lp(t&&t.type===S.Fragment?t.props.children:t)):[e],pR=({children:e,location:t})=>{const r=qa(),[s]=gf(r);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),lp(e).forEach(c=>{if(S.isValidElement(c)&&c.props.path){const u=c.props.path;window.__WOUTER_ROUTES__.includes(u)||window.__WOUTER_ROUTES__.push(u)}}));for(const o of lp(e)){let c=0;if(S.isValidElement(o)&&(c=hE(r.parser,o.props.path,t||s,o.props.nest))[0])return S.cloneElement(o,{match:c})}return null};function zl(){if(typeof window>"u")return null;const e=window;return e._paq?e._paq:null}function gR(e,t){const r=zl();r&&(t&&r.push(["setReferrerUrl",window.location.origin+t]),r.push(["setCustomUrl",window.location.origin+e]),r.push(["setDocumentTitle",document.title]),r.push(["trackPageView"]),r.push(["enableLinkTracking"]))}const $a={BERATUNG_ANFRAGE:1,KONTAKTFORMULAR:2,KATALOG_BESTELLUNG:3,RETOURE_EINGEREICHT:4,TELEFON_KLICK:5,MAIL_KLICK:6,DOWNLOAD:7,STELLE_BEWERBUNG:8};function Nl(e,t){const r=zl();r&&r.push(t?["trackGoal",e,0,{dimension1:t}]:["trackGoal",e])}function Hr(e,t,r){const s=zl();s&&s.push(r?["trackEvent",e,t,r]:["trackEvent",e,t])}const sg="Lead",a1=new Set;function Ss(e,t){a1.has(e)||(a1.add(e),t())}function yR(e){Hr(sg,"CTA geklickt",e)}function vR(e,t){const r=`start:${t??e}`;Ss(r,()=>Hr(sg,"Formular begonnen",e))}function mE(e,t,r){const s=`lead:${r??t}`;Ss(s,()=>{Hr(sg,"Anfrage gesendet",t),Nl(e,t)})}const ag="Kontakt";function bR(e){Ss(`tel:${e}`,()=>{Hr(ag,"Telefon geklickt",e),Nl($a.TELEFON_KLICK,e)})}function xR(e){Ss(`mail:${e}`,()=>{Hr(ag,"E-Mail geklickt",e),Nl($a.MAIL_KLICK,e)})}function wR(e){Ss(`dl:${e}`,()=>{Hr(ag,"Download",e),Nl($a.DOWNLOAD,e)})}const pE="Karriere";function X7(e){Ss(`job:${e}`,()=>{Hr(pE,"Stellenanzeige gesehen",e)})}function W7(e){Ss(`apply:${e}`,()=>{Hr(pE,"Bewerbung begonnen",e),Nl($a.STELLE_BEWERBUNG,e)})}const SR="Praxisportal";function ER(e,t){const r=zl();r&&(r.push(["trackLink",t,"link"]),Hr(SR,"Portal geoeffnet",e))}const o1="https://www.stusche.de/Praxisportal/Anmeldung.php";function Tu(e){try{ER(e,o1)}catch{}window.open(o1,"_blank","noopener,noreferrer")}function TR(e,t){const r=zl();r&&r.push(["trackSiteSearch",e,!1,t])}const _R=/\.(pdf|docx?|xlsx?|pptx?|zip|csv)$/i;function AR(){S.useEffect(()=>{function e(t){if(t.defaultPrevented)return;const r=t.target;if(!(r instanceof Element))return;const s=r.closest("a[href]");if(!(s instanceof HTMLAnchorElement))return;const o=s.getAttribute("href")??"",c=window.location.pathname||"/";if(o.startsWith("tel:")){bR(c);return}if(o.startsWith("mailto:")){xR(c);return}if(_R.test(o.split("?")[0])){const u=o.split("?")[0].split("/").pop()??o;wR(u)}}return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})},[])}function ne(e,t,r){function s(f,h){var m;Object.defineProperty(f,"_zod",{value:f._zod??{},enumerable:!1}),(m=f._zod).traits??(m.traits=new Set),f._zod.traits.add(e),t(f,h);for(const v in u.prototype)v in f||Object.defineProperty(f,v,{value:u.prototype[v].bind(f)});f._zod.constr=u,f._zod.def=h}const o=r?.Parent??Object;class c extends o{}Object.defineProperty(c,"name",{value:e});function u(f){var h;const m=r?.Parent?new c:this;s(m,f),(h=m._zod).deferred??(h.deferred=[]);for(const v of m._zod.deferred)v();return m}return Object.defineProperty(u,"init",{value:s}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>r?.Parent&&f instanceof r.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class za extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class gE extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const yE={};function ms(e){return yE}function jR(e){const t=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,o])=>t.indexOf(+s)===-1).map(([s,o])=>o)}function cp(e,t){return typeof t=="bigint"?t.toString():t}function og(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function lg(e){return e==null}function cg(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const l1=Symbol("evaluating");function Qe(e,t,r){let s;Object.defineProperty(e,t,{get(){if(s!==l1)return s===void 0&&(s=l1,s=r()),s},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Es(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ts(...e){const t={};for(const r of e){const s=Object.getOwnPropertyDescriptors(r);Object.assign(t,s)}return Object.defineProperties({},t)}function c1(e){return JSON.stringify(e)}const vE="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const OR=og(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function yl(e){if(Hu(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(Hu(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function bE(e){return yl(e)?{...e}:Array.isArray(e)?[...e]:e}const CR=new Set(["string","number","symbol"]);function yf(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ki(e,t,r){const s=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(s._zod.parent=e),s}function Se(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function kR(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function zR(e,t){const r=e._zod.def,s=Ts(e._zod.def,{get shape(){const o={};for(const c in t){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(o[c]=r.shape[c])}return Es(this,"shape",o),o},checks:[]});return ki(e,s)}function NR(e,t){const r=e._zod.def,s=Ts(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const c in t){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete o[c]}return Es(this,"shape",o),o},checks:[]});return ki(e,s)}function MR(e,t){if(!yl(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Ts(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return Es(this,"shape",c),c},checks:[]});return ki(e,o)}function RR(e,t){if(!yl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const s={...e._zod.def.shape,...t};return Es(this,"shape",s),s},checks:e._zod.def.checks};return ki(e,r)}function DR(e,t){const r=Ts(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return Es(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:[]});return ki(e,r)}function PR(e,t,r){const s=Ts(t._zod.def,{get shape(){const o=t._zod.def.shape,c={...o};if(r)for(const u in r){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(const u in o)c[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return Es(this,"shape",c),c},checks:[]});return ki(t,s)}function LR(e,t,r){const s=Ts(t._zod.def,{get shape(){const o=t._zod.def.shape,c={...o};if(r)for(const u in r){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=new e({type:"nonoptional",innerType:o[u]}))}else for(const u in o)c[u]=new e({type:"nonoptional",innerType:o[u]});return Es(this,"shape",c),c},checks:[]});return ki(t,s)}function xa(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function xE(e,t){return t.map(r=>{var s;return(s=r).path??(s.path=[]),r.path.unshift(e),r})}function cu(e){return typeof e=="string"?e:e?.message}function ps(e,t,r){const s={...e,path:e.path??[]};if(!e.message){const o=cu(e.inst?._zod.def?.error?.(e))??cu(t?.error?.(e))??cu(r.customError?.(e))??cu(r.localeError?.(e))??"Invalid input";s.message=o}return delete s.inst,delete s.continue,t?.reportInput||delete s.input,s}function ug(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function vl(...e){const[t,r,s]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:s}:{...t}}const wE=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,cp,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},SE=ne("$ZodError",wE),EE=ne("$ZodError",wE,{Parent:Error});function UR(e,t=r=>r.message){const r={},s=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):s.push(t(o));return{formErrors:s,fieldErrors:r}}function VR(e,t=r=>r.message){const r={_errors:[]},s=o=>{for(const c of o.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>s({issues:u}));else if(c.code==="invalid_key")s({issues:c.issues});else if(c.code==="invalid_element")s({issues:c.issues});else if(c.path.length===0)r._errors.push(t(c));else{let u=r,f=0;for(;f<c.path.length;){const h=c.path[f];f===c.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(c))):u[h]=u[h]||{_errors:[]},u=u[h],f++}}};return s(e),r}const fg=e=>(t,r,s,o)=>{const c=s?Object.assign(s,{async:!1}):{async:!1},u=t._zod.run({value:r,issues:[]},c);if(u instanceof Promise)throw new za;if(u.issues.length){const f=new(o?.Err??e)(u.issues.map(h=>ps(h,c,ms())));throw vE(f,o?.callee),f}return u.value},dg=e=>async(t,r,s,o)=>{const c=s?Object.assign(s,{async:!0}):{async:!0};let u=t._zod.run({value:r,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(o?.Err??e)(u.issues.map(h=>ps(h,c,ms())));throw vE(f,o?.callee),f}return u.value},vf=e=>(t,r,s)=>{const o=s?{...s,async:!1}:{async:!1},c=t._zod.run({value:r,issues:[]},o);if(c instanceof Promise)throw new za;return c.issues.length?{success:!1,error:new(e??SE)(c.issues.map(u=>ps(u,o,ms())))}:{success:!0,data:c.value}},BR=vf(EE),bf=e=>async(t,r,s)=>{const o=s?Object.assign(s,{async:!0}):{async:!0};let c=t._zod.run({value:r,issues:[]},o);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(u=>ps(u,o,ms())))}:{success:!0,data:c.value}},HR=bf(EE),qR=e=>(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return fg(e)(t,r,o)},IR=e=>(t,r,s)=>fg(e)(t,r,s),$R=e=>async(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return dg(e)(t,r,o)},ZR=e=>async(t,r,s)=>dg(e)(t,r,s),GR=e=>(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return vf(e)(t,r,o)},KR=e=>(t,r,s)=>vf(e)(t,r,s),QR=e=>async(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return bf(e)(t,r,o)},FR=e=>async(t,r,s)=>bf(e)(t,r,s),YR=/^[cC][^\s-]{8,}$/,XR=/^[0-9a-z]+$/,WR=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,JR=/^[0-9a-vA-V]{20}$/,eD=/^[A-Za-z0-9]{27}$/,tD=/^[a-zA-Z0-9_-]{21}$/,nD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rD=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,u1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,iD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function aD(){return new RegExp(sD,"u")}const oD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,cD=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,uD=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,TE=/^[A-Za-z0-9_-]*$/,dD=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,hD=/^\+(?:[0-9]){6,14}[0-9]$/,_E="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",mD=new RegExp(`^${_E}$`);function AE(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pD(e){return new RegExp(`^${AE(e)}$`)}function gD(e){const t=AE({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${t}(?:${r.join("|")})`;return new RegExp(`^${_E}T(?:${s})$`)}const yD=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},vD=/^[^A-Z]*$/,bD=/^[^a-z]*$/,fr=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),xD=ne("$ZodCheckMaxLength",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=s=>{const o=s.value;return!lg(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(s._zod.bag.maximum=t.maximum)}),e._zod.check=s=>{const o=s.value;if(o.length<=t.maximum)return;const u=ug(o);s.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),wD=ne("$ZodCheckMinLength",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=s=>{const o=s.value;return!lg(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(s._zod.bag.minimum=t.minimum)}),e._zod.check=s=>{const o=s.value;if(o.length>=t.minimum)return;const u=ug(o);s.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),SD=ne("$ZodCheckLengthEquals",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=s=>{const o=s.value;return!lg(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=s=>{const o=s.value,c=o.length;if(c===t.length)return;const u=ug(o),f=c>t.length;s.issues.push({origin:u,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!t.abort})}}),xf=ne("$ZodCheckStringFormat",(e,t)=>{var r,s;fr.init(e,t),e._zod.onattach.push(o=>{const c=o._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(s=e._zod).check??(s.check=()=>{})}),ED=ne("$ZodCheckRegex",(e,t)=>{xf.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),TD=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=vD),xf.init(e,t)}),_D=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bD),xf.init(e,t)}),AD=ne("$ZodCheckIncludes",(e,t)=>{fr.init(e,t);const r=yf(t.includes),s=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=s,e._zod.onattach.push(o=>{const c=o._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),jD=ne("$ZodCheckStartsWith",(e,t)=>{fr.init(e,t);const r=new RegExp(`^${yf(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=s=>{s.value.startsWith(t.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:s.value,inst:e,continue:!t.abort})}}),OD=ne("$ZodCheckEndsWith",(e,t)=>{fr.init(e,t);const r=new RegExp(`.*${yf(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=s=>{s.value.endsWith(t.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:s.value,inst:e,continue:!t.abort})}}),CD=ne("$ZodCheckOverwrite",(e,t)=>{fr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class kD{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const s=t.split(`
`).filter(u=>u),o=Math.min(...s.map(u=>u.length-u.trimStart().length)),c=s.map(u=>u.slice(o)).map(u=>" ".repeat(this.indent*2)+u);for(const u of c)this.content.push(u)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(c=>` ${c}`)];return new t(...r,o.join(`
`))}}const zD={major:4,minor:1,patch:12},bt=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zD;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const o of s)for(const c of o._zod.onattach)c(e);if(s.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,f,h)=>{let m=xa(u),v;for(const y of f){if(y._zod.def.when){if(!y._zod.def.when(u))continue}else if(m)continue;const x=u.issues.length,w=y._zod.check(u);if(w instanceof Promise&&h?.async===!1)throw new za;if(v||w instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await w,u.issues.length!==x&&(m||(m=xa(u,x)))});else{if(u.issues.length===x)continue;m||(m=xa(u,x))}}return v?v.then(()=>u):u},c=(u,f,h)=>{if(xa(u))return u.aborted=!0,u;const m=o(f,s,h);if(m instanceof Promise){if(h.async===!1)throw new za;return m.then(v=>e._zod.parse(v,h))}return e._zod.parse(m,h)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const m=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return m instanceof Promise?m.then(v=>c(v,u,f)):c(m,u,f)}const h=e._zod.parse(u,f);if(h instanceof Promise){if(f.async===!1)throw new za;return h.then(m=>o(m,s,f))}return o(h,s,f)}}e["~standard"]={validate:o=>{try{const c=BR(e,o);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return HR(e,o).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),hg=ne("$ZodString",(e,t)=>{bt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??yD(e._zod.bag),e._zod.parse=(r,s)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Je=ne("$ZodStringFormat",(e,t)=>{xf.init(e,t),hg.init(e,t)}),ND=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rD),Je.init(e,t)}),MD=ne("$ZodUUID",(e,t)=>{if(t.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=u1(s))}else t.pattern??(t.pattern=u1());Je.init(e,t)}),RD=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=iD),Je.init(e,t)}),DD=ne("$ZodURL",(e,t)=>{Je.init(e,t),e._zod.check=r=>{try{const s=r.value.trim(),o=new URL(s);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:dD.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=s;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),PD=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=aD()),Je.init(e,t)}),LD=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=tD),Je.init(e,t)}),UD=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=YR),Je.init(e,t)}),VD=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=XR),Je.init(e,t)}),BD=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=WR),Je.init(e,t)}),HD=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=JR),Je.init(e,t)}),qD=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=eD),Je.init(e,t)}),ID=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=gD(t)),Je.init(e,t)}),$D=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=mD),Je.init(e,t)}),ZD=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=pD(t)),Je.init(e,t)}),GD=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=nD),Je.init(e,t)}),KD=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=oD),Je.init(e,t),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv4"})}),QD=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=lD),Je.init(e,t),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),FD=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=cD),Je.init(e,t)}),YD=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=uD),Je.init(e,t),e._zod.check=r=>{const s=r.value.split("/");try{if(s.length!==2)throw new Error;const[o,c]=s;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function jE(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const XD=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=fD),Je.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{jE(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function WD(e){if(!TE.test(e))return!1;const t=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return jE(r)}const JD=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=TE),Je.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{WD(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),e4=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=hD),Je.init(e,t)});function t4(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[s]=r;if(!s)return!1;const o=JSON.parse(atob(s));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const n4=ne("$ZodJWT",(e,t)=>{Je.init(e,t),e._zod.check=r=>{t4(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),r4=ne("$ZodUnknown",(e,t)=>{bt.init(e,t),e._zod.parse=r=>r}),i4=ne("$ZodNever",(e,t)=>{bt.init(e,t),e._zod.parse=(r,s)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function f1(e,t,r){e.issues.length&&t.issues.push(...xE(r,e.issues)),t.value[r]=e.value}const s4=ne("$ZodArray",(e,t)=>{bt.init(e,t),e._zod.parse=(r,s)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const c=[];for(let u=0;u<o.length;u++){const f=o[u],h=t.element._zod.run({value:f,issues:[]},s);h instanceof Promise?c.push(h.then(m=>f1(m,r,u))):f1(h,r,u)}return c.length?Promise.all(c).then(()=>r):r}});function qu(e,t,r,s){e.issues.length&&t.issues.push(...xE(r,e.issues)),e.value===void 0?r in s&&(t.value[r]=void 0):t.value[r]=e.value}function OE(e){const t=Object.keys(e.shape);for(const s of t)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=kR(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function CE(e,t,r,s,o,c){const u=[],f=o.keySet,h=o.catchall._zod,m=h.def.type;for(const v of Object.keys(t)){if(f.has(v))continue;if(m==="never"){u.push(v);continue}const y=h.run({value:t[v],issues:[]},s);y instanceof Promise?e.push(y.then(x=>qu(x,r,v,t))):qu(y,r,v,t)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:c}),e.length?Promise.all(e).then(()=>r):r}const a4=ne("$ZodObject",(e,t)=>{if(bt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...f};return Object.defineProperty(t,"shape",{value:h}),h}})}const s=og(()=>OE(t));Qe(e._zod,"propValues",()=>{const f=t.shape,h={};for(const m in f){const v=f[m]._zod;if(v.values){h[m]??(h[m]=new Set);for(const y of v.values)h[m].add(y)}}return h});const o=Hu,c=t.catchall;let u;e._zod.parse=(f,h)=>{u??(u=s.value);const m=f.value;if(!o(m))return f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f;f.value={};const v=[],y=u.shape;for(const x of u.keys){const T=y[x]._zod.run({value:m[x],issues:[]},h);T instanceof Promise?v.push(T.then(_=>qu(_,f,x,m))):qu(T,f,x,m)}return c?CE(v,m,f,h,s.value,e):v.length?Promise.all(v).then(()=>f):f}}),o4=ne("$ZodObjectJIT",(e,t)=>{a4.init(e,t);const r=e._zod.parse,s=og(()=>OE(t)),o=x=>{const w=new kD(["shape","payload","ctx"]),T=s.value,_=C=>{const B=c1(C);return`shape[${B}]._zod.run({ value: input[${B}], issues: [] }, ctx)`};w.write("const input = payload.value;");const N=Object.create(null);let k=0;for(const C of T.keys)N[C]=`key_${k++}`;w.write("const newResult = {};");for(const C of T.keys){const B=N[C],U=c1(C);w.write(`const ${B} = ${_(C)};`),w.write(`
if (${B}.issues.length) {
payload.issues = payload.issues.concat(${B}.issues.map(iss => ({
...iss,
path: iss.path ? [${U}, ...iss.path] : [${U}]
})));
}
if (${B}.value === undefined) {
if (${U} in input) {
newResult[${U}] = undefined;
}
} else {
newResult[${U}] = ${B}.value;
}
`)}w.write("payload.value = newResult;"),w.write("return payload;");const L=w.compile();return(C,B)=>L(x,C,B)};let c;const u=Hu,f=!yE.jitless,m=f&&OR.value,v=t.catchall;let y;e._zod.parse=(x,w)=>{y??(y=s.value);const T=x.value;return u(T)?f&&m&&w?.async===!1&&w.jitless!==!0?(c||(c=o(t.shape)),x=c(x,w),v?CE([],T,x,w,y,e):x):r(x,w):(x.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),x)}});function d1(e,t,r,s){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const o=e.filter(c=>!xa(c));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(c=>c.issues.map(u=>ps(u,s,ms())))}),t)}const l4=ne("$ZodUnion",(e,t)=>{bt.init(e,t),Qe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Qe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Qe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Qe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${o.map(c=>cg(c.source)).join("|")})$`)}});const r=t.options.length===1,s=t.options[0]._zod.run;e._zod.parse=(o,c)=>{if(r)return s(o,c);let u=!1;const f=[];for(const h of t.options){const m=h._zod.run({value:o.value,issues:[]},c);if(m instanceof Promise)f.push(m),u=!0;else{if(m.issues.length===0)return m;f.push(m)}}return u?Promise.all(f).then(h=>d1(h,o,e,c)):d1(f,o,e,c)}}),c4=ne("$ZodIntersection",(e,t)=>{bt.init(e,t),e._zod.parse=(r,s)=>{const o=r.value,c=t.left._zod.run({value:o,issues:[]},s),u=t.right._zod.run({value:o,issues:[]},s);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([h,m])=>h1(r,h,m)):h1(r,c,u)}});function up(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yl(e)&&yl(t)){const r=Object.keys(t),s=Object.keys(e).filter(c=>r.indexOf(c)!==-1),o={...e,...t};for(const c of s){const u=up(e[c],t[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};o[c]=u.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let s=0;s<e.length;s++){const o=e[s],c=t[s],u=up(o,c);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function h1(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),xa(e))return e;const s=up(t.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const u4=ne("$ZodEnum",(e,t)=>{bt.init(e,t);const r=jR(t.entries),s=new Set(r);e._zod.values=s,e._zod.pattern=new RegExp(`^(${r.filter(o=>CR.has(typeof o)).map(o=>typeof o=="string"?yf(o):o.toString()).join("|")})$`),e._zod.parse=(o,c)=>{const u=o.value;return s.has(u)||o.issues.push({code:"invalid_value",values:r,input:u,inst:e}),o}}),f4=ne("$ZodTransform",(e,t)=>{bt.init(e,t),e._zod.parse=(r,s)=>{if(s.direction==="backward")throw new gE(e.constructor.name);const o=t.transform(r.value,r);if(s.async)return(o instanceof Promise?o:Promise.resolve(o)).then(u=>(r.value=u,r));if(o instanceof Promise)throw new za;return r.value=o,r}});function m1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const d4=ne("$ZodOptional",(e,t)=>{bt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Qe(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${cg(r.source)})?$`):void 0}),e._zod.parse=(r,s)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,s);return o instanceof Promise?o.then(c=>m1(c,r.value)):m1(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,s)}}),h4=ne("$ZodNullable",(e,t)=>{bt.init(e,t),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${cg(r.source)}|null)$`):void 0}),Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,s)=>r.value===null?r:t.innerType._zod.run(r,s)}),m4=ne("$ZodDefault",(e,t)=>{bt.init(e,t),e._zod.optin="optional",Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,s)=>{if(s.direction==="backward")return t.innerType._zod.run(r,s);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,s);return o instanceof Promise?o.then(c=>p1(c,t)):p1(o,t)}});function p1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const p4=ne("$ZodPrefault",(e,t)=>{bt.init(e,t),e._zod.optin="optional",Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,s)=>(s.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,s))}),g4=ne("$ZodNonOptional",(e,t)=>{bt.init(e,t),Qe(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(s=>s!==void 0)):void 0}),e._zod.parse=(r,s)=>{const o=t.innerType._zod.run(r,s);return o instanceof Promise?o.then(c=>g1(c,e)):g1(o,e)}});function g1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const y4=ne("$ZodCatch",(e,t)=>{bt.init(e,t),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,s)=>{if(s.direction==="backward")return t.innerType._zod.run(r,s);const o=t.innerType._zod.run(r,s);return o instanceof Promise?o.then(c=>(r.value=c.value,c.issues.length&&(r.value=t.catchValue({...r,error:{issues:c.issues.map(u=>ps(u,s,ms()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(c=>ps(c,s,ms()))},input:r.value}),r.issues=[]),r)}}),v4=ne("$ZodPipe",(e,t)=>{bt.init(e,t),Qe(e._zod,"values",()=>t.in._zod.values),Qe(e._zod,"optin",()=>t.in._zod.optin),Qe(e._zod,"optout",()=>t.out._zod.optout),Qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,s)=>{if(s.direction==="backward"){const c=t.out._zod.run(r,s);return c instanceof Promise?c.then(u=>uu(u,t.in,s)):uu(c,t.in,s)}const o=t.in._zod.run(r,s);return o instanceof Promise?o.then(c=>uu(c,t.out,s)):uu(o,t.out,s)}});function uu(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const b4=ne("$ZodReadonly",(e,t)=>{bt.init(e,t),Qe(e._zod,"propValues",()=>t.innerType._zod.propValues),Qe(e._zod,"values",()=>t.innerType._zod.values),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,s)=>{if(s.direction==="backward")return t.innerType._zod.run(r,s);const o=t.innerType._zod.run(r,s);return o instanceof Promise?o.then(y1):y1(o)}});function y1(e){return e.value=Object.freeze(e.value),e}const x4=ne("$ZodCustom",(e,t)=>{fr.init(e,t),bt.init(e,t),e._zod.parse=(r,s)=>r,e._zod.check=r=>{const s=r.value,o=t.fn(s);if(o instanceof Promise)return o.then(c=>v1(c,r,s,e));v1(o,r,s,e)}});function v1(e,t,r,s){if(!e){const o={code:"custom",input:r,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(o.params=s._zod.def.params),t.issues.push(vl(o))}}class w4{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const s=r[0];if(this._map.set(t,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const s={...this.get(r)??{}};delete s.id;const o={...s,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function S4(){return new w4}const fu=S4();function E4(e,t){return new e({type:"string",...Se(t)})}function T4(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(t)})}function b1(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(t)})}function _4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function A4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function j4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function O4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(t)})}function C4(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(t)})}function k4(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function z4(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function N4(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function M4(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function R4(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function D4(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function P4(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function L4(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function U4(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function V4(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function B4(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function H4(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function q4(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function I4(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function $4(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}function Z4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function G4(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function K4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function Q4(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function F4(e){return new e({type:"unknown"})}function Y4(e,t){return new e({type:"never",...Se(t)})}function kE(e,t){return new xD({check:"max_length",...Se(t),maximum:e})}function Iu(e,t){return new wD({check:"min_length",...Se(t),minimum:e})}function zE(e,t){return new SD({check:"length_equals",...Se(t),length:e})}function X4(e,t){return new ED({check:"string_format",format:"regex",...Se(t),pattern:e})}function W4(e){return new TD({check:"string_format",format:"lowercase",...Se(e)})}function J4(e){return new _D({check:"string_format",format:"uppercase",...Se(e)})}function e3(e,t){return new AD({check:"string_format",format:"includes",...Se(t),includes:e})}function t3(e,t){return new jD({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function n3(e,t){return new OD({check:"string_format",format:"ends_with",...Se(t),suffix:e})}function Ml(e){return new CD({check:"overwrite",tx:e})}function r3(e){return Ml(t=>t.normalize(e))}function i3(){return Ml(e=>e.trim())}function s3(){return Ml(e=>e.toLowerCase())}function a3(){return Ml(e=>e.toUpperCase())}function o3(e,t,r){return new e({type:"array",element:t,...Se(r)})}function l3(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Se(r)})}function c3(e){const t=u3(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(vl(s,r.value,t._zod.def));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(vl(o))}},e(r.value,r)));return t}function u3(e,t){const r=new fr({check:"custom",...Se(t)});return r._zod.check=e,r}const f3=ne("ZodISODateTime",(e,t)=>{ID.init(e,t),nt.init(e,t)});function d3(e){return Z4(f3,e)}const h3=ne("ZodISODate",(e,t)=>{$D.init(e,t),nt.init(e,t)});function m3(e){return G4(h3,e)}const p3=ne("ZodISOTime",(e,t)=>{ZD.init(e,t),nt.init(e,t)});function g3(e){return K4(p3,e)}const y3=ne("ZodISODuration",(e,t)=>{GD.init(e,t),nt.init(e,t)});function v3(e){return Q4(y3,e)}const b3=(e,t)=>{SE.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>VR(e,r)},flatten:{value:r=>UR(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,cp,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,cp,2)}},isEmpty:{get(){return e.issues.length===0}}})},Mn=ne("ZodError",b3,{Parent:Error}),x3=fg(Mn),w3=dg(Mn),S3=vf(Mn),E3=bf(Mn),T3=qR(Mn),_3=IR(Mn),A3=$R(Mn),j3=ZR(Mn),O3=GR(Mn),C3=KR(Mn),k3=QR(Mn),z3=FR(Mn),Tt=ne("ZodType",(e,t)=>(bt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ts(t,{checks:[...t.checks??[],...r.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]})),e.clone=(r,s)=>ki(e,r,s),e.brand=()=>e,e.register=((r,s)=>(r.add(e,s),e)),e.parse=(r,s)=>x3(e,r,s,{callee:e.parse}),e.safeParse=(r,s)=>S3(e,r,s),e.parseAsync=async(r,s)=>w3(e,r,s,{callee:e.parseAsync}),e.safeParseAsync=async(r,s)=>E3(e,r,s),e.spa=e.safeParseAsync,e.encode=(r,s)=>T3(e,r,s),e.decode=(r,s)=>_3(e,r,s),e.encodeAsync=async(r,s)=>A3(e,r,s),e.decodeAsync=async(r,s)=>j3(e,r,s),e.safeEncode=(r,s)=>O3(e,r,s),e.safeDecode=(r,s)=>C3(e,r,s),e.safeEncodeAsync=async(r,s)=>k3(e,r,s),e.safeDecodeAsync=async(r,s)=>z3(e,r,s),e.refine=(r,s)=>e.check(SP(r,s)),e.superRefine=r=>e.check(EP(r)),e.overwrite=r=>e.check(Ml(r)),e.optional=()=>S1(e),e.nullable=()=>E1(e),e.nullish=()=>S1(E1(e)),e.nonoptional=r=>pP(e,r),e.array=()=>eP(e),e.or=r=>iP([e,r]),e.and=r=>aP(e,r),e.transform=r=>T1(e,cP(r)),e.default=r=>dP(e,r),e.prefault=r=>mP(e,r),e.catch=r=>yP(e,r),e.pipe=r=>T1(e,r),e.readonly=()=>xP(e),e.describe=r=>{const s=e.clone();return fu.add(s,{description:r}),s},Object.defineProperty(e,"description",{get(){return fu.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return fu.get(e);const s=e.clone();return fu.add(s,r[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),NE=ne("_ZodString",(e,t)=>{hg.init(e,t),Tt.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...s)=>e.check(X4(...s)),e.includes=(...s)=>e.check(e3(...s)),e.startsWith=(...s)=>e.check(t3(...s)),e.endsWith=(...s)=>e.check(n3(...s)),e.min=(...s)=>e.check(Iu(...s)),e.max=(...s)=>e.check(kE(...s)),e.length=(...s)=>e.check(zE(...s)),e.nonempty=(...s)=>e.check(Iu(1,...s)),e.lowercase=s=>e.check(W4(s)),e.uppercase=s=>e.check(J4(s)),e.trim=()=>e.check(i3()),e.normalize=(...s)=>e.check(r3(...s)),e.toLowerCase=()=>e.check(s3()),e.toUpperCase=()=>e.check(a3())}),N3=ne("ZodString",(e,t)=>{hg.init(e,t),NE.init(e,t),e.email=r=>e.check(T4(M3,r)),e.url=r=>e.check(C4(R3,r)),e.jwt=r=>e.check($4(F3,r)),e.emoji=r=>e.check(k4(D3,r)),e.guid=r=>e.check(b1(x1,r)),e.uuid=r=>e.check(_4(du,r)),e.uuidv4=r=>e.check(A4(du,r)),e.uuidv6=r=>e.check(j4(du,r)),e.uuidv7=r=>e.check(O4(du,r)),e.nanoid=r=>e.check(z4(P3,r)),e.guid=r=>e.check(b1(x1,r)),e.cuid=r=>e.check(N4(L3,r)),e.cuid2=r=>e.check(M4(U3,r)),e.ulid=r=>e.check(R4(V3,r)),e.base64=r=>e.check(H4(G3,r)),e.base64url=r=>e.check(q4(K3,r)),e.xid=r=>e.check(D4(B3,r)),e.ksuid=r=>e.check(P4(H3,r)),e.ipv4=r=>e.check(L4(q3,r)),e.ipv6=r=>e.check(U4(I3,r)),e.cidrv4=r=>e.check(V4($3,r)),e.cidrv6=r=>e.check(B4(Z3,r)),e.e164=r=>e.check(I4(Q3,r)),e.datetime=r=>e.check(d3(r)),e.date=r=>e.check(m3(r)),e.time=r=>e.check(g3(r)),e.duration=r=>e.check(v3(r))});function wa(e){return E4(N3,e)}const nt=ne("ZodStringFormat",(e,t)=>{Je.init(e,t),NE.init(e,t)}),M3=ne("ZodEmail",(e,t)=>{RD.init(e,t),nt.init(e,t)}),x1=ne("ZodGUID",(e,t)=>{ND.init(e,t),nt.init(e,t)}),du=ne("ZodUUID",(e,t)=>{MD.init(e,t),nt.init(e,t)}),R3=ne("ZodURL",(e,t)=>{DD.init(e,t),nt.init(e,t)}),D3=ne("ZodEmoji",(e,t)=>{PD.init(e,t),nt.init(e,t)}),P3=ne("ZodNanoID",(e,t)=>{LD.init(e,t),nt.init(e,t)}),L3=ne("ZodCUID",(e,t)=>{UD.init(e,t),nt.init(e,t)}),U3=ne("ZodCUID2",(e,t)=>{VD.init(e,t),nt.init(e,t)}),V3=ne("ZodULID",(e,t)=>{BD.init(e,t),nt.init(e,t)}),B3=ne("ZodXID",(e,t)=>{HD.init(e,t),nt.init(e,t)}),H3=ne("ZodKSUID",(e,t)=>{qD.init(e,t),nt.init(e,t)}),q3=ne("ZodIPv4",(e,t)=>{KD.init(e,t),nt.init(e,t)}),I3=ne("ZodIPv6",(e,t)=>{QD.init(e,t),nt.init(e,t)}),$3=ne("ZodCIDRv4",(e,t)=>{FD.init(e,t),nt.init(e,t)}),Z3=ne("ZodCIDRv6",(e,t)=>{YD.init(e,t),nt.init(e,t)}),G3=ne("ZodBase64",(e,t)=>{XD.init(e,t),nt.init(e,t)}),K3=ne("ZodBase64URL",(e,t)=>{JD.init(e,t),nt.init(e,t)}),Q3=ne("ZodE164",(e,t)=>{e4.init(e,t),nt.init(e,t)}),F3=ne("ZodJWT",(e,t)=>{n4.init(e,t),nt.init(e,t)}),Y3=ne("ZodUnknown",(e,t)=>{r4.init(e,t),Tt.init(e,t)});function w1(){return F4(Y3)}const X3=ne("ZodNever",(e,t)=>{i4.init(e,t),Tt.init(e,t)});function W3(e){return Y4(X3,e)}const J3=ne("ZodArray",(e,t)=>{s4.init(e,t),Tt.init(e,t),e.element=t.element,e.min=(r,s)=>e.check(Iu(r,s)),e.nonempty=r=>e.check(Iu(1,r)),e.max=(r,s)=>e.check(kE(r,s)),e.length=(r,s)=>e.check(zE(r,s)),e.unwrap=()=>e.element});function eP(e,t){return o3(J3,e,t)}const tP=ne("ZodObject",(e,t)=>{o4.init(e,t),Tt.init(e,t),Qe(e,"shape",()=>t.shape),e.keyof=()=>oP(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:w1()}),e.loose=()=>e.clone({...e._zod.def,catchall:w1()}),e.strict=()=>e.clone({...e._zod.def,catchall:W3()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>MR(e,r),e.safeExtend=r=>RR(e,r),e.merge=r=>DR(e,r),e.pick=r=>zR(e,r),e.omit=r=>NR(e,r),e.partial=(...r)=>PR(ME,e,r[0]),e.required=(...r)=>LR(RE,e,r[0])});function nP(e,t){const r={type:"object",shape:e??{},...Se(t)};return new tP(r)}const rP=ne("ZodUnion",(e,t)=>{l4.init(e,t),Tt.init(e,t),e.options=t.options});function iP(e,t){return new rP({type:"union",options:e,...Se(t)})}const sP=ne("ZodIntersection",(e,t)=>{c4.init(e,t),Tt.init(e,t)});function aP(e,t){return new sP({type:"intersection",left:e,right:t})}const fp=ne("ZodEnum",(e,t)=>{u4.init(e,t),Tt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(s,o)=>{const c={};for(const u of s)if(r.has(u))c[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new fp({...t,checks:[],...Se(o),entries:c})},e.exclude=(s,o)=>{const c={...t.entries};for(const u of s)if(r.has(u))delete c[u];else throw new Error(`Key ${u} not found in enum`);return new fp({...t,checks:[],...Se(o),entries:c})}});function oP(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new fp({type:"enum",entries:r,...Se(t)})}const lP=ne("ZodTransform",(e,t)=>{f4.init(e,t),Tt.init(e,t),e._zod.parse=(r,s)=>{if(s.direction==="backward")throw new gE(e.constructor.name);r.addIssue=c=>{if(typeof c=="string")r.issues.push(vl(c,r.value,t));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(vl(u))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(c=>(r.value=c,r)):(r.value=o,r)}});function cP(e){return new lP({type:"transform",transform:e})}const ME=ne("ZodOptional",(e,t)=>{d4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function S1(e){return new ME({type:"optional",innerType:e})}const uP=ne("ZodNullable",(e,t)=>{h4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function E1(e){return new uP({type:"nullable",innerType:e})}const fP=ne("ZodDefault",(e,t)=>{m4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function dP(e,t){return new fP({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():bE(t)}})}const hP=ne("ZodPrefault",(e,t)=>{p4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mP(e,t){return new hP({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():bE(t)}})}const RE=ne("ZodNonOptional",(e,t)=>{g4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pP(e,t){return new RE({type:"nonoptional",innerType:e,...Se(t)})}const gP=ne("ZodCatch",(e,t)=>{y4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function yP(e,t){return new gP({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const vP=ne("ZodPipe",(e,t)=>{v4.init(e,t),Tt.init(e,t),e.in=t.in,e.out=t.out});function T1(e,t){return new vP({type:"pipe",in:e,out:t})}const bP=ne("ZodReadonly",(e,t)=>{b4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function xP(e){return new bP({type:"readonly",innerType:e})}const wP=ne("ZodCustom",(e,t)=>{x4.init(e,t),Tt.init(e,t)});function SP(e,t={}){return l3(wP,e,t)}function EP(e){return c3(e)}const DE=200,PE=512,wf=512;function ya(e,t=DE){if(typeof e!="string")return;const r=e.replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/[^A-Za-z0-9äöüÄÖÜß._~:/?#[\]@!$'()*+,;=%\- ]/g,"").trim().slice(0,t).trim();return r.length>0?r:void 0}function LE(e){if(typeof e!="string")return;const t=e.trim();if(!(t.length===0||t.length>PE)&&/^[A-Za-z0-9._~\-=+/%]+$/.test(t))return t}function mg(e,t=wf){if(typeof e!="string")return;let r=e.trim();if(r.length===0)return;try{/^https?:\/\//i.test(r)&&(r=new URL(r).pathname)}catch{return}if(r=r.split("?")[0].split("#")[0],!r.startsWith("/"))return;const s=r.replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/[^A-Za-z0-9\-._~/%]/g,"").slice(0,t);return s.length>0?s:void 0}function UE(e,t=wf){if(typeof e!="string")return;const r=e.trim();if(r.length!==0)try{const s=new URL(r);return s.protocol!=="http:"&&s.protocol!=="https:"?void 0:`${s.origin}${s.pathname}`.slice(0,t)}catch{return}}const TP=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function _P(e){return typeof e=="string"&&TP.test(e)}const Xo=wa().max(DE*4).optional().transform(e=>ya(e)),_1=wa().max(wf*4).optional().transform(e=>mg(e));nP({leadId:wa().refine(_P,"Ungültige Lead-ID"),utmSource:Xo,utmMedium:Xo,utmCampaign:Xo,utmContent:Xo,utmTerm:Xo,oppref:wa().max(PE*2).optional().transform(e=>LE(e)),firstLandingPage:_1,submitPage:_1,referrer:wa().max(wf*4).optional().transform(e=>UE(e)),firstSeenAt:wa().datetime().optional()}).optional();const $u=2,pg="stusche_consent_v2",VE="stusche_cookie_consent",BE="stusche_analytics_consent",dp="stusche:consent-changed",hp="stusche:consent-open";function Sf(){return typeof window<"u"&&typeof document<"u"}function gg(){if(!Sf())return null;try{const e=window.localStorage.getItem(pg);if(e){const t=JSON.parse(e);if(t&&t.version===$u)return{necessary:!0,statistics:t.statistics===!0,marketing:t.marketing===!0,version:$u,updatedAt:typeof t.updatedAt=="string"?t.updatedAt:new Date().toISOString()}}return AP()}catch{return null}}function AP(){try{if(!window.localStorage.getItem(VE))return null;const r={necessary:!0,statistics:window.localStorage.getItem(BE)==="accepted",marketing:!1,version:$u,updatedAt:new Date().toISOString()};return window.localStorage.setItem(pg,JSON.stringify(r)),r}catch{return null}}function jP(){return gg()?.statistics===!0}function Rl(){return gg()?.marketing===!0}function OP(e){const t={necessary:!0,statistics:e.statistics===!0,marketing:e.marketing===!0,version:$u,updatedAt:new Date().toISOString()};if(Sf()){try{window.localStorage.setItem(pg,JSON.stringify(t)),window.localStorage.removeItem(VE),window.localStorage.removeItem(BE)}catch{}window.dispatchEvent(new CustomEvent(dp,{detail:t}))}return t}function CP(e){if(!Sf())return()=>{};const t=r=>e(r.detail);return window.addEventListener(dp,t),()=>window.removeEventListener(dp,t)}function kP(){Sf()&&window.dispatchEvent(new CustomEvent(hp))}const yg="stusche_attr_v1";let On=null,mp=!1;function ji(){return typeof window<"u"&&typeof document<"u"}function zP(){if(!ji())return null;try{const e=window.sessionStorage.getItem(yg);if(!e)return null;const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function dm(e){if(!(!ji()||!Rl()))try{window.sessionStorage.setItem(yg,JSON.stringify(e))}catch{}}function NP(){if(ji())try{window.sessionStorage.removeItem(yg)}catch{}}function MP(e){const t={};let r;try{r=new URLSearchParams(e)}catch{return t}const s=ya(r.get("utm_source")??void 0),o=ya(r.get("utm_medium")??void 0),c=ya(r.get("utm_campaign")??void 0),u=ya(r.get("utm_content")??void 0),f=ya(r.get("utm_term")??void 0),h=LE(r.get("oppref")??void 0);return s&&(t.utmSource=s),o&&(t.utmMedium=o),c&&(t.utmCampaign=c),u&&(t.utmContent=u),f&&(t.utmTerm=f),h&&(t.oppref=h),t}function A1(e){return!!(e.utmSource||e.utmMedium||e.utmCampaign||e.utmContent||e.utmTerm||e.oppref)}function HE(){if(!ji())return;if(!On){const t=Rl()?zP():null;t&&(On=t)}const e=MP(window.location.search);On?!A1(On)&&A1(e)&&(On={...On,...e},dm(On)):(On={...e,firstLandingPage:mg(window.location.pathname),referrer:UE(document.referrer),firstSeenAt:new Date().toISOString()},dm(On)),!mp&&(mp=!0,CP(t=>{t.marketing&&On&&dm(On),t.marketing||NP()}))}function RP(){return!mp&&ji()&&HE(),On}function pp(){if(ji()&&typeof window.crypto?.randomUUID=="function")return window.crypto.randomUUID();const e=new Uint8Array(16);if(ji()&&window.crypto?.getRandomValues)window.crypto.getRandomValues(e);else for(let r=0;r<16;r++)e[r]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=Array.from(e,r=>r.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function qE(e){const t=RP()??{};return{leadId:e,...t,submitPage:ji()?mg(window.location.pathname):void 0,submittedAt:new Date().toISOString()}}/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),IE=(...e)=>e.filter((t,r,s)=>!!t&&s.indexOf(t)===r).join(" ");/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var PP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LP=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:u,...f},h)=>S.createElement("svg",{ref:h,...PP,width:t,height:t,stroke:e,strokeWidth:s?Number(r)*24/Number(t):r,className:IE("lucide",o),...f},[...u.map(([m,v])=>S.createElement(m,v)),...Array.isArray(c)?c:[c]]));/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ae=(e,t)=>{const r=S.forwardRef(({className:s,...o},c)=>S.createElement(LP,{ref:c,iconNode:t,className:IE(`lucide-${DP(e)}`,s),...o}));return r.displayName=`${e}`,r};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UP=Ae("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VP=Ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hn=Ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $E=Ae("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const BP=Ae("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ef=Ae("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HP=Ae("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _u=Ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ga=Ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qP=Ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bi=Ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const IP=Ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $P=Ae("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zu=Ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vg=Ae("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZE=Ae("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZP=Ae("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GP=Ae("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KP=Ae("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QP=Ae("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bg=Ae("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gu=Ae("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FP=Ae("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YP=Ae("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GE=Ae("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KE=Ae("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xg=Ae("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rr=Ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XP=Ae("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WP=Ae("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JP=Ae("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ku=Ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e6=Ae("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t6=Ae("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n6=Ae("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r6=Ae("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QE=Ae("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i6=Ae("TriangleAlert",[["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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s6=Ae("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FE=Ae("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wg=Ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YE=Ae("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gs=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class a6 extends S.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?g.jsx("div",{className:"flex items-center justify-center min-h-screen p-8 bg-background",children:g.jsxs("div",{className:"flex flex-col items-center w-full max-w-2xl p-8",children:[g.jsx(i6,{size:48,className:"text-destructive mb-6 flex-shrink-0"}),g.jsx("h2",{className:"text-xl mb-4",children:"An unexpected error occurred."}),g.jsx("div",{className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:g.jsx("pre",{className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),g.jsxs("button",{onClick:()=>window.location.reload(),className:IM("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[g.jsx(XP,{size:16}),"Reload Page"]})]})}):this.props.children}}const XE=S.createContext(null);function o6({children:e}){const[t,r]=S.useState(!1),[s,o]=S.useState(null),c=S.useCallback(f=>{yR(f.sourceLabel),o(f),r(!0),document.body.style.overflow="hidden"},[]),u=S.useCallback(()=>{r(!1),document.body.style.overflow="",setTimeout(()=>o(null),300)},[]);return g.jsx(XE.Provider,{value:{isOpen:t,wizardCtx:s,openWizard:c,closeWizard:u},children:e})}function Tf(){const e=S.useContext(XE);if(!e)throw new Error("useWizard must be used within WizardProvider");return e}const l6="https://bzrcdn.openai.com/sdk/oaiq.min.js";function WE(){return""}function Qu(){return WE().length>0}let Hn="idle",ls=[];const j1=new Set;function c6(){const e=ls;ls=[];for(const t of e)try{t()}catch(r){console.warn("[OpenAIAds] Event konnte nicht gesendet werden:",r)}}function JE(){if(typeof window>"u"||typeof document>"u"||Hn!=="idle"||!Qu()||!Rl())return;Hn="loading";const e=document.createElement("script");e.src=l6,e.async=!0,e.onload=()=>{if(typeof window.oaiq!="function"){Hn="failed",ls=[];return}try{window.oaiq("init",{pixelId:WE()}),Hn="ready",c6()}catch(t){Hn="failed",ls=[],console.warn("[OpenAIAds] Initialisierung fehlgeschlagen:",t)}},e.onerror=()=>{Hn="failed",ls=[]},document.head.appendChild(e)}function eT(e){if(typeof window>"u"||!Qu()||!Rl()||!e||j1.has(e))return;j1.add(e);const t=()=>{typeof window.oaiq=="function"&&window.oaiq("measure","lead_created",{type:"customer_action"},{event_id:e})};if(Hn==="ready"){t();return}Hn!=="failed"&&(ls.push(t),Hn==="idle"&&JE())}function u6(){ls=[],Hn==="loading"&&(Hn="failed")}function f6(e,t){switch(t.type){case"LOADED":return{phase:"steps",currentStep:t.startStep??0,answers:{}};case"NEXT":return e.phase!=="steps"?e:{phase:"steps",currentStep:e.currentStep+1,answers:t.answers};case"BACK":return e.phase!=="steps"||e.currentStep===0?e:{phase:"steps",currentStep:e.currentStep-1,answers:e.answers};case"GO_CONTACT":return{phase:"contact",answers:t.answers};case"SUCCESS":return{phase:"success"};case"RESET":return{phase:"loading"};default:return e}}function d6(){const{isOpen:e,wizardCtx:t,closeWizard:r}=Tf(),[s,o]=S.useReducer(f6,{phase:"loading"}),[c,u]=S.useState({}),[f,h]=S.useState({name:"",email:"",phone:"",practice:"",message:"",strasse:"",plz:"",ort:""}),[m,v]=S.useState(null),y=S.useRef(null),x=Object.values(c).some(A=>A.includes("post")),[w,T]=S.useState(""),_=S.useRef(0),N=S.useRef(""),k=Si.wizard.getConfig.useQuery({configKey:t?.configKey??"general_contact"},{enabled:e&&!!t}),L=Si.wizard.submit.useMutation({onSuccess:()=>{o({type:"SUCCESS"});const A=t?.sourceLabel??"Wizard";mE($a.BERATUNG_ANFRAGE,A,N.current),eT(N.current)},onError:A=>v(A.message)});if(S.useEffect(()=>{e&&t&&(u(t.preselect??{}),h({name:"",email:"",phone:"",practice:"",message:"",strasse:"",plz:"",ort:""}),v(null),T(""),_.current=Date.now(),N.current=pp(),vR(t.sourceLabel,N.current),o({type:"RESET"}))},[e,t]),S.useEffect(()=>{k.data&&s.phase==="loading"&&o({type:"LOADED",startStep:0})},[k.data,s.phase,t]),S.useEffect(()=>{const A=R=>{R.key==="Escape"&&r()};return e&&document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[e,r]),!e||!t)return null;const C=k.data?.steps??[],B=C.length,U=(A,R,P)=>{u(re=>{const le=re[A]??[];if(P==="radio")return{...re,[A]:[R]};const O=le.includes(R);return{...re,[A]:O?le.filter(Q=>Q!==R):[...le,R]}})},H=()=>{if(s.phase!=="steps")return;s.currentStep+1>=B?o({type:"GO_CONTACT",answers:c}):o({type:"NEXT",answers:c,totalSteps:B})},j=()=>{s.phase==="contact"?(o({type:"NEXT",answers:c,totalSteps:B-1}),setTimeout(()=>{o({phase:"steps",currentStep:B-1,answers:c})},0)):s.phase==="steps"&&s.currentStep>0&&o({type:"BACK"})},D=()=>{if(!f.name.trim()){v("Bitte geben Sie Ihren Namen ein.");return}if(!f.email.trim()){v("Bitte geben Sie Ihre E-Mail-Adresse an.");return}if(!f.phone.trim()){v("Bitte geben Sie Ihre Telefonnummer an.");return}if(!f.plz.trim()){v("Bitte geben Sie Ihre Postleitzahl an.");return}if(!f.ort.trim()){v("Bitte geben Sie Ihren Ort an.");return}if(x&&!f.strasse.trim()){v("Bitte geben Sie Ihre Straße und Hausnummer an.");return}v(null),L.mutate({configKey:t.configKey,sourceLabel:t.sourceLabel,answers:c,name:f.name,email:f.email||void 0,phone:f.phone||void 0,practice:f.practice||void 0,message:f.message||void 0,strasse:f.strasse||void 0,plz:f.plz||void 0,ort:f.ort||void 0,_hp:w,_openedAt:_.current,tracking:qE(N.current)})},W=B+1,te=s.phase==="contact"?B:s.phase==="steps"?s.currentStep:0,F=W>0?Math.round(te/W*100):0,G=s.phase==="steps"?C[s.currentStep]:null,oe=G?c[G.id]??[]:[],ae=!G||oe.length>0,ce=s.phase==="contact"||s.phase==="steps"&&s.currentStep>0;return g.jsx("div",{ref:y,className:"wiz-overlay",onClick:A=>{A.target===y.current&&r()},role:"dialog","aria-modal":"true","aria-label":t.sourceLabel,children:g.jsxs("div",{className:"wiz-panel",children:[g.jsxs("div",{className:"wiz-header",children:[g.jsxs("div",{children:[g.jsx("p",{className:"wiz-header-label",children:"Anfrage"}),g.jsx("h2",{className:"wiz-header-title",children:t.sourceLabel})]}),g.jsx("button",{onClick:r,className:"wiz-close-btn","aria-label":"Schließen",children:g.jsx(gs,{size:18})})]}),s.phase!=="success"&&g.jsx("div",{className:"wiz-progress-track",children:g.jsx("div",{className:"wiz-progress-fill",style:{width:`${F}%`}})}),s.phase!=="success"&&B>0&&g.jsxs("div",{className:"wiz-steps-row",children:[Array.from({length:W}).map((A,R)=>{const P=R<te,re=R===te;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:`wiz-step-dot ${P?"wiz-step-dot--done":re?"wiz-step-dot--active":"wiz-step-dot--pending"}`,children:P?g.jsx(_u,{size:10,strokeWidth:3}):R+1}),R<W-1&&g.jsx("div",{className:`wiz-step-connector ${P?"wiz-step-connector--done":"wiz-step-connector--pending"}`})]},R)}),g.jsx("span",{className:"wiz-step-counter",children:te<W?`${te+1} / ${W}`:""})]}),g.jsxs("div",{className:"wiz-content","aria-live":"polite","aria-atomic":"false",children:[(s.phase==="loading"||k.isLoading)&&g.jsx("div",{className:"wiz-loading",children:g.jsx("div",{className:"wiz-spinner"})}),s.phase==="steps"&&G&&g.jsxs("div",{children:[g.jsx("h3",{className:"wiz-step-title",children:G.title}),G.subtitle&&g.jsx("p",{className:"wiz-step-subtitle",children:G.subtitle}),g.jsx("div",{children:G.options.map(A=>{const R=oe.includes(A.id);return g.jsxs("button",{onClick:()=>U(G.id,A.id,G.type),className:`wiz-option${R?" wiz-option--selected":""}`,children:[g.jsx("div",{className:`wiz-option-indicator ${G.type==="radio"?"wiz-option-indicator--radio":"wiz-option-indicator--checkbox"}${R?" wiz-option-indicator--selected":""}`,children:R&&g.jsx(_u,{size:10,color:"white",strokeWidth:3})}),g.jsx("span",{className:"wiz-option-label",children:A.label})]},A.id)})})]}),s.phase==="contact"&&g.jsxs("div",{children:[g.jsx("h3",{className:"wiz-contact-title",children:"Ihre Kontaktdaten"}),g.jsx("p",{className:"wiz-contact-subtitle",children:"Wir melden uns schnellstmöglich bei Ihnen."}),[{key:"name",label:"Name *",Icon:FE,placeholder:"Dr. Max Mustermann",type:"text",autoComplete:"name"},{key:"email",label:"E-Mail *",Icon:bg,placeholder:"praxis@beispiel.de",type:"email",autoComplete:"email"},{key:"phone",label:"Telefon *",Icon:Rr,placeholder:"+49 30 123456",type:"tel",autoComplete:"tel"},{key:"practice",label:"Praxisname",Icon:Ef,placeholder:"Gemeinschaftspraxis Muster",type:"text",autoComplete:"organization"}].map(({key:A,label:R,Icon:P,placeholder:re,type:le,autoComplete:O})=>g.jsxs("div",{children:[g.jsx("label",{className:"wiz-field-label",children:R}),g.jsxs("div",{className:"wiz-input-wrap",children:[g.jsx(P,{size:14,className:"wiz-input-icon"}),g.jsx("input",{type:le,name:A,autoComplete:O,placeholder:re,value:f[A],onChange:Q=>h($=>({...$,[A]:Q.target.value})),className:"wiz-input"})]})]},A)),g.jsxs("div",{className:"wiz-address-row",children:[g.jsxs("div",{style:{flex:"0 0 38%"},children:[g.jsx("label",{className:"wiz-field-label",children:"PLZ *"}),g.jsx("div",{className:"wiz-input-wrap",children:g.jsx("input",{type:"text",name:"plz",autoComplete:"postal-code",placeholder:"12345",value:f.plz,onChange:A=>h(R=>({...R,plz:A.target.value})),className:"wiz-input wiz-input-no-icon",maxLength:10})})]}),g.jsxs("div",{style:{flex:"1"},children:[g.jsx("label",{className:"wiz-field-label",children:"Ort *"}),g.jsx("div",{className:"wiz-input-wrap",children:g.jsx("input",{type:"text",name:"ort",autoComplete:"address-level2",placeholder:"Berlin",value:f.ort,onChange:A=>h(R=>({...R,ort:A.target.value})),className:"wiz-input wiz-input-no-icon"})})]})]}),x&&g.jsxs("div",{className:"wiz-address-section",children:[g.jsxs("p",{className:"wiz-address-hint",children:[g.jsx(Gu,{size:13,className:"inline mr-1 text-blue-500","aria-hidden":"true"}),"Lieferadresse für den Katalogversand per Post"]}),g.jsxs("div",{children:[g.jsx("label",{className:"wiz-field-label",children:"Straße & Hausnummer *"}),g.jsxs("div",{className:"wiz-input-wrap",children:[g.jsx(Gu,{size:14,className:"wiz-input-icon"}),g.jsx("input",{type:"text",name:"strasse",autoComplete:"street-address",placeholder:"Musterstraße 12",value:f.strasse,onChange:A=>h(R=>({...R,strasse:A.target.value})),className:"wiz-input"})]})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"wiz-field-label",children:"Nachricht (optional)"}),g.jsxs("div",{className:"wiz-input-wrap",children:[g.jsx(GE,{size:14,className:"wiz-textarea-icon"}),g.jsx("textarea",{placeholder:"Weitere Informationen oder Fragen...",value:f.message,onChange:A=>h(R=>({...R,message:A.target.value})),rows:3,className:"wiz-textarea"})]})]}),m&&g.jsx("p",{className:"wiz-error",children:m}),g.jsx("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"wiz-honeypot",value:w,onChange:A=>T(A.target.value)}),g.jsxs("p",{className:"wiz-privacy-note",children:["Mit dem Absenden stimmen Sie der Verarbeitung Ihrer Daten gemäß unserer"," ",g.jsx("a",{href:"/datenschutz",target:"_blank",rel:"noopener noreferrer",className:"wiz-privacy-link",children:"Datenschutzerklärung"})," ","zu. Wir verwenden Ihre Daten ausschließlich zur Bearbeitung Ihrer Anfrage."]})]}),s.phase==="success"&&g.jsxs("div",{className:"wiz-success",children:[g.jsx("div",{className:"wiz-success-icon",children:g.jsx(_u,{size:28,strokeWidth:2.5,className:"text-blue-500"})}),g.jsx("h3",{className:"wiz-success-title",children:"Anfrage gesendet!"}),g.jsx("div",{className:"wiz-success-divider"}),g.jsx("p",{className:"wiz-success-text",children:"Vielen Dank für Ihre Anfrage. Wir melden uns in der Regel innerhalb von 24 Stunden bei Ihnen."}),g.jsx("button",{onClick:r,className:"gyn-btn-primary wiz-success-close",children:"Schließen"})]})]}),s.phase!=="success"&&s.phase!=="loading"&&!k.isLoading&&g.jsxs("div",{className:"wiz-footer",children:[ce?g.jsxs("button",{onClick:j,className:"wiz-back-btn",children:[g.jsx(qP,{size:14}),"Zurück"]}):g.jsx("div",{}),s.phase==="steps"&&g.jsxs("button",{onClick:H,disabled:!ae,className:`gyn-btn-primary${ae?"":" wiz-btn-disabled"}`,children:[(s.currentStep>=B-1,"Weiter"),g.jsx(bi,{size:14})]}),s.phase==="contact"&&g.jsx("button",{onClick:D,disabled:L.isPending,className:`gyn-btn-primary${L.isPending?" wiz-btn-pending":""}`,children:L.isPending?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"wiz-spinner wiz-spinner--sm"}),"Senden…"]}):g.jsxs(g.Fragment,{children:[g.jsx(e6,{size:13}),"Anfrage senden"]})})]})]})})}function hm(){const e="//matomo.stusche.de/",t=document,r=t.createElement("script");r.async=!0,r.defer=!0,r.src=e+"matomo.js",t.body.appendChild(r)}function h6(){if(typeof window>"u"||window._matomoLoaded)return;window._matomoLoaded=!0;const e=window._paq=window._paq||[];e.push(["trackPageView"]),e.push(["enableLinkTracking"]),e.push(["disableCookies"]),e.push(["setTrackerUrl","//matomo.stusche.de/"+"matomo.php"]),e.push(["setSiteId","1"]),typeof window.requestIdleCallback=="function"?window.requestIdleCallback(hm,{timeout:3e3}):document.readyState==="complete"?setTimeout(hm,500):window.addEventListener("load",()=>setTimeout(hm,500),{once:!0})}function m6(){if(typeof window>"u")return;(window._paq=window._paq||[]).push(["optUserOut"])}function O1(e,t){e?h6():m6(),t?JE():u6()}function p6(){const[e,t]=S.useState(!1),[r,s]=S.useState(!1),[o,c]=S.useState(!1),[u,f]=S.useState(!1),h=S.useCallback(w=>{c(jP()),f(Rl()),s(w),t(!0)},[]);S.useEffect(()=>{const w=gg();if(!w){const T=setTimeout(()=>t(!0),1200);return()=>clearTimeout(T)}O1(w.statistics,w.marketing)},[]),S.useEffect(()=>{const w=()=>h(!0);return window.addEventListener(hp,w),()=>window.removeEventListener(hp,w)},[h]);const m=(w,T)=>{OP({statistics:w,marketing:T}),O1(w,T),t(!1),s(!1)},v=()=>m(!0,!0),y=()=>m(!1,!1),x=()=>m(o,u);return e?g.jsx("div",{className:"cookie-banner",role:"region","aria-label":"Datenschutzeinstellungen",children:g.jsxs("div",{className:"cookie-banner-inner",children:[g.jsxs("div",{className:"cookie-banner-top",children:[g.jsx("div",{className:"cookie-banner-icon",children:g.jsx($P,{size:18})}),g.jsxs("div",{className:"cookie-banner-content",children:[g.jsxs("p",{className:"cookie-banner-text",children:["Diese Website verwendet technisch notwendige Cookies für den sicheren Betrieb. Fonts und Ressourcen werden lokal bereitgestellt. Für anonyme Nutzungsstatistiken setzen wir ",g.jsx("strong",{children:"Matomo Analytics"})," ein – selbst gehostet in Deutschland.",Qu()&&g.jsxs(g.Fragment,{children:[" Für die Messung unserer Anzeigen nutzen wir zusätzlich ",g.jsx("strong",{children:"OpenAI Ads"}),"."]})," ","Sie entscheiden, was davon aktiv ist."," ",g.jsx("a",{href:"/datenschutz",className:"cookie-banner-link",children:"Datenschutzerklärung"})]}),r&&g.jsxs("div",{className:"cookie-banner-details",children:[g.jsxs("div",{className:"cookie-detail-item",children:[g.jsxs("div",{className:"cookie-detail-header",children:[g.jsx("span",{className:"cookie-detail-badge cookie-detail-badge--required",children:"Notwendig"}),g.jsx("strong",{children:"Technisch notwendige Cookies"})]}),g.jsx("p",{children:"Session-Cookies für den sicheren Betrieb des Praxisportals und das Speichern dieser Auswahl. Keine Abschaltung möglich."})]}),g.jsxs("div",{className:"cookie-detail-item",children:[g.jsxs("label",{className:"cookie-detail-header",style:{cursor:"pointer"},children:[g.jsx("input",{type:"checkbox",checked:o,onChange:w=>c(w.target.checked),"aria-label":"Statistik erlauben"}),g.jsx(HP,{size:14}),g.jsx("span",{className:"cookie-detail-badge cookie-detail-badge--analytics",children:"Statistik"}),g.jsx("strong",{children:"Matomo Analytics"})]}),g.jsx("p",{children:"Anonyme Besucherstatistiken. Selbst gehostet auf unserem Server in Deutschland. Keine Weitergabe an Dritte, IP-Adressen werden anonymisiert, kein Cross-Site-Tracking und keine Cookies."})]}),Qu()&&g.jsxs("div",{className:"cookie-detail-item",children:[g.jsxs("label",{className:"cookie-detail-header",style:{cursor:"pointer"},children:[g.jsx("input",{type:"checkbox",checked:u,onChange:w=>f(w.target.checked),"aria-label":"Marketing erlauben"}),g.jsx(FP,{size:14}),g.jsx("span",{className:"cookie-detail-badge cookie-detail-badge--marketing",children:"Marketing"}),g.jsx("strong",{children:"OpenAI Ads (ChatGPT Ads)"})]}),g.jsx("p",{children:"Misst, ob eine Anfrage auf eine unserer Anzeigen in ChatGPT zurückgeht. Dabei werden Daten an OpenAI in den USA übermittelt. Ohne Ihre Zustimmung wird nichts geladen und keine Verbindung zu OpenAI aufgebaut."})]})]}),g.jsx("button",{onClick:()=>s(!r),className:"cookie-banner-details-toggle",children:r?"Details ausblenden":"Einstellungen anzeigen"})]})]}),g.jsxs("div",{className:"cookie-banner-actions",children:[g.jsx("button",{onClick:v,className:"cookie-banner-btn cookie-banner-btn--accept",children:"Alle akzeptieren"}),r&&g.jsx("button",{onClick:x,className:"cookie-banner-btn cookie-banner-btn--necessary",children:"Auswahl speichern"}),g.jsx("button",{onClick:y,className:"cookie-banner-btn cookie-banner-btn--necessary",children:"Nur notwendige"}),g.jsx("button",{onClick:y,className:"cookie-banner-btn cookie-banner-btn--close","aria-label":"Ablehnen und schließen",children:g.jsx(gs,{size:14})})]})]})}):null}const g6=S.createContext(void 0);function y6({children:e,defaultTheme:t="light",switchable:r=!1}){const[s,o]=S.useState(()=>r&&localStorage.getItem("theme")||t);S.useEffect(()=>{const u=document.documentElement;s==="dark"?u.classList.add("dark"):u.classList.remove("dark"),r&&localStorage.setItem("theme",s)},[s,r]);const c=r?()=>{o(u=>u==="light"?"dark":"light")}:void 0;return g.jsx(g6.Provider,{value:{theme:s,toggleTheme:c,switchable:r},children:e})}const Sg=S.createContext({});function Za(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Eg=typeof window<"u",_f=Eg?S.useLayoutEffect:S.useEffect,Af=S.createContext(null);function Tg(e,t){e.indexOf(t)===-1&&e.push(t)}function _g(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const lr=(e,t,r)=>r>t?t:r<e?e:r;let bl=()=>{};const Vr={},tT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function nT(e){return typeof e=="object"&&e!==null}const rT=e=>/^0[^.\s]+$/u.test(e);function Ag(e){let t;return()=>(t===void 0&&(t=e()),t)}const nn=e=>e,v6=(e,t)=>r=>t(e(r)),Dl=(...e)=>e.reduce(v6),Pa=(e,t,r)=>{const s=t-e;return s===0?1:(r-e)/s};class jg{constructor(){this.subscriptions=[]}add(t){return Tg(this.subscriptions,t),()=>_g(this.subscriptions,t)}notify(t,r,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,s);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sr=e=>e*1e3,Nn=e=>e/1e3;function Og(e,t){return t?e*(1e3/t):0}const iT=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,b6=1e-7,x6=12;function w6(e,t,r,s,o){let c,u,f=0;do u=t+(r-t)/2,c=iT(u,s,o)-e,c>0?r=u:t=u;while(Math.abs(c)>b6&&++f<x6);return u}function Pl(e,t,r,s){if(e===t&&r===s)return nn;const o=c=>w6(c,0,1,e,r);return c=>c===0||c===1?c:iT(o(c),t,s)}const sT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aT=e=>t=>1-e(1-t),oT=Pl(.33,1.53,.69,.99),Cg=aT(oT),lT=sT(Cg),cT=e=>(e*=2)<1?.5*Cg(e):.5*(2-Math.pow(2,-10*(e-1))),kg=e=>1-Math.sin(Math.acos(e)),uT=aT(kg),fT=sT(kg),S6=Pl(.42,0,1,1),E6=Pl(0,0,.58,1),dT=Pl(.42,0,.58,1),T6=e=>Array.isArray(e)&&typeof e[0]!="number",hT=e=>Array.isArray(e)&&typeof e[0]=="number",_6={linear:nn,easeIn:S6,easeInOut:dT,easeOut:E6,circIn:kg,circInOut:fT,circOut:uT,backIn:Cg,backInOut:lT,backOut:oT,anticipate:cT},A6=e=>typeof e=="string",C1=e=>{if(hT(e)){bl(e.length===4);const[t,r,s,o]=e;return Pl(t,r,s,o)}else if(A6(e))return _6[e];return e},hu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function j6(e,t){let r=new Set,s=new Set,o=!1,c=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(v){u.has(v)&&(m.schedule(v),e()),v(f)}const m={schedule:(v,y=!1,x=!1)=>{const T=x&&o?r:s;return y&&u.add(v),T.has(v)||T.add(v),v},cancel:v=>{s.delete(v),u.delete(v)},process:v=>{if(f=v,o){c=!0;return}o=!0,[r,s]=[s,r],r.forEach(h),r.clear(),o=!1,c&&(c=!1,m.process(v))}};return m}const O6=40;function mT(e,t){let r=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>r=!0,u=hu.reduce((C,B)=>(C[B]=j6(c),C),{}),{setup:f,read:h,resolveKeyframes:m,preUpdate:v,update:y,preRender:x,render:w,postRender:T}=u,_=()=>{const C=Vr.useManualTiming?o.timestamp:performance.now();r=!1,Vr.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(C-o.timestamp,O6),1)),o.timestamp=C,o.isProcessing=!0,f.process(o),h.process(o),m.process(o),v.process(o),y.process(o),x.process(o),w.process(o),T.process(o),o.isProcessing=!1,r&&t&&(s=!1,e(_))},N=()=>{r=!0,s=!0,o.isProcessing||e(_)};return{schedule:hu.reduce((C,B)=>{const U=u[B];return C[B]=(H,j=!1,D=!1)=>(r||N(),U.schedule(H,j,D)),C},{}),cancel:C=>{for(let B=0;B<hu.length;B++)u[hu[B]].cancel(C)},state:o,steps:u}}const{schedule:Ie,cancel:Gn,state:Et,steps:mm}=mT(typeof requestAnimationFrame<"u"?requestAnimationFrame:nn,!0);let Au;function C6(){Au=void 0}const tn={now:()=>(Au===void 0&&tn.set(Et.isProcessing||Vr.useManualTiming?Et.timestamp:performance.now()),Au),set:e=>{Au=e,queueMicrotask(C6)}},pT=e=>t=>typeof t=="string"&&t.startsWith(e),zg=pT("--"),k6=pT("var(--"),Ng=e=>k6(e)?z6.test(e.split("/*")[0].trim()):!1,z6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ga={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xl={...Ga,transform:e=>lr(0,1,e)},mu={...Ga,default:1},rl=e=>Math.round(e*1e5)/1e5,Mg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function N6(e){return e==null}const M6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rg=(e,t)=>r=>!!(typeof r=="string"&&M6.test(r)&&r.startsWith(e)||t&&!N6(r)&&Object.prototype.hasOwnProperty.call(r,t)),gT=(e,t,r)=>s=>{if(typeof s!="string")return s;const[o,c,u,f]=s.match(Mg);return{[e]:parseFloat(o),[t]:parseFloat(c),[r]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},R6=e=>lr(0,255,e),pm={...Ga,transform:e=>Math.round(R6(e))},as={test:Rg("rgb","red"),parse:gT("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:s=1})=>"rgba("+pm.transform(e)+", "+pm.transform(t)+", "+pm.transform(r)+", "+rl(xl.transform(s))+")"};function D6(e){let t="",r="",s="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const gp={test:Rg("#"),parse:D6,transform:as.transform},Ll=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vi=Ll("deg"),ar=Ll("%"),be=Ll("px"),P6=Ll("vh"),L6=Ll("vw"),k1={...ar,parse:e=>ar.parse(e)/100,transform:e=>ar.transform(e*100)},Sa={test:Rg("hsl","hue"),parse:gT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+ar.transform(rl(t))+", "+ar.transform(rl(r))+", "+rl(xl.transform(s))+")"},gt={test:e=>as.test(e)||gp.test(e)||Sa.test(e),parse:e=>as.test(e)?as.parse(e):Sa.test(e)?Sa.parse(e):gp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?as.transform(e):Sa.transform(e),getAnimatableNone:e=>{const t=gt.parse(e);return t.alpha=0,gt.transform(t)}},U6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function V6(e){return isNaN(e)&&typeof e=="string"&&(e.match(Mg)?.length||0)+(e.match(U6)?.length||0)>0}const yT="number",vT="color",B6="var",H6="var(",z1="${}",q6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wl(e){const t=e.toString(),r=[],s={color:[],number:[],var:[]},o=[];let c=0;const f=t.replace(q6,h=>(gt.test(h)?(s.color.push(c),o.push(vT),r.push(gt.parse(h))):h.startsWith(H6)?(s.var.push(c),o.push(B6),r.push(h)):(s.number.push(c),o.push(yT),r.push(parseFloat(h))),++c,z1)).split(z1);return{values:r,split:f,indexes:s,types:o}}function bT(e){return wl(e).values}function xT(e){const{split:t,types:r}=wl(e),s=t.length;return o=>{let c="";for(let u=0;u<s;u++)if(c+=t[u],o[u]!==void 0){const f=r[u];f===yT?c+=rl(o[u]):f===vT?c+=gt.transform(o[u]):c+=o[u]}return c}}const I6=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e;function $6(e){const t=bT(e);return xT(e)(t.map(I6))}const Oi={test:V6,parse:bT,createTransformer:xT,getAnimatableNone:$6};function gm(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Z6({hue:e,saturation:t,lightness:r,alpha:s}){e/=360,t/=100,r/=100;let o=0,c=0,u=0;if(!t)o=c=u=r;else{const f=r<.5?r*(1+t):r+t-r*t,h=2*r-f;o=gm(h,f,e+1/3),c=gm(h,f,e),u=gm(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function Fu(e,t){return r=>r>0?t:e}const tt=(e,t,r)=>e+(t-e)*r,ym=(e,t,r)=>{const s=e*e,o=r*(t*t-s)+s;return o<0?0:Math.sqrt(o)},G6=[gp,as,Sa],K6=e=>G6.find(t=>t.test(e));function N1(e){const t=K6(e);if(!t)return!1;let r=t.parse(e);return t===Sa&&(r=Z6(r)),r}const M1=(e,t)=>{const r=N1(e),s=N1(t);if(!r||!s)return Fu(e,t);const o={...r};return c=>(o.red=ym(r.red,s.red,c),o.green=ym(r.green,s.green,c),o.blue=ym(r.blue,s.blue,c),o.alpha=tt(r.alpha,s.alpha,c),as.transform(o))},yp=new Set(["none","hidden"]);function Q6(e,t){return yp.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function F6(e,t){return r=>tt(e,t,r)}function Dg(e){return typeof e=="number"?F6:typeof e=="string"?Ng(e)?Fu:gt.test(e)?M1:W6:Array.isArray(e)?wT:typeof e=="object"?gt.test(e)?M1:Y6:Fu}function wT(e,t){const r=[...e],s=r.length,o=e.map((c,u)=>Dg(c)(c,t[u]));return c=>{for(let u=0;u<s;u++)r[u]=o[u](c);return r}}function Y6(e,t){const r={...e,...t},s={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(s[o]=Dg(e[o])(e[o],t[o]));return o=>{for(const c in s)r[c]=s[c](o);return r}}function X6(e,t){const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const c=t.types[o],u=e.indexes[c][s[c]],f=e.values[u]??0;r[o]=f,s[c]++}return r}const W6=(e,t)=>{const r=Oi.createTransformer(t),s=wl(e),o=wl(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?yp.has(e)&&!o.values.length||yp.has(t)&&!s.values.length?Q6(e,t):Dl(wT(X6(s,o),o.values),r):Fu(e,t)};function ST(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?tt(e,t,r):Dg(e)(e,t)}const J6=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Ie.update(t,r),stop:()=>Gn(t),now:()=>Et.isProcessing?Et.timestamp:tn.now()}},ET=(e,t,r=10)=>{let s="";const o=Math.max(Math.round(t/r),2);for(let c=0;c<o;c++)s+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Yu=2e4;function Pg(e){let t=0;const r=50;let s=e.next(t);for(;!s.done&&t<Yu;)t+=r,s=e.next(t);return t>=Yu?1/0:t}function eL(e,t=100,r){const s=r({...e,keyframes:[0,t]}),o=Math.min(Pg(s),Yu);return{type:"keyframes",ease:c=>s.next(o*c).value/t,duration:Nn(o)}}const tL=5;function TT(e,t,r){const s=Math.max(t-tL,0);return Og(r-e(s),t-s)}const st={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},vm=.001;function nL({duration:e=st.duration,bounce:t=st.bounce,velocity:r=st.velocity,mass:s=st.mass}){let o,c,u=1-t;u=lr(st.minDamping,st.maxDamping,u),e=lr(st.minDuration,st.maxDuration,Nn(e)),u<1?(o=m=>{const v=m*u,y=v*e,x=v-r,w=vp(m,u),T=Math.exp(-y);return vm-x/w*T},c=m=>{const y=m*u*e,x=y*r+r,w=Math.pow(u,2)*Math.pow(m,2)*e,T=Math.exp(-y),_=vp(Math.pow(m,2),u);return(-o(m)+vm>0?-1:1)*((x-w)*T)/_}):(o=m=>{const v=Math.exp(-m*e),y=(m-r)*e+1;return-vm+v*y},c=m=>{const v=Math.exp(-m*e),y=(r-m)*(e*e);return v*y});const f=5/e,h=iL(o,c,f);if(e=sr(e),isNaN(h))return{stiffness:st.stiffness,damping:st.damping,duration:e};{const m=Math.pow(h,2)*s;return{stiffness:m,damping:u*2*Math.sqrt(s*m),duration:e}}}const rL=12;function iL(e,t,r){let s=r;for(let o=1;o<rL;o++)s=s-e(s)/t(s);return s}function vp(e,t){return e*Math.sqrt(1-t*t)}const sL=["duration","bounce"],aL=["stiffness","damping","mass"];function R1(e,t){return t.some(r=>e[r]!==void 0)}function oL(e){let t={velocity:st.velocity,stiffness:st.stiffness,damping:st.damping,mass:st.mass,isResolvedFromDuration:!1,...e};if(!R1(e,aL)&&R1(e,sL))if(e.visualDuration){const r=e.visualDuration,s=2*Math.PI/(r*1.2),o=s*s,c=2*lr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:st.mass,stiffness:o,damping:c}}else{const r=nL(e);t={...t,...r,mass:st.mass},t.isResolvedFromDuration=!0}return t}function Xu(e=st.visualDuration,t=st.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=r;const c=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],f={done:!1,value:c},{stiffness:h,damping:m,mass:v,duration:y,velocity:x,isResolvedFromDuration:w}=oL({...r,velocity:-Nn(r.velocity||0)}),T=x||0,_=m/(2*Math.sqrt(h*v)),N=u-c,k=Nn(Math.sqrt(h/v)),L=Math.abs(N)<5;s||(s=L?st.restSpeed.granular:st.restSpeed.default),o||(o=L?st.restDelta.granular:st.restDelta.default);let C;if(_<1){const U=vp(k,_);C=H=>{const j=Math.exp(-_*k*H);return u-j*((T+_*k*N)/U*Math.sin(U*H)+N*Math.cos(U*H))}}else if(_===1)C=U=>u-Math.exp(-k*U)*(N+(T+k*N)*U);else{const U=k*Math.sqrt(_*_-1);C=H=>{const j=Math.exp(-_*k*H),D=Math.min(U*H,300);return u-j*((T+_*k*N)*Math.sinh(D)+U*N*Math.cosh(D))/U}}const B={calculatedDuration:w&&y||null,next:U=>{const H=C(U);if(w)f.done=U>=y;else{let j=U===0?T:0;_<1&&(j=U===0?sr(T):TT(C,U,H));const D=Math.abs(j)<=s,W=Math.abs(u-H)<=o;f.done=D&&W}return f.value=f.done?u:H,f},toString:()=>{const U=Math.min(Pg(B),Yu),H=ET(j=>B.next(U*j).value,U,30);return U+"ms "+H},toTransition:()=>{}};return B}Xu.applyToOptions=e=>{const t=eL(e,100,Xu);return e.ease=t.ease,e.duration=sr(t.duration),e.type="keyframes",e};function bp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:h,restDelta:m=.5,restSpeed:v}){const y=e[0],x={done:!1,value:y},w=D=>f!==void 0&&D<f||h!==void 0&&D>h,T=D=>f===void 0?h:h===void 0||Math.abs(f-D)<Math.abs(h-D)?f:h;let _=r*t;const N=y+_,k=u===void 0?N:u(N);k!==N&&(_=k-y);const L=D=>-_*Math.exp(-D/s),C=D=>k+L(D),B=D=>{const W=L(D),te=C(D);x.done=Math.abs(W)<=m,x.value=x.done?k:te};let U,H;const j=D=>{w(x.value)&&(U=D,H=Xu({keyframes:[x.value,T(x.value)],velocity:TT(C,D,x.value),damping:o,stiffness:c,restDelta:m,restSpeed:v}))};return j(0),{calculatedDuration:null,next:D=>{let W=!1;return!H&&U===void 0&&(W=!0,B(D),j(D)),U!==void 0&&D>=U?H.next(D-U):(!W&&B(D),x)}}}function lL(e,t,r){const s=[],o=r||Vr.mix||ST,c=e.length-1;for(let u=0;u<c;u++){let f=o(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]||nn:t;f=Dl(h,f)}s.push(f)}return s}function Lg(e,t,{clamp:r=!0,ease:s,mixer:o}={}){const c=e.length;if(bl(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=lL(t,s,o),h=f.length,m=v=>{if(u&&v<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(v<e[y+1]);y++);const x=Pa(e[y],e[y+1],v);return f[y](x)};return r?v=>m(lr(e[0],e[c-1],v)):m}function cL(e,t){const r=e[e.length-1];for(let s=1;s<=t;s++){const o=Pa(0,t,s);e.push(tt(r,1,o))}}function _T(e){const t=[0];return cL(t,e.length-1),t}function uL(e,t){return e.map(r=>r*t)}function fL(e,t){return e.map(()=>t||dT).splice(0,e.length-1)}function il({duration:e=300,keyframes:t,times:r,ease:s="easeInOut"}){const o=T6(s)?s.map(C1):C1(s),c={done:!1,value:t[0]},u=uL(r&&r.length===t.length?r:_T(t),e),f=Lg(u,t,{ease:Array.isArray(o)?o:fL(t,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const dL=e=>e!==null;function Ug(e,{repeat:t,repeatType:r="loop"},s,o=1){const c=e.filter(dL),f=o<0||t&&r!=="loop"&&t%2===1?0:c.length-1;return!f||s===void 0?c[f]:s}const hL={decay:bp,inertia:bp,tween:il,keyframes:il,spring:Xu};function AT(e){typeof e.type=="string"&&(e.type=hL[e.type])}class Vg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const mL=e=>e/100;class Bg extends Vg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;AT(t);const{type:r=il,repeat:s=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=t;let{keyframes:f}=t;const h=r||il;h!==il&&typeof f[0]!="number"&&(this.mixKeyframes=Dl(mL,ST(f[0],f[1])),f=[0,100]);const m=h({...t,keyframes:f});c==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...f].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=Pg(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=m}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:s,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:v,repeat:y,repeatType:x,repeatDelay:w,type:T,onUpdate:_,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const k=this.currentTime-m*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?k<0:k>o;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,B=s;if(y){const D=Math.min(this.currentTime,o)/f;let W=Math.floor(D),te=D%1;!te&&D>=1&&(te=1),te===1&&W--,W=Math.min(W,y+1),!!(W%2)&&(x==="reverse"?(te=1-te,w&&(te-=w/f)):x==="mirror"&&(B=u)),C=lr(0,1,te)*f}const U=L?{done:!1,value:v[0]}:B.next(C);c&&(U.value=c(U.value));let{done:H}=U;!L&&h!==null&&(H=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&H);return j&&T!==bp&&(U.value=Ug(v,this.options,N,this.speed)),_&&_(U.value),j&&this.finish(),U}then(t,r){return this.finished.then(t,r)}get duration(){return Nn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(this.currentTime)}set time(t){t=sr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Nn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=J6,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function pL(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const os=e=>e*180/Math.PI,xp=e=>{const t=os(Math.atan2(e[1],e[0]));return wp(t)},gL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:xp,rotateZ:xp,skewX:e=>os(Math.atan(e[1])),skewY:e=>os(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},wp=e=>(e=e%360,e<0&&(e+=360),e),D1=xp,P1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),L1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:P1,scaleY:L1,scale:e=>(P1(e)+L1(e))/2,rotateX:e=>wp(os(Math.atan2(e[6],e[5]))),rotateY:e=>wp(os(Math.atan2(-e[2],e[0]))),rotateZ:D1,rotate:D1,skewX:e=>os(Math.atan(e[4])),skewY:e=>os(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Sp(e){return e.includes("scale")?1:0}function Ep(e,t){if(!e||e==="none")return Sp(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(r)s=yL,o=r;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=gL,o=f}if(!o)return Sp(t);const c=s[t],u=o[1].split(",").map(bL);return typeof c=="function"?c(u):u[c]}const vL=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Ep(r,t)};function bL(e){return parseFloat(e.trim())}const Ka=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qa=new Set(Ka),U1=e=>e===Ga||e===be,xL=new Set(["x","y","z"]),wL=Ka.filter(e=>!xL.has(e));function SL(e){const t=[];return wL.forEach(r=>{const s=e.getValue(r);s!==void 0&&(t.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),t}const cs={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ep(t,"x"),y:(e,{transform:t})=>Ep(t,"y")};cs.translateX=cs.x;cs.translateY=cs.y;const us=new Set;let Tp=!1,_p=!1,Ap=!1;function jT(){if(_p){const e=Array.from(us).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),r=new Map;t.forEach(s=>{const o=SL(s);o.length&&(r.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=r.get(s);o&&o.forEach(([c,u])=>{s.getValue(c)?.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}_p=!1,Tp=!1,us.forEach(e=>e.complete(Ap)),us.clear()}function OT(){us.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_p=!0)})}function EL(){Ap=!0,OT(),jT(),Ap=!1}class Hg{constructor(t,r,s,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=s,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(us.add(this),Tp||(Tp=!0,Ie.read(OT),Ie.resolveKeyframes(jT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:s,motionValue:o}=this;if(t[0]===null){const c=o?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(s&&r){const f=s.readValue(r,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}pL(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),us.delete(this)}cancel(){this.state==="scheduled"&&(us.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const TL=e=>e.startsWith("--");function _L(e,t,r){TL(t)?e.style.setProperty(t,r):e.style[t]=r}const CT=Ag(()=>window.ScrollTimeline!==void 0),AL={};function jL(e,t){const r=Ag(e);return()=>AL[t]??r()}const kT=jL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),el=([e,t,r,s])=>`cubic-bezier(${e}, ${t}, ${r}, ${s})`,V1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function zT(e,t){if(e)return typeof e=="function"?kT()?ET(e,t):"ease-out":hT(e)?el(e):Array.isArray(e)?e.map(r=>zT(r,t)||V1.easeOut):V1[e]}function OL(e,t,r,{delay:s=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeOut",times:h}={},m=void 0){const v={[t]:r};h&&(v.offset=h);const y=zT(f,o);Array.isArray(y)&&(v.easing=y);const x={delay:s,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return m&&(x.pseudoElement=m),e.animate(v,x)}function NT(e){return typeof e=="function"&&"applyToOptions"in e}function CL({type:e,...t}){return NT(e)&&kT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class kL extends Vg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:s,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:f,onComplete:h}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,bl(typeof t.type!="string");const m=CL(t);this.animation=OL(r,s,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const v=Ug(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(v):_L(r,s,v),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Nn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Nn(t)}get time(){return Nn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=sr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&CT()?(this.animation.timeline=t,nn):r(this)}}const MT={anticipate:cT,backInOut:lT,circInOut:fT};function zL(e){return e in MT}function NL(e){typeof e.ease=="string"&&zL(e.ease)&&(e.ease=MT[e.ease])}const B1=10;class ML extends kL{constructor(t){NL(t),AT(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:s,onComplete:o,element:c,...u}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const f=new Bg({...u,autoplay:!1}),h=sr(this.finishedTime??this.time);r.setWithVelocity(f.sample(h-B1).value,f.sample(h).value,B1),f.stop()}}const H1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Oi.test(e)||e==="0")&&!e.startsWith("url("));function RL(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function DL(e,t,r,s){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=H1(o,t),f=H1(c,t);return!u||!f?!1:RL(e)||(r==="spring"||NT(r))&&s}function jp(e){e.duration=0,e.type="keyframes"}const PL=new Set(["opacity","clipPath","filter","transform"]),LL=Ag(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function UL(e){const{motionValue:t,name:r,repeatDelay:s,repeatType:o,damping:c,type:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=t.owner.getProps();return LL()&&r&&PL.has(r)&&(r!=="transform"||!m)&&!h&&!s&&o!=="mirror"&&c!==0&&u!=="inertia"}const VL=40;class BL extends Vg{constructor({autoplay:t=!0,delay:r=0,type:s="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:f,name:h,motionValue:m,element:v,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const x={autoplay:t,delay:r,type:s,repeat:o,repeatDelay:c,repeatType:u,name:h,motionValue:m,element:v,...y},w=v?.KeyframeResolver||Hg;this.keyframeResolver=new w(f,(T,_,N)=>this.onKeyframesResolved(T,_,x,!N),h,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,s,o){this.keyframeResolver=void 0;const{name:c,type:u,velocity:f,delay:h,isHandoff:m,onUpdate:v}=s;this.resolvedAt=tn.now(),DL(t,c,u,f)||((Vr.instantAnimations||!h)&&v?.(Ug(t,s,r)),t[0]=t[t.length-1],jp(s),s.repeat=0);const x={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>VL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:t},w=!m&&UL(x)?new ML({...x,element:x.motionValue.owner.current}):new Bg(x);w.finished.then(()=>this.notifyFinished()).catch(nn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),EL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const HL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qL(e){const t=HL.exec(e);if(!t)return[,];const[,r,s,o]=t;return[`--${r??s}`,o]}function RT(e,t,r=1){const[s,o]=qL(e);if(!s)return;const c=window.getComputedStyle(t).getPropertyValue(s);if(c){const u=c.trim();return tT(u)?parseFloat(u):u}return Ng(o)?RT(o,t,r+1):o}function qg(e,t){return e?.[t]??e?.default??e}const DT=new Set(["width","height","top","left","right","bottom",...Ka]),IL={test:e=>e==="auto",parse:e=>e},PT=e=>t=>t.test(e),LT=[Ga,be,ar,vi,L6,P6,IL],q1=e=>LT.find(PT(e));function $L(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rT(e):!0}const ZL=new Set(["brightness","contrast","saturate","opacity"]);function GL(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=r.match(Mg)||[];if(!s)return e;const o=r.replace(s,"");let c=ZL.has(t)?1:0;return s!==r&&(c*=100),t+"("+c+o+")"}const KL=/\b([a-z-]*)\(.*?\)/gu,Op={...Oi,getAnimatableNone:e=>{const t=e.match(KL);return t?t.map(GL).join(" "):e}},I1={...Ga,transform:Math.round},QL={rotate:vi,rotateX:vi,rotateY:vi,rotateZ:vi,scale:mu,scaleX:mu,scaleY:mu,scaleZ:mu,skew:vi,skewX:vi,skewY:vi,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:xl,originX:k1,originY:k1,originZ:be},Ig={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be,...QL,zIndex:I1,fillOpacity:xl,strokeOpacity:xl,numOctaves:I1},FL={...Ig,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Op,WebkitFilter:Op},UT=e=>FL[e];function VT(e,t){let r=UT(e);return r!==Op&&(r=Oi),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const YL=new Set(["auto","none","0"]);function XL(e,t,r){let s=0,o;for(;s<e.length&&!o;){const c=e[s];typeof c=="string"&&!YL.has(c)&&wl(c).values.length&&(o=e[s]),s++}if(o&&r)for(const c of t)e[c]=VT(r,o)}class WL extends Hg{constructor(t,r,s,o,c){super(t,r,s,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let m=t[h];if(typeof m=="string"&&(m=m.trim(),Ng(m))){const v=RT(m,r.current);v!==void 0&&(t[h]=v),h===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!DT.has(s)||t.length!==2)return;const[o,c]=t,u=q1(o),f=q1(c);if(u!==f)if(U1(u)&&U1(f))for(let h=0;h<t.length;h++){const m=t[h];typeof m=="string"&&(t[h]=parseFloat(m))}else cs[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,s=[];for(let o=0;o<t.length;o++)(t[o]===null||$L(t[o]))&&s.push(o);s.length&&XL(t,s,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cs[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(s,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const c=s.length-1,u=s[c];s[c]=cs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function BT(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const HT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $g(e){return nT(e)&&"offsetHeight"in e}const $1=30,JL=e=>!isNaN(parseFloat(e)),sl={current:void 0};class e8{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const o=tn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new jg);const s=this.events[t].add(r);return t==="change"?()=>{s(),Ie.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return sl.current&&sl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$1)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,$1);return Og(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function In(e,t){return new e8(e,t)}const{schedule:Zg}=mT(queueMicrotask,!1),Bn={x:!1,y:!1};function qT(){return Bn.x||Bn.y}function t8(e){return e==="x"||e==="y"?Bn[e]?null:(Bn[e]=!0,()=>{Bn[e]=!1}):Bn.x||Bn.y?null:(Bn.x=Bn.y=!0,()=>{Bn.x=Bn.y=!1})}function IT(e,t){const r=BT(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[r,o,()=>s.abort()]}function Z1(e){return!(e.pointerType==="touch"||qT())}function n8(e,t,r={}){const[s,o,c]=IT(e,r),u=f=>{if(!Z1(f))return;const{target:h}=f,m=t(h,f);if(typeof m!="function"||!h)return;const v=y=>{Z1(y)&&(m(y),h.removeEventListener("pointerleave",v))};h.addEventListener("pointerleave",v,o)};return s.forEach(f=>{f.addEventListener("pointerenter",u,o)}),c}const $T=(e,t)=>t?e===t?!0:$T(e,t.parentElement):!1,Gg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,r8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function i8(e){return r8.has(e.tagName)||e.tabIndex!==-1}const ju=new WeakSet;function G1(e){return t=>{t.key==="Enter"&&e(t)}}function bm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const s8=(e,t)=>{const r=e.currentTarget;if(!r)return;const s=G1(()=>{if(ju.has(r))return;bm(r,"down");const o=G1(()=>{bm(r,"up")}),c=()=>bm(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",c,t)});r.addEventListener("keydown",s,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),t)};function K1(e){return Gg(e)&&!qT()}function a8(e,t,r={}){const[s,o,c]=IT(e,r),u=f=>{const h=f.currentTarget;if(!K1(f))return;ju.add(h);const m=t(h,f),v=(w,T)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),ju.has(h)&&ju.delete(h),K1(w)&&typeof m=="function"&&m(w,{success:T})},y=w=>{v(w,h===window||h===document||r.useGlobalTarget||$T(h,w.target))},x=w=>{v(w,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",x,o)};return s.forEach(f=>{(r.useGlobalTarget?window:f).addEventListener("pointerdown",u,o),$g(f)&&(f.addEventListener("focus",m=>s8(m,o)),!i8(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function Kg(e){return nT(e)&&"ownerSVGElement"in e}const Ou=new WeakMap;let Cu;const ZT=(e,t,r)=>(s,o)=>o&&o[0]?o[0][e+"Size"]:Kg(s)&&"getBBox"in s?s.getBBox()[t]:s[r],o8=ZT("inline","width","offsetWidth"),l8=ZT("block","height","offsetHeight");function c8({target:e,borderBoxSize:t}){Ou.get(e)?.forEach(r=>{r(e,{get width(){return o8(e,t)},get height(){return l8(e,t)}})})}function u8(e){e.forEach(c8)}function f8(){typeof ResizeObserver>"u"||(Cu=new ResizeObserver(u8))}function d8(e,t){Cu||f8();const r=BT(e);return r.forEach(s=>{let o=Ou.get(s);o||(o=new Set,Ou.set(s,o)),o.add(t),Cu?.observe(s)}),()=>{r.forEach(s=>{const o=Ou.get(s);o?.delete(t),o?.size||Cu?.unobserve(s)})}}const ku=new Set;let Ea;function h8(){Ea=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ku.forEach(t=>t(e))},window.addEventListener("resize",Ea)}function m8(e){return ku.add(e),Ea||h8(),()=>{ku.delete(e),!ku.size&&typeof Ea=="function"&&(window.removeEventListener("resize",Ea),Ea=void 0)}}function p8(e,t){return typeof e=="function"?m8(e):d8(e,t)}function GT(e,t){let r;const s=()=>{const{currentTime:o}=t,u=(o===null?0:o.value)/100;r!==u&&e(u),r=u};return Ie.preUpdate(s,!0),()=>Gn(s)}function g8(e){return Kg(e)&&e.tagName==="svg"}function y8(...e){const t=!Array.isArray(e[0]),r=t?0:-1,s=e[0+r],o=e[1+r],c=e[2+r],u=e[3+r],f=Lg(o,c,u);return t?f(s):f}const Pt=e=>!!(e&&e.getVelocity),v8=[...LT,gt,Oi],b8=e=>v8.find(PT(e)),jf=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Q1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function x8(...e){return t=>{let r=!1;const s=e.map(o=>{const c=Q1(o,t);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():Q1(e[o],null)}}}}function w8(...e){return S.useCallback(x8(...e),e)}class S8 extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const s=r.offsetParent,o=$g(s)&&s.offsetWidth||0,c=this.props.sizeRef.current;c.height=r.offsetHeight||0,c.width=r.offsetWidth||0,c.top=r.offsetTop,c.left=r.offsetLeft,c.right=o-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function E8({children:e,isPresent:t,anchorX:r,root:s}){const o=S.useId(),c=S.useRef(null),u=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=S.useContext(jf),h=w8(c,e?.ref);return S.useInsertionEffect(()=>{const{width:m,height:v,top:y,left:x,right:w}=u.current;if(t||!c.current||!m||!v)return;const T=r==="left"?`left: ${x}`:`right: ${w}`;c.current.dataset.motionPopId=o;const _=document.createElement("style");f&&(_.nonce=f);const N=s??document.head;return N.appendChild(_),_.sheet&&_.sheet.insertRule(`
[data-motion-pop-id="${o}"] {
position: absolute !important;
width: ${m}px !important;
height: ${v}px !important;
${T}px !important;
top: ${y}px !important;
}
`),()=>{N.contains(_)&&N.removeChild(_)}},[t]),g.jsx(S8,{isPresent:t,childRef:c,sizeRef:u,children:S.cloneElement(e,{ref:h})})}const T8=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:o,presenceAffectsLayout:c,mode:u,anchorX:f,root:h})=>{const m=Za(_8),v=S.useId();let y=!0,x=S.useMemo(()=>(y=!1,{id:v,initial:t,isPresent:r,custom:o,onExitComplete:w=>{m.set(w,!0);for(const T of m.values())if(!T)return;s&&s()},register:w=>(m.set(w,!1),()=>m.delete(w))}),[r,m,s]);return c&&y&&(x={...x}),S.useMemo(()=>{m.forEach((w,T)=>m.set(T,!1))},[r]),S.useEffect(()=>{!r&&!m.size&&s&&s()},[r]),u==="popLayout"&&(e=g.jsx(E8,{isPresent:r,anchorX:f,root:h,children:e})),g.jsx(Af.Provider,{value:x,children:e})};function _8(){return new Map}function KT(e=!0){const t=S.useContext(Af);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:o}=t,c=S.useId();S.useEffect(()=>{if(e)return o(c)},[e]);const u=S.useCallback(()=>e&&s&&s(c),[c,s,e]);return!r&&s?[!1,u]:[!0]}const pu=e=>e.key||"";function F1(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const va=({children:e,custom:t,initial:r=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1,anchorX:f="left",root:h})=>{const[m,v]=KT(u),y=S.useMemo(()=>F1(e),[e]),x=u&&!m?[]:y.map(pu),w=S.useRef(!0),T=S.useRef(y),_=Za(()=>new Map),[N,k]=S.useState(y),[L,C]=S.useState(y);_f(()=>{w.current=!1,T.current=y;for(let H=0;H<L.length;H++){const j=pu(L[H]);x.includes(j)?_.delete(j):_.get(j)!==!0&&_.set(j,!1)}},[L,x.length,x.join("-")]);const B=[];if(y!==N){let H=[...y];for(let j=0;j<L.length;j++){const D=L[j],W=pu(D);x.includes(W)||(H.splice(j,0,D),B.push(D))}return c==="wait"&&B.length&&(H=B),C(F1(H)),k(y),null}const{forceRender:U}=S.useContext(Sg);return g.jsx(g.Fragment,{children:L.map(H=>{const j=pu(H),D=u&&!m?!1:y===L||x.includes(j),W=()=>{if(_.has(j))_.set(j,!0);else return;let te=!0;_.forEach(F=>{F||(te=!1)}),te&&(U?.(),C(T.current),u&&v?.(),s&&s())};return g.jsx(T8,{isPresent:D,initial:!w.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:c,root:h,onExitComplete:D?void 0:W,anchorX:f,children:H},j)})})},QT=S.createContext({strict:!1}),Y1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},La={};for(const e in Y1)La[e]={isEnabled:t=>Y1[e].some(r=>!!t[r])};function A8(e){for(const t in e)La[t]={...La[t],...e[t]}}const j8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||j8.has(e)}let FT=e=>!Wu(e);function O8(e){typeof e=="function"&&(FT=t=>t.startsWith("on")?!Wu(t):e(t))}try{O8(require("@emotion/is-prop-valid").default)}catch{}function C8(e,t,r){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(FT(o)||r===!0&&Wu(o)||!t&&!Wu(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const Of=S.createContext({});function Cf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Sl(e){return typeof e=="string"||Array.isArray(e)}const Qg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fg=["initial",...Qg];function kf(e){return Cf(e.animate)||Fg.some(t=>Sl(e[t]))}function YT(e){return!!(kf(e)||e.variants)}function k8(e,t){if(kf(e)){const{initial:r,animate:s}=e;return{initial:r===!1||Sl(r)?r:void 0,animate:Sl(s)?s:void 0}}return e.inherit!==!1?t:{}}function z8(e){const{initial:t,animate:r}=k8(e,S.useContext(Of));return S.useMemo(()=>({initial:t,animate:r}),[X1(t),X1(r)])}function X1(e){return Array.isArray(e)?e.join(" "):e}const El={};function N8(e){for(const t in e)El[t]=e[t],zg(t)&&(El[t].isCSSVariable=!0)}function XT(e,{layout:t,layoutId:r}){return Qa.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!El[e]||e==="opacity")}const M8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R8=Ka.length;function D8(e,t,r){let s="",o=!0;for(let c=0;c<R8;c++){const u=Ka[c],f=e[u];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(u.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||r){const m=HT(f,Ig[u]);if(!h){o=!1;const v=M8[u]||u;s+=`${v}(${m}) `}r&&(t[u]=m)}}return s=s.trim(),r?s=r(t,o?"":s):o&&(s="none"),s}function Yg(e,t,r){const{style:s,vars:o,transformOrigin:c}=e;let u=!1,f=!1;for(const h in t){const m=t[h];if(Qa.has(h)){u=!0;continue}else if(zg(h)){o[h]=m;continue}else{const v=HT(m,Ig[h]);h.startsWith("origin")?(f=!0,c[h]=v):s[h]=v}}if(t.transform||(u||r?s.transform=D8(t,e.transform,r):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:v=0}=c;s.transformOrigin=`${h} ${m} ${v}`}}const Xg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WT(e,t,r){for(const s in t)!Pt(t[s])&&!XT(s,r)&&(e[s]=t[s])}function P8({transformTemplate:e},t){return S.useMemo(()=>{const r=Xg();return Yg(r,t,e),Object.assign({},r.vars,r.style)},[t])}function L8(e,t){const r=e.style||{},s={};return WT(s,r,e),Object.assign(s,P8(e,t)),s}function U8(e,t){const r={},s=L8(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const V8={offset:"stroke-dashoffset",array:"stroke-dasharray"},B8={offset:"strokeDashoffset",array:"strokeDasharray"};function H8(e,t,r=1,s=0,o=!0){e.pathLength=1;const c=o?V8:B8;e[c.offset]=be.transform(-s);const u=be.transform(t),f=be.transform(r);e[c.array]=`${u} ${f}`}function JT(e,{attrX:t,attrY:r,attrScale:s,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...f},h,m,v){if(Yg(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:x}=e;y.transform&&(x.transform=y.transform,delete y.transform),(x.transform||y.transformOrigin)&&(x.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),x.transform&&(x.transformBox=v?.transformBox??"fill-box",delete y.transformBox),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),s!==void 0&&(y.scale=s),o!==void 0&&H8(y,o,c,u,!1)}const e_=()=>({...Xg(),attrs:{}}),t_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function q8(e,t,r,s){const o=S.useMemo(()=>{const c=e_();return JT(c,t,t_(s),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};WT(c,e.style,e),o.style={...c,...o.style}}return o}const I8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wg(e){return typeof e!="string"||e.includes("-")?!1:!!(I8.indexOf(e)>-1||/[A-Z]/u.test(e))}function $8(e,t,r,{latestValues:s},o,c=!1){const f=(Wg(e)?q8:U8)(t,s,o,e),h=C8(t,typeof e=="string",c),m=e!==S.Fragment?{...h,...f,ref:r}:{},{children:v}=t,y=S.useMemo(()=>Pt(v)?v.get():v,[v]);return S.createElement(e,{...m,children:y})}function W1(e){const t=[{},{}];return e?.values.forEach((r,s)=>{t[0][s]=r.get(),t[1][s]=r.getVelocity()}),t}function Jg(e,t,r,s){if(typeof t=="function"){const[o,c]=W1(s);t=t(r!==void 0?r:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=W1(s);t=t(r!==void 0?r:e.custom,o,c)}return t}function zu(e){return Pt(e)?e.get():e}function Z8({scrapeMotionValuesFromProps:e,createRenderState:t},r,s,o){return{latestValues:G8(r,s,o,e),renderState:t()}}function G8(e,t,r,s){const o={},c=s(e,{});for(const x in c)o[x]=zu(c[x]);let{initial:u,animate:f}=e;const h=kf(e),m=YT(e);t&&m&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),f===void 0&&(f=t.animate));let v=r?r.initial===!1:!1;v=v||u===!1;const y=v?f:u;if(y&&typeof y!="boolean"&&!Cf(y)){const x=Array.isArray(y)?y:[y];for(let w=0;w<x.length;w++){const T=Jg(e,x[w]);if(T){const{transitionEnd:_,transition:N,...k}=T;for(const L in k){let C=k[L];if(Array.isArray(C)){const B=v?C.length-1:0;C=C[B]}C!==null&&(o[L]=C)}for(const L in _)o[L]=_[L]}}}return o}const n_=e=>(t,r)=>{const s=S.useContext(Of),o=S.useContext(Af),c=()=>Z8(e,t,s,o);return r?c():Za(c)};function ey(e,t,r){const{style:s}=e,o={};for(const c in s)(Pt(s[c])||t.style&&Pt(t.style[c])||XT(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(o[c]=s[c]);return o}const K8=n_({scrapeMotionValuesFromProps:ey,createRenderState:Xg});function r_(e,t,r){const s=ey(e,t,r);for(const o in e)if(Pt(e[o])||Pt(t[o])){const c=Ka.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[c]=e[o]}return s}const Q8=n_({scrapeMotionValuesFromProps:r_,createRenderState:e_}),F8=Symbol.for("motionComponentSymbol");function Ta(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Y8(e,t,r){return S.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),r&&(typeof r=="function"?r(s):Ta(r)&&(r.current=s))},[t])}const ty=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),X8="framerAppearId",i_="data-"+ty(X8),s_=S.createContext({});function W8(e,t,r,s,o){const{visualElement:c}=S.useContext(Of),u=S.useContext(QT),f=S.useContext(Af),h=S.useContext(jf).reducedMotion,m=S.useRef(null);s=s||u.renderer,!m.current&&s&&(m.current=s(e,{visualState:t,parent:c,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const v=m.current,y=S.useContext(s_);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&J8(m.current,r,o,y);const x=S.useRef(!1);S.useInsertionEffect(()=>{v&&x.current&&v.update(r,f)});const w=r[i_],T=S.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return _f(()=>{v&&(x.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),T.current&&v.animationState&&v.animationState.animateChanges())}),S.useEffect(()=>{v&&(!T.current&&v.animationState&&v.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),T.current=!1),v.enteringChildren=void 0)}),v}function J8(e,t,r,s){const{layoutId:o,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:m,layoutCrossfade:v}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:a_(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||f&&Ta(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:v,layoutScroll:h,layoutRoot:m})}function a_(e){if(e)return e.options.allowProjection!==!1?e.projection:a_(e.parent)}function xm(e,{forwardMotionProps:t=!1}={},r,s){r&&A8(r);const o=Wg(e)?Q8:K8;function c(f,h){let m;const v={...S.useContext(jf),...f,layoutId:e9(f)},{isStatic:y}=v,x=z8(f),w=o(f,y);if(!y&&Eg){t9();const T=n9(v);m=T.MeasureLayout,x.visualElement=W8(e,w,v,s,T.ProjectionNode)}return g.jsxs(Of.Provider,{value:x,children:[m&&x.visualElement?g.jsx(m,{visualElement:x.visualElement,...v}):null,$8(e,f,Y8(w,x.visualElement,h),w,y,t)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=S.forwardRef(c);return u[F8]=e,u}function e9({layoutId:e}){const t=S.useContext(Sg).id;return t&&e!==void 0?t+"-"+e:e}function t9(e,t){S.useContext(QT).strict}function n9(e){const{drag:t,layout:r}=La;if(!t&&!r)return{};const s={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function r9(e,t){if(typeof Proxy>"u")return xm;const r=new Map,s=(c,u)=>xm(c,u,e,t),o=(c,u)=>s(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?s:(r.has(u)||r.set(u,xm(u,void 0,e,t)),r.get(u))})}function o_({top:e,left:t,right:r,bottom:s}){return{x:{min:t,max:r},y:{min:e,max:s}}}function i9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function s9(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function wm(e){return e===void 0||e===1}function Cp({scale:e,scaleX:t,scaleY:r}){return!wm(e)||!wm(t)||!wm(r)}function rs(e){return Cp(e)||l_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function l_(e){return J1(e.x)||J1(e.y)}function J1(e){return e&&e!=="0%"}function Ju(e,t,r){const s=e-r,o=t*s;return r+o}function ew(e,t,r,s,o){return o!==void 0&&(e=Ju(e,o,s)),Ju(e,r,s)+t}function kp(e,t=0,r=1,s,o){e.min=ew(e.min,t,r,s,o),e.max=ew(e.max,t,r,s,o)}function c_(e,{x:t,y:r}){kp(e.x,t.translate,t.scale,t.originPoint),kp(e.y,r.translate,r.scale,r.originPoint)}const tw=.999999999999,nw=1.0000000000001;function a9(e,t,r,s=!1){const o=r.length;if(!o)return;t.x=t.y=1;let c,u;for(let f=0;f<o;f++){c=r[f],u=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Aa(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,c_(e,u)),s&&rs(c.latestValues)&&Aa(e,c.latestValues))}t.x<nw&&t.x>tw&&(t.x=1),t.y<nw&&t.y>tw&&(t.y=1)}function _a(e,t){e.min=e.min+t,e.max=e.max+t}function rw(e,t,r,s,o=.5){const c=tt(e.min,e.max,o);kp(e,t,r,c,s)}function Aa(e,t){rw(e.x,t.x,t.scaleX,t.scale,t.originX),rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function u_(e,t){return o_(s9(e.getBoundingClientRect(),t))}function o9(e,t,r){const s=u_(e,r),{scroll:o}=t;return o&&(_a(s.x,o.offset.x),_a(s.y,o.offset.y)),s}const iw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ja=()=>({x:iw(),y:iw()}),sw=()=>({min:0,max:0}),ct=()=>({x:sw(),y:sw()}),zp={current:null},f_={current:!1};function l9(){if(f_.current=!0,!!Eg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zp.current=e.matches;e.addEventListener("change",t),t()}else zp.current=!1}const c9=new WeakMap;function u9(e,t,r){for(const s in t){const o=t[s],c=r[s];if(Pt(o))e.addValue(s,o);else if(Pt(c))e.addValue(s,In(o,{owner:e}));else if(c!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,In(u!==void 0?u:o,{owner:e}))}}for(const s in r)t[s]===void 0&&e.removeValue(s);return t}const aw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class f9{scrapeMotionValuesFromProps(t,r,s){return{}}constructor({parent:t,props:r,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:c,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=tn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ie.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=r.initial?{...h}:{},this.renderState=m,this.parent=t,this.props=r,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=kf(r),this.isVariantNode=YT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:v,...y}=this.scrapeMotionValuesFromProps(r,{},this);for(const x in y){const w=y[x];h[x]!==void 0&&Pt(w)&&w.set(h[x])}}mount(t){this.current=t,c9.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),f_.current||l9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zp.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Gn(this.notifyUpdate),Gn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Qa.has(t);s&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Ie.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),c&&c(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in La){const r=La[t];if(!r)continue;const{isEnabled:s,Feature:o}=r;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<aw.length;s++){const o=aw[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=t[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=u9(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const s=this.values.get(t);r!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&r!==void 0&&(s=In(r===null?void 0:r,{owner:this}),this.addValue(t,s)),s}readValue(t,r){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(tT(s)||rT(s))?s=parseFloat(s):!b8(s)&&Oi.test(r)&&(s=VT(t,r)),this.setBaseTarget(t,Pt(s)?s.get():s)),Pt(s)?s.get():s}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const c=Jg(this.props,r,this.presenceContext?.custom);c&&(s=c[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Pt(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new jg),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Zg.render(this.render)}}class d_ extends f9{constructor(){super(...arguments),this.KeyframeResolver=WL}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:s}){delete r[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function h_(e,{style:t,vars:r},s,o){const c=e.style;let u;for(u in t)c[u]=t[u];o?.applyProjectionStyles(c,s);for(u in r)c.setProperty(u,r[u])}function d9(e){return window.getComputedStyle(e)}class h9 extends d_{constructor(){super(...arguments),this.type="html",this.renderInstance=h_}readValueFromInstance(t,r){if(Qa.has(r))return this.projection?.isProjecting?Sp(r):vL(t,r);{const s=d9(t),o=(zg(r)?s.getPropertyValue(r):s[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return u_(t,r)}build(t,r,s){Yg(t,r,s.transformTemplate)}scrapeMotionValuesFromProps(t,r,s){return ey(t,r,s)}}const m_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function m9(e,t,r,s){h_(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(m_.has(o)?o:ty(o),t.attrs[o])}class p9 extends d_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ct}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Qa.has(r)){const s=UT(r);return s&&s.default||0}return r=m_.has(r)?r:ty(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,s){return r_(t,r,s)}build(t,r,s){JT(t,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,r,s,o){m9(t,r,s,o)}mount(t){this.isSVGTag=t_(t.tagName),super.mount(t)}}const g9=(e,t)=>Wg(e)?new p9(t):new h9(t,{allowProjection:e!==S.Fragment});function Na(e,t,r){const s=e.getProps();return Jg(s,t,r!==void 0?r:s.custom,e)}const Np=e=>Array.isArray(e);function y9(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,In(r))}function v9(e){return Np(e)?e[e.length-1]||0:e}function b9(e,t){const r=Na(e,t);let{transitionEnd:s={},transition:o={},...c}=r||{};c={...c,...s};for(const u in c){const f=v9(c[u]);y9(e,u,f)}}function x9(e){return!!(Pt(e)&&e.add)}function Mp(e,t){const r=e.getValue("willChange");if(x9(r))return r.add(t);if(!r&&Vr.WillChange){const s=new Vr.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function p_(e){return e.props[i_]}const w9=e=>e!==null;function S9(e,{repeat:t,repeatType:r="loop"},s){const o=e.filter(w9),c=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[c]}const E9={type:"spring",stiffness:500,damping:25,restSpeed:10},T9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_9={type:"keyframes",duration:.8},A9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j9=(e,{keyframes:t})=>t.length>2?_9:Qa.has(e)?e.startsWith("scale")?T9(t[1]):E9:A9;function O9({when:e,delay:t,delayChildren:r,staggerChildren:s,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:f,from:h,elapsed:m,...v}){return!!Object.keys(v).length}const ny=(e,t,r,s={},o,c)=>u=>{const f=qg(s,e)||{},h=f.delay||s.delay||0;let{elapsed:m=0}=s;m=m-sr(h);const v={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-m,onUpdate:x=>{t.set(x),f.onUpdate&&f.onUpdate(x)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:c?void 0:o};O9(f)||Object.assign(v,j9(e,v)),v.duration&&(v.duration=sr(v.duration)),v.repeatDelay&&(v.repeatDelay=sr(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let y=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(jp(v),v.delay===0&&(y=!0)),(Vr.instantAnimations||Vr.skipAnimations)&&(y=!0,jp(v),v.delay=0),v.allowFlatten=!f.type&&!f.ease,y&&!c&&t.get()!==void 0){const x=S9(v.keyframes,f);if(x!==void 0){Ie.update(()=>{v.onUpdate(x),v.onComplete()});return}}return f.isSync?new Bg(v):new BL(v)};function C9({protectedKeys:e,needsAnimating:t},r){const s=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,s}function g_(e,t,{delay:r=0,transitionOverride:s,type:o}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:u,...f}=t;s&&(c=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const v in f){const y=e.getValue(v,e.latestValues[v]??null),x=f[v];if(x===void 0||m&&C9(m,v))continue;const w={delay:r,...qg(c||{},v)},T=y.get();if(T!==void 0&&!y.isAnimating&&!Array.isArray(x)&&x===T&&!w.velocity)continue;let _=!1;if(window.MotionHandoffAnimation){const k=p_(e);if(k){const L=window.MotionHandoffAnimation(k,v,Ie);L!==null&&(w.startTime=L,_=!0)}}Mp(e,v),y.start(ny(v,y,x,e.shouldReduceMotion&&DT.has(v)?{type:!1}:w,e,_));const N=y.animation;N&&h.push(N)}return u&&Promise.all(h).then(()=>{Ie.update(()=>{u&&b9(e,u)})}),h}function y_(e,t,r,s=0,o=1){const c=Array.from(e).sort((m,v)=>m.sortNodePosition(v)).indexOf(t),u=e.size,f=(u-1)*s;return typeof r=="function"?r(c,u):o===1?c*s:f-c*s}function Rp(e,t,r={}){const s=Na(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(o=r.transitionOverride);const c=s?()=>Promise.all(g_(e,s,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:y}=o;return k9(e,t,h,m,v,y,r)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[c,u]:[u,c];return h().then(()=>m())}else return Promise.all([c(),u(r.delay)])}function k9(e,t,r=0,s=0,o=0,c=1,u){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),f.push(Rp(h,t,{...u,delay:r+(typeof s=="function"?0:s)+y_(e.variantChildren,h,s,o,c)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(f)}function z9(e,t,r={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(c=>Rp(e,c,r));s=Promise.all(o)}else if(typeof t=="string")s=Rp(e,t,r);else{const o=typeof t=="function"?Na(e,t,r.custom):t;s=Promise.all(g_(e,o,r))}return s.then(()=>{e.notify("AnimationComplete",t)})}function v_(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(t[s]!==e[s])return!1;return!0}const N9=Fg.length;function b_(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?b_(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<N9;r++){const s=Fg[r],o=e.props[s];(Sl(o)||o===!1)&&(t[s]=o)}return t}const M9=[...Qg].reverse(),R9=Qg.length;function D9(e){return t=>Promise.all(t.map(({animation:r,options:s})=>z9(e,r,s)))}function P9(e){let t=D9(e),r=ow(),s=!0;const o=h=>(m,v)=>{const y=Na(e,v,h==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:x,transitionEnd:w,...T}=y;m={...m,...T,...w}}return m};function c(h){t=h(e)}function u(h){const{props:m}=e,v=b_(e.parent)||{},y=[],x=new Set;let w={},T=1/0;for(let N=0;N<R9;N++){const k=M9[N],L=r[k],C=m[k]!==void 0?m[k]:v[k],B=Sl(C),U=k===h?L.isActive:null;U===!1&&(T=N);let H=C===v[k]&&C!==m[k]&&B;if(H&&s&&e.manuallyAnimateOnMount&&(H=!1),L.protectedKeys={...w},!L.isActive&&U===null||!C&&!L.prevProp||Cf(C)||typeof C=="boolean")continue;const j=L9(L.prevProp,C);let D=j||k===h&&L.isActive&&!H&&B||N>T&&B,W=!1;const te=Array.isArray(C)?C:[C];let F=te.reduce(o(k),{});U===!1&&(F={});const{prevResolvedValues:G={}}=L,oe={...G,...F},ae=R=>{D=!0,x.has(R)&&(W=!0,x.delete(R)),L.needsAnimating[R]=!0;const P=e.getValue(R);P&&(P.liveStyle=!1)};for(const R in oe){const P=F[R],re=G[R];if(w.hasOwnProperty(R))continue;let le=!1;Np(P)&&Np(re)?le=!v_(P,re):le=P!==re,le?P!=null?ae(R):x.add(R):P!==void 0&&x.has(R)?ae(R):L.protectedKeys[R]=!0}L.prevProp=C,L.prevResolvedValues=F,L.isActive&&(w={...w,...F}),s&&e.blockInitialAnimation&&(D=!1);const ce=H&&j;D&&(!ce||W)&&y.push(...te.map(R=>{const P={type:k};if(typeof R=="string"&&s&&!ce&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,le=Na(re,R);if(re.enteringChildren&&le){const{delayChildren:O}=le.transition||{};P.delay=y_(re.enteringChildren,e,O)}}return{animation:R,options:P}}))}if(x.size){const N={};if(typeof m.initial!="boolean"){const k=Na(e,Array.isArray(m.initial)?m.initial[0]:m.initial);k&&k.transition&&(N.transition=k.transition)}x.forEach(k=>{const L=e.getBaseTarget(k),C=e.getValue(k);C&&(C.liveStyle=!0),N[k]=L??null}),y.push({animation:N})}let _=!!y.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(_=!1),s=!1,_?t(y):Promise.resolve()}function f(h,m){if(r[h].isActive===m)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(h,m)),r[h].isActive=m;const v=u(h);for(const y in r)r[y].protectedKeys={};return v}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>r,reset:()=>{r=ow(),s=!0}}}function L9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!v_(t,e):!1}function ns(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ow(){return{animate:ns(!0),whileInView:ns(),whileHover:ns(),whileTap:ns(),whileDrag:ns(),whileFocus:ns(),exit:ns()}}class zi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class U9 extends zi{constructor(t){super(t),t.animationState||(t.animationState=P9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Cf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let V9=0;class B9 extends zi{constructor(){super(...arguments),this.id=V9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const H9={animation:{Feature:U9},exit:{Feature:B9}};function Tl(e,t,r,s={passive:!0}){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r)}function Ul(e){return{point:{x:e.pageX,y:e.pageY}}}const q9=e=>t=>Gg(t)&&e(t,Ul(t));function al(e,t,r,s){return Tl(e,t,q9(r),s)}const x_=1e-4,I9=1-x_,$9=1+x_,w_=.01,Z9=0-w_,G9=0+w_;function It(e){return e.max-e.min}function K9(e,t,r){return Math.abs(e-t)<=r}function lw(e,t,r,s=.5){e.origin=s,e.originPoint=tt(t.min,t.max,e.origin),e.scale=It(r)/It(t),e.translate=tt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=I9&&e.scale<=$9||isNaN(e.scale))&&(e.scale=1),(e.translate>=Z9&&e.translate<=G9||isNaN(e.translate))&&(e.translate=0)}function ol(e,t,r,s){lw(e.x,t.x,r.x,s?s.originX:void 0),lw(e.y,t.y,r.y,s?s.originY:void 0)}function cw(e,t,r){e.min=r.min+t.min,e.max=e.min+It(t)}function Q9(e,t,r){cw(e.x,t.x,r.x),cw(e.y,t.y,r.y)}function uw(e,t,r){e.min=t.min-r.min,e.max=e.min+It(t)}function ll(e,t,r){uw(e.x,t.x,r.x),uw(e.y,t.y,r.y)}function Cn(e){return[e("x"),e("y")]}const S_=({current:e})=>e?e.ownerDocument.defaultView:null,fw=(e,t)=>Math.abs(e-t);function F9(e,t){const r=fw(e.x,t.x),s=fw(e.y,t.y);return Math.sqrt(r**2+s**2)}class E_{constructor(t,r,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Em(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,T=F9(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!T)return;const{point:_}=x,{timestamp:N}=Et;this.history.push({..._,timestamp:N});const{onStart:k,onMove:L}=this.handlers;w||(k&&k(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,w)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Sm(w,this.transformPagePoint),Ie.update(this.updatePoint,!0)},this.handlePointerUp=(x,w)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Em(x.type==="pointercancel"?this.lastMoveEventInfo:Sm(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(x,k),_&&_(x,k)},!Gg(t))return;this.dragSnapToOrigin=c,this.handlers=r,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=o||window;const f=Ul(t),h=Sm(f,this.transformPagePoint),{point:m}=h,{timestamp:v}=Et;this.history=[{...m,timestamp:v}];const{onSessionStart:y}=r;y&&y(t,Em(h,this.history)),this.removeListeners=Dl(al(this.contextWindow,"pointermove",this.handlePointerMove),al(this.contextWindow,"pointerup",this.handlePointerUp),al(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Gn(this.updatePoint)}}function Sm(e,t){return t?{point:t(e.point)}:e}function dw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Em({point:e},t){return{point:e,delta:dw(e,T_(t)),offset:dw(e,Y9(t)),velocity:X9(t,.1)}}function Y9(e){return e[0]}function T_(e){return e[e.length-1]}function X9(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null;const o=T_(e);for(;r>=0&&(s=e[r],!(o.timestamp-s.timestamp>sr(t)));)r--;if(!s)return{x:0,y:0};const c=Nn(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function W9(e,{min:t,max:r},s){return t!==void 0&&e<t?e=s?tt(t,e,s.min):Math.max(e,t):r!==void 0&&e>r&&(e=s?tt(r,e,s.max):Math.min(e,r)),e}function hw(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function J9(e,{top:t,left:r,bottom:s,right:o}){return{x:hw(e.x,r,o),y:hw(e.y,t,s)}}function mw(e,t){let r=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function eU(e,t){return{x:mw(e.x,t.x),y:mw(e.y,t.y)}}function tU(e,t){let r=.5;const s=It(e),o=It(t);return o>s?r=Pa(t.min,t.max-s,e.min):s>o&&(r=Pa(e.min,e.max-o,t.min)),lr(0,1,r)}function nU(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Dp=.35;function rU(e=Dp){return e===!1?e=0:e===!0&&(e=Dp),{x:pw(e,"left","right"),y:pw(e,"top","bottom")}}function pw(e,t,r){return{min:gw(e,t),max:gw(e,r)}}function gw(e,t){return typeof e=="number"?e:e[t]||0}const iU=new WeakMap;class sU{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=y=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ul(y).point)},u=(y,x)=>{const{drag:w,dragPropagation:T,onDragStart:_}=this.getProps();if(w&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=t8(w),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cn(k=>{let L=this.getAxisMotionValue(k).get()||0;if(ar.test(L)){const{projection:C}=this.visualElement;if(C&&C.layout){const B=C.layout.layoutBox[k];B&&(L=It(B)*(parseFloat(L)/100))}}this.originPoint[k]=L}),_&&Ie.postRender(()=>_(y,x)),Mp(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},f=(y,x)=>{this.latestPointerEvent=y,this.latestPanInfo=x;const{dragPropagation:w,dragDirectionLock:T,onDirectionLock:_,onDrag:N}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:k}=x;if(T&&this.currentDirection===null){this.currentDirection=aU(k),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",x.point,k),this.updateAxis("y",x.point,k),this.visualElement.render(),N&&N(y,x)},h=(y,x)=>{this.latestPointerEvent=y,this.latestPanInfo=x,this.stop(y,x),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>Cn(y=>this.getAnimationState(y)==="paused"&&this.getAxisMotionValue(y).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new E_(t,{onSessionStart:c,onStart:u,onMove:f,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:s,contextWindow:S_(this.visualElement)})}stop(t,r){const s=t||this.latestPointerEvent,o=r||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!s)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&Ie.postRender(()=>f(s,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,s){const{drag:o}=this.getProps();if(!s||!gu(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(u=W9(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Ta(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=J9(s.layoutBox,t):this.constraints=!1,this.elastic=rU(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Cn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=nU(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ta(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=o9(s,o.root,this.visualElement.getTransformPagePoint());let u=eU(o.layout.layoutBox,c);if(r){const f=r(i9(u));this.hasMutatedConstraints=!!f,f&&(u=o_(f))}return u}startAnimation(t){const{drag:r,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=Cn(v=>{if(!gu(v,r,this.currentDirection))return;let y=h&&h[v]||{};u&&(y={min:0,max:0});const x=o?200:1e6,w=o?40:1e7,T={type:"inertia",velocity:s?t[v]:0,bounceStiffness:x,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...y};return this.startAxisValueAnimation(v,T)});return Promise.all(m).then(f)}startAxisValueAnimation(t,r){const s=this.getAxisMotionValue(t);return Mp(this.visualElement,t),s.start(ny(t,s,0,r,this.visualElement,!1))}stopAnimation(){Cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Cn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[r];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Cn(r=>{const{drag:s}=this.getProps();if(!gu(r,s,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(r);if(o&&o.layout){const{min:u,max:f}=o.layout.layoutBox[r];c.set(t[r]-tt(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!Ta(r)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Cn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();o[u]=tU({min:h,max:h},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Cn(u=>{if(!gu(u,t,null))return;const f=this.getAxisMotionValue(u),{min:h,max:m}=this.constraints[u];f.set(tt(h,m,o[u]))})}addListeners(){if(!this.visualElement.current)return;iU.set(this.visualElement,this);const t=this.visualElement.current,r=al(t,"pointerdown",h=>{const{drag:m,dragListener:v=!0}=this.getProps();m&&v&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();Ta(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ie.read(s);const u=Tl(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Cn(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=h[v].translate,y.set(y.get()+h[v].translate))}),this.visualElement.render())}));return()=>{u(),r(),c(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=Dp,dragMomentum:f=!0}=t;return{...t,drag:r,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function gu(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function aU(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class oU extends zi{constructor(t){super(t),this.removeGroupControls=nn,this.removeListeners=nn,this.controls=new sU(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nn}unmount(){this.removeGroupControls(),this.removeListeners()}}const yw=e=>(t,r)=>{e&&Ie.postRender(()=>e(t,r))};class lU extends zi{constructor(){super(...arguments),this.removePointerDownListener=nn}onPointerDown(t){this.session=new E_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:yw(t),onStart:yw(r),onMove:s,onEnd:(c,u)=>{delete this.session,o&&Ie.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=al(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Wo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(be.test(e))e=parseFloat(e);else return e;const r=vw(e,t.target.x),s=vw(e,t.target.y);return`${r}% ${s}%`}},cU={correct:(e,{treeScale:t,projectionDelta:r})=>{const s=e,o=Oi.parse(e);if(o.length>5)return s;const c=Oi.createTransformer(e),u=typeof o[0]!="number"?1:0,f=r.x.scale*t.x,h=r.y.scale*t.y;o[0+u]/=f,o[1+u]/=h;const m=tt(f,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=m),typeof o[3+u]=="number"&&(o[3+u]/=m),c(o)}};let Tm=!1;class uU extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=t;N8(fU),c&&(r.group&&r.group.add(c),s&&s.register&&o&&s.register(c),Tm&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Nu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:s,drag:o,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,Tm=!0,o||t.layoutDependency!==r||r===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Ie.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Zg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:o}=t;Tm=!0,o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function __(e){const[t,r]=KT(),s=S.useContext(Sg);return g.jsx(uU,{...e,layoutGroup:s,switchLayoutGroup:S.useContext(s_),isPresent:t,safeToRemove:r})}const fU={borderRadius:{...Wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wo,borderTopRightRadius:Wo,borderBottomLeftRadius:Wo,borderBottomRightRadius:Wo,boxShadow:cU};function dU(e,t,r){const s=Pt(e)?e:In(e);return s.start(ny("",s,t,r)),s.animation}const hU=(e,t)=>e.depth-t.depth;class mU{constructor(){this.children=[],this.isDirty=!1}add(t){Tg(this.children,t),this.isDirty=!0}remove(t){_g(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hU),this.isDirty=!1,this.children.forEach(t)}}function pU(e,t){const r=tn.now(),s=({timestamp:o})=>{const c=o-r;c>=t&&(Gn(s),e(c-t))};return Ie.setup(s,!0),()=>Gn(s)}const A_=["TopLeft","TopRight","BottomLeft","BottomRight"],gU=A_.length,bw=e=>typeof e=="string"?parseFloat(e):e,xw=e=>typeof e=="number"||be.test(e);function yU(e,t,r,s,o,c){o?(e.opacity=tt(0,r.opacity??1,vU(s)),e.opacityExit=tt(t.opacity??1,0,bU(s))):c&&(e.opacity=tt(t.opacity??1,r.opacity??1,s));for(let u=0;u<gU;u++){const f=`border${A_[u]}Radius`;let h=ww(t,f),m=ww(r,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||xw(h)===xw(m)?(e[f]=Math.max(tt(bw(h),bw(m),s),0),(ar.test(m)||ar.test(h))&&(e[f]+="%")):e[f]=m}(t.rotate||r.rotate)&&(e.rotate=tt(t.rotate||0,r.rotate||0,s))}function ww(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vU=j_(0,.5,uT),bU=j_(.5,.95,nn);function j_(e,t,r){return s=>s<e?0:s>t?1:r(Pa(e,t,s))}function Sw(e,t){e.min=t.min,e.max=t.max}function jn(e,t){Sw(e.x,t.x),Sw(e.y,t.y)}function Ew(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Tw(e,t,r,s,o){return e-=t,e=Ju(e,1/r,s),o!==void 0&&(e=Ju(e,1/o,s)),e}function xU(e,t=0,r=1,s=.5,o,c=e,u=e){if(ar.test(t)&&(t=parseFloat(t),t=tt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let f=tt(c.min,c.max,s);e===c&&(f-=t),e.min=Tw(e.min,t,r,f,o),e.max=Tw(e.max,t,r,f,o)}function _w(e,t,[r,s,o],c,u){xU(e,t[r],t[s],t[o],t.scale,c,u)}const wU=["x","scaleX","originX"],SU=["y","scaleY","originY"];function Aw(e,t,r,s){_w(e.x,t,wU,r?r.x:void 0,s?s.x:void 0),_w(e.y,t,SU,r?r.y:void 0,s?s.y:void 0)}function jw(e){return e.translate===0&&e.scale===1}function O_(e){return jw(e.x)&&jw(e.y)}function Ow(e,t){return e.min===t.min&&e.max===t.max}function EU(e,t){return Ow(e.x,t.x)&&Ow(e.y,t.y)}function Cw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function C_(e,t){return Cw(e.x,t.x)&&Cw(e.y,t.y)}function kw(e){return It(e.x)/It(e.y)}function zw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class TU{constructor(){this.members=[]}add(t){Tg(this.members,t),t.scheduleRender()}remove(t){if(_g(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let s;for(let o=r;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(t,r){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,r&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:s}=t;r.onExitComplete&&r.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _U(e,t,r){let s="";const o=e.x.translate/t.x,c=e.y.translate/t.y,u=r?.z||0;if((o||c||u)&&(s=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:m,rotate:v,rotateX:y,rotateY:x,skewX:w,skewY:T}=r;m&&(s=`perspective(${m}px) ${s}`),v&&(s+=`rotate(${v}deg) `),y&&(s+=`rotateX(${y}deg) `),x&&(s+=`rotateY(${x}deg) `),w&&(s+=`skewX(${w}deg) `),T&&(s+=`skewY(${T}deg) `)}const f=e.x.scale*t.x,h=e.y.scale*t.y;return(f!==1||h!==1)&&(s+=`scale(${f}, ${h})`),s||"none"}const _m=["","X","Y","Z"],AU=1e3;let jU=0;function Am(e,t,r,s){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function k_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=p_(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ie,!(o||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&k_(s)}function z_({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},f=t?.()){this.id=jU++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(kU),this.nodes.forEach(RU),this.nodes.forEach(DU),this.nodes.forEach(zU)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new mU)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new jg),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const h=this.eventHandlers.get(u);h&&h.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Kg(u)&&!g8(u),this.instance=u;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||f)&&(this.isLayoutDirty=!0),e){let v,y=0;const x=()=>this.root.updateBlockedByResize=!1;Ie.read(()=>{y=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==y&&(y=w,this.root.updateBlockedByResize=!0,v&&v(),v=pU(x,250),Nu.hasAnimatedSinceResize&&(Nu.hasAnimatedSinceResize=!1,this.nodes.forEach(Rw)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:y,hasRelativeLayoutChanged:x,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||m.getDefaultTransition()||BU,{onLayoutAnimationStart:_,onLayoutAnimationComplete:N}=m.getProps(),k=!this.targetLayout||!C_(this.targetLayout,w),L=!y&&x;if(this.options.layoutRoot||this.resumeFrom||L||y&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...qg(T,"layout"),onPlay:_,onComplete:N};(m.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(v,L)}else y||Rw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Gn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(PU),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&k_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Mw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(MU),this.nodes.forEach(OU),this.nodes.forEach(CU)):this.nodes.forEach(Mw),this.clearAllSnapshots();const f=tn.now();Et.delta=lr(0,1e3/60,f-Et.timestamp),Et.timestamp=f,Et.isProcessing=!0,mm.update.process(Et),mm.preRender.process(Et),mm.render.process(Et),Et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NU),this.sharedNodes.forEach(LU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!It(this.snapshot.measuredBox.x)&&!It(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ct(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!O_(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;u&&this.instance&&(f||rs(this.latestValues)||v)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return u&&(h=this.removeTransform(h)),HU(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return ct();const f=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qU))){const{scroll:m}=this.root;m&&(_a(f.x,m.offset.x),_a(f.y,m.offset.y))}return f}removeElementScroll(u){const f=ct();if(jn(f,u),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:v,options:y}=m;m!==this.root&&v&&y.layoutScroll&&(v.wasRoot&&jn(f,u),_a(f.x,v.offset.x),_a(f.y,v.offset.y))}return f}applyTransform(u,f=!1){const h=ct();jn(h,u);for(let m=0;m<this.path.length;m++){const v=this.path[m];!f&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Aa(h,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),rs(v.latestValues)&&Aa(h,v.latestValues)}return rs(this.latestValues)&&Aa(h,this.latestValues),h}removeTransform(u){const f=ct();jn(f,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!rs(m.latestValues))continue;Cp(m.latestValues)&&m.updateSnapshot();const v=ct(),y=m.measurePageBox();jn(v,y),Aw(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return rs(this.latestValues)&&Aw(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(u||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:y}=this.options;if(!(!this.layout||!(v||y))){if(this.resolvedRelativeTargetAt=Et.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),ll(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ct(),this.targetWithTransforms=ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Q9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):jn(this.target,this.layout.layoutBox),c_(this.target,this.targetDelta)):jn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),ll(this.relativeTargetOrigin,this.target,x.target),jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Cp(this.parent.latestValues)||l_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const u=this.getLead(),f=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Et.timestamp&&(h=!1),h)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;jn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,x=this.treeScale.y;a9(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ct());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ew(this.prevProjectionDelta.x,this.projectionDelta.x),Ew(this.prevProjectionDelta.y,this.projectionDelta.y)),ol(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==x||!zw(this.projectionDelta.x,this.prevProjectionDelta.x)||!zw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ja(),this.projectionDelta=ja(),this.projectionDeltaWithTransform=ja()}setAnimationOrigin(u,f=!1){const h=this.snapshot,m=h?h.latestValues:{},v={...this.latestValues},y=ja();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const x=ct(),w=h?h.source:void 0,T=this.layout?this.layout.source:void 0,_=w!==T,N=this.getStack(),k=!N||N.members.length<=1,L=!!(_&&!k&&this.options.crossfade===!0&&!this.path.some(VU));this.animationProgress=0;let C;this.mixTargetDelta=B=>{const U=B/1e3;Dw(y.x,u.x,U),Dw(y.y,u.y,U),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ll(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UU(this.relativeTarget,this.relativeTargetOrigin,x,U),C&&EU(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ct()),jn(C,this.relativeTarget)),_&&(this.animationValues=v,yU(v,m,this.latestValues,U,L,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Gn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ie.update(()=>{Nu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=In(0)),this.currentAnimation=dU(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(AU),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:v}=u;if(!(!f||!h||!m)){if(this!==u&&this.layout&&m&&N_(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||ct();const y=It(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const x=It(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+x}jn(f,h),Aa(f,v),ol(this.projectionDeltaWithTransform,this.layoutCorrected,f,v)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new TU),this.sharedNodes.get(u).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&Am("z",u,m,this.animationValues);for(let v=0;v<_m.length;v++)Am(`rotate${_m[v]}`,u,m,this.animationValues),Am(`skew${_m[v]}`,u,m,this.animationValues);u.render();for(const v in m)u.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=zu(f?.pointerEvents)||"",u.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=zu(f?.pointerEvents)||""),this.hasProjected&&!rs(this.latestValues)&&(u.transform=h?h({},""):"none",this.hasProjected=!1);return}u.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let y=_U(this.projectionDeltaWithTransform,this.treeScale,v);h&&(y=h(v,y)),u.transform=y;const{x,y:w}=this.projectionDelta;u.transformOrigin=`${x.origin*100}% ${w.origin*100}% 0`,m.animationValues?u.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:u.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const T in El){if(v[T]===void 0)continue;const{correct:_,applyTo:N,isCSSVariable:k}=El[T],L=y==="none"?v[T]:_(v[T],m);if(N){const C=N.length;for(let B=0;B<C;B++)u[N[B]]=L}else k?this.options.visualElement.renderState.vars[T]=L:u[T]=L}this.options.layoutId&&(u.pointerEvents=m===this?zu(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(Nw),this.root.sharedNodes.clear()}}}function OU(e){e.updateLayout()}function CU(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,c=t.source!==e.layout.source;o==="size"?Cn(v=>{const y=c?t.measuredBox[v]:t.layoutBox[v],x=It(y);y.min=r[v].min,y.max=y.min+x}):N_(o,t.layoutBox,r)&&Cn(v=>{const y=c?t.measuredBox[v]:t.layoutBox[v],x=It(r[v]);y.max=y.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+x)});const u=ja();ol(u,r,t.layoutBox);const f=ja();c?ol(f,e.applyTransform(s,!0),t.measuredBox):ol(f,r,t.layoutBox);const h=!O_(u);let m=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:y,layout:x}=v;if(y&&x){const w=ct();ll(w,t.layoutBox,y.layoutBox);const T=ct();ll(T,r,x.layoutBox),C_(w,T)||(m=!0),v.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=w,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kU(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NU(e){e.clearSnapshot()}function Nw(e){e.clearMeasurements()}function Mw(e){e.isLayoutDirty=!1}function MU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Rw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function RU(e){e.resolveTargetDelta()}function DU(e){e.calcProjection()}function PU(e){e.resetSkewAndRotation()}function LU(e){e.removeLeadSnapshot()}function Dw(e,t,r){e.translate=tt(t.translate,0,r),e.scale=tt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Pw(e,t,r,s){e.min=tt(t.min,r.min,s),e.max=tt(t.max,r.max,s)}function UU(e,t,r,s){Pw(e.x,t.x,r.x,s),Pw(e.y,t.y,r.y,s)}function VU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BU={duration:.45,ease:[.4,0,.1,1]},Lw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Uw=Lw("applewebkit/")&&!Lw("chrome/")?Math.round:nn;function Vw(e){e.min=Uw(e.min),e.max=Uw(e.max)}function HU(e){Vw(e.x),Vw(e.y)}function N_(e,t,r){return e==="position"||e==="preserve-aspect"&&!K9(kw(t),kw(r),.2)}function qU(e){return e!==e.root&&e.scroll?.wasRoot}const IU=z_({attachResizeListener:(e,t)=>Tl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jm={current:void 0},M_=z_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jm.current){const e=new IU({});e.mount(window),e.setOptions({layoutScroll:!0}),jm.current=e}return jm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$U={pan:{Feature:lU},drag:{Feature:oU,ProjectionNode:M_,MeasureLayout:__}};function Bw(e,t,r){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,c=s[o];c&&Ie.postRender(()=>c(t,Ul(t)))}class ZU extends zi{mount(){const{current:t}=this.node;t&&(this.unmount=n8(t,(r,s)=>(Bw(this.node,s,"Start"),o=>Bw(this.node,o,"End"))))}unmount(){}}class GU extends zi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Dl(Tl(this.node.current,"focus",()=>this.onFocus()),Tl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hw(e,t,r){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),c=s[o];c&&Ie.postRender(()=>c(t,Ul(t)))}class KU extends zi{mount(){const{current:t}=this.node;t&&(this.unmount=a8(t,(r,s)=>(Hw(this.node,s,"Start"),(o,{success:c})=>Hw(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pp=new WeakMap,Om=new WeakMap,QU=e=>{const t=Pp.get(e.target);t&&t(e)},FU=e=>{e.forEach(QU)};function YU({root:e,...t}){const r=e||document;Om.has(r)||Om.set(r,{});const s=Om.get(r),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(FU,{root:e,...t})),s[o]}function XU(e,t,r){const s=YU(t);return Pp.set(e,r),s.observe(e),()=>{Pp.delete(e),s.unobserve(e)}}const WU={some:0,all:1};class JU extends zi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:s,amount:o="some",once:c}=t,u={root:r?r.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:WU[o]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),x=m?v:y;x&&x(h)};return XU(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(eV(t,r))&&this.startObserver()}unmount(){}}function eV({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const tV={inView:{Feature:JU},tap:{Feature:KU},focus:{Feature:GU},hover:{Feature:ZU}},nV={layout:{ProjectionNode:M_,MeasureLayout:__}},rV={...H9,...tV,...$U,...nV},_e=r9(rV,g9),iV=50,qw=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),sV=()=>({time:0,x:qw(),y:qw()}),aV={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Iw(e,t,r,s){const o=r[t],{length:c,position:u}=aV[t],f=o.current,h=r.time;o.current=e[`scroll${u}`],o.scrollLength=e[`scroll${c}`]-e[`client${c}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Pa(0,o.scrollLength,o.current);const m=s-h;o.velocity=m>iV?0:Og(o.current-f,m)}function oV(e,t,r){Iw(e,"x",t,r),Iw(e,"y",t,r),t.time=r}function lV(e,t){const r={x:0,y:0};let s=e;for(;s&&s!==t;)if($g(s))r.x+=s.offsetLeft,r.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const o=s.getBoundingClientRect();s=s.parentElement;const c=s.getBoundingClientRect();r.x+=o.left-c.left,r.y+=o.top-c.top}else if(s instanceof SVGGraphicsElement){const{x:o,y:c}=s.getBBox();r.x+=o,r.y+=c;let u=null,f=s.parentNode;for(;!u;)f.tagName==="svg"&&(u=f),f=s.parentNode;s=u}else break;return r}const Lp={start:0,center:.5,end:1};function $w(e,t,r=0){let s=0;if(e in Lp&&(e=Lp[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?s=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?s=o/100*document.documentElement.clientWidth:e.endsWith("vh")?s=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(s=t*e),r+s}const cV=[0,0];function uV(e,t,r,s){let o=Array.isArray(e)?e:cV,c=0,u=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,Lp[e]?e:"0"]),c=$w(o[0],r,s),u=$w(o[1],t),c-u}const fV={All:[[0,0],[1,1]]},dV={x:0,y:0};function hV(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function mV(e,t,r){const{offset:s=fV.All}=r,{target:o=e,axis:c="y"}=r,u=c==="y"?"height":"width",f=o!==e?lV(o,e):dV,h=o===e?{width:e.scrollWidth,height:e.scrollHeight}:hV(o),m={width:e.clientWidth,height:e.clientHeight};t[c].offset.length=0;let v=!t[c].interpolate;const y=s.length;for(let x=0;x<y;x++){const w=uV(s[x],m[u],h[u],f[c]);!v&&w!==t[c].interpolatorOffsets[x]&&(v=!0),t[c].offset[x]=w}v&&(t[c].interpolate=Lg(t[c].offset,_T(s),{clamp:!1}),t[c].interpolatorOffsets=[...t[c].offset]),t[c].progress=lr(0,1,t[c].interpolate(t[c].current))}function pV(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)r.x.targetOffset+=s.offsetLeft,r.y.targetOffset+=s.offsetTop,s=s.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight}function gV(e,t,r,s={}){return{measure:o=>{pV(e,s.target,r),oV(e,r,o),(s.offset||s.target)&&mV(e,r,s)},notify:()=>t(r)}}const Jo=new WeakMap,Zw=new WeakMap,Cm=new WeakMap,Gw=e=>e===document.scrollingElement?window:e;function R_(e,{container:t=document.scrollingElement,...r}={}){if(!t)return nn;let s=Cm.get(t);s||(s=new Set,Cm.set(t,s));const o=sV(),c=gV(t,e,o,r);if(s.add(c),!Jo.has(t)){const f=()=>{for(const y of s)y.measure(Et.timestamp);Ie.preUpdate(h)},h=()=>{for(const y of s)y.notify()},m=()=>Ie.read(f);Jo.set(t,m);const v=Gw(t);window.addEventListener("resize",m,{passive:!0}),t!==document.documentElement&&Zw.set(t,p8(t,m)),v.addEventListener("scroll",m,{passive:!0}),m()}const u=Jo.get(t);return Ie.read(u,!1,!0),()=>{Gn(u);const f=Cm.get(t);if(!f||(f.delete(c),f.size))return;const h=Jo.get(t);Jo.delete(t),h&&(Gw(t).removeEventListener("scroll",h),Zw.get(t)?.(),window.removeEventListener("resize",h))}}const Kw=new Map;function yV(e){const t={value:0},r=R_(s=>{t.value=s[e.axis].progress*100},e);return{currentTime:t,cancel:r}}function D_({source:e,container:t,...r}){const{axis:s}=r;e&&(t=e);const o=Kw.get(t)??new Map;Kw.set(t,o);const c=r.target??"self",u=o.get(c)??{},f=s+(r.offset??[]).join(",");return u[f]||(u[f]=!r.target&&CT()?new ScrollTimeline({source:t,axis:s}):yV({container:t,...r})),u[f]}function vV(e,t){const r=D_(t);return e.attachTimeline({timeline:t.target?void 0:r,observe:s=>(s.pause(),GT(o=>{s.time=s.iterationDuration*o},r))})}function bV(e){return e.length===2}function xV(e,t){return bV(e)?R_(r=>{e(r[t.axis].progress,r)},t):GT(e,D_(t))}function wV(e,{axis:t="y",container:r=document.scrollingElement,...s}={}){if(!r)return nn;const o={axis:t,container:r,...s};return typeof e=="function"?xV(e,o):vV(e,o)}const SV=()=>({scrollX:In(0),scrollY:In(0),scrollXProgress:In(0),scrollYProgress:In(0)}),yu=e=>e?!e.current:!1;function Qw({container:e,target:t,...r}={}){const s=Za(SV),o=S.useRef(null),c=S.useRef(!1),u=S.useCallback(()=>(o.current=wV((f,{x:h,y:m})=>{s.scrollX.set(h.current),s.scrollXProgress.set(h.progress),s.scrollY.set(m.current),s.scrollYProgress.set(m.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(r.offset)]);return _f(()=>{if(c.current=!1,yu(e)||yu(t)){c.current=!0;return}else return u()},[u]),S.useEffect(()=>{if(c.current)return bl(!yu(e)),bl(!yu(t)),u()},[u]),s}function EV(e){const t=Za(()=>In(e)),{isStatic:r}=S.useContext(jf);if(r){const[,s]=S.useState(e);S.useEffect(()=>t.on("change",s),[])}return t}function P_(e,t){const r=EV(t()),s=()=>r.set(t());return s(),_f(()=>{const o=()=>Ie.preRender(s,!1,!0),c=e.map(u=>u.on("change",o));return()=>{c.forEach(u=>u()),Gn(s)}}),r}function TV(e){sl.current=[],e();const t=P_(sl.current,e);return sl.current=void 0,t}function vu(e,t,r,s){if(typeof e=="function")return TV(e);const o=typeof t=="function"?t:y8(t,r,s);return Array.isArray(e)?Fw(e,o):Fw([e],([c])=>o(c))}function Fw(e,t){const r=Za(()=>[]);return P_(e,()=>{r.length=0;const s=e.length;for(let o=0;o<s;o++)r[o]=e[o].get();return t(r)})}function _V(e,t){const[r,s]=S.useState(e);return S.useEffect(()=>{const o=setTimeout(()=>s(e),t);return()=>clearTimeout(o)},[e,t]),r}function AV(e){return e.startsWith("/downloads/")}function jV(e){return!Number.isFinite(e)||e<0?"":e>=1024*1024?`${(e/(1024*1024)).toFixed(1).replace(".",",")} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} Byte`}const OV={produkt:"Produkte",leistung:"Leistungen",themenwelt:"Themenwelten",dokument:"Prospekte & Downloads",seite:"Seiten",karriere:"Karriere"};function L_(e,t=12){const r=document.getElementById(e);if(r){r.scrollIntoView({behavior:"smooth",block:"start"});return}t>0&&window.setTimeout(()=>L_(e,t-1),90)}function CV({isOpen:e,onClose:t}){const[r,s]=S.useState(""),[o,c]=S.useState(-1),u=S.useRef(null),[,f]=Ia(),{openWizard:h}=Tf(),m=_V(r,220),{data:v,isFetching:y}=Si.search.query.useQuery({q:m},{enabled:m.length>=2,placeholderData:F=>F}),x=v?.results??[],w=m.length>=2,T=v?.suggestion??null,_=v?.ignored??[],N=x.reduce((F,G)=>(F[G.category]||(F[G.category]=[]),F[G.category].push(G),F),{}),k=x.reduce((F,G)=>(F.indexOf(G.category)===-1&&F.push(G.category),F),[]),L=k.reduce((F,G)=>F.concat(N[G]),[]),C=Si.search.log.useMutation(),B=Si.search.logClick.useMutation(),U=S.useRef(null),H=S.useRef(null);S.useEffect(()=>{!w||y||H.current!==m&&(H.current=m,U.current=null,TR(m,x.length),C.mutate({q:m},{onSuccess:F=>{U.current=F.logId??null},onError:()=>{U.current=null}}))},[m,y,x.length]),S.useEffect(()=>{if(!e)return;s(""),c(-1);let F,G=0;const oe=()=>{const ae=u.current;ae&&document.activeElement!==ae&&ae.focus(),G+=1,G<10&&document.activeElement!==u.current&&(F=window.setTimeout(oe,60))};return oe(),()=>{F!==void 0&&window.clearTimeout(F)}},[e]),S.useEffect(()=>{c(-1)},[m]),S.useEffect(()=>{const F=G=>{G.key==="Escape"&&t()};return e&&document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[e,t]),S.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]);const j=S.useCallback(F=>{if(F.key==="ArrowDown")F.preventDefault(),c(G=>Math.min(G+1,L.length-1));else if(F.key==="ArrowUp")F.preventDefault(),c(G=>Math.max(G-1,-1));else if(F.key==="Enter"){F.preventDefault();const G=o>=0?L[o]:void 0;G&&D(G.url,G.sectionAnchor)}},[L,o]),D=(F,G)=>{const oe=L.findIndex(ae=>ae.url===F);if(U.current!==null&&oe>=0&&B.mutate({logId:U.current,url:F,position:oe+1}),AV(F)){window.open(F,"_blank","noopener,noreferrer"),t(),s("");return}t(),s(""),f(F),G&&L_(G)},W=w,te=W&&!y&&x.length===0;return g.jsx(va,{children:e&&g.jsxs(g.Fragment,{children:[g.jsx(_e.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},onClick:t,className:"fixed inset-0 z-[1100]",style:{background:"rgba(5,12,30,0.7)",backdropFilter:"blur(5px)"},"aria-hidden":"true"},"backdrop"),g.jsxs(_e.div,{role:"dialog","aria-modal":"true","aria-label":"Suche",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:32,stiffness:290},className:"fixed top-0 right-0 bottom-0 z-[1101] flex flex-col",style:{width:"min(460px, 100vw)",background:"#0a1628",borderLeft:"1px solid rgba(255,255,255,0.08)"},children:[g.jsxs("div",{className:"flex items-center gap-3 px-5 py-4",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(Ku,{size:16,style:{color:"rgba(255,255,255,0.35)",flexShrink:0},"aria-hidden":"true"}),g.jsxs("span",{className:"relative flex-1 flex items-center",children:[g.jsx("input",{ref:u,type:"text",value:r,onChange:F=>s(F.target.value),onKeyDown:j,placeholder:"Produkte, Leistungen, Themen …",autoComplete:"off",spellCheck:!1,inputMode:"search",enterKeyHint:"search","aria-label":"Suche",className:"w-full bg-transparent border-none outline-none text-white placeholder-white/30 text-sm",style:{paddingRight:r?28:0}}),r&&g.jsx("button",{type:"button",onClick:()=>{s(""),u.current?.focus()},"aria-label":"Eingabe löschen",className:"absolute right-0 p-1 transition-colors hover:bg-white/8",style:{color:"rgba(255,255,255,0.35)"},children:g.jsx(gs,{size:13})})]}),g.jsx("button",{type:"button",onClick:t,"aria-label":"Suche schließen",className:"flex-shrink-0 pl-3 py-1.5 pr-0.5 transition-colors hover:text-white",style:{color:"rgba(255,255,255,0.5)",borderLeft:"1px solid rgba(255,255,255,0.1)"},children:g.jsx(gs,{size:18})})]}),g.jsx("div",{style:{height:2,overflow:"hidden",flexShrink:0},role:"status","aria-live":"polite",children:y&&g.jsxs(g.Fragment,{children:[g.jsx(_e.div,{initial:{x:"-110%"},animate:{x:"260%"},transition:{duration:.95,repeat:1/0,ease:"easeInOut"},style:{width:"38%",height:"100%",background:"#5b9bd5"}}),g.jsx("span",{className:"sr-only",children:"Suche läuft"})]})}),g.jsxs("div",{className:"flex-1 overflow-y-auto",style:{overscrollBehavior:"contain"},children:[te&&g.jsxs("div",{className:"px-5 py-10 flex flex-col items-center text-center",children:[g.jsx(Ku,{size:20,style:{color:"rgba(255,255,255,0.15)"},className:"mb-4"}),g.jsxs("p",{className:"text-sm font-medium mb-1",style:{color:"rgba(255,255,255,0.55)"},children:["Keine Ergebnisse für „",m,"“"]}),T?g.jsxs("button",{onClick:()=>s(T),className:"mb-6 text-xs transition-colors hover:underline",style:{color:"rgba(91,155,213,0.9)"},children:["Meinten Sie ",g.jsx("strong",{style:{fontWeight:600},children:T}),"?"]}):g.jsx("p",{className:"text-xs mb-6",style:{color:"rgba(255,255,255,0.25)"},children:"Kein passendes Produkt oder keine passende Leistung gefunden?"}),g.jsxs("button",{onClick:()=>{t(),setTimeout(()=>h({configKey:"beratung_general",sourceLabel:`Suche – Keine Ergebnisse für „${m}“`}),200)},className:"flex items-center gap-2 px-4 py-2.5 text-sm font-semibold transition-all hover:bg-white/10",style:{color:"rgba(255,255,255,0.7)",border:"1px solid rgba(255,255,255,0.15)"},children:[g.jsx(GE,{size:13}),"Persönliche Beratung anfragen",g.jsx(hn,{size:12})]})]}),!W&&g.jsxs("div",{className:"px-5 py-5",children:[g.jsx("p",{className:"text-xs font-semibold mb-3",style:{color:"rgba(255,255,255,0.2)",letterSpacing:"0.1em",textTransform:"uppercase"},children:"Schnellzugriff"}),g.jsx("div",{className:"flex flex-col",children:[{label:"Gynäkologie",url:"/themenwelten/gynaekologie"},{label:"Autoklaven",url:"/themenwelten/aufbereitung/autoklaven"},{label:"Thermodesinfektoren",url:"/themenwelten/aufbereitung/thermodesinfektoren"},{label:"Sprechstundenbedarf",url:"/leistungen/sprechstundenbedarf"},{label:"Praxisplanung",url:"/leistungen/praxisplanung"},{label:"MELAG Vacuklav Autoklaven",url:"/produkte/melag-vacuklav"},{label:"Miele Thermodesinfektoren",url:"/produkte/miele-thermodesinfektor"},{label:"EDAN F3 CTG",url:"/produkte/edan-f3-ctg"},{label:"Gynäkologische Stühle",url:"/themenwelten/gynaekologie/gynstuehle"}].map(F=>g.jsxs("button",{onClick:()=>D(F.url),className:"flex items-center gap-2.5 px-2 py-2 text-left transition-colors hover:bg-white/5 group",children:[g.jsx(bi,{size:12,style:{color:"rgba(255,255,255,0.18)",flexShrink:0},"aria-hidden":"true"}),g.jsx("span",{className:"text-sm group-hover:text-white/80 transition-colors",style:{color:"rgba(255,255,255,0.45)"},children:F.label})]},F.url))})]}),W&&k.length>0&&g.jsxs("div",{className:"px-5 py-5 flex flex-col gap-4",children:[_.length>0&&g.jsxs("p",{className:"text-[0.7rem] -mb-1",style:{color:"rgba(255,255,255,0.3)"},children:["Ohne ",_.map(F=>`„${F}“`).join(", ")," – dazu gibt es hier keine Seite."]}),k.map(F=>g.jsxs("div",{style:{border:"1px solid rgba(255,255,255,0.09)",background:"rgba(255,255,255,0.03)"},children:[g.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid rgba(255,255,255,0.07)",background:"rgba(255,255,255,0.03)"},children:g.jsx("span",{className:"text-xs font-semibold",style:{color:"rgba(255,255,255,0.35)",letterSpacing:"0.09em",textTransform:"uppercase"},children:OV[F]})}),g.jsx("div",{children:N[F].map((G,oe)=>{const ae=L.indexOf(G),ce=ae===o,A=oe===N[F].length-1;return g.jsxs("button",{role:"option","aria-selected":ce,onMouseEnter:()=>c(ae),onMouseDown:R=>{R.preventDefault(),D(G.url,G.sectionAnchor)},className:"w-full flex items-start gap-3 px-4 py-3 text-left transition-colors group",style:{background:ce?"rgba(255,255,255,0.06)":"transparent",borderBottom:A?"none":"1px solid rgba(255,255,255,0.05)"},children:[G.imageUrl&&g.jsx("img",{src:G.imageUrl,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",width:44,height:44,className:"flex-shrink-0 object-cover",style:{width:44,height:44,background:"rgba(255,255,255,0.05)"},onError:R=>{R.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-1 min-w-0",children:[g.jsx("span",{className:"block text-sm leading-snug",style:{color:ce?"#5b9bd5":"rgba(255,255,255,0.82)",fontWeight:400},children:G.title}),G.fileType&&g.jsxs("span",{className:"mt-1 flex items-center gap-2",children:[g.jsx("span",{className:"px-1.5 py-px text-[0.6rem] font-semibold uppercase",style:{color:"rgba(255,255,255,0.55)",border:"1px solid rgba(255,255,255,0.16)",letterSpacing:"0.06em"},children:G.fileType}),G.fileSize!==null&&g.jsx("span",{className:"text-[0.68rem]",style:{color:"rgba(255,255,255,0.3)"},children:jV(G.fileSize)})]}),G.section&&g.jsx("span",{className:"mt-1 block text-[0.68rem] truncate",style:{color:"rgba(91,155,213,0.75)"},children:G.section}),G.snippet?g.jsx("span",{className:"mt-1 block text-[0.72rem] leading-relaxed",style:{color:"rgba(255,255,255,0.38)",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:G.snippet.map((R,P)=>R.hit?g.jsx("mark",{style:{background:"transparent",color:"rgba(255,255,255,0.85)",fontWeight:600},children:R.text},P):g.jsx("span",{children:R.text},P))}):G.description&&g.jsx("span",{className:"mt-1 block text-[0.72rem] leading-relaxed",style:{color:"rgba(255,255,255,0.38)",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:G.description})]}),g.jsx(hn,{size:12,className:"flex-shrink-0 mt-1 transition-opacity",style:{color:ce?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.15)"},"aria-hidden":"true"})]},G.id)})})]},F))]})]}),x.length>0&&g.jsxs("div",{className:"px-5 py-2.5 flex items-center gap-4 text-xs",style:{borderTop:"1px solid rgba(255,255,255,0.07)",color:"rgba(255,255,255,0.2)"},children:[g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("kbd",{className:"px-1 py-px font-mono text-[0.65rem]",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)"},children:"↑↓"}),"navigieren"]}),g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("kbd",{className:"px-1 py-px font-mono text-[0.65rem]",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)"},children:"↵"}),"öffnen"]}),g.jsxs("span",{className:"flex items-center gap-1.5",children:[g.jsx("kbd",{className:"px-1 py-px font-mono text-[0.65rem]",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)"},children:"Esc"}),"schließen"]})]})]},"panel")]})})}const kV="/images/megamenu-leistungen-behandlungszimmer_9c41e7b2.webp",zV="/images/nav-themenwelten_6d18f3a9.webp",NV="/images/stusche-gebaeude-menu_portrait.webp",Yw=[{href:"/leistungen/praxisbedarf",label:"Lieferung von Praxisbedarf",desc:"Verbrauchsmaterial, Handschuhe, Desinfektion",icon:s6},{href:"/leistungen/sprechstundenbedarf",label:"Sprechstundenbedarf",desc:"SSB-Abrechnung direkt über die Kasse",icon:t6},{href:"/leistungen/technischer-service",label:"Technischer Service & Wartung",desc:"Geräteservice, Validierung, RDG-Prüfung",icon:YE},{href:"/leistungen/praxisplanung",label:"3D-Praxisplanung & Beratung",desc:"Individuelle Raumplanung und Einrichtung",icon:KP},{href:"/leistungen/praxisportal",label:"Praxisportal",desc:"Online bestellen, Rechnungen verwalten",icon:ZE},{href:"/leistungen/praxisgruendung",label:"Praxisgründung",desc:"Rundum-Begleitung von Anfang an",icon:Ef},{href:"/leistungen/hygienemanagement",label:"Hygienemanagement",desc:"Begehung, Hygieneplan, Zertifikat",icon:vg}],Xw=[{href:"/themenwelten/gynaekologie",label:"Gynäkologie",desc:"Gyn-Stühle, Ultraschall, Praxisausstattung",icon:ZP},{href:"/themenwelten/chirurgie",label:"Chirurgie",desc:"OP-Bedarf, Instrumente, Sterilisation",icon:JP},{href:"/themenwelten/aufbereitung",label:"Aufbereitung & Sterilisation",desc:"RDG, Autoklaven, Validierung",icon:vg},{href:"/themenwelten/medizintechnik",label:"Medizintechnik",desc:"EKG, Spirometrie, Diagnostikgeräte",icon:UP},{href:"/themenwelten/op-leuchten",label:"OP-Leuchten",desc:"Untersuchungs- & OP-Leuchten von Dr. Mach",icon:QP}],Ww=[{href:"/aktionen/miele-hno-extra",label:"Miele HNO Extra-Aktion",desc:"Bis zu 1.000 € Aktionsvorteil auf Thermodesinfektoren",icon:QE}],Jw=[{href:"/ueber-uns/unser-team",label:"Unser Team",desc:"Persönliche Ansprechpartner vor Ort",icon:wg},{href:"/karriere",label:"Karriere",desc:"Offene Stellen & Ausbildung",icon:BP}];function km({items:e,image:t,categoryTitle:r,categoryDesc:s,currentLocation:o,onClose:c,quickActions:u,extraItems:f,extraLabel:h}){return g.jsxs(_e.div,{className:"mega-panel",initial:{clipPath:"inset(0 0 100% 0)",opacity:1},animate:{clipPath:"inset(0 0 0% 0)",opacity:1},exit:{clipPath:"inset(0 0 100% 0)",opacity:1},transition:{duration:.38,ease:[.22,1,.36,1]},role:"dialog","aria-label":`Untermenü ${r}`,children:[g.jsxs("div",{className:"mega-panel-inner",children:[g.jsxs("div",{className:"mega-panel-left",children:[g.jsxs("div",{className:"mega-panel-cat-header",children:[g.jsx("span",{className:"mega-panel-cat-label",children:r}),g.jsx("p",{className:"mega-panel-cat-desc",children:s})]}),g.jsxs("nav",{className:"mega-panel-links","aria-label":r,children:[e.map(m=>{const v=m.icon,y=o===m.href||o.startsWith(m.href+"/");return g.jsxs("a",{href:m.href,className:`mega-panel-item${y?" mega-panel-item-active":""}`,children:[g.jsx("span",{className:"mega-panel-item-icon","aria-hidden":"true",children:g.jsx(v,{className:"w-4 h-4"})}),g.jsxs("span",{className:"mega-panel-item-body",children:[g.jsx("span",{className:"mega-panel-item-label",children:m.label}),g.jsx("span",{className:"mega-panel-item-desc",children:m.desc})]}),g.jsx(hn,{className:"mega-panel-item-arrow w-3.5 h-3.5","aria-hidden":"true"})]},m.href)}),f&&f.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mega-panel-divider","aria-hidden":"true"}),h&&g.jsx("span",{className:"mega-panel-extra-label",children:h}),f.map(m=>{const v=m.icon,y=o===m.href||o.startsWith(m.href+"/");return g.jsxs("a",{href:m.href,className:`mega-panel-item mega-panel-item-extra${y?" mega-panel-item-active":""}`,children:[g.jsx("span",{className:"mega-panel-item-icon","aria-hidden":"true",children:g.jsx(v,{className:"w-4 h-4"})}),g.jsxs("span",{className:"mega-panel-item-body",children:[g.jsx("span",{className:"mega-panel-item-label",children:m.label}),g.jsx("span",{className:"mega-panel-item-desc",children:m.desc})]}),g.jsx(hn,{className:"mega-panel-item-arrow w-3.5 h-3.5","aria-hidden":"true"})]},m.href)})]})]})]}),g.jsxs("div",{className:"mega-panel-right",children:[g.jsxs("div",{className:"mega-panel-img-wrap",children:[g.jsx("img",{src:t,alt:r,className:"mega-panel-img",loading:"eager",fetchPriority:"high"}),g.jsx("div",{className:"mega-panel-img-overlay","aria-hidden":"true"})]}),u&&u.length>0&&g.jsx("div",{className:"mega-panel-quick",children:u.map((m,v)=>{const y=m.icon;return m.href?g.jsxs("a",{href:m.href,target:m.external?"_blank":void 0,rel:m.external?"noopener noreferrer":void 0,className:"mega-panel-quick-btn",children:[g.jsx(y,{className:"w-3.5 h-3.5","aria-hidden":"true"}),m.label,m.external&&g.jsx(Zu,{className:"w-3 h-3 opacity-60 ml-1","aria-hidden":"true"})]},v):g.jsxs("button",{className:"mega-panel-quick-btn",onClick:()=>{m.onClick?.()},children:[g.jsx(y,{className:"w-3.5 h-3.5","aria-hidden":"true"}),m.label]},v)})})]})]}),g.jsxs("div",{className:"mega-panel-footer",children:[g.jsx("span",{className:"mega-panel-footer-label",children:"Schnellzugriff:"}),g.jsx("a",{href:"/kontakt",className:"mega-panel-footer-link",children:"Beratung anfragen"}),g.jsx("span",{className:"mega-panel-footer-sep","aria-hidden":"true",children:"·"}),g.jsxs("button",{onClick:()=>Tu("Mega-Menü Schnellzugriff"),className:"mega-panel-footer-link",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:["Praxisportal ",g.jsx(Zu,{className:"w-3 h-3 inline ml-0.5","aria-hidden":"true"})]})]})]})}function U_(){const{openWizard:e}=Tf(),[t]=Ia(),r=t.startsWith("/leistungen")||t==="/retouren",s=t.startsWith("/themenwelten")||t.startsWith("/aktionen"),o=t.startsWith("/ueber-uns")||t.startsWith("/karriere"),[c,u]=S.useState(null),[f,h]=S.useState(!1),[m,v]=S.useState(!1),[y,x]=S.useState(!1),[w,T]=S.useState(!1),[_,N]=S.useState(!1),[k,L]=S.useState(!1),C=S.useRef(null);S.useEffect(()=>{const j=()=>N(window.scrollY>60);return window.addEventListener("scroll",j,{passive:!0}),()=>window.removeEventListener("scroll",j)},[]),S.useEffect(()=>{h(!1)},[t]),S.useEffect(()=>{const j=D=>{D.key==="Escape"&&(u(null),h(!1))};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[]);const B=j=>{C.current&&clearTimeout(C.current),u(j)},U=()=>{C.current&&clearTimeout(C.current)},H=()=>{C.current=setTimeout(()=>u(null),220)};return g.jsxs(g.Fragment,{children:[g.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[200] focus:bg-white focus:px-4 focus:py-2 focus:rounded focus:text-sm focus:font-medium focus:shadow-lg",style:{fontFamily:"'DM Sans', system-ui, sans-serif",color:"#0d1b3e"},children:"Zum Hauptinhalt springen"}),g.jsxs("nav",{className:`nav-root backdrop-blur-[20px] backdrop-filter${_?" nav-root--scrolled":""}`,"aria-label":"Hauptnavigation",onMouseLeave:H,children:[g.jsxs("div",{className:"nav-inner",children:[g.jsx(_e.a,{href:"/",whileHover:{opacity:.85},transition:{duration:.2},className:"flex-shrink-0",children:g.jsx("img",{loading:"eager",src:"/stusche-logo-transparent@2x.webp",alt:"Stusche GmbH – Zur Startseite",className:"nav-logo"})}),g.jsxs("div",{className:"hidden lg:flex items-center gap-4 xl:gap-8 absolute left-1/2 -translate-x-1/2 whitespace-nowrap",children:[g.jsx("div",{className:"relative",onMouseEnter:()=>B("leistungen"),children:g.jsxs("button",{className:`nav-link${r?" nav-link-active":""}`,"aria-haspopup":"dialog","aria-expanded":c==="leistungen",children:["Leistungen",g.jsx(_e.span,{animate:{rotate:c==="leistungen"?180:0},transition:{duration:.25},"aria-hidden":"true",children:g.jsx(ga,{className:"w-3.5 h-3.5"})})]})}),g.jsx("div",{className:"relative",onMouseEnter:()=>B("themenwelten"),children:g.jsxs("button",{className:`nav-link${s?" nav-link-active":""}`,"aria-haspopup":"dialog","aria-expanded":c==="themenwelten",children:["Themenwelten",g.jsx(_e.span,{animate:{rotate:c==="themenwelten"?180:0},transition:{duration:.25},"aria-hidden":"true",children:g.jsx(ga,{className:"w-3.5 h-3.5"})})]})}),g.jsx("div",{className:"relative",onMouseEnter:()=>B("ueberuns"),children:g.jsxs("button",{className:`nav-link${o?" nav-link-active":""}`,"aria-haspopup":"dialog","aria-expanded":c==="ueberuns",children:["Über uns",g.jsx(_e.span,{animate:{rotate:c==="ueberuns"?180:0},transition:{duration:.25},"aria-hidden":"true",children:g.jsx(ga,{className:"w-3.5 h-3.5"})})]})}),g.jsxs("button",{onClick:()=>Tu("Kopfzeile"),className:"nav-link",style:{textDecoration:"none",background:"none",border:"none",cursor:"pointer"},children:["Praxisportal",g.jsx(Zu,{className:"w-3 h-3 opacity-60","aria-hidden":"true"})]})]}),g.jsxs("div",{className:"hidden lg:flex items-center gap-3 ml-auto flex-shrink-0",children:[g.jsxs("a",{href:"tel:+493328474747",className:"nav-phone-full items-center gap-1.5 text-sm text-white/70 hover:text-white transition-colors whitespace-nowrap","aria-label":"Anrufen: +49 3328 47 47 47",children:[g.jsx(Rr,{className:"w-3.5 h-3.5","aria-hidden":"true"}),"03328 47 47 47"]}),g.jsx("a",{href:"tel:+493328474747",className:"nav-phone-icon nav-hamburger","aria-label":"Anrufen: +49 3328 47 47 47",children:g.jsx(Rr,{className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsx("button",{onClick:()=>L(!0),className:"nav-hamburger","aria-label":"Suche öffnen",children:g.jsx(Ku,{className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsxs("button",{onClick:()=>e({configKey:"beratung_general",sourceLabel:"Navigation – Beratung anfragen"}),className:"nav-cta",children:["Beratung ",g.jsx(hn,{className:"w-3 h-3","aria-hidden":"true"})]})]}),g.jsxs("div",{className:"lg:hidden flex items-center gap-2 ml-auto flex-shrink-0",children:[g.jsx("a",{href:"tel:+493328474747",className:"nav-hamburger","aria-label":"Anrufen: +49 3328 47 47 47",children:g.jsx(Rr,{className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsx("button",{onClick:()=>L(!0),className:"nav-hamburger","aria-label":"Suche öffnen",children:g.jsx(Ku,{className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsx("button",{className:"nav-hamburger",onClick:()=>h(!f),"aria-label":f?"Menü schließen":"Menü öffnen","aria-expanded":f,"aria-controls":"mobile-menu",children:f?g.jsx(gs,{className:"w-5 h-5"}):g.jsx(YP,{className:"w-5 h-5"})})]})]}),g.jsxs(va,{children:[c==="leistungen"&&g.jsx("div",{className:"mega-wrapper",onMouseEnter:U,onMouseLeave:H,children:g.jsx(km,{items:Yw,image:kV,categoryTitle:"Leistungen",categoryDesc:"Von der Lieferung bis zur Praxisgründung – wir begleiten Sie in jedem Schritt.",currentLocation:t,onClose:()=>u(null),quickActions:[{label:"Beratung anfragen",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Mega-Menü Leistungen"}),icon:Rr},{label:"Praxisportal",onClick:()=>Tu("Menüliste"),icon:ZE,external:!0}]})}),c==="themenwelten"&&g.jsx("div",{className:"mega-wrapper",onMouseEnter:U,onMouseLeave:H,children:g.jsx(km,{items:Xw,image:zV,categoryTitle:"Themenwelten",categoryDesc:"Spezialisiertes Wissen und Produkte für Ihren Fachbereich.",currentLocation:t,onClose:()=>u(null),extraItems:Ww,extraLabel:"Aktuelle Aktionen",quickActions:[{label:"Beratung anfragen",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Mega-Menü Themenwelten"}),icon:Rr}]})}),c==="ueberuns"&&g.jsx("div",{className:"mega-wrapper",onMouseEnter:U,onMouseLeave:H,children:g.jsx(km,{items:Jw,image:NV,categoryTitle:"Über uns",categoryDesc:"Seit über 35 Jahren Ihr verlässlicher Praxispartner in der Region.",currentLocation:t,onClose:()=>u(null),quickActions:[{label:"Kontakt aufnehmen",href:"/kontakt",icon:Rr}]})})]})]}),g.jsx("div",{className:`mega-blur-overlay backdrop-blur-[20px] backdrop-filter${c!==null?" mega-blur-overlay--visible":""}`,"aria-hidden":"true",onClick:()=>u(null)}),g.jsx(va,{children:f&&g.jsxs(g.Fragment,{children:[g.jsx(_e.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>h(!1),className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[100] lg:hidden","aria-hidden":"true"}),g.jsxs(_e.div,{id:"mobile-menu",role:"dialog","aria-modal":"true","aria-label":"Navigation",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:32,stiffness:320},className:"mobile-panel fixed top-0 right-0 bottom-0 w-[300px] z-[101] lg:hidden overflow-y-auto",children:[g.jsxs("div",{className:"mobile-panel-header",children:[g.jsx("img",{loading:"eager",src:"/stusche-logo-transparent@2x.webp",alt:"Stusche GmbH",className:"nav-logo",style:{height:"1.25rem"}}),g.jsx("button",{onClick:()=>h(!1),className:"nav-hamburger","aria-label":"Menü schließen",children:g.jsx(gs,{className:"w-5 h-5","aria-hidden":"true"})})]}),g.jsxs("div",{style:{paddingTop:"0.5rem"},children:[g.jsxs("div",{className:"mobile-nav-section",children:[g.jsxs("button",{onClick:()=>v(!m),className:"mobile-nav-btn","aria-expanded":m,children:["Leistungen",g.jsx(ga,{className:`w-3.5 h-3.5 transition-transform duration-200 ${m?"rotate-180":""}`,"aria-hidden":"true"})]}),g.jsx(va,{children:m&&g.jsx(_e.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",style:{paddingBottom:"1rem"},children:g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Yw.map(j=>g.jsx("a",{href:j.href,className:"mobile-nav-link",onClick:()=>h(!1),children:j.label},j.href))})})})]}),g.jsxs("div",{className:"mobile-nav-section",children:[g.jsxs("button",{onClick:()=>x(!y),className:"mobile-nav-btn","aria-expanded":y,children:["Themenwelten",g.jsx(ga,{className:`w-3.5 h-3.5 transition-transform duration-200 ${y?"rotate-180":""}`,"aria-hidden":"true"})]}),g.jsx(va,{children:y&&g.jsx(_e.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",style:{paddingBottom:"1rem"},children:g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[Xw.map(j=>g.jsx("a",{href:j.href,className:"mobile-nav-link",onClick:()=>h(!1),children:j.label},j.href)),g.jsx("div",{className:"mobile-nav-divider","aria-hidden":"true"}),g.jsx("span",{className:"mobile-nav-section-label",children:"Aktuelle Aktionen"}),Ww.map(j=>g.jsxs("a",{href:j.href,className:"mobile-nav-link mobile-nav-link-accent",onClick:()=>h(!1),children:[g.jsx(QE,{className:"w-3 h-3 text-red-500 flex-shrink-0","aria-hidden":"true"}),j.label]},j.href))]})})})]}),g.jsxs("div",{className:"mobile-nav-section",children:[g.jsxs("button",{onClick:()=>T(!w),className:"mobile-nav-btn","aria-expanded":w,children:["Über uns",g.jsx(ga,{className:`w-3.5 h-3.5 transition-transform duration-200 ${w?"rotate-180":""}`,"aria-hidden":"true"})]}),g.jsx(va,{children:w&&g.jsx(_e.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",style:{paddingBottom:"1rem"},children:g.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Jw.map(j=>g.jsx("a",{href:j.href,className:"mobile-nav-link",onClick:()=>h(!1),children:j.label},j.href))})})})]}),g.jsx("div",{className:"mobile-nav-section",children:g.jsxs("button",{onClick:()=>{h(!1),Tu("Mobilmenü")},className:"mobile-nav-btn",style:{textDecoration:"none",display:"flex",justifyContent:"space-between",background:"none",border:"none",cursor:"pointer",width:"100%"},children:["Praxisportal",g.jsx(Zu,{className:"w-3.5 h-3.5 opacity-60","aria-hidden":"true"})]})}),g.jsx("div",{className:"mobile-nav-section",children:g.jsx("a",{href:"/kontakt",className:"mobile-nav-btn",style:{textDecoration:"none",display:"flex",justifyContent:"space-between"},onClick:()=>h(!1),children:"Kontakt"})}),g.jsx("div",{style:{padding:"1.5rem"},children:g.jsx("button",{onClick:()=>{h(!1),e({configKey:"beratung_general",sourceLabel:"Navigation (mobil) – Beratung anfragen"})},className:"nav-cta",style:{width:"100%",justifyContent:"center"},children:"Beratung anfragen"})})]})]})]})}),g.jsx(CV,{isOpen:k,onClose:()=>L(!1)})]})}function V_({activePage:e}){const t=[{label:"Praxisbedarf",href:"/leistungen/praxisbedarf",key:"praxisbedarf"},{label:"Sprechstundenbedarf",href:"/leistungen/sprechstundenbedarf",key:"sprechstundenbedarf"},{label:"Technischer Service",href:"/leistungen/technischer-service",key:"technischer-service"},{label:"3D-Praxisplanung",href:"/leistungen/praxisplanung",key:"praxisplanung"},{label:"Praxisportal",href:"/leistungen/praxisportal",key:"praxisportal"},{label:"Praxisgründung",href:"/leistungen/praxisgruendung",key:"praxisgruendung"},{label:"Hygienemanagement",href:"/leistungen/hygienemanagement",key:"hygienemanagement"},{label:"Retouren anmelden",href:"/retouren",key:"retouren"}],r=[{label:"Unser Team",href:"/ueber-uns/unser-team"},{label:"Karriere",href:"/karriere"}],s=[{label:"Gynäkologie",href:"/themenwelten/gynaekologie",key:"gynaekologie",active:!0},{label:"Aufbereitung & Sterilisation",href:"/themenwelten/aufbereitung",key:"aufbereitung",active:!0},{label:"Autoklaven",href:"/themenwelten/aufbereitung/autoklaven",key:"aufbereitung-autoklaven",active:!0},{label:"Thermodesinfektoren",href:"/themenwelten/aufbereitung/thermodesinfektoren",key:"aufbereitung-thermodesinfektoren",active:!0},{label:"Medizintechnik",href:"/themenwelten/medizintechnik",key:"medizintechnik",active:!0},{label:"Chirurgie",href:"/themenwelten/chirurgie",key:"chirurgie",active:!0},{label:"OP- & Untersuchungsleuchten",href:"/themenwelten/op-leuchten",key:"op-leuchten",active:!0},{label:"Gynäkologische Stühle",href:"/themenwelten/gynaekologie/gynstuehle",key:"gynstuehle",active:!0}],o=[{label:"MELAG Vacuklav Autoklaven",href:"/produkte/melag-vacuklav",key:"melag-vacuklav"},{label:"Miele Thermodesinfektoren",href:"/produkte/miele-thermodesinfektor",key:"miele-thermodesinfektor"},{label:"EDAN F3 CTG",href:"/produkte/edan-f3-ctg",key:"edan-f3-ctg"},{label:"SCHMITZ medi-matic",href:"/produkte/medi-matic",key:"medi-matic"},{label:"Vitalograph Pneumotrac",href:"/produkte/vitalograph-pneumotrac",key:"vitalograph-pneumotrac"},{label:"Vitalograph Alpha Connect",href:"/produkte/vitalograph-alpha-connect",key:"vitalograph-alpha-connect"},{label:"boso TM-2450",href:"/produkte/boso-tm-2450",key:"boso-tm-2450"}];return g.jsx(g.Fragment,{children:g.jsx("footer",{className:"site-footer","aria-label":"Seitenfußzeile",children:g.jsxs("div",{className:"container",children:[g.jsxs("div",{className:"site-footer-top",children:[g.jsxs("div",{children:[g.jsx("img",{loading:"eager",src:"/stusche-logo-transparent@2x.webp",alt:"Stusche GmbH",className:"site-footer-logo",width:"220",height:"28"}),g.jsxs("p",{className:"site-footer-tagline",children:["Ihr Praxisdienstleister",g.jsx("br",{}),"seit 1989"]})]}),g.jsxs("div",{children:[g.jsx("p",{className:"site-footer-col-label",children:"Leistungen"}),g.jsx("ul",{className:"site-footer-list",children:t.map(c=>g.jsx("li",{children:g.jsx("a",{href:c.href,className:`site-footer-link${e===c.key?" site-footer-link-active":""}`,children:c.label})},c.key))})]}),g.jsxs("div",{children:[g.jsx("p",{className:"site-footer-col-label",children:"Themenwelten"}),g.jsx("ul",{className:"site-footer-list",children:s.map(c=>c.active?g.jsx("li",{children:g.jsx("a",{href:c.href,className:`site-footer-link${e===c.key?" site-footer-link-active":""}`,children:c.label})},c.key):g.jsx("li",{children:g.jsx("span",{className:"site-footer-link-disabled",children:c.label})},c.key))}),g.jsx("p",{className:"site-footer-col-label",style:{marginTop:"1.5rem"},children:"Produkte"}),g.jsx("ul",{className:"site-footer-list",children:o.map(c=>g.jsx("li",{children:g.jsx("a",{href:c.href,className:`site-footer-link${e===c.key?" site-footer-link-active":""}`,children:c.label})},c.key))})]}),g.jsxs("div",{children:[g.jsx("p",{className:"site-footer-col-label",children:"Über uns"}),g.jsx("ul",{className:"site-footer-list",children:r.map(c=>g.jsx("li",{children:g.jsx("a",{href:c.href,className:"site-footer-link",children:c.label})},c.href))})]}),g.jsxs("div",{children:[g.jsx("p",{className:"site-footer-col-label",children:"Kontakt"}),g.jsx("a",{href:"tel:+493328474747",className:"site-footer-phone",children:"+49 3328 / 47 47 47"}),g.jsx("p",{className:"site-footer-hours",children:"Mo – Do, 8:00 – 17:00 Uhr"}),g.jsx("p",{className:"site-footer-hours",children:"Fr, 8:00 – 16:00 Uhr"}),g.jsx("p",{className:"site-footer-hours",style:{marginTop:"0.5rem"},children:"Fax: +49 3328 / 47 57 67"}),g.jsx("a",{href:"/kontakt",className:"site-footer-link",style:{marginTop:"0.75rem",display:"inline-block"},children:"Kontaktformular"})]})]}),g.jsxs("div",{className:"site-footer-bottom",children:[g.jsxs("div",{className:"site-footer-copy-group",children:[g.jsx("p",{className:"site-footer-copy",children:"© 2026 Stusche GmbH"}),g.jsxs("span",{className:"site-footer-solar-badge",title:"30-kWp-Photovoltaik-Anlage auf unserem Firmengebäude",children:[g.jsx(r6,{className:"site-footer-solar-icon","aria-hidden":"true"}),"Betrieben mit Solarstrom"]})]}),g.jsxs("nav",{className:"site-footer-legal","aria-label":"Rechtliche Links",children:[g.jsx("a",{href:"/datenschutz",className:"site-footer-legal-link",children:"Datenschutz"}),g.jsx("span",{className:"site-footer-legal-sep","aria-hidden":"true",children:"·"}),g.jsx("button",{type:"button",className:"site-footer-legal-link",onClick:()=>kP(),children:"Datenschutzeinstellungen"}),g.jsx("span",{className:"site-footer-legal-sep","aria-hidden":"true",children:"·"}),g.jsx("a",{href:"/agb",className:"site-footer-legal-link",children:"AGB"}),g.jsx("span",{className:"site-footer-legal-sep","aria-hidden":"true",children:"·"}),g.jsx("a",{href:"/impressum",className:"site-footer-legal-link",children:"Impressum"})]}),g.jsx("p",{className:"site-footer-copy",style:{opacity:.4},children:"* Alle Preise exkl. MwSt. Ab 100 € netto versandkostenfrei, darunter 6,90 € Versandpauschale."})]})]})})})}const Pr="https://www.stusche.de",MV="Stusche – Ihr Praxisdienstleister";function B_({title:e,description:t,keywords:r,canonical:s,ogImage:o="/og-image.webp",ogType:c="website",schema:u,noIndex:f=!1}){const[h]=Ia();let m;s?s.startsWith("http")?m=s:m=`${Pr}${s.startsWith("/")?s:`/${s}`}`:m=`${Pr}${h}`;const v=u?Array.isArray(u)?u:[u]:[];return g.jsxs(Vk,{children:[g.jsx("title",{children:e}),g.jsx("meta",{name:"description",content:t}),r&&g.jsx("meta",{name:"keywords",content:r}),f?g.jsx("meta",{name:"robots",content:"noindex, nofollow"}):g.jsx("meta",{name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}),g.jsx("link",{rel:"canonical",href:m}),g.jsx("meta",{property:"og:title",content:e}),g.jsx("meta",{property:"og:description",content:t}),g.jsx("meta",{property:"og:type",content:c}),g.jsx("meta",{property:"og:url",content:m}),g.jsx("meta",{property:"og:image",content:o.startsWith("http")?o:`${Pr}${o}`}),g.jsx("meta",{property:"og:site_name",content:MV}),g.jsx("meta",{property:"og:locale",content:"de_DE"}),g.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),g.jsx("meta",{name:"twitter:title",content:e}),g.jsx("meta",{name:"twitter:description",content:t}),g.jsx("meta",{name:"twitter:image",content:o.startsWith("http")?o:`${Pr}${o}`}),v.map((y,x)=>g.jsx("script",{type:"application/ld+json",children:JSON.stringify(y)},x))]})}function eB(e){return{"@context":"https://schema.org","@type":"Product",name:e.name,description:e.description,image:e.image||`${Pr}/images/default-product.webp`,brand:{"@type":"Brand",name:e.brand||"Stusche"},category:e.category||"Medical Equipment",offers:{"@type":"Offer",availability:"https://schema.org/InStock",priceCurrency:"EUR",seller:{"@type":"Organization",name:"Stusche GmbH"}}}}function tB(e){return{"@context":"https://schema.org","@type":"Service",name:e.name,description:e.description,serviceType:e.serviceType,provider:{"@type":"MedicalBusiness",name:"Stusche GmbH",url:Pr},areaServed:[{"@type":"City",name:"Berlin"},{"@type":"State",name:"Brandenburg"}]}}function RV(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,name:t.name,item:t.url.startsWith("http")?t.url:`${Pr}${t.url}`}))}}function nB(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}}function rB(e){return{"@context":"https://schema.org","@type":"JobPosting",title:e.title,description:e.description,datePosted:e.datePosted||new Date().toISOString().split("T")[0],employmentType:e.employmentType||"FULL_TIME",hiringOrganization:{"@type":"Organization",name:"Stusche GmbH",sameAs:Pr,logo:`${Pr}/stusche-logo-transparent.webp`},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",streetAddress:"Iserstraße 12",addressLocality:e.jobLocation||"Teltow",addressRegion:"Brandenburg",postalCode:"14513",addressCountry:"DE"}}}}const eS={anrede:"",name:"",praxis:"",strasse:"",plz:"",ort:"",email:"",telefon:"",anzahl:1,datenschutz:!1,_hp:""};function DV({open:e,onClose:t}){const[r,s]=S.useState(eS),[o,c]=S.useState({}),[u,f]=S.useState(!1),h=S.useRef(Date.now()),m=S.useRef(pp()),v=Si.katalog.bestellen.useMutation({onSuccess:()=>{f(!0),mE($a.KATALOG_BESTELLUNG,"Katalogbestellung",m.current),eT(m.current)},onError:_=>c({name:_.message})}),y=_=>N=>{const k=N.target.type==="checkbox"?N.target.checked:N.target.value;s(L=>({...L,[_]:k})),c(L=>({...L,[_]:void 0}))},x=()=>{const _={};return(!r.name.trim()||r.name.trim().length<2)&&(_.name="Bitte vollständigen Namen angeben."),(!r.strasse.trim()||r.strasse.trim().length<3)&&(_.strasse="Bitte Straße und Hausnummer angeben."),/^\d{5}$/.test(r.plz)||(_.plz="Bitte eine gültige 5-stellige PLZ eingeben."),(!r.ort.trim()||r.ort.trim().length<2)&&(_.ort="Bitte Ort angeben."),r.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r.email)&&(_.email="Bitte eine gültige E-Mail-Adresse eingeben."),r.datenschutz||(_.datenschutz="Bitte stimmen Sie der Datenschutzerklärung zu."),c(_),Object.keys(_).length===0},w=_=>{_.preventDefault(),x()&&v.mutate({anrede:r.anrede||void 0,name:r.name.trim(),praxis:r.praxis.trim()||void 0,strasse:r.strasse.trim(),plz:r.plz.trim(),ort:r.ort.trim(),email:r.email.trim()||void 0,telefon:r.telefon.trim()||void 0,anzahl:r.anzahl,_hp:r._hp,_openedAt:h.current,tracking:qE(m.current)})},T=()=>{s(eS),c({}),f(!1),h.current=Date.now(),m.current=pp(),t()};return e?g.jsxs("div",{className:"fixed inset-0 z-[1100] flex items-start sm:items-center justify-center sm:p-4",role:"dialog","aria-modal":"true","aria-label":"Katalog kostenlos bestellen",children:[g.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:T,"aria-hidden":"true"}),g.jsxs("div",{className:"relative w-full sm:max-w-lg bg-white rounded-none shadow-2xl flex flex-col mt-0 h-screen sm:h-auto sm:max-h-[90vh]",style:{height:"var(--modal-h, 100dvh)"},children:[g.jsxs("div",{className:"bg-[#0a1628] px-6 py-5 flex items-center justify-between flex-shrink-0",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs text-[#4a9eff] font-semibold uppercase tracking-widest",children:"Anfrage"}),g.jsx("h2",{className:"text-white font-bold text-lg leading-tight",children:"Katalog bestellen"})]}),g.jsx("button",{onClick:T,className:"w-8 h-8 rounded-none bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors","aria-label":"Schließen",children:g.jsx(gs,{className:"w-4 h-4 text-white"})})]}),g.jsx("div",{className:"overflow-y-auto flex-1 overscroll-contain",children:u?g.jsxs("div",{className:"px-6 py-12 flex flex-col items-center text-center gap-4",children:[g.jsx("div",{className:"w-16 h-16 rounded-none bg-green-50 flex items-center justify-center",children:g.jsx(IP,{className:"w-9 h-9 text-green-500"})}),g.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Bestellung eingegangen!"}),g.jsx("p",{className:"text-gray-500 text-sm max-w-xs",children:"Ihr Katalog wird kostenlos an die angegebene Adresse versendet. In der Regel erhalten Sie ihn innerhalb von 3–5 Werktagen."}),g.jsx("button",{onClick:T,className:"mt-2 gyn-btn-primary",children:"Schließen"})]}):g.jsxs("form",{onSubmit:w,noValidate:!0,className:"px-6 py-6 space-y-5",children:[g.jsx("p",{className:"text-sm text-gray-500",children:"Wir senden Ihnen den Stusche Katalog 2025/2026 kostenfrei per Post zu. Bitte füllen Sie die Lieferadresse aus."}),g.jsx("input",{type:"text",name:"website_url",value:r._hp,onChange:y("_hp"),tabIndex:-1,autoComplete:"nope","aria-hidden":"true",style:{position:"fixed",top:"-9999px",left:"-9999px",width:"1px",height:"1px",opacity:0,pointerEvents:"none"}}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Anrede"}),g.jsxs("select",{value:r.anrede,onChange:y("anrede"),className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors",children:[g.jsx("option",{value:"",children:"Bitte wählen"}),g.jsx("option",{value:"Herr",children:"Herr"}),g.jsx("option",{value:"Frau",children:"Frau"}),g.jsx("option",{value:"Praxis",children:"Praxis"})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Anzahl Exemplare"}),g.jsx("select",{value:r.anzahl,onChange:_=>s(N=>({...N,anzahl:parseInt(_.target.value)})),className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors",children:[1,2,3,4,5].map(_=>g.jsxs("option",{value:_,children:[_," Exemplar",_>1?"e":""]},_))})]})]}),g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(FE,{className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Name ",g.jsx("span",{className:"text-red-500",children:"*"})]}),g.jsx("input",{type:"text",value:r.name,onChange:y("name"),placeholder:"Vor- und Nachname",autoComplete:"name",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.name?"border-red-400 bg-red-50":"border-gray-200"}`}),o.name&&g.jsx("p",{className:"mt-1 text-xs text-red-500",children:o.name})]}),g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(Ef,{className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Praxisname / Einrichtung"]}),g.jsx("input",{type:"text",value:r.praxis,onChange:y("praxis"),placeholder:"z. B. Praxis Dr. Müller",autoComplete:"organization",className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors"})]}),g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(Gu,{className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Straße und Hausnummer ",g.jsx("span",{className:"text-red-500",children:"*"})]}),g.jsx("input",{type:"text",value:r.strasse,onChange:y("strasse"),placeholder:"Musterstraße 12",autoComplete:"street-address",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.strasse?"border-red-400 bg-red-50":"border-gray-200"}`}),o.strasse&&g.jsx("p",{className:"mt-1 text-xs text-red-500",children:o.strasse})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:["PLZ ",g.jsx("span",{className:"text-red-500",children:"*"})]}),g.jsx("input",{type:"text",value:r.plz,onChange:y("plz"),placeholder:"12345",maxLength:5,autoComplete:"postal-code",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.plz?"border-red-400 bg-red-50":"border-gray-200"}`}),o.plz&&g.jsx("p",{className:"mt-1 text-xs text-red-500",children:o.plz})]}),g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:["Ort ",g.jsx("span",{className:"text-red-500",children:"*"})]}),g.jsx("input",{type:"text",value:r.ort,onChange:y("ort"),placeholder:"Berlin",autoComplete:"address-level2",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.ort?"border-red-400 bg-red-50":"border-gray-200"}`}),o.ort&&g.jsx("p",{className:"mt-1 text-xs text-red-500",children:o.ort})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(bg,{className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"E-Mail ",g.jsx("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),g.jsx("input",{type:"email",value:r.email,onChange:y("email"),placeholder:"praxis@beispiel.de",autoComplete:"email",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.email?"border-red-400 bg-red-50":"border-gray-200"}`}),o.email&&g.jsx("p",{className:"mt-1 text-xs text-red-500",children:o.email})]}),g.jsxs("div",{children:[g.jsxs("label",{className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(Rr,{className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Telefon ",g.jsx("span",{className:"text-gray-400 font-normal",children:"(optional)"})]}),g.jsx("input",{type:"tel",value:r.telefon,onChange:y("telefon"),placeholder:"030 12345678",autoComplete:"tel",className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors"})]})]}),g.jsxs("div",{className:`rounded-none p-3 border ${o.datenschutz?"border-red-300 bg-red-50":"border-gray-100 bg-gray-50"}`,children:[g.jsxs("label",{className:"flex items-start gap-2.5 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:r.datenschutz,onChange:y("datenschutz"),className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-[#1a6dcc] focus:ring-[#1a6dcc]/30 flex-shrink-0"}),g.jsxs("span",{className:"text-xs text-gray-600 leading-relaxed",children:["Ich stimme der Verarbeitung meiner Daten zur Katalogzusendung gemäß der"," ",g.jsx("a",{href:"/datenschutz",target:"_blank",rel:"noopener noreferrer",className:"text-[#1a6dcc] underline hover:text-[#1557b0]",children:"Datenschutzerklärung"})," ","zu. Die Daten werden ausschließlich für den Versand verwendet und nicht an Dritte weitergegeben. ",g.jsx("span",{className:"text-red-500",children:"*"})]})]}),o.datenschutz&&g.jsx("p",{className:"mt-1.5 text-xs text-red-500 pl-6",children:o.datenschutz})]}),g.jsx("button",{type:"submit",disabled:v.isPending,className:"w-full gyn-btn-primary justify-center disabled:opacity-60 disabled:cursor-not-allowed",children:v.isPending?g.jsxs("span",{className:"flex items-center gap-2",children:[g.jsxs("svg",{className:"animate-spin w-4 h-4",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Wird gesendet…"]}):g.jsxs(g.Fragment,{children:[g.jsx(xg,{className:"w-4 h-4"}),"Katalog kostenlos anfordern"]})}),g.jsx("p",{className:"text-center text-xs text-gray-400",children:"Kostenlos · Keine Verpflichtung · Versand per Post"})]})})]})]}):null}const PV={melag:{src:"/images/melag_final_c7612f72.webp",alt:"MELAG – competence in hygiene",size:"h-5"},miele:{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele",bg:"bg-[#CC0000]",size:"h-5"},"miele professional":{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele Professional",bg:"bg-[#CC0000]",size:"h-5"},schmitz:{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz",size:"h-10"},"schmitz medical":{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz Medical",size:"h-10"},getinge:{src:"/images/getinge_final_98c16755.webp",alt:"Getinge",size:"h-6"},edan:{src:"/images/edan-logo_2459b379.webp",alt:"EDAN",size:"h-12"},"medical econet":{src:"/images/medical-econet-logo_f91f8b7f.webp",alt:"medical ECOnet",size:"h-8"},schiller:{src:"/images/schiller-logo_be708bcb.webp",alt:"SCHILLER",size:"h-7"},vitalograph:{src:"/images/vitalograph-logo_6590ad7d.webp",alt:"Vitalograph",size:"h-7"},"bosch + sohn":{src:"/images/bosch-sohn-boso-logo_c18316fa.webp",alt:"Bosch + Sohn / boso",size:"h-10"},"dr. mach":{src:"/images/dr-mach-logo_9b53143c.webp",alt:"Dr. Mach",size:"h-10"},erbe:{src:"/images/erbe-logo_ce09c39e.webp",alt:"ERBE Elektromedizin",size:"h-7"},"erbe elektromedizin":{src:"/images/erbe-logo_ce09c39e.webp",alt:"ERBE Elektromedizin",size:"h-7"},"serag-wiessner":{src:"/images/serag-wiessner-logo.webp",alt:"Serag-Wiessner",size:"h-7"},"serag wiessner":{src:"/images/serag-wiessner-logo.webp",alt:"Serag-Wiessner",size:"h-7"},"b. braun":{src:"/images/bbraun-logo.webp",alt:"B. Braun – Sharing Expertise",size:"h-8"},bbraun:{src:"/images/bbraun-logo.webp",alt:"B. Braun – Sharing Expertise",size:"h-8"}};function LV({hersteller:e,className:t=""}){const r=e.toLowerCase(),s=PV[r];if(!s)return g.jsx("span",{className:`text-[10px] font-semibold text-gray-400 tracking-widest uppercase ${t}`,children:e});const o=!!s.bg;return g.jsx("div",{className:`flex items-center justify-end ${t}`,title:s.alt,children:g.jsx("div",{className:`rounded px-1.5 py-0.5 opacity-80 hover:opacity-100 transition-opacity ${o?"bg-white shadow-sm":""}`,children:g.jsx("img",{src:s.src,alt:s.alt,className:`${s.size??"h-6"} w-auto object-contain`,loading:"lazy"})})})}const UV="/hero-loop-v2.webm",VV="/hero-loop-v2.mp4",tS="/hero-poster-v2.webp",BV="/images/home-themenwelt-gyn-3TSczofTDCc8ZyxKa3Ywsb.webp",HV="/images/medi-matic-front_541c3967.webp",qV="/images/boso-tm2450-front_e8f1a2b3.webp",IV="/images/edan-f3-ctg-new_c4d5e6f7.webp",$V="/melag-vacuklav-44b-evolution.webp",pt=[{brand:"SCHMITZ",hersteller:"schmitz",brandColor:"#1a1a2e",name:"medi-matic®",tag:"Behandlungsstuhl",category:"Gynäkologie",desc:"Der preisgekrönte Behandlungsstuhl für die moderne gynäkologische Praxis. Wireless-Steuerung, 470 mm Ausgangshöhe und LED-Ambiente.",features:["4 Nutzerprofile, 16 Memorypositionen","470 mm Ausgangshöhe – sicheres Platznehmen","300 kg Arbeitslast","LED-Ambiente individuell dimmbar"],badge:"German Design Award 2023",img:HV,imgAlt:"SCHMITZ medi-matic Behandlungsstuhl",href:"/produkte/medi-matic",wizardConfig:"medimatic_inquiry",bgColor:"#f0f4f8"},{brand:"boso",hersteller:"bosch + sohn",brandColor:"#cc0000",name:"TM-2450",tag:"Blutdruckmessgerät",category:"Diagnostik",desc:"Vollautomatisches Blutdruckmessgerät für die Praxis. Klinisch validiert, ARTERY-Society-zertifiziert und einfach zu bedienen.",features:["Klinisch validiert nach ESH-Protokoll","Großes, gut lesbares Display","Speicher für 60 Messungen","Netz- und Batteriebetrieb möglich"],badge:"Klinisch validiert",img:qV,imgAlt:"boso TM-2450 Blutdruckmessgerät",href:"/produkte/boso-tm-2450",wizardConfig:"boso_tm2450_inquiry",bgColor:"#f5f0f0"},{brand:"EDAN",hersteller:"edan",brandColor:"#2d6a4f",name:"F3 CTG-Monitor",tag:"CTG-Gerät",category:"Gynäkologie",desc:"Moderner Fetal-Monitor für die Überwachung von Mutter und Kind. Kompakt, präzise und mit großem Farb-Touchscreen.",features:['Großes 10,4" Farb-Touchscreen-Display',"Integrierter Thermodrucker","Bluetooth & WLAN-Konnektivität","Bis zu 24h Aufzeichnung"],badge:"CE-zertifiziert",img:IV,imgAlt:"EDAN F3 CTG-Monitor",href:"/produkte/edan-f3-ctg",wizardConfig:"ctg_inquiry",bgColor:"#f0f5f2"},{brand:"MELAG",hersteller:"melag",brandColor:"#0066cc",name:"Vacuklav 44 B+ Evolution",tag:"Autoklav Klasse B",category:"Aufbereitung",desc:"Der Power-Autoklav für die große Praxis – mit DRYtelligence. 22 l Kammer, bis zu 9 kg Beladung, Sterilisation verpackter Instrumente in nur 20 Minuten.",features:["Klasse B – alle Instrumententypen","9 kg Beladekapazität","DRYtelligence® – intelligente Trocknung","XXL Colour-Touch Display"],badge:"KRINKO-konform",img:$V,imgAlt:"MELAG Vacuklav 44 B+ Evolution Autoklav",href:"/produkte/melag-vacuklav",wizardConfig:"autoklaven_inquiry",bgColor:"#f0f4fa"}],ZV=[{icon:xg,title:"Praxisbedarf",desc:"Verbrauchsmaterialien, Diagnostik und Praxisausstattung – zuverlässig geliefert, direkt in Ihre Praxis.",href:"/leistungen/praxisbedarf",tag:"Lieferung"},{icon:n6,title:"Sprechstundenbedarf",desc:"Abrechnung nach § 300 SGB V – wir übernehmen die komplette Abwicklung mit den Krankenkassen.",href:"/leistungen/sprechstundenbedarf",tag:"Abrechnung"},{icon:YE,title:"Technischer Service",desc:"Wartung, Reparatur und STK nach MPBetreibV durch zertifizierte Techniker – vor Ort in Ihrer Praxis.",href:"/leistungen/technischer-service",tag:"Service"},{icon:WP,title:"3D-Praxisplanung",desc:"Individuelle Praxisplanung in 3D – von der ersten Skizze bis zur schlüsselfertigen Einrichtung.",href:"/leistungen/praxisplanung",tag:"Planung"},{icon:KE,title:"Praxisportal",desc:"Kostenfrei für alle Kunden: Bestellungen, SSB-Rezepte, Rechnungsarchiv und Geräte-Service in einem System.",href:"/leistungen/praxisportal",tag:"Kostenfrei"},{icon:vg,title:"Hygienemanagement",desc:"Begehung, Hygieneplan, Schulung und Zertifikat – alles aus einer Hand, rechtssicher nach IfSG und KRINKO.",href:"/leistungen/hygienemanagement",tag:"Compliance"}],GV=[{icon:wg,title:"Persönlicher Außendienst",desc:"Jede Praxis erhält einen festen Ansprechpartner – für Beratung, Bestellung und Vor-Ort-Besuche."},{icon:Ef,title:"Schnelle Lieferung, oft am nächsten Werktag",desc:"Unser eigenes Lager in Teltow ermöglicht kurze Wege und schnelle Verfügbarkeit – direkt vor den Toren Berlins."},{icon:$E,title:"Zertifizierter Service",desc:"Alle Techniker sind nach MPBetreibV zertifiziert. Qualität und Compliance sind bei uns Standard."},{icon:KE,title:"Digitales Praxisportal",desc:"Kostenfrei für alle Kunden: Bestellungen, SSB-Rezepte, Rechnungsarchiv und Geräte-Service in einem System – eingerichtet von unserem Außendienst."}],KV=[{title:"Gynäkologie",desc:"Spezialisiertes Sortiment, Fachberatung und technischer Service – exklusiv für gynäkologische Praxen.",img:BV,href:"/themenwelten/gynaekologie",available:!0,badge:"Verfügbar"},{title:"Aufbereitung & Sterilisation",desc:"Autoklaven und Thermodesinfektoren – KRINKO-konforme Aufbereitungstechnik von MELAG, Miele und Getinge.",img:"/images/aufbereitung-hero_a1ca8875.webp",href:"/themenwelten/aufbereitung",available:!0,badge:"Verfügbar"},{title:"Medizintechnik",desc:"Diagnostikgeräte, Blutdruckmessgeräte und Spirometrie – zuverlässige Medizintechnik für den Praxisalltag.",img:"/images/unsplash-medizin_1576091160.webp",href:"/themenwelten/medizintechnik",available:!0,badge:"Verfügbar"},{title:"Chirurgie",desc:"Operationstische, HF-Geräte, Nahtmaterial und Aufbereitungstechnik – Komplettausstattung für chirurgische Praxen.",img:"/images/chirurgie-hero.webp",href:"/themenwelten/chirurgie",available:!0,badge:"Verfügbar"}],dn=(e=0)=>({initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:e}});function QV(){const{openWizard:e}=Tf(),[t,r]=S.useState(0),[s,o]=S.useState(!1),[c,u]=S.useState(!1),[f,h]=S.useState(!1);S.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const C=window.matchMedia("(min-width: 768px)"),B=()=>h(C.matches);return B(),C.addEventListener("change",B),()=>C.removeEventListener("change",B)},[]);const m=S.useRef(null),v=S.useRef(null),y=S.useCallback(()=>{r(C=>(C+1)%pt.length)},[]);S.useEffect(()=>{if(s)return;const C=setInterval(y,4e3);return()=>clearInterval(C)},[s,y]);const{scrollYProgress:x}=Qw({target:m,offset:["start start","end start"]}),w=vu(x,[0,1],[1,0]),T=vu(x,[0,1],[1,1.08]),_=vu(x,[0,1],[0,80]),{scrollYProgress:N}=Qw({target:v,offset:["start end","end start"]}),k=vu(N,[0,1],["-8%","8%"]),L={"@context":"https://schema.org","@type":"LocalBusiness","@id":"https://www.stusche.de/#business",name:"Stusche GmbH",url:"https://www.stusche.de",telephone:"+493328474747",faxNumber:"+493328475767",email:"info@stusche.de",address:{"@type":"PostalAddress",streetAddress:"Iserstraße 12",addressLocality:"Teltow",postalCode:"14513",addressRegion:"Brandenburg",addressCountry:"DE"},geo:{"@type":"GeoCoordinates",latitude:52.3983,longitude:13.2674},openingHoursSpecification:[{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday"],opens:"08:00",closes:"17:00"},{"@type":"OpeningHoursSpecification",dayOfWeek:"Friday",opens:"08:00",closes:"16:00"}],description:"Ihr Premiumpartner für Praxisbedarf, Sprechstundenbedarf, technischen Service und Praxisplanung – seit 1989.",foundingDate:"1989",areaServed:[{"@type":"City",name:"Berlin"},{"@type":"State",name:"Brandenburg"}],hasMap:"https://maps.google.com/?q=Iserstra%C3%9Fe+12,+14513+Teltow"};return g.jsxs(g.Fragment,{children:[g.jsx(B_,{title:"Stusche GmbH | Praxisbedarf & Medizintechnik in Teltow bei Berlin",description:"Praxisbedarf, Sprechstundenbedarf, Medizintechnik und 3D-Praxisplanung für Arztpraxen in Berlin & Brandenburg. Seit 1989 Ihr Praxisdienstleister in Teltow.",keywords:"Praxisbedarf, Sprechstundenbedarf, Medizintechnik, Praxisplanung, Stusche, Teltow, Arztpraxis, Berlin, Brandenburg",canonical:"https://www.stusche.de/",schema:[L,RV([{name:"Startseite",url:"https://www.stusche.de"}])]}),g.jsxs("div",{className:"min-h-screen bg-white gyn-font-body",children:[g.jsx(U_,{}),g.jsxs("section",{ref:m,className:"relative min-h-screen flex items-end overflow-clip",children:[g.jsxs(_e.div,{className:"absolute inset-0",style:{scale:T,opacity:w},children:[g.jsx("img",{src:tS,alt:"","aria-hidden":"true",fetchPriority:"high",decoding:"async",className:`absolute inset-0 w-full h-full object-cover object-center ${f?"md:hidden":""}`}),f&&g.jsxs("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,poster:tS,className:"absolute inset-0 w-full h-full object-cover","aria-hidden":"true",children:[g.jsx("source",{src:UV,type:"video/webm"}),g.jsx("source",{src:VV,type:"video/mp4"})]}),g.jsx("div",{className:"absolute inset-0 gyn-hero-gradient"})]}),g.jsx(_e.div,{className:"container relative z-10 pb-16 pt-32 xl:pt-40",style:{y:_},children:g.jsxs("div",{className:"max-w-4xl",children:[g.jsx(_e.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1},children:g.jsxs("div",{className:"gyn-badge",children:[g.jsx(Gu,{className:"w-3 h-3","aria-hidden":"true"}),"Teltow · Brandenburg · Seit 1989"]})}),g.jsxs(_e.h1,{className:"gyn-hero-title home-hero-h1 mb-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.9,delay:.2},children:[g.jsx("span",{className:"md:whitespace-nowrap",children:"Praxisbedarf & Medizintechnik"}),g.jsx("br",{}),g.jsx("em",{className:"text-blue-italic md:whitespace-nowrap",children:"für die moderne Arztpraxis"})]}),g.jsx(_e.p,{className:"gyn-hero-subtitle mb-10",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.35},children:"Über 40.000 Artikel, Sprechstundenbedarf mit Kassenabrechnung und eigener technischer Service – persönlich betreut in Berlin & Brandenburg, seit 1989."}),g.jsxs(_e.div,{className:"flex flex-wrap gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.5},children:[g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsxs("button",{onClick:()=>e({configKey:"beratung_general",sourceLabel:"Startseite – Hero"}),className:"gyn-btn-primary",children:["Beratung anfragen",g.jsx(hn,{className:"w-3.5 h-3.5","aria-hidden":"true"})]}),g.jsx("span",{className:"text-white/50 text-xs pl-1",children:"Rückruf am selben Werktag"})]}),g.jsxs("a",{href:"#leistungen",className:"gyn-btn-outline inline-flex items-center gap-2 border-white/30 text-white/70 hover:text-white hover:border-white/60 self-start",style:{height:"2.9375rem"},children:[g.jsx(hn,{className:"w-3.5 h-3.5","aria-hidden":"true"}),"Leistungen entdecken"]})]}),g.jsx(_e.div,{className:"mt-12 mb-8 hidden md:grid md:grid-cols-4 gap-8 max-w-lg",initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:.65},children:[{value:"35+",label:"Jahre Erfahrung"},{value:"500+",label:"Praxen versorgt"},{value:"Täglich",label:"Liefertouren"},{value:"Vor Ort",label:"Außendienst & Service"}].map((C,B)=>g.jsxs("div",{className:"gyn-stat-card",children:[g.jsx("div",{className:"gyn-stat-value",children:C.value}),g.jsx("div",{className:"gyn-stat-label",children:C.label})]},B))})]})})]}),g.jsx("section",{className:"py-16 bg-[#f5f7fa] border-b border-gray-200",children:g.jsx("div",{className:"container",children:g.jsxs(_e.div,{className:"flex flex-col md:flex-row items-center gap-10 md:gap-16",...dn(0),children:[g.jsxs("div",{className:"flex-1 text-center md:text-left",children:[g.jsxs("div",{className:"flex items-center gap-3 justify-center md:justify-start mb-5",children:[g.jsx("span",{className:"block w-8 h-0.5 bg-red-600","aria-hidden":"true"}),g.jsx("span",{className:"text-xs font-semibold uppercase tracking-widest text-navy/50",children:"Miele Aktion · Gültig bis 31.12.2026"})]}),g.jsxs("h2",{className:"text-3xl sm:text-4xl font-light text-navy leading-tight mb-4",children:["Jetzt bis zu"," ",g.jsx("span",{className:"font-bold text-red-600",children:"1.000 €"})," ","Aktionsvorteil sichern"]}),g.jsxs("p",{className:"text-navy/55 text-base leading-relaxed max-w-xl mb-7",children:["Miele ExpertLine oder CompactLine Thermodesinfektor + HNO-Korbset +"," ","6 Monate Miele MOVE MedDent+ kostenlos – exklusiv für HNO-Praxen in Berlin & Brandenburg."]}),g.jsxs(gi,{href:"/aktionen/miele-hno-extra",className:"gyn-btn-outline-dark inline-flex",children:["Zum Aktionsangebot",g.jsx(bi,{className:"w-4 h-4"})]})]}),g.jsx("div",{className:"flex-shrink-0 w-full md:w-80 lg:w-96",children:g.jsx("div",{className:"bg-white p-8",children:g.jsx("img",{src:"/images/miele-expertline-compactline.jpg",alt:"Miele ExpertLine und CompactLine Thermodesinfektoren für HNO-Praxen",className:"w-full h-auto object-contain block",loading:"lazy"})})})]})})}),g.jsx("section",{className:"py-24 bg-white",children:g.jsxs("div",{className:"container",children:[g.jsxs(_e.div,{className:"mb-14",...dn(0),children:[g.jsx("div",{className:"gyn-section-label",children:"LEISTUNGEN"}),g.jsx("h2",{className:"gyn-section-title mt-4",children:"Alles, was Ihre Praxis braucht"}),g.jsx("p",{className:"gyn-section-subtitle mt-3 max-w-2xl",children:"Von der täglichen Versorgung bis zur langfristigen Planung – wir begleiten Sie in allen Bereichen."})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:ZV.map((C,B)=>g.jsx(_e.div,{...dn(B*.07),children:g.jsxs(gi,{href:C.href,className:"gyn-product-card group block h-full",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("span",{className:"gyn-product-tag",children:C.tag}),g.jsx(C.icon,{className:"w-5 h-5 text-blue-400/60","aria-hidden":"true"})]}),g.jsx("div",{className:"gyn-product-name",children:C.title}),g.jsx("p",{className:"gyn-product-meta home-leistung-meta mt-2 normal-case tracking-normal leading-relaxed",children:C.desc}),g.jsxs("div",{className:"flex items-center gap-1 mt-5 text-blue-500 text-sm font-semibold",children:["Mehr erfahren",g.jsx(bi,{className:"w-4 h-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]})},C.title))})]})}),g.jsxs("section",{className:"pt-10 pb-16 bg-white border-t border-gray-100",children:[g.jsx("div",{className:"container",children:g.jsxs("div",{className:"flex items-center justify-center gap-4 mb-8",children:[g.jsx("div",{className:"flex-1 max-w-[120px] h-px bg-gradient-to-r from-transparent to-gray-300"}),g.jsx("p",{className:"text-xs font-semibold tracking-[0.18em] text-gray-500 uppercase whitespace-nowrap",children:"Top-Marken aus unserem Sortiment"}),g.jsx("div",{className:"flex-1 max-w-[120px] h-px bg-gradient-to-l from-transparent to-gray-300"})]})}),g.jsxs("div",{className:"marquee-track",children:[g.jsx("div",{className:"pointer-events-none absolute left-0 top-0 bottom-0 w-24 z-10 marquee-fade-left"}),g.jsx("div",{className:"pointer-events-none absolute right-0 top-0 bottom-0 w-24 z-10 marquee-fade-right"}),g.jsx("div",{className:"flex gap-16 items-center animate-marquee whitespace-nowrap",children:[{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele",h:"h-7"},{src:"/images/melag_final_c7612f72.webp",alt:"MELAG",h:"h-6"},{src:"/images/schiller-logo_be708bcb.webp",alt:"SCHILLER",h:"h-7"},{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz",h:"h-10"},{src:"/images/edan-logo_2459b379.webp",alt:"EDAN",h:"h-10"},{src:"/images/medical-econet-logo_f91f8b7f.webp",alt:"medical ECOnet",h:"h-8"},{src:"/images/vitalograph-logo_6590ad7d.webp",alt:"Vitalograph",h:"h-7"},{src:"/images/bosch-sohn-boso-logo_c18316fa.webp",alt:"Bosch + Sohn / boso",h:"h-9"},{src:"/images/dr-mach-logo_9b53143c.webp",alt:"Dr. Mach",h:"h-9"},{src:"/images/getinge_final_98c16755.webp",alt:"Getinge",h:"h-7"},{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele",h:"h-7"},{src:"/images/melag_final_c7612f72.webp",alt:"MELAG",h:"h-6"},{src:"/images/schiller-logo_be708bcb.webp",alt:"SCHILLER",h:"h-7"},{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz",h:"h-10"},{src:"/images/edan-logo_2459b379.webp",alt:"EDAN",h:"h-10"},{src:"/images/medical-econet-logo_f91f8b7f.webp",alt:"medical ECOnet",h:"h-8"},{src:"/images/vitalograph-logo_6590ad7d.webp",alt:"Vitalograph",h:"h-7"},{src:"/images/bosch-sohn-boso-logo_c18316fa.webp",alt:"Bosch + Sohn / boso",h:"h-9"},{src:"/images/dr-mach-logo_9b53143c.webp",alt:"Dr. Mach",h:"h-9"},{src:"/images/getinge_final_98c16755.webp",alt:"Getinge",h:"h-7"}].map((C,B)=>g.jsx("div",{className:"inline-flex items-center justify-center flex-shrink-0 opacity-80 hover:opacity-100 transition-opacity duration-300",children:g.jsx("img",{src:C.src,alt:C.alt,className:`${C.h} w-auto object-contain`,loading:"lazy"})},B))})]})]}),g.jsxs("section",{id:"leistungen",className:"py-24 bg-navy",children:[" ",g.jsxs("div",{className:"container",children:[g.jsxs(_e.div,{className:"mb-14",...dn(0),children:[g.jsx("div",{className:"gyn-section-label gyn-section-label--on-dark",children:"THEMENWELTEN"}),g.jsx("h2",{className:"gyn-section-title gyn-section-title--on-dark mt-4",children:"Unsere Themenwelten"}),g.jsx("p",{className:"gyn-section-subtitle gyn-section-subtitle--on-dark mt-3 max-w-2xl",children:"Wir beliefern alle Fachrichtungen – von der Gynäkologie bis zur Chirurgie. Hier unsere Spezialisierungen:"})]}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5",children:KV.map((C,B)=>g.jsx(_e.div,{...dn(B*.1),children:C.available?g.jsxs(gi,{href:C.href,className:"home-themenwelt-card group block",children:[g.jsxs("div",{className:"home-themenwelt-img-wrap",children:[C.img?g.jsx("img",{src:C.img,alt:C.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}):g.jsx("div",{className:"w-full h-full bg-navy flex items-center justify-center",children:C.icon&&g.jsx(C.icon,{className:"w-20 h-20 text-blue-400/30","aria-hidden":"true"})}),g.jsx("div",{className:"home-themenwelt-img-overlay"}),g.jsx("span",{className:"home-themenwelt-badge home-themenwelt-badge-active",children:C.badge})]}),g.jsxs("div",{className:"home-themenwelt-body",children:[g.jsx("h3",{className:"home-themenwelt-title",children:C.title}),g.jsx("p",{className:"home-themenwelt-desc",children:C.desc}),g.jsxs("div",{className:"home-themenwelt-cta",children:["Themenwelt entdecken",g.jsx(bi,{className:"w-4 h-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]})]}):g.jsxs("div",{className:"home-themenwelt-card home-themenwelt-card-soon",children:[g.jsxs("div",{className:"home-themenwelt-img-wrap home-themenwelt-img-soon",children:[g.jsx("div",{className:"w-full h-full flex items-center justify-center",children:C.icon&&g.jsx(C.icon,{className:"w-16 h-16 text-white/20","aria-hidden":"true"})}),g.jsx("span",{className:"home-themenwelt-badge home-themenwelt-badge-soon",children:C.badge})]}),g.jsxs("div",{className:"home-themenwelt-body",children:[g.jsx("h3",{className:"home-themenwelt-title home-themenwelt-title--soon",children:C.title}),g.jsx("p",{className:"home-themenwelt-desc home-themenwelt-desc--soon",children:C.desc})]})]})},C.title))})]})]}),g.jsxs("section",{className:"home-warum-cinematic",ref:v,children:[g.jsx(_e.div,{className:"home-warum-cinematic-photo",style:{y:k},"aria-hidden":"true"}),g.jsx("div",{className:"home-warum-cinematic-gradient","aria-hidden":"true"}),g.jsxs("div",{className:"container home-warum-cinematic-inner",children:[g.jsxs(_e.div,{className:"home-warum-cinematic-header",...dn(0),children:[g.jsx("div",{className:"gyn-section-label",style:{color:"rgba(255,255,255,0.55)"},children:"WARUM STUSCHE"}),g.jsxs("h2",{className:"gyn-section-title-light mb-0",children:["Mehr als ein Lieferant –",g.jsx("br",{}),g.jsx("em",{className:"text-blue-italic",children:"Ihr Praxispartner"})]})]}),g.jsx("div",{className:"home-warum-cinematic-list",children:GV.map((C,B)=>g.jsxs(_e.div,{className:"home-warum-cinematic-item",...dn(.1+B*.08),children:[g.jsx("div",{className:"home-warum-cinematic-item-icon",children:g.jsx(C.icon,{className:"w-4 h-4","aria-hidden":"true"})}),g.jsxs("div",{className:"home-warum-cinematic-item-body",children:[g.jsx("div",{className:"home-warum-cinematic-item-title",children:C.title}),g.jsx("div",{className:"home-warum-cinematic-item-desc",children:C.desc})]})]},C.title))}),g.jsxs(_e.div,{className:"home-warum-cinematic-cta",...dn(.5),children:[g.jsxs("button",{onClick:()=>e({configKey:"beratung_general",sourceLabel:"Startseite – Warum Stusche"}),className:"gyn-btn-primary",children:["Jetzt Beratung anfragen",g.jsx(hn,{className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx("span",{className:"home-warum-cinematic-note",children:"Persönlicher Außendienst · Eigenes Lager Teltow · Seit 1989"})]})]})]}),g.jsx("section",{className:"py-24 bg-white",children:g.jsxs("div",{className:"container",children:[g.jsxs(_e.div,{className:"mb-12",...dn(0),children:[g.jsx("div",{className:"gyn-section-label",children:"PRODUKT-HIGHLIGHTS"}),g.jsxs("h2",{className:"gyn-section-title mt-4",children:["Ausgewählte Produkte",g.jsx("br",{}),g.jsx("em",{className:"text-blue-italic",children:"für Ihre Praxis"})]})]}),g.jsxs("div",{className:"home-slider",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),children:[g.jsxs(_e.div,{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.45,ease:[.22,1,.36,1]},children:[g.jsxs("div",{children:[g.jsx("div",{className:"gyn-section-label mt-0",children:pt[t].category}),g.jsx("h3",{className:"home-slider-product-name mt-3",children:pt[t].name}),g.jsx("div",{className:"gyn-divider"}),g.jsx("p",{className:"gyn-body-text mb-6",children:pt[t].desc}),g.jsx("div",{className:"space-y-1",children:pt[t].features.map(C=>g.jsxs("div",{className:"gyn-check-item",children:[g.jsx("div",{className:"gyn-check-icon","aria-hidden":"true",children:g.jsx(_u,{className:"w-3 h-3"})}),C]},C))}),g.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-8",children:[pt[t].wizardConfig&&g.jsxs("button",{className:"gyn-btn-primary inline-flex",onClick:()=>e({configKey:pt[t].wizardConfig,sourceLabel:`Slider – ${pt[t].name}`}),children:["Angebot anfragen",g.jsx(hn,{className:"w-4 h-4","aria-hidden":"true"})]}),pt[t].href&&g.jsxs(gi,{href:pt[t].href,className:"gyn-btn-outline-dark inline-flex",children:["Produkt entdecken",g.jsx(hn,{className:"w-4 h-4","aria-hidden":"true"})]}),g.jsxs("span",{className:"home-slider-badge-inline",children:[g.jsx($E,{className:"w-3.5 h-3.5","aria-hidden":"true"}),pt[t].badge]})]})]}),g.jsxs("div",{className:"home-slider-img-wrap",children:[g.jsx("div",{className:"absolute top-0 right-0",children:g.jsx(LV,{hersteller:pt[t].hersteller})}),g.jsx("img",{src:pt[t].img,alt:pt[t].imgAlt,className:"home-slider-img",loading:"lazy"})]})]},t),g.jsxs("div",{className:"home-slider-controls",children:[g.jsx("div",{className:"home-slider-dots",children:pt.map((C,B)=>g.jsx("button",{onClick:()=>r(B),className:`home-slider-dot${B===t?" home-slider-dot--active":""}`,"aria-label":`Produkt ${B+1}: ${pt[B].name}`},B))}),g.jsxs("div",{className:"home-slider-arrows",children:[g.jsx("button",{onClick:()=>r((t-1+pt.length)%pt.length),className:"home-slider-arrow","aria-label":"Vorheriges Produkt",children:g.jsx(bi,{className:"w-5 h-5 rotate-180","aria-hidden":"true"})}),g.jsxs("span",{className:"home-slider-counter",children:[t+1," / ",pt.length]}),g.jsx("button",{onClick:()=>r((t+1)%pt.length),className:"home-slider-arrow","aria-label":"Nächstes Produkt",children:g.jsx(bi,{className:"w-5 h-5","aria-hidden":"true"})})]})]})]})]})}),g.jsx("section",{className:"home-ueber-uns-section py-24",children:g.jsxs("div",{className:"container",children:[g.jsxs(_e.div,{className:"flex items-center gap-6 pb-8",...dn(0),children:[g.jsx("div",{className:"gyn-section-label gyn-section-label--no-margin",children:"ÜBER UNS"}),g.jsx("div",{className:"home-ueber-uns-trennlinie"}),g.jsx("span",{className:"home-ueber-uns-ort",children:"Teltow, Brandenburg"})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-0",children:[g.jsxs(_e.div,{className:"lg:col-span-5 py-16 lg:py-24 lg:pr-16 home-ueber-uns-linke-spalte",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.8,ease:[.22,1,.36,1]},children:[g.jsx("div",{className:"home-ueber-uns-jahreszahl",children:"1989"}),g.jsx("p",{className:"home-ueber-uns-gruendung-label",children:"Gegründet in Teltow"}),g.jsx("p",{className:"home-ueber-uns-gruendung-text",children:"Seit über 35 Jahren der verlässliche Partner für Arztpraxen in Berlin und Brandenburg."})]}),g.jsxs(_e.div,{className:"lg:col-span-7 py-16 lg:py-24 lg:pl-16",...dn(.15),children:[g.jsx("h2",{className:"home-ueber-uns-heading",children:g.jsx("em",{children:"Persönlich. Verlässlich. Vor Ort."})}),g.jsx("div",{className:"home-ueber-uns-row-list",children:[{label:"Persönlicher Kontakt",text:"Fester Außendienstpartner für jede Praxis – persönlicher Ansprechpartner statt anonymer Hotline, digital dokumentierte Vorgänge."},{label:"Eigenes Lager in Teltow",text:"Kurze Wege, schnelle Verfügbarkeit. Direkt vor den Toren Berlins."},{label:"Zertifizierter Service",text:"Alle Techniker nach MPBetreibV zertifiziert. Qualität ist unser Standard."}].map(C=>g.jsxs("div",{className:"home-ueber-uns-row",children:[g.jsx("span",{className:"home-ueber-uns-row-label",children:C.label}),g.jsx("span",{className:"home-ueber-uns-row-text",children:C.text})]},C.label))}),g.jsxs("div",{className:"flex flex-wrap gap-4",children:[g.jsxs(gi,{href:"/ueber-uns/unser-team",className:"gyn-btn-outline-dark inline-flex",children:["Unser Team kennenlernen",g.jsx(hn,{className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx(gi,{href:"/karriere",className:"gyn-btn-outline-dark inline-flex",children:"Karriere bei Stusche"})]}),g.jsx(_e.div,{className:"mt-10 pt-8 home-ueber-uns-karriere-teaser",...dn(.35),children:g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[g.jsxs("div",{className:"flex items-center gap-2 mr-4 flex-shrink-0",children:[g.jsx(wg,{className:"w-4 h-4 text-blue-500","aria-hidden":"true"}),g.jsx("span",{className:"home-ueber-uns-stellen-label",children:"4 offene Stellen"})]}),[{title:"Fahrer & Montagetechniker Medizintechnik (m/w/d)",href:"/karriere/fahrer-montagetechniker"},{title:"Kreditorenbuchhalter (m/w/d)",href:"/karriere/kreditorenbuchhalter"}].map(C=>g.jsxs(gi,{href:C.href,className:"home-karriere-job-link",children:[g.jsx("span",{children:C.title}),g.jsx(bi,{className:"w-4 h-4 flex-shrink-0","aria-hidden":"true"})]},C.title))]})})]})]})]})}),g.jsx("section",{className:"py-24 bg-navy",children:g.jsx("div",{className:"container",children:g.jsxs(_e.div,{className:"max-w-2xl",...dn(0),children:[g.jsx("div",{className:"gyn-section-label gyn-section-label--on-dark",children:"KONTAKT"}),g.jsx("h2",{className:"gyn-section-title gyn-section-title--on-dark mt-4",children:"Bereit für den nächsten Schritt?"}),g.jsx("p",{className:"gyn-section-subtitle gyn-section-subtitle--on-dark mt-4 mb-10",children:"Unser Außendienst kommt zu Ihnen – kostenlos, unverbindlich und auf Ihre Praxis zugeschnitten."}),g.jsxs("div",{className:"flex flex-wrap gap-4",children:[g.jsxs("button",{onClick:()=>e({configKey:"beratung_general",sourceLabel:"Startseite – CTA"}),className:"gyn-btn-primary",children:["Beratungsgespräch vereinbaren",g.jsx(hn,{className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx(gi,{href:"/kontakt",className:"gyn-btn-outline inline-flex",children:"Kontakt & Standort"})]})]})})}),g.jsx("section",{className:"py-24 bg-white",children:g.jsx("div",{className:"container",children:g.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[g.jsxs(_e.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},children:[g.jsx("div",{className:"gyn-section-label",children:"Katalog 2025/2026"}),g.jsxs("h2",{className:"gyn-section-title mb-6",children:["Unser Sortiment",g.jsx("br",{}),g.jsx("em",{className:"text-blue-italic",children:"im Überblick"})]}),g.jsx("div",{className:"gyn-divider"}),g.jsx("p",{className:"gyn-body-text mb-8",children:"Entdecken Sie unser vollständiges Sortiment für Praxisbedarf, Sprechstundenbedarf, Hygienemanagement und Medizintechnik – im Stusche Katalog 2025/2026."}),g.jsxs("div",{className:"flex flex-wrap gap-3",children:[g.jsx("a",{href:"https://www.stusche.de/files/stusche_katalog_2025/",target:"_blank",rel:"noopener noreferrer",children:g.jsxs("button",{className:"gyn-btn-outline-dark",children:["Katalog online blättern ",g.jsx(hn,{className:"w-3.5 h-3.5","aria-hidden":"true"})]})}),g.jsxs("button",{className:"gyn-btn-outline-dark",onClick:()=>u(!0),children:[g.jsx(xg,{className:"w-3.5 h-3.5","aria-hidden":"true"}),"Kostenlos zusenden lassen"]})]})]}),g.jsx(_e.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.15},className:"flex justify-center",children:g.jsx("a",{href:"https://www.stusche.de/files/stusche_katalog_2025/",target:"_blank",rel:"noopener noreferrer",className:"block",children:g.jsx("img",{src:"/images/stusche-katalog-2025_36a4a9c7.webp",alt:"Stusche Katalog 2025/2026",className:"w-80 lg:w-96 object-contain hover:scale-105 transition-transform duration-300",loading:"lazy"})})})]})})}),g.jsx(V_,{})]}),g.jsx(DV,{open:c,onClose:()=>u(!1)})]})}function nS(){const[,e]=Ia();return g.jsxs(g.Fragment,{children:[g.jsx(B_,{title:"Seite nicht gefunden | Stusche GmbH",description:"Die gesuchte Seite existiert nicht mehr oder wurde verschoben. Besuchen Sie unsere Startseite oder kontaktieren Sie uns direkt.",canonical:"/404",noIndex:!0}),g.jsxs("div",{className:"gyn-page",children:[g.jsx(U_,{}),g.jsxs("main",{id:"main-content",className:"relative min-h-[80vh] flex items-center justify-center overflow-hidden",style:{background:"var(--stusche-navy-hero, #001a3a)"},children:[g.jsx("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":"true",style:{background:"radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,80,160,0.18) 0%, transparent 70%)"}}),g.jsxs("div",{className:"relative z-10 max-w-2xl w-full mx-auto px-6 py-28 text-center",children:[g.jsx(_e.p,{className:"font-bold leading-none mb-6 select-none",style:{fontSize:"clamp(7rem, 20vw, 12rem)",color:"rgba(255,255,255,0.06)",letterSpacing:"-0.04em",lineHeight:1},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},"aria-hidden":"true",children:"404"}),g.jsx(_e.h1,{className:"text-3xl md:text-4xl font-bold text-white mb-4 -mt-8",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},children:"Seite nicht gefunden"}),g.jsx(_e.p,{className:"text-base md:text-lg mb-10 leading-relaxed",style:{color:"rgba(255,255,255,0.55)"},initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:"Die gesuchte Seite existiert nicht mehr oder wurde verschoben. Möglicherweise haben Sie einen veralteten Link verwendet."}),g.jsxs(_e.div,{className:"flex flex-col sm:flex-row gap-4 justify-center mb-12",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:[g.jsxs("button",{onClick:()=>e("/"),className:"gyn-btn-primary inline-flex items-center justify-center gap-2",children:[g.jsx(GP,{className:"w-4 h-4","aria-hidden":"true"}),"Zur Startseite"]}),g.jsxs("button",{onClick:()=>history.back(),className:"gyn-btn-outline inline-flex items-center justify-center gap-2",children:[g.jsx(VP,{className:"w-4 h-4","aria-hidden":"true"}),"Zurück"]})]}),g.jsx(_e.div,{className:"border-t mb-10",style:{borderColor:"rgba(255,255,255,0.1)"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4}}),g.jsxs(_e.p,{className:"text-sm",style:{color:"rgba(255,255,255,0.45)"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.45},children:["Benötigen Sie Hilfe?"," ",g.jsxs("a",{href:"/kontakt",className:"underline underline-offset-2 transition-colors",style:{color:"rgba(255,255,255,0.7)"},children:[g.jsx(bg,{className:"w-3.5 h-3.5 inline mr-1 -mt-0.5","aria-hidden":"true"}),"Kontaktieren Sie uns"]})," ","oder rufen Sie uns an:"," ",g.jsxs("a",{href:"tel:+493328474747",className:"underline underline-offset-2 font-medium transition-colors",style:{color:"rgba(255,255,255,0.85)"},children:[g.jsx(Rr,{className:"w-3.5 h-3.5 inline mr-1 -mt-0.5","aria-hidden":"true"}),"03328 47 47 47"]})]})]})]}),g.jsx(V_,{})]})]})}const FV=S.lazy(()=>Oe(()=>import("./GynaekologieV3-DJ0f2Wcu.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),YV=S.lazy(()=>Oe(()=>import("./Praxisbedarf-7UZQl3DJ.js"),__vite__mapDeps([7,1,2,6,3,8,9,10,11,12]))),XV=S.lazy(()=>Oe(()=>import("./Sprechstundenbedarf-UkTn26B-.js"),__vite__mapDeps([13,2,11]))),WV=S.lazy(()=>Oe(()=>import("./TechnischerService-CZBoNWuz.js"),__vite__mapDeps([14,1,2,11,15,10]))),JV=S.lazy(()=>Oe(()=>import("./Praxisplanung-P7rkIhEc.js"),__vite__mapDeps([16,1,2,17,11]))),e7=S.lazy(()=>Oe(()=>import("./Praxisportal-Cz63GEbh.js"),__vite__mapDeps([18,1,2,9,11,12,19]))),t7=S.lazy(()=>Oe(()=>import("./Hygienemanagement-CVnLnD54.js"),__vite__mapDeps([20,1,2,12,4,21,11,22,23,24,19]))),n7=S.lazy(()=>Oe(()=>import("./Praxisgruendung-DgZXdKBP.js"),__vite__mapDeps([25,1,2,24,11,12,26,3]))),r7=S.lazy(()=>Oe(()=>import("./Kontakt-Di2fRsQ4.js"),__vite__mapDeps([27,28,29]))),i7=S.lazy(()=>Oe(()=>import("./MediMatic-BnK3YwYY.js"),__vite__mapDeps([30,2,11]))),s7=S.lazy(()=>Oe(()=>import("./VitalographPneumotrac-DKIoC3Dc.js"),__vite__mapDeps([31,2,32,33,34,12]))),a7=S.lazy(()=>Oe(()=>import("./VitalographAlphaConnect-BYViJ0xw.js"),__vite__mapDeps([35,32,34,33,36,37]))),o7=S.lazy(()=>Oe(()=>import("./BosoTM2450-Caqrh0e4.js"),__vite__mapDeps([38,2,10,33,36]))),l7=S.lazy(()=>Oe(()=>import("./MelagVacuklav-DDakflMy.js"),__vite__mapDeps([39,2,11,10,17,40]))),c7=S.lazy(()=>Oe(()=>import("./MieleThermodesinfektor-ByaX2cET.js"),__vite__mapDeps([41,2,5,42,12,28,10]))),u7=S.lazy(()=>Oe(()=>import("./EdanF3Ctg-C8g_sN9Z.js"),__vite__mapDeps([43,2,8,34,33,10]))),f7=S.lazy(()=>Oe(()=>import("./Impressum-r4Knpmbe.js"),__vite__mapDeps([44,12]))),d7=S.lazy(()=>Oe(()=>import("./Datenschutz-vF3E3jKS.js"),[])),h7=S.lazy(()=>Oe(()=>import("./AGB-DKIoKZEX.js"),[])),m7=S.lazy(()=>Oe(()=>import("./UnserTeam-CEhHERHF.js"),__vite__mapDeps([45,24,46,6,47,26,11,10,48]))),p7=S.lazy(()=>Oe(()=>import("./Karriere-BpV8pJ49.js"),__vite__mapDeps([49,1,11,10]))),g7=S.lazy(()=>Oe(()=>import("./Aufbereitung-dKh4OTw4.js"),__vite__mapDeps([50,1,2,5,4,28,10]))),y7=S.lazy(()=>Oe(()=>import("./Autoklaven-jp4Vgtuu.js"),__vite__mapDeps([51,2,11,17,40,33,10]))),v7=S.lazy(()=>Oe(()=>import("./Thermodesinfektoren-CV37hDGL.js"),__vite__mapDeps([52,2,10,5,28,42,11]))),b7=S.lazy(()=>Oe(()=>import("./Medizintechnik-BsK484Vq.js"),__vite__mapDeps([53,2,32]))),x7=S.lazy(()=>Oe(()=>import("./OPLeuchten-PSySw1s6.js"),__vite__mapDeps([54,2,28,47,11,15]))),w7=S.lazy(()=>Oe(()=>import("./Chirurgie-Cw1tztIX.js"),__vite__mapDeps([55,1,2,4]))),S7=S.lazy(()=>Oe(()=>import("./Kreditorenbuchhalter-BJLx_WT7.js"),__vite__mapDeps([56,10,57,22,4,28,23]))),E7=S.lazy(()=>Oe(()=>import("./FahrerMontagetechniker-u1KzJVgo.js"),__vite__mapDeps([58,10,57,24,46,22,23,28]))),T7=S.lazy(()=>Oe(()=>import("./MieleHnoExtra-te1EUIjO.js"),__vite__mapDeps([59,2,10,11,3]))),_7=S.lazy(()=>Oe(()=>import("./Retouren-QycYEofn.js"),__vite__mapDeps([60,61,10,12]))),A7=S.lazy(()=>Oe(()=>import("./GynStuehle-BZlDqJGg.js"),__vite__mapDeps([62,36,63,4]))),j7=S.lazy(()=>Oe(()=>import("./AdminLogin-DfgF9JrA.js"),__vite__mapDeps([64,65,19,66,47]))),O7=S.lazy(()=>Oe(()=>import("./AdminPanel-CVLQ1FpQ.js"),__vite__mapDeps([67,68,65,63,21,19,69,28,10,70,57,71,72,73,29,74]))),C7=S.lazy(()=>Oe(()=>import("./GynNewsAdmin-lqt9V95q.js"),__vite__mapDeps([75,68,65,63,21,19,69,28,29,74,73,57,47,66,71]))),k7=S.lazy(()=>Oe(()=>import("./SearchIndexAdmin-D-Aofg5O.js"),__vite__mapDeps([76,68,65,63,21,19,77,10,12,29,28,69]))),z7=S.lazy(()=>Oe(()=>import("./RetourenAdmin-DEuLWN9a.js"),__vite__mapDeps([78,68,65,63,21,19,15,69,28,61,10,73,47,29,72,74,71]))),N7=S.lazy(()=>Oe(()=>import("./KatalogBestellungenAdmin-gdxl3T2L.js"),__vite__mapDeps([79,68,65,63,21,19,69,61,28,70,10]))),M7=S.lazy(()=>Oe(()=>import("./EmailEinstellungenAdmin-C1GhmUjG.js"),__vite__mapDeps([80,68,65,63,21,19,69,74,73]))),R7=S.lazy(()=>Oe(()=>import("./EmailLogAdmin-C2vR-YyA.js"),__vite__mapDeps([81,68,65,63,21,19,69,28,61,37,71]))),D7=S.lazy(()=>Oe(()=>import("./SeoReportAdmin-nRrZ21Un.js"),__vite__mapDeps([82,68,65,63,21,19,77,69,22,29,12,28,10,66,47,73]))),P7=S.lazy(()=>Oe(()=>import("./AnalyseAdmin-CxMCYlV4.js"),__vite__mapDeps([83,68,65,63,21,19,22,10])));function L7(){return g.jsxs("div",{style:{minHeight:"60vh",display:"flex",alignItems:"center",justifyContent:"center"},children:[g.jsx("div",{style:{width:32,height:32,border:"3px solid #e5e7eb",borderTopColor:"#0d1b3e",borderRadius:"50%",animation:"spin 0.7s linear infinite"}}),g.jsx("style",{children:"@keyframes spin{to{transform:rotate(360deg)}}"})]})}HE();function U7(){const[e]=Ia();return S.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}function V7(){const[e]=Ia(),t=S.useRef(null);return S.useEffect(()=>{if(t.current===null){t.current=e;return}if(t.current===e)return;const r=t.current;t.current=e;const s=setTimeout(()=>gR(e,r),120);return()=>clearTimeout(s)},[e]),null}function B7(){return AR(),null}function H7(){return g.jsxs(g.Fragment,{children:[g.jsx(U7,{}),g.jsx(B7,{}),g.jsx(V7,{}),g.jsx(S.Suspense,{fallback:g.jsx(L7,{}),children:g.jsxs(pR,{children:[g.jsx(Ee,{path:"/",component:QV}),g.jsx(Ee,{path:"/themenwelten/gynaekologie",component:FV}),g.jsx(Ee,{path:"/leistungen/praxisbedarf",component:YV}),g.jsx(Ee,{path:"/leistungen/sprechstundenbedarf",component:XV}),g.jsx(Ee,{path:"/leistungen/technischer-service",component:WV}),g.jsx(Ee,{path:"/leistungen/praxisplanung",component:JV}),g.jsx(Ee,{path:"/leistungen/praxisgruendung",component:n7}),g.jsx(Ee,{path:"/leistungen/praxisportal",component:e7}),g.jsx(Ee,{path:"/leistungen/hygienemanagement",component:t7}),g.jsx(Ee,{path:"/kontakt",component:r7}),g.jsx(Ee,{path:"/produkte/medi-matic",component:i7}),g.jsx(Ee,{path:"/produkte/vitalograph-pneumotrac",component:s7}),g.jsx(Ee,{path:"/produkte/vitalograph-alpha-connect",component:a7}),g.jsx(Ee,{path:"/produkte/boso-tm-2450",component:o7}),g.jsx(Ee,{path:"/produkte/melag-vacuklav",component:l7}),g.jsx(Ee,{path:"/produkte/miele-thermodesinfektor",component:c7}),g.jsx(Ee,{path:"/produkte/edan-f3-ctg",component:u7}),g.jsx(Ee,{path:"/impressum",component:f7}),g.jsx(Ee,{path:"/datenschutz",component:d7}),g.jsx(Ee,{path:"/agb",component:h7}),g.jsx(Ee,{path:"/retouren",component:_7}),g.jsx(Ee,{path:"/ueber-uns/unser-team",component:m7}),g.jsx(Ee,{path:"/karriere",component:p7}),g.jsx(Ee,{path:"/themenwelten/aufbereitung",component:g7}),g.jsx(Ee,{path:"/themenwelten/aufbereitung/autoklaven",component:y7}),g.jsx(Ee,{path:"/themenwelten/aufbereitung/thermodesinfektoren",component:v7}),g.jsx(Ee,{path:"/themenwelten/medizintechnik",component:b7}),g.jsx(Ee,{path:"/themenwelten/op-leuchten",component:x7}),g.jsx(Ee,{path:"/themenwelten/chirurgie",component:w7}),g.jsx(Ee,{path:"/themenwelten/gynaekologie/gynstuehle",component:A7}),g.jsx(Ee,{path:"/karriere/kreditorenbuchhalter",component:S7}),g.jsx(Ee,{path:"/karriere/fahrer-montagetechniker",component:E7}),g.jsx(Ee,{path:"/aktionen/miele-hno-extra",component:T7}),g.jsx(Ee,{path:"/admin/login",component:j7}),g.jsx(Ee,{path:"/admin",component:O7}),g.jsx(Ee,{path:"/admin/gyn-news",component:C7}),g.jsx(Ee,{path:"/admin/search-index",component:k7}),g.jsx(Ee,{path:"/admin/retouren",component:z7}),g.jsx(Ee,{path:"/admin/katalog-bestellungen",component:N7}),g.jsx(Ee,{path:"/admin/email-einstellungen",component:M7}),g.jsx(Ee,{path:"/admin/email-log",component:R7}),g.jsx(Ee,{path:"/admin/seo-report",component:D7}),g.jsx(Ee,{path:"/admin/analyse",component:P7}),g.jsx(Ee,{path:"/404",component:nS}),g.jsx(Ee,{component:nS})]})})]})}function q7(){return g.jsx(a6,{children:g.jsx(y6,{defaultTheme:"light",children:g.jsxs($M,{children:[g.jsx(J5,{}),g.jsx(H7,{}),g.jsx(d6,{}),g.jsx(p6,{})]})})})}const ef=new _O;ef.getQueryCache().subscribe(e=>{e.type==="updated"&&e.action.type==="error"&&console.error("[API Query Error]",e.query.state.error)});ef.getMutationCache().subscribe(e=>{e.type==="updated"&&e.action.type==="error"&&console.error("[API Mutation Error]",e.mutation.state.error)});const I7=Si.createClient({links:[RC({url:"/api/trpc",transformer:Br,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});dk.createRoot(document.getElementById("root")).render(g.jsx(XS,{children:g.jsx(Si.Provider,{client:I7,queryClient:ef,children:g.jsx(jO,{client:ef,children:g.jsx(o6,{children:g.jsx(q7,{})})})})}));export{ZP as $,hn as A,Ef as B,ga as C,JP as D,Zu as E,UP as F,ZE as G,LV as H,pp as I,mE as J,DV as K,gi as L,bg as M,U_ as N,$a as O,xg as P,eT as Q,WP as R,B_ as S,s6 as T,wg as U,vR as V,YE as W,qE as X,QP as Y,VP as Z,va as _,RV as a,eB as a0,f_ as a1,l9 as a2,zp as a3,_l as a4,r6 as a5,BP as a6,X7 as a7,rB as a8,W7 as a9,hS as aa,ml as ab,m2 as ac,se as ad,xs as ae,tz as af,ws as ag,Mr as ah,H2 as ai,IM as aj,i6 as ak,Nl as al,gs as am,XP as an,FE as ao,Y7 as ap,QE as aq,GE as ar,YP as as,G7 as at,$7 as au,Qw as b,Ae as c,vu as d,Ia as e,tB as f,nB as g,_u as h,t6 as i,g as j,V_ as k,qP as l,_e as m,bi as n,Ku as o,e6 as p,n6 as q,S as r,Rr as s,Si as t,Tf as u,Gu as v,$E as w,IP as x,KE as y,HP as z};