const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GynaekologieV3-BiP1xH7e.js","assets/ParallaxBanner-Hboxi92W.js","assets/accordion-Cy-cYQJl.js","assets/stethoscope-DYrIBeB4.js","assets/book-open-B770e8Bm.js","assets/droplets-d8QRmmZY.js","assets/microscope-CUjomXI7.js","assets/Praxisbedarf-Di1lTiU-.js","assets/heart-pulse-BxQFJjov.js","assets/shopping-cart-D9OpqeoG.js","assets/clock-CgHrrXYv.js","assets/zap-CXmJC6w7.js","assets/file-text-CLy39Wuh.js","assets/Sprechstundenbedarf-n8_jT_cV.js","assets/TechnischerService-DhIuqCS2.js","assets/settings-DmyX1KnX.js","assets/Praxisplanung-BkJdq5_M.js","assets/layers-DrB-46T3.js","assets/Praxisportal-ButpWBdM.js","assets/lock-dDyVbhRH.js","assets/Hygienemanagement-BL3Diajk.js","assets/clipboard-list-BNwlRy_U.js","assets/trending-up-DfnHS99h.js","assets/graduation-cap-_A3Toii9.js","assets/star-CbjTVAfO.js","assets/Praxisgruendung-Divm-s8T.js","assets/lamp-CDqtt4nB.js","assets/Kontakt-D57h0GSe.js","assets/circle-check-B0ZE4OwJ.js","assets/circle-alert-Dv7C9XT0.js","assets/MediMatic-DMgqZkkT.js","assets/VitalographPneumotrac-DGw3UqRp.js","assets/wind-VT0-hJdd.js","assets/wifi-BP8s_JgR.js","assets/printer-CRZjDjol.js","assets/VitalographAlphaConnect-DRfMXt72.js","assets/download-f0TweZ8X.js","assets/chevron-up-CYo4BTDa.js","assets/BosoTM2450-YXBNnYdQ.js","assets/MelagVacuklav-DVfpaQnJ.js","assets/chart-column-BkrdHikd.js","assets/MieleThermodesinfektor-D0FyngXj.js","assets/thermometer-DtfBn-sF.js","assets/EdanF3Ctg-BtS07TB2.js","assets/Impressum-T5WIX5xJ.js","assets/UnserTeam-DQX7UT7J.js","assets/car-CyqrHH4f.js","assets/eye-Bmi3VDI1.js","assets/UnserTeam-CIGW-MKW.css","assets/Karriere-W6loU_Z6.js","assets/Aufbereitung-BVv9_rot.js","assets/Autoklaven-QXUDAHxJ.js","assets/Thermodesinfektoren-D6fhf2Dj.js","assets/Medizintechnik-B_2MhpBg.js","assets/OPLeuchten-BgApAXbK.js","assets/Chirurgie-Nsa_2diG.js","assets/Kreditorenbuchhalter-B7JqYVjI.js","assets/calendar-BBvI8XdD.js","assets/FahrerMontagetechniker-CPLENBEz.js","assets/MieleHnoExtra-CAau3YJY.js","assets/Retouren-DgUJC4v7.js","assets/circle-x-BZLDbuUc.js","assets/GynStuehle-CX64LAyp.js","assets/settings-2-BhlbZFz7.js","assets/AdminLogin-E3BOJ1-g.js","assets/useAdminAuth-BQ4jfy8c.js","assets/eye-off-BaN6cLxF.js","assets/AdminPanel-BMq2CoeI.js","assets/AdminLayout-C6NsHUga.js","assets/refresh-cw-BrpB04sJ.js","assets/circle-W1C848QR.js","assets/trash-2-DHiZ6wUq.js","assets/plus-By3YrEXY.js","assets/save-B54E6m1R.js","assets/toggle-right-JkTQnz-j.js","assets/GynNewsAdmin-Pq0I_tyE.js","assets/SearchIndexAdmin-ihNudyYs.js","assets/info-BmR783l8.js","assets/RetourenAdmin-D1oPE_b5.js","assets/KatalogBestellungenAdmin-CduqcsFO.js","assets/EmailEinstellungenAdmin-BaAutpj3.js","assets/EmailLogAdmin-DIPUhyY6.js","assets/SeoReportAdmin-BhG9h0Vc.js","assets/AnalyseAdmin-BNtArjyP.js"])))=>i.map(i=>d[i]);
function Xj(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 H7=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 Wj(){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 Jj(){return Fb||(Fb=1,Ih.exports=Wj()),Ih.exports}var g=Jj(),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(){}},eC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},tC=class{#t=eC;#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 tC;function nC(e){setTimeout(e,0)}var fs=typeof window>"u"||"Deno"in globalThis;function Dt(){}function rC(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 iC=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:iC.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 sC(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 aC(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function oC(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 lC=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 lC;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 cC=nC;function uC(){let e=[],t=0,r=f=>{f()},s=f=>{f()},o=cC;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=uC(),fC=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 fC;function dC(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(z){_=Promise.reject(z)}Promise.resolve(_).then(y).catch(z=>{if(c())return;const L=e.retry??(fs?0:3),C=e.retryDelay??dC,B=typeof C=="function"?C(r,z):C,U=L===!0||typeof L=="number"&&r<L||typeof L=="function"&&L(r,z);if(t||!U){x(z);return}r++,e.onFail?.(r,z),sC(B).then(()=>m()?void 0:w()).then(()=>{t?x(z):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)}},hC=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 pC(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 R=this.hasListeners(),G=!R&&tx(e,t),Y=R&&nx(e,r,t,s);(G||Y)&&(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 R;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(R=o.data,N=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,R!==void 0&&(_="success",x=Mm(o?.data,R,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(R){this.#a=R}this.#a&&(w=this.#a,x=this.#f,T=Date.now(),_="error");const z=v.fetchStatus==="fetching",L=_==="pending",C=_==="error",B=L&&z,U=x!==void 0,A={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:z,isRefetching:z&&!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 R=ne=>{A.status==="error"?ne.reject(A.error):A.data!==void 0&&ne.resolve(A.data)},G=()=>{const ne=this.#o=A.promise=Rm();R(ne)},Y=this.#o;switch(Y.status){case"pending":e.queryHash===r.queryHash&&R(Y);break;case"fulfilled":(A.status==="error"||A.data!==Y.value)&&G();break;case"rejected":(A.status!=="error"||A.error!==Y.reason)&&G();break}}return A}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 mC(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 mC(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 pC(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?oC:aC;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},z=_(s,N);f=await w(N,z,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 gC(e,t){return t?Lm(e,t)!=null:!1}function yC(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:gC(t,r.data),hasPreviousPage:yC(t,r.data),isFetchNextPageError:m,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:x,isRefetchError:f&&!m&&!y,isRefetching:c&&!v&&!x}}},vC=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 bC=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 vC({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 xC=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 wC(e,t,r){const s=e.slice(0);return s[t]=r,s}var SC=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=wC(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)})})}}},EC=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 hC({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()})})}},TC=class{#t;#e;#n;#i;#r;#s;#o;#a;constructor(e={}){this.#t=e.queryCache||new EC,this.#e=e.mutationCache||new bC,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=rC(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 _C(){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 z(O,Q,$){this.props=O,this.context=Q,this.refs=N,this.updater=$||T}z.prototype.isReactComponent={},z.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")},z.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function L(){}L.prototype=z.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,z.prototype),B.isPureReactComponent=!0;var U=Array.isArray;function H(){}var A={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function G(O,Q,$){var F=$.ref;return{$$typeof:e,type:O,key:Q,ref:F!==void 0?F:null,props:$}}function Y(O,Q){return G(O.type,Q,O.props)}function ne(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function te(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?te(""+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 j(O,Q,$,F,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,j(fe(O._payload),Q,$,F,ie)}}if(fe)return ie=ie(O),fe=F===""?"."+ae(O,0):F,U(ie)?($="",fe!=null&&($=fe.replace(oe,"$&/")+"/"),j(ie,Q,$,"",function(_t){return _t})):ie!=null&&(ne(ie)&&(ie=Y(ie,$+(ie.key==null||O&&O.key===ie.key?"":(""+ie.key).replace(oe,"$&/")+"/")+fe)),Q.push(ie)),1;fe=0;var xe=F===""?".":F+":";if(U(O))for(var De=0;De<O.length;De++)F=O[De],pe=xe+ae(F,De),fe+=j(F,Q,$,pe,ie);else if(De=w(O),typeof De=="function")for(O=De.call(O),De=0;!(F=O.next()).done;)F=F.value,pe=xe+ae(F,De++),fe+=j(F,Q,$,pe,ie);else if(pe==="object"){if(typeof O.then=="function")return j(ce(O),Q,$,F,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 D(O,Q,$){if(O==null)return O;var F=[],ie=0;return j(O,F,"","",function(pe){return Q.call($,pe,ie++)}),F}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:D,forEach:function(O,Q,$){D(O,function(){Q.apply(this,arguments)},$)},count:function(O){var Q=0;return D(O,function(){Q++}),Q},toArray:function(O){return D(O,function(Q){return Q})||[]},only:function(O){if(!ne(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=z,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=A,Te.__COMPILER_RUNTIME={__proto__:null,c:function(O){return A.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 F=_({},O.props),ie=O.key;if(Q!=null)for(pe in Q.key!==void 0&&(ie=""+Q.key),Q)!R.call(Q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Q.ref===void 0||(F[pe]=Q[pe]);var pe=arguments.length-2;if(pe===1)F.children=$;else if(1<pe){for(var fe=Array(pe),xe=0;xe<pe;xe++)fe[xe]=arguments[xe+2];F.children=fe}return G(O.type,ie,F)},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 F,ie={},pe=null;if(Q!=null)for(F in Q.key!==void 0&&(pe=""+Q.key),Q)R.call(Q,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ie[F]=Q[F]);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(F in fe=O.defaultProps,fe)ie[F]===void 0&&(ie[F]=fe[F]);return G(O,pe,ie)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(O){return{$$typeof:f,render:O}},Te.isValidElement=ne,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=A.T,$={};A.T=$;try{var F=O(),ie=A.S;ie!==null&&ie($,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(H,re)}catch(pe){re(pe)}finally{Q!==null&&$.types!==null&&(Q.types=$.types),A.T=Q}},Te.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Te.use=function(O){return A.H.use(O)},Te.useActionState=function(O,Q,$){return A.H.useActionState(O,Q,$)},Te.useCallback=function(O,Q){return A.H.useCallback(O,Q)},Te.useContext=function(O){return A.H.useContext(O)},Te.useDebugValue=function(){},Te.useDeferredValue=function(O,Q){return A.H.useDeferredValue(O,Q)},Te.useEffect=function(O,Q){return A.H.useEffect(O,Q)},Te.useEffectEvent=function(O){return A.H.useEffectEvent(O)},Te.useId=function(){return A.H.useId()},Te.useImperativeHandle=function(O,Q,$){return A.H.useImperativeHandle(O,Q,$)},Te.useInsertionEffect=function(O,Q){return A.H.useInsertionEffect(O,Q)},Te.useLayoutEffect=function(O,Q){return A.H.useLayoutEffect(O,Q)},Te.useMemo=function(O,Q){return A.H.useMemo(O,Q)},Te.useOptimistic=function(O,Q){return A.H.useOptimistic(O,Q)},Te.useReducer=function(O,Q,$){return A.H.useReducer(O,Q,$)},Te.useRef=function(O){return A.H.useRef(O)},Te.useState=function(O){return A.H.useState(O)},Te.useSyncExternalStore=function(O,Q,$){return A.H.useSyncExternalStore(O,Q,$)},Te.useTransition=function(){return A.H.useTransition()},Te.version="19.2.1",Te}var sx;function tf(){return sx||(sx=1,$h.exports=_C()),$h.exports}var S=tf();const se=_l(S),hS=Xj({__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},AC=({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 jC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var CC=S.createContext(jC()),yS=()=>S.useContext(CC),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 SC(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 z=u[N];if(z){const L=new Al(s,z);if(Um(z,_))return Du(z,L,c);SS(_,o)&&Du(z,L,c)}return[]}):[];if(w.length>0)throw Promise.all(w);const T=h.find((_,N)=>{const z=u[N];return z&&xS({result:_,errorResetBoundary:c,throwOnError:z.throwOnError,query:s.getQueryCache().get(z.queryHash),suspense:z.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 OC(e,t){return nf(e,Al,t)}function kC(e,t){return nf({...e,enabled:!0,suspense:!0,throwOnError:qp,placeholderData:void 0},Al,t)}function zC(e,t){return nf({...e,enabled:!0,suspense:!0,throwOnError:qp},fS,t)}function NC(e,t){return ES({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:qp,enabled:!0,placeholderData:void 0}))},t)}function MC(e,t){const r=jl(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function RC(e,t){const r=jl(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function DC(e,t){const r=jl(t),[s]=S.useState(()=>new xC(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 PC(e,t){return nf(e,fS,t)}function ds(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function LC(){return Object.create(null)}const UC=typeof Symbol=="function"&&!!Symbol.asyncIterator;function TS(e){return UC&&ds(e)&&Symbol.asyncIterator in e}var VC=Object.create,_S=Object.defineProperty,BC=Object.getOwnPropertyDescriptor,AS=Object.getOwnPropertyNames,HC=Object.getPrototypeOf,qC=Object.prototype.hasOwnProperty,Cl=(e,t)=>function(){return t||(0,e[AS(e)[0]])((t={exports:{}}).exports,t),t.exports},IC=(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],!qC.call(e,f)&&f!==r&&_S(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(s=BC(t,f))||s.enumerable});return e},rf=(e,t,r)=>(r=e!=null?VC(HC(e)):{},IC(_S(r,"default",{value:e,enumerable:!0}),e));const jS=()=>{},ax=e=>{Object.freeze&&Object.freeze(e)};function CS(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 CS(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=>CS(e,[],LC()),Ip=e=>new Proxy(jS,{get(t,r){if(r!=="then")return e(r)}});var OS=Cl({"../../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}}),$C=Cl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=OS().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}}),ZC=Cl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=OS().default,s=$C();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=Cl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=ZC();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=Cl({"../../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 GC(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 KC(e,t){let r;try{r=GC(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(QC,t)}};return t}function QC(e,t){return t(e)}function FC(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 YC=Object.create,zS=Object.defineProperty,XC=Object.getOwnPropertyDescriptor,NS=Object.getOwnPropertyNames,WC=Object.getPrototypeOf,JC=Object.prototype.hasOwnProperty,Oi=(e,t)=>function(){return t||(0,e[NS(e)[0]])((t={exports:{}}).exports,t),t.exports},eO=(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],!JC.call(e,f)&&f!==r&&zS(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(s=XC(t,f))||s.enumerable});return e},vs=(e,t,r)=>(r=e!=null?YC(WC(e)):{},eO(t||!e||!e.__esModule?zS(r,"default",{value:e,enumerable:!0}):r,e)),tO=Oi({"../../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}}),nO=Oi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=tO();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=Oi({"../../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}}),rO=Oi({"../../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}}),iO=Oi({"../../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=rO();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}}),sO=Oi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=iO();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}}),Ol=Oi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=sO();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}}),aO=vs(nO(),1),ox=vs(Ol(),1);const oO=["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,aO.default)(t,oO);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 lO=Object.create,RS=Object.defineProperty,cO=Object.getOwnPropertyDescriptor,DS=Object.getOwnPropertyNames,uO=Object.getPrototypeOf,fO=Object.prototype.hasOwnProperty,cr=(e,t)=>function(){return t||(0,e[DS(e)[0]])((t={exports:{}}).exports,t),t.exports},dO=(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],!fO.call(e,f)&&f!==r&&RS(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(s=cO(t,f))||s.enumerable});return e},ut=(e,t,r)=>(r=e!=null?lO(uO(e)):{},dO(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}}),hO=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}}),mO=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=hO();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=mO();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 pO(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 gO(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 yO(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 vO(e){return e instanceof Pu}function bO(e){return ds(e)&&ds(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function xO(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 vO(s)?(r.meta&&(s.meta=(0,ha.default)((0,ha.default)({},s.meta),r.meta)),s):bO(s)?new xu(s.error.message,(0,ha.default)((0,ha.default)({},r),{},{result:s,cause:r.cause})):new xu(xO(s,"Unknown error"),(0,ha.default)((0,ha.default)({},r),{},{cause:s}))}};function wO(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 SO(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 EO(e){return{url:e.url.toString(),fetch:e.fetch,transformer:wO(e.transformer),methodOverride:e.methodOverride}}function TO(e){const t={};for(let r=0;r<e.length;r++){const s=e[r];t[r]=s}return t}const _O={query:"GET",mutation:"POST",subscription:"PATCH"};function LS(e){return"input"in e?e.transformer.input.serialize(e.input):TO(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},AO=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=LS(e);return t!==void 0?JSON.stringify(t):void 0},jO=e=>zO((0,tl.default)((0,tl.default)({},e),{},{contentTypeHeader:"application/json",getUrl:US,getBody:AO}));var CO=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const OO=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 CO};async function kO(e){var t,r;OO(e.signal);const s=e.getUrl(e),o=e.getBody(e),c=(t=e.methodOverride)!==null&&t!==void 0?t:_O[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 SO(e.fetch)(s,{method:c,signal:e.signal,body:o,headers:f})}async function zO(e){const t={},r=await kO(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 z;(z=_.reject)===null||z===void 0||z.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 NO(...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 MO(e){var t,r;const s=EO(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=NO(...y.map(L=>L.signal)),_=await jO((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=KC(_.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 RO(){let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),resolve:e,reject:t}}async function DO(e){const t=await VS(e.url);if(!e.connectionParams)return t;const s=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+s}async function PO(e,t){const r={method:"connectionParams",data:await VS(e)};return t.encode(r)}ut(bs(),1);var yi=ut(bs(),1);function LO(e){const{promise:t,resolve:r,reject:s}=RO();return e.addEventListener("open",()=>{e.removeEventListener("error",s),r()}),e.addEventListener("error",s),t}function UO(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 VO=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",gO(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=DO(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&&UO(s,t.keepAliveOpts),s.addEventListener("close",()=>{t.ws===s&&(t.ws=null)}),await LO(s),t.urlOptions.connectionParams&&s.send(await PO(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)(VO,"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 yO({links:this.links,op:(0,fx.default)((0,fx.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(pO())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await FC(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"),BO={query:"query",mutate:"mutation",subscribe:"subscription"},HO=e=>BO[e];function HS(e){const t=sf(({path:r,args:s})=>{const o=[...r],c=HO(o.pop()),u=o.join(".");return e[c](u,...s)});return Ip(r=>r===BS?e:t[r])}function qO(e){const t=new of(e);return HS(t)}function Zp(e){return e[BS]}ut(Kn(),1);ut(Kn(),1);var IO=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(IO(),1);ut(Kn(),1);var $O=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}}),ZO=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}}),GO=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($O(),1);ut(ZO(),1);ut(GO(),1);ut(Kn(),1);function KO(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 QO=["client","ssrContext","ssrState","abortOnUnmount"],FO=(Kh=S.createContext)===null||Kh===void 0?void 0:Kh.call(hS,null),YO=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 XO(e){return sf(t=>{const r=[...t.path],s=r.pop(),o=[...t.args],c=o.shift(),u=YO(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 WO(e){const t=HS(e.client),r=XO(e);return Ip(s=>{const o=s;return o==="client"?t:QO.includes(o)?e[o]:r[s]})}var JO=vs(Ol(),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,JO.default)({queryKey:nr(s,c,"query"),queryFn:()=>t.query(o,c,u?.trpc)},u)})}var Qh=vs(Ol(),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 ek=Oi({"../../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}}),tk=vs(ek(),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,tk.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(Ol(),1);function nk(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(Ol());const hx=(e,t)=>new Proxy(e,{get(s,o){return t(o),s[o]}});function rk(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:FO,c=qO,u=U=>{var H;const{abortOnUnmount:A=!1,queryClient:R,ssrContext:G}=U,[Y,ne]=S.useState((H=U.ssrState)!==null&&H!==void 0?H:!1),te=U.client instanceof of?U.client:Zp(U.client),oe=S.useMemo(()=>nk({client:te,queryClient:R}),[te,R]),ae=S.useMemo(()=>(0,ue.default)({abortOnUnmount:A,queryClient:R,client:te,ssrContext:G??null,ssrState:Y},oe),[A,te,oe,R,G,Y]);return S.useEffect(()=>{ne(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 A;const{queryClient:R,ssrState:G}=f();return G&&G!=="mounted"&&((A=R.getQueryCache().find({queryKey:U}))===null||A===void 0?void 0:A.state.status)==="error"?(0,ue.default)({retryOnMount:!1},H):H}function m(U,H,A){var R,G,Y,ne,te;const oe=f(),{abortOnUnmount:ae,client:ce,ssrState:j,queryClient:D,prefetchQuery:P}=oe,re=nr(U,H,"query"),le=D.getQueryDefaults(re),O=H===pn;typeof window>"u"&&j==="prepass"&&(A==null||(R=A.trpc)===null||R===void 0?void 0:R.ssr)!==!1&&((G=A?.enabled)!==null&&G!==void 0?G:le?.enabled)!==!1&&!O&&!D.getQueryCache().find({queryKey:re})&&P(re,A);const Q=h(re,(0,ue.default)((0,ue.default)({},le),A)),$=(Y=(ne=A==null||(te=A.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&ne!==void 0?ne:void 0)!==null&&Y!==void 0?Y:ae,F=OC((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,D,re):fe}}),D);return F.trpc=Go({path:U}),F}function v(U,H,A){var R,G,Y;const ne=f(),te=nr(U,H,"query"),oe=H===pn,ae=(R=(G=A==null||(Y=A.trpc)===null||Y===void 0?void 0:Y.abortOnUnmount)!==null&&G!==void 0?G:void 0)!==null&&R!==void 0?R:ne.abortOnUnmount;MC((0,ue.default)((0,ue.default)({},A),{},{queryKey:te,queryFn:oe?H:ce=>{const j={trpc:(0,ue.default)((0,ue.default)({},A?.trpc),ae?{signal:ce.signal}:{})};return ne.client.query(...qt(te,j))}}))}function y(U,H,A){var R,G,Y;const ne=f(),te=nr(U,H,"query"),oe=(R=(G=A==null||(Y=A.trpc)===null||Y===void 0?void 0:Y.abortOnUnmount)!==null&&G!==void 0?G:void 0)!==null&&R!==void 0?R:ne.abortOnUnmount,ae=kC((0,ue.default)((0,ue.default)({},A),{},{queryKey:te,queryFn:ce=>{const j=(0,ue.default)((0,ue.default)({},A),{},{trpc:(0,ue.default)((0,ue.default)({},A?.trpc),oe?{signal:ce.signal}:{signal:null})});return ne.client.query(...qt(te,j))}}),ne.queryClient);return ae.trpc=Go({path:U}),[ae.data,ae]}function x(U,H){const{client:A,queryClient:R}=f(),G=bu(U),Y=R.defaultMutationOptions(R.getMutationDefaults(G)),ne=DC((0,ue.default)((0,ue.default)({},H),{},{mutationKey:G,mutationFn:te=>A.mutation(...qt([U,{input:te}],H)),onSuccess(...te){var oe,ae;return s({originalFn:()=>{var j,D,P;return(j=H==null||(D=H.onSuccess)===null||D===void 0?void 0:D.call(H,...te))!==null&&j!==void 0?j:Y==null||(P=Y.onSuccess)===null||P===void 0?void 0:P.call(Y,...te)},queryClient:R,meta:(oe=(ae=H?.meta)!==null&&ae!==void 0?ae:Y?.meta)!==null&&oe!==void 0?oe:{}})}}),R);return ne.trpc=Go({path:U}),ne}const w={data:void 0,error:null,status:"idle"},T={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(U,H,A){var R;const G=(R=A?.enabled)!==null&&R!==void 0?R:H!==pn,Y=Ei(nr(U,H,"any")),{client:ne}=f(),te=S.useRef(A);S.useEffect(()=>{te.current=A});const[oe]=S.useState(new Set([])),ae=S.useCallback(O=>{oe.add(O)},[oe]),ce=S.useRef(null),j=S.useCallback(O=>{const Q=P.current,$=P.current=O(Q);let F=!1;for(const ie of oe)if(Q[ie]!==$[ie]){F=!0;break}F&&le(hx($,ae))},[ae,oe]),D=S.useCallback(()=>{var O;if((O=ce.current)===null||O===void 0||O.unsubscribe(),!G){j(()=>(0,ue.default)((0,ue.default)({},w),{},{reset:D}));return}j(()=>(0,ue.default)((0,ue.default)({},T),{},{reset:D}));const Q=ne.subscription(U.join("."),H??void 0,{onStarted:()=>{var $,F;($=(F=te.current).onStarted)===null||$===void 0||$.call(F),j(ie=>(0,ue.default)((0,ue.default)({},ie),{},{status:"pending",error:null}))},onData:$=>{var F,ie;(F=(ie=te.current).onData)===null||F===void 0||F.call(ie,$),j(pe=>(0,ue.default)((0,ue.default)({},pe),{},{status:"pending",data:$,error:null}))},onError:$=>{var F,ie;(F=(ie=te.current).onError)===null||F===void 0||F.call(ie,$),j(pe=>(0,ue.default)((0,ue.default)({},pe),{},{status:"error",error:$}))},onConnectionStateChange:$=>{j(F=>{switch($.state){case"idle":return(0,ue.default)((0,ue.default)({},F),{},{status:$.state,error:null,data:void 0});case"connecting":return(0,ue.default)((0,ue.default)({},F),{},{error:$.error,status:$.state});case"pending":return F}})},onComplete:()=>{var $,F;($=(F=te.current).onComplete)===null||$===void 0||$.call(F),j(ie=>(0,ue.default)((0,ue.default)({},ie),{},{status:"idle",error:null,data:void 0}))}});ce.current=Q},[ne,Y,G,j]);S.useEffect(()=>(D(),()=>{var O;(O=ce.current)===null||O===void 0||O.unsubscribe()}),[D]);const P=S.useRef(G?(0,ue.default)((0,ue.default)({},T),{},{reset:D}):(0,ue.default)((0,ue.default)({},w),{},{reset:D})),[re,le]=S.useState(hx(P.current,ae));return re}function N(U,H,A){var R,G,Y,ne,te;const{client:oe,ssrState:ae,prefetchInfiniteQuery:ce,queryClient:j,abortOnUnmount:D}=f(),P=nr(U,H,"infinite"),re=j.getQueryDefaults(P),le=H===pn;typeof window>"u"&&ae==="prepass"&&(A==null||(R=A.trpc)===null||R===void 0?void 0:R.ssr)!==!1&&((G=A?.enabled)!==null&&G!==void 0?G:re?.enabled)!==!1&&!le&&!j.getQueryCache().find({queryKey:P})&&ce(P,(0,ue.default)((0,ue.default)({},re),A));const O=h(P,(0,ue.default)((0,ue.default)({},re),A)),Q=(Y=A==null||(ne=A.trpc)===null||ne===void 0?void 0:ne.abortOnUnmount)!==null&&Y!==void 0?Y:D,$=PC((0,ue.default)((0,ue.default)({},O),{},{initialPageParam:(te=A.initialCursor)!==null&&te!==void 0?te:null,persister:A.persister,queryKey:P,queryFn:le?H:F=>{var ie;const pe=(0,ue.default)((0,ue.default)({},O),{},{trpc:(0,ue.default)((0,ue.default)({},O?.trpc),Q?{signal:F.signal}:{signal:null})});return oe.query(...qt(P,pe,{pageParam:(ie=F.pageParam)!==null&&ie!==void 0?ie:A.initialCursor,direction:F.direction}))}}),j);return $.trpc=Go({path:U}),$}function z(U,H,A){var R,G,Y;const ne=f(),te=nr(U,H,"infinite"),oe=ne.queryClient.getQueryDefaults(te),ae=H===pn,ce=h(te,(0,ue.default)((0,ue.default)({},oe),A)),j=(R=A==null||(G=A.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&R!==void 0?R:ne.abortOnUnmount;RC((0,ue.default)((0,ue.default)({},A),{},{initialPageParam:(Y=A.initialCursor)!==null&&Y!==void 0?Y:null,queryKey:te,queryFn:ae?H:D=>{var P;const re=(0,ue.default)((0,ue.default)({},ce),{},{trpc:(0,ue.default)((0,ue.default)({},ce?.trpc),j?{signal:D.signal}:{})});return ne.client.query(...qt(te,re,{pageParam:(P=D.pageParam)!==null&&P!==void 0?P:A.initialCursor,direction:D.direction}))}}))}function L(U,H,A){var R,G,Y;const ne=f(),te=nr(U,H,"infinite"),oe=ne.queryClient.getQueryDefaults(te),ae=h(te,(0,ue.default)((0,ue.default)({},oe),A)),ce=(R=A==null||(G=A.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&R!==void 0?R:ne.abortOnUnmount,j=zC((0,ue.default)((0,ue.default)({},A),{},{initialPageParam:(Y=A.initialCursor)!==null&&Y!==void 0?Y:null,queryKey:te,queryFn:D=>{var P;const re=(0,ue.default)((0,ue.default)({},ae),{},{trpc:(0,ue.default)((0,ue.default)({},ae?.trpc),ce?{signal:D.signal}:{})});return ne.client.query(...qt(te,re,{pageParam:(P=D.pageParam)!==null&&P!==void 0?P:A.initialCursor,direction:D.direction}))}}),ne.queryClient);return j.trpc=Go({path:U}),[j.data,j]}return{Provider:u,createClient:c,useContext:f,useUtils:f,useQuery:m,usePrefetchQuery:v,useSuspenseQuery:y,useQueries:(U,H)=>{const{ssrState:A,queryClient:R,prefetchQuery:G,client:Y}=f(),ne=dx(Y),te=U(ne);if(typeof window>"u"&&A==="prepass")for(const ae of te){var oe;const ce=ae;((oe=ce.trpc)===null||oe===void 0?void 0:oe.ssr)!==!1&&!R.getQueryCache().find({queryKey:ce.queryKey})&&G(ce.queryKey,ce)}return ES({queries:te.map(ae=>(0,ue.default)((0,ue.default)({},ae),{},{queryKey:ae.queryKey})),combine:H?.combine},R)},useSuspenseQueries:U=>{const{queryClient:H,client:A}=f(),R=dx(A),G=U(R),Y=NC({queries:G.map(ne=>(0,ue.default)((0,ue.default)({},ne),{},{queryFn:ne.queryFn,queryKey:ne.queryKey}))},H);return[Y.map(ne=>ne.data),Y]},useMutation:x,useSubscription:_,useInfiniteQuery:N,usePrefetchInfiniteQuery:z,useSuspenseInfiniteQuery:L}}function ik(e){const t=KO(e);return Ip(r=>r==="useContext"||r==="useUtils"?()=>{const s=e.useUtils();return S.useMemo(()=>WO(s),[s])}:e.hasOwnProperty(r)?e[r]:t[r])}function sk(e){const t=rk();return ik(t)}const Si=sk();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 ak(){return mx||(mx=1,(function(e){function t(j,D){var P=j.length;j.push(D);e:for(;0<P;){var re=P-1>>>1,le=j[re];if(0<o(le,D))j[re]=D,j[P]=le,P=re;else break e}}function r(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var D=j[0],P=j.pop();if(P!==D){j[0]=P;e:for(var re=0,le=j.length,O=le>>>1;re<O;){var Q=2*(re+1)-1,$=j[Q],F=Q+1,ie=j[F];if(0>o($,P))F<le&&0>o(ie,$)?(j[re]=ie,j[F]=P,re=F):(j[re]=$,j[Q]=P,re=Q);else if(F<le&&0>o(ie,P))j[re]=ie,j[F]=P,re=F;else break e}}return D}function o(j,D){var P=j.sortIndex-D.sortIndex;return P!==0?P:j.id-D.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,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function B(j){for(var D=r(m);D!==null;){if(D.callback===null)s(m);else if(D.startTime<=j)s(m),D.sortIndex=D.expirationTime,t(h,D);else break;D=r(m)}}function U(j){if(_=!1,B(j),!T)if(r(h)!==null)T=!0,H||(H=!0,te());else{var D=r(m);D!==null&&ce(U,D.startTime-j)}}var H=!1,A=-1,R=5,G=-1;function Y(){return N?!0:!(e.unstable_now()-G<R)}function ne(){if(N=!1,H){var j=e.unstable_now();G=j;var D=!0;try{e:{T=!1,_&&(_=!1,L(A),A=-1),w=!0;var P=x;try{t:{for(B(j),y=r(h);y!==null&&!(y.expirationTime>j&&Y());){var re=y.callback;if(typeof re=="function"){y.callback=null,x=y.priorityLevel;var le=re(y.expirationTime<=j);if(j=e.unstable_now(),typeof le=="function"){y.callback=le,B(j),D=!0;break t}y===r(h)&&s(h),B(j)}else s(h);y=r(h)}if(y!==null)D=!0;else{var O=r(m);O!==null&&ce(U,O.startTime-j),D=!1}}break e}finally{y=null,x=P,w=!1}D=void 0}}finally{D?te():H=!1}}}var te;if(typeof C=="function")te=function(){C(ne)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ae=oe.port2;oe.port1.onmessage=ne,te=function(){ae.postMessage(null)}}else te=function(){z(ne,0)};function ce(j,D){A=z(function(){j(e.unstable_now())},D)}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(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(j){switch(x){case 1:case 2:case 3:var D=3;break;default:D=x}var P=x;x=D;try{return j()}finally{x=P}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(j,D){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=x;x=j;try{return D()}finally{x=P}},e.unstable_scheduleCallback=function(j,D,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,j){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,j={id:v++,callback:D,priorityLevel:j,startTime:P,expirationTime:le,sortIndex:-1},P>re?(j.sortIndex=P,t(m,j),r(h)===null&&j===r(m)&&(_?(L(A),A=-1):_=!0,ce(U,P-re))):(j.sortIndex=le,t(h,j),T||w||(T=!0,H||(H=!0,te()))),j},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(j){var D=x;return function(){var P=x;x=D;try{return j.apply(this,arguments)}finally{x=P}}}})(Xh)),Xh}var px;function ok(){return px||(px=1,Yh.exports=ak()),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 lk(){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=lk(),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 ck(){if(vx)return Ko;vx=1;var e=ok(),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"),z=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"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),Y=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function te(n){return n===null||typeof n!="object"?null:(n=ne&&n[ne]||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 z:return"Profiler";case N:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList";case G: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 A:return i=n.displayName||null,i!==null?i:ae(n.type)||"Memo";case R:i=n._payload,n=n._init;try{return ae(n(i))}catch{}}return null}var ce=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=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 F=O(null),ie=O(null),pe=O(null),fe=O(null);function xe(n,i){switch($(pe,i),$(ie,n),$(F,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(F),$(F,n)}function De(){Q(F),Q(ie),Q(pe)}function _t(n){n.memoizedState!==null&&$(fe,n);var i=F.current,a=vb(i,n.type);i!==a&&($(ie,n),$(F,a))}function Lt(n){ie.current===n&&(Q(F),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 J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(K){var Z=K}Reflect.construct(n,[],J)}else{try{J.call()}catch(K){Z=K}n.call(J.prototype)}}else{try{throw Error()}catch(K){Z=K}(J=n())&&typeof J.catch=="function"&&J.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 k=b.split(`
`),I=E.split(`
`);for(d=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;d<I.length&&!I[d].includes("DetermineComponentFrameRoot");)d++;if(l===k.length||d===I.length)for(l=k.length-1,d=I.length-1;1<=l&&0<=d&&k[l]!==I[d];)d--;for(;1<=l&&0<=d;l--,d--)if(k[l]!==I[d]){if(l!==1||d!==1)do if(l--,d--,0>d||k[l]!==I[d]){var X=`
`+k[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,k=n.expirationTimes,I=n.hiddenUpdates;for(a=b&~a;0<a;){var X=31-Nt(a),J=1<<X;E[X]=0,k[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&=~J}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:Cs(a),(a&(n.suspendedLanes|i))!==0?0:a}function Cs(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=D.p;return n!==0?n:(n=window.event,n===void 0?32:Hb(n.type))}function ry(n,i){var a=D.p;try{return D.p=n,i()}finally{D.p=a}}var Zr=Math.random().toString(36).slice(2),jt="__reactFiber$"+Zr,Kt="__reactProps$"+Zr,Os="__reactContainer$"+Zr,Rf="__reactEvents$"+Zr,B_="__reactListeners$"+Zr,H_="__reactHandles$"+Zr,iy="__reactResources$"+Zr,to="__reactMarker$"+Zr;function Df(n){delete n[jt],delete n[Kt],delete n[Rf],delete n[B_],delete n[H_]}function ks(n){var i=n[jt];if(i)return i;for(var a=n.parentNode;a;){if(i=a[Os]||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[Os]){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 q_=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 I_(n){return rn.call(ly,n)?!0:rn.call(oy,n)?!1:q_.test(n)?ly[n]=!0:(oy[n]=!0,!1)}function Hl(n,i,a){if(I_(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 $_(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=$_(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 Z_=/[\n"\\]/g;function vn(n){return n.replace(Z_,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 G_=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||G_.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 K_=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"]]),Q_=/^[\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 Q_.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}),F_=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),Y_=y({},Fl,{dataTransfer:0}),X_=Qt(Y_),W_=y({},so,{relatedTarget:0}),Kf=Qt(W_),J_=y({},Vi,{animationName:0,elapsedTime:0,pseudoElement:0}),eA=Qt(J_),tA=y({},Vi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),nA=Qt(tA),rA=y({},Vi,{data:0}),wy=Qt(rA),iA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sA={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"},aA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oA(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=aA[n])?!!i[n]:!1}function Qf(){return oA}var lA=y({},so,{key:function(n){if(n.key){var i=iA[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"?sA[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}}),cA=Qt(lA),uA=y({},Fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sy=Qt(uA),fA=y({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qf}),dA=Qt(fA),hA=y({},Vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),mA=Qt(hA),pA=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}),gA=Qt(pA),yA=y({},Vi,{newState:0,oldState:0}),vA=Qt(yA),bA=[9,13,27,32],Ff=gr&&"CompositionEvent"in window,oo=null;gr&&"documentMode"in document&&(oo=document.documentMode);var xA=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 bA.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 wA(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 SA(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 EA={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 Cy(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!EA[n.type]:i==="textarea"}function Oy(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 TA(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=[];Oy(i,co,n,Hf(n)),yy(TA,i)}}function _A(n,i,a){n==="focusin"?(My(),lo=i,co=a,lo.attachEvent("onpropertychange",Ry)):n==="focusout"&&My()}function AA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Yl(co)}function jA(n,i){if(n==="click")return Yl(i)}function CA(n,i){if(n==="input"||n==="change")return Yl(i)}function OA(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var sn=typeof Object.is=="function"?Object.is:OA;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 kA=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"),zA=Hi("transitionrun"),NA=Hi("transitionstart"),MA=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 RA(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 RA(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=Vj(n,a,F.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case G:return n=an(31,a,i,d),n.elementType=G,n.lanes=p,n;case _:return Ii(a.children,d,p,i);case N:b=8,d|=24;break;case z:return n=an(12,a,i,d|2),n.elementType=z,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 A:b=14;break e;case R: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 Ct=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(Ct=n.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Ct=Ct.return}}function Zs(n){if(n!==Ct)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")||Ch(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=Ct?_n(n.stateNode.nextSibling):null;return!0}function $i(){Fe=Ct=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 k=0;k<i.length;k++)if(E.context===i[k]){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 Ot(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 DA=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()})}},PA=e.unstable_scheduleCallback,LA=e.unstable_NormalPriority,ft={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pd(){return{controller:new DA,data:new Map,refCount:0}}function po(n){n.refCount--,n.refCount===0&&PA(LA,function(){n.controller.abort()})}var go=null,gd=0,Ks=0,Qs=null;function UA(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 VA(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=j.S;j.S=function(n,i){V0=Vt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&UA(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,W){return M===null||M.tag!==6?(M=ad(q,V.mode,W),M.return=V,M):(M=d(M,q),M.return=V,M)}function k(V,M,q,W){var ye=q.type;return ye===_?X(V,M,q.props.children,W,q.key):M!==null&&(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===R&&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,W),vo(M,q),M.return=V,M)}function I(V,M,q,W){return M===null||M.tag!==4||M.stateNode.containerInfo!==q.containerInfo||M.stateNode.implementation!==q.implementation?(M=od(q,V.mode,W),M.return=V,M):(M=d(M,q.children||[]),M.return=V,M)}function X(V,M,q,W,ye){return M===null||M.tag!==7?(M=Ii(q,V.mode,W,ye),M.return=V,M):(M=d(M,q),M.return=V,M)}function J(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 R:return M=Qi(M),J(V,M,q)}if(ce(M)||te(M))return M=Ii(M,V.mode,q,null),M.return=V,M;if(typeof M.then=="function")return J(V,lc(M),q);if(M.$$typeof===C)return J(V,ic(V,M),q);cc(V,M)}return null}function Z(V,M,q,W){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,W);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return q.key===ye?k(V,M,q,W):null;case T:return q.key===ye?I(V,M,q,W):null;case R:return q=Qi(q),Z(V,M,q,W)}if(ce(q)||te(q))return ye!==null?null:X(V,M,q,W,null);if(typeof q.then=="function")return Z(V,M,lc(q),W);if(q.$$typeof===C)return Z(V,M,ic(V,q),W);cc(V,q)}return null}function K(V,M,q,W,ye){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return V=V.get(q)||null,E(M,V,""+W,ye);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case w:return V=V.get(W.key===null?q:W.key)||null,k(M,V,W,ye);case T:return V=V.get(W.key===null?q:W.key)||null,I(M,V,W,ye);case R:return W=Qi(W),K(V,M,q,W,ye)}if(ce(W)||te(W))return V=V.get(q)||null,X(M,V,W,ye,null);if(typeof W.then=="function")return K(V,M,q,lc(W),ye);if(W.$$typeof===C)return K(V,M,q,ic(M,W),ye);cc(M,W)}return null}function de(V,M,q,W){for(var ye=null,Le=null,ge=M,Oe=M=0,Re=null;ge!==null&&Oe<q.length;Oe++){ge.index>Oe?(Re=ge,ge=null):Re=ge.sibling;var Ue=Z(V,ge,q[Oe],W);if(Ue===null){ge===null&&(ge=Re);break}n&&ge&&Ue.alternate===null&&i(V,ge),M=p(Ue,M,Oe),Le===null?ye=Ue:Le.sibling=Ue,Le=Ue,ge=Re}if(Oe===q.length)return a(V,ge),Pe&&vr(V,Oe),ye;if(ge===null){for(;Oe<q.length;Oe++)ge=J(V,q[Oe],W),ge!==null&&(M=p(ge,M,Oe),Le===null?ye=ge:Le.sibling=ge,Le=ge);return Pe&&vr(V,Oe),ye}for(ge=l(ge);Oe<q.length;Oe++)Re=K(ge,V,Oe,q[Oe],W),Re!==null&&(n&&Re.alternate!==null&&ge.delete(Re.key===null?Oe:Re.key),M=p(Re,M,Oe),Le===null?ye=Re:Le.sibling=Re,Le=Re);return n&&ge.forEach(function(mi){return i(V,mi)}),Pe&&vr(V,Oe),ye}function ve(V,M,q,W){if(q==null)throw Error(s(151));for(var ye=null,Le=null,ge=M,Oe=M=0,Re=null,Ue=q.next();ge!==null&&!Ue.done;Oe++,Ue=q.next()){ge.index>Oe?(Re=ge,ge=null):Re=ge.sibling;var mi=Z(V,ge,Ue.value,W);if(mi===null){ge===null&&(ge=Re);break}n&&ge&&mi.alternate===null&&i(V,ge),M=p(mi,M,Oe),Le===null?ye=mi:Le.sibling=mi,Le=mi,ge=Re}if(Ue.done)return a(V,ge),Pe&&vr(V,Oe),ye;if(ge===null){for(;!Ue.done;Oe++,Ue=q.next())Ue=J(V,Ue.value,W),Ue!==null&&(M=p(Ue,M,Oe),Le===null?ye=Ue:Le.sibling=Ue,Le=Ue);return Pe&&vr(V,Oe),ye}for(ge=l(ge);!Ue.done;Oe++,Ue=q.next())Ue=K(ge,V,Oe,Ue.value,W),Ue!==null&&(n&&Ue.alternate!==null&&ge.delete(Ue.key===null?Oe:Ue.key),M=p(Ue,M,Oe),Le===null?ye=Ue:Le.sibling=Ue,Le=Ue);return n&&ge.forEach(function(Yj){return i(V,Yj)}),Pe&&vr(V,Oe),ye}function Ge(V,M,q,W){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),W=d(M,q.props.children),W.return=V,V=W;break e}}else if(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===R&&Qi(ye)===M.type){a(V,M.sibling),W=d(M,q.props),vo(W,q),W.return=V,V=W;break e}a(V,M);break}else i(V,M);M=M.sibling}q.type===_?(W=Ii(q.props.children,V.mode,W,q.key),W.return=V,V=W):(W=tc(q.type,q.key,q.props,null,V.mode,W),vo(W,q),W.return=V,V=W)}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),W=d(M,q.children||[]),W.return=V,V=W;break e}else{a(V,M);break}else i(V,M);M=M.sibling}W=od(q,V.mode,W),W.return=V,V=W}return b(V);case R:return q=Qi(q),Ge(V,M,q,W)}if(ce(q))return de(V,M,q,W);if(te(q)){if(ye=te(q),typeof ye!="function")throw Error(s(150));return q=ye.call(q),ve(V,M,q,W)}if(typeof q.then=="function")return Ge(V,M,lc(q),W);if(q.$$typeof===C)return Ge(V,M,ic(V,q),W);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),W=d(M,q),W.return=V,V=W):(a(V,M),W=ad(q,V.mode,W),W.return=V,V=W),b(V)):a(V,M)}return function(V,M,q,W){try{yo=0;var ye=Ge(V,M,q,W);return Ys=null,ye}catch(ge){if(ge===Fs||ge===ac)throw ge;var Le=an(29,ge,null,V.mode);return Le.lanes=W,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 k=E,I=k.next;k.next=null,b===null?p=I:b.next=I,b=k;var X=n.alternate;X!==null&&(X=X.updateQueue,E=X.lastBaseUpdate,E!==b&&(E===null?X.firstBaseUpdate=I:E.next=I,X.lastBaseUpdate=k))}if(p!==null){var J=d.baseState;b=0,X=I=k=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"){J=de.call(Ge,J,Z);break e}J=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=ve.payload,Z=typeof de=="function"?de.call(Ge,J,Z):de,Z==null)break e;J=y({},J,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,k=J):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&&(k=J),d.baseState=k,d.firstBaseUpdate=I,d.lastBaseUpdate=X,p===null&&(d.shared.lanes=0),ii|=b,n.lanes=b,n.memoizedState=J}}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=Or,$(uc,n),$(Xs,i),Or=n|i.baseLanes}function Ed(){$(uc,Or),$(Xs,Xs.current)}function Td(){Or=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,BA=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,j.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){j.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)}j.H=Xv,p=i(a,l)}while(Ws);return p}function HA(){var n=j.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 Cd(){var n=hc!==0;return hc=0,n}function Od(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,j.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 Ot(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]=Y;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,k=null,I=i,X=!1;do{var J=I.lane&-536870913;if(J!==I.lane?(Me&J)===J:(wr&J)===J){var Z=I.revertLane;if(Z===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),J===Ks&&(X=!0);else if((wr&Z)===Z){I=I.next,Z===Ks&&(X=!0);continue}else J={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},k===null?(E=k=J,b=p):k=k.next=J,je.lanes|=Z,ii|=Z;J=I.action,Xi&&a(p,J),p=I.hasEagerState?I.eagerState:a(p,J)}else Z={lane:J,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},k===null?(E=k=Z,b=p):k=k.next=Z,je.lanes|=J,ii|=J;I=I.next}while(I!==null&&I!==i);if(k===null?b=p:k.next=E,!sn(p,n.memoizedState)&&(ht=!0,X&&(a=Qs,a!==null)))throw a;n.memoizedState=p,n.baseState=b,n.baseQueue=k,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 qA(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)}};j.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=j.T,b={};j.T=b;try{var E=a(d,l),k=j.S;k!==null&&k(b,E),Tv(n,i,E)}catch(I){Dd(n,i,I)}finally{p!==null&&b.types!==null&&(p.types=b.types),j.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 Cv(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=qA.bind(null,je,d,p,a),d.dispatch=a,l.memoizedState=n,[i,a,!1]}function Ov(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},IA.bind(null,d,a),null)),[l,p,n]}function IA(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 $A(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 $A({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=D.p;D.p=p!==0&&8>p?p:8;var b=j.T,E={};j.T=E,Hd(n,!1,i,a);try{var k=d(),I=j.S;if(I!==null&&I(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var X=VA(k,l);To(n,i,X,fn(n))}else To(n,i,l,fn(n))}catch(J){To(n,i,{then:function(){},status:"rejected",reason:J},fn())}finally{D.p=p,b!==null&&E.types!==null&&(b.types=E.types),j.T=b}}function ZA(){}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?ZA: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 Ot(Ho)}function Zv(){return lt().memoizedState}function Gv(){return lt().memoizedState}function GA(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 KA(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:Ot,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:Ot,use:pc,useCallback:function(n,i){return Ht().memoizedState=[n,i===void 0?null:i],n},useContext:Ot,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=KA.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=BA++,i="_"+i+"r_"+a.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:Bd,useFormState:Cv,useActionState:Cv,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=GA.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:Ot,use:pc,useCallback:Vv,useContext:Ot,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:Ov,useActionState:Ov,useOptimistic:function(n,i){var a=lt();return Sv(a,$e,n,i)},useMemoCache:zd,useCacheRefresh:Gv};qd.useEffectEvent=Rv;var Xv={readContext:Ot,use:pc,useCallback:Vv,useContext:Ot,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 QA(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=Cd(),n!==null&&!ht?(Od(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 FA(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,Ct=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),Ct=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=Cd(),n!==null&&!ht?(Od(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=Cd(),n!==null&&!ht?(Od(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=Ot(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?Ot(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,k=Wi(a,E);p.props=k;var I=p.context,X=a.contextType;b=qs,typeof X=="object"&&X!==null&&(b=Ot(X));var J=a.getDerivedStateFromProps;X=typeof J=="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 J=="function"&&(Id(i,a,J,l),I=i.memoizedState),(k=Xr||Wv(i,a,k,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=k):(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,J=i.pendingProps,Z=p.context,I=a.contextType,k=qs,typeof I=="object"&&I!==null&&(k=Ot(I)),E=a.getDerivedStateFromProps,(I=typeof E=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==J||Z!==k)&&Jv(i,p,l,k),Xr=!1,Z=i.memoizedState,p.state=Z,wo(i,l,p,d),xo();var K=i.memoizedState;b!==J||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,k)||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,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,K,k)),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=k,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,Ct=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 k=n.memoizedState;if(k!==null&&(E=k.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!==k.retryLane))throw k.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=k.treeContext,Fe=_n(E.nextSibling),Ct=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,k=n.child,I=k.sibling,l=yr(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.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?(k=ft._currentValue,d=d.parent!==k?{parent:k,pool:k}: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 YA(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,YA(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===A){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),Ct=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=Ob(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=Ob(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),Ct=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=Aj(l,i.type,i.pendingProps,En),l!==null?(i.stateNode=l,Ct=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,Ch(d,p)?l=null:b!==null&&Ch(d,b)&&(i.flags|=32),i.memoizedState!==null&&(d=jd(n,i,HA,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=jj(a,i.pendingProps,En),a!==null?(i.stateNode=a,Ct=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=Ot(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 FA(n,i,a);case 22:return c0(n,i,a,i.pendingProps);case 24:return Gi(i),l=Ot(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 XA(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=F.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=F.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=Ct,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()>Oc&&(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>Oc&&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 WA(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 Co(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 k=a,I=E;try{I()}catch(X){qe(d,k,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 Oo(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;xj(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 JA(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,k=-1,I=0,X=0,J=n,Z=null;t:for(;;){for(var K;J!==a||d!==0&&J.nodeType!==3||(E=b+d),J!==p||l!==0&&J.nodeType!==3||(k=b+l),J.nodeType===3&&(b+=J.nodeValue.length),(K=J.firstChild)!==null;)Z=J,J=K;for(;;){if(J===n)break t;if(Z===a&&++I===d&&(E=b),Z===p&&++X===l&&(k=b),(K=J.nextSibling)!==null)break;J=Z,Z=J.parentNode}J=K}a=E===-1||k===-1?null:{start:E,end:k}}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&&Co(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&&Oo(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&&Oo(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=lj.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?Cr(n,a,(a.subtreeFlags&8772)!==0):jr(n,a),_r=d,mt=p}break;case 30:break;default:jr(n,a)}}function C0(n){var i=n.alternate;i!==null&&(n.alternate=null,C0(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;)O0(n,i,a),a=a.sibling}function O0(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 ej(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=ej(n);i.forEach(function(l){if(!a.has(l)){a.add(l);var d=cj.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));O0(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),Co(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)&&(Cc=Vt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,Ac(n,l)));break;case 22:d=n.memoizedState!==null;var k=a!==null&&a.memoizedState!==null,I=_r,X=mt;if(_r=I||d,mt=X||k,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||k||_r||mt||Ji(n)),a=null,i=n;;){if(i.tag===5||i.tag===26){if(a===null){k=a=i;try{if(p=k.stateNode,d)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{E=k.stateNode;var J=k.memoizedProps.style,Z=J!=null&&J.hasOwnProperty("display")?J.display:null;E.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(de){qe(k,k.return,de)}}}else if(i.tag===6){if(a===null){k=i;try{k.stateNode.nodeValue=d?"":k.memoizedProps}catch(de){qe(k,k.return,de)}}}else if(i.tag===18){if(a===null){k=i;try{var K=k.stateNode;d?Sb(K,!0):Sb(k.stateNode,!1)}catch(de){qe(k,k.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 k=a.stateNode.containerInfo,I=rh(n);ih(n,I,k);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 Cr(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:Cr(d,p,a),Co(4,p);break;case 1:if(Cr(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 k=d.shared.hiddenCallbacks;if(k!==null)for(d.shared.hiddenCallbacks=null,d=0;d<k.length;d++)uv(k[d],E)}catch(I){qe(l,l.return,I)}}a&&b&64&&w0(p),Oo(p,p.return);break;case 27:_0(p);case 26:case 5:Cr(d,p,a),a&&l===null&&b&4&&E0(p),Oo(p,p.return);break;case 12:Cr(d,p,a);break;case 31:Cr(d,p,a),a&&b&4&&k0(d,p);break;case 13:Cr(d,p,a),a&&b&4&&z0(d,p);break;case 22:p.memoizedState===null&&Cr(d,p,a),Oo(p,p.return);break;case 30:break;default:Cr(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&&Co(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(k){qe(i,i.return,k)}}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,k=l,I=b.flags;switch(b.tag){case 0:case 11:case 15:ta(p,b,E,k,d),Co(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?ta(p,b,E,k,d):ko(p,b):(X._visibility|=2,ta(p,b,E,k,d)),d&&I&2048&&ah(b.alternate,b);break;case 24:ta(p,b,E,k,d),d&&I&2048&&oh(b.alternate,b);break;default:ta(p,b,E,k,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&&Bj(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(C0(l),l===a){St=null;break e}if(d!==null){d.return=p,St=d;break e}St=p}}}var tj={getCacheForType:function(n){var i=Ot(ft),a=i.data.get(n);return a===void 0&&(a=n(),i.data.set(n,a)),a},cacheSignal:function(){return Ot(ft).controller.signal}},nj=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ke=null,ze=null,Me=0,He=0,cn=null,ri=!1,ra=!1,lh=!1,Or=0,it=0,ii=0,es=0,ch=0,un=0,ia=0,Mo=null,Wt=null,uh=!1,Cc=0,V0=0,Oc=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:j.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?sj(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&&!rj(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 k=E.current.memoizedState.isDehydrated;if(k&&(aa(E,b).flags|=256),b=ph(E,b,!1),b!==2){if(lh&&!k){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=Cc+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,k,I,X,J,Z,K){if(n.timeoutHandle=-1,J=i.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pr},D0(i,p,J);var de=(p&62914560)===p?Cc-Vt():(p&4194048)===p?V0-Vt():0;if(de=Hj(J,de),de!==null){kr=p,n.cancelPendingCommit=de(X0.bind(null,n,i,p,a,l,d,b,E,k,X,J,null,Z,K)),oi(n,p,b,!I);return}}X0(n,i,p,a,l,d,b,E,k)}function rj(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,Ej(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 Or=i,Wl(),a}function $0(n,i){je=null,j.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=j.H;return j.H=_o,n===null?_o:n}function K0(){var n=j.A;return j.A=tj,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,k=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,k,I),a&&ra){b=0;break e}break;default:I=He,He=0,cn=null,oa(n,E,k,I)}}ij(),b=it;break}catch(X){$0(n,X)}while(!0);return i&&n.shellSuspendCounter++,br=Zi=null,Be=l,j.H=d,j.A=p,ze===null&&(Ke=null,Me=0,Wl()),b}function ij(){for(;ze!==null;)Q0(ze)}function sj(n,i){var a=Be;Be|=2;var l=G0(),d=K0();Ke!==n||Me!==i?(kc=null,Oc=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 k=E.sibling;if(k!==null)ze=k;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))}}aj();break}catch(X){$0(n,X)}while(!0);return br=Zi=null,j.H=l,j.A=d,Be=a,ze!==null?0:(Ke=null,Me=0,Wl(),it)}function aj(){for(;ze!==null&&!Ut();)Q0(ze)}function Q0(n){var i=v0(n.alternate,n,Or);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,Or),i=v0(a,i,Or)}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(QA(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=XA(i.alternate,i,Or);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=WA(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,k){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,k),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,uj(Ri,function(){return nb(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,d=D.p,D.p=2,b=Be,Be|=4;try{JA(n,i,a)}finally{Be=b,D.p=d,j.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=j.T,j.T=null;var l=D.p;D.p=2;var d=Be;Be|=4;try{N0(i,n);var p=jh,b=Uy(n.containerInfo),E=p.focusedElem,k=p.selectionRange;if(b!==E&&E&&E.ownerDocument&&Ly(E.ownerDocument.documentElement,E)){if(k!==null&&Wf(E)){var I=k.start,X=k.end;if(X===void 0&&(X=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(X,E.value.length);else{var J=E.ownerDocument||document,Z=J&&J.defaultView||window;if(Z.getSelection){var K=Z.getSelection(),de=E.textContent.length,ve=Math.min(k.start,de),Ge=k.end===void 0?ve:Math.min(k.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=J.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(J=[],K=E;K=K.parentNode;)K.nodeType===1&&J.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<J.length;E++){var W=J[E];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}Gc=!!Ah,jh=Ah=null}finally{Be=d,D.p=l,j.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=j.T,j.T=null;var l=D.p;D.p=2;var d=Be;Be|=4;try{j0(n,i.alternate,i)}finally{Be=d,D.p=l,j.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=j.T,d=D.p,D.p=2,j.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{j.T=i,D.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=j.T,d=D.p;try{D.p=32>a?32:a,j.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{D.p=d,j.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 nj;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=oj.bind(null,n,i,a),i.then(n,n))}function oj(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()-Cc?(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 lj(n){var i=n.memoizedState,a=0;i!==null&&(a=i.retryLane),ib(n,a)}function cj(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 uj(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,dj())}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 fj(){sb()}function sb(){Pc=yh=!1;var n=0;li!==0&&Sj()&&(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,k=d[b];k===-1?((E&a)===0||(E&l)!==0)&&(d[b]=xt(E,i)):k<=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 dj(){Tj(function(){(Be&6)!==0?Xa(Mi,fj):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 hj(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 k=b?ub(d,b):new FormData(d);Vd(a,{pending:!0,data:k,method:d.method,action:p},null,k)}}else typeof p=="function"&&(E.preventDefault(),k=b?ub(d,b):new FormData(d),Vd(a,{pending:!0,data:k,method:d.method,action:p},p,k))},currentTarget:d}]})}}for(var xh=0;xh<nd.length;xh++){var wh=nd[xh],mj=wh.toLowerCase(),pj=wh[0].toUpperCase()+wh.slice(1);Ln(mj,"on"+pj)}Ln(Hy,"onAnimationEnd"),Ln(qy,"onAnimationIteration"),Ln(Iy,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(zA,"onTransitionRun"),Ln(NA,"onTransitionStart"),Ln(MA,"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(" "),gj=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],k=E.instance,I=E.currentTarget;if(E=E.listener,k!==p&&d.isPropagationStopped())break e;p=E,d.currentTarget=I;try{p(d)}catch(X){Xl(X)}d.currentTarget=null,p=k}else for(b=0;b<l.length;b++){if(E=l[b],k=E.instance,I=E.currentTarget,E=E.listener,k!==p&&d.isPropagationStopped())break e;p=E,d.currentTarget=I;try{p(d)}catch(X){Xl(X)}d.currentTarget=null,p=k}}}}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"&&(gj.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=$j;break;case 8:d=Zj;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 k=b.tag;if((k===3||k===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;E!==null;){if(b=ks(E),b===null)return;if(k=b.tag,k===5||k===6||k===26||k===27){l=p=b;continue e}E=E.parentNode}}l=l.return}yy(function(){var I=p,X=Hf(a),J=[];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=cA;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=X_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=dA;break;case Hy:case qy:case Iy:K=eA;break;case $y:K=mA;break;case"scroll":case"scrollend":K=F_;break;case"wheel":K=gA;break;case"copy":case"cut":case"paste":K=nA;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=vA}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 W=M;if(q=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||q===null||V===null||(W=ro(M,V),W!=null&&ve.push(Lo(M,W,q))),Ge)break;M=M.return}0<ve.length&&(Z=new K(Z,de,null,a,X),J.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[Os]))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,W="onMouseLeave",V="onMouseEnter",M="mouse",(n==="pointerout"||n==="pointerover")&&(ve=Sy,W="onPointerLeave",V="onPointerEnter",M="pointer"),Ge=K==null?Z:no(K),q=de==null?Z:no(de),Z=new ve(W,M+"leave",K,a,X),Z.target=Ge,Z.relatedTarget=q,W=null,ks(X)===I&&(ve=new ve(V,M+"enter",de,a,X),ve.target=q,ve.relatedTarget=Ge,W=ve),Ge=W,K&&de)t:{for(ve=yj,V=K,M=de,q=0,W=V;W;W=ve(W))q++;W=0;for(var ye=M;ye;ye=ve(ye))W++;for(;0<q-W;)V=ve(V),q--;for(;0<W-q;)M=ve(M),W--;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(J,Z,K,ve,!1),de!==null&&Ge!==null&&hb(J,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(Cy(Z))if(zy)Le=CA;else{Le=AA;var ge=_A}else K=Z.nodeName,!K||K.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?I&&Vf(I.elementType)&&(Le=ky):Le=jA;if(Le&&(Le=Le(n,I))){Oy(J,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":(Cy(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(J,a,X);break;case"selectionchange":if(kA)break;case"keydown":case"keyup":Vy(J,a,X)}var Oe;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&&(Oe=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),J.push({event:Re,listeners:ge}),Oe?Re.data=Oe:(Oe=jy(a),Oe!==null&&(Re.data=Oe)))),(Oe=xA?wA(n,a):SA(n,a))&&(Re=Uc(I,"onBeforeInput"),0<Re.length&&(ge=new wy("onBeforeInput","beforeinput",null,a,X),J.push({event:ge,listeners:Re}),ge.data=Oe)),hj(J,n,I,a,X)}fb(J,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 yj(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,k=E.alternate,I=E.stateNode;if(E=E.tag,k!==null&&k===l)break;E!==5&&E!==26&&E!==27||I===null||(k=I,d?(I=ro(a,p),I!=null&&b.unshift(Lo(a,I,k))):d||(I=ro(a,p),I!=null&&b.push(Lo(a,I,k)))),a=a.return}b.length!==0&&n.push({event:i,listeners:b})}var vj=/\r\n?/g,bj=/\u0000|\uFFFD/g;function mb(n){return(typeof n=="string"?n:""+n).replace(vj,`
`).replace(bj,"")}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=K_.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,k=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":k=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,k,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(k in a)if(a.hasOwnProperty(k)&&(l=a[k],l!=null))switch(k){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(n,i,k,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 xj(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,k=null,I=null,X=null;for(K in a){var J=a[K];if(a.hasOwnProperty(K)&&J!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":k=J;default:l.hasOwnProperty(K)||Ze(n,i,K,null,l,J)}}for(var Z in l){var K=l[Z];if(J=a[Z],l.hasOwnProperty(Z)&&(K!=null||J!=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!==J&&Ze(n,i,Z,K,l,J)}}Lf(n,b,E,k,I,X,p,d);return;case"select":K=b=E=Z=null;for(p in a)if(k=a[p],a.hasOwnProperty(p)&&k!=null)switch(p){case"value":break;case"multiple":K=k;default:l.hasOwnProperty(p)||Ze(n,i,p,null,l,k)}for(d in l)if(p=l[d],k=a[d],l.hasOwnProperty(d)&&(p!=null||k!=null))switch(d){case"value":Z=p;break;case"defaultValue":E=p;break;case"multiple":b=p;default:p!==k&&Ze(n,i,d,p,l,k)}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(k in l)if(Z=l[k],K=a[k],l.hasOwnProperty(k)&&Z!==K&&(Z!=null||K!=null))switch(k){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Ze(n,i,k,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(J in l)Z=l[J],K=a[J],!l.hasOwnProperty(J)||Z===K||Z==null&&K==null||Ze(n,i,J,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 wj(){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 k=a[l],I=k.startTime;if(I>E)break;var X=k.transferSize,J=k.initiatorType;X&&gb(J)&&(k=k.responseEnd,b+=X*(k<E?1:(E-I)/(k-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 Ch(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 Oh=null;function Sj(){var n=window.event;return n&&n.type==="popstate"?n===Oh?!1:(Oh=n,!0):(Oh=null,!1)}var bb=typeof setTimeout=="function"?setTimeout:void 0,Ej=typeof clearTimeout=="function"?clearTimeout:void 0,xb=typeof Promise=="function"?Promise:void 0,Tj=typeof queueMicrotask=="function"?queueMicrotask:typeof xb<"u"?function(n){return xb.resolve(null).then(n).catch(_j)}:bb;function _j(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 Aj(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 jj(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=D.d;D.d={f:Oj,r:kj,D:zj,C:Nj,L:Mj,m:Rj,X:Pj,S:Dj,M:Lj};function Oj(){var n=zr.f(),i=zc();return n||i}function kj(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 Cb(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 zj(n){zr.D(n),Cb("dns-prefetch",n,null)}function Nj(n,i){zr.C(n,i),Cb("preconnect",n,i)}function Mj(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 Rj(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 Dj(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 k=b=l.createElement("link");wt(k),zt(k,"link",n),k._p=new Promise(function(I,X){k.onload=I,k.onerror=X}),k.addEventListener("load",function(){E.loading|=1}),k.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 Pj(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 Lj(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 Ob(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||Uj(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 Uj(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,k){b.onload=E,b.onerror=k}),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 Vj(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 Bj(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,k){b.onload=E,b.onerror=k}),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 Hj(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*wj());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(qj,n),$c=null,Ic.call(n))}function qj(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 Ij(n,i,a,l,d,p,b,E,k){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=k,this.incompleteTransitions=new Map}function Db(n,i,a,l,d,p,b,E,k,I,X,J){return n=new Ij(n,i,a,b,k,I,X,J,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=Cs(i);var a=qi(n,i);a!==null&&Jt(a,n,i),Lh(n,i)}}var Gc=!0;function $j(n,i,a,l){var d=j.T;j.T=null;var p=D.p;try{D.p=2,Uh(n,i,a,l)}finally{D.p=p,j.T=d}}function Zj(n,i,a,l){var d=j.T;j.T=null;var p=D.p;try{D.p=8,Uh(n,i,a,l)}finally{D.p=p,j.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(Kj(d,n,i,a,l))l.stopPropagation();else if(qb(n,l),i&4&&-1<Gj.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 k=1<<31-Nt(b);E.entanglements[1]|=k,b&=~k}Jn(p),(Be&6)===0&&(Oc=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=[],Gj="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 Kj(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 Qj(){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,Qj)))}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(k){return Fc(k,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[Os]=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"));D.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 Fj={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:j,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(Fj),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[Os]=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,k=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&&(k=a.formState)),i=Db(n,1,!0,i,a??null,l,d,k,p,b,E,Gb),i.context=Pb(null),a=i.current,l=fn(),l=Cs(l),d=Wr(l),d.callback=null,Jr(a,d,l),a=l,i.current.lanes=a,et(i,a),Jn(i),n[Os]=i.current,Eh(n),new Xc(i)},Ko.version="19.2.1",Ko}var bx;function uk(){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=ck(),Fh.exports}var fk=uk(),Jh,xx;function dk(){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 hk=dk();const mk=_l(hk);var em,wx;function pk(){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 gk=pk();const Sx=_l(gk);var tm,Ex;function yk(){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 vk=yk();const bk=_l(vk);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"},xk=Object.entries(Gp).reduce((e,[t,r])=>(e[r]=t,e),{}),qn="data-rh",Ca={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Oa=(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},wk=e=>{let t=Oa(e,"title");const r=Oa(e,Ca.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const s=Oa(e,Ca.DEFAULT_TITLE);return t||s||void 0},Sk=e=>Oa(e,Ca.ON_CHANGE_CLIENT_STATE)||(()=>{}),rm=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,s)=>({...r,...s}),{}),Ek=(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},[]),Tk=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"&&Tk(`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()},_k=(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},Ak=e=>({baseTag:Ek(["href"],e),bodyAttributes:rm("bodyAttributes",e),defer:Oa(e,Ca.DEFER),encode:Oa(e,Ca.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:Sk(e),scriptTags:Qo("script",["src","innerHTML"],e),styleTags:Qo("style",["cssText"],e),title:wk(e),titleAttributes:rm("titleAttributes",e),prioritizeSeoTags:_k(e,Ca.PRIORITIZE_SEO_TAGS)}),GS=e=>Array.isArray(e)?e.join(""):e,jk=(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)=>(jk(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},""),Ok=(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}>`},kk=(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),zk=(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:()=>zk(e,t.title,t.titleAttributes),toString:()=>Ok(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>QS(t),toString:()=>KS(t)};default:return{toComponent:()=>wu(e,t),toString:()=>kk(e,t,r)}}},Nk=({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}},Mk=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}=Nk(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=Mk,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:{}}))}},Rk={},YS=se.createContext(Rk),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(","))},Dk=(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),Dk(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:z,oldTags:L}=w[N];z.length&&(T[N]=z),L.length&&(_[N]=w[N].oldTags)}),t&&t(),h(e,T,_)},Fo=null,Pk=e=>{Fo&&cancelAnimationFrame(Fo),e.defer?Fo=requestAnimationFrame(()=>{Ax(e,()=>{Fo=null})}):(Ax(e),Fo=null)},Lk=Pk,jx=class extends S.Component{rendered=!1;shouldComponentUpdate(e){return!bk(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=Ak(e.get().map(o=>{const c={...o.props};return delete c.context,c}));XS.canUseDOM?Lk(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}},Uk=class extends S.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!mk(_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[xk[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}))}},Vk=(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 Vk}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})(),Bk=(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)}})(),Hk=(function(e){Bk(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),qk=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 Ik(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 $k(e,t){var r=Ik(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=qk(r,2),o=s[0],c=s[1];return t(c,o)})}function Su(e,t){return e.indexOf(t)!==-1}function Cx(e,t){for(var r=0;r<e.length;r++){var s=e[r];if(t(s))return s}}var Zk=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return $k(this.transfomers,function(r){return r.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),Gk=function(e){return Object.prototype.toString.call(e).slice(8,-1)},e2=function(e){return typeof e>"u"},Kk=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)},Qk=function(e){return typeof e=="string"},Fk=function(e){return typeof e=="number"&&!isNaN(e)},Yk=function(e){return typeof e=="boolean"},Xk=function(e){return e instanceof RegExp},dl=function(e){return e instanceof Map},hl=function(e){return e instanceof Set},t2=function(e){return Gk(e)==="Symbol"},Wk=function(e){return e instanceof Date&&!isNaN(e.valueOf())},Jk=function(e){return e instanceof Error},Ox=function(e){return typeof e=="number"&&isNaN(e)},ez=function(e){return Yk(e)||Kk(e)||e2(e)||Fk(e)||Qk(e)||t2(e)},tz=function(e){return typeof e=="bigint"},nz=function(e){return e===1/0||e===-1/0},rz=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},iz=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(tz,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),er(Wk,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),er(Jk,"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(Xk,"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 Ox(e)||nz(e)},"number",function(e){return Ox(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),er(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),er(iz,"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}),sz=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),s2=lf(rz,function(e){return["typed-array",e.constructor.name]},function(e){return Qm([],Km(e))},function(e,t){var r=sz[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)}),az=[o2,i2,l2,s2],kx=function(e,t){var r=Cx(az,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var s=Cx(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 oz=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 lz=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 cz(e,t,r){return Ym(t,function(s,o){e=Fm(e,o,function(c){return oz(c,s,r)})}),e}function uz(e,t){function r(u,f){var h=lz(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 fz=function(e,t){return fl(e)||Ti(e)||dl(e)||hl(e)||a2(e,t)};function dz(e,t,r){var s=r.get(e);s?s.push(t):r.set(e,[t])}function hz(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=ez(e);if(!h){dz(e,o,t);var m=u.get(e);if(m)return s?{transformedValue:null}:m}if(!fz(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(z,L){var C=f2(z,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 mz(e){if(d2(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function pz(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(!mz(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 pz(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)},gz=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},yz=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 Hk,this.symbolRegistry=new JS(function(c){var u;return(u=c.description)!==null&&u!==void 0?u:""}),this.customTransformerRegistry=new Zk,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=hz(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=cz(o,s.values,this)),s?.referentialEqualities&&(o=uz(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,yz([],gz(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 vz="modulepreload",bz=function(e){return"/"+e},Nx={},Ce=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=bz(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":vz,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 xz=(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(z=>c[z]||z):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{}},wz=S.createContext(void 0),Sz={setTheme:e=>{},themes:[]},Ez=()=>{var e;return(e=S.useContext(wz))!=null?e:Sz};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:`(${xz.toString()})(${v})`}})});var Kp=$S();const Tz=_l(Kp);function _z(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 Az=e=>{switch(e){case"success":return Oz;case"info":return zz;case"warning":return kz;case"error":return Nz;default:return null}},jz=Array(12).fill(0),Cz=({visible:e,className:t})=>se.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},se.createElement("div",{className:"sonner-spinner"},jz.map((r,s)=>se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),Oz=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"})),kz=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"})),zz=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"})),Nz=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"})),Mz=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"})),Rz=()=>{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 Dz{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(Lz(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 Dz,Pz=(e,t)=>{const r=t?.id||Wm++;return en.addToast({title:e,...t,id:r}),r},Lz=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Uz=Pz,Vz=()=>en.toasts,Bz=()=>en.getActiveToasts(),I7=Object.assign(Uz,{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:Vz,getToasts:Bz});_z("[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 Hz=3,qz="24px",Iz="16px",Mx=4e3,$z=356,Zz=14,Gz=45,Kz=200;function tr(...e){return e.filter(Boolean).join(" ")}function Qz(e){const[t,r]=e.split("-"),s=[];return t&&s.push(t),r&&s.push(r),s}const Fz=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:z,toasts:L,expanded:C,removeToast:B,defaultRichColors:U,closeButton:H,style:A,cancelButtonStyle:R,actionButtonStyle:G,className:Y="",descriptionClassName:ne="",duration:te,position:oe,gap:ae,expandByDefault:ce,classNames:j,icons:D,closeButtonAriaLabel:P="Close toast"}=e,[re,le]=se.useState(null),[O,Q]=se.useState(null),[$,F]=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||te||Mx),Ya=se.useRef(null),rn=se.useRef(null),Xa=z===0,Wa=z+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||te||Mx,[y.duration,te]),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=Rz(),Nf=y.invert||v,eo=Ut==="loading";hr.current=se.useMemo(()=>Mi*ae+Dn,[Mi,Dn]),se.useEffect(()=>{Ni.current=Ri},[Ri]),se.useEffect(()=>{F(!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)},Kz)},[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(D?.loading){var Xe;return se.createElement("div",{className:tr(j?.loader,y==null||(Xe=y.classNames)==null?void 0:Xe.loader,"sonner-loader"),"data-visible":Ut==="loading"},D.loading)}return se.createElement(Cz,{className:tr(j?.loader,y==null||(we=y.classNames)==null?void 0:we.loader),visible:Ut==="loading"})}const js=y.icon||D?.[Ut]||Az(Ut);var Pi,Fn;return se.createElement("li",{tabIndex:0,ref:rn,className:tr(Y,Vt,j?.toast,y==null||(t=y.classNames)==null?void 0:t.toast,j?.default,j?.[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":z,"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":z,"--toasts-before":z,"--z-index":L.length-z,"--offset":`${ie?dr:hr.current}px`,"--initial-height":ce?"auto":`${Fa}px`,...A,...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)>=Gz||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:Qz(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 Cs=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*Cs(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*Cs($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(j?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(Fn=D?.close)!=null?Fn:Mz):null,(Ut||y.icon||y.promise)&&y.icon!==null&&(D?.[Ut]!==null||y.icon)?se.createElement("div",{"data-icon":"",className:tr(j?.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(j?.content,y==null||(c=y.classNames)==null?void 0:c.content)},se.createElement("div",{"data-title":"",className:tr(j?.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(ne,zf,j?.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||R,onClick:we=>{iu(y.cancel)&&qr&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,we),Qn())},className:tr(j?.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||G,onClick:we=>{iu(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,we),!we.defaultPrevented&&Qn())},className:tr(j?.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 Yz(e,t){const r={};return[e,t].forEach((s,o)=>{const c=o===1,u=c?"--mobile-offset":"--offset",f=c?Iz:qz;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 Xz=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=Hz,toastOptions:z,dir:L=Rx(),gap:C=Zz,icons:B,containerAriaLabel:U="Notifications"}=t,[H,A]=se.useState([]),R=se.useMemo(()=>s?H.filter($=>$.toasterId===s):H.filter($=>!$.toasterId),[H,s]),G=se.useMemo(()=>Array.from(new Set([c].concat(R.filter($=>$.position).map($=>$.position)))),[R,c]),[Y,ne]=se.useState([]),[te,oe]=se.useState(!1),[ae,ce]=se.useState(!1),[j,D]=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($=>{A(F=>{var ie;return(ie=F.find(pe=>pe.id===$.id))!=null&&ie.delete||en.dismiss($.id),F.filter(({id:pe})=>pe!==$.id)})},[]);return se.useEffect(()=>en.subscribe($=>{if($.dismiss){requestAnimationFrame(()=>{A(F=>F.map(ie=>ie.id===$.id?{...ie,delete:!0}:ie))});return}setTimeout(()=>{Tz.flushSync(()=>{A(F=>{const ie=F.findIndex(pe=>pe.id===$.id);return ie!==-1?[...F.slice(0,ie),{...F[ie],...$},...F.slice(ie+1)]:[$,...F]})})})}),[H]),se.useEffect(()=>{if(x!=="system"){D(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;const $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:F})=>{D(F?"dark":"light")})}catch{$.addListener(({matches:ie})=>{try{D(ie?"dark":"light")}catch(pe){console.error(pe)}})}},[x]),se.useEffect(()=>{H.length<=1&&oe(!1)},[H]),se.useEffect(()=>{const $=F=>{var ie;if(u.every(xe=>F[xe]||F.code===xe)){var fe;oe(!0),(fe=P.current)==null||fe.focus()}F.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},G.map(($,F)=>{var ie;const[pe,fe]=$.split("-");return R.length?se.createElement("ol",{key:$,dir:L==="auto"?Rx():L,tabIndex:-1,ref:P,className:m,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":pe,"data-x-position":fe,style:{"--front-toast-height":`${((ie=Y[0])==null?void 0:ie.height)||0}px`,"--width":`${$z}px`,"--gap":`${C}px`,..._,...Yz(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)},R.filter(xe=>!xe.position&&F===0||xe.position===$).map((xe,De)=>{var _t,Lt;return se.createElement(Fz,{key:xe.id,icons:B,index:De,toast:xe,defaultRichColors:w,duration:(_t=z?.duration)!=null?_t:T,className:z?.className,descriptionClassName:z?.descriptionClassName,invert:o,visibleToasts:N,closeButton:(Lt=z?.closeButton)!=null?Lt:h,interacting:ae,position:$,style:z?.style,unstyled:z?.unstyled,classNames:z?.classNames,cancelButtonStyle:z?.cancelButtonStyle,actionButtonStyle:z?.actionButtonStyle,closeButtonAriaLabel:z?.closeButtonAriaLabel,removeToast:Q,toasts:R.filter(At=>At.position==xe.position),heights:Y.filter(At=>At.position==xe.position),setHeights:ne,expandByDefault:f,gap:C,expanded:te,swipeDirections:t.swipeDirections})})):null}))}),Wz=({...e})=>{const{theme:t="system"}=Ez();return g.jsx(Xz,{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,Jz(o,...t)]}function Jz(...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 e5(e){const t=t5(e),r=S.forwardRef((s,o)=>{const{children:c,...u}=s,f=S.Children.toArray(c),h=f.find(r5);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 t5(e){const t=S.forwardRef((r,s)=>{const{children:o,...c}=r;if(S.isValidElement(o)){const u=s5(o),f=i5(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 n5(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=p2,t}function r5(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p2}function i5(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 s5(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 a5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ws=a5.reduce((e,t)=>{const r=e5(`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 o5(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 l5(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 c5="DismissableLayer",Jm="dismissableLayer.update",u5="dismissableLayer.pointerDownOutside",f5="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,A=>y(A)),_=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),z=_.indexOf(N),L=v?_.indexOf(v):-1,C=m.layersWithOutsidePointerEventsDisabled.size>0,B=L>=z,U=m5(A=>{const R=A.target,G=[...m.branches].some(Y=>Y.contains(R));!B||G||(o?.(A),u?.(A),A.defaultPrevented||f?.())},x),H=p5(A=>{const R=A.target;[...m.branches].some(Y=>Y.contains(R))||(c?.(A),u?.(A),A.defaultPrevented||f?.())},x);return l5(A=>{L===m.layers.size-1&&(s?.(A),!A.defaultPrevented&&f&&(A.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 A=()=>w({});return document.addEventListener(Jm,A),()=>document.removeEventListener(Jm,A)},[]),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=c5;var d5="DismissableLayerBranch",h5=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})});h5.displayName=d5;function m5(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(u5,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 p5(e,t=globalThis?.document){const r=cf(e),s=S.useRef(!1);return S.useEffect(()=>{const o=c=>{c.target&&!s.current&&v2(f5,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?o5(o,c):o.dispatchEvent(c)}var ml=globalThis?.document?S.useLayoutEffect:()=>{};const g5=["top","right","bottom","left"],_i=Math.min,mn=Math.max,Lu=Math.round,su=Math.floor,ir=e=>({x:e,y:e}),y5={left:"right",right:"left",bottom:"top",top:"bottom"},v5={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 b5=new Set(["top","bottom"]);function rr(e){return b5.has(Ur(e))?"y":"x"}function Yp(e){return Qp(rr(e))}function x5(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 w5(e){const t=Uu(e);return[tp(e),t,tp(t)]}function tp(e){return e.replace(/start|end/g,t=>v5[t])}const Ux=["left","right"],Vx=["right","left"],S5=["top","bottom"],E5=["bottom","top"];function T5(e,t,r){switch(e){case"top":case"bottom":return r?t?Vx:Ux:t?Ux:Vx;case"left":case"right":return t?S5:E5;default:return[]}}function _5(e,t,r,s){const o=Ua(e);let c=T5(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=>y5[t])}function A5(e){return{top:0,right:0,bottom:0,left:0,...e}}function b2(e){return typeof e!="number"?A5(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 j5=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:z}=f[_],{x:L,y:C,data:B,reset:U}=await z({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],z=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:(z.top-U.top+T.top)/B.y,bottom:(U.bottom-z.bottom+T.bottom)/B.y,left:(z.left-U.left+T.left)/B.x,right:(U.right-z.right+T.right)/B.x}}const C5=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",z=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 A=H?H[C]:0;(!A||!await(u.isElement==null?void 0:u.isElement(H)))&&(A=f.floating[C]||c.floating[T]);const R=B/2-U/2,G=A/2-_[T]/2-1,Y=_i(y[z],G),ne=_i(y[L],G),te=Y,oe=A-_[T]-ne,ae=A/2-_[T]/2+R,ce=ep(te,ae,oe),j=!h.arrow&&Ua(o)!=null&&ae!==ce&&c.reference[T]/2-(ae<te?Y:ne)-_[T]/2<0,D=j?ae<te?ae-te:ae-oe:0;return{[w]:x[w]+D,data:{[w]:ce,centerOffset:ae-ce-D,...j&&{alignmentOffset:D}},reset:j}}}),O5=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 z=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)]:w5(f)),H=T!=="none";!x&&H&&U.push(..._5(f,_,T,B));const A=[f,...U],R=await pl(t,N),G=[];let Y=((s=c.flip)==null?void 0:s.overflows)||[];if(v&&G.push(R[z]),y){const ae=x5(o,u,B);G.push(R[ae[0]],R[ae[1]])}if(Y=[...Y,{placement:o,overflows:G}],!G.every(ae=>ae<=0)){var ne,te;const ae=(((ne=c.flip)==null?void 0:ne.index)||0)+1,ce=A[ae];if(ce&&(!(y==="alignment"?L!==rr(ce):!1)||Y.every(P=>rr(P.placement)===L?P.overflows[0]>0:!0)))return{data:{index:ae,overflows:Y},reset:{placement:ce}};let j=(te=Y.filter(D=>D.overflows[0]<=0).sort((D,P)=>D.overflows[1]-P.overflows[1])[0])==null?void 0:te.placement;if(!j)switch(w){case"bestFit":{var oe;const D=(oe=Y.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];D&&(j=D);break}case"initialPlacement":j=f;break}if(o!==j)return{reset:{placement:j}}}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 g5.some(t=>e[t]>=0)}const k5=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 z5(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 N5=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 z5(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}}}}},M5=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:z,y:L}=N;return{x:z,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",z=x==="y"?"bottom":"right",L=w+v[N],C=w-v[z];w=ep(L,w,C)}if(u){const N=y==="y"?"top":"left",z=y==="y"?"bottom":"right",L=T+v[N],C=T-v[z];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}}}}}},R5=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 z,L;const C=x==="y"?"width":"height",B=x2.has(Ur(o)),U=c.reference[y]-c.floating[C]+(B&&((z=u.offset)==null?void 0:z[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}}}},D5=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,z;y==="top"||y==="bottom"?(N=y,z=x===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(z=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[z],C),H=!t.middlewareData.shift;let A=B,R=U;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=C),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(A=L),H&&!x){const Y=mn(v.left,0),ne=mn(v.right,0),te=mn(v.top,0),oe=mn(v.bottom,0);w?R=T-2*(Y!==0||ne!==0?Y+ne:mn(v.left,v.right)):A=_-2*(te!==0||oe!==0?te+oe:mn(v.top,v.bottom))}await h({...t,availableWidth:R,availableHeight:A});const G=await u.getDimensions(f.floating);return T!==G.width||_!==G.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 P5=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)&&!P5.has(o)}const L5=new Set(["table","td","th"]);function U5(e){return L5.has(Va(e))}const V5=[":popover-open",":modal"];function ff(e){return V5.some(t=>{try{return e.matches(t)}catch{return!1}})}const B5=["transform","translate","scale","rotate","perspective"],H5=["transform","translate","scale","rotate","perspective","filter"],q5=["paint","layout","strict","content"];function Xp(e){const t=Wp(),r=$n(e)?Zn(e):e;return B5.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)||H5.some(s=>(r.willChange||"").includes(s))||q5.some(s=>(r.contain||"").includes(s))}function I5(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 $5=new Set(["html","body","#document"]);function Ra(e){return $5.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 Z5=ir(0);function T2(e){const t=gn(e);return!Wp()||!t.visualViewport?Z5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function G5(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=G5(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(_),z=_.getBoundingClientRect(),L=Zn(_),C=z.left+(_.clientLeft+parseFloat(L.paddingLeft))*N.x,B=z.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 K5(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 Q5(e){return Array.from(e.getClientRects())}function F5(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 Y5(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 X5=new Set(["absolute","fixed"]);function W5(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=Y5(e,r);else if(t==="document")s=F5(ur(e));else if($n(t))s=W5(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 J5(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&&X5.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 eN(e){let{element:t,boundary:r,rootBoundary:s,strategy:o}=e;const u=[...r==="clippingAncestors"?ff(t)?[]:J5(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 tN(e){const{width:t,height:r}=E2(e);return{width:t,height:r}}function nN(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&&U5(s)&&am(s);)s=Gx(s,t);return s&&Ra(s)&&am(s)&&!Xp(s)?r:s||I5(e)||r}const rN=async function(e){const t=this.getOffsetParent||j2,r=this.getDimensions,s=await r(e.floating);return{reference:nN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function iN(e){return Zn(e).direction==="rtl"}const sN={convertOffsetParentRelativeRectToViewportRelativeRect:K5,getDocumentElement:ur,getClippingRect:eN,getOffsetParent:j2,getElementRects:rN,getClientRects:Q5,getDimensions:tN,getScale:ka,isElement:$n,isRTL:iN};function C2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aN(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)),z=su(v),C={rootMargin:-T+"px "+-_+"px "+-N+"px "+-z+"px",threshold:mn(0,_i(1,h))||1};let B=!0;function U(H){const A=H[0].intersectionRatio;if(A!==h){if(!B)return u();A?u(!1,A):s=setTimeout(()=>{u(!1,1e-7)},1e3)}A===1&&!C2(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 oN(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(z=>{o&&z.addEventListener("scroll",r,{passive:!0}),c&&z.addEventListener("resize",r)});const y=m&&f?aN(m,r):null;let x=-1,w=null;u&&(w=new ResizeObserver(z=>{let[L]=z;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 z=hs(e);_&&!C2(_,z)&&r(),_=z,T=requestAnimationFrame(N)}return r(),()=>{var z;v.forEach(L=>{o&&L.removeEventListener("scroll",r),c&&L.removeEventListener("resize",r)}),y?.(),(z=w)==null||z.disconnect(),w=null,h&&cancelAnimationFrame(T)}}const lN=N5,cN=M5,uN=O5,fN=D5,dN=k5,Kx=C5,hN=R5,mN=(e,t,r)=>{const s=new Map,o={platform:sN,...r},c={...o.platform,_c:s};return j5(e,t,{...o,platform:c})};var pN=typeof document<"u",gN=function(){},Eu=pN?S.useLayoutEffect:gN;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 O2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qx(e,t){const r=O2(e);return Math.round(t*r)/r}function om(e){const t=S.useRef(e);return Eu(()=>{t.current=e}),t}function yN(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,z]=S.useState(null),L=S.useCallback(P=>{P!==H.current&&(H.current=P,_(P))},[]),C=S.useCallback(P=>{P!==A.current&&(A.current=P,z(P))},[]),B=c||T,U=u||N,H=S.useRef(null),A=S.useRef(null),R=S.useRef(v),G=h!=null,Y=om(h),ne=om(o),te=om(m),oe=S.useCallback(()=>{if(!H.current||!A.current)return;const P={placement:t,strategy:r,middleware:x};ne.current&&(P.platform=ne.current),mN(H.current,A.current,P).then(re=>{const le={...re,isPositioned:te.current!==!1};ae.current&&!Bu(R.current,le)&&(R.current=le,Kp.flushSync(()=>{y(le)}))})},[x,t,r,ne,te]);Eu(()=>{m===!1&&R.current.isPositioned&&(R.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&&(A.current=U),B&&U){if(Y.current)return Y.current(B,U,oe);oe()}},[B,U,oe,Y,G]);const ce=S.useMemo(()=>({reference:H,floating:A,setReference:L,setFloating:C}),[L,C]),j=S.useMemo(()=>({reference:B,floating:U}),[B,U]),D=S.useMemo(()=>{const P={position:r,left:0,top:0};if(!j.floating)return P;const re=Qx(j.floating,v.x),le=Qx(j.floating,v.y);return f?{...P,transform:"translate("+re+"px, "+le+"px)",...O2(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:le}},[r,f,j.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:oe,refs:ce,elements:j,floatingStyles:D}),[v,oe,ce,j,D])}const vN=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):{}}}},bN=(e,t)=>({...lN(e),options:[e,t]}),xN=(e,t)=>({...cN(e),options:[e,t]}),wN=(e,t)=>({...hN(e),options:[e,t]}),SN=(e,t)=>({...uN(e),options:[e,t]}),EN=(e,t)=>({...fN(e),options:[e,t]}),TN=(e,t)=>({...dN(e),options:[e,t]}),_N=(e,t)=>({...vN(e),options:[e,t]});var AN="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=AN;var jN=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),[$7,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",[ON,kN]=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),[z,L]=S.useState(null),C=xs(t,fe=>L(fe)),[B,U]=S.useState(null),H=CN(B),A=H?.width??0,R=H?.height??0,G=s+(c!=="center"?"-"+c:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ne=Array.isArray(m)?m:[m],te=ne.length>0,oe={padding:Y,boundary:ne.filter(NN),altBoundary:te},{refs:ae,floatingStyles:ce,placement:j,isPositioned:D,middlewareData:P}=yN({strategy:"fixed",placement:G,whileElementsMounted:(...fe)=>oN(...fe,{animationFrame:w==="always"}),elements:{reference:N.anchor},middleware:[bN({mainAxis:o+R,alignmentAxis:u}),h&&xN({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?wN():void 0,...oe}),h&&SN({...oe}),EN({...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&&_N({element:B,padding:f}),MN({arrowWidth:A,arrowHeight:R}),x&&TN({strategy:"referenceHidden",...oe})]}),[re,le]=B2(j),O=cf(T);ml(()=>{D&&O?.()},[D,O]);const Q=P.arrow?.x,$=P.arrow?.y,F=P.arrow?.centerOffset!==0,[ie,pe]=S.useState();return ml(()=>{z&&pe(window.getComputedStyle(z).zIndex)},[z]),g.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:D?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(ON,{scope:r,placedSide:re,onArrowChange:U,arrowX:Q,arrowY:$,shouldHideArrow:F,children:g.jsx(ws.div,{"data-side":re,"data-align":le,..._,ref:C,style:{..._.style,animation:D?void 0:"none"}})})})});L2.displayName=eg;var U2="PopperArrow",zN={top:"bottom",right:"left",bottom:"top",left:"right"},V2=S.forwardRef(function(t,r){const{__scopePopper:s,...o}=t,c=kN(U2,s),u=zN[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(jN,{...o,ref:r,style:{...o.style,display:"block"}})})});V2.displayName=U2;function NN(e){return e!==null}var MN=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 RN=P2,DN=L2,PN=V2;function LN(e,t){return S.useReducer((r,s)=>t[r][s]??r,e)}var H2=e=>{const{present:t,children:r}=e,s=UN(t),o=typeof r=="function"?r({present:s.isPresent}):S.Children.only(r),c=xs(s.ref,VN(o));return typeof r=="function"||s.isPresent?S.cloneElement(o,{ref:c}):null};H2.displayName="Presence";function UN(e){const[t,r]=S.useState(),s=S.useRef(null),o=S.useRef(e),c=S.useRef("none"),u=e?"mounted":"unmounted",[f,h]=LN(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 VN(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 BN=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"}),HN="VisuallyHidden",q2=S.forwardRef((e,t)=>g.jsx(ws.span,{...e,ref:t,style:{...BN,...e.style}}));q2.displayName=HN;var qN=q2,[mf]=m2("Tooltip",[M2]),tg=M2(),I2="TooltipProvider",IN=700,Fx="tooltip.open",[$N,$2]=mf(I2),Z2=e=>{const{__scopeTooltip:t,delayDuration:r=IN,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($N,{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",[Z7,pf]=mf(G2),rp="TooltipTrigger",ZN=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(RN,{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)})})});ZN.displayName=rp;var GN="TooltipPortal",[G7,KN]=mf(GN,{forceMount:void 0}),Da="TooltipContent",QN=S.forwardRef((e,t)=>{const r=KN(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(FN,{side:o,...c,ref:t})})}),FN=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,z={x:T.clientX,y:T.clientY},L=eM(z,N.getBoundingClientRect()),C=tM(z,L),B=nM(_.getBoundingClientRect()),U=iM([...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,z={x:_.clientX,y:_.clientY},L=h?.contains(N)||v?.contains(N),C=!rM(z,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})}),[YN,XN]=mf(G2,{isInside:!1}),WN=n5("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(DN,{"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(WN,{children:s}),g.jsx(YN,{scope:r,isInside:!0,children:g.jsx(qN,{id:h.contentId,role:"tooltip",children:o||s})})]})})});QN.displayName=Da;var Q2="TooltipArrow",JN=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...s}=e,o=tg(r);return XN(Q2,r).isInside?null:g.jsx(PN,{...o,...s,ref:t})});JN.displayName=Q2;function eM(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 tM(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 nM(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 rM(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 iM(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),sM(t)}function sM(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 aM=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 oM(){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="-",lM=e=>{const t=uM(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)||cM(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=/^\[(.+)\]$/,cM=e=>{if(Yx.test(e)){const t=Yx.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},uM=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(fM(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},fM=e=>e.isThemeGetter,dM=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=":",hM=ap.length,mM=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+hM;continue}if(_==="/"){m=T;continue}}_==="["?u++:_==="]"?u--:_==="("?f++:_===")"&&f--}const v=c.length===0?o:o.substring(h),y=pM(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},pM=e=>e.endsWith(sp)?e.substring(0,e.length-1):e.startsWith(sp)?e.substring(1):e,gM=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}},yM=e=>({cache:dM(e.cacheSize),parseClassName:mM(e),sortModifiers:gM(e),...lM(e)}),vM=/\s+/,bM=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],f=e.trim().split(vM);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=!!_,z=s(N?T.substring(0,_):T);if(!z){if(!N){h=v+(h.length>0?" "+h:h);continue}if(z=s(T),!z){h=v+(h.length>0?" "+h:h);continue}N=!1}const L=c(x).join(":"),C=w?L+sp:L,B=C+z;if(u.includes(B))continue;u.push(B);const U=o(z,N);for(let H=0;H<U.length;++H){const A=U[H];u.push(C+A)}h=v+(h.length>0?" "+h:h)}return h};function xM(){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 wM(e,...t){let r,s,o,c=u;function u(h){const m=t.reduce((v,y)=>y(v),e());return r=yM(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=bM(h,r);return o(h,v),v}return function(){return c(xM.apply(null,arguments))}}const vt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},W2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SM=/^\d+\/\d+$/,EM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TM=/\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$/,_M=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,AM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pa=e=>SM.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=>EM.test(e),CM=()=>!0,OM=e=>TM.test(e)&&!_M.test(e),eE=()=>!1,kM=e=>AM.test(e),zM=e=>jM.test(e),NM=e=>!he(e)&&!me(e),MM=e=>Ba(e,rE,eE),he=e=>W2.test(e),ts=e=>Ba(e,iE,OM),cm=e=>Ba(e,UM,ke),Wx=e=>Ba(e,tE,eE),RM=e=>Ba(e,nE,zM),ou=e=>Ba(e,sE,kM),me=e=>J2.test(e),Yo=e=>Ha(e,iE),DM=e=>Ha(e,VM),Jx=e=>Ha(e,tE),PM=e=>Ha(e,rE),LM=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",UM=e=>e==="number",VM=e=>e==="family-name",sE=e=>e==="shadow",BM=()=>{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"),z=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"],A=()=>["auto","contain","none"],R=()=>[me,he,h],G=()=>[pa,"full","auto",...R()],Y=()=>[pi,"none","subgrid",me,he],ne=()=>["auto",{span:["full",pi,me,he]},pi,me,he],te=()=>[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"],j=()=>["auto",...R()],D=()=>[pa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],P=()=>[e,me,he],re=()=>[...B(),Jx,Wx,{position:[me,he]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",PM,MM,{size:[me,he]}],Q=()=>[lm,Yo,ts],$=()=>["","none","full",m,me,he],F=()=>["",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",...R()];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:[NM],"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:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[pi,"auto",me,he]}],basis:[{basis:[pa,"full","auto",f,...R()]}],"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":Y()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"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:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[f,"screen",...D()]}],"min-w":[{"min-w":[f,"screen","none",...D()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"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:[DM,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,...R()]}],"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:R()}],"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]},LM,RM]}],"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:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"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:F()}],"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":F()}],"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":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"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",z,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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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"]}},HM=wM(BM);function qM(...e){return HM(oM(e))}function IM({delayDuration:e=0,...t}){return g.jsx(aM,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function $M(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 ZM(){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 GM(){return t1||(t1=1,um.exports=ZM()),um.exports}var KM=GM();const QM=hS.useInsertionEffect,FM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YM=FM?S.useLayoutEffect:S.useEffect,XM=QM||YM,aE=e=>{const t=S.useRef([e,(...r)=>t[0](...r)]).current;return XM(()=>{t[0]=e}),t[1]},WM="popstate",rg="pushState",ig="replaceState",JM="hashchange",n1=[WM,rg,ig,JM],eR=e=>{for(const t of n1)addEventListener(t,e);return()=>{for(const t of n1)removeEventListener(t,e)}},oE=(e,t)=>KM.useSyncExternalStore(eR,e,t),tR=()=>location.search,nR=({ssrSearch:e=""}={})=>oE(tR,()=>e),r1=()=>location.pathname,rR=({ssrPath:e}={})=>oE(r1,e?()=>e:r1),iR=(e,{replace:t=!1,state:r=null}={})=>history[t?ig:rg](r,"",e),sR=(e={})=>[rR(e),iR],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 aR=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",lE=(e="")=>e==="/"?"":e,oR=(e,t)=>e[0]==="~"?e.slice(1):lE(t)+e,lR=(e="",t)=>aR(op(lE(e)),op(t)),cR=e=>e[0]==="?"?e.slice(1):e,op=e=>{try{return decodeURI(e)}catch{return e}},uR=e=>op(cR(e)),cE={hook:sR,searchHook:nR,parser:$M,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),fR=()=>S.useContext(dE),gf=e=>{const[t,r]=e.hook(e);return[lR(e.base,t),aE((s,o)=>r(oR(s,e.base),o))]},Ia=()=>gf(qa()),K7=()=>{const e=qa();return uR(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]},dR=({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,hR=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=hR({...fR(),...f});if(!u)return null;const v=h?S.createElement(dR,{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],mR=({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 pR(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 gR(e){Hr(sg,"CTA geklickt",e)}function yR(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 vR(e){Ss(`tel:${e}`,()=>{Hr(ag,"Telefon geklickt",e),Nl($a.TELEFON_KLICK,e)})}function bR(e){Ss(`mail:${e}`,()=>{Hr(ag,"E-Mail geklickt",e),Nl($a.MAIL_KLICK,e)})}function xR(e){Ss(`dl:${e}`,()=>{Hr(ag,"Download",e),Nl($a.DOWNLOAD,e)})}const pE="Karriere";function Q7(e){Ss(`job:${e}`,()=>{Hr(pE,"Stellenanzeige gesehen",e)})}function F7(e){Ss(`apply:${e}`,()=>{Hr(pE,"Bewerbung begonnen",e),Nl($a.STELLE_BEWERBUNG,e)})}const wR="Praxisportal";function SR(e,t){const r=zl();r&&(r.push(["trackLink",t,"link"]),Hr(wR,"Portal geoeffnet",e))}const o1="https://www.stusche.de/Praxisportal/Anmeldung.php";function Tu(e){try{SR(e,o1)}catch{}window.open(o1,"_blank","noopener,noreferrer")}function ER(e,t){const r=zl();r&&r.push(["trackSiteSearch",e,!1,t])}const TR=/\.(pdf|docx?|xlsx?|pptx?|zip|csv)$/i;function _R(){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:")){vR(c);return}if(o.startsWith("mailto:")){bR(c);return}if(TR.test(o.split("?")[0])){const u=o.split("?")[0].split("/").pop()??o;xR(u)}}return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})},[])}function ee(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 AR(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 jR=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 OR(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function kR(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 zR(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 NR(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 MR(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 RR(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 DR(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 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 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=ee("$ZodError",wE),EE=ee("$ZodError",wE,{Parent:Error});function LR(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 UR(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}},VR=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}},BR=bf(EE),HR=e=>(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return fg(e)(t,r,o)},qR=e=>(t,r,s)=>fg(e)(t,r,s),IR=e=>async(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return dg(e)(t,r,o)},$R=e=>async(t,r,s)=>dg(e)(t,r,s),ZR=e=>(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return vf(e)(t,r,o)},GR=e=>(t,r,s)=>vf(e)(t,r,s),KR=e=>async(t,r,s)=>{const o=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return bf(e)(t,r,o)},QR=e=>async(t,r,s)=>bf(e)(t,r,s),FR=/^[cC][^\s-]{8,}$/,YR=/^[0-9a-z]+$/,XR=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,WR=/^[0-9a-vA-V]{20}$/,JR=/^[A-Za-z0-9]{27}$/,eD=/^[a-zA-Z0-9_-]{21}$/,tD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,nD=/^([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)$/,rD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,iD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function sD(){return new RegExp(iD,"u")}const aD=/^(?:(?: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])$/,oD=/^(([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}|:))$/,lD=/^((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])$/,cD=/^(([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])$/,uD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,TE=/^[A-Za-z0-9_-]*$/,fD=/^(?=.{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])?)*\.?$/,dD=/^\+(?:[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])))",hD=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 mD(e){return new RegExp(`^${AE(e)}$`)}function pD(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 gD=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},yD=/^[^A-Z]*$/,vD=/^[^a-z]*$/,fr=ee("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),bD=ee("$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})}}),xD=ee("$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})}}),wD=ee("$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=ee("$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=()=>{})}),SD=ee("$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})}}),ED=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=yD),xf.init(e,t)}),TD=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=vD),xf.init(e,t)}),_D=ee("$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})}}),AD=ee("$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})}}),jD=ee("$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=ee("$ZodCheckOverwrite",(e,t)=>{fr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class OD{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 kD={major:4,minor:1,patch:12},bt=ee("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kD;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=VR(e,o);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return BR(e,o).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),hg=ee("$ZodString",(e,t)=>{bt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??gD(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=ee("$ZodStringFormat",(e,t)=>{xf.init(e,t),hg.init(e,t)}),zD=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=nD),Je.init(e,t)}),ND=ee("$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)}),MD=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rD),Je.init(e,t)}),RD=ee("$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:fD.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})}}}),DD=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=sD()),Je.init(e,t)}),PD=ee("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=eD),Je.init(e,t)}),LD=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=FR),Je.init(e,t)}),UD=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=YR),Je.init(e,t)}),VD=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=XR),Je.init(e,t)}),BD=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=WR),Je.init(e,t)}),HD=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=JR),Je.init(e,t)}),qD=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=pD(t)),Je.init(e,t)}),ID=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=hD),Je.init(e,t)}),$D=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=mD(t)),Je.init(e,t)}),ZD=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tD),Je.init(e,t)}),GD=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=aD),Je.init(e,t),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv4"})}),KD=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=oD),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})}}}),QD=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=lD),Je.init(e,t)}),FD=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=cD),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 YD=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=uD),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 XD(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 WD=ee("$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=>{XD(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),JD=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=dD),Je.init(e,t)});function e4(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 t4=ee("$ZodJWT",(e,t)=>{Je.init(e,t),e._zod.check=r=>{e4(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),n4=ee("$ZodUnknown",(e,t)=>{bt.init(e,t),e._zod.parse=r=>r}),r4=ee("$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 i4=ee("$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 CE(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=OR(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function OE(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 s4=ee("$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(()=>CE(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?OE(v,m,f,h,s.value,e):v.length?Promise.all(v).then(()=>f):f}}),a4=ee("$ZodObjectJIT",(e,t)=>{s4.init(e,t);const r=e._zod.parse,s=og(()=>CE(t)),o=x=>{const w=new OD(["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 z=0;for(const C of T.keys)N[C]=`key_${z++}`;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&&jR.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?OE([],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 o4=ee("$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)}}),l4=ee("$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 c4=ee("$ZodEnum",(e,t)=>{bt.init(e,t);const r=AR(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}}),u4=ee("$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 f4=ee("$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)}}),d4=ee("$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)}),h4=ee("$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 m4=ee("$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))}),p4=ee("$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 g4=ee("$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)}}),y4=ee("$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 v4=ee("$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 b4=ee("$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 x4{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 w4(){return new x4}const fu=w4();function S4(e,t){return new e({type:"string",...Se(t)})}function E4(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 T4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function _4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function A4(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function j4(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 O4(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function k4(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function z4(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function N4(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function M4(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function R4(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function D4(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function P4(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function L4(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function U4(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function V4(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function B4(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function H4(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function q4(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function I4(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}function $4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function Z4(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function G4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function K4(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function Q4(e){return new e({type:"unknown"})}function F4(e,t){return new e({type:"never",...Se(t)})}function kE(e,t){return new bD({check:"max_length",...Se(t),maximum:e})}function Iu(e,t){return new xD({check:"min_length",...Se(t),minimum:e})}function zE(e,t){return new wD({check:"length_equals",...Se(t),length:e})}function Y4(e,t){return new SD({check:"string_format",format:"regex",...Se(t),pattern:e})}function X4(e){return new ED({check:"string_format",format:"lowercase",...Se(e)})}function W4(e){return new TD({check:"string_format",format:"uppercase",...Se(e)})}function J4(e,t){return new _D({check:"string_format",format:"includes",...Se(t),includes:e})}function e3(e,t){return new AD({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function t3(e,t){return new jD({check:"string_format",format:"ends_with",...Se(t),suffix:e})}function Ml(e){return new CD({check:"overwrite",tx:e})}function n3(e){return Ml(t=>t.normalize(e))}function r3(){return Ml(e=>e.trim())}function i3(){return Ml(e=>e.toLowerCase())}function s3(){return Ml(e=>e.toUpperCase())}function a3(e,t,r){return new e({type:"array",element:t,...Se(r)})}function o3(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Se(r)})}function l3(e){const t=c3(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 c3(e,t){const r=new fr({check:"custom",...Se(t)});return r._zod.check=e,r}const u3=ee("ZodISODateTime",(e,t)=>{qD.init(e,t),nt.init(e,t)});function f3(e){return $4(u3,e)}const d3=ee("ZodISODate",(e,t)=>{ID.init(e,t),nt.init(e,t)});function h3(e){return Z4(d3,e)}const m3=ee("ZodISOTime",(e,t)=>{$D.init(e,t),nt.init(e,t)});function p3(e){return G4(m3,e)}const g3=ee("ZodISODuration",(e,t)=>{ZD.init(e,t),nt.init(e,t)});function y3(e){return K4(g3,e)}const v3=(e,t)=>{SE.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>UR(e,r)},flatten:{value:r=>LR(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=ee("ZodError",v3,{Parent:Error}),b3=fg(Mn),x3=dg(Mn),w3=vf(Mn),S3=bf(Mn),E3=HR(Mn),T3=qR(Mn),_3=IR(Mn),A3=$R(Mn),j3=ZR(Mn),C3=GR(Mn),O3=KR(Mn),k3=QR(Mn),Tt=ee("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)=>b3(e,r,s,{callee:e.parse}),e.safeParse=(r,s)=>w3(e,r,s),e.parseAsync=async(r,s)=>x3(e,r,s,{callee:e.parseAsync}),e.safeParseAsync=async(r,s)=>S3(e,r,s),e.spa=e.safeParseAsync,e.encode=(r,s)=>E3(e,r,s),e.decode=(r,s)=>T3(e,r,s),e.encodeAsync=async(r,s)=>_3(e,r,s),e.decodeAsync=async(r,s)=>A3(e,r,s),e.safeEncode=(r,s)=>j3(e,r,s),e.safeDecode=(r,s)=>C3(e,r,s),e.safeEncodeAsync=async(r,s)=>O3(e,r,s),e.safeDecodeAsync=async(r,s)=>k3(e,r,s),e.refine=(r,s)=>e.check(wP(r,s)),e.superRefine=r=>e.check(SP(r)),e.overwrite=r=>e.check(Ml(r)),e.optional=()=>S1(e),e.nullable=()=>E1(e),e.nullish=()=>S1(E1(e)),e.nonoptional=r=>mP(e,r),e.array=()=>J3(e),e.or=r=>rP([e,r]),e.and=r=>sP(e,r),e.transform=r=>T1(e,lP(r)),e.default=r=>fP(e,r),e.prefault=r=>hP(e,r),e.catch=r=>gP(e,r),e.pipe=r=>T1(e,r),e.readonly=()=>bP(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=ee("_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(Y4(...s)),e.includes=(...s)=>e.check(J4(...s)),e.startsWith=(...s)=>e.check(e3(...s)),e.endsWith=(...s)=>e.check(t3(...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(X4(s)),e.uppercase=s=>e.check(W4(s)),e.trim=()=>e.check(r3()),e.normalize=(...s)=>e.check(n3(...s)),e.toLowerCase=()=>e.check(i3()),e.toUpperCase=()=>e.check(s3())}),z3=ee("ZodString",(e,t)=>{hg.init(e,t),NE.init(e,t),e.email=r=>e.check(E4(N3,r)),e.url=r=>e.check(C4(M3,r)),e.jwt=r=>e.check(I4(Q3,r)),e.emoji=r=>e.check(O4(R3,r)),e.guid=r=>e.check(b1(x1,r)),e.uuid=r=>e.check(T4(du,r)),e.uuidv4=r=>e.check(_4(du,r)),e.uuidv6=r=>e.check(A4(du,r)),e.uuidv7=r=>e.check(j4(du,r)),e.nanoid=r=>e.check(k4(D3,r)),e.guid=r=>e.check(b1(x1,r)),e.cuid=r=>e.check(z4(P3,r)),e.cuid2=r=>e.check(N4(L3,r)),e.ulid=r=>e.check(M4(U3,r)),e.base64=r=>e.check(B4(Z3,r)),e.base64url=r=>e.check(H4(G3,r)),e.xid=r=>e.check(R4(V3,r)),e.ksuid=r=>e.check(D4(B3,r)),e.ipv4=r=>e.check(P4(H3,r)),e.ipv6=r=>e.check(L4(q3,r)),e.cidrv4=r=>e.check(U4(I3,r)),e.cidrv6=r=>e.check(V4($3,r)),e.e164=r=>e.check(q4(K3,r)),e.datetime=r=>e.check(f3(r)),e.date=r=>e.check(h3(r)),e.time=r=>e.check(p3(r)),e.duration=r=>e.check(y3(r))});function wa(e){return S4(z3,e)}const nt=ee("ZodStringFormat",(e,t)=>{Je.init(e,t),NE.init(e,t)}),N3=ee("ZodEmail",(e,t)=>{MD.init(e,t),nt.init(e,t)}),x1=ee("ZodGUID",(e,t)=>{zD.init(e,t),nt.init(e,t)}),du=ee("ZodUUID",(e,t)=>{ND.init(e,t),nt.init(e,t)}),M3=ee("ZodURL",(e,t)=>{RD.init(e,t),nt.init(e,t)}),R3=ee("ZodEmoji",(e,t)=>{DD.init(e,t),nt.init(e,t)}),D3=ee("ZodNanoID",(e,t)=>{PD.init(e,t),nt.init(e,t)}),P3=ee("ZodCUID",(e,t)=>{LD.init(e,t),nt.init(e,t)}),L3=ee("ZodCUID2",(e,t)=>{UD.init(e,t),nt.init(e,t)}),U3=ee("ZodULID",(e,t)=>{VD.init(e,t),nt.init(e,t)}),V3=ee("ZodXID",(e,t)=>{BD.init(e,t),nt.init(e,t)}),B3=ee("ZodKSUID",(e,t)=>{HD.init(e,t),nt.init(e,t)}),H3=ee("ZodIPv4",(e,t)=>{GD.init(e,t),nt.init(e,t)}),q3=ee("ZodIPv6",(e,t)=>{KD.init(e,t),nt.init(e,t)}),I3=ee("ZodCIDRv4",(e,t)=>{QD.init(e,t),nt.init(e,t)}),$3=ee("ZodCIDRv6",(e,t)=>{FD.init(e,t),nt.init(e,t)}),Z3=ee("ZodBase64",(e,t)=>{YD.init(e,t),nt.init(e,t)}),G3=ee("ZodBase64URL",(e,t)=>{WD.init(e,t),nt.init(e,t)}),K3=ee("ZodE164",(e,t)=>{JD.init(e,t),nt.init(e,t)}),Q3=ee("ZodJWT",(e,t)=>{t4.init(e,t),nt.init(e,t)}),F3=ee("ZodUnknown",(e,t)=>{n4.init(e,t),Tt.init(e,t)});function w1(){return Q4(F3)}const Y3=ee("ZodNever",(e,t)=>{r4.init(e,t),Tt.init(e,t)});function X3(e){return F4(Y3,e)}const W3=ee("ZodArray",(e,t)=>{i4.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 J3(e,t){return a3(W3,e,t)}const eP=ee("ZodObject",(e,t)=>{a4.init(e,t),Tt.init(e,t),Qe(e,"shape",()=>t.shape),e.keyof=()=>aP(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:X3()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>NR(e,r),e.safeExtend=r=>MR(e,r),e.merge=r=>RR(e,r),e.pick=r=>kR(e,r),e.omit=r=>zR(e,r),e.partial=(...r)=>DR(ME,e,r[0]),e.required=(...r)=>PR(RE,e,r[0])});function tP(e,t){const r={type:"object",shape:e??{},...Se(t)};return new eP(r)}const nP=ee("ZodUnion",(e,t)=>{o4.init(e,t),Tt.init(e,t),e.options=t.options});function rP(e,t){return new nP({type:"union",options:e,...Se(t)})}const iP=ee("ZodIntersection",(e,t)=>{l4.init(e,t),Tt.init(e,t)});function sP(e,t){return new iP({type:"intersection",left:e,right:t})}const fp=ee("ZodEnum",(e,t)=>{c4.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 aP(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 oP=ee("ZodTransform",(e,t)=>{u4.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 lP(e){return new oP({type:"transform",transform:e})}const ME=ee("ZodOptional",(e,t)=>{f4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function S1(e){return new ME({type:"optional",innerType:e})}const cP=ee("ZodNullable",(e,t)=>{d4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function E1(e){return new cP({type:"nullable",innerType:e})}const uP=ee("ZodDefault",(e,t)=>{h4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fP(e,t){return new uP({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():bE(t)}})}const dP=ee("ZodPrefault",(e,t)=>{m4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function hP(e,t){return new dP({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():bE(t)}})}const RE=ee("ZodNonOptional",(e,t)=>{p4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mP(e,t){return new RE({type:"nonoptional",innerType:e,...Se(t)})}const pP=ee("ZodCatch",(e,t)=>{g4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function gP(e,t){return new pP({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const yP=ee("ZodPipe",(e,t)=>{y4.init(e,t),Tt.init(e,t),e.in=t.in,e.out=t.out});function T1(e,t){return new yP({type:"pipe",in:e,out:t})}const vP=ee("ZodReadonly",(e,t)=>{v4.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bP(e){return new vP({type:"readonly",innerType:e})}const xP=ee("ZodCustom",(e,t)=>{b4.init(e,t),Tt.init(e,t)});function wP(e,t={}){return o3(xP,e,t)}function SP(e){return l3(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 EP=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function TP(e){return typeof e=="string"&&EP.test(e)}const Xo=wa().max(DE*4).optional().transform(e=>ya(e)),_1=wa().max(wf*4).optional().transform(e=>mg(e));tP({leadId:wa().refine(TP,"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 _P()}catch{return null}}function _P(){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 AP(){return gg()?.statistics===!0}function Rl(){return gg()?.marketing===!0}function jP(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 OP(){Sf()&&window.dispatchEvent(new CustomEvent(hp))}const yg="stusche_attr_v1";let Cn=null,mp=!1;function ji(){return typeof window<"u"&&typeof document<"u"}function kP(){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 zP(){if(ji())try{window.sessionStorage.removeItem(yg)}catch{}}function NP(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(!Cn){const t=Rl()?kP():null;t&&(Cn=t)}const e=NP(window.location.search);Cn?!A1(Cn)&&A1(e)&&(Cn={...Cn,...e},dm(Cn)):(Cn={...e,firstLandingPage:mg(window.location.pathname),referrer:UE(document.referrer),firstSeenAt:new Date().toISOString()},dm(Cn)),!mp&&(mp=!0,CP(t=>{t.marketing&&Cn&&dm(Cn),t.marketing||zP()}))}function MP(){return!mp&&ji()&&HE(),Cn}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=MP()??{};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 RP=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 DP={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 PP=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,...DP,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(PP,{ref:c,iconNode:t,className:IE(`lucide-${RP(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 LP=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 UP=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 VP=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 BP=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 HP=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 qP=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 IP=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 $P=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 ZP=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 GP=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 KP=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 QP=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 FP=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 YP=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 XP=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 WP=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 JP=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 e6=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 t6=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 n6=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 r6=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 i6=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 s6 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(r6,{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:qM("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[g.jsx(YP,{size:16}),"Reload Page"]})]})}):this.props.children}}const XE=S.createContext(null);function a6({children:e}){const[t,r]=S.useState(!1),[s,o]=S.useState(null),c=S.useCallback(f=>{gR(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 o6="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 l6(){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=o6,e.async=!0,e.onload=()=>{if(typeof window.oaiq!="function"){Hn="failed",ls=[];return}try{window.oaiq("init",{pixelId:WE()}),Hn="ready",l6()}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 c6(){ls=[],Hn==="loading"&&(Hn="failed")}function u6(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 f6(){const{isOpen:e,wizardCtx:t,closeWizard:r}=Tf(),[s,o]=S.useReducer(u6,{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(j=>j.includes("post")),[w,T]=S.useState(""),_=S.useRef(0),N=S.useRef(""),z=Si.wizard.getConfig.useQuery({configKey:t?.configKey??"general_contact"},{enabled:e&&!!t}),L=Si.wizard.submit.useMutation({onSuccess:()=>{o({type:"SUCCESS"});const j=t?.sourceLabel??"Wizard";mE($a.BERATUNG_ANFRAGE,j,N.current),eT(N.current)},onError:j=>v(j.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(),yR(t.sourceLabel,N.current),o({type:"RESET"}))},[e,t]),S.useEffect(()=>{z.data&&s.phase==="loading"&&o({type:"LOADED",startStep:0})},[z.data,s.phase,t]),S.useEffect(()=>{const j=D=>{D.key==="Escape"&&r()};return e&&document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[e,r]),!e||!t)return null;const C=z.data?.steps??[],B=C.length,U=(j,D,P)=>{u(re=>{const le=re[j]??[];if(P==="radio")return{...re,[j]:[D]};const O=le.includes(D);return{...re,[j]:O?le.filter(Q=>Q!==D):[...le,D]}})},H=()=>{if(s.phase!=="steps")return;s.currentStep+1>=B?o({type:"GO_CONTACT",answers:c}):o({type:"NEXT",answers:c,totalSteps:B})},A=()=>{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"})},R=()=>{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)})},G=B+1,Y=s.phase==="contact"?B:s.phase==="steps"?s.currentStep:0,ne=G>0?Math.round(Y/G*100):0,te=s.phase==="steps"?C[s.currentStep]:null,oe=te?c[te.id]??[]:[],ae=!te||oe.length>0,ce=s.phase==="contact"||s.phase==="steps"&&s.currentStep>0;return g.jsx("div",{ref:y,className:"wiz-overlay",onClick:j=>{j.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:`${ne}%`}})}),s.phase!=="success"&&B>0&&g.jsxs("div",{className:"wiz-steps-row",children:[Array.from({length:G}).map((j,D)=>{const P=D<Y,re=D===Y;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}):D+1}),D<G-1&&g.jsx("div",{className:`wiz-step-connector ${P?"wiz-step-connector--done":"wiz-step-connector--pending"}`})]},D)}),g.jsx("span",{className:"wiz-step-counter",children:Y<G?`${Y+1} / ${G}`:""})]}),g.jsxs("div",{className:"wiz-content","aria-live":"polite","aria-atomic":"false",children:[(s.phase==="loading"||z.isLoading)&&g.jsx("div",{className:"wiz-loading",children:g.jsx("div",{className:"wiz-spinner"})}),s.phase==="steps"&&te&&g.jsxs("div",{children:[g.jsx("h3",{className:"wiz-step-title",children:te.title}),te.subtitle&&g.jsx("p",{className:"wiz-step-subtitle",children:te.subtitle}),g.jsx("div",{children:te.options.map(j=>{const D=oe.includes(j.id);return g.jsxs("button",{onClick:()=>U(te.id,j.id,te.type),className:`wiz-option${D?" wiz-option--selected":""}`,children:[g.jsx("div",{className:`wiz-option-indicator ${te.type==="radio"?"wiz-option-indicator--radio":"wiz-option-indicator--checkbox"}${D?" wiz-option-indicator--selected":""}`,children:D&&g.jsx(_u,{size:10,color:"white",strokeWidth:3})}),g.jsx("span",{className:"wiz-option-label",children:j.label})]},j.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:j,label:D,Icon:P,placeholder:re,type:le,autoComplete:O})=>g.jsxs("div",{children:[g.jsx("label",{className:"wiz-field-label",children:D}),g.jsxs("div",{className:"wiz-input-wrap",children:[g.jsx(P,{size:14,className:"wiz-input-icon"}),g.jsx("input",{type:le,name:j,autoComplete:O,placeholder:re,value:f[j],onChange:Q=>h($=>({...$,[j]:Q.target.value})),className:"wiz-input"})]})]},j)),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:j=>h(D=>({...D,plz:j.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:j=>h(D=>({...D,ort:j.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:j=>h(D=>({...D,strasse:j.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:j=>h(D=>({...D,message:j.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:j=>T(j.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"&&!z.isLoading&&g.jsxs("div",{className:"wiz-footer",children:[ce?g.jsxs("button",{onClick:A,className:"wiz-back-btn",children:[g.jsx(HP,{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:R,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(JP,{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 d6(){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 h6(){if(typeof window>"u")return;(window._paq=window._paq||[]).push(["optUserOut"])}function C1(e,t){e?d6():h6(),t?JE():c6()}function m6(){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(AP()),f(Rl()),s(w),t(!0)},[]);S.useEffect(()=>{const w=gg();if(!w){const T=setTimeout(()=>t(!0),1200);return()=>clearTimeout(T)}C1(w.statistics,w.marketing)},[]),S.useEffect(()=>{const w=()=>h(!0);return window.addEventListener(hp,w),()=>window.removeEventListener(hp,w)},[h]);const m=(w,T)=>{jP({statistics:w,marketing:T}),C1(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(IP,{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(BP,{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(QP,{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 p6=S.createContext(void 0);function g6({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(p6.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,y6=(e,t)=>r=>t(e(r)),Dl=(...e)=>e.reduce(y6),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 Cg(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,v6=1e-7,b6=12;function x6(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)>v6&&++f<b6);return u}function Pl(e,t,r,s){if(e===t&&r===s)return nn;const o=c=>x6(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),Og=aT(oT),lT=sT(Og),cT=e=>(e*=2)<1?.5*Og(e):.5*(2-Math.pow(2,-10*(e-1))),kg=e=>1-Math.sin(Math.acos(e)),uT=aT(kg),fT=sT(kg),w6=Pl(.42,0,1,1),S6=Pl(0,0,.58,1),dT=Pl(.42,0,.58,1),E6=e=>Array.isArray(e)&&typeof e[0]!="number",hT=e=>Array.isArray(e)&&typeof e[0]=="number",T6={linear:nn,easeIn:w6,easeInOut:dT,easeOut:S6,circIn:kg,circInOut:fT,circOut:uT,backIn:Og,backInOut:lT,backOut:oT,anticipate:cT},_6=e=>typeof e=="string",O1=e=>{if(hT(e)){bl(e.length===4);const[t,r,s,o]=e;return Pl(t,r,s,o)}else if(_6(e))return T6[e];return e},hu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function A6(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 j6=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]=A6(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,j6),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,A=!1,R=!1)=>(r||N(),U.schedule(H,A,R)),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("--"),O6=pT("var(--"),Ng=e=>O6(e)?k6.test(e.split("/*")[0].trim()):!1,k6=/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 z6(e){return e==null}const N6=/^(?:#[\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"&&N6.test(r)&&r.startsWith(e)||t&&!z6(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}},M6=e=>lr(0,255,e),pm={...Ga,transform:e=>Math.round(M6(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 R6(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:R6,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"),D6=Ll("vh"),P6=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)}},L6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function U6(e){return isNaN(e)&&typeof e=="string"&&(e.match(Mg)?.length||0)+(e.match(L6)?.length||0)>0}const yT="number",vT="color",V6="var",B6="var(",z1="${}",H6=/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(H6,h=>(gt.test(h)?(s.color.push(c),o.push(vT),r.push(gt.parse(h))):h.startsWith(B6)?(s.var.push(c),o.push(V6),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 q6=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e;function I6(e){const t=bT(e);return xT(e)(t.map(q6))}const Ci={test:U6,parse:bT,createTransformer:xT,getAnimatableNone:I6};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 $6({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)},Z6=[gp,as,Sa],G6=e=>Z6.find(t=>t.test(e));function N1(e){const t=G6(e);if(!t)return!1;let r=t.parse(e);return t===Sa&&(r=$6(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 K6(e,t){return yp.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Q6(e,t){return r=>tt(e,t,r)}function Dg(e){return typeof e=="number"?Q6:typeof e=="string"?Ng(e)?Fu:gt.test(e)?M1:X6:Array.isArray(e)?wT:typeof e=="object"?gt.test(e)?M1:F6: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 F6(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 Y6(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 X6=(e,t)=>{const r=Ci.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?K6(e,t):Dl(wT(Y6(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 W6=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 J6(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 eL=5;function TT(e,t,r){const s=Math.max(t-eL,0);return Cg(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 tL({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=rL(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 nL=12;function rL(e,t,r){let s=r;for(let o=1;o<nL;o++)s=s-e(s)/t(s);return s}function vp(e,t){return e*Math.sqrt(1-t*t)}const iL=["duration","bounce"],sL=["stiffness","damping","mass"];function R1(e,t){return t.some(r=>e[r]!==void 0)}function aL(e){let t={velocity:st.velocity,stiffness:st.stiffness,damping:st.damping,mass:st.mass,isResolvedFromDuration:!1,...e};if(!R1(e,sL)&&R1(e,iL))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=tL(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}=aL({...r,velocity:-Nn(r.velocity||0)}),T=x||0,_=m/(2*Math.sqrt(h*v)),N=u-c,z=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(z,_);C=H=>{const A=Math.exp(-_*z*H);return u-A*((T+_*z*N)/U*Math.sin(U*H)+N*Math.cos(U*H))}}else if(_===1)C=U=>u-Math.exp(-z*U)*(N+(T+z*N)*U);else{const U=z*Math.sqrt(_*_-1);C=H=>{const A=Math.exp(-_*z*H),R=Math.min(U*H,300);return u-A*((T+_*z*N)*Math.sinh(R)+U*N*Math.cosh(R))/U}}const B={calculatedDuration:w&&y||null,next:U=>{const H=C(U);if(w)f.done=U>=y;else{let A=U===0?T:0;_<1&&(A=U===0?sr(T):TT(C,U,H));const R=Math.abs(A)<=s,G=Math.abs(u-H)<=o;f.done=R&&G}return f.value=f.done?u:H,f},toString:()=>{const U=Math.min(Pg(B),Yu),H=ET(A=>B.next(U*A).value,U,30);return U+"ms "+H},toTransition:()=>{}};return B}Xu.applyToOptions=e=>{const t=J6(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=R=>f!==void 0&&R<f||h!==void 0&&R>h,T=R=>f===void 0?h:h===void 0||Math.abs(f-R)<Math.abs(h-R)?f:h;let _=r*t;const N=y+_,z=u===void 0?N:u(N);z!==N&&(_=z-y);const L=R=>-_*Math.exp(-R/s),C=R=>z+L(R),B=R=>{const G=L(R),Y=C(R);x.done=Math.abs(G)<=m,x.value=x.done?z:Y};let U,H;const A=R=>{w(x.value)&&(U=R,H=Xu({keyframes:[x.value,T(x.value)],velocity:TT(C,R,x.value),damping:o,stiffness:c,restDelta:m,restSpeed:v}))};return A(0),{calculatedDuration:null,next:R=>{let G=!1;return!H&&U===void 0&&(G=!0,B(R),A(R)),U!==void 0&&R>=U?H.next(R-U):(!G&&B(R),x)}}}function oL(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=oL(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 lL(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 lL(t,e.length-1),t}function cL(e,t){return e.map(r=>r*t)}function uL(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=E6(s)?s.map(O1):O1(s),c={done:!1,value:t[0]},u=cL(r&&r.length===t.length?r:_T(t),e),f=Lg(u,t,{ease:Array.isArray(o)?o:uL(t,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const fL=e=>e!==null;function Ug(e,{repeat:t,repeatType:r="loop"},s,o=1){const c=e.filter(fL),f=o<0||t&&r!=="loop"&&t%2===1?0:c.length-1;return!f||s===void 0?c[f]:s}const dL={decay:bp,inertia:bp,tween:il,keyframes:il,spring:Xu};function AT(e){typeof e.type=="string"&&(e.type=dL[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 hL=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(hL,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 z=this.currentTime-m*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?z<0:z>o;this.currentTime=Math.max(z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,B=s;if(y){const R=Math.min(this.currentTime,o)/f;let G=Math.floor(R),Y=R%1;!Y&&R>=1&&(Y=1),Y===1&&G--,G=Math.min(G,y+1),!!(G%2)&&(x==="reverse"?(Y=1-Y,w&&(Y-=w/f)):x==="mirror"&&(B=u)),C=lr(0,1,Y)*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 A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&H);return A&&T!==bp&&(U.value=Ug(v,this.options,N,this.speed)),_&&_(U.value),A&&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=W6,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 mL(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)},pL={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]),gL={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=gL,o=r;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=pL,o=f}if(!o)return Sp(t);const c=s[t],u=o[1].split(",").map(vL);return typeof c=="function"?c(u):u[c]}const yL=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Ep(r,t)};function vL(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,bL=new Set(["x","y","z"]),xL=Ka.filter(e=>!bL.has(e));function wL(e){const t=[];return xL.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=wL(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 CT(){us.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_p=!0)})}function SL(){Ap=!0,CT(),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(CT),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])}mL(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 EL=e=>e.startsWith("--");function TL(e,t,r){EL(t)?e.style.setProperty(t,r):e.style[t]=r}const OT=Ag(()=>window.ScrollTimeline!==void 0),_L={};function AL(e,t){const r=Ag(e);return()=>_L[t]??r()}const kT=AL(()=>{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 jL(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 OL 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=jL(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):TL(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&&OT()?(this.animation.timeline=t,nn):r(this)}}const MT={anticipate:cT,backInOut:lT,circInOut:fT};function kL(e){return e in MT}function zL(e){typeof e.ease=="string"&&kL(e.ease)&&(e.ease=MT[e.ease])}const B1=10;class NL extends OL{constructor(t){zL(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"&&(Ci.test(e)||e==="0")&&!e.startsWith("url("));function ML(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 RL(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:ML(e)||(r==="spring"||NT(r))&&s}function jp(e){e.duration=0,e.type="keyframes"}const DL=new Set(["opacity","clipPath","filter","transform"]),PL=Ag(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function LL(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 PL()&&r&&DL.has(r)&&(r!=="transform"||!m)&&!h&&!s&&o!=="mirror"&&c!==0&&u!=="inertia"}const UL=40;class VL 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(),RL(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>UL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:t},w=!m&&LL(x)?new NL({...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(),SL()),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 BL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function HL(e){const t=BL.exec(e);if(!t)return[,];const[,r,s,o]=t;return[`--${r??s}`,o]}function RT(e,t,r=1){const[s,o]=HL(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]),qL={test:e=>e==="auto",parse:e=>e},PT=e=>t=>t.test(e),LT=[Ga,be,ar,vi,P6,D6,qL],q1=e=>LT.find(PT(e));function IL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rT(e):!0}const $L=new Set(["brightness","contrast","saturate","opacity"]);function ZL(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=$L.has(t)?1:0;return s!==r&&(c*=100),t+"("+c+o+")"}const GL=/\b([a-z-]*)\(.*?\)/gu,Cp={...Ci,getAnimatableNone:e=>{const t=e.match(GL);return t?t.map(ZL).join(" "):e}},I1={...Ga,transform:Math.round},KL={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,...KL,zIndex:I1,fillOpacity:xl,strokeOpacity:xl,numOctaves:I1},QL={...Ig,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Cp,WebkitFilter:Cp},UT=e=>QL[e];function VT(e,t){let r=UT(e);return r!==Cp&&(r=Ci),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const FL=new Set(["auto","none","0"]);function YL(e,t,r){let s=0,o;for(;s<e.length&&!o;){const c=e[s];typeof c=="string"&&!FL.has(c)&&wl(c).values.length&&(o=e[s]),s++}if(o&&r)for(const c of t)e[c]=VT(r,o)}class XL 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||IL(t[o]))&&s.push(o);s.length&&YL(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,WL=e=>!isNaN(parseFloat(e)),sl={current:void 0};class JL{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=WL(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 Cg(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 JL(e,t)}const{schedule:Zg}=mT(queueMicrotask,!1),Bn={x:!1,y:!1};function qT(){return Bn.x||Bn.y}function e8(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 t8(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,n8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r8(e){return n8.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 i8=(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 s8(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=>i8(m,o)),!r8(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function Kg(e){return nT(e)&&"ownerSVGElement"in e}const Cu=new WeakMap;let Ou;const ZT=(e,t,r)=>(s,o)=>o&&o[0]?o[0][e+"Size"]:Kg(s)&&"getBBox"in s?s.getBBox()[t]:s[r],a8=ZT("inline","width","offsetWidth"),o8=ZT("block","height","offsetHeight");function l8({target:e,borderBoxSize:t}){Cu.get(e)?.forEach(r=>{r(e,{get width(){return a8(e,t)},get height(){return o8(e,t)}})})}function c8(e){e.forEach(l8)}function u8(){typeof ResizeObserver>"u"||(Ou=new ResizeObserver(c8))}function f8(e,t){Ou||u8();const r=BT(e);return r.forEach(s=>{let o=Cu.get(s);o||(o=new Set,Cu.set(s,o)),o.add(t),Ou?.observe(s)}),()=>{r.forEach(s=>{const o=Cu.get(s);o?.delete(t),o?.size||Ou?.unobserve(s)})}}const ku=new Set;let Ea;function d8(){Ea=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ku.forEach(t=>t(e))},window.addEventListener("resize",Ea)}function h8(e){return ku.add(e),Ea||d8(),()=>{ku.delete(e),!ku.size&&typeof Ea=="function"&&(window.removeEventListener("resize",Ea),Ea=void 0)}}function m8(e,t){return typeof e=="function"?h8(e):f8(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 p8(e){return Kg(e)&&e.tagName==="svg"}function g8(...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),y8=[...LT,gt,Ci],v8=e=>y8.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 b8(...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 x8(...e){return S.useCallback(b8(...e),e)}class w8 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 S8({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=x8(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(w8,{isPresent:t,childRef:c,sizeRef:u,children:S.cloneElement(e,{ref:h})})}const E8=({children:e,initial:t,isPresent:r,onExitComplete:s,custom:o,presenceAffectsLayout:c,mode:u,anchorX:f,root:h})=>{const m=Za(T8),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(S8,{isPresent:r,anchorX:f,root:h,children:e})),g.jsx(Af.Provider,{value:x,children:e})};function T8(){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,z]=S.useState(y),[L,C]=S.useState(y);_f(()=>{w.current=!1,T.current=y;for(let H=0;H<L.length;H++){const A=pu(L[H]);x.includes(A)?_.delete(A):_.get(A)!==!0&&_.set(A,!1)}},[L,x.length,x.join("-")]);const B=[];if(y!==N){let H=[...y];for(let A=0;A<L.length;A++){const R=L[A],G=pu(R);x.includes(G)||(H.splice(A,0,R),B.push(R))}return c==="wait"&&B.length&&(H=B),C(F1(H)),z(y),null}const{forceRender:U}=S.useContext(Sg);return g.jsx(g.Fragment,{children:L.map(H=>{const A=pu(H),R=u&&!m?!1:y===L||x.includes(A),G=()=>{if(_.has(A))_.set(A,!0);else return;let Y=!0;_.forEach(ne=>{ne||(Y=!1)}),Y&&(U?.(),C(T.current),u&&v?.(),s&&s())};return g.jsx(E8,{isPresent:R,initial:!w.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:c,root:h,onExitComplete:R?void 0:G,anchorX:f,children:H},A)})})},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 _8(e){for(const t in e)La[t]={...La[t],...e[t]}}const A8=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")||A8.has(e)}let FT=e=>!Wu(e);function j8(e){typeof e=="function"&&(FT=t=>t.startsWith("on")?!Wu(t):e(t))}try{j8(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 Cf=S.createContext({});function Of(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 Of(e.animate)||Fg.some(t=>Sl(e[t]))}function YT(e){return!!(kf(e)||e.variants)}function O8(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 k8(e){const{initial:t,animate:r}=O8(e,S.useContext(Cf));return S.useMemo(()=>({initial:t,animate:r}),[X1(t),X1(r)])}function X1(e){return Array.isArray(e)?e.join(" "):e}const El={};function z8(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 N8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},M8=Ka.length;function R8(e,t,r){let s="",o=!0;for(let c=0;c<M8;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=N8[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=R8(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 D8({transformTemplate:e},t){return S.useMemo(()=>{const r=Xg();return Yg(r,t,e),Object.assign({},r.vars,r.style)},[t])}function P8(e,t){const r=e.style||{},s={};return WT(s,r,e),Object.assign(s,D8(e,t)),s}function L8(e,t){const r={},s=P8(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 U8={offset:"stroke-dashoffset",array:"stroke-dasharray"},V8={offset:"strokeDashoffset",array:"strokeDasharray"};function B8(e,t,r=1,s=0,o=!0){e.pathLength=1;const c=o?U8:V8;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&&B8(y,o,c,u,!1)}const e_=()=>({...Xg(),attrs:{}}),t_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function H8(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 q8=["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:!!(q8.indexOf(e)>-1||/[A-Z]/u.test(e))}function I8(e,t,r,{latestValues:s},o,c=!1){const f=(Wg(e)?H8:L8)(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 $8({scrapeMotionValuesFromProps:e,createRenderState:t},r,s,o){return{latestValues:Z8(r,s,o,e),renderState:t()}}function Z8(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"&&!Of(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,...z}=T;for(const L in z){let C=z[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(Cf),o=S.useContext(Af),c=()=>$8(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 G8=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 K8=n_({scrapeMotionValuesFromProps:r_,createRenderState:e_}),Q8=Symbol.for("motionComponentSymbol");function Ta(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function F8(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(),Y8="framerAppearId",i_="data-"+ty(Y8),s_=S.createContext({});function X8(e,t,r,s,o){const{visualElement:c}=S.useContext(Cf),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")&&W8(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 W8(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&&_8(r);const o=Wg(e)?K8:G8;function c(f,h){let m;const v={...S.useContext(jf),...f,layoutId:J8(f)},{isStatic:y}=v,x=k8(f),w=o(f,y);if(!y&&Eg){eU();const T=tU(v);m=T.MeasureLayout,x.visualElement=X8(e,w,v,s,T.ProjectionNode)}return g.jsxs(Cf.Provider,{value:x,children:[m&&x.visualElement?g.jsx(m,{visualElement:x.visualElement,...v}):null,I8(e,f,F8(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[Q8]=e,u}function J8({layoutId:e}){const t=S.useContext(Sg).id;return t&&e!==void 0?t+"-"+e:e}function eU(e,t){S.useContext(QT).strict}function tU(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 nU(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 rU({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function iU(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 Op({scale:e,scaleX:t,scaleY:r}){return!wm(e)||!wm(t)||!wm(r)}function rs(e){return Op(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 sU(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_(iU(e.getBoundingClientRect(),t))}function aU(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 oU(){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 lU=new WeakMap;function cU(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 uU{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,lU.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||oU(),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=cU(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):!v8(s)&&Ci.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 uU{constructor(){super(...arguments),this.KeyframeResolver=XL}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 fU(e){return window.getComputedStyle(e)}class dU extends d_{constructor(){super(...arguments),this.type="html",this.renderInstance=h_}readValueFromInstance(t,r){if(Qa.has(r))return this.projection?.isProjecting?Sp(r):yL(t,r);{const s=fU(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 hU(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 mU 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){hU(t,r,s,o)}mount(t){this.isSVGTag=t_(t.tagName),super.mount(t)}}const pU=(e,t)=>Wg(e)?new mU(t):new dU(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 gU(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,In(r))}function yU(e){return Np(e)?e[e.length-1]||0:e}function vU(e,t){const r=Na(e,t);let{transitionEnd:s={},transition:o={},...c}=r||{};c={...c,...s};for(const u in c){const f=yU(c[u]);gU(e,u,f)}}function bU(e){return!!(Pt(e)&&e.add)}function Mp(e,t){const r=e.getValue("willChange");if(bU(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 xU=e=>e!==null;function wU(e,{repeat:t,repeatType:r="loop"},s){const o=e.filter(xU),c=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[c]}const SU={type:"spring",stiffness:500,damping:25,restSpeed:10},EU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TU={type:"keyframes",duration:.8},_U={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AU=(e,{keyframes:t})=>t.length>2?TU:Qa.has(e)?e.startsWith("scale")?EU(t[1]):SU:_U;function jU({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};jU(f)||Object.assign(v,AU(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=wU(v.keyframes,f);if(x!==void 0){Ie.update(()=>{v.onUpdate(x),v.onComplete()});return}}return f.isSync?new Bg(v):new VL(v)};function CU({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&&CU(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 z=p_(e);if(z){const L=window.MotionHandoffAnimation(z,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&&vU(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 OU(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 OU(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 kU(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 zU=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<zU;r++){const s=Fg[r],o=e.props[s];(Sl(o)||o===!1)&&(t[s]=o)}return t}const NU=[...Qg].reverse(),MU=Qg.length;function RU(e){return t=>Promise.all(t.map(({animation:r,options:s})=>kU(e,r,s)))}function DU(e){let t=RU(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<MU;N++){const z=NU[N],L=r[z],C=m[z]!==void 0?m[z]:v[z],B=Sl(C),U=z===h?L.isActive:null;U===!1&&(T=N);let H=C===v[z]&&C!==m[z]&&B;if(H&&s&&e.manuallyAnimateOnMount&&(H=!1),L.protectedKeys={...w},!L.isActive&&U===null||!C&&!L.prevProp||Of(C)||typeof C=="boolean")continue;const A=PU(L.prevProp,C);let R=A||z===h&&L.isActive&&!H&&B||N>T&&B,G=!1;const Y=Array.isArray(C)?C:[C];let ne=Y.reduce(o(z),{});U===!1&&(ne={});const{prevResolvedValues:te={}}=L,oe={...te,...ne},ae=D=>{R=!0,x.has(D)&&(G=!0,x.delete(D)),L.needsAnimating[D]=!0;const P=e.getValue(D);P&&(P.liveStyle=!1)};for(const D in oe){const P=ne[D],re=te[D];if(w.hasOwnProperty(D))continue;let le=!1;Np(P)&&Np(re)?le=!v_(P,re):le=P!==re,le?P!=null?ae(D):x.add(D):P!==void 0&&x.has(D)?ae(D):L.protectedKeys[D]=!0}L.prevProp=C,L.prevResolvedValues=ne,L.isActive&&(w={...w,...ne}),s&&e.blockInitialAnimation&&(R=!1);const ce=H&&A;R&&(!ce||G)&&y.push(...Y.map(D=>{const P={type:z};if(typeof D=="string"&&s&&!ce&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,le=Na(re,D);if(re.enteringChildren&&le){const{delayChildren:O}=le.transition||{};P.delay=y_(re.enteringChildren,e,O)}}return{animation:D,options:P}}))}if(x.size){const N={};if(typeof m.initial!="boolean"){const z=Na(e,Array.isArray(m.initial)?m.initial[0]:m.initial);z&&z.transition&&(N.transition=z.transition)}x.forEach(z=>{const L=e.getBaseTarget(z),C=e.getValue(z);C&&(C.liveStyle=!0),N[z]=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 PU(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 LU extends zi{constructor(t){super(t),t.animationState||(t.animationState=DU(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Of(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 UU=0;class VU extends zi{constructor(){super(...arguments),this.id=UU++}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 BU={animation:{Feature:LU},exit:{Feature:VU}};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 HU=e=>t=>Gg(t)&&e(t,Ul(t));function al(e,t,r,s){return Tl(e,t,HU(r),s)}const x_=1e-4,qU=1-x_,IU=1+x_,w_=.01,$U=0-w_,ZU=0+w_;function It(e){return e.max-e.min}function GU(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>=qU&&e.scale<=IU||isNaN(e.scale))&&(e.scale=1),(e.translate>=$U&&e.translate<=ZU||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 KU(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 On(e){return[e("x"),e("y")]}const S_=({current:e})=>e?e.ownerDocument.defaultView:null,fw=(e,t)=>Math.abs(e-t);function QU(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=QU(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:z,onMove:L}=this.handlers;w||(z&&z(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 z=Em(x.type==="pointercancel"?this.lastMoveEventInfo:Sm(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(x,z),_&&_(x,z)},!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,FU(t)),velocity:YU(t,.1)}}function FU(e){return e[0]}function T_(e){return e[e.length-1]}function YU(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 XU(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 WU(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 JU(e,t){return{x:mw(e.x,t.x),y:mw(e.y,t.y)}}function e9(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 t9(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 n9(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 r9=new WeakMap;class i9{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=e8(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),On(z=>{let L=this.getAxisMotionValue(z).get()||0;if(ar.test(L)){const{projection:C}=this.visualElement;if(C&&C.layout){const B=C.layout.layoutBox[z];B&&(L=It(B)*(parseFloat(L)/100))}}this.originPoint[z]=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:z}=x;if(T&&this.currentDirection===null){this.currentDirection=s9(z),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",x.point,z),this.updateAxis("y",x.point,z),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=()=>On(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=XU(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=WU(s.layoutBox,t):this.constraints=!1,this.elastic=n9(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&On(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=t9(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=aU(s,o.root,this.visualElement.getTransformPagePoint());let u=JU(o.layout.layoutBox,c);if(r){const f=r(rU(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=On(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(){On(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){On(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){On(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};On(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();o[u]=e9({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(),On(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;r9.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&&(On(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 s9(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class a9 extends zi{constructor(t){super(t),this.removeGroupControls=nn,this.removeListeners=nn,this.controls=new i9(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 o9 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}%`}},l9={correct:(e,{treeScale:t,projectionDelta:r})=>{const s=e,o=Ci.parse(e);if(o.length>5)return s;const c=Ci.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 c9 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=t;z8(u9),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(c9,{...e,layoutGroup:s,switchLayoutGroup:S.useContext(s_),isPresent:t,safeToRemove:r})}const u9={borderRadius:{...Wo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wo,borderTopRightRadius:Wo,borderBottomLeftRadius:Wo,borderBottomRightRadius:Wo,boxShadow:l9};function f9(e,t,r){const s=Pt(e)?e:In(e);return s.start(ny("",s,t,r)),s.animation}const d9=(e,t)=>e.depth-t.depth;class h9{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(d9),this.isDirty=!1,this.children.forEach(t)}}function m9(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"],p9=A_.length,bw=e=>typeof e=="string"?parseFloat(e):e,xw=e=>typeof e=="number"||be.test(e);function g9(e,t,r,s,o,c){o?(e.opacity=tt(0,r.opacity??1,y9(s)),e.opacityExit=tt(t.opacity??1,0,v9(s))):c&&(e.opacity=tt(t.opacity??1,r.opacity??1,s));for(let u=0;u<p9;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 y9=j_(0,.5,uT),v9=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 b9(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){b9(e,t[r],t[s],t[o],t.scale,c,u)}const x9=["x","scaleX","originX"],w9=["y","scaleY","originY"];function Aw(e,t,r,s){_w(e.x,t,x9,r?r.x:void 0,s?s.x:void 0),_w(e.y,t,w9,r?r.y:void 0,s?s.y:void 0)}function jw(e){return e.translate===0&&e.scale===1}function C_(e){return jw(e.x)&&jw(e.y)}function Cw(e,t){return e.min===t.min&&e.max===t.max}function S9(e,t){return Cw(e.x,t.x)&&Cw(e.y,t.y)}function Ow(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function O_(e,t){return Ow(e.x,t.x)&&Ow(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 E9{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 T9(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"],_9=1e3;let A9=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=A9++,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(O9),this.nodes.forEach(M9),this.nodes.forEach(R9),this.nodes.forEach(k9)},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 h9)}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)&&!p8(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=m9(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()||V9,{onLayoutAnimationStart:_,onLayoutAnimationComplete:N}=m.getProps(),z=!this.targetLayout||!O_(this.targetLayout,w),L=!y&&x;if(this.options.layoutRoot||this.resumeFrom||L||y&&(z||!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(D9),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(N9),this.nodes.forEach(j9),this.nodes.forEach(C9)):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(z9),this.sharedNodes.forEach(P9)}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&&!C_(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)),B9(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(H9))){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;Op(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(),KU(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||Op(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;sU(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(),z=!N||N.members.length<=1,L=!!(_&&!z&&this.options.crossfade===!0&&!this.path.some(U9));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),L9(this.relativeTarget,this.relativeTargetOrigin,x,U),C&&S9(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ct()),jn(C,this.relativeTarget)),_&&(this.animationValues=v,g9(v,m,this.latestValues,U,L,z)),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=f9(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(_9),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 E9),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=T9(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:z}=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 z?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 j9(e){e.updateLayout()}function C9(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"?On(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)&&On(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=!C_(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),O_(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 O9(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 k9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function z9(e){e.clearSnapshot()}function Nw(e){e.clearMeasurements()}function Mw(e){e.isLayoutDirty=!1}function N9(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 M9(e){e.resolveTargetDelta()}function R9(e){e.calcProjection()}function D9(e){e.resetSkewAndRotation()}function P9(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 L9(e,t,r,s){Pw(e.x,t.x,r.x,s),Pw(e.y,t.y,r.y,s)}function U9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V9={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 B9(e){Vw(e.x),Vw(e.y)}function N_(e,t,r){return e==="position"||e==="preserve-aspect"&&!GU(kw(t),kw(r),.2)}function H9(e){return e!==e.root&&e.scroll?.wasRoot}const q9=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 q9({});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"}),I9={pan:{Feature:o9},drag:{Feature:a9,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 $9 extends zi{mount(){const{current:t}=this.node;t&&(this.unmount=t8(t,(r,s)=>(Bw(this.node,s,"Start"),o=>Bw(this.node,o,"End"))))}unmount(){}}class Z9 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 G9 extends zi{mount(){const{current:t}=this.node;t&&(this.unmount=s8(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,Cm=new WeakMap,K9=e=>{const t=Pp.get(e.target);t&&t(e)},Q9=e=>{e.forEach(K9)};function F9({root:e,...t}){const r=e||document;Cm.has(r)||Cm.set(r,{});const s=Cm.get(r),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(Q9,{root:e,...t})),s[o]}function Y9(e,t,r){const s=F9(t);return Pp.set(e,r),s.observe(e),()=>{Pp.delete(e),s.unobserve(e)}}const X9={some:0,all:1};class W9 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:X9[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 Y9(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(J9(t,r))&&this.startObserver()}unmount(){}}function J9({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const eV={inView:{Feature:W9},tap:{Feature:G9},focus:{Feature:Z9},hover:{Feature:$9}},tV={layout:{ProjectionNode:M_,MeasureLayout:__}},nV={...BU,...eV,...I9,...tV},_e=nU(nV,pU),rV=50,qw=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),iV=()=>({time:0,x:qw(),y:qw()}),sV={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Iw(e,t,r,s){const o=r[t],{length:c,position:u}=sV[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>rV?0:Cg(o.current-f,m)}function aV(e,t,r){Iw(e,"x",t,r),Iw(e,"y",t,r),t.time=r}function oV(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 lV=[0,0];function cV(e,t,r,s){let o=Array.isArray(e)?e:lV,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 uV={All:[[0,0],[1,1]]},fV={x:0,y:0};function dV(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function hV(e,t,r){const{offset:s=uV.All}=r,{target:o=e,axis:c="y"}=r,u=c==="y"?"height":"width",f=o!==e?oV(o,e):fV,h=o===e?{width:e.scrollWidth,height:e.scrollHeight}:dV(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=cV(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 mV(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 pV(e,t,r,s={}){return{measure:o=>{mV(e,s.target,r),aV(e,r,o),(s.offset||s.target)&&hV(e,r,s)},notify:()=>t(r)}}const Jo=new WeakMap,Zw=new WeakMap,Om=new WeakMap,Gw=e=>e===document.scrollingElement?window:e;function R_(e,{container:t=document.scrollingElement,...r}={}){if(!t)return nn;let s=Om.get(t);s||(s=new Set,Om.set(t,s));const o=iV(),c=pV(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,m8(t,m)),v.addEventListener("scroll",m,{passive:!0}),m()}const u=Jo.get(t);return Ie.read(u,!1,!0),()=>{Gn(u);const f=Om.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 gV(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&&OT()?new ScrollTimeline({source:t,axis:s}):gV({container:t,...r})),u[f]}function yV(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 vV(e){return e.length===2}function bV(e,t){return vV(e)?R_(r=>{e(r[t.axis].progress,r)},t):GT(e,D_(t))}function xV(e,{axis:t="y",container:r=document.scrollingElement,...s}={}){if(!r)return nn;const o={axis:t,container:r,...s};return typeof e=="function"?bV(e,o):yV(e,o)}const wV=()=>({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(wV),o=S.useRef(null),c=S.useRef(!1),u=S.useCallback(()=>(o.current=xV((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 SV(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=SV(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 EV(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 EV(e);const o=typeof t=="function"?t:g8(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 TV(e,t){const[r,s]=S.useState(e);return S.useEffect(()=>{const o=setTimeout(()=>s(e),t);return()=>clearTimeout(o)},[e,t]),r}const _V={produkt:"Produkte",leistung:"Leistungen",themenwelt:"Themenwelten",seite:"Seiten",karriere:"Karriere"};function AV({isOpen:e,onClose:t}){const[r,s]=S.useState(""),[o,c]=S.useState(-1),u=S.useRef(null),[,f]=Ia(),{openWizard:h}=Tf(),m=TV(r,220),{data:v,isFetching:y}=Si.search.query.useQuery({q:m},{enabled:m.length>=2}),x=v?.results??[],w=m.length>=2,T=x.reduce((G,Y)=>(G[Y.category]||(G[Y.category]=[]),G[Y.category].push(Y),G),{}),_=Object.keys(T),N=_.flatMap(G=>T[G]),z=Si.search.log.useMutation(),L=Si.search.logClick.useMutation(),C=S.useRef(null),B=S.useRef(null);S.useEffect(()=>{!w||y||B.current!==m&&(B.current=m,C.current=null,ER(m,x.length),z.mutate({q:m,resultCount:x.length},{onSuccess:G=>{C.current=G.logId??null},onError:()=>{C.current=null}}))},[m,y,x.length]),S.useEffect(()=>{e&&(setTimeout(()=>u.current?.focus(),100),s(""),c(-1))},[e]),S.useEffect(()=>{c(-1)},[m]),S.useEffect(()=>{const G=Y=>{Y.key==="Escape"&&t()};return e&&document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[e,t]),S.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]);const U=S.useCallback(G=>{G.key==="ArrowDown"?(G.preventDefault(),c(Y=>Math.min(Y+1,x.length-1))):G.key==="ArrowUp"?(G.preventDefault(),c(Y=>Math.max(Y-1,-1))):G.key==="Enter"&&(G.preventDefault(),o>=0&&x[o]&&H(x[o].url))},[x,o]),H=G=>{const Y=N.findIndex(ne=>ne.url===G);C.current!==null&&Y>=0&&L.mutate({logId:C.current,url:G,position:Y+1}),t(),s(""),f(G)},A=w,R=A&&!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.jsx("input",{ref:u,type:"text",value:r,onChange:G=>s(G.target.value),onKeyDown:U,placeholder:"Produkte, Leistungen, Themen …",autoComplete:"off",spellCheck:!1,"aria-label":"Suche",className:"flex-1 bg-transparent border-none outline-none text-white placeholder-white/30 text-sm"}),r&&g.jsx("button",{onClick:()=>s(""),"aria-label":"Suche löschen",className:"p-1 transition-colors hover:bg-white/8",style:{color:"rgba(255,255,255,0.4)"},children:g.jsx(gs,{size:14})}),g.jsx("button",{onClick:t,"aria-label":"Suche schließen",className:"ml-1 p-1.5 transition-colors hover:bg-white/8",style:{color:"rgba(255,255,255,0.45)"},children:g.jsx(gs,{size:16})})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto",style:{overscrollBehavior:"contain"},children:[y&&g.jsxs("div",{className:"px-5 py-6 flex items-center gap-3",style:{color:"rgba(255,255,255,0.3)"},children:[g.jsx("div",{className:"w-3.5 h-3.5 border-2 animate-spin",style:{borderColor:"rgba(255,255,255,0.12)",borderTopColor:"rgba(255,255,255,0.5)"}}),g.jsx("span",{className:"text-xs",children:"Suche läuft …"})]}),R&&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,'"']}),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})]})]}),!A&&!y&&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(G=>g.jsxs("button",{onClick:()=>H(G.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:G.label})]},G.url))})]}),!y&&_.length>0&&g.jsx("div",{className:"px-5 py-5 flex flex-col gap-4",children:_.map(G=>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:_V[G]})}),g.jsx("div",{children:T[G].map((Y,ne)=>{const te=x.indexOf(Y),oe=te===o,ae=ne===T[G].length-1;return g.jsxs("button",{role:"option","aria-selected":oe,onMouseEnter:()=>c(te),onMouseDown:ce=>{ce.preventDefault(),H(Y.url)},className:"w-full flex items-center justify-between px-4 py-2.5 text-left transition-colors group",style:{background:oe?"rgba(255,255,255,0.06)":"transparent",borderBottom:ae?"none":"1px solid rgba(255,255,255,0.05)"},children:[g.jsx("span",{className:"text-sm leading-snug",style:{color:oe?"#5b9bd5":"rgba(255,255,255,0.72)",fontWeight:400},children:Y.title}),g.jsx(hn,{size:12,className:"flex-shrink-0 ml-3 transition-opacity",style:{color:oe?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.15)"},"aria-hidden":"true"})]},Y.id)})})]},G))})]}),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 jV="/images/megamenu-leistungen-behandlungszimmer_9c41e7b2.webp",CV="/images/nav-themenwelten_6d18f3a9.webp",OV="/images/stusche-gebaeude-menu_portrait.webp",Yw=[{href:"/leistungen/praxisbedarf",label:"Lieferung von Praxisbedarf",desc:"Verbrauchsmaterial, Handschuhe, Desinfektion",icon:i6},{href:"/leistungen/sprechstundenbedarf",label:"Sprechstundenbedarf",desc:"SSB-Abrechnung direkt über die Kasse",icon:e6},{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:GP},{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:$P},{href:"/themenwelten/chirurgie",label:"Chirurgie",desc:"OP-Bedarf, Instrumente, Sterilisation",icon:WP},{href:"/themenwelten/aufbereitung",label:"Aufbereitung & Sterilisation",desc:"RDG, Autoklaven, Validierung",icon:vg},{href:"/themenwelten/medizintechnik",label:"Medizintechnik",desc:"EKG, Spirometrie, Diagnostikgeräte",icon:LP},{href:"/themenwelten/op-leuchten",label:"OP-Leuchten",desc:"Untersuchungs- & OP-Leuchten von Dr. Mach",icon:KP}],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:VP}];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 L_(){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),[z,L]=S.useState(!1),C=S.useRef(null);S.useEffect(()=>{const A=()=>N(window.scrollY>60);return window.addEventListener("scroll",A,{passive:!0}),()=>window.removeEventListener("scroll",A)},[]),S.useEffect(()=>{h(!1)},[t]),S.useEffect(()=>{const A=R=>{R.key==="Escape"&&(u(null),h(!1))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[]);const B=A=>{C.current&&clearTimeout(C.current),u(A)},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(FP,{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:jV,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:CV,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:OV,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(A=>g.jsx("a",{href:A.href,className:"mobile-nav-link",onClick:()=>h(!1),children:A.label},A.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(A=>g.jsx("a",{href:A.href,className:"mobile-nav-link",onClick:()=>h(!1),children:A.label},A.href)),g.jsx("div",{className:"mobile-nav-divider","aria-hidden":"true"}),g.jsx("span",{className:"mobile-nav-section-label",children:"Aktuelle Aktionen"}),Ww.map(A=>g.jsxs("a",{href:A.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"}),A.label]},A.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(A=>g.jsx("a",{href:A.href,className:"mobile-nav-link",onClick:()=>h(!1),children:A.label},A.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(AV,{isOpen:z,onClose:()=>L(!1)})]})}function U_({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"}],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:"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(n6,{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:()=>OP(),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",kV="Stusche – Ihr Praxisdienstleister";function V_({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(Uk,{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:kV}),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 X7(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 W7(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 zV(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 J7(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}}function eB(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 NV({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 z=N.target.type==="checkbox"?N.target.checked:N.target.value;s(L=>({...L,[_]:z})),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(qP,{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 MV={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 RV({hersteller:e,className:t=""}){const r=e.toLowerCase(),s=MV[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 DV="/hero-loop-v2.webm",PV="/hero-loop-v2.mp4",tS="/hero-poster-v2.webp",LV="/images/home-themenwelt-gyn-3TSczofTDCc8ZyxKa3Ywsb.webp",UV="/images/medi-matic-front_541c3967.webp",VV="/images/boso-tm2450-front_e8f1a2b3.webp",BV="/images/edan-f3-ctg-new_c4d5e6f7.webp",HV="/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:UV,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:VV,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:BV,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:HV,imgAlt:"MELAG Vacuklav 44 B+ Evolution Autoklav",href:"/produkte/melag-vacuklav",wizardConfig:"autoklaven_inquiry",bgColor:"#f0f4fa"}],qV=[{icon:xg,title:"Praxisbedarf",desc:"Verbrauchsmaterialien, Diagnostik und Praxisausstattung – zuverlässig geliefert, direkt in Ihre Praxis.",href:"/leistungen/praxisbedarf",tag:"Lieferung"},{icon:t6,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:XP,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"}],IV=[{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."}],$V=[{title:"Gynäkologie",desc:"Spezialisiertes Sortiment, Fachberatung und technischer Service – exklusiv für gynäkologische Praxen.",img:LV,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 ZV(){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"]}),z=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(V_,{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,zV([{name:"Startseite",url:"https://www.stusche.de"}])]}),g.jsxs("div",{className:"min-h-screen bg-white gyn-font-body",children:[g.jsx(L_,{}),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:DV,type:"video/webm"}),g.jsx("source",{src:PV,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:qV.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:$V.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:z},"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:IV.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(RV,{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(U_,{})]}),g.jsx(NV,{open:c,onClose:()=>u(!1)})]})}function nS(){const[,e]=Ia();return g.jsxs(g.Fragment,{children:[g.jsx(V_,{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(L_,{}),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(ZP,{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(UP,{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(U_,{})]})]})}const GV=S.lazy(()=>Ce(()=>import("./GynaekologieV3-BiP1xH7e.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),KV=S.lazy(()=>Ce(()=>import("./Praxisbedarf-Di1lTiU-.js"),__vite__mapDeps([7,1,2,6,3,8,9,10,11,12]))),QV=S.lazy(()=>Ce(()=>import("./Sprechstundenbedarf-n8_jT_cV.js"),__vite__mapDeps([13,2,11]))),FV=S.lazy(()=>Ce(()=>import("./TechnischerService-DhIuqCS2.js"),__vite__mapDeps([14,1,2,11,15,10]))),YV=S.lazy(()=>Ce(()=>import("./Praxisplanung-BkJdq5_M.js"),__vite__mapDeps([16,1,2,17,11]))),XV=S.lazy(()=>Ce(()=>import("./Praxisportal-ButpWBdM.js"),__vite__mapDeps([18,1,2,9,11,12,19]))),WV=S.lazy(()=>Ce(()=>import("./Hygienemanagement-BL3Diajk.js"),__vite__mapDeps([20,1,2,12,4,21,11,22,23,24,19]))),JV=S.lazy(()=>Ce(()=>import("./Praxisgruendung-Divm-s8T.js"),__vite__mapDeps([25,1,2,24,11,12,26,3]))),e7=S.lazy(()=>Ce(()=>import("./Kontakt-D57h0GSe.js"),__vite__mapDeps([27,28,29]))),t7=S.lazy(()=>Ce(()=>import("./MediMatic-DMgqZkkT.js"),__vite__mapDeps([30,2,11]))),n7=S.lazy(()=>Ce(()=>import("./VitalographPneumotrac-DGw3UqRp.js"),__vite__mapDeps([31,2,32,33,34,12]))),r7=S.lazy(()=>Ce(()=>import("./VitalographAlphaConnect-DRfMXt72.js"),__vite__mapDeps([35,32,34,33,36,37]))),i7=S.lazy(()=>Ce(()=>import("./BosoTM2450-YXBNnYdQ.js"),__vite__mapDeps([38,2,10,33,36]))),s7=S.lazy(()=>Ce(()=>import("./MelagVacuklav-DVfpaQnJ.js"),__vite__mapDeps([39,2,11,10,17,40]))),a7=S.lazy(()=>Ce(()=>import("./MieleThermodesinfektor-D0FyngXj.js"),__vite__mapDeps([41,2,5,42,12,28,10]))),o7=S.lazy(()=>Ce(()=>import("./EdanF3Ctg-BtS07TB2.js"),__vite__mapDeps([43,2,8,34,33,10]))),l7=S.lazy(()=>Ce(()=>import("./Impressum-T5WIX5xJ.js"),__vite__mapDeps([44,12]))),c7=S.lazy(()=>Ce(()=>import("./Datenschutz-CsK1A6X2.js"),[])),u7=S.lazy(()=>Ce(()=>import("./AGB-CrnR-jL8.js"),[])),f7=S.lazy(()=>Ce(()=>import("./UnserTeam-DQX7UT7J.js"),__vite__mapDeps([45,24,46,6,47,26,11,10,48]))),d7=S.lazy(()=>Ce(()=>import("./Karriere-W6loU_Z6.js"),__vite__mapDeps([49,1,11,10]))),h7=S.lazy(()=>Ce(()=>import("./Aufbereitung-BVv9_rot.js"),__vite__mapDeps([50,1,2,5,4,28,10]))),m7=S.lazy(()=>Ce(()=>import("./Autoklaven-QXUDAHxJ.js"),__vite__mapDeps([51,2,11,17,40,33,10]))),p7=S.lazy(()=>Ce(()=>import("./Thermodesinfektoren-D6fhf2Dj.js"),__vite__mapDeps([52,2,10,5,28,42,11]))),g7=S.lazy(()=>Ce(()=>import("./Medizintechnik-B_2MhpBg.js"),__vite__mapDeps([53,2,32]))),y7=S.lazy(()=>Ce(()=>import("./OPLeuchten-BgApAXbK.js"),__vite__mapDeps([54,2,28,47,11,15]))),v7=S.lazy(()=>Ce(()=>import("./Chirurgie-Nsa_2diG.js"),__vite__mapDeps([55,1,2,4]))),b7=S.lazy(()=>Ce(()=>import("./Kreditorenbuchhalter-B7JqYVjI.js"),__vite__mapDeps([56,10,57,22,4,28,23]))),x7=S.lazy(()=>Ce(()=>import("./FahrerMontagetechniker-CPLENBEz.js"),__vite__mapDeps([58,10,57,24,46,22,23,28]))),w7=S.lazy(()=>Ce(()=>import("./MieleHnoExtra-CAau3YJY.js"),__vite__mapDeps([59,2,10,11,3]))),S7=S.lazy(()=>Ce(()=>import("./Retouren-DgUJC4v7.js"),__vite__mapDeps([60,61,10,12]))),E7=S.lazy(()=>Ce(()=>import("./GynStuehle-CX64LAyp.js"),__vite__mapDeps([62,36,63,4]))),T7=S.lazy(()=>Ce(()=>import("./AdminLogin-E3BOJ1-g.js"),__vite__mapDeps([64,65,19,66,47]))),_7=S.lazy(()=>Ce(()=>import("./AdminPanel-BMq2CoeI.js"),__vite__mapDeps([67,68,65,63,21,19,69,28,10,70,57,71,72,73,29,74]))),A7=S.lazy(()=>Ce(()=>import("./GynNewsAdmin-Pq0I_tyE.js"),__vite__mapDeps([75,68,65,63,21,19,69,28,29,74,73,57,47,66,71]))),j7=S.lazy(()=>Ce(()=>import("./SearchIndexAdmin-ihNudyYs.js"),__vite__mapDeps([76,68,65,63,21,19,77,10,12,29,28,69]))),C7=S.lazy(()=>Ce(()=>import("./RetourenAdmin-D1oPE_b5.js"),__vite__mapDeps([78,68,65,63,21,19,15,69,28,61,10,73,47,29,72,74,71]))),O7=S.lazy(()=>Ce(()=>import("./KatalogBestellungenAdmin-CduqcsFO.js"),__vite__mapDeps([79,68,65,63,21,19,69,61,28,70,10]))),k7=S.lazy(()=>Ce(()=>import("./EmailEinstellungenAdmin-BaAutpj3.js"),__vite__mapDeps([80,68,65,63,21,19,69,74,73]))),z7=S.lazy(()=>Ce(()=>import("./EmailLogAdmin-DIPUhyY6.js"),__vite__mapDeps([81,68,65,63,21,19,69,28,61,37,71]))),N7=S.lazy(()=>Ce(()=>import("./SeoReportAdmin-BhG9h0Vc.js"),__vite__mapDeps([82,68,65,63,21,19,77,69,22,29,12,28,10,66,47,73]))),M7=S.lazy(()=>Ce(()=>import("./AnalyseAdmin-BNtArjyP.js"),__vite__mapDeps([83,68,65,63,21,19,22,10])));function R7(){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 D7(){const[e]=Ia();return S.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}function P7(){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(()=>pR(e,r),120);return()=>clearTimeout(s)},[e]),null}function L7(){return _R(),null}function U7(){return g.jsxs(g.Fragment,{children:[g.jsx(D7,{}),g.jsx(L7,{}),g.jsx(P7,{}),g.jsx(S.Suspense,{fallback:g.jsx(R7,{}),children:g.jsxs(mR,{children:[g.jsx(Ee,{path:"/",component:ZV}),g.jsx(Ee,{path:"/themenwelten/gynaekologie",component:GV}),g.jsx(Ee,{path:"/leistungen/praxisbedarf",component:KV}),g.jsx(Ee,{path:"/leistungen/sprechstundenbedarf",component:QV}),g.jsx(Ee,{path:"/leistungen/technischer-service",component:FV}),g.jsx(Ee,{path:"/leistungen/praxisplanung",component:YV}),g.jsx(Ee,{path:"/leistungen/praxisgruendung",component:JV}),g.jsx(Ee,{path:"/leistungen/praxisportal",component:XV}),g.jsx(Ee,{path:"/leistungen/hygienemanagement",component:WV}),g.jsx(Ee,{path:"/kontakt",component:e7}),g.jsx(Ee,{path:"/produkte/medi-matic",component:t7}),g.jsx(Ee,{path:"/produkte/vitalograph-pneumotrac",component:n7}),g.jsx(Ee,{path:"/produkte/vitalograph-alpha-connect",component:r7}),g.jsx(Ee,{path:"/produkte/boso-tm-2450",component:i7}),g.jsx(Ee,{path:"/produkte/melag-vacuklav",component:s7}),g.jsx(Ee,{path:"/produkte/miele-thermodesinfektor",component:a7}),g.jsx(Ee,{path:"/produkte/edan-f3-ctg",component:o7}),g.jsx(Ee,{path:"/impressum",component:l7}),g.jsx(Ee,{path:"/datenschutz",component:c7}),g.jsx(Ee,{path:"/agb",component:u7}),g.jsx(Ee,{path:"/retouren",component:S7}),g.jsx(Ee,{path:"/ueber-uns/unser-team",component:f7}),g.jsx(Ee,{path:"/karriere",component:d7}),g.jsx(Ee,{path:"/themenwelten/aufbereitung",component:h7}),g.jsx(Ee,{path:"/themenwelten/aufbereitung/autoklaven",component:m7}),g.jsx(Ee,{path:"/themenwelten/aufbereitung/thermodesinfektoren",component:p7}),g.jsx(Ee,{path:"/themenwelten/medizintechnik",component:g7}),g.jsx(Ee,{path:"/themenwelten/op-leuchten",component:y7}),g.jsx(Ee,{path:"/themenwelten/chirurgie",component:v7}),g.jsx(Ee,{path:"/themenwelten/gynaekologie/gynstuehle",component:E7}),g.jsx(Ee,{path:"/karriere/kreditorenbuchhalter",component:b7}),g.jsx(Ee,{path:"/karriere/fahrer-montagetechniker",component:x7}),g.jsx(Ee,{path:"/aktionen/miele-hno-extra",component:w7}),g.jsx(Ee,{path:"/admin/login",component:T7}),g.jsx(Ee,{path:"/admin",component:_7}),g.jsx(Ee,{path:"/admin/gyn-news",component:A7}),g.jsx(Ee,{path:"/admin/search-index",component:j7}),g.jsx(Ee,{path:"/admin/retouren",component:C7}),g.jsx(Ee,{path:"/admin/katalog-bestellungen",component:O7}),g.jsx(Ee,{path:"/admin/email-einstellungen",component:k7}),g.jsx(Ee,{path:"/admin/email-log",component:z7}),g.jsx(Ee,{path:"/admin/seo-report",component:N7}),g.jsx(Ee,{path:"/admin/analyse",component:M7}),g.jsx(Ee,{path:"/404",component:nS}),g.jsx(Ee,{component:nS})]})})]})}function V7(){return g.jsx(s6,{children:g.jsx(g6,{defaultTheme:"light",children:g.jsxs(IM,{children:[g.jsx(Wz,{}),g.jsx(U7,{}),g.jsx(f6,{}),g.jsx(m6,{})]})})})}const ef=new TC;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 B7=Si.createClient({links:[MO({url:"/api/trpc",transformer:Br,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});fk.createRoot(document.getElementById("root")).render(g.jsx(XS,{children:g.jsx(Si.Provider,{client:B7,queryClient:ef,children:g.jsx(AC,{client:ef,children:g.jsx(a6,{children:g.jsx(V7,{})})})})}));export{$P as $,hn as A,Ef as B,ga as C,WP as D,Zu as E,LP as F,ZE as G,RV as H,pp as I,mE as J,NV as K,gi as L,bg as M,L_ as N,$a as O,xg as P,eT as Q,XP as R,V_ as S,i6 as T,wg as U,yR as V,YE as W,qE as X,KP as Y,UP as Z,va as _,zV as a,X7 as a0,f_ as a1,oU as a2,zp as a3,_l as a4,n6 as a5,VP as a6,Q7 as a7,eB as a8,F7 as a9,hS as aa,ml as ab,m2 as ac,se as ad,xs as ae,e5 as af,ws as ag,Mr as ah,H2 as ai,qM as aj,r6 as ak,Nl as al,gs as am,YP as an,FE as ao,K7 as ap,QE as aq,GE as ar,FP as as,I7 as at,H7 as au,Qw as b,Ae as c,vu as d,Ia as e,W7 as f,J7 as g,_u as h,e6 as i,g as j,U_ as k,HP as l,_e as m,bi as n,Ku as o,JP as p,t6 as q,S as r,Rr as s,Si as t,Tf as u,Gu as v,$E as w,qP as x,KE as y,BP as z};